#! /bin/sh # # To apply this patch, cd to the top level Octave source directory and # run this file through /bin/sh. It will first remove any files that # have been deleted from the source distribution since the last # release and then update the sources with patch(1). # # Diffs for updating *.ps, *.dvi, *.info*, and *.html files are not # included because they can be recreated from the Texinfo files using # TeX, makeinfo, or texi2html. # # Diffs for updating parse.cc and y.tab.h are not included because # they can be recreated from the file parse.y using bison. # # Diffs for updating lex.cc are not included because it can be # recreated from lex.l using flex. # # John W. Eaton # jwe@bevo.che.wisc.edu # University of Wisconsin-Madison # Department of Chemical Engineering if test -f src/octave.cc ; then true else echo '***********************************************************' 1>&2 echo 'You must run this script in the top-level octave directory!' 1>&2 echo '***********************************************************' 1>&2 exit 1 fi ### ### Special commands should go here. ### echo 'patching existing files' patch -p1 << \PATCH_EOF diff -cNr octave-3.2.3/acx_pthread.m4 octave-3.2.4/acx_pthread.m4 *** octave-3.2.3/acx_pthread.m4 1970-01-01 01:00:00.000000000 +0100 --- octave-3.2.4/acx_pthread.m4 2010-01-19 12:13:21.000000000 +0100 *************** *** 0 **** --- 1,271 ---- + # =========================================================================== + # http://www.nongnu.org/autoconf-archive/acx_pthread.html + # =========================================================================== + # + # SYNOPSIS + # + # ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) + # + # DESCRIPTION + # + # This macro figures out how to build C programs using POSIX threads. It + # sets the PTHREAD_LIBS output variable to the threads library and linker + # flags, and the PTHREAD_CFLAGS output variable to any special C compiler + # flags that are needed. (The user can also force certain compiler + # flags/libs to be tested by setting these environment variables.) + # + # Also sets PTHREAD_CC to any special C compiler that is needed for + # multi-threaded programs (defaults to the value of CC otherwise). (This + # is necessary on AIX to use the special cc_r compiler alias.) + # + # NOTE: You are assumed to not only compile your program with these flags, + # but also link it with them as well. e.g. you should link with + # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS + # + # If you are only building threads programs, you may wish to use these + # variables in your default LIBS, CFLAGS, and CC: + # + # LIBS="$PTHREAD_LIBS $LIBS" + # CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + # CC="$PTHREAD_CC" + # + # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant + # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name + # (e.g. PTHREAD_CREATE_UNDETACHED on AIX). + # + # ACTION-IF-FOUND is a list of shell commands to run if a threads library + # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it + # is not found. If ACTION-IF-FOUND is not specified, the default action + # will define HAVE_PTHREAD. + # + # Please let the authors know if this macro fails on any platform, or if + # you have any other suggestions or comments. This macro was based on work + # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help + # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by + # Alejandro Forero Cuervo to the autoconf macro repository. We are also + # grateful for the helpful feedback of numerous users. + # + # LICENSE + # + # Copyright (c) 2008 Steven G. Johnson + # + # This program is free software: you can redistribute it and/or modify it + # under the terms of the GNU General Public License as published by the + # Free Software Foundation, either version 3 of the License, or (at your + # option) any later version. + # + # This program is distributed in the hope that it will be useful, but + # WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + # Public License for more details. + # + # You should have received a copy of the GNU General Public License along + # with this program. If not, see . + # + # As a special exception, the respective Autoconf Macro's copyright owner + # gives unlimited permission to copy, distribute and modify the configure + # scripts that are the output of Autoconf when processing the Macro. You + # need not follow the terms of the GNU General Public License when using + # or distributing such scripts, even though portions of the text of the + # Macro appear in them. The GNU General Public License (GPL) does govern + # all other use of the material that constitutes the Autoconf Macro. + # + # This special exception to the GPL applies to versions of the Autoconf + # Macro released by the Autoconf Archive. When you make and distribute a + # modified version of the Autoconf Macro, you may extend this special + # exception to the GPL to apply to your modified version as well. + + AC_DEFUN([ACX_PTHREAD], [ + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_LANG_SAVE + AC_LANG_C + acx_pthread_ok=no + + # We used to check for pthread.h first, but this fails if pthread.h + # requires special compiler flags (e.g. on True64 or Sequent). + # It gets checked for in the link test anyway. + + # First of all, check if the user has set any of the PTHREAD_LIBS, + # etcetera environment variables, and if threads linking works using + # them: + if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS]) + AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes) + AC_MSG_RESULT($acx_pthread_ok) + if test x"$acx_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + fi + + # We must check for the threads library under a number of different + # names; the ordering is very important because some systems + # (e.g. DEC) have both -lpthread and -lpthreads, where one of the + # libraries is broken (non-POSIX). + + # Create a list of thread flags to try. Items starting with a "-" are + # C compiler flags, and other items are library names, except for "none" + # which indicates that we try without any flags at all, and "pthread-config" + # which is a program returning the flags for the Pth emulation library. + + acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" + + # The ordering *is* (sometimes) important. Some notes on the + # individual items follow: + + # pthreads: AIX (must check this before -lpthread) + # none: in case threads are in libc; should be tried before -Kthread and + # other compiler flags to prevent continual compiler warnings + # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) + # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) + # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) + # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) + # -pthreads: Solaris/gcc + # -mthreads: Mingw32/gcc, Lynx/gcc + # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it + # doesn't hurt to check since this sometimes defines pthreads too; + # also defines -D_REENTRANT) + # ... -mt is also the pthreads flag for HP/aCC + # pthread: Linux, etcetera + # --thread-safe: KAI C++ + # pthread-config: use pthread-config program (for GNU Pth library) + + case "${host_cpu}-${host_os}" in + *solaris*) + + # On Solaris (at least, for some versions), libc contains stubbed + # (non-functional) versions of the pthreads routines, so link-based + # tests will erroneously succeed. (We need to link with -pthreads/-mt/ + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather + # a function called by this macro, so we could check for that, but + # who knows whether they'll stub that too in a future libc.) So, + # we'll just look for -pthreads and -lpthread first: + + acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" + ;; + esac + + if test x"$acx_pthread_ok" = xno; then + for flag in $acx_pthread_flags; do + + case $flag in + none) + AC_MSG_CHECKING([whether pthreads work without any flags]) + ;; + + -*) + AC_MSG_CHECKING([whether pthreads work with $flag]) + PTHREAD_CFLAGS="$flag" + ;; + + pthread-config) + AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no) + if test x"$acx_pthread_config" = xno; then continue; fi + PTHREAD_CFLAGS="`pthread-config --cflags`" + PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" + ;; + + *) + AC_MSG_CHECKING([for the pthreads library -l$flag]) + PTHREAD_LIBS="-l$flag" + ;; + esac + + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Check for various functions. We must include pthread.h, + # since some functions may be macros. (On the Sequent, we + # need a special flag -Kthread to make this header compile.) + # We check for pthread_join because it is in -lpthread on IRIX + # while pthread_create is in libc. We check for pthread_attr_init + # due to DEC craziness with -lpthreads. We check for + # pthread_cleanup_push because it is one of the few pthread + # functions on Solaris that doesn't have a non-functional libc stub. + # We try pthread_create on general principles. + AC_TRY_LINK([#include ], + [pthread_t th; pthread_join(th, 0); + pthread_attr_init(0); pthread_cleanup_push(0, 0); + pthread_create(0,0,0,0); pthread_cleanup_pop(0); ], + [acx_pthread_ok=yes]) + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + AC_MSG_RESULT($acx_pthread_ok) + if test "x$acx_pthread_ok" = xyes; then + break; + fi + + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + done + fi + + # Various other checks: + if test "x$acx_pthread_ok" = xyes; then + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. + AC_MSG_CHECKING([for joinable pthread attribute]) + attr_name=unknown + for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do + AC_TRY_LINK([#include ], [int attr=$attr; return attr;], + [attr_name=$attr; break]) + done + AC_MSG_RESULT($attr_name) + if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then + AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name, + [Define to necessary symbol if this constant + uses a non-standard name on your system.]) + fi + + AC_MSG_CHECKING([if more special flags are required for pthreads]) + flag=no + case "${host_cpu}-${host_os}" in + *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + esac + AC_MSG_RESULT(${flag}) + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + # More AIX lossage: must compile with xlc_r or cc_r + if test x"$GCC" != xyes; then + AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC}) + else + PTHREAD_CC=$CC + fi + else + PTHREAD_CC="$CC" + fi + + AC_SUBST(PTHREAD_LIBS) + AC_SUBST(PTHREAD_CFLAGS) + AC_SUBST(PTHREAD_CC) + + # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: + if test x"$acx_pthread_ok" = xyes; then + ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1]) + : + else + acx_pthread_ok=no + $2 + fi + AC_LANG_RESTORE + ])dnl ACX_PTHREAD diff -cNr octave-3.2.3/ChangeLog octave-3.2.4/ChangeLog *** octave-3.2.3/ChangeLog 2009-09-14 08:01:42.000000000 +0200 --- octave-3.2.4/ChangeLog 2010-01-22 10:23:26.000000000 +0100 *************** *** 1,3 **** --- 1,17 ---- + 2010-01-22 Jaroslav Hajek + + Version 3.2.4 released. + + 2010-01-19 Jaroslav Hajek + + * octMakefile.in: Add acx_pthread.m4 to CONF_DISTFILES. + + 2009-08-04 John W. Eaton + + * acx_pthread.m4: New file. + * configure.in: Include it and invoke ACX_PTHREAD macro. Print + ptrhead flags and libraries in summary output. + 2009-09-18 Jaroslav Hajek Version 3.2.3 released. diff -cNr octave-3.2.3/config.h.in octave-3.2.4/config.h.in *** octave-3.2.3/config.h.in 2009-09-14 08:01:52.000000000 +0200 --- octave-3.2.4/config.h.in 2010-01-19 13:47:18.000000000 +0100 *************** *** 583,588 **** --- 583,591 ---- /* Define if you have POSIX style signals. */ #undef HAVE_POSIX_SIGNALS + /* Define if you have POSIX threads libraries and header files. */ + #undef HAVE_PTHREAD + /* Define to 1 if you have the header file. */ #undef HAVE_PTHREAD_H *************** *** 730,748 **** /* Define to 1 if you have the `strsignal' function. */ #undef HAVE_STRSIGNAL ! /* Define to 1 if `gr_passwd' is member of `struct group'. */ #undef HAVE_STRUCT_GROUP_GR_PASSWD ! /* Define to 1 if `st_blksize' is member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_BLKSIZE ! /* Define to 1 if `st_blocks' is member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_BLOCKS ! /* Define to 1 if `st_rdev' is member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_RDEV ! /* Define to 1 if `tm_zone' is member of `struct tm'. */ #undef HAVE_STRUCT_TM_TM_ZONE /* Define to 1 if you have the header file. */ --- 733,751 ---- /* Define to 1 if you have the `strsignal' function. */ #undef HAVE_STRSIGNAL ! /* Define to 1 if `struct group' is a member of `gr_passwd'. */ #undef HAVE_STRUCT_GROUP_GR_PASSWD ! /* Define to 1 if `struct stat' is a member of `st_blksize'. */ #undef HAVE_STRUCT_STAT_ST_BLKSIZE ! /* Define to 1 if `struct stat' is a member of `st_blocks'. */ #undef HAVE_STRUCT_STAT_ST_BLOCKS ! /* Define to 1 if `struct stat' is a member of `st_rdev'. */ #undef HAVE_STRUCT_STAT_ST_RDEV ! /* Define to 1 if `struct tm' is a member of `tm_zone'. */ #undef HAVE_STRUCT_TM_TM_ZONE /* Define to 1 if you have the header file. */ *************** *** 986,994 **** --- 989,1004 ---- /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME + /* Define to the home page for this package. */ + #undef PACKAGE_URL + /* Define to the version of this package. */ #undef PACKAGE_VERSION + /* Define to necessary symbol if this constant uses a non-standard name on + your system. */ + #undef PTHREAD_CREATE_JOINABLE + /* Define as the return type of signal handlers (`int' or `void'). */ #undef RETSIGTYPE *************** *** 1057,1062 **** --- 1067,1094 ---- /* Define to use the readline library. */ #undef USE_READLINE + /* Enable extensions on AIX 3, Interix. */ + #ifndef _ALL_SOURCE + # undef _ALL_SOURCE + #endif + /* Enable GNU extensions on systems that have them. */ + #ifndef _GNU_SOURCE + # undef _GNU_SOURCE + #endif + /* Enable threading extensions on Solaris. */ + #ifndef _POSIX_PTHREAD_SEMANTICS + # undef _POSIX_PTHREAD_SEMANTICS + #endif + /* Enable extensions on HP NonStop. */ + #ifndef _TANDEM_SOURCE + # undef _TANDEM_SOURCE + #endif + /* Enable general extensions on Solaris. */ + #ifndef __EXTENSIONS__ + # undef __EXTENSIONS__ + #endif + + /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ #undef YYTEXT_POINTER *************** *** 1079,1096 **** #endif - /* Define to 1 if on AIX 3. - System headers sometimes define this. - We just want to avoid a redefinition error message. */ - #ifndef _ALL_SOURCE - # undef _ALL_SOURCE - #endif - - /* Enable GNU extensions on systems that have them. */ - #ifndef _GNU_SOURCE - # undef _GNU_SOURCE - #endif - /* Define if using HDF5 dll (Win32) */ #undef _HDF5USEDLL_ --- 1111,1116 ---- *************** *** 1110,1126 **** /* Define to 0x0403 to access InitializeCriticalSectionAndSpinCount */ #undef _WIN32_WINNT - /* Enable extensions on Solaris. */ - #ifndef __EXTENSIONS__ - # undef __EXTENSIONS__ - #endif - #ifndef _POSIX_PTHREAD_SEMANTICS - # undef _POSIX_PTHREAD_SEMANTICS - #endif - #ifndef _TANDEM_SOURCE - # undef _TANDEM_SOURCE - #endif - /* Define if your version of GNU libc has buggy inline assembly code for math functions like exp. */ #undef __NO_MATH_INLINES --- 1130,1135 ---- diff -cNr octave-3.2.3/configure octave-3.2.4/configure *** octave-3.2.3/configure 2009-09-14 08:01:49.000000000 +0200 --- octave-3.2.4/configure 2010-01-19 13:47:17.000000000 +0100 *************** *** 1,61 **** #! /bin/sh # From configure.in Revision: 1.603 . # Guess values for system-dependent variables and create Makefiles. ! # Generated by GNU Autoconf 2.61. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, ! # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ! ## --------------------- ## ! ## M4sh Initialization. ## ! ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh ! if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: ! # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else ! case `(set -o) 2>/dev/null` in ! *posix*) set -o posix ;; esac - fi ! ! ! # PATH needs CR ! # Avoid depending upon Character Ranges. ! as_cr_letters='abcdefghijklmnopqrstuvwxyz' ! as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ! as_cr_Letters=$as_cr_letters$as_cr_LETTERS ! as_cr_digits='0123456789' ! as_cr_alnum=$as_cr_Letters$as_cr_digits ! ! # The user is always right. ! if test "${PATH_SEPARATOR+set}" != set; then ! echo "#! /bin/sh" >conf$$.sh ! echo "exit 0" >>conf$$.sh ! chmod +x conf$$.sh ! if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then ! PATH_SEPARATOR=';' else ! PATH_SEPARATOR=: fi ! rm -f conf$$.sh fi ! # Support unset when possible. ! if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then ! as_unset=unset ! else ! as_unset=false fi --- 1,82 ---- #! /bin/sh # From configure.in Revision: 1.603 . # Guess values for system-dependent variables and create Makefiles. ! # Generated by GNU Autoconf 2.64. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, ! # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software ! # Foundation, Inc. ! # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ! ## -------------------- ## ! ## M4sh Initialization. ## ! ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh ! if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: ! # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else ! case `(set -o) 2>/dev/null` in #( ! *posix*) : ! set -o posix ;; #( ! *) : ! ;; esac fi ! as_nl=' ! ' ! export as_nl ! # Printing a long string crashes Solaris 7 /usr/bin/printf. ! as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ! as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo ! as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo ! # Prefer a ksh shell builtin over an external printf program on Solaris, ! # but without wasting forks for bash or zsh. ! if test -z "$BASH_VERSION$ZSH_VERSION" \ ! && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then ! as_echo='print -r --' ! as_echo_n='print -rn --' ! elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then ! as_echo='printf %s\n' ! as_echo_n='printf %s' ! else ! if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then ! as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' ! as_echo_n='/usr/ucb/echo -n' else ! as_echo_body='eval expr "X$1" : "X\\(.*\\)"' ! as_echo_n_body='eval ! arg=$1; ! case $arg in #( ! *"$as_nl"*) ! expr "X$arg" : "X\\(.*\\)$as_nl"; ! arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; ! esac; ! expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ! ' ! export as_echo_n_body ! as_echo_n='sh -c $as_echo_n_body as_echo' fi ! export as_echo_body ! as_echo='sh -c $as_echo_body as_echo' fi ! # The user is always right. ! if test "${PATH_SEPARATOR+set}" != set; then ! PATH_SEPARATOR=: ! (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { ! (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || ! PATH_SEPARATOR=';' ! } fi *************** *** 64,83 **** # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) - as_nl=' - ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. ! case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ! done IFS=$as_save_IFS ;; --- 85,102 ---- # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. ! case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ! done IFS=$as_save_IFS ;; *************** *** 88,441 **** as_myself=$0 fi if test ! -f "$as_myself"; then ! echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ! { (exit 1); exit 1; } fi ! # Work around bugs in pre-3.0 UWIN ksh. ! for as_var in ENV MAIL MAILPATH ! do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. ! for as_var in \ ! LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ ! LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ ! LC_TELEPHONE LC_TIME ! do ! if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then ! eval $as_var=C; export $as_var ! else ! ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ! fi ! done ! ! # Required to use basename. ! if expr a : '\(a\)' >/dev/null 2>&1 && ! test "X`expr 00001 : '.*\(...\)'`" = X001; then ! as_expr=expr ! else ! as_expr=false ! fi ! ! if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then ! as_basename=basename ! else ! as_basename=false ! fi ! ! ! # Name of the executable. ! as_me=`$as_basename -- "$0" || ! $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ! X"$0" : 'X\(//\)$' \| \ ! X"$0" : 'X\(/\)' \| . 2>/dev/null || ! echo X/"$0" | ! sed '/^.*\/\([^/][^/]*\)\/*$/{ ! s//\1/ ! q ! } ! /^X\/\(\/\/\)$/{ ! s//\1/ ! q ! } ! /^X\/\(\/\).*/{ ! s//\1/ ! q ! } ! s/.*/./; q'` # CDPATH. ! $as_unset CDPATH ! if test "x$CONFIG_SHELL" = x; then ! if (eval ":") 2>/dev/null; then ! as_have_required=yes else ! as_have_required=no fi ! ! if test $as_have_required = yes && (eval ": ! (as_func_return () { ! (exit \$1) ! } ! as_func_success () { ! as_func_return 0 ! } ! as_func_failure () { ! as_func_return 1 ! } ! as_func_ret_success () { ! return 0 ! } ! as_func_ret_failure () { ! return 1 ! } exitcode=0 ! if as_func_success; then ! : ! else ! exitcode=1 ! echo as_func_success failed. ! fi ! ! if as_func_failure; then ! exitcode=1 ! echo as_func_failure succeeded. ! fi ! ! if as_func_ret_success; then ! : ! else ! exitcode=1 ! echo as_func_ret_success failed. ! fi ! ! if as_func_ret_failure; then ! exitcode=1 ! echo as_func_ret_failure succeeded. ! fi ! ! if ( set x; as_func_ret_success y && test x = \"\$1\" ); then ! : else ! exitcode=1 ! echo positional parameters were not saved. fi - test \$exitcode = 0) || { (exit 1); exit 1; } - - ( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } - ") 2> /dev/null; then - : else ! as_candidate_shells= ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! case $as_dir in /*) for as_base in sh bash ksh sh5; do ! as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS ! for as_shell in $as_candidate_shells $SHELL; do ! # Try only shells that exist, to save several forks. ! if { test -f "$as_shell" || test -f "$as_shell.exe"; } && ! { ("$as_shell") 2> /dev/null <<\_ASEOF ! if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ! emulate sh ! NULLCMD=: ! # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ! # is contrary to our usage. Disable this feature. ! alias -g '${1+"$@"}'='"$@"' ! setopt NO_GLOB_SUBST ! else ! case `(set -o) 2>/dev/null` in ! *posix*) set -o posix ;; ! esac ! fi - - - : - _ASEOF - }; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF - if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST - else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; - esac - fi - - - : - (as_func_return () { - (exit $1) - } - as_func_success () { - as_func_return 0 - } - as_func_failure () { - as_func_return 1 - } - as_func_ret_success () { - return 0 - } - as_func_ret_failure () { - return 1 - } - - exitcode=0 - if as_func_success; then - : - else - exitcode=1 - echo as_func_success failed. fi ! if as_func_failure; then ! exitcode=1 ! echo as_func_failure succeeded. ! fi ! if as_func_ret_success; then ! : ! else ! exitcode=1 ! echo as_func_ret_success failed. ! fi - if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. - fi ! if ( set x; as_func_ret_success y && test x = "$1" ); then ! : else ! exitcode=1 ! echo positional parameters were not saved. ! fi ! ! test $exitcode = 0) || { (exit 1); exit 1; } ! ! ( ! as_lineno_1=$LINENO ! as_lineno_2=$LINENO ! test "x$as_lineno_1" != "x$as_lineno_2" && ! test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } ! ! _ASEOF ! }; then ! break ! fi ! ! fi ! ! done ! ! if test "x$CONFIG_SHELL" != x; then ! for as_var in BASH_ENV ENV ! do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ! done ! export CONFIG_SHELL ! exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} ! fi ! ! ! if test $as_have_required = no; then ! echo This script requires a shell more modern than all the ! echo shells that I found on your system. Please install a ! echo modern shell, or manually run the script under such a ! echo shell if you do have one. ! { (exit 1); exit 1; } ! fi ! ! ! fi ! ! fi ! (eval "as_func_return () { ! (exit \$1) ! } ! as_func_success () { ! as_func_return 0 ! } ! as_func_failure () { ! as_func_return 1 ! } ! as_func_ret_success () { ! return 0 ! } ! as_func_ret_failure () { ! return 1 ! } ! exitcode=0 ! if as_func_success; then ! : else ! exitcode=1 ! echo as_func_success failed. ! fi ! ! if as_func_failure; then ! exitcode=1 ! echo as_func_failure succeeded. fi ! if as_func_ret_success; then ! : else ! exitcode=1 ! echo as_func_ret_success failed. ! fi ! ! if as_func_ret_failure; then ! exitcode=1 ! echo as_func_ret_failure succeeded. fi ! if ( set x; as_func_ret_success y && test x = \"\$1\" ); then ! : else ! exitcode=1 ! echo positional parameters were not saved. fi ! test \$exitcode = 0") || { ! echo No shell found that supports shell functions. ! echo Please tell autoconf@gnu.org about your system, ! echo including any error possibly output before this ! echo message ! } ! as_lineno_1=$LINENO ! as_lineno_2=$LINENO ! test "x$as_lineno_1" != "x$as_lineno_2" && ! test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { ! ! # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ! # uniformly replaced by the line number. The first 'sed' inserts a ! # line-number line after each line using $LINENO; the second 'sed' ! # does the real work. The second script uses 'N' to pair each ! # line-number line with the line containing $LINENO, and appends ! # trailing '-' during substitution so that $LINENO is not a special ! # case at line end. ! # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ! # scripts with optimization help from Paolo Bonzini. Blame Lee ! # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= --- 107,427 ---- as_myself=$0 fi if test ! -f "$as_myself"; then ! $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ! exit 1 fi ! # Unset variables that we do not need and which cause bugs (e.g. in ! # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" ! # suppresses any "Segmentation fault" message there. '((' could ! # trigger a bug in pdksh 5.2.14. ! for as_var in BASH_ENV ENV MAIL MAILPATH ! do eval test x\${$as_var+set} = xset \ ! && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. ! LC_ALL=C ! export LC_ALL ! LANGUAGE=C ! export LANGUAGE # CDPATH. ! (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then ! as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : ! emulate sh ! NULLCMD=: ! # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which ! # is contrary to our usage. Disable this feature. ! alias -g '\${1+\"\$@\"}'='\"\$@\"' ! setopt NO_GLOB_SUBST else ! case \`(set -o) 2>/dev/null\` in #( ! *posix*) : ! set -o posix ;; #( ! *) : ! ;; ! esac fi ! " ! as_required="as_fn_return () { (exit \$1); } ! as_fn_success () { as_fn_return 0; } ! as_fn_failure () { as_fn_return 1; } ! as_fn_ret_success () { return 0; } ! as_fn_ret_failure () { return 1; } exitcode=0 ! as_fn_success || { exitcode=1; echo as_fn_success failed.; } ! as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } ! as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } ! as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } ! if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : ! ! else ! exitcode=1; echo positional parameters were not saved. ! fi ! test x\$exitcode = x0 || exit 1" ! as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO ! as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO ! eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && ! test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 ! test \$(( 1 + 1 )) = 2 || exit 1" ! if (eval "$as_required") 2>/dev/null; then : ! as_have_required=yes else ! as_have_required=no fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! as_found=: ! case $as_dir in #( /*) for as_base in sh bash ksh sh5; do ! # Try only shells that exist, to save several forks. ! as_shell=$as_dir/$as_base ! if { test -f "$as_shell" || test -f "$as_shell.exe"; } && ! { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : ! CONFIG_SHELL=$as_shell as_have_required=yes ! if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : ! break 2 ! fi ! fi done;; esac + as_found=false done + $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes + fi; } IFS=$as_save_IFS ! if test "x$CONFIG_SHELL" != x; then : ! # We cannot yet assume a decent shell, so we have to provide a ! # neutralization value for shells without unset; and this also ! # works around shells that cannot unset nonexistent variables. ! BASH_ENV=/dev/null ! ENV=/dev/null ! (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV ! export CONFIG_SHELL ! exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} ! fi ! ! if test x$as_have_required = xno; then : ! $as_echo "$0: This script requires a shell more modern than all" ! $as_echo "$0: the shells that I found on your system." ! if test x${ZSH_VERSION+set} = xset ; then ! $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" ! $as_echo "$0: be upgraded to zsh 4.3.4 or later." ! else ! $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, ! $0: including any error possibly output before this ! $0: message. Then install a modern shell, or manually run ! $0: the script under such a shell if you do have one." ! fi ! exit 1 fi fi fi + SHELL=${CONFIG_SHELL-/bin/sh} + export SHELL + # Unset more variables known to interfere with behavior of common tools. + CLICOLOR_FORCE= GREP_OPTIONS= + unset CLICOLOR_FORCE GREP_OPTIONS ! ## --------------------- ## ! ## M4sh Shell Functions. ## ! ## --------------------- ## ! # as_fn_unset VAR ! # --------------- ! # Portably unset VAR. ! as_fn_unset () ! { ! { eval $1=; unset $1;} ! } ! as_unset=as_fn_unset ! ! # as_fn_set_status STATUS ! # ----------------------- ! # Set $? to STATUS, without forking. ! as_fn_set_status () ! { ! return $1 ! } # as_fn_set_status ! ! # as_fn_exit STATUS ! # ----------------- ! # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. ! as_fn_exit () ! { ! set +e ! as_fn_set_status $1 ! exit $1 ! } # as_fn_exit ! ! # as_fn_mkdir_p ! # ------------- ! # Create "$as_dir" as a directory, including parents if necessary. ! as_fn_mkdir_p () ! { ! case $as_dir in #( ! -*) as_dir=./$as_dir;; ! esac ! test -d "$as_dir" || eval $as_mkdir_p || { ! as_dirs= ! while :; do ! case $as_dir in #( ! *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( ! *) as_qdir=$as_dir;; ! esac ! as_dirs="'$as_qdir' $as_dirs" ! as_dir=`$as_dirname -- "$as_dir" || ! $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! X"$as_dir" : 'X\(//\)[^/]' \| \ ! X"$as_dir" : 'X\(//\)$' \| \ ! X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ! $as_echo X"$as_dir" | ! sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ! s//\1/ ! q ! } ! /^X\(\/\/\)[^/].*/{ ! s//\1/ ! q ! } ! /^X\(\/\/\)$/{ ! s//\1/ ! q ! } ! /^X\(\/\).*/{ ! s//\1/ ! q ! } ! s/.*/./; q'` ! test -d "$as_dir" && break ! done ! test -z "$as_dirs" || eval "mkdir $as_dirs" ! } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" ! } # as_fn_mkdir_p ! # as_fn_append VAR VALUE ! # ---------------------- ! # Append the text in VALUE to the end of the definition contained in VAR. Take ! # advantage of any shell optimizations that allow amortized linear growth over ! # repeated appends, instead of the typical quadratic growth present in naive ! # implementations. ! if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : ! eval 'as_fn_append () ! { ! eval $1+=\$2 ! }' else ! as_fn_append () ! { ! eval $1=\$$1\$2 ! } ! fi # as_fn_append + # as_fn_arith ARG... + # ------------------ + # Perform arithmetic evaluation on the ARGs, and store the result in the + # global $as_val. Take advantage of shells that can avoid forks. The arguments + # must be portable across $(()) and expr. + if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' + else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } + fi # as_fn_arith ! # as_fn_error ERROR [LINENO LOG_FD] ! # --------------------------------- ! # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are ! # provided, also output the error to LOG_FD, referencing LINENO. Then exit the ! # script with status $?, using 1 if that was 0. ! as_fn_error () ! { ! as_status=$?; test $as_status -eq 0 && as_status=1 ! if test "$3"; then ! as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 ! fi ! $as_echo "$as_me: error: $1" >&2 ! as_fn_exit $as_status ! } # as_fn_error ! if expr a : '\(a\)' >/dev/null 2>&1 && ! test "X`expr 00001 : '.*\(...\)'`" = X001; then ! as_expr=expr else ! as_expr=false fi ! if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then ! as_basename=basename else ! as_basename=false fi ! if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then ! as_dirname=dirname else ! as_dirname=false fi ! as_me=`$as_basename -- "$0" || ! $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ! X"$0" : 'X\(//\)$' \| \ ! X"$0" : 'X\(/\)' \| . 2>/dev/null || ! $as_echo X/"$0" | ! sed '/^.*\/\([^/][^/]*\)\/*$/{ ! s//\1/ ! q ! } ! /^X\/\(\/\/\)$/{ ! s//\1/ ! q ! } ! /^X\/\(\/\).*/{ ! s//\1/ ! q ! } ! s/.*/./; q'` + # Avoid depending upon Character Ranges. + as_cr_letters='abcdefghijklmnopqrstuvwxyz' + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' + as_cr_Letters=$as_cr_letters$as_cr_LETTERS + as_cr_digits='0123456789' + as_cr_alnum=$as_cr_Letters$as_cr_digits ! as_lineno_1=$LINENO as_lineno_1a=$LINENO ! as_lineno_2=$LINENO as_lineno_2a=$LINENO ! eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && ! test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { ! # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= *************** *** 452,459 **** s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || ! { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 ! { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the --- 438,444 ---- s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || ! { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the *************** *** 463,511 **** exit } - - if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname - else - as_dirname=false - fi - ECHO_C= ECHO_N= ECHO_T= ! case `echo -n x` in -n*) ! case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. ! *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac - if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr - else - as_expr=false - fi - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir ! mkdir conf$$.dir fi ! echo >conf$$.file ! if ln -s conf$$.file conf$$ 2>/dev/null; then ! as_ln_s='ln -s' ! # ... but there are two gotchas: ! # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ! # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ! # In both cases, we have to default to `cp -p'. ! ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' ! elif ln conf$$.file conf$$ 2>/dev/null; then ! as_ln_s=ln else as_ln_s='cp -p' fi --- 448,487 ---- exit } ECHO_C= ECHO_N= ECHO_T= ! case `echo -n x` in #((((( -n*) ! case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. ! xy) ECHO_C='\c';; ! *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ! ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir ! mkdir conf$$.dir 2>/dev/null fi ! if (echo >conf$$.file) 2>/dev/null; then ! if ln -s conf$$.file conf$$ 2>/dev/null; then ! as_ln_s='ln -s' ! # ... but there are two gotchas: ! # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ! # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ! # In both cases, we have to default to `cp -p'. ! ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || ! as_ln_s='cp -p' ! elif ln conf$$.file conf$$ 2>/dev/null; then ! as_ln_s=ln ! else as_ln_s='cp -p' ! fi else as_ln_s='cp -p' fi *************** *** 513,519 **** rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then ! as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false --- 489,495 ---- rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then ! as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false *************** *** 530,541 **** as_test_x=' eval sh -c '\'' if test -d "$1"; then ! test -d "$1/."; else ! case $1 in ! -*)set "./$1";; esac; ! case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' --- 506,517 ---- as_test_x=' eval sh -c '\'' if test -d "$1"; then ! test -d "$1/."; else ! case $1 in #( ! -*)set "./$1";; esac; ! case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' *************** *** 549,555 **** as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - exec 7<&0 &1 # Name of the host. --- 525,530 ---- *************** *** 568,574 **** subdirs= MFLAGS= MAKEFLAGS= - SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= --- 543,548 ---- *************** *** 576,581 **** --- 550,556 ---- PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= + PACKAGE_URL= ac_unique_file="src/octave.cc" # Factoring default headers for most tests. *************** *** 614,868 **** # include #endif" ! ac_subst_vars='SHELL ! PATH_SEPARATOR ! PACKAGE_NAME ! PACKAGE_TARNAME ! PACKAGE_VERSION ! PACKAGE_STRING ! PACKAGE_BUGREPORT ! exec_prefix ! prefix ! program_transform_name ! bindir ! sbindir ! libexecdir ! datarootdir ! datadir ! sysconfdir ! sharedstatedir ! localstatedir ! includedir ! oldincludedir ! docdir ! infodir ! htmldir ! dvidir ! pdfdir ! psdir ! libdir ! localedir ! mandir ! DEFS ! ECHO_C ! ECHO_N ! ECHO_T ! LIBS ! build_alias ! host_alias ! target_alias ! build ! build_cpu ! build_vendor ! build_os ! host ! host_cpu ! host_vendor ! host_os ! canonical_host_type ! CC ! CFLAGS ! LDFLAGS ! CPPFLAGS ! ac_ct_CC ! EXEEXT ! OBJEXT ! CPP ! GREP ! EGREP ! sepchar ! man1dir ! man1ext ! doc_cache_file ! infofile ! octincludedir ! fcnfiledir ! localfcnfiledir ! localapifcnfiledir ! localverfcnfiledir ! octetcdir ! octlibdir ! archlibdir ! localarchlibdir ! localapiarchlibdir ! localverarchlibdir ! octfiledir ! localoctfiledir ! localapioctfiledir ! localveroctfiledir ! imagedir ! config_opts ! OCTAVE_IDX_TYPE ! USE_64_BIT_IDX_T ! CXX ! CXXFLAGS ! ac_ct_CXX ! CXXCPP ! CXX_VERSION ! CC_VERSION ! INCLUDE_DEPS ! DEPEND_FLAGS ! DEPEND_EXTRA_SED_PATTERN ! XMKMF ! X11_INCFLAGS ! X11_LIBS ! CARBON_LIBS ! XTRA_CFLAGS ! XTRA_CXXFLAGS ! LD_STATIC_FLAG ! BUILD_CC ! BUILD_CFLAGS ! BUILD_CXX ! BUILD_CXXFLAGS ! BUILD_LDFLAGS ! BUILD_EXEEXT ! QHULL_LIBS ! TEXINFO_QHULL ! WITH_PCRE_CONFIG ! REGEX_LIBS ! FFT_DIR ! FFTW_LIBS ! GLPK_LIBS ! CURL_LIBS ! MAGICK_CONFIG ! OPENGL_LIBS ! FT2_CONFIG ! FT2_CFLAGS ! FT2_LIBS ! FLTK_CONFIG ! GRAPHICS_CFLAGS ! GRAPHICS_LIBS ! AR ! ARFLAGS ! RANLIB ! F77 ! FFLAGS ! ac_ct_F77 ! FLIBS ! F77_TOLOWER ! F77_APPEND_UNDERSCORE ! F77_APPEND_EXTRA_UNDERSCORE ! XTRA_CRUFT_SH_LDFLAGS ! FC ! F77_FLOAT_STORE_FLAG ! BLAS_LIBS ! LAPACK_LIBS ! BLAS_DIR ! LAPACK_DIR ! QRUPDATE_LIBS ! AMD_LIBS ! CAMD_LIBS ! UMFPACK_LIBS ! TEXINFO_UMFPACK ! COLAMD_LIBS ! TEXINFO_COLAMD ! CCOLAMD_LIBS ! CHOLMOD_LIBS ! TEXINFO_CHOLMOD ! CXSPARSE_LIBS ! ARPACK_LIBS ! STATIC_LIBS ! SHARED_LIBS ! FPICFLAG ! CPICFLAG ! CXXPICFLAG ! SHLEXT ! SHLLIB ! SHLBIN ! SHLEXT_VER ! SHLLIB_VER ! SHLBIN_VER ! SHLLINKEXT ! LIBPRE ! SHLPRE ! SHLLIBPRE ! SHLBINPRE ! SH_LD ! SH_LDFLAGS ! DL_LD ! DL_LDFLAGS ! MKOCTFILE_DL_LDFLAGS ! SONAME_FLAGS ! NO_OCT_FILE_STRIP ! RLD_FLAG ! TEMPLATE_AR ! TEMPLATE_ARFLAGS ! CRUFT_DLL_DEFS ! OCTAVE_DLL_DEFS ! OCTINTERP_DLL_DEFS ! OCTGRAPHICS_DLL_DEFS ! library_path_var ! SCRIPTS_EXE_SUFFIX ! ALLOCA ! LIBGLOB ! LD_CXX ! RDYNAMIC_FLAG ! ENABLE_DYNAMIC_LINKING ! LIBOCTINTERP ! LIBOCTAVE ! LIBCRUFT ! TERMLIBS ! LIBREADLINE ! AWK ! FIND ! SED ! PERL ! PYTHON ! LEX ! LEX_OUTPUT_ROOT ! LEXLIB ! LFLAGS ! YACC ! YFLAGS ! LN_S ! INSTALL_PROGRAM ! INSTALL_SCRIPT ! INSTALL_DATA ! DESKTOP_FILE_INSTALL ! GNUPLOT ! DEFAULT_PAGER ! GPERF ! GHOSTSCRIPT ! MAKEINFO ! TEXI2DVI ! TEXI2PDF ! UGLY_DEFS ! WARN_CFLAGS ! WARN_CXXFLAGS ! subdirs ! ac_config_files LIBOBJS ! LTLIBOBJS' ! ac_subst_files='' ! ac_precious_vars='build_alias ! host_alias ! target_alias ! CC ! CFLAGS ! LDFLAGS ! LIBS ! CPPFLAGS ! CPP ! CXX ! CXXFLAGS ! CCC ! CXXCPP ! XMKMF ! BUILD_CC ! BUILD_CFLAGS ! BUILD_CXX ! BUILD_CXXFLAGS ! BUILD_LDFLAGS ! BUILD_EXEEXT ! F77 ! FFLAGS ! YACC ! YFLAGS' ! ac_subdirs_all='scripts' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null --- 589,887 ---- # include #endif" ! enable_option_checking=no ! ac_subst_vars='LTLIBOBJS LIBOBJS ! ac_config_files ! subdirs ! WARN_CXXFLAGS ! WARN_CFLAGS ! UGLY_DEFS ! TEXI2PDF ! TEXI2DVI ! MAKEINFO ! GHOSTSCRIPT ! GPERF ! DEFAULT_PAGER ! GNUPLOT ! DESKTOP_FILE_INSTALL ! INSTALL_DATA ! INSTALL_SCRIPT ! INSTALL_PROGRAM ! LN_S ! YFLAGS ! YACC ! LFLAGS ! LEXLIB ! LEX_OUTPUT_ROOT ! LEX ! PYTHON ! PERL ! SED ! FIND ! AWK ! LIBREADLINE ! TERMLIBS ! LIBCRUFT ! LIBOCTAVE ! LIBOCTINTERP ! ENABLE_DYNAMIC_LINKING ! RDYNAMIC_FLAG ! LD_CXX ! LIBGLOB ! ALLOCA ! SCRIPTS_EXE_SUFFIX ! library_path_var ! OCTGRAPHICS_DLL_DEFS ! OCTINTERP_DLL_DEFS ! OCTAVE_DLL_DEFS ! CRUFT_DLL_DEFS ! TEMPLATE_ARFLAGS ! TEMPLATE_AR ! RLD_FLAG ! NO_OCT_FILE_STRIP ! SONAME_FLAGS ! MKOCTFILE_DL_LDFLAGS ! DL_LDFLAGS ! DL_LD ! SH_LDFLAGS ! SH_LD ! SHLBINPRE ! SHLLIBPRE ! SHLPRE ! LIBPRE ! SHLLINKEXT ! SHLBIN_VER ! SHLLIB_VER ! SHLEXT_VER ! SHLBIN ! SHLLIB ! SHLEXT ! CXXPICFLAG ! CPICFLAG ! FPICFLAG ! SHARED_LIBS ! STATIC_LIBS ! ARPACK_LIBS ! CXSPARSE_LIBS ! TEXINFO_CHOLMOD ! CHOLMOD_LIBS ! CCOLAMD_LIBS ! TEXINFO_COLAMD ! COLAMD_LIBS ! TEXINFO_UMFPACK ! UMFPACK_LIBS ! CAMD_LIBS ! AMD_LIBS ! QRUPDATE_LIBS ! LAPACK_DIR ! BLAS_DIR ! LAPACK_LIBS ! BLAS_LIBS ! F77_FLOAT_STORE_FLAG ! FC ! XTRA_CRUFT_SH_LDFLAGS ! F77_APPEND_EXTRA_UNDERSCORE ! F77_APPEND_UNDERSCORE ! F77_TOLOWER ! FLIBS ! ac_ct_F77 ! FFLAGS ! F77 ! RANLIB ! ARFLAGS ! AR ! GRAPHICS_LIBS ! GRAPHICS_CFLAGS ! FLTK_CONFIG ! FT2_LIBS ! FT2_CFLAGS ! FT2_CONFIG ! OPENGL_LIBS ! MAGICK_CONFIG ! CURL_LIBS ! GLPK_LIBS ! FFTW_LIBS ! FFT_DIR ! REGEX_LIBS ! WITH_PCRE_CONFIG ! TEXINFO_QHULL ! QHULL_LIBS ! BUILD_EXEEXT ! BUILD_LDFLAGS ! BUILD_CXXFLAGS ! BUILD_CXX ! BUILD_CFLAGS ! BUILD_CC ! LD_STATIC_FLAG ! XTRA_CXXFLAGS ! XTRA_CFLAGS ! CARBON_LIBS ! X11_LIBS ! X11_INCFLAGS ! XMKMF ! PTHREAD_CFLAGS ! PTHREAD_LIBS ! PTHREAD_CC ! acx_pthread_config ! DEPEND_EXTRA_SED_PATTERN ! DEPEND_FLAGS ! INCLUDE_DEPS ! CC_VERSION ! CXX_VERSION ! CXXCPP ! ac_ct_CXX ! CXXFLAGS ! CXX ! USE_64_BIT_IDX_T ! OCTAVE_IDX_TYPE ! config_opts ! imagedir ! localveroctfiledir ! localapioctfiledir ! localoctfiledir ! octfiledir ! localverarchlibdir ! localapiarchlibdir ! localarchlibdir ! archlibdir ! octlibdir ! octetcdir ! localverfcnfiledir ! localapifcnfiledir ! localfcnfiledir ! fcnfiledir ! octincludedir ! infofile ! doc_cache_file ! man1ext ! man1dir ! sepchar ! EGREP ! GREP ! CPP ! OBJEXT ! EXEEXT ! ac_ct_CC ! CPPFLAGS ! LDFLAGS ! CFLAGS ! CC ! canonical_host_type ! host_os ! host_vendor ! host_cpu ! host ! build_os ! build_vendor ! build_cpu ! build ! target_alias ! host_alias ! build_alias ! LIBS ! ECHO_T ! ECHO_N ! ECHO_C ! DEFS ! mandir ! localedir ! libdir ! psdir ! pdfdir ! dvidir ! htmldir ! infodir ! docdir ! oldincludedir ! includedir ! localstatedir ! sharedstatedir ! sysconfdir ! datadir ! datarootdir ! libexecdir ! sbindir ! bindir ! program_transform_name ! prefix ! exec_prefix ! PACKAGE_URL ! PACKAGE_BUGREPORT ! PACKAGE_STRING ! PACKAGE_VERSION ! PACKAGE_TARNAME ! PACKAGE_NAME ! PATH_SEPARATOR ! SHELL' ! ac_subst_files='' ! ac_user_opts=' ! enable_option_checking ! with_sepchar ! enable_bounds_check ! enable_64 ! with_x ! with_framework_carbon ! with_zlib ! with_hdf5 ! with_fftw ! with_glpk ! with_curl ! with_framework_opengl ! with_ft_prefix ! with_ft_exec_prefix ! enable_freetypetest ! with_fltk_prefix ! with_fltk_exec_prefix ! with_blas ! with_lapack ! with_qrupdate ! with_amd ! with_umfpack ! with_colamd ! with_ccolamd ! with_cholmod ! with_cxsparse ! with_arpack ! enable_static ! enable_shared ! enable_dl ! enable_rpath ! enable_readline ! enable_extra_warning_flags ! enable_strict_warning_flags ! ' ! ac_precious_vars='build_alias ! host_alias ! target_alias ! CC ! CFLAGS ! LDFLAGS ! LIBS ! CPPFLAGS ! CPP ! CXX ! CXXFLAGS ! CCC ! CXXCPP ! XMKMF ! BUILD_CC ! BUILD_CFLAGS ! BUILD_CXX ! BUILD_CXXFLAGS ! BUILD_LDFLAGS ! BUILD_EXEEXT ! F77 ! FFLAGS ! YACC ! YFLAGS' ! ac_subdirs_all='scripts' # Initialize some variables set by options. ac_init_help= ac_init_version=false + ac_unrecognized_opts= + ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null *************** *** 961,973 **** datarootdir=$ac_optarg ;; -disable-* | --disable-*) ! ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && ! { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ! { (exit 1); exit 1; }; } ! ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` ! eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; --- 980,999 ---- datarootdir=$ac_optarg ;; -disable-* | --disable-*) ! ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && ! as_fn_error "invalid feature name: $ac_useropt" ! ac_useropt_orig=$ac_useropt ! ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` ! case $ac_user_opts in ! *" ! "enable_$ac_useropt" ! "*) ;; ! *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ! ac_unrecognized_sep=', ';; ! esac ! eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; *************** *** 980,992 **** dvidir=$ac_optarg ;; -enable-* | --enable-*) ! ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && ! { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ! { (exit 1); exit 1; }; } ! ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` ! eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ --- 1006,1025 ---- dvidir=$ac_optarg ;; -enable-* | --enable-*) ! ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && ! as_fn_error "invalid feature name: $ac_useropt" ! ac_useropt_orig=$ac_useropt ! ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` ! case $ac_user_opts in ! *" ! "enable_$ac_useropt" ! "*) ;; ! *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ! ac_unrecognized_sep=', ';; ! esac ! eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ *************** *** 1177,1198 **** ac_init_version=: ;; -with-* | --with-*) ! ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && ! { echo "$as_me: error: invalid package name: $ac_package" >&2 ! { (exit 1); exit 1; }; } ! ac_package=`echo $ac_package | sed 's/[-.]/_/g'` ! eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ! ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && ! { echo "$as_me: error: invalid package name: $ac_package" >&2 ! { (exit 1); exit 1; }; } ! ac_package=`echo $ac_package | sed 's/[-.]/_/g'` ! eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. --- 1210,1245 ---- ac_init_version=: ;; -with-* | --with-*) ! ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && ! as_fn_error "invalid package name: $ac_useropt" ! ac_useropt_orig=$ac_useropt ! ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` ! case $ac_user_opts in ! *" ! "with_$ac_useropt" ! "*) ;; ! *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ! ac_unrecognized_sep=', ';; ! esac ! eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ! ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && ! as_fn_error "invalid package name: $ac_useropt" ! ac_useropt_orig=$ac_useropt ! ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` ! case $ac_user_opts in ! *" ! "with_$ac_useropt" ! "*) ;; ! *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ! ac_unrecognized_sep=', ';; ! esac ! eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. *************** *** 1212,1236 **** | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; ! -*) { echo "$as_me: error: unrecognized option: $ac_option ! Try \`$0 --help' for more information." >&2 ! { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. ! expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && ! { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 ! { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. ! echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && ! echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; --- 1259,1283 ---- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; ! -*) as_fn_error "unrecognized option: \`$ac_option' ! Try \`$0 --help' for more information." ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. ! case $ac_envvar in #( ! '' | [0-9]* | *[!_$as_cr_alnum]* ) ! as_fn_error "invalid variable name: \`$ac_envvar'" ;; ! esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. ! $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && ! $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; *************** *** 1239,1261 **** if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` ! { echo "$as_me: error: missing argument to $ac_option" >&2 ! { (exit 1); exit 1; }; } fi ! # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac ! { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 ! { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' --- 1286,1321 ---- if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` ! as_fn_error "missing argument to $ac_option" fi ! if test -n "$ac_unrecognized_opts"; then ! case $enable_option_checking in ! no) ;; ! fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; ! *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; ! esac ! fi ! ! # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac ! as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' *************** *** 1269,1275 **** if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe ! echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes --- 1329,1335 ---- if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe ! $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes *************** *** 1285,1307 **** ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || ! { echo "$as_me: error: Working directory cannot be determined" >&2 ! { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || ! { echo "$as_me: error: pwd does not report name of working directory" >&2 ! { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ! ac_confdir=`$as_dirname -- "$0" || ! $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! X"$0" : 'X\(//\)[^/]' \| \ ! X"$0" : 'X\(//\)$' \| \ ! X"$0" : 'X\(/\)' \| . 2>/dev/null || ! echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q --- 1345,1365 ---- ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || ! as_fn_error "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || ! as_fn_error "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ! ac_confdir=`$as_dirname -- "$as_myself" || ! $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! X"$as_myself" : 'X\(//\)[^/]' \| \ ! X"$as_myself" : 'X\(//\)$' \| \ ! X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || ! $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q *************** *** 1328,1340 **** fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." ! { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 ! { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( ! cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 ! { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then --- 1386,1396 ---- fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." ! as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( ! cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then *************** *** 1382,1390 **** Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX ! [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX ! [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify --- 1438,1446 ---- Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX ! [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX ! [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify *************** *** 1394,1418 **** For better control, use the options below. Fine tuning of the installation directories: ! --bindir=DIR user executables [EPREFIX/bin] ! --sbindir=DIR system admin executables [EPREFIX/sbin] ! --libexecdir=DIR program executables [EPREFIX/libexec] ! --sysconfdir=DIR read-only single-machine data [PREFIX/etc] ! --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] ! --localstatedir=DIR modifiable single-machine data [PREFIX/var] ! --libdir=DIR object code libraries [EPREFIX/lib] ! --includedir=DIR C header files [PREFIX/include] ! --oldincludedir=DIR C header files for non-gcc [/usr/include] ! --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] ! --datadir=DIR read-only architecture-independent data [DATAROOTDIR] ! --infodir=DIR info documentation [DATAROOTDIR/info] ! --localedir=DIR locale-dependent data [DATAROOTDIR/locale] ! --mandir=DIR man documentation [DATAROOTDIR/man] ! --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] ! --htmldir=DIR html documentation [DOCDIR] ! --dvidir=DIR dvi documentation [DOCDIR] ! --pdfdir=DIR pdf documentation [DOCDIR] ! --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF --- 1450,1474 ---- For better control, use the options below. Fine tuning of the installation directories: ! --bindir=DIR user executables [EPREFIX/bin] ! --sbindir=DIR system admin executables [EPREFIX/sbin] ! --libexecdir=DIR program executables [EPREFIX/libexec] ! --sysconfdir=DIR read-only single-machine data [PREFIX/etc] ! --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] ! --localstatedir=DIR modifiable single-machine data [PREFIX/var] ! --libdir=DIR object code libraries [EPREFIX/lib] ! --includedir=DIR C header files [PREFIX/include] ! --oldincludedir=DIR C header files for non-gcc [/usr/include] ! --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] ! --datadir=DIR read-only architecture-independent data [DATAROOTDIR] ! --infodir=DIR info documentation [DATAROOTDIR/info] ! --localedir=DIR locale-dependent data [DATAROOTDIR/locale] ! --mandir=DIR man documentation [DATAROOTDIR/man] ! --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] ! --htmldir=DIR html documentation [DOCDIR] ! --dvidir=DIR dvi documentation [DOCDIR] ! --pdfdir=DIR pdf documentation [DOCDIR] ! --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF *************** *** 1432,1437 **** --- 1488,1494 ---- cat <<\_ACEOF Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-bounds-check bounds checking for indexing in internal array *************** *** 1520,1525 **** --- 1577,1583 ---- Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. + Report bugs to the package provider. _ACEOF ac_status=$? fi *************** *** 1527,1541 **** if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue ! test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ! ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ! ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; --- 1585,1601 ---- if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue ! test -d "$ac_dir" || ! { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || ! continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ! ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ! ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; *************** *** 1571,1577 **** echo && $SHELL "$ac_srcdir/configure" --help=recursive else ! echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done --- 1631,1637 ---- echo && $SHELL "$ac_srcdir/configure" --help=recursive else ! $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done *************** *** 1581,3859 **** if $ac_init_version; then cat <<\_ACEOF configure ! generated by GNU Autoconf 2.61 ! Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, ! 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi - cat >config.log <<_ACEOF - This file contains any messages produced by compilers while - running configure, to aid debugging if configure makes a mistake. ! It was created by $as_me, which was ! generated by GNU Autoconf 2.61. Invocation command line was ! $ $0 $@ ! _ACEOF ! exec 5>>config.log { ! cat <<_ASUNAME ! ## --------- ## ! ## Platform. ## ! ## --------- ## ! hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` ! uname -m = `(uname -m) 2>/dev/null || echo unknown` ! uname -r = `(uname -r) 2>/dev/null || echo unknown` ! uname -s = `(uname -s) 2>/dev/null || echo unknown` ! uname -v = `(uname -v) 2>/dev/null || echo unknown` ! /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` ! /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` ! /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` ! /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` ! /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` ! /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` ! /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` ! /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` ! /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` ! _ASUNAME ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! echo "PATH: $as_dir" ! done ! IFS=$as_save_IFS ! } >&5 ! cat >&5 <<_ACEOF ! ## ----------- ## ! ## Core tests. ## ! ## ----------- ## _ACEOF ! # Keep a trace of the command line. ! # Strip out --no-create and --no-recursion so they do not pile up. ! # Strip out --silent because we don't want to record it for future runs. ! # Also quote any args containing shell meta-characters. ! # Make two passes to allow for proper duplicate-argument suppression. ! ac_configure_args= ! ac_configure_args0= ! ac_configure_args1= ! ac_must_keep_next=false ! for ac_pass in 1 2 ! do ! for ac_arg ! do ! case $ac_arg in ! -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; ! -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ! | -silent | --silent | --silen | --sile | --sil) ! continue ;; ! *\'*) ! ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ! esac ! case $ac_pass in ! 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; ! 2) ! ac_configure_args1="$ac_configure_args1 '$ac_arg'" ! if test $ac_must_keep_next = true; then ! ac_must_keep_next=false # Got value, back to normal. ! else ! case $ac_arg in ! *=* | --config-cache | -C | -disable-* | --disable-* \ ! | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ ! | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ ! | -with-* | --with-* | -without-* | --without-* | --x) ! case "$ac_configure_args0 " in ! "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; ! esac ! ;; ! -* ) ac_must_keep_next=true ;; ! esac ! fi ! ac_configure_args="$ac_configure_args '$ac_arg'" ! ;; ! esac ! done ! done ! $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } ! $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } ! # When interrupted or exit'd, cleanup temporary files, and complete ! # config.log. We remove comments because anyway the quotes in there ! # would cause problems or look ugly. ! # WARNING: Use '\'' to represent an apostrophe within the trap. ! # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. ! trap 'exit_status=$? ! # Save into config.log some information that might help in debugging. ! { ! echo ! cat <<\_ASBOX ! ## ---------------- ## ! ## Cache variables. ## ! ## ---------------- ## ! _ASBOX ! echo ! # The following way of writing the cache mishandles newlines in values, ! ( ! for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do ! eval ac_val=\$$ac_var ! case $ac_val in #( ! *${as_nl}*) ! case $ac_var in #( ! *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ! echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ! esac ! case $ac_var in #( ! _ | IFS | as_nl) ;; #( ! *) $as_unset $ac_var ;; ! esac ;; ! esac done ! (set) 2>&1 | ! case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( ! *${as_nl}ac_space=\ *) ! sed -n \ ! "s/'\''/'\''\\\\'\'''\''/g; ! s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ! ;; #( ! *) ! sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ! ;; ! esac | ! sort ! ) ! echo ! cat <<\_ASBOX ! ## ----------------- ## ! ## Output variables. ## ! ## ----------------- ## ! _ASBOX ! echo ! for ac_var in $ac_subst_vars ! do ! eval ac_val=\$$ac_var ! case $ac_val in ! *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; ! esac ! echo "$ac_var='\''$ac_val'\''" ! done | sort ! echo ! if test -n "$ac_subst_files"; then ! cat <<\_ASBOX ! ## ------------------- ## ! ## File substitutions. ## ! ## ------------------- ## ! _ASBOX ! echo ! for ac_var in $ac_subst_files ! do ! eval ac_val=\$$ac_var ! case $ac_val in ! *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; ! esac ! echo "$ac_var='\''$ac_val'\''" ! done | sort ! echo ! fi ! ! if test -s confdefs.h; then ! cat <<\_ASBOX ! ## ----------- ## ! ## confdefs.h. ## ! ## ----------- ## ! _ASBOX ! echo ! cat confdefs.h ! echo ! fi ! test "$ac_signal" != 0 && ! echo "$as_me: caught signal $ac_signal" ! echo "$as_me: exit $exit_status" ! } >&5 ! rm -f core *.core core.conftest.* && ! rm -f -r conftest* confdefs* conf$$* $ac_clean_files && ! exit $exit_status ! ' 0 ! for ac_signal in 1 2 13 15; do ! trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal ! done ! ac_signal=0 ! ! # confdefs.h avoids OS command line length limits that DEFS can exceed. ! rm -f -r conftest* confdefs.h ! ! # Predefined preprocessor variables. ! ! cat >>confdefs.h <<_ACEOF ! #define PACKAGE_NAME "$PACKAGE_NAME" ! _ACEOF ! ! ! cat >>confdefs.h <<_ACEOF ! #define PACKAGE_TARNAME "$PACKAGE_TARNAME" ! _ACEOF ! ! ! cat >>confdefs.h <<_ACEOF ! #define PACKAGE_VERSION "$PACKAGE_VERSION" ! _ACEOF ! ! ! cat >>confdefs.h <<_ACEOF ! #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF ! ! cat >>confdefs.h <<_ACEOF ! #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF ! ! ! # Let the site file select an alternate cache file if it wants to. ! # Prefer explicitly selected file to automatically selected ones. ! if test -n "$CONFIG_SITE"; then ! set x "$CONFIG_SITE" ! elif test "x$prefix" != xNONE; then ! set x "$prefix/share/config.site" "$prefix/etc/config.site" else ! set x "$ac_default_prefix/share/config.site" \ ! "$ac_default_prefix/etc/config.site" fi ! shift ! for ac_site_file ! do ! if test -r "$ac_site_file"; then ! { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 ! echo "$as_me: loading site script $ac_site_file" >&6;} ! sed 's/^/| /' "$ac_site_file" >&5 ! . "$ac_site_file" ! fi done ! if test -r "$cache_file"; then ! # Some versions of bash will fail to source /dev/null (special ! # files actually), so we avoid doing that. ! if test -f "$cache_file"; then ! { echo "$as_me:$LINENO: loading cache $cache_file" >&5 ! echo "$as_me: loading cache $cache_file" >&6;} ! case $cache_file in ! [\\/]* | ?:[\\/]* ) . "$cache_file";; ! *) . "./$cache_file";; ! esac ! fi else ! { echo "$as_me:$LINENO: creating cache $cache_file" >&5 ! echo "$as_me: creating cache $cache_file" >&6;} ! >$cache_file fi - # Check that the precious variables saved in the cache have kept the same - # value. - ac_cache_corrupted=false - for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 - echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 - echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 - echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 - echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 - echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac fi ! done ! if $ac_cache_corrupted; then ! { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 ! echo "$as_me: error: changes in the environment can compromise the build" >&2;} ! { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 ! echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} ! { (exit 1); exit 1; }; } ! fi ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ac_config_headers="$ac_config_headers config.h" ! ! ac_aux_dir= ! for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do ! if test -f "$ac_dir/install-sh"; then ! ac_aux_dir=$ac_dir ! ac_install_sh="$ac_aux_dir/install-sh -c" ! break ! elif test -f "$ac_dir/install.sh"; then ! ac_aux_dir=$ac_dir ! ac_install_sh="$ac_aux_dir/install.sh -c" ! break ! elif test -f "$ac_dir/shtool"; then ! ac_aux_dir=$ac_dir ! ac_install_sh="$ac_aux_dir/shtool install -c" ! break ! fi ! done ! if test -z "$ac_aux_dir"; then ! { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 ! echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} ! { (exit 1); exit 1; }; } fi ! # These three variables are undocumented and unsupported, ! # and are intended to be withdrawn in a future Autoconf release. ! # They can cause serious problems if a builder's source tree is in a directory ! # whose full name contains unusual characters. ! ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ! ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ! ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. ! # Make sure we can run config.sub. ! $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || ! { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 ! echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} ! { (exit 1); exit 1; }; } ! ! { echo "$as_me:$LINENO: checking build system type" >&5 ! echo $ECHO_N "checking build system type... $ECHO_C" >&6; } ! if test "${ac_cv_build+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! ac_build_alias=$build_alias ! test "x$ac_build_alias" = x && ! ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` ! test "x$ac_build_alias" = x && ! { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 ! echo "$as_me: error: cannot guess build type; you must specify one" >&2;} ! { (exit 1); exit 1; }; } ! ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || ! { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 ! echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} ! { (exit 1); exit 1; }; } fi ! { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 ! echo "${ECHO_T}$ac_cv_build" >&6; } ! case $ac_cv_build in ! *-*-*) ;; ! *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 ! echo "$as_me: error: invalid value of canonical build" >&2;} ! { (exit 1); exit 1; }; };; ! esac ! build=$ac_cv_build ! ac_save_IFS=$IFS; IFS='-' ! set x $ac_cv_build ! shift ! build_cpu=$1 ! build_vendor=$2 ! shift; shift ! # Remember, the first character of IFS is used to create $*, ! # except with old shells: ! build_os=$* ! IFS=$ac_save_IFS ! case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac ! { echo "$as_me:$LINENO: checking host system type" >&5 ! echo $ECHO_N "checking host system type... $ECHO_C" >&6; } ! if test "${ac_cv_host+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test "x$host_alias" = x; then ! ac_cv_host=$ac_cv_build else ! ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || ! { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 ! echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} ! { (exit 1); exit 1; }; } ! fi fi ! { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 ! echo "${ECHO_T}$ac_cv_host" >&6; } ! case $ac_cv_host in ! *-*-*) ;; ! *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 ! echo "$as_me: error: invalid value of canonical host" >&2;} ! { (exit 1); exit 1; }; };; ! esac ! host=$ac_cv_host ! ac_save_IFS=$IFS; IFS='-' ! set x $ac_cv_host ! shift ! host_cpu=$1 ! host_vendor=$2 ! shift; shift ! # Remember, the first character of IFS is used to create $*, ! # except with old shells: ! host_os=$* ! IFS=$ac_save_IFS ! case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac ! if test -z "$host"; then ! host=unknown ! fi ! canonical_host_type=$host ! if test "$host" = unknown; then ! { echo "$as_me:$LINENO: WARNING: configuring Octave for unknown system type ! " >&5 ! echo "$as_me: WARNING: configuring Octave for unknown system type ! " >&2;} ! fi ! cat >>confdefs.h <<\_ACEOF ! #define OCTAVE_SOURCE 1 ! _ACEOF ! ### Produce unistd.h for MSVC target, this simplifies changes in ! ### Octave source tree and avoid problems with lex-generated code. ! case "$canonical_host_type" in ! *-*-msdosmsvc) ! { echo "$as_me:$LINENO: Generating replacement for for MSVC" >&5 ! echo "$as_me: Generating replacement for for MSVC" >&6;} ! cat << \EOF > unistd.h ! /* File generated by configure script. */ ! #include ! #include ! #include ! EOF ! CPPFLAGS="-I. $CPPFLAGS" ! ;; ! esac ! cat >>confdefs.h <<\_ACEOF ! #define _GNU_SOURCE 1 _ACEOF - - ac_ext=c - ac_cpp='$CPP $CPPFLAGS' - ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' - ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' - ac_compiler_gnu=$ac_cv_c_compiler_gnu - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. - set dummy ${ac_tool_prefix}gcc; ac_word=$2 - { echo "$as_me:$LINENO: checking for $ac_word" >&5 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } - if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_CC="${ac_tool_prefix}gcc" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! fi fi ! CC=$ac_cv_prog_CC ! if test -n "$CC"; then ! { echo "$as_me:$LINENO: result: $CC" >&5 ! echo "${ECHO_T}$CC" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ! fi ! if test -z "$ac_cv_prog_CC"; then ! ac_ct_CC=$CC ! # Extract the first word of "gcc", so it can be a program name with args. ! set dummy gcc; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test -n "$ac_ct_CC"; then ! ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_ac_ct_CC="gcc" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS fi ! fi ! ac_ct_CC=$ac_cv_prog_ac_ct_CC ! if test -n "$ac_ct_CC"; then ! { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ! echo "${ECHO_T}$ac_ct_CC" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! if test "x$ac_ct_CC" = x; then ! CC="" ! else ! case $cross_compiling:$ac_tool_warned in ! yes:) ! { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ! whose name does not start with the host triplet. If you think this ! configuration is useful to you, please write to autoconf@gnu.org." >&5 ! echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ! whose name does not start with the host triplet. If you think this ! configuration is useful to you, please write to autoconf@gnu.org." >&2;} ! ac_tool_warned=yes ;; ! esac ! CC=$ac_ct_CC ! fi else ! CC="$ac_cv_prog_CC" ! fi ! if test -z "$CC"; then ! if test -n "$ac_tool_prefix"; then ! # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. ! set dummy ${ac_tool_prefix}cc; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_CC+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test -n "$CC"; then ! ac_cv_prog_CC="$CC" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_CC="${ac_tool_prefix}cc" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! fi ! fi ! CC=$ac_cv_prog_CC ! if test -n "$CC"; then ! { echo "$as_me:$LINENO: result: $CC" >&5 ! echo "${ECHO_T}$CC" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ! fi ! fi ! if test -z "$CC"; then ! # Extract the first word of "cc", so it can be a program name with args. ! set dummy cc; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_CC+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test -n "$CC"; then ! ac_cv_prog_CC="$CC" # Let the user override the test. else ! ac_prog_rejected=no ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ! ac_prog_rejected=yes ! continue ! fi ! ac_cv_prog_CC="cc" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! if test $ac_prog_rejected = yes; then ! # We found a bogon in the path, so make sure we never use it. ! set dummy $ac_cv_prog_CC ! shift ! if test $# != 0; then ! # We chose a different compiler from the bogus one. ! # However, it has the same basename, so the bogon will be chosen ! # first if we set CC to just the basename; use the full file name. ! shift ! ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" ! fi ! fi ! fi ! fi ! CC=$ac_cv_prog_CC ! if test -n "$CC"; then ! { echo "$as_me:$LINENO: result: $CC" >&5 ! echo "${ECHO_T}$CC" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! fi ! if test -z "$CC"; then ! if test -n "$ac_tool_prefix"; then ! for ac_prog in cl.exe ! do ! # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ! set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_CC+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test -n "$CC"; then ! ac_cv_prog_CC="$CC" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_CC="$ac_tool_prefix$ac_prog" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! fi ! fi ! CC=$ac_cv_prog_CC ! if test -n "$CC"; then ! { echo "$as_me:$LINENO: result: $CC" >&5 ! echo "${ECHO_T}$CC" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! test -n "$CC" && break ! done ! fi ! if test -z "$CC"; then ! ac_ct_CC=$CC ! for ac_prog in cl.exe ! do ! # Extract the first word of "$ac_prog", so it can be a program name with args. ! set dummy $ac_prog; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test -n "$ac_ct_CC"; then ! ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_ac_ct_CC="$ac_prog" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS fi fi ! ac_ct_CC=$ac_cv_prog_ac_ct_CC ! if test -n "$ac_ct_CC"; then ! { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ! echo "${ECHO_T}$ac_ct_CC" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! test -n "$ac_ct_CC" && break ! done ! if test "x$ac_ct_CC" = x; then ! CC="" ! else ! case $cross_compiling:$ac_tool_warned in ! yes:) ! { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ! whose name does not start with the host triplet. If you think this ! configuration is useful to you, please write to autoconf@gnu.org." >&5 ! echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ! whose name does not start with the host triplet. If you think this ! configuration is useful to you, please write to autoconf@gnu.org." >&2;} ! ac_tool_warned=yes ;; ! esac ! CC=$ac_ct_CC ! fi fi ! fi ! test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH ! See \`config.log' for more details." >&5 ! echo "$as_me: error: no acceptable C compiler found in \$PATH ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } ! # Provide some information about the compiler. ! echo "$as_me:$LINENO: checking for C compiler version" >&5 ! ac_compiler=`set X $ac_compile; echo $2` ! { (ac_try="$ac_compiler --version >&5" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compiler --version >&5") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } ! { (ac_try="$ac_compiler -v >&5" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compiler -v >&5") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } ! { (ac_try="$ac_compiler -V >&5" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compiler -V >&5") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ! ; return 0; } _ACEOF ! ac_clean_files_save=$ac_clean_files ! ac_clean_files="$ac_clean_files a.out a.exe b.out" ! # Try to create an executable without -o first, disregard a.out. ! # It will help us diagnose broken compilers, and finding out an intuition ! # of exeext. ! { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 ! echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ! ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` ! # ! # List of possible output files, starting from the most likely. ! # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) ! # only as a last resort. b.out is created by i960 compilers. ! ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' ! # ! # The IRIX 6 linker writes into existing files which may not be ! # executable, retaining their permissions. Remove them first so a ! # subsequent execution test works. ! ac_rmfiles= ! for ac_file in $ac_files ! do ! case $ac_file in ! *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; ! * ) ac_rmfiles="$ac_rmfiles $ac_file";; ! esac ! done ! rm -f $ac_rmfiles ! ! if { (ac_try="$ac_link_default" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link_default") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; then ! # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. ! # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' ! # in a Makefile. We should not override ac_cv_exeext if it was cached, ! # so that the user can short-circuit this test for compilers unknown to ! # Autoconf. ! for ac_file in $ac_files '' ! do ! test -f "$ac_file" || continue ! case $ac_file in ! *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ! ;; ! [ab].out ) ! # We found the default executable, but exeext='' is most ! # certainly right. ! break;; ! *.* ) ! if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; ! then :; else ! ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` ! fi ! # We set ac_cv_exeext here because the later test for it is not ! # safe: cross compilers may not add the suffix if given an `-o' ! # argument, so we may need to know it at that point already. ! # Even if this section looks crufty: it has the advantage of ! # actually working. ! break;; ! * ) ! break;; ! esac ! done ! test "$ac_cv_exeext" = no && ac_cv_exeext= ! else ! ac_file='' ! fi ! ! { echo "$as_me:$LINENO: result: $ac_file" >&5 ! echo "${ECHO_T}$ac_file" >&6; } ! if test -z "$ac_file"; then ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! { { echo "$as_me:$LINENO: error: C compiler cannot create executables ! See \`config.log' for more details." >&5 ! echo "$as_me: error: C compiler cannot create executables ! See \`config.log' for more details." >&2;} ! { (exit 77); exit 77; }; } fi ! ! ac_exeext=$ac_cv_exeext ! ! # Check that the compiler produces executables we can run. If not, either ! # the compiler is broken, or we cross compile. ! { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 ! echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } ! # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 ! # If not cross compiling, check that we can run a simple program. ! if test "$cross_compiling" != yes; then ! if { ac_try='./$ac_file' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! cross_compiling=no ! else ! if test "$cross_compiling" = maybe; then ! cross_compiling=yes ! else ! { { echo "$as_me:$LINENO: error: cannot run C compiled programs. ! If you meant to cross compile, use \`--host'. ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot run C compiled programs. ! If you meant to cross compile, use \`--host'. ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } ! fi ! fi fi ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ! rm -f a.out a.exe conftest$ac_cv_exeext b.out ! ac_clean_files=$ac_clean_files_save ! # Check that the compiler produces executables we can run. If not, either ! # the compiler is broken, or we cross compile. ! { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 ! echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } ! { echo "$as_me:$LINENO: result: $cross_compiling" >&5 ! echo "${ECHO_T}$cross_compiling" >&6; } ! ! { echo "$as_me:$LINENO: checking for suffix of executables" >&5 ! echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; then ! # If both `conftest.exe' and `conftest' are `present' (well, observable) ! # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will ! # work properly (i.e., refer to `conftest.exe'), while it won't with ! # `rm'. ! for ac_file in conftest.exe conftest conftest.*; do ! test -f "$ac_file" || continue ! case $ac_file in ! *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; ! *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` ! break;; ! * ) break;; ! esac ! done ! else ! { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot compute suffix of executables: cannot compile and link ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } fi ! rm -f conftest$ac_cv_exeext ! { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 ! echo "${ECHO_T}$ac_cv_exeext" >&6; } ! ! rm -f conftest.$ac_ext ! EXEEXT=$ac_cv_exeext ! ac_exeext=$EXEEXT ! { echo "$as_me:$LINENO: checking for suffix of object files" >&5 ! echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } ! if test "${ac_cv_objext+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! int ! main () ! { ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.o conftest.obj ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; then ! for ac_file in conftest.o conftest.obj conftest.*; do ! test -f "$ac_file" || continue; ! case $ac_file in ! *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; ! *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` ! break;; ! esac ! done ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot compute suffix of object files: cannot compile ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } ! fi - rm -f conftest.$ac_cv_objext conftest.$ac_ext - fi - { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 - echo "${ECHO_T}$ac_cv_objext" >&6; } - OBJEXT=$ac_cv_objext - ac_objext=$OBJEXT - { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 - echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } - if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! int ! main () { ! #ifndef __GNUC__ ! choke me ! #endif ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_compiler_gnu=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_compiler_gnu=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_cv_c_compiler_gnu=$ac_compiler_gnu ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 ! echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } ! GCC=`test $ac_compiler_gnu = yes && echo yes` ! ac_test_CFLAGS=${CFLAGS+set} ! ac_save_CFLAGS=$CFLAGS ! { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 ! echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } ! if test "${ac_cv_prog_cc_g+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_save_c_werror_flag=$ac_c_werror_flag ! ac_c_werror_flag=yes ! ac_cv_prog_cc_g=no ! CFLAGS="-g" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! int ! main () ! { ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_prog_cc_g=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! CFLAGS="" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ - int - main () - { ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! : ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - int - main () - { ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_prog_cc_g=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_c_werror_flag=$ac_save_c_werror_flag ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 ! echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } ! if test "$ac_test_CFLAGS" = set; then ! CFLAGS=$ac_save_CFLAGS ! elif test $ac_cv_prog_cc_g = yes; then ! if test "$GCC" = yes; then ! CFLAGS="-g -O2" ! else ! CFLAGS="-g" ! fi ! else ! if test "$GCC" = yes; then ! CFLAGS="-O2" ! else ! CFLAGS= ! fi ! fi ! { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 ! echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } ! if test "${ac_cv_prog_cc_c89+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_cv_prog_cc_c89=no ! ac_save_CC=$CC ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - #include - #include - #include - #include - /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ - struct buf { int x; }; - FILE * (*rcsopen) (struct buf *, struct stat *, int); - static char *e (p, i) - char **p; - int i; - { - return p[i]; - } - static char *f (char * (*g) (char **, int), char **p, ...) - { - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; - } ! /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has ! function prototypes and stuff, but not '\xHH' hex character constants. ! These don't provoke an error unfortunately, instead are silently treated ! as 'x'. The following induces an error, until -std is added to get ! proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an ! array size at least. It's necessary to write '\x00'==0 to get something ! that's true only with -std. */ ! int osf4_cc_array ['\x00' == 0 ? 1 : -1]; ! /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters ! inside strings and character constants. */ ! #define FOO(x) 'x' ! int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; ! int test (int i, double x); ! struct s1 {int (*f) (int a);}; ! struct s2 {int (*f) (double a);}; ! int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); ! int argc; ! char **argv; ! int ! main () ! { ! return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ! ; ! return 0; ! } _ACEOF - for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" - do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext - if { (ac_try="$ac_compile" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! fi - rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break - done - rm -f conftest.$ac_ext - CC=$ac_save_CC fi ! # AC_CACHE_VAL ! case "x$ac_cv_prog_cc_c89" in ! x) ! { echo "$as_me:$LINENO: result: none needed" >&5 ! echo "${ECHO_T}none needed" >&6; } ;; ! xno) ! { echo "$as_me:$LINENO: result: unsupported" >&5 ! echo "${ECHO_T}unsupported" >&6; } ;; ! *) ! CC="$CC $ac_cv_prog_cc_c89" ! { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 ! echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; ! esac ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 - echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } - # On Suns, sometimes $CPP names a directory. - if test -n "$CPP" && test -d "$CPP"; then - CPP= - fi - if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false - for ac_c_preproc_warn_flag in '' yes - do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - #ifdef __STDC__ - # include - #else - # include - #endif - Syntax error - _ACEOF - if { (ac_try="$ac_cpp conftest.$ac_ext" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - # Broken: fails on valid input. - continue - fi - rm -f conftest.err conftest.$ac_ext - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - #include - _ACEOF - if { (ac_try="$ac_cpp conftest.$ac_ext" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. - continue - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - # Passes both tests. - ac_preproc_ok=: - break - fi ! rm -f conftest.err conftest.$ac_ext done ! # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! rm -f conftest.err conftest.$ac_ext ! if $ac_preproc_ok; then ! break fi ! done ! ac_cv_prog_CPP=$CPP ! ! fi ! CPP=$ac_cv_prog_CPP ! else ! ac_cv_prog_CPP=$CPP ! fi ! { echo "$as_me:$LINENO: result: $CPP" >&5 ! echo "${ECHO_T}$CPP" >&6; } ! ac_preproc_ok=false ! for ac_c_preproc_warn_flag in '' yes ! do ! # Use a header file that comes with gcc, so configuring glibc ! # with a fresh cross-compiler works. ! # Prefer to if __STDC__ is defined, since ! # exists even on freestanding compilers. ! # On the NeXT, cc -E runs the code through the compiler's parser, ! # not just through cpp. "Syntax error" is here to catch this case. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! Syntax error ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! : ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - # Broken: fails on valid input. - continue - fi ! rm -f conftest.err conftest.$ac_ext ! # OK, works on sane cases. Now check whether nonexistent headers ! # can be detected and how. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! # Broken: success on invalid input. ! continue else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - # Passes both tests. - ac_preproc_ok=: - break fi - rm -f conftest.err conftest.$ac_ext ! done ! # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! rm -f conftest.err conftest.$ac_ext ! if $ac_preproc_ok; then ! : else ! { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check ! See \`config.log' for more details." >&5 ! echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } fi ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 ! echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } ! if test "${ac_cv_path_GREP+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! # Extract the first word of "grep ggrep" to use in msg output ! if test -z "$GREP"; then ! set dummy grep ggrep; ac_prog_name=$2 ! if test "${ac_cv_path_GREP+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_path_GREP_found=false ! # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_prog in grep ggrep; do ! for ac_exec_ext in '' $ac_executable_extensions; do ! ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" ! { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue ! # Check for GNU ac_path_GREP and select it if it is found. ! # Check for GNU $ac_path_GREP ! case `"$ac_path_GREP" --version 2>&1` in ! *GNU*) ! ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ! *) ! ac_count=0 ! echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" ! while : ! do ! cat "conftest.in" "conftest.in" >"conftest.tmp" ! mv "conftest.tmp" "conftest.in" ! cp "conftest.in" "conftest.nl" ! echo 'GREP' >> "conftest.nl" ! "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break ! diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ! ac_count=`expr $ac_count + 1` ! if test $ac_count -gt ${ac_path_GREP_max-0}; then ! # Best one so far, save it but keep looking for a better one ! ac_cv_path_GREP="$ac_path_GREP" ! ac_path_GREP_max=$ac_count ! fi ! # 10*(2^10) chars as input seems more than enough ! test $ac_count -gt 10 && break done ! rm -f conftest.in conftest.tmp conftest.nl conftest.out;; ! esac - $ac_path_GREP_found && break 3 - done - done done IFS=$as_save_IFS - fi - - GREP="$ac_cv_path_GREP" - if test -z "$GREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 - echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } fi ! else ! ac_cv_path_GREP=$GREP fi ! fi - { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 - echo "${ECHO_T}$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" ! ! { echo "$as_me:$LINENO: checking for egrep" >&5 ! echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } ! if test "${ac_cv_path_EGREP+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 ! then ac_cv_path_EGREP="$GREP -E" ! else ! # Extract the first word of "egrep" to use in msg output ! if test -z "$EGREP"; then ! set dummy egrep; ac_prog_name=$2 ! if test "${ac_cv_path_EGREP+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_prog in egrep; do ! for ac_exec_ext in '' $ac_executable_extensions; do ! ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" ! { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue ! # Check for GNU ac_path_EGREP and select it if it is found. ! # Check for GNU $ac_path_EGREP ! case `"$ac_path_EGREP" --version 2>&1` in ! *GNU*) ! ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ! *) ! ac_count=0 ! echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" ! while : ! do ! cat "conftest.in" "conftest.in" >"conftest.tmp" ! mv "conftest.tmp" "conftest.in" ! cp "conftest.in" "conftest.nl" ! echo 'EGREP' >> "conftest.nl" ! "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break ! diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ! ac_count=`expr $ac_count + 1` ! if test $ac_count -gt ${ac_path_EGREP_max-0}; then ! # Best one so far, save it but keep looking for a better one ! ac_cv_path_EGREP="$ac_path_EGREP" ! ac_path_EGREP_max=$ac_count ! fi ! # 10*(2^10) chars as input seems more than enough ! test $ac_count -gt 10 && break done ! rm -f conftest.in conftest.tmp conftest.nl conftest.out;; ! esac - $ac_path_EGREP_found && break 3 - done - done done IFS=$as_save_IFS ! fi - - EGREP="$ac_cv_path_EGREP" - if test -z "$EGREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 - echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } fi ! else ! ac_cv_path_EGREP=$EGREP fi - fi fi ! { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 ! echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } ! EGREP="$ac_cv_path_EGREP" ! ! ! ! { echo "$as_me:$LINENO: checking for AIX" >&5 ! echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #ifdef _AIX ! yes ! #endif ! ! _ACEOF ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! $EGREP "yes" >/dev/null 2>&1; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! cat >>confdefs.h <<\_ACEOF ! #define _ALL_SOURCE 1 ! _ACEOF else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi - rm -f conftest* ! { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 ! echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } ! if test "${ac_cv_header_stdc+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! #include ! #include ! #include int main () { ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_header_stdc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cv_header_stdc=no fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ! if test $ac_cv_header_stdc = yes; then ! # SunOS 4.x string.h does not declare mem*, contrary to ANSI. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! ! _ACEOF ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! $EGREP "memchr" >/dev/null 2>&1; then ! : ! else ! ac_cv_header_stdc=no fi ! rm -f conftest* fi ! if test $ac_cv_header_stdc = yes; then ! # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! _ACEOF ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! $EGREP "free" >/dev/null 2>&1; then ! : else ! ac_cv_header_stdc=no ! fi ! rm -f conftest* ! fi ! if test $ac_cv_header_stdc = yes; then ! # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. ! if test "$cross_compiling" = yes; then ! : else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - #include - #include - #if ((' ' & 0x0FF) == 0x020) - # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') - # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) - #else - # define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) - # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) - #endif - #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { ! int i; ! for (i = 0; i < 256; i++) ! if (XOR (islower (i), ISLOWER (i)) ! || toupper (i) != TOUPPER (i)) ! return 2; return 0; } _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! : else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ! ( exit $ac_status ) ! ac_cv_header_stdc=no fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi ! fi ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 ! echo "${ECHO_T}$ac_cv_header_stdc" >&6; } ! if test $ac_cv_header_stdc = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define STDC_HEADERS 1 _ACEOF ! fi ! # On IRIX 5.3, sys/types and inttypes.h are conflicting. ! ! ! ! - for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h - do - as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` - { echo "$as_me:$LINENO: checking for $ac_header" >&5 - echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } - if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - $ac_includes_default ! #include <$ac_header> _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! eval "$as_ac_Header=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! eval "$as_ac_Header=no" fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF fi ! done ! if test "${ac_cv_header_minix_config_h+set}" = set; then ! { echo "$as_me:$LINENO: checking for minix/config.h" >&5 ! echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } ! if test "${ac_cv_header_minix_config_h+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 fi ! { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 ! echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking minix/config.h usability" >&5 ! echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! #include _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_header_compiler=no fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking minix/config.h presence" >&5 ! echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! #include _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} ! ;; ! esac ! { echo "$as_me:$LINENO: checking for minix/config.h" >&5 ! echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } ! if test "${ac_cv_header_minix_config_h+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! ac_cv_header_minix_config_h=$ac_header_preproc fi ! { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 ! echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } - fi - if test $ac_cv_header_minix_config_h = yes; then - MINIX=yes else ! MINIX= fi - if test "$MINIX" = yes; then - - cat >>confdefs.h <<\_ACEOF - #define _POSIX_SOURCE 1 - _ACEOF - - - cat >>confdefs.h <<\_ACEOF - #define _POSIX_1_SOURCE 2 _ACEOF ! cat >>confdefs.h <<\_ACEOF ! #define _MINIX 1 _ACEOF fi ! { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 ! echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; } ! if test "${ac_cv_safe_to_define___extensions__+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ # define __EXTENSIONS__ 1 --- 1641,4550 ---- if $ac_init_version; then cat <<\_ACEOF configure ! generated by GNU Autoconf 2.64 ! Copyright (C) 2009 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ! ## ------------------------ ## ! ## Autoconf initialization. ## ! ## ------------------------ ## ! ! # ac_fn_c_try_compile LINENO ! # -------------------------- ! # Try to compile conftest.$ac_ext, and return whether this succeeded. ! ac_fn_c_try_compile () ! { ! as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! rm -f conftest.$ac_objext ! if { { ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_compile") 2>conftest.err ! ac_status=$? ! if test -s conftest.err; then ! grep -v '^ *+' conftest.err >conftest.er1 ! cat conftest.er1 >&5 ! mv -f conftest.er1 conftest.err ! fi ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then : ! ac_retval=0 ! else ! $as_echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_retval=1 ! fi ! eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} ! return $ac_retval ! } # ac_fn_c_try_compile ! ! # ac_fn_c_try_cpp LINENO ! # ---------------------- ! # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ! ac_fn_c_try_cpp () { ! as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! if { { ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ! ac_status=$? ! if test -s conftest.err; then ! grep -v '^ *+' conftest.err >conftest.er1 ! cat conftest.er1 >&5 ! mv -f conftest.er1 conftest.err ! fi ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then : ! ac_retval=0 ! else ! $as_echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_retval=1 ! fi ! eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} ! return $ac_retval ! } # ac_fn_c_try_cpp ! # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES ! # ------------------------------------------------------- ! # Tests whether HEADER exists, giving a warning if it cannot be compiled using ! # the include files in INCLUDES and setting the cache variable VAR ! # accordingly. ! ac_fn_c_check_header_mongrel () ! { ! as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 ! $as_echo_n "checking for $2... " >&6; } ! if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 ! fi ! eval ac_res=\$$3 ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! else ! # Is the header compilable? ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 ! $as_echo_n "checking $2 usability... " >&6; } ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! $4 ! #include <$2> ! _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_header_compiler=yes ! else ! ac_header_compiler=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 ! $as_echo "$ac_header_compiler" >&6; } ! # Is the header present? ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 ! $as_echo_n "checking $2 presence... " >&6; } ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! #include <$2> ! _ACEOF ! if ac_fn_c_try_cpp "$LINENO"; then : ! ac_header_preproc=yes ! else ! ac_header_preproc=no ! fi ! rm -f conftest.err conftest.$ac_ext ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 ! $as_echo "$ac_header_preproc" >&6; } ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( ! yes:no: ) ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 ! $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 ! $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ! ;; ! no:yes:* ) ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 ! $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 ! $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 ! $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 ! $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 ! $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ! ;; ! esac ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 ! $as_echo_n "checking for $2... " >&6; } ! if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 ! else ! eval "$3=\$ac_header_compiler" ! fi ! eval ac_res=\$$3 ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! fi ! eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} ! } # ac_fn_c_check_header_mongrel ! # ac_fn_c_try_run LINENO ! # ---------------------- ! # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes ! # that executables *can* be run. ! ac_fn_c_try_run () ! { ! as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! if { { ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' ! { { case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; }; }; then : ! ac_retval=0 ! else ! $as_echo "$as_me: program exited with status $ac_status" >&5 ! $as_echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 + ac_retval=$ac_status + fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + return $ac_retval ! } # ac_fn_c_try_run + # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES + # ------------------------------------------------------- + # Tests whether HEADER exists and can be compiled using the include files in + # INCLUDES, setting the cache variable VAR accordingly. + ac_fn_c_check_header_compile () + { + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 + $as_echo_n "checking for $2... " >&6; } + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + $4 + #include <$2> _ACEOF + if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" + else + eval "$3=no" + fi + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 + $as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + } # ac_fn_c_check_header_compile ! # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES ! # -------------------------------------------- ! # Tries to find the compile-time value of EXPR in a program that includes ! # INCLUDES, setting VAR accordingly. Returns whether the value could be ! # computed ! ac_fn_c_compute_int () ! { ! as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! if test "$cross_compiling" = yes; then ! # Depending upon the size, compute the lo and hi bounds. ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! $4 ! int ! main () ! { ! static int test_array [1 - 2 * !(($2) >= 0)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_lo=0 ac_mid=0 ! while :; do ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! $4 ! int ! main () ! { ! static int test_array [1 - 2 * !(($2) <= $ac_mid)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_hi=$ac_mid; break ! else ! as_fn_arith $ac_mid + 1 && ac_lo=$as_val ! if test $ac_lo -le $ac_mid; then ! ac_lo= ac_hi= ! break ! fi ! as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! $4 ! int ! main () ! { ! static int test_array [1 - 2 * !(($2) < 0)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_hi=-1 ac_mid=-1 ! while :; do ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! $4 ! int ! main () ! { ! static int test_array [1 - 2 * !(($2) >= $ac_mid)]; ! test_array [0] = 0 ! ; ! return 0; ! } _ACEOF + if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=$ac_mid; break + else + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val + fi + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done + else + ac_lo= ac_hi= + fi + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + # Binary search between lo and hi bounds. + while test "x$ac_lo" != "x$ac_hi"; do + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + $4 + int + main () + { + static int test_array [1 - 2 * !(($2) <= $ac_mid)]; + test_array [0] = 0 ! ; ! return 0; ! } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_hi=$ac_mid else ! as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done + case $ac_lo in #(( + ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; + '') ac_retval=1 ;; + esac + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + $4 + static long int longval () { return $2; } + static unsigned long int ulongval () { return $2; } + #include + #include + int + main () + { ! FILE *f = fopen ("conftest.val", "w"); ! if (! f) ! return 1; ! if (($2) < 0) ! { ! long int i = longval (); ! if (i != ($2)) ! return 1; ! fprintf (f, "%ld", i); ! } ! else ! { ! unsigned long int i = ulongval (); ! if (i != ($2)) ! return 1; ! fprintf (f, "%lu", i); ! } ! /* Do not output a trailing newline, as this causes \r\n confusion ! on some platforms. */ ! return ferror (f) || fclose (f) != 0; ! ! ; ! return 0; ! } ! _ACEOF ! if ac_fn_c_try_run "$LINENO"; then : ! echo >>conftest.val; read $3 &5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 + else + $as_echo "$as_me: failed program was:" >&5 + sed 's/^/| /' conftest.$ac_ext >&5 + ac_retval=1 + fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + return $ac_retval + } # ac_fn_cxx_try_compile + # ac_fn_cxx_try_cpp LINENO + # ------------------------ + # Try to preprocess conftest.$ac_ext, and return whether this succeeded. + ac_fn_cxx_try_cpp () + { + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" + case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; + esac + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" + $as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } >/dev/null && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 + else + $as_echo "$as_me: failed program was:" >&5 + sed 's/^/| /' conftest.$ac_ext >&5 + ac_retval=1 + fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + return $ac_retval + } # ac_fn_cxx_try_cpp + # ac_fn_cxx_try_link LINENO + # ------------------------- + # Try to link conftest.$ac_ext, and return whether this succeeded. + ac_fn_cxx_try_link () + { + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" + case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; + esac + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" + $as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 + else + $as_echo "$as_me: failed program was:" >&5 + sed 's/^/| /' conftest.$ac_ext >&5 + ac_retval=1 + fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + return $ac_retval + } # ac_fn_cxx_try_link + # ac_fn_c_try_link LINENO + # ----------------------- + # Try to link conftest.$ac_ext, and return whether this succeeded. + ac_fn_c_try_link () + { + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" + case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; + esac + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" + $as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 + else + $as_echo "$as_me: failed program was:" >&5 + sed 's/^/| /' conftest.$ac_ext >&5 + ac_retval=1 + fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + return $ac_retval + } # ac_fn_c_try_link + # ac_fn_c_check_func LINENO FUNC VAR + # ---------------------------------- + # Tests whether FUNC exists, setting the cache variable VAR accordingly + ac_fn_c_check_func () + { + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 + $as_echo_n "checking for $2... " >&6; } + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + /* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ + #define $2 innocuous_$2 + /* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif + #undef $2 + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char $2 (); + /* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ + #if defined __stub_$2 || defined __stub___$2 + choke me + #endif + int + main () + { + return $2 (); + ; + return 0; + } + _ACEOF + if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" + else + eval "$3=no" + fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 + $as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + } # ac_fn_c_check_func ! # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES ! # --------------------------------------------------------- ! # Tests whether HEADER exists, giving a warning if it cannot be compiled using ! # the include files in INCLUDES and setting the cache variable VAR ! # accordingly. ! ac_fn_cxx_check_header_mongrel () ! { ! as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 ! $as_echo_n "checking for $2... " >&6; } ! if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 ! fi ! eval ac_res=\$$3 ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! else ! # Is the header compilable? ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 ! $as_echo_n "checking $2 usability... " >&6; } ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! $4 ! #include <$2> ! _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : ! ac_header_compiler=yes ! else ! ac_header_compiler=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 ! $as_echo "$ac_header_compiler" >&6; } ! # Is the header present? ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 ! $as_echo_n "checking $2 presence... " >&6; } ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! #include <$2> ! _ACEOF ! if ac_fn_cxx_try_cpp "$LINENO"; then : ! ac_header_preproc=yes ! else ! ac_header_preproc=no fi + rm -f conftest.err conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 + $as_echo "$ac_header_preproc" >&6; } ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( ! yes:no: ) ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 ! $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 ! $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ! ;; ! no:yes:* ) ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 ! $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 ! $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 ! $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 ! $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 ! $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ! ;; ! esac ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 ! $as_echo_n "checking for $2... " >&6; } ! if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 ! else ! eval "$3=\$ac_header_compiler" ! fi ! eval ac_res=\$$3 ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! fi ! eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + } # ac_fn_cxx_check_header_mongrel ! # ac_fn_f77_try_compile LINENO ! # ---------------------------- ! # Try to compile conftest.$ac_ext, and return whether this succeeded. ! ac_fn_f77_try_compile () ! { ! as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! rm -f conftest.$ac_objext ! if { { ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_compile") 2>conftest.err ! ac_status=$? ! if test -s conftest.err; then ! grep -v '^ *+' conftest.err >conftest.er1 ! cat conftest.er1 >&5 ! mv -f conftest.er1 conftest.err ! fi ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; } && { ! test -z "$ac_f77_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then : ! ac_retval=0 else ! $as_echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 + ac_retval=1 fi ! eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} ! return $ac_retval + } # ac_fn_f77_try_compile ! # ac_fn_f77_try_link LINENO ! # ------------------------- ! # Try to link conftest.$ac_ext, and return whether this succeeded. ! ac_fn_f77_try_link () ! { ! as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { { ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_link") 2>conftest.err ! ac_status=$? ! if test -s conftest.err; then ! grep -v '^ *+' conftest.err >conftest.er1 ! cat conftest.er1 >&5 ! mv -f conftest.er1 conftest.err ! fi ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; } && { ! test -z "$ac_f77_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && { ! test "$cross_compiling" = yes || ! $as_test_x conftest$ac_exeext ! }; then : ! ac_retval=0 else ! $as_echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 + ac_retval=1 fi ! # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information ! # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would ! # interfere with the next link command; also delete a directory that is ! # left behind by Apple's compiler. We do this before executing the actions. ! rm -rf conftest.dSYM conftest_ipa8_conftest.oo ! eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} ! return $ac_retval + } # ac_fn_f77_try_link ! # ac_fn_f77_try_run LINENO ! # ------------------------ ! # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes ! # that executables *can* be run. ! ac_fn_f77_try_run () ! { ! as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! if { { ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' ! { { case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; }; }; then : ! ac_retval=0 ! else ! $as_echo "$as_me: program exited with status $ac_status" >&5 ! $as_echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 + ac_retval=$ac_status + fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + return $ac_retval + } # ac_fn_f77_try_run ! # ac_fn_c_check_type LINENO TYPE VAR INCLUDES ! # ------------------------------------------- ! # Tests whether TYPE exists after having included INCLUDES, setting cache ! # variable VAR accordingly. ! ac_fn_c_check_type () ! { ! as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 ! $as_echo_n "checking for $2... " >&6; } ! if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 ! else ! eval "$3=no" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! $4 ! #ifdef F77_DUMMY_MAIN + # ifdef __cplusplus + extern "C" + # endif + int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! if (sizeof ($2)) ! return 0; ! ; ! return 0; ! } ! _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! $4 ! #ifdef F77_DUMMY_MAIN + # ifdef __cplusplus + extern "C" + # endif + int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! if (sizeof (($2))) ! return 0; ! ; ! return 0; ! } _ACEOF + if ac_fn_c_try_compile "$LINENO"; then : else ! eval "$3=yes" fi + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi + eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 + $as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + } # ac_fn_c_check_type ! # ac_fn_cxx_try_run LINENO ! # ------------------------ ! # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes ! # that executables *can* be run. ! ac_fn_cxx_try_run () ! { ! as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! if { { ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' ! { { case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; }; }; then : ! ac_retval=0 else ! $as_echo "$as_me: program exited with status $ac_status" >&5 ! $as_echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 + ac_retval=$ac_status fi ! rm -rf conftest.dSYM conftest_ipa8_conftest.oo ! eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} ! return $ac_retval ! } # ac_fn_cxx_try_run ! ! # ac_fn_cxx_check_decl LINENO SYMBOL VAR ! # -------------------------------------- ! # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. ! ac_fn_cxx_check_decl () ! { ! as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 ! $as_echo_n "checking whether $2 is declared... " >&6; } ! if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! $4 ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! #ifndef $2 ! (void) $2; ! #endif ! ! ; ! return 0; ! } ! _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : ! eval "$3=yes" else ! eval "$3=no" ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi + eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 + $as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + } # ac_fn_cxx_check_decl ! # ac_fn_cxx_check_func LINENO FUNC VAR ! # ------------------------------------ ! # Tests whether FUNC exists, setting the cache variable VAR accordingly ! ac_fn_cxx_check_func () ! { ! as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 ! $as_echo_n "checking for $2... " >&6; } ! if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! /* Define $2 to an innocuous variant, in case declares $2. ! For example, HP-UX 11i declares gettimeofday. */ ! #define $2 innocuous_$2 ! /* System header to define __stub macros and hopefully few prototypes, ! which can conflict with char $2 (); below. ! Prefer to if __STDC__ is defined, since ! exists even on freestanding compilers. */ + #ifdef __STDC__ + # include + #else + # include + #endif ! #undef $2 ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $2 (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$2 || defined __stub___$2 ! choke me ! #endif + #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } + #endif + int + main () + { + return $2 (); + ; + return 0; + } + _ACEOF + if ac_fn_cxx_try_link "$LINENO"; then : + eval "$3=yes" + else + eval "$3=no" fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi ! eval ac_res=\$$3 ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} ! ! } # ac_fn_cxx_check_func ! ! # ac_fn_c_check_decl LINENO SYMBOL VAR ! # ------------------------------------ ! # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. ! ac_fn_c_check_decl () ! { ! as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 ! $as_echo_n "checking whether $2 is declared... " >&6; } ! if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! $4 ! #ifdef F77_DUMMY_MAIN + # ifdef __cplusplus + extern "C" + # endif + int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! #ifndef $2 ! (void) $2; ! #endif ! ; ! return 0; ! } ! _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! eval "$3=yes" ! else ! eval "$3=no" fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi + eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 + $as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + } # ac_fn_c_check_decl ! # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES ! # ---------------------------------------------------- ! # Tries to find if the field MEMBER exists in type AGGR, after including ! # INCLUDES, setting cache variable VAR accordingly. ! ac_fn_c_check_member () ! { ! as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 ! $as_echo_n "checking for $2.$3... " >&6; } ! if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! $5 ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! static $2 ac_aggr; ! if (ac_aggr.$3) ! return 0; ! ; ! return 0; ! } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! eval "$4=yes" ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + $5 + #ifdef F77_DUMMY_MAIN + + # ifdef __cplusplus + extern "C" + # endif + int F77_DUMMY_MAIN() { return 1; } + #endif int main () { ! static $2 ac_aggr; ! if (sizeof ac_aggr.$3) ! return 0; ; return 0; } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! eval "$4=yes" else ! eval "$4=no" fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi + eval ac_res=\$$4 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 + $as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} ! } # ac_fn_c_check_member ! cat >config.log <<_ACEOF ! This file contains any messages produced by compilers while ! running configure, to aid debugging if configure makes a mistake. ! It was created by $as_me, which was ! generated by GNU Autoconf 2.64. Invocation command line was ! $ $0 $@ _ACEOF ! exec 5>>config.log { ! cat <<_ASUNAME ! ## --------- ## ! ## Platform. ## ! ## --------- ## ! hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` ! uname -m = `(uname -m) 2>/dev/null || echo unknown` ! uname -r = `(uname -r) 2>/dev/null || echo unknown` ! uname -s = `(uname -s) 2>/dev/null || echo unknown` ! uname -v = `(uname -v) 2>/dev/null || echo unknown` ! /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` ! /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` ! /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` ! /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` ! /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` ! /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` ! /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` ! /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` ! /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` ! _ASUNAME ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! $as_echo "PATH: $as_dir" ! done ! IFS=$as_save_IFS ! } >&5 ! cat >&5 <<_ACEOF ! ## ----------- ## ! ## Core tests. ## ! ## ----------- ## _ACEOF ! # Keep a trace of the command line. ! # Strip out --no-create and --no-recursion so they do not pile up. ! # Strip out --silent because we don't want to record it for future runs. ! # Also quote any args containing shell meta-characters. ! # Make two passes to allow for proper duplicate-argument suppression. ! ac_configure_args= ! ac_configure_args0= ! ac_configure_args1= ! ac_must_keep_next=false ! for ac_pass in 1 2 ! do ! for ac_arg ! do ! case $ac_arg in ! -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; ! -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ! | -silent | --silent | --silen | --sile | --sil) ! continue ;; ! *\'*) ! ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ! esac ! case $ac_pass in ! 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; ! 2) ! as_fn_append ac_configure_args1 " '$ac_arg'" ! if test $ac_must_keep_next = true; then ! ac_must_keep_next=false # Got value, back to normal. ! else ! case $ac_arg in ! *=* | --config-cache | -C | -disable-* | --disable-* \ ! | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ ! | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ ! | -with-* | --with-* | -without-* | --without-* | --x) ! case "$ac_configure_args0 " in ! "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; ! esac ! ;; ! -* ) ac_must_keep_next=true ;; ! esac ! fi ! as_fn_append ac_configure_args " '$ac_arg'" ! ;; ! esac ! done ! done ! { ac_configure_args0=; unset ac_configure_args0;} ! { ac_configure_args1=; unset ac_configure_args1;} + # When interrupted or exit'd, cleanup temporary files, and complete + # config.log. We remove comments because anyway the quotes in there + # would cause problems or look ugly. + # WARNING: Use '\'' to represent an apostrophe within the trap. + # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. + trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo ! cat <<\_ASBOX ! ## ---------------- ## ! ## Cache variables. ## ! ## ---------------- ## ! _ASBOX ! echo ! # The following way of writing the cache mishandles newlines in values, ! ( ! for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do ! eval ac_val=\$$ac_var ! case $ac_val in #( ! *${as_nl}*) ! case $ac_var in #( ! *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 ! $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; ! esac ! case $ac_var in #( ! _ | IFS | as_nl) ;; #( ! BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( ! *) { eval $ac_var=; unset $ac_var;} ;; ! esac ;; ! esac ! done ! (set) 2>&1 | ! case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( ! *${as_nl}ac_space=\ *) ! sed -n \ ! "s/'\''/'\''\\\\'\'''\''/g; ! s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ! ;; #( ! *) ! sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ! ;; ! esac | ! sort ! ) ! echo ! cat <<\_ASBOX ! ## ----------------- ## ! ## Output variables. ## ! ## ----------------- ## ! _ASBOX ! echo ! for ac_var in $ac_subst_vars ! do ! eval ac_val=\$$ac_var ! case $ac_val in ! *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; ! esac ! $as_echo "$ac_var='\''$ac_val'\''" ! done | sort ! echo ! if test -n "$ac_subst_files"; then ! cat <<\_ASBOX ! ## ------------------- ## ! ## File substitutions. ## ! ## ------------------- ## ! _ASBOX ! echo ! for ac_var in $ac_subst_files ! do ! eval ac_val=\$$ac_var ! case $ac_val in ! *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; ! esac ! $as_echo "$ac_var='\''$ac_val'\''" ! done | sort ! echo ! fi ! if test -s confdefs.h; then ! cat <<\_ASBOX ! ## ----------- ## ! ## confdefs.h. ## ! ## ----------- ## ! _ASBOX ! echo ! cat confdefs.h ! echo ! fi ! test "$ac_signal" != 0 && ! $as_echo "$as_me: caught signal $ac_signal" ! $as_echo "$as_me: exit $exit_status" ! } >&5 ! rm -f core *.core core.conftest.* && ! rm -f -r conftest* confdefs* conf$$* $ac_clean_files && ! exit $exit_status ! ' 0 ! for ac_signal in 1 2 13 15; do ! trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal ! done ! ac_signal=0 ! ! # confdefs.h avoids OS command line length limits that DEFS can exceed. ! rm -f -r conftest* confdefs.h ! ! $as_echo "/* confdefs.h */" > confdefs.h ! ! # Predefined preprocessor variables. ! ! cat >>confdefs.h <<_ACEOF ! #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF ! cat >>confdefs.h <<_ACEOF ! #define PACKAGE_TARNAME "$PACKAGE_TARNAME" ! _ACEOF ! cat >>confdefs.h <<_ACEOF ! #define PACKAGE_VERSION "$PACKAGE_VERSION" ! _ACEOF ! cat >>confdefs.h <<_ACEOF ! #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF + cat >>confdefs.h <<_ACEOF + #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" + _ACEOF ! cat >>confdefs.h <<_ACEOF ! #define PACKAGE_URL "$PACKAGE_URL" ! _ACEOF + # Let the site file select an alternate cache file if it wants to. + # Prefer an explicitly selected file to automatically selected ones. + ac_site_file1=NONE + ac_site_file2=NONE + if test -n "$CONFIG_SITE"; then + ac_site_file1=$CONFIG_SITE + elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site + else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site fi ! for ac_site_file in "$ac_site_file1" "$ac_site_file2" ! do ! test "x$ac_site_file" = xNONE && continue ! if test -r "$ac_site_file"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 ! $as_echo "$as_me: loading site script $ac_site_file" >&6;} ! sed 's/^/| /' "$ac_site_file" >&5 ! . "$ac_site_file" ! fi ! done ! if test -r "$cache_file"; then ! # Some versions of bash will fail to source /dev/null (special ! # files actually), so we avoid doing that. ! if test -f "$cache_file"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 ! $as_echo "$as_me: loading cache $cache_file" >&6;} ! case $cache_file in ! [\\/]* | ?:[\\/]* ) . "$cache_file";; ! *) . "./$cache_file";; ! esac ! fi ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 ! $as_echo "$as_me: creating cache $cache_file" >&6;} ! >$cache_file ! fi + # Check that the precious variables saved in the cache have kept the same + # value. + ac_cache_corrupted=false + for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 + $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 + $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 + $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 + $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 + $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 + $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi + done + if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 + $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 + fi + ## -------------------- ## + ## Main body of script. ## + ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ac_config_headers="$ac_config_headers config.h" + + ac_aux_dir= + for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + for ac_t in install-sh install.sh shtool; do + if test -f "$ac_dir/$ac_t"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/$ac_t -c" + break 2 + fi + done done ! if test -z "$ac_aux_dir"; then ! as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi ! # These three variables are undocumented and unsupported, ! # and are intended to be withdrawn in a future Autoconf release. ! # They can cause serious problems if a builder's source tree is in a directory ! # whose full name contains unusual characters. ! ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ! ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ! ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. ! # Make sure we can run config.sub. ! $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || ! as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 ! $as_echo_n "checking build system type... " >&6; } ! if test "${ac_cv_build+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_build_alias=$build_alias ! test "x$ac_build_alias" = x && ! ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` ! test "x$ac_build_alias" = x && ! as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 ! ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || ! as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 + $as_echo "$ac_cv_build" >&6; } + case $ac_cv_build in + *-*-*) ;; + *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; + esac + build=$ac_cv_build + ac_save_IFS=$IFS; IFS='-' + set x $ac_cv_build + shift + build_cpu=$1 + build_vendor=$2 + shift; shift + # Remember, the first character of IFS is used to create $*, + # except with old shells: + build_os=$* + IFS=$ac_save_IFS + case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 ! $as_echo_n "checking host system type... " >&6; } ! if test "${ac_cv_host+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! if test "x$host_alias" = x; then ! ac_cv_host=$ac_cv_build else ! ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || ! as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 ! $as_echo "$ac_cv_host" >&6; } ! case $ac_cv_host in ! *-*-*) ;; ! *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; ! esac ! host=$ac_cv_host ! ac_save_IFS=$IFS; IFS='-' ! set x $ac_cv_host ! shift ! host_cpu=$1 ! host_vendor=$2 ! shift; shift ! # Remember, the first character of IFS is used to create $*, ! # except with old shells: ! host_os=$* ! IFS=$ac_save_IFS ! case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac ! ! if test -z "$host"; then ! host=unknown ! fi ! canonical_host_type=$host ! if test "$host" = unknown; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuring Octave for unknown system type ! " >&5 ! $as_echo "$as_me: WARNING: configuring Octave for unknown system type ! " >&2;} ! fi ! ! ! ! $as_echo "#define OCTAVE_SOURCE 1" >>confdefs.h ! ! ! ### Produce unistd.h for MSVC target, this simplifies changes in ! ### Octave source tree and avoid problems with lex-generated code. ! case "$canonical_host_type" in ! *-*-msdosmsvc) ! { $as_echo "$as_me:${as_lineno-$LINENO}: Generating replacement for for MSVC" >&5 ! $as_echo "$as_me: Generating replacement for for MSVC" >&6;} ! cat << \EOF > unistd.h ! /* File generated by configure script. */ ! #include ! #include ! #include ! EOF ! CPPFLAGS="-I. $CPPFLAGS" ! ;; ! esac ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! if test -n "$ac_tool_prefix"; then ! # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. ! set dummy ${ac_tool_prefix}gcc; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_CC+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! if test -n "$CC"; then ! ac_cv_prog_CC="$CC" # Let the user override the test. ! else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_CC="${ac_tool_prefix}gcc" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done done ! IFS=$as_save_IFS + fi + fi + CC=$ac_cv_prog_CC + if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 + $as_echo "$CC" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + $as_echo "no" >&6; } + fi + fi + if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. + set dummy gcc; ac_word=$2 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 + $as_echo_n "checking for $ac_word... " >&6; } + if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. + else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + for as_dir in $PATH + do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi done + done IFS=$as_save_IFS fi fi ! ac_ct_CC=$ac_cv_prog_ac_ct_CC ! if test -n "$ac_ct_CC"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 ! $as_echo "$ac_ct_CC" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ! if test "x$ac_ct_CC" = x; then ! CC="" ! else ! case $cross_compiling:$ac_tool_warned in ! yes:) ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 ! $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ! ac_tool_warned=yes ;; ! esac ! CC=$ac_ct_CC ! fi ! else ! CC="$ac_cv_prog_CC" fi ! if test -z "$CC"; then ! if test -n "$ac_tool_prefix"; then ! # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. ! set dummy ${ac_tool_prefix}cc; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_CC+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! if test -n "$CC"; then ! ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_CC="${ac_tool_prefix}cc" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done done ! IFS=$as_save_IFS + fi + fi + CC=$ac_cv_prog_CC + if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 + $as_echo "$CC" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + $as_echo "no" >&6; } + fi + fi + fi + if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. + set dummy cc; ac_word=$2 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 + $as_echo_n "checking for $ac_word... " >&6; } + if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. + else + ac_prog_rejected=no + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + for as_dir in $PATH + do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi done + done IFS=$as_save_IFS ! if test $ac_prog_rejected = yes; then ! # We found a bogon in the path, so make sure we never use it. ! set dummy $ac_cv_prog_CC ! shift ! if test $# != 0; then ! # We chose a different compiler from the bogus one. ! # However, it has the same basename, so the bogon will be chosen ! # first if we set CC to just the basename; use the full file name. ! shift ! ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" ! fi fi fi ! fi ! CC=$ac_cv_prog_CC ! if test -n "$CC"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 ! $as_echo "$CC" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi fi ! if test -z "$CC"; then ! if test -n "$ac_tool_prefix"; then ! for ac_prog in cl.exe ! do ! # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ! set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_CC+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! if test -n "$CC"; then ! ac_cv_prog_CC="$CC" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_CC="$ac_tool_prefix$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS + fi + fi + CC=$ac_cv_prog_CC + if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 + $as_echo "$CC" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ! test -n "$CC" && break ! done ! fi ! if test -z "$CC"; then ! ac_ct_CC=$CC ! for ac_prog in cl.exe ! do ! # Extract the first word of "$ac_prog", so it can be a program name with args. ! set dummy $ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! if test -n "$ac_ct_CC"; then ! ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_ac_ct_CC="$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! ! fi ! fi ! ac_ct_CC=$ac_cv_prog_ac_ct_CC ! if test -n "$ac_ct_CC"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 ! $as_echo "$ac_ct_CC" >&6; } ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! ! ! test -n "$ac_ct_CC" && break ! done ! ! if test "x$ac_ct_CC" = x; then ! CC="" ! else ! case $cross_compiling:$ac_tool_warned in ! yes:) ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 ! $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ! ac_tool_warned=yes ;; ! esac ! CC=$ac_ct_CC ! fi ! fi ! ! fi ! ! ! test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! as_fn_error "no acceptable C compiler found in \$PATH ! See \`config.log' for more details." "$LINENO" 5; } ! ! # Provide some information about the compiler. ! $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 ! set X $ac_compile ! ac_compiler=$2 ! for ac_option in --version -v -V -qversion; do ! { { ac_try="$ac_compiler $ac_option >&5" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_compiler $ac_option >&5") 2>conftest.err ! ac_status=$? ! if test -s conftest.err; then ! sed '10a\ ! ... rest of stderr output deleted ... ! 10q' conftest.err >conftest.er1 ! cat conftest.er1 >&5 ! rm -f conftest.er1 conftest.err ! fi ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; } ! done + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include int main () { + FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ! ac_clean_files_save=$ac_clean_files ! ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" ! # Try to create an executable without -o first, disregard a.out. ! # It will help us diagnose broken compilers, and finding out an intuition ! # of exeext. ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 ! $as_echo_n "checking for C compiler default output file name... " >&6; } ! ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` ! ! # The possible output files: ! ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ! ! ac_rmfiles= ! for ac_file in $ac_files ! do ! case $ac_file in ! *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; ! * ) ac_rmfiles="$ac_rmfiles $ac_file";; ! esac ! done ! rm -f $ac_rmfiles ! ! if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_link_default") 2>&5 ac_status=$? ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; }; then : ! # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. ! # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' ! # in a Makefile. We should not override ac_cv_exeext if it was cached, ! # so that the user can short-circuit this test for compilers unknown to ! # Autoconf. ! for ac_file in $ac_files '' ! do ! test -f "$ac_file" || continue ! case $ac_file in ! *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ! ;; ! [ab].out ) ! # We found the default executable, but exeext='' is most ! # certainly right. ! break;; ! *.* ) ! if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; ! then :; else ! ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` ! fi ! # We set ac_cv_exeext here because the later test for it is not ! # safe: cross compilers may not add the suffix if given an `-o' ! # argument, so we may need to know it at that point already. ! # Even if this section looks crufty: it has the advantage of ! # actually working. ! break;; ! * ) ! break;; ! esac ! done ! test "$ac_cv_exeext" = no && ac_cv_exeext= ! else ! ac_file='' fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 + $as_echo "$ac_file" >&6; } + if test -z "$ac_file"; then : + $as_echo "$as_me: failed program was:" >&5 + sed 's/^/| /' conftest.$ac_ext >&5 ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! { as_fn_set_status 77 ! as_fn_error "C compiler cannot create executables ! See \`config.log' for more details." "$LINENO" 5; }; } fi ! ac_exeext=$ac_cv_exeext + # Check that the compiler produces executables we can run. If not, either + # the compiler is broken, or we cross compile. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 + $as_echo_n "checking whether the C compiler works... " >&6; } + # If not cross compiling, check that we can run a simple program. + if test "$cross_compiling" != yes; then + if { ac_try='./$ac_file' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; + esac + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" + $as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + as_fn_error "cannot run C compiled programs. + If you meant to cross compile, use \`--host'. + See \`config.log' for more details." "$LINENO" 5; } + fi + fi fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 + $as_echo "yes" >&6; } ! rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out ! ac_clean_files=$ac_clean_files_save ! # Check that the compiler produces executables we can run. If not, either ! # the compiler is broken, or we cross compile. ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 ! $as_echo_n "checking whether we are cross compiling... " >&6; } ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 ! $as_echo "$cross_compiling" >&6; } ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 ! $as_echo_n "checking for suffix of executables... " >&6; } ! if { { ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; }; then : ! # If both `conftest.exe' and `conftest' are `present' (well, observable) ! # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will ! # work properly (i.e., refer to `conftest.exe'), while it won't with ! # `rm'. ! for ac_file in conftest.exe conftest conftest.*; do ! test -f "$ac_file" || continue ! case $ac_file in ! *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; ! *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` ! break;; ! * ) break;; ! esac ! done else ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! as_fn_error "cannot compute suffix of executables: cannot compile and link ! See \`config.log' for more details." "$LINENO" 5; } fi + rm -f conftest$ac_cv_exeext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 + $as_echo "$ac_cv_exeext" >&6; } ! rm -f conftest.$ac_ext ! EXEEXT=$ac_cv_exeext ! ac_exeext=$EXEEXT ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 ! $as_echo_n "checking for suffix of object files... " >&6; } ! if test "${ac_cv_objext+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ! ! ; return 0; } _ACEOF ! rm -f conftest.o conftest.obj ! if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_compile") 2>&5 ac_status=$? ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; }; then : ! for ac_file in conftest.o conftest.obj conftest.*; do ! test -f "$ac_file" || continue; ! case $ac_file in ! *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; ! *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` ! break;; ! esac ! done else ! $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! as_fn_error "cannot compute suffix of object files: cannot compile ! See \`config.log' for more details." "$LINENO" 5; } fi ! rm -f conftest.$ac_cv_objext conftest.$ac_ext fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 + $as_echo "$ac_cv_objext" >&6; } + OBJEXT=$ac_cv_objext + ac_objext=$OBJEXT + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 + $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } + if test "${ac_cv_c_compiler_gnu+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + int + main () + { + #ifndef __GNUC__ + choke me + #endif ! ; ! return 0; ! } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_compiler_gnu=yes ! else ! ac_compiler_gnu=no fi + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_c_compiler_gnu=$ac_compiler_gnu ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 ! $as_echo "$ac_cv_c_compiler_gnu" >&6; } ! if test $ac_compiler_gnu = yes; then ! GCC=yes ! else ! GCC= ! fi ! ac_test_CFLAGS=${CFLAGS+set} ! ac_save_CFLAGS=$CFLAGS ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 ! $as_echo_n "checking whether $CC accepts -g... " >&6; } ! if test "${ac_cv_prog_cc_g+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_save_c_werror_flag=$ac_c_werror_flag ! ac_c_werror_flag=yes ! ac_cv_prog_cc_g=no ! CFLAGS="-g" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ + int + main () + { + ; + return 0; + } + _ACEOF + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes + else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + int + main () + { + ; + return 0; + } + _ACEOF + if ac_fn_c_try_compile "$LINENO"; then : else ! ac_c_werror_flag=$ac_save_c_werror_flag ! CFLAGS="-g" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! int ! main () ! { ! ! ; ! return 0; ! } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_cv_prog_cc_g=yes ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_c_werror_flag=$ac_save_c_werror_flag ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 ! $as_echo "$ac_cv_prog_cc_g" >&6; } ! if test "$ac_test_CFLAGS" = set; then ! CFLAGS=$ac_save_CFLAGS ! elif test $ac_cv_prog_cc_g = yes; then ! if test "$GCC" = yes; then ! CFLAGS="-g -O2" ! else ! CFLAGS="-g" ! fi else ! if test "$GCC" = yes; then ! CFLAGS="-O2" ! else ! CFLAGS= ! fi ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 ! $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } ! if test "${ac_cv_prog_cc_c89+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_cv_prog_cc_c89=no ! ac_save_CC=$CC ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! #include ! #include ! #include ! #include ! /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ ! struct buf { int x; }; ! FILE * (*rcsopen) (struct buf *, struct stat *, int); ! static char *e (p, i) ! char **p; ! int i; ! { ! return p[i]; ! } ! static char *f (char * (*g) (char **, int), char **p, ...) ! { ! char *s; ! va_list v; ! va_start (v,p); ! s = g (p, va_arg (v,int)); ! va_end (v); ! return s; ! } ! ! /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has ! function prototypes and stuff, but not '\xHH' hex character constants. ! These don't provoke an error unfortunately, instead are silently treated ! as 'x'. The following induces an error, until -std is added to get ! proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an ! array size at least. It's necessary to write '\x00'==0 to get something ! that's true only with -std. */ ! int osf4_cc_array ['\x00' == 0 ? 1 : -1]; ! ! /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters ! inside strings and character constants. */ ! #define FOO(x) 'x' ! int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; ! int test (int i, double x); ! struct s1 {int (*f) (int a);}; ! struct s2 {int (*f) (double a);}; ! int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); ! int argc; ! char **argv; ! int ! main () ! { ! return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ! ; ! return 0; ! } ! _ACEOF ! for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ ! -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" ! do ! CC="$ac_save_CC $ac_arg" ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_cv_prog_cc_c89=$ac_arg fi + rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break + done + rm -f conftest.$ac_ext + CC=$ac_save_CC fi ! # AC_CACHE_VAL ! case "x$ac_cv_prog_cc_c89" in ! x) ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 ! $as_echo "none needed" >&6; } ;; ! xno) ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 ! $as_echo "unsupported" >&6; } ;; ! *) ! CC="$CC $ac_cv_prog_cc_c89" ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 ! $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; ! esac ! if test "x$ac_cv_prog_cc_c89" != xno; then : fi ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 ! $as_echo_n "checking how to run the C preprocessor... " >&6; } ! # On Suns, sometimes $CPP names a directory. ! if test -n "$CPP" && test -d "$CPP"; then ! CPP= fi ! if test -z "$CPP"; then ! if test "${ac_cv_prog_CPP+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! # Double quotes because CPP needs to be expanded ! for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" ! do ! ac_preproc_ok=false ! for ac_c_preproc_warn_flag in '' yes ! do ! # Use a header file that comes with gcc, so configuring glibc ! # with a fresh cross-compiler works. ! # Prefer to if __STDC__ is defined, since ! # exists even on freestanding compilers. ! # On the NeXT, cc -E runs the code through the compiler's parser, ! # not just through cpp. "Syntax error" is here to catch this case. ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! Syntax error _ACEOF ! if ac_fn_c_try_cpp "$LINENO"; then : ! else ! # Broken: fails on valid input. ! continue fi + rm -f conftest.err conftest.$ac_ext ! # OK, works on sane cases. Now check whether nonexistent headers ! # can be detected and how. ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #include _ACEOF ! if ac_fn_c_try_cpp "$LINENO"; then : ! # Broken: success on invalid input. ! continue else ! # Passes both tests. ! ac_preproc_ok=: ! break fi + rm -f conftest.err conftest.$ac_ext + done + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext ! if $ac_preproc_ok; then : ! break ! fi ! done ! ac_cv_prog_CPP=$CPP ! fi ! CPP=$ac_cv_prog_CPP else ! ac_cv_prog_CPP=$CPP fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 ! $as_echo "$CPP" >&6; } ! ac_preproc_ok=false ! for ac_c_preproc_warn_flag in '' yes ! do ! # Use a header file that comes with gcc, so configuring glibc ! # with a fresh cross-compiler works. ! # Prefer to if __STDC__ is defined, since ! # exists even on freestanding compilers. ! # On the NeXT, cc -E runs the code through the compiler's parser, ! # not just through cpp. "Syntax error" is here to catch this case. ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! Syntax error ! _ACEOF ! if ac_fn_c_try_cpp "$LINENO"; then : else ! # Broken: fails on valid input. ! continue fi + rm -f conftest.err conftest.$ac_ext + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include + _ACEOF + if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. + continue + else + # Passes both tests. + ac_preproc_ok=: + break + fi + rm -f conftest.err conftest.$ac_ext + + done + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. + rm -f conftest.err conftest.$ac_ext + if $ac_preproc_ok; then : + + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + as_fn_error "C preprocessor \"$CPP\" fails sanity check + See \`config.log' for more details." "$LINENO" 5; } + fi + + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 + $as_echo_n "checking for grep that handles long lines and -e... " >&6; } + if test "${ac_cv_path_GREP+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin + do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue + # Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP + case `"$ac_path_GREP" --version 2>&1` in + *GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + *) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; + esac + + $ac_path_GREP_found && break 3 + done + done + done + IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi + else + ac_cv_path_GREP=$GREP + fi + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 + $as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 + $as_echo_n "checking for egrep... " >&6; } + if test "${ac_cv_path_EGREP+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin + do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue + # Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP + case `"$ac_path_EGREP" --version 2>&1` in + *GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + *) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; + esac + + $ac_path_EGREP_found && break 3 + done + done + done + IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi + else + ac_cv_path_EGREP=$EGREP + fi + + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 + $as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 + $as_echo_n "checking for ANSI C header files... " >&6; } + if test "${ac_cv_header_stdc+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include + #include + #include + #include + + int + main () + { + + ; + return 0; + } + _ACEOF + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes + else + ac_cv_header_stdc=no + fi + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include + + _ACEOF + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + + else + ac_cv_header_stdc=no + fi + rm -f conftest* + + fi + + if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include _ACEOF + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + + else + ac_cv_header_stdc=no + fi + rm -f conftest* + + fi + + if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include + #include + #if ((' ' & 0x0FF) == 0x020) + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) + #else + # define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) + # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) + #endif + + #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) + int + main () + { + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; + } + _ACEOF + if ac_fn_c_try_run "$LINENO"; then : + + else + ac_cv_header_stdc=no + fi + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext + fi + + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 + $as_echo "$ac_cv_header_stdc" >&6; } + if test $ac_cv_header_stdc = yes; then + $as_echo "#define STDC_HEADERS 1" >>confdefs.h ! fi ! ! # On IRIX 5.3, sys/types and inttypes.h are conflicting. ! for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ ! inttypes.h stdint.h unistd.h ! do : ! as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ! ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default ! " ! eval as_val=\$$as_ac_Header ! if test "x$as_val" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi + done + + + + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" + if test "x$ac_cv_header_minix_config_h" = x""yes; then : + MINIX=yes + else + MINIX= + fi + if test "$MINIX" = yes; then + $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h + $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h + $as_echo "#define _MINIX 1" >>confdefs.h + fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 ! $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } ! if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # define __EXTENSIONS__ 1 *************** *** 3866,3912 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ac_cv_safe_to_define___extensions__=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_safe_to_define___extensions__=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 ! echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; } test $ac_cv_safe_to_define___extensions__ = yes && ! cat >>confdefs.h <<\_ACEOF ! #define __EXTENSIONS__ 1 ! _ACEOF ! cat >>confdefs.h <<\_ACEOF ! #define _POSIX_PTHREAD_SEMANTICS 1 ! _ACEOF ! cat >>confdefs.h <<\_ACEOF ! #define _TANDEM_SOURCE 1 ! _ACEOF --- 4557,4581 ---- return 0; } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ac_cv_safe_to_define___extensions__=yes else ! ac_cv_safe_to_define___extensions__=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 ! $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } test $ac_cv_safe_to_define___extensions__ = yes && ! $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h ! $as_echo "#define _ALL_SOURCE 1" >>confdefs.h ! $as_echo "#define _GNU_SOURCE 1" >>confdefs.h ! ! $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h ! ! $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h *************** *** 3914,3920 **** sepchar=: # Check whether --with-sepchar was given. ! if test "${with_sepchar+set}" = set; then withval=$with_sepchar; fi --- 4583,4589 ---- sepchar=: # Check whether --with-sepchar was given. ! if test "${with_sepchar+set}" = set; then : withval=$with_sepchar; fi *************** *** 3927,3935 **** esac ;; no) ! { { echo "$as_me:$LINENO: error: You are required to define a path separation character" >&5 ! echo "$as_me: error: You are required to define a path separation character" >&2;} ! { (exit 1); exit 1; }; } ;; *) sepchar=$with_sepchar --- 4596,4602 ---- esac ;; no) ! as_fn_error "You are required to define a path separation character" "$LINENO" 5 ;; *) sepchar=$with_sepchar *************** *** 3950,4033 **** ### some defaults : ${man1dir='$(mandir)/man1'} ! { echo "$as_me:$LINENO: result: defining man1dir to be $man1dir" >&5 ! echo "${ECHO_T}defining man1dir to be $man1dir" >&6; } : ${man1ext='.1'} ! { echo "$as_me:$LINENO: result: defining man1ext to be $man1ext" >&5 ! echo "${ECHO_T}defining man1ext to be $man1ext" >&6; } : ${doc_cache_file='$(octetcdir)/doc-cache'} ! { echo "$as_me:$LINENO: result: defining doc_cache_file to be $doc_cache_file" >&5 ! echo "${ECHO_T}defining doc_cache_file to be $doc_cache_file" >&6; } : ${infofile='$(infodir)/octave.info'} ! { echo "$as_me:$LINENO: result: defining infofile to be $infofile" >&5 ! echo "${ECHO_T}defining infofile to be $infofile" >&6; } : ${octincludedir='$(includedir)/octave-$(version)'} ! { echo "$as_me:$LINENO: result: defining octincludedir to be $octincludedir" >&5 ! echo "${ECHO_T}defining octincludedir to be $octincludedir" >&6; } : ${fcnfiledir='$(datadir)/octave/$(version)/m'} ! { echo "$as_me:$LINENO: result: defining fcnfiledir to be $fcnfiledir" >&5 ! echo "${ECHO_T}defining fcnfiledir to be $fcnfiledir" >&6; } : ${localfcnfiledir='$(datadir)/octave/site/m'} ! { echo "$as_me:$LINENO: result: defining localfcnfiledir to be $localfcnfiledir" >&5 ! echo "${ECHO_T}defining localfcnfiledir to be $localfcnfiledir" >&6; } : ${localapifcnfiledir='$(datadir)/octave/site/$(api_version)/m'} ! { echo "$as_me:$LINENO: result: defining localapifcnfiledir to be $localapifcnfiledir" >&5 ! echo "${ECHO_T}defining localapifcnfiledir to be $localapifcnfiledir" >&6; } : ${localverfcnfiledir='$(datadir)/octave/$(version)/site/m'} ! { echo "$as_me:$LINENO: result: defining localverfcnfiledir to be $localverfcnfiledir" >&5 ! echo "${ECHO_T}defining localverfcnfiledir to be $localverfcnfiledir" >&6; } : ${octetcdir='$(datadir)/octave/$(version)/etc'} ! { echo "$as_me:$LINENO: result: defining octetcdir to be $octetcdir" >&5 ! echo "${ECHO_T}defining octetcdir to be $octetcdir" >&6; } : ${octlibdir='$(libdir)/octave-$(version)'} ! { echo "$as_me:$LINENO: result: defining octlibdir to be $octlibdir" >&5 ! echo "${ECHO_T}defining octlibdir to be $octlibdir" >&6; } : ${archlibdir='$(libexecdir)/octave/$(version)/exec/$(canonical_host_type)'} ! { echo "$as_me:$LINENO: result: defining archlibdir to be $archlibdir" >&5 ! echo "${ECHO_T}defining archlibdir to be $archlibdir" >&6; } : ${localarchlibdir='$(libexecdir)/octave/site/exec/$(canonical_host_type)'} ! { echo "$as_me:$LINENO: result: defining localarchlibdir to be $localarchlibdir" >&5 ! echo "${ECHO_T}defining localarchlibdir to be $localarchlibdir" >&6; } : ${localapiarchlibdir='$(libexecdir)/octave/$(api_version)/site/exec/$(canonical_host_type)'} ! { echo "$as_me:$LINENO: result: defining localapiarchlibdir to be $localapiarchlibdir" >&5 ! echo "${ECHO_T}defining localapiarchlibdir to be $localapiarchlibdir" >&6; } : ${localverarchlibdir='$(libexecdir)/octave/$(version)/site/exec/$(canonical_host_type)'} ! { echo "$as_me:$LINENO: result: defining localverarchlibdir to be $localverarchlibdir" >&5 ! echo "${ECHO_T}defining localverarchlibdir to be $localverarchlibdir" >&6; } : ${octfiledir='$(libexecdir)/octave/$(version)/oct/$(canonical_host_type)'} ! { echo "$as_me:$LINENO: result: defining octfiledir to be $octfiledir" >&5 ! echo "${ECHO_T}defining octfiledir to be $octfiledir" >&6; } : ${localoctfiledir='$(libexecdir)/octave/site/oct/$(canonical_host_type)'} ! { echo "$as_me:$LINENO: result: defining localoctfiledir to be $localoctfiledir" >&5 ! echo "${ECHO_T}defining localoctfiledir to be $localoctfiledir" >&6; } : ${localapioctfiledir='$(libexecdir)/octave/site/oct/$(api_version)/$(canonical_host_type)'} ! { echo "$as_me:$LINENO: result: defining localapioctfiledir to be $localapioctfiledir" >&5 ! echo "${ECHO_T}defining localapioctfiledir to be $localapioctfiledir" >&6; } : ${localveroctfiledir='$(libexecdir)/octave/$(version)/site/oct/$(canonical_host_type)'} ! { echo "$as_me:$LINENO: result: defining localveroctfiledir to be $localveroctfiledir" >&5 ! echo "${ECHO_T}defining localveroctfiledir to be $localveroctfiledir" >&6; } : ${imagedir='$(datadir)/octave/$(version)/imagelib'} ! { echo "$as_me:$LINENO: result: defining imagedir to be $imagedir" >&5 ! echo "${ECHO_T}defining imagedir to be $imagedir" >&6; } ### Make configure args available for other uses. --- 4617,4700 ---- ### some defaults : ${man1dir='$(mandir)/man1'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining man1dir to be $man1dir" >&5 ! $as_echo "defining man1dir to be $man1dir" >&6; } : ${man1ext='.1'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining man1ext to be $man1ext" >&5 ! $as_echo "defining man1ext to be $man1ext" >&6; } : ${doc_cache_file='$(octetcdir)/doc-cache'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining doc_cache_file to be $doc_cache_file" >&5 ! $as_echo "defining doc_cache_file to be $doc_cache_file" >&6; } : ${infofile='$(infodir)/octave.info'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining infofile to be $infofile" >&5 ! $as_echo "defining infofile to be $infofile" >&6; } : ${octincludedir='$(includedir)/octave-$(version)'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining octincludedir to be $octincludedir" >&5 ! $as_echo "defining octincludedir to be $octincludedir" >&6; } : ${fcnfiledir='$(datadir)/octave/$(version)/m'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining fcnfiledir to be $fcnfiledir" >&5 ! $as_echo "defining fcnfiledir to be $fcnfiledir" >&6; } : ${localfcnfiledir='$(datadir)/octave/site/m'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining localfcnfiledir to be $localfcnfiledir" >&5 ! $as_echo "defining localfcnfiledir to be $localfcnfiledir" >&6; } : ${localapifcnfiledir='$(datadir)/octave/site/$(api_version)/m'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining localapifcnfiledir to be $localapifcnfiledir" >&5 ! $as_echo "defining localapifcnfiledir to be $localapifcnfiledir" >&6; } : ${localverfcnfiledir='$(datadir)/octave/$(version)/site/m'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining localverfcnfiledir to be $localverfcnfiledir" >&5 ! $as_echo "defining localverfcnfiledir to be $localverfcnfiledir" >&6; } : ${octetcdir='$(datadir)/octave/$(version)/etc'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining octetcdir to be $octetcdir" >&5 ! $as_echo "defining octetcdir to be $octetcdir" >&6; } : ${octlibdir='$(libdir)/octave-$(version)'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining octlibdir to be $octlibdir" >&5 ! $as_echo "defining octlibdir to be $octlibdir" >&6; } : ${archlibdir='$(libexecdir)/octave/$(version)/exec/$(canonical_host_type)'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining archlibdir to be $archlibdir" >&5 ! $as_echo "defining archlibdir to be $archlibdir" >&6; } : ${localarchlibdir='$(libexecdir)/octave/site/exec/$(canonical_host_type)'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining localarchlibdir to be $localarchlibdir" >&5 ! $as_echo "defining localarchlibdir to be $localarchlibdir" >&6; } : ${localapiarchlibdir='$(libexecdir)/octave/$(api_version)/site/exec/$(canonical_host_type)'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining localapiarchlibdir to be $localapiarchlibdir" >&5 ! $as_echo "defining localapiarchlibdir to be $localapiarchlibdir" >&6; } : ${localverarchlibdir='$(libexecdir)/octave/$(version)/site/exec/$(canonical_host_type)'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining localverarchlibdir to be $localverarchlibdir" >&5 ! $as_echo "defining localverarchlibdir to be $localverarchlibdir" >&6; } : ${octfiledir='$(libexecdir)/octave/$(version)/oct/$(canonical_host_type)'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining octfiledir to be $octfiledir" >&5 ! $as_echo "defining octfiledir to be $octfiledir" >&6; } : ${localoctfiledir='$(libexecdir)/octave/site/oct/$(canonical_host_type)'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining localoctfiledir to be $localoctfiledir" >&5 ! $as_echo "defining localoctfiledir to be $localoctfiledir" >&6; } : ${localapioctfiledir='$(libexecdir)/octave/site/oct/$(api_version)/$(canonical_host_type)'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining localapioctfiledir to be $localapioctfiledir" >&5 ! $as_echo "defining localapioctfiledir to be $localapioctfiledir" >&6; } : ${localveroctfiledir='$(libexecdir)/octave/$(version)/site/oct/$(canonical_host_type)'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining localveroctfiledir to be $localveroctfiledir" >&5 ! $as_echo "defining localveroctfiledir to be $localveroctfiledir" >&6; } : ${imagedir='$(datadir)/octave/$(version)/imagelib'} ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining imagedir to be $imagedir" >&5 ! $as_echo "defining imagedir to be $imagedir" >&6; } ### Make configure args available for other uses. *************** *** 4041,4055 **** BOUNDS_CHECKING=false # Check whether --enable-bounds-check was given. ! if test "${enable_bounds_check+set}" = set; then enableval=$enable_bounds_check; if test "$enableval" = yes; then BOUNDS_CHECKING=true; fi fi if $BOUNDS_CHECKING; then ! cat >>confdefs.h <<\_ACEOF ! #define BOUNDS_CHECKING 1 ! _ACEOF fi --- 4708,4720 ---- BOUNDS_CHECKING=false # Check whether --enable-bounds-check was given. ! if test "${enable_bounds_check+set}" = set; then : enableval=$enable_bounds_check; if test "$enableval" = yes; then BOUNDS_CHECKING=true; fi fi if $BOUNDS_CHECKING; then ! $as_echo "#define BOUNDS_CHECKING 1" >>confdefs.h fi *************** *** 4058,5489 **** USE_64_BIT_IDX_T=false OCTAVE_IDX_TYPE=int # Check whether --enable-64 was given. ! if test "${enable_64+set}" = set; then enableval=$enable_64; if test "$enableval" = yes; then USE_64_BIT_IDX_T=true; fi fi if $USE_64_BIT_IDX_T; then ! { echo "$as_me:$LINENO: checking for void *" >&5 ! echo $ECHO_N "checking for void *... $ECHO_C" >&6; } ! if test "${ac_cv_type_void_p+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default - typedef void * ac__type_new_; - int - main () - { - if ((ac__type_new_ *) 0) - return 0; - if (sizeof (ac__type_new_)) - return 0; - ; - return 0; - } - _ACEOF - rm -f conftest.$ac_objext - if { (ac_try="$ac_compile" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_void_p=yes - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cv_type_void_p=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 ! echo "${ECHO_T}$ac_cv_type_void_p" >&6; } ! # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. ! { echo "$as_me:$LINENO: checking size of void *" >&5 ! echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } ! if test "${ac_cv_sizeof_void_p+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! if test "$cross_compiling" = yes; then ! # Depending upon the size, compute the lo and hi bounds. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef void * ac__type_sizeof_; ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; ! test_array [0] = 0 ! ; ! return 0; ! } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_lo=0 ac_mid=0 ! while :; do ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef void * ac__type_sizeof_; int main () { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; ! test_array [0] = 0 ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=$ac_mid; break else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_lo=`expr $ac_mid + 1` ! if test $ac_lo -le $ac_mid; then ! ac_lo= ac_hi= ! break ! fi ! ac_mid=`expr 2 '*' $ac_mid + 1` fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef void * ac__type_sizeof_; int main () { - static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; - test_array [0] = 0 ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=-1 ac_mid=-1 ! while :; do ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef void * ac__type_sizeof_; int main () { - static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; - test_array [0] = 0 ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_lo=$ac_mid; break ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_hi=`expr '(' $ac_mid ')' - 1` ! if test $ac_mid -le $ac_hi; then ! ac_lo= ac_hi= ! break ! fi ! ac_mid=`expr 2 '*' $ac_mid` ! fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_lo= ac_hi= ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! # Binary search between lo and hi bounds. ! while test "x$ac_lo" != "x$ac_hi"; do ! ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef void * ac__type_sizeof_; int main () { - static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; - test_array [0] = 0 ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=$ac_mid else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_lo=`expr '(' $ac_mid ')' + 1` fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done ! case $ac_lo in ! ?*) ac_cv_sizeof_void_p=$ac_lo;; ! '') if test "$ac_cv_type_void_p" = yes; then ! { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot compute sizeof (void *) ! See \`config.log' for more details." >&2;} ! { (exit 77); exit 77; }; } ! else ! ac_cv_sizeof_void_p=0 ! fi ;; ! esac else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef void * ac__type_sizeof_; ! static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ! static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ! #include ! #include ! int ! main () ! { ! FILE *f = fopen ("conftest.val", "w"); ! if (! f) ! return 1; ! if (((long int) (sizeof (ac__type_sizeof_))) < 0) ! { ! long int i = longval (); ! if (i != ((long int) (sizeof (ac__type_sizeof_)))) ! return 1; ! fprintf (f, "%ld\n", i); ! } ! else ! { ! unsigned long int i = ulongval (); ! if (i != ((long int) (sizeof (ac__type_sizeof_)))) ! return 1; ! fprintf (f, "%lu\n", i); ! } ! return ferror (f) || fclose (f) != 0; ! ; ! return 0; ! } _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! ac_cv_sizeof_void_p=`cat conftest.val` else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ( exit $ac_status ) ! if test "$ac_cv_type_void_p" = yes; then ! { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot compute sizeof (void *) ! See \`config.log' for more details." >&2;} ! { (exit 77); exit 77; }; } ! else ! ac_cv_sizeof_void_p=0 ! fi fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi ! rm -f conftest.val fi - { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 - echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } - cat >>confdefs.h <<_ACEOF - #define SIZEOF_VOID_P $ac_cv_sizeof_void_p - _ACEOF ! { echo "$as_me:$LINENO: checking for int" >&5 ! echo $ECHO_N "checking for int... $ECHO_C" >&6; } ! if test "${ac_cv_type_int+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef int ac__type_new_; int main () { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_int=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_type_int=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 - echo "${ECHO_T}$ac_cv_type_int" >&6; } ! # The cast to long int works around a bug in the HP C Compiler ! # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! # This bug is HP SR number 8606223364. ! { echo "$as_me:$LINENO: checking size of int" >&5 ! echo $ECHO_N "checking size of int... $ECHO_C" >&6; } ! if test "${ac_cv_sizeof_int+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test "$cross_compiling" = yes; then ! # Depending upon the size, compute the lo and hi bounds. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef int ac__type_sizeof_; ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_lo=0 ac_mid=0 ! while :; do ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef int ac__type_sizeof_; ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=$ac_mid; break ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` - fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef int ac__type_sizeof_; ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=-1 ac_mid=-1 ! while :; do ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef int ac__type_sizeof_; int main () { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; ! test_array [0] = 0 ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_lo=$ac_mid; break else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_hi=`expr '(' $ac_mid ')' - 1` ! if test $ac_mid -le $ac_hi; then ! ac_lo= ac_hi= ! break ! fi ! ac_mid=`expr 2 '*' $ac_mid` fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo= ac_hi= fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! # Binary search between lo and hi bounds. ! while test "x$ac_lo" != "x$ac_hi"; do ! ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef int ac__type_sizeof_; ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=$ac_mid ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr '(' $ac_mid ')' + 1` - fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done ! case $ac_lo in ! ?*) ac_cv_sizeof_int=$ac_lo;; ! '') if test "$ac_cv_type_int" = yes; then ! { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot compute sizeof (int) ! See \`config.log' for more details." >&2;} ! { (exit 77); exit 77; }; } ! else ! ac_cv_sizeof_int=0 ! fi ;; ! esac else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef int ac__type_sizeof_; ! static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ! static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ! #include ! #include int main () { ! FILE *f = fopen ("conftest.val", "w"); ! if (! f) ! return 1; ! if (((long int) (sizeof (ac__type_sizeof_))) < 0) ! { ! long int i = longval (); ! if (i != ((long int) (sizeof (ac__type_sizeof_)))) ! return 1; ! fprintf (f, "%ld\n", i); ! } ! else ! { ! unsigned long int i = ulongval (); ! if (i != ((long int) (sizeof (ac__type_sizeof_)))) ! return 1; ! fprintf (f, "%lu\n", i); ! } ! return ferror (f) || fclose (f) != 0; ! ; return 0; } _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! ac_cv_sizeof_int=`cat conftest.val` else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! if test "$ac_cv_type_int" = yes; then ! { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot compute sizeof (int) ! See \`config.log' for more details." >&2;} ! { (exit 77); exit 77; }; } ! else ! ac_cv_sizeof_int=0 ! fi ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi ! rm -f conftest.val fi ! { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 ! echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } - cat >>confdefs.h <<_ACEOF - #define SIZEOF_INT $ac_cv_sizeof_int - _ACEOF ! { echo "$as_me:$LINENO: checking for long" >&5 ! echo $ECHO_N "checking for long... $ECHO_C" >&6; } ! if test "${ac_cv_type_long+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef long ac__type_new_; ! int ! main () ! { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_long=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_type_long=no fi - - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 ! echo "${ECHO_T}$ac_cv_type_long" >&6; } ! ! # The cast to long int works around a bug in the HP C Compiler ! # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! # This bug is HP SR number 8606223364. ! { echo "$as_me:$LINENO: checking size of long" >&5 ! echo $ECHO_N "checking size of long... $ECHO_C" >&6; } ! if test "${ac_cv_sizeof_long+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! if test "$cross_compiling" = yes; then ! # Depending upon the size, compute the lo and hi bounds. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef long ac__type_sizeof_; ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; ! test_array [0] = 0 - ; - return 0; - } - _ACEOF - rm -f conftest.$ac_objext - if { (ac_try="$ac_compile" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default - typedef long ac__type_sizeof_; - int - main () - { - static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; - test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=$ac_mid; break else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef long ac__type_sizeof_; ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; ! test_array [0] = 0 ! ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=-1 ac_mid=-1 ! while :; do ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef long ac__type_sizeof_; ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_lo=$ac_mid; break else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_hi=`expr '(' $ac_mid ')' - 1` ! if test $ac_mid -le $ac_hi; then ! ac_lo= ac_hi= ! break ! fi ! ac_mid=`expr 2 '*' $ac_mid` fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo= ac_hi= fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - # Binary search between lo and hi bounds. - while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default - typedef long ac__type_sizeof_; - int - main () - { - static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; - test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=$ac_mid else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_lo=`expr '(' $ac_mid ')' + 1` fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done - case $ac_lo in - ?*) ac_cv_sizeof_long=$ac_lo;; - '') if test "$ac_cv_type_long" = yes; then - { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) - See \`config.log' for more details." >&5 - echo "$as_me: error: cannot compute sizeof (long) - See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } - else - ac_cv_sizeof_long=0 - fi ;; - esac - else - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default - typedef long ac__type_sizeof_; - static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } - static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } - #include - #include - int - main () - { - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if (((long int) (sizeof (ac__type_sizeof_))) < 0) - { - long int i = longval (); - if (i != ((long int) (sizeof (ac__type_sizeof_)))) - return 1; - fprintf (f, "%ld\n", i); - } - else - { - unsigned long int i = ulongval (); - if (i != ((long int) (sizeof (ac__type_sizeof_)))) - return 1; - fprintf (f, "%lu\n", i); - } - return ferror (f) || fclose (f) != 0; - - ; - return 0; - } - _ACEOF - rm -f conftest$ac_exeext - if { (ac_try="$ac_link" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_sizeof_long=`cat conftest.val` - else - echo "$as_me: program exited with status $ac_status" >&5 - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - - ( exit $ac_status ) - if test "$ac_cv_type_long" = yes; then - { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) - See \`config.log' for more details." >&5 - echo "$as_me: error: cannot compute sizeof (long) - See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } - else - ac_cv_sizeof_long=0 - fi - fi - rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - rm -f conftest.val - fi - { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 - echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } - - - - cat >>confdefs.h <<_ACEOF - #define SIZEOF_LONG $ac_cv_sizeof_long - _ACEOF - - - if test $ac_cv_sizeof_void_p -eq 8; then - if test $ac_cv_sizeof_int -eq 8; then - OCTAVE_IDX_TYPE=int - elif test $ac_cv_sizeof_long -eq 8; then - OCTAVE_IDX_TYPE=long - - cat >>confdefs.h <<\_ACEOF - #define IDX_TYPE_LONG 1 - _ACEOF - - else - warn_64_bit="no suitable type found for octave_idx_type so disabling 64-bit features" - { echo "$as_me:$LINENO: WARNING: $warn_64_bit" >&5 - echo "$as_me: WARNING: $warn_64_bit" >&2;} - USE_64_BIT_IDX_T=false - fi - else - warn_64_bit="pointers are not 64-bits wide so disabling 64-bit features" - { echo "$as_me:$LINENO: WARNING: $warn_64_bit" >&5 - echo "$as_me: WARNING: $warn_64_bit" >&2;} - USE_64_BIT_IDX_T=false - fi - fi - - if $USE_64_BIT_IDX_T; then - - cat >>confdefs.h <<\_ACEOF - #define USE_64_BIT_IDX_T 1 - _ACEOF fi ! ! ! ### It seems that there are some broken inline assembly functions in ! ### the GNU libc. Since I'm not sure how to test whether we are using ! ### GNU libc, just disable them for all platforms. ! ! { echo "$as_me:$LINENO: defining __NO_MATH_INLINES avoids buggy GNU libc exp function" >&5 ! echo "$as_me: defining __NO_MATH_INLINES avoids buggy GNU libc exp function" >&6;} ! ! cat >>confdefs.h <<\_ACEOF ! #define __NO_MATH_INLINES 1 ! _ACEOF ! ! ! ### See which C++ compiler to use (we expect to find g++). ! ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! if test -z "$CXX"; then ! if test -n "$CCC"; then ! CXX=$CCC ! else ! if test -n "$ac_tool_prefix"; then ! for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_CXX+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! if test -n "$CXX"; then ! ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi ! CXX=$ac_cv_prog_CXX ! if test -n "$CXX"; then ! { echo "$as_me:$LINENO: result: $CXX" >&5 ! echo "${ECHO_T}$CXX" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ! test -n "$CXX" && break done fi ! if test -z "$CXX"; then ! ac_ct_CXX=$CXX ! for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! if test -n "$ac_ct_CXX"; then ! ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_ac_ct_CXX="$ac_prog" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi ! ac_ct_CXX=$ac_cv_prog_ac_ct_CXX ! if test -n "$ac_ct_CXX"; then ! { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 ! echo "${ECHO_T}$ac_ct_CXX" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ! test -n "$ac_ct_CXX" && break done ! if test "x$ac_ct_CXX" = x; then ! CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) ! { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ! whose name does not start with the host triplet. If you think this ! configuration is useful to you, please write to autoconf@gnu.org." >&5 ! echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ! whose name does not start with the host triplet. If you think this ! configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac ! CXX=$ac_ct_CXX fi fi - fi fi # Provide some information about the compiler. ! echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ! ac_compiler=`set X $ac_compile; echo $2` ! { (ac_try="$ac_compiler --version >&5" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compiler --version >&5") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } ! { (ac_try="$ac_compiler -v >&5" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compiler -v >&5") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } ! { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } ! { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 ! echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } ! if test "${ac_cv_cxx_compiler_gnu+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int --- 4723,5799 ---- USE_64_BIT_IDX_T=false OCTAVE_IDX_TYPE=int # Check whether --enable-64 was given. ! if test "${enable_64+set}" = set; then : enableval=$enable_64; if test "$enableval" = yes; then USE_64_BIT_IDX_T=true; fi fi if $USE_64_BIT_IDX_T; then ! # The cast to long int works around a bug in the HP C Compiler ! # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! # This bug is HP SR number 8606223364. ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 ! $as_echo_n "checking size of void *... " >&6; } ! if test "${ac_cv_sizeof_void_p+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : ! else ! if test "$ac_cv_type_void_p" = yes; then ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! { as_fn_set_status 77 ! as_fn_error "cannot compute sizeof (void *) ! See \`config.log' for more details." "$LINENO" 5; }; } ! else ! ac_cv_sizeof_void_p=0 ! fi ! fi ! ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 ! $as_echo "$ac_cv_sizeof_void_p" >&6; } ! ! ! ! cat >>confdefs.h <<_ACEOF ! #define SIZEOF_VOID_P $ac_cv_sizeof_void_p _ACEOF ! ! # The cast to long int works around a bug in the HP C Compiler ! # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! # This bug is HP SR number 8606223364. ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 ! $as_echo_n "checking size of int... " >&6; } ! if test "${ac_cv_sizeof_int+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : ! ! else ! if test "$ac_cv_type_int" = yes; then ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! { as_fn_set_status 77 ! as_fn_error "cannot compute sizeof (int) ! See \`config.log' for more details." "$LINENO" 5; }; } ! else ! ac_cv_sizeof_int=0 ! fi fi fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 ! $as_echo "$ac_cv_sizeof_int" >&6; } ! ! ! cat >>confdefs.h <<_ACEOF ! #define SIZEOF_INT $ac_cv_sizeof_int ! _ACEOF ! ! ! # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 ! $as_echo_n "checking size of long... " >&6; } ! if test "${ac_cv_sizeof_long+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : ! else ! if test "$ac_cv_type_long" = yes; then ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! { as_fn_set_status 77 ! as_fn_error "cannot compute sizeof (long) ! See \`config.log' for more details." "$LINENO" 5; }; } ! else ! ac_cv_sizeof_long=0 ! fi ! fi ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 ! $as_echo "$ac_cv_sizeof_long" >&6; } ! ! ! ! cat >>confdefs.h <<_ACEOF ! #define SIZEOF_LONG $ac_cv_sizeof_long _ACEOF ! ! ! if test $ac_cv_sizeof_void_p -eq 8; then ! if test $ac_cv_sizeof_int -eq 8; then ! OCTAVE_IDX_TYPE=int ! elif test $ac_cv_sizeof_long -eq 8; then ! OCTAVE_IDX_TYPE=long ! ! $as_echo "#define IDX_TYPE_LONG 1" >>confdefs.h ! ! else ! warn_64_bit="no suitable type found for octave_idx_type so disabling 64-bit features" ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_64_bit" >&5 ! $as_echo "$as_me: WARNING: $warn_64_bit" >&2;} ! USE_64_BIT_IDX_T=false ! fi ! else ! warn_64_bit="pointers are not 64-bits wide so disabling 64-bit features" ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_64_bit" >&5 ! $as_echo "$as_me: WARNING: $warn_64_bit" >&2;} ! USE_64_BIT_IDX_T=false ! fi ! fi ! ! if $USE_64_BIT_IDX_T; then ! ! $as_echo "#define USE_64_BIT_IDX_T 1" >>confdefs.h ! ! fi ! ! ! ### It seems that there are some broken inline assembly functions in ! ### the GNU libc. Since I'm not sure how to test whether we are using ! ### GNU libc, just disable them for all platforms. ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining __NO_MATH_INLINES avoids buggy GNU libc exp function" >&5 ! $as_echo "$as_me: defining __NO_MATH_INLINES avoids buggy GNU libc exp function" >&6;} ! ! $as_echo "#define __NO_MATH_INLINES 1" >>confdefs.h ! ! ! ### See which C++ compiler to use (we expect to find g++). ! ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! if test -z "$CXX"; then ! if test -n "$CCC"; then ! CXX=$CCC ! else ! if test -n "$ac_tool_prefix"; then ! for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC ! do ! # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ! set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_CXX+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! if test -n "$CXX"; then ! ac_cv_prog_CXX="$CXX" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! ! fi ! fi ! CXX=$ac_cv_prog_CXX ! if test -n "$CXX"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 ! $as_echo "$CXX" >&6; } ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! ! ! test -n "$CXX" && break ! done ! fi ! if test -z "$CXX"; then ! ac_ct_CXX=$CXX ! for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC ! do ! # Extract the first word of "$ac_prog", so it can be a program name with args. ! set dummy $ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! if test -n "$ac_ct_CXX"; then ! ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_ac_ct_CXX="$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! ! fi ! fi ! ac_ct_CXX=$ac_cv_prog_ac_ct_CXX ! if test -n "$ac_ct_CXX"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 ! $as_echo "$ac_ct_CXX" >&6; } ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! ! ! test -n "$ac_ct_CXX" && break ! done ! ! if test "x$ac_ct_CXX" = x; then ! CXX="g++" ! else ! case $cross_compiling:$ac_tool_warned in ! yes:) ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 ! $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ! ac_tool_warned=yes ;; ! esac ! CXX=$ac_ct_CXX ! fi ! fi ! ! fi ! fi ! # Provide some information about the compiler. ! $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 ! set X $ac_compile ! ac_compiler=$2 ! for ac_option in --version -v -V -qversion; do ! { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? ! if test -s conftest.err; then ! sed '10a\ ! ... rest of stderr output deleted ... ! 10q' conftest.err >conftest.er1 ! cat conftest.er1 >&5 ! rm -f conftest.er1 conftest.err ! fi ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; } ! done ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 ! $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } ! if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! int main () { ! #ifndef __GNUC__ ! choke me ! #endif ; return 0; } _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : ! ac_compiler_gnu=yes else ! ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_cv_cxx_compiler_gnu=$ac_compiler_gnu ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 ! $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } ! if test $ac_compiler_gnu = yes; then ! GXX=yes ! else ! GXX= ! fi ! ac_test_CXXFLAGS=${CXXFLAGS+set} ! ac_save_CXXFLAGS=$CXXFLAGS ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 ! $as_echo_n "checking whether $CXX accepts -g... " >&6; } ! if test "${ac_cv_prog_cxx_g+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_save_cxx_werror_flag=$ac_cxx_werror_flag ! ac_cxx_werror_flag=yes ! ac_cv_prog_cxx_g=no ! CXXFLAGS="-g" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! int main () { ; return 0; } _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : ! ac_cv_prog_cxx_g=yes ! else ! CXXFLAGS="" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! int main () { ; return 0; } _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : else ! ac_cxx_werror_flag=$ac_save_cxx_werror_flag ! CXXFLAGS="-g" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! int main () { ; return 0; } _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : ! ac_cv_prog_cxx_g=yes ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_cxx_werror_flag=$ac_save_cxx_werror_flag ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 ! $as_echo "$ac_cv_prog_cxx_g" >&6; } ! if test "$ac_test_CXXFLAGS" = set; then ! CXXFLAGS=$ac_save_CXXFLAGS ! elif test $ac_cv_prog_cxx_g = yes; then ! if test "$GXX" = yes; then ! CXXFLAGS="-g -O2" ! else ! CXXFLAGS="-g" ! fi else ! if test "$GXX" = yes; then ! CXXFLAGS="-O2" ! else ! CXXFLAGS= ! fi fi + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 ! $as_echo_n "checking how to run the C++ preprocessor... " >&6; } ! if test -z "$CXXCPP"; then ! if test "${ac_cv_prog_CXXCPP+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! # Double quotes because CXXCPP needs to be expanded ! for CXXCPP in "$CXX -E" "/lib/cpp" ! do ! ac_preproc_ok=false ! for ac_cxx_preproc_warn_flag in '' yes ! do ! # Use a header file that comes with gcc, so configuring glibc ! # with a fresh cross-compiler works. ! # Prefer to if __STDC__ is defined, since ! # exists even on freestanding compilers. ! # On the NeXT, cc -E runs the code through the compiler's parser, ! # not just through cpp. "Syntax error" is here to catch this case. ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! Syntax error _ACEOF ! if ac_fn_cxx_try_cpp "$LINENO"; then : ! ! else ! # Broken: fails on valid input. ! continue ! fi ! rm -f conftest.err conftest.$ac_ext ! ! # OK, works on sane cases. Now check whether nonexistent headers ! # can be detected and how. ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #include ! _ACEOF ! if ac_fn_cxx_try_cpp "$LINENO"; then : ! # Broken: success on invalid input. ! continue ! else ! # Passes both tests. ! ac_preproc_ok=: ! break ! fi ! rm -f conftest.err conftest.$ac_ext ! done ! # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! rm -f conftest.err conftest.$ac_ext ! if $ac_preproc_ok; then : ! break ! fi ! done ! ac_cv_prog_CXXCPP=$CXXCPP ! ! fi ! CXXCPP=$ac_cv_prog_CXXCPP ! else ! ac_cv_prog_CXXCPP=$CXXCPP ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 ! $as_echo "$CXXCPP" >&6; } ! ac_preproc_ok=false ! for ac_cxx_preproc_warn_flag in '' yes ! do ! # Use a header file that comes with gcc, so configuring glibc ! # with a fresh cross-compiler works. ! # Prefer to if __STDC__ is defined, since ! # exists even on freestanding compilers. ! # On the NeXT, cc -E runs the code through the compiler's parser, ! # not just through cpp. "Syntax error" is here to catch this case. ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! Syntax error _ACEOF ! if ac_fn_cxx_try_cpp "$LINENO"; then : ! else ! # Broken: fails on valid input. ! continue ! fi ! rm -f conftest.err conftest.$ac_ext ! # OK, works on sane cases. Now check whether nonexistent headers ! # can be detected and how. ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! #include ! _ACEOF ! if ac_fn_cxx_try_cpp "$LINENO"; then : ! # Broken: success on invalid input. ! continue ! else ! # Passes both tests. ! ac_preproc_ok=: ! break fi ! rm -f conftest.err conftest.$ac_ext ! ! done ! # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! rm -f conftest.err conftest.$ac_ext ! if $ac_preproc_ok; then : ! ! else ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check ! See \`config.log' for more details." "$LINENO" 5; } fi ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! ### Do special things for g++. ! ! gxx_version=`$CXX -v 2>&1 | grep "^.*g.. version" | \ ! sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//' -e 's/ .*//'` ! ! case "$gxx_version" in ! 1.* | 2.[0123456789].* | 3.[01234].*) ! as_fn_error "g++ version $gxx_version will probably fail to compile Octave ! " "$LINENO" 5 ! ;; ! esac ! ! CXX_VERSION= ! if test -n "$gxx_version"; then ! CXX_VERSION="$gxx_version" fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ support for new friend template declaration" >&5 ! $as_echo_n "checking for C++ support for new friend template declaration... " >&6; } ! if test "${octave_cv_cxx_new_friend_template_decl+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! rm -f conftest.h ! cat > conftest.h < int ! operator== (const T&, const T&) ! { ! return 0; ! } ! EOB ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #include "conftest.h" int main () { ! A a (1); ! return a == A(1); ; return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : ! octave_cv_cxx_new_friend_template_decl=no else ! octave_cv_cxx_new_friend_template_decl=yes fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_cxx_new_friend_template_decl" >&5 ! $as_echo "$octave_cv_cxx_new_friend_template_decl" >&6; } ! if test $octave_cv_cxx_new_friend_template_decl = yes; then ! $as_echo "#define CXX_NEW_FRIEND_TEMPLATE_DECL 1" >>confdefs.h ! fi ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ library is ISO compliant" >&5 ! $as_echo_n "checking if C++ library is ISO compliant... " >&6; } ! if test "${octave_cv_cxx_iso_compliant_library+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! rm -f conftest.h ! ### Omitting cwctype for now, since it is broken with gcc-3.0.x and ! ### possibly other versions... ! for inc in algorithm bitset cassert cctype cerrno cfloat ciso646 \ ! climits clocale cmath complex csetjmp csignal cstdarg cstddef \ ! cstdio cstdlib cstring ctime cwchar deque exception \ ! fstream functional iomanip ios iosfwd iostream istream iterator \ ! limits list locale map memory new numeric ostream queue set \ ! sstream stack stdexcept streambuf string strstream typeinfo \ ! utility valarray vector; do ! echo "#include <$inc>" >> conftest.h ! done ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #include "conftest.h" int main () { ! std::bitset<50> flags; ! flags.set(); ! int digits = std::numeric_limits::digits; ! digits = 0; ; return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : ! octave_cv_cxx_iso_compliant_library=yes else ! octave_cv_cxx_iso_compliant_library=no fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_cxx_iso_compliant_library" >&5 ! $as_echo "$octave_cv_cxx_iso_compliant_library" >&6; } ! if test $octave_cv_cxx_iso_compliant_library = yes; then ! $as_echo "#define CXX_ISO_COMPLIANT_LIBRARY 1" >>confdefs.h ! fi ! ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken C++ reinterpret_cast" >&5 ! $as_echo_n "checking for broken C++ reinterpret_cast... " >&6; } ! if test "${octave_cv_cxx_broken_reinterpret_cast+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #include int main () { ! typedef double (*fptr) (double); ! fptr psin = sin; ! void *vptr = reinterpret_cast (psin); ! psin = reinterpret_cast (vptr); ; return 0; } _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : ! octave_cv_cxx_broken_reinterpret_cast=no else ! octave_cv_cxx_broken_reinterpret_cast=yes fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_cxx_broken_reinterpret_cast" >&5 ! $as_echo "$octave_cv_cxx_broken_reinterpret_cast" >&6; } ! if test $octave_cv_cxx_broken_reinterpret_cast = yes ; then + $as_echo "#define CXX_BROKEN_REINTERPRET_CAST 1" >>confdefs.h + fi + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu + ### See which C compiler to use (we expect to find gcc). ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! if test -n "$ac_tool_prefix"; then ! # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. ! set dummy ${ac_tool_prefix}gcc; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_CC+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! if test -n "$CC"; then ! ac_cv_prog_CC="$CC" # Let the user override the test. else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_CC="${ac_tool_prefix}gcc" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS fi fi ! CC=$ac_cv_prog_CC ! if test -n "$CC"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 ! $as_echo "$CC" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! fi ! if test -z "$ac_cv_prog_CC"; then ! ac_ct_CC=$CC ! # Extract the first word of "gcc", so it can be a program name with args. ! set dummy gcc; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! if test -n "$ac_ct_CC"; then ! ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_ac_ct_CC="gcc" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS fi ! fi ! ac_ct_CC=$ac_cv_prog_ac_ct_CC ! if test -n "$ac_ct_CC"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 ! $as_echo "$ac_ct_CC" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! if test "x$ac_ct_CC" = x; then ! CC="" ! else ! case $cross_compiling:$ac_tool_warned in ! yes:) ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 ! $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ! ac_tool_warned=yes ;; esac ! CC=$ac_ct_CC ! fi else ! CC="$ac_cv_prog_CC" fi ! if test -z "$CC"; then ! if test -n "$ac_tool_prefix"; then ! # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. ! set dummy ${ac_tool_prefix}cc; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_CC+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! if test -n "$CC"; then ! ac_cv_prog_CC="$CC" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_CC="${ac_tool_prefix}cc" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS fi ! fi ! CC=$ac_cv_prog_CC ! if test -n "$CC"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 ! $as_echo "$CC" >&6; } ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ! fi ! fi ! if test -z "$CC"; then ! # Extract the first word of "cc", so it can be a program name with args. ! set dummy cc; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_CC+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! if test -n "$CC"; then ! ac_cv_prog_CC="$CC" # Let the user override the test. ! else ! ac_prog_rejected=no ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ! ac_prog_rejected=yes ! continue ! fi ! ac_cv_prog_CC="cc" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! if test $ac_prog_rejected = yes; then ! # We found a bogon in the path, so make sure we never use it. ! set dummy $ac_cv_prog_CC ! shift ! if test $# != 0; then ! # We chose a different compiler from the bogus one. ! # However, it has the same basename, so the bogon will be chosen ! # first if we set CC to just the basename; use the full file name. ! shift ! ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" ! fi ! fi ! fi ! fi ! CC=$ac_cv_prog_CC ! if test -n "$CC"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 ! $as_echo "$CC" >&6; } ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi fi ! if test -z "$CC"; then ! if test -n "$ac_tool_prefix"; then ! for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_CC+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! if test -n "$CC"; then ! ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_CC="$ac_tool_prefix$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi ! CC=$ac_cv_prog_CC ! if test -n "$CC"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 ! $as_echo "$CC" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ! test -n "$CC" && break done fi ! if test -z "$CC"; then ! ac_ct_CC=$CC ! for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! if test -n "$ac_ct_CC"; then ! ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_ac_ct_CC="$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi ! ac_ct_CC=$ac_cv_prog_ac_ct_CC ! if test -n "$ac_ct_CC"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 ! $as_echo "$ac_ct_CC" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ! test -n "$ac_ct_CC" && break done ! if test "x$ac_ct_CC" = x; then ! CC="" else case $cross_compiling:$ac_tool_warned in yes:) ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 ! $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac ! CC=$ac_ct_CC fi fi fi + + + test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + as_fn_error "no acceptable C compiler found in \$PATH + See \`config.log' for more details." "$LINENO" 5; } + # Provide some information about the compiler. ! $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 ! set X $ac_compile ! ac_compiler=$2 ! for ac_option in --version -v -V -qversion; do ! { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? ! if test -s conftest.err; then ! sed '10a\ ! ... rest of stderr output deleted ... ! 10q' conftest.err >conftest.er1 ! cat conftest.er1 >&5 ! rm -f conftest.er1 conftest.err ! fi ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; } ! done ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 ! $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } ! if test "${ac_cv_c_compiler_gnu+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int *************** *** 5497,5550 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_compiler_gnu=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi ! { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 ! echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } ! GXX=`test $ac_compiler_gnu = yes && echo yes` ! ac_test_CXXFLAGS=${CXXFLAGS+set} ! ac_save_CXXFLAGS=$CXXFLAGS ! { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 ! echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } ! if test "${ac_cv_prog_cxx_g+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! ac_save_cxx_werror_flag=$ac_cxx_werror_flag ! ac_cxx_werror_flag=yes ! ac_cv_prog_cxx_g=no ! CXXFLAGS="-g" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int --- 5807,5840 ---- return 0; } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ! ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_cv_c_compiler_gnu=$ac_compiler_gnu fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 ! $as_echo "$ac_cv_c_compiler_gnu" >&6; } ! if test $ac_compiler_gnu = yes; then ! GCC=yes else ! GCC= ! fi ! ac_test_CFLAGS=${CFLAGS+set} ! ac_save_CFLAGS=$CFLAGS ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 ! $as_echo_n "checking whether $CC accepts -g... " >&6; } ! if test "${ac_cv_prog_cc_g+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_save_c_werror_flag=$ac_c_werror_flag ! ac_c_werror_flag=yes ! ac_cv_prog_cc_g=no ! CFLAGS="-g" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int *************** *** 5555,5588 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_prog_cxx_g=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! CXXFLAGS="" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int --- 5845,5855 ---- return 0; } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_cv_prog_cc_g=yes else ! CFLAGS="" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int *************** *** 5593,5627 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! : ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cxx_werror_flag=$ac_save_cxx_werror_flag ! CXXFLAGS="-g" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int --- 5860,5871 ---- return 0; } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! else ! ac_c_werror_flag=$ac_save_c_werror_flag ! CFLAGS="-g" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int *************** *** 5632,5710 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_prog_cxx_g=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi ! { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 ! echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } ! if test "$ac_test_CXXFLAGS" = set; then ! CXXFLAGS=$ac_save_CXXFLAGS ! elif test $ac_cv_prog_cxx_g = yes; then ! if test "$GXX" = yes; then ! CXXFLAGS="-g -O2" else ! CXXFLAGS="-g" fi else ! if test "$GXX" = yes; then ! CXXFLAGS="-O2" else ! CXXFLAGS= fi fi ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 ! echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } ! if test -z "$CXXCPP"; then ! if test "${ac_cv_prog_CXXCPP+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! # Double quotes because CXXCPP needs to be expanded ! for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false ! for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. --- 5876,6025 ---- return 0; } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_c_werror_flag=$ac_save_c_werror_flag fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 ! $as_echo "$ac_cv_prog_cc_g" >&6; } ! if test "$ac_test_CFLAGS" = set; then ! CFLAGS=$ac_save_CFLAGS ! elif test $ac_cv_prog_cc_g = yes; then ! if test "$GCC" = yes; then ! CFLAGS="-g -O2" else ! CFLAGS="-g" fi else ! if test "$GCC" = yes; then ! CFLAGS="-O2" else ! CFLAGS= fi fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 ! $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } ! if test "${ac_cv_prog_cc_c89+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_cv_prog_cc_c89=no ! ac_save_CC=$CC ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! #include ! #include ! #include ! #include ! /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ ! struct buf { int x; }; ! FILE * (*rcsopen) (struct buf *, struct stat *, int); ! static char *e (p, i) ! char **p; ! int i; ! { ! return p[i]; ! } ! static char *f (char * (*g) (char **, int), char **p, ...) ! { ! char *s; ! va_list v; ! va_start (v,p); ! s = g (p, va_arg (v,int)); ! va_end (v); ! return s; ! } ! ! /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has ! function prototypes and stuff, but not '\xHH' hex character constants. ! These don't provoke an error unfortunately, instead are silently treated ! as 'x'. The following induces an error, until -std is added to get ! proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an ! array size at least. It's necessary to write '\x00'==0 to get something ! that's true only with -std. */ ! int osf4_cc_array ['\x00' == 0 ? 1 : -1]; ! ! /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters ! inside strings and character constants. */ ! #define FOO(x) 'x' ! int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; ! ! int test (int i, double x); ! struct s1 {int (*f) (int a);}; ! struct s2 {int (*f) (double a);}; ! int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); ! int argc; ! char **argv; ! int ! main () ! { ! return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ! ; ! return 0; ! } ! _ACEOF ! for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ ! -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" ! do ! CC="$ac_save_CC $ac_arg" ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_cv_prog_cc_c89=$ac_arg ! fi ! rm -f core conftest.err conftest.$ac_objext ! test "x$ac_cv_prog_cc_c89" != "xno" && break ! done ! rm -f conftest.$ac_ext ! CC=$ac_save_CC ! ! fi ! # AC_CACHE_VAL ! case "x$ac_cv_prog_cc_c89" in ! x) ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 ! $as_echo "none needed" >&6; } ;; ! xno) ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 ! $as_echo "unsupported" >&6; } ;; ! *) ! CC="$CC $ac_cv_prog_cc_c89" ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 ! $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; ! esac ! if test "x$ac_cv_prog_cc_c89" != xno; then : ! ! fi ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 ! $as_echo_n "checking how to run the C preprocessor... " >&6; } ! # On Suns, sometimes $CPP names a directory. ! if test -n "$CPP" && test -d "$CPP"; then ! CPP= ! fi ! if test -z "$CPP"; then ! if test "${ac_cv_prog_CPP+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! # Double quotes because CPP needs to be expanded ! for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false ! for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. *************** *** 5712,5722 **** # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include --- 6027,6033 ---- # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include *************** *** 5725,5815 **** #endif Syntax error _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ! test ! -s conftest.err ! }; then ! : ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi - rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ! test ! -s conftest.err ! }; then # Broken: success on invalid input. continue else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - # Passes both tests. ac_preproc_ok=: break fi - rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext ! if $ac_preproc_ok; then break fi done ! ac_cv_prog_CXXCPP=$CXXCPP fi ! CXXCPP=$ac_cv_prog_CXXCPP else ! ac_cv_prog_CXXCPP=$CXXCPP fi ! { echo "$as_me:$LINENO: result: $CXXCPP" >&5 ! echo "${ECHO_T}$CXXCPP" >&6; } ac_preproc_ok=false ! for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. --- 6036,6084 ---- #endif Syntax error _ACEOF ! if ac_fn_c_try_cpp "$LINENO"; then : + else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF ! if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext ! if $ac_preproc_ok; then : break fi done ! ac_cv_prog_CPP=$CPP fi ! CPP=$ac_cv_prog_CPP else ! ac_cv_prog_CPP=$CPP fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 ! $as_echo "$CPP" >&6; } ac_preproc_ok=false ! for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. *************** *** 5817,5827 **** # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include --- 6086,6092 ---- # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include *************** *** 5830,5912 **** #endif Syntax error _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ! test ! -s conftest.err ! }; then ! : ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi - rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ! test ! -s conftest.err ! }; then # Broken: success on invalid input. continue else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - # Passes both tests. ac_preproc_ok=: break fi - rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext ! if $ac_preproc_ok; then ! : else ! { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check ! See \`config.log' for more details." >&5 ! echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } fi ac_ext=c --- 6095,6134 ---- #endif Syntax error _ACEOF ! if ac_fn_c_try_cpp "$LINENO"; then : + else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF ! if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext ! if $ac_preproc_ok; then : ! else ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! as_fn_error "C preprocessor \"$CPP\" fails sanity check ! See \`config.log' for more details." "$LINENO" 5; } fi ac_ext=c *************** *** 5915,7726 **** ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - ### Do special things for g++. ! gxx_version=`$CXX -v 2>&1 | grep "^.*g.. version" | \ ! sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//' -e 's/ .*//'` ! case "$gxx_version" in ! 1.* | 2.[0123456789].* | 3.[01234].*) ! { { echo "$as_me:$LINENO: error: g++ version $gxx_version will probably fail to compile Octave ! " >&5 ! echo "$as_me: error: g++ version $gxx_version will probably fail to compile Octave ! " >&2;} ! { (exit 1); exit 1; }; } ;; esac ! CXX_VERSION= ! if test -n "$gxx_version"; then ! CXX_VERSION="$gxx_version" fi ! ! ! { echo "$as_me:$LINENO: checking for C++ support for new friend template declaration" >&5 ! echo $ECHO_N "checking for C++ support for new friend template declaration... $ECHO_C" >&6; } ! if test "${octave_cv_cxx_new_friend_template_decl+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cpp - ac_cpp='$CXXCPP $CPPFLAGS' - ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' - ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' - ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - rm -f conftest.h - cat > conftest.h < int - operator== (const T&, const T&) - { - return 0; - } - EOB - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - #include "conftest.h" - int - main () - { - A a (1); - return a == A(1); - ; - return 0; - } - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (ac_try="$ac_link" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - octave_cv_cxx_new_friend_template_decl=no - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! octave_cv_cxx_new_friend_template_decl=yes ! fi ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi ! { echo "$as_me:$LINENO: result: $octave_cv_cxx_new_friend_template_decl" >&5 ! echo "${ECHO_T}$octave_cv_cxx_new_friend_template_decl" >&6; } ! if test $octave_cv_cxx_new_friend_template_decl = yes; then ! cat >>confdefs.h <<\_ACEOF ! #define CXX_NEW_FRIEND_TEMPLATE_DECL 1 ! _ACEOF fi ! { echo "$as_me:$LINENO: checking if C++ library is ISO compliant" >&5 ! echo $ECHO_N "checking if C++ library is ISO compliant... $ECHO_C" >&6; } ! if test "${octave_cv_cxx_iso_compliant_library+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! rm -f conftest.h ! ### Omitting cwctype for now, since it is broken with gcc-3.0.x and ! ### possibly other versions... ! for inc in algorithm bitset cassert cctype cerrno cfloat ciso646 \ ! climits clocale cmath complex csetjmp csignal cstdarg cstddef \ ! cstdio cstdlib cstring ctime cwchar deque exception \ ! fstream functional iomanip ios iosfwd iostream istream iterator \ ! limits list locale map memory new numeric ostream queue set \ ! sstream stack stdexcept streambuf string strstream typeinfo \ ! utility valarray vector; do ! echo "#include <$inc>" >> conftest.h ! done ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! #include "conftest.h" int main () { ! std::bitset<50> flags; ! flags.set(); ! int digits = std::numeric_limits::digits; ! digits = 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! octave_cv_cxx_iso_compliant_library=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! octave_cv_cxx_iso_compliant_library=no fi ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu fi ! { echo "$as_me:$LINENO: result: $octave_cv_cxx_iso_compliant_library" >&5 ! echo "${ECHO_T}$octave_cv_cxx_iso_compliant_library" >&6; } ! if test $octave_cv_cxx_iso_compliant_library = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define CXX_ISO_COMPLIANT_LIBRARY 1 ! _ACEOF ! ! fi ! ! ! ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! { echo "$as_me:$LINENO: checking for broken C++ reinterpret_cast" >&5 ! echo $ECHO_N "checking for broken C++ reinterpret_cast... $ECHO_C" >&6; } ! if test "${octave_cv_cxx_broken_reinterpret_cast+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! #include int main () { ! ! typedef double (*fptr) (double); ! fptr psin = sin; ! void *vptr = reinterpret_cast (psin); ! psin = reinterpret_cast (vptr); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! octave_cv_cxx_broken_reinterpret_cast=no ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! octave_cv_cxx_broken_reinterpret_cast=yes ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $octave_cv_cxx_broken_reinterpret_cast" >&5 ! echo "${ECHO_T}$octave_cv_cxx_broken_reinterpret_cast" >&6; } ! if test $octave_cv_cxx_broken_reinterpret_cast = yes ; then ! cat >>confdefs.h <<\_ACEOF ! #define CXX_BROKEN_REINTERPRET_CAST 1 _ACEOF ! fi ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ### See which C compiler to use (we expect to find gcc). ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! if test -n "$ac_tool_prefix"; then ! # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. ! set dummy ${ac_tool_prefix}gcc; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_CC+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! if test -n "$CC"; then ! ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_CC="${ac_tool_prefix}gcc" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi ! CC=$ac_cv_prog_CC ! if test -n "$CC"; then ! { echo "$as_me:$LINENO: result: $CC" >&5 ! echo "${ECHO_T}$CC" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ! fi ! if test -z "$ac_cv_prog_CC"; then ! ac_ct_CC=$CC ! # Extract the first word of "gcc", so it can be a program name with args. ! set dummy gcc; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test -n "$ac_ct_CC"; then ! ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_ac_ct_CC="gcc" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done done ! IFS=$as_save_IFS ! fi ! fi ! ac_ct_CC=$ac_cv_prog_ac_ct_CC ! if test -n "$ac_ct_CC"; then ! { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ! echo "${ECHO_T}$ac_ct_CC" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in - yes:) - { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools - whose name does not start with the host triplet. If you think this - configuration is useful to you, please write to autoconf@gnu.org." >&5 - echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools - whose name does not start with the host triplet. If you think this - configuration is useful to you, please write to autoconf@gnu.org." >&2;} - ac_tool_warned=yes ;; - esac - CC=$ac_ct_CC - fi - else - CC="$ac_cv_prog_CC" - fi - if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. - set dummy ${ac_tool_prefix}cc; ac_word=$2 - { echo "$as_me:$LINENO: checking for $ac_word" >&5 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } - if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. - else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR - for as_dir in $PATH - do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi - done - done - IFS=$as_save_IFS - fi - fi - CC=$ac_cv_prog_CC - if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 - echo "${ECHO_T}$CC" >&6; } - else - { echo "$as_me:$LINENO: result: no" >&5 - echo "${ECHO_T}no" >&6; } - fi ! fi ! fi ! if test -z "$CC"; then ! # Extract the first word of "cc", so it can be a program name with args. ! set dummy cc; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_CC+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test -n "$CC"; then ! ac_cv_prog_CC="$CC" # Let the user override the test. ! else ! ac_prog_rejected=no ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ! ac_prog_rejected=yes ! continue ! fi ! ac_cv_prog_CC="cc" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! if test $ac_prog_rejected = yes; then ! # We found a bogon in the path, so make sure we never use it. ! set dummy $ac_cv_prog_CC ! shift ! if test $# != 0; then ! # We chose a different compiler from the bogus one. ! # However, it has the same basename, so the bogon will be chosen ! # first if we set CC to just the basename; use the full file name. ! shift ! ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" ! fi ! fi ! fi ! fi ! CC=$ac_cv_prog_CC ! if test -n "$CC"; then ! { echo "$as_me:$LINENO: result: $CC" >&5 ! echo "${ECHO_T}$CC" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi - fi - if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. - set dummy $ac_tool_prefix$ac_prog; ac_word=$2 - { echo "$as_me:$LINENO: checking for $ac_word" >&5 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } - if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. - else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR - for as_dir in $PATH - do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi - done - done - IFS=$as_save_IFS ! fi ! fi ! CC=$ac_cv_prog_CC ! if test -n "$CC"; then ! { echo "$as_me:$LINENO: result: $CC" >&5 ! echo "${ECHO_T}$CC" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! test -n "$CC" && break ! done fi ! if test -z "$CC"; then ! ac_ct_CC=$CC ! for ac_prog in cl.exe ! do ! # Extract the first word of "$ac_prog", so it can be a program name with args. ! set dummy $ac_prog; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! if test -n "$ac_ct_CC"; then ! ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_ac_ct_CC="$ac_prog" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 fi ! done ! done ! IFS=$as_save_IFS ! ! fi ! fi ! ac_ct_CC=$ac_cv_prog_ac_ct_CC ! if test -n "$ac_ct_CC"; then ! { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ! echo "${ECHO_T}$ac_ct_CC" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ! test -n "$ac_ct_CC" && break ! done ! if test "x$ac_ct_CC" = x; then ! CC="" ! else ! case $cross_compiling:$ac_tool_warned in ! yes:) ! { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ! whose name does not start with the host triplet. If you think this ! configuration is useful to you, please write to autoconf@gnu.org." >&5 ! echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ! whose name does not start with the host triplet. If you think this ! configuration is useful to you, please write to autoconf@gnu.org." >&2;} ! ac_tool_warned=yes ;; ! esac ! CC=$ac_ct_CC ! fi ! fi ! fi ! test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH ! See \`config.log' for more details." >&5 ! echo "$as_me: error: no acceptable C compiler found in \$PATH ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } ! # Provide some information about the compiler. ! echo "$as_me:$LINENO: checking for C compiler version" >&5 ! ac_compiler=`set X $ac_compile; echo $2` ! { (ac_try="$ac_compiler --version >&5" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compiler --version >&5") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } ! { (ac_try="$ac_compiler -v >&5" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compiler -v >&5") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } ! { (ac_try="$ac_compiler -V >&5" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compiler -V >&5") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } ! { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 ! echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } ! if test "${ac_cv_c_compiler_gnu+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! ! int ! main () ! { ! #ifndef __GNUC__ ! choke me ! #endif ! ! ; ! return 0; ! } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_compiler_gnu=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_compiler_gnu=no fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_cv_c_compiler_gnu=$ac_compiler_gnu ! ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 ! echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } ! GCC=`test $ac_compiler_gnu = yes && echo yes` ! ac_test_CFLAGS=${CFLAGS+set} ! ac_save_CFLAGS=$CFLAGS ! { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 ! echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } ! if test "${ac_cv_prog_cc_g+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_save_c_werror_flag=$ac_c_werror_flag ! ac_c_werror_flag=yes ! ac_cv_prog_cc_g=no ! CFLAGS="-g" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! int main () { ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_prog_cc_g=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! CFLAGS="" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! : else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_c_werror_flag=$ac_save_c_werror_flag ! CFLAGS="-g" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_prog_cc_g=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag - fi - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 - echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } - if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS - elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi - else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= fi fi - { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 - echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } - if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - ac_cv_prog_cc_c89=no - ac_save_CC=$CC - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - #include - #include - #include - #include - /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ - struct buf { int x; }; - FILE * (*rcsopen) (struct buf *, struct stat *, int); - static char *e (p, i) - char **p; - int i; - { - return p[i]; - } - static char *f (char * (*g) (char **, int), char **p, ...) - { - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; - } ! /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has ! function prototypes and stuff, but not '\xHH' hex character constants. ! These don't provoke an error unfortunately, instead are silently treated ! as 'x'. The following induces an error, until -std is added to get ! proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an ! array size at least. It's necessary to write '\x00'==0 to get something ! that's true only with -std. */ ! int osf4_cc_array ['\x00' == 0 ? 1 : -1]; ! /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters ! inside strings and character constants. */ ! #define FOO(x) 'x' ! int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; ! int test (int i, double x); ! struct s1 {int (*f) (int a);}; ! struct s2 {int (*f) (double a);}; ! int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); ! int argc; ! char **argv; int main () { ! return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF ! for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ ! -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" ! do ! CC="$ac_save_CC $ac_arg" ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_prog_cc_c89=$ac_arg else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ! fi ! ! rm -f core conftest.err conftest.$ac_objext ! test "x$ac_cv_prog_cc_c89" != "xno" && break ! done ! rm -f conftest.$ac_ext ! CC=$ac_save_CC ! fi ! # AC_CACHE_VAL ! case "x$ac_cv_prog_cc_c89" in ! x) ! { echo "$as_me:$LINENO: result: none needed" >&5 ! echo "${ECHO_T}none needed" >&6; } ;; ! xno) ! { echo "$as_me:$LINENO: result: unsupported" >&5 ! echo "${ECHO_T}unsupported" >&6; } ;; ! *) ! CC="$CC $ac_cv_prog_cc_c89" ! { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 ! echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; ! esac ! ! ! ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 ! echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } ! # On Suns, sometimes $CPP names a directory. ! if test -n "$CPP" && test -d "$CPP"; then ! CPP= ! fi ! if test -z "$CPP"; then ! if test "${ac_cv_prog_CPP+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! # Double quotes because CPP needs to be expanded ! for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" ! do ! ac_preproc_ok=false ! for ac_c_preproc_warn_flag in '' yes ! do ! # Use a header file that comes with gcc, so configuring glibc ! # with a fresh cross-compiler works. ! # Prefer to if __STDC__ is defined, since ! # exists even on freestanding compilers. ! # On the NeXT, cc -E runs the code through the compiler's parser, ! # not just through cpp. "Syntax error" is here to catch this case. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! Syntax error ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! : ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - # Broken: fails on valid input. - continue fi ! rm -f conftest.err conftest.$ac_ext ! # OK, works on sane cases. Now check whether nonexistent headers ! # can be detected and how. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! # Broken: success on invalid input. ! continue else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! # Passes both tests. ! ac_preproc_ok=: ! break fi ! rm -f conftest.err conftest.$ac_ext ! done ! # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! rm -f conftest.err conftest.$ac_ext ! if $ac_preproc_ok; then ! break ! fi ! done ! ac_cv_prog_CPP=$CPP ! fi ! CPP=$ac_cv_prog_CPP ! else ! ac_cv_prog_CPP=$CPP ! fi ! { echo "$as_me:$LINENO: result: $CPP" >&5 ! echo "${ECHO_T}$CPP" >&6; } ! ac_preproc_ok=false ! for ac_c_preproc_warn_flag in '' yes ! do ! # Use a header file that comes with gcc, so configuring glibc ! # with a fresh cross-compiler works. ! # Prefer to if __STDC__ is defined, since ! # exists even on freestanding compilers. ! # On the NeXT, cc -E runs the code through the compiler's parser, ! # not just through cpp. "Syntax error" is here to catch this case. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! Syntax error ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! : ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - # Broken: fails on valid input. - continue fi ! rm -f conftest.err conftest.$ac_ext ! ! # OK, works on sane cases. Now check whether nonexistent headers ! # can be detected and how. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! # Broken: success on invalid input. ! continue ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! # Passes both tests. ! ac_preproc_ok=: ! break ! fi ! rm -f conftest.err conftest.$ac_ext ! done ! # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! rm -f conftest.err conftest.$ac_ext ! if $ac_preproc_ok; then ! : else - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check - See \`config.log' for more details." >&5 - echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check - See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi ! ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ! if test $ac_cv_c_compiler_gnu = yes; then ! { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 ! echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } ! if test "${ac_cv_prog_gcc_traditional+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_pattern="Autoconf.*'x'" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! #include ! Autoconf TIOCGETP _ACEOF ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! $EGREP "$ac_pattern" >/dev/null 2>&1; then ! ac_cv_prog_gcc_traditional=yes else ! ac_cv_prog_gcc_traditional=no fi ! rm -f conftest* - if test $ac_cv_prog_gcc_traditional = no; then - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - #include - Autoconf TCGETA - _ACEOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1; then - ac_cv_prog_gcc_traditional=yes fi - rm -f conftest* ! fi ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 ! echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } ! if test $ac_cv_prog_gcc_traditional = yes; then ! CC="$CC -traditional" ! fi ! fi ! ### Do special things for gcc. - gcc_version=`$CC -v 2>&1 | grep "^.*gcc version" | \ - sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//'` - case "$gcc_version" in - 2.*) - if test -z "$LDFLAGS"; then - LDFLAGS="-g" - { echo "$as_me:$LINENO: defining LDFLAGS to be $LDFLAGS" >&5 - echo "$as_me: defining LDFLAGS to be $LDFLAGS" >&6;} - fi - ;; - 1.*) - warn_gcc_version="gcc version $gcc_version is likely to cause problems" - { echo "$as_me:$LINENO: WARNING: $warn_gcc_version" >&5 - echo "$as_me: WARNING: $warn_gcc_version" >&2;} - ;; - esac ! CC_VERSION= ! if test -n "$gcc_version"; then ! CC_VERSION="$gcc_version" ! fi ! ### The flag to create dependency varies depending on the compier. ! # Assume GCC. ! INCLUDE_DEPS=true ! DEPEND_FLAGS="-M" ! DEPEND_EXTRA_SED_PATTERN="" ! if test "$GCC" = yes; then ! true else ! case "$canonical_host_type" in ! sparc-sun-solaris2* | i386-pc-solaris2*) ! DEPEND_FLAGS="-xM1" ! DEPEND_EXTRA_SED_PATTERN="-e '/\/opt\/SUNWspro/d'" ! ;; ! *-*-msdosmsvc) ! ;; ! *) ! INCLUDE_DEPS=false ! ;; ! esac fi ! { echo "$as_me:$LINENO: checking for X" >&5 ! echo $ECHO_N "checking for X... $ECHO_C" >&6; } - # Check whether --with-x was given. - if test "${with_x+set}" = set; then - withval=$with_x; - fi ! # $have_x is `yes', `no', `disabled', or empty when we do not yet know. ! if test "x$with_x" = xno; then ! # The user explicitly disabled X. ! have_x=disabled ! else ! case $x_includes,$x_libraries in #( ! *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 ! echo "$as_me: error: Cannot use X directory names containing '" >&2;} ! { (exit 1); exit 1; }; };; #( ! *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else - # One or both of the vars are not set, and there is no cached value. - ac_x_includes=no ac_x_libraries=no - rm -f -r conftest.dir - if mkdir conftest.dir; then - cd conftest.dir - cat >Imakefile <<'_ACEOF' - incroot: - @echo incroot='${INCROOT}' - usrlibdir: - @echo usrlibdir='${USRLIBDIR}' - libdir: - @echo libdir='${LIBDIR}' - _ACEOF - if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then - # GNU make sometimes prints "make[1]: Entering...", which would confuse us. - for ac_var in incroot usrlibdir libdir; do - eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" - done - # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. - for ac_extension in a so sl; do - if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && - test -f "$ac_im_libdir/libX11.$ac_extension"; then - ac_im_usrlibdir=$ac_im_libdir; break - fi - done - # Screen out bogus values from the imake configuration. They are - # bogus both because they are the default anyway, and because - # using them would break gcc on systems where it needs fixed includes. - case $ac_im_incroot in - /usr/include) ac_x_includes= ;; - *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; - esac - case $ac_im_usrlibdir in - /usr/lib | /lib) ;; - *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; - esac - fi - cd .. - rm -f -r conftest.dir - fi ! # Standard set of common directories for X headers. ! # Check X11 before X11Rn because it is often a symlink to the current release. ! ac_x_header_dirs=' ! /usr/X11/include ! /usr/X11R6/include ! /usr/X11R5/include ! /usr/X11R4/include ! /usr/include/X11 ! /usr/include/X11R6 ! /usr/include/X11R5 ! /usr/include/X11R4 ! /usr/local/X11/include ! /usr/local/X11R6/include ! /usr/local/X11R5/include ! /usr/local/X11R4/include ! /usr/local/include/X11 ! /usr/local/include/X11R6 ! /usr/local/include/X11R5 ! /usr/local/include/X11R4 - /usr/X386/include - /usr/x386/include - /usr/XFree86/include/X11 ! /usr/include ! /usr/local/include ! /usr/unsupported/include ! /usr/athena/include ! /usr/local/x11r5/include ! /usr/lpp/Xamples/include ! /usr/openwin/include ! /usr/openwin/share/include' ! if test "$ac_x_includes" = no; then ! # Guess where to find include files, by looking for Xlib.h. ! # First, try using that file with no special directory specified. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! # We can compile using X headers with no special include directory. ! ac_x_includes= ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - for ac_dir in $ac_x_header_dirs; do - if test -r "$ac_dir/X11/Xlib.h"; then - ac_x_includes=$ac_dir - break fi - done - fi ! rm -f conftest.err conftest.$ac_ext ! fi # $ac_x_includes = no ! if test "$ac_x_libraries" = no; then ! # Check for the libraries. ! # See if we find them without any special options. ! # Don't add to $LIBS permanently. ! ac_save_LIBS=$LIBS ! LIBS="-lX11 $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! #include int main () { ! XrmInitialize () ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! LIBS=$ac_save_LIBS ! # We can link X programs with no special library path. ! ac_x_libraries= else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - LIBS=$ac_save_LIBS - for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` - do - # Don't even attempt the hair of trying to link an X program! - for ac_extension in a so sl; do - if test -r "$ac_dir/libX11.$ac_extension"; then - ac_x_libraries=$ac_dir - break 2 - fi - done - done fi ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! fi # $ac_x_libraries = no ! ! case $ac_x_includes,$ac_x_libraries in #( ! no,* | *,no | *\'*) ! # Didn't find X, or a directory has "'" in its name. ! ac_cv_have_x="have_x=no";; #( ! *) ! # Record where we found X for the cache. ! ac_cv_have_x="have_x=yes\ ! ac_x_includes='$ac_x_includes'\ ! ac_x_libraries='$ac_x_libraries'" ! esac ! fi ! ;; #( ! *) have_x=yes;; ! esac ! eval "$ac_cv_have_x" ! fi # $with_x != no ! ! if test "$have_x" != yes; then ! { echo "$as_me:$LINENO: result: $have_x" >&5 ! echo "${ECHO_T}$have_x" >&6; } ! no_x=yes ! else ! # If each of the values was on the command line, it overrides each guess. ! test "x$x_includes" = xNONE && x_includes=$ac_x_includes ! test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries ! # Update the cache value to reflect the command line values. ! ac_cv_have_x="have_x=yes\ ! ac_x_includes='$x_includes'\ ! ac_x_libraries='$x_libraries'" ! { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 ! echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } ! fi ! ! if test "$have_x"; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_X_WINDOWS 1 ! _ACEOF - if test "$x_includes" != "NONE"; then - X11_INCFLAGS="$x_includes" fi ! if test -z $x_libraries; then ! { echo "$as_me:$LINENO: checking for XrmInitialize in -lX11" >&5 ! echo $ECHO_N "checking for XrmInitialize in -lX11... $ECHO_C" >&6; } ! if test "${ac_cv_lib_X11_XrmInitialize+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lX11 $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char XrmInitialize (); ! int ! main () ! { ! return XrmInitialize (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_X11_XrmInitialize=yes else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_X11_XrmInitialize=no - fi ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XrmInitialize" >&5 ! echo "${ECHO_T}$ac_cv_lib_X11_XrmInitialize" >&6; } ! if test $ac_cv_lib_X11_XrmInitialize = yes; then ! X11_LIBS=-lX11 ! else ! X11_LIBS= ! fi ! elif test $x_libraries != "NONE"; then ! { echo "$as_me:$LINENO: checking for XrmInitialize in -lX11" >&5 ! echo $ECHO_N "checking for XrmInitialize in -lX11... $ECHO_C" >&6; } ! if test "${ac_cv_lib_X11_XrmInitialize+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lX11 "-L$x_libraries" $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - /* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ - #ifdef __cplusplus - extern "C" - #endif - char XrmInitialize (); int main () { ! return XrmInitialize (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_X11_XrmInitialize=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_X11_XrmInitialize=no fi - rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS=$ac_check_lib_save_LIBS - fi - { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XrmInitialize" >&5 - echo "${ECHO_T}$ac_cv_lib_X11_XrmInitialize" >&6; } - if test $ac_cv_lib_X11_XrmInitialize = yes; then - X11_LIBS="-L$x_libraries -lX11" - else - X11_LIBS= fi ! fi ! fi ! ### On MacOSX system the Carbon framework is used to determine ScreenSize ! { echo "$as_me:$LINENO: checking whether ${LD-ld} accepts -framework Carbon" >&5 ! echo $ECHO_N "checking whether ${LD-ld} accepts -framework Carbon... $ECHO_C" >&6; } ! if test "${octave_cv_framework_Carbon+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else - XLDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -framework Carbon" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! #include int main () { ! CGMainDisplayID () ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "octave_cv_framework_Carbon=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_framework_Carbon=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - LDFLAGS="$XLDFLAGS" fi ! if test "$octave_cv_framework_Carbon" = "yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ! # Check whether --with-framework-carbon was given. ! if test "${with_framework_carbon+set}" = set; then ! withval=$with_framework_carbon; with_have_framework=$withval ! else ! with_have_framework="yes" ! fi ! if test "$with_have_framework" = "yes"; then ! have_framework_carbon="yes" ! else ! { echo "$as_me:$LINENO: framework rejected by --without-framework-carbon" >&5 ! echo "$as_me: framework rejected by --without-framework-carbon" >&6;} ! have_framework_carbon="no" ! fi else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! have_framework_carbon="no" ! fi ! ! if test $have_framework_carbon = "yes"; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_FRAMEWORK_CARBON 1 ! _ACEOF ! ! CARBON_LIBS="-Wl,-framework -Wl,Carbon" ! { echo "$as_me:$LINENO: adding -Wl,-framework -Wl,Carbon to CARBON_LIBS" >&5 ! echo "$as_me: adding -Wl,-framework -Wl,Carbon to CARBON_LIBS" >&6;} ! ! fi ! ### On Intel systems with gcc, we may need to compile with -mieee-fp ! ### and -ffloat-store to get full support for IEEE floating point. ! ### ! ### On Alpha/OSF systems, we need -mieee. ! ieee_fp_flag= ! case "$canonical_host_type" in ! ## Keep this pattern first, so that it is preferred over the ! ## following pattern for x86. ! *-*-msdosmsvc) ! CXXFLAGS="$CXXFLAGS -EHs -MD" ! CFLAGS="$CFLAGS -MD" ;; ! i[3456789]86-*-*) ! if test "$GCC" = yes; then ! ac_safe=`echo "-mieee-fp" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mieee-fp" >&5 ! echo $ECHO_N "checking whether ${CC-cc} accepts -mieee-fp... $ECHO_C" >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c --- 6137,7423 ---- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + if test $ac_cv_c_compiler_gnu = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 + $as_echo_n "checking whether $CC needs -traditional... " >&6; } + if test "${ac_cv_prog_gcc_traditional+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + ac_pattern="Autoconf.*'x'" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include + Autoconf TIOCGETP + _ACEOF + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "$ac_pattern" >/dev/null 2>&1; then : + ac_cv_prog_gcc_traditional=yes + else + ac_cv_prog_gcc_traditional=no + fi + rm -f conftest* ! if test $ac_cv_prog_gcc_traditional = no; then ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! #include ! Autoconf TCGETA ! _ACEOF ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! $EGREP "$ac_pattern" >/dev/null 2>&1; then : ! ac_cv_prog_gcc_traditional=yes ! fi ! rm -f conftest* ! fi ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 ! $as_echo "$ac_cv_prog_gcc_traditional" >&6; } ! if test $ac_cv_prog_gcc_traditional = yes; then ! CC="$CC -traditional" ! fi ! fi ! ! ! ### Do special things for gcc. ! ! gcc_version=`$CC -v 2>&1 | grep "^.*gcc version" | \ ! sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//'` ! case "$gcc_version" in ! 2.*) ! if test -z "$LDFLAGS"; then ! LDFLAGS="-g" ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining LDFLAGS to be $LDFLAGS" >&5 ! $as_echo "$as_me: defining LDFLAGS to be $LDFLAGS" >&6;} ! fi ! ;; ! 1.*) ! warn_gcc_version="gcc version $gcc_version is likely to cause problems" ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_gcc_version" >&5 ! $as_echo "$as_me: WARNING: $warn_gcc_version" >&2;} ;; esac ! CC_VERSION= ! if test -n "$gcc_version"; then ! CC_VERSION="$gcc_version" fi + ### The flag to create dependency varies depending on the compier. ! # Assume GCC. ! INCLUDE_DEPS=true ! DEPEND_FLAGS="-M" ! DEPEND_EXTRA_SED_PATTERN="" ! if test "$GCC" = yes; then ! true else + case "$canonical_host_type" in + sparc-sun-solaris2* | i386-pc-solaris2*) + DEPEND_FLAGS="-xM1" + DEPEND_EXTRA_SED_PATTERN="-e '/\/opt\/SUNWspro/d'" + ;; + *-*-msdosmsvc) + ;; + *) + INCLUDE_DEPS=false + ;; + esac + fi ! # =========================================================================== ! # http://www.nongnu.org/autoconf-archive/acx_pthread.html ! # =========================================================================== ! # ! # SYNOPSIS ! # ! # ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) ! # ! # DESCRIPTION ! # ! # This macro figures out how to build C programs using POSIX threads. It ! # sets the PTHREAD_LIBS output variable to the threads library and linker ! # flags, and the PTHREAD_CFLAGS output variable to any special C compiler ! # flags that are needed. (The user can also force certain compiler ! # flags/libs to be tested by setting these environment variables.) ! # ! # Also sets PTHREAD_CC to any special C compiler that is needed for ! # multi-threaded programs (defaults to the value of CC otherwise). (This ! # is necessary on AIX to use the special cc_r compiler alias.) ! # ! # NOTE: You are assumed to not only compile your program with these flags, ! # but also link it with them as well. e.g. you should link with ! # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS ! # ! # If you are only building threads programs, you may wish to use these ! # variables in your default LIBS, CFLAGS, and CC: ! # ! # LIBS="$PTHREAD_LIBS $LIBS" ! # CFLAGS="$CFLAGS $PTHREAD_CFLAGS" ! # CC="$PTHREAD_CC" ! # ! # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant ! # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name ! # (e.g. PTHREAD_CREATE_UNDETACHED on AIX). ! # ! # ACTION-IF-FOUND is a list of shell commands to run if a threads library ! # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it ! # is not found. If ACTION-IF-FOUND is not specified, the default action ! # will define HAVE_PTHREAD. ! # ! # Please let the authors know if this macro fails on any platform, or if ! # you have any other suggestions or comments. This macro was based on work ! # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help ! # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by ! # Alejandro Forero Cuervo to the autoconf macro repository. We are also ! # grateful for the helpful feedback of numerous users. ! # ! # LICENSE ! # ! # Copyright (c) 2008 Steven G. Johnson ! # ! # This program is free software: you can redistribute it and/or modify it ! # under the terms of the GNU General Public License as published by the ! # Free Software Foundation, either version 3 of the License, or (at your ! # option) any later version. ! # ! # This program is distributed in the hope that it will be useful, but ! # WITHOUT ANY WARRANTY; without even the implied warranty of ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General ! # Public License for more details. ! # ! # You should have received a copy of the GNU General Public License along ! # with this program. If not, see . ! # ! # As a special exception, the respective Autoconf Macro's copyright owner ! # gives unlimited permission to copy, distribute and modify the configure ! # scripts that are the output of Autoconf when processing the Macro. You ! # need not follow the terms of the GNU General Public License when using ! # or distributing such scripts, even though portions of the text of the ! # Macro appear in them. The GNU General Public License (GPL) does govern ! # all other use of the material that constitutes the Autoconf Macro. ! # ! # This special exception to the GPL applies to versions of the Autoconf ! # Macro released by the Autoconf Archive. When you make and distribute a ! # modified version of the Autoconf Macro, you may extend this special ! # exception to the GPL to apply to your modified version as well. ! ! ! ! ! ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + acx_pthread_ok=no + + # We used to check for pthread.h first, but this fails if pthread.h + # requires special compiler flags (e.g. on True64 or Sequent). + # It gets checked for in the link test anyway. + + # First of all, check if the user has set any of the PTHREAD_LIBS, + # etcetera environment variables, and if threads linking works using + # them: + if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 + $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char pthread_join (); + int + main () + { + return pthread_join (); + ; + return 0; + } + _ACEOF + if ac_fn_c_try_link "$LINENO"; then : + acx_pthread_ok=yes + fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 + $as_echo "$acx_pthread_ok" >&6; } + if test x"$acx_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" fi ! # We must check for the threads library under a number of different ! # names; the ordering is very important because some systems ! # (e.g. DEC) have both -lpthread and -lpthreads, where one of the ! # libraries is broken (non-POSIX). ! ! # Create a list of thread flags to try. Items starting with a "-" are ! # C compiler flags, and other items are library names, except for "none" ! # which indicates that we try without any flags at all, and "pthread-config" ! # which is a program returning the flags for the Pth emulation library. ! ! acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" ! ! # The ordering *is* (sometimes) important. Some notes on the ! # individual items follow: ! ! # pthreads: AIX (must check this before -lpthread) ! # none: in case threads are in libc; should be tried before -Kthread and ! # other compiler flags to prevent continual compiler warnings ! # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) ! # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) ! # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) ! # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) ! # -pthreads: Solaris/gcc ! # -mthreads: Mingw32/gcc, Lynx/gcc ! # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it ! # doesn't hurt to check since this sometimes defines pthreads too; ! # also defines -D_REENTRANT) ! # ... -mt is also the pthreads flag for HP/aCC ! # pthread: Linux, etcetera ! # --thread-safe: KAI C++ ! # pthread-config: use pthread-config program (for GNU Pth library) ! ! case "${host_cpu}-${host_os}" in ! *solaris*) ! ! # On Solaris (at least, for some versions), libc contains stubbed ! # (non-functional) versions of the pthreads routines, so link-based ! # tests will erroneously succeed. (We need to link with -pthreads/-mt/ ! # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather ! # a function called by this macro, so we could check for that, but ! # who knows whether they'll stub that too in a future libc.) So, ! # we'll just look for -pthreads and -lpthread first: ! acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" ! ;; ! esac ! ! if test x"$acx_pthread_ok" = xno; then ! for flag in $acx_pthread_flags; do + case $flag in + none) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 + $as_echo_n "checking whether pthreads work without any flags... " >&6; } + ;; + + -*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 + $as_echo_n "checking whether pthreads work with $flag... " >&6; } + PTHREAD_CFLAGS="$flag" + ;; + + pthread-config) + # Extract the first word of "pthread-config", so it can be a program name with args. + set dummy pthread-config; ac_word=$2 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 + $as_echo_n "checking for $ac_word... " >&6; } + if test "${ac_cv_prog_acx_pthread_config+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + if test -n "$acx_pthread_config"; then + ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. + else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + for as_dir in $PATH + do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_acx_pthread_config="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 fi + done + done + IFS=$as_save_IFS + test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" + fi + fi + acx_pthread_config=$ac_cv_prog_acx_pthread_config + if test -n "$acx_pthread_config"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 + $as_echo "$acx_pthread_config" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + $as_echo "no" >&6; } + fi ! if test x"$acx_pthread_config" = xno; then continue; fi ! PTHREAD_CFLAGS="`pthread-config --cflags`" ! PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" ! ;; ! *) ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 ! $as_echo_n "checking for the pthreads library -l$flag... " >&6; } ! PTHREAD_LIBS="-l$flag" ! ;; ! esac ! save_LIBS="$LIBS" ! save_CFLAGS="$CFLAGS" ! LIBS="$PTHREAD_LIBS $LIBS" ! CFLAGS="$CFLAGS $PTHREAD_CFLAGS" ! ! # Check for various functions. We must include pthread.h, ! # since some functions may be macros. (On the Sequent, we ! # need a special flag -Kthread to make this header compile.) ! # We check for pthread_join because it is in -lpthread on IRIX ! # while pthread_create is in libc. We check for pthread_attr_init ! # due to DEC craziness with -lpthreads. We check for ! # pthread_cleanup_push because it is one of the few pthread ! # functions on Solaris that doesn't have a non-functional libc stub. ! # We try pthread_create on general principles. ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #include int main () { ! pthread_t th; pthread_join(th, 0); ! pthread_attr_init(0); pthread_cleanup_push(0, 0); ! pthread_create(0,0,0,0); pthread_cleanup_pop(0); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! acx_pthread_ok=yes fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext ! LIBS="$save_LIBS" ! CFLAGS="$save_CFLAGS" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 + $as_echo "$acx_pthread_ok" >&6; } + if test "x$acx_pthread_ok" = xyes; then + break; + fi + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + done fi ! # Various other checks: ! if test "x$acx_pthread_ok" = xyes; then ! save_LIBS="$LIBS" ! LIBS="$PTHREAD_LIBS $LIBS" ! save_CFLAGS="$CFLAGS" ! CFLAGS="$CFLAGS $PTHREAD_CFLAGS" ! # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 ! $as_echo_n "checking for joinable pthread attribute... " >&6; } ! attr_name=unknown ! for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #include int main () { ! int attr=$attr; return attr; ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! attr_name=$attr; break fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! done ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 ! $as_echo "$attr_name" >&6; } ! if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then ! cat >>confdefs.h <<_ACEOF ! #define PTHREAD_CREATE_JOINABLE $attr_name _ACEOF ! fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 + $as_echo_n "checking if more special flags are required for pthreads... " >&6; } + flag=no + case "${host_cpu}-${host_os}" in + *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 + $as_echo "${flag}" >&6; } + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi ! LIBS="$save_LIBS" ! CFLAGS="$save_CFLAGS" ! # More AIX lossage: must compile with xlc_r or cc_r ! if test x"$GCC" != xyes; then ! for ac_prog in xlc_r cc_r ! do ! # Extract the first word of "$ac_prog", so it can be a program name with args. ! set dummy $ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! if test -n "$PTHREAD_CC"; then ! ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_PTHREAD_CC="$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi ! PTHREAD_CC=$ac_cv_prog_PTHREAD_CC ! if test -n "$PTHREAD_CC"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 ! $as_echo "$PTHREAD_CC" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ! test -n "$PTHREAD_CC" && break done ! test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" ! else ! PTHREAD_CC=$CC ! fi else ! PTHREAD_CC="$CC" fi ! # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: ! if test x"$acx_pthread_ok" = xyes; then ! $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h ! ! : else ! acx_pthread_ok=no ! fi + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 ! $as_echo_n "checking for X... " >&6; } ! # Check whether --with-x was given. ! if test "${with_x+set}" = set; then : ! withval=$with_x; fi ! ! # $have_x is `yes', `no', `disabled', or empty when we do not yet know. ! if test "x$with_x" = xno; then ! # The user explicitly disabled X. ! have_x=disabled else ! case $x_includes,$x_libraries in #( ! *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( ! *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! # One or both of the vars are not set, and there is no cached value. ! ac_x_includes=no ac_x_libraries=no ! rm -f -r conftest.dir ! if mkdir conftest.dir; then ! cd conftest.dir ! cat >Imakefile <<'_ACEOF' ! incroot: ! @echo incroot='${INCROOT}' ! usrlibdir: ! @echo usrlibdir='${USRLIBDIR}' ! libdir: ! @echo libdir='${LIBDIR}' ! _ACEOF ! if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then ! # GNU make sometimes prints "make[1]: Entering...", which would confuse us. ! for ac_var in incroot usrlibdir libdir; do ! eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" ! done ! # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. ! for ac_extension in a so sl dylib la dll; do ! if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && ! test -f "$ac_im_libdir/libX11.$ac_extension"; then ! ac_im_usrlibdir=$ac_im_libdir; break ! fi ! done ! # Screen out bogus values from the imake configuration. They are ! # bogus both because they are the default anyway, and because ! # using them would break gcc on systems where it needs fixed includes. ! case $ac_im_incroot in ! /usr/include) ac_x_includes= ;; ! *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; ! esac ! case $ac_im_usrlibdir in ! /usr/lib | /usr/lib64 | /lib | /lib64) ;; ! *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; ! esac fi ! cd .. ! rm -f -r conftest.dir fi + # Standard set of common directories for X headers. + # Check X11 before X11Rn because it is often a symlink to the current release. + ac_x_header_dirs=' + /usr/X11/include + /usr/X11R7/include + /usr/X11R6/include + /usr/X11R5/include + /usr/X11R4/include ! /usr/include/X11 ! /usr/include/X11R7 ! /usr/include/X11R6 ! /usr/include/X11R5 ! /usr/include/X11R4 ! /usr/local/X11/include ! /usr/local/X11R7/include ! /usr/local/X11R6/include ! /usr/local/X11R5/include ! /usr/local/X11R4/include ! /usr/local/include/X11 ! /usr/local/include/X11R7 ! /usr/local/include/X11R6 ! /usr/local/include/X11R5 ! /usr/local/include/X11R4 + /usr/X386/include + /usr/x386/include + /usr/XFree86/include/X11 ! /usr/include ! /usr/local/include ! /usr/unsupported/include ! /usr/athena/include ! /usr/local/x11r5/include ! /usr/lpp/Xamples/include ! /usr/openwin/include ! /usr/openwin/share/include' ! if test "$ac_x_includes" = no; then ! # Guess where to find include files, by looking for Xlib.h. ! # First, try using that file with no special directory specified. ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #include _ACEOF ! if ac_fn_c_try_cpp "$LINENO"; then : ! # We can compile using X headers with no special include directory. ! ac_x_includes= else ! for ac_dir in $ac_x_header_dirs; do ! if test -r "$ac_dir/X11/Xlib.h"; then ! ac_x_includes=$ac_dir ! break ! fi ! done fi + rm -f conftest.err conftest.$ac_ext + fi # $ac_x_includes = no ! if test "$ac_x_libraries" = no; then ! # Check for the libraries. ! # See if we find them without any special options. ! # Don't add to $LIBS permanently. ! ac_save_LIBS=$LIBS ! LIBS="-lX11 $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #include int main () { ! XrmInitialize () ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! LIBS=$ac_save_LIBS ! # We can link X programs with no special library path. ! ac_x_libraries= ! else ! LIBS=$ac_save_LIBS ! for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` ! do ! # Don't even attempt the hair of trying to link an X program! ! for ac_extension in a so sl dylib la dll; do ! if test -r "$ac_dir/libX11.$ac_extension"; then ! ac_x_libraries=$ac_dir ! break 2 ! fi ! done ! done ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! fi # $ac_x_libraries = no ! ! case $ac_x_includes,$ac_x_libraries in #( ! no,* | *,no | *\'*) ! # Didn't find X, or a directory has "'" in its name. ! ac_cv_have_x="have_x=no";; #( ! *) ! # Record where we found X for the cache. ! ac_cv_have_x="have_x=yes\ ! ac_x_includes='$ac_x_includes'\ ! ac_x_libraries='$ac_x_libraries'" esac ! fi ! ;; #( ! *) have_x=yes;; ! esac ! eval "$ac_cv_have_x" ! fi # $with_x != no ! ! if test "$have_x" != yes; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 ! $as_echo "$have_x" >&6; } ! no_x=yes else ! # If each of the values was on the command line, it overrides each guess. ! test "x$x_includes" = xNONE && x_includes=$ac_x_includes ! test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries ! # Update the cache value to reflect the command line values. ! ac_cv_have_x="have_x=yes\ ! ac_x_includes='$x_includes'\ ! ac_x_libraries='$x_libraries'" ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 ! $as_echo "libraries $x_libraries, headers $x_includes" >&6; } ! fi ! if test "$have_x"; then ! ! $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h ! ! ! if test "$x_includes" != "NONE"; then ! X11_INCFLAGS="$x_includes" ! fi ! ! ! if test -z $x_libraries; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XrmInitialize in -lX11" >&5 ! $as_echo_n "checking for XrmInitialize in -lX11... " >&6; } ! if test "${ac_cv_lib_X11_XrmInitialize+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lX11 $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char XrmInitialize (); int main () { ! return XrmInitialize (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_X11_XrmInitialize=yes else ! ac_cv_lib_X11_XrmInitialize=no ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XrmInitialize" >&5 ! $as_echo "$ac_cv_lib_X11_XrmInitialize" >&6; } ! if test "x$ac_cv_lib_X11_XrmInitialize" = x""yes; then : ! X11_LIBS=-lX11 ! else ! X11_LIBS= ! fi ! elif test $x_libraries != "NONE"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XrmInitialize in -lX11" >&5 ! $as_echo_n "checking for XrmInitialize in -lX11... " >&6; } ! if test "${ac_cv_lib_X11_XrmInitialize+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lX11 "-L$x_libraries" $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char XrmInitialize (); int main () { ! return XrmInitialize (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_X11_XrmInitialize=yes else ! ac_cv_lib_X11_XrmInitialize=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XrmInitialize" >&5 ! $as_echo "$ac_cv_lib_X11_XrmInitialize" >&6; } ! if test "x$ac_cv_lib_X11_XrmInitialize" = x""yes; then : ! X11_LIBS="-L$x_libraries -lX11" ! else ! X11_LIBS= fi fi + fi ! ### On MacOSX system the Carbon framework is used to determine ScreenSize ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${LD-ld} accepts -framework Carbon" >&5 ! $as_echo_n "checking whether ${LD-ld} accepts -framework Carbon... " >&6; } ! if test "${octave_cv_framework_Carbon+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! XLDFLAGS="$LDFLAGS" ! LDFLAGS="$LDFLAGS -framework Carbon" ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! #include int main () { ! CGMainDisplayID () ; return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : ! eval "octave_cv_framework_Carbon=yes" else ! eval "octave_cv_framework_Carbon=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ! LDFLAGS="$XLDFLAGS" fi ! if test "$octave_cv_framework_Carbon" = "yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! # Check whether --with-framework-carbon was given. ! if test "${with_framework_carbon+set}" = set; then : ! withval=$with_framework_carbon; with_have_framework=$withval else ! with_have_framework="yes" fi ! if test "$with_have_framework" = "yes"; then ! have_framework_carbon="yes" ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: framework rejected by --without-framework-carbon" >&5 ! $as_echo "$as_me: framework rejected by --without-framework-carbon" >&6;} ! have_framework_carbon="no" ! fi ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! have_framework_carbon="no" ! fi ! if test $have_framework_carbon = "yes"; then ! $as_echo "#define HAVE_FRAMEWORK_CARBON 1" >>confdefs.h ! CARBON_LIBS="-Wl,-framework -Wl,Carbon" ! { $as_echo "$as_me:${as_lineno-$LINENO}: adding -Wl,-framework -Wl,Carbon to CARBON_LIBS" >&5 ! $as_echo "$as_me: adding -Wl,-framework -Wl,Carbon to CARBON_LIBS" >&6;} fi ! ### On Intel systems with gcc, we may need to compile with -mieee-fp ! ### and -ffloat-store to get full support for IEEE floating point. ! ### ! ### On Alpha/OSF systems, we need -mieee. ! ieee_fp_flag= ! case "$canonical_host_type" in ! ## Keep this pattern first, so that it is preferred over the ! ## following pattern for x86. ! *-*-msdosmsvc) ! CXXFLAGS="$CXXFLAGS -EHs -MD" ! CFLAGS="$CFLAGS -MD" ! ;; ! i[3456789]86-*-*) ! if test "$GCC" = yes; then ! ac_safe=`echo "-mieee-fp" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -mieee-fp" >&5 ! $as_echo_n "checking whether ${CC-cc} accepts -mieee-fp... " >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ! XCFLAGS="$CFLAGS" ! CFLAGS="$CFLAGS -mieee-fp" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! int ! main () ! { ! ! ; ! return 0; ! } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "octave_cv_cc_flag_$ac_safe=yes" else ! eval "octave_cv_cc_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! CFLAGS="$XCFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu fi ! if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } + ieee_fp_flag=-mieee-fp + XTRA_CFLAGS="$XTRA_CFLAGS -mieee-fp" + { $as_echo "$as_me:${as_lineno-$LINENO}: adding -mieee-fp to XTRA_CFLAGS" >&5 + $as_echo "$as_me: adding -mieee-fp to XTRA_CFLAGS" >&6;} + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + $as_echo "no" >&6; } ! fi ! ### OCTAVE_CC_FLAG(-ffloat-store, [ ! ### float_store_flag=-ffloat-store ! ### XTRA_CFLAGS="$XTRA_CFLAGS -ffloat-store" ! ### AC_MSG_RESULT([adding -ffloat-store to XTRA_CFLAGS])]) ! fi ! if test "$GXX" = yes; then + ac_safe=`echo "-mieee-fp" | sed 'y%./+-:=%__p___%'` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-g++} accepts -mieee-fp" >&5 + $as_echo_n "checking whether ${CXX-g++} accepts -mieee-fp... " >&6; } + if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 + else ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! XCXXFLAGS="$CXXFLAGS" ! CXXFLAGS="$CXXFLAGS -mieee-fp" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! ! int ! main () ! { ! ! ; ! return 0; ! } ! _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : ! eval "octave_cv_cxx_flag_$ac_safe=yes" else ! eval "octave_cv_cxx_flag_$ac_safe=no" fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CXXFLAGS="$XCXXFLAGS" + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi + if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 + $as_echo "yes" >&6; } ! ieee_fp_flag=-mieee-fp ! XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-fp" ! { $as_echo "$as_me:${as_lineno-$LINENO}: adding -mieee-fp to XTRA_CXXFLAGS" >&5 ! $as_echo "$as_me: adding -mieee-fp to XTRA_CXXFLAGS" >&6;} ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } + fi ! ### OCTAVE_CXX_FLAG(-ffloat-store, [ ! ### float_store_flag=-ffloat-store ! ### XTRA_CXXFLAGS="$XTRA_CXXFLAGS -ffloat-store" ! ### AC_MSG_RESULT([adding -ffloat-store to XTRA_CXXFLAGS])]) ! fi ! ;; ! alpha*-*-*) ! if test "$GCC" = yes; then ! ! ac_safe=`echo "-mieee" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -mieee" >&5 ! $as_echo_n "checking whether ${CC-cc} accepts -mieee... " >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! XCFLAGS="$CFLAGS" ! CFLAGS="$CFLAGS -mieee" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! int ! main () ! { ! ; ! return 0; ! } ! _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "octave_cv_cc_flag_$ac_safe=yes" ! else ! eval "octave_cv_cc_flag_$ac_safe=no" ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! CFLAGS="$XCFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! fi ! if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! ieee_fp_flag=-mieee ! XTRA_CFLAGS="$XTRA_CFLAGS -mieee" ! { $as_echo "$as_me:${as_lineno-$LINENO}: adding -mieee to XTRA_CFLAGS" >&5 ! $as_echo "$as_me: adding -mieee to XTRA_CFLAGS" >&6;} ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ! else ! ac_safe=`echo "-ieee" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -ieee" >&5 ! $as_echo_n "checking whether ${CC-cc} accepts -ieee... " >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 ! else ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! XCFLAGS="$CFLAGS" ! CFLAGS="$CFLAGS -ieee" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! int main () { ! ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "octave_cv_cc_flag_$ac_safe=yes" else ! eval "octave_cv_cc_flag_$ac_safe=no" ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! CFLAGS="$XCFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! fi ! if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } + ieee_fp_flag=-ieee + XTRA_CFLAGS="$XTRA_CFLAGS -ieee" + { $as_echo "$as_me:${as_lineno-$LINENO}: adding -ieee to XTRA_CFLAGS" >&5 + $as_echo "$as_me: adding -ieee to XTRA_CFLAGS" >&6;} + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + $as_echo "no" >&6; } fi + fi + if test "$GXX" = yes; then ! ac_safe=`echo "-mieee" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-g++} accepts -mieee" >&5 ! $as_echo_n "checking whether ${CXX-g++} accepts -mieee... " >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! XCXXFLAGS="$CXXFLAGS" ! CXXFLAGS="$CXXFLAGS -mieee" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ! ; return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : ! eval "octave_cv_cxx_flag_$ac_safe=yes" else ! eval "octave_cv_cxx_flag_$ac_safe=no" fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CXXFLAGS="$XCXXFLAGS" + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi ! if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! ieee_fp_flag=-mieee ! XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee" ! { $as_echo "$as_me:${as_lineno-$LINENO}: adding -mieee to XTRA_CXXFLAGS" >&5 ! $as_echo "$as_me: adding -mieee to XTRA_CXXFLAGS" >&6;} ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! ! else ! ac_safe=`echo "-ieee" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-g++} accepts -ieee" >&5 ! $as_echo_n "checking whether ${CXX-g++} accepts -ieee... " >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! XCXXFLAGS="$CXXFLAGS" ! CXXFLAGS="$CXXFLAGS -ieee" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! int main () { ! ; return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : ! eval "octave_cv_cxx_flag_$ac_safe=yes" else ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! CXXFLAGS="$XCXXFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi ! if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! ieee_fp_flag=-ieee ! XTRA_CXXFLAGS="$XTRA_CXXFLAGS -ieee" ! { $as_echo "$as_me:${as_lineno-$LINENO}: adding -ieee to XTRA_CXXFLAGS" >&5 ! $as_echo "$as_me: adding -ieee to XTRA_CXXFLAGS" >&6;} else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! fi ;; ! *ibm-aix4*) ! ac_safe=`echo "-mminimal-toc" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -mminimal-toc" >&5 ! $as_echo_n "checking whether ${CC-cc} accepts -mminimal-toc... " >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_ext=c *************** *** 7730,7741 **** ac_compiler_gnu=$ac_cv_c_compiler_gnu XCFLAGS="$CFLAGS" ! CFLAGS="$CFLAGS -mieee-fp" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int --- 7427,7434 ---- ac_compiler_gnu=$ac_cv_c_compiler_gnu XCFLAGS="$CFLAGS" ! CFLAGS="$CFLAGS -mminimal-toc" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int *************** *** 7746,7779 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then eval "octave_cv_cc_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cc_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext CFLAGS="$XCFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' --- 7439,7451 ---- return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : eval "octave_cv_cc_flag_$ac_safe=yes" else ! eval "octave_cv_cc_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext CFLAGS="$XCFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' *************** *** 7785,7816 **** fi if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ieee_fp_flag=-mieee-fp ! XTRA_CFLAGS="$XTRA_CFLAGS -mieee-fp" ! { echo "$as_me:$LINENO: adding -mieee-fp to XTRA_CFLAGS" >&5 ! echo "$as_me: adding -mieee-fp to XTRA_CFLAGS" >&6;} else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi - ### OCTAVE_CC_FLAG(-ffloat-store, [ - ### float_store_flag=-ffloat-store - ### XTRA_CFLAGS="$XTRA_CFLAGS -ffloat-store" - ### AC_MSG_RESULT([adding -ffloat-store to XTRA_CFLAGS])]) - fi - if test "$GXX" = yes; then ! ac_safe=`echo "-mieee-fp" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CXX-g++} accepts -mieee-fp" >&5 ! echo $ECHO_N "checking whether ${CXX-g++} accepts -mieee-fp... $ECHO_C" >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=cpp --- 7457,7479 ---- fi if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! XTRA_CFLAGS="$XTRA_CFLAGS -mminimal-toc" else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ! ac_safe=`echo "-mminimal-toc" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-g++} accepts -mminimal-toc" >&5 ! $as_echo_n "checking whether ${CXX-g++} accepts -mminimal-toc... " >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_ext=cpp *************** *** 7820,7831 **** ac_compiler_gnu=$ac_cv_cxx_compiler_gnu XCXXFLAGS="$CXXFLAGS" ! CXXFLAGS="$CXXFLAGS -mieee-fp" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int --- 7483,7490 ---- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu XCXXFLAGS="$CXXFLAGS" ! CXXFLAGS="$CXXFLAGS -mminimal-toc" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int *************** *** 7836,7869 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then eval "octave_cv_cxx_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$XCXXFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' --- 7495,7507 ---- return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : eval "octave_cv_cxx_flag_$ac_safe=yes" else ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$XCXXFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' *************** *** 7875,8478 **** fi if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ieee_fp_flag=-mieee-fp ! XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-fp" ! { echo "$as_me:$LINENO: adding -mieee-fp to XTRA_CXXFLAGS" >&5 ! echo "$as_me: adding -mieee-fp to XTRA_CXXFLAGS" >&6;} else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi - - ### OCTAVE_CXX_FLAG(-ffloat-store, [ - ### float_store_flag=-ffloat-store - ### XTRA_CXXFLAGS="$XTRA_CXXFLAGS -ffloat-store" - ### AC_MSG_RESULT([adding -ffloat-store to XTRA_CXXFLAGS])]) - fi ;; ! alpha*-*-*) ! if test "$GCC" = yes; then - ac_safe=`echo "-mieee" | sed 'y%./+-:=%__p___%'` - { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mieee" >&5 - echo $ECHO_N "checking whether ${CC-cc} accepts -mieee... $ECHO_C" >&6; } - if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - ac_ext=c - ac_cpp='$CPP $CPPFLAGS' - ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' - ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' - ac_compiler_gnu=$ac_cv_c_compiler_gnu - XCFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -mieee" - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ ! int ! main () ! { ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "octave_cv_cc_flag_$ac_safe=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cc_flag_$ac_safe=no" fi - rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - CFLAGS="$XCFLAGS" - ac_ext=c - ac_cpp='$CPP $CPPFLAGS' - ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' - ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' - ac_compiler_gnu=$ac_cv_c_compiler_gnu fi - if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then - { echo "$as_me:$LINENO: result: yes" >&5 - echo "${ECHO_T}yes" >&6; } - ieee_fp_flag=-mieee - XTRA_CFLAGS="$XTRA_CFLAGS -mieee" - { echo "$as_me:$LINENO: adding -mieee to XTRA_CFLAGS" >&5 - echo "$as_me: adding -mieee to XTRA_CFLAGS" >&6;} - else - { echo "$as_me:$LINENO: result: no" >&5 - echo "${ECHO_T}no" >&6; } - fi - else - ac_safe=`echo "-ieee" | sed 'y%./+-:=%__p___%'` - { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -ieee" >&5 - echo $ECHO_N "checking whether ${CC-cc} accepts -ieee... $ECHO_C" >&6; } - if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - ac_ext=c - ac_cpp='$CPP $CPPFLAGS' - ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' - ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' - ac_compiler_gnu=$ac_cv_c_compiler_gnu ! XCFLAGS="$CFLAGS" ! CFLAGS="$CFLAGS -ieee" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "octave_cv_cc_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cc_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! CFLAGS="$XCFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! fi ! if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ! ieee_fp_flag=-ieee ! XTRA_CFLAGS="$XTRA_CFLAGS -ieee" ! { echo "$as_me:$LINENO: adding -ieee to XTRA_CFLAGS" >&5 ! echo "$as_me: adding -ieee to XTRA_CFLAGS" >&6;} ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! ! fi ! fi ! if test "$GXX" = yes; then ! ac_safe=`echo "-mieee" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CXX-g++} accepts -mieee" >&5 ! echo $ECHO_N "checking whether ${CXX-g++} accepts -mieee... $ECHO_C" >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! XCXXFLAGS="$CXXFLAGS" ! CXXFLAGS="$CXXFLAGS -mieee" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "octave_cv_cxx_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! CXXFLAGS="$XCXXFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! fi ! if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ieee_fp_flag=-mieee ! XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee" ! { echo "$as_me:$LINENO: adding -mieee to XTRA_CXXFLAGS" >&5 ! echo "$as_me: adding -mieee to XTRA_CXXFLAGS" >&6;} ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! else ! ac_safe=`echo "-ieee" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CXX-g++} accepts -ieee" >&5 ! echo $ECHO_N "checking whether ${CXX-g++} accepts -ieee... $ECHO_C" >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cpp - ac_cpp='$CXXCPP $CPPFLAGS' - ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' - ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' - ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! XCXXFLAGS="$CXXFLAGS" ! CXXFLAGS="$CXXFLAGS -ieee" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "octave_cv_cxx_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! CXXFLAGS="$XCXXFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! fi ! if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ! ieee_fp_flag=-ieee ! XTRA_CXXFLAGS="$XTRA_CXXFLAGS -ieee" ! { echo "$as_me:$LINENO: adding -ieee to XTRA_CXXFLAGS" >&5 ! echo "$as_me: adding -ieee to XTRA_CXXFLAGS" >&6;} ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! ! fi ! ! fi ! ;; ! *ibm-aix4*) ! ! ac_safe=`echo "-mminimal-toc" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mminimal-toc" >&5 ! echo $ECHO_N "checking whether ${CC-cc} accepts -mminimal-toc... $ECHO_C" >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! XCFLAGS="$CFLAGS" ! CFLAGS="$CFLAGS -mminimal-toc" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! int ! main () { ! ! ; return 0; } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "octave_cv_cc_flag_$ac_safe=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! eval "octave_cv_cc_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! CFLAGS="$XCFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! fi - if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then - { echo "$as_me:$LINENO: result: yes" >&5 - echo "${ECHO_T}yes" >&6; } ! XTRA_CFLAGS="$XTRA_CFLAGS -mminimal-toc" ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ! ! ! ! ac_safe=`echo "-mminimal-toc" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CXX-g++} accepts -mminimal-toc" >&5 ! echo $ECHO_N "checking whether ${CXX-g++} accepts -mminimal-toc... $ECHO_C" >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! XCXXFLAGS="$CXXFLAGS" ! CXXFLAGS="$CXXFLAGS -mminimal-toc" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! int ! main () { ! ; ! return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "octave_cv_cxx_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! CXXFLAGS="$XCXXFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu fi ! if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mminimal-toc" else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi - ;; - esac ! ### Use -static if compiling on Alpha OSF/1 1.3 systems. ! case "$canonical_host_type" in ! alpha*-dec-osf1.3) ! LD_STATIC_FLAG=-static ! ;; ! esac ! if test -n "$LD_STATIC_FLAG"; then ! { echo "$as_me:$LINENO: defining LD_STATIC_FLAG to be $LD_STATIC_FLAG" >&5 ! echo "$as_me: defining LD_STATIC_FLAG to be $LD_STATIC_FLAG" >&6;} fi ! ### Defaults for cross compiling. BUILD_CC and BUILD_CXX are ! ### the compilers that we use for building tools on the build system. ! ### For now, we assume that the only cross compiling we can do is ! ### with gcc on a Unixy system, but the dedicated hacker can override these. ! if test "$cross_compiling" = yes; then ! BUILD_CC="gcc" ! BUILD_CFLAGS="-O2 -g" ! BUILD_CXX="g++" ! BUILD_CXXFLAGS="-O2 -g" ! BUILD_LDFLAGS="" ! BUILD_EXEEXT="" else ! BUILD_CC='$(CC)' ! BUILD_CFLAGS='$(CFLAGS)' ! BUILD_CXX='$(CXX)' ! BUILD_CXXFLAGS='$(CXXFLAGS)' ! BUILD_LDFLAGS='$(LDFLAGS)' ! case "$canonical_host_type" in ! sparc-sun-solaris2*) ! if test "$GCC" != yes; then ! ## The Sun C++ compiler never seems to complete compiling ! ## gendoc.cc unless we reduce the optimization level... ! BUILD_CXXFLAGS="-g -O1" ! fi ! ;; ! esac ! BUILD_EXEEXT='$(EXEEXT)' fi ! ### Look for math library. If found, this will add -lm to LIBS. ! ! case "$canonical_host_type" in ! *-*-nextstep*) ! ;; ! *-*-linux*) ! { echo "$as_me:$LINENO: checking for sin in -lm" >&5 ! echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } ! if test "${ac_cv_lib_m_sin+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS ! LIBS="-lm -lc $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. --- 7513,7994 ---- fi if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mminimal-toc" else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ;; ! esac ! ### Use -static if compiling on Alpha OSF/1 1.3 systems. ! case "$canonical_host_type" in ! alpha*-dec-osf1.3) ! LD_STATIC_FLAG=-static ! ;; esac ! if test -n "$LD_STATIC_FLAG"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining LD_STATIC_FLAG to be $LD_STATIC_FLAG" >&5 ! $as_echo "$as_me: defining LD_STATIC_FLAG to be $LD_STATIC_FLAG" >&6;} fi + ### Defaults for cross compiling. BUILD_CC and BUILD_CXX are + ### the compilers that we use for building tools on the build system. + ### For now, we assume that the only cross compiling we can do is + ### with gcc on a Unixy system, but the dedicated hacker can override these. + if test "$cross_compiling" = yes; then + BUILD_CC="gcc" + BUILD_CFLAGS="-O2 -g" + BUILD_CXX="g++" + BUILD_CXXFLAGS="-O2 -g" + BUILD_LDFLAGS="" + BUILD_EXEEXT="" + else + BUILD_CC='$(CC)' + BUILD_CFLAGS='$(CFLAGS)' + BUILD_CXX='$(CXX)' + BUILD_CXXFLAGS='$(CXXFLAGS)' + BUILD_LDFLAGS='$(LDFLAGS)' + case "$canonical_host_type" in + sparc-sun-solaris2*) + if test "$GCC" != yes; then + ## The Sun C++ compiler never seems to complete compiling + ## gendoc.cc unless we reduce the optimization level... + BUILD_CXXFLAGS="-g -O1" + fi + ;; + esac + BUILD_EXEEXT='$(EXEEXT)' fi ! ! ! ### Look for math library. If found, this will add -lm to LIBS. ! ! case "$canonical_host_type" in ! *-*-nextstep*) ! ;; ! *-*-linux*) ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 ! $as_echo_n "checking for sin in -lm... " >&6; } ! if test "${ac_cv_lib_m_sin+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lm -lc $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char sin (); int main () { ! return sin (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_m_sin=yes else ! ac_cv_lib_m_sin=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 + $as_echo "$ac_cv_lib_m_sin" >&6; } + if test "x$ac_cv_lib_m_sin" = x""yes; then : + cat >>confdefs.h <<_ACEOF + #define HAVE_LIBM 1 + _ACEOF ! LIBS="-lm $LIBS" ! fi ! ;; ! *) ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 ! $as_echo_n "checking for sin in -lm... " >&6; } ! if test "${ac_cv_lib_m_sin+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lm $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char sin (); int main () { ! return sin (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_m_sin=yes else ! ac_cv_lib_m_sin=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 + $as_echo "$ac_cv_lib_m_sin" >&6; } + if test "x$ac_cv_lib_m_sin" = x""yes; then : + cat >>confdefs.h <<_ACEOF + #define HAVE_LIBM 1 + _ACEOF ! LIBS="-lm $LIBS" ! fi ! ;; ! esac ! ### Check for the QHull library ! ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull_a.h" "ac_cv_header_qhull_qhull_a_h" "$ac_includes_default" ! if test "x$ac_cv_header_qhull_qhull_a_h" = x""yes; then : ! have_qhull=yes else + have_qhull=no + fi ! if test "$have_qhull" = yes; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5 ! $as_echo_n "checking for qh_qhull in -lqhull... " >&6; } ! if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lqhull $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char qh_qhull (); int main () { ! return qh_qhull (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_qhull_qh_qhull=yes else ! ac_cv_lib_qhull_qh_qhull=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5 ! $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; } ! if test "x$ac_cv_lib_qhull_qh_qhull" = x""yes; then : ! have_qhull=yes ! else ! have_qhull=no fi ! if test "$have_qhull" != yes; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull with qh_version" >&5 ! $as_echo_n "checking for qh_qhull in -lqhull with qh_version... " >&6; } ! if test "${octave_cv_lib_qhull_version+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! cat > conftest.c < ! char *qh_version = "version"; ! char qh_qhull(); int ! main(argc, argv) ! int argc; ! char **argv; { ! qh_qhull(); return 0; } ! EOF ! octave_qhull_try="${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.c -o conftest -lqhull $LIBS" ! if (eval "$octave_qhull_try") 2>&5 && test -s conftest ; then ! octave_cv_lib_qhull_version=yes ! else ! octave_cv_lib_qhull_version=no fi + rm -f conftest.c conftest.o conftest ! fi ! if test "$octave_cv_lib_qhull_version" = "yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! have_qhull=yes ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! have_qhull=no fi ! $as_echo "#define NEED_QHULL_VERSION 1" >>confdefs.h fi ! if test "$have_qhull" = yes; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the qhull library works" >&5 ! $as_echo_n "checking whether the qhull library works... " >&6; } ! if test "${octave_cv_lib_qhull_ok+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! save_LIBS="$LIBS" ! LIBS="$LIBS -lqhull" ! case $host in ! *-mingw*|*-msdosmsvc*) ;; ! *) LIBS="$LIBS -lm" ;; ! esac ! if test "$cross_compiling" = yes; then : ! octave_cv_lib_qhull_ok=yes ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #include ! #include ! ! #ifdef NEED_QHULL_VERSION ! char *qh_version = "version"; ! #endif ! int main() { + int dim = 2, n = 4; + coordT points[8] = { -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5 }; + boolT ismalloc = 0; ! return qh_new_qhull (dim, n, points, ismalloc, "qhull ", 0, stderr); } + _ACEOF ! if ac_fn_c_try_run "$LINENO"; then : ! octave_cv_lib_qhull_ok=yes else ! octave_cv_lib_qhull_ok=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ ! conftest.$ac_objext conftest.beam conftest.$ac_ext fi ! LIBS="$save_LIBS" ! ! fi + if test "$octave_cv_lib_qhull_ok" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 + $as_echo "yes" >&6; } + have_qhull=yes + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + $as_echo "no" >&6; } + have_qhull=bad + fi + fi fi + if test "$have_qhull" = yes; then ! $as_echo "#define HAVE_QHULL 1" >>confdefs.h ! QHULL_LIBS="-lqhull" ! TEXINFO_QHULL="@set HAVE_QHULL" ! else ! if test "$have_qhull" = bad; then ! warn_qhull="Qhull library found, but seems not to work properly --- This will result in loss of functionality of some geometry functions. Please try recompiling the library with -fno-strict-aliasing." else ! warn_qhull="Qhull library not found --- This will result in loss of functionality of some geometry functions." fi + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_qhull" >&5 + $as_echo "$as_me: WARNING: $warn_qhull" >&2;} + fi + ### Check for pcre/regex library. + ## check for pcre-config, and if so, set CPPFLAGS appropriately + # Extract the first word of "pcre-config", so it can be a program name with args. + set dummy pcre-config; ac_word=$2 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 + $as_echo_n "checking for $ac_word... " >&6; } + if test "${ac_cv_prog_WITH_PCRE_CONFIG+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + if test -n "$WITH_PCRE_CONFIG"; then + ac_cv_prog_WITH_PCRE_CONFIG="$WITH_PCRE_CONFIG" # Let the user override the test. + else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + for as_dir in $PATH + do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_WITH_PCRE_CONFIG="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi + done + done + IFS=$as_save_IFS ! test -z "$ac_cv_prog_WITH_PCRE_CONFIG" && ac_cv_prog_WITH_PCRE_CONFIG="no" ! fi ! fi ! WITH_PCRE_CONFIG=$ac_cv_prog_WITH_PCRE_CONFIG ! if test -n "$WITH_PCRE_CONFIG"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_PCRE_CONFIG" >&5 ! $as_echo "$WITH_PCRE_CONFIG" >&6; } ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! ! if test $WITH_PCRE_CONFIG = yes ; then ! CPPFLAGS="$CPPFLAGS $(pcre-config --cflags)" fi + ## NB: no need to do separate check for pcre.h header -- checking macros is good enough + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcre.h defines the macros we need" >&5 + $as_echo_n "checking whether pcre.h defines the macros we need... " >&6; } + if test "${ac_cv_pcre_h_macros_present+set}" = set; then : + $as_echo_n "(cached) " >&6 + else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! #include ! #if defined (PCRE_INFO_NAMECOUNT) \ ! && defined (PCRE_INFO_NAMEENTRYSIZE) \ ! && defined (PCRE_INFO_NAMETABLE) ! PCRE_HAS_MACROS_WE_NEED ! #endif ! _ACEOF ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! $EGREP "PCRE_HAS_MACROS_WE_NEED" >/dev/null 2>&1; then : ! ac_cv_pcre_h_macros_present=yes else ! ac_cv_pcre_h_macros_present=no fi + rm -f conftest* + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pcre_h_macros_present" >&5 + $as_echo "$ac_cv_pcre_h_macros_present" >&6; } + WITH_PCRE="$ac_cv_pcre_h_macros_present" + REGEX_LIBS= + using_pcre=no + using_regex=no + if test "$WITH_PCRE" = yes; then + if test "$WITH_PCRE_CONFIG" = yes; then + REGEX_LIBS=$(pcre-config --libs) + else + REGEX_LIBS=-lpcre + fi + save_LIBS="$LIBS" + LIBS="$REGEX_LIBS $LIBS" + for ac_func in pcre_compile + do : + ac_fn_c_check_func "$LINENO" "pcre_compile" "ac_cv_func_pcre_compile" + if test "x$ac_cv_func_pcre_compile" = x""yes; then : + cat >>confdefs.h <<_ACEOF + #define HAVE_PCRE_COMPILE 1 + _ACEOF + using_pcre=yes + $as_echo "#define HAVE_PCRE 1" >>confdefs.h + else + REGEX_LIBS= + warn_pcre="PCRE library not found. This will result in some loss of functionality for the regular expression matching functions." + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_pcre" >&5 + $as_echo "$as_me: WARNING: $warn_pcre" >&2;} + fi + done + LIBS="$save_LIBS" + else + warn_pcre="PCRE library not found. This will result in some loss of functionality for the regular expression matching functions." + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_pcre" >&5 + $as_echo "$as_me: WARNING: $warn_pcre" >&2;} + fi ! for ac_func in regexec ! do : ! ac_fn_c_check_func "$LINENO" "regexec" "ac_cv_func_regexec" ! if test "x$ac_cv_func_regexec" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_REGEXEC 1 ! _ACEOF ! using_regex=yes ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lregex" >&5 ! $as_echo_n "checking for regexec in -lregex... " >&6; } ! if test "${ac_cv_lib_regex_regexec+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS ! LIBS="-lregex $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. *************** *** 8481,8759 **** #ifdef __cplusplus extern "C" #endif ! char sin (); int main () { ! return sin (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_m_sin=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_m_sin=no fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 ! echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } ! if test $ac_cv_lib_m_sin = yes; then ! cat >>confdefs.h <<_ACEOF ! #define HAVE_LIBM 1 ! _ACEOF ! ! LIBS="-lm $LIBS" ! ! fi ! ! ;; ! *) ! ! { echo "$as_me:$LINENO: checking for sin in -lm" >&5 ! echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } ! if test "${ac_cv_lib_m_sin+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lm $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char sin (); ! int ! main () ! { ! return sin (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_m_sin=yes else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_m_sin=no - fi ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi - { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 - echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } - if test $ac_cv_lib_m_sin = yes; then - cat >>confdefs.h <<_ACEOF - #define HAVE_LIBM 1 - _ACEOF - - LIBS="-lm $LIBS" fi - ;; - esac ! ### Check for the QHull library ! if test "${ac_cv_header_qhull_qhull_a_h+set}" = set; then ! { echo "$as_me:$LINENO: checking for qhull/qhull_a.h" >&5 ! echo $ECHO_N "checking for qhull/qhull_a.h... $ECHO_C" >&6; } ! if test "${ac_cv_header_qhull_qhull_a_h+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_a_h" >&5 ! echo "${ECHO_T}$ac_cv_header_qhull_qhull_a_h" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking qhull/qhull_a.h usability" >&5 ! echo $ECHO_N "checking qhull/qhull_a.h usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 - echo "${ECHO_T}$ac_header_compiler" >&6; } - - # Is the header present? - { echo "$as_me:$LINENO: checking qhull/qhull_a.h presence" >&5 - echo $ECHO_N "checking qhull/qhull_a.h presence... $ECHO_C" >&6; } - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - #include - _ACEOF - if { (ac_try="$ac_cpp conftest.$ac_ext" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no - fi ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: qhull/qhull_a.h: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: qhull/qhull_a.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: qhull/qhull_a.h: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: qhull/qhull_a.h: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: qhull/qhull_a.h: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: qhull/qhull_a.h: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: qhull/qhull_a.h: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: qhull/qhull_a.h: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: qhull/qhull_a.h: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: qhull/qhull_a.h: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: qhull/qhull_a.h: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: qhull/qhull_a.h: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: qhull/qhull_a.h: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: qhull/qhull_a.h: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: qhull/qhull_a.h: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: qhull/qhull_a.h: in the future, the compiler will take precedence" >&2;} ! ;; ! esac ! { echo "$as_me:$LINENO: checking for qhull/qhull_a.h" >&5 ! echo $ECHO_N "checking for qhull/qhull_a.h... $ECHO_C" >&6; } ! if test "${ac_cv_header_qhull_qhull_a_h+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! ac_cv_header_qhull_qhull_a_h=$ac_header_preproc fi - { echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_a_h" >&5 - echo "${ECHO_T}$ac_cv_header_qhull_qhull_a_h" >&6; } - fi - if test $ac_cv_header_qhull_qhull_a_h = yes; then - have_qhull=yes - else - have_qhull=no - fi ! if test "$have_qhull" = yes; then ! { echo "$as_me:$LINENO: checking for qh_qhull in -lqhull" >&5 ! echo $ECHO_N "checking for qh_qhull in -lqhull... $ECHO_C" >&6; } ! if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS ! LIBS="-lqhull $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. --- 7997,8075 ---- #ifdef __cplusplus extern "C" #endif ! char regexec (); int main () { ! return regexec (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_regex_regexec=yes else ! ac_cv_lib_regex_regexec=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regexec" >&5 ! $as_echo "$ac_cv_lib_regex_regexec" >&6; } ! if test "x$ac_cv_lib_regex_regexec" = x""yes; then : ! using_regex=yes ! REGEX_LIBS="-lregex $REGEX_LIBS" else ! warn_regex="regular expression functions not found. The regular expression matching functions will be disabled." ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_regex" >&5 ! $as_echo "$as_me: WARNING: $warn_regex" >&2;} fi fi + done ! if test "$using_regex" = yes; then ! $as_echo "#define HAVE_REGEX 1" >>confdefs.h fi ! ### Check for ZLIB library. ! WITH_ZLIB=true ! # Check whether --with-zlib was given. ! if test "${with_zlib+set}" = set; then : ! withval=$with_zlib; with_zlib=$withval else ! with_zlib=yes fi + zlib_lib= + if test "$with_zlib" = yes; then + zlib_lib="z" + elif test "$with_zlib" != no; then + zlib_lib="$with_zlib" + fi ! ZLIB_LIBS= ! WITH_ZLIB=false ! if test -n "$zlib_lib"; then ! as_ac_Lib=`$as_echo "ac_cv_lib_$zlib_lib''_gzclearerr" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzclearerr in -l$zlib_lib" >&5 ! $as_echo_n "checking for gzclearerr in -l$zlib_lib... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS ! LIBS="-l$zlib_lib $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. *************** *** 8762,18979 **** #ifdef __cplusplus extern "C" #endif ! char qh_qhull (); int main () { ! return qh_qhull (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_qhull_qh_qhull=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_qhull_qh_qhull=no fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_qhull_qh_qhull" >&5 ! echo "${ECHO_T}$ac_cv_lib_qhull_qh_qhull" >&6; } ! if test $ac_cv_lib_qhull_qh_qhull = yes; then ! have_qhull=yes ! else ! have_qhull=no ! fi ! ! if test "$have_qhull" != yes; then ! { echo "$as_me:$LINENO: checking for qh_qhull in -lqhull with qh_version" >&5 ! echo $ECHO_N "checking for qh_qhull in -lqhull with qh_version... $ECHO_C" >&6; } ! if test "${octave_cv_lib_qhull_version+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ! cat > conftest.c < ! char *qh_version = "version"; ! char qh_qhull(); ! int ! main(argc, argv) ! int argc; ! char **argv; ! { ! qh_qhull(); ! return 0; ! } ! EOF ! ! octave_qhull_try="${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.c -o conftest -lqhull $LIBS" ! if (eval "$octave_qhull_try") 2>&5 && test -s conftest ; then ! octave_cv_lib_qhull_version=yes ! else ! octave_cv_lib_qhull_version=no ! fi ! rm -f conftest.c conftest.o conftest ! ! fi ! if test "$octave_cv_lib_qhull_version" = "yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! have_qhull=yes ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! have_qhull=no ! fi ! ! ! cat >>confdefs.h <<\_ACEOF ! #define NEED_QHULL_VERSION 1 ! _ACEOF ! ! fi ! if test "$have_qhull" = yes; then ! { echo "$as_me:$LINENO: checking whether the qhull library works" >&5 ! echo $ECHO_N "checking whether the qhull library works... $ECHO_C" >&6; } ! if test "${octave_cv_lib_qhull_ok+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ! save_LIBS="$LIBS" ! LIBS="$LIBS -lqhull" ! case $host in ! *-mingw*|*-msdosmsvc*) ;; ! *) LIBS="$LIBS -lm" ;; ! esac ! if test "$cross_compiling" = yes; then ! octave_cv_lib_qhull_ok=yes ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! #include ! #include ! ! #ifdef NEED_QHULL_VERSION ! char *qh_version = "version"; ! #endif ! int main() ! { ! int dim = 2, n = 4; ! coordT points[8] = { -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5 }; ! boolT ismalloc = 0; ! ! return qh_new_qhull (dim, n, points, ismalloc, "qhull ", 0, stderr); ! } ! ! _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! octave_cv_lib_qhull_ok=yes ! else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! octave_cv_lib_qhull_ok=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! fi ! ! ! LIBS="$save_LIBS" ! ! fi ! ! if test "$octave_cv_lib_qhull_ok" = "yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! have_qhull=yes ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! have_qhull=bad ! fi ! ! fi ! fi ! if test "$have_qhull" = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_QHULL 1 ! _ACEOF ! ! QHULL_LIBS="-lqhull" ! TEXINFO_QHULL="@set HAVE_QHULL" ! else ! if test "$have_qhull" = bad; then ! warn_qhull="Qhull library found, but seems not to work properly --- This will result in loss of functionality of some geometry functions. Please try recompiling the library with -fno-strict-aliasing." ! else ! warn_qhull="Qhull library not found --- This will result in loss of functionality of some geometry functions." ! fi ! { echo "$as_me:$LINENO: WARNING: $warn_qhull" >&5 ! echo "$as_me: WARNING: $warn_qhull" >&2;} ! fi ! ! ! ! ### Check for pcre/regex library. ! ! ## check for pcre-config, and if so, set CPPFLAGS appropriately ! # Extract the first word of "pcre-config", so it can be a program name with args. ! set dummy pcre-config; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_WITH_PCRE_CONFIG+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test -n "$WITH_PCRE_CONFIG"; then ! ac_cv_prog_WITH_PCRE_CONFIG="$WITH_PCRE_CONFIG" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_WITH_PCRE_CONFIG="yes" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! ! test -z "$ac_cv_prog_WITH_PCRE_CONFIG" && ac_cv_prog_WITH_PCRE_CONFIG="no" ! fi ! fi ! WITH_PCRE_CONFIG=$ac_cv_prog_WITH_PCRE_CONFIG ! if test -n "$WITH_PCRE_CONFIG"; then ! { echo "$as_me:$LINENO: result: $WITH_PCRE_CONFIG" >&5 ! echo "${ECHO_T}$WITH_PCRE_CONFIG" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! ! ! if test $WITH_PCRE_CONFIG = yes ; then ! CPPFLAGS="$CPPFLAGS $(pcre-config --cflags)" ! fi ! ! ## NB: no need to do separate check for pcre.h header -- checking macros is good enough ! { echo "$as_me:$LINENO: checking whether pcre.h defines the macros we need" >&5 ! echo $ECHO_N "checking whether pcre.h defines the macros we need... $ECHO_C" >&6; } ! if test "${ac_cv_pcre_h_macros_present+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! #include ! #if defined (PCRE_INFO_NAMECOUNT) \ ! && defined (PCRE_INFO_NAMEENTRYSIZE) \ ! && defined (PCRE_INFO_NAMETABLE) ! PCRE_HAS_MACROS_WE_NEED ! #endif ! _ACEOF ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! $EGREP "PCRE_HAS_MACROS_WE_NEED" >/dev/null 2>&1; then ! ac_cv_pcre_h_macros_present=yes ! else ! ac_cv_pcre_h_macros_present=no ! fi ! rm -f conftest* ! ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_pcre_h_macros_present" >&5 ! echo "${ECHO_T}$ac_cv_pcre_h_macros_present" >&6; } ! WITH_PCRE="$ac_cv_pcre_h_macros_present" ! ! REGEX_LIBS= ! ! using_pcre=no ! using_regex=no ! ! if test "$WITH_PCRE" = yes; then ! if test "$WITH_PCRE_CONFIG" = yes; then ! REGEX_LIBS=$(pcre-config --libs) ! else ! REGEX_LIBS=-lpcre ! fi ! save_LIBS="$LIBS" ! LIBS="$REGEX_LIBS $LIBS" ! ! for ac_func in pcre_compile ! do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! /* Define $ac_func to an innocuous variant, in case declares $ac_func. ! For example, HP-UX 11i declares gettimeofday. */ ! #define $ac_func innocuous_$ac_func ! ! /* System header to define __stub macros and hopefully few prototypes, ! which can conflict with char $ac_func (); below. ! Prefer to if __STDC__ is defined, since ! exists even on freestanding compilers. */ ! ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! ! #undef $ac_func ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me ! #endif ! ! int ! main () ! { ! return $ac_func (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_var=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! _ACEOF ! using_pcre=yes ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_PCRE 1 ! _ACEOF ! ! else ! ! REGEX_LIBS= ! warn_pcre="PCRE library not found. This will result in some loss of functionality for the regular expression matching functions." ! { echo "$as_me:$LINENO: WARNING: $warn_pcre" >&5 ! echo "$as_me: WARNING: $warn_pcre" >&2;} ! fi ! done ! ! LIBS="$save_LIBS" ! else ! warn_pcre="PCRE library not found. This will result in some loss of functionality for the regular expression matching functions." ! { echo "$as_me:$LINENO: WARNING: $warn_pcre" >&5 ! echo "$as_me: WARNING: $warn_pcre" >&2;} ! fi ! ! ! for ac_func in regexec ! do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! /* Define $ac_func to an innocuous variant, in case declares $ac_func. ! For example, HP-UX 11i declares gettimeofday. */ ! #define $ac_func innocuous_$ac_func ! ! /* System header to define __stub macros and hopefully few prototypes, ! which can conflict with char $ac_func (); below. ! Prefer to if __STDC__ is defined, since ! exists even on freestanding compilers. */ ! ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! ! #undef $ac_func ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me ! #endif ! ! int ! main () ! { ! return $ac_func (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_var=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! _ACEOF ! using_regex=yes ! else ! ! { echo "$as_me:$LINENO: checking for regexec in -lregex" >&5 ! echo $ECHO_N "checking for regexec in -lregex... $ECHO_C" >&6; } ! if test "${ac_cv_lib_regex_regexec+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lregex $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char regexec (); ! int ! main () ! { ! return regexec (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_regex_regexec=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_regex_regexec=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regexec" >&5 ! echo "${ECHO_T}$ac_cv_lib_regex_regexec" >&6; } ! if test $ac_cv_lib_regex_regexec = yes; then ! using_regex=yes ! REGEX_LIBS="-lregex $REGEX_LIBS" ! else ! ! warn_regex="regular expression functions not found. The regular expression matching functions will be disabled." ! { echo "$as_me:$LINENO: WARNING: $warn_regex" >&5 ! echo "$as_me: WARNING: $warn_regex" >&2;} ! fi ! ! fi ! done ! ! ! if test "$using_regex" = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_REGEX 1 ! _ACEOF ! ! fi ! ! ! ! ### Check for ZLIB library. ! ! WITH_ZLIB=true ! ! # Check whether --with-zlib was given. ! if test "${with_zlib+set}" = set; then ! withval=$with_zlib; with_zlib=$withval ! else ! with_zlib=yes ! fi ! ! ! zlib_lib= ! if test "$with_zlib" = yes; then ! zlib_lib="z" ! elif test "$with_zlib" != no; then ! zlib_lib="$with_zlib" ! fi ! ! ZLIB_LIBS= ! WITH_ZLIB=false ! if test -n "$zlib_lib"; then ! as_ac_Lib=`echo "ac_cv_lib_$zlib_lib''_gzclearerr" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for gzclearerr in -l$zlib_lib" >&5 ! echo $ECHO_N "checking for gzclearerr in -l$zlib_lib... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-l$zlib_lib $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char gzclearerr (); ! int ! main () ! { ! return gzclearerr (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! ! ! for ac_header in zlib.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no ! fi ! ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! ! WITH_ZLIB=true ! ZLIB_LIBS="-l$zlib_lib" ! LIBS="$ZLIB_LIBS $LIBS" ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_ZLIB 1 ! _ACEOF ! ! fi ! ! done ! ! fi ! ! fi ! ! if $WITH_ZLIB; then ! ### Check for HDF5 library. ! ! WITH_HDF5=true ! ! # Check whether --with-hdf5 was given. ! if test "${with_hdf5+set}" = set; then ! withval=$with_hdf5; with_hdf5=$withval ! else ! with_hdf5=yes ! fi ! ! ! hdf5_lib= ! if test "$with_hdf5" = yes; then ! hdf5_lib="hdf5" ! elif test "$with_hdf5" != no; then ! hdf5_lib="$with_hdf5" ! fi ! ! HDF5_LIBS= ! WITH_HDF5=false ! if test -n "$hdf5_lib"; then ! as_ac_Lib=`echo "ac_cv_lib_$hdf5_lib''_H5Pcreate" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for H5Pcreate in -l$hdf5_lib" >&5 ! echo $ECHO_N "checking for H5Pcreate in -l$hdf5_lib... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-l$hdf5_lib $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char H5Pcreate (); ! int ! main () ! { ! return H5Pcreate (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! ! ! for ac_header in hdf5.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no ! fi ! ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! ! WITH_HDF5=true ! HDF5_LIBS="-l$hdf5_lib" ! LIBS="$HDF5_LIBS $LIBS" ! as_ac_Lib=`echo "ac_cv_lib_$hdf5_lib''_H5Gget_num_objs" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for H5Gget_num_objs in -l$hdf5_lib" >&5 ! echo $ECHO_N "checking for H5Gget_num_objs in -l$hdf5_lib... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-l$hdf5_lib $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char H5Gget_num_objs (); ! int ! main () ! { ! return H5Gget_num_objs (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! ! ! { echo "$as_me:$LINENO: checking whether HDF5 library has required API" >&5 ! echo $ECHO_N "checking whether HDF5 library has required API... $ECHO_C" >&6; } ! if test "${octave_cv_hdf5_has_required_api+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! #define H5_USE_16_API 1 ! #include ! ! int ! main () ! { ! ! H5Eset_auto (0, 0); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ! octave_cv_hdf5_has_required_api=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ! octave_cv_hdf5_has_required_api=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! fi ! { echo "$as_me:$LINENO: result: $octave_cv_hdf5_has_required_api" >&5 ! echo "${ECHO_T}$octave_cv_hdf5_has_required_api" >&6; } ! if test "$octave_cv_hdf5_has_required_api" = "no"; then ! WITH_HDF5=false ! warn_hdf5="HDF5 library does not provide the version 1.6 API. Octave will not be able to save or load HDF5 data files." ! { echo "$as_me:$LINENO: WARNING: $warn_hdf5" >&5 ! echo "$as_me: WARNING: $warn_hdf5" >&2;} ! fi ! ! if test $WITH_HDF5; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_HDF5 1 ! _ACEOF ! ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_H5GGET_NUM_OBJS 1 ! _ACEOF ! ! fi ! fi ! ! fi ! ! done ! ! fi ! ! fi ! ! if $WITH_HDF5; then ! case "$canonical_host_type" in ! *-*-msdosmsvc) ! ! { echo "$as_me:$LINENO: checking if _HDF5USEDLL_ needs to be defined" >&5 ! echo $ECHO_N "checking if _HDF5USEDLL_ needs to be defined... $ECHO_C" >&6; } ! if test "${octave_cv_hdf5_dll+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! int ! main () ! { ! hid_t x = H5T_NATIVE_DOUBLE; return x ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! octave_cv_hdf5_dll=no ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ! CFLAGS_old=$CFLAGS ! CFLAGS="$CFLAGS -DWIN32 -D_HDF5USEDLL_" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! int ! main () ! { ! hid_t x = H5T_NATIVE_DOUBLE; return x ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! octave_cv_hdf5_dll=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! octave_cv_hdf5_dll=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! CFLAGS=$CFLAGS_old ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! fi ! { echo "$as_me:$LINENO: result: $octave_cv_hdf5_dll" >&5 ! echo "${ECHO_T}$octave_cv_hdf5_dll" >&6; } ! if test "$octave_cv_hdf5_dll" = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define _HDF5USEDLL_ 1 ! _ACEOF ! ! fi ! ;; ! esac ! true ! fi ! else ! warn_zlib="ZLIB library not found. Octave will not be able to save or load compressed data files or HDF5 files." ! { echo "$as_me:$LINENO: WARNING: $warn_zlib" >&5 ! echo "$as_me: WARNING: $warn_zlib" >&2;} ! fi ! ! ! # Checks for FFTW header and library. ! ! # subdirectories of libcruft to build if they aren't found on the system: ! FFT_DIR="fftpack" ! ! ! # Installed fftw library, if any. ! FFTW_LIBS='' ! ! ! ! # Check whether --with-fftw was given. ! if test "${with_fftw+set}" = set; then ! withval=$with_fftw; with_fftw=$withval ! else ! with_fftw=yes ! fi ! ! ! if test "$with_fftw" = yes; then ! have_fftw3_header=no ! with_fftw3=no ! if test "${ac_cv_header_fftw3_h+set}" = set; then ! { echo "$as_me:$LINENO: checking for fftw3.h" >&5 ! echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6; } ! if test "${ac_cv_header_fftw3_h+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 ! echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking fftw3.h usability" >&5 ! echo $ECHO_N "checking fftw3.h usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking fftw3.h presence" >&5 ! echo $ECHO_N "checking fftw3.h presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no ! fi ! ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;} ! ! ;; ! esac ! { echo "$as_me:$LINENO: checking for fftw3.h" >&5 ! echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6; } ! if test "${ac_cv_header_fftw3_h+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_cv_header_fftw3_h=$ac_header_preproc ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 ! echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6; } ! ! fi ! if test $ac_cv_header_fftw3_h = yes; then ! have_fftw3_header=yes ! fi ! ! ! if test "$have_fftw3_header" = yes; then ! { echo "$as_me:$LINENO: checking for fftw_plan_dft_1d in -lfftw3" >&5 ! echo $ECHO_N "checking for fftw_plan_dft_1d in -lfftw3... $ECHO_C" >&6; } ! if test "${ac_cv_lib_fftw3_fftw_plan_dft_1d+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lfftw3 $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char fftw_plan_dft_1d (); ! int ! main () ! { ! return fftw_plan_dft_1d (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_fftw3_fftw_plan_dft_1d=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_fftw3_fftw_plan_dft_1d=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_1d" >&5 ! echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_plan_dft_1d" >&6; } ! if test $ac_cv_lib_fftw3_fftw_plan_dft_1d = yes; then ! ! { echo "$as_me:$LINENO: checking for fftwf_plan_dft_1d in -lfftw3f" >&5 ! echo $ECHO_N "checking for fftwf_plan_dft_1d in -lfftw3f... $ECHO_C" >&6; } ! if test "${ac_cv_lib_fftw3f_fftwf_plan_dft_1d+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lfftw3f $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char fftwf_plan_dft_1d (); ! int ! main () ! { ! return fftwf_plan_dft_1d (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_fftw3f_fftwf_plan_dft_1d=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_fftw3f_fftwf_plan_dft_1d=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3f_fftwf_plan_dft_1d" >&5 ! echo "${ECHO_T}$ac_cv_lib_fftw3f_fftwf_plan_dft_1d" >&6; } ! if test $ac_cv_lib_fftw3f_fftwf_plan_dft_1d = yes; then ! FFTW_LIBS="-lfftw3 -lfftw3f"; with_fftw3=yes ! fi ! ! fi ! ! fi ! fi ! ! if test "$with_fftw" = yes && test "$with_fftw3" = yes; then ! FFT_DIR='' ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_FFTW3 1 ! _ACEOF ! ! else ! warn_fftw="FFTW library not found. Octave will use the (slower) FFTPACK library instead." ! { echo "$as_me:$LINENO: result: $warn_fftw" >&5 ! echo "${ECHO_T}$warn_fftw" >&6; } ! fi ! ! # Checks for GLPK header and library. ! ! ! # Check whether --with-glpk was given. ! if test "${with_glpk+set}" = set; then ! withval=$with_glpk; with_glpk=$withval ! else ! with_glpk=yes ! fi ! ! ! glpk_lib= ! if test "$with_glpk" = yes; then ! glpk_lib="glpk" ! elif test "$with_glpk" != no; then ! glpk_lib="$with_glpk" ! fi ! ! GLPK_LIBS= ! if test -n "$glpk_lib"; then ! ! ! for ac_header in glpk/glpk.h glpk.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no ! fi ! ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! ! as_ac_Lib=`echo "ac_cv_lib_$glpk_lib''_glp_lpx_simplex" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for glp_lpx_simplex in -l$glpk_lib" >&5 ! echo $ECHO_N "checking for glp_lpx_simplex in -l$glpk_lib... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-l$glpk_lib $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char glp_lpx_simplex (); ! int ! main () ! { ! return glp_lpx_simplex (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! ! GLPK_LIBS="-l$glpk_lib" ! ! cat >>confdefs.h <<\_ACEOF ! #define GLPK_PRE_4_14 1 ! _ACEOF ! ! else ! ! as_ac_Lib=`echo "ac_cv_lib_$glpk_lib''__glp_lpx_simplex" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for _glp_lpx_simplex in -l$glpk_lib" >&5 ! echo $ECHO_N "checking for _glp_lpx_simplex in -l$glpk_lib... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-l$glpk_lib $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char _glp_lpx_simplex (); ! int ! main () ! { ! return _glp_lpx_simplex (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! ! GLPK_LIBS="-l$glpk_lib" ! fi ! ! fi ! ! ! if test -n "$GLPK_LIBS"; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_GLPK 1 ! _ACEOF ! ! fi ! break ! fi ! ! done ! ! fi ! ! if test -z "$GLPK_LIBS"; then ! warn_glpk="GLPK library not found. The glpk function for solving linear programs will be disabled." ! fi ! ! # Checks for CURL header and library. ! ! ! # Check whether --with-curl was given. ! if test "${with_curl+set}" = set; then ! withval=$with_curl; with_curl=$withval ! else ! with_curl=yes ! fi ! ! ! curl_lib= ! if test "$with_curl" = yes; then ! curl_lib="curl" ! elif test "$with_curl" != no; then ! curl_lib="$with_curl" ! else ! curl_missing=yes ! fi ! ! CURL_LIBS= ! if test -n "$curl_lib"; then ! as_ac_Lib=`echo "ac_cv_lib_$curl_lib''_curl_easy_escape" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for curl_easy_escape in -l$curl_lib" >&5 ! echo $ECHO_N "checking for curl_easy_escape in -l$curl_lib... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-l$curl_lib $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char curl_easy_escape (); ! int ! main () ! { ! return curl_easy_escape (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! ! ! for ac_header in curl/curl.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no ! fi ! ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! ! CURL_LIBS="-l$curl_lib" ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_CURL 1 ! _ACEOF ! ! else ! ! curl_missing=yes ! fi ! ! done ! ! fi ! ! fi ! ! if test "$curl_missing" = yes; then ! warn_curl="cURL library not found. The urlread and urlwrite functions will be disabled." ! fi ! ! # GraphicsMagick++ ! ! warn_magick= ! for ac_prog in GraphicsMagick++-config GraphicsMagick-config ! do ! # Extract the first word of "$ac_prog", so it can be a program name with args. ! set dummy $ac_prog; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_MAGICK_CONFIG+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test -n "$MAGICK_CONFIG"; then ! ac_cv_prog_MAGICK_CONFIG="$MAGICK_CONFIG" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_MAGICK_CONFIG="$ac_prog" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! ! fi ! fi ! MAGICK_CONFIG=$ac_cv_prog_MAGICK_CONFIG ! if test -n "$MAGICK_CONFIG"; then ! { echo "$as_me:$LINENO: result: $MAGICK_CONFIG" >&5 ! echo "${ECHO_T}$MAGICK_CONFIG" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! ! ! test -n "$MAGICK_CONFIG" && break ! done ! ! if test -z "$MAGICK_CONFIG"; then ! warn_magick="GraphicsMagick++ config script not found. Assuming GraphicsMagic++ library and header files are missing, so imread will not be fully functional" ! else ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_MAGICK 1 ! _ACEOF ! ! fi ! ! # --------------------------------------------------------------------- ! ! ## libraries needed for graphics ! ! warn_freetype="" ! warn_ftgl="" ! ! ! OPENGL_LIBS= ! ! ### On MacOSX systems the OpenGL framework can be used ! ! { echo "$as_me:$LINENO: checking whether ${LD-ld} accepts -framework OpenGL" >&5 ! echo $ECHO_N "checking whether ${LD-ld} accepts -framework OpenGL... $ECHO_C" >&6; } ! if test "${octave_cv_framework_OpenGL+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ! XLDFLAGS="$LDFLAGS" ! LDFLAGS="$LDFLAGS -framework OpenGL" ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! #include ! #include ! int ! main () ! { ! GLint par; glGetIntegerv (GL_VIEWPORT, &par); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "octave_cv_framework_OpenGL=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_framework_OpenGL=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! LDFLAGS="$XLDFLAGS" ! ! fi ! ! if test "$octave_cv_framework_OpenGL" = "yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ! # Check whether --with-framework-opengl was given. ! if test "${with_framework_opengl+set}" = set; then ! withval=$with_framework_opengl; with_have_framework=$withval ! else ! with_have_framework="yes" ! fi ! ! if test "$with_have_framework" = "yes"; then ! have_framework_opengl="yes" ! else ! { echo "$as_me:$LINENO: framework rejected by --without-framework-opengl" >&5 ! echo "$as_me: framework rejected by --without-framework-opengl" >&6;} ! have_framework_opengl="no" ! fi ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! have_framework_opengl="no" ! fi ! ! ! if test $have_framework_opengl = "yes"; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_FRAMEWORK_OPENGL 1 ! _ACEOF ! ! OPENGL_LIBS="-Wl,-framework -Wl,OpenGL" ! { echo "$as_me:$LINENO: adding -Wl,-framework -Wl,OpenGL to OPENGL_LIBS" >&5 ! echo "$as_me: adding -Wl,-framework -Wl,OpenGL to OPENGL_LIBS" >&6;} ! { echo "$as_me:$LINENO: checking whether gluTessCallback is called with \"(...)\"" >&5 ! echo $ECHO_N "checking whether gluTessCallback is called with \"(...)\"... $ECHO_C" >&6; } ! if test "${octave_cv_glutesscallback_threedots+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! #ifdef HAVE_GL_GLU_H ! #include ! #elif defined HAVE_OPENGL_GLU_H || defined HAVE_FRAMEWORK_OPENGL ! #include ! #endif ! int ! main () ! { ! GLvoid (*func)(...); gluTessCallback(0, 0, func); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! octave_cv_glutesscallback_threedots="yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! octave_cv_glutesscallback_threedots="no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! { echo "$as_me:$LINENO: result: $octave_cv_glutesscallback_threedots" >&5 ! echo "${ECHO_T}$octave_cv_glutesscallback_threedots" >&6; } ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! if test $octave_cv_glutesscallback_threedots = "yes"; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_GLUTESSCALLBACK_THREEDOTS 1 ! _ACEOF ! ! fi ! ! else ! case $canonical_host_type in ! *-*-mingw32* | *-*-msdosmsvc) ! ! for ac_header in windows.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no ! fi ! ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! ! fi ! ! done ! ! ;; ! esac ! have_opengl_incs=no ! ! ! for ac_header in GL/gl.h OpenGL/gl.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! #ifdef HAVE_WINDOWS_H ! #include ! #endif ! ! ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! eval "$as_ac_Header=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Header=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! ! ! ! for ac_header in GL/glu.h OpenGL/glu.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! #ifdef HAVE_WINDOWS_H ! #include ! #endif ! ! ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! eval "$as_ac_Header=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Header=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! ! have_opengl_incs=yes; break ! fi ! ! done ! ! break ! ! fi ! ! done ! ! ! if test "$have_opengl_incs" = "yes"; then ! case $canonical_host_type in ! *-*-mingw32* | *-*-msdosmsvc) ! save_LIBS="$LIBS" ! LIBS="$LIBS -lopengl32" ! { echo "$as_me:$LINENO: checking for glEnable in -lopengl32" >&5 ! echo $ECHO_N "checking for glEnable in -lopengl32... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! #if HAVE_WINDOWS_H ! #include ! #endif ! #if defined (HAVE_GL_GL_H) ! #include ! #elif defined (HAVE_OPENGL_GL_H) ! #include ! #endif ! ! int ! main () ! { ! glEnable(GL_SMOOTH); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! OPENGL_LIBS="-lopengl32 -lglu32" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS="$save_LIBS" ! if test "x$OPENGL_LIBS" != "x"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! ;; ! *) ! save_LDFLAGS="$LDFLAGS" ! LDFLAGS="$LDFLAGS -L/usr/X11R6/lib" ! { echo "$as_me:$LINENO: checking for glEnable in -lGL" >&5 ! echo $ECHO_N "checking for glEnable in -lGL... $ECHO_C" >&6; } ! if test "${ac_cv_lib_GL_glEnable+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lGL $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char glEnable (); ! int ! main () ! { ! return glEnable (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_GL_glEnable=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_GL_glEnable=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glEnable" >&5 ! echo "${ECHO_T}$ac_cv_lib_GL_glEnable" >&6; } ! if test $ac_cv_lib_GL_glEnable = yes; then ! OPENGL_LIBS="-L/usr/X11R6/lib -lGL -lGLU" ! fi ! ! LDFLAGS="$save_LDFLAGS" ! ;; ! esac ! fi ! fi ! ! ! if test -n "$OPENGL_LIBS"; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_OPENGL 1 ! _ACEOF ! ! ! ## ftgl (needs freetype 2) ! ! # Check whether --with-ft-prefix was given. ! if test "${with_ft_prefix+set}" = set; then ! withval=$with_ft_prefix; ft_config_prefix="$withval" ! else ! ft_config_prefix="" ! fi ! ! ! ! # Check whether --with-ft-exec-prefix was given. ! if test "${with_ft_exec_prefix+set}" = set; then ! withval=$with_ft_exec_prefix; ft_config_exec_prefix="$withval" ! else ! ft_config_exec_prefix="" ! fi ! ! ! # Check whether --enable-freetypetest was given. ! if test "${enable_freetypetest+set}" = set; then ! enableval=$enable_freetypetest; ! else ! enable_fttest=yes ! fi ! ! ! if test x$ft_config_exec_prefix != x ; then ! ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix" ! if test x${FT2_CONFIG+set} != xset ; then ! FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config ! fi ! fi ! ! if test x$ft_config_prefix != x ; then ! ft_config_args="$ft_config_args --prefix=$ft_config_prefix" ! if test x${FT2_CONFIG+set} != xset ; then ! FT2_CONFIG=$ft_config_prefix/bin/freetype-config ! fi ! fi ! ! # Extract the first word of "freetype-config", so it can be a program name with args. ! set dummy freetype-config; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_path_FT2_CONFIG+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! case $FT2_CONFIG in ! [\\/]* | ?:[\\/]*) ! ac_cv_path_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test with a path. ! ;; ! *) ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_path_FT2_CONFIG="$as_dir/$ac_word$ac_exec_ext" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! ! test -z "$ac_cv_path_FT2_CONFIG" && ac_cv_path_FT2_CONFIG="no" ! ;; ! esac ! fi ! FT2_CONFIG=$ac_cv_path_FT2_CONFIG ! if test -n "$FT2_CONFIG"; then ! { echo "$as_me:$LINENO: result: $FT2_CONFIG" >&5 ! echo "${ECHO_T}$FT2_CONFIG" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! ! ! ! min_ft_version=9.0.3 ! { echo "$as_me:$LINENO: checking for FreeType -- version >= $min_ft_version" >&5 ! echo $ECHO_N "checking for FreeType -- version >= $min_ft_version... $ECHO_C" >&6; } ! no_ft="" ! if test "$FT2_CONFIG" = "no" ; then ! no_ft=yes ! else ! FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags` ! FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs` ! ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \ ! sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` ! ft_config_minor_version=`$FT2_CONFIG $ft_config_args --version | \ ! sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` ! ft_config_micro_version=`$FT2_CONFIG $ft_config_args --version | \ ! sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` ! ft_min_major_version=`echo $min_ft_version | \ ! sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` ! ft_min_minor_version=`echo $min_ft_version | \ ! sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` ! ft_min_micro_version=`echo $min_ft_version | \ ! sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` ! if test x$enable_fttest = xyes ; then ! ft_config_is_lt="" ! if test $ft_config_major_version -lt $ft_min_major_version ; then ! ft_config_is_lt=yes ! else ! if test $ft_config_major_version -eq $ft_min_major_version ; then ! if test $ft_config_minor_version -lt $ft_min_minor_version ; then ! ft_config_is_lt=yes ! else ! if test $ft_config_minor_version -eq $ft_min_minor_version ; then ! if test $ft_config_micro_version -lt $ft_min_micro_version ; then ! ft_config_is_lt=yes ! fi ! fi ! fi ! fi ! fi ! if test x$ft_config_is_lt = xyes ; then ! no_ft=yes ! else ! ac_save_CFLAGS="$CFLAGS" ! ac_save_LIBS="$LIBS" ! CFLAGS="$CFLAGS $FT2_CFLAGS" ! LIBS="$FT2_LIBS $LIBS" ! ! if test "$cross_compiling" = yes; then ! echo $ECHO_N "cross compiling; assuming OK... $ECHO_C" ! else ! cat >conftest.$ac_ext <<_ACEOF ! ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! ! #include ! #include FT_FREETYPE_H ! #include ! #include ! ! int ! main() ! { ! FT_Library library; ! FT_Error error; ! ! error = FT_Init_FreeType(&library); ! ! if (error) ! return 1; ! else ! { ! FT_Done_FreeType(library); ! return 0; ! } ! } ! ! ! ! _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! : ! else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! no_ft=yes ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! fi ! ! ! ! CFLAGS="$ac_save_CFLAGS" ! LIBS="$ac_save_LIBS" ! fi fi fi ! if test x$no_ft = x ; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! : ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! if test "$FT2_CONFIG" = "no" ; then ! { echo "$as_me:$LINENO: WARNING: ! ! The freetype-config script installed by FreeType 2 could not be found. ! If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in ! your path, or set the FT2_CONFIG environment variable to the ! full path to freetype-config. ! " >&5 ! echo "$as_me: WARNING: ! ! The freetype-config script installed by FreeType 2 could not be found. ! If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in ! your path, or set the FT2_CONFIG environment variable to the ! full path to freetype-config. ! " >&2;} ! else ! if test x$ft_config_is_lt = xyes ; then ! { echo "$as_me:$LINENO: WARNING: ! ! Your installed version of the FreeType 2 library is too old. ! If you have different versions of FreeType 2, make sure that ! correct values for --with-ft-prefix or --with-ft-exec-prefix ! are used, or set the FT2_CONFIG environment variable to the ! full path to freetype-config. ! " >&5 ! echo "$as_me: WARNING: ! ! Your installed version of the FreeType 2 library is too old. ! If you have different versions of FreeType 2, make sure that ! correct values for --with-ft-prefix or --with-ft-exec-prefix ! are used, or set the FT2_CONFIG environment variable to the ! full path to freetype-config. ! " >&2;} ! else ! { echo "$as_me:$LINENO: WARNING: ! ! The FreeType test program failed to run. If your system uses ! shared libraries and they are installed outside the normal ! system library path, make sure the variable LD_LIBRARY_PATH ! (or whatever is appropiate for your system) is correctly set. ! " >&5 ! echo "$as_me: WARNING: ! ! The FreeType test program failed to run. If your system uses ! shared libraries and they are installed outside the normal ! system library path, make sure the variable LD_LIBRARY_PATH ! (or whatever is appropiate for your system) is correctly set. ! " >&2;} ! fi ! fi ! ! FT2_CFLAGS="" ! FT2_LIBS="" ! warn_freetype="FreeType library not found. Native renderer will not have on-screen text" ! fi ! ! ! ! if test -z "$warn_freetype"; then ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! save_LIBS="$LIBS" ! save_CXXFLAGS="$CXXFLAGS" ! save_CPPFLAGS="$CPPFLAGS" ! LIBS="$LIBS $FT2_LIBS $OPENGL_LIBS" ! CXXFLAGS="$CXXFLAGS $FT2_CFLAGS" ! CPPFLAGS="$CPPFLAGS $FT2_CFLAGS" ! has_ftgl_h=yes ! ! ! ! for ac_header in FTGL/ftgl.h ftgl.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no ! fi ! ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! break ! else ! ! ! ! for ac_header in FTGL/FTGL.h FTGL.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no ! fi ! ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_FTGL_UPPERCASE 1 ! _ACEOF ! ! break ! ! else ! has_ftgl_h=no ! fi ! ! done ! ! fi ! ! done ! ! if test "$has_ftgl_h" = yes; then ! { echo "$as_me:$LINENO: checking for FTGLTextureFont in -lftgl" >&5 ! echo $ECHO_N "checking for FTGLTextureFont in -lftgl... $ECHO_C" >&6; } ! LIBS="$save_LIBS -lftgl $FT2_LIBS $OPENGL_LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! #ifdef HAVE_FTGL_FTGL_H ! #ifdef HAVE_FTGL_UPPERCASE ! #include ! #else ! #include ! #endif ! #include ! #elif HAVE_FTGL_H ! #ifdef HAVE_FTGL_UPPERCASE ! #include ! #else ! #include ! #endif ! #include ! #endif ! int ! main () ! { ! ! FTGLTextureFont font(""); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ! OPENGL_LIBS="-lftgl $FT2_LIBS $OPENGL_LIBS" ! LIBS="$save_LIBS" ! CPPFLAGS="$save_CPPFLAGS" ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_FTGL 1 ! _ACEOF ! ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FT2_CFLAGS" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! warn_ftgl="FTGL library not found. Native renderer will not have on-screen text" ! ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS="$save_LIBS" ! CXXFLAGS="$save_CXXFLAGS" ! CPPFLAGS="$save_CPPFLAGS" ! else ! warn_ftgl="FTGL headers not found. Native renderer will not have on-screen text" ! fi ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! fi ! fi ! ! GRAPHICS_LIBS= ! GRAPHICS_CFLAGS= ! ! ## fltk (www.fltk.org) ! ! # Check whether --with-fltk-prefix was given. ! if test "${with_fltk_prefix+set}" = set; then ! withval=$with_fltk_prefix; fltk_prefix="$withval" ! else ! fltk_prefix="" ! fi ! ! ! # Check whether --with-fltk-exec-prefix was given. ! if test "${with_fltk_exec_prefix+set}" = set; then ! withval=$with_fltk_exec_prefix; fltk_exec_prefix="$withval" ! else ! fltk_exec_prefix="" ! fi ! ! ! if test -n "$fltk_exec_prefix"; then ! fltk_args="$fltk_args --exec-prefix=$fltk_exec_prefix" ! if test "x${FLTK_CONFIG+set}" != xset ; then ! FLTK_CONFIG="$fltk_exec_prefix/bin/fltk-config" ! fi ! fi ! ! if test -n "$fltk_prefix"; then ! fltk_args="$fltk_args --prefix=$fltk_prefix" ! if test x${FLTK_CONFIG+set} != xset ; then ! FLTK_CONFIG="$fltk_prefix/bin/fltk-config" ! fi ! fi ! ! # Extract the first word of "fltk-config", so it can be a program name with args. ! set dummy fltk-config; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_path_FLTK_CONFIG+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! case $FLTK_CONFIG in ! [\\/]* | ?:[\\/]*) ! ac_cv_path_FLTK_CONFIG="$FLTK_CONFIG" # Let the user override the test with a path. ! ;; ! *) ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_path_FLTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! ! test -z "$ac_cv_path_FLTK_CONFIG" && ac_cv_path_FLTK_CONFIG="no" ! ;; ! esac ! fi ! FLTK_CONFIG=$ac_cv_path_FLTK_CONFIG ! if test -n "$FLTK_CONFIG"; then ! { echo "$as_me:$LINENO: result: $FLTK_CONFIG" >&5 ! echo "${ECHO_T}$FLTK_CONFIG" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! ! ! ! warn_fltk_config="" ! warn_fltk_opengl="" ! ! if test "$FLTK_CONFIG" = "no" ; then ! warn_fltk_config="FLTK config script not found. Native graphics will be disabled." ! else ! FLTK_CFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --cflags`" ! FLTK_LDFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --ldflags`" ! ! { echo "$as_me:$LINENO: checking for OpenGL support in FLTK" >&5 ! echo $ECHO_N "checking for OpenGL support in FLTK... $ECHO_C" >&6; } ! cat > conftest.cc < ! int nothing=0; ! EOF ! $CXX $CXXFLAGS $FLTK_CFLAGS -c conftest.cc || \ ! warn_fltk_opengl="FLTK does not have OpenGL support. Native graphics will be disabled." ! ! if test -z "$warn_fltk_opengl"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_FLTK 1 ! _ACEOF ! ! GRAPHICS_CFLAGS="$FLTK_CFLAGS" ! GRAPHICS_LIBS="$FLTK_LDFLAGS" ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! fi ! ! ! ! ! { echo "$as_me:$LINENO: checking for IEEE 754 data format" >&5 ! echo $ECHO_N "checking for IEEE 754 data format... $ECHO_C" >&6; } ! if test "${octave_cv_ieee754_data_format+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test "$cross_compiling" = yes; then ! octave_cv_ieee754_data_format=no ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! int ! main (void) ! { ! typedef union { unsigned char c[8]; double d; } ieeebytes; ! ! ieeebytes l = {0x1c, 0xbc, 0x6e, 0xf2, 0x54, 0x8b, 0x11, 0x43}; ! ieeebytes b = {0x43, 0x11, 0x8b, 0x54, 0xf2, 0x6e, 0xbc, 0x1c}; ! ! return l.d != 1234567891234567.0 && b.d != 1234567891234567.0; ! } ! _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! octave_cv_ieee754_data_format=yes ! else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! octave_cv_ieee754_data_format=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! fi ! ! ! fi ! ! if test "$cross_compiling" = yes; then ! { echo "$as_me:$LINENO: result: $octave_cv_ieee754_data_format assumed for cross compilation" >&5 ! echo "${ECHO_T}$octave_cv_ieee754_data_format assumed for cross compilation" >&6; } ! else ! { echo "$as_me:$LINENO: result: $octave_cv_ieee754_data_format" >&5 ! echo "${ECHO_T}$octave_cv_ieee754_data_format" >&6; } ! fi ! if test "$octave_cv_ieee754_data_format" = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_IEEE754_DATA_FORMAT 1 ! _ACEOF ! ! fi ! ! ! # ---------------------------------------------------------------------- ! ! if test -z "$AR"; then ! AR=ar ! fi ! ! ! if test -z "$ARFLAGS"; then ! ARFLAGS="rc" ! fi ! ! ! ! if test -n "$ac_tool_prefix"; then ! # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. ! set dummy ${ac_tool_prefix}ranlib; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_RANLIB+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test -n "$RANLIB"; then ! ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! ! fi ! fi ! RANLIB=$ac_cv_prog_RANLIB ! if test -n "$RANLIB"; then ! { echo "$as_me:$LINENO: result: $RANLIB" >&5 ! echo "${ECHO_T}$RANLIB" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! ! ! fi ! if test -z "$ac_cv_prog_RANLIB"; then ! ac_ct_RANLIB=$RANLIB ! # Extract the first word of "ranlib", so it can be a program name with args. ! set dummy ranlib; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test -n "$ac_ct_RANLIB"; then ! ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_ac_ct_RANLIB="ranlib" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! ! fi ! fi ! ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB ! if test -n "$ac_ct_RANLIB"; then ! { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 ! echo "${ECHO_T}$ac_ct_RANLIB" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! ! if test "x$ac_ct_RANLIB" = x; then ! RANLIB=":" ! else ! case $cross_compiling:$ac_tool_warned in ! yes:) ! { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ! whose name does not start with the host triplet. If you think this ! configuration is useful to you, please write to autoconf@gnu.org." >&5 ! echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ! whose name does not start with the host triplet. If you think this ! configuration is useful to you, please write to autoconf@gnu.org." >&2;} ! ac_tool_warned=yes ;; ! esac ! RANLIB=$ac_ct_RANLIB ! fi ! else ! RANLIB="$ac_cv_prog_RANLIB" ! fi ! ! ! ## Default FFLAGS is -O. ! if test "x$FFLAGS" = x; then ! FFLAGS="-O" ! fi ! ! ## the F77 variable, if set, overrides AC_PROG_F77 automatically ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! if test -n "$ac_tool_prefix"; then ! for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn ! do ! # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ! set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_F77+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test -n "$F77"; then ! ac_cv_prog_F77="$F77" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_F77="$ac_tool_prefix$ac_prog" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! ! fi ! fi ! F77=$ac_cv_prog_F77 ! if test -n "$F77"; then ! { echo "$as_me:$LINENO: result: $F77" >&5 ! echo "${ECHO_T}$F77" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! ! ! test -n "$F77" && break ! done ! fi ! if test -z "$F77"; then ! ac_ct_F77=$F77 ! for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn ! do ! # Extract the first word of "$ac_prog", so it can be a program name with args. ! set dummy $ac_prog; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_ac_ct_F77+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test -n "$ac_ct_F77"; then ! ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_ac_ct_F77="$ac_prog" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! ! fi ! fi ! ac_ct_F77=$ac_cv_prog_ac_ct_F77 ! if test -n "$ac_ct_F77"; then ! { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 ! echo "${ECHO_T}$ac_ct_F77" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! fi ! ! ! test -n "$ac_ct_F77" && break ! done ! ! if test "x$ac_ct_F77" = x; then ! F77="" ! else ! case $cross_compiling:$ac_tool_warned in ! yes:) ! { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ! whose name does not start with the host triplet. If you think this ! configuration is useful to you, please write to autoconf@gnu.org." >&5 ! echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ! whose name does not start with the host triplet. If you think this ! configuration is useful to you, please write to autoconf@gnu.org." >&2;} ! ac_tool_warned=yes ;; ! esac ! F77=$ac_ct_F77 ! fi ! fi ! ! ! # Provide some information about the compiler. ! echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 ! ac_compiler=`set X $ac_compile; echo $2` ! { (ac_try="$ac_compiler --version >&5" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compiler --version >&5") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } ! { (ac_try="$ac_compiler -v >&5" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compiler -v >&5") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } ! { (ac_try="$ac_compiler -V >&5" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compiler -V >&5") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } ! rm -f a.out ! ! # If we don't use `.F' as extension, the preprocessor is not run on the ! # input file. (Note that this only needs to work for GNU compilers.) ! ac_save_ext=$ac_ext ! ac_ext=F ! { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 ! echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } ! if test "${ac_cv_f77_compiler_gnu+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! program main ! #ifndef __GNUC__ ! choke me ! #endif ! ! end ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_f77_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_compiler_gnu=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_compiler_gnu=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_cv_f77_compiler_gnu=$ac_compiler_gnu ! ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 ! echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } ! ac_ext=$ac_save_ext ! ac_test_FFLAGS=${FFLAGS+set} ! ac_save_FFLAGS=$FFLAGS ! FFLAGS= ! { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 ! echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } ! if test "${ac_cv_prog_f77_g+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! FFLAGS=-g ! cat >conftest.$ac_ext <<_ACEOF ! program main ! ! end ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_f77_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_prog_f77_g=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_prog_f77_g=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 ! echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } ! if test "$ac_test_FFLAGS" = set; then ! FFLAGS=$ac_save_FFLAGS ! elif test $ac_cv_prog_f77_g = yes; then ! if test "x$ac_cv_f77_compiler_gnu" = xyes; then ! FFLAGS="-g -O2" ! else ! FFLAGS="-g" ! fi ! else ! if test "x$ac_cv_f77_compiler_gnu" = xyes; then ! FFLAGS="-O2" ! else ! FFLAGS= ! fi ! fi ! ! G77=`test $ac_compiler_gnu = yes && echo yes` ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! { echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5 ! echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6; } ! if test "${ac_cv_prog_f77_v+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! program main ! ! end ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_f77_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_prog_f77_v= ! # Try some options frequently used verbose output ! for ac_verb in -v -verbose --verbose -V -\#\#\#; do ! cat >conftest.$ac_ext <<_ACEOF ! program main ! ! end ! _ACEOF ! ! # Compile and link our simple test program by passing a flag (argument ! # 1 to this macro) to the Fortran compiler in order to get ! # "verbose" output that we can then parse for the Fortran linker ! # flags. ! ac_save_FFLAGS=$FFLAGS ! FFLAGS="$FFLAGS $ac_verb" ! eval "set x $ac_link" ! shift ! echo "$as_me:$LINENO: $*" >&5 ! ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` ! echo "$ac_f77_v_output" >&5 ! FFLAGS=$ac_save_FFLAGS ! ! rm -f conftest* ! ! # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where ! # /foo, /bar, and /baz are search directories for the Fortran linker. ! # Here, we change these into -L/foo -L/bar -L/baz (and put it first): ! ac_f77_v_output="`echo $ac_f77_v_output | ! grep 'LPATH is:' | ! sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" ! ! # FIXME: we keep getting bitten by quoted arguments; a more general fix ! # that detects unbalanced quotes in FLIBS should be implemented ! # and (ugh) tested at some point. ! case $ac_f77_v_output in ! # If we are using xlf then replace all the commas with spaces. ! *xlfentry*) ! ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; ! ! # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted ! # $LIBS confuse us, and the libraries appear later in the output anyway). ! *mGLOB_options_string*) ! ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; ! ! # Portland Group compiler has singly- or doubly-quoted -cmdline argument ! # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. ! # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". ! *-cmdline\ * | *-ignore\ * | *-def\ *) ! ac_f77_v_output=`echo $ac_f77_v_output | sed "\ ! s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g ! s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g ! s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; ! ! # If we are using Cray Fortran then delete quotes. ! *cft90*) ! ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; ! esac ! ! ! # look for -l* and *.a constructs in the output ! for ac_arg in $ac_f77_v_output; do ! case $ac_arg in ! [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) ! ac_cv_prog_f77_v=$ac_verb ! break 2 ;; ! esac ! done ! done ! if test -z "$ac_cv_prog_f77_v"; then ! { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5 ! echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} ! fi ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! { echo "$as_me:$LINENO: WARNING: compilation failed" >&5 ! echo "$as_me: WARNING: compilation failed" >&2;} ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5 ! echo "${ECHO_T}$ac_cv_prog_f77_v" >&6; } ! { echo "$as_me:$LINENO: checking for Fortran 77 libraries of $F77" >&5 ! echo $ECHO_N "checking for Fortran 77 libraries of $F77... $ECHO_C" >&6; } ! if test "${ac_cv_f77_libs+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test "x$FLIBS" != "x"; then ! ac_cv_f77_libs="$FLIBS" # Let the user override the test. ! else ! ! cat >conftest.$ac_ext <<_ACEOF ! program main ! ! end ! _ACEOF ! ! # Compile and link our simple test program by passing a flag (argument ! # 1 to this macro) to the Fortran compiler in order to get ! # "verbose" output that we can then parse for the Fortran linker ! # flags. ! ac_save_FFLAGS=$FFLAGS ! FFLAGS="$FFLAGS $ac_cv_prog_f77_v" ! eval "set x $ac_link" ! shift ! echo "$as_me:$LINENO: $*" >&5 ! ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` ! echo "$ac_f77_v_output" >&5 ! FFLAGS=$ac_save_FFLAGS ! ! rm -f conftest* ! ! # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where ! # /foo, /bar, and /baz are search directories for the Fortran linker. ! # Here, we change these into -L/foo -L/bar -L/baz (and put it first): ! ac_f77_v_output="`echo $ac_f77_v_output | ! grep 'LPATH is:' | ! sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" ! ! # FIXME: we keep getting bitten by quoted arguments; a more general fix ! # that detects unbalanced quotes in FLIBS should be implemented ! # and (ugh) tested at some point. ! case $ac_f77_v_output in ! # If we are using xlf then replace all the commas with spaces. ! *xlfentry*) ! ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; ! ! # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted ! # $LIBS confuse us, and the libraries appear later in the output anyway). ! *mGLOB_options_string*) ! ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; ! ! # Portland Group compiler has singly- or doubly-quoted -cmdline argument ! # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. ! # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". ! *-cmdline\ * | *-ignore\ * | *-def\ *) ! ac_f77_v_output=`echo $ac_f77_v_output | sed "\ ! s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g ! s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g ! s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; ! ! # If we are using Cray Fortran then delete quotes. ! *cft90*) ! ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; ! esac ! ! ! ! ac_cv_f77_libs= ! ! # Save positional arguments (if any) ! ac_save_positional="$@" ! ! set X $ac_f77_v_output ! while test $# != 1; do ! shift ! ac_arg=$1 ! case $ac_arg in ! [\\/]*.a | ?:[\\/]*.a) ! ac_exists=false ! for ac_i in $ac_cv_f77_libs; do ! if test x"$ac_arg" = x"$ac_i"; then ! ac_exists=true ! break ! fi ! done ! ! if test x"$ac_exists" = xtrue; then ! : ! else ! ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ! fi ! ! ;; ! -bI:*) ! ac_exists=false ! for ac_i in $ac_cv_f77_libs; do ! if test x"$ac_arg" = x"$ac_i"; then ! ac_exists=true ! break ! fi ! done ! ! if test x"$ac_exists" = xtrue; then ! : ! else ! if test "$ac_compiler_gnu" = yes; then ! for ac_link_opt in $ac_arg; do ! ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" ! done ! else ! ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ! fi ! fi ! ! ;; ! # Ignore these flags. ! -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*) ! ;; ! -lkernel32) ! test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ! ;; ! -[LRuYz]) ! # These flags, when seen by themselves, take an argument. ! # We remove the space between option and argument and re-iterate ! # unless we find an empty arg or a new option (starting with -) ! case $2 in ! "" | -*);; ! *) ! ac_arg="$ac_arg$2" ! shift; shift ! set X $ac_arg "$@" ! ;; ! esac ! ;; ! -YP,*) ! for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do ! ac_exists=false ! for ac_i in $ac_cv_f77_libs; do ! if test x"$ac_j" = x"$ac_i"; then ! ac_exists=true ! break ! fi ! done ! ! if test x"$ac_exists" = xtrue; then ! : ! else ! ac_arg="$ac_arg $ac_j" ! ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" ! fi ! ! done ! ;; ! -[lLR]*) ! ac_exists=false ! for ac_i in $ac_cv_f77_libs; do ! if test x"$ac_arg" = x"$ac_i"; then ! ac_exists=true ! break ! fi ! done ! ! if test x"$ac_exists" = xtrue; then ! : ! else ! ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ! fi ! ! ;; ! -zallextract*| -zdefaultextract) ! ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ! ;; ! # Ignore everything else. ! esac ! done ! # restore positional arguments ! set X $ac_save_positional; shift ! ! # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, ! # then we insist that the "run path" must be an absolute path (i.e. it ! # must begin with a "/"). ! case `(uname -sr) 2>/dev/null` in ! "SunOS 5"*) ! ac_ld_run_path=`echo $ac_f77_v_output | ! sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` ! test "x$ac_ld_run_path" != x && ! if test "$ac_compiler_gnu" = yes; then ! for ac_link_opt in $ac_ld_run_path; do ! ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" ! done ! else ! ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" ! fi ! ;; ! esac ! fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" ! ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5 ! echo "${ECHO_T}$ac_cv_f77_libs" >&6; } ! FLIBS="$ac_cv_f77_libs" ! ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ! { echo "$as_me:$LINENO: checking for dummy main to link with Fortran 77 libraries" >&5 ! echo $ECHO_N "checking for dummy main to link with Fortran 77 libraries... $ECHO_C" >&6; } ! if test "${ac_cv_f77_dummy_main+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_f77_dm_save_LIBS=$LIBS ! LIBS="$LIBS $FLIBS" ! ac_fortran_dm_var=F77_DUMMY_MAIN ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! # First, try linking without a dummy main: ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_fortran_dummy_main=none ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_fortran_dummy_main=unknown ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! ! if test $ac_cv_fortran_dummy_main = unknown; then ! for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #define $ac_fortran_dm_var $ac_func ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_fortran_dummy_main=$ac_func; break ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! done ! fi ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main ! rm -f conftest* ! LIBS=$ac_f77_dm_save_LIBS ! ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5 ! echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6; } ! F77_DUMMY_MAIN=$ac_cv_f77_dummy_main ! if test "$F77_DUMMY_MAIN" != unknown; then ! if test $F77_DUMMY_MAIN != none; then ! ! cat >>confdefs.h <<_ACEOF ! #define F77_DUMMY_MAIN $F77_DUMMY_MAIN ! _ACEOF ! ! if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then ! ! cat >>confdefs.h <<\_ACEOF ! #define FC_DUMMY_MAIN_EQ_F77 1 ! _ACEOF ! ! fi ! fi ! else ! { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails ! See \`config.log' for more details." >&5 ! echo "$as_me: error: linking to Fortran libraries from C fails ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } ! fi ! ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! { echo "$as_me:$LINENO: checking for Fortran 77 name-mangling scheme" >&5 ! echo $ECHO_N "checking for Fortran 77 name-mangling scheme... $ECHO_C" >&6; } ! if test "${ac_cv_f77_mangling+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! subroutine foobar() ! return ! end ! subroutine foo_bar() ! return ! end ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_f77_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! mv conftest.$ac_objext cfortran_test.$ac_objext ! ! ac_save_LIBS=$LIBS ! LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ac_success=no ! for ac_foobar in foobar FOOBAR; do ! for ac_underscore in "" "_"; do ! ac_func="$ac_foobar$ac_underscore" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $ac_func (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $ac_func (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_success=yes; break 2 ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! done ! done ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ! if test "$ac_success" = "yes"; then ! case $ac_foobar in ! foobar) ! ac_case=lower ! ac_foo_bar=foo_bar ! ;; ! FOOBAR) ! ac_case=upper ! ac_foo_bar=FOO_BAR ! ;; ! esac ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ac_success_extra=no ! for ac_extra in "" "_"; do ! ac_func="$ac_foo_bar$ac_underscore$ac_extra" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $ac_func (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $ac_func (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_success_extra=yes; break ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! done ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ! if test "$ac_success_extra" = "yes"; then ! ac_cv_f77_mangling="$ac_case case" ! if test -z "$ac_underscore"; then ! ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" ! else ! ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" ! fi ! if test -z "$ac_extra"; then ! ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" ! else ! ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" ! fi ! else ! ac_cv_f77_mangling="unknown" ! fi ! else ! ac_cv_f77_mangling="unknown" ! fi ! ! LIBS=$ac_save_LIBS ! rm -f cfortran_test* conftest* ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot compile a simple Fortran program ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5 ! echo "${ECHO_T}$ac_cv_f77_mangling" >&6; } ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ! ! case $ac_cv_f77_mangling in ! "lower case, no underscore, no extra underscore") ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC(name,NAME) name ! _ACEOF ! ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC_(name,NAME) name ! _ACEOF ! ;; ! "lower case, no underscore, extra underscore") ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC(name,NAME) name ! _ACEOF ! ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC_(name,NAME) name ## _ ! _ACEOF ! ;; ! "lower case, underscore, no extra underscore") ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC(name,NAME) name ## _ ! _ACEOF ! ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC_(name,NAME) name ## _ ! _ACEOF ! ;; ! "lower case, underscore, extra underscore") ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC(name,NAME) name ## _ ! _ACEOF ! ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC_(name,NAME) name ## __ ! _ACEOF ! ;; ! "upper case, no underscore, no extra underscore") ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC(name,NAME) NAME ! _ACEOF ! ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC_(name,NAME) NAME ! _ACEOF ! ;; ! "upper case, no underscore, extra underscore") ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC(name,NAME) NAME ! _ACEOF ! ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC_(name,NAME) NAME ## _ ! _ACEOF ! ;; ! "upper case, underscore, no extra underscore") ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC(name,NAME) NAME ## _ ! _ACEOF ! ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC_(name,NAME) NAME ## _ ! _ACEOF ! ;; ! "upper case, underscore, extra underscore") ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC(name,NAME) NAME ## _ ! _ACEOF ! ! cat >>confdefs.h <<\_ACEOF ! #define F77_FUNC_(name,NAME) NAME ## __ ! _ACEOF ! ;; ! *) ! { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5 ! echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} ! ;; ! esac ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! F77_TOLOWER=true ! F77_APPEND_UNDERSCORE=true ! F77_APPEND_EXTRA_UNDERSCORE=true ! ! case "$ac_cv_f77_mangling" in ! "upper case") F77_TOLOWER=false ;; ! esac ! case "$ac_cv_f77_mangling" in ! "no underscore") F77_APPEND_UNDERSCORE=false ;; ! esac ! case "$ac_cv_f77_mangling" in ! "no extra underscore") F77_APPEND_EXTRA_UNDERSCORE=false ;; ! esac ! ! case "$canonical_host_type" in ! i[3456789]86-*-*) ! if test "$ac_cv_f77_compiler_gnu" = yes; then ! ! ac_safe=`echo "-mieee-fp" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${F77-g77} accepts -mieee-fp" >&5 ! echo $ECHO_N "checking whether ${F77-g77} accepts -mieee-fp... $ECHO_C" >&6; } ! if { as_var=octave_cv_f77_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ! XFFLAGS="$FFLAGS" ! FFLAGS="$FFLAGS -mieee-fp" ! cat >conftest.$ac_ext <<_ACEOF ! program main ! ! end ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_f77_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "octave_cv_f77_flag_$ac_safe=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_f77_flag_$ac_safe=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! FFLAGS="$XFFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! fi ! ! if eval "test \"`echo '$octave_cv_f77_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ! FFLAGS="$FFLAGS -mieee-fp" ! { echo "$as_me:$LINENO: result: adding -mieee-fp to FFLAGS" >&5 ! echo "${ECHO_T}adding -mieee-fp to FFLAGS" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! ! fi ! ! ### OCTAVE_F77_FLAG(-ffloat-store) ! fi ! ;; ! alpha*-*-*) ! if test "$ac_cv_f77_compiler_gnu" = yes; then ! ! ac_safe=`echo "-mieee" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${F77-g77} accepts -mieee" >&5 ! echo $ECHO_N "checking whether ${F77-g77} accepts -mieee... $ECHO_C" >&6; } ! if { as_var=octave_cv_f77_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ! XFFLAGS="$FFLAGS" ! FFLAGS="$FFLAGS -mieee" ! cat >conftest.$ac_ext <<_ACEOF ! program main ! ! end ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_f77_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "octave_cv_f77_flag_$ac_safe=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_f77_flag_$ac_safe=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! FFLAGS="$XFFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! fi ! ! if eval "test \"`echo '$octave_cv_f77_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ! FFLAGS="$FFLAGS -mieee" ! { echo "$as_me:$LINENO: result: adding -mieee to FFLAGS" >&5 ! echo "${ECHO_T}adding -mieee to FFLAGS" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! ! fi ! ! else ! ! ac_safe=`echo "-ieee" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${F77-g77} accepts -ieee" >&5 ! echo $ECHO_N "checking whether ${F77-g77} accepts -ieee... $ECHO_C" >&6; } ! if { as_var=octave_cv_f77_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ! XFFLAGS="$FFLAGS" ! FFLAGS="$FFLAGS -ieee" ! cat >conftest.$ac_ext <<_ACEOF ! program main ! ! end ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_f77_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "octave_cv_f77_flag_$ac_safe=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_f77_flag_$ac_safe=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! FFLAGS="$XFFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! fi ! ! if eval "test \"`echo '$octave_cv_f77_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ! FFLAGS="$FFLAGS -ieee" ! { echo "$as_me:$LINENO: result: adding -ieee to FFLAGS" >&5 ! echo "${ECHO_T}adding -ieee to FFLAGS" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! ! fi ! ! ! ac_safe=`echo "-fpe1" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${F77-g77} accepts -fpe1" >&5 ! echo $ECHO_N "checking whether ${F77-g77} accepts -fpe1... $ECHO_C" >&6; } ! if { as_var=octave_cv_f77_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ! XFFLAGS="$FFLAGS" ! FFLAGS="$FFLAGS -fpe1" ! cat >conftest.$ac_ext <<_ACEOF ! program main ! ! end ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_f77_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "octave_cv_f77_flag_$ac_safe=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_f77_flag_$ac_safe=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! FFLAGS="$XFFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! fi ! ! if eval "test \"`echo '$octave_cv_f77_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ! FFLAGS="$FFLAGS -fpe1" ! { echo "$as_me:$LINENO: result: adding -fpe1 to FFLAGS" >&5 ! echo "${ECHO_T}adding -fpe1 to FFLAGS" >&6; } ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! ! fi ! ! fi ! ;; ! powerpc-apple-machten*) ! FFLAGS= ! ;; ! esac ! ! if test -n "$FFLAGS"; then ! { echo "$as_me:$LINENO: defining FFLAGS to be $FFLAGS" >&5 ! echo "$as_me: defining FFLAGS to be $FFLAGS" >&6;} ! fi ! ! ! ! ! ! if test -z "$F77"; then ! { echo "$as_me:$LINENO: WARNING: in order to build octave, you must have a compatible" >&5 ! echo "$as_me: WARNING: in order to build octave, you must have a compatible" >&2;} ! { echo "$as_me:$LINENO: WARNING: Fortran compiler or wrapper script for f2c that functions" >&5 ! echo "$as_me: WARNING: Fortran compiler or wrapper script for f2c that functions" >&2;} ! { echo "$as_me:$LINENO: WARNING: as a Fortran compiler installed and in your path." >&5 ! echo "$as_me: WARNING: as a Fortran compiler installed and in your path." >&2;} ! { { echo "$as_me:$LINENO: error: See the file INSTALL for more information." >&5 ! echo "$as_me: error: See the file INSTALL for more information." >&2;} ! { (exit 1); exit 1; }; } ! fi ! ! XTRA_CRUFT_SH_LDFLAGS= ! case "$canonical_host_type" in ! *-*-msdosmsvc) ! FLIBS="$FLIBS -lkernel32" ! XTRA_CRUFT_SH_LDFLAGS="-Wl,-def:cruft.def" ! ;; ! esac ! ! ! FC=$F77 ! ! ! ! ac_safe=`echo "-ffloat-store" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${F77-g77} accepts -ffloat-store" >&5 ! echo $ECHO_N "checking whether ${F77-g77} accepts -ffloat-store... $ECHO_C" >&6; } ! if { as_var=octave_cv_f77_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ! XFFLAGS="$FFLAGS" ! FFLAGS="$FFLAGS -ffloat-store" ! cat >conftest.$ac_ext <<_ACEOF ! program main ! ! end ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_f77_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "octave_cv_f77_flag_$ac_safe=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_f77_flag_$ac_safe=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! FFLAGS="$XFFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! fi ! ! if eval "test \"`echo '$octave_cv_f77_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ! { echo "$as_me:$LINENO: result: setting F77_FLOAT_STORE_FLAG to -ffloat-store" >&5 ! echo "${ECHO_T}setting F77_FLOAT_STORE_FLAG to -ffloat-store" >&6; } ! F77_FLOAT_STORE_FLAG=-ffloat-store ! ! ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! ! fi ! ! ! ### Checks for BLAS and LAPACK libraries: ! # (Build subdirectories of libcruft if they aren't found on the system.) ! ! # =========================================================================== ! # http://autoconf-archive.cryp.to/acx_blas_f77_func.html ! # =========================================================================== ! # ! # SYNOPSIS ! # ! # ACX_BLAS_F77_FUNC([ACTION-IF-PASS[, ACTION-IF-FAIL[, ACTION-IF-CROSS-COMPILING]]) ! # ACX_BLAS_WITH_F77_FUNC([ACTION-IF-FOUND-AND-PASS[, ACTION-IF-NOT-FOUND-OR-FAIL]]) ! # ! # DESCRIPTION ! # ! # These macros are intended as a supplement to the ACX_BLAS macro, to ! # verify that BLAS functions are properly callable from Fortran. This is ! # necessary, for example, if you want to build the LAPACK library on top ! # of the BLAS. ! # ! # ACX_BLAS_F77_FUNC uses the defined BLAS_LIBS and Fortran environment to ! # check for compatibility, and takes a specific action in case of success, ! # resp. failure, resp. cross-compilation. ! # ! # ACX_BLAS_WITH_F77_FUNC is a drop-in replacement wrapper for ACX_BLAS ! # that calls ACX_BLAS_F77_FUNC after detecting a BLAS library and rejects ! # it on failure (i.e. pretends that no library was found). ! # ! # LAST MODIFICATION ! # ! # 2008-06-18 ! # ! # COPYLEFT ! # ! # Copyright (c) 2008 Jaroslav Hajek ! # ! # This program is free software: you can redistribute it and/or modify it ! # under the terms of the GNU General Public License as published by the ! # Free Software Foundation, either version 3 of the License, or (at your ! # option) any later version. ! # ! # This program is distributed in the hope that it will be useful, but ! # WITHOUT ANY WARRANTY; without even the implied warranty of ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General ! # Public License for more details. ! # ! # You should have received a copy of the GNU General Public License along ! # with this program. If not, see . ! # ! # As a special exception, the respective Autoconf Macro's copyright owner ! # gives unlimited permission to copy, distribute and modify the configure ! # scripts that are the output of Autoconf when processing the Macro. You ! # need not follow the terms of the GNU General Public License when using ! # or distributing such scripts, even though portions of the text of the ! # Macro appear in them. The GNU General Public License (GPL) does govern ! # all other use of the material that constitutes the Autoconf Macro. ! # ! # This special exception to the GPL applies to versions of the Autoconf ! # Macro released by the Autoconf Macro Archive. When you make and ! # distribute a modified version of the Autoconf Macro, you may extend this ! # special exception to the GPL to apply to your modified version as well. ! ! ! ! # =========================================================================== ! # http://autoconf-archive.cryp.to/acx_lapack.html ! # =========================================================================== ! # ! # SYNOPSIS ! # ! # ACX_LAPACK([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) ! # ! # DESCRIPTION ! # ! # This macro looks for a library that implements the LAPACK linear-algebra ! # interface (see http://www.netlib.org/lapack/). On success, it sets the ! # LAPACK_LIBS output variable to hold the requisite library linkages. ! # ! # To link with LAPACK, you should link with: ! # ! # $LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS ! # ! # in that order. BLAS_LIBS is the output variable of the ACX_BLAS macro, ! # called automatically. FLIBS is the output variable of the ! # AC_F77_LIBRARY_LDFLAGS macro (called if necessary by ACX_BLAS), and is ! # sometimes necessary in order to link with F77 libraries. Users will also ! # need to use AC_F77_DUMMY_MAIN (see the autoconf manual), for the same ! # reason. ! # ! # The user may also use --with-lapack= in order to use some specific ! # LAPACK library . In order to link successfully, however, be aware ! # that you will probably need to use the same Fortran compiler (which can ! # be set via the F77 env. var.) as was used to compile the LAPACK and BLAS ! # libraries. ! # ! # ACTION-IF-FOUND is a list of shell commands to run if a LAPACK library ! # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it ! # is not found. If ACTION-IF-FOUND is not specified, the default action ! # will define HAVE_LAPACK. ! # ! # LAST MODIFICATION ! # ! # 2008-06-29 ! # ! # COPYLEFT ! # ! # Copyright (c) 2008 Steven G. Johnson ! # ! # This program is free software: you can redistribute it and/or modify it ! # under the terms of the GNU General Public License as published by the ! # Free Software Foundation, either version 3 of the License, or (at your ! # option) any later version. ! # ! # This program is distributed in the hope that it will be useful, but ! # WITHOUT ANY WARRANTY; without even the implied warranty of ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General ! # Public License for more details. ! # ! # You should have received a copy of the GNU General Public License along ! # with this program. If not, see . ! # ! # As a special exception, the respective Autoconf Macro's copyright owner ! # gives unlimited permission to copy, distribute and modify the configure ! # scripts that are the output of Autoconf when processing the Macro. You ! # need not follow the terms of the GNU General Public License when using ! # or distributing such scripts, even though portions of the text of the ! # Macro appear in them. The GNU General Public License (GPL) does govern ! # all other use of the material that constitutes the Autoconf Macro. ! # ! # This special exception to the GPL applies to versions of the Autoconf ! # Macro released by the Autoconf Macro Archive. When you make and ! # distribute a modified version of the Autoconf Macro, you may extend this ! # special exception to the GPL to apply to your modified version as well. ! ! ! ! ! ! ! ! acx_blas_ok=no ! ! ! # Check whether --with-blas was given. ! if test "${with_blas+set}" = set; then ! withval=$with_blas; ! fi ! ! case $with_blas in ! yes | "") ;; ! no) acx_blas_ok=disable ;; ! -* | */* | *.a | *.so | *.so.* | *.o) BLAS_LIBS="$with_blas" ;; ! *) BLAS_LIBS="-l$with_blas" ;; ! esac ! ! # Get fortran linker names of BLAS functions to check for. ! if $have_fortran_compiler; then ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! case $ac_cv_f77_mangling in ! upper*) ac_val="SGEMM" ;; ! lower*) ac_val="sgemm" ;; ! *) ac_val="unknown" ;; ! esac ! case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac ! ! sgemm="$ac_val" ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! case $ac_cv_f77_mangling in ! upper*) ac_val="DGEMM" ;; ! lower*) ac_val="dgemm" ;; ! *) ac_val="unknown" ;; ! esac ! case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac ! ! dgemm="$ac_val" ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! elif $have_f2c; then ! sgemm=sgemm_ ! dgemm=dgemm_ ! fi ! ! acx_blas_save_LIBS="$LIBS" ! LIBS="$LIBS $FLIBS" ! ! # First, check BLAS_LIBS environment variable ! if test $acx_blas_ok = no; then ! if test "x$BLAS_LIBS" != x; then ! save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" ! { echo "$as_me:$LINENO: checking for $sgemm in $BLAS_LIBS" >&5 ! echo $ECHO_N "checking for $sgemm in $BLAS_LIBS... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $sgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! acx_blas_ok=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! BLAS_LIBS="" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $acx_blas_ok" >&5 ! echo "${ECHO_T}$acx_blas_ok" >&6; } ! LIBS="$save_LIBS" ! fi ! fi ! ! # BLAS linked to by default? (happens on some supercomputers) ! if test $acx_blas_ok = no; then ! save_LIBS="$LIBS"; LIBS="$LIBS" ! as_ac_var=`echo "ac_cv_func_$sgemm" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $sgemm" >&5 ! echo $ECHO_N "checking for $sgemm... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! /* Define $sgemm to an innocuous variant, in case declares $sgemm. ! For example, HP-UX 11i declares gettimeofday. */ ! #define $sgemm innocuous_$sgemm ! ! /* System header to define __stub macros and hopefully few prototypes, ! which can conflict with char $sgemm (); below. ! Prefer to if __STDC__ is defined, since ! exists even on freestanding compilers. */ ! ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! ! #undef $sgemm ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$sgemm || defined __stub___$sgemm ! choke me ! #endif ! ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $sgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_var=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then ! acx_blas_ok=yes ! fi ! ! LIBS="$save_LIBS" ! fi ! ! # BLAS in ATLAS library? (http://math-atlas.sourceforge.net/) ! if test $acx_blas_ok = no; then ! { echo "$as_me:$LINENO: checking for ATL_xerbla in -latlas" >&5 ! echo $ECHO_N "checking for ATL_xerbla in -latlas... $ECHO_C" >&6; } ! if test "${ac_cv_lib_atlas_ATL_xerbla+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-latlas $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char ATL_xerbla (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return ATL_xerbla (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_atlas_ATL_xerbla=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_atlas_ATL_xerbla=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_atlas_ATL_xerbla" >&5 ! echo "${ECHO_T}$ac_cv_lib_atlas_ATL_xerbla" >&6; } ! if test $ac_cv_lib_atlas_ATL_xerbla = yes; then ! as_ac_Lib=`echo "ac_cv_lib_f77blas_$sgemm" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $sgemm in -lf77blas" >&5 ! echo $ECHO_N "checking for $sgemm in -lf77blas... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lf77blas -latlas $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $sgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! { echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5 ! echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6; } ! if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcblas -lf77blas -latlas $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char cblas_dgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return cblas_dgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_cblas_cblas_dgemm=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_cblas_cblas_dgemm=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5 ! echo "${ECHO_T}$ac_cv_lib_cblas_cblas_dgemm" >&6; } ! if test $ac_cv_lib_cblas_cblas_dgemm = yes; then ! acx_blas_ok=yes ! BLAS_LIBS="-lcblas -lf77blas -latlas" ! fi ! ! fi ! ! fi ! ! fi ! ! # BLAS in Apple vecLib framework? (Mac OS X) ! if test $acx_blas_ok = no; then ! vlib_flags="-Wl,-framework -Wl,vecLib" ! save_LIBS="$LIBS"; LIBS="$vlib_flags $LIBS" ! { echo "$as_me:$LINENO: checking for $sgemm in $vlib_flags" >&5 ! echo $ECHO_N "checking for $sgemm in $vlib_flags... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $sgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! acx_blas_ok=yes; BLAS_LIBS="$vlib_flags" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! BLAS_LIBS="" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $acx_blas_ok" >&5 ! echo "${ECHO_T}$acx_blas_ok" >&6; } ! LIBS="$save_LIBS" ! fi ! ! # BLAS in PhiPACK libraries? (requires generic BLAS lib, too) ! if test $acx_blas_ok = no; then ! as_ac_Lib=`echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $sgemm in -lblas" >&5 ! echo $ECHO_N "checking for $sgemm in -lblas... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lblas $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $sgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! as_ac_Lib=`echo "ac_cv_lib_dgemm_$dgemm" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $dgemm in -ldgemm" >&5 ! echo $ECHO_N "checking for $dgemm in -ldgemm... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-ldgemm -lblas $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $dgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $dgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! as_ac_Lib=`echo "ac_cv_lib_sgemm_$sgemm" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $sgemm in -lsgemm" >&5 ! echo $ECHO_N "checking for $sgemm in -lsgemm... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lsgemm -lblas $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $sgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! acx_blas_ok=yes; BLAS_LIBS="-lsgemm -ldgemm -lblas" ! fi ! ! fi ! ! fi ! ! fi ! ! # BLAS in Alpha CXML library? ! if test $acx_blas_ok = no; then ! as_ac_Lib=`echo "ac_cv_lib_cxml_$sgemm" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $sgemm in -lcxml" >&5 ! echo $ECHO_N "checking for $sgemm in -lcxml... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcxml $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $sgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! acx_blas_ok=yes;BLAS_LIBS="-lcxml" ! fi ! ! fi ! ! # BLAS in Alpha DXML library? (now called CXML, see above) ! if test $acx_blas_ok = no; then ! as_ac_Lib=`echo "ac_cv_lib_dxml_$sgemm" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $sgemm in -ldxml" >&5 ! echo $ECHO_N "checking for $sgemm in -ldxml... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-ldxml $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $sgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! acx_blas_ok=yes;BLAS_LIBS="-ldxml" ! fi ! ! fi ! ! # BLAS in Sun Performance library? ! if test $acx_blas_ok = no; then ! if test "x$GCC" != xyes; then # only works with Sun CC ! { echo "$as_me:$LINENO: checking for acosp in -lsunmath" >&5 ! echo $ECHO_N "checking for acosp in -lsunmath... $ECHO_C" >&6; } ! if test "${ac_cv_lib_sunmath_acosp+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lsunmath $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char acosp (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return acosp (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_sunmath_acosp=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_sunmath_acosp=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_sunmath_acosp" >&5 ! echo "${ECHO_T}$ac_cv_lib_sunmath_acosp" >&6; } ! if test $ac_cv_lib_sunmath_acosp = yes; then ! as_ac_Lib=`echo "ac_cv_lib_sunperf_$sgemm" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $sgemm in -lsunperf" >&5 ! echo $ECHO_N "checking for $sgemm in -lsunperf... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lsunperf -lsunmath $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $sgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! BLAS_LIBS="-lsunperf -lsunmath" ! acx_blas_ok=yes ! fi ! ! fi ! ! fi ! fi ! ! # BLAS in SCSL library? (SGI/Cray Scientific Library) ! if test $acx_blas_ok = no; then ! as_ac_Lib=`echo "ac_cv_lib_scs_$sgemm" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $sgemm in -lscs" >&5 ! echo $ECHO_N "checking for $sgemm in -lscs... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lscs $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $sgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! acx_blas_ok=yes; BLAS_LIBS="-lscs" ! fi ! ! fi ! ! # BLAS in SGIMATH library? ! if test $acx_blas_ok = no; then ! as_ac_Lib=`echo "ac_cv_lib_complib.sgimath_$sgemm" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $sgemm in -lcomplib.sgimath" >&5 ! echo $ECHO_N "checking for $sgemm in -lcomplib.sgimath... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcomplib.sgimath $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $sgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! acx_blas_ok=yes; BLAS_LIBS="-lcomplib.sgimath" ! fi ! ! fi ! ! # BLAS in IBM ESSL library? (requires generic BLAS lib, too) ! if test $acx_blas_ok = no; then ! as_ac_Lib=`echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $sgemm in -lblas" >&5 ! echo $ECHO_N "checking for $sgemm in -lblas... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lblas $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $sgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! as_ac_Lib=`echo "ac_cv_lib_essl_$sgemm" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $sgemm in -lessl" >&5 ! echo $ECHO_N "checking for $sgemm in -lessl... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lessl -lblas $FLIBS $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $sgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! acx_blas_ok=yes; BLAS_LIBS="-lessl -lblas" ! fi ! ! fi ! ! fi ! ! # Generic BLAS library? ! if test $acx_blas_ok = no; then ! as_ac_Lib=`echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $sgemm in -lblas" >&5 ! echo $ECHO_N "checking for $sgemm in -lblas... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lblas $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $sgemm (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! acx_blas_ok=yes; BLAS_LIBS="-lblas" ! fi ! ! fi ! ! ! ! LIBS="$acx_blas_save_LIBS" ! ! # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: ! if test x"$acx_blas_ok" = xyes; then ! # disable special action ! : ! else ! acx_blas_ok=no ! ! fi ! ! if test x$acx_blas_ok = xyes ; then ! ! ! ! ! # F77 call-compatibility checks ! if test "$cross_compiling" = yes ; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_BLAS 1 ! _ACEOF ! ! elif test x"$acx_blas_ok" = xyes; then ! save_acx_blas_f77_func_LIBS="$LIBS" ! LIBS="$BLAS_LIBS $LIBS" ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ! # LSAME check (LOGICAL return values) ! { echo "$as_me:$LINENO: checking whether LSAME is called correctly from Fortran" >&5 ! echo $ECHO_N "checking whether LSAME is called correctly from Fortran... $ECHO_C" >&6; } ! if test "$cross_compiling" = yes; then ! { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } ! else ! cat >conftest.$ac_ext <<_ACEOF ! program main ! ! logical lsame,w ! external lsame ! character c1,c2 ! c1 = 'A' ! c2 = 'B' ! w = lsame(c1,c2) ! if (w) stop 1 ! w = lsame(c1,c1) ! if (.not. w) stop 1 ! ! end ! _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! acx_blas_lsame_fcall_ok=yes ! else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! acx_blas_lsame_fcall_ok=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! fi ! ! ! { echo "$as_me:$LINENO: result: $acx_blas_lsame_fcall_ok" >&5 ! echo "${ECHO_T}$acx_blas_lsame_fcall_ok" >&6; } ! # ISAMAX check (INTEGER return values) ! { echo "$as_me:$LINENO: checking whether ISAMAX is called correctly from Fortran" >&5 ! echo $ECHO_N "checking whether ISAMAX is called correctly from Fortran... $ECHO_C" >&6; } ! if test "$cross_compiling" = yes; then ! { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } ! else ! cat >conftest.$ac_ext <<_ACEOF ! program main ! ! integer isamax,i ! external isamax ! real a(2) ! a(1) = 1e0 ! a(2) = -2e0 ! i = isamax(2,a,1) ! if (i.ne.2) stop 1 ! ! end ! _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! acx_blas_isamax_fcall_ok=yes ! else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! acx_blas_isamax_fcall_ok=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! fi ! ! ! { echo "$as_me:$LINENO: result: $acx_blas_isamax_fcall_ok" >&5 ! echo "${ECHO_T}$acx_blas_isamax_fcall_ok" >&6; } ! # SDOT check (REAL return values) ! { echo "$as_me:$LINENO: checking whether SDOT is called correctly from Fortran" >&5 ! echo $ECHO_N "checking whether SDOT is called correctly from Fortran... $ECHO_C" >&6; } ! if test "$cross_compiling" = yes; then ! { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } ! else ! cat >conftest.$ac_ext <<_ACEOF ! program main ! ! real sdot,a(1),b(1),w ! external sdot ! a(1) = 1e0 ! b(1) = 2e0 ! w = sdot(1,a,1,b,1) ! if (w .ne. a(1)*b(1)) stop 1 ! ! end ! _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! acx_blas_sdot_fcall_ok=yes ! else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! acx_blas_sdot_fcall_ok=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! fi ! ! ! { echo "$as_me:$LINENO: result: $acx_blas_sdot_fcall_ok" >&5 ! echo "${ECHO_T}$acx_blas_sdot_fcall_ok" >&6; } ! # DDOT check (DOUBLE return values) ! { echo "$as_me:$LINENO: checking whether DDOT is called correctly from Fortran" >&5 ! echo $ECHO_N "checking whether DDOT is called correctly from Fortran... $ECHO_C" >&6; } ! if test "$cross_compiling" = yes; then ! { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } ! else ! cat >conftest.$ac_ext <<_ACEOF ! program main ! ! double precision ddot,a(1),b(1),w ! external ddot ! a(1) = 1d0 ! b(1) = 2d0 ! w = ddot(1,a,1,b,1) ! if (w .ne. a(1)*b(1)) stop 1 ! ! end ! _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! acx_blas_ddot_fcall_ok=yes ! else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! acx_blas_ddot_fcall_ok=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! fi ! ! ! { echo "$as_me:$LINENO: result: $acx_blas_ddot_fcall_ok" >&5 ! echo "${ECHO_T}$acx_blas_ddot_fcall_ok" >&6; } ! # CDOTU check (COMPLEX return values) ! { echo "$as_me:$LINENO: checking whether CDOTU is called correctly from Fortran" >&5 ! echo $ECHO_N "checking whether CDOTU is called correctly from Fortran... $ECHO_C" >&6; } ! if test "$cross_compiling" = yes; then ! { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } ! else ! cat >conftest.$ac_ext <<_ACEOF ! program main ! ! complex cdotu,a(1),b(1),w ! external cdotu ! a(1) = cmplx(1e0,1e0) ! b(1) = cmplx(1e0,2e0) ! w = cdotu(1,a,1,b,1) ! if (w .ne. a(1)*b(1)) stop 1 ! ! end ! _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! acx_blas_cdotu_fcall_ok=yes ! else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! acx_blas_cdotu_fcall_ok=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! fi ! ! ! { echo "$as_me:$LINENO: result: $acx_blas_cdotu_fcall_ok" >&5 ! echo "${ECHO_T}$acx_blas_cdotu_fcall_ok" >&6; } ! # ZDOTU check (DOUBLE COMPLEX return values) ! { echo "$as_me:$LINENO: checking whether ZDOTU is called correctly from Fortran" >&5 ! echo $ECHO_N "checking whether ZDOTU is called correctly from Fortran... $ECHO_C" >&6; } ! if test "$cross_compiling" = yes; then ! { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } ! else ! cat >conftest.$ac_ext <<_ACEOF ! program main ! ! double complex zdotu,a(1),b(1),w ! external zdotu ! a(1) = dcmplx(1d0,1d0) ! b(1) = dcmplx(1d0,2d0) ! w = zdotu(1,a,1,b,1) ! if (w .ne. a(1)*b(1)) stop 1 ! ! end ! _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! acx_blas_zdotu_fcall_ok=yes ! else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! acx_blas_zdotu_fcall_ok=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! fi ! ! ! { echo "$as_me:$LINENO: result: $acx_blas_zdotu_fcall_ok" >&5 ! echo "${ECHO_T}$acx_blas_zdotu_fcall_ok" >&6; } ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! # if any of the tests failed, reject the BLAS library ! if test $acx_blas_lsame_fcall_ok = yes \ ! -a $acx_blas_sdot_fcall_ok = yes \ ! -a $acx_blas_ddot_fcall_ok = yes \ ! -a $acx_blas_cdotu_fcall_ok = yes \ ! -a $acx_blas_zdotu_fcall_ok = yes ; then ! acx_blas_f77_func_ok=yes; ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_BLAS 1 ! _ACEOF ! ! else ! acx_blas_f77_func_ok=no; ! acx_blas_ok=no; BLAS_LIBS= ! fi ! LIBS="$save_acx_blas_f77_func_LIBS" ! fi ! ! ! fi ! if test x$acx_blas_ok = xno ; then ! BLAS_DIR="blas" ! fi ! ! ! ! acx_lapack_ok=no ! ! ! # Check whether --with-lapack was given. ! if test "${with_lapack+set}" = set; then ! withval=$with_lapack; ! fi ! ! case $with_lapack in ! yes | "") ;; ! no) acx_lapack_ok=disable ;; ! -* | */* | *.a | *.so | *.so.* | *.o) LAPACK_LIBS="$with_lapack" ;; ! *) LAPACK_LIBS="-l$with_lapack" ;; ! esac ! ! # Get fortran linker name of LAPACK function to check for. ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! case $ac_cv_f77_mangling in ! upper*) ac_val="CHEEV" ;; ! lower*) ac_val="cheev" ;; ! *) ac_val="unknown" ;; ! esac ! case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac ! ! cheev="$ac_val" ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! # We cannot use LAPACK if BLAS is not found ! if test "x$acx_blas_ok" != xyes; then ! acx_lapack_ok=noblas ! LAPACK_LIBS="" ! fi ! ! # First, check LAPACK_LIBS environment variable ! if test "x$LAPACK_LIBS" != x; then ! save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS" ! { echo "$as_me:$LINENO: checking for $cheev in $LAPACK_LIBS" >&5 ! echo $ECHO_N "checking for $cheev in $LAPACK_LIBS... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $cheev (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $cheev (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! acx_lapack_ok=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! LAPACK_LIBS="" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $acx_lapack_ok" >&5 ! echo "${ECHO_T}$acx_lapack_ok" >&6; } ! LIBS="$save_LIBS" ! if test $acx_lapack_ok = no; then ! LAPACK_LIBS="" ! fi ! fi ! ! # LAPACK linked to by default? (is sometimes included in BLAS lib) ! if test $acx_lapack_ok = no; then ! save_LIBS="$LIBS"; LIBS="$LIBS $BLAS_LIBS $FLIBS" ! as_ac_var=`echo "ac_cv_func_$cheev" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $cheev" >&5 ! echo $ECHO_N "checking for $cheev... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! /* Define $cheev to an innocuous variant, in case declares $cheev. ! For example, HP-UX 11i declares gettimeofday. */ ! #define $cheev innocuous_$cheev ! ! /* System header to define __stub macros and hopefully few prototypes, ! which can conflict with char $cheev (); below. ! Prefer to if __STDC__ is defined, since ! exists even on freestanding compilers. */ ! ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! ! #undef $cheev ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $cheev (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$cheev || defined __stub___$cheev ! choke me ! #endif ! ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $cheev (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_var=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then ! acx_lapack_ok=yes ! fi ! ! LIBS="$save_LIBS" ! fi ! ! # Generic LAPACK library? ! for lapack in lapack lapack_rs6k; do ! if test $acx_lapack_ok = no; then ! save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" ! as_ac_Lib=`echo "ac_cv_lib_$lapack''_$cheev" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $cheev in -l$lapack" >&5 ! echo $ECHO_N "checking for $cheev in -l$lapack... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-l$lapack $FLIBS $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $cheev (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $cheev (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! acx_lapack_ok=yes; LAPACK_LIBS="-l$lapack" ! fi ! ! LIBS="$save_LIBS" ! fi ! done ! ! ! ! # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: ! if test x"$acx_lapack_ok" = xyes; then ! BLAS_LIBS="$LAPACK_LIBS $BLAS_LIBS" ! : ! else ! acx_lapack_ok=no ! LAPACK_DIR="lapack" ! fi ! ! ! ! ! if test "x$acx_blas_f77_func_ok" = "xno"; then ! warn_blas_f77_incompatible="A BLAS library was detected but found incompatible with your Fortran 77 compiler. The reference BLAS implementation will be used. To improve performance, consider using a different Fortran compiler or a switch like -ff2c to make your Fortran compiler use a calling convention compatible with the way your BLAS library was compiled, or use a different BLAS library." ! { echo "$as_me:$LINENO: WARNING: $warn_blas_f77_incompatible" >&5 ! echo "$as_me: WARNING: $warn_blas_f77_incompatible" >&2;} ! fi ! ! QRUPDATE_LIBS= ! ! ! # Check for the qrupdate library ! ! # Check whether --with-qrupdate was given. ! if test "${with_qrupdate+set}" = set; then ! withval=$with_qrupdate; with_qrupdate=$withval ! else ! with_qrupdate=yes ! fi ! ! ! warn_qrupdate="qrupdate not found. The QR & Cholesky updating functions will be slow." ! if test "$with_qrupdate" = yes; then ! with_qrupdate=no ! if $have_fortran_compiler; then ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! case $ac_cv_f77_mangling in ! upper*) ac_val="SQR1UP" ;; ! lower*) ac_val="sqr1up" ;; ! *) ac_val="unknown" ;; ! esac ! case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac ! ! sqr1up="$ac_val" ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! elif $have_f2c; then ! sqr1up=sqr1up_ ! fi ! as_ac_Lib=`echo "ac_cv_lib_qrupdate_$sqr1up" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $sqr1up in -lqrupdate" >&5 ! echo $ECHO_N "checking for $sqr1up in -lqrupdate... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lqrupdate $BLAS_LIBS $FLIBS $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sqr1up (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $sqr1up (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_Lib=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then ! QRUPDATE_LIBS="-lqrupdate"; with_qrupdate=yes ! fi ! ! if test "$with_qrupdate" = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_QRUPDATE 1 ! _ACEOF ! ! warn_qrupdate= ! fi ! fi ! if test -n "$warn_qrupdate"; then ! { echo "$as_me:$LINENO: WARNING: $warn_qrupdate" >&5 ! echo "$as_me: WARNING: $warn_qrupdate" >&2;} ! fi ! ! # Check for AMD library ! AMD_LIBS= ! ! ! ! # Check whether --with-amd was given. ! if test "${with_amd+set}" = set; then ! withval=$with_amd; with_amd=$withval ! else ! with_amd=yes ! fi ! ! ! warn_amd="AMD not found. This will result in some lack of functionality for sparse matrices." ! if test "$with_amd" = yes; then ! with_amd=no ! ! ! ! ! for ac_header in suitesparse/amd.h ufsparse/amd.h amd/amd.h amd.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no ! fi ! ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! ! { echo "$as_me:$LINENO: checking for amd_postorder in -lamd" >&5 ! echo $ECHO_N "checking for amd_postorder in -lamd... $ECHO_C" >&6; } ! if test "${ac_cv_lib_amd_amd_postorder+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lamd $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char amd_postorder (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return amd_postorder (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_amd_amd_postorder=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_amd_amd_postorder=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_amd_amd_postorder" >&5 ! echo "${ECHO_T}$ac_cv_lib_amd_amd_postorder" >&6; } ! if test $ac_cv_lib_amd_amd_postorder = yes; then ! AMD_LIBS="-lamd"; with_amd=yes ! fi ! ! if test "$with_amd" = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_AMD 1 ! _ACEOF ! ! warn_amd= ! fi ! break ! fi ! ! done ! ! fi ! if test -n "$warn_amd"; then ! { echo "$as_me:$LINENO: WARNING: $warn_amd" >&5 ! echo "$as_me: WARNING: $warn_amd" >&2;} ! fi ! ! # Check for CAMD library ! CAMD_LIBS= ! ! { echo "$as_me:$LINENO: checking for camd_postorder in -lcamd" >&5 ! echo $ECHO_N "checking for camd_postorder in -lcamd... $ECHO_C" >&6; } ! if test "${ac_cv_lib_camd_camd_postorder+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcamd $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char camd_postorder (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return camd_postorder (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_camd_camd_postorder=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_camd_camd_postorder=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_camd_camd_postorder" >&5 ! echo "${ECHO_T}$ac_cv_lib_camd_camd_postorder" >&6; } ! if test $ac_cv_lib_camd_camd_postorder = yes; then ! CAMD_LIBS="-lcamd"; with_camd=yes ! else ! with_camd=no ! fi ! ! ! # Check for UMFPACK library. ! ! UMFPACK_LIBS= ! ! ! ! # Check whether --with-umfpack was given. ! if test "${with_umfpack+set}" = set; then ! withval=$with_umfpack; with_umfpack=$withval ! else ! with_umfpack=yes ! fi ! ! ! warn_umfpack="UMFPACK not found. This will result in some lack of functionality for sparse matrices." ! if test "$with_umfpack" = yes && test "$with_amd" = yes; then ! with_umfpack=no ! ! ! ! ! for ac_header in suitesparse/umfpack.h ufsparse/umfpack.h umfpack/umfpack.h umfpack.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no ! fi ! ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! ! { echo "$as_me:$LINENO: checking for umfpack_zi_get_determinant in -lumfpack" >&5 ! echo $ECHO_N "checking for umfpack_zi_get_determinant in -lumfpack... $ECHO_C" >&6; } ! if test "${ac_cv_lib_umfpack_umfpack_zi_get_determinant+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lumfpack $AMD_LIBS $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char umfpack_zi_get_determinant (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return umfpack_zi_get_determinant (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_umfpack_umfpack_zi_get_determinant=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_umfpack_umfpack_zi_get_determinant=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_umfpack_umfpack_zi_get_determinant" >&5 ! echo "${ECHO_T}$ac_cv_lib_umfpack_umfpack_zi_get_determinant" >&6; } ! if test $ac_cv_lib_umfpack_umfpack_zi_get_determinant = yes; then ! ! UMFPACK_LIBS="-lumfpack"; with_umfpack=yes ! else ! ! ## Invalidate the cache. ! $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant ! { echo "$as_me:$LINENO: checking for umfpack_zi_get_determinant in -lumfpack" >&5 ! echo $ECHO_N "checking for umfpack_zi_get_determinant in -lumfpack... $ECHO_C" >&6; } ! if test "${ac_cv_lib_umfpack_umfpack_zi_get_determinant+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lumfpack $AMD_LIBS $BLAS_LIBS $FLIBS $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char umfpack_zi_get_determinant (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return umfpack_zi_get_determinant (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_umfpack_umfpack_zi_get_determinant=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_umfpack_umfpack_zi_get_determinant=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_umfpack_umfpack_zi_get_determinant" >&5 ! echo "${ECHO_T}$ac_cv_lib_umfpack_umfpack_zi_get_determinant" >&6; } ! if test $ac_cv_lib_umfpack_umfpack_zi_get_determinant = yes; then ! ! UMFPACK_LIBS="-lumfpack"; with_umfpack=yes ! else ! ! ! ## Invalidate the cache. ! $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant ! { echo "$as_me:$LINENO: checking for umfpack_zi_get_determinant in -lumfpack" >&5 ! echo $ECHO_N "checking for umfpack_zi_get_determinant in -lumfpack... $ECHO_C" >&6; } ! if test "${ac_cv_lib_umfpack_umfpack_zi_get_determinant+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lumfpack $AMD_LIBS -lcblas $BLAS_LIBS $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char umfpack_zi_get_determinant (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return umfpack_zi_get_determinant (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_umfpack_umfpack_zi_get_determinant=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_umfpack_umfpack_zi_get_determinant=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_umfpack_umfpack_zi_get_determinant" >&5 ! echo "${ECHO_T}$ac_cv_lib_umfpack_umfpack_zi_get_determinant" >&6; } ! if test $ac_cv_lib_umfpack_umfpack_zi_get_determinant = yes; then ! ! UMFPACK_LIBS="-lumfpack -lcblas"; with_umfpack=yes ! fi ! ! fi ! ! fi ! ! ! if test "$with_umfpack" = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_UMFPACK 1 ! _ACEOF ! ! OLD_LIBS=$LIBS ! LIBS="$LIBS $UMFPACK_LIBS $AMD_LIBS $BLAS_LIBS $FLIBS" ! { echo "$as_me:$LINENO: checking for UMFPACK seperate complex matrix and rhs split" >&5 ! echo $ECHO_N "checking for UMFPACK seperate complex matrix and rhs split... $ECHO_C" >&6; } ! if test "${octave_cv_umfpack_seperate_split+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test "$cross_compiling" = yes; then ! octave_cv_umfpack_seperate_split=no ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! #include ! #if defined (HAVE_UFSPARSE_UMFPACK_h) ! #include ! #elif defined (HAVE_UMFPACK_UMFPACK_H) ! #include ! #elif defined (HAVE_UMFPACK_H) ! #include ! #endif ! int n = 5; ! int Ap[] = {0, 2, 5, 9, 10, 12}; ! int Ai[] = {0, 1, 0, 2, 4, 1, 2, 3, 4, 2, 1, 4}; ! double Ax[] = {2., 0., 3., 0., 3., 0., -1., 0., 4., 0., 4., 0., ! -3., 0., 1., 0., 2., 0., 2., 0., 6., 0., 1., 0.}; ! double br[] = {8., 45., -3., 3., 19.}; ! double bi[] = {0., 0., 0., 0., 0.}; ! int main (void) ! { ! double *null = (double *) NULL ; ! double *x = (double *)malloc (2 * n * sizeof(double)); ! int i ; ! void *Symbolic, *Numeric ; ! (void) umfpack_zi_symbolic (n, n, Ap, Ai, Ax, null, &Symbolic, null, null) ; ! (void) umfpack_zi_numeric (Ap, Ai, Ax, null, Symbolic, &Numeric, null, null) ; ! umfpack_zi_free_symbolic (&Symbolic) ; ! (void) umfpack_zi_solve (0, Ap, Ai, Ax, null, x, null, br, bi, ! Numeric, null, null) ; ! umfpack_zi_free_numeric (&Numeric) ; ! for (i = 0; i < n; i++, x+=2) ! if (fabs(*x - i - 1.) > 1.e-13) ! return (1); ! return (0) ; ! } ! ! _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! octave_cv_umfpack_seperate_split=yes ! else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! octave_cv_umfpack_seperate_split=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! fi ! ! ! fi ! ! if test "$cross_compiling" = yes; then ! { echo "$as_me:$LINENO: result: $octave_cv_umfpack_seperate_split assumed for cross compilation" >&5 ! echo "${ECHO_T}$octave_cv_umfpack_seperate_split assumed for cross compilation" >&6; } ! else ! { echo "$as_me:$LINENO: result: $octave_cv_umfpack_seperate_split" >&5 ! echo "${ECHO_T}$octave_cv_umfpack_seperate_split" >&6; } ! fi ! if test "$octave_cv_umfpack_seperate_split" = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define UMFPACK_SEPARATE_SPLIT 1 ! _ACEOF ! ! fi ! ! LIBS=$OLD_LIBS ! TEXINFO_UMFPACK="@set HAVE_UMFPACK" ! warn_umfpack= ! fi ! break ! fi ! ! done ! ! fi ! if test -n "$warn_umfpack"; then ! { echo "$as_me:$LINENO: WARNING: $warn_umfpack" >&5 ! echo "$as_me: WARNING: $warn_umfpack" >&2;} ! fi ! ! ! ! COLAMD_LIBS= ! ! ! ! # Check whether --with-colamd was given. ! if test "${with_colamd+set}" = set; then ! withval=$with_colamd; with_colamd=$withval ! else ! with_colamd=yes ! fi ! ! ! warn_colamd="COLAMD not found. This will result in some lack of functionality for sparse matrices." ! if test "$with_colamd" = yes; then ! with_colamd=no ! ! ! ! ! for ac_header in suitesparse/colamd.h ufsparse/colamd.h colamd/colamd.h colamd.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no ! fi ! ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! ! { echo "$as_me:$LINENO: checking for colamd in -lcolamd" >&5 ! echo $ECHO_N "checking for colamd in -lcolamd... $ECHO_C" >&6; } ! if test "${ac_cv_lib_colamd_colamd+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcolamd $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char colamd (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return colamd (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_colamd_colamd=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_colamd_colamd=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_colamd_colamd" >&5 ! echo "${ECHO_T}$ac_cv_lib_colamd_colamd" >&6; } ! if test $ac_cv_lib_colamd_colamd = yes; then ! COLAMD_LIBS="-lcolamd"; with_colamd=yes ! fi ! ! if test "$with_colamd" = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_COLAMD 1 ! _ACEOF ! ! TEXINFO_COLAMD="@set HAVE_COLAMD" ! warn_colamd= ! fi ! break ! fi ! ! done ! ! fi ! if test -n "$warn_colamd"; then ! { echo "$as_me:$LINENO: WARNING: $warn_colamd" >&5 ! echo "$as_me: WARNING: $warn_colamd" >&2;} ! fi ! ! ! ! CCOLAMD_LIBS= ! ! ! ! # Check whether --with-ccolamd was given. ! if test "${with_ccolamd+set}" = set; then ! withval=$with_ccolamd; with_ccolamd=$withval ! else ! with_ccolamd=yes ! fi ! ! ! warn_ccolamd="CCOLAMD not found. This will result in some lack of functionality for sparse matrices." ! if test "$with_ccolamd" = yes; then ! with_ccolamd=no ! ! ! ! ! for ac_header in suitesparse/ccolamd.h ufsparse/ccolamd.h ccolamd/ccolamd.h ccolamd.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no ! fi ! ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! ! { echo "$as_me:$LINENO: checking for ccolamd in -lccolamd" >&5 ! echo $ECHO_N "checking for ccolamd in -lccolamd... $ECHO_C" >&6; } ! if test "${ac_cv_lib_ccolamd_ccolamd+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lccolamd $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char ccolamd (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return ccolamd (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_ccolamd_ccolamd=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_ccolamd_ccolamd=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_ccolamd_ccolamd" >&5 ! echo "${ECHO_T}$ac_cv_lib_ccolamd_ccolamd" >&6; } ! if test $ac_cv_lib_ccolamd_ccolamd = yes; then ! CCOLAMD_LIBS="-lccolamd"; with_ccolamd=yes ! fi ! ! if test "$with_ccolamd" = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_CCOLAMD 1 ! _ACEOF ! ! warn_ccolamd= ! fi ! break ! fi ! ! done ! ! fi ! if test -n "$warn_ccolamd"; then ! { echo "$as_me:$LINENO: WARNING: $warn_ccolamd" >&5 ! echo "$as_me: WARNING: $warn_ccolamd" >&2;} ! fi ! ! CHOLMOD_LIBS= ! ! ! ! # Check whether --with-cholmod was given. ! if test "${with_cholmod+set}" = set; then ! withval=$with_cholmod; with_cholmod=$withval ! else ! with_cholmod=yes ! fi ! ! ! warn_cholmod="CHOLMOD not found. This will result in some lack of functionality for sparse matrices." ! if test "$with_cholmod" = yes && test "$with_colamd" = yes && ! test "$with_ccolamd" = yes && test "$with_amd" = yes; then ! with_cholmod=no ! ! ! ! ! for ac_header in suitesparse/cholmod.h ufsparse/cholmod.h cholmod/cholmod.h cholmod.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no ! fi ! ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! ! { echo "$as_me:$LINENO: checking for cholmod_start in -lcholmod" >&5 ! echo $ECHO_N "checking for cholmod_start in -lcholmod... $ECHO_C" >&6; } ! if test "${ac_cv_lib_cholmod_cholmod_start+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcholmod $CAMD_LIBS $AMD_LIBS $COLAMD_LIBS $CCOLAMD_LIBS $BLAS_LIBS $FLIBS $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char cholmod_start (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return cholmod_start (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_cholmod_cholmod_start=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_cholmod_cholmod_start=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_cholmod_cholmod_start" >&5 ! echo "${ECHO_T}$ac_cv_lib_cholmod_cholmod_start" >&6; } ! if test $ac_cv_lib_cholmod_cholmod_start = yes; then ! CHOLMOD_LIBS="-lcholmod"; ! with_cholmod=yes ! else ! ! { echo "$as_me:$LINENO: checking for cholmod_start in -lcholmod" >&5 ! echo $ECHO_N "checking for cholmod_start in -lcholmod... $ECHO_C" >&6; } ! if test "${ac_cv_lib_cholmod_cholmod_start+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcholmod $CAMD_LIBS $AMD_LIBS $COLAMD_LIBS $CCOLAMD_LIBS $BLAS_LIBS $FLIBS $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char cholmod_start (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return cholmod_start (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_cholmod_cholmod_start=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_cholmod_cholmod_start=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_cholmod_cholmod_start" >&5 ! echo "${ECHO_T}$ac_cv_lib_cholmod_cholmod_start" >&6; } ! if test $ac_cv_lib_cholmod_cholmod_start = yes; then ! CHOLMOD_LIBS="-lcholmod -cblas"; ! with_cholmod=yes ! fi ! ! fi ! ! ! if test "$with_cholmod" = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_CHOLMOD 1 ! _ACEOF ! ! TEXINFO_CHOLMOD="@set HAVE_CHOLMOD" ! warn_cholmod= ! fi ! break ! fi ! ! done ! ! fi ! if test -n "$warn_cholmod"; then ! { echo "$as_me:$LINENO: WARNING: $warn_cholmod" >&5 ! echo "$as_me: WARNING: $warn_cholmod" >&2;} ! fi ! ! ! ! CXSPARSE_LIBS= ! ! ! ! # Check whether --with-cxsparse was given. ! if test "${with_cxsparse+set}" = set; then ! withval=$with_cxsparse; with_cxsparse=$withval ! else ! with_cxsparse=yes ! fi ! ! ! warn_cxsparse="CXSparse not found. This will result in some lack of functionality for sparse matrices." ! if test "$with_cxsparse" = yes; then ! with_cxsparse=no ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! ! ! ! ! for ac_header in suitesparse/cs.h ufsparse/cs.h cxsparse/cs.h cs.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no ! fi ! ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! ! { echo "$as_me:$LINENO: checking for cs_di_sqr in -lcxsparse" >&5 ! echo $ECHO_N "checking for cs_di_sqr in -lcxsparse... $ECHO_C" >&6; } ! if test "${ac_cv_lib_cxsparse_cs_di_sqr+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcxsparse $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char cs_di_sqr (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return cs_di_sqr (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_cxsparse_cs_di_sqr=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_cxsparse_cs_di_sqr=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_cxsparse_cs_di_sqr" >&5 ! echo "${ECHO_T}$ac_cv_lib_cxsparse_cs_di_sqr" >&6; } ! if test $ac_cv_lib_cxsparse_cs_di_sqr = yes; then ! CXSPARSE_LIBS="-lcxsparse"; with_cxsparse=yes ! fi ! ! if test "$with_cxsparse" = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_CXSPARSE 1 ! _ACEOF ! ! warn_cxsparse= ! fi ! break ! fi ! ! done ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! fi ! if test -n "$warn_cxsparse"; then ! { echo "$as_me:$LINENO: WARNING: $warn_cxsparse" >&5 ! echo "$as_me: WARNING: $warn_cxsparse" >&2;} ! fi ! ! ARPACK_LIBS= ! ! ! ! # Check whether --with-arpack was given. ! if test "${with_arpack+set}" = set; then ! withval=$with_arpack; with_arpack=$withval ! else ! with_arpack=yes ! fi ! ! ! warn_arpack="arpack not found. This will result in a lack of the eigs function." ! if test "$with_arpack" = yes; then ! with_arpack=no ! { echo "$as_me:$LINENO: checking for F77_FUNC(dseupd,DSEUPD) in -larpack" >&5 ! echo $ECHO_N "checking for F77_FUNC(dseupd,DSEUPD) in -larpack... $ECHO_C" >&6; } ! if test "${ac_cv_lib_arpack_F77_FUNC_dseupd_DSEUPD_+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-larpack $LAPACK_LIBS $FLIBS $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char F77_FUNC(dseupd,DSEUPD) (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return F77_FUNC(dseupd,DSEUPD) (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_arpack_F77_FUNC_dseupd_DSEUPD_=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_arpack_F77_FUNC_dseupd_DSEUPD_=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_arpack_F77_FUNC_dseupd_DSEUPD_" >&5 ! echo "${ECHO_T}$ac_cv_lib_arpack_F77_FUNC_dseupd_DSEUPD_" >&6; } ! if test $ac_cv_lib_arpack_F77_FUNC_dseupd_DSEUPD_ = yes; then ! ARPACK_LIBS="-larpack"; with_arpack=yes ! fi ! ! if test "$with_arpack" = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_ARPACK 1 ! _ACEOF ! ! warn_arpack= ! fi ! fi ! if test -n "$warn_arpack"; then ! { echo "$as_me:$LINENO: WARNING: $warn_arpack" >&5 ! echo "$as_me: WARNING: $warn_arpack" >&2;} ! fi ! ! ### Handle shared library options. ! ! ### Enable creation of static libraries. ! ! # Check whether --enable-static was given. ! if test "${enable_static+set}" = set; then ! enableval=$enable_static; if test "$enableval" = no; then STATIC_LIBS=false; ! else STATIC_LIBS=true; fi ! else ! STATIC_LIBS=false ! fi ! ! ! ! ### Enable creation of shared libraries. Currently only works with ! ### gcc on some systems. ! ! # Check whether --enable-shared was given. ! if test "${enable_shared+set}" = set; then ! enableval=$enable_shared; if test "$enableval" = no; then SHARED_LIBS=false; ! else SHARED_LIBS=true; fi ! else ! SHARED_LIBS=true ! fi ! ! ! ! ### Enable dynamic linking. --enable-shared implies this, so ! ### --enable-dl is only need if you are only building static libraries ! ### and want to try dynamic linking too (works on some systems, for ! ### example, OS X and Windows). ! ! # Check whether --enable-dl was given. ! if test "${enable_dl+set}" = set; then ! enableval=$enable_dl; if test "$enableval" = no; then ENABLE_DYNAMIC_LINKING=false; ! else ENABLE_DYNAMIC_LINKING=true; fi ! else ! ENABLE_DYNAMIC_LINKING=true ! fi ! ! ! if $STATIC_LIBS || $SHARED_LIBS; then ! true ! else ! { { echo "$as_me:$LINENO: error: You can't disable building static AND shared libraries!" >&5 ! echo "$as_me: error: You can't disable building static AND shared libraries!" >&2;} ! { (exit 1); exit 1; }; } ! fi ! ! # Check whether --enable-rpath was given. ! if test "${enable_rpath+set}" = set; then ! enableval=$enable_rpath; if test "$enableval" = no; then use_rpath=false; ! else ! use_rpath=true ! if test "$enableval" = yes; then true; ! else enable_rpath_arg="$enableval"; fi ! fi ! else ! use_rpath=true ! fi ! ! ! CPICFLAG=-fPIC ! CXXPICFLAG=-fPIC ! FPICFLAG=-fPIC ! SHLEXT=so ! SHLLIB='$(SHLEXT)' ! SHLBIN= ! SHLEXT_VER='$(SHLEXT).$(version)' ! SHLLIB_VER='$(SHLLIB).$(version)' ! SHLBIN_VER='$(SHLBIN).$(version)' ! SHLLINKEXT= ! LIBPRE=lib ! SHLPRE=lib ! SHLLIBPRE=lib ! SHLBINPRE=lib ! SH_LD='$(CXX)' ! SH_LDFLAGS=-shared ! DL_LD='$(SH_LD)' ! DL_LDFLAGS='$(SH_LDFLAGS)' ! MKOCTFILE_DL_LDFLAGS='$(DL_LDFLAGS)' ! SONAME_FLAGS= ! RLD_FLAG= ! NO_OCT_FILE_STRIP=false ! TEMPLATE_AR='$(AR)' ! TEMPLATE_ARFLAGS="$ARFLAGS" ! CRUFT_DLL_DEFS= ! OCTAVE_DLL_DEFS= ! OCTINTERP_DLL_DEFS= ! OCTGRAPHICS_DLL_DEFS= ! library_path_var=LD_LIBRARY_PATH ! SCRIPTS_EXE_SUFFIX= ! case "$canonical_host_type" in ! *-*-386bsd* | *-*-netbsd*) ! SH_LD=ld ! SH_LDFLAGS=-Bshareable ! ;; ! *-*-openbsd*) ! SH_LDFLAGS='-shared -fPIC' ! ;; ! *-*-freebsd*) ! SH_LDFLAGS="-shared -Wl,-x" ! RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)' ! ;; ! alpha*-dec-osf*) ! CPICFLAG= ! CXXPICFLAG= ! FPICFLAG= ! SH_LDFLAGS="-shared -Wl,-expect_unresolved -Wl,'*'" ! RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)' ! ;; ! *-*-darwin*) ! DL_LDFLAGS='-bundle -bundle_loader $(TOPDIR)/src/octave $(LDFLAGS)' ! MKOCTFILE_DL_LDFLAGS='-bundle -bundle_loader $$BINDIR/octave-$$OCTAVE_VERSION$$EXEEXT' ! SH_LDFLAGS='-dynamiclib -single_module $(LDFLAGS)' ! case "$canonical_host_type" in ! powerpc-*) ! CXXPICFLAG= ! CPICFLAG= ! FPICFLAG= ! ;; ! esac ! SHLEXT=dylib ! SHLLIB='$(SHLEXT)' ! SHLEXT_VER='$(version).$(SHLEXT)' ! SHLLIB_VER='$(version).$(SHLLIB)' ! NO_OCT_FILE_STRIP=true ! SONAME_FLAGS='-install_name $(octlibdir)/$@' ! library_path_var=DYLD_LIBRARY_PATH ! ;; ! *-*-cygwin*) ! CPICFLAG= ! CXXPICFLAG= ! FPICFLAG= ! LIBPRE=lib ! SHLPRE=cyg ! SHLBINPRE=cyg ! SHLEXT=dll ! SHLLIB=dll.a ! SHLBIN=dll ! DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc" ! SH_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-auto-image-base" ! SONAME_FLAGS='-Wl,--out-implib=$(patsubst $(SHLPRE)%,$(LIBPRE)%,$@).a' ! ;; ! *-*-mingw*) ! CPICFLAG= ! CXXPICFLAG= ! FPICFLAG= ! SHLEXT=dll ! SHLLIB=dll.a ! SHLBIN=dll ! DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc" ! SH_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-auto-image-base" ! SONAME_FLAGS='-Wl,--out-implib=$@.a' ! library_path_var=PATH ! SCRIPTS_EXE_SUFFIX='$(EXEEXT)' ! ;; ! ! *-*-msdosmsvc) ! DL_LDFLAGS="-shared" ! CPICFLAG= ! CXXPICFLAG= ! FPICFLAG= ! SHLEXT=dll ! SHLLIB=lib ! SHLBIN=dll ! LIBPRE= ! SHLPRE= ! SHLLIBPRE= ! SHLBINPRE= ! SH_LDFLAGS="-shared" ! if test -n "`echo $CFLAGS | grep -e '-g'`" -o -n "`echo $CXXFLAGS | grep -e '-g'`"; then ! DL_LDFLAGS="$DL_LDFLAGS -g" ! SH_LDFLAGS="$SH_LDFLAGS -g" ! fi ! NO_OCT_FILE_STRIP=true ! library_path_var=PATH ! NO_OCT_FILE_STRIP=true ! ## Extra compilation flags. ! CRUFT_DLL_DEFS="-DCRUFT_DLL" ! OCTAVE_DLL_DEFS="-DOCTAVE_DLL" ! OCTINTERP_DLL_DEFS="-DOCTINTERP_DLL" ! OCTGRAPHICS_DLL_DEFS="-DOCTGRAPHICS_DLL" ! SCRIPTS_EXE_SUFFIX='$(EXEEXT)' ! ;; ! *-*-linux* | *-*-gnu*) ! MKOCTFILE_DL_LDFLAGS="-shared -Wl,-Bsymbolic" ! SONAME_FLAGS='-Wl,-soname -Wl,$@' ! RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)' ! ;; ! i[3456]86-*-sco3.2v5*) ! SONAME_FLAGS='-Wl,-h -Wl,$@' ! RLD_FLAG= ! SH_LDFLAGS=-G ! ;; ! rs6000-ibm-aix* | powerpc-ibm-aix*) ! CPICFLAG= ! CXXPICFLAG= ! FPICFLAG= ! library_path_var=LIBPATH ! ;; ! hppa*-hp-hpux*) ! if test "$ac_cv_f77_compiler_gnu" = yes; then ! FPICFLAG=-fPIC ! else ! FPICFLAG=+Z ! fi ! SHLEXT=sl ! SH_LDFLAGS="-shared -fPIC" ! RLD_FLAG='-Wl,+b -Wl,$(octlibdir)' ! library_path_var=SHLIB_PATH ! ;; ! ia64*-hp-hpux*) ! if test "$ac_cv_f77_compiler_gnu" = yes; then ! FPICFLAG=-fPIC ! else ! FPICFLAG=+Z ! fi ! SH_LDFLAGS="-shared -fPIC" ! RLD_FLAG='-Wl,+b -Wl,$(octlibdir)' ! ;; ! *-sgi-*) ! CPICFLAG= ! CXXPICFLAG= ! FPICFLAG= ! RLD_FLAG='-rpath $(octlibdir)' ! ;; ! sparc-sun-sunos4*) ! if test "$ac_cv_f77_compiler_gnu" = yes; then ! FPICFLAG=-fPIC ! else ! FPICFLAG=-PIC ! fi ! SH_LD=ld ! SH_LDFLAGS="-assert nodefinitions" ! RLD_FLAG='-L$(octlibdir)' ! ;; ! sparc-sun-solaris2* | i386-pc-solaris2*) ! if test "$ac_cv_f77_compiler_gnu" = yes; then ! FPICFLAG=-fPIC ! else ! FPICFLAG=-KPIC ! fi ! if test "$GCC" = yes; then ! CPICFLAG=-fPIC ! else ! CPICFLAG=-KPIC ! fi ! if test "$GXX" = yes; then ! CXXPICFLAG=-fPIC ! SH_LDFLAGS=-shared ! else ! CXXPICFLAG=-KPIC ! SH_LDFLAGS=-G ! fi ! RLD_FLAG='-R $(octlibdir)' ! ## Template closures in archive libraries need a different mechanism. ! if test "$GXX" = yes; then ! true ! else ! TEMPLATE_AR='$(CXX)' ! TEMPLATE_ARFLAGS="-xar -o" ! fi ! ;; ! esac ! if $use_rpath; then ! if test -n "$enable_rpath_arg"; then ! RLD_FLAG="$enable_rpath_arg" fi else ! RLD_FLAG="" fi ! { echo "$as_me:$LINENO: defining FPICFLAG to be $FPICFLAG" >&5 ! echo "$as_me: defining FPICFLAG to be $FPICFLAG" >&6;} ! { echo "$as_me:$LINENO: defining CPICFLAG to be $CPICFLAG" >&5 ! echo "$as_me: defining CPICFLAG to be $CPICFLAG" >&6;} ! { echo "$as_me:$LINENO: defining CXXPICFLAG to be $CXXPICFLAG" >&5 ! echo "$as_me: defining CXXPICFLAG to be $CXXPICFLAG" >&6;} ! { echo "$as_me:$LINENO: defining SHLEXT to be $SHLEXT" >&5 ! echo "$as_me: defining SHLEXT to be $SHLEXT" >&6;} ! { echo "$as_me:$LINENO: defining SHLLIB to be $SHLLIB" >&5 ! echo "$as_me: defining SHLLIB to be $SHLLIB" >&6;} ! { echo "$as_me:$LINENO: defining SHLBIN to be $SHLBIN" >&5 ! echo "$as_me: defining SHLBIN to be $SHLBIN" >&6;} ! { echo "$as_me:$LINENO: defining SHLEXT_VER to be $SHLEXT_VER" >&5 ! echo "$as_me: defining SHLEXT_VER to be $SHLEXT_VER" >&6;} ! { echo "$as_me:$LINENO: defining SHLLIB_VER to be $SHLLIB_VER" >&5 ! echo "$as_me: defining SHLLIB_VER to be $SHLLIB_VER" >&6;} ! { echo "$as_me:$LINENO: defining SHLBIN_VER to be $SHLBIN_VER" >&5 ! echo "$as_me: defining SHLBIN_VER to be $SHLBIN_VER" >&6;} ! { echo "$as_me:$LINENO: defining SHLLINKEXT to be $SHLLINKEXT" >&5 ! echo "$as_me: defining SHLLINKEXT to be $SHLLINKEXT" >&6;} ! { echo "$as_me:$LINENO: defining LIBPRE to be $LIBPRE" >&5 ! echo "$as_me: defining LIBPRE to be $LIBPRE" >&6;} ! { echo "$as_me:$LINENO: defining SHLPRE to be $SHLPRE" >&5 ! echo "$as_me: defining SHLPRE to be $SHLPRE" >&6;} ! { echo "$as_me:$LINENO: defining SHLLIBPRE to be $SHLLIBPRE" >&5 ! echo "$as_me: defining SHLLIBPRE to be $SHLLIBPRE" >&6;} ! { echo "$as_me:$LINENO: defining SHLBINPRE to be $SHLBINPRE" >&5 ! echo "$as_me: defining SHLBINPRE to be $SHLBINPRE" >&6;} ! { echo "$as_me:$LINENO: defining SH_LD to be $SH_LD" >&5 ! echo "$as_me: defining SH_LD to be $SH_LD" >&6;} ! { echo "$as_me:$LINENO: defining SH_LDFLAGS to be $SH_LDFLAGS" >&5 ! echo "$as_me: defining SH_LDFLAGS to be $SH_LDFLAGS" >&6;} ! { echo "$as_me:$LINENO: defining DL_LD to be $DL_LD" >&5 ! echo "$as_me: defining DL_LD to be $DL_LD" >&6;} ! { echo "$as_me:$LINENO: defining DL_LDFLAGS to be $DL_LDFLAGS" >&5 ! echo "$as_me: defining DL_LDFLAGS to be $DL_LDFLAGS" >&6;} ! { echo "$as_me:$LINENO: defining MKOCTFILE_DL_LDFLAGS to be $MKOCTFILE_DL_LDFLAGS" >&5 ! echo "$as_me: defining MKOCTFILE_DL_LDFLAGS to be $MKOCTFILE_DL_LDFLAGS" >&6;} ! { echo "$as_me:$LINENO: defining SONAME_FLAGS to be $SONAME_FLAGS" >&5 ! echo "$as_me: defining SONAME_FLAGS to be $SONAME_FLAGS" >&6;} ! { echo "$as_me:$LINENO: defining NO_OCT_FILE_STRIP to be $NO_OCT_FILE_STRIP" >&5 ! echo "$as_me: defining NO_OCT_FILE_STRIP to be $NO_OCT_FILE_STRIP" >&6;} ! { echo "$as_me:$LINENO: defining RLD_FLAG to be $RLD_FLAG" >&5 ! echo "$as_me: defining RLD_FLAG to be $RLD_FLAG" >&6;} ! { echo "$as_me:$LINENO: defining TEMPLATE_AR to be $TEMPLATE_AR" >&5 ! echo "$as_me: defining TEMPLATE_AR to be $TEMPLATE_AR" >&6;} ! { echo "$as_me:$LINENO: defining TEMPLATE_ARFLAGS to be $TEMPLATE_ARFLAGS" >&5 ! echo "$as_me: defining TEMPLATE_ARFLAGS to be $TEMPLATE_ARFLAGS" >&6;} ! { echo "$as_me:$LINENO: defining CRUFT_DLL_DEFS to be $CRUFT_DLL_DEFS" >&5 ! echo "$as_me: defining CRUFT_DLL_DEFS to be $CRUFT_DLL_DEFS" >&6;} ! { echo "$as_me:$LINENO: defining OCTAVE_DLL_DEFS to be $OCTAVE_DLL_DEFS" >&5 ! echo "$as_me: defining OCTAVE_DLL_DEFS to be $OCTAVE_DLL_DEFS" >&6;} ! { echo "$as_me:$LINENO: defining OCTINTERP_DLL_DEFS to be $OCTINTERP_DLL_DEFS" >&5 ! echo "$as_me: defining OCTINTERP_DLL_DEFS to be $OCTINTERP_DLL_DEFS" >&6;} ! { echo "$as_me:$LINENO: defining OCTGRAPHICS_DLL_DEFS to be $OCTGRAPHICS_DLL_DEFS" >&5 ! echo "$as_me: defining OCTGRAPHICS_DLL_DEFS to be $OCTGRAPHICS_DLL_DEFS" >&6;} ! { echo "$as_me:$LINENO: defining library_path_var to be $library_path_var" >&5 ! echo "$as_me: defining library_path_var to be $library_path_var" >&6;} ! ### special checks for odd OS specific things. ! ### ! ### I am told that on some SCO systems, the only place to find some ! ### functions like gethostname and gettimeofday is in libsocket. ! for ac_func in gethostname ! do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! /* Define $ac_func to an innocuous variant, in case declares $ac_func. ! For example, HP-UX 11i declares gettimeofday. */ ! #define $ac_func innocuous_$ac_func - /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC --- 8078,8535 ---- #ifdef __cplusplus extern "C" #endif ! char gzclearerr (); int main () { ! return gzclearerr (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ! fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! ! for ac_header in zlib.h ! do : ! ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" ! if test "x$ac_cv_header_zlib_h" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_ZLIB_H 1 ! _ACEOF ! WITH_ZLIB=true ! ZLIB_LIBS="-l$zlib_lib" ! LIBS="$ZLIB_LIBS $LIBS" ! ! $as_echo "#define HAVE_ZLIB 1" >>confdefs.h ! ! fi ! ! done ! ! fi ! ! fi ! ! if $WITH_ZLIB; then ! ### Check for HDF5 library. ! ! WITH_HDF5=true ! ! # Check whether --with-hdf5 was given. ! if test "${with_hdf5+set}" = set; then : ! withval=$with_hdf5; with_hdf5=$withval ! else ! with_hdf5=yes ! fi ! ! ! hdf5_lib= ! if test "$with_hdf5" = yes; then ! hdf5_lib="hdf5" ! elif test "$with_hdf5" != no; then ! hdf5_lib="$with_hdf5" fi + + HDF5_LIBS= + WITH_HDF5=false + if test -n "$hdf5_lib"; then + as_ac_Lib=`$as_echo "ac_cv_lib_$hdf5_lib''_H5Pcreate" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Pcreate in -l$hdf5_lib" >&5 + $as_echo_n "checking for H5Pcreate in -l$hdf5_lib... " >&6; } + if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-l$hdf5_lib $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char H5Pcreate (); ! int ! main () ! { ! return H5Pcreate (); ! ; ! return 0; ! } ! _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" ! else ! eval "$as_ac_Lib=no" ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi + eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 + $as_echo "$ac_res" >&6; } + eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + + for ac_header in hdf5.h + do : + ac_fn_c_check_header_mongrel "$LINENO" "hdf5.h" "ac_cv_header_hdf5_h" "$ac_includes_default" + if test "x$ac_cv_header_hdf5_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF + #define HAVE_HDF5_H 1 + _ACEOF + + WITH_HDF5=true + HDF5_LIBS="-l$hdf5_lib" + LIBS="$HDF5_LIBS $LIBS" + as_ac_Lib=`$as_echo "ac_cv_lib_$hdf5_lib''_H5Gget_num_objs" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Gget_num_objs in -l$hdf5_lib" >&5 + $as_echo_n "checking for H5Gget_num_objs in -l$hdf5_lib... " >&6; } + if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 + else + ac_check_lib_save_LIBS=$LIBS + LIBS="-l$hdf5_lib $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char H5Gget_num_objs (); + int + main () + { + return H5Gget_num_objs (); + ; + return 0; + } + _ACEOF + if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" + else + eval "$as_ac_Lib=no" + fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_check_lib_save_LIBS + fi + eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 + $as_echo "$ac_res" >&6; } + eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HDF5 library has required API" >&5 + $as_echo_n "checking whether HDF5 library has required API... " >&6; } + if test "${octave_cv_hdf5_has_required_api+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + + #define H5_USE_16_API 1 + #include + + int + main () + { + + H5Eset_auto (0, 0); + ; + return 0; + } + _ACEOF + if ac_fn_c_try_link "$LINENO"; then : + + octave_cv_hdf5_has_required_api=yes + else + + octave_cv_hdf5_has_required_api=no + fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_hdf5_has_required_api" >&5 + $as_echo "$octave_cv_hdf5_has_required_api" >&6; } + if test "$octave_cv_hdf5_has_required_api" = "no"; then + WITH_HDF5=false + warn_hdf5="HDF5 library does not provide the version 1.6 API. Octave will not be able to save or load HDF5 data files." + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_hdf5" >&5 + $as_echo "$as_me: WARNING: $warn_hdf5" >&2;} + fi + + if test $WITH_HDF5; then + + $as_echo "#define HAVE_HDF5 1" >>confdefs.h + ! $as_echo "#define HAVE_H5GGET_NUM_OBJS 1" >>confdefs.h + fi + fi + fi + done + fi + fi + if $WITH_HDF5; then + case "$canonical_host_type" in + *-*-msdosmsvc) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _HDF5USEDLL_ needs to be defined" >&5 + $as_echo_n "checking if _HDF5USEDLL_ needs to be defined... " >&6; } + if test "${octave_cv_hdf5_dll+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include + int + main () + { + hid_t x = H5T_NATIVE_DOUBLE; return x + ; + return 0; + } + _ACEOF + if ac_fn_c_try_link "$LINENO"; then : + octave_cv_hdf5_dll=no + else + CFLAGS_old=$CFLAGS + CFLAGS="$CFLAGS -DWIN32 -D_HDF5USEDLL_" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include + int + main () + { + hid_t x = H5T_NATIVE_DOUBLE; return x + ; + return 0; + } + _ACEOF + if ac_fn_c_try_link "$LINENO"; then : + octave_cv_hdf5_dll=yes + else + octave_cv_hdf5_dll=no + fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS=$CFLAGS_old + fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_hdf5_dll" >&5 + $as_echo "$octave_cv_hdf5_dll" >&6; } + if test "$octave_cv_hdf5_dll" = yes; then + $as_echo "#define _HDF5USEDLL_ 1" >>confdefs.h + fi + ;; + esac + true + fi + else + warn_zlib="ZLIB library not found. Octave will not be able to save or load compressed data files or HDF5 files." + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_zlib" >&5 + $as_echo "$as_me: WARNING: $warn_zlib" >&2;} + fi + # Checks for FFTW header and library. + # subdirectories of libcruft to build if they aren't found on the system: + FFT_DIR="fftpack" + # Installed fftw library, if any. + FFTW_LIBS='' + # Check whether --with-fftw was given. + if test "${with_fftw+set}" = set; then : + withval=$with_fftw; with_fftw=$withval + else + with_fftw=yes + fi + if test "$with_fftw" = yes; then + have_fftw3_header=no + with_fftw3=no + ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" + if test "x$ac_cv_header_fftw3_h" = x""yes; then : + have_fftw3_header=yes + fi + if test "$have_fftw3_header" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_plan_dft_1d in -lfftw3" >&5 + $as_echo_n "checking for fftw_plan_dft_1d in -lfftw3... " >&6; } + if test "${ac_cv_lib_fftw3_fftw_plan_dft_1d+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + ac_check_lib_save_LIBS=$LIBS + LIBS="-lfftw3 $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char fftw_plan_dft_1d (); + int + main () + { + return fftw_plan_dft_1d (); + ; + return 0; + } + _ACEOF + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_fftw3_fftw_plan_dft_1d=yes + else + ac_cv_lib_fftw3_fftw_plan_dft_1d=no + fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_check_lib_save_LIBS + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_plan_dft_1d" >&5 + $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_1d" >&6; } + if test "x$ac_cv_lib_fftw3_fftw_plan_dft_1d" = x""yes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwf_plan_dft_1d in -lfftw3f" >&5 + $as_echo_n "checking for fftwf_plan_dft_1d in -lfftw3f... " >&6; } + if test "${ac_cv_lib_fftw3f_fftwf_plan_dft_1d+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + ac_check_lib_save_LIBS=$LIBS + LIBS="-lfftw3f $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char fftwf_plan_dft_1d (); + int + main () + { + return fftwf_plan_dft_1d (); + ; + return 0; + } + _ACEOF + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_fftw3f_fftwf_plan_dft_1d=yes + else + ac_cv_lib_fftw3f_fftwf_plan_dft_1d=no + fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_check_lib_save_LIBS + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3f_fftwf_plan_dft_1d" >&5 + $as_echo "$ac_cv_lib_fftw3f_fftwf_plan_dft_1d" >&6; } + if test "x$ac_cv_lib_fftw3f_fftwf_plan_dft_1d" = x""yes; then : + FFTW_LIBS="-lfftw3 -lfftw3f"; with_fftw3=yes + fi + fi + fi + fi + if test "$with_fftw" = yes && test "$with_fftw3" = yes; then + FFT_DIR='' + $as_echo "#define HAVE_FFTW3 1" >>confdefs.h + else + warn_fftw="FFTW library not found. Octave will use the (slower) FFTPACK library instead." + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $warn_fftw" >&5 + $as_echo "$warn_fftw" >&6; } + fi ! # Checks for GLPK header and library. ! # Check whether --with-glpk was given. ! if test "${with_glpk+set}" = set; then : ! withval=$with_glpk; with_glpk=$withval else ! with_glpk=yes ! fi ! glpk_lib= ! if test "$with_glpk" = yes; then ! glpk_lib="glpk" ! elif test "$with_glpk" != no; then ! glpk_lib="$with_glpk" ! fi ! GLPK_LIBS= ! if test -n "$glpk_lib"; then ! for ac_header in glpk/glpk.h glpk.h ! do : ! as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ! ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" ! eval as_val=\$$as_ac_Header ! if test "x$as_val" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! ! as_ac_Lib=`$as_echo "ac_cv_lib_$glpk_lib''_glp_lpx_simplex" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glp_lpx_simplex in -l$glpk_lib" >&5 ! $as_echo_n "checking for glp_lpx_simplex in -l$glpk_lib... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-l$glpk_lib $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC *************** *** 18981,19061 **** #ifdef __cplusplus extern "C" #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me ! #endif ! ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif int main () { ! return $ac_func (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_var=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! _ACEOF else ! { echo "$as_me:$LINENO: checking for gethostname in -lsocket" >&5 ! echo $ECHO_N "checking for gethostname in -lsocket... $ECHO_C" >&6; } ! if test "${ac_cv_lib_socket_gethostname+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS ! LIBS="-lsocket $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. --- 8537,8581 ---- #ifdef __cplusplus extern "C" #endif ! char glp_lpx_simplex (); int main () { ! return glp_lpx_simplex (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! ! GLPK_LIBS="-l$glpk_lib" ! ! $as_echo "#define GLPK_PRE_4_14 1" >>confdefs.h else ! as_ac_Lib=`$as_echo "ac_cv_lib_$glpk_lib''__glp_lpx_simplex" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _glp_lpx_simplex in -l$glpk_lib" >&5 ! $as_echo_n "checking for _glp_lpx_simplex in -l$glpk_lib... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS ! LIBS="-l$glpk_lib $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. *************** *** 19064,19161 **** #ifdef __cplusplus extern "C" #endif ! char gethostname (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif int main () { ! return gethostname (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_socket_gethostname=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_socket_gethostname=no fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostname" >&5 ! echo "${ECHO_T}$ac_cv_lib_socket_gethostname" >&6; } ! if test $ac_cv_lib_socket_gethostname = yes; then ! cat >>confdefs.h <<_ACEOF ! #define HAVE_LIBSOCKET 1 ! _ACEOF ! LIBS="-lsocket $LIBS" fi fi done ! for ac_func in getpwnam ! do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! /* Define $ac_func to an innocuous variant, in case declares $ac_func. ! For example, HP-UX 11i declares gettimeofday. */ ! #define $ac_func innocuous_$ac_func - /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC --- 8584,8667 ---- #ifdef __cplusplus extern "C" #endif ! char _glp_lpx_simplex (); int main () { ! return _glp_lpx_simplex (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! GLPK_LIBS="-l$glpk_lib" ! fi fi + + if test -n "$GLPK_LIBS"; then + + $as_echo "#define HAVE_GLPK 1" >>confdefs.h + + fi + break fi + done + fi ! if test -z "$GLPK_LIBS"; then ! warn_glpk="GLPK library not found. The glpk function for solving linear programs will be disabled." ! fi ! ! # Checks for CURL header and library. ! ! ! # Check whether --with-curl was given. ! if test "${with_curl+set}" = set; then : ! withval=$with_curl; with_curl=$withval else ! with_curl=yes ! fi ! curl_lib= ! if test "$with_curl" = yes; then ! curl_lib="curl" ! elif test "$with_curl" != no; then ! curl_lib="$with_curl" ! else ! curl_missing=yes ! fi ! CURL_LIBS= ! if test -n "$curl_lib"; then ! as_ac_Lib=`$as_echo "ac_cv_lib_$curl_lib''_curl_easy_escape" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_escape in -l$curl_lib" >&5 ! $as_echo_n "checking for curl_easy_escape in -l$curl_lib... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-l$curl_lib $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC *************** *** 19163,21130 **** #ifdef __cplusplus extern "C" #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me ! #endif ! ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif int main () { ! return $ac_func (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_var=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF else ! { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5 ! echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; } ! if test "${ac_cv_lib_sun_getpwnam+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lsun $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ - /* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ - #ifdef __cplusplus - extern "C" - #endif - char getpwnam (); - #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif int main () { ! return getpwnam (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_sun_getpwnam=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_sun_getpwnam=no fi - rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS=$ac_check_lib_save_LIBS fi - { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5 - echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; } - if test $ac_cv_lib_sun_getpwnam = yes; then - cat >>confdefs.h <<_ACEOF - #define HAVE_LIBSUN 1 - _ACEOF ! LIBS="-lsun $LIBS" fi ! fi ! done ! case "$canonical_host_type" in ! *-*-cygwin*) ! { echo "$as_me:$LINENO: checking for gethostname in -lwsock32" >&5 ! echo $ECHO_N "checking for gethostname in -lwsock32... $ECHO_C" >&6; } ! if test "${ac_cv_lib_wsock32_gethostname+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lwsock32 $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char gethostname (); ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } #endif int main () { ! return gethostname (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_wsock32_gethostname=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_lib_wsock32_gethostname=no fi ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_gethostname" >&5 ! echo "${ECHO_T}$ac_cv_lib_wsock32_gethostname" >&6; } ! if test $ac_cv_lib_wsock32_gethostname = yes; then cat >>confdefs.h <<_ACEOF ! #define HAVE_LIBWSOCK32 1 _ACEOF ! LIBS="-lwsock32 $LIBS" fi ! LIBS="$LIBS -lwsock32" ! ;; ! *-*-msdosmsvc* | *-*-mingw*) ! LIBS="$LIBS -lgdi32 -lws2_32 -luser32 -lkernel32" ! ;; ! esac ! ### Type stuff. ! { echo "$as_me:$LINENO: checking for mode_t" >&5 ! echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } ! if test "${ac_cv_type_mode_t+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef mode_t ac__type_new_; ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } #endif int main () { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_mode_t=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_type_mode_t=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 ! echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } ! if test $ac_cv_type_mode_t = yes; then ! : ! else ! ! cat >>confdefs.h <<_ACEOF ! #define mode_t int ! _ACEOF ! fi ! ! { echo "$as_me:$LINENO: checking for off_t" >&5 ! echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } ! if test "${ac_cv_type_off_t+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - $ac_includes_default - typedef off_t ac__type_new_; - #ifdef F77_DUMMY_MAIN - - # ifdef __cplusplus - extern "C" - # endif - int F77_DUMMY_MAIN() { return 1; } #endif int main () { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_off_t=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cv_type_off_t=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 - echo "${ECHO_T}$ac_cv_type_off_t" >&6; } - if test $ac_cv_type_off_t = yes; then - : - else - cat >>confdefs.h <<_ACEOF - #define off_t long int - _ACEOF fi ! { echo "$as_me:$LINENO: checking for pid_t" >&5 ! echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } ! if test "${ac_cv_type_pid_t+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef pid_t ac__type_new_; ! #ifdef F77_DUMMY_MAIN - # ifdef __cplusplus - extern "C" - # endif - int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_pid_t=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cv_type_pid_t=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 ! echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } ! if test $ac_cv_type_pid_t = yes; then ! : else - cat >>confdefs.h <<_ACEOF - #define pid_t int - _ACEOF - fi ! { echo "$as_me:$LINENO: checking for size_t" >&5 ! echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } ! if test "${ac_cv_type_size_t+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - $ac_includes_default - typedef size_t ac__type_new_; - #ifdef F77_DUMMY_MAIN - # ifdef __cplusplus - extern "C" - # endif - int F77_DUMMY_MAIN() { return 1; } ! #endif int ! main () { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_size_t=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cv_type_size_t=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 ! echo "${ECHO_T}$ac_cv_type_size_t" >&6; } ! if test $ac_cv_type_size_t = yes; then ! : ! else - cat >>confdefs.h <<_ACEOF - #define size_t unsigned int - _ACEOF - fi - { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 - echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } - if test "${ac_cv_type_uid_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include - _ACEOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "uid_t" >/dev/null 2>&1; then - ac_cv_type_uid_t=yes else ! ac_cv_type_uid_t=no fi ! rm -f conftest* ! fi - { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 - echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } - if test $ac_cv_type_uid_t = no; then - cat >>confdefs.h <<\_ACEOF - #define uid_t int - _ACEOF - cat >>confdefs.h <<\_ACEOF - #define gid_t int - _ACEOF - fi ! { echo "$as_me:$LINENO: checking for dev_t" >&5 ! echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; } ! if test "${ac_cv_type_dev_t+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef dev_t ac__type_new_; ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ! ; ! return 0; ! } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_dev_t=yes else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_dev_t=no - fi - - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 - echo "${ECHO_T}$ac_cv_type_dev_t" >&6; } - if test $ac_cv_type_dev_t = yes; then ! cat >>confdefs.h <<_ACEOF ! #define HAVE_DEV_T 1 _ACEOF ! fi ! { echo "$as_me:$LINENO: checking for ino_t" >&5 ! echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; } ! if test "${ac_cv_type_ino_t+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef ino_t ac__type_new_; ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } - #endif - int - main () - { - if ((ac__type_new_ *) 0) - return 0; - if (sizeof (ac__type_new_)) - return 0; - ; - return 0; - } - _ACEOF - rm -f conftest.$ac_objext - if { (ac_try="$ac_compile" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_ino_t=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_type_ino_t=no fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 ! echo "${ECHO_T}$ac_cv_type_ino_t" >&6; } ! if test $ac_cv_type_ino_t = yes; then ! cat >>confdefs.h <<_ACEOF ! #define HAVE_INO_T 1 ! _ACEOF ! fi ! { echo "$as_me:$LINENO: checking for nlink_t" >&5 ! echo $ECHO_N "checking for nlink_t... $ECHO_C" >&6; } ! if test "${ac_cv_type_nlink_t+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - $ac_includes_default - typedef nlink_t ac__type_new_; - #ifdef F77_DUMMY_MAIN - - # ifdef __cplusplus - extern "C" - # endif - int F77_DUMMY_MAIN() { return 1; } #endif int main () { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_nlink_t=yes else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cv_type_nlink_t=no fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - { echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5 - echo "${ECHO_T}$ac_cv_type_nlink_t" >&6; } - if test $ac_cv_type_nlink_t = yes; then ! cat >>confdefs.h <<_ACEOF ! #define HAVE_NLINK_T 1 ! _ACEOF ! fi ! { echo "$as_me:$LINENO: checking for nlink_t" >&5 ! echo $ECHO_N "checking for nlink_t... $ECHO_C" >&6; } ! if test "${ac_cv_type_nlink_t+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef nlink_t ac__type_new_; ! #ifdef F77_DUMMY_MAIN - # ifdef __cplusplus - extern "C" - # endif - int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_nlink_t=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_type_nlink_t=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - { echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5 - echo "${ECHO_T}$ac_cv_type_nlink_t" >&6; } - if test $ac_cv_type_nlink_t = yes; then - cat >>confdefs.h <<_ACEOF - #define HAVE_NLINK_T 1 - _ACEOF fi ! { echo "$as_me:$LINENO: checking for long long int" >&5 ! echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } ! if test "${ac_cv_type_long_long_int+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef long long int ac__type_new_; ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_long_long_int=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_type_long_long_int=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 - echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } - if test $ac_cv_type_long_long_int = yes; then - cat >>confdefs.h <<_ACEOF - #define HAVE_LONG_LONG_INT 1 - _ACEOF ! fi ! { echo "$as_me:$LINENO: checking for unsigned long long int" >&5 ! echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; } ! if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef unsigned long long int ac__type_new_; ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_unsigned_long_long_int=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cv_type_unsigned_long_long_int=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5 - echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; } - if test $ac_cv_type_unsigned_long_long_int = yes; then - cat >>confdefs.h <<_ACEOF - #define HAVE_UNSIGNED_LONG_LONG_INT 1 - _ACEOF - fi ! { echo "$as_me:$LINENO: checking for sigset_t" >&5 ! echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; } ! if test "${ac_cv_type_sigset_t+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - #if defined (HAVE_SYS_TYPES_H) - #include - #endif - #include - - typedef sigset_t ac__type_new_; - #ifdef F77_DUMMY_MAIN - - # ifdef __cplusplus - extern "C" - # endif - int F77_DUMMY_MAIN() { return 1; } - - #endif int ! main () { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ! ; ! return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_sigset_t=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_type_sigset_t=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5 - echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; } - if test $ac_cv_type_sigset_t = yes; then ! cat >>confdefs.h <<_ACEOF ! #define HAVE_SIGSET_T 1 ! _ACEOF fi - { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 - echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; } - if test "${ac_cv_type_sig_atomic_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - #if defined (HAVE_SYS_TYPES_H) - #include - #endif - #include ! typedef sig_atomic_t ac__type_new_; ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } - #endif - int - main () - { - if ((ac__type_new_ *) 0) - return 0; - if (sizeof (ac__type_new_)) - return 0; - ; - return 0; - } - _ACEOF - rm -f conftest.$ac_objext - if { (ac_try="$ac_compile" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_sig_atomic_t=yes - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cv_type_sig_atomic_t=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 - echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; } - if test $ac_cv_type_sig_atomic_t = yes; then - cat >>confdefs.h <<_ACEOF - #define HAVE_SIG_ATOMIC_T 1 - _ACEOF fi ! ### How big are ints and how are they oriented? These could probably ! ### be eliminated in favor of run-time checks. ! ! { echo "$as_me:$LINENO: checking for short" >&5 ! echo $ECHO_N "checking for short... $ECHO_C" >&6; } ! if test "${ac_cv_type_short+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef short ac__type_new_; ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_short=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_type_short=no fi - - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 ! echo "${ECHO_T}$ac_cv_type_short" >&6; } ! ! # The cast to long int works around a bug in the HP C Compiler ! # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! # This bug is HP SR number 8606223364. ! { echo "$as_me:$LINENO: checking size of short" >&5 ! echo $ECHO_N "checking size of short... $ECHO_C" >&6; } ! if test "${ac_cv_sizeof_short+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! if test "$cross_compiling" = yes; then ! # Depending upon the size, compute the lo and hi bounds. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef short ac__type_sizeof_; ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; ! test_array [0] = 0 ! ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_lo=0 ac_mid=0 ! while :; do ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef short ac__type_sizeof_; ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } - #endif - int - main () - { - static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; - test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=$ac_mid; break else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default - typedef short ac__type_sizeof_; - #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=-1 ac_mid=-1 ! while :; do ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef short ac__type_sizeof_; ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } #endif - int - main () - { - static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; - test_array [0] = 0 ! ; ! return 0; ! } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_lo=$ac_mid; break else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_hi=`expr '(' $ac_mid ')' - 1` ! if test $ac_mid -le $ac_hi; then ! ac_lo= ac_hi= ! break ! fi ! ac_mid=`expr 2 '*' $ac_mid` fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo= ac_hi= fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - # Binary search between lo and hi bounds. - while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default - typedef short ac__type_sizeof_; - #ifdef F77_DUMMY_MAIN - - # ifdef __cplusplus - extern "C" - # endif - int F77_DUMMY_MAIN() { return 1; } - - #endif - int - main () - { - static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; - test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=$ac_mid else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_lo=`expr '(' $ac_mid ')' + 1` fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done ! case $ac_lo in ! ?*) ac_cv_sizeof_short=$ac_lo;; ! '') if test "$ac_cv_type_short" = yes; then ! { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot compute sizeof (short) ! See \`config.log' for more details." >&2;} ! { (exit 77); exit 77; }; } ! else ! ac_cv_sizeof_short=0 ! fi ;; ! esac else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef short ac__type_sizeof_; ! static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ! static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ! #include ! #include ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! FILE *f = fopen ("conftest.val", "w"); ! if (! f) ! return 1; ! if (((long int) (sizeof (ac__type_sizeof_))) < 0) ! { ! long int i = longval (); ! if (i != ((long int) (sizeof (ac__type_sizeof_)))) ! return 1; ! fprintf (f, "%ld\n", i); ! } ! else ! { ! unsigned long int i = ulongval (); ! if (i != ((long int) (sizeof (ac__type_sizeof_)))) ! return 1; ! fprintf (f, "%lu\n", i); ! } ! return ferror (f) || fclose (f) != 0; ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_sizeof_short=`cat conftest.val` - else - echo "$as_me: program exited with status $ac_status" >&5 - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ( exit $ac_status ) ! if test "$ac_cv_type_short" = yes; then ! { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot compute sizeof (short) ! See \`config.log' for more details." >&2;} ! { (exit 77); exit 77; }; } ! else ! ac_cv_sizeof_short=0 ! fi ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi ! rm -f conftest.val fi ! { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 ! echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } ! cat >>confdefs.h <<_ACEOF ! #define SIZEOF_SHORT $ac_cv_sizeof_short _ACEOF ! { echo "$as_me:$LINENO: checking for int" >&5 ! echo $ECHO_N "checking for int... $ECHO_C" >&6; } ! if test "${ac_cv_type_int+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef int ac__type_new_; ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_int=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cv_type_int=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 ! echo "${ECHO_T}$ac_cv_type_int" >&6; } ! # The cast to long int works around a bug in the HP C Compiler ! # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! # This bug is HP SR number 8606223364. ! { echo "$as_me:$LINENO: checking size of int" >&5 ! echo $ECHO_N "checking size of int... $ECHO_C" >&6; } ! if test "${ac_cv_sizeof_int+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test "$cross_compiling" = yes; then ! # Depending upon the size, compute the lo and hi bounds. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef int ac__type_sizeof_; ! #ifdef F77_DUMMY_MAIN - # ifdef __cplusplus - extern "C" - # endif - int F77_DUMMY_MAIN() { return 1; } - #endif - int - main () - { - static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; - test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_lo=0 ac_mid=0 ! while :; do ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef int ac__type_sizeof_; ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; ! test_array [0] = 0 - ; - return 0; - } - _ACEOF - rm -f conftest.$ac_objext - if { (ac_try="$ac_compile" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_lo=`expr $ac_mid + 1` ! if test $ac_lo -le $ac_mid; then ! ac_lo= ac_hi= ! break ! fi ! ac_mid=`expr 2 '*' $ac_mid + 1` fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default - typedef int ac__type_sizeof_; - #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=-1 ac_mid=-1 ! while :; do ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef int ac__type_sizeof_; ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; ! test_array [0] = 0 - ; - return 0; - } - _ACEOF - rm -f conftest.$ac_objext - if { (ac_try="$ac_compile" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_hi=`expr '(' $ac_mid ')' - 1` ! if test $ac_mid -le $ac_hi; then ! ac_lo= ac_hi= ! break ! fi ! ac_mid=`expr 2 '*' $ac_mid` fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_lo= ac_hi= fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - # Binary search between lo and hi bounds. - while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default - typedef int ac__type_sizeof_; - #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=$ac_mid else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_lo=`expr '(' $ac_mid ')' + 1` ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done ! case $ac_lo in ! ?*) ac_cv_sizeof_int=$ac_lo;; ! '') if test "$ac_cv_type_int" = yes; then ! { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot compute sizeof (int) ! See \`config.log' for more details." >&2;} ! { (exit 77); exit 77; }; } ! else ! ac_cv_sizeof_int=0 ! fi ;; ! esac ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef int ac__type_sizeof_; ! static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ! static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ! #include ! #include #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 8669,10241 ---- #ifdef __cplusplus extern "C" #endif ! char curl_easy_escape (); int main () { ! return curl_easy_escape (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! ! for ac_header in curl/curl.h ! do : ! ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default" ! if test "x$ac_cv_header_curl_curl_h" = x""yes; then : cat >>confdefs.h <<_ACEOF ! #define HAVE_CURL_CURL_H 1 _ACEOF + CURL_LIBS="-l$curl_lib" + + $as_echo "#define HAVE_CURL 1" >>confdefs.h + + else + + curl_missing=yes + fi + + done + + fi + + fi + + if test "$curl_missing" = yes; then + warn_curl="cURL library not found. The urlread and urlwrite functions will be disabled." + fi + + # GraphicsMagick++ + + warn_magick= + for ac_prog in GraphicsMagick++-config GraphicsMagick-config + do + # Extract the first word of "$ac_prog", so it can be a program name with args. + set dummy $ac_prog; ac_word=$2 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 + $as_echo_n "checking for $ac_word... " >&6; } + if test "${ac_cv_prog_MAGICK_CONFIG+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + if test -n "$MAGICK_CONFIG"; then + ac_cv_prog_MAGICK_CONFIG="$MAGICK_CONFIG" # Let the user override the test. else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + for as_dir in $PATH + do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_MAGICK_CONFIG="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi + done + done + IFS=$as_save_IFS ! fi ! fi ! MAGICK_CONFIG=$ac_cv_prog_MAGICK_CONFIG ! if test -n "$MAGICK_CONFIG"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGICK_CONFIG" >&5 ! $as_echo "$MAGICK_CONFIG" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! test -n "$MAGICK_CONFIG" && break ! done ! ! if test -z "$MAGICK_CONFIG"; then ! warn_magick="GraphicsMagick++ config script not found. Assuming GraphicsMagic++ library and header files are missing, so imread will not be fully functional" ! else ! ! $as_echo "#define HAVE_MAGICK 1" >>confdefs.h ! ! fi ! ! # --------------------------------------------------------------------- ! ! ## libraries needed for graphics ! ! warn_freetype="" ! warn_ftgl="" ! ! ! OPENGL_LIBS= ! ! ### On MacOSX systems the OpenGL framework can be used ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${LD-ld} accepts -framework OpenGL" >&5 ! $as_echo_n "checking whether ${LD-ld} accepts -framework OpenGL... " >&6; } ! if test "${octave_cv_framework_OpenGL+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! XLDFLAGS="$LDFLAGS" ! LDFLAGS="$LDFLAGS -framework OpenGL" ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! ! #include ! #include int main () { ! GLint par; glGetIntegerv (GL_VIEWPORT, &par); ; return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : ! eval "octave_cv_framework_OpenGL=yes" else ! eval "octave_cv_framework_OpenGL=no" fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu + + LDFLAGS="$XLDFLAGS" fi ! if test "$octave_cv_framework_OpenGL" = "yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } + # Check whether --with-framework-opengl was given. + if test "${with_framework_opengl+set}" = set; then : + withval=$with_framework_opengl; with_have_framework=$withval + else + with_have_framework="yes" fi ! if test "$with_have_framework" = "yes"; then ! have_framework_opengl="yes" ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: framework rejected by --without-framework-opengl" >&5 ! $as_echo "$as_me: framework rejected by --without-framework-opengl" >&6;} ! have_framework_opengl="no" ! fi ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! have_framework_opengl="no" ! fi ! if test $have_framework_opengl = "yes"; then ! $as_echo "#define HAVE_FRAMEWORK_OPENGL 1" >>confdefs.h ! OPENGL_LIBS="-Wl,-framework -Wl,OpenGL" ! { $as_echo "$as_me:${as_lineno-$LINENO}: adding -Wl,-framework -Wl,OpenGL to OPENGL_LIBS" >&5 ! $as_echo "$as_me: adding -Wl,-framework -Wl,OpenGL to OPENGL_LIBS" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gluTessCallback is called with \"(...)\"" >&5 ! $as_echo_n "checking whether gluTessCallback is called with \"(...)\"... " >&6; } ! if test "${octave_cv_glutesscallback_threedots+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ + #ifdef HAVE_GL_GLU_H + #include + #elif defined HAVE_OPENGL_GLU_H || defined HAVE_FRAMEWORK_OPENGL + #include #endif int main () { ! GLvoid (*func)(...); gluTessCallback(0, 0, func); ; return 0; } _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : ! octave_cv_glutesscallback_threedots="yes" else ! octave_cv_glutesscallback_threedots="no" ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_glutesscallback_threedots" >&5 ! $as_echo "$octave_cv_glutesscallback_threedots" >&6; } ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! if test $octave_cv_glutesscallback_threedots = "yes"; then ! ! $as_echo "#define HAVE_GLUTESSCALLBACK_THREEDOTS 1" >>confdefs.h fi ! else ! case $canonical_host_type in ! *-*-mingw32* | *-*-msdosmsvc) ! for ac_header in windows.h ! do : ! ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" ! if test "x$ac_cv_header_windows_h" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_WINDOWS_H 1 ! _ACEOF ! fi ! ! done ! ! ;; ! esac ! have_opengl_incs=no ! for ac_header in GL/gl.h OpenGL/gl.h ! do : ! as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ! ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " ! #ifdef HAVE_WINDOWS_H ! #include ! #endif ! ! " ! eval as_val=\$$as_ac_Header ! if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF ! for ac_header in GL/glu.h OpenGL/glu.h ! do : ! as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ! ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " ! #ifdef HAVE_WINDOWS_H ! #include ! #endif + " + eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF + #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 + _ACEOF + + have_opengl_incs=yes; break fi ! done ! break ! fi ! done ! ! ! if test "$have_opengl_incs" = "yes"; then ! case $canonical_host_type in ! *-*-mingw32* | *-*-msdosmsvc) ! save_LIBS="$LIBS" ! LIBS="$LIBS -lopengl32" ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glEnable in -lopengl32" >&5 ! $as_echo_n "checking for glEnable in -lopengl32... " >&6; } ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ + #if HAVE_WINDOWS_H + #include + #endif + #if defined (HAVE_GL_GL_H) + #include + #elif defined (HAVE_OPENGL_GL_H) + #include #endif + int main () { ! glEnable(GL_SMOOTH); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! OPENGL_LIBS="-lopengl32 -lglu32" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS="$save_LIBS" ! if test "x$OPENGL_LIBS" != "x"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! ;; ! *) ! save_LDFLAGS="$LDFLAGS" ! LDFLAGS="$LDFLAGS -L/usr/X11R6/lib" ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glEnable in -lGL" >&5 ! $as_echo_n "checking for glEnable in -lGL... " >&6; } ! if test "${ac_cv_lib_GL_glEnable+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lGL $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" #endif + char glEnable (); int main () { ! return glEnable (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_GL_glEnable=yes else ! ac_cv_lib_GL_glEnable=no ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glEnable" >&5 ! $as_echo "$ac_cv_lib_GL_glEnable" >&6; } ! if test "x$ac_cv_lib_GL_glEnable" = x""yes; then : ! OPENGL_LIBS="-L/usr/X11R6/lib -lGL -lGLU" ! fi ! ! LDFLAGS="$save_LDFLAGS" ! ;; ! esac ! fi ! fi ! ! ! if test -n "$OPENGL_LIBS"; then ! ! $as_echo "#define HAVE_OPENGL 1" >>confdefs.h ! ! ! ## ftgl (needs freetype 2) ! # Check whether --with-ft-prefix was given. ! if test "${with_ft_prefix+set}" = set; then : ! withval=$with_ft_prefix; ft_config_prefix="$withval" ! else ! ft_config_prefix="" fi + # Check whether --with-ft-exec-prefix was given. + if test "${with_ft_exec_prefix+set}" = set; then : + withval=$with_ft_exec_prefix; ft_config_exec_prefix="$withval" + else + ft_config_exec_prefix="" fi ! ! # Check whether --enable-freetypetest was given. ! if test "${enable_freetypetest+set}" = set; then : ! enableval=$enable_freetypetest; else ! enable_fttest=yes ! fi ! if test x$ft_config_exec_prefix != x ; then ! ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix" ! if test x${FT2_CONFIG+set} != xset ; then ! FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config ! fi ! fi ! if test x$ft_config_prefix != x ; then ! ft_config_args="$ft_config_args --prefix=$ft_config_prefix" ! if test x${FT2_CONFIG+set} != xset ; then ! FT2_CONFIG=$ft_config_prefix/bin/freetype-config ! fi ! fi ! # Extract the first word of "freetype-config", so it can be a program name with args. ! set dummy freetype-config; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_path_FT2_CONFIG+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! case $FT2_CONFIG in ! [\\/]* | ?:[\\/]*) ! ac_cv_path_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test with a path. ! ;; ! *) ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_path_FT2_CONFIG="$as_dir/$ac_word$ac_exec_ext" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! ! test -z "$ac_cv_path_FT2_CONFIG" && ac_cv_path_FT2_CONFIG="no" ! ;; ! esac fi ! FT2_CONFIG=$ac_cv_path_FT2_CONFIG ! if test -n "$FT2_CONFIG"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FT2_CONFIG" >&5 ! $as_echo "$FT2_CONFIG" >&6; } else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + $as_echo "no" >&6; } + fi ! min_ft_version=9.0.3 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType -- version >= $min_ft_version" >&5 ! $as_echo_n "checking for FreeType -- version >= $min_ft_version... " >&6; } ! no_ft="" ! if test "$FT2_CONFIG" = "no" ; then ! no_ft=yes ! else ! FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags` ! FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs` ! ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \ ! sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` ! ft_config_minor_version=`$FT2_CONFIG $ft_config_args --version | \ ! sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` ! ft_config_micro_version=`$FT2_CONFIG $ft_config_args --version | \ ! sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` ! ft_min_major_version=`echo $min_ft_version | \ ! sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` ! ft_min_minor_version=`echo $min_ft_version | \ ! sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` ! ft_min_micro_version=`echo $min_ft_version | \ ! sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` ! if test x$enable_fttest = xyes ; then ! ft_config_is_lt="" ! if test $ft_config_major_version -lt $ft_min_major_version ; then ! ft_config_is_lt=yes ! else ! if test $ft_config_major_version -eq $ft_min_major_version ; then ! if test $ft_config_minor_version -lt $ft_min_minor_version ; then ! ft_config_is_lt=yes ! else ! if test $ft_config_minor_version -eq $ft_min_minor_version ; then ! if test $ft_config_micro_version -lt $ft_min_micro_version ; then ! ft_config_is_lt=yes ! fi ! fi ! fi ! fi ! fi ! if test x$ft_config_is_lt = xyes ; then ! no_ft=yes ! else ! ac_save_CFLAGS="$CFLAGS" ! ac_save_LIBS="$LIBS" ! CFLAGS="$CFLAGS $FT2_CFLAGS" ! LIBS="$FT2_LIBS $LIBS" ! ! if test "$cross_compiling" = yes; then : ! echo $ECHO_N "cross compiling; assuming OK... $ECHO_C" else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! #include ! #include FT_FREETYPE_H ! #include ! #include ! int ! main() { ! FT_Library library; ! FT_Error error; ! error = FT_Init_FreeType(&library); ! if (error) ! return 1; ! else ! { ! FT_Done_FreeType(library); ! return 0; ! } ! } _ACEOF ! if ac_fn_c_try_run "$LINENO"; then : else ! no_ft=yes fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ ! conftest.$ac_objext conftest.beam conftest.$ac_ext fi + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi fi fi + if test x$no_ft = x ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 + $as_echo "yes" >&6; } + : + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + $as_echo "no" >&6; } + if test "$FT2_CONFIG" = "no" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + + The freetype-config script installed by FreeType 2 could not be found. + If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in + your path, or set the FT2_CONFIG environment variable to the + full path to freetype-config. + " >&5 + $as_echo "$as_me: WARNING: + + The freetype-config script installed by FreeType 2 could not be found. + If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in + your path, or set the FT2_CONFIG environment variable to the + full path to freetype-config. + " >&2;} + else + if test x$ft_config_is_lt = xyes ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + + Your installed version of the FreeType 2 library is too old. + If you have different versions of FreeType 2, make sure that + correct values for --with-ft-prefix or --with-ft-exec-prefix + are used, or set the FT2_CONFIG environment variable to the + full path to freetype-config. + " >&5 + $as_echo "$as_me: WARNING: + + Your installed version of the FreeType 2 library is too old. + If you have different versions of FreeType 2, make sure that + correct values for --with-ft-prefix or --with-ft-exec-prefix + are used, or set the FT2_CONFIG environment variable to the + full path to freetype-config. + " >&2;} + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + + The FreeType test program failed to run. If your system uses + shared libraries and they are installed outside the normal + system library path, make sure the variable LD_LIBRARY_PATH + (or whatever is appropiate for your system) is correctly set. + " >&5 + $as_echo "$as_me: WARNING: + + The FreeType test program failed to run. If your system uses + shared libraries and they are installed outside the normal + system library path, make sure the variable LD_LIBRARY_PATH + (or whatever is appropiate for your system) is correctly set. + " >&2;} + fi + fi + + FT2_CFLAGS="" + FT2_LIBS="" + warn_freetype="FreeType library not found. Native renderer will not have on-screen text" + fi ! if test -z "$warn_freetype"; then ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! save_LIBS="$LIBS" ! save_CXXFLAGS="$CXXFLAGS" ! save_CPPFLAGS="$CPPFLAGS" ! LIBS="$LIBS $FT2_LIBS $OPENGL_LIBS" ! CXXFLAGS="$CXXFLAGS $FT2_CFLAGS" ! CPPFLAGS="$CPPFLAGS $FT2_CFLAGS" ! has_ftgl_h=yes ! for ac_header in FTGL/ftgl.h ftgl.h ! do : ! as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ! ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" ! eval as_val=\$$as_ac_Header ! if test "x$as_val" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF ! break else ! for ac_header in FTGL/FTGL.h FTGL.h ! do : ! as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ! ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" ! eval as_val=\$$as_ac_Header ! if test "x$as_val" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF ! $as_echo "#define HAVE_FTGL_UPPERCASE 1" >>confdefs.h ! break else ! has_ftgl_h=no fi ! done ! fi + done ! if test "$has_ftgl_h" = yes; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FTGLTextureFont in -lftgl" >&5 ! $as_echo_n "checking for FTGLTextureFont in -lftgl... " >&6; } ! LIBS="$save_LIBS -lftgl $FT2_LIBS $OPENGL_LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + #ifdef HAVE_FTGL_FTGL_H + #ifdef HAVE_FTGL_UPPERCASE + #include + #else + #include + #endif + #include + #elif HAVE_FTGL_H + #ifdef HAVE_FTGL_UPPERCASE + #include + #else + #include + #endif + #include #endif int main () { ! ! FTGLTextureFont font(""); ; return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : ! ! OPENGL_LIBS="-lftgl $FT2_LIBS $OPENGL_LIBS" ! LIBS="$save_LIBS" ! CPPFLAGS="$save_CPPFLAGS" ! ! $as_echo "#define HAVE_FTGL 1" >>confdefs.h ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FT2_CFLAGS" else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! warn_ftgl="FTGL library not found. Native renderer will not have on-screen text" ! fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$save_LIBS" + CXXFLAGS="$save_CXXFLAGS" + CPPFLAGS="$save_CPPFLAGS" + else + warn_ftgl="FTGL headers not found. Native renderer will not have on-screen text" + fi + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu ! fi fi ! GRAPHICS_LIBS= ! GRAPHICS_CFLAGS= + ## fltk (www.fltk.org) ! # Check whether --with-fltk-prefix was given. ! if test "${with_fltk_prefix+set}" = set; then : ! withval=$with_fltk_prefix; fltk_prefix="$withval" else ! fltk_prefix="" ! fi ! # Check whether --with-fltk-exec-prefix was given. ! if test "${with_fltk_exec_prefix+set}" = set; then : ! withval=$with_fltk_exec_prefix; fltk_exec_prefix="$withval" else ! fltk_exec_prefix="" fi + if test -n "$fltk_exec_prefix"; then + fltk_args="$fltk_args --exec-prefix=$fltk_exec_prefix" + if test "x${FLTK_CONFIG+set}" != xset ; then + FLTK_CONFIG="$fltk_exec_prefix/bin/fltk-config" + fi + fi + if test -n "$fltk_prefix"; then + fltk_args="$fltk_args --prefix=$fltk_prefix" + if test x${FLTK_CONFIG+set} != xset ; then + FLTK_CONFIG="$fltk_prefix/bin/fltk-config" + fi fi ! # Extract the first word of "fltk-config", so it can be a program name with args. ! set dummy fltk-config; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_path_FLTK_CONFIG+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! case $FLTK_CONFIG in ! [\\/]* | ?:[\\/]*) ! ac_cv_path_FLTK_CONFIG="$FLTK_CONFIG" # Let the user override the test with a path. ! ;; ! *) ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_path_FLTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! test -z "$ac_cv_path_FLTK_CONFIG" && ac_cv_path_FLTK_CONFIG="no" ! ;; esac ! fi ! FLTK_CONFIG=$ac_cv_path_FLTK_CONFIG ! if test -n "$FLTK_CONFIG"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLTK_CONFIG" >&5 ! $as_echo "$FLTK_CONFIG" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi + warn_fltk_config="" + warn_fltk_opengl="" ! if test "$FLTK_CONFIG" = "no" ; then ! warn_fltk_config="FLTK config script not found. Native graphics will be disabled." else ! FLTK_CFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --cflags`" ! FLTK_LDFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --ldflags`" ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL support in FLTK" >&5 ! $as_echo_n "checking for OpenGL support in FLTK... " >&6; } ! cat > conftest.cc < ! int nothing=0; ! EOF ! $CXX $CXXFLAGS $FLTK_CFLAGS -c conftest.cc || \ ! warn_fltk_opengl="FLTK does not have OpenGL support. Native graphics will be disabled." ! if test -z "$warn_fltk_opengl"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! $as_echo "#define HAVE_FLTK 1" >>confdefs.h ! GRAPHICS_CFLAGS="$FLTK_CFLAGS" ! GRAPHICS_LIBS="$FLTK_LDFLAGS" ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IEEE 754 data format" >&5 ! $as_echo_n "checking for IEEE 754 data format... " >&6; } ! if test "${octave_cv_ieee754_data_format+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! if test "$cross_compiling" = yes; then : ! octave_cv_ieee754_data_format=no ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int ! main (void) { ! typedef union { unsigned char c[8]; double d; } ieeebytes; ! ! ieeebytes l = {0x1c, 0xbc, 0x6e, 0xf2, 0x54, 0x8b, 0x11, 0x43}; ! ieeebytes b = {0x43, 0x11, 0x8b, 0x54, 0xf2, 0x6e, 0xbc, 0x1c}; ! ! return l.d != 1234567891234567.0 && b.d != 1234567891234567.0; } _ACEOF ! if ac_fn_c_try_run "$LINENO"; then : ! octave_cv_ieee754_data_format=yes else ! octave_cv_ieee754_data_format=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ ! conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi ! if test "$cross_compiling" = yes; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_ieee754_data_format assumed for cross compilation" >&5 ! $as_echo "$octave_cv_ieee754_data_format assumed for cross compilation" >&6; } ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_ieee754_data_format" >&5 ! $as_echo "$octave_cv_ieee754_data_format" >&6; } ! fi ! if test "$octave_cv_ieee754_data_format" = yes; then + $as_echo "#define HAVE_IEEE754_DATA_FORMAT 1" >>confdefs.h fi ! # ---------------------------------------------------------------------- ! if test -z "$AR"; then ! AR=ar ! fi ! if test -z "$ARFLAGS"; then ! ARFLAGS="rc" fi + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. + set dummy ${ac_tool_prefix}ranlib; ac_word=$2 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 + $as_echo_n "checking for $ac_word... " >&6; } + if test "${ac_cv_prog_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. + else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + for as_dir in $PATH + do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi + done + done + IFS=$as_save_IFS fi + fi + RANLIB=$ac_cv_prog_RANLIB + if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 + $as_echo "$RANLIB" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + $as_echo "no" >&6; } + fi ! fi ! if test -z "$ac_cv_prog_RANLIB"; then ! ac_ct_RANLIB=$RANLIB ! # Extract the first word of "ranlib", so it can be a program name with args. ! set dummy ranlib; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! if test -n "$ac_ct_RANLIB"; then ! ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_ac_ct_RANLIB="ranlib" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS ! fi ! fi ! ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB ! if test -n "$ac_ct_RANLIB"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 ! $as_echo "$ac_ct_RANLIB" >&6; } ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! if test "x$ac_ct_RANLIB" = x; then ! RANLIB=":" ! else ! case $cross_compiling:$ac_tool_warned in ! yes:) ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 ! $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ! ac_tool_warned=yes ;; esac ! RANLIB=$ac_ct_RANLIB ! fi ! else ! RANLIB="$ac_cv_prog_RANLIB" ! fi ! ! ! ## Default FFLAGS is -O. ! if test "x$FFLAGS" = x; then ! FFLAGS="-O" ! fi ! ! ## the F77 variable, if set, overrides AC_PROG_F77 automatically ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! if test -n "$ac_tool_prefix"; then ! for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn ! do ! # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ! set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_F77+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! if test -n "$F77"; then ! ac_cv_prog_F77="$F77" # Let the user override the test. else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_F77="$ac_tool_prefix$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS fi fi ! F77=$ac_cv_prog_F77 ! if test -n "$F77"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 ! $as_echo "$F77" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! test -n "$F77" && break ! done ! fi ! if test -z "$F77"; then ! ac_ct_F77=$F77 ! for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn ! do ! # Extract the first word of "$ac_prog", so it can be a program name with args. ! set dummy $ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_ac_ct_F77+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! if test -n "$ac_ct_F77"; then ! ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. ! else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! for as_dir in $PATH ! do ! IFS=$as_save_IFS ! test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do ! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ! ac_cv_prog_ac_ct_F77="$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ! break 2 ! fi ! done ! done ! IFS=$as_save_IFS fi ! fi ! ac_ct_F77=$ac_cv_prog_ac_ct_F77 ! if test -n "$ac_ct_F77"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 ! $as_echo "$ac_ct_F77" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! test -n "$ac_ct_F77" && break ! done ! if test "x$ac_ct_F77" = x; then ! F77="" ! else ! case $cross_compiling:$ac_tool_warned in ! yes:) ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 ! $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ! ac_tool_warned=yes ;; ! esac ! F77=$ac_ct_F77 ! fi ! fi ! ! # Provide some information about the compiler. ! $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 ! set X $ac_compile ! ac_compiler=$2 ! for ac_option in --version -v -V -qversion; do ! { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 ! (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? ! if test -s conftest.err; then ! sed '10a\ ! ... rest of stderr output deleted ... ! 10q' conftest.err >conftest.er1 ! cat conftest.er1 >&5 ! rm -f conftest.er1 conftest.err ! fi ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; } ! done ! rm -f a.out + # If we don't use `.F' as extension, the preprocessor is not run on the + # input file. (Note that this only needs to work for GNU compilers.) + ac_save_ext=$ac_ext + ac_ext=F + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 + $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } + if test "${ac_cv_f77_compiler_gnu+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + cat > conftest.$ac_ext <<_ACEOF + program main + #ifndef __GNUC__ + choke me #endif ! end _ACEOF ! if ac_fn_f77_try_compile "$LINENO"; then : ! ac_compiler_gnu=yes else ! ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_cv_f77_compiler_gnu=$ac_compiler_gnu fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 + $as_echo "$ac_cv_f77_compiler_gnu" >&6; } + ac_ext=$ac_save_ext + ac_test_FFLAGS=${FFLAGS+set} + ac_save_FFLAGS=$FFLAGS + FFLAGS= + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 + $as_echo_n "checking whether $F77 accepts -g... " >&6; } + if test "${ac_cv_prog_f77_g+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + FFLAGS=-g + cat > conftest.$ac_ext <<_ACEOF + program main ! end ! _ACEOF ! if ac_fn_f77_try_compile "$LINENO"; then : ! ac_cv_prog_f77_g=yes ! else ! ac_cv_prog_f77_g=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 ! $as_echo "$ac_cv_prog_f77_g" >&6; } ! if test "$ac_test_FFLAGS" = set; then ! FFLAGS=$ac_save_FFLAGS ! elif test $ac_cv_prog_f77_g = yes; then ! if test "x$ac_cv_f77_compiler_gnu" = xyes; then ! FFLAGS="-g -O2" ! else ! FFLAGS="-g" ! fi else ! if test "x$ac_cv_f77_compiler_gnu" = xyes; then ! FFLAGS="-O2" ! else ! FFLAGS= ! fi ! fi ! if test $ac_compiler_gnu = yes; then ! G77=yes ! else ! G77= fi + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5 ! $as_echo_n "checking how to get verbose linking output from $F77... " >&6; } ! if test "${ac_cv_prog_f77_v+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! cat > conftest.$ac_ext <<_ACEOF ! program main ! ! end _ACEOF ! if ac_fn_f77_try_compile "$LINENO"; then : ! ac_cv_prog_f77_v= ! # Try some options frequently used verbose output ! for ac_verb in -v -verbose --verbose -V -\#\#\#; do ! cat > conftest.$ac_ext <<_ACEOF ! program main ! end ! _ACEOF ! # Compile and link our simple test program by passing a flag (argument ! # 1 to this macro) to the Fortran compiler in order to get ! # "verbose" output that we can then parse for the Fortran linker ! # flags. ! ac_save_FFLAGS=$FFLAGS ! FFLAGS="$FFLAGS $ac_verb" ! eval "set x $ac_link" ! shift ! $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 ! # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, ! # LIBRARY_PATH; skip all such settings. ! ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | ! grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` ! $as_echo "$ac_f77_v_output" >&5 ! FFLAGS=$ac_save_FFLAGS ! rm -rf conftest* ! # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where ! # /foo, /bar, and /baz are search directories for the Fortran linker. ! # Here, we change these into -L/foo -L/bar -L/baz (and put it first): ! ac_f77_v_output="`echo $ac_f77_v_output | ! grep 'LPATH is:' | ! sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" ! ! # FIXME: we keep getting bitten by quoted arguments; a more general fix ! # that detects unbalanced quotes in FLIBS should be implemented ! # and (ugh) tested at some point. ! case $ac_f77_v_output in ! # If we are using xlf then replace all the commas with spaces. ! *xlfentry*) ! ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; ! ! # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted ! # $LIBS confuse us, and the libraries appear later in the output anyway). ! *mGLOB_options_string*) ! ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; ! ! # Portland Group compiler has singly- or doubly-quoted -cmdline argument ! # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. ! # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". ! *-cmdline\ * | *-ignore\ * | *-def\ *) ! ac_f77_v_output=`echo $ac_f77_v_output | sed "\ ! s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g ! s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g ! s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; ! ! # If we are using Cray Fortran then delete quotes. ! *cft90*) ! ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; esac ! ! # look for -l* and *.a constructs in the output ! for ac_arg in $ac_f77_v_output; do ! case $ac_arg in ! [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) ! ac_cv_prog_f77_v=$ac_verb ! break 2 ;; ! esac ! done ! done ! if test -z "$ac_cv_prog_f77_v"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 ! $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} fi ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 ! $as_echo "$as_me: WARNING: compilation failed" >&2;} fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5 + $as_echo "$ac_cv_prog_f77_v" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 + $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; } + if test "${ac_cv_f77_libs+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + if test "x$FLIBS" != "x"; then + ac_cv_f77_libs="$FLIBS" # Let the user override the test. + else + cat > conftest.$ac_ext <<_ACEOF + program main ! end _ACEOF + # Compile and link our simple test program by passing a flag (argument + # 1 to this macro) to the Fortran compiler in order to get + # "verbose" output that we can then parse for the Fortran linker + # flags. + ac_save_FFLAGS=$FFLAGS + FFLAGS="$FFLAGS $ac_cv_prog_f77_v" + eval "set x $ac_link" + shift + $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 + # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, + # LIBRARY_PATH; skip all such settings. + ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | + grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` + $as_echo "$ac_f77_v_output" >&5 + FFLAGS=$ac_save_FFLAGS ! rm -rf conftest* ! # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where ! # /foo, /bar, and /baz are search directories for the Fortran linker. ! # Here, we change these into -L/foo -L/bar -L/baz (and put it first): ! ac_f77_v_output="`echo $ac_f77_v_output | ! grep 'LPATH is:' | ! sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" ! # FIXME: we keep getting bitten by quoted arguments; a more general fix ! # that detects unbalanced quotes in FLIBS should be implemented ! # and (ugh) tested at some point. ! case $ac_f77_v_output in ! # If we are using xlf then replace all the commas with spaces. ! *xlfentry*) ! ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; ! # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted ! # $LIBS confuse us, and the libraries appear later in the output anyway). ! *mGLOB_options_string*) ! ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; ! # Portland Group compiler has singly- or doubly-quoted -cmdline argument ! # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. ! # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". ! *-cmdline\ * | *-ignore\ * | *-def\ *) ! ac_f77_v_output=`echo $ac_f77_v_output | sed "\ ! s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g ! s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g ! s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; ! # If we are using Cray Fortran then delete quotes. ! *cft90*) ! ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; ! esac ! ac_cv_f77_libs= ! # Save positional arguments (if any) ! ac_save_positional="$@" ! set X $ac_f77_v_output ! while test $# != 1; do ! shift ! ac_arg=$1 ! case $ac_arg in ! [\\/]*.a | ?:[\\/]*.a) ! ac_exists=false ! for ac_i in $ac_cv_f77_libs; do ! if test x"$ac_arg" = x"$ac_i"; then ! ac_exists=true ! break ! fi ! done ! ! if test x"$ac_exists" = xtrue; then : else ! ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" fi ! ;; ! -bI:*) ! ac_exists=false ! for ac_i in $ac_cv_f77_libs; do ! if test x"$ac_arg" = x"$ac_i"; then ! ac_exists=true ! break ! fi done ! if test x"$ac_exists" = xtrue; then : ! else ! if test "$ac_compiler_gnu" = yes; then ! for ac_link_opt in $ac_arg; do ! ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" ! done ! else ! ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ! fi ! fi ! ;; ! # Ignore these flags. ! -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ ! |-LANG:=* | -LIST:* | -LNO:*) ! ;; ! -lkernel32) ! test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ! ;; ! -[LRuYz]) ! # These flags, when seen by themselves, take an argument. ! # We remove the space between option and argument and re-iterate ! # unless we find an empty arg or a new option (starting with -) ! case $2 in ! "" | -*);; ! *) ! ac_arg="$ac_arg$2" ! shift; shift ! set X $ac_arg "$@" ! ;; ! esac ! ;; ! -YP,*) ! for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do ! ac_exists=false ! for ac_i in $ac_cv_f77_libs; do ! if test x"$ac_j" = x"$ac_i"; then ! ac_exists=true ! break ! fi ! done ! if test x"$ac_exists" = xtrue; then : ! else ! ac_arg="$ac_arg $ac_j" ! ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" ! fi ! done ! ;; ! -[lLR]*) ! ac_exists=false ! for ac_i in $ac_cv_f77_libs; do ! if test x"$ac_arg" = x"$ac_i"; then ! ac_exists=true ! break ! fi ! done ! if test x"$ac_exists" = xtrue; then : else ! ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" fi + ;; + -zallextract*| -zdefaultextract) + ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" + ;; + # Ignore everything else. + esac + done + # restore positional arguments + set X $ac_save_positional; shift ! # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, ! # then we insist that the "run path" must be an absolute path (i.e. it ! # must begin with a "/"). ! case `(uname -sr) 2>/dev/null` in ! "SunOS 5"*) ! ac_ld_run_path=`$as_echo "$ac_f77_v_output" | ! sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` ! test "x$ac_ld_run_path" != x && ! if test "$ac_compiler_gnu" = yes; then ! for ac_link_opt in $ac_ld_run_path; do ! ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" done else ! ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" fi + ;; + esac + fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 + $as_echo "$ac_cv_f77_libs" >&6; } + FLIBS="$ac_cv_f77_libs" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5 ! $as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; } ! if test "${ac_cv_f77_dummy_main+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_f77_dm_save_LIBS=$LIBS ! LIBS="$LIBS $FLIBS" ! ac_fortran_dm_var=F77_DUMMY_MAIN ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! # First, try linking without a dummy main: ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 21132,21229 **** # endif int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! ! FILE *f = fopen ("conftest.val", "w"); ! if (! f) ! return 1; ! if (((long int) (sizeof (ac__type_sizeof_))) < 0) ! { ! long int i = longval (); ! if (i != ((long int) (sizeof (ac__type_sizeof_)))) ! return 1; ! fprintf (f, "%ld\n", i); ! } ! else ! { ! unsigned long int i = ulongval (); ! if (i != ((long int) (sizeof (ac__type_sizeof_)))) ! return 1; ! fprintf (f, "%lu\n", i); ! } ! return ferror (f) || fclose (f) != 0; ! ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! ac_cv_sizeof_int=`cat conftest.val` ! else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! if test "$ac_cv_type_int" = yes; then ! { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot compute sizeof (int) ! See \`config.log' for more details." >&2;} ! { (exit 77); exit 77; }; } ! else ! ac_cv_sizeof_int=0 ! fi ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! fi ! rm -f conftest.val ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 ! echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } ! ! ! cat >>confdefs.h <<_ACEOF ! #define SIZEOF_INT $ac_cv_sizeof_int _ACEOF ! ! ! { echo "$as_me:$LINENO: checking for long" >&5 ! echo $ECHO_N "checking for long... $ECHO_C" >&6; } ! if test "${ac_cv_type_long+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef long ac__type_new_; #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 10243,10270 ---- # endif int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! ; ! return 0; ! } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_fortran_dummy_main=none else ! ac_cv_fortran_dummy_main=unknown ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! ! if test $ac_cv_fortran_dummy_main = unknown; then ! for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #define $ac_fortran_dm_var $ac_func #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 21235,21297 **** int main () { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_long=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_type_long=no fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 - echo "${ECHO_T}$ac_cv_type_long" >&6; } ! # The cast to long int works around a bug in the HP C Compiler ! # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! # This bug is HP SR number 8606223364. ! { echo "$as_me:$LINENO: checking size of long" >&5 ! echo $ECHO_N "checking size of long... $ECHO_C" >&6; } ! if test "${ac_cv_sizeof_long+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! if test "$cross_compiling" = yes; then ! # Depending upon the size, compute the lo and hi bounds. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef long ac__type_sizeof_; #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 10276,10373 ---- int main () { ! ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_fortran_dummy_main=$ac_func; break ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! done ! fi ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main ! rm -rf conftest* ! LIBS=$ac_f77_dm_save_LIBS fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5 + $as_echo "$ac_cv_f77_dummy_main" >&6; } + F77_DUMMY_MAIN=$ac_cv_f77_dummy_main + if test "$F77_DUMMY_MAIN" != unknown; then : + if test $F77_DUMMY_MAIN != none; then ! cat >>confdefs.h <<_ACEOF ! #define F77_DUMMY_MAIN $F77_DUMMY_MAIN ! _ACEOF ! ! if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then ! ! $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h ! ! fi ! fi ! else ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! as_fn_error "linking to Fortran libraries from C fails ! See \`config.log' for more details." "$LINENO" 5; } fi ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5 ! $as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; } ! if test "${ac_cv_f77_mangling+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! cat > conftest.$ac_ext <<_ACEOF ! subroutine foobar() ! return ! end ! subroutine foo_bar() ! return ! end _ACEOF ! if ac_fn_f77_try_compile "$LINENO"; then : ! mv conftest.$ac_objext cfortran_test.$ac_objext ! ! ac_save_LIBS=$LIBS ! LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ac_success=no ! for ac_foobar in foobar FOOBAR; do ! for ac_underscore in "" "_"; do ! ac_func="$ac_foobar$ac_underscore" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $ac_func (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 21303,21342 **** int main () { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; ! test_array [0] = 0 ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_lo=0 ac_mid=0 ! while :; do ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef long ac__type_sizeof_; #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 10379,10431 ---- int main () { ! return $ac_func (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_success=yes; break 2 ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! done ! done ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ! if test "$ac_success" = "yes"; then ! case $ac_foobar in ! foobar) ! ac_case=lower ! ac_foo_bar=foo_bar ! ;; ! FOOBAR) ! ac_case=upper ! ac_foo_bar=FOO_BAR ! ;; ! esac ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ac_success_extra=no ! for ac_extra in "" "_"; do ! ac_func="$ac_foo_bar$ac_underscore$ac_extra" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $ac_func (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 21348,22243 **** int main () { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; ! test_array [0] = 0 ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=$ac_mid; break else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_lo=`expr $ac_mid + 1` ! if test $ac_lo -le $ac_mid; then ! ac_lo= ac_hi= ! break ! fi ! ac_mid=`expr 2 '*' $ac_mid + 1` ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default - typedef long ac__type_sizeof_; - #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=-1 ac_mid=-1 ! while :; do ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef long ac__type_sizeof_; ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_lo=$ac_mid; break else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_hi=`expr '(' $ac_mid ')' - 1` ! if test $ac_mid -le $ac_hi; then ! ac_lo= ac_hi= ! break ! fi ! ac_mid=`expr 2 '*' $ac_mid` ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_lo= ac_hi= fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! # Binary search between lo and hi bounds. ! while test "x$ac_lo" != "x$ac_hi"; do ! ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef long ac__type_sizeof_; ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=$ac_mid ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_lo=`expr '(' $ac_mid ')' + 1` ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done ! case $ac_lo in ! ?*) ac_cv_sizeof_long=$ac_lo;; ! '') if test "$ac_cv_type_long" = yes; then ! { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot compute sizeof (long) ! See \`config.log' for more details." >&2;} ! { (exit 77); exit 77; }; } ! else ! ac_cv_sizeof_long=0 ! fi ;; ! esac else - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default - typedef long ac__type_sizeof_; - static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } - static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } - #include - #include - #ifdef F77_DUMMY_MAIN - - # ifdef __cplusplus - extern "C" - # endif - int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! FILE *f = fopen ("conftest.val", "w"); ! if (! f) ! return 1; ! if (((long int) (sizeof (ac__type_sizeof_))) < 0) ! { ! long int i = longval (); ! if (i != ((long int) (sizeof (ac__type_sizeof_)))) ! return 1; ! fprintf (f, "%ld\n", i); ! } ! else ! { ! unsigned long int i = ulongval (); ! if (i != ((long int) (sizeof (ac__type_sizeof_)))) ! return 1; ! fprintf (f, "%lu\n", i); ! } ! return ferror (f) || fclose (f) != 0; ! ; ! return 0; ! } _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! ac_cv_sizeof_long=`cat conftest.val` else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! if test "$ac_cv_type_long" = yes; then ! { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot compute sizeof (long) ! See \`config.log' for more details." >&2;} ! { (exit 77); exit 77; }; } ! else ! ac_cv_sizeof_long=0 ! fi fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! fi ! rm -f conftest.val ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 ! echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } ! cat >>confdefs.h <<_ACEOF ! #define SIZEOF_LONG $ac_cv_sizeof_long ! _ACEOF ! { echo "$as_me:$LINENO: checking for long long" >&5 ! echo $ECHO_N "checking for long long... $ECHO_C" >&6; } ! if test "${ac_cv_type_long_long+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef long long ac__type_new_; ! #ifdef F77_DUMMY_MAIN - # ifdef __cplusplus - extern "C" - # endif - int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_long_long=yes else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cv_type_long_long=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 ! echo "${ECHO_T}$ac_cv_type_long_long" >&6; } ! # The cast to long int works around a bug in the HP C Compiler ! # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! # This bug is HP SR number 8606223364. ! { echo "$as_me:$LINENO: checking size of long long" >&5 ! echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } ! if test "${ac_cv_sizeof_long_long+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test "$cross_compiling" = yes; then ! # Depending upon the size, compute the lo and hi bounds. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef long long ac__type_sizeof_; ! #ifdef F77_DUMMY_MAIN - # ifdef __cplusplus - extern "C" - # endif - int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_lo=0 ac_mid=0 ! while :; do ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef long long ac__type_sizeof_; ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; ! test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_lo=`expr $ac_mid + 1` ! if test $ac_lo -le $ac_mid; then ! ac_lo= ac_hi= ! break ! fi ! ac_mid=`expr 2 '*' $ac_mid + 1` fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default - typedef long long ac__type_sizeof_; - #ifdef F77_DUMMY_MAIN - # ifdef __cplusplus - extern "C" - # endif - int F77_DUMMY_MAIN() { return 1; } - #endif - int - main () - { - static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; - test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default - typedef long long ac__type_sizeof_; - #ifdef F77_DUMMY_MAIN - # ifdef __cplusplus - extern "C" - # endif - int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; ! test_array [0] = 0 - ; - return 0; - } - _ACEOF - rm -f conftest.$ac_objext - if { (ac_try="$ac_compile" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` - fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_lo= ac_hi= fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! # Binary search between lo and hi bounds. ! while test "x$ac_lo" != "x$ac_hi"; do ! ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! typedef long long ac__type_sizeof_; ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } - #endif - int - main () - { - static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; - test_array [0] = 0 ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=$ac_mid ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_lo=`expr '(' $ac_mid ')' + 1` ! fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done - case $ac_lo in - ?*) ac_cv_sizeof_long_long=$ac_lo;; - '') if test "$ac_cv_type_long_long" = yes; then - { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) - See \`config.log' for more details." >&5 - echo "$as_me: error: cannot compute sizeof (long long) - See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } - else - ac_cv_sizeof_long_long=0 - fi ;; - esac - else - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - $ac_includes_default - typedef long long ac__type_sizeof_; - static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } - static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } - #include - #include - #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } - #endif - int - main () - { ! FILE *f = fopen ("conftest.val", "w"); ! if (! f) ! return 1; ! if (((long int) (sizeof (ac__type_sizeof_))) < 0) ! { ! long int i = longval (); ! if (i != ((long int) (sizeof (ac__type_sizeof_)))) ! return 1; ! fprintf (f, "%ld\n", i); ! } ! else ! { ! unsigned long int i = ulongval (); ! if (i != ((long int) (sizeof (ac__type_sizeof_)))) ! return 1; ! fprintf (f, "%lu\n", i); ! } ! return ferror (f) || fclose (f) != 0; - ; - return 0; - } - _ACEOF - rm -f conftest$ac_exeext - if { (ac_try="$ac_link" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_sizeof_long_long=`cat conftest.val` - else - echo "$as_me: program exited with status $ac_status" >&5 - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - ( exit $ac_status ) - if test "$ac_cv_type_long_long" = yes; then - { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) - See \`config.log' for more details." >&5 - echo "$as_me: error: cannot compute sizeof (long long) - See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } - else - ac_cv_sizeof_long_long=0 - fi - fi - rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - rm -f conftest.val - fi - { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 - echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } - cat >>confdefs.h <<_ACEOF - #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long - _ACEOF - ### Does the C compiler handle alloca() and const correctly? ! # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works ! # for constant arguments. Useless! ! { echo "$as_me:$LINENO: checking for working alloca.h" >&5 ! echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } ! if test "${ac_cv_working_alloca_h+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! char *p = (char *) alloca (2 * sizeof (int)); ! if (p) return 0; ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_working_alloca_h=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cv_working_alloca_h=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 ! echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } ! if test $ac_cv_working_alloca_h = yes; then ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_ALLOCA_H 1 ! _ACEOF ! fi ! { echo "$as_me:$LINENO: checking for alloca" >&5 ! echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } ! if test "${ac_cv_func_alloca_works+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #ifdef __GNUC__ ! # define alloca __builtin_alloca ! #else ! # ifdef _MSC_VER ! # include ! # define alloca _alloca ! # else ! # ifdef HAVE_ALLOCA_H ! # include ! # else ! # ifdef _AIX ! #pragma alloca ! # else ! # ifndef alloca /* predefined by HP cc +Olibcalls */ ! char *alloca (); ! # endif ! # endif ! # endif ! # endif ! #endif #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 10437,11088 ---- int main () { ! return $ac_func (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_success_extra=yes; break ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! done ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ! if test "$ac_success_extra" = "yes"; then ! ac_cv_f77_mangling="$ac_case case" ! if test -z "$ac_underscore"; then ! ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" ! else ! ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" ! fi ! if test -z "$ac_extra"; then ! ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" ! else ! ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" ! fi ! else ! ac_cv_f77_mangling="unknown" ! fi ! else ! ac_cv_f77_mangling="unknown" ! fi ! ! LIBS=$ac_save_LIBS ! rm -rf conftest* ! rm -f cfortran_test* ! else ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! as_fn_error "cannot compile a simple Fortran program ! See \`config.log' for more details." "$LINENO" 5; } ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5 ! $as_echo "$ac_cv_f77_mangling" >&6; } ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! case $ac_cv_f77_mangling in ! "lower case, no underscore, no extra underscore") ! $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h ! ! $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h ! ;; ! "lower case, no underscore, extra underscore") ! $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h ! ! $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h ! ;; ! "lower case, underscore, no extra underscore") ! $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h ! ! $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h ! ;; ! "lower case, underscore, extra underscore") ! $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h ! ! $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h ! ;; ! "upper case, no underscore, no extra underscore") ! $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h ! ! $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h ! ;; ! "upper case, no underscore, extra underscore") ! $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h ! ! $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h ! ;; ! "upper case, underscore, no extra underscore") ! $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h ! ! $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h ! ;; ! "upper case, underscore, extra underscore") ! $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h ! ! $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h ! ;; ! *) ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 ! $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} ! ;; esac ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! F77_TOLOWER=true ! F77_APPEND_UNDERSCORE=true ! F77_APPEND_EXTRA_UNDERSCORE=true ! ! case "$ac_cv_f77_mangling" in ! "upper case") F77_TOLOWER=false ;; ! esac ! case "$ac_cv_f77_mangling" in ! "no underscore") F77_APPEND_UNDERSCORE=false ;; ! esac ! case "$ac_cv_f77_mangling" in ! "no extra underscore") F77_APPEND_EXTRA_UNDERSCORE=false ;; ! esac ! ! case "$canonical_host_type" in ! i[3456789]86-*-*) ! if test "$ac_cv_f77_compiler_gnu" = yes; then ! ! ac_safe=`echo "-mieee-fp" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${F77-g77} accepts -mieee-fp" >&5 ! $as_echo_n "checking whether ${F77-g77} accepts -mieee-fp... " >&6; } ! if { as_var=octave_cv_f77_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ! XFFLAGS="$FFLAGS" ! FFLAGS="$FFLAGS -mieee-fp" ! cat > conftest.$ac_ext <<_ACEOF ! program main ! end ! _ACEOF ! if ac_fn_f77_try_link "$LINENO"; then : ! eval "octave_cv_f77_flag_$ac_safe=yes" else ! eval "octave_cv_f77_flag_$ac_safe=no" ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! FFLAGS="$XFFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! fi ! if eval "test \"`echo '$octave_cv_f77_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! FFLAGS="$FFLAGS -mieee-fp" ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding -mieee-fp to FFLAGS" >&5 ! $as_echo "adding -mieee-fp to FFLAGS" >&6; } ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! ### OCTAVE_F77_FLAG(-ffloat-store) ! fi ! ;; ! alpha*-*-*) ! if test "$ac_cv_f77_compiler_gnu" = yes; then ! ac_safe=`echo "-mieee" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${F77-g77} accepts -mieee" >&5 ! $as_echo_n "checking whether ${F77-g77} accepts -mieee... " >&6; } ! if { as_var=octave_cv_f77_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! XFFLAGS="$FFLAGS" ! FFLAGS="$FFLAGS -mieee" ! cat > conftest.$ac_ext <<_ACEOF ! program main ! end ! _ACEOF ! if ac_fn_f77_try_link "$LINENO"; then : ! eval "octave_cv_f77_flag_$ac_safe=yes" ! else ! eval "octave_cv_f77_flag_$ac_safe=no" fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + FFLAGS="$XFFLAGS" + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu ! fi ! if eval "test \"`echo '$octave_cv_f77_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! FFLAGS="$FFLAGS -mieee" ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding -mieee to FFLAGS" >&5 ! $as_echo "adding -mieee to FFLAGS" >&6; } ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! else ! ac_safe=`echo "-ieee" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${F77-g77} accepts -ieee" >&5 ! $as_echo_n "checking whether ${F77-g77} accepts -ieee... " >&6; } ! if { as_var=octave_cv_f77_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! XFFLAGS="$FFLAGS" ! FFLAGS="$FFLAGS -ieee" ! cat > conftest.$ac_ext <<_ACEOF ! program main ! end _ACEOF ! if ac_fn_f77_try_link "$LINENO"; then : ! eval "octave_cv_f77_flag_$ac_safe=yes" else ! eval "octave_cv_f77_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! FFLAGS="$XFFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi ! if eval "test \"`echo '$octave_cv_f77_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } + FFLAGS="$FFLAGS -ieee" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding -ieee to FFLAGS" >&5 + $as_echo "adding -ieee to FFLAGS" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + $as_echo "no" >&6; } ! fi ! ac_safe=`echo "-fpe1" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${F77-g77} accepts -fpe1" >&5 ! $as_echo_n "checking whether ${F77-g77} accepts -fpe1... " >&6; } ! if { as_var=octave_cv_f77_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! XFFLAGS="$FFLAGS" ! FFLAGS="$FFLAGS -fpe1" ! cat > conftest.$ac_ext <<_ACEOF ! program main ! end _ACEOF ! if ac_fn_f77_try_link "$LINENO"; then : ! eval "octave_cv_f77_flag_$ac_safe=yes" ! else ! eval "octave_cv_f77_flag_$ac_safe=no" ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! FFLAGS="$XFFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! fi ! if eval "test \"`echo '$octave_cv_f77_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! FFLAGS="$FFLAGS -fpe1" ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding -fpe1 to FFLAGS" >&5 ! $as_echo "adding -fpe1 to FFLAGS" >&6; } ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! fi ! ;; ! powerpc-apple-machten*) ! FFLAGS= ! ;; esac ! if test -n "$FFLAGS"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining FFLAGS to be $FFLAGS" >&5 ! $as_echo "$as_me: defining FFLAGS to be $FFLAGS" >&6;} fi ! if test -z "$F77"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: in order to build octave, you must have a compatible" >&5 ! $as_echo "$as_me: WARNING: in order to build octave, you must have a compatible" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran compiler or wrapper script for f2c that functions" >&5 ! $as_echo "$as_me: WARNING: Fortran compiler or wrapper script for f2c that functions" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: as a Fortran compiler installed and in your path." >&5 ! $as_echo "$as_me: WARNING: as a Fortran compiler installed and in your path." >&2;} ! as_fn_error "See the file INSTALL for more information." "$LINENO" 5 ! fi ! ! XTRA_CRUFT_SH_LDFLAGS= ! case "$canonical_host_type" in ! *-*-msdosmsvc) ! FLIBS="$FLIBS -lkernel32" ! XTRA_CRUFT_SH_LDFLAGS="-Wl,-def:cruft.def" ! ;; esac ! FC=$F77 ! ac_safe=`echo "-ffloat-store" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${F77-g77} accepts -ffloat-store" >&5 ! $as_echo_n "checking whether ${F77-g77} accepts -ffloat-store... " >&6; } ! if { as_var=octave_cv_f77_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ! XFFLAGS="$FFLAGS" ! FFLAGS="$FFLAGS -ffloat-store" ! cat > conftest.$ac_ext <<_ACEOF ! program main ! ! end ! _ACEOF ! if ac_fn_f77_try_link "$LINENO"; then : ! eval "octave_cv_f77_flag_$ac_safe=yes" ! else ! eval "octave_cv_f77_flag_$ac_safe=no" fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + FFLAGS="$XFFLAGS" + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi ! if eval "test \"`echo '$octave_cv_f77_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: setting F77_FLOAT_STORE_FLAG to -ffloat-store" >&5 ! $as_echo "setting F77_FLOAT_STORE_FLAG to -ffloat-store" >&6; } ! F77_FLOAT_STORE_FLAG=-ffloat-store ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! ### Checks for BLAS and LAPACK libraries: ! # (Build subdirectories of libcruft if they aren't found on the system.) ! ! # =========================================================================== ! # http://autoconf-archive.cryp.to/acx_blas_f77_func.html ! # =========================================================================== ! # ! # SYNOPSIS ! # ! # ACX_BLAS_F77_FUNC([ACTION-IF-PASS[, ACTION-IF-FAIL[, ACTION-IF-CROSS-COMPILING]]) ! # ACX_BLAS_WITH_F77_FUNC([ACTION-IF-FOUND-AND-PASS[, ACTION-IF-NOT-FOUND-OR-FAIL]]) ! # ! # DESCRIPTION ! # ! # These macros are intended as a supplement to the ACX_BLAS macro, to ! # verify that BLAS functions are properly callable from Fortran. This is ! # necessary, for example, if you want to build the LAPACK library on top ! # of the BLAS. ! # ! # ACX_BLAS_F77_FUNC uses the defined BLAS_LIBS and Fortran environment to ! # check for compatibility, and takes a specific action in case of success, ! # resp. failure, resp. cross-compilation. ! # ! # ACX_BLAS_WITH_F77_FUNC is a drop-in replacement wrapper for ACX_BLAS ! # that calls ACX_BLAS_F77_FUNC after detecting a BLAS library and rejects ! # it on failure (i.e. pretends that no library was found). ! # ! # LAST MODIFICATION ! # ! # 2008-06-18 ! # ! # COPYLEFT ! # ! # Copyright (c) 2008 Jaroslav Hajek ! # ! # This program is free software: you can redistribute it and/or modify it ! # under the terms of the GNU General Public License as published by the ! # Free Software Foundation, either version 3 of the License, or (at your ! # option) any later version. ! # ! # This program is distributed in the hope that it will be useful, but ! # WITHOUT ANY WARRANTY; without even the implied warranty of ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General ! # Public License for more details. ! # ! # You should have received a copy of the GNU General Public License along ! # with this program. If not, see . ! # ! # As a special exception, the respective Autoconf Macro's copyright owner ! # gives unlimited permission to copy, distribute and modify the configure ! # scripts that are the output of Autoconf when processing the Macro. You ! # need not follow the terms of the GNU General Public License when using ! # or distributing such scripts, even though portions of the text of the ! # Macro appear in them. The GNU General Public License (GPL) does govern ! # all other use of the material that constitutes the Autoconf Macro. ! # ! # This special exception to the GPL applies to versions of the Autoconf ! # Macro released by the Autoconf Macro Archive. When you make and ! # distribute a modified version of the Autoconf Macro, you may extend this ! # special exception to the GPL to apply to your modified version as well. ! ! # =========================================================================== ! # http://autoconf-archive.cryp.to/acx_lapack.html ! # =========================================================================== ! # ! # SYNOPSIS ! # ! # ACX_LAPACK([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) ! # ! # DESCRIPTION ! # ! # This macro looks for a library that implements the LAPACK linear-algebra ! # interface (see http://www.netlib.org/lapack/). On success, it sets the ! # LAPACK_LIBS output variable to hold the requisite library linkages. ! # ! # To link with LAPACK, you should link with: ! # ! # $LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS ! # ! # in that order. BLAS_LIBS is the output variable of the ACX_BLAS macro, ! # called automatically. FLIBS is the output variable of the ! # AC_F77_LIBRARY_LDFLAGS macro (called if necessary by ACX_BLAS), and is ! # sometimes necessary in order to link with F77 libraries. Users will also ! # need to use AC_F77_DUMMY_MAIN (see the autoconf manual), for the same ! # reason. ! # ! # The user may also use --with-lapack= in order to use some specific ! # LAPACK library . In order to link successfully, however, be aware ! # that you will probably need to use the same Fortran compiler (which can ! # be set via the F77 env. var.) as was used to compile the LAPACK and BLAS ! # libraries. ! # ! # ACTION-IF-FOUND is a list of shell commands to run if a LAPACK library ! # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it ! # is not found. If ACTION-IF-FOUND is not specified, the default action ! # will define HAVE_LAPACK. ! # ! # LAST MODIFICATION ! # ! # 2008-06-29 ! # ! # COPYLEFT ! # ! # Copyright (c) 2008 Steven G. Johnson ! # ! # This program is free software: you can redistribute it and/or modify it ! # under the terms of the GNU General Public License as published by the ! # Free Software Foundation, either version 3 of the License, or (at your ! # option) any later version. ! # ! # This program is distributed in the hope that it will be useful, but ! # WITHOUT ANY WARRANTY; without even the implied warranty of ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General ! # Public License for more details. ! # ! # You should have received a copy of the GNU General Public License along ! # with this program. If not, see . ! # ! # As a special exception, the respective Autoconf Macro's copyright owner ! # gives unlimited permission to copy, distribute and modify the configure ! # scripts that are the output of Autoconf when processing the Macro. You ! # need not follow the terms of the GNU General Public License when using ! # or distributing such scripts, even though portions of the text of the ! # Macro appear in them. The GNU General Public License (GPL) does govern ! # all other use of the material that constitutes the Autoconf Macro. ! # ! # This special exception to the GPL applies to versions of the Autoconf ! # Macro released by the Autoconf Macro Archive. When you make and ! # distribute a modified version of the Autoconf Macro, you may extend this ! # special exception to the GPL to apply to your modified version as well. + acx_blas_ok=no ! # Check whether --with-blas was given. ! if test "${with_blas+set}" = set; then : ! withval=$with_blas; ! fi ! case $with_blas in ! yes | "") ;; ! no) acx_blas_ok=disable ;; ! -* | */* | *.a | *.so | *.so.* | *.o) BLAS_LIBS="$with_blas" ;; ! *) BLAS_LIBS="-l$with_blas" ;; ! esac ! # Get fortran linker names of BLAS functions to check for. ! if $have_fortran_compiler; then ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! case $ac_cv_f77_mangling in ! upper*) ac_val="SGEMM" ;; ! lower*) ac_val="sgemm" ;; ! *) ac_val="unknown" ;; esac ! case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac ! sgemm="$ac_val" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! case $ac_cv_f77_mangling in ! upper*) ac_val="DGEMM" ;; ! lower*) ac_val="dgemm" ;; ! *) ac_val="unknown" ;; ! esac ! case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac ! dgemm="$ac_val" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! elif $have_f2c; then ! sgemm=sgemm_ ! dgemm=dgemm_ ! fi ! ! acx_blas_save_LIBS="$LIBS" ! LIBS="$LIBS $FLIBS" ! ! # First, check BLAS_LIBS environment variable ! if test $acx_blas_ok = no; then ! if test "x$BLAS_LIBS" != x; then ! save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in $BLAS_LIBS" >&5 ! $as_echo_n "checking for $sgemm in $BLAS_LIBS... " >&6; } ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char $sgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 22249,22370 **** int main () { ! char *p = (char *) alloca (1); ! if (p) return 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_func_alloca_works=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_func_alloca_works=no fi - - rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi - { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 - echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } - - if test $ac_cv_func_alloca_works = yes; then - - cat >>confdefs.h <<\_ACEOF - #define HAVE_ALLOCA 1 - _ACEOF - - else - # The SVR3 libPW and SVR4 libucb both contain incompatible functions - # that cause trouble. Some versions do not even contain alloca or - # contain a buggy version. If you still want to use their alloca, - # use ar to extract alloca.o from them instead of compiling alloca.c. - - ALLOCA=\${LIBOBJDIR}alloca.$ac_objext - - cat >>confdefs.h <<\_ACEOF - #define C_ALLOCA 1 - _ACEOF - - - { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 - echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } - if test "${ac_cv_os_cray+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - #if defined CRAY && ! defined CRAY2 - webecray - #else - wenotbecray - #endif ! _ACEOF ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! $EGREP "webecray" >/dev/null 2>&1; then ! ac_cv_os_cray=yes ! else ! ac_cv_os_cray=no fi - rm -f conftest* fi ! { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 ! echo "${ECHO_T}$ac_cv_os_cray" >&6; } ! if test $ac_cv_os_cray = yes; then ! for ac_func in _getb67 GETB67 getb67; do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - /* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ - #define $ac_func innocuous_$ac_func - - /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - - #ifdef __STDC__ - # include - #else - # include - #endif - - #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC --- 11094,11141 ---- int main () { ! return $sgemm (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! acx_blas_ok=yes else ! BLAS_LIBS="" ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blas_ok" >&5 ! $as_echo "$acx_blas_ok" >&6; } ! LIBS="$save_LIBS" fi fi ! # BLAS linked to by default? (happens on some supercomputers) ! if test $acx_blas_ok = no; then ! save_LIBS="$LIBS"; LIBS="$LIBS" ! as_ac_var=`$as_echo "ac_cv_func_$sgemm" | $as_tr_sh` ! ac_fn_c_check_func "$LINENO" "$sgemm" "$as_ac_var" ! eval as_val=\$$as_ac_var ! if test "x$as_val" = x""yes; then : ! acx_blas_ok=yes fi + LIBS="$save_LIBS" fi ! ! # BLAS in ATLAS library? (http://math-atlas.sourceforge.net/) ! if test $acx_blas_ok = no; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5 ! $as_echo_n "checking for ATL_xerbla in -latlas... " >&6; } ! if test "${ac_cv_lib_atlas_ATL_xerbla+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-latlas $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC *************** *** 22372,22385 **** #ifdef __cplusplus extern "C" #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me ! #endif ! #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 11143,11149 ---- #ifdef __cplusplus extern "C" #endif ! char ATL_xerbla (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 22391,22536 **** int main () { ! return $ac_func (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_var=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then ! ! cat >>confdefs.h <<_ACEOF ! #define CRAY_STACKSEG_END $ac_func ! _ACEOF ! ! break fi ! ! done fi ! ! { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 ! echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } ! if test "${ac_cv_c_stack_direction+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test "$cross_compiling" = yes; then ! ac_cv_c_stack_direction=0 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - $ac_includes_default - int - find_stack_direction () - { - static char *addr = 0; - auto char dummy; - if (addr == 0) - { - addr = &dummy; - return find_stack_direction (); - } - else - return (&dummy > addr) ? 1 : -1; - } int main () { ! return find_stack_direction () < 0; } _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! ac_cv_c_stack_direction=1 else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! ac_cv_c_stack_direction=-1 fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! fi ! ! ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 ! echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } ! ! cat >>confdefs.h <<_ACEOF ! #define STACK_DIRECTION $ac_cv_c_stack_direction ! _ACEOF ! ! fi ! ! { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 ! echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } ! if test "${ac_cv_c_const+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 11155,11242 ---- int main () { ! return ATL_xerbla (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_atlas_ATL_xerbla=yes else ! ac_cv_lib_atlas_ATL_xerbla=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5 ! $as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; } ! if test "x$ac_cv_lib_atlas_ATL_xerbla" = x""yes; then : ! as_ac_Lib=`$as_echo "ac_cv_lib_f77blas_$sgemm" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lf77blas" >&5 ! $as_echo_n "checking for $sgemm in -lf77blas... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lf77blas -latlas $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char $sgemm (); + #ifdef F77_DUMMY_MAIN + + # ifdef __cplusplus + extern "C" + # endif + int F77_DUMMY_MAIN() { return 1; } + + #endif int main () { ! return $sgemm (); ! ; ! return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5 ! $as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; } ! if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcblas -lf77blas -latlas $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char cblas_dgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 22542,22659 **** int main () { ! /* FIXME: Include the comments suggested by Paul. */ ! #ifndef __cplusplus ! /* Ultrix mips cc rejects this. */ ! typedef int charset[2]; ! const charset cs; ! /* SunOS 4.1.1 cc rejects this. */ ! char const *const *pcpcc; ! char **ppc; ! /* NEC SVR4.0.2 mips cc rejects this. */ ! struct point {int x, y;}; ! static struct point const zero = {0,0}; ! /* AIX XL C 1.02.0.0 rejects this. ! It does not let you subtract one const X* pointer from another in ! an arm of an if-expression whose if-part is not a constant ! expression */ ! const char *g = "string"; ! pcpcc = &g + (g ? g-g : 0); ! /* HPUX 7.0 cc rejects these. */ ! ++pcpcc; ! ppc = (char**) pcpcc; ! pcpcc = (char const *const *) ppc; ! { /* SCO 3.2v4 cc rejects this. */ ! char *t; ! char const *s = 0 ? (char *) 0 : (char const *) 0; ! ! *t++ = 0; ! if (s) return 0; ! } ! { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ ! int x[] = {25, 17}; ! const int *foo = &x[0]; ! ++foo; ! } ! { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ ! typedef const int *iptr; ! iptr p = 0; ! ++p; ! } ! { /* AIX XL C 1.02.0.0 rejects this saying ! "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ ! struct s { int j; const int *ap[3]; }; ! struct s *b; b->j = 5; ! } ! { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ ! const int foo = 10; ! if (!foo) return 0; ! } ! return !cs[0] && !zero.x; ! #endif ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_c_const=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_c_const=no fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 ! echo "${ECHO_T}$ac_cv_c_const" >&6; } ! if test $ac_cv_c_const = no; then ! ! cat >>confdefs.h <<\_ACEOF ! #define const ! _ACEOF ! fi ! ### See if we should use placement delete. ! { echo "$as_me:$LINENO: checking whether defines placement delete operator" >&5 ! echo $ECHO_N "checking whether defines placement delete operator... $ECHO_C" >&6; } ! if test "${octave_cv_placement_delete+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! #include #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 11248,11296 ---- int main () { ! return cblas_dgemm (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_cblas_cblas_dgemm=yes else ! ac_cv_lib_cblas_cblas_dgemm=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5 ! $as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; } ! if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then : ! acx_blas_ok=yes ! BLAS_LIBS="-lcblas -lf77blas -latlas" fi + fi ! fi ! fi ! # BLAS in Apple vecLib framework? (Mac OS X) ! if test $acx_blas_ok = no; then ! vlib_flags="-Wl,-framework -Wl,vecLib" ! save_LIBS="$LIBS"; LIBS="$vlib_flags $LIBS" ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in $vlib_flags" >&5 ! $as_echo_n "checking for $sgemm in $vlib_flags... " >&6; } ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 22665,22739 **** int main () { ! operator delete((void *)0, (void *)0); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! octave_cv_placement_delete=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! octave_cv_placement_delete=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $octave_cv_placement_delete" >&5 ! echo "${ECHO_T}$octave_cv_placement_delete" >&6; } ! if test $octave_cv_placement_delete = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_PLACEMENT_DELETE 1 ! _ACEOF ! fi - ac_ext=c - ac_cpp='$CPP $CPPFLAGS' - ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' - ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' - ac_compiler_gnu=$ac_cv_c_compiler_gnu - ! ! ### See if we can auto allocate variable sized arrays. ! ! { echo "$as_me:$LINENO: checking whether C++ supports dynamic auto arrays" >&5 ! echo $ECHO_N "checking whether C++ supports dynamic auto arrays... $ECHO_C" >&6; } ! if test "${octave_cv_dynamic_auto_arrays+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 11302,11344 ---- int main () { ! return $sgemm (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! acx_blas_ok=yes; BLAS_LIBS="$vlib_flags" else ! BLAS_LIBS="" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blas_ok" >&5 ! $as_echo "$acx_blas_ok" >&6; } ! LIBS="$save_LIBS" fi ! # BLAS in PhiPACK libraries? (requires generic BLAS lib, too) ! if test $acx_blas_ok = no; then ! as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5 ! $as_echo_n "checking for $sgemm in -lblas... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lblas $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char $sgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 22745,22858 **** int main () { ! void test(char *); int length(); char x[length()]; test(x); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! octave_cv_dynamic_auto_arrays=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! octave_cv_dynamic_auto_arrays=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $octave_cv_dynamic_auto_arrays" >&5 ! echo "${ECHO_T}$octave_cv_dynamic_auto_arrays" >&6; } ! if test $octave_cv_dynamic_auto_arrays = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_DYNAMIC_AUTO_ARRAYS 1 ! _ACEOF ! fi ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! ! ### See if we can use fast integer arithmetics ! ! ! { echo "$as_me:$LINENO: checking whether fast integer arithmetics is usable" >&5 ! echo $ECHO_N "checking whether fast integer arithmetics is usable... $ECHO_C" >&6; } ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! if test "$cross_compiling" = yes; then ! { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! #include ! template ! static bool ! do_test (UT, ST) ! { ! volatile ST s = std::numeric_limits::min () / 3; ! volatile UT u = static_cast (s); ! if (*(reinterpret_cast (&u)) != s) return true; ! ! u = 0; u = ~u; ! if (*(reinterpret_cast (&u)) != -1) return true; ! ST sx, sy; ! sx = std::numeric_limits::max () / 2 + 1; ! sy = std::numeric_limits::max () / 2 + 2; ! if (static_cast (static_cast (sx) + static_cast (sy)) ! != std::numeric_limits::min () + 1) return true; ! if (static_cast (static_cast (sx) - static_cast (sy)) ! != -1) return true; ! if ((sx & sy) != (static_cast (sx) & static_cast (sy))) ! return true; ! if ((sx | sy) != (static_cast (sx) | static_cast (sy))) ! return true; ! if ((sx ^ sy) != (static_cast (sx) ^ static_cast (sy))) ! return true; ! if ((-1 >> 1) != -1) return true; ! return false; } ! #define DO_TEST(T) \ ! if (do_test (static_cast (0), static_cast (0))) \ ! return sizeof (T); ! #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 11350,11440 ---- int main () { ! return $sgemm (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! as_ac_Lib=`$as_echo "ac_cv_lib_dgemm_$dgemm" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dgemm in -ldgemm" >&5 ! $as_echo_n "checking for $dgemm in -ldgemm... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-ldgemm -lblas $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $dgemm (); ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! return $dgemm (); ! ; ! return 0; } + _ACEOF + if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" + else + eval "$as_ac_Lib=no" + fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_check_lib_save_LIBS + fi + eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 + $as_echo "$ac_res" >&6; } + eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + as_ac_Lib=`$as_echo "ac_cv_lib_sgemm_$sgemm" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsgemm" >&5 + $as_echo_n "checking for $sgemm in -lsgemm... " >&6; } + if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 + else + ac_check_lib_save_LIBS=$LIBS + LIBS="-lsgemm -lblas $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 22864,22944 **** int main () { ! ! DO_TEST(char) ! DO_TEST(short) ! DO_TEST(int) ! DO_TEST(long) ! #if (defined(HAVE_LONG_LONG_INT) && defined(HAVE_UNSIGNED_LONG_LONG_INT)) ! DO_TEST(long long) ! #endif ! ; return 0; } _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_FAST_INT_OPS 1 _ACEOF ! else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! ### Check for long double type (for 64-bit integers) ! ! { echo "$as_me:$LINENO: checking for long double" >&5 ! echo $ECHO_N "checking for long double... $ECHO_C" >&6; } ! if test "${ac_cv_type_long_double+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef long double ac__type_new_; #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 11446,11554 ---- int main () { ! return $sgemm (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" ! else ! eval "$as_ac_Lib=no" ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! acx_blas_ok=yes; BLAS_LIBS="-lsgemm -ldgemm -lblas" ! fi ! ! fi ! ! fi ! ! fi ! ! # BLAS in Alpha CXML library? ! if test $acx_blas_ok = no; then ! as_ac_Lib=`$as_echo "ac_cv_lib_cxml_$sgemm" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lcxml" >&5 ! $as_echo_n "checking for $sgemm in -lcxml... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcxml $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! return $sgemm (); ! ; ! return 0; ! } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! acx_blas_ok=yes;BLAS_LIBS="-lcxml" fi + fi ! # BLAS in Alpha DXML library? (now called CXML, see above) ! if test $acx_blas_ok = no; then ! as_ac_Lib=`$as_echo "ac_cv_lib_dxml_$sgemm" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -ldxml" >&5 ! $as_echo_n "checking for $sgemm in -ldxml... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-ldxml $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 22950,23012 **** int main () { ! if ((ac__type_new_ *) 0) ! return 0; ! if (sizeof (ac__type_new_)) ! return 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_type_long_double=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_type_long_double=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 - echo "${ECHO_T}$ac_cv_type_long_double" >&6; } ! # The cast to long int works around a bug in the HP C Compiler ! # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! # This bug is HP SR number 8606223364. ! { echo "$as_me:$LINENO: checking size of long double" >&5 ! echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } ! if test "${ac_cv_sizeof_long_double+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! if test "$cross_compiling" = yes; then ! # Depending upon the size, compute the lo and hi bounds. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef long double ac__type_sizeof_; #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 11560,11609 ---- int main () { ! return $sgemm (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! acx_blas_ok=yes;BLAS_LIBS="-ldxml" fi fi ! # BLAS in Sun Performance library? ! if test $acx_blas_ok = no; then ! if test "x$GCC" != xyes; then # only works with Sun CC ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5 ! $as_echo_n "checking for acosp in -lsunmath... " >&6; } ! if test "${ac_cv_lib_sunmath_acosp+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lsunmath $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char acosp (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 23018,23057 **** int main () { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; ! test_array [0] = 0 ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_lo=0 ac_mid=0 ! while :; do ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef long double ac__type_sizeof_; #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 11615,11655 ---- int main () { ! return acosp (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_sunmath_acosp=yes ! else ! ac_cv_lib_sunmath_acosp=no ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_acosp" >&5 ! $as_echo "$ac_cv_lib_sunmath_acosp" >&6; } ! if test "x$ac_cv_lib_sunmath_acosp" = x""yes; then : ! as_ac_Lib=`$as_echo "ac_cv_lib_sunperf_$sgemm" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsunperf" >&5 ! $as_echo_n "checking for $sgemm in -lsunperf... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lsunperf -lsunmath $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 23063,23119 **** int main () { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; ! test_array [0] = 0 ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=$ac_mid; break else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef long double ac__type_sizeof_; #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 11661,11714 ---- int main () { ! return $sgemm (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! BLAS_LIBS="-lsunperf -lsunmath" ! acx_blas_ok=yes ! fi fi ! fi ! fi ! # BLAS in SCSL library? (SGI/Cray Scientific Library) ! if test $acx_blas_ok = no; then ! as_ac_Lib=`$as_echo "ac_cv_lib_scs_$sgemm" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lscs" >&5 ! $as_echo_n "checking for $sgemm in -lscs... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lscs $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 23125,23164 **** int main () { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; ! test_array [0] = 0 ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=-1 ac_mid=-1 ! while :; do ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef long double ac__type_sizeof_; #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 11720,11769 ---- int main () { ! return $sgemm (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" ! else ! eval "$as_ac_Lib=no" ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! acx_blas_ok=yes; BLAS_LIBS="-lscs" ! fi ! ! fi ! ! # BLAS in SGIMATH library? ! if test $acx_blas_ok = no; then ! as_ac_Lib=`$as_echo "ac_cv_lib_complib.sgimath_$sgemm" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lcomplib.sgimath" >&5 ! $as_echo_n "checking for $sgemm in -lcomplib.sgimath... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcomplib.sgimath $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 23170,23236 **** int main () { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; ! test_array [0] = 0 ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_lo=$ac_mid; break else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_hi=`expr '(' $ac_mid ')' - 1` ! if test $ac_mid -le $ac_hi; then ! ac_lo= ac_hi= ! break ! fi ! ac_mid=`expr 2 '*' $ac_mid` fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_lo= ac_hi= fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! # Binary search between lo and hi bounds. ! while test "x$ac_lo" != "x$ac_hi"; do ! ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef long double ac__type_sizeof_; #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 11775,11824 ---- int main () { ! return $sgemm (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! acx_blas_ok=yes; BLAS_LIBS="-lcomplib.sgimath" fi fi ! # BLAS in IBM ESSL library? (requires generic BLAS lib, too) ! if test $acx_blas_ok = no; then ! as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5 ! $as_echo_n "checking for $sgemm in -lblas... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lblas $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 23242,23306 **** int main () { ! static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; ! test_array [0] = 0 ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_hi=$ac_mid else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_lo=`expr '(' $ac_mid ')' + 1` fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! done ! case $ac_lo in ! ?*) ac_cv_sizeof_long_double=$ac_lo;; ! '') if test "$ac_cv_type_long_double" = yes; then ! { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot compute sizeof (long double) ! See \`config.log' for more details." >&2;} ! { (exit 77); exit 77; }; } ! else ! ac_cv_sizeof_long_double=0 ! fi ;; ! esac else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! typedef long double ac__type_sizeof_; ! static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ! static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ! #include ! #include #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 11830,11872 ---- int main () { ! return $sgemm (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! as_ac_Lib=`$as_echo "ac_cv_lib_essl_$sgemm" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lessl" >&5 ! $as_echo_n "checking for $sgemm in -lessl... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lessl -lblas $FLIBS $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $sgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 23312,23411 **** int main () { ! ! FILE *f = fopen ("conftest.val", "w"); ! if (! f) ! return 1; ! if (((long int) (sizeof (ac__type_sizeof_))) < 0) ! { ! long int i = longval (); ! if (i != ((long int) (sizeof (ac__type_sizeof_)))) ! return 1; ! fprintf (f, "%ld\n", i); ! } ! else ! { ! unsigned long int i = ulongval (); ! if (i != ((long int) (sizeof (ac__type_sizeof_)))) ! return 1; ! fprintf (f, "%lu\n", i); ! } ! return ferror (f) || fclose (f) != 0; ! ; return 0; } _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! ac_cv_sizeof_long_double=`cat conftest.val` else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! if test "$ac_cv_type_long_double" = yes; then ! { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot compute sizeof (long double) ! See \`config.log' for more details." >&2;} ! { (exit 77); exit 77; }; } ! else ! ac_cv_sizeof_long_double=0 ! fi fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi ! rm -f conftest.val fi - { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 - echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } - - - - cat >>confdefs.h <<_ACEOF - #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double - _ACEOF - ! ### Checks for header files. ! { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 ! echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } ! if test "${ac_cv_header_stdc+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - #include - #include - #include - #include #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 11878,11929 ---- int main () { ! return $sgemm (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! acx_blas_ok=yes; BLAS_LIBS="-lessl -lblas" fi + fi ! fi ! # Generic BLAS library? ! if test $acx_blas_ok = no; then ! as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5 ! $as_echo_n "checking for $sgemm in -lblas... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lblas $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char $sgemm (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 23417,23668 **** int main () { ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_header_stdc=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_header_stdc=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - #include ! _ACEOF ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! $EGREP "memchr" >/dev/null 2>&1; then ! : else ! ac_cv_header_stdc=no ! fi ! rm -f conftest* fi ! if test $ac_cv_header_stdc = yes; then ! # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include _ACEOF ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! $EGREP "free" >/dev/null 2>&1; then ! : else ! ac_cv_header_stdc=no fi ! rm -f conftest* fi ! if test $ac_cv_header_stdc = yes; then ! # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. ! if test "$cross_compiling" = yes; then ! : else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! #include ! #if ((' ' & 0x0FF) == 0x020) ! # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') ! # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) ! #else ! # define ISLOWER(c) \ ! (('a' <= (c) && (c) <= 'i') \ ! || ('j' <= (c) && (c) <= 'r') \ ! || ('s' <= (c) && (c) <= 'z')) ! # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) ! #endif ! #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) ! int ! main () ! { ! int i; ! for (i = 0; i < 256; i++) ! if (XOR (islower (i), ISLOWER (i)) ! || toupper (i) != TOUPPER (i)) ! return 2; ! return 0; ! } _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ! : else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ( exit $ac_status ) ! ac_cv_header_stdc=no fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi - { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 - echo "${ECHO_T}$ac_cv_header_stdc" >&6; } - if test $ac_cv_header_stdc = yes; then ! cat >>confdefs.h <<\_ACEOF ! #define STDC_HEADERS 1 ! _ACEOF fi - ac_header_dirent=no - for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do - as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` - { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 - echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } - if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - #include - #include <$ac_hdr> ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! if ((DIR *) 0) ! return 0; ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! eval "$as_ac_Header=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! eval "$as_ac_Header=no" ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 ! _ACEOF ! ac_header_dirent=$ac_hdr; break fi ! done ! # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. ! if test $ac_header_dirent = dirent.h; then ! { echo "$as_me:$LINENO: checking for library containing opendir" >&5 ! echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } ! if test "${ac_cv_search_opendir+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_func_search_save_LIBS=$LIBS ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. --- 11935,12272 ---- int main () { ! return $sgemm (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! acx_blas_ok=yes; BLAS_LIBS="-lblas" ! fi fi ! LIBS="$acx_blas_save_LIBS" ! ! # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: ! if test x"$acx_blas_ok" = xyes; then ! # disable special action ! : else ! acx_blas_ok=no fi ! if test x$acx_blas_ok = xyes ; then ! ! ! ! ! # F77 call-compatibility checks ! if test "$cross_compiling" = yes ; then ! ! $as_echo "#define HAVE_BLAS 1" >>confdefs.h ! ! elif test x"$acx_blas_ok" = xyes; then ! save_acx_blas_f77_func_LIBS="$LIBS" ! LIBS="$BLAS_LIBS $LIBS" ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! ! # LSAME check (LOGICAL return values) ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LSAME is called correctly from Fortran" >&5 ! $as_echo_n "checking whether LSAME is called correctly from Fortran... " >&6; } ! if test "$cross_compiling" = yes; then : ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! as_fn_error "cannot run test program while cross compiling ! See \`config.log' for more details." "$LINENO" 5; } ! else ! cat > conftest.$ac_ext <<_ACEOF ! program main ! ! logical lsame,w ! external lsame ! character c1,c2 ! c1 = 'A' ! c2 = 'B' ! w = lsame(c1,c2) ! if (w) stop 1 ! w = lsame(c1,c1) ! if (.not. w) stop 1 + end _ACEOF ! if ac_fn_f77_try_run "$LINENO"; then : ! acx_blas_lsame_fcall_ok=yes else ! acx_blas_lsame_fcall_ok=no fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ ! conftest.$ac_objext conftest.beam conftest.$ac_ext ! fi ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blas_lsame_fcall_ok" >&5 ! $as_echo "$acx_blas_lsame_fcall_ok" >&6; } ! # ISAMAX check (INTEGER return values) ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ISAMAX is called correctly from Fortran" >&5 ! $as_echo_n "checking whether ISAMAX is called correctly from Fortran... " >&6; } ! if test "$cross_compiling" = yes; then : ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! as_fn_error "cannot run test program while cross compiling ! See \`config.log' for more details." "$LINENO" 5; } ! else ! cat > conftest.$ac_ext <<_ACEOF ! program main ! ! integer isamax,i ! external isamax ! real a(2) ! a(1) = 1e0 ! a(2) = -2e0 ! i = isamax(2,a,1) ! if (i.ne.2) stop 1 + end + _ACEOF + if ac_fn_f77_try_run "$LINENO"; then : + acx_blas_isamax_fcall_ok=yes + else + acx_blas_isamax_fcall_ok=no + fi + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blas_isamax_fcall_ok" >&5 ! $as_echo "$acx_blas_isamax_fcall_ok" >&6; } ! # SDOT check (REAL return values) ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SDOT is called correctly from Fortran" >&5 ! $as_echo_n "checking whether SDOT is called correctly from Fortran... " >&6; } ! if test "$cross_compiling" = yes; then : ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! as_fn_error "cannot run test program while cross compiling ! See \`config.log' for more details." "$LINENO" 5; } else ! cat > conftest.$ac_ext <<_ACEOF ! program main ! ! real sdot,a(1),b(1),w ! external sdot ! a(1) = 1e0 ! b(1) = 2e0 ! w = sdot(1,a,1,b,1) ! if (w .ne. a(1)*b(1)) stop 1 ! ! end _ACEOF ! if ac_fn_f77_try_run "$LINENO"; then : ! acx_blas_sdot_fcall_ok=yes ! else ! acx_blas_sdot_fcall_ok=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ ! conftest.$ac_objext conftest.beam conftest.$ac_ext ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blas_sdot_fcall_ok" >&5 ! $as_echo "$acx_blas_sdot_fcall_ok" >&6; } ! # DDOT check (DOUBLE return values) ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DDOT is called correctly from Fortran" >&5 ! $as_echo_n "checking whether DDOT is called correctly from Fortran... " >&6; } ! if test "$cross_compiling" = yes; then : ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! as_fn_error "cannot run test program while cross compiling ! See \`config.log' for more details." "$LINENO" 5; } ! else ! cat > conftest.$ac_ext <<_ACEOF ! program main ! ! double precision ddot,a(1),b(1),w ! external ddot ! a(1) = 1d0 ! b(1) = 2d0 ! w = ddot(1,a,1,b,1) ! if (w .ne. a(1)*b(1)) stop 1 ! ! end _ACEOF ! if ac_fn_f77_try_run "$LINENO"; then : ! acx_blas_ddot_fcall_ok=yes else ! acx_blas_ddot_fcall_ok=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ ! conftest.$ac_objext conftest.beam conftest.$ac_ext ! fi ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blas_ddot_fcall_ok" >&5 ! $as_echo "$acx_blas_ddot_fcall_ok" >&6; } ! # CDOTU check (COMPLEX return values) ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CDOTU is called correctly from Fortran" >&5 ! $as_echo_n "checking whether CDOTU is called correctly from Fortran... " >&6; } ! if test "$cross_compiling" = yes; then : ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! as_fn_error "cannot run test program while cross compiling ! See \`config.log' for more details." "$LINENO" 5; } ! else ! cat > conftest.$ac_ext <<_ACEOF ! program main ! ! complex cdotu,a(1),b(1),w ! external cdotu ! a(1) = cmplx(1e0,1e0) ! b(1) = cmplx(1e0,2e0) ! w = cdotu(1,a,1,b,1) ! if (w .ne. a(1)*b(1)) stop 1 ! end ! _ACEOF ! if ac_fn_f77_try_run "$LINENO"; then : ! acx_blas_cdotu_fcall_ok=yes ! else ! acx_blas_cdotu_fcall_ok=no fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ ! conftest.$ac_objext conftest.beam conftest.$ac_ext fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blas_cdotu_fcall_ok" >&5 + $as_echo "$acx_blas_cdotu_fcall_ok" >&6; } + # ZDOTU check (DOUBLE COMPLEX return values) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ZDOTU is called correctly from Fortran" >&5 + $as_echo_n "checking whether ZDOTU is called correctly from Fortran... " >&6; } + if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + as_fn_error "cannot run test program while cross compiling + See \`config.log' for more details." "$LINENO" 5; } + else + cat > conftest.$ac_ext <<_ACEOF + program main + + double complex zdotu,a(1),b(1),w + external zdotu + a(1) = dcmplx(1d0,1d0) + b(1) = dcmplx(1d0,2d0) + w = zdotu(1,a,1,b,1) + if (w .ne. a(1)*b(1)) stop 1 + end + _ACEOF + if ac_fn_f77_try_run "$LINENO"; then : + acx_blas_zdotu_fcall_ok=yes + else + acx_blas_zdotu_fcall_ok=no fi + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blas_zdotu_fcall_ok" >&5 ! $as_echo "$acx_blas_zdotu_fcall_ok" >&6; } ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! # if any of the tests failed, reject the BLAS library ! if test $acx_blas_lsame_fcall_ok = yes \ ! -a $acx_blas_sdot_fcall_ok = yes \ ! -a $acx_blas_ddot_fcall_ok = yes \ ! -a $acx_blas_cdotu_fcall_ok = yes \ ! -a $acx_blas_zdotu_fcall_ok = yes ; then ! acx_blas_f77_func_ok=yes; + $as_echo "#define HAVE_BLAS 1" >>confdefs.h + + else + acx_blas_f77_func_ok=no; + acx_blas_ok=no; BLAS_LIBS= + fi + LIBS="$save_acx_blas_f77_func_LIBS" fi + fi + if test x$acx_blas_ok = xno ; then + BLAS_DIR="blas" + fi + acx_lapack_ok=no ! # Check whether --with-lapack was given. ! if test "${with_lapack+set}" = set; then : ! withval=$with_lapack; ! fi ! case $with_lapack in ! yes | "") ;; ! no) acx_lapack_ok=disable ;; ! -* | */* | *.a | *.so | *.so.* | *.o) LAPACK_LIBS="$with_lapack" ;; ! *) LAPACK_LIBS="-l$with_lapack" ;; ! esac ! # Get fortran linker name of LAPACK function to check for. ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! case $ac_cv_f77_mangling in ! upper*) ac_val="CHEEV" ;; ! lower*) ac_val="cheev" ;; ! *) ac_val="unknown" ;; esac ! case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac ! cheev="$ac_val" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! # We cannot use LAPACK if BLAS is not found ! if test "x$acx_blas_ok" != xyes; then ! acx_lapack_ok=noblas ! LAPACK_LIBS="" fi ! # First, check LAPACK_LIBS environment variable ! if test "x$LAPACK_LIBS" != x; then ! save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS" ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in $LAPACK_LIBS" >&5 ! $as_echo_n "checking for $cheev in $LAPACK_LIBS... " >&6; } ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. *************** *** 23671,23677 **** #ifdef __cplusplus extern "C" #endif ! char opendir (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 12275,12281 ---- #ifdef __cplusplus extern "C" #endif ! char $cheev (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 23683,23760 **** int main () { ! return opendir (); ; return 0; } _ACEOF ! for ac_lib in '' dir; do ! if test -z "$ac_lib"; then ! ac_res="none required" ! else ! ac_res=-l$ac_lib ! LIBS="-l$ac_lib $ac_func_search_save_LIBS" ! fi ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_search_opendir=$ac_res else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext ! if test "${ac_cv_search_opendir+set}" = set; then ! break fi ! done ! if test "${ac_cv_search_opendir+set}" = set; then ! : ! else ! ac_cv_search_opendir=no fi ! rm conftest.$ac_ext ! LIBS=$ac_func_search_save_LIBS fi - { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 - echo "${ECHO_T}$ac_cv_search_opendir" >&6; } - ac_res=$ac_cv_search_opendir - if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi else ! { echo "$as_me:$LINENO: checking for library containing opendir" >&5 ! echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } ! if test "${ac_cv_search_opendir+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! ac_func_search_save_LIBS=$LIBS ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. --- 12287,12338 ---- int main () { ! return $cheev (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! acx_lapack_ok=yes else ! LAPACK_LIBS="" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_lapack_ok" >&5 ! $as_echo "$acx_lapack_ok" >&6; } ! LIBS="$save_LIBS" ! if test $acx_lapack_ok = no; then ! LAPACK_LIBS="" ! fi fi ! ! # LAPACK linked to by default? (is sometimes included in BLAS lib) ! if test $acx_lapack_ok = no; then ! save_LIBS="$LIBS"; LIBS="$LIBS $BLAS_LIBS $FLIBS" ! as_ac_var=`$as_echo "ac_cv_func_$cheev" | $as_tr_sh` ! ac_fn_c_check_func "$LINENO" "$cheev" "$as_ac_var" ! eval as_val=\$$as_ac_var ! if test "x$as_val" = x""yes; then : ! acx_lapack_ok=yes fi + LIBS="$save_LIBS" fi + # Generic LAPACK library? + for lapack in lapack lapack_rs6k; do + if test $acx_lapack_ok = no; then + save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" + as_ac_Lib=`$as_echo "ac_cv_lib_$lapack''_$cheev" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in -l$lapack" >&5 + $as_echo_n "checking for $cheev in -l$lapack... " >&6; } + if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-l$lapack $FLIBS $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. *************** *** 23763,23769 **** #ifdef __cplusplus extern "C" #endif ! char opendir (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 12341,12347 ---- #ifdef __cplusplus extern "C" #endif ! char $cheev (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 23775,23857 **** int main () { ! return opendir (); ; return 0; } _ACEOF ! for ac_lib in '' x; do ! if test -z "$ac_lib"; then ! ac_res="none required" ! else ! ac_res=-l$ac_lib ! LIBS="-l$ac_lib $ac_func_search_save_LIBS" ! fi ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_search_opendir=$ac_res else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext ! if test "${ac_cv_search_opendir+set}" = set; then ! break fi done ! if test "${ac_cv_search_opendir+set}" = set; then ! : else ! ac_cv_search_opendir=no ! fi ! rm conftest.$ac_ext ! LIBS=$ac_func_search_save_LIBS fi - { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 - echo "${ECHO_T}$ac_cv_search_opendir" >&6; } - ac_res=$ac_cv_search_opendir - if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi fi ! { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 ! echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } ! if test "${ac_cv_header_time+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - #include - #include - #include #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 12353,12461 ---- int main () { ! return $cheev (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi + eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 + $as_echo "$ac_res" >&6; } + eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + acx_lapack_ok=yes; LAPACK_LIBS="-l$lapack" + fi + + LIBS="$save_LIBS" + fi done ! ! ! ! # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: ! if test x"$acx_lapack_ok" = xyes; then ! BLAS_LIBS="$LAPACK_LIBS $BLAS_LIBS" ! : else ! acx_lapack_ok=no ! LAPACK_DIR="lapack" fi + + + + if test "x$acx_blas_f77_func_ok" = "xno"; then + warn_blas_f77_incompatible="A BLAS library was detected but found incompatible with your Fortran 77 compiler. The reference BLAS implementation will be used. To improve performance, consider using a different Fortran compiler or a switch like -ff2c to make your Fortran compiler use a calling convention compatible with the way your BLAS library was compiled, or use a different BLAS library." + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_blas_f77_incompatible" >&5 + $as_echo "$as_me: WARNING: $warn_blas_f77_incompatible" >&2;} fi + QRUPDATE_LIBS= + + + # Check for the qrupdate library + + # Check whether --with-qrupdate was given. + if test "${with_qrupdate+set}" = set; then : + withval=$with_qrupdate; with_qrupdate=$withval + else + with_qrupdate=yes fi ! ! warn_qrupdate="qrupdate not found. The QR & Cholesky updating functions will be slow." ! if test "$with_qrupdate" = yes; then ! with_qrupdate=no ! if $have_fortran_compiler; then ! ac_ext=f ! ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! case $ac_cv_f77_mangling in ! upper*) ac_val="SQR1UP" ;; ! lower*) ac_val="sqr1up" ;; ! *) ac_val="unknown" ;; ! esac ! case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac ! ! sqr1up="$ac_val" ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! elif $have_f2c; then ! sqr1up=sqr1up_ ! fi ! as_ac_Lib=`$as_echo "ac_cv_lib_qrupdate_$sqr1up" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sqr1up in -lqrupdate" >&5 ! $as_echo_n "checking for $sqr1up in -lqrupdate... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lqrupdate $BLAS_LIBS $FLIBS $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char $sqr1up (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 23863,23931 **** int main () { ! if ((struct tm *) 0) ! return 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_header_time=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_header_time=no fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 - echo "${ECHO_T}$ac_cv_header_time" >&6; } - if test $ac_cv_header_time = yes; then ! cat >>confdefs.h <<\_ACEOF ! #define TIME_WITH_SYS_TIME 1 ! _ACEOF fi ! { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 ! echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } ! if test "${ac_cv_header_sys_wait_h+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - #include - #include - #ifndef WEXITSTATUS - # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) - #endif - #ifndef WIFEXITED - # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) - #endif #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 12467,12549 ---- int main () { ! return $sqr1up (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : ! QRUPDATE_LIBS="-lqrupdate"; with_qrupdate=yes fi ! if test "$with_qrupdate" = yes; then ! ! $as_echo "#define HAVE_QRUPDATE 1" >>confdefs.h + warn_qrupdate= + fi fi + if test -n "$warn_qrupdate"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_qrupdate" >&5 + $as_echo "$as_me: WARNING: $warn_qrupdate" >&2;} + fi + + # Check for AMD library + AMD_LIBS= + ! ! # Check whether --with-amd was given. ! if test "${with_amd+set}" = set; then : ! withval=$with_amd; with_amd=$withval else ! with_amd=yes ! fi ! ! ! warn_amd="AMD not found. This will result in some lack of functionality for sparse matrices." ! if test "$with_amd" = yes; then ! with_amd=no ! for ac_header in suitesparse/amd.h ufsparse/amd.h amd/amd.h amd.h ! do : ! as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ! ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" ! eval as_val=\$$as_ac_Header ! if test "x$as_val" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd_postorder in -lamd" >&5 ! $as_echo_n "checking for amd_postorder in -lamd... " >&6; } ! if test "${ac_cv_lib_amd_amd_postorder+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lamd $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char amd_postorder (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 23937,25233 **** int main () { ! int s; ! wait (&s); ! s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_header_sys_wait_h=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_header_sys_wait_h=no fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 ! echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } ! if test $ac_cv_header_sys_wait_h = yes; then ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_SYS_WAIT_H 1 ! _ACEOF ! fi ! ### C headers ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! for ac_header in assert.h curses.h direct.h dlfcn.h fcntl.h float.h \ ! floatingpoint.h grp.h ieeefp.h inttypes.h limits.h locale.h memory.h nan.h \ ! ncurses.h poll.h pthread.h pwd.h stdint.h stdlib.h string.h sunmath.h sys/ioctl.h \ ! sys/param.h sys/poll.h sys/resource.h sys/select.h sys/stat.h \ ! sys/time.h sys/times.h sys/types.h sys/utsname.h sys/utime.h termcap.h \ ! unistd.h utime.h varargs.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - $ac_includes_default - #include <$ac_header> - _ACEOF - rm -f conftest.$ac_objext - if { (ac_try="$ac_compile" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_header_compiler=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no ! fi ! ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! fi ! ! done ! ! ! ### C++ headers ! ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! ! for ac_header in sstream ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 - echo "${ECHO_T}$ac_header_compiler" >&6; } ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_header_preproc=no ! fi - rm -f conftest.err conftest.$ac_ext - { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 - echo "${ECHO_T}$ac_header_preproc" >&6; } - # So? What about this header? - case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 - echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 - echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 - echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 - echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 - echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 - echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 - echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 - echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! eval "$as_ac_Header=\$ac_header_preproc" fi - ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 - echo "${ECHO_T}$ac_res" >&6; } ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF ! fi ! ! done ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! have_termios_h=no ! for ac_header in termios.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_header_preproc=no ! fi ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! have_termios_h=yes fi ! done ! for ac_header in termio.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_header_compiler=no fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> ! _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_header_preproc=no fi ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! eval "$as_ac_Header=\$ac_header_preproc" fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! have_termio_h=yes ! else ! have_termio_h=no fi done ! ! for ac_header in sgtty.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 - echo "${ECHO_T}$ac_header_compiler" >&6; } - # Is the header present? - { echo "$as_me:$LINENO: checking $ac_header presence" >&5 - echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - #include <$ac_header> - _ACEOF - if { (ac_try="$ac_cpp conftest.$ac_ext" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_header_preproc=no ! fi - rm -f conftest.err conftest.$ac_ext - { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 - echo "${ECHO_T}$ac_header_preproc" >&6; } - # So? What about this header? - case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 - echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 - echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 - echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 - echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 - echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 - echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 - echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 - echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! eval "$as_ac_Header=\$ac_header_preproc" fi - ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 - echo "${ECHO_T}$ac_res" >&6; } ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF - have_sgtty_h=yes - else - have_sgtty_h=no - fi ! done ! ! ! for ac_header in glob.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - $ac_includes_default - #include <$ac_header> - _ACEOF - rm -f conftest.$ac_objext - if { (ac_try="$ac_compile" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_header_compiler=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no fi ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! eval "$as_ac_Header=\$ac_header_preproc" ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! have_glob_h=yes ! else ! have_glob_h=no fi done ! ! for ac_header in fnmatch.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #include <$ac_header> ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 - echo "${ECHO_T}$ac_header_compiler" >&6; } - # Is the header present? - { echo "$as_me:$LINENO: checking $ac_header presence" >&5 - echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - #include <$ac_header> - _ACEOF - if { (ac_try="$ac_cpp conftest.$ac_ext" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_header_preproc=no ! fi - rm -f conftest.err conftest.$ac_ext - { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 - echo "${ECHO_T}$ac_header_preproc" >&6; } - # So? What about this header? - case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 - echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 - echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 - echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 - echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 - echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 - echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 - echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 - echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! eval "$as_ac_Header=\$ac_header_preproc" fi - ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 - echo "${ECHO_T}$ac_res" >&6; } ! fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF - have_fnmatch_h=yes - else - have_fnmatch_h=no - fi - - done ! ! for ac_header in conio.h ! do ! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - $ac_includes_default - #include <$ac_header> - _ACEOF - rm -f conftest.$ac_objext - if { (ac_try="$ac_compile" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_header_compiler=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! # Is the header present? ! { echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include <$ac_header> _ACEOF ! if { (ac_try="$ac_cpp conftest.$ac_ext" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } >/dev/null && { ! test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ! test ! -s conftest.err ! }; then ! ac_header_preproc=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_preproc=no fi ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ! ;; ! esac ! { echo "$as_me:$LINENO: checking for $ac_header" >&5 ! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! eval "$as_ac_Header=\$ac_header_preproc" fi ! ac_res=`eval echo '${'$as_ac_Header'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } fi ! if test `eval echo '${'$as_ac_Header'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! have_conio_h=yes ! else ! have_conio_h=no fi ! done ! - ### I'm told that termios.h is broken on NeXT systems. - case "$canonical_host_type" in - *-*-nextstep*) - if test "$have_termios_h" = yes; then - { echo "$as_me:$LINENO: WARNING: Ignoring termios.h on NeXT systems." >&5 - echo "$as_me: WARNING: Ignoring termios.h on NeXT systems." >&2;} - have_termios_h=no - fi - ;; - esac ! if test "$have_termios_h" = yes \ ! || test "$have_termio_h" = yes \ ! || test "$have_sgtty_h" = yes; then ! true else ! { echo "$as_me:$LINENO: WARNING: I couldn't find termios.h, termio.h, or sgtty.h!" >&5 ! echo "$as_me: WARNING: I couldn't find termios.h, termio.h, or sgtty.h!" >&2;} fi - LIBGLOB= ! if test "$have_fnmatch_h" = yes && test "$have_glob_h" = yes; then ! for ac_func in fnmatch ! do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - /* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ - #define $ac_func innocuous_$ac_func - - /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - - #ifdef __STDC__ - # include - #else - # include - #endif - - #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC --- 12555,13145 ---- int main () { ! return amd_postorder (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_amd_amd_postorder=yes else ! ac_cv_lib_amd_amd_postorder=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_amd_amd_postorder" >&5 ! $as_echo "$ac_cv_lib_amd_amd_postorder" >&6; } ! if test "x$ac_cv_lib_amd_amd_postorder" = x""yes; then : ! AMD_LIBS="-lamd"; with_amd=yes fi + if test "$with_amd" = yes; then ! $as_echo "#define HAVE_AMD 1" >>confdefs.h + warn_amd= + fi + break + fi + done + fi + if test -n "$warn_amd"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_amd" >&5 + $as_echo "$as_me: WARNING: $warn_amd" >&2;} + fi + # Check for CAMD library + CAMD_LIBS= ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for camd_postorder in -lcamd" >&5 ! $as_echo_n "checking for camd_postorder in -lcamd... " >&6; } ! if test "${ac_cv_lib_camd_camd_postorder+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcamd $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char camd_postorder (); ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! return camd_postorder (); ! ; ! return 0; ! } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_camd_camd_postorder=yes else ! ac_cv_lib_camd_camd_postorder=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_camd_camd_postorder" >&5 ! $as_echo "$ac_cv_lib_camd_camd_postorder" >&6; } ! if test "x$ac_cv_lib_camd_camd_postorder" = x""yes; then : ! CAMD_LIBS="-lcamd"; with_camd=yes else ! with_camd=no fi ! # Check for UMFPACK library. ! UMFPACK_LIBS= ! # Check whether --with-umfpack was given. ! if test "${with_umfpack+set}" = set; then : ! withval=$with_umfpack; with_umfpack=$withval else ! with_umfpack=yes fi ! ! warn_umfpack="UMFPACK not found. This will result in some lack of functionality for sparse matrices." ! if test "$with_umfpack" = yes && test "$with_amd" = yes; then ! with_umfpack=no ! for ac_header in suitesparse/umfpack.h ufsparse/umfpack.h umfpack/umfpack.h umfpack.h ! do : ! as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ! ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" ! eval as_val=\$$as_ac_Header ! if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umfpack_zi_get_determinant in -lumfpack" >&5 ! $as_echo_n "checking for umfpack_zi_get_determinant in -lumfpack... " >&6; } ! if test "${ac_cv_lib_umfpack_umfpack_zi_get_determinant+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lumfpack $AMD_LIBS $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char umfpack_zi_get_determinant (); + #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! return umfpack_zi_get_determinant (); ! ; ! return 0; ! } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_umfpack_umfpack_zi_get_determinant=yes else ! ac_cv_lib_umfpack_umfpack_zi_get_determinant=no fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_check_lib_save_LIBS + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umfpack_umfpack_zi_get_determinant" >&5 + $as_echo "$ac_cv_lib_umfpack_umfpack_zi_get_determinant" >&6; } + if test "x$ac_cv_lib_umfpack_umfpack_zi_get_determinant" = x""yes; then : ! UMFPACK_LIBS="-lumfpack"; with_umfpack=yes else ! ## Invalidate the cache. ! $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umfpack_zi_get_determinant in -lumfpack" >&5 ! $as_echo_n "checking for umfpack_zi_get_determinant in -lumfpack... " >&6; } ! if test "${ac_cv_lib_umfpack_umfpack_zi_get_determinant+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lumfpack $AMD_LIBS $BLAS_LIBS $FLIBS $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char umfpack_zi_get_determinant (); ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! return umfpack_zi_get_determinant (); ! ; ! return 0; ! } ! _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_umfpack_umfpack_zi_get_determinant=yes else ! ac_cv_lib_umfpack_umfpack_zi_get_determinant=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umfpack_umfpack_zi_get_determinant" >&5 + $as_echo "$ac_cv_lib_umfpack_umfpack_zi_get_determinant" >&6; } + if test "x$ac_cv_lib_umfpack_umfpack_zi_get_determinant" = x""yes; then : ! UMFPACK_LIBS="-lumfpack"; with_umfpack=yes ! else ! ## Invalidate the cache. ! $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umfpack_zi_get_determinant in -lumfpack" >&5 ! $as_echo_n "checking for umfpack_zi_get_determinant in -lumfpack... " >&6; } ! if test "${ac_cv_lib_umfpack_umfpack_zi_get_determinant+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lumfpack $AMD_LIBS -lcblas $BLAS_LIBS $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char umfpack_zi_get_determinant (); ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return umfpack_zi_get_determinant (); ! ; ! return 0; ! } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_umfpack_umfpack_zi_get_determinant=yes else ! ac_cv_lib_umfpack_umfpack_zi_get_determinant=no ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umfpack_umfpack_zi_get_determinant" >&5 ! $as_echo "$ac_cv_lib_umfpack_umfpack_zi_get_determinant" >&6; } ! if test "x$ac_cv_lib_umfpack_umfpack_zi_get_determinant" = x""yes; then : ! UMFPACK_LIBS="-lumfpack -lcblas"; with_umfpack=yes fi ! fi ! fi ! ! ! if test "$with_umfpack" = yes; then ! ! $as_echo "#define HAVE_UMFPACK 1" >>confdefs.h ! ! OLD_LIBS=$LIBS ! LIBS="$LIBS $UMFPACK_LIBS $AMD_LIBS $BLAS_LIBS $FLIBS" ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMFPACK seperate complex matrix and rhs split" >&5 ! $as_echo_n "checking for UMFPACK seperate complex matrix and rhs split... " >&6; } ! if test "${octave_cv_umfpack_seperate_split+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! if test "$cross_compiling" = yes; then : ! octave_cv_umfpack_seperate_split=no ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! ! #include ! #if defined (HAVE_UFSPARSE_UMFPACK_h) ! #include ! #elif defined (HAVE_UMFPACK_UMFPACK_H) ! #include ! #elif defined (HAVE_UMFPACK_H) ! #include ! #endif ! int n = 5; ! int Ap[] = {0, 2, 5, 9, 10, 12}; ! int Ai[] = {0, 1, 0, 2, 4, 1, 2, 3, 4, 2, 1, 4}; ! double Ax[] = {2., 0., 3., 0., 3., 0., -1., 0., 4., 0., 4., 0., ! -3., 0., 1., 0., 2., 0., 2., 0., 6., 0., 1., 0.}; ! double br[] = {8., 45., -3., 3., 19.}; ! double bi[] = {0., 0., 0., 0., 0.}; ! int main (void) ! { ! double *null = (double *) NULL ; ! double *x = (double *)malloc (2 * n * sizeof(double)); ! int i ; ! void *Symbolic, *Numeric ; ! (void) umfpack_zi_symbolic (n, n, Ap, Ai, Ax, null, &Symbolic, null, null) ; ! (void) umfpack_zi_numeric (Ap, Ai, Ax, null, Symbolic, &Numeric, null, null) ; ! umfpack_zi_free_symbolic (&Symbolic) ; ! (void) umfpack_zi_solve (0, Ap, Ai, Ax, null, x, null, br, bi, ! Numeric, null, null) ; ! umfpack_zi_free_numeric (&Numeric) ; ! for (i = 0; i < n; i++, x+=2) ! if (fabs(*x - i - 1.) > 1.e-13) ! return (1); ! return (0) ; ! } ! _ACEOF ! if ac_fn_c_try_run "$LINENO"; then : ! octave_cv_umfpack_seperate_split=yes ! else ! octave_cv_umfpack_seperate_split=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ ! conftest.$ac_objext conftest.beam conftest.$ac_ext fi ! fi ! if test "$cross_compiling" = yes; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_umfpack_seperate_split assumed for cross compilation" >&5 ! $as_echo "$octave_cv_umfpack_seperate_split assumed for cross compilation" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_umfpack_seperate_split" >&5 ! $as_echo "$octave_cv_umfpack_seperate_split" >&6; } fi ! if test "$octave_cv_umfpack_seperate_split" = yes; then ! ! $as_echo "#define UMFPACK_SEPARATE_SPLIT 1" >>confdefs.h fi ! ! LIBS=$OLD_LIBS ! TEXINFO_UMFPACK="@set HAVE_UMFPACK" ! warn_umfpack= ! fi ! break fi done ! fi ! if test -n "$warn_umfpack"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_umfpack" >&5 ! $as_echo "$as_me: WARNING: $warn_umfpack" >&2;} fi ! COLAMD_LIBS= ! # Check whether --with-colamd was given. ! if test "${with_colamd+set}" = set; then : ! withval=$with_colamd; with_colamd=$withval else ! with_colamd=yes fi ! ! warn_colamd="COLAMD not found. This will result in some lack of functionality for sparse matrices." ! if test "$with_colamd" = yes; then ! with_colamd=no ! for ac_header in suitesparse/colamd.h ufsparse/colamd.h colamd/colamd.h colamd.h ! do : ! as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ! ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" ! eval as_val=\$$as_ac_Header ! if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for colamd in -lcolamd" >&5 ! $as_echo_n "checking for colamd in -lcolamd... " >&6; } ! if test "${ac_cv_lib_colamd_colamd+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcolamd $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char colamd (); ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! return colamd (); ! ; ! return 0; ! } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_colamd_colamd=yes else ! ac_cv_lib_colamd_colamd=no ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_colamd_colamd" >&5 ! $as_echo "$ac_cv_lib_colamd_colamd" >&6; } ! if test "x$ac_cv_lib_colamd_colamd" = x""yes; then : ! COLAMD_LIBS="-lcolamd"; with_colamd=yes fi ! if test "$with_colamd" = yes; then ! $as_echo "#define HAVE_COLAMD 1" >>confdefs.h ! TEXINFO_COLAMD="@set HAVE_COLAMD" ! warn_colamd= ! fi ! break fi done ! fi ! if test -n "$warn_colamd"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_colamd" >&5 ! $as_echo "$as_me: WARNING: $warn_colamd" >&2;} fi ! CCOLAMD_LIBS= ! # Check whether --with-ccolamd was given. ! if test "${with_ccolamd+set}" = set; then : ! withval=$with_ccolamd; with_ccolamd=$withval else ! with_ccolamd=yes fi ! ! warn_ccolamd="CCOLAMD not found. This will result in some lack of functionality for sparse matrices." ! if test "$with_ccolamd" = yes; then ! with_ccolamd=no ! for ac_header in suitesparse/ccolamd.h ufsparse/ccolamd.h ccolamd/ccolamd.h ccolamd.h ! do : ! as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ! ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" ! eval as_val=\$$as_ac_Header ! if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccolamd in -lccolamd" >&5 ! $as_echo_n "checking for ccolamd in -lccolamd... " >&6; } ! if test "${ac_cv_lib_ccolamd_ccolamd+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lccolamd $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char ccolamd (); ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! return ccolamd (); ! ; ! return 0; ! } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_ccolamd_ccolamd=yes else ! ac_cv_lib_ccolamd_ccolamd=no ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccolamd_ccolamd" >&5 ! $as_echo "$ac_cv_lib_ccolamd_ccolamd" >&6; } ! if test "x$ac_cv_lib_ccolamd_ccolamd" = x""yes; then : ! CCOLAMD_LIBS="-lccolamd"; with_ccolamd=yes fi ! if test "$with_ccolamd" = yes; then ! $as_echo "#define HAVE_CCOLAMD 1" >>confdefs.h ! warn_ccolamd= ! fi ! break fi ! ! done fi ! if test -n "$warn_ccolamd"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_ccolamd" >&5 ! $as_echo "$as_me: WARNING: $warn_ccolamd" >&2;} fi ! CHOLMOD_LIBS= ! # Check whether --with-cholmod was given. ! if test "${with_cholmod+set}" = set; then : ! withval=$with_cholmod; with_cholmod=$withval else ! with_cholmod=yes fi ! warn_cholmod="CHOLMOD not found. This will result in some lack of functionality for sparse matrices." ! if test "$with_cholmod" = yes && test "$with_colamd" = yes && ! test "$with_ccolamd" = yes && test "$with_amd" = yes; then ! with_cholmod=no ! for ac_header in suitesparse/cholmod.h ufsparse/cholmod.h cholmod/cholmod.h cholmod.h ! do : ! as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ! ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" ! eval as_val=\$$as_ac_Header ! if test "x$as_val" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cholmod_start in -lcholmod" >&5 ! $as_echo_n "checking for cholmod_start in -lcholmod... " >&6; } ! if test "${ac_cv_lib_cholmod_cholmod_start+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcholmod $CAMD_LIBS $AMD_LIBS $COLAMD_LIBS $CCOLAMD_LIBS $BLAS_LIBS $FLIBS $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC *************** *** 25235,25248 **** #ifdef __cplusplus extern "C" #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me ! #endif ! #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 13147,13153 ---- #ifdef __cplusplus extern "C" #endif ! char cholmod_start (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 25254,25315 **** int main () { ! return $ac_func (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_var=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! _ACEOF ! have_fnmatch=yes else ! { echo "$as_me:$LINENO: checking for fnmatch in -lglob" >&5 ! echo $ECHO_N "checking for fnmatch in -lglob... $ECHO_C" >&6; } ! if test "${ac_cv_lib_glob_fnmatch+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS ! LIBS="-lglob $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. --- 13159,13193 ---- int main () { ! return cholmod_start (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_cholmod_cholmod_start=yes else ! ac_cv_lib_cholmod_cholmod_start=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cholmod_cholmod_start" >&5 ! $as_echo "$ac_cv_lib_cholmod_cholmod_start" >&6; } ! if test "x$ac_cv_lib_cholmod_cholmod_start" = x""yes; then : ! CHOLMOD_LIBS="-lcholmod"; ! with_cholmod=yes else ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cholmod_start in -lcholmod" >&5 ! $as_echo_n "checking for cholmod_start in -lcholmod... " >&6; } ! if test "${ac_cv_lib_cholmod_cholmod_start+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcholmod $CAMD_LIBS $AMD_LIBS $COLAMD_LIBS $CCOLAMD_LIBS $BLAS_LIBS $FLIBS $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. *************** *** 25318,25324 **** #ifdef __cplusplus extern "C" #endif ! char fnmatch (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 13196,13202 ---- #ifdef __cplusplus extern "C" #endif ! char cholmod_start (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 25330,25412 **** int main () { ! return fnmatch (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_glob_fnmatch=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_glob_fnmatch=no fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_glob_fnmatch" >&5 ! echo "${ECHO_T}$ac_cv_lib_glob_fnmatch" >&6; } ! if test $ac_cv_lib_glob_fnmatch = yes; then ! have_fnmatch=yes; LIBGLOB=-lglob ! else ! have_fnmatch=no fi fi done ! for ac_func in glob ! do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! /* Define $ac_func to an innocuous variant, in case declares $ac_func. ! For example, HP-UX 11i declares gettimeofday. */ ! #define $ac_func innocuous_$ac_func - /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC --- 13208,13297 ---- int main () { ! return cholmod_start (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_cholmod_cholmod_start=yes else ! ac_cv_lib_cholmod_cholmod_start=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cholmod_cholmod_start" >&5 ! $as_echo "$ac_cv_lib_cholmod_cholmod_start" >&6; } ! if test "x$ac_cv_lib_cholmod_cholmod_start" = x""yes; then : ! CHOLMOD_LIBS="-lcholmod -cblas"; ! with_cholmod=yes ! fi ! fi + + if test "$with_cholmod" = yes; then + + $as_echo "#define HAVE_CHOLMOD 1" >>confdefs.h + + TEXINFO_CHOLMOD="@set HAVE_CHOLMOD" + warn_cholmod= + fi + break fi + done + fi + if test -n "$warn_cholmod"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_cholmod" >&5 + $as_echo "$as_me: WARNING: $warn_cholmod" >&2;} + fi ! ! ! CXSPARSE_LIBS= ! ! ! ! # Check whether --with-cxsparse was given. ! if test "${with_cxsparse+set}" = set; then : ! withval=$with_cxsparse; with_cxsparse=$withval else ! with_cxsparse=yes ! fi ! warn_cxsparse="CXSparse not found. This will result in some lack of functionality for sparse matrices." ! if test "$with_cxsparse" = yes; then ! with_cxsparse=no ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! for ac_header in suitesparse/cs.h ufsparse/cs.h cxsparse/cs.h cs.h ! do : ! as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ! ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" ! eval as_val=\$$as_ac_Header ! if test "x$as_val" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! _ACEOF ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cs_di_sqr in -lcxsparse" >&5 ! $as_echo_n "checking for cs_di_sqr in -lcxsparse... " >&6; } ! if test "${ac_cv_lib_cxsparse_cs_di_sqr+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lcxsparse $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC *************** *** 25414,25427 **** #ifdef __cplusplus extern "C" #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me ! #endif ! #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 13299,13305 ---- #ifdef __cplusplus extern "C" #endif ! char cs_di_sqr (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 25433,25494 **** int main () { ! return $ac_func (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! eval "$as_ac_var=no" fi ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! _ACEOF ! have_glob=yes else ! { echo "$as_me:$LINENO: checking for glob in -lglob" >&5 ! echo $ECHO_N "checking for glob in -lglob... $ECHO_C" >&6; } ! if test "${ac_cv_lib_glob_glob+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS ! LIBS="-lglob $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. --- 13311,13382 ---- int main () { ! return cs_di_sqr (); ; return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : ! ac_cv_lib_cxsparse_cs_di_sqr=yes else ! ac_cv_lib_cxsparse_cs_di_sqr=no ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cxsparse_cs_di_sqr" >&5 ! $as_echo "$ac_cv_lib_cxsparse_cs_di_sqr" >&6; } ! if test "x$ac_cv_lib_cxsparse_cs_di_sqr" = x""yes; then : ! CXSPARSE_LIBS="-lcxsparse"; with_cxsparse=yes ! fi ! if test "$with_cxsparse" = yes; then ! ! $as_echo "#define HAVE_CXSPARSE 1" >>confdefs.h ! ! warn_cxsparse= ! fi ! break fi ! done ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! fi ! if test -n "$warn_cxsparse"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_cxsparse" >&5 ! $as_echo "$as_me: WARNING: $warn_cxsparse" >&2;} ! fi ! ! ARPACK_LIBS= ! ! ! ! # Check whether --with-arpack was given. ! if test "${with_arpack+set}" = set; then : ! withval=$with_arpack; with_arpack=$withval else + with_arpack=yes + fi ! ! warn_arpack="arpack not found. This will result in a lack of the eigs function." ! if test "$with_arpack" = yes; then ! with_arpack=no ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F77_FUNC(dseupd,DSEUPD) in -larpack" >&5 ! $as_echo_n "checking for F77_FUNC(dseupd,DSEUPD) in -larpack... " >&6; } ! if test "${ac_cv_lib_arpack_F77_FUNC_dseupd_DSEUPD_+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS ! LIBS="-larpack $LAPACK_LIBS $FLIBS $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. *************** *** 25497,25503 **** #ifdef __cplusplus extern "C" #endif ! char glob (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 13385,13391 ---- #ifdef __cplusplus extern "C" #endif ! char F77_FUNC(dseupd,DSEUPD) (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 25509,25635 **** int main () { ! return glob (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_glob_glob=yes - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_glob_glob=no - fi - - rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS=$ac_check_lib_save_LIBS - fi - { echo "$as_me:$LINENO: result: $ac_cv_lib_glob_glob" >&5 - echo "${ECHO_T}$ac_cv_lib_glob_glob" >&6; } - if test $ac_cv_lib_glob_glob = yes; then - have_glob=yes; LIBGLOB=-lglob - else - have_glob=no - fi - - fi - done ! ! if test "$have_fnmatch" != yes || test "$have_glob" != yes; then ! { { echo "$as_me:$LINENO: error: You are required to have fnmatch and glob" >&5 ! echo "$as_me: error: You are required to have fnmatch and glob" >&2;} ! { (exit 1); exit 1; }; } fi else ! { { echo "$as_me:$LINENO: error: You are required to have fnmatch.h and glob.h" >&5 ! echo "$as_me: error: You are required to have fnmatch.h and glob.h" >&2;} ! { (exit 1); exit 1; }; } fi ! ### Checks for functions and variables. ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! --- 13397,13764 ---- int main () { ! return F77_FUNC(dseupd,DSEUPD) (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_arpack_F77_FUNC_dseupd_DSEUPD_=yes ! else ! ac_cv_lib_arpack_F77_FUNC_dseupd_DSEUPD_=no ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_arpack_F77_FUNC_dseupd_DSEUPD_" >&5 ! $as_echo "$ac_cv_lib_arpack_F77_FUNC_dseupd_DSEUPD_" >&6; } ! if test "x$ac_cv_lib_arpack_F77_FUNC_dseupd_DSEUPD_" = x""yes; then : ! ARPACK_LIBS="-larpack"; with_arpack=yes ! fi ! ! if test "$with_arpack" = yes; then ! ! $as_echo "#define HAVE_ARPACK 1" >>confdefs.h ! ! warn_arpack= ! fi ! fi ! if test -n "$warn_arpack"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_arpack" >&5 ! $as_echo "$as_me: WARNING: $warn_arpack" >&2;} ! fi ! ! ### Handle shared library options. ! ! ### Enable creation of static libraries. ! ! # Check whether --enable-static was given. ! if test "${enable_static+set}" = set; then : ! enableval=$enable_static; if test "$enableval" = no; then STATIC_LIBS=false; ! else STATIC_LIBS=true; fi ! else ! STATIC_LIBS=false ! fi ! ! ! ! ### Enable creation of shared libraries. Currently only works with ! ### gcc on some systems. ! ! # Check whether --enable-shared was given. ! if test "${enable_shared+set}" = set; then : ! enableval=$enable_shared; if test "$enableval" = no; then SHARED_LIBS=false; ! else SHARED_LIBS=true; fi ! else ! SHARED_LIBS=true ! fi ! ! ! ! ### Enable dynamic linking. --enable-shared implies this, so ! ### --enable-dl is only need if you are only building static libraries ! ### and want to try dynamic linking too (works on some systems, for ! ### example, OS X and Windows). ! ! # Check whether --enable-dl was given. ! if test "${enable_dl+set}" = set; then : ! enableval=$enable_dl; if test "$enableval" = no; then ENABLE_DYNAMIC_LINKING=false; ! else ENABLE_DYNAMIC_LINKING=true; fi ! else ! ENABLE_DYNAMIC_LINKING=true ! fi ! ! ! if $STATIC_LIBS || $SHARED_LIBS; then ! true ! else ! as_fn_error "You can't disable building static AND shared libraries!" "$LINENO" 5 ! fi ! ! # Check whether --enable-rpath was given. ! if test "${enable_rpath+set}" = set; then : ! enableval=$enable_rpath; if test "$enableval" = no; then use_rpath=false; ! else ! use_rpath=true ! if test "$enableval" = yes; then true; ! else enable_rpath_arg="$enableval"; fi ! fi ! else ! use_rpath=true ! fi ! ! ! CPICFLAG=-fPIC ! CXXPICFLAG=-fPIC ! FPICFLAG=-fPIC ! SHLEXT=so ! SHLLIB='$(SHLEXT)' ! SHLBIN= ! SHLEXT_VER='$(SHLEXT).$(version)' ! SHLLIB_VER='$(SHLLIB).$(version)' ! SHLBIN_VER='$(SHLBIN).$(version)' ! SHLLINKEXT= ! LIBPRE=lib ! SHLPRE=lib ! SHLLIBPRE=lib ! SHLBINPRE=lib ! SH_LD='$(CXX)' ! SH_LDFLAGS=-shared ! DL_LD='$(SH_LD)' ! DL_LDFLAGS='$(SH_LDFLAGS)' ! MKOCTFILE_DL_LDFLAGS='$(DL_LDFLAGS)' ! SONAME_FLAGS= ! RLD_FLAG= ! NO_OCT_FILE_STRIP=false ! TEMPLATE_AR='$(AR)' ! TEMPLATE_ARFLAGS="$ARFLAGS" ! CRUFT_DLL_DEFS= ! OCTAVE_DLL_DEFS= ! OCTINTERP_DLL_DEFS= ! OCTGRAPHICS_DLL_DEFS= ! library_path_var=LD_LIBRARY_PATH ! SCRIPTS_EXE_SUFFIX= ! case "$canonical_host_type" in ! *-*-386bsd* | *-*-netbsd*) ! SH_LD=ld ! SH_LDFLAGS=-Bshareable ! ;; ! *-*-openbsd*) ! SH_LDFLAGS='-shared -fPIC' ! ;; ! *-*-freebsd*) ! SH_LDFLAGS="-shared -Wl,-x" ! RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)' ! ;; ! alpha*-dec-osf*) ! CPICFLAG= ! CXXPICFLAG= ! FPICFLAG= ! SH_LDFLAGS="-shared -Wl,-expect_unresolved -Wl,'*'" ! RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)' ! ;; ! *-*-darwin*) ! DL_LDFLAGS='-bundle -bundle_loader $(TOPDIR)/src/octave $(LDFLAGS)' ! MKOCTFILE_DL_LDFLAGS='-bundle -bundle_loader $$BINDIR/octave-$$OCTAVE_VERSION$$EXEEXT' ! SH_LDFLAGS='-dynamiclib -single_module $(LDFLAGS)' ! case "$canonical_host_type" in ! powerpc-*) ! CXXPICFLAG= ! CPICFLAG= ! FPICFLAG= ! ;; ! esac ! SHLEXT=dylib ! SHLLIB='$(SHLEXT)' ! SHLEXT_VER='$(version).$(SHLEXT)' ! SHLLIB_VER='$(version).$(SHLLIB)' ! NO_OCT_FILE_STRIP=true ! SONAME_FLAGS='-install_name $(octlibdir)/$@' ! library_path_var=DYLD_LIBRARY_PATH ! ;; ! *-*-cygwin*) ! CPICFLAG= ! CXXPICFLAG= ! FPICFLAG= ! LIBPRE=lib ! SHLPRE=cyg ! SHLBINPRE=cyg ! SHLEXT=dll ! SHLLIB=dll.a ! SHLBIN=dll ! DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc" ! SH_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-auto-image-base" ! SONAME_FLAGS='-Wl,--out-implib=$(patsubst $(SHLPRE)%,$(LIBPRE)%,$@).a' ! ;; ! *-*-mingw*) ! CPICFLAG= ! CXXPICFLAG= ! FPICFLAG= ! SHLEXT=dll ! SHLLIB=dll.a ! SHLBIN=dll ! DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc" ! SH_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-auto-image-base" ! SONAME_FLAGS='-Wl,--out-implib=$@.a' ! library_path_var=PATH ! SCRIPTS_EXE_SUFFIX='$(EXEEXT)' ! ;; ! ! *-*-msdosmsvc) ! DL_LDFLAGS="-shared" ! CPICFLAG= ! CXXPICFLAG= ! FPICFLAG= ! SHLEXT=dll ! SHLLIB=lib ! SHLBIN=dll ! LIBPRE= ! SHLPRE= ! SHLLIBPRE= ! SHLBINPRE= ! SH_LDFLAGS="-shared" ! if test -n "`echo $CFLAGS | grep -e '-g'`" -o -n "`echo $CXXFLAGS | grep -e '-g'`"; then ! DL_LDFLAGS="$DL_LDFLAGS -g" ! SH_LDFLAGS="$SH_LDFLAGS -g" ! fi ! NO_OCT_FILE_STRIP=true ! library_path_var=PATH ! NO_OCT_FILE_STRIP=true ! ## Extra compilation flags. ! CRUFT_DLL_DEFS="-DCRUFT_DLL" ! OCTAVE_DLL_DEFS="-DOCTAVE_DLL" ! OCTINTERP_DLL_DEFS="-DOCTINTERP_DLL" ! OCTGRAPHICS_DLL_DEFS="-DOCTGRAPHICS_DLL" ! SCRIPTS_EXE_SUFFIX='$(EXEEXT)' ! ;; ! *-*-linux* | *-*-gnu*) ! MKOCTFILE_DL_LDFLAGS="-shared -Wl,-Bsymbolic" ! SONAME_FLAGS='-Wl,-soname -Wl,$@' ! RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)' ! ;; ! i[3456]86-*-sco3.2v5*) ! SONAME_FLAGS='-Wl,-h -Wl,$@' ! RLD_FLAG= ! SH_LDFLAGS=-G ! ;; ! rs6000-ibm-aix* | powerpc-ibm-aix*) ! CPICFLAG= ! CXXPICFLAG= ! FPICFLAG= ! library_path_var=LIBPATH ! ;; ! hppa*-hp-hpux*) ! if test "$ac_cv_f77_compiler_gnu" = yes; then ! FPICFLAG=-fPIC ! else ! FPICFLAG=+Z ! fi ! SHLEXT=sl ! SH_LDFLAGS="-shared -fPIC" ! RLD_FLAG='-Wl,+b -Wl,$(octlibdir)' ! library_path_var=SHLIB_PATH ! ;; ! ia64*-hp-hpux*) ! if test "$ac_cv_f77_compiler_gnu" = yes; then ! FPICFLAG=-fPIC ! else ! FPICFLAG=+Z ! fi ! SH_LDFLAGS="-shared -fPIC" ! RLD_FLAG='-Wl,+b -Wl,$(octlibdir)' ! ;; ! *-sgi-*) ! CPICFLAG= ! CXXPICFLAG= ! FPICFLAG= ! RLD_FLAG='-rpath $(octlibdir)' ! ;; ! sparc-sun-sunos4*) ! if test "$ac_cv_f77_compiler_gnu" = yes; then ! FPICFLAG=-fPIC ! else ! FPICFLAG=-PIC ! fi ! SH_LD=ld ! SH_LDFLAGS="-assert nodefinitions" ! RLD_FLAG='-L$(octlibdir)' ! ;; ! sparc-sun-solaris2* | i386-pc-solaris2*) ! if test "$ac_cv_f77_compiler_gnu" = yes; then ! FPICFLAG=-fPIC ! else ! FPICFLAG=-KPIC ! fi ! if test "$GCC" = yes; then ! CPICFLAG=-fPIC ! else ! CPICFLAG=-KPIC ! fi ! if test "$GXX" = yes; then ! CXXPICFLAG=-fPIC ! SH_LDFLAGS=-shared ! else ! CXXPICFLAG=-KPIC ! SH_LDFLAGS=-G ! fi ! RLD_FLAG='-R $(octlibdir)' ! ## Template closures in archive libraries need a different mechanism. ! if test "$GXX" = yes; then ! true ! else ! TEMPLATE_AR='$(CXX)' ! TEMPLATE_ARFLAGS="-xar -o" ! fi ! ;; esac ! if $use_rpath; then ! if test -n "$enable_rpath_arg"; then ! RLD_FLAG="$enable_rpath_arg" fi else ! RLD_FLAG="" fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining FPICFLAG to be $FPICFLAG" >&5 ! $as_echo "$as_me: defining FPICFLAG to be $FPICFLAG" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining CPICFLAG to be $CPICFLAG" >&5 ! $as_echo "$as_me: defining CPICFLAG to be $CPICFLAG" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining CXXPICFLAG to be $CXXPICFLAG" >&5 ! $as_echo "$as_me: defining CXXPICFLAG to be $CXXPICFLAG" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining SHLEXT to be $SHLEXT" >&5 ! $as_echo "$as_me: defining SHLEXT to be $SHLEXT" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining SHLLIB to be $SHLLIB" >&5 ! $as_echo "$as_me: defining SHLLIB to be $SHLLIB" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining SHLBIN to be $SHLBIN" >&5 ! $as_echo "$as_me: defining SHLBIN to be $SHLBIN" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining SHLEXT_VER to be $SHLEXT_VER" >&5 ! $as_echo "$as_me: defining SHLEXT_VER to be $SHLEXT_VER" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining SHLLIB_VER to be $SHLLIB_VER" >&5 ! $as_echo "$as_me: defining SHLLIB_VER to be $SHLLIB_VER" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining SHLBIN_VER to be $SHLBIN_VER" >&5 ! $as_echo "$as_me: defining SHLBIN_VER to be $SHLBIN_VER" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining SHLLINKEXT to be $SHLLINKEXT" >&5 ! $as_echo "$as_me: defining SHLLINKEXT to be $SHLLINKEXT" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining LIBPRE to be $LIBPRE" >&5 ! $as_echo "$as_me: defining LIBPRE to be $LIBPRE" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining SHLPRE to be $SHLPRE" >&5 ! $as_echo "$as_me: defining SHLPRE to be $SHLPRE" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining SHLLIBPRE to be $SHLLIBPRE" >&5 ! $as_echo "$as_me: defining SHLLIBPRE to be $SHLLIBPRE" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining SHLBINPRE to be $SHLBINPRE" >&5 ! $as_echo "$as_me: defining SHLBINPRE to be $SHLBINPRE" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining SH_LD to be $SH_LD" >&5 ! $as_echo "$as_me: defining SH_LD to be $SH_LD" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining SH_LDFLAGS to be $SH_LDFLAGS" >&5 ! $as_echo "$as_me: defining SH_LDFLAGS to be $SH_LDFLAGS" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining DL_LD to be $DL_LD" >&5 ! $as_echo "$as_me: defining DL_LD to be $DL_LD" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining DL_LDFLAGS to be $DL_LDFLAGS" >&5 ! $as_echo "$as_me: defining DL_LDFLAGS to be $DL_LDFLAGS" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining MKOCTFILE_DL_LDFLAGS to be $MKOCTFILE_DL_LDFLAGS" >&5 ! $as_echo "$as_me: defining MKOCTFILE_DL_LDFLAGS to be $MKOCTFILE_DL_LDFLAGS" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining SONAME_FLAGS to be $SONAME_FLAGS" >&5 ! $as_echo "$as_me: defining SONAME_FLAGS to be $SONAME_FLAGS" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining NO_OCT_FILE_STRIP to be $NO_OCT_FILE_STRIP" >&5 ! $as_echo "$as_me: defining NO_OCT_FILE_STRIP to be $NO_OCT_FILE_STRIP" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining RLD_FLAG to be $RLD_FLAG" >&5 ! $as_echo "$as_me: defining RLD_FLAG to be $RLD_FLAG" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining TEMPLATE_AR to be $TEMPLATE_AR" >&5 ! $as_echo "$as_me: defining TEMPLATE_AR to be $TEMPLATE_AR" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining TEMPLATE_ARFLAGS to be $TEMPLATE_ARFLAGS" >&5 ! $as_echo "$as_me: defining TEMPLATE_ARFLAGS to be $TEMPLATE_ARFLAGS" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining CRUFT_DLL_DEFS to be $CRUFT_DLL_DEFS" >&5 ! $as_echo "$as_me: defining CRUFT_DLL_DEFS to be $CRUFT_DLL_DEFS" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining OCTAVE_DLL_DEFS to be $OCTAVE_DLL_DEFS" >&5 ! $as_echo "$as_me: defining OCTAVE_DLL_DEFS to be $OCTAVE_DLL_DEFS" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining OCTINTERP_DLL_DEFS to be $OCTINTERP_DLL_DEFS" >&5 ! $as_echo "$as_me: defining OCTINTERP_DLL_DEFS to be $OCTINTERP_DLL_DEFS" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining OCTGRAPHICS_DLL_DEFS to be $OCTGRAPHICS_DLL_DEFS" >&5 ! $as_echo "$as_me: defining OCTGRAPHICS_DLL_DEFS to be $OCTGRAPHICS_DLL_DEFS" >&6;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining library_path_var to be $library_path_var" >&5 ! $as_echo "$as_me: defining library_path_var to be $library_path_var" >&6;} *************** *** 25661,25709 **** - for ac_func in atexit basename bcopy bzero canonicalize_file_name \ - chmod dup2 endgrent endpwent execvp expm1 expm1f fcntl fork fstat getcwd \ - getegid geteuid getgid getgrent getgrgid getgrnam getpgrp getpid \ - getppid getpwent getpwuid gettimeofday getuid getwd _kbhit kill \ - lgamma lgammaf lgamma_r lgammaf_r link localtime_r log1p log1pf lstat \ - memmove mkdir mkfifo mkstemp on_exit pipe poll putenv raise readlink \ - realpath rename resolvepath rindex rmdir roundl select setgrent setlocale \ - setpwent setvbuf sigaction siglongjmp sigpending sigprocmask sigsuspend \ - snprintf stat strcasecmp strdup strerror stricmp strncasecmp \ - strnicmp strptime strsignal symlink tempnam tgammaf trunc umask \ - uname unlink usleep utime vfprintf vsprintf vsnprintf waitpid \ - _chmod _snprintf x_utime _utime32 - do - as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` - { echo "$as_me:$LINENO: checking for $ac_func" >&5 - echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } - if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - /* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ - #define $ac_func innocuous_$ac_func - - /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - - #ifdef __STDC__ - # include - #else - # include - #endif - - #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC --- 13790,13818 ---- + ### special checks for odd OS specific things. + ### + ### I am told that on some SCO systems, the only place to find some + ### functions like gethostname and gettimeofday is in libsocket. + for ac_func in gethostname + do : + ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" + if test "x$ac_cv_func_gethostname" = x""yes; then : + cat >>confdefs.h <<_ACEOF + #define HAVE_GETHOSTNAME 1 + _ACEOF else ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5 ! $as_echo_n "checking for gethostname in -lsocket... " >&6; } ! if test "${ac_cv_lib_socket_gethostname+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lsocket $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC *************** *** 25711,25875 **** #ifdef __cplusplus extern "C" #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me ! #endif ! ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $ac_func (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_var=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! _ACEOF ! ! fi ! done ! ! ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! { echo "$as_me:$LINENO: checking whether exp2 is declared" >&5 ! echo $ECHO_N "checking whether exp2 is declared... $ECHO_C" >&6; } ! if test "${ac_cv_have_decl_exp2+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! #ifndef exp2 ! (void) exp2; ! #endif ! ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_have_decl_exp2=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_have_decl_exp2=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_have_decl_exp2" >&5 ! echo "${ECHO_T}$ac_cv_have_decl_exp2" >&6; } ! if test $ac_cv_have_decl_exp2 = yes; then ! ! cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_EXP2 1 ! _ACEOF ! ! ! else ! cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_EXP2 0 ! _ACEOF ! ! ! fi ! { echo "$as_me:$LINENO: checking whether round is declared" >&5 ! echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6; } ! if test "${ac_cv_have_decl_round+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 13820,13826 ---- #ifdef __cplusplus extern "C" #endif ! char gethostname (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 25881,25950 **** int main () { ! #ifndef round ! (void) round; ! #endif ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_have_decl_round=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_have_decl_round=no fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5 ! echo "${ECHO_T}$ac_cv_have_decl_round" >&6; } ! if test $ac_cv_have_decl_round = yes; then ! ! cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_ROUND 1 _ACEOF ! else cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_ROUND 0 _ACEOF - - fi - { echo "$as_me:$LINENO: checking whether tgamma is declared" >&5 - echo $ECHO_N "checking whether tgamma is declared... $ECHO_C" >&6; } - if test "${ac_cv_have_decl_tgamma+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - #include #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 13832,13891 ---- int main () { ! return gethostname (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_socket_gethostname=yes else ! ac_cv_lib_socket_gethostname=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5 ! $as_echo "$ac_cv_lib_socket_gethostname" >&6; } ! if test "x$ac_cv_lib_socket_gethostname" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_LIBSOCKET 1 _ACEOF + LIBS="-lsocket $LIBS" ! fi ! ! fi ! done ! ! for ac_func in getpwnam ! do : ! ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam" ! if test "x$ac_cv_func_getpwnam" = x""yes; then : cat >>confdefs.h <<_ACEOF ! #define HAVE_GETPWNAM 1 _ACEOF else ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5 ! $as_echo_n "checking for getpwnam in -lsun... " >&6; } ! if test "${ac_cv_lib_sun_getpwnam+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lsun $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char getpwnam (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 25956,26047 **** int main () { ! #ifndef tgamma ! (void) tgamma; ! #endif ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_have_decl_tgamma=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_have_decl_tgamma=no fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tgamma" >&5 ! echo "${ECHO_T}$ac_cv_have_decl_tgamma" >&6; } ! if test $ac_cv_have_decl_tgamma = yes; then ! ! cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_TGAMMA 1 ! _ACEOF ! ! ! else cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_TGAMMA 0 _ACEOF fi ! ! ! for ac_func in exp2 round tgamma ! do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - /* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ - #define $ac_func innocuous_$ac_func - - /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - - #ifdef __STDC__ - # include - #else - # include - #endif - - #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC --- 13897,13942 ---- int main () { ! return getpwnam (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_sun_getpwnam=yes else ! ac_cv_lib_sun_getpwnam=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5 ! $as_echo "$ac_cv_lib_sun_getpwnam" >&6; } ! if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then : cat >>confdefs.h <<_ACEOF ! #define HAVE_LIBSUN 1 _ACEOF + LIBS="-lsun $LIBS" fi + fi + done ! case "$canonical_host_type" in ! *-*-cygwin*) ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lwsock32" >&5 ! $as_echo_n "checking for gethostname in -lwsock32... " >&6; } ! if test "${ac_cv_lib_wsock32_gethostname+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lwsock32 $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC *************** *** 26049,26062 **** #ifdef __cplusplus extern "C" #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me ! #endif ! #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 13944,13950 ---- #ifdef __cplusplus extern "C" #endif ! char gethostname (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 26068,26644 **** int main () { ! return $ac_func (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_var=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF ! fi ! done ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! case "$canonical_host_type" in ! *-*-mingw*) ! ## MinGW does not provide a mkstemp function. However, it provides ! ## the mkstemps function in libiberty. ! { echo "$as_me:$LINENO: checking for mkstemps in libiberty" >&5 ! echo $ECHO_N "checking for mkstemps in libiberty... $ECHO_C" >&6; } ! save_LIBS="$LIBS" ! LIBS="-liberty $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - int mkstemps (char *pattern, int suffix_len); - #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! mkstemps ("XXXXXX", 0); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! HAVE_MKSTEMPS=yes ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_MKSTEMPS 1 _ACEOF else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! HAVE_MKSTEMPS=no ! LIBS="$save_LIBS" fi ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! ;; ! esac ! ! case "$canonical_host_type" in ! *-*-msdosmsvc | *-*-mingw*) ! ## The %T and %e format specifiers for strftime are not implemented ! ## so use our version. We could use an actual configure test ! ## for this. ! ;; ! *) - for ac_func in strftime - do - as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` - { echo "$as_me:$LINENO: checking for $ac_func" >&5 - echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } - if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! /* Define $ac_func to an innocuous variant, in case declares $ac_func. ! For example, HP-UX 11i declares gettimeofday. */ ! #define $ac_func innocuous_$ac_func ! /* System header to define __stub macros and hopefully few prototypes, ! which can conflict with char $ac_func (); below. ! Prefer to if __STDC__ is defined, since ! exists even on freestanding compilers. */ ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! #undef $ac_func - /* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ - #ifdef __cplusplus - extern "C" - #endif - char $ac_func (); - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined __stub_$ac_func || defined __stub___$ac_func - choke me - #endif ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! return $ac_func (); ! ; ! return 0; ! } _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (ac_try="$ac_link" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! eval "$as_ac_var=no" fi ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi ! done ! ;; ! esac ! { echo "$as_me:$LINENO: checking for c99 vsnprintf" >&5 ! echo $ECHO_N "checking for c99 vsnprintf... $ECHO_C" >&6; } ! if test "${oct_cv_c99_vsnprintf+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! if test "$cross_compiling" = yes; then ! oct_cv_c99_vsnprintf="guessing no" ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! #include ! #include ! int ! doit(char * s, ...) ! { ! char buffer[32]; ! va_list args; ! int r; ! va_start(args, s); ! r = vsnprintf(buffer, 5, s, args); ! va_end(args); - if (r != 7) - exit(1); ! exit(0); ! } ! #ifdef F77_DUMMY_MAIN - # ifdef __cplusplus - extern "C" - # endif - int F77_DUMMY_MAIN() { return 1; } #endif ! int ! main () ! { ! doit("1234567"); ! ; ! return 0; ! } _ACEOF - rm -f conftest$ac_exeext - if { (ac_try="$ac_link" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - oct_cv_c99_vsnprintf=yes - else - echo "$as_me: program exited with status $ac_status" >&5 - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ( exit $ac_status ) ! oct_cv_c99_vsnprintf=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi - { echo "$as_me:$LINENO: result: $oct_cv_c99_vsnprintf" >&5 - echo "${ECHO_T}$oct_cv_c99_vsnprintf" >&6; } - case $oct_cv_c99_vsnprintf in - yes) ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_C99_VSNPRINTF 1 ! _ACEOF ! ;; ! esac - { echo "$as_me:$LINENO: checking whether strptime is broken" >&5 - echo $ECHO_N "checking whether strptime is broken... $ECHO_C" >&6; } - if test "${octave_cv_strptime_broken+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! if test "$cross_compiling" = yes; then ! { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&5 ! echo "$as_me: error: cannot run test program while cross compiling ! See \`config.log' for more details." >&2;} ! { (exit 1); exit 1; }; } ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ - #define _XOPEN_SOURCE - #if defined (HAVE_SYS_TYPES_H) - #include - #if defined (HAVE_UNISTD_H) - #include - #endif - #endif - #include - #include - #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } - #endif - int - main () - { ! struct tm t; ! char *q = strptime ("09/13", "%m/%d/%y", &t); ! return q ? 1 : 0; - ; - return 0; - } - _ACEOF - rm -f conftest$ac_exeext - if { (ac_try="$ac_link" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - octave_cv_strptime_broken=no else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! octave_cv_strptime_broken=yes fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi - fi - { echo "$as_me:$LINENO: result: $octave_cv_strptime_broken" >&5 - echo "${ECHO_T}$octave_cv_strptime_broken" >&6; } - if test $octave_cv_strptime_broken = yes; then ! cat >>confdefs.h <<\_ACEOF ! #define OCTAVE_HAVE_BROKEN_STRPTIME 1 _ACEOF - fi - ac_ext=c - ac_cpp='$CPP $CPPFLAGS' - ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' - ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' - ac_compiler_gnu=$ac_cv_c_compiler_gnu - { echo "$as_me:$LINENO: checking whether putenv uses malloc" >&5 - echo $ECHO_N "checking whether putenv uses malloc... $ECHO_C" >&6; } - if test "${octave_cv_func_putenv_malloc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - if test "$cross_compiling" = yes; then - octave_cv_func_putenv_malloc=no else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #define VAR "YOW_VAR" ! #define STRING1 "GabbaGabbaHey" ! #define STRING2 "Yow!!" /* should be shorter than STRING1 */ ! extern char *getenv (); /* in case char* and int don't mix gracefully */ ! main () ! { ! char *str1, *rstr1, *str2, *rstr2; ! str1 = getenv (VAR); ! if (str1) ! exit (1); ! str1 = malloc (strlen (VAR) + 1 + strlen (STRING1) + 1); ! if (str1 == 0) ! exit (2); ! strcpy (str1, VAR); ! strcat (str1, "="); ! strcat (str1, STRING1); ! if (putenv (str1) < 0) ! exit (3); ! rstr1 = getenv (VAR); ! if (rstr1 == 0) ! exit (4); ! rstr1 -= strlen (VAR) + 1; ! if (strncmp (rstr1, VAR, strlen (VAR))) ! exit (5); ! str2 = malloc (strlen (VAR) + 1 + strlen (STRING2) + 1); ! if (str2 == 0 || str1 == str2) ! exit (6); ! strcpy (str2, VAR); ! strcat (str2, "="); ! strcat (str2, STRING2); ! if (putenv (str2) < 0) ! exit (7); ! rstr2 = getenv (VAR); ! if (rstr2 == 0) ! exit (8); ! rstr2 -= strlen (VAR) + 1; ! #if 0 ! printf ("rstr1=0x%x, rstr2=0x%x\n", rstr1, rstr2); ! /* ! * If string from first call was reused for the second call, ! * you had better not do a free on the first string! ! */ ! if (rstr1 == rstr2) ! printf ("#define SMART_PUTENV\n"); ! else ! printf ("#undef SMART_PUTENV\n"); ! #endif ! exit (rstr1 == rstr2 ? 0 : 1); ! } _ACEOF - rm -f conftest$ac_exeext - if { (ac_try="$ac_link" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - octave_cv_func_putenv_malloc=yes - else - echo "$as_me: program exited with status $ac_status" >&5 - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ( exit $ac_status ) ! octave_cv_func_putenv_malloc=no fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi - fi - { echo "$as_me:$LINENO: result: $octave_cv_func_putenv_malloc" >&5 - echo "${ECHO_T}$octave_cv_func_putenv_malloc" >&6; } - if test $octave_cv_func_putenv_malloc = yes; then ! cat >>confdefs.h <<\_ACEOF ! #define SMART_PUTENV 1 _ACEOF - fi - case "$canonical_host_type" in - *-*-msdosmsvc | *-*-mingw*) - { echo "$as_me:$LINENO: checking for required _WIN32_WINNT" >&5 - echo $ECHO_N "checking for required _WIN32_WINNT... $ECHO_C" >&6; } - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ ! #include ! #if _WIN32_WINNT < 0x0403 ! #error "Wrong version" ! #endif #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 13956,14307 ---- int main () { ! return gethostname (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_wsock32_gethostname=yes else ! ac_cv_lib_wsock32_gethostname=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_gethostname" >&5 ! $as_echo "$ac_cv_lib_wsock32_gethostname" >&6; } ! if test "x$ac_cv_lib_wsock32_gethostname" = x""yes; then : cat >>confdefs.h <<_ACEOF ! #define HAVE_LIBWSOCK32 1 _ACEOF ! LIBS="-lwsock32 $LIBS" + fi + LIBS="$LIBS -lwsock32" + ;; + *-*-msdosmsvc* | *-*-mingw*) + LIBS="$LIBS -lgdi32 -lws2_32 -luser32 -lkernel32" + ;; + esac ! ### Type stuff. + ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" + if test "x$ac_cv_type_mode_t" = x""yes; then : ! else ! cat >>confdefs.h <<_ACEOF ! #define mode_t int _ACEOF ! fi ! ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" ! if test "x$ac_cv_type_off_t" = x""yes; then : ! else ! cat >>confdefs.h <<_ACEOF ! #define off_t long int _ACEOF + fi + + ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" + if test "x$ac_cv_type_pid_t" = x""yes; then : else ! cat >>confdefs.h <<_ACEOF ! #define pid_t int ! _ACEOF fi ! ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" ! if test "x$ac_cv_type_size_t" = x""yes; then : else ! ! cat >>confdefs.h <<_ACEOF ! #define size_t unsigned int _ACEOF ! ! fi ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 ! $as_echo_n "checking for uid_t in sys/types.h... " >&6; } ! if test "${ac_cv_type_uid_t+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #include ! _ACEOF ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! $EGREP "uid_t" >/dev/null 2>&1; then : ! ac_cv_type_uid_t=yes ! else ! ac_cv_type_uid_t=no ! fi ! rm -f conftest* ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 ! $as_echo "$ac_cv_type_uid_t" >&6; } ! if test $ac_cv_type_uid_t = no; then ! $as_echo "#define uid_t int" >>confdefs.h ! $as_echo "#define gid_t int" >>confdefs.h ! fi ! ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" ! if test "x$ac_cv_type_dev_t" = x""yes; then : ! ! cat >>confdefs.h <<_ACEOF ! #define HAVE_DEV_T 1 _ACEOF ! ! fi ! ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" ! if test "x$ac_cv_type_ino_t" = x""yes; then : ! ! cat >>confdefs.h <<_ACEOF ! #define HAVE_INO_T 1 ! _ACEOF ! ! fi + ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "$ac_includes_default" + if test "x$ac_cv_type_nlink_t" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_NLINK_T 1 _ACEOF + fi ! ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "$ac_includes_default" ! if test "x$ac_cv_type_nlink_t" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_NLINK_T 1 ! _ACEOF ! fi ! ac_fn_c_check_type "$LINENO" "long long int" "ac_cv_type_long_long_int" "$ac_includes_default" ! if test "x$ac_cv_type_long_long_int" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_LONG_LONG_INT 1 ! _ACEOF ! fi ! ac_fn_c_check_type "$LINENO" "unsigned long long int" "ac_cv_type_unsigned_long_long_int" "$ac_includes_default" ! if test "x$ac_cv_type_unsigned_long_long_int" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_UNSIGNED_LONG_LONG_INT 1 ! _ACEOF + fi + + ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" " + #if defined (HAVE_SYS_TYPES_H) + #include #endif ! #include ! " ! if test "x$ac_cv_type_sigset_t" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_SIGSET_T 1 _ACEOF ! fi + ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" " + #if defined (HAVE_SYS_TYPES_H) + #include + #endif + #include + " + if test "x$ac_cv_type_sig_atomic_t" = x""yes; then : + + cat >>confdefs.h <<_ACEOF + #define HAVE_SIG_ATOMIC_T 1 + _ACEOF fi ! ### How big are ints and how are they oriented? These could probably ! ### be eliminated in favor of run-time checks. ! # The cast to long int works around a bug in the HP C Compiler ! # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! # This bug is HP SR number 8606223364. ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 ! $as_echo_n "checking size of short... " >&6; } ! if test "${ac_cv_sizeof_short+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : else ! if test "$ac_cv_type_short" = yes; then ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! { as_fn_set_status 77 ! as_fn_error "cannot compute sizeof (short) ! See \`config.log' for more details." "$LINENO" 5; }; } ! else ! ac_cv_sizeof_short=0 ! fi ! fi ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 ! $as_echo "$ac_cv_sizeof_short" >&6; } ! cat >>confdefs.h <<_ACEOF ! #define SIZEOF_SHORT $ac_cv_sizeof_short ! _ACEOF ! # The cast to long int works around a bug in the HP C Compiler ! # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! # This bug is HP SR number 8606223364. ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 ! $as_echo_n "checking size of int... " >&6; } ! if test "${ac_cv_sizeof_int+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : else ! if test "$ac_cv_type_int" = yes; then ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! { as_fn_set_status 77 ! as_fn_error "cannot compute sizeof (int) ! See \`config.log' for more details." "$LINENO" 5; }; } ! else ! ac_cv_sizeof_int=0 ! fi fi ! fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 + $as_echo "$ac_cv_sizeof_int" >&6; } ! cat >>confdefs.h <<_ACEOF ! #define SIZEOF_INT $ac_cv_sizeof_int _ACEOF + # The cast to long int works around a bug in the HP C Compiler + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. + # This bug is HP SR number 8606223364. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 + $as_echo_n "checking size of long... " >&6; } + if test "${ac_cv_sizeof_long+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : else ! if test "$ac_cv_type_long" = yes; then ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! { as_fn_set_status 77 ! as_fn_error "cannot compute sizeof (long) ! See \`config.log' for more details." "$LINENO" 5; }; } ! else ! ac_cv_sizeof_long=0 ! fi ! fi ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 ! $as_echo "$ac_cv_sizeof_long" >&6; } ! ! ! ! cat >>confdefs.h <<_ACEOF ! #define SIZEOF_LONG $ac_cv_sizeof_long _ACEOF ! ! # The cast to long int works around a bug in the HP C Compiler ! # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! # This bug is HP SR number 8606223364. ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 ! $as_echo_n "checking size of long long... " >&6; } ! if test "${ac_cv_sizeof_long_long+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : ! ! else ! if test "$ac_cv_type_long_long" = yes; then ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! { as_fn_set_status 77 ! as_fn_error "cannot compute sizeof (long long) ! See \`config.log' for more details." "$LINENO" 5; }; } ! else ! ac_cv_sizeof_long_long=0 ! fi fi ! fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 + $as_echo "$ac_cv_sizeof_long_long" >&6; } ! cat >>confdefs.h <<_ACEOF ! #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long _ACEOF ! ### Does the C compiler handle alloca() and const correctly? ! ! # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works ! # for constant arguments. Useless! ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 ! $as_echo_n "checking for working alloca.h... " >&6; } ! if test "${ac_cv_working_alloca_h+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! #include #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 26650,26703 **** int main () { ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! { echo "$as_me:$LINENO: result: none" >&5 ! echo "${ECHO_T}none" >&6; } else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ! cat >>confdefs.h <<\_ACEOF ! #define _WIN32_WINNT 0x0403 ! _ACEOF - { echo "$as_me:$LINENO: result: 0x0403" >&5 - echo "${ECHO_T}0x0403" >&6; } fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: checking whether _USE_MATH_DEFINES needs to be defined" >&5 ! echo $ECHO_N "checking whether _USE_MATH_DEFINES needs to be defined... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! #include #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 14313,14368 ---- int main () { ! char *p = (char *) alloca (2 * sizeof (int)); ! if (p) return 0; ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_working_alloca_h=yes else ! ac_cv_working_alloca_h=no ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 ! $as_echo "$ac_cv_working_alloca_h" >&6; } ! if test $ac_cv_working_alloca_h = yes; then ! $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 ! $as_echo_n "checking for alloca... " >&6; } ! if test "${ac_cv_func_alloca_works+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #ifdef __GNUC__ ! # define alloca __builtin_alloca ! #else ! # ifdef _MSC_VER ! # include ! # define alloca _alloca ! # else ! # ifdef HAVE_ALLOCA_H ! # include ! # else ! # ifdef _AIX ! #pragma alloca ! # else ! # ifndef alloca /* predefined by HP cc +Olibcalls */ ! char *alloca (); ! # endif ! # endif ! # endif ! # endif ! #endif ! #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 26709,27027 **** int main () { ! int x = M_LN2; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ! ! cat >>confdefs.h <<\_ACEOF ! #define _USE_MATH_DEFINES 1 ! _ACEOF ! ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ;; ! esac ! ### Dynamic linking is now enabled only if we are building shared ! ### libs and some API for dynamic linking is detected. ! LD_CXX='$(CXX)' ! RDYNAMIC_FLAG= ! DL_API_MSG="" ! dlopen_api=false ! shl_load_api=false ! loadlibrary_api=false ! dyld_api=false ! if $SHARED_LIBS || $ENABLE_DYNAMIC_LINKING; then ! ## Check for dyld first since OS X can have a non-standard libdl ! if test "${ac_cv_header_mach_o_dyld_h+set}" = set; then ! { echo "$as_me:$LINENO: checking for mach-o/dyld.h" >&5 ! echo $ECHO_N "checking for mach-o/dyld.h... $ECHO_C" >&6; } ! if test "${ac_cv_header_mach_o_dyld_h+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_header_mach_o_dyld_h" >&5 ! echo "${ECHO_T}$ac_cv_header_mach_o_dyld_h" >&6; } else ! # Is the header compilable? ! { echo "$as_me:$LINENO: checking mach-o/dyld.h usability" >&5 ! echo $ECHO_N "checking mach-o/dyld.h usability... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default ! #include _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_header_compiler=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_header_compiler=no fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! echo "${ECHO_T}$ac_header_compiler" >&6; } ! # Is the header present? ! { echo "$as_me:$LINENO: checking mach-o/dyld.h presence" >&5 ! echo $ECHO_N "checking mach-o/dyld.h presence... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include _ACEOF - if { (ac_try="$ac_cpp conftest.$ac_ext" - case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; - esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_header_preproc=no fi ! rm -f conftest.err conftest.$ac_ext ! { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! echo "${ECHO_T}$ac_header_preproc" >&6; } ! # So? What about this header? ! case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ! yes:no: ) ! { echo "$as_me:$LINENO: WARNING: mach-o/dyld.h: accepted by the compiler, rejected by the preprocessor!" >&5 ! echo "$as_me: WARNING: mach-o/dyld.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ! { echo "$as_me:$LINENO: WARNING: mach-o/dyld.h: proceeding with the compiler's result" >&5 ! echo "$as_me: WARNING: mach-o/dyld.h: proceeding with the compiler's result" >&2;} ! ac_header_preproc=yes ! ;; ! no:yes:* ) ! { echo "$as_me:$LINENO: WARNING: mach-o/dyld.h: present but cannot be compiled" >&5 ! echo "$as_me: WARNING: mach-o/dyld.h: present but cannot be compiled" >&2;} ! { echo "$as_me:$LINENO: WARNING: mach-o/dyld.h: check for missing prerequisite headers?" >&5 ! echo "$as_me: WARNING: mach-o/dyld.h: check for missing prerequisite headers?" >&2;} ! { echo "$as_me:$LINENO: WARNING: mach-o/dyld.h: see the Autoconf documentation" >&5 ! echo "$as_me: WARNING: mach-o/dyld.h: see the Autoconf documentation" >&2;} ! { echo "$as_me:$LINENO: WARNING: mach-o/dyld.h: section \"Present But Cannot Be Compiled\"" >&5 ! echo "$as_me: WARNING: mach-o/dyld.h: section \"Present But Cannot Be Compiled\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: mach-o/dyld.h: proceeding with the preprocessor's result" >&5 ! echo "$as_me: WARNING: mach-o/dyld.h: proceeding with the preprocessor's result" >&2;} ! { echo "$as_me:$LINENO: WARNING: mach-o/dyld.h: in the future, the compiler will take precedence" >&5 ! echo "$as_me: WARNING: mach-o/dyld.h: in the future, the compiler will take precedence" >&2;} ! ;; ! esac ! { echo "$as_me:$LINENO: checking for mach-o/dyld.h" >&5 ! echo $ECHO_N "checking for mach-o/dyld.h... $ECHO_C" >&6; } ! if test "${ac_cv_header_mach_o_dyld_h+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! ac_cv_header_mach_o_dyld_h=$ac_header_preproc fi - { echo "$as_me:$LINENO: result: $ac_cv_header_mach_o_dyld_h" >&5 - echo "${ECHO_T}$ac_cv_header_mach_o_dyld_h" >&6; } fi ! if test "$ac_cv_header_mach_o_dyld_h" = yes; then ! dyld_api=true ! else ! { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 ! echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } ! if test "${ac_cv_lib_dld_shl_load+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-ldld $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" #endif - char shl_load (); - #ifdef F77_DUMMY_MAIN - - # ifdef __cplusplus - extern "C" - # endif - int F77_DUMMY_MAIN() { return 1; } - #endif - int - main () - { - return shl_load (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_dld_shl_load=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_dld_shl_load=no fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 ! echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } ! if test $ac_cv_lib_dld_shl_load = yes; then ! cat >>confdefs.h <<_ACEOF ! #define HAVE_LIBDLD 1 ! _ACEOF ! LIBS="-ldld $LIBS" fi ! for ac_func in shl_load shl_findsym ! do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! /* Define $ac_func to an innocuous variant, in case declares $ac_func. ! For example, HP-UX 11i declares gettimeofday. */ ! #define $ac_func innocuous_$ac_func ! ! /* System header to define __stub macros and hopefully few prototypes, ! which can conflict with char $ac_func (); below. ! Prefer to if __STDC__ is defined, since ! exists even on freestanding compilers. */ ! ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! ! #undef $ac_func ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me ! #endif #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 14374,14608 ---- int main () { ! char *p = (char *) alloca (1); ! if (p) return 0; ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_func_alloca_works=yes else ! ac_cv_func_alloca_works=no fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 + $as_echo "$ac_cv_func_alloca_works" >&6; } ! if test $ac_cv_func_alloca_works = yes; then ! $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h ! else ! # The SVR3 libPW and SVR4 libucb both contain incompatible functions ! # that cause trouble. Some versions do not even contain alloca or ! # contain a buggy version. If you still want to use their alloca, ! # use ar to extract alloca.o from them instead of compiling alloca.c. ! ALLOCA=\${LIBOBJDIR}alloca.$ac_objext ! $as_echo "#define C_ALLOCA 1" >>confdefs.h ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 ! $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } ! if test "${ac_cv_os_cray+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #if defined CRAY && ! defined CRAY2 ! webecray ! #else ! wenotbecray ! #endif ! _ACEOF ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! $EGREP "webecray" >/dev/null 2>&1; then : ! ac_cv_os_cray=yes else ! ac_cv_os_cray=no fi + rm -f conftest* ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 ! $as_echo "$ac_cv_os_cray" >&6; } ! if test $ac_cv_os_cray = yes; then ! for ac_func in _getb67 GETB67 getb67; do ! as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ! ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ! eval as_val=\$$as_ac_var ! if test "x$as_val" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define CRAY_STACKSEG_END $ac_func _ACEOF ! break fi ! done ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 ! $as_echo_n "checking stack direction for C alloca... " >&6; } ! if test "${ac_cv_c_stack_direction+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! if test "$cross_compiling" = yes; then : ! ac_cv_c_stack_direction=0 ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! $ac_includes_default ! int ! find_stack_direction () ! { ! static char *addr = 0; ! auto char dummy; ! if (addr == 0) ! { ! addr = &dummy; ! return find_stack_direction (); ! } ! else ! return (&dummy > addr) ? 1 : -1; ! } ! int ! main () ! { ! return find_stack_direction () < 0; ! } ! _ACEOF ! if ac_fn_c_try_run "$LINENO"; then : ! ac_cv_c_stack_direction=1 else ! ac_cv_c_stack_direction=-1 ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ ! conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 + $as_echo "$ac_cv_c_stack_direction" >&6; } + cat >>confdefs.h <<_ACEOF + #define STACK_DIRECTION $ac_cv_c_stack_direction + _ACEOF ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 ! $as_echo_n "checking for an ANSI C-conforming const... " >&6; } ! if test "${ac_cv_c_const+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! /* FIXME: Include the comments suggested by Paul. */ ! #ifndef __cplusplus ! /* Ultrix mips cc rejects this. */ ! typedef int charset[2]; ! const charset cs; ! /* SunOS 4.1.1 cc rejects this. */ ! char const *const *pcpcc; ! char **ppc; ! /* NEC SVR4.0.2 mips cc rejects this. */ ! struct point {int x, y;}; ! static struct point const zero = {0,0}; ! /* AIX XL C 1.02.0.0 rejects this. ! It does not let you subtract one const X* pointer from another in ! an arm of an if-expression whose if-part is not a constant ! expression */ ! const char *g = "string"; ! pcpcc = &g + (g ? g-g : 0); ! /* HPUX 7.0 cc rejects these. */ ! ++pcpcc; ! ppc = (char**) pcpcc; ! pcpcc = (char const *const *) ppc; ! { /* SCO 3.2v4 cc rejects this. */ ! char *t; ! char const *s = 0 ? (char *) 0 : (char const *) 0; ! ! *t++ = 0; ! if (s) return 0; ! } ! { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ ! int x[] = {25, 17}; ! const int *foo = &x[0]; ! ++foo; ! } ! { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ ! typedef const int *iptr; ! iptr p = 0; ! ++p; ! } ! { /* AIX XL C 1.02.0.0 rejects this saying ! "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ ! struct s { int j; const int *ap[3]; }; ! struct s *b; b->j = 5; ! } ! { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ ! const int foo = 10; ! if (!foo) return 0; ! } ! return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_cv_c_const=yes else ! ac_cv_c_const=no fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 ! $as_echo "$ac_cv_c_const" >&6; } ! if test $ac_cv_c_const = no; then ! $as_echo "#define const /**/" >>confdefs.h fi + ### See if we should use placement delete. ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether defines placement delete operator" >&5 ! $as_echo_n "checking whether defines placement delete operator... " >&6; } ! if test "${octave_cv_placement_delete+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 27033,27109 **** int main () { ! return $ac_func (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_var=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! _ACEOF fi ! done - if test "$ac_cv_func_shl_load" = yes \ - && test "$ac_cv_func_shl_findsym" = yes; then - shl_load_api=true - else ! { echo "$as_me:$LINENO: checking for LoadLibrary in -lwsock32" >&5 ! echo $ECHO_N "checking for LoadLibrary in -lwsock32... $ECHO_C" >&6; } ! if test "${ac_cv_lib_wsock32_LoadLibrary+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lwsock32 $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - /* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ - #ifdef __cplusplus - extern "C" - #endif - char LoadLibrary (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 14614,14662 ---- int main () { ! operator delete((void *)0, (void *)0); ; return 0; } _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : ! octave_cv_placement_delete=yes else ! octave_cv_placement_delete=no fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_placement_delete" >&5 ! $as_echo "$octave_cv_placement_delete" >&6; } ! if test $octave_cv_placement_delete = yes; then ! ! $as_echo "#define HAVE_PLACEMENT_DELETE 1" >>confdefs.h fi ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ### See if we can auto allocate variable sized arrays. ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ supports dynamic auto arrays" >&5 ! $as_echo_n "checking whether C++ supports dynamic auto arrays... " >&6; } ! if test "${octave_cv_dynamic_auto_arrays+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 27115,27211 **** int main () { ! return LoadLibrary (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_wsock32_LoadLibrary=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_wsock32_LoadLibrary=no fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_LoadLibrary" >&5 ! echo "${ECHO_T}$ac_cv_lib_wsock32_LoadLibrary" >&6; } ! if test $ac_cv_lib_wsock32_LoadLibrary = yes; then ! cat >>confdefs.h <<_ACEOF ! #define HAVE_LIBWSOCK32 1 ! _ACEOF ! LIBS="-lwsock32 $LIBS" fi ! for ac_func in LoadLibrary ! do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - /* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ - #define $ac_func innocuous_$ac_func ! /* System header to define __stub macros and hopefully few prototypes, ! which can conflict with char $ac_func (); below. ! Prefer to if __STDC__ is defined, since ! exists even on freestanding compilers. */ ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! #undef $ac_func ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me ! #endif #ifdef F77_DUMMY_MAIN --- 14668,14753 ---- int main () { ! void test(char *); int length(); char x[length()]; test(x); ; return 0; } _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : ! octave_cv_dynamic_auto_arrays=yes else ! octave_cv_dynamic_auto_arrays=no fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_dynamic_auto_arrays" >&5 ! $as_echo "$octave_cv_dynamic_auto_arrays" >&6; } ! if test $octave_cv_dynamic_auto_arrays = yes; then ! $as_echo "#define HAVE_DYNAMIC_AUTO_ARRAYS 1" >>confdefs.h fi + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ### See if we can use fast integer arithmetics ! ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fast integer arithmetics is usable" >&5 ! $as_echo_n "checking whether fast integer arithmetics is usable... " >&6; } ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! if test "$cross_compiling" = yes; then : ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! as_fn_error "cannot run test program while cross compiling ! See \`config.log' for more details." "$LINENO" 5; } else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #include ! template ! static bool ! do_test (UT, ST) ! { ! volatile ST s = std::numeric_limits::min () / 3; ! volatile UT u = static_cast (s); ! if (*(reinterpret_cast (&u)) != s) return true; ! u = 0; u = ~u; ! if (*(reinterpret_cast (&u)) != -1) return true; ! ST sx, sy; ! sx = std::numeric_limits::max () / 2 + 1; ! sy = std::numeric_limits::max () / 2 + 2; ! if (static_cast (static_cast (sx) + static_cast (sy)) ! != std::numeric_limits::min () + 1) return true; ! if (static_cast (static_cast (sx) - static_cast (sy)) ! != -1) return true; ! if ((sx & sy) != (static_cast (sx) & static_cast (sy))) ! return true; ! if ((sx | sy) != (static_cast (sx) | static_cast (sy))) ! return true; ! if ((sx ^ sy) != (static_cast (sx) ^ static_cast (sy))) ! return true; ! if ((-1 >> 1) != -1) return true; ! return false; ! } ! ! #define DO_TEST(T) \ ! if (do_test (static_cast (0), static_cast (0))) \ ! return sizeof (T); #ifdef F77_DUMMY_MAIN *************** *** 27218,27293 **** int main () { ! return $ac_func (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! eval "$as_ac_var=no" fi - rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF - fi - done - if test "$ac_cv_func_loadlibrary" = yes; then - loadlibrary_api=true - else ! { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ! echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } ! if test "${ac_cv_lib_dl_dlopen+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-ldl $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - /* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ - #ifdef __cplusplus - extern "C" - #endif - char dlopen (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 14760,14850 ---- int main () { ! ! DO_TEST(char) ! DO_TEST(short) ! DO_TEST(int) ! DO_TEST(long) ! #if (defined(HAVE_LONG_LONG_INT) && defined(HAVE_UNSIGNED_LONG_LONG_INT)) ! DO_TEST(long long) ! #endif ! ; return 0; } _ACEOF ! if ac_fn_cxx_try_run "$LINENO"; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! ! $as_echo "#define HAVE_FAST_INT_OPS 1" >>confdefs.h ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ ! conftest.$ac_objext conftest.beam conftest.$ac_ext ! fi ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ### Check for long double type (for 64-bit integers) ! ! # The cast to long int works around a bug in the HP C Compiler ! # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! # This bug is HP SR number 8606223364. ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 ! $as_echo_n "checking size of long double... " >&6; } ! if test "${ac_cv_sizeof_long_double+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : ! ! else ! if test "$ac_cv_type_long_double" = yes; then ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! { as_fn_set_status 77 ! as_fn_error "cannot compute sizeof (long double) ! See \`config.log' for more details." "$LINENO" 5; }; } ! else ! ac_cv_sizeof_long_double=0 ! fi fi fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 ! $as_echo "$ac_cv_sizeof_long_double" >&6; } ! ! ! ! cat >>confdefs.h <<_ACEOF ! #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double _ACEOF ! ### Checks for header files. ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 ! $as_echo_n "checking for ANSI C header files... " >&6; } ! if test "${ac_cv_header_stdc+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + #include + #include + #include + #include #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 27299,27512 **** int main () { ! return dlopen (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! ac_cv_lib_dl_dlopen=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_dl_dlopen=no fi - rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS=$ac_check_lib_save_LIBS - fi - { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 - echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } - if test $ac_cv_lib_dl_dlopen = yes; then - cat >>confdefs.h <<_ACEOF - #define HAVE_LIBDL 1 _ACEOF ! LIBS="-ldl $LIBS" fi ! for ac_func in dlopen dlsym dlerror dlclose ! do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! /* Define $ac_func to an innocuous variant, in case declares $ac_func. ! For example, HP-UX 11i declares gettimeofday. */ ! #define $ac_func innocuous_$ac_func ! ! /* System header to define __stub macros and hopefully few prototypes, ! which can conflict with char $ac_func (); below. ! Prefer to if __STDC__ is defined, since ! exists even on freestanding compilers. */ ! ! #ifdef __STDC__ ! # include #else ! # include ! #endif ! ! #undef $ac_func ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me #endif ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif int main () { ! return $ac_func (); ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! eval "$as_ac_var=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext fi - ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 - echo "${ECHO_T}$ac_res" >&6; } - if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF - #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 - _ACEOF fi ! done ! ! if test "$ac_cv_func_dlclose" = yes \ ! && test "$ac_cv_func_dlerror" = yes \ ! && test "$ac_cv_func_dlopen" = yes \ ! && test "$ac_cv_func_dlsym" = yes; then ! dlopen_api=true ! else ! case "$canonical_host_type" in ! i[3456]86-*-sco3.2v5*) ! LD_CXX='LD_RUN_PATH=$LD_RUN_PATH:$(octlibdir) $(CXX)' ! dlopen_api=true ! ;; ! esac ! fi ! fi ! fi ! fi ! ! ## autoconf test for LoadLibrary appears broken. Bypass for cygwin/mingw ! if $dlopen_api || $shl_load_api || $loadlibrary_api || $dyld_api; then ! true ! else ! case "$canonical_host_type" in ! *-*-cygwin* | *-*-mingw* | *-*-msdosmsvc) ! loadlibrary_api=true; ! ;; ! esac ! fi ! ! if $dlopen_api; then ! DL_API_MSG="(dlopen)" ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_DLOPEN_API 1 ! _ACEOF ! ac_safe=`echo "-rdynamic" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CXX-g++} accepts -rdynamic" >&5 ! echo $ECHO_N "checking whether ${CXX-g++} accepts -rdynamic... $ECHO_C" >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! XCXXFLAGS="$CXXFLAGS" ! CXXFLAGS="$CXXFLAGS -rdynamic" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN --- 14856,14970 ---- int main () { ! ; return 0; } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_cv_header_stdc=yes else ! ac_cv_header_stdc=no fi + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include _ACEOF + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : ! else ! ac_cv_header_stdc=no ! fi ! rm -f conftest* fi + if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include + _ACEOF + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + else + ac_cv_header_stdc=no + fi + rm -f conftest* + fi ! if test $ac_cv_header_stdc = yes; then ! # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. ! if test "$cross_compiling" = yes; then : ! : else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #include ! #include ! #if ((' ' & 0x0FF) == 0x020) ! # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') ! # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else ! # define ISLOWER(c) \ ! (('a' <= (c) && (c) <= 'i') \ ! || ('j' <= (c) && (c) <= 'r') \ ! || ('s' <= (c) && (c) <= 'z')) ! # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif ! #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { ! int i; ! for (i = 0; i < 256; i++) ! if (XOR (islower (i), ISLOWER (i)) ! || toupper (i) != TOUPPER (i)) ! return 2; return 0; } _ACEOF ! if ac_fn_c_try_run "$LINENO"; then : ! else ! ac_cv_header_stdc=no fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ ! conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 ! $as_echo "$ac_cv_header_stdc" >&6; } ! if test $ac_cv_header_stdc = yes; then ! $as_echo "#define STDC_HEADERS 1" >>confdefs.h + fi ! ac_header_dirent=no ! for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do ! as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 ! $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } ! if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + #include + #include <$ac_hdr> #ifdef F77_DUMMY_MAIN *************** *** 27519,27649 **** int main () { ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "octave_cv_cxx_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! CXXFLAGS="$XCXXFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! fi ! ! if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! RDYNAMIC_FLAG=-rdynamic ! else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! ! fi ! ! elif $shl_load_api; then ! DL_API_MSG="(shl_load)" ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_SHL_LOAD_API 1 ! _ACEOF ! ! elif $loadlibrary_api; then ! DL_API_MSG="(LoadLibrary)" ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_LOADLIBRARY_API 1 _ACEOF ! elif $dyld_api; then ! DL_API_MSG="(dyld)" ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_DYLD_API 1 ! _ACEOF ! fi ! if $dlopen_api || $shl_load_api || $loadlibrary_api || $dyld_api; then ! ENABLE_DYNAMIC_LINKING=true ! cat >>confdefs.h <<\_ACEOF ! #define ENABLE_DYNAMIC_LINKING 1 _ACEOF ! fi fi - if $SHARED_LIBS; then - LIBOCTINTERP=-loctinterp$SHLLINKEXT - LIBOCTAVE=-loctave$SHLLINKEXT - LIBCRUFT=-lcruft$SHLLINKEXT else ! LIBOCTINTERP='$(TOPDIR)/src/liboctinterp.$(LIBEXT)' ! LIBOCTAVE='$(TOPDIR)/liboctave/liboctave.$(LIBEXT)' ! LIBCRUFT='$(TOPDIR)/libcruft/libcruft.$(LIBEXT)' fi ! ### There is more than one possible prototype for gettimeofday. See ! ### which one (if any) appears in sys/time.h. These tests are from ! ### Emacs 19. ! { echo "$as_me:$LINENO: checking for struct timeval" >&5 ! echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! #ifdef TIME_WITH_SYS_TIME ! #include ! #include ! #else ! #ifdef HAVE_SYS_TIME_H #include - #else #include ! #endif ! #endif #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 14977,15152 ---- int main () { ! if ((DIR *) 0) ! return 0; ; return 0; } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! eval "$as_ac_Header=yes" else ! eval "$as_ac_Header=no" fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! eval ac_res=\$$as_ac_Header ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Header ! if test "x$as_val" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 _ACEOF ! ac_header_dirent=$ac_hdr; break ! fi ! done ! # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. ! if test $ac_header_dirent = dirent.h; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 ! $as_echo_n "checking for library containing opendir... " >&6; } ! if test "${ac_cv_search_opendir+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_func_search_save_LIBS=$LIBS ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char opendir (); ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! return opendir (); ! ; ! return 0; ! } _ACEOF ! for ac_lib in '' dir; do ! if test -z "$ac_lib"; then ! ac_res="none required" ! else ! ac_res=-l$ac_lib ! LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_opendir=$ac_res + fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if test "${ac_cv_search_opendir+set}" = set; then : + break fi + done + if test "${ac_cv_search_opendir+set}" = set; then : else ! ac_cv_search_opendir=no fi + rm conftest.$ac_ext + LIBS=$ac_func_search_save_LIBS + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 + $as_echo "$ac_cv_search_opendir" >&6; } + ac_res=$ac_cv_search_opendir + if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 + $as_echo_n "checking for library containing opendir... " >&6; } + if test "${ac_cv_search_opendir+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + ac_func_search_save_LIBS=$LIBS + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char opendir (); + #ifdef F77_DUMMY_MAIN + # ifdef __cplusplus + extern "C" + # endif + int F77_DUMMY_MAIN() { return 1; } + #endif + int + main () + { + return opendir (); + ; + return 0; + } + _ACEOF + for ac_lib in '' x; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_opendir=$ac_res + fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if test "${ac_cv_search_opendir+set}" = set; then : + break + fi + done + if test "${ac_cv_search_opendir+set}" = set; then : + else + ac_cv_search_opendir=no + fi + rm conftest.$ac_ext + LIBS=$ac_func_search_save_LIBS + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 + $as_echo "$ac_cv_search_opendir" >&6; } + ac_res=$ac_cv_search_opendir + if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + fi ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 ! $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } ! if test "${ac_cv_header_time+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #include #include #include ! #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 27655,27720 **** int main () { ! static struct timeval x; x.tv_sec = x.tv_usec; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! HAVE_TIMEVAL=yes ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_TIMEVAL 1 ! _ACEOF ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } ! HAVE_TIMEVAL=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! if test "x$HAVE_TIMEVAL" = xyes; then ! { echo "$as_me:$LINENO: checking whether gettimeofday can't accept two arguments" >&5 ! echo $ECHO_N "checking whether gettimeofday can't accept two arguments... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! #ifdef TIME_WITH_SYS_TIME ! #include ! #include ! #else ! #ifdef HAVE_SYS_TIME_H ! #include ! #else ! #include #endif #endif #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 15158,15200 ---- int main () { ! if ((struct tm *) 0) ! return 0; ; return 0; } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_cv_header_time=yes else ! ac_cv_header_time=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 + $as_echo "$ac_cv_header_time" >&6; } + if test $ac_cv_header_time = yes; then ! $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h ! ! fi ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 ! $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } ! if test "${ac_cv_header_sys_wait_h+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #include ! #include ! #ifndef WEXITSTATUS ! # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) #endif + #ifndef WIFEXITED + # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif + #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 27726,27797 **** int main () { ! struct timeval time; ! struct timezone dummy; ! gettimeofday (&time, &dummy); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - { echo "$as_me:$LINENO: result: yes" >&5 - echo "${ECHO_T}yes" >&6; } ! cat >>confdefs.h <<\_ACEOF ! #define GETTIMEOFDAY_NO_TZ 1 _ACEOF fi ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! fi - { echo "$as_me:$LINENO: checking for std::isnan in " >&5 - echo $ECHO_N "checking for std::isnan in ... $ECHO_C" >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! void take_func (bool (*func) (double x)); ! void take_func (int (*func) (double x)); ! void take_func (double (*func) (double x)); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 15206,15418 ---- int main () { ! int s; ! wait (&s); ! s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_cv_header_sys_wait_h=yes else ! ac_cv_header_sys_wait_h=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 ! $as_echo "$ac_cv_header_sys_wait_h" >&6; } ! if test $ac_cv_header_sys_wait_h = yes; then ! ! $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h ! ! fi ! ### C headers ! ! for ac_header in assert.h curses.h direct.h dlfcn.h fcntl.h float.h \ ! floatingpoint.h grp.h ieeefp.h inttypes.h limits.h locale.h memory.h nan.h \ ! ncurses.h poll.h pthread.h pwd.h stdint.h stdlib.h string.h sunmath.h sys/ioctl.h \ ! sys/param.h sys/poll.h sys/resource.h sys/select.h sys/stat.h \ ! sys/time.h sys/times.h sys/types.h sys/utsname.h sys/utime.h termcap.h \ ! unistd.h utime.h varargs.h ! do : ! as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ! ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" ! eval as_val=\$$as_ac_Header ! if test "x$as_val" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi ! done + ### C++ headers ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! for ac_header in sstream ! do : ! ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default" ! if test "x$ac_cv_header_sstream" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_SSTREAM 1 ! _ACEOF ! ! fi ! ! done ! ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! have_termios_h=no ! for ac_header in termios.h ! do : ! ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" ! if test "x$ac_cv_header_termios_h" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_TERMIOS_H 1 ! _ACEOF ! have_termios_h=yes ! fi ! ! done ! ! for ac_header in termio.h ! do : ! ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default" ! if test "x$ac_cv_header_termio_h" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_TERMIO_H 1 ! _ACEOF ! have_termio_h=yes ! else ! have_termio_h=no ! fi ! ! done ! ! for ac_header in sgtty.h ! do : ! ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default" ! if test "x$ac_cv_header_sgtty_h" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_SGTTY_H 1 ! _ACEOF ! have_sgtty_h=yes ! else ! have_sgtty_h=no ! fi ! ! done ! ! for ac_header in glob.h ! do : ! ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default" ! if test "x$ac_cv_header_glob_h" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_GLOB_H 1 ! _ACEOF ! have_glob_h=yes ! else ! have_glob_h=no ! fi ! ! done ! ! for ac_header in fnmatch.h ! do : ! ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" ! if test "x$ac_cv_header_fnmatch_h" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_FNMATCH_H 1 ! _ACEOF ! have_fnmatch_h=yes ! else ! have_fnmatch_h=no ! fi ! ! done ! ! for ac_header in conio.h ! do : ! ac_fn_c_check_header_mongrel "$LINENO" "conio.h" "ac_cv_header_conio_h" "$ac_includes_default" ! if test "x$ac_cv_header_conio_h" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_CONIO_H 1 ! _ACEOF ! have_conio_h=yes ! else ! have_conio_h=no ! fi ! ! done ! ! ! ### I'm told that termios.h is broken on NeXT systems. ! ! case "$canonical_host_type" in ! *-*-nextstep*) ! if test "$have_termios_h" = yes; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring termios.h on NeXT systems." >&5 ! $as_echo "$as_me: WARNING: Ignoring termios.h on NeXT systems." >&2;} ! have_termios_h=no ! fi ! ;; ! esac ! ! if test "$have_termios_h" = yes \ ! || test "$have_termio_h" = yes \ ! || test "$have_sgtty_h" = yes; then ! true ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I couldn't find termios.h, termio.h, or sgtty.h!" >&5 ! $as_echo "$as_me: WARNING: I couldn't find termios.h, termio.h, or sgtty.h!" >&2;} ! fi ! ! LIBGLOB= ! ! if test "$have_fnmatch_h" = yes && test "$have_glob_h" = yes; then ! for ac_func in fnmatch ! do : ! ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch" ! if test "x$ac_cv_func_fnmatch" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_FNMATCH 1 _ACEOF ! have_fnmatch=yes ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fnmatch in -lglob" >&5 ! $as_echo_n "checking for fnmatch in -lglob... " >&6; } ! if test "${ac_cv_lib_glob_fnmatch+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lglob $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char fnmatch (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 27803,27862 **** int main () { ! ! take_func(std::isnan); ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_CMATH_ISNAN 1 ! _ACEOF ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - { echo "$as_me:$LINENO: result: no" >&5 - echo "${ECHO_T}no" >&6; } fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: checking for std::isnan (float variant) in " >&5 ! echo $ECHO_N "checking for std::isnan (float variant) in ... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include ! void take_func (bool (*func) (float x)); ! void take_func (int (*func) (float x)); ! void take_func (float (*func) (float x)); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 15424,15481 ---- int main () { ! return fnmatch (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_glob_fnmatch=yes else ! ac_cv_lib_glob_fnmatch=no ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glob_fnmatch" >&5 ! $as_echo "$ac_cv_lib_glob_fnmatch" >&6; } ! if test "x$ac_cv_lib_glob_fnmatch" = x""yes; then : ! have_fnmatch=yes; LIBGLOB=-lglob ! else ! have_fnmatch=no ! fi fi + done ! for ac_func in glob ! do : ! ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob" ! if test "x$ac_cv_func_glob" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_GLOB 1 _ACEOF ! have_glob=yes ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glob in -lglob" >&5 ! $as_echo_n "checking for glob in -lglob... " >&6; } ! if test "${ac_cv_lib_glob_glob+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lglob $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char glob (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 27868,28006 **** int main () { ! ! take_func(std::isnan); ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_CMATH_ISNANF 1 ! _ACEOF - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu - { echo "$as_me:$LINENO: checking for std::isinf in " >&5 - echo $ECHO_N "checking for std::isinf in ... $ECHO_C" >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! ! #include ! void take_func (bool (*func) (double x)); ! void take_func (int (*func) (double x)); ! void take_func (double (*func) (double x)); ! ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! take_func(std::isinf); ! ; ! return 0; ! } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_CMATH_ISINF 1 _ACEOF ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - { echo "$as_me:$LINENO: result: no" >&5 - echo "${ECHO_T}no" >&6; } fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - { echo "$as_me:$LINENO: checking for std::isinf (float variant) in " >&5 - echo $ECHO_N "checking for std::isinf (float variant) in ... $ECHO_C" >&6; } - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ ! #include ! void take_func (bool (*func) (float x)); ! void take_func (int (*func) (float x)); ! void take_func (float (*func) (float x)); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 15487,15625 ---- int main () { ! return glob (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_glob_glob=yes ! else ! ac_cv_lib_glob_glob=no ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glob_glob" >&5 ! $as_echo "$ac_cv_lib_glob_glob" >&6; } ! if test "x$ac_cv_lib_glob_glob" = x""yes; then : ! have_glob=yes; LIBGLOB=-lglob ! else ! have_glob=no ! fi ! fi ! done ! if test "$have_fnmatch" != yes || test "$have_glob" != yes; then ! as_fn_error "You are required to have fnmatch and glob" "$LINENO" 5 ! fi ! else ! as_fn_error "You are required to have fnmatch.h and glob.h" "$LINENO" 5 fi ! ### Checks for functions and variables. ! ! for ac_func in atexit basename bcopy bzero canonicalize_file_name \ ! chmod dup2 endgrent endpwent execvp expm1 expm1f fcntl fork fstat getcwd \ ! getegid geteuid getgid getgrent getgrgid getgrnam getpgrp getpid \ ! getppid getpwent getpwuid gettimeofday getuid getwd _kbhit kill \ ! lgamma lgammaf lgamma_r lgammaf_r link localtime_r log1p log1pf lstat \ ! memmove mkdir mkfifo mkstemp on_exit pipe poll putenv raise readlink \ ! realpath rename resolvepath rindex rmdir roundl select setgrent setlocale \ ! setpwent setvbuf sigaction siglongjmp sigpending sigprocmask sigsuspend \ ! snprintf stat strcasecmp strdup strerror stricmp strncasecmp \ ! strnicmp strptime strsignal symlink tempnam tgammaf trunc umask \ ! uname unlink usleep utime vfprintf vsprintf vsnprintf waitpid \ ! _chmod _snprintf x_utime _utime32 ! do : ! as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ! ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ! eval as_val=\$$as_ac_var ! if test "x$as_val" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! _ACEOF + fi + done ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ac_fn_cxx_check_decl "$LINENO" "exp2" "ac_cv_have_decl_exp2" "#include ! " ! if test "x$ac_cv_have_decl_exp2" = x""yes; then : ! ac_have_decl=1 ! else ! ac_have_decl=0 ! fi ! cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_EXP2 $ac_have_decl ! _ACEOF ! ac_fn_cxx_check_decl "$LINENO" "round" "ac_cv_have_decl_round" "#include ! " ! if test "x$ac_cv_have_decl_round" = x""yes; then : ! ac_have_decl=1 ! else ! ac_have_decl=0 ! fi ! cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_ROUND $ac_have_decl _ACEOF ! ac_fn_cxx_check_decl "$LINENO" "tgamma" "ac_cv_have_decl_tgamma" "#include ! " ! if test "x$ac_cv_have_decl_tgamma" = x""yes; then : ! ac_have_decl=1 ! else ! ac_have_decl=0 ! fi ! cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_TGAMMA $ac_have_decl _ACEOF ! for ac_func in exp2 round tgamma ! do : ! as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ! ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" ! eval as_val=\$$as_ac_var ! if test "x$as_val" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! _ACEOF fi + done ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! case "$canonical_host_type" in ! *-*-mingw*) ! ## MinGW does not provide a mkstemp function. However, it provides ! ## the mkstemps function in libiberty. ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemps in libiberty" >&5 ! $as_echo_n "checking for mkstemps in libiberty... " >&6; } ! save_LIBS="$LIBS" ! LIBS="-liberty $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ + int mkstemps (char *pattern, int suffix_len); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 28012,28084 **** int main () { ! ! take_func(std::isinf); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } - cat >>confdefs.h <<\_ACEOF - #define HAVE_CMATH_ISINFF 1 - _ACEOF else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - { echo "$as_me:$LINENO: result: no" >&5 - echo "${ECHO_T}no" >&6; } fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu - { echo "$as_me:$LINENO: checking for std::isfinite in " >&5 - echo $ECHO_N "checking for std::isfinite in ... $ECHO_C" >&6; } - ac_ext=cpp - ac_cpp='$CXXCPP $CPPFLAGS' - ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' - ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' - ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! #include ! void take_func (bool (*func) (double x)); ! void take_func (int (*func) (double x)); ! void take_func (double (*func) (double x)); #ifdef F77_DUMMY_MAIN --- 15631,15714 ---- int main () { ! mkstemps ("XXXXXX", 0); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! HAVE_MKSTEMPS=yes ! ! $as_echo "#define HAVE_MKSTEMPS 1" >>confdefs.h else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! HAVE_MKSTEMPS=no ! LIBS="$save_LIBS" fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ;; + esac ! case "$canonical_host_type" in ! *-*-msdosmsvc | *-*-mingw*) ! ## The %T and %e format specifiers for strftime are not implemented ! ## so use our version. We could use an actual configure test ! ## for this. ! ;; ! *) ! for ac_func in strftime ! do : ! ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" ! if test "x$ac_cv_func_strftime" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_STRFTIME 1 ! _ACEOF + fi + done + ;; + esac ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c99 vsnprintf" >&5 ! $as_echo_n "checking for c99 vsnprintf... " >&6; } ! if test "${oct_cv_c99_vsnprintf+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! if test "$cross_compiling" = yes; then : ! oct_cv_c99_vsnprintf="guessing no" ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + #include + #include + #include ! int ! doit(char * s, ...) ! { ! char buffer[32]; ! va_list args; ! int r; ! ! va_start(args, s); ! r = vsnprintf(buffer, 5, s, args); ! va_end(args); ! ! if (r != 7) ! exit(1); ! ! exit(0); ! } #ifdef F77_DUMMY_MAIN *************** *** 28092,28149 **** main () { ! take_func(std::isfinite); ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_CMATH_ISFINITE 1 ! _ACEOF ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - { echo "$as_me:$LINENO: result: no" >&5 - echo "${ECHO_T}no" >&6; } fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { echo "$as_me:$LINENO: checking for std::isfinite (float variant) in " >&5 ! echo $ECHO_N "checking for std::isfinite (float variant) in ... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! #include ! void take_func (bool (*func) (float x)); ! void take_func (int (*func) (float x)); ! void take_func (float (*func) (float x)); #ifdef F77_DUMMY_MAIN --- 15722,15782 ---- main () { ! doit("1234567"); ; return 0; } _ACEOF ! if ac_fn_c_try_run "$LINENO"; then : ! oct_cv_c99_vsnprintf=yes else ! oct_cv_c99_vsnprintf=no ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ ! conftest.$ac_objext conftest.beam conftest.$ac_ext ! fi fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $oct_cv_c99_vsnprintf" >&5 + $as_echo "$oct_cv_c99_vsnprintf" >&6; } ! case $oct_cv_c99_vsnprintf in ! yes) ! ! $as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h ! ! ;; ! esac ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime is broken" >&5 ! $as_echo_n "checking whether strptime is broken... " >&6; } ! if test "${octave_cv_strptime_broken+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! if test "$cross_compiling" = yes; then : ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! as_fn_error "cannot run test program while cross compiling ! See \`config.log' for more details." "$LINENO" 5; } ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #define _XOPEN_SOURCE ! #if defined (HAVE_SYS_TYPES_H) ! #include ! #if defined (HAVE_UNISTD_H) ! #include ! #endif ! #endif ! #include ! #include #ifdef F77_DUMMY_MAIN *************** *** 28157,28201 **** main () { ! take_func(std::isfinite); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_CMATH_ISFINITEF 1 ! _ACEOF ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - { echo "$as_me:$LINENO: result: no" >&5 - echo "${ECHO_T}no" >&6; } fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' --- 15790,15820 ---- main () { ! struct tm t; ! char *q = strptime ("09/13", "%m/%d/%y", &t); ! return q ? 1 : 0; ; return 0; } _ACEOF ! if ac_fn_c_try_run "$LINENO"; then : ! octave_cv_strptime_broken=no else ! octave_cv_strptime_broken=yes ! fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ ! conftest.$ac_objext conftest.beam conftest.$ac_ext ! fi fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_strptime_broken" >&5 + $as_echo "$octave_cv_strptime_broken" >&6; } + if test $octave_cv_strptime_broken = yes; then ! $as_echo "#define OCTAVE_HAVE_BROKEN_STRPTIME 1" >>confdefs.h ! ! fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' *************** *** 28203,28291 **** ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ### I am told that Inf and NaN don't work on m68k HP sytems, and that ! ### on SCO systems, isnan and isinf don't work, but they can be ! ### replaced by something that does. ! ! case "$canonical_host_type" in ! m68k-hp-hpux*) ! ;; ! *-*-sco*) ! { echo "$as_me:$LINENO: defining SCO to be 1" >&5 ! echo "$as_me: defining SCO to be 1" >&6;} ! ! cat >>confdefs.h <<\_ACEOF ! #define SCO 1 ! _ACEOF ! ! { echo "$as_me:$LINENO: forcing HAVE_ISINF for SCO" >&5 ! echo "$as_me: forcing HAVE_ISINF for SCO" >&6;} ! ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_ISINF 1 _ACEOF ! { echo "$as_me:$LINENO: forcing HAVE_ISNAN for SCO" >&5 ! echo "$as_me: forcing HAVE_ISNAN for SCO" >&6;} ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_ISNAN 1 ! _ACEOF ! ;; ! *) ! for ac_func in finite isnan isinf copysign signbit ! do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! /* Define $ac_func to an innocuous variant, in case declares $ac_func. ! For example, HP-UX 11i declares gettimeofday. */ ! #define $ac_func innocuous_$ac_func ! ! /* System header to define __stub macros and hopefully few prototypes, ! which can conflict with char $ac_func (); below. ! Prefer to if __STDC__ is defined, since ! exists even on freestanding compilers. */ ! ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif - #undef $ac_func ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me ! #endif #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 15822,15950 ---- ac_compiler_gnu=$ac_cv_c_compiler_gnu + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv uses malloc" >&5 + $as_echo_n "checking whether putenv uses malloc... " >&6; } + if test "${octave_cv_func_putenv_malloc+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + if test "$cross_compiling" = yes; then : + octave_cv_func_putenv_malloc=no + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ ! #define VAR "YOW_VAR" ! #define STRING1 "GabbaGabbaHey" ! #define STRING2 "Yow!!" /* should be shorter than STRING1 */ ! extern char *getenv (); /* in case char* and int don't mix gracefully */ ! main () ! { ! char *str1, *rstr1, *str2, *rstr2; ! str1 = getenv (VAR); ! if (str1) ! exit (1); ! str1 = malloc (strlen (VAR) + 1 + strlen (STRING1) + 1); ! if (str1 == 0) ! exit (2); ! strcpy (str1, VAR); ! strcat (str1, "="); ! strcat (str1, STRING1); ! if (putenv (str1) < 0) ! exit (3); ! rstr1 = getenv (VAR); ! if (rstr1 == 0) ! exit (4); ! rstr1 -= strlen (VAR) + 1; ! if (strncmp (rstr1, VAR, strlen (VAR))) ! exit (5); ! str2 = malloc (strlen (VAR) + 1 + strlen (STRING2) + 1); ! if (str2 == 0 || str1 == str2) ! exit (6); ! strcpy (str2, VAR); ! strcat (str2, "="); ! strcat (str2, STRING2); ! if (putenv (str2) < 0) ! exit (7); ! rstr2 = getenv (VAR); ! if (rstr2 == 0) ! exit (8); ! rstr2 -= strlen (VAR) + 1; ! #if 0 ! printf ("rstr1=0x%x, rstr2=0x%x\n", rstr1, rstr2); ! /* ! * If string from first call was reused for the second call, ! * you had better not do a free on the first string! ! */ ! if (rstr1 == rstr2) ! printf ("#define SMART_PUTENV\n"); ! else ! printf ("#undef SMART_PUTENV\n"); ! #endif ! exit (rstr1 == rstr2 ? 0 : 1); ! } _ACEOF + if ac_fn_c_try_run "$LINENO"; then : + octave_cv_func_putenv_malloc=yes + else + octave_cv_func_putenv_malloc=no + fi + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext + fi ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_func_putenv_malloc" >&5 ! $as_echo "$octave_cv_func_putenv_malloc" >&6; } ! if test $octave_cv_func_putenv_malloc = yes; then ! $as_echo "#define SMART_PUTENV 1" >>confdefs.h ! fi + case "$canonical_host_type" in + *-*-msdosmsvc | *-*-mingw*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required _WIN32_WINNT" >&5 + $as_echo_n "checking for required _WIN32_WINNT... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include + #if _WIN32_WINNT < 0x0403 + #error "Wrong version" + #endif + #ifdef F77_DUMMY_MAIN + # ifdef __cplusplus + extern "C" + # endif + int F77_DUMMY_MAIN() { return 1; } + #endif + int + main () + { ! ; ! return 0; ! } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 ! $as_echo "none" >&6; } ! else ! $as_echo "#define _WIN32_WINNT 0x0403" >>confdefs.h + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0x0403" >&5 + $as_echo "0x0403" >&6; } + fi + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _USE_MATH_DEFINES needs to be defined" >&5 + $as_echo_n "checking whether _USE_MATH_DEFINES needs to be defined... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 28297,28395 **** int main () { ! return $ac_func (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" - fi ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then ! cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! _ACEOF fi ! done ! for ac_func in _finite _isnan _copysign ! do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! /* Define $ac_func to an innocuous variant, in case declares $ac_func. ! For example, HP-UX 11i declares gettimeofday. */ ! #define $ac_func innocuous_$ac_func ! /* System header to define __stub macros and hopefully few prototypes, ! which can conflict with char $ac_func (); below. ! Prefer to if __STDC__ is defined, since ! exists even on freestanding compilers. */ - #ifdef __STDC__ - # include - #else - # include - #endif ! #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me #endif ! #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 15956,16022 ---- int main () { ! int x = M_LN2; ; return 0; } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } else ! $as_echo "#define _USE_MATH_DEFINES 1" >>confdefs.h + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 + $as_echo "yes" >&6; } fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ;; ! esac ! ! ### Dynamic linking is now enabled only if we are building shared ! ### libs and some API for dynamic linking is detected. + LD_CXX='$(CXX)' + RDYNAMIC_FLAG= + DL_API_MSG="" + dlopen_api=false + shl_load_api=false + loadlibrary_api=false + dyld_api=false + if $SHARED_LIBS || $ENABLE_DYNAMIC_LINKING; then + ## Check for dyld first since OS X can have a non-standard libdl ! ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" ! if test "x$ac_cv_header_mach_o_dyld_h" = x""yes; then : ! fi ! if test "$ac_cv_header_mach_o_dyld_h" = yes; then ! dyld_api=true ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 ! $as_echo_n "checking for shl_load in -ldld... " >&6; } ! if test "${ac_cv_lib_dld_shl_load+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-ldld $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" #endif ! char shl_load (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 28401,28464 **** int main () { ! return $ac_func (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_var=no" fi - rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done ! { echo "$as_me:$LINENO: checking whether signbit is declared" >&5 ! echo $ECHO_N "checking whether signbit is declared... $ECHO_C" >&6; } ! if test "${ac_cv_have_decl_signbit+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - #include #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 16028,16092 ---- int main () { ! return shl_load (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_dld_shl_load=yes else ! ac_cv_lib_dld_shl_load=no fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_check_lib_save_LIBS + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 + $as_echo "$ac_cv_lib_dld_shl_load" >&6; } + if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : + cat >>confdefs.h <<_ACEOF + #define HAVE_LIBDLD 1 + _ACEOF + + LIBS="-ldld $LIBS" fi ! ! for ac_func in shl_load shl_findsym ! do : ! as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ! ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ! eval as_val=\$$as_ac_var ! if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done ! if test "$ac_cv_func_shl_load" = yes \ ! && test "$ac_cv_func_shl_findsym" = yes; then ! shl_load_api=true ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LoadLibrary in -lwsock32" >&5 ! $as_echo_n "checking for LoadLibrary in -lwsock32... " >&6; } ! if test "${ac_cv_lib_wsock32_LoadLibrary+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-lwsock32 $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char LoadLibrary (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 28470,28576 **** int main () { ! #ifndef signbit ! (void) signbit; ! #endif ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_have_decl_signbit=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_have_decl_signbit=no fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $ac_cv_have_decl_signbit" >&5 ! echo "${ECHO_T}$ac_cv_have_decl_signbit" >&6; } ! if test $ac_cv_have_decl_signbit = yes; then ! ! cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_SIGNBIT 1 ! _ACEOF ! ! ! else cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_SIGNBIT 0 _ACEOF fi ! ;; ! esac ! ! ### Check for nonstandard but common math functions that we need. ! ! ! ! ! ! ! ! ! ! ! ! ! ! for ac_func in acosh acoshf asinh asinhf atanh atanhf erf erff erfc erfcf exp2f log2 log2f ! do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - /* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ - #define $ac_func innocuous_$ac_func - - /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - - #ifdef __STDC__ - # include - #else - # include - #endif - - #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC --- 16098,16151 ---- int main () { ! return LoadLibrary (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_wsock32_LoadLibrary=yes else ! ac_cv_lib_wsock32_LoadLibrary=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! LIBS=$ac_check_lib_save_LIBS fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_LoadLibrary" >&5 ! $as_echo "$ac_cv_lib_wsock32_LoadLibrary" >&6; } ! if test "x$ac_cv_lib_wsock32_LoadLibrary" = x""yes; then : cat >>confdefs.h <<_ACEOF ! #define HAVE_LIBWSOCK32 1 _ACEOF + LIBS="-lwsock32 $LIBS" fi + for ac_func in LoadLibrary + do : + ac_fn_c_check_func "$LINENO" "LoadLibrary" "ac_cv_func_LoadLibrary" + if test "x$ac_cv_func_LoadLibrary" = x""yes; then : + cat >>confdefs.h <<_ACEOF + #define HAVE_LOADLIBRARY 1 + _ACEOF ! fi ! done ! if test "$ac_cv_func_loadlibrary" = yes; then ! loadlibrary_api=true ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 ! $as_echo_n "checking for dlopen in -ldl... " >&6; } ! if test "${ac_cv_lib_dl_dlopen+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! ac_check_lib_save_LIBS=$LIBS ! LIBS="-ldl $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC *************** *** 28578,28591 **** #ifdef __cplusplus extern "C" #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me ! #endif ! #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 16153,16159 ---- #ifdef __cplusplus extern "C" #endif ! char dlopen (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 28597,28693 **** int main () { ! return $ac_func (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_var=no" fi - rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done ! for ac_func in hypotf _hypotf ! do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! /* Define $ac_func to an innocuous variant, in case declares $ac_func. ! For example, HP-UX 11i declares gettimeofday. */ ! #define $ac_func innocuous_$ac_func ! /* System header to define __stub macros and hopefully few prototypes, ! which can conflict with char $ac_func (); below. ! Prefer to if __STDC__ is defined, since ! exists even on freestanding compilers. */ - #ifdef __STDC__ - # include - #else - # include - #endif ! #undef $ac_func ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me ! #endif #ifdef F77_DUMMY_MAIN --- 16165,16259 ---- int main () { ! return dlopen (); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! ac_cv_lib_dl_dlopen=yes else ! ac_cv_lib_dl_dlopen=no fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_check_lib_save_LIBS + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 + $as_echo "$ac_cv_lib_dl_dlopen" >&6; } + if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : + cat >>confdefs.h <<_ACEOF + #define HAVE_LIBDL 1 + _ACEOF + + LIBS="-ldl $LIBS" fi ! ! for ac_func in dlopen dlsym dlerror dlclose ! do : ! as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ! ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ! eval as_val=\$$as_ac_var ! if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done + if test "$ac_cv_func_dlclose" = yes \ + && test "$ac_cv_func_dlerror" = yes \ + && test "$ac_cv_func_dlopen" = yes \ + && test "$ac_cv_func_dlsym" = yes; then + dlopen_api=true + else + case "$canonical_host_type" in + i[3456]86-*-sco3.2v5*) + LD_CXX='LD_RUN_PATH=$LD_RUN_PATH:$(octlibdir) $(CXX)' + dlopen_api=true + ;; + esac + fi + fi + fi + fi + ## autoconf test for LoadLibrary appears broken. Bypass for cygwin/mingw + if $dlopen_api || $shl_load_api || $loadlibrary_api || $dyld_api; then + true + else + case "$canonical_host_type" in + *-*-cygwin* | *-*-mingw* | *-*-msdosmsvc) + loadlibrary_api=true; + ;; + esac + fi ! if $dlopen_api; then ! DL_API_MSG="(dlopen)" ! $as_echo "#define HAVE_DLOPEN_API 1" >>confdefs.h ! ac_safe=`echo "-rdynamic" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-g++} accepts -rdynamic" >&5 ! $as_echo_n "checking whether ${CXX-g++} accepts -rdynamic... " >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 ! else ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! XCXXFLAGS="$CXXFLAGS" ! CXXFLAGS="$CXXFLAGS -rdynamic" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN *************** *** 28700,28765 **** int main () { ! return $ac_func (); ; return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" - fi - rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - fi - ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 - echo "${ECHO_T}$ac_res" >&6; } - if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF - #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 - _ACEOF - fi - done - ### Checks for OS specific cruft. ! { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 ! echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } ! if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 16266,16363 ---- int main () { ! ; return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : ! eval "octave_cv_cxx_flag_$ac_safe=yes" else ! eval "octave_cv_cxx_flag_$ac_safe=no" ! fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ! CXXFLAGS="$XCXXFLAGS" ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! fi ! ! if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! RDYNAMIC_FLAG=-rdynamic ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! ! fi ! ! elif $shl_load_api; then ! DL_API_MSG="(shl_load)" ! ! $as_echo "#define HAVE_SHL_LOAD_API 1" >>confdefs.h ! ! elif $loadlibrary_api; then ! DL_API_MSG="(LoadLibrary)" ! ! $as_echo "#define HAVE_LOADLIBRARY_API 1" >>confdefs.h ! ! elif $dyld_api; then ! DL_API_MSG="(dyld)" ! ! $as_echo "#define HAVE_DYLD_API 1" >>confdefs.h ! ! fi ! ! if $dlopen_api || $shl_load_api || $loadlibrary_api || $dyld_api; then ! ENABLE_DYNAMIC_LINKING=true ! ! $as_echo "#define ENABLE_DYNAMIC_LINKING 1" >>confdefs.h ! ! fi ! fi ! ! if $SHARED_LIBS; then ! LIBOCTINTERP=-loctinterp$SHLLINKEXT ! LIBOCTAVE=-loctave$SHLLINKEXT ! LIBCRUFT=-lcruft$SHLLINKEXT ! else ! LIBOCTINTERP='$(TOPDIR)/src/liboctinterp.$(LIBEXT)' ! LIBOCTAVE='$(TOPDIR)/liboctave/liboctave.$(LIBEXT)' ! LIBCRUFT='$(TOPDIR)/libcruft/libcruft.$(LIBEXT)' ! fi ! ! ! ### There is more than one possible prototype for gettimeofday. See ! ### which one (if any) appears in sys/time.h. These tests are from ! ### Emacs 19. ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 ! $as_echo_n "checking for struct timeval... " >&6; } ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #ifdef TIME_WITH_SYS_TIME ! #include ! #include ! #else ! #ifdef HAVE_SYS_TIME_H ! #include ! #else ! #include ! #endif ! #endif #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 28771,28812 **** int main () { ! static struct stat ac_aggr; ! if (ac_aggr.st_blksize) ! return 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_member_struct_stat_st_blksize=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 16369,16408 ---- int main () { ! static struct timeval x; x.tv_sec = x.tv_usec; ; return 0; } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! HAVE_TIMEVAL=yes ! ! $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! HAVE_TIMEVAL=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! if test "x$HAVE_TIMEVAL" = xyes; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can't accept two arguments" >&5 ! $as_echo_n "checking whether gettimeofday can't accept two arguments... " >&6; } ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! #ifdef TIME_WITH_SYS_TIME ! #include ! #include ! #else ! #ifdef HAVE_SYS_TIME_H ! #include ! #else ! #include ! #endif ! #endif #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 28818,28882 **** int main () { ! static struct stat ac_aggr; ! if (sizeof ac_aggr.st_blksize) ! return 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_member_struct_stat_st_blksize=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cv_member_struct_stat_st_blksize=no ! fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 - echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } - if test $ac_cv_member_struct_stat_st_blksize = yes; then - cat >>confdefs.h <<_ACEOF - #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 - _ACEOF ! fi ! { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 ! echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; } ! if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 16414,16458 ---- int main () { ! struct timeval time; ! struct timezone dummy; ! gettimeofday (&time, &dummy); ; return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isnan in " >&5 ! $as_echo_n "checking for std::isnan in ... " >&6; } ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! #include ! void take_func (bool (*func) (double x)); ! void take_func (int (*func) (double x)); ! void take_func (double (*func) (double x)); ! #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 28888,28929 **** int main () { ! static struct stat ac_aggr; ! if (ac_aggr.st_blocks) ! return 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_member_struct_stat_st_blocks=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 16464,16497 ---- int main () { ! ! take_func(std::isnan); ! ; return 0; } _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! $as_echo "#define HAVE_CMATH_ISNAN 1" >>confdefs.h ! ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isnan (float variant) in " >&5 ! $as_echo_n "checking for std::isnan (float variant) in ... " >&6; } ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! #include ! void take_func (bool (*func) (float x)); ! void take_func (int (*func) (float x)); ! void take_func (float (*func) (float x)); ! #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 28935,28999 **** int main () { ! static struct stat ac_aggr; ! if (sizeof ac_aggr.st_blocks) ! return 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_member_struct_stat_st_blocks=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cv_member_struct_stat_st_blocks=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 ! echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } ! if test $ac_cv_member_struct_stat_st_blocks = yes; then - cat >>confdefs.h <<_ACEOF - #define HAVE_STRUCT_STAT_ST_BLOCKS 1 - _ACEOF ! fi ! { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 ! echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } ! if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 16503,16550 ---- int main () { ! ! take_func(std::isnan); ! ; return 0; } _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! $as_echo "#define HAVE_CMATH_ISNANF 1" >>confdefs.h ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isinf in " >&5 ! $as_echo_n "checking for std::isinf in ... " >&6; } ! ac_ext=cpp ! ac_cpp='$CXXCPP $CPPFLAGS' ! ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! #include ! void take_func (bool (*func) (double x)); ! void take_func (int (*func) (double x)); ! void take_func (double (*func) (double x)); ! #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 29005,29046 **** int main () { ! static struct stat ac_aggr; ! if (ac_aggr.st_rdev) ! return 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_member_struct_stat_st_rdev=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! $ac_includes_default #ifdef F77_DUMMY_MAIN # ifdef __cplusplus --- 16556,16589 ---- int main () { ! ! take_func(std::isinf); ! ; return 0; } _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! $as_echo "#define HAVE_CMATH_ISINF 1" >>confdefs.h ! ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isinf (float variant) in " >&5 ! $as_echo_n "checking for std::isinf (float variant) in ... " >&6; } ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! #include ! void take_func (bool (*func) (float x)); ! void take_func (int (*func) (float x)); ! void take_func (float (*func) (float x)); ! #ifdef F77_DUMMY_MAIN # ifdef __cplusplus *************** *** 29052,29119 **** int main () { ! static struct stat ac_aggr; ! if (sizeof ac_aggr.st_rdev) ! return 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_member_struct_stat_st_rdev=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cv_member_struct_stat_st_rdev=no ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 ! echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } ! if test $ac_cv_member_struct_stat_st_rdev = yes; then ! ! cat >>confdefs.h <<_ACEOF ! #define HAVE_STRUCT_STAT_ST_RDEV 1 ! _ACEOF - fi ! { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 ! echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } ! if test "${ac_cv_struct_tm+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ ! #include ! #include #ifdef F77_DUMMY_MAIN --- 16595,16641 ---- int main () { ! ! take_func(std::isinf); ! ; return 0; } _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! $as_echo "#define HAVE_CMATH_ISINFF 1" >>confdefs.h ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isfinite in " >&5 + $as_echo_n "checking for std::isfinite in ... " >&6; } + ac_ext=cpp + ac_cpp='$CXXCPP $CPPFLAGS' + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ ! ! #include ! void take_func (bool (*func) (double x)); ! void take_func (int (*func) (double x)); ! void take_func (double (*func) (double x)); #ifdef F77_DUMMY_MAIN *************** *** 29126,29189 **** int main () { ! struct tm tm; ! int *p = &tm.tm_sec; ! return !p; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_struct_tm=time.h ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_struct_tm=sys/time.h ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 ! echo "${ECHO_T}$ac_cv_struct_tm" >&6; } ! if test $ac_cv_struct_tm = sys/time.h; then ! ! cat >>confdefs.h <<\_ACEOF ! #define TM_IN_SYS_TIME 1 ! _ACEOF ! fi - { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 - echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } - if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - #include - #include <$ac_cv_struct_tm> #ifdef F77_DUMMY_MAIN --- 16648,16680 ---- int main () { ! ! take_func(std::isfinite); ! ; return 0; } _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! $as_echo "#define HAVE_CMATH_ISFINITE 1" >>confdefs.h else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isfinite (float variant) in " >&5 ! $as_echo_n "checking for std::isfinite (float variant) in ... " >&6; } ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + #include + void take_func (bool (*func) (float x)); + void take_func (int (*func) (float x)); + void take_func (float (*func) (float x)); #ifdef F77_DUMMY_MAIN *************** *** 29196,29317 **** int main () { ! static struct tm ac_aggr; ! if (ac_aggr.tm_zone) ! return 0; ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_member_struct_tm_tm_zone=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ - #include - #include <$ac_cv_struct_tm> ! #ifdef F77_DUMMY_MAIN ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! #endif ! int ! main () ! { ! static struct tm ac_aggr; ! if (sizeof ac_aggr.tm_zone) ! return 0; ! ; ! return 0; ! } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; esac - eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_member_struct_tm_tm_zone=yes - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 ! ac_cv_member_struct_tm_tm_zone=no ! fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 ! echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } ! if test $ac_cv_member_struct_tm_tm_zone = yes; then cat >>confdefs.h <<_ACEOF ! #define HAVE_STRUCT_TM_TM_ZONE 1 _ACEOF fi ! if test "$ac_cv_member_struct_tm_tm_zone" = yes; then ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_TM_ZONE 1 _ACEOF else ! { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 ! echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } ! if test "${ac_cv_have_decl_tzname+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef F77_DUMMY_MAIN --- 16687,16853 ---- int main () { ! ! take_func(std::isfinite); ! ; return 0; } _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! ! $as_echo "#define HAVE_CMATH_ISFINITEF 1" >>confdefs.h ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } ! fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! ac_ext=c ! ac_cpp='$CPP $CPPFLAGS' ! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! ac_compiler_gnu=$ac_cv_c_compiler_gnu ! ! ! ! ! ### I am told that Inf and NaN don't work on m68k HP sytems, and that ! ### on SCO systems, isnan and isinf don't work, but they can be ! ### replaced by something that does. ! ! case "$canonical_host_type" in ! m68k-hp-hpux*) ! ;; ! *-*-sco*) ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining SCO to be 1" >&5 ! $as_echo "$as_me: defining SCO to be 1" >&6;} ! ! $as_echo "#define SCO 1" >>confdefs.h ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: forcing HAVE_ISINF for SCO" >&5 ! $as_echo "$as_me: forcing HAVE_ISINF for SCO" >&6;} ! ! $as_echo "#define HAVE_ISINF 1" >>confdefs.h ! { $as_echo "$as_me:${as_lineno-$LINENO}: forcing HAVE_ISNAN for SCO" >&5 ! $as_echo "$as_me: forcing HAVE_ISNAN for SCO" >&6;} ! ! $as_echo "#define HAVE_ISNAN 1" >>confdefs.h ! ! ;; ! *) ! for ac_func in finite isnan isinf copysign signbit ! do : ! as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ! ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ! eval as_val=\$$as_ac_var ! if test "x$as_val" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF + fi + done ! for ac_func in _finite _isnan _copysign ! do : ! as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ! ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ! eval as_val=\$$as_ac_var ! if test "x$as_val" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! _ACEOF ! fi ! done ! ac_fn_c_check_decl "$LINENO" "signbit" "ac_cv_have_decl_signbit" "#include ! " ! if test "x$ac_cv_have_decl_signbit" = x""yes; then : ! ac_have_decl=1 ! else ! ac_have_decl=0 ! fi ! ! cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_SIGNBIT $ac_have_decl _ACEOF ! ! ;; esac ! ### Check for nonstandard but common math functions that we need. ! ! for ac_func in acosh acoshf asinh asinhf atanh atanhf erf erff erfc erfcf exp2f log2 log2f ! do : ! as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ! ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ! eval as_val=\$$as_ac_var ! if test "x$as_val" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! _ACEOF fi + done + + for ac_func in hypotf _hypotf + do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` + ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" + eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF + #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 + _ACEOF fi ! done ! ! ! ### Checks for OS specific cruft. ! ! ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" ! if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then : cat >>confdefs.h <<_ACEOF ! #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 _ACEOF fi + ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" + if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_STRUCT_STAT_ST_BLOCKS 1 ! _ACEOF ! ! ! fi ! ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" ! if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : ! cat >>confdefs.h <<_ACEOF ! #define HAVE_STRUCT_STAT_ST_RDEV 1 _ACEOF + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 + $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } + if test "${ac_cv_struct_tm+set}" = set; then : + $as_echo_n "(cached) " >&6 else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + #include #include #ifdef F77_DUMMY_MAIN *************** *** 29325,29393 **** int main () { ! #ifndef tzname ! (void) tzname; ! #endif ! ; return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_have_decl_tzname=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_have_decl_tzname=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 ! echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } ! if test $ac_cv_have_decl_tzname = yes; then ! cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_TZNAME 1 ! _ACEOF ! else ! cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_TZNAME 0 _ACEOF fi - { echo "$as_me:$LINENO: checking for tzname" >&5 - echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } - if test "${ac_cv_var_tzname+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #if !HAVE_DECL_TZNAME --- 16861,16924 ---- int main () { ! struct tm tm; ! int *p = &tm.tm_sec; ! return !p; ; return 0; } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ! ac_cv_struct_tm=time.h else ! ac_cv_struct_tm=sys/time.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 ! $as_echo "$ac_cv_struct_tm" >&6; } ! if test $ac_cv_struct_tm = sys/time.h; then ! $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h + fi ! ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include ! #include <$ac_cv_struct_tm> ! ! " ! if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : ! ! cat >>confdefs.h <<_ACEOF ! #define HAVE_STRUCT_TM_TM_ZONE 1 _ACEOF fi + if test "$ac_cv_member_struct_tm_tm_zone" = yes; then + + $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h else ! ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include ! " ! if test "x$ac_cv_have_decl_tzname" = x""yes; then : ! ac_have_decl=1 ! else ! ac_have_decl=0 ! fi ! ! cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_TZNAME $ac_have_decl _ACEOF ! ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 ! $as_echo_n "checking for tzname... " >&6; } ! if test "${ac_cv_var_tzname+set}" = set; then : ! $as_echo_n "(cached) " >&6 ! else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if !HAVE_DECL_TZNAME *************** *** 29410,29468 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ac_cv_var_tzname=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_var_tzname=no fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 ! echo "${ECHO_T}$ac_cv_var_tzname" >&6; } if test $ac_cv_var_tzname = yes; then ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_TZNAME 1 ! _ACEOF fi fi ! { echo "$as_me:$LINENO: checking whether closedir returns void" >&5 ! echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } ! if test "${ac_cv_func_closedir_void+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! if test "$cross_compiling" = yes; then ac_cv_func_closedir_void=yes else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header_dirent> --- 16941,16972 ---- return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ac_cv_var_tzname=yes else ! ac_cv_var_tzname=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 ! $as_echo "$ac_cv_var_tzname" >&6; } if test $ac_cv_var_tzname = yes; then ! $as_echo "#define HAVE_TZNAME 1" >>confdefs.h fi fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 ! $as_echo_n "checking whether closedir returns void... " >&6; } ! if test "${ac_cv_func_closedir_void+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! if test "$cross_compiling" = yes; then : ac_cv_func_closedir_void=yes else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #include <$ac_header_dirent> *************** *** 29486,29646 **** return 0; } _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then ac_cv_func_closedir_void=no else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! ac_cv_func_closedir_void=yes fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi - fi ! { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 ! echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } if test $ac_cv_func_closedir_void = yes; then ! cat >>confdefs.h <<\_ACEOF ! #define CLOSEDIR_VOID 1 ! _ACEOF ! ! fi ! ! ! { echo "$as_me:$LINENO: checking for struct group.gr_passwd" >&5 ! echo $ECHO_N "checking for struct group.gr_passwd... $ECHO_C" >&6; } ! if test "${ac_cv_member_struct_group_gr_passwd+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! static struct group ac_aggr; ! if (ac_aggr.gr_passwd) ! return 0; ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_member_struct_group_gr_passwd=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! $ac_includes_default ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! static struct group ac_aggr; ! if (sizeof ac_aggr.gr_passwd) ! return 0; ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_member_struct_group_gr_passwd=yes ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_member_struct_group_gr_passwd=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ! fi ! { echo "$as_me:$LINENO: result: $ac_cv_member_struct_group_gr_passwd" >&5 ! echo "${ECHO_T}$ac_cv_member_struct_group_gr_passwd" >&6; } ! if test $ac_cv_member_struct_group_gr_passwd = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_GROUP_GR_PASSWD 1 --- 16990,17016 ---- return 0; } _ACEOF ! if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_closedir_void=no else ! ac_cv_func_closedir_void=yes fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ ! conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 ! $as_echo "$ac_cv_func_closedir_void" >&6; } if test $ac_cv_func_closedir_void = yes; then ! $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h fi ! ac_fn_c_check_member "$LINENO" "struct group" "gr_passwd" "ac_cv_member_struct_group_gr_passwd" "$ac_includes_default" ! if test "x$ac_cv_member_struct_group_gr_passwd" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_GROUP_GR_PASSWD 1 *************** *** 29658,29673 **** ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! { echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5 ! echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6; } ! if test "${octave_cv_mkdir_takes_one_arg+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef HAVE_SYS_STAT_H --- 17028,17039 ---- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5 ! $as_echo_n "checking if mkdir takes one argument... " >&6; } ! if test "${octave_cv_mkdir_takes_one_arg+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_STAT_H *************** *** 29692,29729 **** { mkdir ("foo", 0); ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then octave_cv_mkdir_takes_one_arg=no else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! octave_cv_mkdir_takes_one_arg=yes fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $octave_cv_mkdir_takes_one_arg" >&5 ! echo "${ECHO_T}$octave_cv_mkdir_takes_one_arg" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' --- 17058,17075 ---- { mkdir ("foo", 0); ; ! return 0; ! } ! _ACEOF ! if ac_fn_cxx_try_compile "$LINENO"; then : octave_cv_mkdir_takes_one_arg=no else ! octave_cv_mkdir_takes_one_arg=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_mkdir_takes_one_arg" >&5 ! $as_echo "$octave_cv_mkdir_takes_one_arg" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' *************** *** 29732,29759 **** if test $octave_cv_mkdir_takes_one_arg = yes ; then ! cat >>confdefs.h <<\_ACEOF ! #define MKDIR_TAKES_ONE_ARG 1 ! _ACEOF fi octave_found_termlib=no for termlib in ncurses curses termcap terminfo termlib; do ! as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for tputs in -l${termlib}" >&5 ! echo $ECHO_N "checking for tputs in -l${termlib}... $ECHO_C" >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-l${termlib} $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. --- 17078,17099 ---- if test $octave_cv_mkdir_takes_one_arg = yes ; then ! $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h fi octave_found_termlib=no for termlib in ncurses curses termcap terminfo termlib; do ! as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5 ! $as_echo_n "checking for tputs in -l${termlib}... " >&6; } ! if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-l${termlib} $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. *************** *** 29779,29818 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then eval "$as_ac_Lib=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_Lib=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi ! ac_res=`eval echo '${'$as_ac_Lib'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_Lib'}'` = yes; then TERMLIBS="${TERMLIBS} -l${termlib}" fi --- 17119,17138 ---- return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : eval "$as_ac_Lib=yes" else ! eval "$as_ac_Lib=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi ! eval ac_res=\$$as_ac_Lib ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 ! $as_echo "$ac_res" >&6; } ! eval as_val=\$$as_ac_Lib ! if test "x$as_val" = x""yes; then : TERMLIBS="${TERMLIBS} -l${termlib}" fi *************** *** 29829,29843 **** if test "$octave_found_termlib" = no; then warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, o\ r -ltermlib!" ! { echo "$as_me:$LINENO: WARNING: $warn_termlibs" >&5 ! echo "$as_me: WARNING: $warn_termlibs" >&2;} fi USE_READLINE=true LIBREADLINE= # Check whether --enable-readline was given. ! if test "${enable_readline+set}" = set; then enableval=$enable_readline; if test "$enableval" = no; then USE_READLINE=false warn_readline="command editing and history features require GNU Readline" --- 17149,17163 ---- if test "$octave_found_termlib" = no; then warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, o\ r -ltermlib!" ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_termlibs" >&5 ! $as_echo "$as_me: WARNING: $warn_termlibs" >&2;} fi USE_READLINE=true LIBREADLINE= # Check whether --enable-readline was given. ! if test "${enable_readline+set}" = set; then : enableval=$enable_readline; if test "$enableval" = no; then USE_READLINE=false warn_readline="command editing and history features require GNU Readline" *************** *** 29845,29862 **** fi if $USE_READLINE; then ! { echo "$as_me:$LINENO: checking for rl_set_keyboard_input_timeout in -lreadline" >&5 ! echo $ECHO_N "checking for rl_set_keyboard_input_timeout in -lreadline... $ECHO_C" >&6; } ! if test "${ac_cv_lib_readline_rl_set_keyboard_input_timeout+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline $LIBS" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. --- 17165,17178 ---- fi if $USE_READLINE; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_set_keyboard_input_timeout in -lreadline" >&5 ! $as_echo_n "checking for rl_set_keyboard_input_timeout in -lreadline... " >&6; } ! if test "${ac_cv_lib_readline_rl_set_keyboard_input_timeout+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline $LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. *************** *** 29882,29936 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ac_cv_lib_readline_rl_set_keyboard_input_timeout=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_lib_readline_rl_set_keyboard_input_timeout=no fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_set_keyboard_input_timeout" >&5 ! echo "${ECHO_T}$ac_cv_lib_readline_rl_set_keyboard_input_timeout" >&6; } ! if test $ac_cv_lib_readline_rl_set_keyboard_input_timeout = yes; then LIBREADLINE="-lreadline" LIBS="$LIBREADLINE $LIBS" ! cat >>confdefs.h <<\_ACEOF ! #define USE_READLINE 1 ! _ACEOF else ! { echo "$as_me:$LINENO: WARNING: I need GNU Readline 4.2 or later" >&5 ! echo "$as_me: WARNING: I need GNU Readline 4.2 or later" >&2;} ! { { echo "$as_me:$LINENO: error: this is fatal unless you specify --disable-readline" >&5 ! echo "$as_me: error: this is fatal unless you specify --disable-readline" >&2;} ! { (exit 1); exit 1; }; } fi --- 17198,17227 ---- return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_readline_rl_set_keyboard_input_timeout=yes else ! ac_cv_lib_readline_rl_set_keyboard_input_timeout=no fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_set_keyboard_input_timeout" >&5 ! $as_echo "$ac_cv_lib_readline_rl_set_keyboard_input_timeout" >&6; } ! if test "x$ac_cv_lib_readline_rl_set_keyboard_input_timeout" = x""yes; then : LIBREADLINE="-lreadline" LIBS="$LIBREADLINE $LIBS" ! $as_echo "#define USE_READLINE 1" >>confdefs.h else ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I need GNU Readline 4.2 or later" >&5 ! $as_echo "$as_me: WARNING: I need GNU Readline 4.2 or later" >&2;} ! as_fn_error "this is fatal unless you specify --disable-readline" "$LINENO" 5 fi *************** *** 29938,29950 **** ! { echo "$as_me:$LINENO: checking for struct exception in math.h" >&5 ! echo $ECHO_N "checking for struct exception in math.h... $ECHO_C" >&6; } ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef F77_DUMMY_MAIN --- 17229,17237 ---- ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception in math.h" >&5 ! $as_echo_n "checking for struct exception in math.h... " >&6; } ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef F77_DUMMY_MAIN *************** *** 29963,30016 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } ! cat >>confdefs.h <<\_ACEOF ! #define EXCEPTION_IN_MATH 1 ! _ACEOF else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ### Signal stuff. ! { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 ! echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } ! if test "${ac_cv_type_signal+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include --- 17250,17276 ---- return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } ! $as_echo "#define EXCEPTION_IN_MATH 1" >>confdefs.h else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext ### Signal stuff. ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 ! $as_echo_n "checking return type of signal handlers... " >&6; } ! if test "${ac_cv_type_signal+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include *************** *** 30031,30165 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ac_cv_type_signal=int else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_type_signal=void fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 ! echo "${ECHO_T}$ac_cv_type_signal" >&6; } cat >>confdefs.h <<_ACEOF #define RETSIGTYPE $ac_cv_type_signal _ACEOF ! { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 ! echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; } ! if test "${ac_cv_have_decl_sys_siglist+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! #include /* NetBSD declares sys_siglist in unistd.h. */ #if HAVE_UNISTD_H # include #endif ! ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! #ifndef sys_siglist ! (void) sys_siglist; ! #endif ! ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext ! if { (ac_try="$ac_compile" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_compile") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest.$ac_objext; then ! ac_cv_have_decl_sys_siglist=yes else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ac_cv_have_decl_sys_siglist=no ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 - echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; } - if test $ac_cv_have_decl_sys_siglist = yes; then cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_SYS_SIGLIST 1 _ACEOF ! else ! cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_SYS_SIGLIST 0 ! _ACEOF ! ! ! fi ! ! ! ! { echo "$as_me:$LINENO: checking for type of signal functions" >&5 ! echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; } ! if test "${octave_cv_signal_vintage+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef F77_DUMMY_MAIN --- 17291,17336 ---- return 0; } _ACEOF ! if ac_fn_c_try_compile "$LINENO"; then : ac_cv_type_signal=int else ! ac_cv_type_signal=void fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 ! $as_echo "$ac_cv_type_signal" >&6; } cat >>confdefs.h <<_ACEOF #define RETSIGTYPE $ac_cv_type_signal _ACEOF ! ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include /* NetBSD declares sys_siglist in unistd.h. */ #if HAVE_UNISTD_H # include #endif ! " ! if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then : ! ac_have_decl=1 else ! ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF ! #define HAVE_DECL_SYS_SIGLIST $ac_have_decl _ACEOF ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5 ! $as_echo_n "checking for type of signal functions... " >&6; } ! if test "${octave_cv_signal_vintage+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef F77_DUMMY_MAIN *************** *** 30183,30216 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then octave_cv_signal_vintage=posix else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef F77_DUMMY_MAIN --- 17354,17363 ---- return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : octave_cv_signal_vintage=posix else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef F77_DUMMY_MAIN *************** *** 30232,30265 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then octave_cv_signal_vintage=4.2bsd else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include RETSIGTYPE foo() { } --- 17379,17388 ---- return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : octave_cv_signal_vintage=4.2bsd else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include RETSIGTYPE foo() { } *************** *** 30283,30367 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then octave_cv_signal_vintage=svr3 else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! octave_cv_signal_vintage=v7 fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext fi ! { echo "$as_me:$LINENO: result: $octave_cv_signal_vintage" >&5 ! echo "${ECHO_T}$octave_cv_signal_vintage" >&6; } if test "$octave_cv_signal_vintage" = posix; then ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_POSIX_SIGNALS 1 ! _ACEOF elif test "$octave_cv_signal_vintage" = "4.2bsd"; then ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_BSD_SIGNALS 1 ! _ACEOF elif test "$octave_cv_signal_vintage" = svr3; then ! cat >>confdefs.h <<\_ACEOF ! #define HAVE_USG_SIGHOLD 1 ! _ACEOF fi ! { echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5 ! echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6; } ! if test "${octave_cv_must_reinstall_sighandlers+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ! if test "$cross_compiling" = yes; then if test "$octave_cv_signal_vintage" = svr3; then octave_cv_must_reinstall_sighandlers=yes else octave_cv_must_reinstall_sighandlers=no fi else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include --- 17406,17457 ---- return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : octave_cv_signal_vintage=svr3 else ! octave_cv_signal_vintage=v7 fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_signal_vintage" >&5 ! $as_echo "$octave_cv_signal_vintage" >&6; } if test "$octave_cv_signal_vintage" = posix; then ! $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h elif test "$octave_cv_signal_vintage" = "4.2bsd"; then ! $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h elif test "$octave_cv_signal_vintage" = svr3; then ! $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5 ! $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; } ! if test "${octave_cv_must_reinstall_sighandlers+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ! if test "$cross_compiling" = yes; then : if test "$octave_cv_signal_vintage" = svr3; then octave_cv_must_reinstall_sighandlers=yes else octave_cv_must_reinstall_sighandlers=no fi else ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include *************** *** 30403,30566 **** } _ACEOF ! rm -f conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! { (case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_try") 2>&5 ! ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); }; }; then octave_cv_must_reinstall_sighandlers=no else ! echo "$as_me: program exited with status $ac_status" >&5 ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! ( exit $ac_status ) ! octave_cv_must_reinstall_sighandlers=yes fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi - fi if test "$cross_compiling" = yes; then ! { echo "$as_me:$LINENO: result: $octave_cv_must_reinstall_sighandlers assumed for cross compilation" >&5 ! echo "${ECHO_T}$octave_cv_must_reinstall_sighandlers assumed for cross compilation" >&6; } else ! { echo "$as_me:$LINENO: result: $octave_cv_must_reinstall_sighandlers" >&5 ! echo "${ECHO_T}$octave_cv_must_reinstall_sighandlers" >&6; } fi if test "$octave_cv_must_reinstall_sighandlers" = yes; then ! cat >>confdefs.h <<\_ACEOF ! #define MUST_REINSTALL_SIGHANDLERS 1 ! _ACEOF fi if test "$ac_cv_type_signal" = "void"; then ! cat >>confdefs.h <<\_ACEOF ! #define RETSIGTYPE_IS_VOID 1 ! _ACEOF fi ### A system dependent kluge or two. - - for ac_func in getrusage times ! do ! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! { echo "$as_me:$LINENO: checking for $ac_func" >&5 ! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ! if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 ! else ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF ! /* end confdefs.h. */ ! /* Define $ac_func to an innocuous variant, in case declares $ac_func. ! For example, HP-UX 11i declares gettimeofday. */ ! #define $ac_func innocuous_$ac_func ! ! /* System header to define __stub macros and hopefully few prototypes, ! which can conflict with char $ac_func (); below. ! Prefer to if __STDC__ is defined, since ! exists even on freestanding compilers. */ ! ! #ifdef __STDC__ ! # include ! #else ! # include ! #endif ! ! #undef $ac_func ! ! /* Override any GCC internal prototype to avoid an error. ! Use char because int might match the return type of a GCC ! builtin and then its argument prototype would still apply. */ ! #ifdef __cplusplus ! extern "C" ! #endif ! char $ac_func (); ! /* The GNU C library defines this for functions which it implements ! to always fail with ENOSYS. Some functions are actually named ! something starting with __ and the normal name is an alias. */ ! #if defined __stub_$ac_func || defined __stub___$ac_func ! choke me ! #endif ! ! #ifdef F77_DUMMY_MAIN ! ! # ifdef __cplusplus ! extern "C" ! # endif ! int F77_DUMMY_MAIN() { return 1; } ! ! #endif ! int ! main () ! { ! return $ac_func (); ! ; ! return 0; ! } ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ! eval "$as_ac_var=yes" ! else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "$as_ac_var=no" ! fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext ! fi ! ac_res=`eval echo '${'$as_ac_var'}'` ! { echo "$as_me:$LINENO: result: $ac_res" >&5 ! echo "${ECHO_T}$ac_res" >&6; } ! if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF ! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi --- 17493,17538 ---- } _ACEOF ! if ac_fn_c_try_run "$LINENO"; then : octave_cv_must_reinstall_sighandlers=no else ! octave_cv_must_reinstall_sighandlers=yes fi ! rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ ! conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi if test "$cross_compiling" = yes; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_must_reinstall_sighandlers assumed for cross compilation" >&5 ! $as_echo "$octave_cv_must_reinstall_sighandlers assumed for cross compilation" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $octave_cv_must_reinstall_sighandlers" >&5 ! $as_echo "$octave_cv_must_reinstall_sighandlers" >&6; } fi if test "$octave_cv_must_reinstall_sighandlers" = yes; then ! $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h fi if test "$ac_cv_type_signal" = "void"; then ! $as_echo "#define RETSIGTYPE_IS_VOID 1" >>confdefs.h fi ### A system dependent kluge or two. for ac_func in getrusage times ! do : ! as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ! ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ! eval as_val=\$$as_ac_var ! if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF ! #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi *************** *** 30569,30577 **** case "$canonical_host_type" in *-*-cygwin*) ! cat >>confdefs.h <<\_ACEOF ! #define RUSAGE_TIMES_ONLY 1 ! _ACEOF ;; esac --- 17541,17547 ---- case "$canonical_host_type" in *-*-cygwin*) ! $as_echo "#define RUSAGE_TIMES_ONLY 1" >>confdefs.h ;; esac *************** *** 30583,30592 **** do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_AWK+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. --- 17553,17562 ---- do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_AWK+set}" = set; then : ! $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. *************** *** 30596,30620 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then ! { echo "$as_me:$LINENO: result: $AWK" >&5 ! echo "${ECHO_T}$AWK" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi --- 17566,17590 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 ! $as_echo "$AWK" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi *************** *** 30625,30634 **** do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_FIND+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$FIND"; then ac_cv_prog_FIND="$FIND" # Let the user override the test. --- 17595,17604 ---- do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_FIND+set}" = set; then : ! $as_echo_n "(cached) " >&6 else if test -n "$FIND"; then ac_cv_prog_FIND="$FIND" # Let the user override the test. *************** *** 30638,30673 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_FIND="$ac_prog" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi FIND=$ac_cv_prog_FIND if test -n "$FIND"; then ! { echo "$as_me:$LINENO: result: $FIND" >&5 ! echo "${ECHO_T}$FIND" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi test -n "$FIND" && break done ! { echo "$as_me:$LINENO: checking for a usable sed" >&5 ! echo $ECHO_N "checking for a usable sed... $ECHO_C" >&6; } if test -z "$SED"; then ! if test "${ac_cv_path_sed+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else # Loop through the user's path and test for sed and gsed. --- 17608,17643 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_FIND="$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi FIND=$ac_cv_prog_FIND if test -n "$FIND"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 ! $as_echo "$FIND" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi test -n "$FIND" && break done ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable sed" >&5 ! $as_echo_n "checking for a usable sed... " >&6; } if test -z "$SED"; then ! if test "${ac_cv_path_sed+set}" = set; then : ! $as_echo_n "(cached) " >&6 else # Loop through the user's path and test for sed and gsed. *************** *** 30677,30683 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" --- 17647,17653 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" *************** *** 30685,30691 **** done done ! done IFS=$as_save_IFS # Create a (secure) tmp directory for tmp files. --- 17655,17661 ---- done done ! done IFS=$as_save_IFS # Create a (secure) tmp directory for tmp files. *************** *** 30697,30707 **** { tmp=$TMPDIR/sed$$-$RANDOM (umask 077 && mkdir "$tmp") ! } || ! { ! echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ! { (exit 1); exit 1; } ! } _max=0 _count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris --- 17667,17673 ---- { tmp=$TMPDIR/sed$$-$RANDOM (umask 077 && mkdir "$tmp") ! } || as_fn_error "cannot create a temporary directory in $TMPDIR" "$LINENO" 5 _max=0 _count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris *************** *** 30742,30762 **** SED=$octave_cv_path_sed if test -z "$SED"; then ! { { echo "$as_me:$LINENO: error: no usable version of sed found" >&5 ! echo "$as_me: error: no usable version of sed found" >&2;} ! { (exit 1); exit 1; }; } fi fi ! { echo "$as_me:$LINENO: result: $SED" >&5 ! echo "${ECHO_T}$SED" >&6; } # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_PERL+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$PERL"; then ac_cv_prog_PERL="$PERL" # Let the user override the test. --- 17708,17726 ---- SED=$octave_cv_path_sed if test -z "$SED"; then ! as_fn_error "no usable version of sed found" "$LINENO" 5 fi fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 ! $as_echo "$SED" >&6; } # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_PERL+set}" = set; then : ! $as_echo_n "(cached) " >&6 else if test -n "$PERL"; then ac_cv_prog_PERL="$PERL" # Let the user override the test. *************** *** 30766,30790 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_PERL="perl" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi PERL=$ac_cv_prog_PERL if test -n "$PERL"; then ! { echo "$as_me:$LINENO: result: $PERL" >&5 ! echo "${ECHO_T}$PERL" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi --- 17730,17754 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_PERL="perl" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi PERL=$ac_cv_prog_PERL if test -n "$PERL"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 ! $as_echo "$PERL" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi *************** *** 30792,30801 **** # Extract the first word of "python", so it can be a program name with args. set dummy python; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_PYTHON+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$PYTHON"; then ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. --- 17756,17765 ---- # Extract the first word of "python", so it can be a program name with args. set dummy python; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_PYTHON+set}" = set; then : ! $as_echo_n "(cached) " >&6 else if test -n "$PYTHON"; then ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. *************** *** 30805,30849 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_PYTHON="python" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi PYTHON=$ac_cv_prog_PYTHON if test -n "$PYTHON"; then ! { echo "$as_me:$LINENO: result: $PYTHON" >&5 ! echo "${ECHO_T}$PYTHON" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ! ! ### For now, don't define LEXLIB to be -lfl -- we don't use anything in ! ### it, and it might not be installed. ! ### ! ### Also make sure that we generate an interactive scanner if we are ! ### using flex. ! for ac_prog in flex lex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_LEX+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # Let the user override the test. --- 17769,17807 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_PYTHON="python" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi PYTHON=$ac_cv_prog_PYTHON if test -n "$PYTHON"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 ! $as_echo "$PYTHON" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ! for ac_prog in flex lex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_LEX+set}" = set; then : ! $as_echo_n "(cached) " >&6 else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # Let the user override the test. *************** *** 30853,30877 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_LEX="$ac_prog" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi LEX=$ac_cv_prog_LEX if test -n "$LEX"; then ! { echo "$as_me:$LINENO: result: $LEX" >&5 ! echo "${ECHO_T}$LEX" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi --- 17811,17835 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_LEX="$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi LEX=$ac_cv_prog_LEX if test -n "$LEX"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 ! $as_echo "$LEX" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi *************** *** 30899,30918 **** return ! yylex () + ! yywrap (); } _ACEOF ! { (ac_try="$LEX conftest.l" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$LEX conftest.l") 2>&5 ac_status=$? ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } ! { echo "$as_me:$LINENO: checking lex output file root" >&5 ! echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } ! if test "${ac_cv_prog_lex_root+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -f lex.yy.c; then --- 17857,17877 ---- return ! yylex () + ! yywrap (); } _ACEOF ! { { ac_try="$LEX conftest.l" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac ! eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" ! $as_echo "$ac_try_echo"; } >&5 (eval "$LEX conftest.l") 2>&5 ac_status=$? ! $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ! test $ac_status = 0; } ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 ! $as_echo_n "checking lex output file root... " >&6; } ! if test "${ac_cv_prog_lex_root+set}" = set; then : ! $as_echo_n "(cached) " >&6 else if test -f lex.yy.c; then *************** *** 30920,30991 **** elif test -f lexyy.c; then ac_cv_prog_lex_root=lexyy else ! { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 ! echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} ! { (exit 1); exit 1; }; } fi fi ! { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 ! echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root if test -z "${LEXLIB+set}"; then ! { echo "$as_me:$LINENO: checking lex library" >&5 ! echo $ECHO_N "checking lex library... $ECHO_C" >&6; } ! if test "${ac_cv_lib_lex+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_LIBS=$LIBS ac_cv_lib_lex='none needed' for ac_lib in '' -lfl -ll; do LIBS="$ac_lib $ac_save_LIBS" ! cat >conftest.$ac_ext <<_ACEOF `cat $LEX_OUTPUT_ROOT.c` _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ac_cv_lib_lex=$ac_lib - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - - fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext test "$ac_cv_lib_lex" != 'none needed' && break done LIBS=$ac_save_LIBS fi ! { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 ! echo "${ECHO_T}$ac_cv_lib_lex" >&6; } test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex fi ! { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 ! echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } ! if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else # POSIX says lex can declare yytext either as a pointer or an array; the # default is implementation-dependent. Figure out which it is, since --- 17879,17926 ---- elif test -f lexyy.c; then ac_cv_prog_lex_root=lexyy else ! as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 fi fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 ! $as_echo "$ac_cv_prog_lex_root" >&6; } LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root if test -z "${LEXLIB+set}"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 ! $as_echo_n "checking lex library... " >&6; } ! if test "${ac_cv_lib_lex+set}" = set; then : ! $as_echo_n "(cached) " >&6 else ac_save_LIBS=$LIBS ac_cv_lib_lex='none needed' for ac_lib in '' -lfl -ll; do LIBS="$ac_lib $ac_save_LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ `cat $LEX_OUTPUT_ROOT.c` _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_lex=$ac_lib fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext test "$ac_cv_lib_lex" != 'none needed' && break done LIBS=$ac_save_LIBS fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 ! $as_echo "$ac_cv_lib_lex" >&6; } test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 ! $as_echo_n "checking whether yytext is a pointer... " >&6; } ! if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : ! $as_echo_n "(cached) " >&6 else # POSIX says lex can declare yytext either as a pointer or an array; the # default is implementation-dependent. Figure out which it is, since *************** *** 30993,31057 **** ac_cv_prog_lex_yytext_pointer=no ac_save_LIBS=$LIBS LIBS="$LEXLIB $ac_save_LIBS" ! cat >conftest.$ac_ext <<_ACEOF #define YYTEXT_POINTER 1 `cat $LEX_OUTPUT_ROOT.c` ! _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then ac_cv_prog_lex_yytext_pointer=yes - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - - fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext LIBS=$ac_save_LIBS fi ! { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 ! echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } if test $ac_cv_prog_lex_yytext_pointer = yes; then ! cat >>confdefs.h <<\_ACEOF ! #define YYTEXT_POINTER 1 ! _ACEOF fi rm -f conftest.l $LEX_OUTPUT_ROOT.c fi case "$LEX" in flex*) LFLAGS="-t -I" ! { echo "$as_me:$LINENO: result: defining LFLAGS to be $LFLAGS" >&5 ! echo "${ECHO_T}defining LFLAGS to be $LFLAGS" >&6; } LEXLIB= ;; *) LEX='$(top_srcdir)/missing flex' warn_flex="I didn't find flex, but it's only a problem if you need to reconstruct lex.cc" ! { echo "$as_me:$LINENO: WARNING: $warn_flex" >&5 ! echo "$as_me: WARNING: $warn_flex" >&2;} ;; esac --- 17928,17975 ---- ac_cv_prog_lex_yytext_pointer=no ac_save_LIBS=$LIBS LIBS="$LEXLIB $ac_save_LIBS" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext ! /* end confdefs.h. */ #define YYTEXT_POINTER 1 `cat $LEX_OUTPUT_ROOT.c` ! _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : ac_cv_prog_lex_yytext_pointer=yes fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext LIBS=$ac_save_LIBS fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 ! $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } if test $ac_cv_prog_lex_yytext_pointer = yes; then ! $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h fi rm -f conftest.l $LEX_OUTPUT_ROOT.c fi + + ### For now, don't define LEXLIB to be -lfl -- we don't use anything in + ### it, and it might not be installed. + ### + ### Also make sure that we generate an interactive scanner if we are + ### using flex. + case "$LEX" in flex*) LFLAGS="-t -I" ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining LFLAGS to be $LFLAGS" >&5 ! $as_echo "defining LFLAGS to be $LFLAGS" >&6; } LEXLIB= ;; *) LEX='$(top_srcdir)/missing flex' warn_flex="I didn't find flex, but it's only a problem if you need to reconstruct lex.cc" ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_flex" >&5 ! $as_echo "$as_me: WARNING: $warn_flex" >&2;} ;; esac *************** *** 31061,31070 **** do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_YACC+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # Let the user override the test. --- 17979,17988 ---- do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_YACC+set}" = set; then : ! $as_echo_n "(cached) " >&6 else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # Let the user override the test. *************** *** 31074,31098 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_YACC="$ac_prog" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi YACC=$ac_cv_prog_YACC if test -n "$YACC"; then ! { echo "$as_me:$LINENO: result: $YACC" >&5 ! echo "${ECHO_T}$YACC" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi --- 17992,18016 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_YACC="$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi YACC=$ac_cv_prog_YACC if test -n "$YACC"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 ! $as_echo "$YACC" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi *************** *** 31106,31126 **** *) YACC='$(top_srcdir)/missing bison' warn_bison="I didn't find bison, but it's only a problem if you need to reconstruct parse.cc" ! { echo "$as_me:$LINENO: WARNING: $warn_bison" >&5 ! echo "$as_me: WARNING: $warn_bison" >&2;} ;; esac ! { echo "$as_me:$LINENO: checking whether ln -s works" >&5 ! echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } else ! { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 ! echo "${ECHO_T}no, using $LN_S" >&6; } fi --- 18024,18044 ---- *) YACC='$(top_srcdir)/missing bison' warn_bison="I didn't find bison, but it's only a problem if you need to reconstruct parse.cc" ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_bison" >&5 ! $as_echo "$as_me: WARNING: $warn_bison" >&2;} ;; esac ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 ! $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 ! $as_echo "no, using $LN_S" >&6; } fi *************** *** 31137,31158 **** # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. ! { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 ! echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then ! if test "${ac_cv_path_install+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! # Account for people who put trailing slashes in PATH elements. ! case $as_dir/ in ! ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ! ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. --- 18055,18077 ---- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. ! # Reject install programs that cannot install multiple files. ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 ! $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then ! if test "${ac_cv_path_install+set}" = set; then : ! $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! # Account for people who put trailing slashes in PATH elements. ! case $as_dir/ in #(( ! ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ! ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. *************** *** 31170,31186 **** # program-specific install script used by HP pwplus--don't use. : else ! ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" ! break 3 fi fi done done ;; esac ! done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then --- 18089,18117 ---- # program-specific install script used by HP pwplus--don't use. : else ! rm -rf conftest.one conftest.two conftest.dir ! echo one > conftest.one ! echo two > conftest.two ! mkdir conftest.dir ! if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && ! test -s conftest.one && test -s conftest.two && ! test -s conftest.dir/conftest.one && ! test -s conftest.dir/conftest.two ! then ! ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" ! break 3 ! fi fi fi done done ;; esac ! ! done IFS=$as_save_IFS + rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then *************** *** 31193,31200 **** INSTALL=$ac_install_sh fi fi ! { echo "$as_me:$LINENO: result: $INSTALL" >&5 ! echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. --- 18124,18131 ---- INSTALL=$ac_install_sh fi fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 ! $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. *************** *** 31209,31218 **** # Extract the first word of "desktop-file-install", so it can be a program name with args. set dummy desktop-file-install; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_DESKTOP_FILE_INSTALL+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$DESKTOP_FILE_INSTALL"; then ac_cv_prog_DESKTOP_FILE_INSTALL="$DESKTOP_FILE_INSTALL" # Let the user override the test. --- 18140,18149 ---- # Extract the first word of "desktop-file-install", so it can be a program name with args. set dummy desktop-file-install; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_DESKTOP_FILE_INSTALL+set}" = set; then : ! $as_echo_n "(cached) " >&6 else if test -n "$DESKTOP_FILE_INSTALL"; then ac_cv_prog_DESKTOP_FILE_INSTALL="$DESKTOP_FILE_INSTALL" # Let the user override the test. *************** *** 31222,31246 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DESKTOP_FILE_INSTALL="desktop-file-install" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi DESKTOP_FILE_INSTALL=$ac_cv_prog_DESKTOP_FILE_INSTALL if test -n "$DESKTOP_FILE_INSTALL"; then ! { echo "$as_me:$LINENO: result: $DESKTOP_FILE_INSTALL" >&5 ! echo "${ECHO_T}$DESKTOP_FILE_INSTALL" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi --- 18153,18177 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DESKTOP_FILE_INSTALL="desktop-file-install" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi DESKTOP_FILE_INSTALL=$ac_cv_prog_DESKTOP_FILE_INSTALL if test -n "$DESKTOP_FILE_INSTALL"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DESKTOP_FILE_INSTALL" >&5 ! $as_echo "$DESKTOP_FILE_INSTALL" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi *************** *** 31260,31276 **** esac if test "$cross_compiling" = yes; then GNUPLOT="$gp_default" ! { echo "$as_me:$LINENO: result: assuming $GNUPLOT exists on $canonical_host_type host" >&5 ! echo "${ECHO_T}assuming $GNUPLOT exists on $canonical_host_type host" >&6; } else for ac_prog in $gp_names do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_GNUPLOT+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$GNUPLOT"; then ac_cv_prog_GNUPLOT="$GNUPLOT" # Let the user override the test. --- 18191,18207 ---- esac if test "$cross_compiling" = yes; then GNUPLOT="$gp_default" ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming $GNUPLOT exists on $canonical_host_type host" >&5 ! $as_echo "assuming $GNUPLOT exists on $canonical_host_type host" >&6; } else for ac_prog in $gp_names do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_GNUPLOT+set}" = set; then : ! $as_echo_n "(cached) " >&6 else if test -n "$GNUPLOT"; then ac_cv_prog_GNUPLOT="$GNUPLOT" # Let the user override the test. *************** *** 31280,31304 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_GNUPLOT="$ac_prog" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi GNUPLOT=$ac_cv_prog_GNUPLOT if test -n "$GNUPLOT"; then ! { echo "$as_me:$LINENO: result: $GNUPLOT" >&5 ! echo "${ECHO_T}$GNUPLOT" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi --- 18211,18235 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_GNUPLOT="$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi GNUPLOT=$ac_cv_prog_GNUPLOT if test -n "$GNUPLOT"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT" >&5 ! $as_echo "$GNUPLOT" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi *************** *** 31313,31350 **** ## If you change this text, be sure to also copy it to the set of ## warnings at the end of the script ! { echo "$as_me:$LINENO: WARNING: I didn't find gnuplot. It isn't necessary to have gnuplot" >&5 ! echo "$as_me: WARNING: I didn't find gnuplot. It isn't necessary to have gnuplot" >&2;} ! { echo "$as_me:$LINENO: WARNING: installed, but you won't be able to use any of Octave's" >&5 ! echo "$as_me: WARNING: installed, but you won't be able to use any of Octave's" >&2;} ! { echo "$as_me:$LINENO: WARNING: plotting commands without it." >&5 ! echo "$as_me: WARNING: plotting commands without it." >&2;} ! { echo "$as_me:$LINENO: WARNING: " >&5 ! echo "$as_me: WARNING: " >&2;} ! { echo "$as_me:$LINENO: WARNING: If gnuplot is installed but it isn't in your path, you can" >&5 ! echo "$as_me: WARNING: If gnuplot is installed but it isn't in your path, you can" >&2;} ! { echo "$as_me:$LINENO: WARNING: tell Octave where to find it by typing the command" >&5 ! echo "$as_me: WARNING: tell Octave where to find it by typing the command" >&2;} ! { echo "$as_me:$LINENO: WARNING: " >&5 ! echo "$as_me: WARNING: " >&2;} ! { echo "$as_me:$LINENO: WARNING: gnuplot_binary = \"/full/path/to/gnuplot/binary\"" >&5 ! echo "$as_me: WARNING: gnuplot_binary = \"/full/path/to/gnuplot/binary\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: " >&5 ! echo "$as_me: WARNING: " >&2;} ! { echo "$as_me:$LINENO: WARNING: at the Octave prompt." >&5 ! echo "$as_me: WARNING: at the Octave prompt." >&2;} ! { echo "$as_me:$LINENO: WARNING: " >&5 ! echo "$as_me: WARNING: " >&2;} ! { echo "$as_me:$LINENO: WARNING: Setting default value to $GNUPLOT" >&5 ! echo "$as_me: WARNING: Setting default value to $GNUPLOT" >&2;} fi fi if test "$cross_compiling" = yes; then DEFAULT_PAGER=less ! { echo "$as_me:$LINENO: result: assuming $DEFAULT_PAGER exists on $canonical_host_type host" >&5 ! echo "${ECHO_T}assuming $DEFAULT_PAGER exists on $canonical_host_type host" >&6; } else octave_possible_pagers="less more page pg" --- 18244,18281 ---- ## If you change this text, be sure to also copy it to the set of ## warnings at the end of the script ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I didn't find gnuplot. It isn't necessary to have gnuplot" >&5 ! $as_echo "$as_me: WARNING: I didn't find gnuplot. It isn't necessary to have gnuplot" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installed, but you won't be able to use any of Octave's" >&5 ! $as_echo "$as_me: WARNING: installed, but you won't be able to use any of Octave's" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: plotting commands without it." >&5 ! $as_echo "$as_me: WARNING: plotting commands without it." >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 ! $as_echo "$as_me: WARNING: " >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If gnuplot is installed but it isn't in your path, you can" >&5 ! $as_echo "$as_me: WARNING: If gnuplot is installed but it isn't in your path, you can" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tell Octave where to find it by typing the command" >&5 ! $as_echo "$as_me: WARNING: tell Octave where to find it by typing the command" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 ! $as_echo "$as_me: WARNING: " >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gnuplot_binary = \"/full/path/to/gnuplot/binary\"" >&5 ! $as_echo "$as_me: WARNING: gnuplot_binary = \"/full/path/to/gnuplot/binary\"" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 ! $as_echo "$as_me: WARNING: " >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: at the Octave prompt." >&5 ! $as_echo "$as_me: WARNING: at the Octave prompt." >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 ! $as_echo "$as_me: WARNING: " >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Setting default value to $GNUPLOT" >&5 ! $as_echo "$as_me: WARNING: Setting default value to $GNUPLOT" >&2;} fi fi if test "$cross_compiling" = yes; then DEFAULT_PAGER=less ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming $DEFAULT_PAGER exists on $canonical_host_type host" >&5 ! $as_echo "assuming $DEFAULT_PAGER exists on $canonical_host_type host" >&6; } else octave_possible_pagers="less more page pg" *************** *** 31358,31367 **** do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_DEFAULT_PAGER+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$DEFAULT_PAGER"; then ac_cv_prog_DEFAULT_PAGER="$DEFAULT_PAGER" # Let the user override the test. --- 18289,18298 ---- do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_DEFAULT_PAGER+set}" = set; then : ! $as_echo_n "(cached) " >&6 else if test -n "$DEFAULT_PAGER"; then ac_cv_prog_DEFAULT_PAGER="$DEFAULT_PAGER" # Let the user override the test. *************** *** 31371,31395 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DEFAULT_PAGER="$ac_prog" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi DEFAULT_PAGER=$ac_cv_prog_DEFAULT_PAGER if test -n "$DEFAULT_PAGER"; then ! { echo "$as_me:$LINENO: result: $DEFAULT_PAGER" >&5 ! echo "${ECHO_T}$DEFAULT_PAGER" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi --- 18302,18326 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DEFAULT_PAGER="$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi DEFAULT_PAGER=$ac_cv_prog_DEFAULT_PAGER if test -n "$DEFAULT_PAGER"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PAGER" >&5 ! $as_echo "$DEFAULT_PAGER" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi *************** *** 31398,31415 **** if test -z "$DEFAULT_PAGER"; then warn_less="I couldn't find \`less', \`more', \`page', or \`pg'" ! { echo "$as_me:$LINENO: WARNING: $warn_less" >&5 ! echo "$as_me: WARNING: $warn_less" >&2;} fi fi # Extract the first word of "gperf", so it can be a program name with args. set dummy gperf; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_GPERF+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$GPERF"; then ac_cv_prog_GPERF="$GPERF" # Let the user override the test. --- 18329,18346 ---- if test -z "$DEFAULT_PAGER"; then warn_less="I couldn't find \`less', \`more', \`page', or \`pg'" ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_less" >&5 ! $as_echo "$as_me: WARNING: $warn_less" >&2;} fi fi # Extract the first word of "gperf", so it can be a program name with args. set dummy gperf; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_GPERF+set}" = set; then : ! $as_echo_n "(cached) " >&6 else if test -n "$GPERF"; then ac_cv_prog_GPERF="$GPERF" # Let the user override the test. *************** *** 31419,31451 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_GPERF="gperf" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi GPERF=$ac_cv_prog_GPERF if test -n "$GPERF"; then ! { echo "$as_me:$LINENO: result: $GPERF" >&5 ! echo "${ECHO_T}$GPERF" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi if test -z "$GPERF"; then GPERF='$(top_srcdir)/missing gperf' warn_gperf="I didn't find gperf, but it's only a problem if you need to reconstruct oct-gperf.h" ! { echo "$as_me:$LINENO: WARNING: $warn_gperf" >&5 ! echo "$as_me: WARNING: $warn_gperf" >&2;} fi --- 18350,18382 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_GPERF="gperf" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi GPERF=$ac_cv_prog_GPERF if test -n "$GPERF"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 ! $as_echo "$GPERF" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi if test -z "$GPERF"; then GPERF='$(top_srcdir)/missing gperf' warn_gperf="I didn't find gperf, but it's only a problem if you need to reconstruct oct-gperf.h" ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_gperf" >&5 ! $as_echo "$as_me: WARNING: $warn_gperf" >&2;} fi *************** *** 31463,31472 **** do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$GHOSTSCRIPT"; then ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test. --- 18394,18403 ---- do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then : ! $as_echo_n "(cached) " >&6 else if test -n "$GHOSTSCRIPT"; then ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test. *************** *** 31476,31500 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_GHOSTSCRIPT="$ac_prog" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT if test -n "$GHOSTSCRIPT"; then ! { echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5 ! echo "${ECHO_T}$GHOSTSCRIPT" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi --- 18407,18431 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_GHOSTSCRIPT="$ac_prog" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT if test -n "$GHOSTSCRIPT"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GHOSTSCRIPT" >&5 ! $as_echo "$GHOSTSCRIPT" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi *************** *** 31504,31521 **** if test -z "$GHOSTSCRIPT"; then GHOSTSCRIPT='$(top_srcdir)/missing gs' warn_ghostscript="I didn't find ghostscript, but it's only a problem if you need to reconstruct figures for the manual" ! { echo "$as_me:$LINENO: WARNING: $warn_ghostscript" >&5 ! echo "$as_me: WARNING: $warn_ghostscript" >&2;} fi # Extract the first word of "makeinfo", so it can be a program name with args. set dummy makeinfo; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_MAKEINFO+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$MAKEINFO"; then ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. --- 18435,18452 ---- if test -z "$GHOSTSCRIPT"; then GHOSTSCRIPT='$(top_srcdir)/missing gs' warn_ghostscript="I didn't find ghostscript, but it's only a problem if you need to reconstruct figures for the manual" ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_ghostscript" >&5 ! $as_echo "$as_me: WARNING: $warn_ghostscript" >&2;} fi # Extract the first word of "makeinfo", so it can be a program name with args. set dummy makeinfo; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_MAKEINFO+set}" = set; then : ! $as_echo_n "(cached) " >&6 else if test -n "$MAKEINFO"; then ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. *************** *** 31525,31567 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_MAKEINFO="makeinfo" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi MAKEINFO=$ac_cv_prog_MAKEINFO if test -n "$MAKEINFO"; then ! { echo "$as_me:$LINENO: result: $MAKEINFO" >&5 ! echo "${ECHO_T}$MAKEINFO" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi if test -z "$MAKEINFO"; then MAKEINFO='$(top_srcdir)/missing makeinfo' warn_makeinfo="I didn't find makeinfo, but it's only a problem if you need to reconstruct the Info version of the manual" ! { echo "$as_me:$LINENO: WARNING: $warn_makeinfo" >&5 ! echo "$as_me: WARNING: $warn_makeinfo" >&2;} fi # Extract the first word of "texi2dvi", so it can be a program name with args. set dummy texi2dvi; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_TEXI2DVI+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$TEXI2DVI"; then ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test. --- 18456,18498 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_MAKEINFO="makeinfo" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi MAKEINFO=$ac_cv_prog_MAKEINFO if test -n "$MAKEINFO"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 ! $as_echo "$MAKEINFO" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi if test -z "$MAKEINFO"; then MAKEINFO='$(top_srcdir)/missing makeinfo' warn_makeinfo="I didn't find makeinfo, but it's only a problem if you need to reconstruct the Info version of the manual" ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_makeinfo" >&5 ! $as_echo "$as_me: WARNING: $warn_makeinfo" >&2;} fi # Extract the first word of "texi2dvi", so it can be a program name with args. set dummy texi2dvi; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_TEXI2DVI+set}" = set; then : ! $as_echo_n "(cached) " >&6 else if test -n "$TEXI2DVI"; then ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test. *************** *** 31571,31603 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_TEXI2DVI="texi2dvi" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi TEXI2DVI=$ac_cv_prog_TEXI2DVI if test -n "$TEXI2DVI"; then ! { echo "$as_me:$LINENO: result: $TEXI2DVI" >&5 ! echo "${ECHO_T}$TEXI2DVI" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi if test -z "$TEXI2DVI"; then TEXI2DVI='$(top_srcdir)/missing texi2dvi' warn_texi2dvi="I didn't find texi2dvi, but it's only a problem if you need to reconstruct the DVI version of the manual" ! { echo "$as_me:$LINENO: WARNING: $warn_texi2dvi" >&5 ! echo "$as_me: WARNING: $warn_texi2dvi" >&2;} fi --- 18502,18534 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_TEXI2DVI="texi2dvi" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi TEXI2DVI=$ac_cv_prog_TEXI2DVI if test -n "$TEXI2DVI"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5 ! $as_echo "$TEXI2DVI" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi if test -z "$TEXI2DVI"; then TEXI2DVI='$(top_srcdir)/missing texi2dvi' warn_texi2dvi="I didn't find texi2dvi, but it's only a problem if you need to reconstruct the DVI version of the manual" ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_texi2dvi" >&5 ! $as_echo "$as_me: WARNING: $warn_texi2dvi" >&2;} fi *************** *** 31605,31614 **** # Extract the first word of "texi2pdf", so it can be a program name with args. set dummy texi2pdf; ac_word=$2 ! { echo "$as_me:$LINENO: checking for $ac_word" >&5 ! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ! if test "${ac_cv_prog_TEXI2PDF+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$TEXI2PDF"; then ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test. --- 18536,18545 ---- # Extract the first word of "texi2pdf", so it can be a program name with args. set dummy texi2pdf; ac_word=$2 ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ! $as_echo_n "checking for $ac_word... " >&6; } ! if test "${ac_cv_prog_TEXI2PDF+set}" = set; then : ! $as_echo_n "(cached) " >&6 else if test -n "$TEXI2PDF"; then ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test. *************** *** 31618,31642 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_TEXI2PDF="texi2pdf" ! echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi TEXI2PDF=$ac_cv_prog_TEXI2PDF if test -n "$TEXI2PDF"; then ! { echo "$as_me:$LINENO: result: $TEXI2PDF" >&5 ! echo "${ECHO_T}$TEXI2PDF" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi --- 18549,18573 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_TEXI2PDF="texi2pdf" ! $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done ! done IFS=$as_save_IFS fi fi TEXI2PDF=$ac_cv_prog_TEXI2PDF if test -n "$TEXI2PDF"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5 ! $as_echo "$TEXI2PDF" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi *************** *** 31652,31659 **** if $missing; then TEXI2PDF='$(top_srcdir)/missing texi2pdf' warn_texi2pdf="I didn't find texi2pdf, but it's only a problem if you need to reconstruct the PDF version of the manual" ! { echo "$as_me:$LINENO: WARNING: $warn_texi2pdf" >&5 ! echo "$as_me: WARNING: $warn_texi2pdf" >&2;} fi --- 18583,18590 ---- if $missing; then TEXI2PDF='$(top_srcdir)/missing texi2pdf' warn_texi2pdf="I didn't find texi2pdf, but it's only a problem if you need to reconstruct the PDF version of the manual" ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_texi2pdf" >&5 ! $as_echo "$as_me: WARNING: $warn_texi2pdf" >&2;} fi *************** *** 31670,31675 **** --- 18601,18612 ---- # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' + :mline + /\\$/{ + N + s,\\\n,, + b mline + } t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g *************** *** 31697,31704 **** ### We have to insert extra levels of backslash quoting here so that ### the right thing ends up in oct-conf.h. UGLY_DEFS=`echo $DEFS | $SED 's,\\",\\\\\\\\\\\\\\\\\\",g'` ! { echo "$as_me:$LINENO: defining UGLY_DEFS to be $UGLY_DEFS" >&5 ! echo "$as_me: defining UGLY_DEFS to be $UGLY_DEFS" >&6;} ### Maybe add -Wall, -W, and -Wshadow to compiler flags now that we're --- 18634,18641 ---- ### We have to insert extra levels of backslash quoting here so that ### the right thing ends up in oct-conf.h. UGLY_DEFS=`echo $DEFS | $SED 's,\\",\\\\\\\\\\\\\\\\\\",g'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: defining UGLY_DEFS to be $UGLY_DEFS" >&5 ! $as_echo "$as_me: defining UGLY_DEFS to be $UGLY_DEFS" >&6;} ### Maybe add -Wall, -W, and -Wshadow to compiler flags now that we're *************** *** 31706,31712 **** try_extra_warning_flags=true # Check whether --enable-extra-warning-flags was given. ! if test "${enable_extra_warning_flags+set}" = set; then enableval=$enable_extra_warning_flags; if test "$enableval" = no; then try_extra_warning_flags=false fi --- 18643,18649 ---- try_extra_warning_flags=true # Check whether --enable-extra-warning-flags was given. ! if test "${enable_extra_warning_flags+set}" = set; then : enableval=$enable_extra_warning_flags; if test "$enableval" = no; then try_extra_warning_flags=false fi *************** *** 31716,31725 **** if $try_extra_warning_flags; then ac_safe=`echo "-Wall" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wall" >&5 ! echo $ECHO_N "checking whether ${CC-cc} accepts -Wall... $ECHO_C" >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c --- 18653,18662 ---- if $try_extra_warning_flags; then ac_safe=`echo "-Wall" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wall" >&5 ! $as_echo_n "checking whether ${CC-cc} accepts -Wall... " >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_ext=c *************** *** 31730,31740 **** XCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN --- 18667,18673 ---- XCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN *************** *** 31753,31786 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then eval "octave_cv_cc_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cc_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext CFLAGS="$XCFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' --- 18686,18698 ---- return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : eval "octave_cv_cc_flag_$ac_safe=yes" else ! eval "octave_cv_cc_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext CFLAGS="$XCFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' *************** *** 31792,31815 **** fi if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } WARN_CFLAGS="$WARN_CFLAGS -Wall"; ! { echo "$as_me:$LINENO: result: adding -Wall to WARN_CFLAGS" >&5 ! echo "${ECHO_T}adding -Wall to WARN_CFLAGS" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ac_safe=`echo "-W" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -W" >&5 ! echo $ECHO_N "checking whether ${CC-cc} accepts -W... $ECHO_C" >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c --- 18704,18727 ---- fi if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } WARN_CFLAGS="$WARN_CFLAGS -Wall"; ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding -Wall to WARN_CFLAGS" >&5 ! $as_echo "adding -Wall to WARN_CFLAGS" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ac_safe=`echo "-W" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -W" >&5 ! $as_echo_n "checking whether ${CC-cc} accepts -W... " >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_ext=c *************** *** 31820,31830 **** XCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -W" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN --- 18732,18738 ---- XCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -W" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN *************** *** 31843,31876 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then eval "octave_cv_cc_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cc_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext CFLAGS="$XCFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' --- 18751,18763 ---- return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : eval "octave_cv_cc_flag_$ac_safe=yes" else ! eval "octave_cv_cc_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext CFLAGS="$XCFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' *************** *** 31882,31905 **** fi if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } WARN_CFLAGS="$WARN_CFLAGS -W"; ! { echo "$as_me:$LINENO: result: adding -W to WARN_CFLAGS" >&5 ! echo "${ECHO_T}adding -W to WARN_CFLAGS" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ac_safe=`echo "-Wshadow" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wshadow" >&5 ! echo $ECHO_N "checking whether ${CC-cc} accepts -Wshadow... $ECHO_C" >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c --- 18769,18792 ---- fi if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } WARN_CFLAGS="$WARN_CFLAGS -W"; ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding -W to WARN_CFLAGS" >&5 ! $as_echo "adding -W to WARN_CFLAGS" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ac_safe=`echo "-Wshadow" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wshadow" >&5 ! $as_echo_n "checking whether ${CC-cc} accepts -Wshadow... " >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_ext=c *************** *** 31910,31920 **** XCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wshadow" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN --- 18797,18803 ---- XCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wshadow" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN *************** *** 31933,31966 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then eval "octave_cv_cc_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cc_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext CFLAGS="$XCFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' --- 18816,18828 ---- return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : eval "octave_cv_cc_flag_$ac_safe=yes" else ! eval "octave_cv_cc_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext CFLAGS="$XCFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' *************** *** 31972,31995 **** fi if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } WARN_CFLAGS="$WARN_CFLAGS -Wshadow"; ! { echo "$as_me:$LINENO: result: adding -Wshadow to WARN_CFLAGS" >&5 ! echo "${ECHO_T}adding -Wshadow to WARN_CFLAGS" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ac_safe=`echo "-Wformat" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wformat" >&5 ! echo $ECHO_N "checking whether ${CC-cc} accepts -Wformat... $ECHO_C" >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c --- 18834,18857 ---- fi if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } WARN_CFLAGS="$WARN_CFLAGS -Wshadow"; ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding -Wshadow to WARN_CFLAGS" >&5 ! $as_echo "adding -Wshadow to WARN_CFLAGS" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ac_safe=`echo "-Wformat" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wformat" >&5 ! $as_echo_n "checking whether ${CC-cc} accepts -Wformat... " >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_ext=c *************** *** 32000,32010 **** XCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wformat" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN --- 18862,18868 ---- XCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wformat" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN *************** *** 32023,32056 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then eval "octave_cv_cc_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cc_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext CFLAGS="$XCFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' --- 18881,18893 ---- return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : eval "octave_cv_cc_flag_$ac_safe=yes" else ! eval "octave_cv_cc_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext CFLAGS="$XCFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' *************** *** 32062,32086 **** fi if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } WARN_CFLAGS="$WARN_CFLAGS -Wformat"; ! { echo "$as_me:$LINENO: result: adding -Wformat to WARN_CFLAGS" >&5 ! echo "${ECHO_T}adding -Wformat to WARN_CFLAGS" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ac_safe=`echo "-Wall" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CXX-g++} accepts -Wall" >&5 ! echo $ECHO_N "checking whether ${CXX-g++} accepts -Wall... $ECHO_C" >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=cpp --- 18899,18923 ---- fi if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } WARN_CFLAGS="$WARN_CFLAGS -Wformat"; ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding -Wformat to WARN_CFLAGS" >&5 ! $as_echo "adding -Wformat to WARN_CFLAGS" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ac_safe=`echo "-Wall" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-g++} accepts -Wall" >&5 ! $as_echo_n "checking whether ${CXX-g++} accepts -Wall... " >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_ext=cpp *************** *** 32091,32101 **** XCXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -Wall" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN --- 18928,18934 ---- XCXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -Wall" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN *************** *** 32114,32147 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then eval "octave_cv_cxx_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$XCXXFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' --- 18947,18959 ---- return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : eval "octave_cv_cxx_flag_$ac_safe=yes" else ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$XCXXFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' *************** *** 32153,32176 **** fi if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } WARN_CXXFLAGS="$WARN_CXXFLAGS -Wall"; ! { echo "$as_me:$LINENO: result: adding -Wall to WARN_CXXFLAGS" >&5 ! echo "${ECHO_T}adding -Wall to WARN_CXXFLAGS" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ac_safe=`echo "-W" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CXX-g++} accepts -W" >&5 ! echo $ECHO_N "checking whether ${CXX-g++} accepts -W... $ECHO_C" >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=cpp --- 18965,18988 ---- fi if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } WARN_CXXFLAGS="$WARN_CXXFLAGS -Wall"; ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding -Wall to WARN_CXXFLAGS" >&5 ! $as_echo "adding -Wall to WARN_CXXFLAGS" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ac_safe=`echo "-W" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-g++} accepts -W" >&5 ! $as_echo_n "checking whether ${CXX-g++} accepts -W... " >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_ext=cpp *************** *** 32181,32191 **** XCXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -W" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN --- 18993,18999 ---- XCXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -W" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN *************** *** 32204,32237 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then eval "octave_cv_cxx_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$XCXXFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' --- 19012,19024 ---- return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : eval "octave_cv_cxx_flag_$ac_safe=yes" else ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$XCXXFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' *************** *** 32243,32266 **** fi if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } WARN_CXXFLAGS="$WARN_CXXFLAGS -W"; ! { echo "$as_me:$LINENO: result: adding -W to WARN_CXXFLAGS" >&5 ! echo "${ECHO_T}adding -W to WARN_CXXFLAGS" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ac_safe=`echo "-Wshadow" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CXX-g++} accepts -Wshadow" >&5 ! echo $ECHO_N "checking whether ${CXX-g++} accepts -Wshadow... $ECHO_C" >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=cpp --- 19030,19053 ---- fi if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } WARN_CXXFLAGS="$WARN_CXXFLAGS -W"; ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding -W to WARN_CXXFLAGS" >&5 ! $as_echo "adding -W to WARN_CXXFLAGS" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ac_safe=`echo "-Wshadow" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-g++} accepts -Wshadow" >&5 ! $as_echo_n "checking whether ${CXX-g++} accepts -Wshadow... " >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_ext=cpp *************** *** 32271,32281 **** XCXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -Wshadow" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN --- 19058,19064 ---- XCXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -Wshadow" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN *************** *** 32294,32327 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then eval "octave_cv_cxx_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$XCXXFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' --- 19077,19089 ---- return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : eval "octave_cv_cxx_flag_$ac_safe=yes" else ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$XCXXFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' *************** *** 32333,32356 **** fi if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } WARN_CXXFLAGS="$WARN_CXXFLAGS -Wshadow"; ! { echo "$as_me:$LINENO: result: adding -Wshadow to WARN_CXXFLAGS" >&5 ! echo "${ECHO_T}adding -Wshadow to WARN_CXXFLAGS" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ac_safe=`echo "-Wold-style-cast" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CXX-g++} accepts -Wold-style-cast" >&5 ! echo $ECHO_N "checking whether ${CXX-g++} accepts -Wold-style-cast... $ECHO_C" >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=cpp --- 19095,19118 ---- fi if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } WARN_CXXFLAGS="$WARN_CXXFLAGS -Wshadow"; ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding -Wshadow to WARN_CXXFLAGS" >&5 ! $as_echo "adding -Wshadow to WARN_CXXFLAGS" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ac_safe=`echo "-Wold-style-cast" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-g++} accepts -Wold-style-cast" >&5 ! $as_echo_n "checking whether ${CXX-g++} accepts -Wold-style-cast... " >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_ext=cpp *************** *** 32361,32371 **** XCXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -Wold-style-cast" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN --- 19123,19129 ---- XCXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -Wold-style-cast" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN *************** *** 32384,32417 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then eval "octave_cv_cxx_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$XCXXFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' --- 19142,19154 ---- return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : eval "octave_cv_cxx_flag_$ac_safe=yes" else ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$XCXXFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' *************** *** 32423,32446 **** fi if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } WARN_CXXFLAGS="$WARN_CXXFLAGS -Wold-style-cast"; ! { echo "$as_me:$LINENO: result: adding -Wold-style-cast to WARN_CXXFLAGS" >&5 ! echo "${ECHO_T}adding -Wold-style-cast to WARN_CXXFLAGS" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi ac_safe=`echo "-Wformat" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CXX-g++} accepts -Wformat" >&5 ! echo $ECHO_N "checking whether ${CXX-g++} accepts -Wformat... $ECHO_C" >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=cpp --- 19160,19183 ---- fi if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } WARN_CXXFLAGS="$WARN_CXXFLAGS -Wold-style-cast"; ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding -Wold-style-cast to WARN_CXXFLAGS" >&5 ! $as_echo "adding -Wold-style-cast to WARN_CXXFLAGS" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi ac_safe=`echo "-Wformat" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-g++} accepts -Wformat" >&5 ! $as_echo_n "checking whether ${CXX-g++} accepts -Wformat... " >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_ext=cpp *************** *** 32451,32461 **** XCXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -Wformat" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN --- 19188,19194 ---- XCXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -Wformat" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN *************** *** 32474,32507 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then eval "octave_cv_cxx_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$XCXXFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' --- 19207,19219 ---- return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : eval "octave_cv_cxx_flag_$ac_safe=yes" else ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$XCXXFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' *************** *** 32513,32527 **** fi if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } WARN_CXXFLAGS="$WARN_CXXFLAGS -Wformat"; ! { echo "$as_me:$LINENO: result: adding -Wformat to WARN_CXXFLAGS" >&5 ! echo "${ECHO_T}adding -Wformat to WARN_CXXFLAGS" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi --- 19225,19239 ---- fi if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } WARN_CXXFLAGS="$WARN_CXXFLAGS -Wformat"; ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding -Wformat to WARN_CXXFLAGS" >&5 ! $as_echo "adding -Wformat to WARN_CXXFLAGS" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi *************** *** 32536,32542 **** try_strict_warning_flags=false # Check whether --enable-strict-warning-flags was given. ! if test "${enable_strict_warning_flags+set}" = set; then enableval=$enable_strict_warning_flags; if test "$enableval" = yes; then try_strict_warning_flags=true fi --- 19248,19254 ---- try_strict_warning_flags=false # Check whether --enable-strict-warning-flags was given. ! if test "${enable_strict_warning_flags+set}" = set; then : enableval=$enable_strict_warning_flags; if test "$enableval" = yes; then try_strict_warning_flags=true fi *************** *** 32547,32556 **** for flag in $GCC_STRICT_FLAGS; do ac_safe=`echo "$flag" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts $flag" >&5 ! echo $ECHO_N "checking whether ${CC-cc} accepts $flag... $ECHO_C" >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c --- 19259,19268 ---- for flag in $GCC_STRICT_FLAGS; do ac_safe=`echo "$flag" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts $flag" >&5 ! $as_echo_n "checking whether ${CC-cc} accepts $flag... " >&6; } ! if { as_var=octave_cv_cc_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_ext=c *************** *** 32561,32571 **** XCFLAGS="$CFLAGS" CFLAGS="$CFLAGS $flag" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN --- 19273,19279 ---- XCFLAGS="$CFLAGS" CFLAGS="$CFLAGS $flag" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN *************** *** 32584,32617 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_c_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then eval "octave_cv_cc_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cc_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext CFLAGS="$XCFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' --- 19292,19304 ---- return 0; } _ACEOF ! if ac_fn_c_try_link "$LINENO"; then : eval "octave_cv_cc_flag_$ac_safe=yes" else ! eval "octave_cv_cc_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext CFLAGS="$XCFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' *************** *** 32623,32637 **** fi if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } WARN_CFLAGS="$WARN_CFLAGS $flag"; ! { echo "$as_me:$LINENO: result: adding $flag to WARN_CFLAGS" >&5 ! echo "${ECHO_T}adding $flag to WARN_CFLAGS" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi --- 19310,19324 ---- fi if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } WARN_CFLAGS="$WARN_CFLAGS $flag"; ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $flag to WARN_CFLAGS" >&5 ! $as_echo "adding $flag to WARN_CFLAGS" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi *************** *** 32639,32648 **** for flag in $GXX_STRICT_FLAGS; do ac_safe=`echo "$flag" | sed 'y%./+-:=%__p___%'` ! { echo "$as_me:$LINENO: checking whether ${CXX-g++} accepts $flag" >&5 ! echo $ECHO_N "checking whether ${CXX-g++} accepts $flag... $ECHO_C" >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=cpp --- 19326,19335 ---- for flag in $GXX_STRICT_FLAGS; do ac_safe=`echo "$flag" | sed 'y%./+-:=%__p___%'` ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-g++} accepts $flag" >&5 ! $as_echo_n "checking whether ${CXX-g++} accepts $flag... " >&6; } ! if { as_var=octave_cv_cxx_flag_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then : ! $as_echo_n "(cached) " >&6 else ac_ext=cpp *************** *** 32653,32663 **** XCXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $flag" ! cat >conftest.$ac_ext <<_ACEOF ! /* confdefs.h. */ ! _ACEOF ! cat confdefs.h >>conftest.$ac_ext ! cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN --- 19340,19346 ---- XCXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $flag" ! cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef F77_DUMMY_MAIN *************** *** 32676,32709 **** return 0; } _ACEOF ! rm -f conftest.$ac_objext conftest$ac_exeext ! if { (ac_try="$ac_link" ! case "(($ac_try" in ! *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ! *) ac_try_echo=$ac_try;; ! esac ! eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ! (eval "$ac_link") 2>conftest.er1 ! ac_status=$? ! grep -v '^ *+' conftest.er1 >conftest.err ! rm -f conftest.er1 ! cat conftest.err >&5 ! echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! (exit $ac_status); } && { ! test -z "$ac_cxx_werror_flag" || ! test ! -s conftest.err ! } && test -s conftest$ac_exeext && ! $as_test_x conftest$ac_exeext; then eval "octave_cv_cxx_flag_$ac_safe=yes" else ! echo "$as_me: failed program was:" >&5 ! sed 's/^/| /' conftest.$ac_ext >&5 ! ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! ! rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ! conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$XCXXFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' --- 19359,19371 ---- return 0; } _ACEOF ! if ac_fn_cxx_try_link "$LINENO"; then : eval "octave_cv_cxx_flag_$ac_safe=yes" else ! eval "octave_cv_cxx_flag_$ac_safe=no" fi ! rm -f core conftest.err conftest.$ac_objext \ ! conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$XCXXFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' *************** *** 32715,32729 **** fi if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { echo "$as_me:$LINENO: result: yes" >&5 ! echo "${ECHO_T}yes" >&6; } WARN_CXXFLAGS="$WARN_CXXFLAGS $flag"; ! { echo "$as_me:$LINENO: result: adding $flag to WARN_CXXFLAGS" >&5 ! echo "${ECHO_T}adding $flag to WARN_CXXFLAGS" >&6; } else ! { echo "$as_me:$LINENO: result: no" >&5 ! echo "${ECHO_T}no" >&6; } fi --- 19377,19391 ---- fi if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ! $as_echo "yes" >&6; } WARN_CXXFLAGS="$WARN_CXXFLAGS $flag"; ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $flag to WARN_CXXFLAGS" >&5 ! $as_echo "adding $flag to WARN_CXXFLAGS" >&6; } else ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ! $as_echo "no" >&6; } fi *************** *** 32739,32744 **** --- 19401,19408 ---- export CXX export F77 + + subdirs="$subdirs scripts" *************** *** 32746,32752 **** - ### Do the substitutions in all the Makefiles. ac_config_commands="$ac_config_commands Makefile" --- 19410,19415 ---- *************** *** 32784,32795 **** case $ac_val in #( *${as_nl}*) case $ac_var in #( ! *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ! echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( ! *) $as_unset $ac_var ;; esac ;; esac done --- 19447,19459 ---- case $ac_val in #( *${as_nl}*) case $ac_var in #( ! *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 ! $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( ! BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( ! *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done *************** *** 32797,32804 **** (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) ! # `set' does not quote correctly, so add quotes (double-quote ! # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" --- 19461,19468 ---- (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) ! # `set' does not quote correctly, so add quotes: double-quote ! # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" *************** *** 32821,32832 **** if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && ! { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ! echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else ! { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ! echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache --- 19485,19496 ---- if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && ! { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 ! $as_echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else ! { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 ! $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache *************** *** 32842,32852 **** for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ! ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ! ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ! ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs --- 19506,19516 ---- for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ! ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ! as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" ! as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs *************** *** 32855,32865 **** : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" ! { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 ! echo "$as_me: creating $CONFIG_STATUS" >&6;} ! cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. --- 19519,19531 ---- : ${CONFIG_STATUS=./config.status} + ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" ! { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 ! $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} ! as_write_fail=0 ! cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. *************** *** 32869,32927 **** debug=false ac_cs_recheck=false ac_cs_silent=false - SHELL=\${CONFIG_SHELL-$SHELL} - _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF ! ## --------------------- ## ! ## M4sh Initialization. ## ! ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh ! if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: ! # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else ! case `(set -o) 2>/dev/null` in ! *posix*) set -o posix ;; esac - fi ! ! ! # PATH needs CR ! # Avoid depending upon Character Ranges. ! as_cr_letters='abcdefghijklmnopqrstuvwxyz' ! as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ! as_cr_Letters=$as_cr_letters$as_cr_LETTERS ! as_cr_digits='0123456789' ! as_cr_alnum=$as_cr_Letters$as_cr_digits ! ! # The user is always right. ! if test "${PATH_SEPARATOR+set}" != set; then ! echo "#! /bin/sh" >conf$$.sh ! echo "exit 0" >>conf$$.sh ! chmod +x conf$$.sh ! if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then ! PATH_SEPARATOR=';' else ! PATH_SEPARATOR=: fi ! rm -f conf$$.sh fi ! # Support unset when possible. ! if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then ! as_unset=unset ! else ! as_unset=false fi --- 19535,19613 ---- debug=false ac_cs_recheck=false ac_cs_silent=false ! SHELL=\${CONFIG_SHELL-$SHELL} ! export SHELL ! _ASEOF ! cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ! ## -------------------- ## ! ## M4sh Initialization. ## ! ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh ! if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: ! # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else ! case `(set -o) 2>/dev/null` in #( ! *posix*) : ! set -o posix ;; #( ! *) : ! ;; esac fi ! as_nl=' ! ' ! export as_nl ! # Printing a long string crashes Solaris 7 /usr/bin/printf. ! as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ! as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo ! as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo ! # Prefer a ksh shell builtin over an external printf program on Solaris, ! # but without wasting forks for bash or zsh. ! if test -z "$BASH_VERSION$ZSH_VERSION" \ ! && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then ! as_echo='print -r --' ! as_echo_n='print -rn --' ! elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then ! as_echo='printf %s\n' ! as_echo_n='printf %s' ! else ! if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then ! as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' ! as_echo_n='/usr/ucb/echo -n' else ! as_echo_body='eval expr "X$1" : "X\\(.*\\)"' ! as_echo_n_body='eval ! arg=$1; ! case $arg in #( ! *"$as_nl"*) ! expr "X$arg" : "X\\(.*\\)$as_nl"; ! arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; ! esac; ! expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ! ' ! export as_echo_n_body ! as_echo_n='sh -c $as_echo_n_body as_echo' fi ! export as_echo_body ! as_echo='sh -c $as_echo_body as_echo' fi ! # The user is always right. ! if test "${PATH_SEPARATOR+set}" != set; then ! PATH_SEPARATOR=: ! (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { ! (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || ! PATH_SEPARATOR=';' ! } fi *************** *** 32930,32949 **** # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) - as_nl=' - ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. ! case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ! done IFS=$as_save_IFS ;; --- 19616,19633 ---- # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. ! case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ! done IFS=$as_save_IFS ;; *************** *** 32954,33066 **** as_myself=$0 fi if test ! -f "$as_myself"; then ! echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ! { (exit 1); exit 1; } fi ! # Work around bugs in pre-3.0 UWIN ksh. ! for as_var in ENV MAIL MAILPATH ! do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. ! for as_var in \ ! LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ ! LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ ! LC_TELEPHONE LC_TIME ! do ! if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then ! eval $as_var=C; export $as_var ! else ! ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ! fi ! done ! ! # Required to use basename. ! if expr a : '\(a\)' >/dev/null 2>&1 && ! test "X`expr 00001 : '.*\(...\)'`" = X001; then ! as_expr=expr ! else ! as_expr=false ! fi ! ! if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then ! as_basename=basename ! else ! as_basename=false ! fi ! ! ! # Name of the executable. ! as_me=`$as_basename -- "$0" || ! $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ! X"$0" : 'X\(//\)$' \| \ ! X"$0" : 'X\(/\)' \| . 2>/dev/null || ! echo X/"$0" | ! sed '/^.*\/\([^/][^/]*\)\/*$/{ ! s//\1/ ! q ! } ! /^X\/\(\/\/\)$/{ ! s//\1/ ! q ! } ! /^X\/\(\/\).*/{ ! s//\1/ ! q ! } ! s/.*/./; q'` # CDPATH. ! $as_unset CDPATH ! as_lineno_1=$LINENO ! as_lineno_2=$LINENO ! test "x$as_lineno_1" != "x$as_lineno_2" && ! test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { ! ! # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ! # uniformly replaced by the line number. The first 'sed' inserts a ! # line-number line after each line using $LINENO; the second 'sed' ! # does the real work. The second script uses 'N' to pair each ! # line-number line with the line containing $LINENO, and appends ! # trailing '-' during substitution so that $LINENO is not a special ! # case at line end. ! # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ! # scripts with optimization help from Paolo Bonzini. Blame Lee ! # E. McMahon (1931-1989) for sed's syntax. :-) ! sed -n ' ! p ! /[$]LINENO/= ! ' <$as_myself | ! sed ' ! s/[$]LINENO.*/&-/ ! t lineno ! b ! :lineno ! N ! :loop ! s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ ! t loop ! s/-\n.*// ! ' >$as_me.lineno && ! chmod +x "$as_me.lineno" || ! { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 ! { (exit 1); exit 1; }; } ! ! # Don't try to exec as it changes $[0], causing all sort of problems ! # (the dirname of $[0] is not the place where we might find the ! # original and so on. Autoconf is especially sensitive to this). ! . "./$as_me.lineno" ! # Exit status is that of the last command. ! exit ! } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname --- 19638,19760 ---- as_myself=$0 fi if test ! -f "$as_myself"; then ! $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ! exit 1 fi ! # Unset variables that we do not need and which cause bugs (e.g. in ! # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" ! # suppresses any "Segmentation fault" message there. '((' could ! # trigger a bug in pdksh 5.2.14. ! for as_var in BASH_ENV ENV MAIL MAILPATH ! do eval test x\${$as_var+set} = xset \ ! && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. ! LC_ALL=C ! export LC_ALL ! LANGUAGE=C ! export LANGUAGE # CDPATH. ! (unset CDPATH) >/dev/null 2>&1 && unset CDPATH + # as_fn_error ERROR [LINENO LOG_FD] + # --------------------------------- + # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are + # provided, also output the error to LOG_FD, referencing LINENO. Then exit the + # script with status $?, using 1 if that was 0. + as_fn_error () + { + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status + } # as_fn_error + + + # as_fn_set_status STATUS + # ----------------------- + # Set $? to STATUS, without forking. + as_fn_set_status () + { + return $1 + } # as_fn_set_status + + # as_fn_exit STATUS + # ----------------- + # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. + as_fn_exit () + { + set +e + as_fn_set_status $1 + exit $1 + } # as_fn_exit + + # as_fn_unset VAR + # --------------- + # Portably unset VAR. + as_fn_unset () + { + { eval $1=; unset $1;} + } + as_unset=as_fn_unset + # as_fn_append VAR VALUE + # ---------------------- + # Append the text in VALUE to the end of the definition contained in VAR. Take + # advantage of any shell optimizations that allow amortized linear growth over + # repeated appends, instead of the typical quadratic growth present in naive + # implementations. + if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' + else + as_fn_append () + { + eval $1=\$$1\$2 + } + fi # as_fn_append ! # as_fn_arith ARG... ! # ------------------ ! # Perform arithmetic evaluation on the ARGs, and store the result in the ! # global $as_val. Take advantage of shells that can avoid forks. The arguments ! # must be portable across $(()) and expr. ! if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : ! eval 'as_fn_arith () ! { ! as_val=$(( $* )) ! }' ! else ! as_fn_arith () ! { ! as_val=`expr "$@" || test $? -eq 1` ! } ! fi # as_fn_arith ! ! ! if expr a : '\(a\)' >/dev/null 2>&1 && ! test "X`expr 00001 : '.*\(...\)'`" = X001; then ! as_expr=expr ! else ! as_expr=false ! fi + if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename + else + as_basename=false + fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname *************** *** 33068,33117 **** as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= ! case `echo -n x` in -n*) ! case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. ! *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac - if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr - else - as_expr=false - fi - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir ! mkdir conf$$.dir fi ! echo >conf$$.file ! if ln -s conf$$.file conf$$ 2>/dev/null; then ! as_ln_s='ln -s' ! # ... but there are two gotchas: ! # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ! # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ! # In both cases, we have to default to `cp -p'. ! ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' ! elif ln conf$$.file conf$$ 2>/dev/null; then ! as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then ! as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false --- 19762,19883 ---- as_dirname=false fi + as_me=`$as_basename -- "$0" || + $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || + $as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + + # Avoid depending upon Character Ranges. + as_cr_letters='abcdefghijklmnopqrstuvwxyz' + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' + as_cr_Letters=$as_cr_letters$as_cr_LETTERS + as_cr_digits='0123456789' + as_cr_alnum=$as_cr_Letters$as_cr_digits + ECHO_C= ECHO_N= ECHO_T= ! case `echo -n x` in #((((( -n*) ! case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. ! xy) ECHO_C='\c';; ! *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ! ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir ! mkdir conf$$.dir 2>/dev/null fi ! if (echo >conf$$.file) 2>/dev/null; then ! if ln -s conf$$.file conf$$ 2>/dev/null; then ! as_ln_s='ln -s' ! # ... but there are two gotchas: ! # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ! # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ! # In both cases, we have to default to `cp -p'. ! ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || ! as_ln_s='cp -p' ! elif ln conf$$.file conf$$ 2>/dev/null; then ! as_ln_s=ln ! else as_ln_s='cp -p' ! fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null + + # as_fn_mkdir_p + # ------------- + # Create "$as_dir" as a directory, including parents if necessary. + as_fn_mkdir_p () + { + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || + $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || + $as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + + } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then ! as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false *************** *** 33128,33139 **** as_test_x=' eval sh -c '\'' if test -d "$1"; then ! test -d "$1/."; else ! case $1 in ! -*)set "./$1";; esac; ! case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' --- 19894,19905 ---- as_test_x=' eval sh -c '\'' if test -d "$1"; then ! test -d "$1/."; else ! case $1 in #( ! -*)set "./$1";; esac; ! case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' *************** *** 33148,33160 **** exec 6>&1 ! # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was ! generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS --- 19914,19932 ---- exec 6>&1 + ## ----------------------------------- ## + ## Main body of $CONFIG_STATUS script. ## + ## ----------------------------------- ## + _ASEOF + test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ! # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was ! generated by GNU Autoconf 2.64. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS *************** *** 33167,33173 **** _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" --- 19939,19954 ---- _ACEOF ! case $ac_config_files in *" ! "*) set x $ac_config_files; shift; ac_config_files=$*;; ! esac ! ! case $ac_config_headers in *" ! "*) set x $ac_config_headers; shift; ac_config_headers=$*;; ! esac ! ! ! cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" *************** *** 33175,33196 **** _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ ! \`$as_me' instantiates files from templates according to the ! current configuration. ! Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit ! -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions ! --file=FILE[:TEMPLATE] ! instantiate the configuration file FILE ! --header=FILE[:TEMPLATE] ! instantiate the configuration header FILE Configuration files: $config_files --- 19956,19979 ---- _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ ! \`$as_me' instantiates files and other configuration actions ! from templates according to the current configuration. Unless the files ! and actions are specified as TAGs, all are instantiated by default. ! Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit ! -q, --quiet, --silent ! do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions ! --file=FILE[:TEMPLATE] ! instantiate the configuration file FILE ! --header=FILE[:TEMPLATE] ! instantiate the configuration header FILE Configuration files: $config_files *************** *** 33201,33227 **** Configuration commands: $config_commands ! Report bugs to ." _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status ! configured by $0, generated by GNU Autoconf 2.61, ! with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" ! Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF ! # If no file are specified by the user, then we need to provide default ! # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do --- 19984,20011 ---- Configuration commands: $config_commands ! Report bugs to the package provider." _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_version="\\ config.status ! configured by $0, generated by GNU Autoconf 2.64, ! with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" ! Copyright (C) 2009 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' + AWK='$AWK' + test -n "\$AWK" || AWK=awk _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ! # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do *************** *** 33243,33276 **** -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) ! echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift ! CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift ! CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header ! { echo "$as_me: error: ambiguous option: $1 ! Try \`$0 --help' for more information." >&2 ! { (exit 1); exit 1; }; };; --help | --hel | -h ) ! echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. ! -*) { echo "$as_me: error: unrecognized option: $1 ! Try \`$0 --help' for more information." >&2 ! { (exit 1); exit 1; }; } ;; ! *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac --- 20027,20064 ---- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) ! $as_echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift ! case $ac_optarg in ! *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; ! esac ! as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift ! case $ac_optarg in ! *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; ! esac ! as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header ! as_fn_error "ambiguous option: \`$1' ! Try \`$0 --help' for more information.";; --help | --hel | -h ) ! $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. ! -*) as_fn_error "unrecognized option: \`$1' ! Try \`$0 --help' for more information." ;; ! *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac *************** *** 33285,33314 **** fi _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then ! echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 ! CONFIG_SHELL=$SHELL export CONFIG_SHELL ! exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX ! echo "$ac_log" } >&5 _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets --- 20073,20104 ---- fi _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then ! set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion ! shift ! \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 ! CONFIG_SHELL='$SHELL' export CONFIG_SHELL ! exec "\$@" fi _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX ! $as_echo "$ac_log" } >&5 _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets *************** *** 33352,33360 **** "libcruft/blas-xtra/Makefile") CONFIG_FILES="$CONFIG_FILES libcruft/blas-xtra/Makefile" ;; "libcruft/lapack-xtra/Makefile") CONFIG_FILES="$CONFIG_FILES libcruft/lapack-xtra/Makefile" ;; ! *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 ! echo "$as_me: error: invalid argument: $ac_config_target" >&2;} ! { (exit 1); exit 1; }; };; esac done --- 20142,20148 ---- "libcruft/blas-xtra/Makefile") CONFIG_FILES="$CONFIG_FILES libcruft/blas-xtra/Makefile" ;; "libcruft/lapack-xtra/Makefile") CONFIG_FILES="$CONFIG_FILES libcruft/lapack-xtra/Makefile" ;; ! *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done *************** *** 33381,33387 **** trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 ! trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. --- 20169,20175 ---- trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 ! trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. *************** *** 33392,33758 **** { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") ! } || ! { ! echo "$me: cannot create a temporary directory in ." >&2 ! { (exit 1); exit 1; } ! } ! ! # ! # Set up the sed scripts for CONFIG_FILES section. ! # ! # No need to generate the scripts if there are no CONFIG_FILES. ! # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then - _ACEOF - - - - ac_delim='%!_!# ' - for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF - SHELL!$SHELL$ac_delim - PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim - PACKAGE_NAME!$PACKAGE_NAME$ac_delim - PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim - PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim - PACKAGE_STRING!$PACKAGE_STRING$ac_delim - PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim - exec_prefix!$exec_prefix$ac_delim - prefix!$prefix$ac_delim - program_transform_name!$program_transform_name$ac_delim - bindir!$bindir$ac_delim - sbindir!$sbindir$ac_delim - libexecdir!$libexecdir$ac_delim - datarootdir!$datarootdir$ac_delim - datadir!$datadir$ac_delim - sysconfdir!$sysconfdir$ac_delim - sharedstatedir!$sharedstatedir$ac_delim - localstatedir!$localstatedir$ac_delim - includedir!$includedir$ac_delim - oldincludedir!$oldincludedir$ac_delim - docdir!$docdir$ac_delim - infodir!$infodir$ac_delim - htmldir!$htmldir$ac_delim - dvidir!$dvidir$ac_delim - pdfdir!$pdfdir$ac_delim - psdir!$psdir$ac_delim - libdir!$libdir$ac_delim - localedir!$localedir$ac_delim - mandir!$mandir$ac_delim - DEFS!$DEFS$ac_delim - ECHO_C!$ECHO_C$ac_delim - ECHO_N!$ECHO_N$ac_delim - ECHO_T!$ECHO_T$ac_delim - LIBS!$LIBS$ac_delim - build_alias!$build_alias$ac_delim - host_alias!$host_alias$ac_delim - target_alias!$target_alias$ac_delim - build!$build$ac_delim - build_cpu!$build_cpu$ac_delim - build_vendor!$build_vendor$ac_delim - build_os!$build_os$ac_delim - host!$host$ac_delim - host_cpu!$host_cpu$ac_delim - host_vendor!$host_vendor$ac_delim - host_os!$host_os$ac_delim - canonical_host_type!$canonical_host_type$ac_delim - CC!$CC$ac_delim - CFLAGS!$CFLAGS$ac_delim - LDFLAGS!$LDFLAGS$ac_delim - CPPFLAGS!$CPPFLAGS$ac_delim - ac_ct_CC!$ac_ct_CC$ac_delim - EXEEXT!$EXEEXT$ac_delim - OBJEXT!$OBJEXT$ac_delim - CPP!$CPP$ac_delim - GREP!$GREP$ac_delim - EGREP!$EGREP$ac_delim - sepchar!$sepchar$ac_delim - man1dir!$man1dir$ac_delim - man1ext!$man1ext$ac_delim - doc_cache_file!$doc_cache_file$ac_delim - infofile!$infofile$ac_delim - octincludedir!$octincludedir$ac_delim - fcnfiledir!$fcnfiledir$ac_delim - localfcnfiledir!$localfcnfiledir$ac_delim - localapifcnfiledir!$localapifcnfiledir$ac_delim - localverfcnfiledir!$localverfcnfiledir$ac_delim - octetcdir!$octetcdir$ac_delim - octlibdir!$octlibdir$ac_delim - archlibdir!$archlibdir$ac_delim - localarchlibdir!$localarchlibdir$ac_delim - localapiarchlibdir!$localapiarchlibdir$ac_delim - localverarchlibdir!$localverarchlibdir$ac_delim - octfiledir!$octfiledir$ac_delim - localoctfiledir!$localoctfiledir$ac_delim - localapioctfiledir!$localapioctfiledir$ac_delim - localveroctfiledir!$localveroctfiledir$ac_delim - imagedir!$imagedir$ac_delim - config_opts!$config_opts$ac_delim - OCTAVE_IDX_TYPE!$OCTAVE_IDX_TYPE$ac_delim - USE_64_BIT_IDX_T!$USE_64_BIT_IDX_T$ac_delim - CXX!$CXX$ac_delim - CXXFLAGS!$CXXFLAGS$ac_delim - ac_ct_CXX!$ac_ct_CXX$ac_delim - CXXCPP!$CXXCPP$ac_delim - CXX_VERSION!$CXX_VERSION$ac_delim - CC_VERSION!$CC_VERSION$ac_delim - INCLUDE_DEPS!$INCLUDE_DEPS$ac_delim - DEPEND_FLAGS!$DEPEND_FLAGS$ac_delim - DEPEND_EXTRA_SED_PATTERN!$DEPEND_EXTRA_SED_PATTERN$ac_delim - XMKMF!$XMKMF$ac_delim - X11_INCFLAGS!$X11_INCFLAGS$ac_delim - X11_LIBS!$X11_LIBS$ac_delim - CARBON_LIBS!$CARBON_LIBS$ac_delim - XTRA_CFLAGS!$XTRA_CFLAGS$ac_delim - XTRA_CXXFLAGS!$XTRA_CXXFLAGS$ac_delim - LD_STATIC_FLAG!$LD_STATIC_FLAG$ac_delim - BUILD_CC!$BUILD_CC$ac_delim - _ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 - echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi - done ! ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ! if test -n "$ac_eof"; then ! ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ! ac_eof=`expr $ac_eof + 1` fi ! cat >>$CONFIG_STATUS <<_ACEOF ! cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof ! /@[a-zA-Z_][a-zA-Z_0-9]*@/!b ! _ACEOF ! sed ' ! s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ! s/^/s,@/; s/!/@,|#_!!_#|/ ! :n ! t n ! s/'"$ac_delim"'$/,g/; t ! s/$/\\/; p ! N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ! ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ! CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do ! cat >conf$$subs.sed <<_ACEOF ! BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim ! BUILD_CXX!$BUILD_CXX$ac_delim ! BUILD_CXXFLAGS!$BUILD_CXXFLAGS$ac_delim ! BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim ! BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim ! QHULL_LIBS!$QHULL_LIBS$ac_delim ! TEXINFO_QHULL!$TEXINFO_QHULL$ac_delim ! WITH_PCRE_CONFIG!$WITH_PCRE_CONFIG$ac_delim ! REGEX_LIBS!$REGEX_LIBS$ac_delim ! FFT_DIR!$FFT_DIR$ac_delim ! FFTW_LIBS!$FFTW_LIBS$ac_delim ! GLPK_LIBS!$GLPK_LIBS$ac_delim ! CURL_LIBS!$CURL_LIBS$ac_delim ! MAGICK_CONFIG!$MAGICK_CONFIG$ac_delim ! OPENGL_LIBS!$OPENGL_LIBS$ac_delim ! FT2_CONFIG!$FT2_CONFIG$ac_delim ! FT2_CFLAGS!$FT2_CFLAGS$ac_delim ! FT2_LIBS!$FT2_LIBS$ac_delim ! FLTK_CONFIG!$FLTK_CONFIG$ac_delim ! GRAPHICS_CFLAGS!$GRAPHICS_CFLAGS$ac_delim ! GRAPHICS_LIBS!$GRAPHICS_LIBS$ac_delim ! AR!$AR$ac_delim ! ARFLAGS!$ARFLAGS$ac_delim ! RANLIB!$RANLIB$ac_delim ! F77!$F77$ac_delim ! FFLAGS!$FFLAGS$ac_delim ! ac_ct_F77!$ac_ct_F77$ac_delim ! FLIBS!$FLIBS$ac_delim ! F77_TOLOWER!$F77_TOLOWER$ac_delim ! F77_APPEND_UNDERSCORE!$F77_APPEND_UNDERSCORE$ac_delim ! F77_APPEND_EXTRA_UNDERSCORE!$F77_APPEND_EXTRA_UNDERSCORE$ac_delim ! XTRA_CRUFT_SH_LDFLAGS!$XTRA_CRUFT_SH_LDFLAGS$ac_delim ! FC!$FC$ac_delim ! F77_FLOAT_STORE_FLAG!$F77_FLOAT_STORE_FLAG$ac_delim ! BLAS_LIBS!$BLAS_LIBS$ac_delim ! LAPACK_LIBS!$LAPACK_LIBS$ac_delim ! BLAS_DIR!$BLAS_DIR$ac_delim ! LAPACK_DIR!$LAPACK_DIR$ac_delim ! QRUPDATE_LIBS!$QRUPDATE_LIBS$ac_delim ! AMD_LIBS!$AMD_LIBS$ac_delim ! CAMD_LIBS!$CAMD_LIBS$ac_delim ! UMFPACK_LIBS!$UMFPACK_LIBS$ac_delim ! TEXINFO_UMFPACK!$TEXINFO_UMFPACK$ac_delim ! COLAMD_LIBS!$COLAMD_LIBS$ac_delim ! TEXINFO_COLAMD!$TEXINFO_COLAMD$ac_delim ! CCOLAMD_LIBS!$CCOLAMD_LIBS$ac_delim ! CHOLMOD_LIBS!$CHOLMOD_LIBS$ac_delim ! TEXINFO_CHOLMOD!$TEXINFO_CHOLMOD$ac_delim ! CXSPARSE_LIBS!$CXSPARSE_LIBS$ac_delim ! ARPACK_LIBS!$ARPACK_LIBS$ac_delim ! STATIC_LIBS!$STATIC_LIBS$ac_delim ! SHARED_LIBS!$SHARED_LIBS$ac_delim ! FPICFLAG!$FPICFLAG$ac_delim ! CPICFLAG!$CPICFLAG$ac_delim ! CXXPICFLAG!$CXXPICFLAG$ac_delim ! SHLEXT!$SHLEXT$ac_delim ! SHLLIB!$SHLLIB$ac_delim ! SHLBIN!$SHLBIN$ac_delim ! SHLEXT_VER!$SHLEXT_VER$ac_delim ! SHLLIB_VER!$SHLLIB_VER$ac_delim ! SHLBIN_VER!$SHLBIN_VER$ac_delim ! SHLLINKEXT!$SHLLINKEXT$ac_delim ! LIBPRE!$LIBPRE$ac_delim ! SHLPRE!$SHLPRE$ac_delim ! SHLLIBPRE!$SHLLIBPRE$ac_delim ! SHLBINPRE!$SHLBINPRE$ac_delim ! SH_LD!$SH_LD$ac_delim ! SH_LDFLAGS!$SH_LDFLAGS$ac_delim ! DL_LD!$DL_LD$ac_delim ! DL_LDFLAGS!$DL_LDFLAGS$ac_delim ! MKOCTFILE_DL_LDFLAGS!$MKOCTFILE_DL_LDFLAGS$ac_delim ! SONAME_FLAGS!$SONAME_FLAGS$ac_delim ! NO_OCT_FILE_STRIP!$NO_OCT_FILE_STRIP$ac_delim ! RLD_FLAG!$RLD_FLAG$ac_delim ! TEMPLATE_AR!$TEMPLATE_AR$ac_delim ! TEMPLATE_ARFLAGS!$TEMPLATE_ARFLAGS$ac_delim ! CRUFT_DLL_DEFS!$CRUFT_DLL_DEFS$ac_delim ! OCTAVE_DLL_DEFS!$OCTAVE_DLL_DEFS$ac_delim ! OCTINTERP_DLL_DEFS!$OCTINTERP_DLL_DEFS$ac_delim ! OCTGRAPHICS_DLL_DEFS!$OCTGRAPHICS_DLL_DEFS$ac_delim ! library_path_var!$library_path_var$ac_delim ! SCRIPTS_EXE_SUFFIX!$SCRIPTS_EXE_SUFFIX$ac_delim ! ALLOCA!$ALLOCA$ac_delim ! LIBGLOB!$LIBGLOB$ac_delim ! LD_CXX!$LD_CXX$ac_delim ! RDYNAMIC_FLAG!$RDYNAMIC_FLAG$ac_delim ! ENABLE_DYNAMIC_LINKING!$ENABLE_DYNAMIC_LINKING$ac_delim ! LIBOCTINTERP!$LIBOCTINTERP$ac_delim ! LIBOCTAVE!$LIBOCTAVE$ac_delim ! LIBCRUFT!$LIBCRUFT$ac_delim ! TERMLIBS!$TERMLIBS$ac_delim ! LIBREADLINE!$LIBREADLINE$ac_delim ! AWK!$AWK$ac_delim ! FIND!$FIND$ac_delim ! SED!$SED$ac_delim ! PERL!$PERL$ac_delim ! PYTHON!$PYTHON$ac_delim ! _ACEOF ! if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then ! { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ! echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ! { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ! ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ! if test -n "$ac_eof"; then ! ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ! ac_eof=`expr $ac_eof + 1` ! fi ! ! cat >>$CONFIG_STATUS <<_ACEOF ! cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof ! /@[a-zA-Z_][a-zA-Z_0-9]*@/!b ! _ACEOF ! sed ' ! s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ! s/^/s,@/; s/!/@,|#_!!_#|/ ! :n ! t n ! s/'"$ac_delim"'$/,g/; t ! s/$/\\/; p ! N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ! ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ! CEOF$ac_eof _ACEOF ! ac_delim='%!_!# ' ! for ac_last_try in false false false false false :; do ! cat >conf$$subs.sed <<_ACEOF ! LEX!$LEX$ac_delim ! LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim ! LEXLIB!$LEXLIB$ac_delim ! LFLAGS!$LFLAGS$ac_delim ! YACC!$YACC$ac_delim ! YFLAGS!$YFLAGS$ac_delim ! LN_S!$LN_S$ac_delim ! INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim ! INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim ! INSTALL_DATA!$INSTALL_DATA$ac_delim ! DESKTOP_FILE_INSTALL!$DESKTOP_FILE_INSTALL$ac_delim ! GNUPLOT!$GNUPLOT$ac_delim ! DEFAULT_PAGER!$DEFAULT_PAGER$ac_delim ! GPERF!$GPERF$ac_delim ! GHOSTSCRIPT!$GHOSTSCRIPT$ac_delim ! MAKEINFO!$MAKEINFO$ac_delim ! TEXI2DVI!$TEXI2DVI$ac_delim ! TEXI2PDF!$TEXI2PDF$ac_delim ! UGLY_DEFS!$UGLY_DEFS$ac_delim ! WARN_CFLAGS!$WARN_CFLAGS$ac_delim ! WARN_CXXFLAGS!$WARN_CXXFLAGS$ac_delim ! subdirs!$subdirs$ac_delim ! ac_config_files!$ac_config_files$ac_delim ! LIBOBJS!$LIBOBJS$ac_delim ! LTLIBOBJS!$LTLIBOBJS$ac_delim ! _ACEOF ! ! if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then ! break ! elif $ac_last_try; then ! { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ! echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ! { (exit 1); exit 1; }; } ! else ! ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ! fi ! done ! ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ! if test -n "$ac_eof"; then ! ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ! ac_eof=`expr $ac_eof + 1` ! fi ! ! cat >>$CONFIG_STATUS <<_ACEOF ! cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof ! /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end ! _ACEOF ! sed ' ! s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ! s/^/s,@/; s/!/@,|#_!!_#|/ ! :n ! t n ! s/'"$ac_delim"'$/,g/; t ! s/$/\\/; p ! N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ! ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ! :end ! s/|#_!!_#|//g ! CEOF$ac_eof _ACEOF - # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and --- 20180,20318 ---- { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") ! } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 ! # Set up the scripts for CONFIG_FILES section. ! # No need to generate them if there are no CONFIG_FILES. ! # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ! ac_cr=`echo X | tr X '\015'` ! # On cygwin, bash can eat \r inside `` if the user requested igncr. ! # But we know of no other shell where ac_cr would be empty at this ! # point, so we can use a bashism as a fallback. ! if test "x$ac_cr" = x; then ! eval ac_cr=\$\'\\r\' ! fi ! ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` ! if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ! ac_cs_awk_cr='\r' ! else ! ac_cs_awk_cr=$ac_cr fi ! echo 'BEGIN {' >"$tmp/subs1.awk" && _ACEOF + { + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" + } >conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 + ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do ! . ./conf$$subs.sh || ! as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 ! ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` ! if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then ! as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done + rm -f conf$$subs.sh ! cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ! cat >>"\$tmp/subs1.awk" <<\\_ACAWK && _ACEOF + sed -n ' + h + s/^/S["/; s/!.*/"]=/ + p + g + s/^[^!]*!// + :repl + t repl + s/'"$ac_delim"'$// + t delim + :nl + h + s/\(.\{148\}\).*/\1/ + t more1 + s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ + p + n + b repl + :more1 + s/["\\]/\\&/g; s/^/"/; s/$/"\\/ + p + g + s/.\{148\}// + t nl + :delim + h + s/\(.\{148\}\).*/\1/ + t more2 + s/["\\]/\\&/g; s/^/"/; s/$/"/ + p + b + :more2 + s/["\\]/\\&/g; s/^/"/; s/$/"\\/ + p + g + s/.\{148\}// + t delim + ' >$CONFIG_STATUS || ac_write_fail=1 + rm -f conf$$subs.awk + cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + _ACAWK + cat >>"\$tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + } + { + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } ! print line ! } ! _ACAWK ! _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ! if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then ! sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" ! else ! cat ! fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ ! || as_fn_error "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and *************** *** 33769,33788 **** }' fi ! cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" ! for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; ! :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 ! echo "$as_me: error: Invalid tag $ac_tag." >&2;} ! { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac --- 20329,20456 ---- }' fi ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" + # Set up the scripts for CONFIG_HEADERS section. + # No need to generate them if there are no CONFIG_HEADERS. + # This happens for instance with `./config.status Makefile'. + if test -n "$CONFIG_HEADERS"; then + cat >"$tmp/defines.awk" <<\_ACAWK || + BEGIN { + _ACEOF + + # Transform confdefs.h into an awk script `defines.awk', embedded as + # here-document in config.status, that substitutes the proper values into + # config.h.in to produce config.h. + + # Create a delimiter string that does not exist in confdefs.h, to ease + # handling of long lines. + ac_delim='%!_!# ' + for ac_last_try in false false :; do + ac_t=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_t"; then + break + elif $ac_last_try; then + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi + done + + # For the awk script, D is an array of macro values keyed by name, + # likewise P contains macro parameters if any. Preserve backslash + # newline sequences. + + ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* + sed -n ' + s/.\{148\}/&'"$ac_delim"'/g + t rset + :rset + s/^[ ]*#[ ]*define[ ][ ]*/ / + t def + d + :def + s/\\$// + t bsnl + s/["\\]/\\&/g + s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ + D["\1"]=" \3"/p + s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p + d + :bsnl + s/["\\]/\\&/g + s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ + D["\1"]=" \3\\\\\\n"\\/p + t cont + s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p + t cont + d + :cont + n + s/.\{148\}/&'"$ac_delim"'/g + t clear + :clear + s/\\$// + t bsnlc + s/["\\]/\\&/g; s/^/"/; s/$/"/p + d + :bsnlc + s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p + b cont + ' >$CONFIG_STATUS || ac_write_fail=1 + + cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" + } + /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } + } + { print } + _ACAWK + _ACEOF + cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error "could not setup config headers machinery" "$LINENO" 5 + fi # test -n "$CONFIG_HEADERS" + ! eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" ! shift ! for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; ! :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac *************** *** 33810,33835 **** [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || ! { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 ! echo "$as_me: error: cannot find input file: $ac_f" >&2;} ! { (exit 1); exit 1; }; };; esac ! ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ ! configure_input="Generated from "`IFS=: ! echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" ! { echo "$as_me:$LINENO: creating $ac_file" >&5 ! echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in ! *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac --- 20478,20511 ---- [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || ! as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac ! case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac ! as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ ! configure_input='Generated from '` ! $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' ! `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" ! { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 ! $as_echo "$as_me: creating $ac_file" >&6;} fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac case $ac_tag in ! *:-:* | *:-) cat >"$tmp/stdin" \ ! || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac *************** *** 33839,33880 **** X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || ! echo X"$ac_file" | ! sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ! s//\1/ ! q ! } ! /^X\(\/\/\)[^/].*/{ ! s//\1/ ! q ! } ! /^X\(\/\/\)$/{ ! s//\1/ ! q ! } ! /^X\(\/\).*/{ ! s//\1/ ! q ! } ! s/.*/./; q'` ! { as_dir="$ac_dir" ! case $as_dir in #( ! -*) as_dir=./$as_dir;; ! esac ! test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ! as_dirs= ! while :; do ! case $as_dir in #( ! *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ! *) as_qdir=$as_dir;; ! esac ! as_dirs="'$as_qdir' $as_dirs" ! as_dir=`$as_dirname -- "$as_dir" || ! $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! X"$as_dir" : 'X\(//\)[^/]' \| \ ! X"$as_dir" : 'X\(//\)$' \| \ ! X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ! echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q --- 20515,20521 ---- X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || ! $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q *************** *** 33892,33911 **** q } s/.*/./; q'` ! test -d "$as_dir" && break ! done ! test -z "$as_dirs" || eval "mkdir $as_dirs" ! } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ! echo "$as_me: error: cannot create directory $as_dir" >&2;} ! { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ! ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ! ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; --- 20533,20547 ---- q } s/.*/./; q'` ! as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ! ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ! ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; *************** *** 33945,33956 **** esac _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ! ! case `sed -n '/datarootdir/ { p q } --- 20581,20592 ---- esac _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ! ac_sed_dataroot=' ! /datarootdir/ { p q } *************** *** 33958,33993 **** /@docdir@/p /@infodir@/p /@localedir@/p ! /@mandir@/p ! ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) ! { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 ! echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g ! s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? ! cat >>$CONFIG_STATUS <<_ACEOF ! sed "$ac_vpsub $extrasub _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b ! s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t --- 20594,20630 ---- /@docdir@/p /@infodir@/p /@localedir@/p ! /@mandir@/p' ! case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 ! $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g ! s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? ! cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ! ac_sed_extra="$ac_vpsub $extrasub _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b ! s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t + s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t *************** *** 33997,34119 **** s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack ! " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && ! { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 ! echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in ! -) cat "$tmp/out"; rm -f "$tmp/out";; ! *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; ! esac ;; :H) # # CONFIG_HEADER # - _ACEOF - - # Transform confdefs.h into a sed script `conftest.defines', that - # substitutes the proper values into config.h.in to produce config.h. - rm -f conftest.defines conftest.tail - # First, append a space to every undef/define line, to ease matching. - echo 's/$/ /' >conftest.defines - # Then, protect against being on the right side of a sed subst, or in - # an unquoted here document, in config.status. If some macros were - # called several times there might be several #defines for the same - # symbol, which is useless. But do not sort them, since the last - # AC_DEFINE must be honored. - ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* - # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where - # NAME is the cpp macro being defined, VALUE is the value it is being given. - # PARAMS is the parameter list in the macro definition--in most cases, it's - # just an empty string. - ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' - ac_dB='\\)[ (].*,\\1define\\2' - ac_dC=' ' - ac_dD=' ,' - - uniq confdefs.h | - sed -n ' - t rset - :rset - s/^[ ]*#[ ]*define[ ][ ]*// - t ok - d - :ok - s/[\\&,]/\\&/g - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p - ' >>conftest.defines - - # Remove the space that was appended to ease matching. - # Then replace #undef with comments. This is necessary, for - # example, in the case of _POSIX_SOURCE, which is predefined and required - # on some systems where configure will not decide to define it. - # (The regexp can be short, since the line contains either #define or #undef.) - echo 's/ $// - s,^[ #]*u.*,/* & */,' >>conftest.defines - - # Break up conftest.defines: - ac_max_sed_lines=50 - - # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" - # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" - # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" - # et cetera. - ac_in='$ac_file_inputs' - ac_out='"$tmp/out1"' - ac_nxt='"$tmp/out2"' - - while : - do - # Write a here document: - cat >>$CONFIG_STATUS <<_ACEOF - # First, check the format of the line: - cat >"\$tmp/defines.sed" <<\\CEOF - /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def - /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def - b - :def - _ACEOF - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS - echo 'CEOF - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail - grep . conftest.tail >/dev/null || break - rm -f conftest.defines - mv conftest.tail conftest.defines - done - rm -f conftest.defines conftest.tail - - echo "ac_result=$ac_in" >>$CONFIG_STATUS - cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then ! echo "/* $configure_input */" >"$tmp/config.h" ! cat "$ac_result" >>"$tmp/config.h" ! if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then ! { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 ! echo "$as_me: $ac_file is unchanged" >&6;} else ! rm -f $ac_file ! mv "$tmp/config.h" $ac_file fi else ! echo "/* $configure_input */" ! cat "$ac_result" fi - rm -f "$tmp/out12" ;; ! :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 ! echo "$as_me: executing $ac_file commands" >&6;} ;; esac --- 20634,20685 ---- s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack ! " ! eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ ! || as_fn_error "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 ! $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in ! -) cat "$tmp/out" && rm -f "$tmp/out";; ! *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; ! esac \ ! || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then ! { ! $as_echo "/* $configure_input */" \ ! && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" ! } >"$tmp/config.h" \ ! || as_fn_error "could not create $ac_file" "$LINENO" 5 ! if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 ! $as_echo "$as_me: $ac_file is unchanged" >&6;} else ! rm -f "$ac_file" ! mv "$tmp/config.h" "$ac_file" \ ! || as_fn_error "could not create $ac_file" "$LINENO" 5 fi else ! $as_echo "/* $configure_input */" \ ! && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ ! || as_fn_error "could not create -" "$LINENO" 5 fi ;; ! :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 ! $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac *************** *** 34127,34137 **** done # for ac_tag ! { (exit 0); exit 0; } _ACEOF - chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. --- 20693,20705 ---- done # for ac_tag ! as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save + test $ac_write_fail = 0 || + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 + # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. *************** *** 34151,34157 **** exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. ! $ac_cs_success || { (exit 1); exit 1; } fi # --- 20719,20725 ---- exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. ! $ac_cs_success || as_fn_exit $? fi # *************** *** 34159,34165 **** # if test "$no_recursion" != yes; then ! # Remove --cache-file and --srcdir arguments so they do not pile up. ac_sub_configure_args= ac_prev= eval "set x $ac_configure_args" --- 20727,20734 ---- # if test "$no_recursion" != yes; then ! # Remove --cache-file, --srcdir, and --disable-option-checking arguments ! # so they do not pile up. ac_sub_configure_args= ac_prev= eval "set x $ac_configure_args" *************** *** 34188,34198 **** ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; *) case $ac_arg in ! *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac ! ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; esac done --- 20757,20769 ---- ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; + --disable-option-checking) + ;; *) case $ac_arg in ! *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac ! as_fn_append ac_sub_configure_args " '$ac_arg'" ;; esac done *************** *** 34200,34206 **** # in subdir configurations. ac_arg="--prefix=$prefix" case $ac_arg in ! *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" --- 20771,20777 ---- # in subdir configurations. ac_arg="--prefix=$prefix" case $ac_arg in ! *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" *************** *** 34209,34214 **** --- 20780,20789 ---- ac_sub_configure_args="--silent $ac_sub_configure_args" fi + # Always prepend --disable-option-checking to silence warnings, since + # different subdirs can have different --enable and --with options. + ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" + ac_popdir=`pwd` for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue *************** *** 34217,34273 **** test -d "$srcdir/$ac_dir" || continue ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" ! echo "$as_me:$LINENO: $ac_msg" >&5 ! echo "$ac_msg" >&6 ! { as_dir="$ac_dir" ! case $as_dir in #( ! -*) as_dir=./$as_dir;; ! esac ! test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ! as_dirs= ! while :; do ! case $as_dir in #( ! *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ! *) as_qdir=$as_dir;; ! esac ! as_dirs="'$as_qdir' $as_dirs" ! as_dir=`$as_dirname -- "$as_dir" || ! $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! X"$as_dir" : 'X\(//\)[^/]' \| \ ! X"$as_dir" : 'X\(//\)$' \| \ ! X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ! echo X"$as_dir" | ! sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ! s//\1/ ! q ! } ! /^X\(\/\/\)[^/].*/{ ! s//\1/ ! q ! } ! /^X\(\/\/\)$/{ ! s//\1/ ! q ! } ! /^X\(\/\).*/{ ! s//\1/ ! q ! } ! s/.*/./; q'` ! test -d "$as_dir" && break ! done ! test -z "$as_dirs" || eval "mkdir $as_dirs" ! } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ! echo "$as_me: error: cannot create directory $as_dir" >&2;} ! { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ! ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ! ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; --- 20792,20808 ---- test -d "$srcdir/$ac_dir" || continue ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" ! $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 ! $as_echo "$ac_msg" >&6 ! as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ! ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ! ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; *************** *** 34306,34313 **** # This should be Cygnus configure. ac_sub_configure=$ac_aux_dir/configure else ! { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 ! echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_configure= fi --- 20841,20848 ---- # This should be Cygnus configure. ac_sub_configure=$ac_aux_dir/configure else ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 ! $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_configure= fi *************** *** 34320,34343 **** ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; esac ! { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 ! echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || ! { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 ! echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} ! { (exit 1); exit 1; }; } fi cd "$ac_popdir" done fi ### Print a summary so that important information isn't missed. ! { echo "$as_me:$LINENO: Octave is now configured for $canonical_host_type --- 20855,20880 ---- ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; esac ! { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 ! $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || ! as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 fi cd "$ac_popdir" done fi + if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 + $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} + fi ### Print a summary so that important information isn't missed. ! { $as_echo "$as_me:${as_lineno-$LINENO}: Octave is now configured for $canonical_host_type *************** *** 34368,34373 **** --- 20905,20912 ---- X11 include flags: $X11_INCFLAGS X11 libraries: $X11_LIBS CARBON libraries: $CARBON_LIBS + PTHREAD flags $PTHREAD_CFLAGS + PTHREAD libraries $PTHREAD_LIBS LIBS: $LIBS Default pager: $DEFAULT_PAGER gnuplot: $GNUPLOT *************** *** 34380,34386 **** Include support for GNU readline: $USE_READLINE 64-bit array dims and indexing: $USE_64_BIT_IDX_T " >&5 ! echo "$as_me: Octave is now configured for $canonical_host_type --- 20919,20925 ---- Include support for GNU readline: $USE_READLINE 64-bit array dims and indexing: $USE_64_BIT_IDX_T " >&5 ! $as_echo "$as_me: Octave is now configured for $canonical_host_type *************** *** 34411,34416 **** --- 20950,20957 ---- X11 include flags: $X11_INCFLAGS X11 libraries: $X11_LIBS CARBON libraries: $CARBON_LIBS + PTHREAD flags $PTHREAD_CFLAGS + PTHREAD libraries $PTHREAD_LIBS LIBS: $LIBS Default pager: $DEFAULT_PAGER gnuplot: $GNUPLOT *************** *** 34430,34632 **** if $SHARED_LIBS; then true else ! { echo "$as_me:$LINENO: WARNING: You used --enable-dl but not --enable-shared." >&5 ! echo "$as_me: WARNING: You used --enable-dl but not --enable-shared." >&2;} ! { echo "$as_me:$LINENO: WARNING: Are you sure that is what you want to do?" >&5 ! echo "$as_me: WARNING: Are you sure that is what you want to do?" >&2;} warn_msg_printed=true fi fi if test -n "$gxx_only"; then ! { echo "$as_me:$LINENO: WARNING: $gxx_only" >&5 ! echo "$as_me: WARNING: $gxx_only" >&2;} warn_msg_printed=true fi if test -n "$warn_gcc_version"; then ! { echo "$as_me:$LINENO: WARNING: $warn_gcc_version" >&5 ! echo "$as_me: WARNING: $warn_gcc_version" >&2;} warn_msg_printed=true fi if test -n "$warn_gcc_only"; then ! { echo "$as_me:$LINENO: WARNING: $warn_gcc_only" >&5 ! echo "$as_me: WARNING: $warn_gcc_only" >&2;} warn_msg_printed=true fi if test -n "$warn_readline"; then ! { echo "$as_me:$LINENO: WARNING: $warn_readline" >&5 ! echo "$as_me: WARNING: $warn_readline" >&2;} warn_msg_printed=true fi if test -n "$warn_termlibs"; then ! { echo "$as_me:$LINENO: WARNING: $warn_termlibs" >&5 ! echo "$as_me: WARNING: $warn_termlibs" >&2;} warn_msg_printed=true fi if test -n "$warn_gperf"; then ! { echo "$as_me:$LINENO: WARNING: $warn_gperf" >&5 ! echo "$as_me: WARNING: $warn_gperf" >&2;} warn_msg_printed=true fi if test -n "$warn_flex"; then ! { echo "$as_me:$LINENO: WARNING: $warn_flex" >&5 ! echo "$as_me: WARNING: $warn_flex" >&2;} warn_msg_printed=true fi if test -n "$warn_bison"; then ! { echo "$as_me:$LINENO: WARNING: $warn_bison" >&5 ! echo "$as_me: WARNING: $warn_bison" >&2;} warn_msg_printed=true fi if test -n "$warn_less"; then ! { echo "$as_me:$LINENO: WARNING: $warn_less" >&5 ! echo "$as_me: WARNING: $warn_less" >&2;} warn_msg_printed=true fi if test -n "$warn_blas_f77_incompatible"; then ! { echo "$as_me:$LINENO: WARNING: $warn_blas_f77_incompatible" >&5 ! echo "$as_me: WARNING: $warn_blas_f77_incompatible" >&2;} warn_msg_printed=true fi if test -n "$warn_umfpack"; then ! { echo "$as_me:$LINENO: WARNING: $warn_umfpack" >&5 ! echo "$as_me: WARNING: $warn_umfpack" >&2;} warn_msg_printed=true fi if test -n "$warn_qrupdate"; then ! { echo "$as_me:$LINENO: WARNING: $warn_qrupdate" >&5 ! echo "$as_me: WARNING: $warn_qrupdate" >&2;} warn_msg_printed=true fi if test -n "$warn_amd"; then ! { echo "$as_me:$LINENO: WARNING: $warn_amd" >&5 ! echo "$as_me: WARNING: $warn_amd" >&2;} warn_msg_printed=true fi if test -n "$warn_colamd"; then ! { echo "$as_me:$LINENO: WARNING: $warn_colamd" >&5 ! echo "$as_me: WARNING: $warn_colamd" >&2;} warn_msg_printed=true fi if test -n "$warn_ccolamd"; then ! { echo "$as_me:$LINENO: WARNING: $warn_ccolamd" >&5 ! echo "$as_me: WARNING: $warn_ccolamd" >&2;} warn_msg_printed=true fi if test -n "$warn_cholmod"; then ! { echo "$as_me:$LINENO: WARNING: $warn_cholmod" >&5 ! echo "$as_me: WARNING: $warn_cholmod" >&2;} warn_msg_printed=true fi if test -n "$warn_cxsparse"; then ! { echo "$as_me:$LINENO: WARNING: $warn_cxsparse" >&5 ! echo "$as_me: WARNING: $warn_cxsparse" >&2;} warn_msg_printed=true fi if test -n "$warn_arpack"; then ! { echo "$as_me:$LINENO: WARNING: $warn_arpack" >&5 ! echo "$as_me: WARNING: $warn_arpack" >&2;} warn_msg_printed=true fi if test -n "$warn_curl"; then ! { echo "$as_me:$LINENO: WARNING: $warn_curl" >&5 ! echo "$as_me: WARNING: $warn_curl" >&2;} warn_msg_printed=true fi if test -n "$warn_fftw"; then ! { echo "$as_me:$LINENO: WARNING: $warn_fftw" >&5 ! echo "$as_me: WARNING: $warn_fftw" >&2;} warn_msg_printed=true fi if test -n "$warn_glpk"; then ! { echo "$as_me:$LINENO: WARNING: $warn_glpk" >&5 ! echo "$as_me: WARNING: $warn_glpk" >&2;} warn_msg_printed=true fi if test -n "$warn_magick"; then ! { echo "$as_me:$LINENO: WARNING: $warn_magick" >&5 ! echo "$as_me: WARNING: $warn_magick" >&2;} warn_msg_printed=true fi if test -n "$warn_hdf5"; then ! { echo "$as_me:$LINENO: WARNING: $warn_hdf5" >&5 ! echo "$as_me: WARNING: $warn_hdf5" >&2;} warn_msg_printed=true fi if test -n "$warn_regex"; then ! { echo "$as_me:$LINENO: WARNING: $warn_regex" >&5 ! echo "$as_me: WARNING: $warn_regex" >&2;} warn_msg_printed=true fi if test -n "$warn_pcre"; then ! { echo "$as_me:$LINENO: WARNING: $warn_pcre" >&5 ! echo "$as_me: WARNING: $warn_pcre" >&2;} warn_msg_printed=true fi if test -n "$warn_qhull"; then ! { echo "$as_me:$LINENO: WARNING: $warn_qhull" >&5 ! echo "$as_me: WARNING: $warn_qhull" >&2;} warn_msg_printed=true fi if test -n "$warn_zlib"; then ! { echo "$as_me:$LINENO: WARNING: $warn_zlib" >&5 ! echo "$as_me: WARNING: $warn_zlib" >&2;} warn_msg_printed=true fi if test -n "$warn_ghostscript"; then ! { echo "$as_me:$LINENO: WARNING: $warn_ghostscript" >&5 ! echo "$as_me: WARNING: $warn_ghostscript" >&2;} warn_msg_printed=true fi if test -n "$warn_makeinfo"; then ! { echo "$as_me:$LINENO: WARNING: $warn_makeinfo" >&5 ! echo "$as_me: WARNING: $warn_makeinfo" >&2;} warn_msg_printed=true fi if test -n "$warn_texi2dvi"; then ! { echo "$as_me:$LINENO: WARNING: $warn_texi2dvi" >&5 ! echo "$as_me: WARNING: $warn_texi2dvi" >&2;} warn_msg_printed=true fi if test -n "$warn_texi2pdf"; then ! { echo "$as_me:$LINENO: WARNING: $warn_texi2pdf" >&5 ! echo "$as_me: WARNING: $warn_texi2pdf" >&2;} warn_msg_printed=true fi if test -n "$warn_64_bit"; then ! { echo "$as_me:$LINENO: WARNING: $warn_64_bit" >&5 ! echo "$as_me: WARNING: $warn_64_bit" >&2;} warn_msg_printed=true fi --- 20971,21173 ---- if $SHARED_LIBS; then true else ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You used --enable-dl but not --enable-shared." >&5 ! $as_echo "$as_me: WARNING: You used --enable-dl but not --enable-shared." >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Are you sure that is what you want to do?" >&5 ! $as_echo "$as_me: WARNING: Are you sure that is what you want to do?" >&2;} warn_msg_printed=true fi fi if test -n "$gxx_only"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $gxx_only" >&5 ! $as_echo "$as_me: WARNING: $gxx_only" >&2;} warn_msg_printed=true fi if test -n "$warn_gcc_version"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_gcc_version" >&5 ! $as_echo "$as_me: WARNING: $warn_gcc_version" >&2;} warn_msg_printed=true fi if test -n "$warn_gcc_only"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_gcc_only" >&5 ! $as_echo "$as_me: WARNING: $warn_gcc_only" >&2;} warn_msg_printed=true fi if test -n "$warn_readline"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_readline" >&5 ! $as_echo "$as_me: WARNING: $warn_readline" >&2;} warn_msg_printed=true fi if test -n "$warn_termlibs"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_termlibs" >&5 ! $as_echo "$as_me: WARNING: $warn_termlibs" >&2;} warn_msg_printed=true fi if test -n "$warn_gperf"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_gperf" >&5 ! $as_echo "$as_me: WARNING: $warn_gperf" >&2;} warn_msg_printed=true fi if test -n "$warn_flex"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_flex" >&5 ! $as_echo "$as_me: WARNING: $warn_flex" >&2;} warn_msg_printed=true fi if test -n "$warn_bison"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_bison" >&5 ! $as_echo "$as_me: WARNING: $warn_bison" >&2;} warn_msg_printed=true fi if test -n "$warn_less"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_less" >&5 ! $as_echo "$as_me: WARNING: $warn_less" >&2;} warn_msg_printed=true fi if test -n "$warn_blas_f77_incompatible"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_blas_f77_incompatible" >&5 ! $as_echo "$as_me: WARNING: $warn_blas_f77_incompatible" >&2;} warn_msg_printed=true fi if test -n "$warn_umfpack"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_umfpack" >&5 ! $as_echo "$as_me: WARNING: $warn_umfpack" >&2;} warn_msg_printed=true fi if test -n "$warn_qrupdate"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_qrupdate" >&5 ! $as_echo "$as_me: WARNING: $warn_qrupdate" >&2;} warn_msg_printed=true fi if test -n "$warn_amd"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_amd" >&5 ! $as_echo "$as_me: WARNING: $warn_amd" >&2;} warn_msg_printed=true fi if test -n "$warn_colamd"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_colamd" >&5 ! $as_echo "$as_me: WARNING: $warn_colamd" >&2;} warn_msg_printed=true fi if test -n "$warn_ccolamd"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_ccolamd" >&5 ! $as_echo "$as_me: WARNING: $warn_ccolamd" >&2;} warn_msg_printed=true fi if test -n "$warn_cholmod"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_cholmod" >&5 ! $as_echo "$as_me: WARNING: $warn_cholmod" >&2;} warn_msg_printed=true fi if test -n "$warn_cxsparse"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_cxsparse" >&5 ! $as_echo "$as_me: WARNING: $warn_cxsparse" >&2;} warn_msg_printed=true fi if test -n "$warn_arpack"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_arpack" >&5 ! $as_echo "$as_me: WARNING: $warn_arpack" >&2;} warn_msg_printed=true fi if test -n "$warn_curl"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_curl" >&5 ! $as_echo "$as_me: WARNING: $warn_curl" >&2;} warn_msg_printed=true fi if test -n "$warn_fftw"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_fftw" >&5 ! $as_echo "$as_me: WARNING: $warn_fftw" >&2;} warn_msg_printed=true fi if test -n "$warn_glpk"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_glpk" >&5 ! $as_echo "$as_me: WARNING: $warn_glpk" >&2;} warn_msg_printed=true fi if test -n "$warn_magick"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_magick" >&5 ! $as_echo "$as_me: WARNING: $warn_magick" >&2;} warn_msg_printed=true fi if test -n "$warn_hdf5"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_hdf5" >&5 ! $as_echo "$as_me: WARNING: $warn_hdf5" >&2;} warn_msg_printed=true fi if test -n "$warn_regex"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_regex" >&5 ! $as_echo "$as_me: WARNING: $warn_regex" >&2;} warn_msg_printed=true fi if test -n "$warn_pcre"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_pcre" >&5 ! $as_echo "$as_me: WARNING: $warn_pcre" >&2;} warn_msg_printed=true fi if test -n "$warn_qhull"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_qhull" >&5 ! $as_echo "$as_me: WARNING: $warn_qhull" >&2;} warn_msg_printed=true fi if test -n "$warn_zlib"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_zlib" >&5 ! $as_echo "$as_me: WARNING: $warn_zlib" >&2;} warn_msg_printed=true fi if test -n "$warn_ghostscript"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_ghostscript" >&5 ! $as_echo "$as_me: WARNING: $warn_ghostscript" >&2;} warn_msg_printed=true fi if test -n "$warn_makeinfo"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_makeinfo" >&5 ! $as_echo "$as_me: WARNING: $warn_makeinfo" >&2;} warn_msg_printed=true fi if test -n "$warn_texi2dvi"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_texi2dvi" >&5 ! $as_echo "$as_me: WARNING: $warn_texi2dvi" >&2;} warn_msg_printed=true fi if test -n "$warn_texi2pdf"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_texi2pdf" >&5 ! $as_echo "$as_me: WARNING: $warn_texi2pdf" >&2;} warn_msg_printed=true fi if test -n "$warn_64_bit"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_64_bit" >&5 ! $as_echo "$as_me: WARNING: $warn_64_bit" >&2;} warn_msg_printed=true fi *************** *** 34635,34714 **** ## If you change this text, be sure to also change the corresponding ## set of warnings above. ! { echo "$as_me:$LINENO: WARNING: " >&5 ! echo "$as_me: WARNING: " >&2;} ! { echo "$as_me:$LINENO: WARNING: I didn't find gnuplot. It isn't necessary to have gnuplot" >&5 ! echo "$as_me: WARNING: I didn't find gnuplot. It isn't necessary to have gnuplot" >&2;} ! { echo "$as_me:$LINENO: WARNING: installed, but you won't be able to use any of Octave's" >&5 ! echo "$as_me: WARNING: installed, but you won't be able to use any of Octave's" >&2;} ! { echo "$as_me:$LINENO: WARNING: plotting commands without it." >&5 ! echo "$as_me: WARNING: plotting commands without it." >&2;} ! { echo "$as_me:$LINENO: WARNING: " >&5 ! echo "$as_me: WARNING: " >&2;} ! { echo "$as_me:$LINENO: WARNING: If gnuplot is installed but it isn't in your path, you can" >&5 ! echo "$as_me: WARNING: If gnuplot is installed but it isn't in your path, you can" >&2;} ! { echo "$as_me:$LINENO: WARNING: tell Octave where to find it by typing the command" >&5 ! echo "$as_me: WARNING: tell Octave where to find it by typing the command" >&2;} ! { echo "$as_me:$LINENO: WARNING: " >&5 ! echo "$as_me: WARNING: " >&2;} ! { echo "$as_me:$LINENO: WARNING: gnuplot_binary = \"/full/path/to/gnuplot/binary\"" >&5 ! echo "$as_me: WARNING: gnuplot_binary = \"/full/path/to/gnuplot/binary\"" >&2;} ! { echo "$as_me:$LINENO: WARNING: " >&5 ! echo "$as_me: WARNING: " >&2;} ! { echo "$as_me:$LINENO: WARNING: at the Octave prompt." >&5 ! echo "$as_me: WARNING: at the Octave prompt." >&2;} ! { echo "$as_me:$LINENO: WARNING: " >&5 ! echo "$as_me: WARNING: " >&2;} warn_msg_printed=true fi if $USE_64_BIT_IDX_T; then ! { echo "$as_me:$LINENO: WARNING: " >&5 ! echo "$as_me: WARNING: " >&2;} ! { echo "$as_me:$LINENO: WARNING: You used the EXPERIMENTAL --enable-64 option." >&5 ! echo "$as_me: WARNING: You used the EXPERIMENTAL --enable-64 option." >&2;} ! { echo "$as_me:$LINENO: WARNING: Are you sure that is what you want to do?" >&5 ! echo "$as_me: WARNING: Are you sure that is what you want to do?" >&2;} ! { echo "$as_me:$LINENO: WARNING: " >&5 ! echo "$as_me: WARNING: " >&2;} ! { echo "$as_me:$LINENO: WARNING: You must ensure that the Fortran compiler generates" >&5 ! echo "$as_me: WARNING: You must ensure that the Fortran compiler generates" >&2;} ! { echo "$as_me:$LINENO: WARNING: code with 8 byte signed INTEGER values, and that your" >&5 ! echo "$as_me: WARNING: code with 8 byte signed INTEGER values, and that your" >&2;} ! { echo "$as_me:$LINENO: WARNING: BLAS and LAPACK libraries are compiled to use 8 byte" >&5 ! echo "$as_me: WARNING: BLAS and LAPACK libraries are compiled to use 8 byte" >&2;} ! { echo "$as_me:$LINENO: WARNING: signed integers for array indexing." >&5 ! echo "$as_me: WARNING: signed integers for array indexing." >&2;} ! { echo "$as_me:$LINENO: WARNING: " >&5 ! echo "$as_me: WARNING: " >&2;} warn_msg_printed=true fi native_graphics=true if test -n "$warn_freetype"; then ! { echo "$as_me:$LINENO: WARNING: \"$warn_freetype\"" >&5 ! echo "$as_me: WARNING: \"$warn_freetype\"" >&2;} native_graphics=false warn_msg_printed=true fi if test -n "$warn_ftgl"; then ! { echo "$as_me:$LINENO: WARNING: \"$warn_ftgl\"" >&5 ! echo "$as_me: WARNING: \"$warn_ftgl\"" >&2;} native_graphics=false warn_msg_printed=true fi if test -n "$warn_fltk_config"; then ! { echo "$as_me:$LINENO: WARNING: \"$warn_fltk_config\"" >&5 ! echo "$as_me: WARNING: \"$warn_fltk_config\"" >&2;} native_graphics=false warn_msg_printed=true fi if test -n "$warn_fltk_opengl"; then ! { echo "$as_me:$LINENO: WARNING: \"$warn_fltk_opengl\"" >&5 ! echo "$as_me: WARNING: \"$warn_fltk_opengl\"" >&2;} native_graphics=false warn_msg_printed=true fi --- 21176,21255 ---- ## If you change this text, be sure to also change the corresponding ## set of warnings above. ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 ! $as_echo "$as_me: WARNING: " >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I didn't find gnuplot. It isn't necessary to have gnuplot" >&5 ! $as_echo "$as_me: WARNING: I didn't find gnuplot. It isn't necessary to have gnuplot" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installed, but you won't be able to use any of Octave's" >&5 ! $as_echo "$as_me: WARNING: installed, but you won't be able to use any of Octave's" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: plotting commands without it." >&5 ! $as_echo "$as_me: WARNING: plotting commands without it." >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 ! $as_echo "$as_me: WARNING: " >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If gnuplot is installed but it isn't in your path, you can" >&5 ! $as_echo "$as_me: WARNING: If gnuplot is installed but it isn't in your path, you can" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tell Octave where to find it by typing the command" >&5 ! $as_echo "$as_me: WARNING: tell Octave where to find it by typing the command" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 ! $as_echo "$as_me: WARNING: " >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gnuplot_binary = \"/full/path/to/gnuplot/binary\"" >&5 ! $as_echo "$as_me: WARNING: gnuplot_binary = \"/full/path/to/gnuplot/binary\"" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 ! $as_echo "$as_me: WARNING: " >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: at the Octave prompt." >&5 ! $as_echo "$as_me: WARNING: at the Octave prompt." >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 ! $as_echo "$as_me: WARNING: " >&2;} warn_msg_printed=true fi if $USE_64_BIT_IDX_T; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 ! $as_echo "$as_me: WARNING: " >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You used the EXPERIMENTAL --enable-64 option." >&5 ! $as_echo "$as_me: WARNING: You used the EXPERIMENTAL --enable-64 option." >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Are you sure that is what you want to do?" >&5 ! $as_echo "$as_me: WARNING: Are you sure that is what you want to do?" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 ! $as_echo "$as_me: WARNING: " >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must ensure that the Fortran compiler generates" >&5 ! $as_echo "$as_me: WARNING: You must ensure that the Fortran compiler generates" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: code with 8 byte signed INTEGER values, and that your" >&5 ! $as_echo "$as_me: WARNING: code with 8 byte signed INTEGER values, and that your" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: BLAS and LAPACK libraries are compiled to use 8 byte" >&5 ! $as_echo "$as_me: WARNING: BLAS and LAPACK libraries are compiled to use 8 byte" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: signed integers for array indexing." >&5 ! $as_echo "$as_me: WARNING: signed integers for array indexing." >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 ! $as_echo "$as_me: WARNING: " >&2;} warn_msg_printed=true fi native_graphics=true if test -n "$warn_freetype"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$warn_freetype\"" >&5 ! $as_echo "$as_me: WARNING: \"$warn_freetype\"" >&2;} native_graphics=false warn_msg_printed=true fi if test -n "$warn_ftgl"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$warn_ftgl\"" >&5 ! $as_echo "$as_me: WARNING: \"$warn_ftgl\"" >&2;} native_graphics=false warn_msg_printed=true fi if test -n "$warn_fltk_config"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$warn_fltk_config\"" >&5 ! $as_echo "$as_me: WARNING: \"$warn_fltk_config\"" >&2;} native_graphics=false warn_msg_printed=true fi if test -n "$warn_fltk_opengl"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$warn_fltk_opengl\"" >&5 ! $as_echo "$as_me: WARNING: \"$warn_fltk_opengl\"" >&2;} native_graphics=false warn_msg_printed=true fi *************** *** 34716,34743 **** if $native_graphics; then true; else ! { echo "$as_me:$LINENO: WARNING: " >&5 ! echo "$as_me: WARNING: " >&2;} ! { echo "$as_me:$LINENO: WARNING: I didn't find the necessary libraries to compile native" >&5 ! echo "$as_me: WARNING: I didn't find the necessary libraries to compile native" >&2;} ! { echo "$as_me:$LINENO: WARNING: graphics. It isn't necessary to have native graphics" >&5 ! echo "$as_me: WARNING: graphics. It isn't necessary to have native graphics" >&2;} ! { echo "$as_me:$LINENO: WARNING: but you will have to use gnuplot or you won't be able" >&5 ! echo "$as_me: WARNING: but you will have to use gnuplot or you won't be able" >&2;} ! { echo "$as_me:$LINENO: WARNING: to use any of Octave's plotting commands" >&5 ! echo "$as_me: WARNING: to use any of Octave's plotting commands" >&2;} ! { echo "$as_me:$LINENO: WARNING: " >&5 ! echo "$as_me: WARNING: " >&2;} warn_msg_printed=true fi if $warn_msg_printed; then ! { echo "$as_me:$LINENO: NOTE: libraries may be skipped if a library is not found OR if the library on your system is missing required features. " >&5 ! echo "$as_me: NOTE: libraries may be skipped if a library is not found OR if the library on your system is missing required features. --- 21257,21284 ---- if $native_graphics; then true; else ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 ! $as_echo "$as_me: WARNING: " >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I didn't find the necessary libraries to compile native" >&5 ! $as_echo "$as_me: WARNING: I didn't find the necessary libraries to compile native" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: graphics. It isn't necessary to have native graphics" >&5 ! $as_echo "$as_me: WARNING: graphics. It isn't necessary to have native graphics" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but you will have to use gnuplot or you won't be able" >&5 ! $as_echo "$as_me: WARNING: but you will have to use gnuplot or you won't be able" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to use any of Octave's plotting commands" >&5 ! $as_echo "$as_me: WARNING: to use any of Octave's plotting commands" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 ! $as_echo "$as_me: WARNING: " >&2;} warn_msg_printed=true fi if $warn_msg_printed; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: libraries may be skipped if a library is not found OR if the library on your system is missing required features. " >&5 ! $as_echo "$as_me: NOTE: libraries may be skipped if a library is not found OR if the library on your system is missing required features. diff -cNr octave-3.2.3/configure.in octave-3.2.4/configure.in *** octave-3.2.3/configure.in 2009-07-24 14:00:57.000000000 +0200 --- octave-3.2.4/configure.in 2010-01-19 12:13:14.000000000 +0100 *************** *** 254,259 **** --- 254,262 ---- AC_SUBST(DEPEND_FLAGS) AC_SUBST(DEPEND_EXTRA_SED_PATTERN) + sinclude(acx_pthread.m4) + ACX_PTHREAD + AC_PATH_X if test "$have_x"; then AC_DEFINE(HAVE_X_WINDOWS, 1, [Define if you have X11]) *************** *** 2211,2216 **** --- 2214,2221 ---- X11 include flags: $X11_INCFLAGS X11 libraries: $X11_LIBS CARBON libraries: $CARBON_LIBS + PTHREAD flags $PTHREAD_CFLAGS + PTHREAD libraries $PTHREAD_LIBS LIBS: $LIBS Default pager: $DEFAULT_PAGER gnuplot: $GNUPLOT diff -cNr octave-3.2.3/doc/ChangeLog octave-3.2.4/doc/ChangeLog *** octave-3.2.3/doc/ChangeLog 2009-09-14 08:01:42.000000000 +0200 --- octave-3.2.4/doc/ChangeLog 2010-01-22 10:23:24.000000000 +0100 *************** *** 1,3 **** --- 1,11 ---- + 2010-01-22 Jaroslav Hajek + + Version 3.2.4 released. + + 2009-10-11 Rik + + * intepreter/Makefile.in: Fix broken command to create octave.dvi + 2009-09-18 Jaroslav Hajek Version 3.2.3 released. diff -cNr octave-3.2.3/doc/interpreter/contributors.in octave-3.2.4/doc/interpreter/contributors.in *** octave-3.2.3/doc/interpreter/contributors.in 2009-07-27 06:49:25.000000000 +0200 --- octave-3.2.4/doc/interpreter/contributors.in 2009-11-24 08:02:00.000000000 +0100 *************** *** 72,77 **** --- 72,78 ---- Dave Hawthorne Daniel Heiserer Martin Helm + Stefan Hepp Yozo Hida Ryan Hinton Roman Hodek diff -cNr octave-3.2.3/doc/interpreter/contributors.texi octave-3.2.4/doc/interpreter/contributors.texi *** octave-3.2.3/doc/interpreter/contributors.texi 2009-09-14 08:30:27.000000000 +0200 --- octave-3.2.4/doc/interpreter/contributors.texi 2010-01-22 10:34:24.000000000 +0100 *************** *** 23,80 **** @item Etienne Grossmann @tab Peter Gustafson @tab Kai Habel @item William P. Y. Hadisoeseno @tab Jaroslav Hajek @tab Benjamin Hall @item Kim Hansen @tab Soren Hauberg @tab Dave Hawthorne ! @item Daniel Heiserer @tab Martin Helm @tab Yozo Hida ! @item Ryan Hinton @tab Roman Hodek @tab A. Scottedward Hodel ! @item Richard Allan Holcombe @tab Tom Holroyd @tab David Hoover ! @item Kurt Hornik @tab Christopher Hulbert @tab Cyril Humbert ! @item Teemu Ikonen @tab Alan W. Irwin @tab Geoff Jacobsen ! @item Mats Jansson @tab Cai Jianming @tab Steven G. Johnson ! @item Heikki Junes @tab Atsushi Kajita @tab Jarkko Kaleva ! @item Mohamed Kamoun @tab Lute Kamstra @tab Thomas Kasper ! @item Joel Keay @tab Mumit Khan @tab Paul Kienzle ! @item Aaron A. King @tab Arno J. Klaassen @tab Geoffrey Knauth ! @item Heine Kolltveit @tab Ken Kouno @tab Oyvind Kristiansen ! @item Piotr Krzyzanowski @tab Volker Kuhlmann @tab Tetsuro Kurita ! @item Miroslaw Kwasniak @tab Rafael Laboissiere @tab Kai Labusch ! @item Claude Lacoursiere @tab Walter Landry @tab Bill Lash ! @item Dirk Laurie @tab Maurice LeBrun @tab Friedrich Leisch ! @item Timo Lindfors @tab Benjamin Lindner @tab Ross Lippert ! @item David Livings @tab Erik de Castro Lopo @tab Massimo Lorenzin ! @item Emil Lucretiu @tab Hoxide Ma @tab James Macnicol ! @item Jens-Uwe Mager @tab Ricardo Marranita @tab Orestes Mas ! @item Makoto Matsumoto @tab Tatsuro Matsuoka @tab Laurent Mazet ! @item G. D. McBain @tab Alexander Mamonov @tab Christoph Mayer ! @item Thorsten Meyer @tab Petr Mikulik @tab Stefan Monnier ! @item Antoine Moreau @tab Kai P. Mueller @tab Victor Munoz ! @item Carmen Navarrete @tab Todd Neal @tab Al Niessner ! @item Rick Niles @tab Takuji Nishimura @tab Kai Noda ! @item Eric Norum @tab Krzesimir Nowak @tab Michael O'Brien ! @item Peter O'Gorman @tab Thorsten Ohl @tab Arno Onken ! @item Luis F. Ortiz @tab Scott Pakin @tab Gabriele Pannocchia ! @item Sylvain Pelissier @tab Per Persson @tab Primozz Peterlin ! @item Jim Peterson @tab Danilo Piazzalunga @tab Nicholas Piper ! @item Robert Platt @tab Hans Ekkehard Plesser @tab Tom Poage ! @item Orion Poplawski @tab Ondrej Popp @tab Jef Poskanzer ! @item Francesco Potorti @tab James B. Rawlings @tab Eric S. Raymond ! @item Balint Reczey @tab Michael Reifenberger @tab Jason Riedy ! @item Petter Risholm @tab Matthew W. Roberts @tab Andrew Ross ! @item Mark van Rossum @tab Kevin Ruland @tab Ryan Rusaw ! @item Olli Saarela @tab Toni Saarela @tab Juhani Saastamoinen ! @item Radek Salac @tab Ben Sapp @tab Aleksej Saushev ! @item Alois Schloegl @tab Michel D. Schmid @tab Julian Schnidder ! @item Nicol N. Schraudolph @tab Sebastian Schubert @tab Ludwig Schwardt ! @item Thomas L. Scofield @tab Daniel J. Sebald @tab Dmitri A. Sergatskov ! @item Baylis Shanks @tab Joseph P. Skudlarek @tab John Smith ! @item Julius Smith @tab Shan G. Smith @tab Joerg Specht ! @item Quentin H. Spencer @tab Christoph Spiel @tab Richard Stallman ! @item Russell Standish @tab Doug Stewart @tab Jonathan Stickel ! @item Thomas Stuart @tab Ivan Sutoris @tab John Swensen ! @item Ariel Tankus @tab Georg Thimm @tab Duncan Temple Lang ! @item Kris Thielemans @tab Olaf Till @tab Thomas Treichl ! @item Frederick Umminger @tab Utkarsh Upadhyay @tab Stefan van der Walt ! @item Peter Van Wieren @tab James R. Van Zandt @tab Gregory Vanuxem ! @item Ivana Varekova @tab Thomas Walter @tab Olaf Weber ! @item Thomas Weber @tab Rik Wehbring @tab Bob Weigel ! @item Andreas Weingessel @tab Michael Weitzel @tab Fook Fah Yap ! @item Michael Zeising @tab Federico Zenith @tab Alex Zvoleff @end multitable --- 23,81 ---- @item Etienne Grossmann @tab Peter Gustafson @tab Kai Habel @item William P. Y. Hadisoeseno @tab Jaroslav Hajek @tab Benjamin Hall @item Kim Hansen @tab Soren Hauberg @tab Dave Hawthorne ! @item Daniel Heiserer @tab Martin Helm @tab Stefan Hepp ! @item Yozo Hida @tab Ryan Hinton @tab Roman Hodek ! @item A. Scottedward Hodel @tab Richard Allan Holcombe @tab Tom Holroyd ! @item David Hoover @tab Kurt Hornik @tab Christopher Hulbert ! @item Cyril Humbert @tab Teemu Ikonen @tab Alan W. Irwin ! @item Geoff Jacobsen @tab Mats Jansson @tab Cai Jianming ! @item Steven G. Johnson @tab Heikki Junes @tab Atsushi Kajita ! @item Jarkko Kaleva @tab Mohamed Kamoun @tab Lute Kamstra ! @item Thomas Kasper @tab Joel Keay @tab Mumit Khan ! @item Paul Kienzle @tab Aaron A. King @tab Arno J. Klaassen ! @item Geoffrey Knauth @tab Heine Kolltveit @tab Ken Kouno ! @item Oyvind Kristiansen @tab Piotr Krzyzanowski @tab Volker Kuhlmann ! @item Tetsuro Kurita @tab Miroslaw Kwasniak @tab Rafael Laboissiere ! @item Kai Labusch @tab Claude Lacoursiere @tab Walter Landry ! @item Bill Lash @tab Dirk Laurie @tab Maurice LeBrun ! @item Friedrich Leisch @tab Timo Lindfors @tab Benjamin Lindner ! @item Ross Lippert @tab David Livings @tab Erik de Castro Lopo ! @item Massimo Lorenzin @tab Emil Lucretiu @tab Hoxide Ma ! @item James Macnicol @tab Jens-Uwe Mager @tab Ricardo Marranita ! @item Orestes Mas @tab Makoto Matsumoto @tab Tatsuro Matsuoka ! @item Laurent Mazet @tab G. D. McBain @tab Alexander Mamonov ! @item Christoph Mayer @tab Thorsten Meyer @tab Petr Mikulik ! @item Stefan Monnier @tab Antoine Moreau @tab Kai P. Mueller ! @item Victor Munoz @tab Carmen Navarrete @tab Todd Neal ! @item Al Niessner @tab Rick Niles @tab Takuji Nishimura ! @item Kai Noda @tab Eric Norum @tab Krzesimir Nowak ! @item Michael O'Brien @tab Peter O'Gorman @tab Thorsten Ohl ! @item Arno Onken @tab Luis F. Ortiz @tab Scott Pakin ! @item Gabriele Pannocchia @tab Sylvain Pelissier @tab Per Persson ! @item Primozz Peterlin @tab Jim Peterson @tab Danilo Piazzalunga ! @item Nicholas Piper @tab Robert Platt @tab Hans Ekkehard Plesser ! @item Tom Poage @tab Orion Poplawski @tab Ondrej Popp ! @item Jef Poskanzer @tab Francesco Potorti @tab James B. Rawlings ! @item Eric S. Raymond @tab Balint Reczey @tab Michael Reifenberger ! @item Jason Riedy @tab Petter Risholm @tab Matthew W. Roberts ! @item Andrew Ross @tab Mark van Rossum @tab Kevin Ruland ! @item Ryan Rusaw @tab Olli Saarela @tab Toni Saarela ! @item Juhani Saastamoinen @tab Radek Salac @tab Ben Sapp ! @item Aleksej Saushev @tab Alois Schloegl @tab Michel D. Schmid ! @item Julian Schnidder @tab Nicol N. Schraudolph @tab Sebastian Schubert ! @item Ludwig Schwardt @tab Thomas L. Scofield @tab Daniel J. Sebald ! @item Dmitri A. Sergatskov @tab Baylis Shanks @tab Joseph P. Skudlarek ! @item John Smith @tab Julius Smith @tab Shan G. Smith ! @item Joerg Specht @tab Quentin H. Spencer @tab Christoph Spiel ! @item Richard Stallman @tab Russell Standish @tab Doug Stewart ! @item Jonathan Stickel @tab Thomas Stuart @tab Ivan Sutoris ! @item John Swensen @tab Ariel Tankus @tab Georg Thimm ! @item Duncan Temple Lang @tab Kris Thielemans @tab Olaf Till ! @item Thomas Treichl @tab Frederick Umminger @tab Utkarsh Upadhyay ! @item Stefan van der Walt @tab Peter Van Wieren @tab James R. Van Zandt ! @item Gregory Vanuxem @tab Ivana Varekova @tab Thomas Walter ! @item Olaf Weber @tab Thomas Weber @tab Rik Wehbring ! @item Bob Weigel @tab Andreas Weingessel @tab Michael Weitzel ! @item Fook Fah Yap @tab Michael Zeising @tab Federico Zenith ! @item Alex Zvoleff @end multitable diff -cNr octave-3.2.3/doc/interpreter/doc-cache octave-3.2.4/doc/interpreter/doc-cache *** octave-3.2.3/doc/interpreter/doc-cache 2009-09-14 08:30:24.000000000 +0200 --- octave-3.2.4/doc/interpreter/doc-cache 2010-01-22 10:34:21.000000000 +0100 *************** *** 1,4 **** ! # Created by Octave 3.2.3, Mon Sep 14 08:30:24 2009 CEST # name: cache # type: cell # rows: 3 --- 1,4 ---- ! # Created by Octave 3.2.4, Fri Jan 22 10:34:21 2010 CET # name: cache # type: cell # rows: 3 *************** *** 47,53 **** -- Loadable Function: [CC, DD, AA, BB] = balance (A, B, OPT) Compute `aa = dd \ a * dd' in which `aa' is a matrix whose row and column norms are roughly equal in magnitude, and `dd' = `p * d', in which `p' is a permutation matrix and `d' is a diagonal matrix of powers of two. This allows the equilibration to be computed without roundoff. Results of eigenvalue calculation are typically improved by balancing first. ! If two output values are requested, `balance' returns the diagonal `d' and the permutation `p' separately as vectors. In this case, `dd = eye(n)(p,:) * diag (d)', where `n' is the matrix size. If four output values are requested, compute `aa = cc*a*dd' and `bb = cc*b*dd)', in which `aa' and `bb' have non-zero elements of approximately the same magnitude and `cc' and `dd' are permuted diagonal matrices as in `dd' for the algebraic eigenvalue problem. --- 47,53 ---- -- Loadable Function: [CC, DD, AA, BB] = balance (A, B, OPT) Compute `aa = dd \ a * dd' in which `aa' is a matrix whose row and column norms are roughly equal in magnitude, and `dd' = `p * d', in which `p' is a permutation matrix and `d' is a diagonal matrix of powers of two. This allows the equilibration to be computed without roundoff. Results of eigenvalue calculation are typically improved by balancing first. ! If two output values are requested, `balance' returns the diagonal `d' and the permutation `p' separately as vectors. In this case, `dd = eye(n)(:,p) * diag (d)', where `n' is the matrix size. If four output values are requested, compute `aa = cc*a*dd' and `bb = cc*b*dd)', in which `aa' and `bb' have non-zero elements of approximately the same magnitude and `cc' and `dd' are permuted diagonal matrices as in `dd' for the algebraic eigenvalue problem. *************** *** 20696,20704 **** # name: # type: string # elements: 1 ! # length: 222 -- Function File: orient (ORIENTATION) ! Set the default print orientation. Valid values for ORIENTATION include `"landscape"' and `"portrait"'. If called with no arguments, return the default print orientation. # name: # type: string --- 20696,20708 ---- # name: # type: string # elements: 1 ! # length: 361 -- Function File: orient (ORIENTATION) ! Set the default print orientation. Valid values for ORIENTATION include `"landscape"', `"portrait"', and `"tall"'. ! ! The `"tall"' option sets the orientation to portait and fills the page with the plot, while leaving a 0.25in border. ! ! If called with no arguments, return the default print orientation. # name: # type: string diff -cNr octave-3.2.3/doc/interpreter/linalg.texi octave-3.2.4/doc/interpreter/linalg.texi *** octave-3.2.3/doc/interpreter/linalg.texi 2009-09-14 08:30:26.000000000 +0200 --- octave-3.2.4/doc/interpreter/linalg.texi 2010-01-22 10:34:23.000000000 +0100 *************** *** 100,106 **** If two output values are requested, @code{balance} returns the diagonal @code{d} and the permutation @code{p} separately as vectors. ! In this case, @code{dd = eye(n)(p,:) * diag (d)}, where @code{n} is the matrix size. If four output values are requested, compute @code{aa = cc*a*dd} and --- 100,106 ---- If two output values are requested, @code{balance} returns the diagonal @code{d} and the permutation @code{p} separately as vectors. ! In this case, @code{dd = eye(n)(:,p) * diag (d)}, where @code{n} is the matrix size. If four output values are requested, compute @code{aa = cc*a*dd} and diff -cNr octave-3.2.3/doc/interpreter/Makefile.in octave-3.2.4/doc/interpreter/Makefile.in *** octave-3.2.3/doc/interpreter/Makefile.in 2009-05-25 08:04:58.000000000 +0200 --- octave-3.2.4/doc/interpreter/Makefile.in 2009-11-20 10:48:24.000000000 +0100 *************** *** 136,142 **** # octave-a4.texi) and call texi2[dvi|pdf] on it. TEXI2DVICOMMAND = TEXINPUTS="..$(sepchar)$(srcdir)$(sepchar)$(srcdir)/..$(sepchar)$(TEXINPUTS)$(sepchar)" \ ! TEXMFCNF="..$(sepchar)$(srcdir)$(sepchar)$(srcdir)/..$(sepchar)$(TEXINPUTS)$(sepchar)" \ $(TEXI2DVI) TEXI2PDFCOMMAND = TEXINPUTS="..$(sepchar)$(srcdir)$(sepchar)$(srcdir)/..$(sepchar)$(TEXINPUTS)$(sepchar)" \ --- 136,142 ---- # octave-a4.texi) and call texi2[dvi|pdf] on it. TEXI2DVICOMMAND = TEXINPUTS="..$(sepchar)$(srcdir)$(sepchar)$(srcdir)/..$(sepchar)$(TEXINPUTS)$(sepchar)" \ ! TEXMFCNF="..$(sepchar)$(srcdir)$(sepchar)$(srcdir)/..$(sepchar)$(TEXMFCNF)$(sepchar)" \ $(TEXI2DVI) TEXI2PDFCOMMAND = TEXINPUTS="..$(sepchar)$(srcdir)$(sepchar)$(srcdir)/..$(sepchar)$(TEXINPUTS)$(sepchar)" \ *************** *** 148,154 **** MAN_BASE := mkoctfile octave octave-bug octave-config MAN_SRC := $(addsuffix .1, $(MAN_BASE)) - # FIXME -- need to include generated figures here... DISTFILES = $(addprefix $(srcdir)/, Makefile.in contributors.in \ mkcontrib.awk dir munge-texi.cc $(MAN_SRC) $(SOURCES) $(MAIN_TEXINFO)) \ $(SUB_TEXINFO) contributors.texi $(FORMATTED) $(IMAGES) mk_doc_cache.m \ --- 148,153 ---- *************** *** 206,213 **** -$(MAKEINFO) -I.. -I$(srcdir) -I$(srcdir)/.. $(MAIN_TEXINFO) octave.dvi: $(IMAGES_EPS) $(TEXINFO) $(EXAMPLE_FILES) ! -TEXINPUTS="..$(sepchar)$(srcdir)$(sepchar)$(srcdir)/..$(sepchar)$(TEXINPUTS)$(sepchar)" \ ! $(TEXI2DVI) $(MAIN_TEXINFO) octave-a4.dvi: $(IMAGES_EPS) $(TEXINFO) $(EXAMPLE_FILES) octave-a4.texi -$(TEXI2DVICOMMAND) octave-a4.texi -t @afourpaper --- 205,211 ---- -$(MAKEINFO) -I.. -I$(srcdir) -I$(srcdir)/.. $(MAIN_TEXINFO) octave.dvi: $(IMAGES_EPS) $(TEXINFO) $(EXAMPLE_FILES) ! -$(TEXI2DVICOMMAND) $(MAIN_TEXINFO) octave-a4.dvi: $(IMAGES_EPS) $(TEXINFO) $(EXAMPLE_FILES) octave-a4.texi -$(TEXI2DVICOMMAND) octave-a4.texi -t @afourpaper Files octave-3.2.3/doc/interpreter/octave-a4.pdf and octave-3.2.4/doc/interpreter/octave-a4.pdf differ Files octave-3.2.3/doc/interpreter/octave.pdf and octave-3.2.4/doc/interpreter/octave.pdf differ diff -cNr octave-3.2.3/doc/interpreter/plot.texi octave-3.2.4/doc/interpreter/plot.texi *** octave-3.2.3/doc/interpreter/plot.texi 2009-09-14 08:30:27.000000000 +0200 --- octave-3.2.4/doc/interpreter/plot.texi 2010-01-22 10:34:23.000000000 +0100 *************** *** 2922,2928 **** @anchor{doc-orient} @deftypefn {Function File} {} orient (@var{orientation}) Set the default print orientation. Valid values for ! @var{orientation} include @code{"landscape"} and @code{"portrait"}. If called with no arguments, return the default print orientation. @end deftypefn --- 2922,2933 ---- @anchor{doc-orient} @deftypefn {Function File} {} orient (@var{orientation}) Set the default print orientation. Valid values for ! @var{orientation} include @code{"landscape"}, @code{"portrait"}, ! and @code{"tall"}. ! ! The @code{"tall"} option sets the orientation to portait and fills ! the page with the plot, while leaving a 0.25in border. ! If called with no arguments, return the default print orientation. @end deftypefn Files octave-3.2.3/doc/liboctave/liboctave.pdf and octave-3.2.4/doc/liboctave/liboctave.pdf differ diff -cNr octave-3.2.3/libcruft/ChangeLog octave-3.2.4/libcruft/ChangeLog *** octave-3.2.3/libcruft/ChangeLog 2009-09-14 08:01:42.000000000 +0200 --- octave-3.2.4/libcruft/ChangeLog 2010-01-22 10:23:24.000000000 +0100 *************** *** 1,3 **** --- 1,7 ---- + 2010-01-22 Jaroslav Hajek + + Version 3.2.4 released. + 2009-09-18 Jaroslav Hajek Version 3.2.3 released. diff -cNr octave-3.2.3/liboctave/base-aepbal.h octave-3.2.4/liboctave/base-aepbal.h *** octave-3.2.3/liboctave/base-aepbal.h 2009-05-25 08:04:59.000000000 +0200 --- octave-3.2.4/liboctave/base-aepbal.h 2009-11-25 12:05:09.000000000 +0100 *************** *** 64,79 **** for (octave_idx_type i = n-1; i >= ihi; i--) { octave_idx_type j = scale(i) - 1; ! octave_idx_type k = pv(j); ! pv(j) = pv(i); ! pv(i) = k; } ! for (octave_idx_type i = ilo-2; i >= 0; i--) { octave_idx_type j = scale(i) - 1; ! octave_idx_type k = pv(j); ! pv(j) = pv(i); ! pv(i) = k; } return pv; --- 64,75 ---- for (octave_idx_type i = n-1; i >= ihi; i--) { octave_idx_type j = scale(i) - 1; ! std::swap (pv(i), pv(j)); } ! for (octave_idx_type i = 0; i < ilo-1; i++) { octave_idx_type j = scale(i) - 1; ! std::swap (pv(i), pv(j)); } return pv; diff -cNr octave-3.2.3/liboctave/ChangeLog octave-3.2.4/liboctave/ChangeLog *** octave-3.2.3/liboctave/ChangeLog 2009-09-14 08:01:42.000000000 +0200 --- octave-3.2.4/liboctave/ChangeLog 2010-01-22 10:23:24.000000000 +0100 *************** *** 1,3 **** --- 1,36 ---- + 2010-01-22 Jaroslav Hajek + + Version 3.2.4 released. + + 2010-01-22 Jaroslav Hajek + + * Makefile.in: Add PTHREAD_CFLAGS to LINK_DEPS. + + 2009-08-05 John W. Eaton + + * Makefile.in (LINK_DEPS): Include $(PTHREAD_LIBS) in the list. + + 2009-11-17 Jaroslav Hajek + + * base-aepbal.h (permuting_vector): Fix lower part swapping. + + 2009-11-18 David Grundberg + + * str-vec.cc (string_vector::list_in_columns): Avoid crash on + empty arguments from list_in_columns. + + 2009-10-27 David Bateman + + * SparsedbleLU.cc (SparseLU::SparseLU (const SparseMatrix&, + const Matrix&, bool), SparseLU::SparseLU (const SparseMatrix&, + const ColumnVector&, const Matrix&, boo, bool, double, bool, + bool)): Fix test for valid pivot tolerance. + * SparseCmplxLU.cc (SparseComplexLU::SparseComplexLU + (const SparseComplexMatrix&, const Matrix&, bool), + SparseComplexLU::SparseComplexLU (const SparseComplexMatrix&, + const ColumnVector&, const Matrix&, boo, bool, double, bool, + bool)): Ditto. + 2009-09-18 Jaroslav Hajek Version 3.2.3 released. diff -cNr octave-3.2.3/liboctave/Makefile.in octave-3.2.4/liboctave/Makefile.in *** octave-3.2.3/liboctave/Makefile.in 2009-05-25 08:04:59.000000000 +0200 --- octave-3.2.4/liboctave/Makefile.in 2010-01-20 12:01:50.000000000 +0100 *************** *** 36,44 **** LINK_DEPS = \ -L../libcruft -L. $(RLD_FLAG) \ ! $(LIBCRUFT) $(CHOLMOD_LIBS) $(UMFPACK_LIBS) $(AMD_LIBS) \ ! $(CAMD_LIBS) $(COLAMD_LIBS) $(CCOLAMD_LIBS) $(CXSPARSE_LIBS) \ ! $(ARPACK_LIBS) $(QRUPDATE_LIBS) $(BLAS_LIBS) $(FFTW_LIBS) $(LIBREADLINE) $(LIBGLOB) $(REGEX_LIBS) $(LIBS) $(FLIBS) MATRIX_INC := Array.h Array2.h Array3.h ArrayN.h DiagArray2.h \ Array-util.h MArray-decl.h MArray-defs.h \ --- 36,45 ---- LINK_DEPS = \ -L../libcruft -L. $(RLD_FLAG) \ ! $(LIBCRUFT) $(CHOLMOD_LIBS) $(UMFPACK_LIBS) $(AMD_LIBS) $(CAMD_LIBS) \ ! $(COLAMD_LIBS) $(CCOLAMD_LIBS) $(CXSPARSE_LIBS) $(ARPACK_LIBS) \ ! $(QRUPDATE_LIBS) $(BLAS_LIBS) $(FFTW_LIBS) $(LIBREADLINE) $(LIBGLOB) \ ! $(REGEX_LIBS) $(LIBS) $(FLIBS) $(PTHREAD_CFLAGS) $(PTHREAD_LIBS) MATRIX_INC := Array.h Array2.h Array3.h ArrayN.h DiagArray2.h \ Array-util.h MArray-decl.h MArray-defs.h \ diff -cNr octave-3.2.3/liboctave/SparseCmplxLU.cc octave-3.2.4/liboctave/SparseCmplxLU.cc *** octave-3.2.3/liboctave/SparseCmplxLU.cc 2009-05-25 08:04:59.000000000 +0200 --- octave-3.2.4/liboctave/SparseCmplxLU.cc 2009-11-24 08:00:32.000000000 +0100 *************** *** 57,63 **** double tmp = octave_sparse_params::get_key ("spumoni"); if (!xisnan (tmp)) Control (UMFPACK_PRL) = tmp; ! if (piv_thres.nelem() != 2) { tmp = (piv_thres (0) > 1. ? 1. : piv_thres (0)); if (!xisnan (tmp)) --- 57,63 ---- double tmp = octave_sparse_params::get_key ("spumoni"); if (!xisnan (tmp)) Control (UMFPACK_PRL) = tmp; ! if (piv_thres.nelem() == 2) { tmp = (piv_thres (0) > 1. ? 1. : piv_thres (0)); if (!xisnan (tmp)) *************** *** 266,272 **** double tmp = octave_sparse_params::get_key ("spumoni"); if (!xisnan (tmp)) Control (UMFPACK_PRL) = tmp; ! if (piv_thres.nelem() != 2) { tmp = (piv_thres (0) > 1. ? 1. : piv_thres (0)); if (!xisnan (tmp)) --- 266,272 ---- double tmp = octave_sparse_params::get_key ("spumoni"); if (!xisnan (tmp)) Control (UMFPACK_PRL) = tmp; ! if (piv_thres.nelem() == 2) { tmp = (piv_thres (0) > 1. ? 1. : piv_thres (0)); if (!xisnan (tmp)) diff -cNr octave-3.2.3/liboctave/SparsedbleLU.cc octave-3.2.4/liboctave/SparsedbleLU.cc *** octave-3.2.3/liboctave/SparsedbleLU.cc 2009-05-25 08:04:59.000000000 +0200 --- octave-3.2.4/liboctave/SparsedbleLU.cc 2009-11-24 08:00:32.000000000 +0100 *************** *** 57,63 **** if (!xisnan (tmp)) Control (UMFPACK_PRL) = tmp; ! if (piv_thres.nelem() != 2) { tmp = (piv_thres (0) > 1. ? 1. : piv_thres (0)); if (!xisnan (tmp)) --- 57,63 ---- if (!xisnan (tmp)) Control (UMFPACK_PRL) = tmp; ! if (piv_thres.nelem() == 2) { tmp = (piv_thres (0) > 1. ? 1. : piv_thres (0)); if (!xisnan (tmp)) *************** *** 253,259 **** if (!xisnan (tmp)) Control (UMFPACK_PRL) = tmp; ! if (piv_thres.nelem() != 2) { tmp = (piv_thres (0) > 1. ? 1. : piv_thres (0)); if (!xisnan (tmp)) --- 253,259 ---- if (!xisnan (tmp)) Control (UMFPACK_PRL) = tmp; ! if (piv_thres.nelem() == 2) { tmp = (piv_thres (0) > 1. ? 1. : piv_thres (0)); if (!xisnan (tmp)) diff -cNr octave-3.2.3/liboctave/str-vec.cc octave-3.2.4/liboctave/str-vec.cc *** octave-3.2.3/liboctave/str-vec.cc 2009-05-25 08:04:59.000000000 +0200 --- octave-3.2.4/liboctave/str-vec.cc 2009-11-25 11:44:58.000000000 +0100 *************** *** 179,184 **** --- 179,192 ---- octave_idx_type max_name_length = 0; octave_idx_type total_names = length (); + if (total_names == 0) + { + // List empty, remember to end output with a newline. + + os << "\n"; + return os; + } + for (octave_idx_type i = 0; i < total_names; i++) { octave_idx_type name_length = elem (i).length (); diff -cNr octave-3.2.3/Makeconf.in octave-3.2.4/Makeconf.in *** octave-3.2.3/Makeconf.in 2009-07-27 06:49:25.000000000 +0200 --- octave-3.2.4/Makeconf.in 2010-01-19 12:13:14.000000000 +0100 *************** *** 155,160 **** --- 155,163 ---- MAGICK_INCFLAGS = $(shell $(MAGICK_CONFIG) --cppflags) MAGICK_LIBS = $(shell $(MAGICK_CONFIG) --libs) + PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ + PTHREAD_LIBS = @PTHREAD_LIBS@ + LIBFLAGS = -L$(TOPDIR) DEFS = @DEFS@ *************** *** 167,173 **** CPICFLAG = @CPICFLAG@ XTRA_CFLAGS = @XTRA_CFLAGS@ WARN_CFLAGS = @WARN_CFLAGS@ ! ALL_CFLAGS = $(INCFLAGS) $(DLL_CDEFS) $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) BUG_CFLAGS = $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) BUILD_CC = @BUILD_CC@ --- 170,176 ---- CPICFLAG = @CPICFLAG@ XTRA_CFLAGS = @XTRA_CFLAGS@ WARN_CFLAGS = @WARN_CFLAGS@ ! ALL_CFLAGS = $(INCFLAGS) $(DLL_CDEFS) $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) $(PTHREAD_CFLAGS) BUG_CFLAGS = $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) BUILD_CC = @BUILD_CC@ *************** *** 190,196 **** XTRA_CXXFLAGS = @XTRA_CXXFLAGS@ WARN_CXXFLAGS = @WARN_CXXFLAGS@ ALL_CXXFLAGS = \ ! $(INCFLAGS) $(DLL_CXXDEFS) $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) BUG_CXXFLAGS = $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) BUILD_CXX = @BUILD_CXX@ --- 193,199 ---- XTRA_CXXFLAGS = @XTRA_CXXFLAGS@ WARN_CXXFLAGS = @WARN_CXXFLAGS@ ALL_CXXFLAGS = \ ! $(INCFLAGS) $(DLL_CXXDEFS) $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) $(PTHREAD_CFLAGS) BUG_CXXFLAGS = $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) BUILD_CXX = @BUILD_CXX@ diff -cNr octave-3.2.3/octMakefile.in octave-3.2.4/octMakefile.in *** octave-3.2.3/octMakefile.in 2009-05-25 08:04:59.000000000 +0200 --- octave-3.2.4/octMakefile.in 2010-01-19 13:45:58.000000000 +0100 *************** *** 37,43 **** CONF_DISTFILES = Makefile octMakefile.in Makeconf.in \ configure configure.in config.guess config.sub aclocal.m4 \ ! acx_blas.m4 acx_lapack.m4 acx_blas_f77_func.m4 \ config.h.in install-sh autogen.sh BUILT_DISTFILES = BUGS INSTALL.OCTAVE --- 37,43 ---- CONF_DISTFILES = Makefile octMakefile.in Makeconf.in \ configure configure.in config.guess config.sub aclocal.m4 \ ! acx_blas.m4 acx_lapack.m4 acx_blas_f77_func.m4 acx_pthread.m4 \ config.h.in install-sh autogen.sh BUILT_DISTFILES = BUGS INSTALL.OCTAVE diff -cNr octave-3.2.3/scripts/audio/wavread.m octave-3.2.4/scripts/audio/wavread.m *** octave-3.2.3/scripts/audio/wavread.m 2009-05-25 08:04:59.000000000 +0200 --- octave-3.2.4/scripts/audio/wavread.m 2009-11-20 10:44:02.000000000 +0100 *************** *** 169,175 **** elseif (size (param, 2) == 4 && char (param) == "size") ## Size of the file is requested. fclose (fid); ! y = [ck_size/channels/(bits_per_sample/8), channels]; return else fclose (fid); --- 169,175 ---- elseif (size (param, 2) == 4 && char (param) == "size") ## Size of the file is requested. fclose (fid); ! y = [data_size/channels/(bits_per_sample/8), channels]; return else fclose (fid); diff -cNr octave-3.2.3/scripts/ChangeLog octave-3.2.4/scripts/ChangeLog *** octave-3.2.3/scripts/ChangeLog 2009-09-14 08:01:42.000000000 +0200 --- octave-3.2.4/scripts/ChangeLog 2010-01-22 10:23:24.000000000 +0100 *************** *** 1,3 **** --- 1,49 ---- + 2010-01-22 Jaroslav Hajek + + Version 3.2.4 released. + + 2009-11-18 Ben Abbott + + * plot/orient.m: Flip papersize and paperposition when orientation + changes. Add support for 'tall' option. Add tests. + + 2009-11-26 David Grundberg + + * linear-algebra/dot.m: Conjugate first argument. + + 2009-11-14 Jaroslav Hajek + + * linear-algebra/expm.m: Fix typo. + + 2009-11-22 Michael Goffioul + + * plot/print.m: Properly set the default ghostscript_binary + under Windows. Modify the search for the ghostscript binary + so that it works for Win32, mingw, Cygwin, and Unix systems. + + 2009-11-08 Petr Mikulik + + * plot/gnuplot_drawnow.m: Support gnuplot's dumb terminal. + + 2009-11-02 Stefan Hepp + + * plot/gnuplot_drawnow.m (gnuplot_default_term): Don't set term to + x11 unless DISPLAY is set. + + 2009-11-11 John W. Eaton + + * plot/stairs.m (__stairs__): Correct nargin check. New demos. + From Jakub Kasse . + + 2009-09-01 Christophe Tournery + + * audio/wavread.m: Rename data_size from obsolete ck_size. + + 2009-07-23 John W. Eaton + + * plot/legend.m: Process arguments in order, child objects in + reverse. Remove special case for single label. New demos. + 2009-09-18 Jaroslav Hajek Version 3.2.3 released. diff -cNr octave-3.2.3/scripts/configure octave-3.2.4/scripts/configure *** octave-3.2.3/scripts/configure 2009-09-14 08:01:46.000000000 +0200 --- octave-3.2.4/scripts/configure 2010-01-19 13:47:16.000000000 +0100 *************** *** 1,61 **** #! /bin/sh # From configure.in . # Guess values for system-dependent variables and create Makefiles. ! # Generated by GNU Autoconf 2.61. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, ! # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ! ## --------------------- ## ! ## M4sh Initialization. ## ! ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh ! if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: ! # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else ! case `(set -o) 2>/dev/null` in ! *posix*) set -o posix ;; esac - fi ! ! ! # PATH needs CR ! # Avoid depending upon Character Ranges. ! as_cr_letters='abcdefghijklmnopqrstuvwxyz' ! as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ! as_cr_Letters=$as_cr_letters$as_cr_LETTERS ! as_cr_digits='0123456789' ! as_cr_alnum=$as_cr_Letters$as_cr_digits ! ! # The user is always right. ! if test "${PATH_SEPARATOR+set}" != set; then ! echo "#! /bin/sh" >conf$$.sh ! echo "exit 0" >>conf$$.sh ! chmod +x conf$$.sh ! if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then ! PATH_SEPARATOR=';' else ! PATH_SEPARATOR=: fi ! rm -f conf$$.sh fi ! # Support unset when possible. ! if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then ! as_unset=unset ! else ! as_unset=false fi --- 1,82 ---- #! /bin/sh # From configure.in . # Guess values for system-dependent variables and create Makefiles. ! # Generated by GNU Autoconf 2.64. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, ! # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software ! # Foundation, Inc. ! # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ! ## -------------------- ## ! ## M4sh Initialization. ## ! ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh ! if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: ! # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else ! case `(set -o) 2>/dev/null` in #( ! *posix*) : ! set -o posix ;; #( ! *) : ! ;; esac fi ! as_nl=' ! ' ! export as_nl ! # Printing a long string crashes Solaris 7 /usr/bin/printf. ! as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ! as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo ! as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo ! # Prefer a ksh shell builtin over an external printf program on Solaris, ! # but without wasting forks for bash or zsh. ! if test -z "$BASH_VERSION$ZSH_VERSION" \ ! && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then ! as_echo='print -r --' ! as_echo_n='print -rn --' ! elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then ! as_echo='printf %s\n' ! as_echo_n='printf %s' ! else ! if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then ! as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' ! as_echo_n='/usr/ucb/echo -n' else ! as_echo_body='eval expr "X$1" : "X\\(.*\\)"' ! as_echo_n_body='eval ! arg=$1; ! case $arg in #( ! *"$as_nl"*) ! expr "X$arg" : "X\\(.*\\)$as_nl"; ! arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; ! esac; ! expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ! ' ! export as_echo_n_body ! as_echo_n='sh -c $as_echo_n_body as_echo' fi ! export as_echo_body ! as_echo='sh -c $as_echo_body as_echo' fi ! # The user is always right. ! if test "${PATH_SEPARATOR+set}" != set; then ! PATH_SEPARATOR=: ! (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { ! (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || ! PATH_SEPARATOR=';' ! } fi *************** *** 64,83 **** # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) - as_nl=' - ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. ! case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ! done IFS=$as_save_IFS ;; --- 85,102 ---- # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. ! case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ! done IFS=$as_save_IFS ;; *************** *** 88,441 **** as_myself=$0 fi if test ! -f "$as_myself"; then ! echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ! { (exit 1); exit 1; } fi ! # Work around bugs in pre-3.0 UWIN ksh. ! for as_var in ENV MAIL MAILPATH ! do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. ! for as_var in \ ! LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ ! LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ ! LC_TELEPHONE LC_TIME ! do ! if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then ! eval $as_var=C; export $as_var ! else ! ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ! fi ! done ! ! # Required to use basename. ! if expr a : '\(a\)' >/dev/null 2>&1 && ! test "X`expr 00001 : '.*\(...\)'`" = X001; then ! as_expr=expr ! else ! as_expr=false ! fi ! ! if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then ! as_basename=basename ! else ! as_basename=false ! fi ! ! ! # Name of the executable. ! as_me=`$as_basename -- "$0" || ! $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ! X"$0" : 'X\(//\)$' \| \ ! X"$0" : 'X\(/\)' \| . 2>/dev/null || ! echo X/"$0" | ! sed '/^.*\/\([^/][^/]*\)\/*$/{ ! s//\1/ ! q ! } ! /^X\/\(\/\/\)$/{ ! s//\1/ ! q ! } ! /^X\/\(\/\).*/{ ! s//\1/ ! q ! } ! s/.*/./; q'` # CDPATH. ! $as_unset CDPATH ! if test "x$CONFIG_SHELL" = x; then ! if (eval ":") 2>/dev/null; then ! as_have_required=yes else ! as_have_required=no fi ! ! if test $as_have_required = yes && (eval ": ! (as_func_return () { ! (exit \$1) ! } ! as_func_success () { ! as_func_return 0 ! } ! as_func_failure () { ! as_func_return 1 ! } ! as_func_ret_success () { ! return 0 ! } ! as_func_ret_failure () { ! return 1 ! } exitcode=0 ! if as_func_success; then ! : ! else ! exitcode=1 ! echo as_func_success failed. ! fi ! ! if as_func_failure; then ! exitcode=1 ! echo as_func_failure succeeded. ! fi - if as_func_ret_success; then - : else ! exitcode=1 ! echo as_func_ret_success failed. ! fi ! ! if as_func_ret_failure; then ! exitcode=1 ! echo as_func_ret_failure succeeded. ! fi ! ! if ( set x; as_func_ret_success y && test x = \"\$1\" ); then ! : else ! exitcode=1 ! echo positional parameters were not saved. fi - test \$exitcode = 0) || { (exit 1); exit 1; } - - ( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } - ") 2> /dev/null; then - : else ! as_candidate_shells= ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! case $as_dir in /*) for as_base in sh bash ksh sh5; do ! as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS ! for as_shell in $as_candidate_shells $SHELL; do ! # Try only shells that exist, to save several forks. ! if { test -f "$as_shell" || test -f "$as_shell.exe"; } && ! { ("$as_shell") 2> /dev/null <<\_ASEOF ! if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ! emulate sh ! NULLCMD=: ! # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ! # is contrary to our usage. Disable this feature. ! alias -g '${1+"$@"}'='"$@"' ! setopt NO_GLOB_SUBST ! else ! case `(set -o) 2>/dev/null` in ! *posix*) set -o posix ;; ! esac ! fi - - - : - _ASEOF - }; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF - if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST - else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; - esac - fi ! ! : ! (as_func_return () { ! (exit $1) ! } ! as_func_success () { ! as_func_return 0 ! } ! as_func_failure () { ! as_func_return 1 ! } ! as_func_ret_success () { ! return 0 ! } ! as_func_ret_failure () { ! return 1 } ! exitcode=0 ! if as_func_success; then ! : ! else ! exitcode=1 ! echo as_func_success failed. ! fi ! if as_func_failure; then ! exitcode=1 ! echo as_func_failure succeeded. ! fi ! if as_func_ret_success; then ! : ! else ! exitcode=1 ! echo as_func_ret_success failed. ! fi - if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. - fi ! if ( set x; as_func_ret_success y && test x = "$1" ); then ! : else ! exitcode=1 ! echo positional parameters were not saved. ! fi ! ! test $exitcode = 0) || { (exit 1); exit 1; } ! ! ( ! as_lineno_1=$LINENO ! as_lineno_2=$LINENO ! test "x$as_lineno_1" != "x$as_lineno_2" && ! test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } ! ! _ASEOF ! }; then ! break ! fi ! ! fi ! ! done ! ! if test "x$CONFIG_SHELL" != x; then ! for as_var in BASH_ENV ENV ! do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ! done ! export CONFIG_SHELL ! exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} ! fi ! ! ! if test $as_have_required = no; then ! echo This script requires a shell more modern than all the ! echo shells that I found on your system. Please install a ! echo modern shell, or manually run the script under such a ! echo shell if you do have one. ! { (exit 1); exit 1; } ! fi ! ! ! fi ! ! fi ! ! (eval "as_func_return () { ! (exit \$1) ! } ! as_func_success () { ! as_func_return 0 ! } ! as_func_failure () { ! as_func_return 1 ! } ! as_func_ret_success () { ! return 0 ! } ! as_func_ret_failure () { ! return 1 ! } ! exitcode=0 ! if as_func_success; then ! : else ! exitcode=1 ! echo as_func_success failed. ! fi ! ! if as_func_failure; then ! exitcode=1 ! echo as_func_failure succeeded. fi ! if as_func_ret_success; then ! : else ! exitcode=1 ! echo as_func_ret_success failed. ! fi ! ! if as_func_ret_failure; then ! exitcode=1 ! echo as_func_ret_failure succeeded. fi ! if ( set x; as_func_ret_success y && test x = \"\$1\" ); then ! : else ! exitcode=1 ! echo positional parameters were not saved. fi ! test \$exitcode = 0") || { ! echo No shell found that supports shell functions. ! echo Please tell autoconf@gnu.org about your system, ! echo including any error possibly output before this ! echo message ! } ! as_lineno_1=$LINENO ! as_lineno_2=$LINENO ! test "x$as_lineno_1" != "x$as_lineno_2" && ! test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { ! ! # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ! # uniformly replaced by the line number. The first 'sed' inserts a ! # line-number line after each line using $LINENO; the second 'sed' ! # does the real work. The second script uses 'N' to pair each ! # line-number line with the line containing $LINENO, and appends ! # trailing '-' during substitution so that $LINENO is not a special ! # case at line end. ! # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ! # scripts with optimization help from Paolo Bonzini. Blame Lee ! # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= --- 107,426 ---- as_myself=$0 fi if test ! -f "$as_myself"; then ! $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ! exit 1 fi ! # Unset variables that we do not need and which cause bugs (e.g. in ! # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" ! # suppresses any "Segmentation fault" message there. '((' could ! # trigger a bug in pdksh 5.2.14. ! for as_var in BASH_ENV ENV MAIL MAILPATH ! do eval test x\${$as_var+set} = xset \ ! && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. ! LC_ALL=C ! export LC_ALL ! LANGUAGE=C ! export LANGUAGE # CDPATH. ! (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then ! as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : ! emulate sh ! NULLCMD=: ! # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which ! # is contrary to our usage. Disable this feature. ! alias -g '\${1+\"\$@\"}'='\"\$@\"' ! setopt NO_GLOB_SUBST else ! case \`(set -o) 2>/dev/null\` in #( ! *posix*) : ! set -o posix ;; #( ! *) : ! ;; ! esac fi ! " ! as_required="as_fn_return () { (exit \$1); } ! as_fn_success () { as_fn_return 0; } ! as_fn_failure () { as_fn_return 1; } ! as_fn_ret_success () { return 0; } ! as_fn_ret_failure () { return 1; } exitcode=0 ! as_fn_success || { exitcode=1; echo as_fn_success failed.; } ! as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } ! as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } ! as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } ! if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else ! exitcode=1; echo positional parameters were not saved. ! fi ! test x\$exitcode = x0 || exit 1" ! as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO ! as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO ! eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && ! test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" ! if (eval "$as_required") 2>/dev/null; then : ! as_have_required=yes else ! as_have_required=no fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else ! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! as_found=: ! case $as_dir in #( /*) for as_base in sh bash ksh sh5; do ! # Try only shells that exist, to save several forks. ! as_shell=$as_dir/$as_base ! if { test -f "$as_shell" || test -f "$as_shell.exe"; } && ! { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : ! CONFIG_SHELL=$as_shell as_have_required=yes ! if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : ! break 2 ! fi ! fi done;; esac + as_found=false done + $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes + fi; } IFS=$as_save_IFS ! if test "x$CONFIG_SHELL" != x; then : ! # We cannot yet assume a decent shell, so we have to provide a ! # neutralization value for shells without unset; and this also ! # works around shells that cannot unset nonexistent variables. ! BASH_ENV=/dev/null ! ENV=/dev/null ! (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV ! export CONFIG_SHELL ! exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} ! fi ! ! if test x$as_have_required = xno; then : ! $as_echo "$0: This script requires a shell more modern than all" ! $as_echo "$0: the shells that I found on your system." ! if test x${ZSH_VERSION+set} = xset ; then ! $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" ! $as_echo "$0: be upgraded to zsh 4.3.4 or later." ! else ! $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, ! $0: including any error possibly output before this ! $0: message. Then install a modern shell, or manually run ! $0: the script under such a shell if you do have one." ! fi ! exit 1 fi fi + fi + SHELL=${CONFIG_SHELL-/bin/sh} + export SHELL + # Unset more variables known to interfere with behavior of common tools. + CLICOLOR_FORCE= GREP_OPTIONS= + unset CLICOLOR_FORCE GREP_OPTIONS ! ## --------------------- ## ! ## M4sh Shell Functions. ## ! ## --------------------- ## ! # as_fn_unset VAR ! # --------------- ! # Portably unset VAR. ! as_fn_unset () ! { ! { eval $1=; unset $1;} } + as_unset=as_fn_unset ! # as_fn_set_status STATUS ! # ----------------------- ! # Set $? to STATUS, without forking. ! as_fn_set_status () ! { ! return $1 ! } # as_fn_set_status ! # as_fn_exit STATUS ! # ----------------- ! # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. ! as_fn_exit () ! { ! set +e ! as_fn_set_status $1 ! exit $1 ! } # as_fn_exit ! ! # as_fn_mkdir_p ! # ------------- ! # Create "$as_dir" as a directory, including parents if necessary. ! as_fn_mkdir_p () ! { ! case $as_dir in #( ! -*) as_dir=./$as_dir;; ! esac ! test -d "$as_dir" || eval $as_mkdir_p || { ! as_dirs= ! while :; do ! case $as_dir in #( ! *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( ! *) as_qdir=$as_dir;; ! esac ! as_dirs="'$as_qdir' $as_dirs" ! as_dir=`$as_dirname -- "$as_dir" || ! $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! X"$as_dir" : 'X\(//\)[^/]' \| \ ! X"$as_dir" : 'X\(//\)$' \| \ ! X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ! $as_echo X"$as_dir" | ! sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ! s//\1/ ! q ! } ! /^X\(\/\/\)[^/].*/{ ! s//\1/ ! q ! } ! /^X\(\/\/\)$/{ ! s//\1/ ! q ! } ! /^X\(\/\).*/{ ! s//\1/ ! q ! } ! s/.*/./; q'` ! test -d "$as_dir" && break ! done ! test -z "$as_dirs" || eval "mkdir $as_dirs" ! } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" ! } # as_fn_mkdir_p ! # as_fn_append VAR VALUE ! # ---------------------- ! # Append the text in VALUE to the end of the definition contained in VAR. Take ! # advantage of any shell optimizations that allow amortized linear growth over ! # repeated appends, instead of the typical quadratic growth present in naive ! # implementations. ! if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : ! eval 'as_fn_append () ! { ! eval $1+=\$2 ! }' else ! as_fn_append () ! { ! eval $1=\$$1\$2 ! } ! fi # as_fn_append ! ! # as_fn_arith ARG... ! # ------------------ ! # Perform arithmetic evaluation on the ARGs, and store the result in the ! # global $as_val. Take advantage of shells that can avoid forks. The arguments ! # must be portable across $(()) and expr. ! if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : ! eval 'as_fn_arith () ! { ! as_val=$(( $* )) ! }' ! else ! as_fn_arith () ! { ! as_val=`expr "$@" || test $? -eq 1` ! } ! fi # as_fn_arith ! # as_fn_error ERROR [LINENO LOG_FD] ! # --------------------------------- ! # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are ! # provided, also output the error to LOG_FD, referencing LINENO. Then exit the ! # script with status $?, using 1 if that was 0. ! as_fn_error () ! { ! as_status=$?; test $as_status -eq 0 && as_status=1 ! if test "$3"; then ! as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 ! fi ! $as_echo "$as_me: error: $1" >&2 ! as_fn_exit $as_status ! } # as_fn_error ! if expr a : '\(a\)' >/dev/null 2>&1 && ! test "X`expr 00001 : '.*\(...\)'`" = X001; then ! as_expr=expr else ! as_expr=false fi ! if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then ! as_basename=basename else ! as_basename=false fi ! if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then ! as_dirname=dirname else ! as_dirname=false fi ! as_me=`$as_basename -- "$0" || ! $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ! X"$0" : 'X\(//\)$' \| \ ! X"$0" : 'X\(/\)' \| . 2>/dev/null || ! $as_echo X/"$0" | ! sed '/^.*\/\([^/][^/]*\)\/*$/{ ! s//\1/ ! q ! } ! /^X\/\(\/\/\)$/{ ! s//\1/ ! q ! } ! /^X\/\(\/\).*/{ ! s//\1/ ! q ! } ! s/.*/./; q'` + # Avoid depending upon Character Ranges. + as_cr_letters='abcdefghijklmnopqrstuvwxyz' + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' + as_cr_Letters=$as_cr_letters$as_cr_LETTERS + as_cr_digits='0123456789' + as_cr_alnum=$as_cr_Letters$as_cr_digits ! as_lineno_1=$LINENO as_lineno_1a=$LINENO ! as_lineno_2=$LINENO as_lineno_2a=$LINENO ! eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && ! test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { ! # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= *************** *** 452,459 **** s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || ! { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 ! { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the --- 437,443 ---- s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || ! { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the *************** *** 463,511 **** exit } - - if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname - else - as_dirname=false - fi - ECHO_C= ECHO_N= ECHO_T= ! case `echo -n x` in -n*) ! case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. ! *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac - if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr - else - as_expr=false - fi - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir ! mkdir conf$$.dir fi ! echo >conf$$.file ! if ln -s conf$$.file conf$$ 2>/dev/null; then ! as_ln_s='ln -s' ! # ... but there are two gotchas: ! # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ! # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ! # In both cases, we have to default to `cp -p'. ! ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' ! elif ln conf$$.file conf$$ 2>/dev/null; then ! as_ln_s=ln else as_ln_s='cp -p' fi --- 447,486 ---- exit } ECHO_C= ECHO_N= ECHO_T= ! case `echo -n x` in #((((( -n*) ! case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. ! xy) ECHO_C='\c';; ! *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ! ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir ! mkdir conf$$.dir 2>/dev/null fi ! if (echo >conf$$.file) 2>/dev/null; then ! if ln -s conf$$.file conf$$ 2>/dev/null; then ! as_ln_s='ln -s' ! # ... but there are two gotchas: ! # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ! # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ! # In both cases, we have to default to `cp -p'. ! ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || ! as_ln_s='cp -p' ! elif ln conf$$.file conf$$ 2>/dev/null; then ! as_ln_s=ln ! else as_ln_s='cp -p' ! fi else as_ln_s='cp -p' fi *************** *** 513,519 **** rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then ! as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false --- 488,494 ---- rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then ! as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false *************** *** 530,541 **** as_test_x=' eval sh -c '\'' if test -d "$1"; then ! test -d "$1/."; else ! case $1 in ! -*)set "./$1";; esac; ! case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' --- 505,516 ---- as_test_x=' eval sh -c '\'' if test -d "$1"; then ! test -d "$1/."; else ! case $1 in #( ! -*)set "./$1";; esac; ! case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' *************** *** 549,555 **** as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - exec 7<&0 &1 # Name of the host. --- 524,529 ---- *************** *** 568,574 **** subdirs= MFLAGS= MAKEFLAGS= - SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= --- 542,547 ---- *************** *** 576,627 **** PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="startup/inputrc" ! ac_subst_vars='SHELL ! PATH_SEPARATOR ! PACKAGE_NAME ! PACKAGE_TARNAME ! PACKAGE_VERSION ! PACKAGE_STRING ! PACKAGE_BUGREPORT ! exec_prefix ! prefix ! program_transform_name ! bindir ! sbindir ! libexecdir ! datarootdir ! datadir ! sysconfdir ! sharedstatedir ! localstatedir ! includedir ! oldincludedir ! docdir ! infodir ! htmldir ! dvidir ! pdfdir ! psdir ! libdir ! localedir ! mandir ! DEFS ! ECHO_C ! ECHO_N ! ECHO_T ! LIBS ! build_alias ! host_alias ! target_alias ! INSTALL_PROGRAM ! INSTALL_SCRIPT ! INSTALL_DATA ! ac_config_files LIBOBJS ! LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias' --- 549,605 ---- PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= + PACKAGE_URL= ac_unique_file="startup/inputrc" ! ac_subst_vars='LTLIBOBJS LIBOBJS ! ac_config_files ! INSTALL_DATA ! INSTALL_SCRIPT ! INSTALL_PROGRAM ! target_alias ! host_alias ! build_alias ! LIBS ! ECHO_T ! ECHO_N ! ECHO_C ! DEFS ! mandir ! localedir ! libdir ! psdir ! pdfdir ! dvidir ! htmldir ! infodir ! docdir ! oldincludedir ! includedir ! localstatedir ! sharedstatedir ! sysconfdir ! datadir ! datarootdir ! libexecdir ! sbindir ! bindir ! program_transform_name ! prefix ! exec_prefix ! PACKAGE_URL ! PACKAGE_BUGREPORT ! PACKAGE_STRING ! PACKAGE_VERSION ! PACKAGE_TARNAME ! PACKAGE_NAME ! PATH_SEPARATOR ! SHELL' ac_subst_files='' + ac_user_opts=' + enable_option_checking + ' ac_precious_vars='build_alias host_alias target_alias' *************** *** 630,635 **** --- 608,615 ---- # Initialize some variables set by options. ac_init_help= ac_init_version=false + ac_unrecognized_opts= + ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null *************** *** 728,740 **** datarootdir=$ac_optarg ;; -disable-* | --disable-*) ! ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && ! { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ! { (exit 1); exit 1; }; } ! ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` ! eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; --- 708,727 ---- datarootdir=$ac_optarg ;; -disable-* | --disable-*) ! ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && ! as_fn_error "invalid feature name: $ac_useropt" ! ac_useropt_orig=$ac_useropt ! ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` ! case $ac_user_opts in ! *" ! "enable_$ac_useropt" ! "*) ;; ! *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ! ac_unrecognized_sep=', ';; ! esac ! eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; *************** *** 747,759 **** dvidir=$ac_optarg ;; -enable-* | --enable-*) ! ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && ! { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ! { (exit 1); exit 1; }; } ! ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` ! eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ --- 734,753 ---- dvidir=$ac_optarg ;; -enable-* | --enable-*) ! ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && ! as_fn_error "invalid feature name: $ac_useropt" ! ac_useropt_orig=$ac_useropt ! ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` ! case $ac_user_opts in ! *" ! "enable_$ac_useropt" ! "*) ;; ! *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ! ac_unrecognized_sep=', ';; ! esac ! eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ *************** *** 944,965 **** ac_init_version=: ;; -with-* | --with-*) ! ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && ! { echo "$as_me: error: invalid package name: $ac_package" >&2 ! { (exit 1); exit 1; }; } ! ac_package=`echo $ac_package | sed 's/[-.]/_/g'` ! eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ! ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && ! { echo "$as_me: error: invalid package name: $ac_package" >&2 ! { (exit 1); exit 1; }; } ! ac_package=`echo $ac_package | sed 's/[-.]/_/g'` ! eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. --- 938,973 ---- ac_init_version=: ;; -with-* | --with-*) ! ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && ! as_fn_error "invalid package name: $ac_useropt" ! ac_useropt_orig=$ac_useropt ! ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` ! case $ac_user_opts in ! *" ! "with_$ac_useropt" ! "*) ;; ! *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ! ac_unrecognized_sep=', ';; ! esac ! eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ! ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. ! expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && ! as_fn_error "invalid package name: $ac_useropt" ! ac_useropt_orig=$ac_useropt ! ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` ! case $ac_user_opts in ! *" ! "with_$ac_useropt" ! "*) ;; ! *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ! ac_unrecognized_sep=', ';; ! esac ! eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. *************** *** 979,1003 **** | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; ! -*) { echo "$as_me: error: unrecognized option: $ac_option ! Try \`$0 --help' for more information." >&2 ! { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. ! expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && ! { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 ! { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. ! echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && ! echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; --- 987,1011 ---- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; ! -*) as_fn_error "unrecognized option: \`$ac_option' ! Try \`$0 --help' for more information." ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. ! case $ac_envvar in #( ! '' | [0-9]* | *[!_$as_cr_alnum]* ) ! as_fn_error "invalid variable name: \`$ac_envvar'" ;; ! esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. ! $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && ! $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; *************** *** 1006,1028 **** if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` ! { echo "$as_me: error: missing argument to $ac_option" >&2 ! { (exit 1); exit 1; }; } fi ! # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac ! { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 ! { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' --- 1014,1049 ---- if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` ! as_fn_error "missing argument to $ac_option" ! fi ! ! if test -n "$ac_unrecognized_opts"; then ! case $enable_option_checking in ! no) ;; ! fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; ! *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; ! esac fi ! # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac ! as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' *************** *** 1036,1042 **** if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe ! echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes --- 1057,1063 ---- if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe ! $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes *************** *** 1052,1074 **** ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || ! { echo "$as_me: error: Working directory cannot be determined" >&2 ! { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || ! { echo "$as_me: error: pwd does not report name of working directory" >&2 ! { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ! ac_confdir=`$as_dirname -- "$0" || ! $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! X"$0" : 'X\(//\)[^/]' \| \ ! X"$0" : 'X\(//\)$' \| \ ! X"$0" : 'X\(/\)' \| . 2>/dev/null || ! echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q --- 1073,1093 ---- ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || ! as_fn_error "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || ! as_fn_error "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ! ac_confdir=`$as_dirname -- "$as_myself" || ! $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! X"$as_myself" : 'X\(//\)[^/]' \| \ ! X"$as_myself" : 'X\(//\)$' \| \ ! X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || ! $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q *************** *** 1095,1107 **** fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." ! { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 ! { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( ! cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 ! { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then --- 1114,1124 ---- fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." ! as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( ! cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then *************** *** 1149,1157 **** Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX ! [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX ! [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify --- 1166,1174 ---- Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX ! [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX ! [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify *************** *** 1161,1185 **** For better control, use the options below. Fine tuning of the installation directories: ! --bindir=DIR user executables [EPREFIX/bin] ! --sbindir=DIR system admin executables [EPREFIX/sbin] ! --libexecdir=DIR program executables [EPREFIX/libexec] ! --sysconfdir=DIR read-only single-machine data [PREFIX/etc] ! --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] ! --localstatedir=DIR modifiable single-machine data [PREFIX/var] ! --libdir=DIR object code libraries [EPREFIX/lib] ! --includedir=DIR C header files [PREFIX/include] ! --oldincludedir=DIR C header files for non-gcc [/usr/include] ! --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] ! --datadir=DIR read-only architecture-independent data [DATAROOTDIR] ! --infodir=DIR info documentation [DATAROOTDIR/info] ! --localedir=DIR locale-dependent data [DATAROOTDIR/locale] ! --mandir=DIR man documentation [DATAROOTDIR/man] ! --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] ! --htmldir=DIR html documentation [DOCDIR] ! --dvidir=DIR dvi documentation [DOCDIR] ! --pdfdir=DIR pdf documentation [DOCDIR] ! --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF --- 1178,1202 ---- For better control, use the options below. Fine tuning of the installation directories: ! --bindir=DIR user executables [EPREFIX/bin] ! --sbindir=DIR system admin executables [EPREFIX/sbin] ! --libexecdir=DIR program executables [EPREFIX/libexec] ! --sysconfdir=DIR read-only single-machine data [PREFIX/etc] ! --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] ! --localstatedir=DIR modifiable single-machine data [PREFIX/var] ! --libdir=DIR object code libraries [EPREFIX/lib] ! --includedir=DIR C header files [PREFIX/include] ! --oldincludedir=DIR C header files for non-gcc [/usr/include] ! --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] ! --datadir=DIR read-only architecture-independent data [DATAROOTDIR] ! --infodir=DIR info documentation [DATAROOTDIR/info] ! --localedir=DIR locale-dependent data [DATAROOTDIR/locale] ! --mandir=DIR man documentation [DATAROOTDIR/man] ! --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] ! --htmldir=DIR html documentation [DOCDIR] ! --dvidir=DIR dvi documentation [DOCDIR] ! --pdfdir=DIR pdf documentation [DOCDIR] ! --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF *************** *** 1190,1195 **** --- 1207,1213 ---- cat <<\_ACEOF + Report bugs to the package provider. _ACEOF ac_status=$? fi *************** *** 1197,1211 **** if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue ! test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ! ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ! ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; --- 1215,1231 ---- if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue ! test -d "$ac_dir" || ! { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || ! continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ! ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ! ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; *************** *** 1241,1247 **** echo && $SHELL "$ac_srcdir/configure" --help=recursive else ! echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done --- 1261,1267 ---- echo && $SHELL "$ac_srcdir/configure" --help=recursive else ! $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done *************** *** 1251,1271 **** if $ac_init_version; then cat <<\_ACEOF configure ! generated by GNU Autoconf 2.61 ! Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, ! 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was ! generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ --- 1271,1294 ---- if $ac_init_version; then cat <<\_ACEOF configure ! generated by GNU Autoconf 2.64 ! Copyright (C) 2009 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi + + ## ------------------------ ## + ## Autoconf initialization. ## + ## ------------------------ ## cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was ! generated by GNU Autoconf 2.64. Invocation command line was $ $0 $@ *************** *** 1301,1308 **** do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! echo "PATH: $as_dir" ! done IFS=$as_save_IFS } >&5 --- 1324,1331 ---- do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! $as_echo "PATH: $as_dir" ! done IFS=$as_save_IFS } >&5 *************** *** 1336,1347 **** | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ! ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in ! 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ! ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else --- 1359,1370 ---- | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ! ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in ! 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) ! as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else *************** *** 1357,1369 **** -* ) ac_must_keep_next=true ;; esac fi ! ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done ! $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } ! $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there --- 1380,1392 ---- -* ) ac_must_keep_next=true ;; esac fi ! as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done ! { ac_configure_args0=; unset ac_configure_args0;} ! { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there *************** *** 1388,1399 **** case $ac_val in #( *${as_nl}*) case $ac_var in #( ! *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ! echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( ! *) $as_unset $ac_var ;; esac ;; esac done --- 1411,1423 ---- case $ac_val in #( *${as_nl}*) case $ac_var in #( ! *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 ! $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( ! BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( ! *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done *************** *** 1422,1430 **** do eval ac_val=\$$ac_var case $ac_val in ! *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac ! echo "$ac_var='\''$ac_val'\''" done | sort echo --- 1446,1454 ---- do eval ac_val=\$$ac_var case $ac_val in ! *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac ! $as_echo "$ac_var='\''$ac_val'\''" done | sort echo *************** *** 1439,1447 **** do eval ac_val=\$$ac_var case $ac_val in ! *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac ! echo "$ac_var='\''$ac_val'\''" done | sort echo fi --- 1463,1471 ---- do eval ac_val=\$$ac_var case $ac_val in ! *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac ! $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi *************** *** 1457,1520 **** echo fi test "$ac_signal" != 0 && ! echo "$as_me: caught signal $ac_signal" ! echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do ! trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. ! # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then ! set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then ! set x "$prefix/share/config.site" "$prefix/etc/config.site" else ! set x "$ac_default_prefix/share/config.site" \ ! "$ac_default_prefix/etc/config.site" fi ! shift ! for ac_site_file do if test -r "$ac_site_file"; then ! { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 ! echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi --- 1481,1549 ---- echo fi test "$ac_signal" != 0 && ! $as_echo "$as_me: caught signal $ac_signal" ! $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do ! trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h + $as_echo "/* confdefs.h */" > confdefs.h + # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF + cat >>confdefs.h <<_ACEOF + #define PACKAGE_URL "$PACKAGE_URL" + _ACEOF + # Let the site file select an alternate cache file if it wants to. ! # Prefer an explicitly selected file to automatically selected ones. ! ac_site_file1=NONE ! ac_site_file2=NONE if test -n "$CONFIG_SITE"; then ! ac_site_file1=$CONFIG_SITE elif test "x$prefix" != xNONE; then ! ac_site_file1=$prefix/share/config.site ! ac_site_file2=$prefix/etc/config.site else ! ac_site_file1=$ac_default_prefix/share/config.site ! ac_site_file2=$ac_default_prefix/etc/config.site fi ! for ac_site_file in "$ac_site_file1" "$ac_site_file2" do + test "x$ac_site_file" = xNONE && continue if test -r "$ac_site_file"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 ! $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi *************** *** 1524,1539 **** # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then ! { echo "$as_me:$LINENO: loading cache $cache_file" >&5 ! echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else ! { echo "$as_me:$LINENO: creating cache $cache_file" >&5 ! echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi --- 1553,1568 ---- # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 ! $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else ! { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 ! $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi *************** *** 1547,1606 **** eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) ! { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 ! echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) ! { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 ! echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then ! { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 ! echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ! { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 ! echo "$as_me: former value: $ac_old_val" >&2;} ! { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 ! echo "$as_me: current value: $ac_new_val" >&2;} ! ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in ! *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. ! *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then ! { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 ! echo "$as_me: error: changes in the environment can compromise the build" >&2;} ! { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 ! echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} ! { (exit 1); exit 1; }; } ! fi ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ac_ext=c ac_cpp='$CPP $CPPFLAGS' --- 1576,1631 ---- eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) ! { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 ! $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) ! { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 ! $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then ! # differences in whitespace do not lead to failure. ! ac_old_val_w=`echo x $ac_old_val` ! ac_new_val_w=`echo x $ac_new_val` ! if test "$ac_old_val_w" != "$ac_new_val_w"; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 ! $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ! ac_cache_corrupted=: ! else ! { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 ! $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} ! eval $ac_var=\$ac_old_val ! fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 ! $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 ! $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in ! *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. ! *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 ! $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} ! as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 ! fi ! ## -------------------- ## ! ## Main body of script. ## ! ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' *************** *** 1615,1638 **** ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do ! if test -f "$ac_dir/install-sh"; then ! ac_aux_dir=$ac_dir ! ac_install_sh="$ac_aux_dir/install-sh -c" ! break ! elif test -f "$ac_dir/install.sh"; then ! ac_aux_dir=$ac_dir ! ac_install_sh="$ac_aux_dir/install.sh -c" ! break ! elif test -f "$ac_dir/shtool"; then ! ac_aux_dir=$ac_dir ! ac_install_sh="$ac_aux_dir/shtool install -c" ! break ! fi done if test -z "$ac_aux_dir"; then ! { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 ! echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} ! { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, --- 1640,1655 ---- ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do ! for ac_t in install-sh install.sh shtool; do ! if test -f "$ac_dir/$ac_t"; then ! ac_aux_dir=$ac_dir ! ac_install_sh="$ac_aux_dir/$ac_t -c" ! break 2 ! fi ! done done if test -z "$ac_aux_dir"; then ! as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, *************** *** 1657,1678 **** # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. ! { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 ! echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then ! if test "${ac_cv_path_install+set}" = set; then ! echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! # Account for people who put trailing slashes in PATH elements. ! case $as_dir/ in ! ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ! ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. --- 1674,1696 ---- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. ! # Reject install programs that cannot install multiple files. ! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 ! $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then ! if test "${ac_cv_path_install+set}" = set; then : ! $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! # Account for people who put trailing slashes in PATH elements. ! case $as_dir/ in #(( ! ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ! ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. *************** *** 1690,1706 **** # program-specific install script used by HP pwplus--don't use. : else ! ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" ! break 3 fi fi done done ;; esac ! done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then --- 1708,1736 ---- # program-specific install script used by HP pwplus--don't use. : else ! rm -rf conftest.one conftest.two conftest.dir ! echo one > conftest.one ! echo two > conftest.two ! mkdir conftest.dir ! if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && ! test -s conftest.one && test -s conftest.two && ! test -s conftest.dir/conftest.one && ! test -s conftest.dir/conftest.two ! then ! ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" ! break 3 ! fi fi fi done done ;; esac ! ! done IFS=$as_save_IFS + rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then *************** *** 1713,1720 **** INSTALL=$ac_install_sh fi fi ! { echo "$as_me:$LINENO: result: $INSTALL" >&5 ! echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. --- 1743,1750 ---- INSTALL=$ac_install_sh fi fi ! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 ! $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. *************** *** 1755,1766 **** case $ac_val in #( *${as_nl}*) case $ac_var in #( ! *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ! echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( ! *) $as_unset $ac_var ;; esac ;; esac done --- 1785,1797 ---- case $ac_val in #( *${as_nl}*) case $ac_var in #( ! *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 ! $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( ! BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( ! *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done *************** *** 1768,1775 **** (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) ! # `set' does not quote correctly, so add quotes (double-quote ! # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" --- 1799,1806 ---- (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) ! # `set' does not quote correctly, so add quotes: double-quote ! # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" *************** *** 1792,1803 **** if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && ! { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ! echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else ! { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ! echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache --- 1823,1834 ---- if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && ! { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 ! $as_echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else ! { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 ! $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache *************** *** 1814,1819 **** --- 1845,1856 ---- # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' + :mline + /\\$/{ + N + s,\\\n,, + b mline + } t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g *************** *** 1843,1853 **** for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ! ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ! ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ! ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs --- 1880,1890 ---- for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ! ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ! as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" ! as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs *************** *** 1856,1866 **** : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" ! { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 ! echo "$as_me: creating $CONFIG_STATUS" >&6;} ! cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. --- 1893,1905 ---- : ${CONFIG_STATUS=./config.status} + ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" ! { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 ! $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} ! as_write_fail=0 ! cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. *************** *** 1870,1928 **** debug=false ac_cs_recheck=false ac_cs_silent=false - SHELL=\${CONFIG_SHELL-$SHELL} - _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF ! ## --------------------- ## ! ## M4sh Initialization. ## ! ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh ! if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: ! # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else ! case `(set -o) 2>/dev/null` in ! *posix*) set -o posix ;; esac - fi ! ! ! # PATH needs CR ! # Avoid depending upon Character Ranges. ! as_cr_letters='abcdefghijklmnopqrstuvwxyz' ! as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ! as_cr_Letters=$as_cr_letters$as_cr_LETTERS ! as_cr_digits='0123456789' ! as_cr_alnum=$as_cr_Letters$as_cr_digits ! ! # The user is always right. ! if test "${PATH_SEPARATOR+set}" != set; then ! echo "#! /bin/sh" >conf$$.sh ! echo "exit 0" >>conf$$.sh ! chmod +x conf$$.sh ! if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then ! PATH_SEPARATOR=';' else ! PATH_SEPARATOR=: fi ! rm -f conf$$.sh fi ! # Support unset when possible. ! if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then ! as_unset=unset ! else ! as_unset=false fi --- 1909,1987 ---- debug=false ac_cs_recheck=false ac_cs_silent=false ! SHELL=\${CONFIG_SHELL-$SHELL} ! export SHELL ! _ASEOF ! cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ! ## -------------------- ## ! ## M4sh Initialization. ## ! ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh ! if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: ! # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else ! case `(set -o) 2>/dev/null` in #( ! *posix*) : ! set -o posix ;; #( ! *) : ! ;; esac fi ! as_nl=' ! ' ! export as_nl ! # Printing a long string crashes Solaris 7 /usr/bin/printf. ! as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ! as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo ! as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo ! # Prefer a ksh shell builtin over an external printf program on Solaris, ! # but without wasting forks for bash or zsh. ! if test -z "$BASH_VERSION$ZSH_VERSION" \ ! && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then ! as_echo='print -r --' ! as_echo_n='print -rn --' ! elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then ! as_echo='printf %s\n' ! as_echo_n='printf %s' ! else ! if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then ! as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' ! as_echo_n='/usr/ucb/echo -n' else ! as_echo_body='eval expr "X$1" : "X\\(.*\\)"' ! as_echo_n_body='eval ! arg=$1; ! case $arg in #( ! *"$as_nl"*) ! expr "X$arg" : "X\\(.*\\)$as_nl"; ! arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; ! esac; ! expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ! ' ! export as_echo_n_body ! as_echo_n='sh -c $as_echo_n_body as_echo' fi ! export as_echo_body ! as_echo='sh -c $as_echo_body as_echo' fi ! # The user is always right. ! if test "${PATH_SEPARATOR+set}" != set; then ! PATH_SEPARATOR=: ! (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { ! (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || ! PATH_SEPARATOR=';' ! } fi *************** *** 1931,1950 **** # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) - as_nl=' - ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. ! case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ! done IFS=$as_save_IFS ;; --- 1990,2007 ---- # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. ! case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. ! test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ! done IFS=$as_save_IFS ;; *************** *** 1955,1986 **** as_myself=$0 fi if test ! -f "$as_myself"; then ! echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ! { (exit 1); exit 1; } fi ! # Work around bugs in pre-3.0 UWIN ksh. ! for as_var in ENV MAIL MAILPATH ! do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. ! for as_var in \ ! LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ ! LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ ! LC_TELEPHONE LC_TIME ! do ! if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then ! eval $as_var=C; export $as_var ! else ! ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi ! done - # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr --- 2012,2122 ---- as_myself=$0 fi if test ! -f "$as_myself"; then ! $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ! exit 1 fi ! # Unset variables that we do not need and which cause bugs (e.g. in ! # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" ! # suppresses any "Segmentation fault" message there. '((' could ! # trigger a bug in pdksh 5.2.14. ! for as_var in BASH_ENV ENV MAIL MAILPATH ! do eval test x\${$as_var+set} = xset \ ! && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. ! LC_ALL=C ! export LC_ALL ! LANGUAGE=C ! export LANGUAGE ! ! # CDPATH. ! (unset CDPATH) >/dev/null 2>&1 && unset CDPATH ! ! ! # as_fn_error ERROR [LINENO LOG_FD] ! # --------------------------------- ! # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are ! # provided, also output the error to LOG_FD, referencing LINENO. Then exit the ! # script with status $?, using 1 if that was 0. ! as_fn_error () ! { ! as_status=$?; test $as_status -eq 0 && as_status=1 ! if test "$3"; then ! as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack ! $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 fi ! $as_echo "$as_me: error: $1" >&2 ! as_fn_exit $as_status ! } # as_fn_error ! ! ! # as_fn_set_status STATUS ! # ----------------------- ! # Set $? to STATUS, without forking. ! as_fn_set_status () ! { ! return $1 ! } # as_fn_set_status ! ! # as_fn_exit STATUS ! # ----------------- ! # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. ! as_fn_exit () ! { ! set +e ! as_fn_set_status $1 ! exit $1 ! } # as_fn_exit ! ! # as_fn_unset VAR ! # --------------- ! # Portably unset VAR. ! as_fn_unset () ! { ! { eval $1=; unset $1;} ! } ! as_unset=as_fn_unset ! # as_fn_append VAR VALUE ! # ---------------------- ! # Append the text in VALUE to the end of the definition contained in VAR. Take ! # advantage of any shell optimizations that allow amortized linear growth over ! # repeated appends, instead of the typical quadratic growth present in naive ! # implementations. ! if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : ! eval 'as_fn_append () ! { ! eval $1+=\$2 ! }' ! else ! as_fn_append () ! { ! eval $1=\$$1\$2 ! } ! fi # as_fn_append ! ! # as_fn_arith ARG... ! # ------------------ ! # Perform arithmetic evaluation on the ARGs, and store the result in the ! # global $as_val. Take advantage of shells that can avoid forks. The arguments ! # must be portable across $(()) and expr. ! if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : ! eval 'as_fn_arith () ! { ! as_val=$(( $* )) ! }' ! else ! as_fn_arith () ! { ! as_val=`expr "$@" || test $? -eq 1` ! } ! fi # as_fn_arith ! if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr *************** *** 1994,2006 **** as_basename=false fi - # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || ! echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q --- 2130,2146 ---- as_basename=false fi + if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname + else + as_dirname=false + fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || ! $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q *************** *** 2015,2118 **** } s/.*/./; q'` ! # CDPATH. ! $as_unset CDPATH ! ! ! ! as_lineno_1=$LINENO ! as_lineno_2=$LINENO ! test "x$as_lineno_1" != "x$as_lineno_2" && ! test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { ! ! # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ! # uniformly replaced by the line number. The first 'sed' inserts a ! # line-number line after each line using $LINENO; the second 'sed' ! # does the real work. The second script uses 'N' to pair each ! # line-number line with the line containing $LINENO, and appends ! # trailing '-' during substitution so that $LINENO is not a special ! # case at line end. ! # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ! # scripts with optimization help from Paolo Bonzini. Blame Lee ! # E. McMahon (1931-1989) for sed's syntax. :-) ! sed -n ' ! p ! /[$]LINENO/= ! ' <$as_myself | ! sed ' ! s/[$]LINENO.*/&-/ ! t lineno ! b ! :lineno ! N ! :loop ! s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ ! t loop ! s/-\n.*// ! ' >$as_me.lineno && ! chmod +x "$as_me.lineno" || ! { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 ! { (exit 1); exit 1; }; } ! ! # Don't try to exec as it changes $[0], causing all sort of problems ! # (the dirname of $[0] is not the place where we might find the ! # original and so on. Autoconf is especially sensitive to this). ! . "./$as_me.lineno" ! # Exit status is that of the last command. ! exit ! } ! ! ! if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then ! as_dirname=dirname ! else ! as_dirname=false ! fi ECHO_C= ECHO_N= ECHO_T= ! case `echo -n x` in -n*) ! case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. ! *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac - if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr - else - as_expr=false - fi - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir ! mkdir conf$$.dir fi ! echo >conf$$.file ! if ln -s conf$$.file conf$$ 2>/dev/null; then ! as_ln_s='ln -s' ! # ... but there are two gotchas: ! # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ! # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ! # In both cases, we have to default to `cp -p'. ! ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' ! elif ln conf$$.file conf$$ 2>/dev/null; then ! as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then ! as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false --- 2155,2257 ---- } s/.*/./; q'` ! # Avoid depending upon Character Ranges. ! as_cr_letters='abcdefghijklmnopqrstuvwxyz' ! as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ! as_cr_Letters=$as_cr_letters$as_cr_LETTERS ! as_cr_digits='0123456789' ! as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= ! case `echo -n x` in #((((( -n*) ! case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. ! xy) ECHO_C='\c';; ! *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ! ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir ! mkdir conf$$.dir 2>/dev/null fi ! if (echo >conf$$.file) 2>/dev/null; then ! if ln -s conf$$.file conf$$ 2>/dev/null; then ! as_ln_s='ln -s' ! # ... but there are two gotchas: ! # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ! # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ! # In both cases, we have to default to `cp -p'. ! ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || ! as_ln_s='cp -p' ! elif ln conf$$.file conf$$ 2>/dev/null; then ! as_ln_s=ln ! else as_ln_s='cp -p' ! fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null + + # as_fn_mkdir_p + # ------------- + # Create "$as_dir" as a directory, including parents if necessary. + as_fn_mkdir_p () + { + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || + $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || + $as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + + } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then ! as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false *************** *** 2129,2140 **** as_test_x=' eval sh -c '\'' if test -d "$1"; then ! test -d "$1/."; else ! case $1 in ! -*)set "./$1";; esac; ! case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' --- 2268,2279 ---- as_test_x=' eval sh -c '\'' if test -d "$1"; then ! test -d "$1/."; else ! case $1 in #( ! -*)set "./$1";; esac; ! case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' *************** *** 2149,2161 **** exec 6>&1 ! # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was ! generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS --- 2288,2306 ---- exec 6>&1 + ## ----------------------------------- ## + ## Main body of $CONFIG_STATUS script. ## + ## ----------------------------------- ## + _ASEOF + test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ! # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was ! generated by GNU Autoconf 2.64. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS *************** *** 2168,2218 **** _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ ! \`$as_me' instantiates files from templates according to the ! current configuration. ! Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit ! -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions ! --file=FILE[:TEMPLATE] ! instantiate the configuration file FILE Configuration files: $config_files ! Report bugs to ." _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status ! configured by $0, generated by GNU Autoconf 2.61, ! with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" ! Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF ! # If no file are specified by the user, then we need to provide default ! # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do --- 2313,2371 ---- _ACEOF ! case $ac_config_files in *" ! "*) set x $ac_config_files; shift; ac_config_files=$*;; ! esac ! ! ! ! cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ ! \`$as_me' instantiates files and other configuration actions ! from templates according to the current configuration. Unless the files ! and actions are specified as TAGs, all are instantiated by default. ! Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit ! -q, --quiet, --silent ! do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions ! --file=FILE[:TEMPLATE] ! instantiate the configuration file FILE Configuration files: $config_files ! Report bugs to the package provider." _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_version="\\ config.status ! configured by $0, generated by GNU Autoconf 2.64, ! with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" ! Copyright (C) 2009 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' + test -n "\$AWK" || AWK=awk _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ! # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do *************** *** 2234,2258 **** -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) ! echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift ! CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) ! echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. ! -*) { echo "$as_me: error: unrecognized option: $1 ! Try \`$0 --help' for more information." >&2 ! { (exit 1); exit 1; }; } ;; ! *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac --- 2387,2413 ---- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) ! $as_echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift ! case $ac_optarg in ! *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; ! esac ! as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) ! $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. ! -*) as_fn_error "unrecognized option: \`$1' ! Try \`$0 --help' for more information." ;; ! *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac *************** *** 2267,2296 **** fi _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then ! echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 ! CONFIG_SHELL=$SHELL export CONFIG_SHELL ! exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX ! echo "$ac_log" } >&5 _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets --- 2422,2453 ---- fi _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then ! set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion ! shift ! \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 ! CONFIG_SHELL='$SHELL' export CONFIG_SHELL ! exec "\$@" fi _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX ! $as_echo "$ac_log" } >&5 _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets *************** *** 2327,2335 **** "time/Makefile") CONFIG_FILES="$CONFIG_FILES time/Makefile" ;; "testfun/Makefile") CONFIG_FILES="$CONFIG_FILES testfun/Makefile" ;; ! *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 ! echo "$as_me: error: invalid argument: $ac_config_target" >&2;} ! { (exit 1); exit 1; }; };; esac done --- 2484,2490 ---- "time/Makefile") CONFIG_FILES="$CONFIG_FILES time/Makefile" ;; "testfun/Makefile") CONFIG_FILES="$CONFIG_FILES testfun/Makefile" ;; ! *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done *************** *** 2354,2360 **** trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 ! trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. --- 2509,2515 ---- trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 ! trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. *************** *** 2365,2473 **** { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") ! } || ! { ! echo "$me: cannot create a temporary directory in ." >&2 ! { (exit 1); exit 1; } ! } ! ! # ! # Set up the sed scripts for CONFIG_FILES section. ! # ! # No need to generate the scripts if there are no CONFIG_FILES. ! # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then - _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do ! cat >conf$$subs.sed <<_ACEOF ! SHELL!$SHELL$ac_delim ! PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim ! PACKAGE_NAME!$PACKAGE_NAME$ac_delim ! PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim ! PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim ! PACKAGE_STRING!$PACKAGE_STRING$ac_delim ! PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim ! exec_prefix!$exec_prefix$ac_delim ! prefix!$prefix$ac_delim ! program_transform_name!$program_transform_name$ac_delim ! bindir!$bindir$ac_delim ! sbindir!$sbindir$ac_delim ! libexecdir!$libexecdir$ac_delim ! datarootdir!$datarootdir$ac_delim ! datadir!$datadir$ac_delim ! sysconfdir!$sysconfdir$ac_delim ! sharedstatedir!$sharedstatedir$ac_delim ! localstatedir!$localstatedir$ac_delim ! includedir!$includedir$ac_delim ! oldincludedir!$oldincludedir$ac_delim ! docdir!$docdir$ac_delim ! infodir!$infodir$ac_delim ! htmldir!$htmldir$ac_delim ! dvidir!$dvidir$ac_delim ! pdfdir!$pdfdir$ac_delim ! psdir!$psdir$ac_delim ! libdir!$libdir$ac_delim ! localedir!$localedir$ac_delim ! mandir!$mandir$ac_delim ! DEFS!$DEFS$ac_delim ! ECHO_C!$ECHO_C$ac_delim ! ECHO_N!$ECHO_N$ac_delim ! ECHO_T!$ECHO_T$ac_delim ! LIBS!$LIBS$ac_delim ! build_alias!$build_alias$ac_delim ! host_alias!$host_alias$ac_delim ! target_alias!$target_alias$ac_delim ! INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim ! INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim ! INSTALL_DATA!$INSTALL_DATA$ac_delim ! ac_config_files!$ac_config_files$ac_delim ! LIBOBJS!$LIBOBJS$ac_delim ! LTLIBOBJS!$LTLIBOBJS$ac_delim ! _ACEOF ! if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 43; then break elif $ac_last_try; then ! { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ! echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ! { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ! ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ! if test -n "$ac_eof"; then ! ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ! ac_eof=`expr $ac_eof + 1` ! fi ! ! cat >>$CONFIG_STATUS <<_ACEOF ! cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof ! /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end ! _ACEOF ! sed ' ! s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ! s/^/s,@/; s/!/@,|#_!!_#|/ ! :n ! t n ! s/'"$ac_delim"'$/,g/; t ! s/$/\\/; p ! N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ! ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ! :end ! s/|#_!!_#|//g ! CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and --- 2520,2658 ---- { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") ! } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 ! # Set up the scripts for CONFIG_FILES section. ! # No need to generate them if there are no CONFIG_FILES. ! # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then + ac_cr=`echo X | tr X '\015'` + # On cygwin, bash can eat \r inside `` if the user requested igncr. + # But we know of no other shell where ac_cr would be empty at this + # point, so we can use a bashism as a fallback. + if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' + fi + ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` + if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\r' + else + ac_cs_awk_cr=$ac_cr + fi + + echo 'BEGIN {' >"$tmp/subs1.awk" && + _ACEOF + { + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" + } >conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 + ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do ! . ./conf$$subs.sh || ! as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 ! ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` ! if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then ! as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done + rm -f conf$$subs.sh ! cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ! cat >>"\$tmp/subs1.awk" <<\\_ACAWK && _ACEOF + sed -n ' + h + s/^/S["/; s/!.*/"]=/ + p + g + s/^[^!]*!// + :repl + t repl + s/'"$ac_delim"'$// + t delim + :nl + h + s/\(.\{148\}\).*/\1/ + t more1 + s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ + p + n + b repl + :more1 + s/["\\]/\\&/g; s/^/"/; s/$/"\\/ + p + g + s/.\{148\}// + t nl + :delim + h + s/\(.\{148\}\).*/\1/ + t more2 + s/["\\]/\\&/g; s/^/"/; s/$/"/ + p + b + :more2 + s/["\\]/\\&/g; s/^/"/; s/$/"\\/ + p + g + s/.\{148\}// + t delim + ' >$CONFIG_STATUS || ac_write_fail=1 + rm -f conf$$subs.awk + cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + _ACAWK + cat >>"\$tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + } + { + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line + } + + _ACAWK + _ACEOF + cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" + else + cat + fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ + || as_fn_error "could not setup config files machinery" "$LINENO" 5 + _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and *************** *** 2484,2503 **** }' fi ! cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" ! for ac_tag in :F $CONFIG_FILES do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; ! :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 ! echo "$as_me: error: Invalid tag $ac_tag." >&2;} ! { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac --- 2669,2688 ---- }' fi ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" ! eval set X " :F $CONFIG_FILES " ! shift ! for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; ! :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac *************** *** 2525,2550 **** [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || ! { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 ! echo "$as_me: error: cannot find input file: $ac_f" >&2;} ! { (exit 1); exit 1; }; };; esac ! ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ ! configure_input="Generated from "`IFS=: ! echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" ! { echo "$as_me:$LINENO: creating $ac_file" >&5 ! echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in ! *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac --- 2710,2743 ---- [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || ! as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac ! case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac ! as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ ! configure_input='Generated from '` ! $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' ! `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" ! { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 ! $as_echo "$as_me: creating $ac_file" >&6;} fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac case $ac_tag in ! *:-:* | *:-) cat >"$tmp/stdin" \ ! || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac *************** *** 2554,2595 **** X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || ! echo X"$ac_file" | ! sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ! s//\1/ ! q ! } ! /^X\(\/\/\)[^/].*/{ ! s//\1/ ! q ! } ! /^X\(\/\/\)$/{ ! s//\1/ ! q ! } ! /^X\(\/\).*/{ ! s//\1/ ! q ! } ! s/.*/./; q'` ! { as_dir="$ac_dir" ! case $as_dir in #( ! -*) as_dir=./$as_dir;; ! esac ! test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ! as_dirs= ! while :; do ! case $as_dir in #( ! *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ! *) as_qdir=$as_dir;; ! esac ! as_dirs="'$as_qdir' $as_dirs" ! as_dir=`$as_dirname -- "$as_dir" || ! $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! X"$as_dir" : 'X\(//\)[^/]' \| \ ! X"$as_dir" : 'X\(//\)$' \| \ ! X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ! echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q --- 2747,2753 ---- X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || ! $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q *************** *** 2607,2626 **** q } s/.*/./; q'` ! test -d "$as_dir" && break ! done ! test -z "$as_dirs" || eval "mkdir $as_dirs" ! } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ! echo "$as_me: error: cannot create directory $as_dir" >&2;} ! { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ! ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ! ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; --- 2765,2779 ---- q } s/.*/./; q'` ! as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ! ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ! ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; *************** *** 2660,2671 **** esac _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ! ! case `sed -n '/datarootdir/ { p q } --- 2813,2824 ---- esac _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ! ac_sed_dataroot=' ! /datarootdir/ { p q } *************** *** 2673,2708 **** /@docdir@/p /@infodir@/p /@localedir@/p ! /@mandir@/p ! ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) ! { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 ! echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g ! s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? ! cat >>$CONFIG_STATUS <<_ACEOF ! sed "$ac_vpsub $extrasub _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b ! s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t --- 2826,2862 ---- /@docdir@/p /@infodir@/p /@localedir@/p ! /@mandir@/p' ! case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 ! $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF ! cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g ! s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? ! cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ! ac_sed_extra="$ac_vpsub $extrasub _ACEOF ! cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b ! s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t + s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t *************** *** 2712,2732 **** s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack ! " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && ! { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 ! echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in ! -) cat "$tmp/out"; rm -f "$tmp/out";; ! *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; ! esac ;; --- 2866,2889 ---- s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack ! " ! eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ ! || as_fn_error "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 ! $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in ! -) cat "$tmp/out" && rm -f "$tmp/out";; ! *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; ! esac \ ! || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; *************** *** 2736,2746 **** done # for ac_tag ! { (exit 0); exit 0; } _ACEOF - chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. --- 2893,2905 ---- done # for ac_tag ! as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save + test $ac_write_fail = 0 || + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 + # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. *************** *** 2760,2765 **** exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. ! $ac_cs_success || { (exit 1); exit 1; } fi --- 2919,2928 ---- exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. ! $ac_cs_success || as_fn_exit $? ! fi ! if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then ! { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 ! $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi diff -cNr octave-3.2.3/scripts/DOCSTRINGS octave-3.2.4/scripts/DOCSTRINGS *** octave-3.2.3/scripts/DOCSTRINGS 2009-09-14 08:29:52.000000000 +0200 --- octave-3.2.4/scripts/DOCSTRINGS 2010-01-18 14:17:50.000000000 +0100 *************** *** 4054,4060 **** -*- texinfo -*- @deftypefn {Function File} {} orient (@var{orientation}) Set the default print orientation. Valid values for ! @var{orientation} include @code{"landscape"} and @code{"portrait"}. If called with no arguments, return the default print orientation. @end deftypefn ginput --- 4054,4065 ---- -*- texinfo -*- @deftypefn {Function File} {} orient (@var{orientation}) Set the default print orientation. Valid values for ! @var{orientation} include @code{"landscape"}, @code{"portrait"}, ! and @code{"tall"}. ! ! The @code{"tall"} option sets the orientation to portait and fills ! the page with the plot, while leaving a 0.25in border. ! If called with no arguments, return the default print orientation. @end deftypefn ginput diff -cNr octave-3.2.3/scripts/linear-algebra/dot.m octave-3.2.4/scripts/linear-algebra/dot.m *** octave-3.2.3/scripts/linear-algebra/dot.m 2009-05-25 08:04:59.000000000 +0200 --- octave-3.2.4/scripts/linear-algebra/dot.m 2009-11-26 14:37:25.000000000 +0100 *************** *** 43,54 **** if (! size_equal (x, y)) error ("dot: sizes of arguments must match"); endif ! z = sum(x .* y); else if (! size_equal (x, y)) error ("dot: sizes of arguments must match"); endif ! z = sum(x .* y, dim); endif endfunction --- 43,54 ---- if (! size_equal (x, y)) error ("dot: sizes of arguments must match"); endif ! z = sum(conj (x) .* y); else if (! size_equal (x, y)) error ("dot: sizes of arguments must match"); endif ! z = sum(conj (x) .* y, dim); endif endfunction diff -cNr octave-3.2.3/scripts/linear-algebra/expm.m octave-3.2.4/scripts/linear-algebra/expm.m *** octave-3.2.3/scripts/linear-algebra/expm.m 2009-05-25 08:04:59.000000000 +0200 --- octave-3.2.4/scripts/linear-algebra/expm.m 2009-11-25 12:05:05.000000000 +0100 *************** *** 139,145 **** ## inverse balancing. d = diag (d); r = d * r / d; ! r = r(p, p); ## Inverse trace reduction. if (trshift >0) r *= exp (trshift); --- 139,145 ---- ## inverse balancing. d = diag (d); r = d * r / d; ! r(p, p) = r; ## Inverse trace reduction. if (trshift >0) r *= exp (trshift); diff -cNr octave-3.2.3/scripts/miscellaneous/substruct.m octave-3.2.4/scripts/miscellaneous/substruct.m *** octave-3.2.3/scripts/miscellaneous/substruct.m 2009-05-25 08:04:59.000000000 +0200 --- octave-3.2.4/scripts/miscellaneous/substruct.m 2009-11-25 11:47:49.000000000 +0100 *************** *** 31,38 **** if (nargs > 1 && mod (nargs, 2) == 0) narg_pairs = nargs / 2; ! typ = cell (narg_pairs, 1); ! sub = cell (narg_pairs, 1); k = 1; for i = 1:2:nargs t = varargin{i}; --- 31,38 ---- if (nargs > 1 && mod (nargs, 2) == 0) narg_pairs = nargs / 2; ! typ = cell (1, narg_pairs); ! sub = cell (1, narg_pairs); k = 1; for i = 1:2:nargs t = varargin{i}; *************** *** 66,76 **** %!test %! x(1,1).type = "()"; ! %! x(2,1).type = "{}"; ! %! x(3,1).type = "."; %! x(1,1).subs = {1,2,3}; ! %! x(2,1).subs = ":"; ! %! x(3,1).subs = "foo"; %! y = substruct ("()", {1,2,3}, "{}", ":", ".", "foo"); %! assert(x,y); %!error assert(substruct); --- 66,76 ---- %!test %! x(1,1).type = "()"; ! %! x(1,2).type = "{}"; ! %! x(1,3).type = "."; %! x(1,1).subs = {1,2,3}; ! %! x(1,2).subs = ":"; ! %! x(1,3).subs = "foo"; %! y = substruct ("()", {1,2,3}, "{}", ":", ".", "foo"); %! assert(x,y); %!error assert(substruct); diff -cNr octave-3.2.3/scripts/plot/gnuplot_drawnow.m octave-3.2.4/scripts/plot/gnuplot_drawnow.m *** octave-3.2.3/scripts/plot/gnuplot_drawnow.m 2009-09-14 07:55:16.000000000 +0200 --- octave-3.2.4/scripts/plot/gnuplot_drawnow.m 2009-11-24 08:02:08.000000000 +0100 *************** *** 87,95 **** else new_stream = false; endif ! enhanced = gnuplot_set_term (plot_stream (1), new_stream, h); __go_draw_figure__ (h, plot_stream (1), enhanced, mono, 0); fflush (plot_stream (1)); else print_usage (); endif --- 87,115 ---- else new_stream = false; endif ! term = gnuplot_default_term (); ! if (strcmp (term, "dumb")) ! ## popen2 eats stdout of gnuplot, use temporary file instead ! dumb_tmp_file = tmpnam (); ! enhanced = gnuplot_set_term (plot_stream (1), new_stream, h, ... ! term, dumb_tmp_file); ! else ! enhanced = gnuplot_set_term (plot_stream (1), new_stream, h, term); ! end __go_draw_figure__ (h, plot_stream (1), enhanced, mono, 0); fflush (plot_stream (1)); + if (strcmp (term, "dumb")) + fid = -1; + while (fid < 0) + pause (0.1); + fid = fopen (dumb_tmp_file, 'r'); + endwhile + ## reprint the plot on screen + [a, count] = fscanf (fid, '%c', Inf); + puts (a); + fclose (fid); + unlink (dumb_tmp_file); + endif else print_usage (); endif *************** *** 143,150 **** if (! isempty (h) && isfigure (h)) ! ## Generate gnuoplot title string for backend plot windows. ! if (output_to_screen (term)) fig.numbertitle = get (h, "numbertitle"); fig.name = get (h, "name"); if (strcmpi (get (h, "numbertitle"), "on")) --- 163,170 ---- if (! isempty (h) && isfigure (h)) ! ## Generate gnuplot title string for backend plot windows. ! if (output_to_screen (term) && ~strcmp (term, "dumb")) fig.numbertitle = get (h, "numbertitle"); fig.name = get (h, "name"); if (strcmpi (get (h, "numbertitle"), "on")) *************** *** 239,244 **** --- 259,273 ---- elseif (strncmpi (term, "aqua", 3)) ## Aqua has size, but the format is different. size_str = sprintf ("size %d %d", gnuplot_size); + elseif (strncmpi (term, "dumb", 3)) + new_stream = 1; + if (~isempty (getenv ("COLUMNS")) && ~isempty (getenv ("LINES"))) + ## Let dumb use full text screen size. + size_str = ["size ", getenv("COLUMNS"), " ", getenv("LINES")]; + else + ## Use the gnuplot default. + size_str = ""; + end elseif (strncmpi (term, "fig", 3)) ## Fig also has size, but the format is different. size_str = sprintf ("size %.15g %.15g", gnuplot_size); *************** *** 290,296 **** ## flickering window (x11, windows, & wxt) when the mouse and ## multiplot are set in gnuplot. fputs (plot_stream, "unset multiplot;\n"); ! flickering_terms = {"x11", "windows", "wxt"}; if (! any (strcmp (term, flickering_terms)) || numel (findall (h, "type", "axes")) > 1 || numel (findall (h, "type", "image")) > 0) --- 319,325 ---- ## flickering window (x11, windows, & wxt) when the mouse and ## multiplot are set in gnuplot. fputs (plot_stream, "unset multiplot;\n"); ! flickering_terms = {"x11", "windows", "wxt", "dumb"}; if (! any (strcmp (term, flickering_terms)) || numel (findall (h, "type", "axes")) > 1 || numel (findall (h, "type", "image")) > 0) *************** *** 315,321 **** ## figure title, enhanced mode, or position. endif - endfunction function term = gnuplot_default_term () --- 344,349 ---- *************** *** 326,333 **** term = "aqua"; elseif (! isunix ()) term = "windows"; ! else term = "x11"; endif endif endfunction --- 354,363 ---- term = "aqua"; elseif (! isunix ()) term = "windows"; ! elseif (! isempty (getenv ("DISPLAY"))) term = "x11"; + else + term = "dumb"; endif endif endfunction *************** *** 361,367 **** endfunction function ret = output_to_screen (term) ! ret = any (strcmpi ({"aqua", "wxt", "x11", "windows", "pm"}, term)); endfunction function ret = term_units_are_pixels (term) --- 391,397 ---- endfunction function ret = output_to_screen (term) ! ret = any (strcmpi ({"aqua", "dumb", "wxt", "x11", "windows", "pm"}, term)); endfunction function ret = term_units_are_pixels (term) diff -cNr octave-3.2.3/scripts/plot/legend.m octave-3.2.4/scripts/plot/legend.m *** octave-3.2.3/scripts/plot/legend.m 2009-05-25 08:04:59.000000000 +0200 --- octave-3.2.4/scripts/plot/legend.m 2009-11-20 10:43:15.000000000 +0100 *************** *** 115,122 **** --- 115,124 ---- switch (str) case {"off", "hide"} set (ca, "key", "off"); + nargs--; case "show" set (ca, "key", "on"); + nargs--; case "toggle" val = get (ca, "key"); if (strcmpi (val, "on")) *************** *** 124,163 **** else set (ca, "key", "on"); endif case "boxon" set (ca, "key", "on", "keybox", "on"); case "boxoff" set (ca, "keybox", "off"); case "left" set (ca, "keyreverse", "off") case "right" set (ca, "keyreverse", "on") otherwise - typ = get (kids (k), "type"); - while (k <= nkids && ! strcmp (typ, "line") && - ! strcmp (typ, "hggroup")) - k++; - typ = get (kids (k), "type"); - endwhile - if (k <= nkids) - turn_on_legend = true; - if (strcmp (typ, "hggroup")) - hgkids = get (kids(k), "children"); - for j = 1 : length (hgkids) - hgobj = get (hgkids (j)); - if (isfield (hgobj, "keylabel")) - set (hgkids(j), "keylabel", arg); - break; - endif - endfor - else - set (kids(k), "keylabel", arg); - endif - else - warning ("legend: ignoring extra labels"); - endif endswitch - nargs--; else varargin = cellstr (arg); nargs = numel (varargin); --- 126,146 ---- else set (ca, "key", "on"); endif + nargs--; case "boxon" set (ca, "key", "on", "keybox", "on"); + nargs--; case "boxoff" set (ca, "keybox", "off"); + nargs--; case "left" set (ca, "keyreverse", "off") + nargs--; case "right" set (ca, "keyreverse", "on") + nargs--; otherwise endswitch else varargin = cellstr (arg); nargs = numel (varargin); *************** *** 172,182 **** if (nargs > 0) have_data = false; ! for i = 1:nkids ! if (strcmp (get (kids(k), "type"), "line") ! || strcmp (get (kids(k), "type"), "surface") ! || strcmp (get (kids(k), "type"), "patch") ! || strcmp (get (kids(k), "type"), "hggroup")) have_data = true; break; endif --- 155,164 ---- if (nargs > 0) have_data = false; ! for k = 1:nkids ! typ = get (kids(k), "type"); ! if (strcmp (typ, "line") || strcmp (typ, "surface") ! || strcmp (typ, "patch") || strcmp (typ, "hggroup")) have_data = true; break; endif *************** *** 187,203 **** endif warned = false; ! for i = nargs:-1:1 arg = varargin{i}; if (ischar (arg)) ! while (k <= nkids ! && ! (strcmp (get (kids(k), "type"), "line") ! || strcmp (get (kids(k), "type"), "surface") ! || strcmp (get (kids(k), "type"), "patch") ! || strcmp (get (kids(k), "type"), "hggroup"))) ! k++; endwhile ! if (k <= nkids) if (strcmp (get (kids(k), "type"), "hggroup")) hgkids = get (kids(k), "children"); for j = 1 : length (hgkids) --- 169,185 ---- endif warned = false; ! k = nkids; ! for i = 1:nargs arg = varargin{i}; if (ischar (arg)) ! typ = get (kids(k), "type"); ! while (k > 1 ! && ! (strcmp (typ, "line") || strcmp (typ, "surface") ! || strcmp (typ, "patch") || strcmp (typ, "hggroup"))) ! typ = get (kids(--k), "type"); endwhile ! if (k > 0) if (strcmp (get (kids(k), "type"), "hggroup")) hgkids = get (kids(k), "children"); for j = 1 : length (hgkids) *************** *** 211,217 **** set (kids(k), "keylabel", arg); endif turn_on_legend = true; ! k++; elseif (! warned) warned = true; warning ("legend: ignoring extra labels"); --- 193,201 ---- set (kids(k), "keylabel", arg); endif turn_on_legend = true; ! if (--k == 0) ! break; ! endif elseif (! warned) warned = true; warning ("legend: ignoring extra labels"); *************** *** 235,246 **** --- 219,242 ---- %!demo %! clf + %! plot(1:10, 1:10, 1:10, fliplr(1:10)); + %! title("incline is blue and decline is green"); + %! legend("I'm blue", "I'm green", "location", "east") + + %!demo + %! clf %! plot(1:10, 1:10); %! title("a very long label can sometimes cause problems"); %! legend({"hello world"}, "location", "northeastoutside") %!demo %! clf + %! plot(1:10, 1:10); + %! title("a very long label can sometimes cause problems"); + %! legend("hello world", "location", "northeastoutside") + + %!demo + %! clf %! labels = {}; %! for i = 1:5 %! h = plot(1:100, i + rand(100,1)); hold on; *************** *** 251,253 **** --- 247,281 ---- %! xlabel("Sample Nr [k]"); ylabel("Amplitude [V]"); %! legend(labels, "location", "southoutside") %! legend("boxon") + + %!demo + %! clf + %! labels = {}; + %! for i = 1:5 + %! h = plot(1:100, i + rand(100,1)); hold on; + %! set (h, "color", get (gca, "colororder")(i,:)) + %! labels = {labels{:}, cstrcat("Signal ", num2str(i))}; + %! endfor; hold off; + %! title("Signals with random offset and uniform noise") + %! xlabel("Sample Nr [k]"); ylabel("Amplitude [V]"); + %! legend(labels{:}, "location", "southoutside") + %! legend("boxon") + + %!demo + %! hold ("off"); + %! x = linspace (0, 10); + %! plot (x, x); + %! hold ("on"); + %! stem (x, x.^2, 'g') + %! legend ("linear"); + %! hold ("off"); + + %!demo + %! x = linspace (0, 10); + %! plot (x, x, x, x.^2); + %! legend ("linear"); + + %!demo + %! x = linspace (0, 10); + %! plot (x, x, x, x.^2); + %! legend ("linear", "quadratic"); diff -cNr octave-3.2.3/scripts/plot/orient.m octave-3.2.4/scripts/plot/orient.m *** octave-3.2.3/scripts/plot/orient.m 2009-05-25 08:04:59.000000000 +0200 --- octave-3.2.4/scripts/plot/orient.m 2010-01-12 14:08:56.000000000 +0100 *************** *** 19,25 **** ## -*- texinfo -*- ## @deftypefn {Function File} {} orient (@var{orientation}) ## Set the default print orientation. Valid values for ! ## @var{orientation} include @code{"landscape"} and @code{"portrait"}. ## If called with no arguments, return the default print orientation. ## @end deftypefn --- 19,30 ---- ## -*- texinfo -*- ## @deftypefn {Function File} {} orient (@var{orientation}) ## Set the default print orientation. Valid values for ! ## @var{orientation} include @code{"landscape"}, @code{"portrait"}, ! ## and @code{"tall"}. ! ## ! ## The @code{"tall"} option sets the orientation to portait and fills ! ## the page with the plot, while leaving a 0.25in border. ! ## ## If called with no arguments, return the default print orientation. ## @end deftypefn *************** *** 43,49 **** elseif (nargin == 1) orientation = varargin{1}; if (strcmpi (orientation, "landscape") || strcmpi (orientation, "portrait")) ! set (cf, "paperorientation", orientation) else error ("orient: unknown orientation"); endif --- 48,66 ---- elseif (nargin == 1) orientation = varargin{1}; if (strcmpi (orientation, "landscape") || strcmpi (orientation, "portrait")) ! if (! strcmpi (get (cf, "paperorientation"), orientation)) ! ## FIXME - with the proper listeners in place there won't be a need to set ! ## the papersize and paperpostion here. ! papersize = get (cf, "papersize"); ! paperposition = get (cf, "paperposition"); ! set (cf, "paperorientation", orientation) ! set (cf, "papersize", papersize([2, 1])); ! set (cf, "paperposition", paperposition([2, 1, 4, 3])); ! endif ! elseif (strcmpi (varargin{1}, 'tall')) ! orient ("portrait") ! papersize = get (cf, "papersize"); ! set (cf, "paperposition", [0.25, 0.25, (papersize - 0.5)]); else error ("orient: unknown orientation"); endif *************** *** 53,64 **** endfunction ! %!shared ! %! set (gcf (), "visible", "off") ! %!assert(orient,"portrait") # default ! %!test orient('landscape') ! %!assert(orient,"landscape") # change to landscape ! %!test orient('portrait') ! %!assert(orient,"portrait") # change to portrait ! %!fail("orient('nobody')","unknown orientation") ! %!assert(orient,"portrait") # errors don't change the state --- 70,109 ---- endfunction ! %!shared papersize, paperposition, tallpaperposition, hfig ! %! papersize = [8.5, 11]; ! %! paperposition = [0.25, 2.5, 8, 6]; ! %! tallpaperposition = [0.25, 0.25, (papersize-0.5)]; ! %! hfig = figure (); ! %! set (hfig, "visible", "off") ! %! set (hfig, "paperorientation", "portrait") ! %! set (hfig, "papersize", papersize) ! %! set (hfig, "paperposition", paperposition) ! %!test ! %! orient portrait ! %! assert (orient, "portrait") # default ! %! assert (get (hfig, "papersize"), papersize) ! %! assert (get (hfig, "paperposition"), paperposition) ! %!test ! %! orient landscape ! %! assert (orient,"landscape") # change to landscape ! %! assert (get (hfig, "papersize"), papersize([2, 1])) ! %! assert (get (hfig, "paperposition"), paperposition([2, 1, 4, 3])) ! %!test ! %! orient portrait # change back to portrait ! %! assert (orient, "portrait") ! %! assert (get (hfig, "papersize"), papersize) ! %! assert (get (hfig, "paperposition"), paperposition) ! %!test ! %! orient landscape ! %! orient tall ! %! assert (orient, "portrait") ! %! assert (get (hfig, "papersize"), papersize) ! %! assert (get (hfig, "paperposition"), tallpaperposition) ! %!fail ("orient ('nobody')", "unknown orientation") ! %!test ! %! orient portrait # errors don't change the state ! %! assert (orient, "portrait") ! %! assert (get (hfig, "papersize"), papersize) ! %! assert (get (hfig, "paperposition"), tallpaperposition) ! %! close (hfig) diff -cNr octave-3.2.3/scripts/plot/print.m octave-3.2.4/scripts/plot/print.m *** octave-3.2.3/scripts/plot/print.m 2009-06-25 06:36:46.000000000 +0200 --- octave-3.2.4/scripts/plot/print.m 2009-11-24 08:04:52.000000000 +0100 *************** *** 187,200 **** special_flag = "textnormal"; tight_flag = false; resolution = ""; ! if (isunix ()) ! persistent ghostscript_binary = "gs"; ! elseif (ispc ()) ! if (~isempty (getenv ("GSC"))) ! persistent ghostscript_binary = getenv ("GSC"); else ! persistent ghostscript_binary = "gswin32c"; endif endif old_fig = get (0, "currentfigure"); --- 187,208 ---- special_flag = "textnormal"; tight_flag = false; resolution = ""; ! ! persistent ghostscript_binary = ""; ! if (isempty (ghostscript_binary)) ! ghostscript_binary = getenv ("GSC"); ! ng = 0; ! if (isunix ()) ! ## Unix - Includes Mac OSX and Cygwin. ! gs_binaries = {"gs", "gs.exe"}; else ! ## pc - Includes Win32 and mingw. ! gs_binaries = {"gs.exe", "gswin32c.exe"}; endif + while (ng < numel (gs_binaries) && isempty (ghostscript_binary)) + ng = ng + 1; + ghostscript_binary = file_in_path (EXEC_PATH, gs_binaries{ng}); + endwhile endif old_fig = get (0, "currentfigure"); *************** *** 233,238 **** --- 241,252 ---- printer = arg; elseif ((length (arg) > 2) && arg(1:2) == "-G") ghostscript_binary = arg(3:end); + if (exist (ghostscript_binary, "file") != 2) + ghostscript_binary = file_in_path (EXEC_PATH, ghostscript_binary); + endif + if (isempty (ghostscript_binary)) + error ("print.m: Ghostscript binary ""%s"" could not be located", arg(3:end)) + endif elseif (length (arg) > 2 && arg(1:2) == "-F") idx = rindex (arg, ":"); if (idx) *************** *** 257,269 **** endif endfor ! if (isunix ()) ! [status, output] = system (sprintf ("which %s 2>&1", ghostscript_binary)); ! have_ghostscript = (status == 0); ! elseif (ispc ()) ! [status, output] = system (sprintf ("if exist \"%s\" ( exit /B 1 ) else ( exit /B 0 )", ghostscript_binary)); ! have_ghostscript = (status ~= 0); ! endif doprint = isempty (name); if (doprint) --- 271,277 ---- endif endfor ! have_ghostscript = (exist (ghostscript_binary, "file") == 2); doprint = isempty (name); if (doprint) diff -cNr octave-3.2.3/scripts/plot/stairs.m octave-3.2.4/scripts/plot/stairs.m *** octave-3.2.3/scripts/plot/stairs.m 2009-05-25 08:04:59.000000000 +0200 --- octave-3.2.4/scripts/plot/stairs.m 2009-11-20 10:49:17.000000000 +0100 *************** *** 80,86 **** function [h, xs, ys] = __stairs__ (doplot, varargin) ! if (nargin == 1 || ischar (varargin{2})) y = varargin {1}; varargin(1) = []; if (ismatrix (y)) --- 80,86 ---- function [h, xs, ys] = __stairs__ (doplot, varargin) ! if (nargin == 2 || ischar (varargin{2})) y = varargin {1}; varargin(1) = []; if (ismatrix (y)) *************** *** 217,222 **** --- 217,229 ---- %! [xs, ys] = stairs (x, y); %! plot (xs, ys); + %!demo + %! stairs (1:9); + + %!demo + %! [xs, ys] = stairs (9:-1:1); + %! plot (xs, ys); + function update_props (h, d) set (get (h, "children"), "color", get (h, "color"), "linewidth", get (h, "linewidth"), diff -cNr octave-3.2.3/src/ChangeLog octave-3.2.4/src/ChangeLog *** octave-3.2.3/src/ChangeLog 2009-09-14 08:01:42.000000000 +0200 --- octave-3.2.4/src/ChangeLog 2010-01-22 10:23:24.000000000 +0100 *************** *** 1,3 **** --- 1,45 ---- + 2010-01-22 Jaroslav Hajek + + Version 3.2.4 released. + + 2009-10-15 Jaroslav Hajek + + * variables.cc (extract_function): Pass 0 to eval_string to avoid + error. + + 2009-07-23 John W. Eaton + + * toplev.cc (IGNORE_EXCEPTION, SAFE_CALL): New macros. + (clean_up_and_exit, do_octave_atexit): Use SAFE_CALL to handle + exceptions while preparing to exit. + + 2009-08-04 John W. Eaton + + * toplev.cc (octave_call_stack::do_goto_frame_relative): Allow + NSKIP to be 0. Set current scope and context. + * input.cc (Fkeyboard): Use octave_call_stack::goto_frame_relative + to set scope in user code that called the keyboard function. + + 2009-08-04 Jaroslav Hajek + + * input.cc (Fkeyboard): Only call do_keyboard, don't fiddle with + stack. + + 2009-11-17 Jaroslav Hajek + + * DLD-FUNCTIONS/balance.cc: Fix docs. + + 2009-11-03 David Grundberg + + * ov-class.cc (make_idx_args): Call user-defined subsref/subsasgn + with 1xN structs instead of Nx1. + + 2009-09-30 John W. Eaton + + * error.cc (error_1, pr_where_2, handle_message): + Don't do anything if fmt is empty. + (Ferror): Call print_usage if nargin == 0. + 2009-09-18 Jaroslav Hajek Version 3.2.3 released. diff -cNr octave-3.2.3/src/DLD-FUNCTIONS/balance.cc octave-3.2.4/src/DLD-FUNCTIONS/balance.cc *** octave-3.2.3/src/DLD-FUNCTIONS/balance.cc 2009-05-25 08:05:00.000000000 +0200 --- octave-3.2.4/src/DLD-FUNCTIONS/balance.cc 2009-11-25 12:05:10.000000000 +0100 *************** *** 63,69 **** \n\ If two output values are requested, @code{balance} returns \n\ the diagonal @code{d} and the permutation @code{p} separately as vectors. \n\ ! In this case, @code{dd = eye(n)(p,:) * diag (d)}, where @code{n} is the matrix \n\ size. \n\ \n\ If four output values are requested, compute @code{aa = cc*a*dd} and\n\ --- 63,69 ---- \n\ If two output values are requested, @code{balance} returns \n\ the diagonal @code{d} and the permutation @code{p} separately as vectors. \n\ ! In this case, @code{dd = eye(n)(:,p) * diag (d)}, where @code{n} is the matrix \n\ size. \n\ \n\ If four output values are requested, compute @code{aa = cc*a*dd} and\n\ diff -cNr octave-3.2.3/src/DOCSTRINGS octave-3.2.4/src/DOCSTRINGS *** octave-3.2.3/src/DOCSTRINGS 2009-09-14 08:29:47.000000000 +0200 --- octave-3.2.4/src/DOCSTRINGS 2010-01-22 10:34:00.000000000 +0100 *************** *** 135,141 **** If two output values are requested, @code{balance} returns the diagonal @code{d} and the permutation @code{p} separately as vectors. ! In this case, @code{dd = eye(n)(p,:) * diag (d)}, where @code{n} is the matrix size. If four output values are requested, compute @code{aa = cc*a*dd} and --- 135,141 ---- If two output values are requested, @code{balance} returns the diagonal @code{d} and the permutation @code{p} separately as vectors. ! In this case, @code{dd = eye(n)(:,p) * diag (d)}, where @code{n} is the matrix size. If four output values are requested, compute @code{aa = cc*a*dd} and diff -cNr octave-3.2.3/src/error.cc octave-3.2.4/src/error.cc *** octave-3.2.3/src/error.cc 2009-05-25 08:05:00.000000000 +0200 --- octave-3.2.4/src/error.cc 2009-11-24 07:58:45.000000000 +0100 *************** *** 283,310 **** { if (*fmt) { ! int len = strlen (fmt); ! if (fmt[len - 1] == '\n') { ! if (len > 1) { ! char *tmp_fmt = strsave (fmt); ! tmp_fmt[len - 1] = '\0'; ! verror (true, os, name, id, tmp_fmt, args); ! delete [] tmp_fmt; } ! error_state = -2; } - else - verror (true, os, name, id, fmt, args); } } else panic ("error_1: invalid format"); - - if (! error_state) - error_state = 1; } } --- 283,316 ---- { if (*fmt) { ! size_t len = strlen (fmt); ! ! if (len > 0) { ! if (fmt[len - 1] == '\n') { ! if (len > 1) ! { ! char *tmp_fmt = strsave (fmt); ! tmp_fmt[len - 1] = '\0'; ! verror (true, os, name, id, tmp_fmt, args); ! delete [] tmp_fmt; ! } ! ! error_state = -2; } + else + { + verror (true, os, name, id, fmt, args); ! if (! error_state) ! error_state = 1; ! } } } } else panic ("error_1: invalid format"); } } *************** *** 383,401 **** { if (*fmt) { ! int len = strlen (fmt); ! if (fmt[len - 1] == '\n') { ! if (len > 1) { ! char *tmp_fmt = strsave (fmt); ! tmp_fmt[len - 1] = '\0'; ! verror (false, std::cerr, 0, "", tmp_fmt, args); ! delete [] tmp_fmt; } } - else - verror (false, std::cerr, 0, "", fmt, args); } } else --- 389,411 ---- { if (*fmt) { ! size_t len = strlen (fmt); ! ! if (len > 0) { ! if (fmt[len - 1] == '\n') { ! if (len > 1) ! { ! char *tmp_fmt = strsave (fmt); ! tmp_fmt[len - 1] = '\0'; ! verror (false, std::cerr, 0, "", tmp_fmt, args); ! delete [] tmp_fmt; ! } } + else + verror (false, std::cerr, 0, "", fmt, args); } } } else *************** *** 763,784 **** // Ugh. ! int len = strlen (msg); ! if (msg[len - 1] == '\n') { ! if (len > 1) { ! char *tmp_msg = strsave (msg); ! tmp_msg[len - 1] = '\0'; ! f (id, "%s\n", tmp_msg); ! retval = tmp_msg; ! delete [] tmp_msg; } - } - else - { - f (id, "%s", msg); - retval = msg; } return retval; --- 773,798 ---- // Ugh. ! size_t len = strlen (msg); ! ! if (len > 0) { ! if (msg[len - 1] == '\n') { ! if (len > 1) ! { ! char *tmp_msg = strsave (msg); ! tmp_msg[len - 1] = '\0'; ! f (id, "%s\n", tmp_msg); ! retval = tmp_msg; ! delete [] tmp_msg; ! } ! } ! else ! { ! f (id, "%s", msg); ! retval = msg; } } return retval; *************** *** 985,1040 **** std::string id; ! if (nargin > 1) { ! std::string arg1 = args(0).string_value (); ! ! if (! error_state) { ! if (arg1.find ('%') == std::string::npos) { ! id = arg1; ! nargs.resize (nargin-1); ! for (int i = 1; i < nargin; i++) ! nargs(i-1) = args(i); } } ! else ! return retval; ! } ! else if (nargin == 1 && args(0).is_map ()) ! { ! octave_value_list tmp; ! Octave_map m = args(0).map_value (); ! if (m.numel () == 1) ! { ! if (m.contains ("message")) { ! Cell c = m.contents ("message"); ! if (! c.is_empty () && c(0).is_string ()) ! nargs(0) = c(0).string_value (); ! } ! if (m.contains ("identifier")) ! { ! Cell c = m.contents ("identifier"); ! if (! c.is_empty () && c(0).is_string ()) ! id = c(0).string_value (); ! } ! // FIXME -- also need to handle "stack" field in error ! // structure, but that will require some more significant ! // surgery on handle_message, error_with_id, etc. } - } ! handle_message (error_with_id, id.c_str (), "unspecified error", nargs); return retval; } --- 999,1059 ---- std::string id; ! if (nargin == 0) ! print_usage (); ! else { ! if (nargin > 1) { ! std::string arg1 = args(0).string_value (); ! ! if (! error_state) { ! if (arg1.find ('%') == std::string::npos) ! { ! id = arg1; ! nargs.resize (nargin-1); ! for (int i = 1; i < nargin; i++) ! nargs(i-1) = args(i); ! } } + else + return retval; } ! else if (nargin == 1 && args(0).is_map ()) ! { ! octave_value_list tmp; ! Octave_map m = args(0).map_value (); ! if (m.numel () == 1) { ! if (m.contains ("message")) ! { ! Cell c = m.contents ("message"); ! if (! c.is_empty () && c(0).is_string ()) ! nargs(0) = c(0).string_value (); ! } ! if (m.contains ("identifier")) ! { ! Cell c = m.contents ("identifier"); ! if (! c.is_empty () && c(0).is_string ()) ! id = c(0).string_value (); ! } ! // FIXME -- also need to handle "stack" field in error ! // structure, but that will require some more significant ! // surgery on handle_message, error_with_id, etc. ! } } ! handle_message (error_with_id, id.c_str (), "unspecified error", nargs); ! } return retval; } diff -cNr octave-3.2.3/src/input.cc octave-3.2.4/src/input.cc *** octave-3.2.3/src/input.cc 2009-06-08 07:34:31.000000000 +0200 --- octave-3.2.4/src/input.cc 2010-01-13 09:49:50.000000000 +0100 *************** *** 956,962 **** unwind_protect_size_t (saved_frame); // Skip the frame assigned to the keyboard function. ! octave_call_stack::goto_frame (1); do_keyboard (args); --- 956,962 ---- unwind_protect_size_t (saved_frame); // Skip the frame assigned to the keyboard function. ! octave_call_stack::goto_frame_relative (0, true); do_keyboard (args); diff -cNr octave-3.2.3/src/ov-class.cc octave-3.2.4/src/ov-class.cc *** octave-3.2.3/src/ov-class.cc 2009-09-01 09:34:05.000000000 +0200 --- octave-3.2.4/src/ov-class.cc 2009-11-25 11:47:49.000000000 +0100 *************** *** 160,167 **** if (len == idx.size ()) { ! Cell type_field (len, 1); ! Cell subs_field (len, 1); std::list::const_iterator p = idx.begin (); --- 160,167 ---- if (len == idx.size ()) { ! Cell type_field (1, len); ! Cell subs_field (1, len); std::list::const_iterator p = idx.begin (); diff -cNr octave-3.2.3/src/toplev.cc octave-3.2.4/src/toplev.cc *** octave-3.2.3/src/toplev.cc 2009-06-24 07:31:32.000000000 +0200 --- octave-3.2.4/src/toplev.cc 2010-01-12 14:10:39.000000000 +0100 *************** *** 366,430 **** { bool retval = false; ! if (nskip == 0) ! retval = true; ! else ! { ! int incr = nskip < 0 ? -1 : 1; ! // Start looking with the caller of dbup/dbdown. ! size_t frame = cs[curr_frame].prev; ! while (true) ! { ! if ((incr < 0 && frame == 0) || (incr > 0 && frame == cs.size () - 1)) ! break; ! frame += incr; ! const call_stack_elt& elt = cs[frame]; ! octave_function *f = elt.fcn; ! if (f && f->is_user_code ()) ! { ! if (nskip > 0) ! nskip--; ! else if (nskip < 0) ! nskip++; ! if (nskip == 0) ! { ! curr_frame = frame; ! cs[cs.size () - 1].prev = curr_frame; ! if (verbose) ! { ! tree_statement *s = elt.stmt; ! int l = -1; ! int c = -1; ! if (s) ! { ! l = s->line (); ! c = s->column (); ! } ! std::ostringstream buf; ! buf << f->name () << ": " << " line " << l ! << ", column " << c << std::endl; ! octave_stdout << buf.str (); } ! retval = true; ! break; } } } // There is no need to set scope and context here. That will ! // happen when the dbup/dbdown frame is popped and we jump to ! // the new "prev" frame set above. } return retval; --- 366,432 ---- { bool retval = false; ! int incr = 0; ! if (nskip < 0) ! incr = -1; ! else if (nskip > 0) ! incr = 1; ! // Start looking with the caller of dbup/dbdown/keyboard. ! size_t frame = cs[curr_frame].prev; ! while (true) ! { ! if ((incr < 0 && frame == 0) || (incr > 0 && frame == cs.size () - 1)) ! break; ! frame += incr; ! const call_stack_elt& elt = cs[frame]; ! octave_function *f = elt.fcn; ! if (f && f->is_user_code ()) ! { ! if (nskip > 0) ! nskip--; ! else if (nskip < 0) ! nskip++; ! if (nskip == 0) ! { ! curr_frame = frame; ! cs[cs.size () - 1].prev = curr_frame; ! symbol_table::set_scope_and_context (elt.scope, elt.context); ! if (verbose) ! { ! tree_statement *s = elt.stmt; ! int l = -1; ! int c = -1; ! if (s) ! { ! l = s->line (); ! c = s->column (); } ! std::ostringstream buf; ! buf << f->name () << ": " << " line " << l ! << ", column " << c << std::endl; ! ! octave_stdout << buf.str (); } + + retval = true; + break; } } // There is no need to set scope and context here. That will ! // happen when the dbup/dbdown/keyboard frame is popped and we ! // jump to the new "prev" frame set above. } return retval; *************** *** 645,650 **** --- 647,671 ---- return retval; } + // Call a function with exceptions handled to avoid problems with + // errors while shutting down. + + #define IGNORE_EXCEPTION(E) \ + catch (E) \ + { \ + std::cerr << "error: ignoring " #E " while preparing to exit" << std::endl; \ + recover_from_exception (); \ + } + + #define SAFE_CALL(F, ARGS) \ + try \ + { \ + F ARGS; \ + } \ + IGNORE_EXCEPTION (octave_interrupt_exception) \ + IGNORE_EXCEPTION (octave_execution_exception) \ + IGNORE_EXCEPTION (std::bad_alloc) + // Fix up things before exiting. void *************** *** 652,658 **** { do_octave_atexit (); ! sysdep_cleanup (); if (octave_exit) (*octave_exit) (retval == EOF ? 0 : retval); --- 673,679 ---- { do_octave_atexit (); ! SAFE_CALL (sysdep_cleanup, ()) if (octave_exit) (*octave_exit) (retval == EOF ? 0 : retval); *************** *** 989,1014 **** octave_atexit_functions.pop_front (); ! reset_error_handler (); ! try ! { ! feval (fcn, octave_value_list (), 0); ! } ! catch (octave_interrupt_exception) ! { ! recover_from_exception (); ! } ! catch (octave_execution_exception) ! { ! recover_from_exception (); ! } ! catch (std::bad_alloc) ! { ! recover_from_exception (); ! } ! flush_octave_stdout (); } if (! deja_vu) --- 1010,1020 ---- octave_atexit_functions.pop_front (); ! SAFE_CALL (reset_error_handler, ()) ! SAFE_CALL (feval, (fcn, octave_value_list (), 0)) ! SAFE_CALL (flush_octave_stdout, ()) } if (! deja_vu) *************** *** 1018,1040 **** // Do this explicitly so that destructors for mex file objects // are called, so that functions registered with mexAtExit are // called. ! clear_mex_functions (); ! command_editor::restore_terminal_state (); // FIXME -- is this needed? Can it cause any trouble? ! raw_mode (0); ! octave_history_write_timestamp (); if (Vsaving_history) ! command_history::clean_up_and_save (); ! close_files (); ! cleanup_tmp_files (); ! flush_octave_stdout (); if (! quitting_gracefully && (interactive || forced_interactive)) { --- 1024,1046 ---- // Do this explicitly so that destructors for mex file objects // are called, so that functions registered with mexAtExit are // called. ! SAFE_CALL (clear_mex_functions, ()) ! SAFE_CALL (command_editor::restore_terminal_state, ()) // FIXME -- is this needed? Can it cause any trouble? ! SAFE_CALL (raw_mode, (0)) ! SAFE_CALL (octave_history_write_timestamp, ()) if (Vsaving_history) ! SAFE_CALL (command_history::clean_up_and_save, ()) ! SAFE_CALL (close_files, ()) ! SAFE_CALL (cleanup_tmp_files, ()) ! SAFE_CALL (flush_octave_stdout, ()) if (! quitting_gracefully && (interactive || forced_interactive)) { *************** *** 1043,1049 **** // Yes, we want this to be separate from the call to // flush_octave_stdout above. ! flush_octave_stdout (); } } } --- 1049,1055 ---- // Yes, we want this to be separate from the call to // flush_octave_stdout above. ! SAFE_CALL (flush_octave_stdout, ()) } } } diff -cNr octave-3.2.3/src/variables.cc octave-3.2.4/src/variables.cc *** octave-3.2.3/src/variables.cc 2009-06-09 06:33:11.000000000 +0200 --- octave-3.2.4/src/variables.cc 2010-01-13 09:48:18.000000000 +0100 *************** *** 159,165 **** { int parse_status; ! eval_string (cmd, true, parse_status); if (parse_status == 0) { --- 159,165 ---- { int parse_status; ! eval_string (cmd, true, parse_status, 0); if (parse_status == 0) { *************** *** 171,176 **** --- 171,179 ---- warn_for.c_str (), fname.c_str ()); return retval; } + + warning ("%s: passing function body as a string is obsolete." + " Please use anonymous functions.", warn_for.c_str ()); } else error ("%s: `%s' is not valid as a function", diff -cNr octave-3.2.3/src/version.h octave-3.2.4/src/version.h *** octave-3.2.3/src/version.h 2009-09-14 08:01:42.000000000 +0200 --- octave-3.2.4/src/version.h 2010-01-22 10:23:19.000000000 +0100 *************** *** 25,35 **** #if !defined (octave_version_h) #define octave_version_h 1 ! #define OCTAVE_VERSION "3.2.3" #define OCTAVE_API_VERSION "api-v37" ! #define OCTAVE_RELEASE_DATE "2009-09-18" #define OCTAVE_COPYRIGHT "Copyright (C) 2009 John W. Eaton and others." --- 25,35 ---- #if !defined (octave_version_h) #define octave_version_h 1 ! #define OCTAVE_VERSION "3.2.4" #define OCTAVE_API_VERSION "api-v37" ! #define OCTAVE_RELEASE_DATE "2010-01-22" #define OCTAVE_COPYRIGHT "Copyright (C) 2009 John W. Eaton and others." diff -cNr octave-3.2.3/test/ChangeLog octave-3.2.4/test/ChangeLog *** octave-3.2.3/test/ChangeLog 2009-09-14 08:01:42.000000000 +0200 --- octave-3.2.4/test/ChangeLog 2010-01-22 10:23:26.000000000 +0100 *************** *** 1,3 **** --- 1,7 ---- + 2010-01-22 Jaroslav Hajek + + Version 3.2.4 released. + 2009-09-18 Jaroslav Hajek Version 3.2.3 released. diff -cNr octave-3.2.3/test/test_sparse.m octave-3.2.4/test/test_sparse.m *** octave-3.2.3/test/test_sparse.m 1970-01-01 01:00:00.000000000 +0100 --- octave-3.2.4/test/test_sparse.m 2009-09-14 09:23:43.000000000 +0200 *************** *** 0 **** --- 1,3070 ---- + ## THIS IS AN AUTOMATICALLY GENERATED FILE --- DO NOT EDIT --- + ## instead modify build_sparse_tests.sh to generate the tests that you want. + ## + ## test_sparse + ## + ## run preset sparse tests. All should pass. + function [passes,tests] = test_sparse + disp("writing test output to sptest.log"); + test("test_sparse","normal","sptest.log"); + endfunction + + + # ============================================================== + + + # ============================================================== + + + %!test # segfault test from edd@debian.org + %! n = 510; + %! sparse(kron((1:n)', ones(n,1)), kron(ones(n,1), (1:n)'), ones(n)); + + %% segfault tests from Fabian@isas-berlin.de + %% Note that the last four do not fail, but rather give a warning + %% of a singular matrix, which is consistent with the full matrix + %% behaviour. They are therefore disabled.. + %!testif HAVE_UMFPACK + %! assert(inv(sparse([1,1;1,1+i])),sparse([1-1i,1i;1i,-1i]),10*eps); + % !error inv( sparse( [1,1;1,1] ) ); + % !error inv( sparse( [0,0;0,1] ) ); + % !error inv( sparse( [0,0;0,1+i] ) ); + % !error inv( sparse( [0,0;0,0] ) ); + + %% error handling in constructor + %!error sparse(1,[2,3],[1,2,3]); + %!error sparse([1,1],[1,1],[1,2],3,3,"bogus"); + %!error sparse([1,3],[1,-4],[3,5],2,2); + %!error sparse([1,3],[1,-4],[3,5i],2,2); + %!error sparse(-1,-1,1); + + # ============================================================== + + %!shared bf + %!test bf=realmin; + %% Make sure newly introduced zeros get eaten + %!assert(nnz(sparse([bf,bf,1]).^realmax),1); + %!assert(nnz(sparse([1,bf,bf]).^realmax),1); + %!assert(nnz(sparse([bf,bf,bf]).^realmax),0); + + %!assert(nnz(sparse([bf;bf;1]).^realmax),1); + %!assert(nnz(sparse([1;bf;bf]).^realmax),1); + %!assert(nnz(sparse([0.5;bf;bf]).^realmax),0); + + %!assert(nnz(sparse([bf,bf,1])*realmin),1); + %!assert(nnz(sparse([1,bf,bf])*realmin),1); + %!assert(nnz(sparse([bf,bf,bf])*realmin),0); + + %!assert(nnz(sparse([bf;bf;1])*realmin),1); + %!assert(nnz(sparse([1;bf;bf])*realmin),1); + %!assert(nnz(sparse([bf;bf;bf])*realmin),0); + + %!test bf=realmin+realmin*1i; + %% Make sure newly introduced zeros get eaten + %!assert(nnz(sparse([bf,bf,1]).^realmax),1); + %!assert(nnz(sparse([1,bf,bf]).^realmax),1); + %!assert(nnz(sparse([bf,bf,bf]).^realmax),0); + + %!assert(nnz(sparse([bf;bf;1]).^realmax),1); + %!assert(nnz(sparse([1;bf;bf]).^realmax),1); + %!assert(nnz(sparse([0.5;bf;bf]).^realmax),0); + + %!assert(nnz(sparse([bf,bf,1])*realmin),1); + %!assert(nnz(sparse([1,bf,bf])*realmin),1); + %!assert(nnz(sparse([bf,bf,bf])*realmin),0); + + %!assert(nnz(sparse([bf;bf;1])*realmin),1); + %!assert(nnz(sparse([1;bf;bf])*realmin),1); + %!assert(nnz(sparse([bf;bf;bf])*realmin),0); + + %!assert(nnz(sparse([-1,realmin,realmin]).^1.5),1); + %!assert(nnz(sparse([-1,realmin,realmin,1]).^1.5),2); + + %!assert(nnz(sparse(1,1,0)),0); # Make sure scalar v==0 doesn't confuse matters + %!assert(nnz(sparse(eye(3))*0),0); + %!assert(nnz(sparse(eye(3))-sparse(eye(3))),0); + + %!test + %! wdbz = warning ("query", "Octave:divide-by-zero"); + %! warning ("off", "Octave:divide-by-zero"); + %! assert(full(sparse(eye(3))/0),full(eye(3)/0)); + %! warning (wdbz.state, "Octave:divide-by-zero"); + + + # ============================================================== + + %!shared as,af,bs,bf + %!test af=[1+1i,2-1i,0,0;0,0,0,3+2i;0,0,0,4]; + %!test bf=3; + %!test as=sparse(af); + %!test bs=bf; + %% Elementwise binary tests (uses as,af,bs,bf,scalar) + %!assert(as==bs,sparse(af==bf)) + %!assert(bf==as,sparse(bf==af)) + + %!assert(as!=bf,sparse(af!=bf)) + %!assert(bf!=as,sparse(bf!=af)) + + %!assert(as+bf,af+bf) + %!assert(bf+as,bf+af) + + %!assert(as-bf,af-bf) + %!assert(bf-as,bf-af) + + %!assert(as.*bf,sparse(af.*bf)) + %!assert(bf.*as,sparse(bf.*af)) + + %!assert(as./bf,sparse(af./bf),100*eps) + %!assert(bf.\as,sparse(bf.\af),100*eps) + + %!test + %! sv = as.^bf; + %! fv = af.^bf; + %! idx = find(af~=0); + %! assert(sv(:)(idx),sparse(fv(:)(idx)),100*eps) + + %% real values can be ordered (uses as,af) + %!assert(as<=bf,sparse(af<=bf)) + %!assert(bf<=as,sparse(bf<=af)) + + %!assert(as>=bf,sparse(af>=bf)) + %!assert(bf>=as,sparse(bf>=af)) + + %!assert(asbf,sparse(af>bf)) + %!assert(bf>as,sparse(bf>af)) + + %!test bf=bf+1i; + %!test bs=bf; + %% Elementwise binary tests (uses as,af,bs,bf,scalar) + %!assert(as==bs,sparse(af==bf)) + %!assert(bf==as,sparse(bf==af)) + + %!assert(as!=bf,sparse(af!=bf)) + %!assert(bf!=as,sparse(bf!=af)) + + %!assert(as+bf,af+bf) + %!assert(bf+as,bf+af) + + %!assert(as-bf,af-bf) + %!assert(bf-as,bf-af) + + %!assert(as.*bf,sparse(af.*bf)) + %!assert(bf.*as,sparse(bf.*af)) + + %!assert(as./bf,sparse(af./bf),100*eps) + %!assert(bf.\as,sparse(bf.\af),100*eps) + + %!test + %! sv = as.^bf; + %! fv = af.^bf; + %! idx = find(af~=0); + %! assert(sv(:)(idx),sparse(fv(:)(idx)),100*eps) + + + # ============================================================== + + %!test af=[1+1i,2-1i,0,0;0,0,0,3+2i;0,0,0,4]; + %!test bf=[0,1-1i,0,0;2+1i,0,0,0;3-1i,2+3i,0,0]; + %!test as=sparse(af); + %!test bs=sparse(bf); + %% Unary matrix tests (uses af,as) + %!assert(abs(as),sparse(abs(af))) + %!assert(acos(as),sparse(acos(af))) + %!assert(acosh(as),sparse(acosh(af))) + %!assert(angle(as),sparse(angle(af))) + %!assert(arg(as),sparse(arg(af))) + %!assert(asin(as),sparse(asin(af))) + %!assert(asinh(as),sparse(asinh(af))) + %!assert(atan(as),sparse(atan(af))) + %!assert(atanh(as),sparse(atanh(af))) + %!assert(ceil(as),sparse(ceil(af))) + %!assert(conj(as),sparse(conj(af))) + %!assert(cos(as),sparse(cos(af))) + %!assert(cosh(as),sparse(cosh(af))) + %!assert(exp(as),sparse(exp(af))) + %!assert(finite(as),sparse(finite(af))) + %!assert(fix(as),sparse(fix(af))) + %!assert(floor(as),sparse(floor(af))) + %!assert(imag(as),sparse(imag(af))) + %!assert(isinf(as),sparse(isinf(af))) + %!assert(isna(as),sparse(isna(af))) + %!assert(isnan(as),sparse(isnan(af))) + %!assert(log(as),sparse(log(af))) + %!assert(real(as),sparse(real(af))) + %!assert(round(as),sparse(round(af))) + %!assert(sign(as),sparse(sign(af))) + %!assert(sin(as),sparse(sin(af))) + %!assert(sinh(as),sparse(sinh(af))) + %!assert(sqrt(as),sparse(sqrt(af))) + %!assert(tan(as),sparse(tan(af))) + %!assert(tanh(as),sparse(tanh(af))) + %!assert(issparse(abs(as))&&isreal(abs(as))) + %!assert(issparse(real(as))&&isreal(real(as))) + %!assert(issparse(imag(as))&&isreal(imag(as))) + + %% Unary matrix tests (uses af,as) + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (1) + %! assert(erf(as),sparse(erf(af))) + %! else + %! assert(erf(as),erf(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (1) + %! assert(erfc(as),sparse(erfc(af))) + %! else + %! assert(erfc(as),erfc(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isalnum(as),sparse(isalnum(af))) + %! else + %! assert(isalnum(as),isalnum(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isalpha(as),sparse(isalpha(af))) + %! else + %! assert(isalpha(as),isalpha(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isascii(as),sparse(isascii(af))) + %! else + %! assert(isascii(as),isascii(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(iscntrl(as),sparse(iscntrl(af))) + %! else + %! assert(iscntrl(as),iscntrl(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isdigit(as),sparse(isdigit(af))) + %! else + %! assert(isdigit(as),isdigit(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isgraph(as),sparse(isgraph(af))) + %! else + %! assert(isgraph(as),isgraph(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(islower(as),sparse(islower(af))) + %! else + %! assert(islower(as),islower(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isprint(as),sparse(isprint(af))) + %! else + %! assert(isprint(as),isprint(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(ispunct(as),sparse(ispunct(af))) + %! else + %! assert(ispunct(as),ispunct(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isspace(as),sparse(isspace(af))) + %! else + %! assert(isspace(as),isspace(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isupper(as),sparse(isupper(af))) + %! else + %! assert(isupper(as),isupper(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isxdigit(as),sparse(isxdigit(af))) + %! else + %! assert(isxdigit(as),isxdigit(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + + %% These mapper functions always return a full matrix + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! assert(toascii(as),toascii(af)) + %! assert(tolower(as),tolower(af)) + %! assert(toupper(as),toupper(af)) + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %% Unary matrix tests (uses af,as) + %!assert(issparse(as)) + %!assert(!issparse(af)) + %!assert(!(issparse(af)&&iscomplex(af))) + %!assert(!(issparse(af)&&isreal(af))) + %!assert(sum(as),sparse(sum(af))) + %!assert(sum(as,1),sparse(sum(af,1))) + %!assert(sum(as,2),sparse(sum(af,2))) + %!assert(cumsum(as),sparse(cumsum(af))) + %!assert(cumsum(as,1),sparse(cumsum(af,1))) + %!assert(cumsum(as,2),sparse(cumsum(af,2))) + %!assert(sumsq(as),sparse(sumsq(af))) + %!assert(sumsq(as,1),sparse(sumsq(af,1))) + %!assert(sumsq(as,2),sparse(sumsq(af,2))) + %!assert(prod(as),sparse(prod(af))) + %!assert(prod(as,1),sparse(prod(af,1))) + %!assert(prod(as,2),sparse(prod(af,2))) + %!assert(cumprod(as),sparse(cumprod(af))) + %!assert(cumprod(as,1),sparse(cumprod(af,1))) + %!assert(cumprod(as,2),sparse(cumprod(af,2))) + + %!assert(min(as),sparse(min(af))) + %!assert(full(min(as(:))),min(af(:))) + %!assert(min(as,[],1),sparse(min(af,[],1))) + %!assert(min(as,[],2),sparse(min(af,[],2))) + %!assert(min(as,[],1),sparse(min(af,[],1))) + %!assert(min(as,0),sparse(min(af,0))) + %!assert(min(as,bs),sparse(min(af,bf))) + %!assert(max(as),sparse(max(af))) + %!assert(full(max(as(:))),max(af(:))) + %!assert(max(as,[],1),sparse(max(af,[],1))) + %!assert(max(as,[],2),sparse(max(af,[],2))) + %!assert(max(as,[],1),sparse(max(af,[],1))) + %!assert(max(as,0),sparse(max(af,0))) + %!assert(max(as,bs),sparse(max(af,bf))) + + %!assert(as==as) + %!assert(as==af) + %!assert(af==as) + %!test + %! [ii,jj,vv,nr,nc] = find(as); + %! assert(af,full(sparse(ii,jj,vv,nr,nc))); + %!assert(nnz(as),sum(af(:)!=0)) + %!assert(nnz(as),nnz(af)) + %!assert(issparse(as.')) + %!assert(issparse(as')) + %!assert(issparse(-as)) + %!assert(~as,sparse(~af)) + %!assert(as.', sparse(af.')); + %!assert(as', sparse(af')); + %!assert(-as, sparse(-af)); + %!assert(~as, sparse(~af)); + %!error [i,j]=size(af);as(i-1,j+1); + %!error [i,j]=size(af);as(i+1,j-1); + %!test + %! [Is,Js,Vs] = find(as); + %! [If,Jf,Vf] = find(af); + %! assert(Is,If); + %! assert(Js,Jf); + %! assert(Vs,Vf); + %!error as(0,1); + %!error as(1,0); + %!assert(find(as),find(af)) + %!test + %! [i,j,v] = find(as); + %! [m,n] = size(as); + %! x = sparse(i,j,v,m,n); + %! assert(x,as); + %!test + %! [i,j,v,m,n] = find(as); + %! x = sparse(i,j,v,m,n); + %! assert(x,as); + %!assert(issparse(horzcat(as,as))); + %!assert(issparse(vertcat(as,as))); + %!assert(issparse(cat(1,as,as))); + %!assert(issparse(cat(2,as,as))); + %!assert(issparse([as,as])); + %!assert(issparse([as;as])); + %!assert(horzcat(as,as), sparse([af,af])); + %!assert(vertcat(as,as), sparse([af;af])); + %!assert(horzcat(as,as,as), sparse([af,af,af])); + %!assert(vertcat(as,as,as), sparse([af;af;af])); + %!assert([as,as], sparse([af,af])); + %!assert([as;as], sparse([af;af])); + %!assert([as,as,as], sparse([af,af,af])); + %!assert([as;as;as], sparse([af;af;af])); + %!assert(cat(2,as,as), sparse([af,af])); + %!assert(cat(1,as,as), sparse([af;af])); + %!assert(cat(2,as,as,as), sparse([af,af,af])); + %!assert(cat(1,as,as,as), sparse([af;af;af])); + %!assert(issparse([as,af])); + %!assert(issparse([af,as])); + %!assert([as,af], sparse([af,af])); + %!assert([as;af], sparse([af;af])); + + %% Elementwise binary tests (uses as,af,bs,bf,scalar) + %!assert(as==bs,sparse(af==bf)) + %!assert(bf==as,sparse(bf==af)) + + %!assert(as!=bf,sparse(af!=bf)) + %!assert(bf!=as,sparse(bf!=af)) + + %!assert(as+bf,af+bf) + %!assert(bf+as,bf+af) + + %!assert(as-bf,af-bf) + %!assert(bf-as,bf-af) + + %!assert(as.*bf,sparse(af.*bf)) + %!assert(bf.*as,sparse(bf.*af)) + + %!assert(as./bf,sparse(af./bf),100*eps) + %!assert(bf.\as,sparse(bf.\af),100*eps) + + %!test + %! sv = as.^bf; + %! fv = af.^bf; + %! idx = find(af~=0); + %! assert(sv(:)(idx),sparse(fv(:)(idx)),100*eps) + + %!assert(as==bs,sparse(af==bf)) + %!assert(as!=bs,sparse(af!=bf)) + %!assert(as+bs,sparse(af+bf)) + %!assert(as-bs,sparse(af-bf)) + %!assert(as.*bs,sparse(af.*bf)) + %!xtest assert(as./bs,sparse(af./bf),100*eps); + %!test + %! sv = as.^bs; + %! fv = af.^bf; + %! idx = find(af~=0); + %! assert(sv(:)(idx),sparse(fv(:)(idx)),100*eps) + + %% Matrix-matrix operators (uses af,as,bs,bf) + %!assert(as*bf',af*bf') + %!assert(af*bs',af*bf') + %!assert(as*bs',sparse(af*bf')) + + %% Matrix diagonal tests (uses af,as,bf,bs) + %!assert(diag(as),sparse(diag(af))) + %!assert(diag(bs),sparse(diag(bf))) + %!assert(diag(as,1),sparse(diag(af,1))) + %!assert(diag(bs,1),sparse(diag(bf,1))) + %!assert(diag(as,-1),sparse(diag(af,-1))) + %!assert(diag(bs,-1),sparse(diag(bf,-1))) + %!assert(diag(as(:)),sparse(diag(af(:)))) + %!assert(diag(as(:),1),sparse(diag(af(:),1))) + %!assert(diag(as(:),-1),sparse(diag(af(:),-1))) + %!assert(diag(as(:)'),sparse(diag(af(:)'))) + %!assert(diag(as(:)',1),sparse(diag(af(:)',1))) + %!assert(diag(as(:)',-1),sparse(diag(af(:)',-1))) + %!assert(spdiags(as,[0,1]),[diag(af,0),diag(af,1)]) + %!test [tb,tc]=spdiags(as); + %! assert(spdiags(tb,tc,sparse(zeros(size(as)))),as) + %! assert(spdiags(tb,tc,size(as,1),size(as,2)),as) + + %% Matrix diagonal tests (uses af,as,bf,bs) + %!assert(reshape(as,1,prod(size(as))),sparse(reshape(af,1,prod(size(af))))) + %!assert(reshape(as,prod(size(as)),1),sparse(reshape(af,prod(size(af)),1))) + %!assert(reshape(as,fliplr(size(as))),sparse(reshape(af,fliplr(size(af))))) + %!assert(reshape(bs,1,prod(size(as))),sparse(reshape(bf,1,prod(size(af))))) + %!assert(reshape(bs,prod(size(as)),1),sparse(reshape(bf,prod(size(af)),1))) + %!assert(reshape(bs,fliplr(size(as))),sparse(reshape(bf,fliplr(size(af))))) + + %!testif HAVE_UMFPACK ;# permuted LU + %! [L,U] = lu(bs); + %! assert(L*U,bs,1e-10); + + %!testif HAVE_UMFPACK ;# simple LU + row permutations + %! [L,U,P] = lu(bs); + %! assert(P'*L*U,bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# simple LU + row/col permutations + %! [L,U,P,Q] = lu(bs); + %! assert(P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with vector permutations + %! [L,U,P,Q] = lu(bs,'vector'); + %! assert(L(P,:)*U(:,Q),bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with scaling + %! [L,U,P,Q,R] = lu(bs); + %! assert(R*P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + + # ============================================================== + + %!test # save ascii + %! savefile= tmpnam(); + %! as_save=as; save("-text",savefile,"bf","as_save","af"); + %! clear as_save; + %! load(savefile,"as_save"); + %! unlink(savefile); + %! assert(as_save,sparse(af)); + %!test # save binary + %! savefile= tmpnam(); + %! as_save=as; save("-binary",savefile,"bf","as_save","af"); + %! clear as_save; + %! load(savefile,"as_save"); + %! unlink(savefile); + %! assert(as_save,sparse(af)); + %!testif HAVE_HDF5 # save hdf5 + %! savefile= tmpnam(); + %! as_save=as; save("-hdf5",savefile,"bf","as_save","af"); + %! clear as_save; + %! load(savefile,"as_save"); + %! unlink(savefile); + %! assert(as_save,sparse(af)); + ## FIXME -- we should skip (or mark as an expected failure) the test for + ## saving sparse matrices to MAT files when using 64-bit indexing since + ## that is not implemented yet. + %!test # save matlab + %! savefile= tmpnam(); + %! as_save=as; save("-mat",savefile,"bf","as_save","af"); + %! clear as_save; + %! load(savefile,"as_save"); + %! unlink(savefile); + %! assert(as_save,sparse(af)); + + # ============================================================== + + %!test bf=real(bf); + %!test as=sparse(af); + %!test bs=sparse(bf); + %% Unary matrix tests (uses af,as) + %!assert(abs(as),sparse(abs(af))) + %!assert(acos(as),sparse(acos(af))) + %!assert(acosh(as),sparse(acosh(af))) + %!assert(angle(as),sparse(angle(af))) + %!assert(arg(as),sparse(arg(af))) + %!assert(asin(as),sparse(asin(af))) + %!assert(asinh(as),sparse(asinh(af))) + %!assert(atan(as),sparse(atan(af))) + %!assert(atanh(as),sparse(atanh(af))) + %!assert(ceil(as),sparse(ceil(af))) + %!assert(conj(as),sparse(conj(af))) + %!assert(cos(as),sparse(cos(af))) + %!assert(cosh(as),sparse(cosh(af))) + %!assert(exp(as),sparse(exp(af))) + %!assert(finite(as),sparse(finite(af))) + %!assert(fix(as),sparse(fix(af))) + %!assert(floor(as),sparse(floor(af))) + %!assert(imag(as),sparse(imag(af))) + %!assert(isinf(as),sparse(isinf(af))) + %!assert(isna(as),sparse(isna(af))) + %!assert(isnan(as),sparse(isnan(af))) + %!assert(log(as),sparse(log(af))) + %!assert(real(as),sparse(real(af))) + %!assert(round(as),sparse(round(af))) + %!assert(sign(as),sparse(sign(af))) + %!assert(sin(as),sparse(sin(af))) + %!assert(sinh(as),sparse(sinh(af))) + %!assert(sqrt(as),sparse(sqrt(af))) + %!assert(tan(as),sparse(tan(af))) + %!assert(tanh(as),sparse(tanh(af))) + %!assert(issparse(abs(as))&&isreal(abs(as))) + %!assert(issparse(real(as))&&isreal(real(as))) + %!assert(issparse(imag(as))&&isreal(imag(as))) + + %% Unary matrix tests (uses af,as) + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (1) + %! assert(erf(as),sparse(erf(af))) + %! else + %! assert(erf(as),erf(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (1) + %! assert(erfc(as),sparse(erfc(af))) + %! else + %! assert(erfc(as),erfc(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isalnum(as),sparse(isalnum(af))) + %! else + %! assert(isalnum(as),isalnum(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isalpha(as),sparse(isalpha(af))) + %! else + %! assert(isalpha(as),isalpha(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isascii(as),sparse(isascii(af))) + %! else + %! assert(isascii(as),isascii(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(iscntrl(as),sparse(iscntrl(af))) + %! else + %! assert(iscntrl(as),iscntrl(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isdigit(as),sparse(isdigit(af))) + %! else + %! assert(isdigit(as),isdigit(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isgraph(as),sparse(isgraph(af))) + %! else + %! assert(isgraph(as),isgraph(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(islower(as),sparse(islower(af))) + %! else + %! assert(islower(as),islower(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isprint(as),sparse(isprint(af))) + %! else + %! assert(isprint(as),isprint(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(ispunct(as),sparse(ispunct(af))) + %! else + %! assert(ispunct(as),ispunct(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isspace(as),sparse(isspace(af))) + %! else + %! assert(isspace(as),isspace(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isupper(as),sparse(isupper(af))) + %! else + %! assert(isupper(as),isupper(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isxdigit(as),sparse(isxdigit(af))) + %! else + %! assert(isxdigit(as),isxdigit(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + + %% These mapper functions always return a full matrix + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! assert(toascii(as),toascii(af)) + %! assert(tolower(as),tolower(af)) + %! assert(toupper(as),toupper(af)) + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %% Unary matrix tests (uses af,as) + %!assert(issparse(as)) + %!assert(!issparse(af)) + %!assert(!(issparse(af)&&iscomplex(af))) + %!assert(!(issparse(af)&&isreal(af))) + %!assert(sum(as),sparse(sum(af))) + %!assert(sum(as,1),sparse(sum(af,1))) + %!assert(sum(as,2),sparse(sum(af,2))) + %!assert(cumsum(as),sparse(cumsum(af))) + %!assert(cumsum(as,1),sparse(cumsum(af,1))) + %!assert(cumsum(as,2),sparse(cumsum(af,2))) + %!assert(sumsq(as),sparse(sumsq(af))) + %!assert(sumsq(as,1),sparse(sumsq(af,1))) + %!assert(sumsq(as,2),sparse(sumsq(af,2))) + %!assert(prod(as),sparse(prod(af))) + %!assert(prod(as,1),sparse(prod(af,1))) + %!assert(prod(as,2),sparse(prod(af,2))) + %!assert(cumprod(as),sparse(cumprod(af))) + %!assert(cumprod(as,1),sparse(cumprod(af,1))) + %!assert(cumprod(as,2),sparse(cumprod(af,2))) + + %!assert(min(as),sparse(min(af))) + %!assert(full(min(as(:))),min(af(:))) + %!assert(min(as,[],1),sparse(min(af,[],1))) + %!assert(min(as,[],2),sparse(min(af,[],2))) + %!assert(min(as,[],1),sparse(min(af,[],1))) + %!assert(min(as,0),sparse(min(af,0))) + %!assert(min(as,bs),sparse(min(af,bf))) + %!assert(max(as),sparse(max(af))) + %!assert(full(max(as(:))),max(af(:))) + %!assert(max(as,[],1),sparse(max(af,[],1))) + %!assert(max(as,[],2),sparse(max(af,[],2))) + %!assert(max(as,[],1),sparse(max(af,[],1))) + %!assert(max(as,0),sparse(max(af,0))) + %!assert(max(as,bs),sparse(max(af,bf))) + + %!assert(as==as) + %!assert(as==af) + %!assert(af==as) + %!test + %! [ii,jj,vv,nr,nc] = find(as); + %! assert(af,full(sparse(ii,jj,vv,nr,nc))); + %!assert(nnz(as),sum(af(:)!=0)) + %!assert(nnz(as),nnz(af)) + %!assert(issparse(as.')) + %!assert(issparse(as')) + %!assert(issparse(-as)) + %!assert(~as,sparse(~af)) + %!assert(as.', sparse(af.')); + %!assert(as', sparse(af')); + %!assert(-as, sparse(-af)); + %!assert(~as, sparse(~af)); + %!error [i,j]=size(af);as(i-1,j+1); + %!error [i,j]=size(af);as(i+1,j-1); + %!test + %! [Is,Js,Vs] = find(as); + %! [If,Jf,Vf] = find(af); + %! assert(Is,If); + %! assert(Js,Jf); + %! assert(Vs,Vf); + %!error as(0,1); + %!error as(1,0); + %!assert(find(as),find(af)) + %!test + %! [i,j,v] = find(as); + %! [m,n] = size(as); + %! x = sparse(i,j,v,m,n); + %! assert(x,as); + %!test + %! [i,j,v,m,n] = find(as); + %! x = sparse(i,j,v,m,n); + %! assert(x,as); + %!assert(issparse(horzcat(as,as))); + %!assert(issparse(vertcat(as,as))); + %!assert(issparse(cat(1,as,as))); + %!assert(issparse(cat(2,as,as))); + %!assert(issparse([as,as])); + %!assert(issparse([as;as])); + %!assert(horzcat(as,as), sparse([af,af])); + %!assert(vertcat(as,as), sparse([af;af])); + %!assert(horzcat(as,as,as), sparse([af,af,af])); + %!assert(vertcat(as,as,as), sparse([af;af;af])); + %!assert([as,as], sparse([af,af])); + %!assert([as;as], sparse([af;af])); + %!assert([as,as,as], sparse([af,af,af])); + %!assert([as;as;as], sparse([af;af;af])); + %!assert(cat(2,as,as), sparse([af,af])); + %!assert(cat(1,as,as), sparse([af;af])); + %!assert(cat(2,as,as,as), sparse([af,af,af])); + %!assert(cat(1,as,as,as), sparse([af;af;af])); + %!assert(issparse([as,af])); + %!assert(issparse([af,as])); + %!assert([as,af], sparse([af,af])); + %!assert([as;af], sparse([af;af])); + + %% Elementwise binary tests (uses as,af,bs,bf,scalar) + %!assert(as==bs,sparse(af==bf)) + %!assert(bf==as,sparse(bf==af)) + + %!assert(as!=bf,sparse(af!=bf)) + %!assert(bf!=as,sparse(bf!=af)) + + %!assert(as+bf,af+bf) + %!assert(bf+as,bf+af) + + %!assert(as-bf,af-bf) + %!assert(bf-as,bf-af) + + %!assert(as.*bf,sparse(af.*bf)) + %!assert(bf.*as,sparse(bf.*af)) + + %!assert(as./bf,sparse(af./bf),100*eps) + %!assert(bf.\as,sparse(bf.\af),100*eps) + + %!test + %! sv = as.^bf; + %! fv = af.^bf; + %! idx = find(af~=0); + %! assert(sv(:)(idx),sparse(fv(:)(idx)),100*eps) + + %!assert(as==bs,sparse(af==bf)) + %!assert(as!=bs,sparse(af!=bf)) + %!assert(as+bs,sparse(af+bf)) + %!assert(as-bs,sparse(af-bf)) + %!assert(as.*bs,sparse(af.*bf)) + %!xtest assert(as./bs,sparse(af./bf),100*eps); + %!test + %! sv = as.^bs; + %! fv = af.^bf; + %! idx = find(af~=0); + %! assert(sv(:)(idx),sparse(fv(:)(idx)),100*eps) + + %% Matrix-matrix operators (uses af,as,bs,bf) + %!assert(as*bf',af*bf') + %!assert(af*bs',af*bf') + %!assert(as*bs',sparse(af*bf')) + + %% Matrix diagonal tests (uses af,as,bf,bs) + %!assert(diag(as),sparse(diag(af))) + %!assert(diag(bs),sparse(diag(bf))) + %!assert(diag(as,1),sparse(diag(af,1))) + %!assert(diag(bs,1),sparse(diag(bf,1))) + %!assert(diag(as,-1),sparse(diag(af,-1))) + %!assert(diag(bs,-1),sparse(diag(bf,-1))) + %!assert(diag(as(:)),sparse(diag(af(:)))) + %!assert(diag(as(:),1),sparse(diag(af(:),1))) + %!assert(diag(as(:),-1),sparse(diag(af(:),-1))) + %!assert(diag(as(:)'),sparse(diag(af(:)'))) + %!assert(diag(as(:)',1),sparse(diag(af(:)',1))) + %!assert(diag(as(:)',-1),sparse(diag(af(:)',-1))) + %!assert(spdiags(as,[0,1]),[diag(af,0),diag(af,1)]) + %!test [tb,tc]=spdiags(as); + %! assert(spdiags(tb,tc,sparse(zeros(size(as)))),as) + %! assert(spdiags(tb,tc,size(as,1),size(as,2)),as) + + %% Matrix diagonal tests (uses af,as,bf,bs) + %!assert(reshape(as,1,prod(size(as))),sparse(reshape(af,1,prod(size(af))))) + %!assert(reshape(as,prod(size(as)),1),sparse(reshape(af,prod(size(af)),1))) + %!assert(reshape(as,fliplr(size(as))),sparse(reshape(af,fliplr(size(af))))) + %!assert(reshape(bs,1,prod(size(as))),sparse(reshape(bf,1,prod(size(af))))) + %!assert(reshape(bs,prod(size(as)),1),sparse(reshape(bf,prod(size(af)),1))) + %!assert(reshape(bs,fliplr(size(as))),sparse(reshape(bf,fliplr(size(af))))) + + %!testif HAVE_UMFPACK ;# permuted LU + %! [L,U] = lu(bs); + %! assert(L*U,bs,1e-10); + + %!testif HAVE_UMFPACK ;# simple LU + row permutations + %! [L,U,P] = lu(bs); + %! assert(P'*L*U,bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# simple LU + row/col permutations + %! [L,U,P,Q] = lu(bs); + %! assert(P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with vector permutations + %! [L,U,P,Q] = lu(bs,'vector'); + %! assert(L(P,:)*U(:,Q),bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with scaling + %! [L,U,P,Q,R] = lu(bs); + %! assert(R*P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + + # ============================================================== + + %!assert(as<=bs,sparse(af<=bf)) + %!assert(as>=bs,sparse(af>=bf)) + %!assert(asbs,sparse(af>bf)) + + # ============================================================== + + %!test af=real(af); + %!test as=sparse(af); + %!test bs=sparse(bf); + %% Unary matrix tests (uses af,as) + %!assert(abs(as),sparse(abs(af))) + %!assert(acos(as),sparse(acos(af))) + %!assert(acosh(as),sparse(acosh(af))) + %!assert(angle(as),sparse(angle(af))) + %!assert(arg(as),sparse(arg(af))) + %!assert(asin(as),sparse(asin(af))) + %!assert(asinh(as),sparse(asinh(af))) + %!assert(atan(as),sparse(atan(af))) + %!assert(atanh(as),sparse(atanh(af))) + %!assert(ceil(as),sparse(ceil(af))) + %!assert(conj(as),sparse(conj(af))) + %!assert(cos(as),sparse(cos(af))) + %!assert(cosh(as),sparse(cosh(af))) + %!assert(exp(as),sparse(exp(af))) + %!assert(finite(as),sparse(finite(af))) + %!assert(fix(as),sparse(fix(af))) + %!assert(floor(as),sparse(floor(af))) + %!assert(imag(as),sparse(imag(af))) + %!assert(isinf(as),sparse(isinf(af))) + %!assert(isna(as),sparse(isna(af))) + %!assert(isnan(as),sparse(isnan(af))) + %!assert(log(as),sparse(log(af))) + %!assert(real(as),sparse(real(af))) + %!assert(round(as),sparse(round(af))) + %!assert(sign(as),sparse(sign(af))) + %!assert(sin(as),sparse(sin(af))) + %!assert(sinh(as),sparse(sinh(af))) + %!assert(sqrt(as),sparse(sqrt(af))) + %!assert(tan(as),sparse(tan(af))) + %!assert(tanh(as),sparse(tanh(af))) + %!assert(issparse(abs(as))&&isreal(abs(as))) + %!assert(issparse(real(as))&&isreal(real(as))) + %!assert(issparse(imag(as))&&isreal(imag(as))) + + %% Unary matrix tests (uses af,as) + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (1) + %! assert(erf(as),sparse(erf(af))) + %! else + %! assert(erf(as),erf(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (1) + %! assert(erfc(as),sparse(erfc(af))) + %! else + %! assert(erfc(as),erfc(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isalnum(as),sparse(isalnum(af))) + %! else + %! assert(isalnum(as),isalnum(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isalpha(as),sparse(isalpha(af))) + %! else + %! assert(isalpha(as),isalpha(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isascii(as),sparse(isascii(af))) + %! else + %! assert(isascii(as),isascii(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(iscntrl(as),sparse(iscntrl(af))) + %! else + %! assert(iscntrl(as),iscntrl(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isdigit(as),sparse(isdigit(af))) + %! else + %! assert(isdigit(as),isdigit(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isgraph(as),sparse(isgraph(af))) + %! else + %! assert(isgraph(as),isgraph(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(islower(as),sparse(islower(af))) + %! else + %! assert(islower(as),islower(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isprint(as),sparse(isprint(af))) + %! else + %! assert(isprint(as),isprint(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(ispunct(as),sparse(ispunct(af))) + %! else + %! assert(ispunct(as),ispunct(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isspace(as),sparse(isspace(af))) + %! else + %! assert(isspace(as),isspace(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isupper(as),sparse(isupper(af))) + %! else + %! assert(isupper(as),isupper(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isxdigit(as),sparse(isxdigit(af))) + %! else + %! assert(isxdigit(as),isxdigit(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + + %% These mapper functions always return a full matrix + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! assert(toascii(as),toascii(af)) + %! assert(tolower(as),tolower(af)) + %! assert(toupper(as),toupper(af)) + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %% Unary matrix tests (uses af,as) + %!assert(issparse(as)) + %!assert(!issparse(af)) + %!assert(!(issparse(af)&&iscomplex(af))) + %!assert(!(issparse(af)&&isreal(af))) + %!assert(sum(as),sparse(sum(af))) + %!assert(sum(as,1),sparse(sum(af,1))) + %!assert(sum(as,2),sparse(sum(af,2))) + %!assert(cumsum(as),sparse(cumsum(af))) + %!assert(cumsum(as,1),sparse(cumsum(af,1))) + %!assert(cumsum(as,2),sparse(cumsum(af,2))) + %!assert(sumsq(as),sparse(sumsq(af))) + %!assert(sumsq(as,1),sparse(sumsq(af,1))) + %!assert(sumsq(as,2),sparse(sumsq(af,2))) + %!assert(prod(as),sparse(prod(af))) + %!assert(prod(as,1),sparse(prod(af,1))) + %!assert(prod(as,2),sparse(prod(af,2))) + %!assert(cumprod(as),sparse(cumprod(af))) + %!assert(cumprod(as,1),sparse(cumprod(af,1))) + %!assert(cumprod(as,2),sparse(cumprod(af,2))) + + %!assert(min(as),sparse(min(af))) + %!assert(full(min(as(:))),min(af(:))) + %!assert(min(as,[],1),sparse(min(af,[],1))) + %!assert(min(as,[],2),sparse(min(af,[],2))) + %!assert(min(as,[],1),sparse(min(af,[],1))) + %!assert(min(as,0),sparse(min(af,0))) + %!assert(min(as,bs),sparse(min(af,bf))) + %!assert(max(as),sparse(max(af))) + %!assert(full(max(as(:))),max(af(:))) + %!assert(max(as,[],1),sparse(max(af,[],1))) + %!assert(max(as,[],2),sparse(max(af,[],2))) + %!assert(max(as,[],1),sparse(max(af,[],1))) + %!assert(max(as,0),sparse(max(af,0))) + %!assert(max(as,bs),sparse(max(af,bf))) + + %!assert(as==as) + %!assert(as==af) + %!assert(af==as) + %!test + %! [ii,jj,vv,nr,nc] = find(as); + %! assert(af,full(sparse(ii,jj,vv,nr,nc))); + %!assert(nnz(as),sum(af(:)!=0)) + %!assert(nnz(as),nnz(af)) + %!assert(issparse(as.')) + %!assert(issparse(as')) + %!assert(issparse(-as)) + %!assert(~as,sparse(~af)) + %!assert(as.', sparse(af.')); + %!assert(as', sparse(af')); + %!assert(-as, sparse(-af)); + %!assert(~as, sparse(~af)); + %!error [i,j]=size(af);as(i-1,j+1); + %!error [i,j]=size(af);as(i+1,j-1); + %!test + %! [Is,Js,Vs] = find(as); + %! [If,Jf,Vf] = find(af); + %! assert(Is,If); + %! assert(Js,Jf); + %! assert(Vs,Vf); + %!error as(0,1); + %!error as(1,0); + %!assert(find(as),find(af)) + %!test + %! [i,j,v] = find(as); + %! [m,n] = size(as); + %! x = sparse(i,j,v,m,n); + %! assert(x,as); + %!test + %! [i,j,v,m,n] = find(as); + %! x = sparse(i,j,v,m,n); + %! assert(x,as); + %!assert(issparse(horzcat(as,as))); + %!assert(issparse(vertcat(as,as))); + %!assert(issparse(cat(1,as,as))); + %!assert(issparse(cat(2,as,as))); + %!assert(issparse([as,as])); + %!assert(issparse([as;as])); + %!assert(horzcat(as,as), sparse([af,af])); + %!assert(vertcat(as,as), sparse([af;af])); + %!assert(horzcat(as,as,as), sparse([af,af,af])); + %!assert(vertcat(as,as,as), sparse([af;af;af])); + %!assert([as,as], sparse([af,af])); + %!assert([as;as], sparse([af;af])); + %!assert([as,as,as], sparse([af,af,af])); + %!assert([as;as;as], sparse([af;af;af])); + %!assert(cat(2,as,as), sparse([af,af])); + %!assert(cat(1,as,as), sparse([af;af])); + %!assert(cat(2,as,as,as), sparse([af,af,af])); + %!assert(cat(1,as,as,as), sparse([af;af;af])); + %!assert(issparse([as,af])); + %!assert(issparse([af,as])); + %!assert([as,af], sparse([af,af])); + %!assert([as;af], sparse([af;af])); + + %% Elementwise binary tests (uses as,af,bs,bf,scalar) + %!assert(as==bs,sparse(af==bf)) + %!assert(bf==as,sparse(bf==af)) + + %!assert(as!=bf,sparse(af!=bf)) + %!assert(bf!=as,sparse(bf!=af)) + + %!assert(as+bf,af+bf) + %!assert(bf+as,bf+af) + + %!assert(as-bf,af-bf) + %!assert(bf-as,bf-af) + + %!assert(as.*bf,sparse(af.*bf)) + %!assert(bf.*as,sparse(bf.*af)) + + %!assert(as./bf,sparse(af./bf),100*eps) + %!assert(bf.\as,sparse(bf.\af),100*eps) + + %!test + %! sv = as.^bf; + %! fv = af.^bf; + %! idx = find(af~=0); + %! assert(sv(:)(idx),sparse(fv(:)(idx)),100*eps) + + %!assert(as==bs,sparse(af==bf)) + %!assert(as!=bs,sparse(af!=bf)) + %!assert(as+bs,sparse(af+bf)) + %!assert(as-bs,sparse(af-bf)) + %!assert(as.*bs,sparse(af.*bf)) + %!xtest assert(as./bs,sparse(af./bf),100*eps); + %!test + %! sv = as.^bs; + %! fv = af.^bf; + %! idx = find(af~=0); + %! assert(sv(:)(idx),sparse(fv(:)(idx)),100*eps) + + %% Matrix-matrix operators (uses af,as,bs,bf) + %!assert(as*bf',af*bf') + %!assert(af*bs',af*bf') + %!assert(as*bs',sparse(af*bf')) + + %% Matrix diagonal tests (uses af,as,bf,bs) + %!assert(diag(as),sparse(diag(af))) + %!assert(diag(bs),sparse(diag(bf))) + %!assert(diag(as,1),sparse(diag(af,1))) + %!assert(diag(bs,1),sparse(diag(bf,1))) + %!assert(diag(as,-1),sparse(diag(af,-1))) + %!assert(diag(bs,-1),sparse(diag(bf,-1))) + %!assert(diag(as(:)),sparse(diag(af(:)))) + %!assert(diag(as(:),1),sparse(diag(af(:),1))) + %!assert(diag(as(:),-1),sparse(diag(af(:),-1))) + %!assert(diag(as(:)'),sparse(diag(af(:)'))) + %!assert(diag(as(:)',1),sparse(diag(af(:)',1))) + %!assert(diag(as(:)',-1),sparse(diag(af(:)',-1))) + %!assert(spdiags(as,[0,1]),[diag(af,0),diag(af,1)]) + %!test [tb,tc]=spdiags(as); + %! assert(spdiags(tb,tc,sparse(zeros(size(as)))),as) + %! assert(spdiags(tb,tc,size(as,1),size(as,2)),as) + + %% Matrix diagonal tests (uses af,as,bf,bs) + %!assert(reshape(as,1,prod(size(as))),sparse(reshape(af,1,prod(size(af))))) + %!assert(reshape(as,prod(size(as)),1),sparse(reshape(af,prod(size(af)),1))) + %!assert(reshape(as,fliplr(size(as))),sparse(reshape(af,fliplr(size(af))))) + %!assert(reshape(bs,1,prod(size(as))),sparse(reshape(bf,1,prod(size(af))))) + %!assert(reshape(bs,prod(size(as)),1),sparse(reshape(bf,prod(size(af)),1))) + %!assert(reshape(bs,fliplr(size(as))),sparse(reshape(bf,fliplr(size(af))))) + + %!testif HAVE_UMFPACK ;# permuted LU + %! [L,U] = lu(bs); + %! assert(L*U,bs,1e-10); + + %!testif HAVE_UMFPACK ;# simple LU + row permutations + %! [L,U,P] = lu(bs); + %! assert(P'*L*U,bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# simple LU + row/col permutations + %! [L,U,P,Q] = lu(bs); + %! assert(P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with vector permutations + %! [L,U,P,Q] = lu(bs,'vector'); + %! assert(L(P,:)*U(:,Q),bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with scaling + %! [L,U,P,Q,R] = lu(bs); + %! assert(R*P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + + # ============================================================== + + %!test # save ascii + %! savefile= tmpnam(); + %! as_save=as; save("-text",savefile,"bf","as_save","af"); + %! clear as_save; + %! load(savefile,"as_save"); + %! unlink(savefile); + %! assert(as_save,sparse(af)); + %!test # save binary + %! savefile= tmpnam(); + %! as_save=as; save("-binary",savefile,"bf","as_save","af"); + %! clear as_save; + %! load(savefile,"as_save"); + %! unlink(savefile); + %! assert(as_save,sparse(af)); + %!testif HAVE_HDF5 # save hdf5 + %! savefile= tmpnam(); + %! as_save=as; save("-hdf5",savefile,"bf","as_save","af"); + %! clear as_save; + %! load(savefile,"as_save"); + %! unlink(savefile); + %! assert(as_save,sparse(af)); + ## FIXME -- we should skip (or mark as an expected failure) the test for + ## saving sparse matrices to MAT files when using 64-bit indexing since + ## that is not implemented yet. + %!test # save matlab + %! savefile= tmpnam(); + %! as_save=as; save("-mat",savefile,"bf","as_save","af"); + %! clear as_save; + %! load(savefile,"as_save"); + %! unlink(savefile); + %! assert(as_save,sparse(af)); + + # ============================================================== + + %!test bf=bf+1i*(bf~=0); + %!test as=sparse(af); + %!test bs=sparse(bf); + %% Unary matrix tests (uses af,as) + %!assert(abs(as),sparse(abs(af))) + %!assert(acos(as),sparse(acos(af))) + %!assert(acosh(as),sparse(acosh(af))) + %!assert(angle(as),sparse(angle(af))) + %!assert(arg(as),sparse(arg(af))) + %!assert(asin(as),sparse(asin(af))) + %!assert(asinh(as),sparse(asinh(af))) + %!assert(atan(as),sparse(atan(af))) + %!assert(atanh(as),sparse(atanh(af))) + %!assert(ceil(as),sparse(ceil(af))) + %!assert(conj(as),sparse(conj(af))) + %!assert(cos(as),sparse(cos(af))) + %!assert(cosh(as),sparse(cosh(af))) + %!assert(exp(as),sparse(exp(af))) + %!assert(finite(as),sparse(finite(af))) + %!assert(fix(as),sparse(fix(af))) + %!assert(floor(as),sparse(floor(af))) + %!assert(imag(as),sparse(imag(af))) + %!assert(isinf(as),sparse(isinf(af))) + %!assert(isna(as),sparse(isna(af))) + %!assert(isnan(as),sparse(isnan(af))) + %!assert(log(as),sparse(log(af))) + %!assert(real(as),sparse(real(af))) + %!assert(round(as),sparse(round(af))) + %!assert(sign(as),sparse(sign(af))) + %!assert(sin(as),sparse(sin(af))) + %!assert(sinh(as),sparse(sinh(af))) + %!assert(sqrt(as),sparse(sqrt(af))) + %!assert(tan(as),sparse(tan(af))) + %!assert(tanh(as),sparse(tanh(af))) + %!assert(issparse(abs(as))&&isreal(abs(as))) + %!assert(issparse(real(as))&&isreal(real(as))) + %!assert(issparse(imag(as))&&isreal(imag(as))) + + %% Unary matrix tests (uses af,as) + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (1) + %! assert(erf(as),sparse(erf(af))) + %! else + %! assert(erf(as),erf(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (1) + %! assert(erfc(as),sparse(erfc(af))) + %! else + %! assert(erfc(as),erfc(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isalnum(as),sparse(isalnum(af))) + %! else + %! assert(isalnum(as),isalnum(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isalpha(as),sparse(isalpha(af))) + %! else + %! assert(isalpha(as),isalpha(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isascii(as),sparse(isascii(af))) + %! else + %! assert(isascii(as),isascii(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(iscntrl(as),sparse(iscntrl(af))) + %! else + %! assert(iscntrl(as),iscntrl(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isdigit(as),sparse(isdigit(af))) + %! else + %! assert(isdigit(as),isdigit(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isgraph(as),sparse(isgraph(af))) + %! else + %! assert(isgraph(as),isgraph(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(islower(as),sparse(islower(af))) + %! else + %! assert(islower(as),islower(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isprint(as),sparse(isprint(af))) + %! else + %! assert(isprint(as),isprint(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(ispunct(as),sparse(ispunct(af))) + %! else + %! assert(ispunct(as),ispunct(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isspace(as),sparse(isspace(af))) + %! else + %! assert(isspace(as),isspace(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isupper(as),sparse(isupper(af))) + %! else + %! assert(isupper(as),isupper(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! if (0) + %! assert(isxdigit(as),sparse(isxdigit(af))) + %! else + %! assert(isxdigit(as),isxdigit(af)) + %! endif + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + + %% These mapper functions always return a full matrix + %!test + %! wn2s = warning ("query", "Octave:num-to-str"); + %! warning ("off", "Octave:num-to-str"); + %! if isreal(af) + %! assert(toascii(as),toascii(af)) + %! assert(tolower(as),tolower(af)) + %! assert(toupper(as),toupper(af)) + %! endif + %! warning (wn2s.state, "Octave:num-to-str"); + + %% Unary matrix tests (uses af,as) + %!assert(issparse(as)) + %!assert(!issparse(af)) + %!assert(!(issparse(af)&&iscomplex(af))) + %!assert(!(issparse(af)&&isreal(af))) + %!assert(sum(as),sparse(sum(af))) + %!assert(sum(as,1),sparse(sum(af,1))) + %!assert(sum(as,2),sparse(sum(af,2))) + %!assert(cumsum(as),sparse(cumsum(af))) + %!assert(cumsum(as,1),sparse(cumsum(af,1))) + %!assert(cumsum(as,2),sparse(cumsum(af,2))) + %!assert(sumsq(as),sparse(sumsq(af))) + %!assert(sumsq(as,1),sparse(sumsq(af,1))) + %!assert(sumsq(as,2),sparse(sumsq(af,2))) + %!assert(prod(as),sparse(prod(af))) + %!assert(prod(as,1),sparse(prod(af,1))) + %!assert(prod(as,2),sparse(prod(af,2))) + %!assert(cumprod(as),sparse(cumprod(af))) + %!assert(cumprod(as,1),sparse(cumprod(af,1))) + %!assert(cumprod(as,2),sparse(cumprod(af,2))) + + %!assert(min(as),sparse(min(af))) + %!assert(full(min(as(:))),min(af(:))) + %!assert(min(as,[],1),sparse(min(af,[],1))) + %!assert(min(as,[],2),sparse(min(af,[],2))) + %!assert(min(as,[],1),sparse(min(af,[],1))) + %!assert(min(as,0),sparse(min(af,0))) + %!assert(min(as,bs),sparse(min(af,bf))) + %!assert(max(as),sparse(max(af))) + %!assert(full(max(as(:))),max(af(:))) + %!assert(max(as,[],1),sparse(max(af,[],1))) + %!assert(max(as,[],2),sparse(max(af,[],2))) + %!assert(max(as,[],1),sparse(max(af,[],1))) + %!assert(max(as,0),sparse(max(af,0))) + %!assert(max(as,bs),sparse(max(af,bf))) + + %!assert(as==as) + %!assert(as==af) + %!assert(af==as) + %!test + %! [ii,jj,vv,nr,nc] = find(as); + %! assert(af,full(sparse(ii,jj,vv,nr,nc))); + %!assert(nnz(as),sum(af(:)!=0)) + %!assert(nnz(as),nnz(af)) + %!assert(issparse(as.')) + %!assert(issparse(as')) + %!assert(issparse(-as)) + %!assert(~as,sparse(~af)) + %!assert(as.', sparse(af.')); + %!assert(as', sparse(af')); + %!assert(-as, sparse(-af)); + %!assert(~as, sparse(~af)); + %!error [i,j]=size(af);as(i-1,j+1); + %!error [i,j]=size(af);as(i+1,j-1); + %!test + %! [Is,Js,Vs] = find(as); + %! [If,Jf,Vf] = find(af); + %! assert(Is,If); + %! assert(Js,Jf); + %! assert(Vs,Vf); + %!error as(0,1); + %!error as(1,0); + %!assert(find(as),find(af)) + %!test + %! [i,j,v] = find(as); + %! [m,n] = size(as); + %! x = sparse(i,j,v,m,n); + %! assert(x,as); + %!test + %! [i,j,v,m,n] = find(as); + %! x = sparse(i,j,v,m,n); + %! assert(x,as); + %!assert(issparse(horzcat(as,as))); + %!assert(issparse(vertcat(as,as))); + %!assert(issparse(cat(1,as,as))); + %!assert(issparse(cat(2,as,as))); + %!assert(issparse([as,as])); + %!assert(issparse([as;as])); + %!assert(horzcat(as,as), sparse([af,af])); + %!assert(vertcat(as,as), sparse([af;af])); + %!assert(horzcat(as,as,as), sparse([af,af,af])); + %!assert(vertcat(as,as,as), sparse([af;af;af])); + %!assert([as,as], sparse([af,af])); + %!assert([as;as], sparse([af;af])); + %!assert([as,as,as], sparse([af,af,af])); + %!assert([as;as;as], sparse([af;af;af])); + %!assert(cat(2,as,as), sparse([af,af])); + %!assert(cat(1,as,as), sparse([af;af])); + %!assert(cat(2,as,as,as), sparse([af,af,af])); + %!assert(cat(1,as,as,as), sparse([af;af;af])); + %!assert(issparse([as,af])); + %!assert(issparse([af,as])); + %!assert([as,af], sparse([af,af])); + %!assert([as;af], sparse([af;af])); + + %% Elementwise binary tests (uses as,af,bs,bf,scalar) + %!assert(as==bs,sparse(af==bf)) + %!assert(bf==as,sparse(bf==af)) + + %!assert(as!=bf,sparse(af!=bf)) + %!assert(bf!=as,sparse(bf!=af)) + + %!assert(as+bf,af+bf) + %!assert(bf+as,bf+af) + + %!assert(as-bf,af-bf) + %!assert(bf-as,bf-af) + + %!assert(as.*bf,sparse(af.*bf)) + %!assert(bf.*as,sparse(bf.*af)) + + %!assert(as./bf,sparse(af./bf),100*eps) + %!assert(bf.\as,sparse(bf.\af),100*eps) + + %!test + %! sv = as.^bf; + %! fv = af.^bf; + %! idx = find(af~=0); + %! assert(sv(:)(idx),sparse(fv(:)(idx)),100*eps) + + %!assert(as==bs,sparse(af==bf)) + %!assert(as!=bs,sparse(af!=bf)) + %!assert(as+bs,sparse(af+bf)) + %!assert(as-bs,sparse(af-bf)) + %!assert(as.*bs,sparse(af.*bf)) + %!xtest assert(as./bs,sparse(af./bf),100*eps); + %!test + %! sv = as.^bs; + %! fv = af.^bf; + %! idx = find(af~=0); + %! assert(sv(:)(idx),sparse(fv(:)(idx)),100*eps) + + %% Matrix-matrix operators (uses af,as,bs,bf) + %!assert(as*bf',af*bf') + %!assert(af*bs',af*bf') + %!assert(as*bs',sparse(af*bf')) + + %% Matrix diagonal tests (uses af,as,bf,bs) + %!assert(diag(as),sparse(diag(af))) + %!assert(diag(bs),sparse(diag(bf))) + %!assert(diag(as,1),sparse(diag(af,1))) + %!assert(diag(bs,1),sparse(diag(bf,1))) + %!assert(diag(as,-1),sparse(diag(af,-1))) + %!assert(diag(bs,-1),sparse(diag(bf,-1))) + %!assert(diag(as(:)),sparse(diag(af(:)))) + %!assert(diag(as(:),1),sparse(diag(af(:),1))) + %!assert(diag(as(:),-1),sparse(diag(af(:),-1))) + %!assert(diag(as(:)'),sparse(diag(af(:)'))) + %!assert(diag(as(:)',1),sparse(diag(af(:)',1))) + %!assert(diag(as(:)',-1),sparse(diag(af(:)',-1))) + %!assert(spdiags(as,[0,1]),[diag(af,0),diag(af,1)]) + %!test [tb,tc]=spdiags(as); + %! assert(spdiags(tb,tc,sparse(zeros(size(as)))),as) + %! assert(spdiags(tb,tc,size(as,1),size(as,2)),as) + + %% Matrix diagonal tests (uses af,as,bf,bs) + %!assert(reshape(as,1,prod(size(as))),sparse(reshape(af,1,prod(size(af))))) + %!assert(reshape(as,prod(size(as)),1),sparse(reshape(af,prod(size(af)),1))) + %!assert(reshape(as,fliplr(size(as))),sparse(reshape(af,fliplr(size(af))))) + %!assert(reshape(bs,1,prod(size(as))),sparse(reshape(bf,1,prod(size(af))))) + %!assert(reshape(bs,prod(size(as)),1),sparse(reshape(bf,prod(size(af)),1))) + %!assert(reshape(bs,fliplr(size(as))),sparse(reshape(bf,fliplr(size(af))))) + + %!testif HAVE_UMFPACK ;# permuted LU + %! [L,U] = lu(bs); + %! assert(L*U,bs,1e-10); + + %!testif HAVE_UMFPACK ;# simple LU + row permutations + %! [L,U,P] = lu(bs); + %! assert(P'*L*U,bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# simple LU + row/col permutations + %! [L,U,P,Q] = lu(bs); + %! assert(P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with vector permutations + %! [L,U,P,Q] = lu(bs,'vector'); + %! assert(L(P,:)*U(:,Q),bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with scaling + %! [L,U,P,Q,R] = lu(bs); + %! assert(R*P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + + # ============================================================== + + %!test af=[1+1i,2-1i,0,0;0,0,0,3+2i;0,0,0,4]; + %! as=sparse(af); + %!test bf=[0,1-1i,0,0;2+1i,0,0,0;3-1i,2+3i,0,0]; + %!test ;# invertible matrix + %! bf=af'*bf+max(abs([af(:);bf(:)]))*sparse(eye(columns(as))); + %! bs=sparse(bf); + + %% Matrix-matrix operators (uses af,as,bs,bf) + %!assert(as/bf,af/bf,100*eps) + %!assert(af/bs,af/bf,100*eps) + %!assert(as/bs,sparse(af/bf),100*eps) + %!assert(bs\af',bf\af',100*eps) + %!assert(bf\as',bf\af',100*eps) + %!assert(bs\as',sparse(bf\af'),100*eps) + + %!testif HAVE_UMFPACK + %! assert(det(bs+speye(size(bs))),det(bf+eye(size(bf))),100*eps*abs(det(bf+eye(size(bf))))) + + %!testif HAVE_UMFPACK + %! [l,u]=lu(sparse([1,1;1,1])); + %! assert(l*u,[1,1;1,1],10*eps); + + %!testif HAVE_UMFPACK + %! [l,u]=lu(sparse([1,1;1,1+i])); + %! assert(l,sparse([1,2,2],[1,1,2],1),10*eps); + %! assert(u,sparse([1,1,2],[1,2,2],[1,1,1i]),10*eps); + + %!testif HAVE_UMFPACK ;# permuted LU + %! [L,U] = lu(bs); + %! assert(L*U,bs,1e-10); + + %!testif HAVE_UMFPACK ;# simple LU + row permutations + %! [L,U,P] = lu(bs); + %! assert(P'*L*U,bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# simple LU + row/col permutations + %! [L,U,P,Q] = lu(bs); + %! assert(P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with vector permutations + %! [L,U,P,Q] = lu(bs,'vector'); + %! assert(L(P,:)*U(:,Q),bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with scaling + %! [L,U,P,Q,R] = lu(bs); + %! assert(R*P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# inverse + %! assert(inv(bs)*bs,sparse(eye(rows(bs))),1e-10); + + %!assert(bf\as',bf\af',100*eps); + %!assert(bs\af',bf\af',100*eps); + %!assert(bs\as',sparse(bf\af'),100*eps); + + + # ============================================================== + + %!test bf=real(bf); + %! bs=sparse(bf); + %% Matrix-matrix operators (uses af,as,bs,bf) + %!assert(as/bf,af/bf,100*eps) + %!assert(af/bs,af/bf,100*eps) + %!assert(as/bs,sparse(af/bf),100*eps) + %!assert(bs\af',bf\af',100*eps) + %!assert(bf\as',bf\af',100*eps) + %!assert(bs\as',sparse(bf\af'),100*eps) + + %!testif HAVE_UMFPACK + %! assert(det(bs+speye(size(bs))),det(bf+eye(size(bf))),100*eps*abs(det(bf+eye(size(bf))))) + + %!testif HAVE_UMFPACK + %! [l,u]=lu(sparse([1,1;1,1])); + %! assert(l*u,[1,1;1,1],10*eps); + + %!testif HAVE_UMFPACK + %! [l,u]=lu(sparse([1,1;1,1+i])); + %! assert(l,sparse([1,2,2],[1,1,2],1),10*eps); + %! assert(u,sparse([1,1,2],[1,2,2],[1,1,1i]),10*eps); + + %!testif HAVE_UMFPACK ;# permuted LU + %! [L,U] = lu(bs); + %! assert(L*U,bs,1e-10); + + %!testif HAVE_UMFPACK ;# simple LU + row permutations + %! [L,U,P] = lu(bs); + %! assert(P'*L*U,bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# simple LU + row/col permutations + %! [L,U,P,Q] = lu(bs); + %! assert(P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with vector permutations + %! [L,U,P,Q] = lu(bs,'vector'); + %! assert(L(P,:)*U(:,Q),bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with scaling + %! [L,U,P,Q,R] = lu(bs); + %! assert(R*P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# inverse + %! assert(inv(bs)*bs,sparse(eye(rows(bs))),1e-10); + + %!assert(bf\as',bf\af',100*eps); + %!assert(bs\af',bf\af',100*eps); + %!assert(bs\as',sparse(bf\af'),100*eps); + + + # ============================================================== + + %!test af=real(af); + %! as=sparse(af); + %% Matrix-matrix operators (uses af,as,bs,bf) + %!assert(as/bf,af/bf,100*eps) + %!assert(af/bs,af/bf,100*eps) + %!assert(as/bs,sparse(af/bf),100*eps) + %!assert(bs\af',bf\af',100*eps) + %!assert(bf\as',bf\af',100*eps) + %!assert(bs\as',sparse(bf\af'),100*eps) + + %!testif HAVE_UMFPACK + %! assert(det(bs+speye(size(bs))),det(bf+eye(size(bf))),100*eps*abs(det(bf+eye(size(bf))))) + + %!testif HAVE_UMFPACK + %! [l,u]=lu(sparse([1,1;1,1])); + %! assert(l*u,[1,1;1,1],10*eps); + + %!testif HAVE_UMFPACK + %! [l,u]=lu(sparse([1,1;1,1+i])); + %! assert(l,sparse([1,2,2],[1,1,2],1),10*eps); + %! assert(u,sparse([1,1,2],[1,2,2],[1,1,1i]),10*eps); + + %!testif HAVE_UMFPACK ;# permuted LU + %! [L,U] = lu(bs); + %! assert(L*U,bs,1e-10); + + %!testif HAVE_UMFPACK ;# simple LU + row permutations + %! [L,U,P] = lu(bs); + %! assert(P'*L*U,bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# simple LU + row/col permutations + %! [L,U,P,Q] = lu(bs); + %! assert(P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with vector permutations + %! [L,U,P,Q] = lu(bs,'vector'); + %! assert(L(P,:)*U(:,Q),bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with scaling + %! [L,U,P,Q,R] = lu(bs); + %! assert(R*P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# inverse + %! assert(inv(bs)*bs,sparse(eye(rows(bs))),1e-10); + + %!assert(bf\as',bf\af',100*eps); + %!assert(bs\af',bf\af',100*eps); + %!assert(bs\as',sparse(bf\af'),100*eps); + + + # ============================================================== + + %!test bf=bf+1i*(bf~=0); + %! bs=sparse(bf); + %% Matrix-matrix operators (uses af,as,bs,bf) + %!assert(as/bf,af/bf,100*eps) + %!assert(af/bs,af/bf,100*eps) + %!assert(as/bs,sparse(af/bf),100*eps) + %!assert(bs\af',bf\af',100*eps) + %!assert(bf\as',bf\af',100*eps) + %!assert(bs\as',sparse(bf\af'),100*eps) + + %!testif HAVE_UMFPACK + %! assert(det(bs+speye(size(bs))),det(bf+eye(size(bf))),100*eps*abs(det(bf+eye(size(bf))))) + + %!testif HAVE_UMFPACK + %! [l,u]=lu(sparse([1,1;1,1])); + %! assert(l*u,[1,1;1,1],10*eps); + + %!testif HAVE_UMFPACK + %! [l,u]=lu(sparse([1,1;1,1+i])); + %! assert(l,sparse([1,2,2],[1,1,2],1),10*eps); + %! assert(u,sparse([1,1,2],[1,2,2],[1,1,1i]),10*eps); + + %!testif HAVE_UMFPACK ;# permuted LU + %! [L,U] = lu(bs); + %! assert(L*U,bs,1e-10); + + %!testif HAVE_UMFPACK ;# simple LU + row permutations + %! [L,U,P] = lu(bs); + %! assert(P'*L*U,bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# simple LU + row/col permutations + %! [L,U,P,Q] = lu(bs); + %! assert(P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with vector permutations + %! [L,U,P,Q] = lu(bs,'vector'); + %! assert(L(P,:)*U(:,Q),bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# LU with scaling + %! [L,U,P,Q,R] = lu(bs); + %! assert(R*P'*L*U*Q',bs,1e-10); + %! # triangularity + %! [i,j,v]=find(L); + %! assert(i-j>=0); + %! [i,j,v]=find(U); + %! assert(j-i>=0); + + %!testif HAVE_UMFPACK ;# inverse + %! assert(inv(bs)*bs,sparse(eye(rows(bs))),1e-10); + + %!assert(bf\as',bf\af',100*eps); + %!assert(bs\af',bf\af',100*eps); + %!assert(bs\as',sparse(bf\af'),100*eps); + + + # ============================================================== + + %!test bf=[5,0,1+1i,0;0,5,0,1-2i;1-1i,0,5,0;0,1+2i,0,5]; + %! bs=sparse(bf); + %!testif HAVE_CHOLMOD + %! assert(chol(bs)'*chol(bs),bs,1e-10); + %!testif HAVE_CHOLMOD + %! assert(chol(bs,'lower')*chol(bs,'lower')',bs,1e-10); + %!testif HAVE_CHOLMOD + %! assert(chol(bs,'lower'),chol(bs)',1e-10); + + %!testif HAVE_CHOLMOD ;# Return Partial Cholesky factorization + %! [RS,PS] = chol(bs); + %! assert(RS'*RS,bs,1e-10); + %! assert(PS,0); + %! [LS,PS] = chol(bs,'lower'); + %! assert(LS*LS',bs,1e-10); + %! assert(PS,0); + + %!testif HAVE_CHOLMOD ;# Permuted Cholesky factorization + %! [RS,PS,QS] = chol(bs); + %! assert(RS'*RS,QS*bs*QS',1e-10); + %! assert(PS,0); + %! [LS,PS,QS] = chol(bs,'lower'); + %! assert(LS*LS',QS*bs*QS',1e-10); + %! assert(PS,0); + + + # ============================================================== + + %!test bf=real(bf); + %! bs=sparse(bf); + %!testif HAVE_CHOLMOD + %! assert(chol(bs)'*chol(bs),bs,1e-10); + %!testif HAVE_CHOLMOD + %! assert(chol(bs,'lower')*chol(bs,'lower')',bs,1e-10); + %!testif HAVE_CHOLMOD + %! assert(chol(bs,'lower'),chol(bs)',1e-10); + + %!testif HAVE_CHOLMOD ;# Return Partial Cholesky factorization + %! [RS,PS] = chol(bs); + %! assert(RS'*RS,bs,1e-10); + %! assert(PS,0); + %! [LS,PS] = chol(bs,'lower'); + %! assert(LS*LS',bs,1e-10); + %! assert(PS,0); + + %!testif HAVE_CHOLMOD ;# Permuted Cholesky factorization + %! [RS,PS,QS] = chol(bs); + %! assert(RS'*RS,QS*bs*QS',1e-10); + %! assert(PS,0); + %! [LS,PS,QS] = chol(bs,'lower'); + %! assert(LS*LS',QS*bs*QS',1e-10); + %! assert(PS,0); + + + # ============================================================== + + %!shared r,c,m,n,fsum,funiq + %!test + %! r=[1,1,2,1,2,3]; + %! c=[2,1,1,1,2,1]; + %! m=n=0; + %%Assembly tests + %!test + %! m=max([m;r(:)]); + %! n=max([n;c(:)]); + %! funiq=fsum=zeros(m,n); + %! funiq(r(:) + m*(c(:)-1) ) = ones(size(r(:))); + %! funiq = sparse(funiq); + %! for k=1:length(r), fsum(r(k),c(k)) += 1; end + %! fsum = sparse(fsum); + %!assert(sparse(r,c,1),sparse(fsum(1:max(r),1:max(c)))); + %!assert(sparse(r,c,1,"sum"),sparse(fsum(1:max(r),1:max(c)))); + %!assert(sparse(r,c,1,"unique"),sparse(funiq(1:max(r),1:max(c)))); + %!assert(sparse(r,c,1,m,n),sparse(fsum)); + %!assert(sparse(r,c,1,m,n,"sum"),sparse(fsum)); + %!assert(sparse(r,c,1,m,n,"unique"),sparse(funiq)); + + %!assert(sparse(r,c,1i),sparse(fsum(1:max(r),1:max(c))*1i)); + %!assert(sparse(r,c,1i,"sum"),sparse(fsum(1:max(r),1:max(c))*1i)); + %!assert(sparse(r,c,1i,"unique"),sparse(funiq(1:max(r),1:max(c))*1i)); + %!assert(sparse(r,c,1i,m,n),sparse(fsum*1i)); + %!assert(sparse(r,c,1i,m,n,"sum"),sparse(fsum*1i)); + %!assert(sparse(r,c,1i,m,n,"unique"),sparse(funiq*1i)); + + %!test + %! if (issparse(funiq)) + %! assert(sparse(full(1i*funiq)),sparse(1i*funiq)); + %! endif + + %!assert(sparse(full(funiq)),funiq); + + + + # ============================================================== + + %!shared ridx,cidx,idx,as,af + %!test + %! af=[1+1i,2-1i,0,0;0,0,0,3+2i;0,0,0,4]; + %! ridx=[1,3]; cidx=[2,3]; + %!assert (sparse(42)([1,1]),sparse([42,42])) + %!assert (sparse(42*1i)([1,1]),sparse([42,42].*1i)) + %!test as=sparse(af); + + %% Point tests + %!test idx=ridx(:)+rows(as)*(cidx(:)-1); + %!assert(sparse(as(idx)),sparse(af(idx))); + %!assert(as(idx),sparse(af(idx))); + %!assert(as(idx'),sparse(af(idx'))); + %!assert(as(flipud(idx(:))),sparse(af(flipud(idx(:))))) + %!assert(as([idx,idx]),sparse(af([idx,idx]))); + %!error(as(reshape([idx;idx],[1,length(idx),2]))); + + %% Slice tests + %!assert(as(ridx,cidx), sparse(af(ridx,cidx))) + %!assert(as(ridx,:), sparse(af(ridx,:))) + %!assert(as(:,cidx), sparse(af(:,cidx))) + %!assert(as(:,:), sparse(af(:,:))) + %!assert(as((size(as,1):-1:1),:),sparse(af((size(af,1):-1:1),:))) + %!assert(as(:,(size(as,2):-1:1)),sparse(af(:,(size(af,2):-1:1)))) + + %% Indexing tests + %!assert(full(as([1,1],:)), af([1,1],:)) + %!assert(full(as(:,[1,1])), af(:,[1,1])) + %!test + %! [i,j,v] = find (as); + %! assert (as(i(1),j(1))([1,1]), sparse([v(1),v(1)])) + + %% Assignment test + %!test + %! ts=as;ts(:,:)=ts(fliplr(1:size(as,1)),:); + %! tf=af;tf(:,:)=tf(fliplr(1:size(af,1)),:); + %! assert(ts,sparse(tf)); + %!test + %! ts=as;ts(fliplr(1:size(as,1)),:)=ts; + %! tf=af;tf(fliplr(1:size(af,1)),:)=tf; + %! assert(ts,sparse(tf)); + %!test + %! ts=as;ts(:,fliplr(1:size(as,2)))=ts; + %! tf=af;tf(:,fliplr(1:size(af,2)))=tf; + %! assert(ts,sparse(tf)); + %!test + %! ts(fliplr(1:size(as,1)))=as(:,1);tf(fliplr(1:size(af,1)))=af(:,1); + %! assert(ts,sparse(tf)); + + %% Deletion tests + %!test + %! ts=as;ts(1,:)=[];tf=af;tf(1,:)=[]; + %! assert(ts,sparse(tf)); + %!test + %! ts=as;ts(:,1)=[];tf=af;tf(:,1)=[]; + %! assert(ts,sparse(tf)); + + %% Test 'end' keyword + %!assert(full(as(end)), af(end)) + %!assert(full(as(1,end)), af(1,end)) + %!assert(full(as(end,1)), af(end,1)) + %!assert(full(as(end,end)), af(end,end)) + %!assert(as(2:end,2:end), sparse(af(2:end,2:end))) + %!assert(as(1:end-1,1:end-1), sparse(af(1:end-1,1:end-1))) + %!test af=real(af); + %!test as=sparse(af); + + %% Point tests + %!test idx=ridx(:)+rows(as)*(cidx(:)-1); + %!assert(sparse(as(idx)),sparse(af(idx))); + %!assert(as(idx),sparse(af(idx))); + %!assert(as(idx'),sparse(af(idx'))); + %!assert(as(flipud(idx(:))),sparse(af(flipud(idx(:))))) + %!assert(as([idx,idx]),sparse(af([idx,idx]))); + %!error(as(reshape([idx;idx],[1,length(idx),2]))); + + %% Slice tests + %!assert(as(ridx,cidx), sparse(af(ridx,cidx))) + %!assert(as(ridx,:), sparse(af(ridx,:))) + %!assert(as(:,cidx), sparse(af(:,cidx))) + %!assert(as(:,:), sparse(af(:,:))) + %!assert(as((size(as,1):-1:1),:),sparse(af((size(af,1):-1:1),:))) + %!assert(as(:,(size(as,2):-1:1)),sparse(af(:,(size(af,2):-1:1)))) + + %% Indexing tests + %!assert(full(as([1,1],:)), af([1,1],:)) + %!assert(full(as(:,[1,1])), af(:,[1,1])) + %!test + %! [i,j,v] = find (as); + %! assert (as(i(1),j(1))([1,1]), sparse([v(1),v(1)])) + + %% Assignment test + %!test + %! ts=as;ts(:,:)=ts(fliplr(1:size(as,1)),:); + %! tf=af;tf(:,:)=tf(fliplr(1:size(af,1)),:); + %! assert(ts,sparse(tf)); + %!test + %! ts=as;ts(fliplr(1:size(as,1)),:)=ts; + %! tf=af;tf(fliplr(1:size(af,1)),:)=tf; + %! assert(ts,sparse(tf)); + %!test + %! ts=as;ts(:,fliplr(1:size(as,2)))=ts; + %! tf=af;tf(:,fliplr(1:size(af,2)))=tf; + %! assert(ts,sparse(tf)); + %!test + %! ts(fliplr(1:size(as,1)))=as(:,1);tf(fliplr(1:size(af,1)))=af(:,1); + %! assert(ts,sparse(tf)); + + %% Deletion tests + %!test + %! ts=as;ts(1,:)=[];tf=af;tf(1,:)=[]; + %! assert(ts,sparse(tf)); + %!test + %! ts=as;ts(:,1)=[];tf=af;tf(:,1)=[]; + %! assert(ts,sparse(tf)); + + %% Test 'end' keyword + %!assert(full(as(end)), af(end)) + %!assert(full(as(1,end)), af(1,end)) + %!assert(full(as(end,1)), af(end,1)) + %!assert(full(as(end,end)), af(end,end)) + %!assert(as(2:end,2:end), sparse(af(2:end,2:end))) + %!assert(as(1:end-1,1:end-1), sparse(af(1:end-1,1:end-1))) + + # ============================================================== + + %!shared alpha,beta,df,pdf,lf,plf,uf,puf,bf,cf,bcf,tf,tcf,xf,ds,pds,ls,pls,us,pus,bs,cs,bcs,ts,tcs,xs + %!test alpha=1;beta=1; + %! n=8; + %! lf=diag(1:n);lf(n-1,1)=0.5*alpha;lf(n,2)=0.25*alpha;ls=sparse(lf); + %! uf=diag(1:n);uf(1,n-1)=2*alpha;uf(2,n)=alpha;us=sparse(uf); + %! ts=spdiags(ones(n,3),-1:1,n,n)+diag(1:n); tf = full(ts); + %! df = diag(1:n).* alpha; ds = sparse(df); + %! pdf = df(randperm(n),randperm(n)); pds = sparse(pdf); + %! plf = lf(randperm(n),randperm(n)); pls = sparse(plf); + %! puf = uf(randperm(n),randperm(n)); pus = sparse(puf); + %! bs = spdiags(repmat([1:n]',1,4),-2:1,n,n).*alpha; bf = full(bs); + %! cf = lf + lf'; cs = sparse(cf); + %! bcf = bf + bf'; bcs = sparse(bcf); + %! tcf = tf + tf'; tcs = sparse(tcf); + %! xf = diag(1:n) + fliplr(diag(1:n)).*beta; xs = sparse(xf); + %!assert(ds\xf,df\xf,1e-10); + %!assert(ds\xs,sparse(df\xf),1e-10); + %!assert(pds\xf,pdf\xf,1e-10); + %!assert(pds\xs,sparse(pdf\xf),1e-10); + %!assert(ls\xf,lf\xf,1e-10); + %!assert(sparse(ls\xs),sparse(lf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(pls\xf,plf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(pls\xs),sparse(plf\xf),1e-10); + %!assert(us\xf,uf\xf,1e-10); + %!assert(sparse(us\xs),sparse(uf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(pus\xf,puf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(pus\xs),sparse(puf\xf),1e-10); + %!assert(bs\xf,bf\xf,1e-10); + %!assert(sparse(bs\xs),sparse(bf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(cs\xf,cf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(cs\xs),sparse(cf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(bcs\xf,bcf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(bcs\xs),sparse(bcf\xf),1e-10); + %!assert(ts\xf,tf\xf,1e-10); + %!assert(sparse(ts\xs),sparse(tf\xf),1e-10); + %!assert(tcs\xf,tcf\xf,1e-10); + %!assert(sparse(tcs\xs),sparse(tcf\xf),1e-10); + + %% QR solver tests + + %!function f(a, sz, feps) + %! b = randn(sz); x = a \b; + %! assert (a * x, b, feps); + %! b = randn(sz)+1i*randn(sz); x = a \ b; + %! assert (a * x, b, feps); + %! b = sprandn(sz(1),sz(2),0.2); x = a \b; + %! assert (sparse(a * x), b, feps); + %! b = sprandn(sz(1),sz(2),0.2)+1i*sprandn(sz(1),sz(2),0.2); x = a \b; + %! assert (sparse(a * x), b, feps); + %!testif HAVE_CXSPARSE + %! a = alpha*sprandn(10,11,0.2)+speye(10,11); f(a,[10,2],1e-10); + %! ## Test this by forcing matrix_type, as can't get a certain + %! ## result for over-determined systems. + %! a = alpha*sprandn(10,10,0.2)+speye(10,10); matrix_type(a, "Singular"); + %! f(a,[10,2],1e-10); + + %% Rectanguar solver tests that don't use QR + + %!test + %! ds = alpha * spdiags([1:11]',0,10,11); + %! df = full(ds); + %! xf = beta * ones(10,2); + %! xs = speye(10,10); + %!assert(ds\xf,df\xf,100*eps) + %!assert(ds\xs,sparse(df\xs),100*eps) + %!test + %! pds = ds([2,1,3:10],:); + %! pdf = full(pds); + %!assert(pds\xf,pdf\xf,100*eps) + %!assert(pds\xs,sparse(pdf\xs),100*eps) + %!test + %! ds = alpha * spdiags([1:11]',0,11,10); + %! df = full(ds); + %! xf = beta * ones(11,2); + %! xs = speye(11,11); + %!assert(ds\xf,df\xf,100*eps) + %!assert(ds\xs,sparse(df\xs),100*eps) + %!test + %! pds = ds([2,1,3:11],:); + %! pdf = full(pds); + %!assert(pds\xf,pdf\xf,100*eps) + %!assert(pds\xs,sparse(pdf\xs),100*eps) + %!test + %! us = alpha*[[speye(10,10);sparse(1,10)],[[1,1];sparse(9,2);[1,1]]]; + %!testif HAVE_UMFPACK + %! assert(us*(us\xf),xf,100*eps) + %!testif HAVE_UMFPACK + %! assert(us*(us\xs),xs,100*eps) + %!test + %! pus = us(:,[2,1,3:12]); + %!testif HAVE_UMFPACK + %! assert(pus*(pus\xf),xf,100*eps) + %!testif HAVE_UMFPACK + %! assert(pus*(pus\xs),xs,100*eps) + %!test + %! us = alpha*[speye(11,9),[1;sparse(8,1);1;0]]; + %!testif HAVE_CXSPARSE + %! [c,r] = qr (us, xf); + %! assert(us\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (us, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(us\xs,r\c,100*eps) + %!test + %! pus = us(:,[1:8,10,9]); + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pus, xf); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pus\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pus, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pus\xs,r\c,100*eps) + %!test + %! ls = alpha*[speye(9,11);[1,sparse(1,8),1,0]]; + %! xf = beta * ones(10,2); + %! xs = speye(10,10); + %!assert(ls*(ls\xf),xf,100*eps) + %!assert(ls*(ls\xs),xs,100*eps) + %!test + %! pls = ls([1:8,10,9],:); + %!assert(pls*(pls\xf),xf,100*eps) + %!assert(pls*(pls\xs),xs,100*eps) + %!test + %! ls = alpha*[speye(10,10),sparse(10,1);[1;1],sparse(2,9),[1;1]]; + %! xf = beta * ones(12,2); + %! xs = speye(12,12); + %!testif HAVE_CXSPARSE + %! [c,r] = qr (ls, xf); + %! assert(ls\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (ls, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(ls\xs,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! pls = ls(:,[1:8,10,9]); + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pls, xf); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pls\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pls, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pls\xs,r\c,100*eps) + + %!test alpha=1;beta=1i; + %! n=8; + %! lf=diag(1:n);lf(n-1,1)=0.5*alpha;lf(n,2)=0.25*alpha;ls=sparse(lf); + %! uf=diag(1:n);uf(1,n-1)=2*alpha;uf(2,n)=alpha;us=sparse(uf); + %! ts=spdiags(ones(n,3),-1:1,n,n)+diag(1:n); tf = full(ts); + %! df = diag(1:n).* alpha; ds = sparse(df); + %! pdf = df(randperm(n),randperm(n)); pds = sparse(pdf); + %! plf = lf(randperm(n),randperm(n)); pls = sparse(plf); + %! puf = uf(randperm(n),randperm(n)); pus = sparse(puf); + %! bs = spdiags(repmat([1:n]',1,4),-2:1,n,n).*alpha; bf = full(bs); + %! cf = lf + lf'; cs = sparse(cf); + %! bcf = bf + bf'; bcs = sparse(bcf); + %! tcf = tf + tf'; tcs = sparse(tcf); + %! xf = diag(1:n) + fliplr(diag(1:n)).*beta; xs = sparse(xf); + %!assert(ds\xf,df\xf,1e-10); + %!assert(ds\xs,sparse(df\xf),1e-10); + %!assert(pds\xf,pdf\xf,1e-10); + %!assert(pds\xs,sparse(pdf\xf),1e-10); + %!assert(ls\xf,lf\xf,1e-10); + %!assert(sparse(ls\xs),sparse(lf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(pls\xf,plf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(pls\xs),sparse(plf\xf),1e-10); + %!assert(us\xf,uf\xf,1e-10); + %!assert(sparse(us\xs),sparse(uf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(pus\xf,puf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(pus\xs),sparse(puf\xf),1e-10); + %!assert(bs\xf,bf\xf,1e-10); + %!assert(sparse(bs\xs),sparse(bf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(cs\xf,cf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(cs\xs),sparse(cf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(bcs\xf,bcf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(bcs\xs),sparse(bcf\xf),1e-10); + %!assert(ts\xf,tf\xf,1e-10); + %!assert(sparse(ts\xs),sparse(tf\xf),1e-10); + %!assert(tcs\xf,tcf\xf,1e-10); + %!assert(sparse(tcs\xs),sparse(tcf\xf),1e-10); + + %% QR solver tests + + %!function f(a, sz, feps) + %! b = randn(sz); x = a \b; + %! assert (a * x, b, feps); + %! b = randn(sz)+1i*randn(sz); x = a \ b; + %! assert (a * x, b, feps); + %! b = sprandn(sz(1),sz(2),0.2); x = a \b; + %! assert (sparse(a * x), b, feps); + %! b = sprandn(sz(1),sz(2),0.2)+1i*sprandn(sz(1),sz(2),0.2); x = a \b; + %! assert (sparse(a * x), b, feps); + %!testif HAVE_CXSPARSE + %! a = alpha*sprandn(10,11,0.2)+speye(10,11); f(a,[10,2],1e-10); + %! ## Test this by forcing matrix_type, as can't get a certain + %! ## result for over-determined systems. + %! a = alpha*sprandn(10,10,0.2)+speye(10,10); matrix_type(a, "Singular"); + %! f(a,[10,2],1e-10); + + %% Rectanguar solver tests that don't use QR + + %!test + %! ds = alpha * spdiags([1:11]',0,10,11); + %! df = full(ds); + %! xf = beta * ones(10,2); + %! xs = speye(10,10); + %!assert(ds\xf,df\xf,100*eps) + %!assert(ds\xs,sparse(df\xs),100*eps) + %!test + %! pds = ds([2,1,3:10],:); + %! pdf = full(pds); + %!assert(pds\xf,pdf\xf,100*eps) + %!assert(pds\xs,sparse(pdf\xs),100*eps) + %!test + %! ds = alpha * spdiags([1:11]',0,11,10); + %! df = full(ds); + %! xf = beta * ones(11,2); + %! xs = speye(11,11); + %!assert(ds\xf,df\xf,100*eps) + %!assert(ds\xs,sparse(df\xs),100*eps) + %!test + %! pds = ds([2,1,3:11],:); + %! pdf = full(pds); + %!assert(pds\xf,pdf\xf,100*eps) + %!assert(pds\xs,sparse(pdf\xs),100*eps) + %!test + %! us = alpha*[[speye(10,10);sparse(1,10)],[[1,1];sparse(9,2);[1,1]]]; + %!testif HAVE_UMFPACK + %! assert(us*(us\xf),xf,100*eps) + %!testif HAVE_UMFPACK + %! assert(us*(us\xs),xs,100*eps) + %!test + %! pus = us(:,[2,1,3:12]); + %!testif HAVE_UMFPACK + %! assert(pus*(pus\xf),xf,100*eps) + %!testif HAVE_UMFPACK + %! assert(pus*(pus\xs),xs,100*eps) + %!test + %! us = alpha*[speye(11,9),[1;sparse(8,1);1;0]]; + %!testif HAVE_CXSPARSE + %! [c,r] = qr (us, xf); + %! assert(us\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (us, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(us\xs,r\c,100*eps) + %!test + %! pus = us(:,[1:8,10,9]); + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pus, xf); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pus\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pus, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pus\xs,r\c,100*eps) + %!test + %! ls = alpha*[speye(9,11);[1,sparse(1,8),1,0]]; + %! xf = beta * ones(10,2); + %! xs = speye(10,10); + %!assert(ls*(ls\xf),xf,100*eps) + %!assert(ls*(ls\xs),xs,100*eps) + %!test + %! pls = ls([1:8,10,9],:); + %!assert(pls*(pls\xf),xf,100*eps) + %!assert(pls*(pls\xs),xs,100*eps) + %!test + %! ls = alpha*[speye(10,10),sparse(10,1);[1;1],sparse(2,9),[1;1]]; + %! xf = beta * ones(12,2); + %! xs = speye(12,12); + %!testif HAVE_CXSPARSE + %! [c,r] = qr (ls, xf); + %! assert(ls\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (ls, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(ls\xs,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! pls = ls(:,[1:8,10,9]); + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pls, xf); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pls\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pls, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pls\xs,r\c,100*eps) + + %!test alpha=1i;beta=1; + %! n=8; + %! lf=diag(1:n);lf(n-1,1)=0.5*alpha;lf(n,2)=0.25*alpha;ls=sparse(lf); + %! uf=diag(1:n);uf(1,n-1)=2*alpha;uf(2,n)=alpha;us=sparse(uf); + %! ts=spdiags(ones(n,3),-1:1,n,n)+diag(1:n); tf = full(ts); + %! df = diag(1:n).* alpha; ds = sparse(df); + %! pdf = df(randperm(n),randperm(n)); pds = sparse(pdf); + %! plf = lf(randperm(n),randperm(n)); pls = sparse(plf); + %! puf = uf(randperm(n),randperm(n)); pus = sparse(puf); + %! bs = spdiags(repmat([1:n]',1,4),-2:1,n,n).*alpha; bf = full(bs); + %! cf = lf + lf'; cs = sparse(cf); + %! bcf = bf + bf'; bcs = sparse(bcf); + %! tcf = tf + tf'; tcs = sparse(tcf); + %! xf = diag(1:n) + fliplr(diag(1:n)).*beta; xs = sparse(xf); + %!assert(ds\xf,df\xf,1e-10); + %!assert(ds\xs,sparse(df\xf),1e-10); + %!assert(pds\xf,pdf\xf,1e-10); + %!assert(pds\xs,sparse(pdf\xf),1e-10); + %!assert(ls\xf,lf\xf,1e-10); + %!assert(sparse(ls\xs),sparse(lf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(pls\xf,plf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(pls\xs),sparse(plf\xf),1e-10); + %!assert(us\xf,uf\xf,1e-10); + %!assert(sparse(us\xs),sparse(uf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(pus\xf,puf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(pus\xs),sparse(puf\xf),1e-10); + %!assert(bs\xf,bf\xf,1e-10); + %!assert(sparse(bs\xs),sparse(bf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(cs\xf,cf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(cs\xs),sparse(cf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(bcs\xf,bcf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(bcs\xs),sparse(bcf\xf),1e-10); + %!assert(ts\xf,tf\xf,1e-10); + %!assert(sparse(ts\xs),sparse(tf\xf),1e-10); + %!assert(tcs\xf,tcf\xf,1e-10); + %!assert(sparse(tcs\xs),sparse(tcf\xf),1e-10); + + %% QR solver tests + + %!function f(a, sz, feps) + %! b = randn(sz); x = a \b; + %! assert (a * x, b, feps); + %! b = randn(sz)+1i*randn(sz); x = a \ b; + %! assert (a * x, b, feps); + %! b = sprandn(sz(1),sz(2),0.2); x = a \b; + %! assert (sparse(a * x), b, feps); + %! b = sprandn(sz(1),sz(2),0.2)+1i*sprandn(sz(1),sz(2),0.2); x = a \b; + %! assert (sparse(a * x), b, feps); + %!testif HAVE_CXSPARSE + %! a = alpha*sprandn(10,11,0.2)+speye(10,11); f(a,[10,2],1e-10); + %! ## Test this by forcing matrix_type, as can't get a certain + %! ## result for over-determined systems. + %! a = alpha*sprandn(10,10,0.2)+speye(10,10); matrix_type(a, "Singular"); + %! f(a,[10,2],1e-10); + + %% Rectanguar solver tests that don't use QR + + %!test + %! ds = alpha * spdiags([1:11]',0,10,11); + %! df = full(ds); + %! xf = beta * ones(10,2); + %! xs = speye(10,10); + %!assert(ds\xf,df\xf,100*eps) + %!assert(ds\xs,sparse(df\xs),100*eps) + %!test + %! pds = ds([2,1,3:10],:); + %! pdf = full(pds); + %!assert(pds\xf,pdf\xf,100*eps) + %!assert(pds\xs,sparse(pdf\xs),100*eps) + %!test + %! ds = alpha * spdiags([1:11]',0,11,10); + %! df = full(ds); + %! xf = beta * ones(11,2); + %! xs = speye(11,11); + %!assert(ds\xf,df\xf,100*eps) + %!assert(ds\xs,sparse(df\xs),100*eps) + %!test + %! pds = ds([2,1,3:11],:); + %! pdf = full(pds); + %!assert(pds\xf,pdf\xf,100*eps) + %!assert(pds\xs,sparse(pdf\xs),100*eps) + %!test + %! us = alpha*[[speye(10,10);sparse(1,10)],[[1,1];sparse(9,2);[1,1]]]; + %!testif HAVE_UMFPACK + %! assert(us*(us\xf),xf,100*eps) + %!testif HAVE_UMFPACK + %! assert(us*(us\xs),xs,100*eps) + %!test + %! pus = us(:,[2,1,3:12]); + %!testif HAVE_UMFPACK + %! assert(pus*(pus\xf),xf,100*eps) + %!testif HAVE_UMFPACK + %! assert(pus*(pus\xs),xs,100*eps) + %!test + %! us = alpha*[speye(11,9),[1;sparse(8,1);1;0]]; + %!testif HAVE_CXSPARSE + %! [c,r] = qr (us, xf); + %! assert(us\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (us, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(us\xs,r\c,100*eps) + %!test + %! pus = us(:,[1:8,10,9]); + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pus, xf); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pus\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pus, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pus\xs,r\c,100*eps) + %!test + %! ls = alpha*[speye(9,11);[1,sparse(1,8),1,0]]; + %! xf = beta * ones(10,2); + %! xs = speye(10,10); + %!assert(ls*(ls\xf),xf,100*eps) + %!assert(ls*(ls\xs),xs,100*eps) + %!test + %! pls = ls([1:8,10,9],:); + %!assert(pls*(pls\xf),xf,100*eps) + %!assert(pls*(pls\xs),xs,100*eps) + %!test + %! ls = alpha*[speye(10,10),sparse(10,1);[1;1],sparse(2,9),[1;1]]; + %! xf = beta * ones(12,2); + %! xs = speye(12,12); + %!testif HAVE_CXSPARSE + %! [c,r] = qr (ls, xf); + %! assert(ls\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (ls, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(ls\xs,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! pls = ls(:,[1:8,10,9]); + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pls, xf); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pls\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pls, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pls\xs,r\c,100*eps) + + %!test alpha=1i;beta=1i; + %! n=8; + %! lf=diag(1:n);lf(n-1,1)=0.5*alpha;lf(n,2)=0.25*alpha;ls=sparse(lf); + %! uf=diag(1:n);uf(1,n-1)=2*alpha;uf(2,n)=alpha;us=sparse(uf); + %! ts=spdiags(ones(n,3),-1:1,n,n)+diag(1:n); tf = full(ts); + %! df = diag(1:n).* alpha; ds = sparse(df); + %! pdf = df(randperm(n),randperm(n)); pds = sparse(pdf); + %! plf = lf(randperm(n),randperm(n)); pls = sparse(plf); + %! puf = uf(randperm(n),randperm(n)); pus = sparse(puf); + %! bs = spdiags(repmat([1:n]',1,4),-2:1,n,n).*alpha; bf = full(bs); + %! cf = lf + lf'; cs = sparse(cf); + %! bcf = bf + bf'; bcs = sparse(bcf); + %! tcf = tf + tf'; tcs = sparse(tcf); + %! xf = diag(1:n) + fliplr(diag(1:n)).*beta; xs = sparse(xf); + %!assert(ds\xf,df\xf,1e-10); + %!assert(ds\xs,sparse(df\xf),1e-10); + %!assert(pds\xf,pdf\xf,1e-10); + %!assert(pds\xs,sparse(pdf\xf),1e-10); + %!assert(ls\xf,lf\xf,1e-10); + %!assert(sparse(ls\xs),sparse(lf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(pls\xf,plf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(pls\xs),sparse(plf\xf),1e-10); + %!assert(us\xf,uf\xf,1e-10); + %!assert(sparse(us\xs),sparse(uf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(pus\xf,puf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(pus\xs),sparse(puf\xf),1e-10); + %!assert(bs\xf,bf\xf,1e-10); + %!assert(sparse(bs\xs),sparse(bf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(cs\xf,cf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(cs\xs),sparse(cf\xf),1e-10); + %!testif HAVE_UMFPACK + %! assert(bcs\xf,bcf\xf,1e-10); + %!testif HAVE_UMFPACK + %! assert(sparse(bcs\xs),sparse(bcf\xf),1e-10); + %!assert(ts\xf,tf\xf,1e-10); + %!assert(sparse(ts\xs),sparse(tf\xf),1e-10); + %!assert(tcs\xf,tcf\xf,1e-10); + %!assert(sparse(tcs\xs),sparse(tcf\xf),1e-10); + + %% QR solver tests + + %!function f(a, sz, feps) + %! b = randn(sz); x = a \b; + %! assert (a * x, b, feps); + %! b = randn(sz)+1i*randn(sz); x = a \ b; + %! assert (a * x, b, feps); + %! b = sprandn(sz(1),sz(2),0.2); x = a \b; + %! assert (sparse(a * x), b, feps); + %! b = sprandn(sz(1),sz(2),0.2)+1i*sprandn(sz(1),sz(2),0.2); x = a \b; + %! assert (sparse(a * x), b, feps); + %!testif HAVE_CXSPARSE + %! a = alpha*sprandn(10,11,0.2)+speye(10,11); f(a,[10,2],1e-10); + %! ## Test this by forcing matrix_type, as can't get a certain + %! ## result for over-determined systems. + %! a = alpha*sprandn(10,10,0.2)+speye(10,10); matrix_type(a, "Singular"); + %! f(a,[10,2],1e-10); + + %% Rectanguar solver tests that don't use QR + + %!test + %! ds = alpha * spdiags([1:11]',0,10,11); + %! df = full(ds); + %! xf = beta * ones(10,2); + %! xs = speye(10,10); + %!assert(ds\xf,df\xf,100*eps) + %!assert(ds\xs,sparse(df\xs),100*eps) + %!test + %! pds = ds([2,1,3:10],:); + %! pdf = full(pds); + %!assert(pds\xf,pdf\xf,100*eps) + %!assert(pds\xs,sparse(pdf\xs),100*eps) + %!test + %! ds = alpha * spdiags([1:11]',0,11,10); + %! df = full(ds); + %! xf = beta * ones(11,2); + %! xs = speye(11,11); + %!assert(ds\xf,df\xf,100*eps) + %!assert(ds\xs,sparse(df\xs),100*eps) + %!test + %! pds = ds([2,1,3:11],:); + %! pdf = full(pds); + %!assert(pds\xf,pdf\xf,100*eps) + %!assert(pds\xs,sparse(pdf\xs),100*eps) + %!test + %! us = alpha*[[speye(10,10);sparse(1,10)],[[1,1];sparse(9,2);[1,1]]]; + %!testif HAVE_UMFPACK + %! assert(us*(us\xf),xf,100*eps) + %!testif HAVE_UMFPACK + %! assert(us*(us\xs),xs,100*eps) + %!test + %! pus = us(:,[2,1,3:12]); + %!testif HAVE_UMFPACK + %! assert(pus*(pus\xf),xf,100*eps) + %!testif HAVE_UMFPACK + %! assert(pus*(pus\xs),xs,100*eps) + %!test + %! us = alpha*[speye(11,9),[1;sparse(8,1);1;0]]; + %!testif HAVE_CXSPARSE + %! [c,r] = qr (us, xf); + %! assert(us\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (us, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(us\xs,r\c,100*eps) + %!test + %! pus = us(:,[1:8,10,9]); + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pus, xf); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pus\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pus, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pus\xs,r\c,100*eps) + %!test + %! ls = alpha*[speye(9,11);[1,sparse(1,8),1,0]]; + %! xf = beta * ones(10,2); + %! xs = speye(10,10); + %!assert(ls*(ls\xf),xf,100*eps) + %!assert(ls*(ls\xs),xs,100*eps) + %!test + %! pls = ls([1:8,10,9],:); + %!assert(pls*(pls\xf),xf,100*eps) + %!assert(pls*(pls\xs),xs,100*eps) + %!test + %! ls = alpha*[speye(10,10),sparse(10,1);[1;1],sparse(2,9),[1;1]]; + %! xf = beta * ones(12,2); + %! xs = speye(12,12); + %!testif HAVE_CXSPARSE + %! [c,r] = qr (ls, xf); + %! assert(ls\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (ls, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(ls\xs,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! pls = ls(:,[1:8,10,9]); + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pls, xf); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pls\xf,r\c,100*eps) + %!testif HAVE_CXSPARSE + %! [c,r] = qr (pls, xs); + %! r = matrix_type(r,"Singular"); ## Force Matrix Type + %! assert(pls\xs,r\c,100*eps) + + + # ============================================================== + PATCH_EOF