/[ascend]/trunk/base/autotools/configure
ViewVC logotype

Diff of /trunk/base/autotools/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 40 by aw0a, Wed Dec 29 19:09:41 2004 UTC revision 41 by ben.allan, Wed Feb 9 17:26:11 2005 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2    
3  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
4  # Generated by GNU Autoconf 2.59.  # Generated automatically using autoconf version 2.13
5    # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6  #  #
 # Copyright (C) 2003 Free Software Foundation, Inc.  
7  # This configure script is free software; the Free Software Foundation  # This configure script is free software; the Free Software Foundation
8  # gives unlimited permission to copy, distribute and modify it.  # gives unlimited permission to copy, distribute and modify it.
 ## --------------------- ##  
 ## M4sh Initialization.  ##  
 ## --------------------- ##  
   
 # Be Bourne compatible  
 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+"$@"}'='"$@"'  
 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then  
   set -o posix  
 fi  
 DUALCASE=1; export DUALCASE # for MKS sh  
   
 # Support unset when possible.  
 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then  
   as_unset=unset  
 else  
   as_unset=false  
 fi  
   
   
 # Work around bugs in pre-3.0 UWIN ksh.  
 $as_unset ENV MAIL MAILPATH  
 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  
   fi  
 done  
   
 # Required to use basename.  
 if expr a : '\(a\)' >/dev/null 2>&1; 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'`  
   
   
 # PATH needs CR, and LINENO needs CR and PATH.  
 # 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  
   
   
   as_lineno_1=$LINENO  
   as_lineno_2=$LINENO  
   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`  
   test "x$as_lineno_1" != "x$as_lineno_2" &&  
   test "x$as_lineno_3"  = "x$as_lineno_2"  || {  
   # Find who we are.  Look in the path if we contain no path at all  
   # relative or not.  
   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  
   
        ;;  
   esac  
   # We did not find ourselves, most probably we were run as `sh COMMAND'  
   # in which case we are not to be found in the path.  
   if test "x$as_myself" = x; then  
     as_myself=$0  
   fi  
   if test ! -f "$as_myself"; then  
     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2  
    { (exit 1); exit 1; }; }  
   fi  
   case $CONFIG_SHELL in  
   '')  
     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=.  
   for as_base in sh bash ksh sh5; do  
      case $as_dir in  
      /*)  
        if ("$as_dir/$as_base" -c '  
   as_lineno_1=$LINENO  
   as_lineno_2=$LINENO  
   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`  
   test "x$as_lineno_1" != "x$as_lineno_2" &&  
   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then  
          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }  
          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }  
          CONFIG_SHELL=$as_dir/$as_base  
          export CONFIG_SHELL  
          exec "$CONFIG_SHELL" "$0" ${1+"$@"}  
        fi;;  
      esac  
        done  
 done  
 ;;  
   esac  
   
   # 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 before each line; the second 'sed' does the real  
   # work.  The second script uses 'N' to pair each line-number line  
   # with the numbered line, 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  
   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)  
   sed '=' <$as_myself |  
     sed '  
       N  
       s,$,-,  
       : loop  
       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,  
       t loop  
       s,-$,,  
       s,^['$as_cr_digits']*\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 sensible to this).  
   . ./$as_me.lineno  
   # Exit status is that of the last command.  
   exit  
 }  
   
   
 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in  
   *c*,-n*) ECHO_N= ECHO_C='  
 ' ECHO_T='  ' ;;  
   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;  
   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;  
 esac  
   
 if expr a : '\(a\)' >/dev/null 2>&1; then  
   as_expr=expr  
 else  
   as_expr=false  
 fi  
   
 rm -f conf$$ conf$$.exe conf$$.file  
 echo >conf$$.file  
 if ln -s conf$$.file conf$$ 2>/dev/null; then  
   # We could just check for DJGPP; but this test a) works b) is more generic  
   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).  
   if test -f conf$$.exe; then  
     # Don't use ln at all; we don't have any links  
     as_ln_s='cp -p'  
   else  
     as_ln_s='ln -s'  
   fi  
 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$$.file  
   
 if mkdir -p . 2>/dev/null; then  
   as_mkdir_p=:  
 else  
   test -d ./-p && rmdir ./-p  
   as_mkdir_p=false  
 fi  
   
 as_executable_p="test -f"  
   
 # Sed expression to map a string onto a valid CPP name.  
 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"  
   
 # Sed expression to map a string onto a valid variable name.  
 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"  
   
9    
10  # IFS  # Defaults:
11  # We need space, tab and new line, in precisely that order.  ac_help=
 as_nl='  
 '  
 IFS="   $as_nl"  
   
 # CDPATH.  
 $as_unset CDPATH  
   
   
 # Name of the host.  
 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,  
 # so uname gets run too.  
 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`  
   
 exec 6>&1  
   
 #  
 # Initializations.  
 #  
12  ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
13  ac_config_libobj_dir=.  # Any additions from configure.in:
14  cross_compiling=no  ac_help="$ac_help
 subdirs=  
 MFLAGS=  
 MAKEFLAGS=  
 SHELL=${CONFIG_SHELL-/bin/sh}  
15    
16  # Maximum number of lines to put in a shell here document.  ASCEND specific options
 # This variable seems obsolete.  It should probably be removed, and  
 # only ac_max_sed_lines should be used.  
 : ${ac_max_here_lines=38}  
   
 # Identity of this package.  
 PACKAGE_NAME=  
 PACKAGE_TARNAME=  
 PACKAGE_VERSION=  
 PACKAGE_STRING=  
 PACKAGE_BUGREPORT=  
   
 ac_unique_file="../generic/compiler/ascParse.y"  
 # Factoring default headers for most tests.  
 ac_includes_default="\  
 #include <stdio.h>  
 #if HAVE_SYS_TYPES_H  
 # include <sys/types.h>  
 #endif  
 #if HAVE_SYS_STAT_H  
 # include <sys/stat.h>  
 #endif  
 #if STDC_HEADERS  
 # include <stdlib.h>  
 # include <stddef.h>  
 #else  
 # if HAVE_STDLIB_H  
 #  include <stdlib.h>  
 # endif  
 #endif  
 #if HAVE_STRING_H  
 # if !STDC_HEADERS && HAVE_MEMORY_H  
 #  include <memory.h>  
 # endif  
 # include <string.h>  
 #endif  
 #if HAVE_STRINGS_H  
 # include <strings.h>  
 #endif  
 #if HAVE_INTTYPES_H  
 # include <inttypes.h>  
 #else  
 # if HAVE_STDINT_H  
 #  include <stdint.h>  
 # endif  
 #endif  
 #if HAVE_UNISTD_H  
 # include <unistd.h>  
 #endif"  
17    
18  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 datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS RANLIB ac_ct_RANLIB LN_S SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT asc_cc1 asc_cc2 asc_cc3 CPP DEBUG_LIBS EGREP YACC LEX LEXLIB LEX_OUTPUT_ROOT TCL_LIB TCL_HDR TK_LIB TK_HDR TKTABLE_LIB F77 BLASLIB LPAKLIB LSODLIB ascpwd fullpathsrcdir asc_include scanner_src typer_src MATH_LIBS X11_INCLUDES X11_LIBRARIES X11_RUN_PATH X11_EXTRA_LIBS DL_LIBS LD_FLAGS LD_SEARCH_FLAGS SHLIB_CFLAGS SHLIB_LD SHLIB_LD_LIBS SHLIB_SUFFIX ASC_LIB_SUFFIX ASC_TK_LIBRARY ASC_TCL_LIBRARY HAVE_TKTABLE asc_subdirs F77LIBS make_blaslib make_lpaklib make_lsodlib HAVE_LSOD tkdir_root tkdir_topbuilddir models_dir_root models_topbuilddir help_dir_root help_topbuilddir LIBOBJS LTLIBOBJS'  Compiler options:
19  ac_subst_files=''    --enable-gcc            allow use of gcc if avaiable"
20    ac_help="$ac_help
21      --enable-optimization   optimize the C code while building ascend"
22    ac_help="$ac_help
23      --with-x                use the X Window System"
24    ac_help="$ac_help
25    Location of Tcl, Tk, and tkTable:
26      --with-tcl=LIBRARY,HEADER
27                              The location of the Tcl8.0 library and/or header
28                              For a static Tcl8.0 library, give the full path:
29                                  --with-tcl='/usr/local/lib/libtcl8.0.a'
30                              For a dynamic library, give any -L options required:
31                                  --with-tcl='-L/usr/local/lib -ltcl8.0'
32                              To specify only the header, leave off the library:
33                                  --with-tcl=',/usr/local/include/tcl.h' "
34    ac_help="$ac_help
35      --with-tk=LIBRARY,HEADER
36                              The location of the Tk8.0 library and/or header
37                              For a static Tk8.0 library, give the full path:
38                                  --with-tk='/usr/local/lib/libtk8.3.a'
39                              For a dynamic library, give any -L options required:
40                                  --with-tk='-L/usr/local/lib -ltk8.3'
41                              To specify only the header, leave off the library:
42                                  --with-tk=',/usr/local/include/tk.h' "
43    ac_help="$ac_help
44      --with-tktable=TKTABLE  full path to a TkTable1.3 static library"
45    ac_help="$ac_help
46      --with-wish=/path/to/bin/wish
47                              The location of the wish shell executable matching
48                              the tcl/tk given by --with-tk and --with-tcl.
49                              X11 must be running during configure.   "
50    ac_help="$ac_help
51    Fortran compiler and libraries:
52      --with-fortran=F77,F77LIBS
53                              The location of your Fortran compiler and its
54                              library files.  For example, under SunOS:
55                                 --with-fortran='f77,-L/usr/lang/lib -lF77 -lM77'
56                              To specify only the compiler or libraries, leave off
57                              whatever is not needed:
58                                  --with-fortran=',-L/usr/lang/lib -lF77 -lM77'
59                              Use '--without-fortran' to not link against
60                              any Fortran libraries"
61    ac_help="$ac_help
62      --with-blas=BLASLIB     The full path to the blas library.
63                              Use '--with-blas=build' to build the blas library
64                              from the sources that come with the distribution."
65    ac_help="$ac_help
66      --with-linpack=LPAKLIB  The full path to the linpack library.
67                              Use '--with-linpack=build' to build the library
68                              from the sources that come with the distribution."
69    ac_help="$ac_help
70      --with-lsod=LSODLIB     The full path to the lsod library.
71                              Use '--with-lsod=build' to build the lsod library
72                              from the sources that come with the distribution."
73    ac_help="$ac_help
74    Generation of Makefiles:
75      --without-tkdir         do not generate Makefiles in the TK subdir"
76    ac_help="$ac_help
77      --without-models        do not generate Makefiles in the models subdir"
78    
79  # Initialize some variables set by options.  # Initialize some variables set by options.
 ac_init_help=  
 ac_init_version=false  
80  # The variables have the same names as the options, with  # The variables have the same names as the options, with
81  # dashes changed to underlines.  # dashes changed to underlines.
82  cache_file=/dev/null  build=NONE
83    cache_file=./config.cache
84  exec_prefix=NONE  exec_prefix=NONE
85    host=NONE
86  no_create=  no_create=
87    nonopt=NONE
88  no_recursion=  no_recursion=
89  prefix=NONE  prefix=NONE
90  program_prefix=NONE  program_prefix=NONE
# Line 328  program_transform_name=s,x,x, Line 93  program_transform_name=s,x,x,
93  silent=  silent=
94  site=  site=
95  srcdir=  srcdir=
96    target=NONE
97  verbose=  verbose=
98  x_includes=NONE  x_includes=NONE
99  x_libraries=NONE  x_libraries=NONE
   
 # Installation directory options.  
 # These are left unexpanded so users can "make install exec_prefix=/foo"  
 # and all the variables that are supposed to be based on exec_prefix  
 # by default will actually change.  
 # Use braces instead of parens because sh, perl, etc. also accept them.  
100  bindir='${exec_prefix}/bin'  bindir='${exec_prefix}/bin'
101  sbindir='${exec_prefix}/sbin'  sbindir='${exec_prefix}/sbin'
102  libexecdir='${exec_prefix}/libexec'  libexecdir='${exec_prefix}/libexec'
# Line 350  oldincludedir='/usr/include' Line 110  oldincludedir='/usr/include'
110  infodir='${prefix}/info'  infodir='${prefix}/info'
111  mandir='${prefix}/man'  mandir='${prefix}/man'
112    
113    # Initialize some other variables.
114    subdirs=
115    MFLAGS= MAKEFLAGS=
116    SHELL=${CONFIG_SHELL-/bin/sh}
117    # Maximum number of lines to put in a shell here document.
118    ac_max_here_lines=12
119    
120  ac_prev=  ac_prev=
121  for ac_option  for ac_option
122  do  do
123    
124    # If the previous option needs an argument, assign it.    # If the previous option needs an argument, assign it.
125    if test -n "$ac_prev"; then    if test -n "$ac_prev"; then
126      eval "$ac_prev=\$ac_option"      eval "$ac_prev=\$ac_option"
# Line 360  do Line 128  do
128      continue      continue
129    fi    fi
130    
131    ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`    case "$ac_option" in
132      -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133      *) ac_optarg= ;;
134      esac
135    
136    # Accept the important Cygnus configure options, so we can diagnose typos.    # Accept the important Cygnus configure options, so we can diagnose typos.
137    
138    case $ac_option in    case "$ac_option" in
139    
140    -bindir | --bindir | --bindi | --bind | --bin | --bi)    -bindir | --bindir | --bindi | --bind | --bin | --bi)
141      ac_prev=bindir ;;      ac_prev=bindir ;;
142    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
143      bindir=$ac_optarg ;;      bindir="$ac_optarg" ;;
144    
145    -build | --build | --buil | --bui | --bu)    -build | --build | --buil | --bui | --bu)
146      ac_prev=build_alias ;;      ac_prev=build ;;
147    -build=* | --build=* | --buil=* | --bui=* | --bu=*)    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
148      build_alias=$ac_optarg ;;      build="$ac_optarg" ;;
149    
150    -cache-file | --cache-file | --cache-fil | --cache-fi \    -cache-file | --cache-file | --cache-fil | --cache-fi \
151    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
152      ac_prev=cache_file ;;      ac_prev=cache_file ;;
153    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
154    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
155      cache_file=$ac_optarg ;;      cache_file="$ac_optarg" ;;
   
   --config-cache | -C)  
     cache_file=config.cache ;;  
156    
157    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
158      ac_prev=datadir ;;      ac_prev=datadir ;;
159    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
160    | --da=*)    | --da=*)
161      datadir=$ac_optarg ;;      datadir="$ac_optarg" ;;
162    
163    -disable-* | --disable-*)    -disable-* | --disable-*)
164      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
165      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
166      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&      if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
167        { echo "$as_me: error: invalid feature name: $ac_feature" >&2        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168     { (exit 1); exit 1; }; }      fi
169      ac_feature=`echo $ac_feature | sed 's/-/_/g'`      ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170      eval "enable_$ac_feature=no" ;;      eval "enable_${ac_feature}=no" ;;
171    
172    -enable-* | --enable-*)    -enable-* | --enable-*)
173      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`      ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
174      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
175      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&      if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
176        { echo "$as_me: error: invalid feature name: $ac_feature" >&2        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177     { (exit 1); exit 1; }; }      fi
178      ac_feature=`echo $ac_feature | sed 's/-/_/g'`      ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179      case $ac_option in      case "$ac_option" in
180        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;        *=*) ;;
181        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
182      esac      esac
183      eval "enable_$ac_feature='$ac_optarg'" ;;      eval "enable_${ac_feature}='$ac_optarg'" ;;
184    
185    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
186    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 421  do Line 189  do
189    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
190    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
191    | --exec=* | --exe=* | --ex=*)    | --exec=* | --exe=* | --ex=*)
192      exec_prefix=$ac_optarg ;;      exec_prefix="$ac_optarg" ;;
193    
194    -gas | --gas | --ga | --g)    -gas | --gas | --ga | --g)
195      # Obsolete; use --with-gas.      # Obsolete; use --with-gas.
196      with_gas=yes ;;      with_gas=yes ;;
197    
198    -help | --help | --hel | --he | -h)    -help | --help | --hel | --he)
199      ac_init_help=long ;;      # Omit some internal or obsolete options to make the list less imposing.
200    -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)      # This message is too long to be a string in the A/UX 3.1 sh.
201      ac_init_help=recursive ;;      cat << EOF
202    -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)  Usage: configure [options] [host]
203      ac_init_help=short ;;  Options: [defaults in brackets after descriptions]
204    Configuration:
205      --cache-file=FILE       cache test results in FILE
206      --help                  print this message
207      --no-create             do not create output files
208      --quiet, --silent       do not print \`checking...' messages
209      --version               print the version of autoconf that created configure
210    Directory and file names:
211      --prefix=PREFIX         install architecture-independent files in PREFIX
212                              [$ac_default_prefix]
213      --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
214                              [same as prefix]
215      --bindir=DIR            user executables in DIR [EPREFIX/bin]
216      --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
217      --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
218      --datadir=DIR           read-only architecture-independent data in DIR
219                              [PREFIX/share]
220      --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
221      --sharedstatedir=DIR    modifiable architecture-independent data in DIR
222                              [PREFIX/com]
223      --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
224      --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
225      --includedir=DIR        C header files in DIR [PREFIX/include]
226      --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
227      --infodir=DIR           info documentation in DIR [PREFIX/info]
228      --mandir=DIR            man documentation in DIR [PREFIX/man]
229      --srcdir=DIR            find the sources in DIR [configure dir or ..]
230      --program-prefix=PREFIX prepend PREFIX to installed program names
231      --program-suffix=SUFFIX append SUFFIX to installed program names
232      --program-transform-name=PROGRAM
233                              run sed PROGRAM on installed program names
234    EOF
235        cat << EOF
236    Host type:
237      --build=BUILD           configure for building on BUILD [BUILD=HOST]
238      --host=HOST             configure for HOST [guessed]
239      --target=TARGET         configure for TARGET [TARGET=HOST]
240    Features and packages:
241      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
242      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
243      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
244      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
245      --x-includes=DIR        X include files are in DIR
246      --x-libraries=DIR       X library files are in DIR
247    EOF
248        if test -n "$ac_help"; then
249          echo "--enable and --with options recognized:$ac_help"
250        fi
251        exit 0 ;;
252    
253    -host | --host | --hos | --ho)    -host | --host | --hos | --ho)
254      ac_prev=host_alias ;;      ac_prev=host ;;
255    -host=* | --host=* | --hos=* | --ho=*)    -host=* | --host=* | --hos=* | --ho=*)
256      host_alias=$ac_optarg ;;      host="$ac_optarg" ;;
257    
258    -includedir | --includedir | --includedi | --included | --include \    -includedir | --includedir | --includedi | --included | --include \
259    | --includ | --inclu | --incl | --inc)    | --includ | --inclu | --incl | --inc)
260      ac_prev=includedir ;;      ac_prev=includedir ;;
261    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
262    | --includ=* | --inclu=* | --incl=* | --inc=*)    | --includ=* | --inclu=* | --incl=* | --inc=*)
263      includedir=$ac_optarg ;;      includedir="$ac_optarg" ;;
264    
265    -infodir | --infodir | --infodi | --infod | --info | --inf)    -infodir | --infodir | --infodi | --infod | --info | --inf)
266      ac_prev=infodir ;;      ac_prev=infodir ;;
267    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
268      infodir=$ac_optarg ;;      infodir="$ac_optarg" ;;
269    
270    -libdir | --libdir | --libdi | --libd)    -libdir | --libdir | --libdi | --libd)
271      ac_prev=libdir ;;      ac_prev=libdir ;;
272    -libdir=* | --libdir=* | --libdi=* | --libd=*)    -libdir=* | --libdir=* | --libdi=* | --libd=*)
273      libdir=$ac_optarg ;;      libdir="$ac_optarg" ;;
274    
275    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
276    | --libexe | --libex | --libe)    | --libexe | --libex | --libe)
277      ac_prev=libexecdir ;;      ac_prev=libexecdir ;;
278    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
279    | --libexe=* | --libex=* | --libe=*)    | --libexe=* | --libex=* | --libe=*)
280      libexecdir=$ac_optarg ;;      libexecdir="$ac_optarg" ;;
281    
282    -localstatedir | --localstatedir | --localstatedi | --localstated \    -localstatedir | --localstatedir | --localstatedi | --localstated \
283    | --localstate | --localstat | --localsta | --localst \    | --localstate | --localstat | --localsta | --localst \
# Line 470  do Line 286  do
286    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
287    | --localstate=* | --localstat=* | --localsta=* | --localst=* \    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
288    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
289      localstatedir=$ac_optarg ;;      localstatedir="$ac_optarg" ;;
290    
291    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
292      ac_prev=mandir ;;      ac_prev=mandir ;;
293    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
294      mandir=$ac_optarg ;;      mandir="$ac_optarg" ;;
295    
296    -nfp | --nfp | --nf)    -nfp | --nfp | --nf)
297      # Obsolete; use --without-fp.      # Obsolete; use --without-fp.
298      with_fp=no ;;      with_fp=no ;;
299    
300    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
301    | --no-cr | --no-c | -n)    | --no-cr | --no-c)
302      no_create=yes ;;      no_create=yes ;;
303    
304    -no-recursion | --no-recursion | --no-recursio | --no-recursi \    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 496  do Line 312  do
312    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
313    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
314    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
315      oldincludedir=$ac_optarg ;;      oldincludedir="$ac_optarg" ;;
316    
317    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
318      ac_prev=prefix ;;      ac_prev=prefix ;;
319    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
320      prefix=$ac_optarg ;;      prefix="$ac_optarg" ;;
321    
322    -program-prefix | --program-prefix | --program-prefi | --program-pref \    -program-prefix | --program-prefix | --program-prefi | --program-pref \
323    | --program-pre | --program-pr | --program-p)    | --program-pre | --program-pr | --program-p)
324      ac_prev=program_prefix ;;      ac_prev=program_prefix ;;
325    -program-prefix=* | --program-prefix=* | --program-prefi=* \    -program-prefix=* | --program-prefix=* | --program-prefi=* \
326    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
327      program_prefix=$ac_optarg ;;      program_prefix="$ac_optarg" ;;
328    
329    -program-suffix | --program-suffix | --program-suffi | --program-suff \    -program-suffix | --program-suffix | --program-suffi | --program-suff \
330    | --program-suf | --program-su | --program-s)    | --program-suf | --program-su | --program-s)
331      ac_prev=program_suffix ;;      ac_prev=program_suffix ;;
332    -program-suffix=* | --program-suffix=* | --program-suffi=* \    -program-suffix=* | --program-suffix=* | --program-suffi=* \
333    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
334      program_suffix=$ac_optarg ;;      program_suffix="$ac_optarg" ;;
335    
336    -program-transform-name | --program-transform-name \    -program-transform-name | --program-transform-name \
337    | --program-transform-nam | --program-transform-na \    | --program-transform-nam | --program-transform-na \
# Line 532  do Line 348  do
348    | --program-transfo=* | --program-transf=* \    | --program-transfo=* | --program-transf=* \
349    | --program-trans=* | --program-tran=* \    | --program-trans=* | --program-tran=* \
350    | --progr-tra=* | --program-tr=* | --program-t=*)    | --progr-tra=* | --program-tr=* | --program-t=*)
351      program_transform_name=$ac_optarg ;;      program_transform_name="$ac_optarg" ;;
352    
353    -q | -quiet | --quiet | --quie | --qui | --qu | --q \    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
354    | -silent | --silent | --silen | --sile | --sil)    | -silent | --silent | --silen | --sile | --sil)
# Line 542  do Line 358  do
358      ac_prev=sbindir ;;      ac_prev=sbindir ;;
359    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
360    | --sbi=* | --sb=*)    | --sbi=* | --sb=*)
361      sbindir=$ac_optarg ;;      sbindir="$ac_optarg" ;;
362    
363    -sharedstatedir | --sharedstatedir | --sharedstatedi \    -sharedstatedir | --sharedstatedir | --sharedstatedi \
364    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
# Line 553  do Line 369  do
369    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
370    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
371    | --sha=* | --sh=*)    | --sha=* | --sh=*)
372      sharedstatedir=$ac_optarg ;;      sharedstatedir="$ac_optarg" ;;
373    
374    -site | --site | --sit)    -site | --site | --sit)
375      ac_prev=site ;;      ac_prev=site ;;
376    -site=* | --site=* | --sit=*)    -site=* | --site=* | --sit=*)
377      site=$ac_optarg ;;      site="$ac_optarg" ;;
378    
379    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
380      ac_prev=srcdir ;;      ac_prev=srcdir ;;
381    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382      srcdir=$ac_optarg ;;      srcdir="$ac_optarg" ;;
383    
384    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385    | --syscon | --sysco | --sysc | --sys | --sy)    | --syscon | --sysco | --sysc | --sys | --sy)
386      ac_prev=sysconfdir ;;      ac_prev=sysconfdir ;;
387    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389      sysconfdir=$ac_optarg ;;      sysconfdir="$ac_optarg" ;;
390    
391    -target | --target | --targe | --targ | --tar | --ta | --t)    -target | --target | --targe | --targ | --tar | --ta | --t)
392      ac_prev=target_alias ;;      ac_prev=target ;;
393    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394      target_alias=$ac_optarg ;;      target="$ac_optarg" ;;
395    
396    -v | -verbose | --verbose | --verbos | --verbo | --verb)    -v | -verbose | --verbose | --verbos | --verbo | --verb)
397      verbose=yes ;;      verbose=yes ;;
398    
399    -version | --version | --versio | --versi | --vers | -V)    -version | --version | --versio | --versi | --vers)
400      ac_init_version=: ;;      echo "configure generated by autoconf version 2.13"
401        exit 0 ;;
402    
403    -with-* | --with-*)    -with-* | --with-*)
404      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`      ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
406      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&      if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407        { echo "$as_me: error: invalid package name: $ac_package" >&2        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408     { (exit 1); exit 1; }; }      fi
409      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
410      case $ac_option in      case "$ac_option" in
411        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;        *=*) ;;
412        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
413      esac      esac
414      eval "with_$ac_package='$ac_optarg'" ;;      eval "with_${ac_package}='$ac_optarg'" ;;
415    
416    -without-* | --without-*)    -without-* | --without-*)
417      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`      ac_package=`echo $ac_option|sed -e 's/-*without-//'`
418      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
419      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&      if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420        { echo "$as_me: error: invalid package name: $ac_package" >&2        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421     { (exit 1); exit 1; }; }      fi
422      ac_package=`echo $ac_package | sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
423      eval "with_$ac_package=no" ;;      eval "with_${ac_package}=no" ;;
424    
425    --x)    --x)
426      # Obsolete; use --with-x.      # Obsolete; use --with-x.
# Line 614  do Line 431  do
431      ac_prev=x_includes ;;      ac_prev=x_includes ;;
432    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434      x_includes=$ac_optarg ;;      x_includes="$ac_optarg" ;;
435    
436    -x-libraries | --x-libraries | --x-librarie | --x-librari \    -x-libraries | --x-libraries | --x-librarie | --x-librari \
437    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438      ac_prev=x_libraries ;;      ac_prev=x_libraries ;;
439    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441      x_libraries=$ac_optarg ;;      x_libraries="$ac_optarg" ;;
442    
443    -*) { echo "$as_me: error: unrecognized option: $ac_option    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 Try \`$0 --help' for more information." >&2  
    { (exit 1); exit 1; }; }  
444      ;;      ;;
445    
   *=*)  
     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; }; }  
     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`  
     eval "$ac_envvar='$ac_optarg'"  
     export $ac_envvar ;;  
   
446    *)    *)
447      # FIXME: should be removed in autoconf 3.0.      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448      echo "$as_me: WARNING: you should use --build, --host, --target" >&2        echo "configure: warning: $ac_option: invalid host type" 1>&2
449      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&      fi
450        echo "$as_me: WARNING: invalid host type: $ac_option" >&2      if test "x$nonopt" != xNONE; then
451      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}        { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452        fi
453        nonopt="$ac_option"
454      ;;      ;;
455    
456    esac    esac
457  done  done
458    
459  if test -n "$ac_prev"; then  if test -n "$ac_prev"; then
460    ac_option=--`echo $ac_prev | sed 's/_/-/g'`    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
   { echo "$as_me: error: missing argument to $ac_option" >&2  
    { (exit 1); exit 1; }; }  
461  fi  fi
462    
463  # Be sure to have absolute paths.  trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
464  for ac_var in exec_prefix prefix  
465  do  # File descriptor usage:
466    eval ac_val=$`echo $ac_var`  # 0 standard input
467    case $ac_val in  # 1 file creation
468      [\\/$]* | ?:[\\/]* | NONE | '' ) ;;  # 2 errors and warnings
469      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2  # 3 some systems may open it to /dev/tty
470     { (exit 1); exit 1; }; };;  # 4 used on the Kubota Titan
471    esac  # 6 checking for... messages and results
472  done  # 5 compiler messages saved in config.log
473    if test "$silent" = yes; then
474      exec 6>/dev/null
475    else
476      exec 6>&1
477    fi
478    exec 5>./config.log
479    
480    echo "\
481    This file contains any messages produced by compilers while
482    running configure, to aid debugging if configure makes a mistake.
483    " 1>&5
484    
485  # Be sure to have absolute paths.  # Strip out --no-create and --no-recursion so they do not pile up.
486  for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \  # Also quote any args containing shell metacharacters.
487            localstatedir libdir includedir oldincludedir infodir mandir  ac_configure_args=
488    for ac_arg
489  do  do
490    eval ac_val=$`echo $ac_var`    case "$ac_arg" in
491    case $ac_val in    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492      [\\/$]* | ?:[\\/]* ) ;;    | --no-cr | --no-c) ;;
493      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494     { (exit 1); exit 1; }; };;    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495      *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496      ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497      *) ac_configure_args="$ac_configure_args $ac_arg" ;;
498    esac    esac
499  done  done
500    
501  # There might be people who depend on the old broken behavior: `$host'  # NLS nuisances.
502  # used to hold the argument of --host etc.  # Only set these to C if already set.  These must not be set unconditionally
503  # FIXME: To remove some day.  # because not all systems understand e.g. LANG=C (notably SCO).
504  build=$build_alias  # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505  host=$host_alias  # Non-C LC_CTYPE values break the ctype check.
506  target=$target_alias  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
507    if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508  # FIXME: To remove some day.  if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509  if test "x$host_alias" != x; then  if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
   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  
   fi  
 fi  
   
 ac_tool_prefix=  
 test -n "$host_alias" && ac_tool_prefix=$host_alias-  
510    
511  test "$silent" = yes && exec 6>/dev/null  # confdefs.h avoids OS command line length limits that DEFS can exceed.
512    rm -rf conftest* confdefs.h
513    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514    echo > confdefs.h
515    
516    # A filename unique to this package, relative to the directory that
517    # configure is in, which we can look for to find out if srcdir is correct.
518    ac_unique_file=../generic/compiler/ascParse.y
519    
520  # Find the source files, if location was not specified.  # Find the source files, if location was not specified.
521  if test -z "$srcdir"; then  if test -z "$srcdir"; then
522    ac_srcdir_defaulted=yes    ac_srcdir_defaulted=yes
523    # Try the directory containing this script, then its parent.    # Try the directory containing this script, then its parent.
524    ac_confdir=`(dirname "$0") 2>/dev/null ||    ac_prog=$0
525  $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \    ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526       X"$0" : 'X\(//\)[^/]' \| \    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
      X"$0" : 'X\(//\)$' \| \  
      X"$0" : 'X\(/\)' \| \  
      .     : '\(.\)' 2>/dev/null ||  
 echo X"$0" |  
     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }  
       /^X\(\/\/\)[^/].*/{ s//\1/; q; }  
       /^X\(\/\/\)$/{ s//\1/; q; }  
       /^X\(\/\).*/{ s//\1/; q; }  
       s/.*/./; q'`  
527    srcdir=$ac_confdir    srcdir=$ac_confdir
528    if test ! -r $srcdir/$ac_unique_file; then    if test ! -r $srcdir/$ac_unique_file; then
529      srcdir=..      srcdir=..
# Line 727  else Line 533  else
533  fi  fi
534  if test ! -r $srcdir/$ac_unique_file; then  if test ! -r $srcdir/$ac_unique_file; then
535    if test "$ac_srcdir_defaulted" = yes; then    if test "$ac_srcdir_defaulted" = yes; then
536      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2      { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
    { (exit 1); exit 1; }; }  
537    else    else
538      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2      { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
    { (exit 1); exit 1; }; }  
539    fi    fi
540  fi  fi
541  (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||  srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2  
    { (exit 1); exit 1; }; }  
 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`  
 ac_env_build_alias_set=${build_alias+set}  
 ac_env_build_alias_value=$build_alias  
 ac_cv_env_build_alias_set=${build_alias+set}  
 ac_cv_env_build_alias_value=$build_alias  
 ac_env_host_alias_set=${host_alias+set}  
 ac_env_host_alias_value=$host_alias  
 ac_cv_env_host_alias_set=${host_alias+set}  
 ac_cv_env_host_alias_value=$host_alias  
 ac_env_target_alias_set=${target_alias+set}  
 ac_env_target_alias_value=$target_alias  
 ac_cv_env_target_alias_set=${target_alias+set}  
 ac_cv_env_target_alias_value=$target_alias  
 ac_env_CC_set=${CC+set}  
 ac_env_CC_value=$CC  
 ac_cv_env_CC_set=${CC+set}  
 ac_cv_env_CC_value=$CC  
 ac_env_CFLAGS_set=${CFLAGS+set}  
 ac_env_CFLAGS_value=$CFLAGS  
 ac_cv_env_CFLAGS_set=${CFLAGS+set}  
 ac_cv_env_CFLAGS_value=$CFLAGS  
 ac_env_LDFLAGS_set=${LDFLAGS+set}  
 ac_env_LDFLAGS_value=$LDFLAGS  
 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}  
 ac_cv_env_LDFLAGS_value=$LDFLAGS  
 ac_env_CPPFLAGS_set=${CPPFLAGS+set}  
 ac_env_CPPFLAGS_value=$CPPFLAGS  
 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}  
 ac_cv_env_CPPFLAGS_value=$CPPFLAGS  
 ac_env_CPP_set=${CPP+set}  
 ac_env_CPP_value=$CPP  
 ac_cv_env_CPP_set=${CPP+set}  
 ac_cv_env_CPP_value=$CPP  
   
 #  
 # Report the --help message.  
 #  
 if test "$ac_init_help" = "long"; then  
   # Omit some internal or obsolete options to make the list less imposing.  
   # This message is too long to be a string in the A/UX 3.1 sh.  
   cat <<_ACEOF  
 \`configure' configures this package to adapt to many kinds of systems.  
542    
543  Usage: $0 [OPTION]... [VAR=VALUE]...  # Prefer explicitly selected file to automatically selected ones.
544    if test -z "$CONFIG_SITE"; then
545      if test "x$prefix" != xNONE; then
546        CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
547      else
548        CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549      fi
550    fi
551    for ac_site_file in $CONFIG_SITE; do
552      if test -r "$ac_site_file"; then
553        echo "loading site script $ac_site_file"
554        . "$ac_site_file"
555      fi
556    done
557    
 To assign environment variables (e.g., CC, CFLAGS...), specify them as  
 VAR=VALUE.  See below for descriptions of some of the useful variables.  
558    
559  Defaults for the options are specified in brackets.  ac_ext=c
560    # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561    ac_cpp='$CPP $CPPFLAGS'
562    ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563    ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564    cross_compiling=$ac_cv_prog_cc_cross
565    
566    ac_exeext=
567    ac_objext=o
568    if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569      # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570      if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571        ac_n= ac_c='
572    ' ac_t='    '
573      else
574        ac_n=-n ac_c= ac_t=
575      fi
576    else
577      ac_n= ac_c='\c' ac_t=
578    fi
579    
 Configuration:  
   -h, --help              display this help and exit  
       --help=short        display options specific to this package  
       --help=recursive    display the short help of all the included packages  
   -V, --version           display version information and exit  
   -q, --quiet, --silent   do not print \`checking...' messages  
       --cache-file=FILE   cache test results in FILE [disabled]  
   -C, --config-cache      alias for \`--cache-file=config.cache'  
   -n, --no-create         do not create output files  
       --srcdir=DIR        find the sources in DIR [configure dir or \`..']  
580    
 _ACEOF  
581    
   cat <<_ACEOF  
 Installation directories:  
   --prefix=PREFIX         install architecture-independent files in PREFIX  
               [$ac_default_prefix]  
   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX  
               [PREFIX]  
582    
583  By default, \`make install' will install all the files in  #--------------------------------------------------------------------
584  \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify  #  CVS Most Recent Revision Data
585  an installation prefix other than \`$ac_default_prefix' using \`--prefix',  #   Put this data after AC_INIT since we want this information
586  for instance \`--prefix=\$HOME'.  #   to also appear in configure and autoconf, when creating
587    #   configure, strips all comments that appear in configure.in
588  For better control, use the options below.  #   before AC_INIT
589    #    $Revision: 1.38 $
590  Fine tuning of the installation directories:  #    $Date: 2003/11/23 19:36:39 $
591    --bindir=DIR           user executables [EPREFIX/bin]  #    $Author: ballan $
592    --sbindir=DIR          system admin executables [EPREFIX/sbin]  #    $Source: /afs/cs.cmu.edu/project/ascend/Repository/configure.in,v $
593    --libexecdir=DIR       program executables [EPREFIX/libexec]  #--------------------------------------------------------------------
   --datadir=DIR          read-only architecture-independent data [PREFIX/share]  
   --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]  
   --infodir=DIR          info documentation [PREFIX/info]  
   --mandir=DIR           man documentation [PREFIX/man]  
 _ACEOF  
594    
   cat <<\_ACEOF  
595    
596  X features:  #--------------------------------------------------------------------
597    --x-includes=DIR    X include files are in DIR  #   Where configure should look for files it needs.
598    --x-libraries=DIR   X library files are in DIR  #--------------------------------------------------------------------
599    ac_aux_dir=
600  System types:  for ac_dir in config $srcdir/config; do
601    --build=BUILD     configure for building on BUILD [guessed]    if test -f $ac_dir/install-sh; then
602    --host=HOST       cross-compile to build programs to run on HOST [BUILD]      ac_aux_dir=$ac_dir
603  _ACEOF      ac_install_sh="$ac_aux_dir/install-sh -c"
604        break
605      elif test -f $ac_dir/install.sh; then
606        ac_aux_dir=$ac_dir
607        ac_install_sh="$ac_aux_dir/install.sh -c"
608        break
609      fi
610    done
611    if test -z "$ac_aux_dir"; then
612      { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
613  fi  fi
614    ac_config_guess=$ac_aux_dir/config.guess
615    ac_config_sub=$ac_aux_dir/config.sub
616    ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
617    
 if test -n "$ac_init_help"; then  
618    
619    cat <<\_ACEOF  #--------------------------------------------------------------------
620    #   Set the output variables prefix and exec_prefix that
621  Optional Features:  #   determine where things will be installed.
622    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)  #--------------------------------------------------------------------
623    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]  if test "${prefix}" = "NONE"; then
624        prefix=/usr/local
625    fi
626    if test "${exec_prefix}" = "NONE"; then
627        exec_prefix=$prefix
628    fi
629    
 ASCEND specific options  
630    
631  Compiler options:  #--------------------------------------------------------------------
632    --enable-gcc            allow use of gcc if avaiable  #   For the Fortran support libraries and the TCL/TK libraries
633    --enable-optimization   optimize the C code while building ascend  #   and header files, we unfortunately need the full path to
634    #   these files.  The problem with having the full path is that
635  Optional Packages:  #   if the user moves the source tree, things will break unless
636    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]  #   the user re-runs configure.
637    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)  #--------------------------------------------------------------------
   --with-x                use the X Window System  
 Location of Tcl, Tk, and tkTable:  
   --with-tcl=LIBRARY,HEADER  
                           The location of the Tcl8.0 library and/or header  
                           For a static Tcl8.0 library, give the full path:  
                               --with-tcl='/usr/local/lib/libtcl8.0.a'  
                           For a dynamic library, give any -L options required:  
                               --with-tcl='-L/usr/local/lib -ltcl8.0'  
                           To specify only the header, leave off the library:  
                               --with-tcl=',/usr/local/include/tcl.h'  
   --with-tk=LIBRARY,HEADER  
                           The location of the Tk8.0 library and/or header  
                           For a static Tk8.0 library, give the full path:  
                               --with-tk='/usr/local/lib/libtk8.3.a'  
                           For a dynamic library, give any -L options required:  
                               --with-tk='-L/usr/local/lib -ltk8.3'  
                           To specify only the header, leave off the library:  
                               --with-tk=',/usr/local/include/tk.h'  
   --with-tktable=TKTABLE  full path to a TkTable1.3 static library  
   --with-wish=/path/to/bin/wish  
                           The location of the wish shell executable matching  
                           the tcl/tk given by --with-tk and --with-tcl.  
                           X11 must be running during configure.  
 Fortran compiler and libraries:  
   --with-fortran=F77,F77LIBS  
                           The location of your Fortran compiler and its  
                           library files.  For example, under SunOS:  
                              --with-fortran='f77,-L/usr/lang/lib -lF77 -lM77'  
                           To specify only the compiler or libraries, leave off  
                           whatever is not needed:  
                               --with-fortran=',-L/usr/lang/lib -lF77 -lM77'  
                           Use '--without-fortran' to not link against  
                           any Fortran libraries  
   --with-blas=BLASLIB     The full path to the blas library.  
                           Use '--with-blas=build' to build the blas library  
                           from the sources that come with the distribution.  
   --with-linpack=LPAKLIB  The full path to the linpack library.  
                           Use '--with-linpack=build' to build the library  
                           from the sources that come with the distribution.  
   --with-lsod=LSODLIB     The full path to the lsod library.  
                           Use '--with-lsod=build' to build the lsod library  
                           from the sources that come with the distribution.  
 Generation of Makefiles:  
   --without-tkdir         do not generate Makefiles in the TK subdir  
   --without-models        do not generate Makefiles in the models subdir  
   
 Some influential environment variables:  
   CC          C compiler command  
   CFLAGS      C compiler flags  
   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a  
               nonstandard directory <lib dir>  
   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have  
               headers in a nonstandard directory <include dir>  
   CPP         C preprocessor  
   
 Use these variables to override the choices made by `configure' or to help  
 it to find libraries and programs with nonstandard names/locations.  
   
 _ACEOF  
 fi  
   
 if test "$ac_init_help" = "recursive"; then  
   # If there are subdirs, report their specific --help.  
   ac_popdir=`pwd`  
   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue  
     test -d $ac_dir || continue  
     ac_builddir=.  
   
 if test "$ac_dir" != .; then  
   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`  
   # A "../" for each directory in $ac_dir_suffix.  
   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`  
 else  
   ac_dir_suffix= ac_top_builddir=  
 fi  
   
 case $srcdir in  
   .)  # No --srcdir option.  We are building in place.  
     ac_srcdir=.  
     if test -z "$ac_top_builddir"; then  
        ac_top_srcdir=.  
     else  
        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`  
     fi ;;  
   [\\/]* | ?:[\\/]* )  # Absolute path.  
     ac_srcdir=$srcdir$ac_dir_suffix;  
     ac_top_srcdir=$srcdir ;;  
   *) # Relative path.  
     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix  
     ac_top_srcdir=$ac_top_builddir$srcdir ;;  
 esac  
   
 # Do not use `cd foo && pwd` to compute absolute paths, because  
 # the directories may not exist.  
 case `pwd` in  
 .) ac_abs_builddir="$ac_dir";;  
 *)  
   case "$ac_dir" in  
   .) ac_abs_builddir=`pwd`;;  
   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;  
   *) ac_abs_builddir=`pwd`/"$ac_dir";;  
   esac;;  
 esac  
 case $ac_abs_builddir in  
 .) ac_abs_top_builddir=${ac_top_builddir}.;;  
 *)  
   case ${ac_top_builddir}. in  
   .) ac_abs_top_builddir=$ac_abs_builddir;;  
   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;  
   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;  
   esac;;  
 esac  
 case $ac_abs_builddir in  
 .) ac_abs_srcdir=$ac_srcdir;;  
 *)  
   case $ac_srcdir in  
   .) ac_abs_srcdir=$ac_abs_builddir;;  
   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;  
   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;  
   esac;;  
 esac  
 case $ac_abs_builddir in  
 .) ac_abs_top_srcdir=$ac_top_srcdir;;  
 *)  
   case $ac_top_srcdir in  
   .) ac_abs_top_srcdir=$ac_abs_builddir;;  
   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;  
   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;  
   esac;;  
 esac  
   
     cd $ac_dir  
     # Check for guested configure; otherwise get Cygnus style configure.  
     if test -f $ac_srcdir/configure.gnu; then  
       echo  
       $SHELL $ac_srcdir/configure.gnu  --help=recursive  
     elif test -f $ac_srcdir/configure; then  
       echo  
       $SHELL $ac_srcdir/configure  --help=recursive  
     elif test -f $ac_srcdir/configure.ac ||  
        test -f $ac_srcdir/configure.in; then  
       echo  
       $ac_configure --help  
     else  
       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2  
     fi  
     cd $ac_popdir  
   done  
 fi  
   
 test -n "$ac_init_help" && exit 0  
 if $ac_init_version; then  
   cat <<\_ACEOF  
   
 Copyright (C) 2003 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 0  
 fi  
 exec 5>config.log  
 cat >&5 <<_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.59.  Invocation command line was  
   
   $ $0 $@  
   
 _ACEOF  
 {  
 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`  
 hostinfo               = `(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  
   
 } >&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_sep=  
 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_sep'$ac_arg'"  
       # Get rid of the leading space.  
       ac_sep=" "  
       ;;  
     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: Be sure not to use single quotes in there, as some shells,  
 # such as our DU 5.0 friend, will then `close' the trap.  
 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,  
 {  
   (set) 2>&1 |  
     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in  
     *ac_space=\ *)  
       sed -n \  
     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;  
       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"  
       ;;  
     *)  
       sed -n \  
     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"  
       ;;  
     esac;  
 }  
     echo  
   
     cat <<\_ASBOX  
 ## ----------------- ##  
 ## Output variables. ##  
 ## ----------------- ##  
 _ASBOX  
     echo  
     for ac_var in $ac_subst_vars  
     do  
       eval ac_val=$`echo $ac_var`  
       echo "$ac_var='"'"'$ac_val'"'"'"  
     done | sort  
     echo  
   
     if test -n "$ac_subst_files"; then  
       cat <<\_ASBOX  
 ## ------------- ##  
 ## Output files. ##  
 ## ------------- ##  
 _ASBOX  
       echo  
       for ac_var in $ac_subst_files  
       do  
     eval ac_val=$`echo $ac_var`  
     echo "$ac_var='"'"'$ac_val'"'"'"  
       done | sort  
       echo  
     fi  
   
     if test -s confdefs.h; then  
       cat <<\_ASBOX  
 ## ----------- ##  
 ## confdefs.h. ##  
 ## ----------- ##  
 _ASBOX  
       echo  
       sed "/^$/d" confdefs.h | sort  
       echo  
     fi  
     test "$ac_signal" != 0 &&  
       echo "$as_me: caught signal $ac_signal"  
     echo "$as_me: exit $exit_status"  
   } >&5  
   rm -f core *.core &&  
   rm -rf 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 -rf conftest* confdefs.h  
 # AIX cpp loses on an empty file, so make sure it contains at least a newline.  
 echo >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 -z "$CONFIG_SITE"; then  
   if test "x$prefix" != xNONE; then  
     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"  
   else  
     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"  
   fi  
 fi  
 for ac_site_file in $CONFIG_SITE; 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  
   
   
 # Check that the precious variables saved in the cache have kept the same  
 # value.  
 ac_cache_corrupted=false  
 for ac_var in `(set) 2>&1 |  
            sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; 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  
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
 #--------------------------------------------------------------------  
 #  CVS Most Recent Revision Data  
 #   Put this data after AC_INIT since we want this information  
 #   to also appear in configure and autoconf, when creating  
 #   configure, strips all comments that appear in configure.in  
 #   before AC_INIT  
 #    $Revision: 1.38 $  
 #    $Date: 2003/11/23 19:36:39 $  
 #    $Author: ballan $  
 #    $Source: /afs/cs.cmu.edu/project/ascend/Repository/configure.in,v $  
 #--------------------------------------------------------------------  
   
   
 #--------------------------------------------------------------------  
 #   Where configure should look for files it needs.  
 #--------------------------------------------------------------------  
 ac_aux_dir=  
 for ac_dir in config $srcdir/config; 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 config $srcdir/config" >&5  
 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}  
    { (exit 1); exit 1; }; }  
 fi  
 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  
 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  
 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.  
   
   
 #--------------------------------------------------------------------  
 #   Set the output variables prefix and exec_prefix that  
 #   determine where things will be installed.  
 #--------------------------------------------------------------------  
 if test "${prefix}" = "NONE"; then  
     prefix=/usr/local  
 fi  
 if test "${exec_prefix}" = "NONE"; then  
     exec_prefix=$prefix  
 fi  
   
   
 #--------------------------------------------------------------------  
 #   For the Fortran support libraries and the TCL/TK libraries  
 #   and header files, we unfortunately need the full path to  
 #   these files.  The problem with having the full path is that  
 #   if the user moves the source tree, things will break unless  
 #   the user re-runs configure.  
 #--------------------------------------------------------------------  
638    
639  #--------------------------------------------------------------------  #--------------------------------------------------------------------
640  ##AWW  ##AWW
# Line 1453  fi Line 690  fi
690  ##AWW  ##AWW
691  ##AWW   A safe include path should assume one is a directory with any  ##AWW   A safe include path should assume one is a directory with any
692  ##AWW   of these .h and .c files and one needs to find a .h file in  ##AWW   of these .h and .c files and one needs to find a .h file in
693  ##AWW   any other of them.  The following paths should do it.  ##AWW   any other of them.  The following paths should do it.  
694  ##AWW  ##AWW  
695  ##AWW   If in compiler, general, packages, solver, utilities  ##AWW   If in compiler, general, packages, solver, utilities
696  ##AWW       ..                        for general, packages, etc  ##AWW       ..                        for general, packages, etc
697  ##AWW       ../../../tcltk98/generic  for interface  ##AWW       ../../../tcltk98/generic  for interface
# Line 1468  fi Line 705  fi
705  #   the ascend4 OBJECT directory. --rewrite - not clear.  #   the ascend4 OBJECT directory. --rewrite - not clear.
706  #AWW    To compile a new ASCEND executable, one should move into the  #AWW    To compile a new ASCEND executable, one should move into the
707  #AWW    directory in which one wants the ASCEND object/executable  #AWW    directory in which one wants the ASCEND object/executable
708  #AWW    to reside (call this objTree) and from there run  #AWW    to reside (call this objTree) and from there run
709  #AWW    ../base/unixAC213/configure.  #AWW    ../base/unixAC213/configure.
710  #AWW    In the following code asc_include is set to the path from  #AWW    In the following code asc_include is set to the path from
711    
# Line 1501  esac Line 738  esac
738  #     subdirectories.  Unfortunately, it won't work if the user  #     subdirectories.  Unfortunately, it won't work if the user
739  #     moves the source tree.  #     moves the source tree.
740  #--------------------------------------------------------------------  #--------------------------------------------------------------------
741  if test -n "$ac_tool_prefix"; then  # Extract the first word of "ranlib", so it can be a program name with args.
742    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.  set dummy ranlib; ac_word=$2
743  set dummy ${ac_tool_prefix}ranlib; ac_word=$2  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
744  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo "configure:745: checking for $ac_word" >&5
745  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
746  if test "${ac_cv_prog_RANLIB+set}" = set; then    echo $ac_n "(cached) $ac_c" 1>&6
   echo $ECHO_N "(cached) $ECHO_C" >&6  
747  else  else
748    if test -n "$RANLIB"; then    if test -n "$RANLIB"; then
749    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
750  else  else
751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
752  for as_dir in $PATH    ac_dummy="$PATH"
753  do    for ac_dir in $ac_dummy; do
754    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
755    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
756    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_RANLIB="ranlib"
757    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
758      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"      fi
759      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
760      break 2    IFS="$ac_save_ifs"
761    fi    test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 done  
 done  
   
762  fi  fi
763  fi  fi
764  RANLIB=$ac_cv_prog_RANLIB  RANLIB="$ac_cv_prog_RANLIB"
765  if test -n "$RANLIB"; then  if test -n "$RANLIB"; then
766    echo "$as_me:$LINENO: result: $RANLIB" >&5    echo "$ac_t""$RANLIB" 1>&6
 echo "${ECHO_T}$RANLIB" >&6  
767  else  else
768    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
769  fi  fi
770    
771  fi  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
772  if test -z "$ac_cv_prog_RANLIB"; then  echo "configure:773: checking whether ln -s works" >&5
773    ac_ct_RANLIB=$RANLIB  if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
774    # Extract the first word of "ranlib", so it can be a program name with args.    echo $ac_n "(cached) $ac_c" 1>&6
 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.  
775  else  else
776  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    rm -f conftestdata
777  for as_dir in $PATH  if ln -s X conftestdata 2>/dev/null
778  do  then
779    IFS=$as_save_IFS    rm -f conftestdata
780    test -z "$as_dir" && as_dir=.    ac_cv_prog_LN_S="ln -s"
   for ac_exec_ext in '' $ac_executable_extensions; do  
   if $as_executable_p "$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  
   
   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"  
 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  
781  else  else
782    echo "$as_me:$LINENO: result: no" >&5    ac_cv_prog_LN_S=ln
 echo "${ECHO_T}no" >&6  
783  fi  fi
   
   RANLIB=$ac_ct_RANLIB  
 else  
   RANLIB="$ac_cv_prog_RANLIB"  
784  fi  fi
785    LN_S="$ac_cv_prog_LN_S"
786  echo "$as_me:$LINENO: checking whether ln -s works" >&5  if test "$ac_cv_prog_LN_S" = "ln -s"; then
787  echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6    echo "$ac_t""yes" 1>&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  
788  else  else
789    echo "$as_me:$LINENO: result: no, using $LN_S" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no, using $LN_S" >&6  
790  fi  fi
791    
792  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
793  echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6  echo "configure:794: checking whether ${MAKE-make} sets \${MAKE}" >&5
794  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
795  if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
796    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
797  else  else
798    cat >conftest.make <<\_ACEOF    cat > conftestmake <<\EOF
799  all:  all:
800      @echo 'ac_maketemp="$(MAKE)"'      @echo 'ac_maketemp="${MAKE}"'
801  _ACEOF  EOF
802  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
803  eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`  eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
804  if test -n "$ac_maketemp"; then  if test -n "$ac_maketemp"; then
805    eval ac_cv_prog_make_${ac_make}_set=yes    eval ac_cv_prog_make_${ac_make}_set=yes
806  else  else
807    eval ac_cv_prog_make_${ac_make}_set=no    eval ac_cv_prog_make_${ac_make}_set=no
808  fi  fi
809  rm -f conftest.make  rm -f conftestmake
810  fi  fi
811  if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then  if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
812    echo "$as_me:$LINENO: result: yes" >&5    echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
813    SET_MAKE=    SET_MAKE=
814  else  else
815    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
816    SET_MAKE="MAKE=${MAKE-make}"    SET_MAKE="MAKE=${MAKE-make}"
817  fi  fi
818    
# Line 1628  fi Line 823  fi
823  # SunOS /usr/etc/install  # SunOS /usr/etc/install
824  # IRIX /sbin/install  # IRIX /sbin/install
825  # AIX /bin/install  # AIX /bin/install
 # AmigaOS /C/install, which installs bootblocks on floppy discs  
826  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
827  # AFS /usr/afsws/bin/install, which mishandles nonexistent args  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
828  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 # OS/2's system install, which has a completely different semantic  
829  # ./install, which can be erroneously created by make from ./install.sh.  # ./install, which can be erroneously created by make from ./install.sh.
830  echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
831  echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6  echo "configure:832: checking for a BSD compatible install" >&5
832  if test -z "$INSTALL"; then  if test -z "$INSTALL"; then
833  if test "${ac_cv_path_install+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
834    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
835  else  else
836    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR      IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
837  for as_dir in $PATH    for ac_dir in $PATH; do
838  do      # Account for people who put trailing slashes in PATH elements.
839    IFS=$as_save_IFS      case "$ac_dir/" in
840    test -z "$as_dir" && as_dir=.      /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
841    # Account for people who put trailing slashes in PATH elements.      *)
842  case $as_dir/ in        # OSF1 and SCO ODT 3.0 have their own names for install.
843    ./ | .// | /cC/* | \        # Don't use installbsd from OSF since it installs stuff as root
844    /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \        # by default.
845    ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \        for ac_prog in ginstall scoinst install; do
846    /usr/ucb/* ) ;;          if test -f $ac_dir/$ac_prog; then
   *)  
     # OSF1 and SCO ODT 3.0 have their own names for install.  
     # Don't use installbsd from OSF since it installs stuff as root  
     # by default.  
     for ac_prog in ginstall scoinst install; do  
       for ac_exec_ext in '' $ac_executable_extensions; do  
     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then  
847        if test $ac_prog = install &&        if test $ac_prog = install &&
848          grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then              grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
849          # AIX install.  It has an incompatible calling convention.          # AIX install.  It has an incompatible calling convention.
850          :          :
       elif test $ac_prog = install &&  
         grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then  
         # program-specific install script used by HP pwplus--don't use.  
         :  
851        else        else
852          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"          ac_cv_path_install="$ac_dir/$ac_prog -c"
853          break 3          break 2
854        fi        fi
855      fi      fi
856        done        done
857      done        ;;
858      ;;      esac
859  esac    done
860  done    IFS="$ac_save_IFS"
   
861    
862  fi  fi
863    if test "${ac_cv_path_install+set}" = set; then    if test "${ac_cv_path_install+set}" = set; then
864      INSTALL=$ac_cv_path_install      INSTALL="$ac_cv_path_install"
865    else    else
866      # As a last resort, use the slow shell script.  We don't cache a      # As a last resort, use the slow shell script.  We don't cache a
867      # path for INSTALL within a source directory, because that will      # path for INSTALL within a source directory, because that will
868      # break other packages using the cache if that directory is      # break other packages using the cache if that directory is
869      # removed, or if the path is relative.      # removed, or if the path is relative.
870      INSTALL=$ac_install_sh      INSTALL="$ac_install_sh"
871    fi    fi
872  fi  fi
873  echo "$as_me:$LINENO: result: $INSTALL" >&5  echo "$ac_t""$INSTALL" 1>&6
 echo "${ECHO_T}$INSTALL" >&6  
874    
875  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
876  # It thinks the first close brace ends the variable substitution.  # It thinks the first close brace ends the variable substitution.
877  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
878    
879  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
880    
881  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
882    
# Line 1713  esac Line 893  esac
893  #--------------------------------------------------------------------  #--------------------------------------------------------------------
894  #   Get the host type for various checks along the way  #   Get the host type for various checks along the way
895  #--------------------------------------------------------------------  #--------------------------------------------------------------------
896    
897  # Make sure we can run config.sub.  # Make sure we can run config.sub.
898  $ac_config_sub sun4 >/dev/null 2>&1 ||  if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
899    { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5  else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
900  echo "$as_me: error: cannot run $ac_config_sub" >&2;}  fi
901     { (exit 1); exit 1; }; }  
902    echo $ac_n "checking host system type""... $ac_c" 1>&6
903  echo "$as_me:$LINENO: checking build system type" >&5  echo "configure:904: checking host system type" >&5
904  echo $ECHO_N "checking build system type... $ECHO_C" >&6  
905  if test "${ac_cv_build+set}" = set; then  host_alias=$host
906    echo $ECHO_N "(cached) $ECHO_C" >&6  case "$host_alias" in
907  else  NONE)
908    ac_cv_build_alias=$build_alias    case $nonopt in
909  test -z "$ac_cv_build_alias" &&    NONE)
910    ac_cv_build_alias=`$ac_config_guess`      if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
911  test -z "$ac_cv_build_alias" &&      else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
912    { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5      fi ;;
913  echo "$as_me: error: cannot guess build type; you must specify one" >&2;}    *) host_alias=$nonopt ;;
914     { (exit 1); exit 1; }; }    esac ;;
915  ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||  esac
   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5  
 echo "$as_me: error: $ac_config_sub $ac_cv_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  
 build=$ac_cv_build  
 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  
 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  
 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  
   
   
 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  
   ac_cv_host_alias=$host_alias  
 test -z "$ac_cv_host_alias" &&  
   ac_cv_host_alias=$ac_cv_build_alias  
 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||  
   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5  
 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}  
    { (exit 1); exit 1; }; }  
   
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_host" >&5  
 echo "${ECHO_T}$ac_cv_host" >&6  
 host=$ac_cv_host  
 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  
 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  
 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  
916    
917    host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
918    host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
919    host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
920    host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
921    echo "$ac_t""$host" 1>&6
922    
923    
924    
# Line 1798  if test "${enable_gcc+set}" = set; then Line 951  if test "${enable_gcc+set}" = set; then
951    asc_gcc_ok=$enableval    asc_gcc_ok=$enableval
952  else  else
953    asc_gcc_ok=no    asc_gcc_ok=no
954  fi;  fi
955    
956  if test ! "$asc_gcc_ok" = "yes"; then  if test ! "$asc_gcc_ok" = "yes"; then
957      CC=${CC-cc}      CC=${CC-cc}
958  fi  fi
# Line 1807  asc_orig_cc=$CC Line 961  asc_orig_cc=$CC
961  if test "X$asc_gcc_ok" = "Xyes" ; then  if test "X$asc_gcc_ok" = "Xyes" ; then
962      asc_ansi_ok=yes      asc_ansi_ok=yes
963  else  else
964      echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5      echo $ac_n "checking whether $CC understands const, void*, and function prototypes""... $ac_c" 1>&6
965  echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6  echo "configure:966: checking whether $CC understands const, void*, and function prototypes" >&5
966      ac_ext=c      cat > conftest.$ac_ext <<EOF
967  ac_cpp='$CPP $CPPFLAGS'  #line 968 "configure"
968  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  #include "confdefs.h"
969  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  
970  ac_compiler_gnu=$ac_cv_c_compiler_gnu  int main() {
 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 $as_executable_p "$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  
971    
972              int tstproto(int arg1, char * arg2);
973              int tstconst(const int arg1, const char *arg2);
974              int tstvoidp(const int arg1, const void *arg2);
975    ; return 0; }
976    EOF
977    if { (eval echo configure:978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
978      rm -rf conftest*
979       asc_ansi_ok=yes
980    else
981      echo "configure: failed program was:" >&5
982      cat conftest.$ac_ext >&5
983      rm -rf conftest*
984       asc_ansi_ok=no
985  fi  fi
986    rm -f conftest*
987        echo "$ac_t""$asc_ansi_ok" 1>&6
988  fi  fi
989  CC=$ac_cv_prog_CC  
990  if test -n "$CC"; then  if test "$asc_ansi_ok" = no ; then
991    echo "$as_me:$LINENO: result: $CC" >&5      # Extract the first word of "c89", so it can be a program name with args.
992  echo "${ECHO_T}$CC" >&6  set dummy c89; ac_word=$2
993    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
994    echo "configure:995: checking for $ac_word" >&5
995    if eval "test \"`echo '$''{'ac_cv_prog_asc_cc1'+set}'`\" = set"; then
996      echo $ac_n "(cached) $ac_c" 1>&6
997  else  else
998    echo "$as_me:$LINENO: result: no" >&5    if test -n "$asc_cc1"; then
999  echo "${ECHO_T}no" >&6    ac_cv_prog_asc_cc1="$asc_cc1" # Let the user override the test.
1000    else
1001      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1002      ac_dummy="$PATH"
1003      for ac_dir in $ac_dummy; do
1004        test -z "$ac_dir" && ac_dir=.
1005        if test -f $ac_dir/$ac_word; then
1006          ac_cv_prog_asc_cc1="c89"
1007          break
1008        fi
1009      done
1010      IFS="$ac_save_ifs"
1011      test -z "$ac_cv_prog_asc_cc1" && ac_cv_prog_asc_cc1="NONE"
1012  fi  fi
   
1013  fi  fi
1014  if test -z "$ac_cv_prog_CC"; then  asc_cc1="$ac_cv_prog_asc_cc1"
1015    ac_ct_CC=$CC  if test -n "$asc_cc1"; then
1016    # Extract the first word of "gcc", so it can be a program name with args.    echo "$ac_t""$asc_cc1" 1>&6
 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.  
1017  else  else
1018  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    echo "$ac_t""no" 1>&6
 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 $as_executable_p "$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  
   
 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  
   
   CC=$ac_ct_CC  
 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 $as_executable_p "$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  
   
 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 "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_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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_prog_ac_ct_CC="cc"  
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
 done  
   
 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  
   
   CC=$ac_ct_CC  
 else  
   CC="$ac_cv_prog_CC"  
 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 $as_executable_p "$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  
   
 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  
   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 $as_executable_p "$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  
   
 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  
 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 $as_executable_p "$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  
   
 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  
   
   CC=$ac_ct_CC  
 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`  
 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5  
   (eval $ac_compiler --version </dev/null >&5) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }  
 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5  
   (eval $ac_compiler -v </dev/null >&5) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }  
 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5  
   (eval $ac_compiler -V </dev/null >&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[^ ]*//'`  
 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5  
   (eval $ac_link_default) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
   # Find the output, starting from the most likely.  This scheme is  
 # not robust to junk in `.', hence go to wildcards (a.*) only as a last  
 # resort.  
   
 # Be careful to initialize this variable, since it used to be cached.  
 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.  
 ac_cv_exeext=  
 # b.out is created by i960 compilers.  
 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out  
 do  
   test -f "$ac_file" || continue  
   case $ac_file in  
     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )  
     ;;  
     conftest.$ac_ext )  
     # This is the source file.  
     ;;  
     [ab].out )  
     # We found the default executable, but exeext='' is most  
     # certainly right.  
     break;;  
     *.* )  
     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`  
     # FIXME: I believe we export ac_cv_exeext for Libtool,  
     # but it would be cool to find out if it's true.  Does anybody  
     # maintain Libtool? --akim.  
     export ac_cv_exeext  
     break;;  
     * )  
     break;;  
   esac  
 done  
 else  
   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  
 echo "$as_me:$LINENO: result: $ac_file" >&5  
 echo "${ECHO_T}$ac_file" >&6  
   
 # Check 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'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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 | *.o | *.obj ) ;;  
     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`  
       export ac_cv_exeext  
       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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do  
   case $ac_file in  
     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;  
     *) 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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 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  
 CFLAGS="-g"  
 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  
   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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_prog_cc_g=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_prog_cc_g=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 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 ANSI C" >&5  
 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6  
 if test "${ac_cv_prog_cc_stdc+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_cv_prog_cc_stdc=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 <stdarg.h>  
 #include <stdio.h>  
 #include <sys/types.h>  
 #include <sys/stat.h>  
 /* 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 -std1 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 -std1.  */  
 int osf4_cc_array ['\x00' == 0 ? 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  
 # Don't try gcc -ansi; that turns off useful extensions and  
 # breaks some systems' header files.  
 # AIX           -qlanglvl=ansi  
 # Ultrix and OSF/1  -std1  
 # HP-UX 10.20 and later -Ae  
 # HP-UX older versions  -Aa -D_HPUX_SOURCE  
 # SVR4          -Xc -D__EXTENSIONS__  
 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"  
 do  
   CC="$ac_save_CC $ac_arg"  
   rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_prog_cc_stdc=$ac_arg  
 break  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 fi  
 rm -f conftest.err conftest.$ac_objext  
 done  
 rm -f conftest.$ac_ext conftest.$ac_objext  
 CC=$ac_save_CC  
   
 fi  
   
 case "x$ac_cv_prog_cc_stdc" in  
   x|xno)  
     echo "$as_me:$LINENO: result: none needed" >&5  
 echo "${ECHO_T}none needed" >&6 ;;  
   *)  
     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5  
 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6  
     CC="$CC $ac_cv_prog_cc_stdc" ;;  
 esac  
   
 # Some people use a C++ compiler to compile C.  Since we use `exit',  
 # in C++ we need to declare it.  In case someone uses the same compiler  
 # for both compiling C and C++ we need to have the C++ compiler decide  
 # the declaration of exit, since it's the most demanding environment.  
 cat >conftest.$ac_ext <<_ACEOF  
 #ifndef __cplusplus  
   choke me  
 #endif  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   for ac_declaration in \  
    '' \  
    'extern "C" void std::exit (int) throw (); using std::exit;' \  
    'extern "C" void std::exit (int); using std::exit;' \  
    'extern "C" void exit (int) throw ();' \  
    'extern "C" void exit (int);' \  
    'void exit (int);'  
 do  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_declaration  
 #include <stdlib.h>  
 int  
 main ()  
 {  
 exit (42);  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   :  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 continue  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_declaration  
 int  
 main ()  
 {  
 exit (42);  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   break  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 done  
 rm -f conftest*  
 if test -n "$ac_declaration"; then  
   echo '#ifdef __cplusplus' >>confdefs.h  
   echo $ac_declaration      >>confdefs.h  
   echo '#endif'             >>confdefs.h  
 fi  
   
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 fi  
 rm -f 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  
   
   
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 int  
 main ()  
 {  
   
           int tstproto(int arg1, char * arg2);  
           int tstconst(const int arg1, const char *arg2);  
           int tstvoidp(const int arg1, const void *arg2);  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
    asc_ansi_ok=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
  asc_ansi_ok=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
     echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5  
 echo "${ECHO_T}$asc_ansi_ok" >&6  
 fi  
   
 if test "$asc_ansi_ok" = no ; then  
     # Extract the first word of "c89", so it can be a program name with args.  
 set dummy c89; 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_asc_cc1+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   if test -n "$asc_cc1"; then  
   ac_cv_prog_asc_cc1="$asc_cc1" # 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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_prog_asc_cc1="c89"  
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
 done  
   
   test -z "$ac_cv_prog_asc_cc1" && ac_cv_prog_asc_cc1="NONE"  
 fi  
 fi  
 asc_cc1=$ac_cv_prog_asc_cc1  
 if test -n "$asc_cc1"; then  
   echo "$as_me:$LINENO: result: $asc_cc1" >&5  
 echo "${ECHO_T}$asc_cc1" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
1019  fi  fi
1020    
1021      if test ! "$asc_cc1" = NONE ; then      if test ! "$asc_cc1" = NONE ; then
1022          CC=$asc_cc1          CC=$asc_cc1
1023          echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5          echo $ac_n "checking whether $CC understands const, void*, and function prototypes""... $ac_c" 1>&6
1024  echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6  echo "configure:1025: checking whether $CC understands const, void*, and function prototypes" >&5
1025          cat >conftest.$ac_ext <<_ACEOF          cat > conftest.$ac_ext <<EOF
1026  /* confdefs.h.  */  #line 1027 "configure"
1027  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1028    
1029  int  int main() {
 main ()  
 {  
1030    
1031                int tstproto(int arg1, char * arg2);                int tstproto(int arg1, char * arg2);
1032                int tstconst(const int arg1, const char *arg2);                int tstconst(const int arg1, const char *arg2);
1033                int tstvoidp(const int arg1, const void *arg2);                int tstvoidp(const int arg1, const void *arg2);
1034    ;  ; return 0; }
1035    return 0;  EOF
1036  }  if { (eval echo configure:1037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1037  _ACEOF    rm -rf conftest*
1038  rm -f conftest.$ac_objext     asc_ansi_ok=yes
1039  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  else
1040    (eval $ac_compile) 2>conftest.er1    echo "configure: failed program was:" >&5
1041    ac_status=$?    cat conftest.$ac_ext >&5
1042    grep -v '^ *+' conftest.er1 >conftest.err    rm -rf conftest*
1043    rm -f conftest.er1     asc_ansi_ok=no
1044    cat conftest.err >&5  fi
1045    echo "$as_me:$LINENO: \$? = $ac_status" >&5  rm -f conftest*
1046    (exit $ac_status); } &&          echo "$ac_t""$asc_ansi_ok" 1>&6
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
    asc_ansi_ok=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
  asc_ansi_ok=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
         echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5  
 echo "${ECHO_T}$asc_ansi_ok" >&6  
1047      fi      fi
1048  fi  fi
1049    
1050  if test "$asc_ansi_ok" = no ; then  if test "$asc_ansi_ok" = no ; then
1051      # Extract the first word of "xlc", so it can be a program name with args.      # Extract the first word of "xlc", so it can be a program name with args.
1052  set dummy xlc; ac_word=$2  set dummy xlc; ac_word=$2
1053  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1054  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1055: checking for $ac_word" >&5
1055  if test "${ac_cv_prog_asc_cc2+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_asc_cc2'+set}'`\" = set"; then
1056    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1057  else  else
1058    if test -n "$asc_cc2"; then    if test -n "$asc_cc2"; then
1059    ac_cv_prog_asc_cc2="$asc_cc2" # Let the user override the test.    ac_cv_prog_asc_cc2="$asc_cc2" # Let the user override the test.
1060  else  else
1061  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1062  for as_dir in $PATH    ac_dummy="$PATH"
1063  do    for ac_dir in $ac_dummy; do
1064    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1065    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1066    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_asc_cc2="xlc"
1067    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1068      ac_cv_prog_asc_cc2="xlc"      fi
1069      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1070      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1071    test -z "$ac_cv_prog_asc_cc2" && ac_cv_prog_asc_cc2="NONE"    test -z "$ac_cv_prog_asc_cc2" && ac_cv_prog_asc_cc2="NONE"
1072  fi  fi
1073  fi  fi
1074  asc_cc2=$ac_cv_prog_asc_cc2  asc_cc2="$ac_cv_prog_asc_cc2"
1075  if test -n "$asc_cc2"; then  if test -n "$asc_cc2"; then
1076    echo "$as_me:$LINENO: result: $asc_cc2" >&5    echo "$ac_t""$asc_cc2" 1>&6
 echo "${ECHO_T}$asc_cc2" >&6  
1077  else  else
1078    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1079  fi  fi
1080    
1081      if test ! "$asc_cc2" = NONE ; then      if test ! "$asc_cc2" = NONE ; then
1082          CC=$asc_cc2          CC=$asc_cc2
1083          echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5          echo $ac_n "checking whether $CC understands const, void*, and function prototypes""... $ac_c" 1>&6
1084  echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6  echo "configure:1085: checking whether $CC understands const, void*, and function prototypes" >&5
1085          cat >conftest.$ac_ext <<_ACEOF          cat > conftest.$ac_ext <<EOF
1086  /* confdefs.h.  */  #line 1087 "configure"
1087  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1088    
1089  int  int main() {
 main ()  
 {  
1090    
1091                int tstproto(int arg1, char * arg2);                int tstproto(int arg1, char * arg2);
1092                int tstconst(const int arg1, const char *arg2);                int tstconst(const int arg1, const char *arg2);
1093                int tstvoidp(const int arg1, const void *arg2);                int tstvoidp(const int arg1, const void *arg2);
1094    ;  ; return 0; }
1095    return 0;  EOF
1096  }  if { (eval echo configure:1097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1097  _ACEOF    rm -rf conftest*
1098  rm -f conftest.$ac_objext     asc_ansi_ok=yes
1099  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  else
1100    (eval $ac_compile) 2>conftest.er1    echo "configure: failed program was:" >&5
1101    ac_status=$?    cat conftest.$ac_ext >&5
1102    grep -v '^ *+' conftest.er1 >conftest.err    rm -rf conftest*
1103    rm -f conftest.er1     asc_ansi_ok=no
1104    cat conftest.err >&5  fi
1105    echo "$as_me:$LINENO: \$? = $ac_status" >&5  rm -f conftest*
1106    (exit $ac_status); } &&          echo "$ac_t""$asc_ansi_ok" 1>&6
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
    asc_ansi_ok=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
  asc_ansi_ok=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
         echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5  
 echo "${ECHO_T}$asc_ansi_ok" >&6  
1107      fi      fi
1108  fi  fi
1109    
1110  if test "$asc_ansi_ok" = no ; then  if test "$asc_ansi_ok" = no ; then
1111      # Extract the first word of "acc", so it can be a program name with args.      # Extract the first word of "acc", so it can be a program name with args.
1112  set dummy acc; ac_word=$2  set dummy acc; ac_word=$2
1113  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1115: checking for $ac_word" >&5
1115  if test "${ac_cv_prog_asc_cc3+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_asc_cc3'+set}'`\" = set"; then
1116    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1117  else  else
1118    if test -n "$asc_cc3"; then    if test -n "$asc_cc3"; then
1119    ac_cv_prog_asc_cc3="$asc_cc3" # Let the user override the test.    ac_cv_prog_asc_cc3="$asc_cc3" # Let the user override the test.
1120  else  else
1121  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1122  for as_dir in $PATH    ac_dummy="$PATH"
1123  do    for ac_dir in $ac_dummy; do
1124    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1125    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1126    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_asc_cc3="acc"
1127    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1128      ac_cv_prog_asc_cc3="acc"      fi
1129      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1130      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1131    test -z "$ac_cv_prog_asc_cc3" && ac_cv_prog_asc_cc3="NONE"    test -z "$ac_cv_prog_asc_cc3" && ac_cv_prog_asc_cc3="NONE"
1132  fi  fi
1133  fi  fi
1134  asc_cc3=$ac_cv_prog_asc_cc3  asc_cc3="$ac_cv_prog_asc_cc3"
1135  if test -n "$asc_cc3"; then  if test -n "$asc_cc3"; then
1136    echo "$as_me:$LINENO: result: $asc_cc3" >&5    echo "$ac_t""$asc_cc3" 1>&6
 echo "${ECHO_T}$asc_cc3" >&6  
1137  else  else
1138    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1139  fi  fi
1140    
1141      if test ! "$asc_cc3" = NONE ; then      if test ! "$asc_cc3" = NONE ; then
1142          CC=$asc_cc3          CC=$asc_cc3
1143          echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5          echo $ac_n "checking whether $CC understands const, void*, and function prototypes""... $ac_c" 1>&6
1144  echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6  echo "configure:1145: checking whether $CC understands const, void*, and function prototypes" >&5
1145          cat >conftest.$ac_ext <<_ACEOF          cat > conftest.$ac_ext <<EOF
1146  /* confdefs.h.  */  #line 1147 "configure"
1147  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1148    
1149  int  int main() {
 main ()  
 {  
1150    
1151                int tstproto(int arg1, char * arg2);                int tstproto(int arg1, char * arg2);
1152                int tstconst(const int arg1, const char *arg2);                int tstconst(const int arg1, const char *arg2);
1153                int tstvoidp(const int arg1, const void *arg2);                int tstvoidp(const int arg1, const void *arg2);
1154    ;  ; return 0; }
1155    return 0;  EOF
1156  }  if { (eval echo configure:1157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1157  _ACEOF    rm -rf conftest*
1158  rm -f conftest.$ac_objext     asc_ansi_ok=yes
1159  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  else
1160    (eval $ac_compile) 2>conftest.er1    echo "configure: failed program was:" >&5
1161    ac_status=$?    cat conftest.$ac_ext >&5
1162    grep -v '^ *+' conftest.er1 >conftest.err    rm -rf conftest*
1163    rm -f conftest.er1     asc_ansi_ok=no
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
    asc_ansi_ok=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
  asc_ansi_ok=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
         echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5  
 echo "${ECHO_T}$asc_ansi_ok" >&6  
     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  
 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 $as_executable_p "$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  
   
 fi  
1164  fi  fi
1165  CC=$ac_cv_prog_CC  rm -f conftest*
1166  if test -n "$CC"; then          echo "$ac_t""$asc_ansi_ok" 1>&6
1167    echo "$as_me:$LINENO: result: $CC" >&5      fi
 echo "${ECHO_T}$CC" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
1168  fi  fi
1169    
1170  fi  # Extract the first word of "gcc", so it can be a program name with args.
 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.  
1171  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1172  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1174: checking for $ac_word" >&5
1174  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1175    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&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 $as_executable_p "$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  
   
 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  
   
   CC=$ac_ct_CC  
 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  
1176  else  else
1177    if test -n "$CC"; then    if test -n "$CC"; then
1178    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1179  else  else
1180  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1181  for as_dir in $PATH    ac_dummy="$PATH"
1182  do    for ac_dir in $ac_dummy; do
1183    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1184    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1185    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_CC="gcc"
1186    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1187      ac_cv_prog_CC="${ac_tool_prefix}cc"      fi
1188      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1189      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1190  fi  fi
1191  fi  fi
1192  CC=$ac_cv_prog_CC  CC="$ac_cv_prog_CC"
1193  if test -n "$CC"; then  if test -n "$CC"; then
1194    echo "$as_me:$LINENO: result: $CC" >&5    echo "$ac_t""$CC" 1>&6
 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 "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_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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_prog_ac_ct_CC="cc"  
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
 done  
   
 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  
   
   CC=$ac_ct_CC  
1195  else  else
1196    CC="$ac_cv_prog_CC"    echo "$ac_t""no" 1>&6
1197  fi  fi
1198    
 fi  
1199  if test -z "$CC"; then  if test -z "$CC"; then
1200    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
1201  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1202  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1203  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1204: checking for $ac_word" >&5
1204  if test "${ac_cv_prog_CC+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1205    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1206  else  else
1207    if test -n "$CC"; then    if test -n "$CC"; then
1208    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1209  else  else
1210      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1211    ac_prog_rejected=no    ac_prog_rejected=no
1212  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    ac_dummy="$PATH"
1213  for as_dir in $PATH    for ac_dir in $ac_dummy; do
1214  do      test -z "$ac_dir" && ac_dir=.
1215    IFS=$as_save_IFS      if test -f $ac_dir/$ac_word; then
1216    test -z "$as_dir" && as_dir=.        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1217    for ac_exec_ext in '' $ac_executable_extensions; do          ac_prog_rejected=yes
1218    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then      continue
1219      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then        fi
1220         ac_prog_rejected=yes        ac_cv_prog_CC="cc"
1221         continue        break
1222       fi      fi
1223      ac_cv_prog_CC="cc"    done
1224      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    IFS="$ac_save_ifs"
     break 2  
   fi  
 done  
 done  
   
1225  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
1226    # We found a bogon in the path, so make sure we never use it.    # We found a bogon in the path, so make sure we never use it.
1227    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
1228    shift    shift
1229    if test $# != 0; then    if test $# -gt 0; then
1230      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
1231      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
1232      # first if we set CC to just the basename; use the full file name.      # first if we set CC to just the basename; use the full file name.
1233      shift      shift
1234      ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"      set dummy "$ac_dir/$ac_word" "$@"
1235        shift
1236        ac_cv_prog_CC="$@"
1237    fi    fi
1238  fi  fi
1239  fi  fi
1240  fi  fi
1241  CC=$ac_cv_prog_CC  CC="$ac_cv_prog_CC"
1242  if test -n "$CC"; then  if test -n "$CC"; then
1243    echo "$as_me:$LINENO: result: $CC" >&5    echo "$ac_t""$CC" 1>&6
 echo "${ECHO_T}$CC" >&6  
1244  else  else
1245    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1246  fi  fi
1247    
1248  fi    if test -z "$CC"; then
1249  if test -z "$CC"; then      case "`uname -s`" in
1250    if test -n "$ac_tool_prefix"; then      *win32* | *WIN32*)
1251    for ac_prog in cl        # Extract the first word of "cl", so it can be a program name with args.
1252    do  set dummy cl; ac_word=$2
1253      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1254  set dummy $ac_tool_prefix$ac_prog; ac_word=$2  echo "configure:1255: checking for $ac_word" >&5
1255  echo "$as_me:$LINENO: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1256  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
 if test "${ac_cv_prog_CC+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
1257  else  else
1258    if test -n "$CC"; then    if test -n "$CC"; then
1259    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1260  else  else
1261  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1262  for as_dir in $PATH    ac_dummy="$PATH"
1263  do    for ac_dir in $ac_dummy; do
1264    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1265    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1266    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_CC="cl"
1267    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1268      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"      fi
1269      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1270      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1271  fi  fi
1272  fi  fi
1273  CC=$ac_cv_prog_CC  CC="$ac_cv_prog_CC"
1274  if test -n "$CC"; then  if test -n "$CC"; then
1275    echo "$as_me:$LINENO: result: $CC" >&5    echo "$ac_t""$CC" 1>&6
 echo "${ECHO_T}$CC" >&6  
1276  else  else
1277    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
 fi  
   
     test -n "$CC" && break  
   done  
1278  fi  fi
1279  if test -z "$CC"; then   ;;
1280    ac_ct_CC=$CC      esac
   for ac_prog in cl  
 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 $as_executable_p "$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  
1281    fi    fi
1282  done    test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 done  
   
 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  
1283  fi  fi
1284    
1285    test -n "$ac_ct_CC" && break  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1286  done  echo "configure:1287: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1287    
1288    CC=$ac_ct_CC  ac_ext=c
1289    # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1290    ac_cpp='$CPP $CPPFLAGS'
1291    ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1292    ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1293    cross_compiling=$ac_cv_prog_cc_cross
1294    
1295    cat > conftest.$ac_ext << EOF
1296    
1297    #line 1298 "configure"
1298    #include "confdefs.h"
1299    
1300    main(){return(0);}
1301    EOF
1302    if { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1303      ac_cv_prog_cc_works=yes
1304      # If we can't run a trivial program, we are probably using a cross compiler.
1305      if (./conftest; exit) 2>/dev/null; then
1306        ac_cv_prog_cc_cross=no
1307      else
1308        ac_cv_prog_cc_cross=yes
1309      fi
1310    else
1311      echo "configure: failed program was:" >&5
1312      cat conftest.$ac_ext >&5
1313      ac_cv_prog_cc_works=no
1314  fi  fi
1315    rm -fr conftest*
1316    ac_ext=c
1317    # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1318    ac_cpp='$CPP $CPPFLAGS'
1319    ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1320    ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1321    cross_compiling=$ac_cv_prog_cc_cross
1322    
1323    echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1324    if test $ac_cv_prog_cc_works = no; then
1325      { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1326  fi  fi
1327    echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1328    echo "configure:1329: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1329    echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1330    cross_compiling=$ac_cv_prog_cc_cross
1331    
1332    echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1333  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH  echo "configure:1334: checking whether we are using GNU C" >&5
1334  See \`config.log' for more details." >&5  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1335  echo "$as_me: error: no acceptable C compiler found in \$PATH    echo $ac_n "(cached) $ac_c" 1>&6
 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`  
 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5  
   (eval $ac_compiler --version </dev/null >&5) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }  
 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5  
   (eval $ac_compiler -v </dev/null >&5) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }  
 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5  
   (eval $ac_compiler -V </dev/null >&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  
1336  else  else
1337    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.c <<EOF
1338  /* confdefs.h.  */  #ifdef __GNUC__
1339  _ACEOF    yes;
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 int  
 main ()  
 {  
 #ifndef __GNUC__  
        choke me  
1340  #endif  #endif
1341    EOF
1342    ;  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1343    return 0;    ac_cv_prog_gcc=yes
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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 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  
 CFLAGS="-g"  
 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  
1344  else  else
1345    cat >conftest.$ac_ext <<_ACEOF    ac_cv_prog_gcc=no
1346  /* confdefs.h.  */  fi
1347  _ACEOF  fi
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1348    
1349  int  echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 main ()  
 {  
1350    
1351    ;  if test $ac_cv_prog_gcc = yes; then
1352    return 0;    GCC=yes
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_prog_cc_g=yes  
1353  else  else
1354    echo "$as_me: failed program was:" >&5    GCC=
1355  sed 's/^/| /' conftest.$ac_ext >&5  fi
1356    
1357  ac_cv_prog_cc_g=no  ac_test_CFLAGS="${CFLAGS+set}"
1358    ac_save_CFLAGS="$CFLAGS"
1359    CFLAGS=
1360    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1361    echo "configure:1362: checking whether ${CC-cc} accepts -g" >&5
1362    if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1363      echo $ac_n "(cached) $ac_c" 1>&6
1364    else
1365      echo 'void f(){}' > conftest.c
1366    if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1367      ac_cv_prog_cc_g=yes
1368    else
1369      ac_cv_prog_cc_g=no
1370  fi  fi
1371  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest*
1372    
1373  fi  fi
1374  echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5  
1375  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1376  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
1377    CFLAGS=$ac_save_CFLAGS    CFLAGS="$ac_save_CFLAGS"
1378  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
1379    if test "$GCC" = yes; then    if test "$GCC" = yes; then
1380      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 3539  else Line 1388  else
1388      CFLAGS=      CFLAGS=
1389    fi    fi
1390  fi  fi
 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5  
 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6  
 if test "${ac_cv_prog_cc_stdc+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_cv_prog_cc_stdc=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 <stdarg.h>  
 #include <stdio.h>  
 #include <sys/types.h>  
 #include <sys/stat.h>  
 /* 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 -std1 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 -std1.  */  
 int osf4_cc_array ['\x00' == 0 ? 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  
 # Don't try gcc -ansi; that turns off useful extensions and  
 # breaks some systems' header files.  
 # AIX           -qlanglvl=ansi  
 # Ultrix and OSF/1  -std1  
 # HP-UX 10.20 and later -Ae  
 # HP-UX older versions  -Aa -D_HPUX_SOURCE  
 # SVR4          -Xc -D__EXTENSIONS__  
 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"  
 do  
   CC="$ac_save_CC $ac_arg"  
   rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_prog_cc_stdc=$ac_arg  
 break  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 fi  
 rm -f conftest.err conftest.$ac_objext  
 done  
 rm -f conftest.$ac_ext conftest.$ac_objext  
 CC=$ac_save_CC  
   
 fi  
   
 case "x$ac_cv_prog_cc_stdc" in  
   x|xno)  
     echo "$as_me:$LINENO: result: none needed" >&5  
 echo "${ECHO_T}none needed" >&6 ;;  
   *)  
     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5  
 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6  
     CC="$CC $ac_cv_prog_cc_stdc" ;;  
 esac  
   
 # Some people use a C++ compiler to compile C.  Since we use `exit',  
 # in C++ we need to declare it.  In case someone uses the same compiler  
 # for both compiling C and C++ we need to have the C++ compiler decide  
 # the declaration of exit, since it's the most demanding environment.  
 cat >conftest.$ac_ext <<_ACEOF  
 #ifndef __cplusplus  
   choke me  
 #endif  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   for ac_declaration in \  
    '' \  
    'extern "C" void std::exit (int) throw (); using std::exit;' \  
    'extern "C" void std::exit (int); using std::exit;' \  
    'extern "C" void exit (int) throw ();' \  
    'extern "C" void exit (int);' \  
    'void exit (int);'  
 do  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_declaration  
 #include <stdlib.h>  
 int  
 main ()  
 {  
 exit (42);  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   :  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 continue  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_declaration  
 int  
 main ()  
 {  
 exit (42);  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   break  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 done  
 rm -f conftest*  
 if test -n "$ac_declaration"; then  
   echo '#ifdef __cplusplus' >>confdefs.h  
   echo $ac_declaration      >>confdefs.h  
   echo '#endif'             >>confdefs.h  
 fi  
   
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 fi  
 rm -f 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  
1391    
1392    
1393  if test "$asc_ansi_ok" = no ; then  if test "$asc_ansi_ok" = no ; then
1394      CC=$asc_orig_cc      CC=$asc_orig_cc
1395      { { echo "$as_me:$LINENO: error: Cannot find an ANSI C compiler.  ASCEND will not build      { echo "configure: error: Cannot find an ANSI C compiler.  ASCEND will not build
     without an ANSI compiler.  If you have an ANSI compiler which  
     configure is not finding, set the CC environment variable to  
     the full path fo the compiler and rerun configure." >&5  
 echo "$as_me: error: Cannot find an ANSI C compiler.  ASCEND will not build  
1396      without an ANSI compiler.  If you have an ANSI compiler which      without an ANSI compiler.  If you have an ANSI compiler which
1397      configure is not finding, set the CC environment variable to      configure is not finding, set the CC environment variable to
1398      the full path fo the compiler and rerun configure." >&2;}      the full path fo the compiler and rerun configure." 1>&2; exit 1; }
    { (exit 1); exit 1; }; }  
1399  fi  fi
1400    
1401    
# Line 3831  fi Line 1412  fi
1412  #  #
1413  #   Check if we're running on AIX; if so, add `-D_ALL_SOURCE'  #   Check if we're running on AIX; if so, add `-D_ALL_SOURCE'
1414  #   to CFLAGS.  #   to CFLAGS.
1415  #  #
1416  #   Check if we're running on HPUX; if so, add -D_HPUX_SOURCE'  #   Check if we're running on HPUX; if so, add -D_HPUX_SOURCE'
1417  #   to CFLAGS unless the C preprocessor goes it for us.  #   to CFLAGS unless the C preprocessor goes it for us.
1418  #--------------------------------------------------------------------  #--------------------------------------------------------------------
   
 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 <limits.h> to <assert.h> if __STDC__ is defined, since  
   # <limits.h> 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 <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
              Syntax error  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_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 non-existent 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 <ac_nonexistent.h>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_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  
1419    
1420    echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1421    echo "configure:1422: checking how to run the C preprocessor" >&5
1422    # On Suns, sometimes $CPP names a directory.
1423    if test -n "$CPP" && test -d "$CPP"; then
1424      CPP=
1425  fi  fi
1426    CPP=$ac_cv_prog_CPP  if test -z "$CPP"; then
1427    if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1428      echo $ac_n "(cached) $ac_c" 1>&6
1429  else  else
1430    ac_cv_prog_CPP=$CPP      # This must be in double quotes, not single quotes, because CPP may get
1431  fi    # substituted into the Makefile and "${CC-cc}" will confuse make.
1432  echo "$as_me:$LINENO: result: $CPP" >&5    CPP="${CC-cc} -E"
 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 <limits.h> to <assert.h> if __STDC__ is defined, since  
   # <limits.h> exists even on freestanding compilers.  
1433    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
1434    # not just through cpp. "Syntax error" is here to catch this case.    # not just through cpp.
1435    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
1436  /* confdefs.h.  */  #line 1437 "configure"
1437  _ACEOF  #include "confdefs.h"
1438  cat confdefs.h >>conftest.$ac_ext  #include <assert.h>
1439  cat >>conftest.$ac_ext <<_ACEOF  Syntax Error
1440  /* end confdefs.h.  */  EOF
1441  #ifdef __STDC__  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1442  # include <limits.h>  { (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1443  #else  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1444  # include <assert.h>  if test -z "$ac_err"; then
1445  #endif    :
              Syntax error  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
1446  else  else
1447    ac_cpp_err=yes    echo "$ac_err" >&5
1448  fi    echo "configure: failed program was:" >&5
1449  if test -z "$ac_cpp_err"; then    cat conftest.$ac_ext >&5
1450      rm -rf conftest*
1451      CPP="${CC-cc} -E -traditional-cpp"
1452      cat > conftest.$ac_ext <<EOF
1453    #line 1454 "configure"
1454    #include "confdefs.h"
1455    #include <assert.h>
1456    Syntax Error
1457    EOF
1458    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1459    { (eval echo configure:1460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1460    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1461    if test -z "$ac_err"; then
1462    :    :
1463  else  else
1464    echo "$as_me: failed program was:" >&5    echo "$ac_err" >&5
1465  sed 's/^/| /' conftest.$ac_ext >&5    echo "configure: failed program was:" >&5
1466      cat conftest.$ac_ext >&5
1467    # Broken: fails on valid input.    rm -rf conftest*
1468  continue    CPP="${CC-cc} -nologo -E"
1469  fi    cat > conftest.$ac_ext <<EOF
1470  rm -f conftest.err conftest.$ac_ext  #line 1471 "configure"
1471    #include "confdefs.h"
1472    # OK, works on sane cases.  Now check whether non-existent headers  #include <assert.h>
1473    # can be detected and how.  Syntax Error
1474    cat >conftest.$ac_ext <<_ACEOF  EOF
1475  /* confdefs.h.  */  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1476  _ACEOF  { (eval echo configure:1477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1477  cat confdefs.h >>conftest.$ac_ext  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1478  cat >>conftest.$ac_ext <<_ACEOF  if test -z "$ac_err"; then
1479  /* end confdefs.h.  */    :
 #include <ac_nonexistent.h>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
1480  else  else
1481    ac_cpp_err=yes    echo "$ac_err" >&5
1482      echo "configure: failed program was:" >&5
1483      cat conftest.$ac_ext >&5
1484      rm -rf conftest*
1485      CPP=/lib/cpp
1486  fi  fi
1487  if test -z "$ac_cpp_err"; then  rm -f conftest*
   # 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  
1488  fi  fi
1489  rm -f conftest.err conftest.$ac_ext  rm -f conftest*
1490    fi
1491  done  rm -f conftest*
1492  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.    ac_cv_prog_CPP="$CPP"
1493  rm -f conftest.err conftest.$ac_ext  fi
1494  if $ac_preproc_ok; then    CPP="$ac_cv_prog_CPP"
   :  
1495  else  else
1496    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check    ac_cv_prog_CPP="$CPP"
 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; }; }  
1497  fi  fi
1498    echo "$ac_t""$CPP" 1>&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  
1499    
1500    
1501  # Check whether --enable-optimization or --disable-optimization was given.  # Check whether --enable-optimization or --disable-optimization was given.
# Line 4077  if test "${enable_optimization+set}" = s Line 1504  if test "${enable_optimization+set}" = s
1504    asc_do_opt="$enableval"    asc_do_opt="$enableval"
1505  else  else
1506    asc_do_opt=no    asc_do_opt=no
1507  fi;  fi
1508    
1509  if test "$asc_do_opt" = yes; then  if test "$asc_do_opt" = yes; then
1510      CFLAGS=`echo "-O $CFLAGS " | sed 's/ -g / /g'`      CFLAGS=`echo "-O $CFLAGS " | sed 's/ -g / /g'`
1511      cat >>confdefs.h <<\_ACEOF      cat >> confdefs.h <<\EOF
1512  #define NDEBUG 1  #define NDEBUG 1
1513  _ACEOF  EOF
1514    
1515  else  else
1516      # Extract the first word of "end.o", so it can be a program name with args.      # Extract the first word of "end.o", so it can be a program name with args.
1517  set dummy end.o; ac_word=$2  set dummy end.o; ac_word=$2
1518  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1519  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1520: checking for $ac_word" >&5
1520  if test "${ac_cv_path_DEBUG_LIBS+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_path_DEBUG_LIBS'+set}'`\" = set"; then
1521    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1522  else  else
1523    case $DEBUG_LIBS in    case "$DEBUG_LIBS" in
1524    [\\/]* | ?:[\\/]*)    /*)
1525    ac_cv_path_DEBUG_LIBS="$DEBUG_LIBS" # Let the user override the test with a path.    ac_cv_path_DEBUG_LIBS="$DEBUG_LIBS" # Let the user override the test with a path.
1526    ;;    ;;
1527      ?:/*)          
1528      ac_cv_path_DEBUG_LIBS="$DEBUG_LIBS" # Let the user override the test with a dos path.
1529      ;;
1530    *)    *)
1531    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1532  for as_dir in /usr/lib    ac_dummy="/usr/lib"
1533  do    for ac_dir in $ac_dummy; do
1534    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1535    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1536    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_path_DEBUG_LIBS="$ac_dir/$ac_word"
1537    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1538      ac_cv_path_DEBUG_LIBS="$as_dir/$ac_word$ac_exec_ext"      fi
1539      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1540      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1541    ;;    ;;
1542  esac  esac
1543  fi  fi
1544  DEBUG_LIBS=$ac_cv_path_DEBUG_LIBS  DEBUG_LIBS="$ac_cv_path_DEBUG_LIBS"
   
1545  if test -n "$DEBUG_LIBS"; then  if test -n "$DEBUG_LIBS"; then
1546    echo "$as_me:$LINENO: result: $DEBUG_LIBS" >&5    echo "$ac_t""$DEBUG_LIBS" 1>&6
 echo "${ECHO_T}$DEBUG_LIBS" >&6  
1547  else  else
1548    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
 fi  
   
1549  fi  fi
1550    
 echo "$as_me:$LINENO: checking for AIX" >&5  
 echo $ECHO_N "checking for AIX... $ECHO_C" >&6  
   
 echo "$as_me:$LINENO: checking for egrep" >&5  
 echo $ECHO_N "checking for egrep... $ECHO_C" >&6  
 if test "${ac_cv_prog_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_prog_egrep='grep -E'  
     else ac_cv_prog_egrep='egrep'  
     fi  
1551  fi  fi
 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5  
 echo "${ECHO_T}$ac_cv_prog_egrep" >&6  
  EGREP=$ac_cv_prog_egrep  
1552    
1553    echo $ac_n "checking for AIX""... $ac_c" 1>&6
1554  cat >conftest.$ac_ext <<_ACEOF  echo "configure:1555: checking for AIX" >&5
1555  /* confdefs.h.  */  cat > conftest.$ac_ext <<EOF
1556  _ACEOF  #line 1557 "configure"
1557  cat confdefs.h >>conftest.$ac_ext  #include "confdefs.h"
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1558    
1559  #ifdef _AIX  #ifdef _AIX
1560      yes      yes
1561  #endif  #endif
1562    
1563  _ACEOF  EOF
1564  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1565    $EGREP "yes" >/dev/null 2>&1; then    egrep "yes" >/dev/null 2>&1; then
1566     asc_aix=yes ; cat >>confdefs.h <<\_ACEOF    rm -rf conftest*
1567       asc_aix=yes ; cat >> confdefs.h <<\EOF
1568  #define _ALL_SOURCE 1  #define _ALL_SOURCE 1
1569  _ACEOF  EOF
1570    
1571  else  else
1572      rm -rf conftest*
1573    asc_aix=no    asc_aix=no
1574  fi  fi
1575  rm -f conftest*  rm -f conftest*
1576    
1577  echo "$as_me:$LINENO: result: $asc_aix" >&5  echo "$ac_t""$asc_aix" 1>&6
 echo "${ECHO_T}$asc_aix" >&6  
1578    
1579  echo "$as_me:$LINENO: checking whether -D_HPUX_SOURCE is needed" >&5  echo $ac_n "checking whether -D_HPUX_SOURCE is needed""... $ac_c" 1>&6
1580  echo $ECHO_N "checking whether -D_HPUX_SOURCE is needed... $ECHO_C" >&6  echo "configure:1581: checking whether -D_HPUX_SOURCE is needed" >&5
1581  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
1582  /* confdefs.h.  */  #line 1583 "configure"
1583  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
1584    
1585  #ifdef __hpux  #ifdef __hpux
1586  #ifndef _HPUX_SOURCE  #ifndef _HPUX_SOURCE
# Line 4185  cat >>conftest.$ac_ext <<_ACEOF Line 1588  cat >>conftest.$ac_ext <<_ACEOF
1588  #endif  #endif
1589  #endif  #endif
1590    
1591  _ACEOF  EOF
1592  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1593    $EGREP "yes" >/dev/null 2>&1; then    egrep "yes" >/dev/null 2>&1; then
1594     asc_hpux=yes ; cat >>confdefs.h <<\_ACEOF    rm -rf conftest*
1595       asc_hpux=yes ; cat >> confdefs.h <<\EOF
1596  #define _HPUX_SOURCE 1  #define _HPUX_SOURCE 1
1597  _ACEOF  EOF
1598    
1599  else  else
1600      rm -rf conftest*
1601    asc_hpux=no    asc_hpux=no
1602  fi  fi
1603  rm -f conftest*  rm -f conftest*
1604    
1605  echo "$as_me:$LINENO: result: $asc_hpux" >&5  echo "$ac_t""$asc_hpux" 1>&6
 echo "${ECHO_T}$asc_hpux" >&6  
1606    
1607  # Check the size of pointers; if cross compiling, assume 32 bit pointers  # Check the size of pointers; if cross compiling, assume 32 bit pointers
1608  echo "$as_me:$LINENO: checking for ANSI C header files" >&5  echo $ac_n "checking size of void *""... $ac_c" 1>&6
1609  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6  echo "configure:1610: checking size of void *" >&5
1610  if test "${ac_cv_header_stdc+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
1611    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&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 <stdlib.h>  
 #include <stdarg.h>  
 #include <string.h>  
 #include <float.h>  
   
 int  
 main ()  
 {  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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 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 <string.h>  
   
 _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 <stdlib.h>  
   
 _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 <ctype.h>  
 #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))  
       exit(2);  
   exit (0);  
 }  
 _ACEOF  
 rm -f conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 eval "test \"\${$as_ac_Header+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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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 conftest.err conftest.$ac_objext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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  
   
   
 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  
 int  
 main ()  
 {  
 if ((void * *) 0)  
   return 0;  
 if (sizeof (void *))  
   return 0;  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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 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  
   
 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 "$ac_cv_type_void_p" = yes; then  
   # The cast to unsigned long 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.  
   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  
 int  
 main ()  
 {  
 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];  
 test_array [0] = 0  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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  
 int  
 main ()  
 {  
 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];  
 test_array [0] = 0  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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 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  
 int  
 main ()  
 {  
 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];  
 test_array [0] = 0  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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  
 int  
 main ()  
 {  
 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];  
 test_array [0] = 0  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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 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 conftest.err conftest.$ac_objext conftest.$ac_ext  
 fi  
 rm -f 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  
 int  
 main ()  
 {  
 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];  
 test_array [0] = 0  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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 conftest.err conftest.$ac_objext conftest.$ac_ext  
 done  
 case $ac_lo in  
 ?*) ac_cv_sizeof_void_p=$ac_lo;;  
 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77  
 See \`config.log' for more details." >&5  
 echo "$as_me: error: cannot compute sizeof (void *), 77  
 See \`config.log' for more details." >&2;}  
    { (exit 1); exit 1; }; } ;;  
 esac  
1612  else  else
1613    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
1614    { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling    ac_cv_sizeof_void_p=4
 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; }; }  
1615  else  else
1616    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
1617  /* confdefs.h.  */  #line 1618 "configure"
1618  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
 long longval () { return (long) (sizeof (void *)); }  
 unsigned long ulongval () { return (long) (sizeof (void *)); }  
1619  #include <stdio.h>  #include <stdio.h>
1620  #include <stdlib.h>  int main()
 int  
 main ()  
1621  {  {
1622      FILE *f=fopen("conftestval", "w");
1623    FILE *f = fopen ("conftest.val", "w");    if (!f) return(1);
1624    if (! f)    fprintf(f, "%d\n", sizeof(void *));
1625      exit (1);    return(0);
   if (((long) (sizeof (void *))) < 0)  
     {  
       long i = longval ();  
       if (i != ((long) (sizeof (void *))))  
     exit (1);  
       fprintf (f, "%ld\n", i);  
     }  
   else  
     {  
       unsigned long i = ulongval ();  
       if (i != ((long) (sizeof (void *))))  
     exit (1);  
       fprintf (f, "%lu\n", i);  
     }  
   exit (ferror (f) || fclose (f) != 0);  
   
   ;  
   return 0;  
1626  }  }
1627  _ACEOF  EOF
1628  rm -f conftest$ac_exeext  if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1629  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  then
1630    (eval $ac_link) 2>&5    ac_cv_sizeof_void_p=`cat conftestval`
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 )  
 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77  
 See \`config.log' for more details." >&5  
 echo "$as_me: error: cannot compute sizeof (void *), 77  
 See \`config.log' for more details." >&2;}  
    { (exit 1); exit 1; }; }  
 fi  
 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  
 fi  
 fi  
 rm -f conftest.val  
1631  else  else
1632      echo "configure: failed program was:" >&5
1633      cat conftest.$ac_ext >&5
1634      rm -fr conftest*
1635    ac_cv_sizeof_void_p=0    ac_cv_sizeof_void_p=0
1636  fi  fi
1637    rm -fr conftest*
1638  fi  fi
1639  echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5  
1640  echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6  fi
1641  cat >>confdefs.h <<_ACEOF  echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
1642    cat >> confdefs.h <<EOF
1643  #define SIZEOF_VOID_P $ac_cv_sizeof_void_p  #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1644  _ACEOF  EOF
1645    
1646    
1647    
# Line 4863  _ACEOF Line 1654  _ACEOF
1654  asc_found_yacc=0  asc_found_yacc=0
1655  # Extract the first word of "yacc", so it can be a program name with args.  # Extract the first word of "yacc", so it can be a program name with args.
1656  set dummy yacc; ac_word=$2  set dummy yacc; ac_word=$2
1657  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1658  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1659: checking for $ac_word" >&5
1659  if test "${ac_cv_prog_YACC+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1660    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1661  else  else
1662    if test -n "$YACC"; then    if test -n "$YACC"; then
1663    ac_cv_prog_YACC="$YACC" # Let the user override the test.    ac_cv_prog_YACC="$YACC" # Let the user override the test.
1664  else  else
1665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1666  for as_dir in $PATH    ac_dummy="$PATH"
1667  do    for ac_dir in $ac_dummy; do
1668    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1669    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1670    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_YACC="yacc"
1671    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1672      ac_cv_prog_YACC="yacc"      fi
1673      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1674      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1675    test -z "$ac_cv_prog_YACC" && ac_cv_prog_YACC="asc_found_yacc=no"    test -z "$ac_cv_prog_YACC" && ac_cv_prog_YACC="asc_found_yacc=no"
1676  fi  fi
1677  fi  fi
1678  YACC=$ac_cv_prog_YACC  YACC="$ac_cv_prog_YACC"
1679  if test -n "$YACC"; then  if test -n "$YACC"; then
1680    echo "$as_me:$LINENO: result: $YACC" >&5    echo "$ac_t""$YACC" 1>&6
 echo "${ECHO_T}$YACC" >&6  
1681  else  else
1682    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1683  fi  fi
1684    
1685  if test "$asc_found_yacc" = no ; then  if test "$asc_found_yacc" = no ; then
1686      for ac_prog in 'bison -y' byacc      for ac_prog in 'bison -y' byacc
1687  do  do
1688    # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1689  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1690  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1691  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1692: checking for $ac_word" >&5
1692  if test "${ac_cv_prog_YACC+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1693    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1694  else  else
1695    if test -n "$YACC"; then    if test -n "$YACC"; then
1696    ac_cv_prog_YACC="$YACC" # Let the user override the test.    ac_cv_prog_YACC="$YACC" # Let the user override the test.
1697  else  else
1698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1699  for as_dir in $PATH    ac_dummy="$PATH"
1700  do    for ac_dir in $ac_dummy; do
1701    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1702    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1703    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_YACC="$ac_prog"
1704    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1705      ac_cv_prog_YACC="$ac_prog"      fi
1706      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1707      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1708  fi  fi
1709  fi  fi
1710  YACC=$ac_cv_prog_YACC  YACC="$ac_cv_prog_YACC"
1711  if test -n "$YACC"; then  if test -n "$YACC"; then
1712    echo "$as_me:$LINENO: result: $YACC" >&5    echo "$ac_t""$YACC" 1>&6
 echo "${ECHO_T}$YACC" >&6  
1713  else  else
1714    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1715  fi  fi
1716    
1717    test -n "$YACC" && break  test -n "$YACC" && break
1718  done  done
1719  test -n "$YACC" || YACC="yacc"  test -n "$YACC" || YACC="yacc"
1720    
# Line 4968  fi Line 1747  fi
1747  #--------------------------------------------------------------------  #--------------------------------------------------------------------
1748  # Extract the first word of "flex", so it can be a program name with args.  # Extract the first word of "flex", so it can be a program name with args.
1749  set dummy flex; ac_word=$2  set dummy flex; ac_word=$2
1750  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1751  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:1752: checking for $ac_word" >&5
1752  if test "${ac_cv_prog_LEX+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1753    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1754  else  else
1755    if test -n "$LEX"; then    if test -n "$LEX"; then
1756    ac_cv_prog_LEX="$LEX" # Let the user override the test.    ac_cv_prog_LEX="$LEX" # Let the user override the test.
1757  else  else
1758  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1759  for as_dir in $PATH    ac_dummy="$PATH"
1760  do    for ac_dir in $ac_dummy; do
1761    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
1762    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
1763    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_prog_LEX="flex"
1764    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
1765      ac_cv_prog_LEX="flex"      fi
1766      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
1767      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
1768  fi  fi
1769  fi  fi
1770  LEX=$ac_cv_prog_LEX  LEX="$ac_cv_prog_LEX"
1771  if test -n "$LEX"; then  if test -n "$LEX"; then
1772    echo "$as_me:$LINENO: result: $LEX" >&5    echo "$ac_t""$LEX" 1>&6
 echo "${ECHO_T}$LEX" >&6  
1773  else  else
1774    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1775  fi  fi
1776    
1777    
1778  if test -n "$LEX" ; then  if test -n "$LEX" ; then
1779      echo "$as_me:$LINENO: checking whether $LEX is at least version 2.4.1" >&5      echo $ac_n "checking whether $LEX is at least version 2.4.1""... $ac_c" 1>&6
1780  echo $ECHO_N "checking whether $LEX is at least version 2.4.1... $ECHO_C" >&6  echo "configure:1781: checking whether $LEX is at least version 2.4.1" >&5
1781      echo "$LEX -V" 1>&5      echo "$LEX -V" 1>&5
1782      if $LEX -V 1>&5 2>&5 ; then      if $LEX -V 1>&5 2>&5 ; then
1783          echo "$as_me:$LINENO: result: yes" >&5          echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
1784          scanner_src="scanner.c.from.flex"          scanner_src="scanner.c.from.flex"
1785          typer_src="typelex.c.from.flex"          typer_src="typelex.c.from.flex"
1786      else      else
1787          echo "$as_me:$LINENO: result: no" >&5          echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
1788          LEX=''          LEX=''
1789      fi      fi
1790  fi  fi
1791    
1792  if test -z "$LEX" ; then  if test -z "$LEX" ; then
1793      { echo "$as_me:$LINENO: WARNING: Cannot find a flex lexer version 2.4.1 or greater.      echo "configure: warning: Cannot find a flex lexer version 2.4.1 or greater.
1794      Using pregenerated C files for base/generic/compiler/scanner.l      Using pregenerated C files for base/generic/compiler/scanner.l
1795      and tcltk98/interface/typelex.l.  If you have flex 2.4.1      and tcltk98/interface/typelex.l.  If you have flex 2.4.1
1796      or newer, set the LEX environment variable to its location      or newer, set the LEX environment variable to its location
1797      and run configure again." >&5      and run configure again." 1>&2
 echo "$as_me: WARNING: Cannot find a flex lexer version 2.4.1 or greater.  
     Using pregenerated C files for base/generic/compiler/scanner.l  
     and tcltk98/interface/typelex.l.  If you have flex 2.4.1  
     or newer, set the LEX environment variable to its location  
     and run configure again." >&2;}  
1798      scanner_src="scanner.c.from.c"      scanner_src="scanner.c.from.c"
1799      typer_src="typelex.c.from.c"      typer_src="typelex.c.from.c"
1800    
1801      # let configure set LEX and LEXLIB even though we won't be using them      # let configure set LEX and LEXLIB even though we won't be using them
1802      for ac_prog in flex lex      # Extract the first word of "flex", so it can be a program name with args.
1803  do  set dummy flex; ac_word=$2
1804    # Extract the first word of "$ac_prog", so it can be a program name with args.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1805  set dummy $ac_prog; ac_word=$2  echo "configure:1806: checking for $ac_word" >&5
1806  echo "$as_me:$LINENO: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1807  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&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.  
 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 $as_executable_p "$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  
   
 fi  
 fi  
 LEX=$ac_cv_prog_LEX  
 if test -n "$LEX"; then  
   echo "$as_me:$LINENO: result: $LEX" >&5  
 echo "${ECHO_T}$LEX" >&6  
1808  else  else
1809    echo "$as_me:$LINENO: result: no" >&5    if test -n "$LEX"; then
1810  echo "${ECHO_T}no" >&6    ac_cv_prog_LEX="$LEX" # Let the user override the test.
1811  fi  else
1812      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1813    test -n "$LEX" && break    ac_dummy="$PATH"
1814  done    for ac_dir in $ac_dummy; do
1815  test -n "$LEX" || LEX=":"      test -z "$ac_dir" && ac_dir=.
1816        if test -f $ac_dir/$ac_word; then
1817  if test -z "$LEXLIB"        ac_cv_prog_LEX="flex"
1818  then        break
1819    echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5      fi
1820  echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6    done
1821  if test "${ac_cv_lib_fl_yywrap+set}" = set; then    IFS="$ac_save_ifs"
1822    echo $ECHO_N "(cached) $ECHO_C" >&6    test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-lfl  $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 gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char yywrap ();  
 int  
 main ()  
 {  
 yywrap ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_fl_yywrap=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_fl_yywrap=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5  
 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6  
 if test $ac_cv_lib_fl_yywrap = yes; then  
   LEXLIB="-lfl"  
 else  
   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5  
 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6  
 if test "${ac_cv_lib_l_yywrap+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-ll  $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 gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char yywrap ();  
 int  
 main ()  
 {  
 yywrap ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_l_yywrap=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_l_yywrap=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5  
 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6  
 if test $ac_cv_lib_l_yywrap = yes; then  
   LEXLIB="-ll"  
1823  fi  fi
   
1824  fi  fi
1825    LEX="$ac_cv_prog_LEX"
1826    if test -n "$LEX"; then
1827      echo "$ac_t""$LEX" 1>&6
1828    else
1829      echo "$ac_t""no" 1>&6
1830  fi  fi
1831    
1832  if test "x$LEX" != "x:"; then  if test -z "$LEXLIB"
1833    echo "$as_me:$LINENO: checking lex output file root" >&5  then
1834  echo $ECHO_N "checking lex output file root... $ECHO_C" >&6    case "$LEX" in
1835  if test "${ac_cv_prog_lex_root+set}" = set; then    flex*) ac_lib=fl ;;
1836    echo $ECHO_N "(cached) $ECHO_C" >&6    *) ac_lib=l ;;
1837  else    esac
1838    # The minimal lex program is just a single line: %%.  But some broken lexes    echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1839  # (Solaris, I think it was) want two %% lines, so accommodate them.  echo "configure:1840: checking for yywrap in -l$ac_lib" >&5
1840  cat >conftest.l <<_ACEOF  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1841  %%  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1842  %%    echo $ac_n "(cached) $ac_c" 1>&6
1843  _ACEOF  else
1844  { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5    ac_save_LIBS="$LIBS"
1845    (eval $LEX conftest.l) 2>&5  LIBS="-l$ac_lib  $LIBS"
1846    ac_status=$?  cat > conftest.$ac_ext <<EOF
1847    echo "$as_me:$LINENO: \$? = $ac_status" >&5  #line 1848 "configure"
1848    (exit $ac_status); }  #include "confdefs.h"
1849  if test -f lex.yy.c; then  /* Override any gcc2 internal prototype to avoid an error.  */
1850    ac_cv_prog_lex_root=lex.yy  /* We use char because int might match the return type of a gcc2
1851  elif test -f lexyy.c; then      builtin and then its argument prototype would still apply.  */
1852    ac_cv_prog_lex_root=lexyy  char yywrap();
1853  else  
1854    { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5  int main() {
1855  echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}  yywrap()
1856     { (exit 1); exit 1; }; }  ; return 0; }
1857  fi  EOF
1858  fi  if { (eval echo configure:1859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1859  echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5    rm -rf conftest*
1860  echo "${ECHO_T}$ac_cv_prog_lex_root" >&6    eval "ac_cv_lib_$ac_lib_var=yes"
1861  rm -f conftest.l  else
1862  LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root    echo "configure: failed program was:" >&5
1863      cat conftest.$ac_ext >&5
1864  echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5    rm -rf conftest*
1865  echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6    eval "ac_cv_lib_$ac_lib_var=no"
1866  if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then  fi
1867    echo $ECHO_N "(cached) $ECHO_C" >&6  rm -f conftest*
1868  else  LIBS="$ac_save_LIBS"
   # POSIX says lex can declare yytext either as a pointer or an array; the  
 # default is implementation-dependent. Figure out which it is, since  
 # not all implementations provide the %pointer and %array declarations.  
 ac_cv_prog_lex_yytext_pointer=no  
 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c  
 ac_save_LIBS=$LIBS  
 LIBS="$LIBS $LEXLIB"  
 cat >conftest.$ac_ext <<_ACEOF  
 `cat $LEX_OUTPUT_ROOT.c`  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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 conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_save_LIBS  
 rm -f "${LEX_OUTPUT_ROOT}.c"  
   
 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  
1869    
1870  fi  fi
1871    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1872      echo "$ac_t""yes" 1>&6
1873      LEXLIB="-l$ac_lib"
1874    else
1875      echo "$ac_t""no" 1>&6
1876    fi
1877    
1878  fi  fi
1879    
1880  fi  fi
1881    
1882    
# Line 5324  fi Line 1894  fi
1894  #   See if erf(), the error function, exists; if so, define  #   See if erf(), the error function, exists; if so, define
1895  #   HAVE_ERF.  #   HAVE_ERF.
1896  #--------------------------------------------------------------------  #--------------------------------------------------------------------
1897  echo "$as_me:$LINENO: checking for sin" >&5  echo $ac_n "checking for sin""... $ac_c" 1>&6
1898  echo $ECHO_N "checking for sin... $ECHO_C" >&6  echo "configure:1899: checking for sin" >&5
1899  if test "${ac_cv_func_sin+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
1900    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1901  else  else
1902    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
1903  /* confdefs.h.  */  #line 1904 "configure"
1904  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define sin to an innocuous variant, in case <limits.h> declares sin.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define sin innocuous_sin  
   
1905  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
1906      which can conflict with char sin (); below.      which can conflict with char sin(); below.  */
1907      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef sin  
   
1908  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
1909  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
1910     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
1911  char sin ();  char sin();
1912    
1913    int main() {
1914    
1915  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
1916      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
1917      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
1918  #if defined (__stub_sin) || defined (__stub___sin)  #if defined (__stub_sin) || defined (__stub___sin)
1919  choke me  choke me
1920  #else  #else
1921  char (*f) () = sin;  sin();
 #endif  
 #ifdef __cplusplus  
 }  
1922  #endif  #endif
1923    
1924  int  ; return 0; }
1925  main ()  EOF
1926  {  if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1927  return f != sin;    rm -rf conftest*
1928    ;    eval "ac_cv_func_sin=yes"
1929    return 0;  else
1930  }    echo "configure: failed program was:" >&5
1931  _ACEOF    cat conftest.$ac_ext >&5
1932  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
1933  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_sin=no"
1934    (eval $ac_link) 2>conftest.er1  fi
1935    ac_status=$?  rm -f conftest*
1936    grep -v '^ *+' conftest.er1 >conftest.err  fi
1937    rm -f conftest.er1  
1938    cat conftest.err >&5  if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
1939    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""yes" 1>&6
   (exit $ac_status); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_sin=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_sin=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5  
 echo "${ECHO_T}$ac_cv_func_sin" >&6  
 if test $ac_cv_func_sin = yes; then  
1940    MATH_LIBS=""    MATH_LIBS=""
1941  else  else
1942    MATH_LIBS="-lm"    echo "$ac_t""no" 1>&6
1943    MATH_LIBS="-lm"
1944  fi  fi
1945    
1946    
1947  echo "$as_me:$LINENO: checking for printf in -lieee" >&5  echo $ac_n "checking for printf in -lieee""... $ac_c" 1>&6
1948  echo $ECHO_N "checking for printf in -lieee... $ECHO_C" >&6  echo "configure:1949: checking for printf in -lieee" >&5
1949  if test "${ac_cv_lib_ieee_printf+set}" = set; then  ac_lib_var=`echo ieee'_'printf | sed 'y%./+-%__p_%'`
1950    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1951      echo $ac_n "(cached) $ac_c" 1>&6
1952  else  else
1953    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
1954  LIBS="-lieee  $LIBS"  LIBS="-lieee  $LIBS"
1955  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
1956  /* confdefs.h.  */  #line 1957 "configure"
1957  _ACEOF  #include "confdefs.h"
1958  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
1959  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
1960  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
1961    char printf();
1962    
1963    int main() {
1964    printf()
1965    ; return 0; }
1966    EOF
1967    if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1968      rm -rf conftest*
1969      eval "ac_cv_lib_$ac_lib_var=yes"
1970    else
1971      echo "configure: failed program was:" >&5
1972      cat conftest.$ac_ext >&5
1973      rm -rf conftest*
1974      eval "ac_cv_lib_$ac_lib_var=no"
1975    fi
1976    rm -f conftest*
1977    LIBS="$ac_save_LIBS"
1978    
1979  /* Override any gcc2 internal prototype to avoid an error.  */  fi
1980  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1981  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char printf ();  
 int  
 main ()  
 {  
 printf ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_ieee_printf=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_ieee_printf=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_printf" >&5  
 echo "${ECHO_T}$ac_cv_lib_ieee_printf" >&6  
 if test $ac_cv_lib_ieee_printf = yes; then  
1982    MATH_LIBS="-lieee $MATH_LIBS"    MATH_LIBS="-lieee $MATH_LIBS"
1983    else
1984      echo "$ac_t""no" 1>&6
1985  fi  fi
1986    
1987    
1988  if test -n "$MATH_LIBS" ; then  if test -n "$MATH_LIBS" ; then
1989        echo $ac_n "checking for copysign in -lm""... $ac_c" 1>&6
1990  echo "$as_me:$LINENO: checking for copysign in -lm" >&5  echo "configure:1991: checking for copysign in -lm" >&5
1991  echo $ECHO_N "checking for copysign in -lm... $ECHO_C" >&6  ac_lib_var=`echo m'_'copysign | sed 'y%./+-%__p_%'`
1992  if test "${ac_cv_lib_m_copysign+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1993    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
1994  else  else
1995    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
1996  LIBS="-lm $MATH_LIBS $LIBS"  LIBS="-lm $MATH_LIBS $LIBS"
1997  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
1998  /* confdefs.h.  */  #line 1999 "configure"
1999  _ACEOF  #include "confdefs.h"
2000  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
2001  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
2002  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
2003    char copysign();
2004    
2005    int main() {
2006    copysign()
2007    ; return 0; }
2008    EOF
2009    if { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2010      rm -rf conftest*
2011      eval "ac_cv_lib_$ac_lib_var=yes"
2012    else
2013      echo "configure: failed program was:" >&5
2014      cat conftest.$ac_ext >&5
2015      rm -rf conftest*
2016      eval "ac_cv_lib_$ac_lib_var=no"
2017    fi
2018    rm -f conftest*
2019    LIBS="$ac_save_LIBS"
2020    
2021  /* Override any gcc2 internal prototype to avoid an error.  */  fi
2022  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2023  extern "C"    echo "$ac_t""yes" 1>&6
2024  #endif      ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2025  /* We use char because int might match the return type of a gcc2      -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2026     builtin and then its argument prototype would still apply.  */    cat >> confdefs.h <<EOF
2027  char copysign ();  #define $ac_tr_lib 1
2028  int  EOF
 main ()  
 {  
 copysign ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_m_copysign=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_m_copysign=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysign" >&5  
 echo "${ECHO_T}$ac_cv_lib_m_copysign" >&6  
 if test $ac_cv_lib_m_copysign = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define HAVE_LIBM 1  
 _ACEOF  
2029    
2030    LIBS="-lm $LIBS"    LIBS="-lm $LIBS"
2031    
2032  else  else
2033    echo "$as_me:$LINENO: checking for drem in -lm" >&5    echo "$ac_t""no" 1>&6
2034  echo $ECHO_N "checking for drem in -lm... $ECHO_C" >&6  echo $ac_n "checking for drem in -lm""... $ac_c" 1>&6
2035  if test "${ac_cv_lib_m_drem+set}" = set; then  echo "configure:2036: checking for drem in -lm" >&5
2036    echo $ECHO_N "(cached) $ECHO_C" >&6  ac_lib_var=`echo m'_'drem | sed 'y%./+-%__p_%'`
2037    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2038      echo $ac_n "(cached) $ac_c" 1>&6
2039  else  else
2040    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2041  LIBS="-lm /lib/pa1.1/libM.a  LIBS="-lm /lib/pa1.1/libM.a
2042           $LIBS"           $LIBS"
2043  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2044  /* confdefs.h.  */  #line 2045 "configure"
2045  _ACEOF  #include "confdefs.h"
2046  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
2047  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
2048  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
2049    char drem();
2050    
2051    int main() {
2052    drem()
2053    ; return 0; }
2054    EOF
2055    if { (eval echo configure:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2056      rm -rf conftest*
2057      eval "ac_cv_lib_$ac_lib_var=yes"
2058    else
2059      echo "configure: failed program was:" >&5
2060      cat conftest.$ac_ext >&5
2061      rm -rf conftest*
2062      eval "ac_cv_lib_$ac_lib_var=no"
2063    fi
2064    rm -f conftest*
2065    LIBS="$ac_save_LIBS"
2066    
2067  /* Override any gcc2 internal prototype to avoid an error.  */  fi
2068  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2069  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char drem ();  
 int  
 main ()  
 {  
 drem ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_m_drem=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_m_drem=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_m_drem" >&5  
 echo "${ECHO_T}$ac_cv_lib_m_drem" >&6  
 if test $ac_cv_lib_m_drem = yes; then  
2070    MATH_LIBS="$MATH_LIBS /lib/pa1.1/libM.a"    MATH_LIBS="$MATH_LIBS /lib/pa1.1/libM.a"
2071                        
2072    else
2073      echo "$ac_t""no" 1>&6
2074  fi  fi
2075    
2076  fi  fi
# Line 5642  fi Line 2081  fi
2081  # check for erf(), then reset the value of LIBS.  # check for erf(), then reset the value of LIBS.
2082  asc_keep_LIBS="$LIBS"  asc_keep_LIBS="$LIBS"
2083  LIBS="$LIBS $MATH_LIBS"  LIBS="$LIBS $MATH_LIBS"
   
2084  for ac_func in erf  for ac_func in erf
2085  do  do
2086  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2087  echo "$as_me:$LINENO: checking for $ac_func" >&5  echo "configure:2088: checking for $ac_func" >&5
2088  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2089  if eval "test \"\${$as_ac_var+set}\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6
2090    echo $ECHO_N "(cached) $ECHO_C" >&6  else
2091  else    cat > conftest.$ac_ext <<EOF
2092    cat >conftest.$ac_ext <<_ACEOF  #line 2093 "configure"
2093  /* confdefs.h.  */  #include "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 <limits.h> declares $ac_func.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define $ac_func innocuous_$ac_func  
   
2094  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2095      which can conflict with char $ac_func (); below.      which can conflict with char $ac_func(); below.  */
2096      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef $ac_func  
   
2097  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
2098  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
2099     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2100  char $ac_func ();  char $ac_func();
2101    
2102    int main() {
2103    
2104  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
2105      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
2106      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
2107  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2108  choke me  choke me
2109  #else  #else
2110  char (*f) () = $ac_func;  $ac_func();
 #endif  
 #ifdef __cplusplus  
 }  
2111  #endif  #endif
2112    
2113  int  ; return 0; }
2114  main ()  EOF
2115  {  if { (eval echo configure:2116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2116  return f != $ac_func;    rm -rf conftest*
2117    ;    eval "ac_cv_func_$ac_func=yes"
2118    return 0;  else
2119  }    echo "configure: failed program was:" >&5
2120  _ACEOF    cat conftest.$ac_ext >&5
2121  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
2122  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_$ac_func=no"
2123    (eval $ac_link) 2>conftest.er1  fi
2124    ac_status=$?  rm -f conftest*
2125    grep -v '^ *+' conftest.er1 >conftest.err  fi
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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 conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  
 if test `eval echo '${'$as_ac_var'}'` = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1  
 _ACEOF  
2126    
2127    if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2128      echo "$ac_t""yes" 1>&6
2129        ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2130      cat >> confdefs.h <<EOF
2131    #define $ac_tr_func 1
2132    EOF
2133    
2134    else
2135      echo "$ac_t""no" 1>&6
2136  fi  fi
2137  done  done
2138    
# Line 5757  LIBS="$asc_keep_LIBS" Line 2149  LIBS="$asc_keep_LIBS"
2149  #   can find the X library without the user having to set  #   can find the X library without the user having to set
2150  #   LD_LIBRARY_PATH  #   LD_LIBRARY_PATH
2151  #--------------------------------------------------------------------  #--------------------------------------------------------------------
2152  echo "$as_me:$LINENO: checking for X" >&5  # If we find X, set shell vars x_includes and x_libraries to the
2153  echo $ECHO_N "checking for X... $ECHO_C" >&6  # paths, otherwise set no_x=yes.
2154    # Uses ac_ vars as temps to allow command line to override cache and checks.
2155    # --without-x overrides everything else, but does not touch the cache.
2156    echo $ac_n "checking for X""... $ac_c" 1>&6
2157    echo "configure:2158: checking for X" >&5
2158    
2159  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
2160  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
2161    withval="$with_x"    withval="$with_x"
2162      :
2163    fi
2164    
 fi;  
2165  # $have_x is `yes', `no', `disabled', or empty when we do not yet know.  # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2166  if test "x$with_x" = xno; then  if test "x$with_x" = xno; then
2167    # The user explicitly disabled X.    # The user explicitly disabled X.
# Line 5775  else Line 2171  else
2171      # Both variables are already set.      # Both variables are already set.
2172      have_x=yes      have_x=yes
2173    else    else
2174      if test "${ac_cv_have_x+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2175    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2176  else  else
2177    # One or both of the vars are not set, and there is no cached value.    # One or both of the vars are not set, and there is no cached value.
2178  ac_x_includes=no ac_x_libraries=no  ac_x_includes=NO ac_x_libraries=NO
2179  rm -fr conftest.dir  rm -fr conftestdir
2180  if mkdir conftest.dir; then  if mkdir conftestdir; then
2181    cd conftest.dir    cd conftestdir
2182    # Make sure to not put "make" in the Imakefile rules, since we grep it out.    # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2183    cat >Imakefile <<'_ACEOF'    cat > Imakefile <<'EOF'
2184  acfindx:  acfindx:
2185      @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'      @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2186  _ACEOF  EOF
2187    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2188      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2189      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2190      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2191      for ac_extension in a so sl; do      for ac_extension in a so sl; do
2192        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2193       test -f $ac_im_libdir/libX11.$ac_extension; then          test -f $ac_im_libdir/libX11.$ac_extension; then
2194      ac_im_usrlibdir=$ac_im_libdir; break          ac_im_usrlibdir=$ac_im_libdir; break
2195        fi        fi
2196      done      done
2197      # Screen out bogus values from the imake configuration.  They are      # Screen out bogus values from the imake configuration.  They are
2198      # bogus both because they are the default anyway, and because      # bogus both because they are the default anyway, and because
2199      # using them would break gcc on systems where it needs fixed includes.      # using them would break gcc on systems where it needs fixed includes.
2200      case $ac_im_incroot in      case "$ac_im_incroot" in
2201      /usr/include) ;;      /usr/include) ;;
2202      *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;      *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2203      esac      esac
2204      case $ac_im_usrlibdir in      case "$ac_im_usrlibdir" in
2205      /usr/lib | /lib) ;;      /usr/lib | /lib) ;;
2206      *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;      *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2207      esac      esac
2208    fi    fi
2209    cd ..    cd ..
2210    rm -fr conftest.dir    rm -fr conftestdir
2211  fi  fi
2212    
2213  # Standard set of common directories for X headers.  if test "$ac_x_includes" = NO; then
2214  # Check X11 before X11Rn because it is often a symlink to the current release.    # Guess where to find include files, by looking for this one X11 .h file.
2215  ac_x_header_dirs='    test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
 /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'  
2216    
 if test "$ac_x_includes" = no; then  
   # Guess where to find include files, by looking for Intrinsic.h.  
2217    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
2218    cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2219  /* confdefs.h.  */  #line 2220 "configure"
2220  _ACEOF  #include "confdefs.h"
2221  cat confdefs.h >>conftest.$ac_ext  #include <$x_direct_test_include>
2222  cat >>conftest.$ac_ext <<_ACEOF  EOF
2223  /* end confdefs.h.  */  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2224  #include <X11/Intrinsic.h>  { (eval echo configure:2225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2225  _ACEOF  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2226  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  if test -z "$ac_err"; then
2227    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    rm -rf conftest*
   ac_status=$?  
   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; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
2228    # We can compile using X headers with no special include directory.    # We can compile using X headers with no special include directory.
2229  ac_x_includes=  ac_x_includes=
2230  else  else
2231    echo "$as_me: failed program was:" >&5    echo "$ac_err" >&5
2232  sed 's/^/| /' conftest.$ac_ext >&5    echo "configure: failed program was:" >&5
2233      cat conftest.$ac_ext >&5
2234    for ac_dir in $ac_x_header_dirs; do    rm -rf conftest*
2235    if test -r "$ac_dir/X11/Intrinsic.h"; then    # Look for the header file in a standard set of common directories.
2236      ac_x_includes=$ac_dir  # Check X11 before X11Rn because it is often a symlink to the current release.
2237      break    for ac_dir in               \
2238    fi      /usr/X11/include          \
2239  done      /usr/X11R6/include        \
2240        /usr/X11R5/include        \
2241        /usr/X11R4/include        \
2242                                  \
2243        /usr/include/X11          \
2244        /usr/include/X11R6        \
2245        /usr/include/X11R5        \
2246        /usr/include/X11R4        \
2247                                  \
2248        /usr/local/X11/include    \
2249        /usr/local/X11R6/include  \
2250        /usr/local/X11R5/include  \
2251        /usr/local/X11R4/include  \
2252                                  \
2253        /usr/local/include/X11    \
2254        /usr/local/include/X11R6  \
2255        /usr/local/include/X11R5  \
2256        /usr/local/include/X11R4  \
2257                                  \
2258        /usr/X386/include         \
2259        /usr/x386/include         \
2260        /usr/XFree86/include/X11  \
2261                                  \
2262        /usr/include              \
2263        /usr/local/include        \
2264        /usr/unsupported/include  \
2265        /usr/athena/include       \
2266        /usr/local/x11r5/include  \
2267        /usr/lpp/Xamples/include  \
2268                                  \
2269        /usr/openwin/include      \
2270        /usr/openwin/share/include \
2271        ; \
2272      do
2273        if test -r "$ac_dir/$x_direct_test_include"; then
2274          ac_x_includes=$ac_dir
2275          break
2276        fi
2277      done
2278  fi  fi
2279  rm -f conftest.err conftest.$ac_ext  rm -f conftest*
2280  fi # $ac_x_includes = no  fi # $ac_x_includes = NO
2281    
2282  if test "$ac_x_libraries" = no; then  if test "$ac_x_libraries" = NO; then
2283    # Check for the libraries.    # Check for the libraries.
2284    
2285      test -z "$x_direct_test_library" && x_direct_test_library=Xt
2286      test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2287    
2288    # See if we find them without any special options.    # See if we find them without any special options.
2289    # Don't add to $LIBS permanently.    # Don't add to $LIBS permanently.
2290    ac_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2291    LIBS="-lXt $LIBS"    LIBS="-l$x_direct_test_library $LIBS"
2292    cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2293  /* confdefs.h.  */  #line 2294 "configure"
2294  _ACEOF  #include "confdefs.h"
2295  cat confdefs.h >>conftest.$ac_ext  
2296  cat >>conftest.$ac_ext <<_ACEOF  int main() {
2297  /* end confdefs.h.  */  ${x_direct_test_function}()
2298  #include <X11/Intrinsic.h>  ; return 0; }
2299  int  EOF
2300  main ()  if { (eval echo configure:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2301  {    rm -rf conftest*
2302  XtMalloc (0)    LIBS="$ac_save_LIBS"
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   LIBS=$ac_save_LIBS  
2303  # We can link X programs with no special library path.  # We can link X programs with no special library path.
2304  ac_x_libraries=  ac_x_libraries=
2305  else  else
2306    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
2307  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2308      rm -rf conftest*
2309  LIBS=$ac_save_LIBS    LIBS="$ac_save_LIBS"
2310  for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`  # First see if replacing the include by lib works.
2311    # Check X11 before X11Rn because it is often a symlink to the current release.
2312    for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2313        /usr/X11/lib          \
2314        /usr/X11R6/lib        \
2315        /usr/X11R5/lib        \
2316        /usr/X11R4/lib        \
2317                              \
2318        /usr/lib/X11          \
2319        /usr/lib/X11R6        \
2320        /usr/lib/X11R5        \
2321        /usr/lib/X11R4        \
2322                              \
2323        /usr/local/X11/lib    \
2324        /usr/local/X11R6/lib  \
2325        /usr/local/X11R5/lib  \
2326        /usr/local/X11R4/lib  \
2327                              \
2328        /usr/local/lib/X11    \
2329        /usr/local/lib/X11R6  \
2330        /usr/local/lib/X11R5  \
2331        /usr/local/lib/X11R4  \
2332                              \
2333        /usr/X386/lib         \
2334        /usr/x386/lib         \
2335        /usr/XFree86/lib/X11  \
2336                              \
2337        /usr/lib              \
2338        /usr/local/lib        \
2339        /usr/unsupported/lib  \
2340        /usr/athena/lib       \
2341        /usr/local/x11r5/lib  \
2342        /usr/lpp/Xamples/lib  \
2343        /lib/usr/lib/X11      \
2344                              \
2345        /usr/openwin/lib      \
2346        /usr/openwin/share/lib \
2347        ; \
2348  do  do
   # Don't even attempt the hair of trying to link an X program!  
2349    for ac_extension in a so sl; do    for ac_extension in a so sl; do
2350      if test -r $ac_dir/libXt.$ac_extension; then      if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2351        ac_x_libraries=$ac_dir        ac_x_libraries=$ac_dir
2352        break 2        break 2
2353      fi      fi
2354    done    done
2355  done  done
2356  fi  fi
2357  rm -f conftest.err conftest.$ac_objext \  rm -f conftest*
2358        conftest$ac_exeext conftest.$ac_ext  fi # $ac_x_libraries = NO
 fi # $ac_x_libraries = no  
2359    
2360  if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then  if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2361    # Didn't find X anywhere.  Cache the known absence of X.    # Didn't find X anywhere.  Cache the known absence of X.
2362    ac_cv_have_x="have_x=no"    ac_cv_have_x="have_x=no"
2363  else  else
2364    # Record where we found X for the cache.    # Record where we found X for the cache.
2365    ac_cv_have_x="have_x=yes \    ac_cv_have_x="have_x=yes \
2366          ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"              ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2367  fi  fi
2368  fi  fi
   
2369    fi    fi
2370    eval "$ac_cv_have_x"    eval "$ac_cv_have_x"
2371  fi # $with_x != no  fi # $with_x != no
2372    
2373  if test "$have_x" != yes; then  if test "$have_x" != yes; then
2374    echo "$as_me:$LINENO: result: $have_x" >&5    echo "$ac_t""$have_x" 1>&6
 echo "${ECHO_T}$have_x" >&6  
2375    no_x=yes    no_x=yes
2376  else  else
2377    # If each of the values was on the command line, it overrides each guess.    # If each of the values was on the command line, it overrides each guess.
# Line 5987  else Line 2380  else
2380    # Update the cache value to reflect the command line values.    # Update the cache value to reflect the command line values.
2381    ac_cv_have_x="have_x=yes \    ac_cv_have_x="have_x=yes \
2382          ac_x_includes=$x_includes ac_x_libraries=$x_libraries"          ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2383    echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5    echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6  
2384  fi  fi
2385    
2386  if test -n "$x_includes"; then  if test -n "$x_includes"; then
# Line 5998  if test -n "$x_libraries"; then Line 2390  if test -n "$x_libraries"; then
2390      X11_LIBRARIES="-L$x_libraries"      X11_LIBRARIES="-L$x_libraries"
2391      case "$host" in      case "$host" in
2392          sparc-sun-solaris*)          sparc-sun-solaris*)
2393              X11_RUN_PATH="-R$x_libraries"              X11_RUN_PATH="-R$x_libraries"
2394              ;;              ;;
2395          mips-sgi-irix*)          mips-sgi-irix*)
2396              X11_RUN_PATH="-rpath $x_libraries"              X11_RUN_PATH="-rpath $x_libraries"
# Line 6030  fi Line 2422  fi
2422  #--------------------------------------------------------------------  #--------------------------------------------------------------------
2423    
2424  asc_checkBoth=0  asc_checkBoth=0
2425  echo "$as_me:$LINENO: checking for connect" >&5  echo $ac_n "checking for connect""... $ac_c" 1>&6
2426  echo $ECHO_N "checking for connect... $ECHO_C" >&6  echo "configure:2427: checking for connect" >&5
2427  if test "${ac_cv_func_connect+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2428    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2429  else  else
2430    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
2431  /* confdefs.h.  */  #line 2432 "configure"
2432  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define connect to an innocuous variant, in case <limits.h> declares connect.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define connect innocuous_connect  
   
2433  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2434      which can conflict with char connect (); below.      which can conflict with char connect(); below.  */
2435      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef connect  
   
2436  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
2437  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
2438     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2439  char connect ();  char connect();
2440    
2441    int main() {
2442    
2443  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
2444      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
2445      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
2446  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
2447  choke me  choke me
2448  #else  #else
2449  char (*f) () = connect;  connect();
 #endif  
 #ifdef __cplusplus  
 }  
2450  #endif  #endif
2451    
2452  int  ; return 0; }
2453  main ()  EOF
2454  {  if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2455  return f != connect;    rm -rf conftest*
2456    ;    eval "ac_cv_func_connect=yes"
2457    return 0;  else
2458  }    echo "configure: failed program was:" >&5
2459  _ACEOF    cat conftest.$ac_ext >&5
2460  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
2461  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_connect=no"
2462    (eval $ac_link) 2>conftest.er1  fi
2463    ac_status=$?  rm -f conftest*
2464    grep -v '^ *+' conftest.er1 >conftest.err  fi
2465    rm -f conftest.er1  
2466    cat conftest.err >&5  if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2467    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""yes" 1>&6
   (exit $ac_status); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_connect=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_connect=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5  
 echo "${ECHO_T}$ac_cv_func_connect" >&6  
 if test $ac_cv_func_connect = yes; then  
2468    asc_checkSocket=0    asc_checkSocket=0
2469  else  else
2470    asc_checkSocket=1    echo "$ac_t""no" 1>&6
2471    asc_checkSocket=1
2472  fi  fi
2473    
2474  if test "$asc_checkSocket" = 1; then  if test "$asc_checkSocket" = 1; then
2475      echo "$as_me:$LINENO: checking for printf in -lsocket" >&5      echo $ac_n "checking for printf in -lsocket""... $ac_c" 1>&6
2476  echo $ECHO_N "checking for printf in -lsocket... $ECHO_C" >&6  echo "configure:2477: checking for printf in -lsocket" >&5
2477  if test "${ac_cv_lib_socket_printf+set}" = set; then  ac_lib_var=`echo socket'_'printf | sed 'y%./+-%__p_%'`
2478    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2479      echo $ac_n "(cached) $ac_c" 1>&6
2480  else  else
2481    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2482  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
2483  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2484  /* confdefs.h.  */  #line 2485 "configure"
2485  _ACEOF  #include "confdefs.h"
2486  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
2487  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
2488  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
2489    char printf();
2490    
2491    int main() {
2492    printf()
2493    ; return 0; }
2494    EOF
2495    if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2496      rm -rf conftest*
2497      eval "ac_cv_lib_$ac_lib_var=yes"
2498    else
2499      echo "configure: failed program was:" >&5
2500      cat conftest.$ac_ext >&5
2501      rm -rf conftest*
2502      eval "ac_cv_lib_$ac_lib_var=no"
2503    fi
2504    rm -f conftest*
2505    LIBS="$ac_save_LIBS"
2506    
2507  /* Override any gcc2 internal prototype to avoid an error.  */  fi
2508  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2509  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char printf ();  
 int  
 main ()  
 {  
 printf ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_socket_printf=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_socket_printf=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_printf" >&5  
 echo "${ECHO_T}$ac_cv_lib_socket_printf" >&6  
 if test $ac_cv_lib_socket_printf = yes; then  
2510    X11_EXTRA_LIBS="-lsocket"    X11_EXTRA_LIBS="-lsocket"
2511  else  else
2512    asc_checkBoth=1    echo "$ac_t""no" 1>&6
2513    asc_checkBoth=1
2514  fi  fi
2515    
2516  fi  fi
# Line 6202  if test "$asc_checkBoth" = 1; then Line 2518  if test "$asc_checkBoth" = 1; then
2518      asc_oldLibs=$LIBS      asc_oldLibs=$LIBS
2519      X11_EXTRA_LIBS="-lsocket -lnsl"      X11_EXTRA_LIBS="-lsocket -lnsl"
2520      LIBS="$LIBS $X11_EXTRA_LIBS"      LIBS="$LIBS $X11_EXTRA_LIBS"
2521      echo "$as_me:$LINENO: checking for accept" >&5      echo $ac_n "checking for accept""... $ac_c" 1>&6
2522  echo $ECHO_N "checking for accept... $ECHO_C" >&6  echo "configure:2523: checking for accept" >&5
2523  if test "${ac_cv_func_accept+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
2524    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2525  else  else
2526    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
2527  /* confdefs.h.  */  #line 2528 "configure"
2528  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define accept to an innocuous variant, in case <limits.h> declares accept.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define accept innocuous_accept  
   
2529  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2530      which can conflict with char accept (); below.      which can conflict with char accept(); below.  */
2531      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef accept  
   
2532  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
2533  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
2534     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2535  char accept ();  char accept();
2536    
2537    int main() {
2538    
2539  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
2540      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
2541      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
2542  #if defined (__stub_accept) || defined (__stub___accept)  #if defined (__stub_accept) || defined (__stub___accept)
2543  choke me  choke me
2544  #else  #else
2545  char (*f) () = accept;  accept();
 #endif  
 #ifdef __cplusplus  
 }  
2546  #endif  #endif
2547    
2548  int  ; return 0; }
2549  main ()  EOF
2550  {  if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2551  return f != accept;    rm -rf conftest*
2552    ;    eval "ac_cv_func_accept=yes"
2553    return 0;  else
2554  }    echo "configure: failed program was:" >&5
2555  _ACEOF    cat conftest.$ac_ext >&5
2556  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
2557  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_accept=no"
2558    (eval $ac_link) 2>conftest.er1  fi
2559    ac_status=$?  rm -f conftest*
2560    grep -v '^ *+' conftest.er1 >conftest.err  fi
2561    rm -f conftest.er1  
2562    cat conftest.err >&5  if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
2563    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""yes" 1>&6
   (exit $ac_status); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_accept=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_accept=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5  
 echo "${ECHO_T}$ac_cv_func_accept" >&6  
 if test $ac_cv_func_accept = yes; then  
2564    asc_checkNsl=0    asc_checkNsl=0
2565  else  else
2566    X11_EXTRA_LIBS=""    echo "$ac_t""no" 1>&6
2567    X11_EXTRA_LIBS=""
2568  fi  fi
2569    
2570      LIBS=$asc_oldLibs      LIBS=$asc_oldLibs
2571  fi  fi
2572  asc_oldLibs=$LIBS  asc_oldLibs=$LIBS
2573  LIBS="$LIBS $X11_EXTRA_LIBS"  LIBS="$LIBS $X11_EXTRA_LIBS"
2574  echo "$as_me:$LINENO: checking for gethostbyname" >&5  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2575  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6  echo "configure:2576: checking for gethostbyname" >&5
2576  if test "${ac_cv_func_gethostbyname+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2577    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2578  else  else
2579    cat >conftest.$ac_ext <<_ACEOF    cat > conftest.$ac_ext <<EOF
2580  /* confdefs.h.  */  #line 2581 "configure"
2581  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define gethostbyname innocuous_gethostbyname  
   
2582  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2583      which can conflict with char gethostbyname (); below.      which can conflict with char gethostbyname(); below.  */
2584      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  #include <assert.h>
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef gethostbyname  
   
2585  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
2586  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
2587     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
2588  char gethostbyname ();  char gethostbyname();
2589    
2590    int main() {
2591    
2592  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
2593      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
2594      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
2595  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2596  choke me  choke me
2597  #else  #else
2598  char (*f) () = gethostbyname;  gethostbyname();
 #endif  
 #ifdef __cplusplus  
 }  
2599  #endif  #endif
2600    
2601  int  ; return 0; }
2602  main ()  EOF
2603  {  if { (eval echo configure:2604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2604  return f != gethostbyname;    rm -rf conftest*
2605    ;    eval "ac_cv_func_gethostbyname=yes"
2606    return 0;  else
2607  }    echo "configure: failed program was:" >&5
2608  _ACEOF    cat conftest.$ac_ext >&5
2609  rm -f conftest.$ac_objext conftest$ac_exeext    rm -rf conftest*
2610  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    eval "ac_cv_func_gethostbyname=no"
2611    (eval $ac_link) 2>conftest.er1  fi
2612    ac_status=$?  rm -f conftest*
2613    grep -v '^ *+' conftest.er1 >conftest.err  fi
2614    rm -f conftest.er1  
2615    cat conftest.err >&5  if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2616    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""yes" 1>&6
   (exit $ac_status); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_gethostbyname=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_gethostbyname=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5  
 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6  
 if test $ac_cv_func_gethostbyname = yes; then  
2617    :    :
2618  else  else
2619    echo "$as_me:$LINENO: checking for printf in -lnsl" >&5    echo "$ac_t""no" 1>&6
2620  echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6  echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
2621  if test "${ac_cv_lib_nsl_printf+set}" = set; then  echo "configure:2622: checking for printf in -lnsl" >&5
2622    echo $ECHO_N "(cached) $ECHO_C" >&6  ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
2623    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2624      echo $ac_n "(cached) $ac_c" 1>&6
2625  else  else
2626    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2627  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
2628  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2629  /* confdefs.h.  */  #line 2630 "configure"
2630  _ACEOF  #include "confdefs.h"
2631  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
2632  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
2633  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
2634    char printf();
2635    
2636    int main() {
2637    printf()
2638    ; return 0; }
2639    EOF
2640    if { (eval echo configure:2641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2641      rm -rf conftest*
2642      eval "ac_cv_lib_$ac_lib_var=yes"
2643    else
2644      echo "configure: failed program was:" >&5
2645      cat conftest.$ac_ext >&5
2646      rm -rf conftest*
2647      eval "ac_cv_lib_$ac_lib_var=no"
2648    fi
2649    rm -f conftest*
2650    LIBS="$ac_save_LIBS"
2651    
2652  /* Override any gcc2 internal prototype to avoid an error.  */  fi
2653  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2654  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char printf ();  
 int  
 main ()  
 {  
 printf ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_nsl_printf=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_nsl_printf=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5  
 echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6  
 if test $ac_cv_lib_nsl_printf = yes; then  
2655    X11_EXTRA_LIBS="$X11_EXTRA_LIBS -lnsl"    X11_EXTRA_LIBS="$X11_EXTRA_LIBS -lnsl"
2656    else
2657      echo "$ac_t""no" 1>&6
2658  fi  fi
2659    
2660  fi  fi
# Line 6531  LIBS=$asc_oldLibs Line 2725  LIBS=$asc_oldLibs
2725  # Step 2: check for existence of -ldl library.  This is needed because  # Step 2: check for existence of -ldl library.  This is needed because
2726  # Linux can use either -ldl or -ldld for dynamic loading.  # Linux can use either -ldl or -ldld for dynamic loading.
2727    
2728  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5  echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2729  echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6  echo "configure:2730: checking for dlopen in -ldl" >&5
2730  if test "${ac_cv_lib_dl_dlopen+set}" = set; then  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2731    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2732      echo $ac_n "(cached) $ac_c" 1>&6
2733  else  else
2734    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2735  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
2736  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2737  /* confdefs.h.  */  #line 2738 "configure"
2738  _ACEOF  #include "confdefs.h"
2739  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
2740  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
2741  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
2742    char dlopen();
2743    
2744    int main() {
2745    dlopen()
2746    ; return 0; }
2747    EOF
2748    if { (eval echo configure:2749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2749      rm -rf conftest*
2750      eval "ac_cv_lib_$ac_lib_var=yes"
2751    else
2752      echo "configure: failed program was:" >&5
2753      cat conftest.$ac_ext >&5
2754      rm -rf conftest*
2755      eval "ac_cv_lib_$ac_lib_var=no"
2756    fi
2757    rm -f conftest*
2758    LIBS="$ac_save_LIBS"
2759    
2760  /* Override any gcc2 internal prototype to avoid an error.  */  fi
2761  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2762  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char dlopen ();  
 int  
 main ()  
 {  
 dlopen ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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 conftest.err conftest.$ac_objext \  
       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  
2763    have_dl=yes    have_dl=yes
2764  else  else
2765    have_dl=no    echo "$ac_t""no" 1>&6
2766    have_dl=no
2767  fi  fi
2768    
2769    
# Line 6640  case $host in Line 2805  case $host in
2805      LD_SEARCH_FLAGS=""      LD_SEARCH_FLAGS=""
2806      ;;      ;;
2807      *-hpux8*|*-hpux9*|*-hpux10*)      *-hpux8*|*-hpux9*|*-hpux10*)
2808      echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5      echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
2809  echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6  echo "configure:2810: checking for shl_load in -ldld" >&5
2810  if test "${ac_cv_lib_dld_shl_load+set}" = set; then  ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
2811    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2812      echo $ac_n "(cached) $ac_c" 1>&6
2813  else  else
2814    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
2815  LIBS="-ldld  $LIBS"  LIBS="-ldld  $LIBS"
2816  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
2817  /* confdefs.h.  */  #line 2818 "configure"
2818  _ACEOF  #include "confdefs.h"
2819  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
2820  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
2821  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
2822    char shl_load();
2823    
2824    int main() {
2825    shl_load()
2826    ; return 0; }
2827    EOF
2828    if { (eval echo configure:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2829      rm -rf conftest*
2830      eval "ac_cv_lib_$ac_lib_var=yes"
2831    else
2832      echo "configure: failed program was:" >&5
2833      cat conftest.$ac_ext >&5
2834      rm -rf conftest*
2835      eval "ac_cv_lib_$ac_lib_var=no"
2836    fi
2837    rm -f conftest*
2838    LIBS="$ac_save_LIBS"
2839    
2840  /* Override any gcc2 internal prototype to avoid an error.  */  fi
2841  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2842  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char shl_load ();  
 int  
 main ()  
 {  
 shl_load ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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 conftest.err conftest.$ac_objext \  
       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  
2843    tcl_ok=yes    tcl_ok=yes
2844  else  else
2845    tcl_ok=no    echo "$ac_t""no" 1>&6
2846    tcl_ok=no
2847  fi  fi
2848    
2849      if test "$tcl_ok" = yes; then      if test "$tcl_ok" = yes; then
# Line 6748  fi Line 2884  fi
2884      SHLIB_SUFFIX=".so"      SHLIB_SUFFIX=".so"
2885      if test "$have_dl" = yes; then      if test "$have_dl" = yes; then
2886          SHLIB_LD="${CC} -shared"          SHLIB_LD="${CC} -shared"
2887          DL_OBJS=""          DL_OBJS=""
2888          DL_LIBS="-ldl"          DL_LIBS="-ldl"
2889          LD_FLAGS="-rdynamic"          LD_FLAGS="-rdynamic"
2890          LD_SEARCH_FLAGS=""          LD_SEARCH_FLAGS=""
2891      else      else
2892          if test "${ac_cv_header_dld_h+set}" = set; then          ac_safe=`echo "dld.h" | sed 'y%./+-%__p_%'`
2893    echo "$as_me:$LINENO: checking for dld.h" >&5  echo $ac_n "checking for dld.h""... $ac_c" 1>&6
2894  echo $ECHO_N "checking for dld.h... $ECHO_C" >&6  echo "configure:2895: checking for dld.h" >&5
2895  if test "${ac_cv_header_dld_h+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2896    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2897  fi  else
2898  echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5    cat > conftest.$ac_ext <<EOF
2899  echo "${ECHO_T}$ac_cv_header_dld_h" >&6  #line 2900 "configure"
2900  else  #include "confdefs.h"
2901    # Is the header compilable?  #include <dld.h>
2902  echo "$as_me:$LINENO: checking dld.h usability" >&5  EOF
2903  echo $ECHO_N "checking dld.h usability... $ECHO_C" >&6  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2904  cat >conftest.$ac_ext <<_ACEOF  { (eval echo configure:2905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2905  /* confdefs.h.  */  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2906  _ACEOF  if test -z "$ac_err"; then
2907  cat confdefs.h >>conftest.$ac_ext    rm -rf conftest*
2908  cat >>conftest.$ac_ext <<_ACEOF    eval "ac_cv_header_$ac_safe=yes"
2909  /* end confdefs.h.  */  else
2910  $ac_includes_default    echo "$ac_err" >&5
2911  #include <dld.h>    echo "configure: failed program was:" >&5
2912  _ACEOF    cat conftest.$ac_ext >&5
2913  rm -f conftest.$ac_objext    rm -rf conftest*
2914  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5    eval "ac_cv_header_$ac_safe=no"
   (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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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 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 dld.h presence" >&5  
 echo $ECHO_N "checking dld.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 <dld.h>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_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: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: dld.h:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: dld.h:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for dld.h" >&5  
 echo $ECHO_N "checking for dld.h... $ECHO_C" >&6  
 if test "${ac_cv_header_dld_h+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_cv_header_dld_h=$ac_header_preproc  
2915  fi  fi
2916  echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5  rm -f conftest*
 echo "${ECHO_T}$ac_cv_header_dld_h" >&6  
   
2917  fi  fi
2918  if test $ac_cv_header_dld_h = yes; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2919      echo "$ac_t""yes" 1>&6
2920      
2921          SHLIB_LD="ld -shared"          SHLIB_LD="ld -shared"
2922          DL_OBJS=""          DL_OBJS=""
2923          DL_LIBS="-ldld"          DL_LIBS="-ldld"
2924          LD_FLAGS=""          LD_FLAGS=""
2925          LD_SEARCH_FLAGS=""          LD_SEARCH_FLAGS=""
2926    else
2927      echo "$ac_t""no" 1>&6
2928  fi  fi
2929    
   
2930      fi      fi
2931      ;;      ;;
2932      MP-RAS-02*)      MP-RAS-02*)
# Line 6924  fi Line 2951  fi
2951      ;;      ;;
2952      *-netbsd*|*-freebsd*|*-openbsd*)      *-netbsd*|*-freebsd*|*-openbsd*)
2953      # Not available on all versions:  check for include file.      # Not available on all versions:  check for include file.
2954      if test "${ac_cv_header_dlfcn_h+set}" = set; then      ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
2955    echo "$as_me:$LINENO: checking for dlfcn.h" >&5  echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
2956  echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6  echo "configure:2957: checking for dlfcn.h" >&5
2957  if test "${ac_cv_header_dlfcn_h+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2958    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
2959  fi  else
2960  echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5    cat > conftest.$ac_ext <<EOF
2961  echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6  #line 2962 "configure"
2962  else  #include "confdefs.h"
   # Is the header compilable?  
 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5  
 echo $ECHO_N "checking dlfcn.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  
2963  #include <dlfcn.h>  #include <dlfcn.h>
2964  _ACEOF  EOF
2965  rm -f conftest.$ac_objext  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2966  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  { (eval echo configure:2967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2967    (eval $ac_compile) 2>conftest.er1  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2968    ac_status=$?  if test -z "$ac_err"; then
2969    grep -v '^ *+' conftest.er1 >conftest.err    rm -rf conftest*
2970    rm -f conftest.er1    eval "ac_cv_header_$ac_safe=yes"
2971    cat conftest.err >&5  else
2972    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_err" >&5
2973    (exit $ac_status); } &&    echo "configure: failed program was:" >&5
2974       { ac_try='test -z "$ac_c_werror_flag"    cat conftest.$ac_ext >&5
2975               || test ! -s conftest.err'    rm -rf conftest*
2976    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    eval "ac_cv_header_$ac_safe=no"
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; 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 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 dlfcn.h presence" >&5  
 echo $ECHO_N "checking dlfcn.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 <dlfcn.h>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_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: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for dlfcn.h" >&5  
 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6  
 if test "${ac_cv_header_dlfcn_h+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_cv_header_dlfcn_h=$ac_header_preproc  
2977  fi  fi
2978  echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5  rm -f conftest*
 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6  
   
2979  fi  fi
2980  if test $ac_cv_header_dlfcn_h = yes; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2981      echo "$ac_t""yes" 1>&6
2982      
2983          SHLIB_CFLAGS="-fpic"          SHLIB_CFLAGS="-fpic"
2984          SHLIB_LD="ld -Bshareable -x"          SHLIB_LD="ld -Bshareable -x"
2985          SHLIB_LD_LIBS=""          SHLIB_LD_LIBS=""
# Line 7072  if test $ac_cv_header_dlfcn_h = yes; the Line 2989  if test $ac_cv_header_dlfcn_h = yes; the
2989          LD_FLAGS=""          LD_FLAGS=""
2990          LD_SEARCH_FLAGS=""          LD_SEARCH_FLAGS=""
2991          ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.so.1.0'          ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.so.1.0'
2992        
2993  else  else
2994      echo "$ac_t""no" 1>&6
2995    
2996          SHLIB_CFLAGS=""          SHLIB_CFLAGS=""
2997          SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"          SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
# Line 7084  else Line 3002  else
3002          LD_FLAGS=""          LD_FLAGS=""
3003          LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'          LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
3004          ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'          ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'
3005        
3006  fi  fi
3007    
3008    
   
3009      # FreeBSD doesn't handle version numbers with dots.      # FreeBSD doesn't handle version numbers with dots.
3010    
3011      ASC_UNSHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'      ASC_UNSHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'
# Line 7201  fi Line 3118  fi
3118      # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers      # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
3119      # that don't grok the -Bexport option.  Test that it does.      # that don't grok the -Bexport option.  Test that it does.
3120      hold_ldflags=$LDFLAGS      hold_ldflags=$LDFLAGS
3121      echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5      echo $ac_n "checking for ld accepts -Bexport flag""... $ac_c" 1>&6
3122  echo $ECHO_N "checking for ld accepts -Bexport flag... $ECHO_C" >&6  echo "configure:3123: checking for ld accepts -Bexport flag" >&5
3123      LDFLAGS="${LDFLAGS} -Wl,-Bexport"      LDFLAGS="${LDFLAGS} -Wl,-Bexport"
3124      cat >conftest.$ac_ext <<_ACEOF      cat > conftest.$ac_ext <<EOF
3125  /* confdefs.h.  */  #line 3126 "configure"
3126  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3127    
3128  int  int main() {
 main ()  
 {  
3129  int i;  int i;
3130    ;  ; return 0; }
3131    return 0;  EOF
3132  }  if { (eval echo configure:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3133  _ACEOF    rm -rf conftest*
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
3134    found=yes    found=yes
3135  else  else
3136    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
3137  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3138      rm -rf conftest*
3139  found=no    found=no
3140  fi  fi
3141  rm -f conftest.err conftest.$ac_objext \  rm -f conftest*
       conftest$ac_exeext conftest.$ac_ext  
3142      LDFLAGS=$hold_ldflags      LDFLAGS=$hold_ldflags
3143      echo "$as_me:$LINENO: result: $found" >&5      echo "$ac_t""$found" 1>&6
 echo "${ECHO_T}$found" >&6  
3144      if test "$found" = yes; then      if test "$found" = yes; then
3145        LD_FLAGS="-Wl,-Bexport"        LD_FLAGS="-Wl,-Bexport"
3146      else      else
# Line 7350  asc_tk_table_dirs=" Line 3238  asc_tk_table_dirs="
3238  #  see if the user gave us the location of the Tcl8.0  #  see if the user gave us the location of the Tcl8.0
3239  #  library and/or header file  #  library and/or header file
3240  #  #
   
3241  # Check whether --with-tcl or --without-tcl was given.  # Check whether --with-tcl or --without-tcl was given.
3242  if test "${with_tcl+set}" = set; then  if test "${with_tcl+set}" = set; then
3243    withval="$with_tcl"    withval="$with_tcl"
3244      :
3245  else  else
3246    with_tcl=yes    with_tcl=yes
3247  fi;  fi
3248    
3249    
3250  case "$with_tcl" in  case "$with_tcl" in
3251      no)      no)
3252      #  User specified --without-tcl; this makes no sense,      #  User specified --without-tcl; this makes no sense,
3253      #  print a warning and search for it ourselves      #  print a warning and search for it ourselves
3254          { echo "$as_me:$LINENO: WARNING: Bad option '--without-tcl'          echo "configure: warning: Bad option '--without-tcl'
3255      ASCEND must be compiled with Tcl8.0." >&5      ASCEND must be compiled with Tcl8.0." 1>&2
 echo "$as_me: WARNING: Bad option '--without-tcl'  
     ASCEND must be compiled with Tcl8.0." >&2;}  
3256      with_tcllib=_searching      with_tcllib=_searching
3257      with_tclhdr=_searching      with_tclhdr=_searching
3258          ;;          ;;
# Line 7398  esac Line 3284  esac
3284  if test "X$with_tcllib" = X_searching ; then  if test "X$with_tcllib" = X_searching ; then
3285      for ac_prog in libtcl8.0.a libtcl80.a libtcl8.3.a      for ac_prog in libtcl8.0.a libtcl80.a libtcl8.3.a
3286  do  do
3287    # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
3288  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
3289  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3290  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:3291: checking for $ac_word" >&5
3291  if test "${ac_cv_path_TCL_LIB+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_path_TCL_LIB'+set}'`\" = set"; then
3292    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
3293  else  else
3294    case $TCL_LIB in    case "$TCL_LIB" in
3295    [\\/]* | ?:[\\/]*)    /*)
3296    ac_cv_path_TCL_LIB="$TCL_LIB" # Let the user override the test with a path.    ac_cv_path_TCL_LIB="$TCL_LIB" # Let the user override the test with a path.
3297    ;;    ;;
3298      ?:/*)          
3299      ac_cv_path_TCL_LIB="$TCL_LIB" # Let the user override the test with a dos path.
3300      ;;
3301    *)    *)
3302    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3303  for as_dir in $asc_tcl_library_dirs    ac_dummy="$asc_tcl_library_dirs"
3304  do    for ac_dir in $ac_dummy; do
3305    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
3306    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
3307    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_path_TCL_LIB="$ac_dir/$ac_word"
3308    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
3309      ac_cv_path_TCL_LIB="$as_dir/$ac_word$ac_exec_ext"      fi
3310      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
3311      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
3312    ;;    ;;
3313  esac  esac
3314  fi  fi
3315  TCL_LIB=$ac_cv_path_TCL_LIB  TCL_LIB="$ac_cv_path_TCL_LIB"
   
3316  if test -n "$TCL_LIB"; then  if test -n "$TCL_LIB"; then
3317    echo "$as_me:$LINENO: result: $TCL_LIB" >&5    echo "$ac_t""$TCL_LIB" 1>&6
 echo "${ECHO_T}$TCL_LIB" >&6  
3318  else  else
3319    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
3320  fi  fi
3321    
3322    test -n "$TCL_LIB" && break  test -n "$TCL_LIB" && break
3323  done  done
3324    
3325      if test -z "$TCL_LIB" ; then      if test -z "$TCL_LIB" ; then
3326          TCL_LIB=_searching          TCL_LIB=_searching
3327      fi      fi
3328  else  else
3329      echo "$as_me:$LINENO: result: checking for tcl library... $TCL_LIB" >&5      echo "$ac_t""checking for tcl library... $TCL_LIB" 1>&6
 echo "${ECHO_T}checking for tcl library... $TCL_LIB" >&6  
3330  fi  fi
3331    
3332  #  verify the TCL_LIB  #  verify the TCL_LIB
3333  if test ! "X$TCL_LIB" = X_searching ; then  if test ! "X$TCL_LIB" = X_searching ; then
3334      echo "$as_me:$LINENO: checking whether $TCL_LIB is for Tcl8.3" >&5      echo $ac_n "checking whether $TCL_LIB is for Tcl8.3""... $ac_c" 1>&6
3335  echo $ECHO_N "checking whether $TCL_LIB is for Tcl8.3... $ECHO_C" >&6  echo "configure:3336: checking whether $TCL_LIB is for Tcl8.3" >&5
3336      asc_libs_orig=$LIBS      asc_libs_orig=$LIBS
3337      LIBS="$TCL_LIB $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"      LIBS="$TCL_LIB $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
3338      cat >conftest.$ac_ext <<_ACEOF      cat > conftest.$ac_ext <<EOF
3339  /* confdefs.h.  */  #line 3340 "configure"
3340  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3341    
3342  int  int main() {
 main ()  
 {  
3343  TclCompileCatchCmd()  TclCompileCatchCmd()
3344    ;  ; return 0; }
3345    return 0;  EOF
3346  }  if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
3347    :    :
3348  else  else
3349    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
3350  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3351      rm -rf conftest*
3352  TCL_LIB=_searching    TCL_LIB=_searching
3353  fi  fi
3354  rm -f conftest.err conftest.$ac_objext \  rm -f conftest*;
       conftest$ac_exeext conftest.$ac_ext;  
3355      if test "X$TCL_LIB" = X_searching ; then      if test "X$TCL_LIB" = X_searching ; then
3356          echo "$as_me:$LINENO: result: no" >&5          echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
3357      else      else
3358          echo "$as_me:$LINENO: result: yes" >&5          echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
3359      fi      fi
3360      LIBS=$asc_libs_orig      LIBS=$asc_libs_orig
3361  fi  fi
# Line 7513  fi Line 3363  fi
3363  #  see if the default LPATH can find the Tcl8.0 library  #  see if the default LPATH can find the Tcl8.0 library
3364  #  #
3365  if test "X$TCL_LIB" = X_searching ; then  if test "X$TCL_LIB" = X_searching ; then
3366      echo "$as_me:$LINENO: checking for TclCompileCatchCmd in -ltcl83" >&5      echo $ac_n "checking for TclCompileCatchCmd in -ltcl83""... $ac_c" 1>&6
3367  echo $ECHO_N "checking for TclCompileCatchCmd in -ltcl83... $ECHO_C" >&6  echo "configure:3368: checking for TclCompileCatchCmd in -ltcl83" >&5
3368  if test "${ac_cv_lib_tcl83_TclCompileCatchCmd+set}" = set; then  ac_lib_var=`echo tcl83'_'TclCompileCatchCmd | sed 'y%./+-%__p_%'`
3369    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3370      echo $ac_n "(cached) $ac_c" 1>&6
3371  else  else
3372    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3373  LIBS="-ltcl83 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"  LIBS="-ltcl83 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
3374  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3375  /* confdefs.h.  */  #line 3376 "configure"
3376  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
3377  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
3378  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3379     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3380  char TclCompileCatchCmd ();  char TclCompileCatchCmd();
3381  int  
3382  main ()  int main() {
3383  {  TclCompileCatchCmd()
3384  TclCompileCatchCmd ();  ; return 0; }
3385    ;  EOF
3386    return 0;  if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3387  }    rm -rf conftest*
3388  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
3389  rm -f conftest.$ac_objext conftest$ac_exeext  else
3390  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
3391    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
3392    ac_status=$?    rm -rf conftest*
3393    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
3394    rm -f conftest.er1  fi
3395    cat conftest.err >&5  rm -f conftest*
3396    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
3397    (exit $ac_status); } &&  
3398       { ac_try='test -z "$ac_c_werror_flag"  fi
3399               || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3400    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
3401    (eval $ac_try) 2>&5    TCL_LIB="-ltcl83"
3402    ac_status=$?  else
3403    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""no" 1>&6
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_tcl83_TclCompileCatchCmd=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_tcl83_TclCompileCatchCmd=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_tcl83_TclCompileCatchCmd" >&5  
 echo "${ECHO_T}$ac_cv_lib_tcl83_TclCompileCatchCmd" >&6  
 if test $ac_cv_lib_tcl83_TclCompileCatchCmd = yes; then  
   TCL_LIB="-ltcl83"  
3404  fi  fi
3405    
3406  fi  fi
3407  if test "X$TCL_LIB" = X_searching ; then  if test "X$TCL_LIB" = X_searching ; then
3408      echo "$as_me:$LINENO: checking for TclCompileCatchCmd in -ltcl8.3" >&5      echo $ac_n "checking for TclCompileCatchCmd in -ltcl8.3""... $ac_c" 1>&6
3409  echo $ECHO_N "checking for TclCompileCatchCmd in -ltcl8.3... $ECHO_C" >&6  echo "configure:3410: checking for TclCompileCatchCmd in -ltcl8.3" >&5
3410  if test "${ac_cv_lib_tcl8_3_TclCompileCatchCmd+set}" = set; then  ac_lib_var=`echo tcl8.3'_'TclCompileCatchCmd | sed 'y%./+-%__p_%'`
3411    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3412      echo $ac_n "(cached) $ac_c" 1>&6
3413  else  else
3414    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3415  LIBS="-ltcl8.3 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"  LIBS="-ltcl8.3 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
3416  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3417  /* confdefs.h.  */  #line 3418 "configure"
3418  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
3419  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
3420  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3421     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3422  char TclCompileCatchCmd ();  char TclCompileCatchCmd();
3423  int  
3424  main ()  int main() {
3425  {  TclCompileCatchCmd()
3426  TclCompileCatchCmd ();  ; return 0; }
3427    ;  EOF
3428    return 0;  if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3429  }    rm -rf conftest*
3430  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
3431  rm -f conftest.$ac_objext conftest$ac_exeext  else
3432  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
3433    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
3434    ac_status=$?    rm -rf conftest*
3435    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
3436    rm -f conftest.er1  fi
3437    cat conftest.err >&5  rm -f conftest*
3438    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
3439    (exit $ac_status); } &&  
3440       { ac_try='test -z "$ac_c_werror_flag"  fi
3441               || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3442    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
3443    (eval $ac_try) 2>&5    TCL_LIB="-ltcl8.3"
3444    ac_status=$?  else
3445    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""no" 1>&6
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_tcl8_3_TclCompileCatchCmd=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_tcl8_3_TclCompileCatchCmd=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_tcl8_3_TclCompileCatchCmd" >&5  
 echo "${ECHO_T}$ac_cv_lib_tcl8_3_TclCompileCatchCmd" >&6  
 if test $ac_cv_lib_tcl8_3_TclCompileCatchCmd = yes; then  
   TCL_LIB="-ltcl8.3"  
3446  fi  fi
3447    
3448  fi  fi
3449  if test "X$TCL_LIB" = X_searching ; then  if test "X$TCL_LIB" = X_searching ; then
3450      echo "$as_me:$LINENO: checking for TclCompileCatchCmd in -ltcl8.0" >&5      echo $ac_n "checking for TclCompileCatchCmd in -ltcl8.0""... $ac_c" 1>&6
3451  echo $ECHO_N "checking for TclCompileCatchCmd in -ltcl8.0... $ECHO_C" >&6  echo "configure:3452: checking for TclCompileCatchCmd in -ltcl8.0" >&5
3452  if test "${ac_cv_lib_tcl8_0_TclCompileCatchCmd+set}" = set; then  ac_lib_var=`echo tcl8.0'_'TclCompileCatchCmd | sed 'y%./+-%__p_%'`
3453    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3454      echo $ac_n "(cached) $ac_c" 1>&6
3455  else  else
3456    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3457  LIBS="-ltcl8.0 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"  LIBS="-ltcl8.0 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
3458  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3459  /* confdefs.h.  */  #line 3460 "configure"
3460  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
3461  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
3462  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3463     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3464  char TclCompileCatchCmd ();  char TclCompileCatchCmd();
3465  int  
3466  main ()  int main() {
3467  {  TclCompileCatchCmd()
3468  TclCompileCatchCmd ();  ; return 0; }
3469    ;  EOF
3470    return 0;  if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3471  }    rm -rf conftest*
3472  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
3473  rm -f conftest.$ac_objext conftest$ac_exeext  else
3474  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
3475    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
3476    ac_status=$?    rm -rf conftest*
3477    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
3478    rm -f conftest.er1  fi
3479    cat conftest.err >&5  rm -f conftest*
3480    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
3481    (exit $ac_status); } &&  
3482       { ac_try='test -z "$ac_c_werror_flag"  fi
3483               || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3484    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
3485    (eval $ac_try) 2>&5    TCL_LIB="-ltcl8.0"
3486    ac_status=$?  else
3487    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""no" 1>&6
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_tcl8_0_TclCompileCatchCmd=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_tcl8_0_TclCompileCatchCmd=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_tcl8_0_TclCompileCatchCmd" >&5  
 echo "${ECHO_T}$ac_cv_lib_tcl8_0_TclCompileCatchCmd" >&6  
 if test $ac_cv_lib_tcl8_0_TclCompileCatchCmd = yes; then  
   TCL_LIB="-ltcl8.0"  
3488  fi  fi
3489    
3490  fi  fi
3491  if test "X$TCL_LIB" = X_searching ; then  if test "X$TCL_LIB" = X_searching ; then
3492      echo "$as_me:$LINENO: checking for TclCompileCatchCmd in -ltcl80" >&5      echo $ac_n "checking for TclCompileCatchCmd in -ltcl80""... $ac_c" 1>&6
3493  echo $ECHO_N "checking for TclCompileCatchCmd in -ltcl80... $ECHO_C" >&6  echo "configure:3494: checking for TclCompileCatchCmd in -ltcl80" >&5
3494  if test "${ac_cv_lib_tcl80_TclCompileCatchCmd+set}" = set; then  ac_lib_var=`echo tcl80'_'TclCompileCatchCmd | sed 'y%./+-%__p_%'`
3495    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3496      echo $ac_n "(cached) $ac_c" 1>&6
3497  else  else
3498    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3499  LIBS="-ltcl80 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"  LIBS="-ltcl80 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
3500  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3501  /* confdefs.h.  */  #line 3502 "configure"
3502  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
3503  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
3504  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3505     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3506  char TclCompileCatchCmd ();  char TclCompileCatchCmd();
3507  int  
3508  main ()  int main() {
3509  {  TclCompileCatchCmd()
3510  TclCompileCatchCmd ();  ; return 0; }
3511    ;  EOF
3512    return 0;  if { (eval echo configure:3513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3513  }    rm -rf conftest*
3514  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
3515  rm -f conftest.$ac_objext conftest$ac_exeext  else
3516  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
3517    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
3518    ac_status=$?    rm -rf conftest*
3519    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
3520    rm -f conftest.er1  fi
3521    cat conftest.err >&5  rm -f conftest*
3522    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
3523    (exit $ac_status); } &&  
3524       { ac_try='test -z "$ac_c_werror_flag"  fi
3525               || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3526    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
3527    (eval $ac_try) 2>&5    TCL_LIB="-ltcl80"
3528    ac_status=$?  else
3529    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""no" 1>&6
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_tcl80_TclCompileCatchCmd=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_tcl80_TclCompileCatchCmd=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_tcl80_TclCompileCatchCmd" >&5  
 echo "${ECHO_T}$ac_cv_lib_tcl80_TclCompileCatchCmd" >&6  
 if test $ac_cv_lib_tcl80_TclCompileCatchCmd = yes; then  
   TCL_LIB="-ltcl80"  
3530  fi  fi
3531    
3532  fi  fi
3533  if test "X$TCL_LIB" = X_searching ; then  if test "X$TCL_LIB" = X_searching ; then
3534      echo "$as_me:$LINENO: checking for TclCompileCatchCmd in -ltcl" >&5      echo $ac_n "checking for TclCompileCatchCmd in -ltcl""... $ac_c" 1>&6
3535  echo $ECHO_N "checking for TclCompileCatchCmd in -ltcl... $ECHO_C" >&6  echo "configure:3536: checking for TclCompileCatchCmd in -ltcl" >&5
3536  if test "${ac_cv_lib_tcl_TclCompileCatchCmd+set}" = set; then  ac_lib_var=`echo tcl'_'TclCompileCatchCmd | sed 'y%./+-%__p_%'`
3537    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3538      echo $ac_n "(cached) $ac_c" 1>&6
3539  else  else
3540    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3541  LIBS="-ltcl $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"  LIBS="-ltcl $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
3542  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3543  /* confdefs.h.  */  #line 3544 "configure"
3544  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
3545  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
3546  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3547     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3548  char TclCompileCatchCmd ();  char TclCompileCatchCmd();
3549  int  
3550  main ()  int main() {
3551  {  TclCompileCatchCmd()
3552  TclCompileCatchCmd ();  ; return 0; }
3553    ;  EOF
3554    return 0;  if { (eval echo configure:3555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3555  }    rm -rf conftest*
3556  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
3557  rm -f conftest.$ac_objext conftest$ac_exeext  else
3558  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
3559    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
3560    ac_status=$?    rm -rf conftest*
3561    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
3562    rm -f conftest.er1  fi
3563    cat conftest.err >&5  rm -f conftest*
3564    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
3565    (exit $ac_status); } &&  
3566       { ac_try='test -z "$ac_c_werror_flag"  fi
3567               || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3568    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
3569    (eval $ac_try) 2>&5    TCL_LIB="-ltcl"
3570    ac_status=$?  else
3571    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""no" 1>&6
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_tcl_TclCompileCatchCmd=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_tcl_TclCompileCatchCmd=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_tcl_TclCompileCatchCmd" >&5  
 echo "${ECHO_T}$ac_cv_lib_tcl_TclCompileCatchCmd" >&6  
 if test $ac_cv_lib_tcl_TclCompileCatchCmd = yes; then  
   TCL_LIB="-ltcl"  
3572  fi  fi
3573    
3574  fi  fi
# Line 7866  fi Line 3576  fi
3576  #  give up searching for the Tcl8.0 library  #  give up searching for the Tcl8.0 library
3577  #  #
3578  if test "X$TCL_LIB" = X_searching ; then  if test "X$TCL_LIB" = X_searching ; then
3579      { { echo "$as_me:$LINENO: error: Cannot find a compatiable Tcl library.      { echo "configure: error: Cannot find a compatiable Tcl library.
     You must build and install Tcl version 8.3  before you  
     can build ASCEND.  If you have installed the correct version  
     of Tcl, run configure again with the argument:  
         --with-tcl=LIBRARY,HEADER  
     where LIBRARY and HEADER are the full paths to the Tcl8.3  
     library file and header file, respectively." >&5  
 echo "$as_me: error: Cannot find a compatiable Tcl library.  
3580      You must build and install Tcl version 8.3  before you      You must build and install Tcl version 8.3  before you
3581      can build ASCEND.  If you have installed the correct version      can build ASCEND.  If you have installed the correct version
3582      of Tcl, run configure again with the argument:      of Tcl, run configure again with the argument:
3583          --with-tcl=LIBRARY,HEADER          --with-tcl=LIBRARY,HEADER
3584      where LIBRARY and HEADER are the full paths to the Tcl8.3      where LIBRARY and HEADER are the full paths to the Tcl8.3
3585      library file and header file, respectively." >&2;}      library file and header file, respectively." 1>&2; exit 1; }
    { (exit 1); exit 1; }; }  
3586  fi  fi
3587    
3588  #  see if the user gave us the location of the Tcl8.0 header file  #  see if the user gave us the location of the Tcl8.0 header file
3589  #  #
3590  if test ! "X$with_tclhdr" = X_searching ; then  if test ! "X$with_tclhdr" = X_searching ; then
3591      if test ! -f "$TCL_HDR" ; then      if test ! -f "$TCL_HDR" ; then
3592      { echo "$as_me:$LINENO: WARNING: user specified Tcl header file, $TCL_HDR, does not exist" >&5      echo "configure: warning: user specified Tcl header file, $TCL_HDR, does not exist" 1>&2
 echo "$as_me: WARNING: user specified Tcl header file, $TCL_HDR, does not exist" >&2;}  
3593          with_tclhdr=_searching          with_tclhdr=_searching
3594          TCL_HDR=''          TCL_HDR=''
3595      fi      fi
# Line 7896  fi Line 3597  fi
3597  if test "X$with_tclhdr" = X_searching ; then  if test "X$with_tclhdr" = X_searching ; then
3598      # Extract the first word of "tcl.h", so it can be a program name with args.      # Extract the first word of "tcl.h", so it can be a program name with args.
3599  set dummy tcl.h; ac_word=$2  set dummy tcl.h; ac_word=$2
3600  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3601  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:3602: checking for $ac_word" >&5
3602  if test "${ac_cv_path_TCL_HDR+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_path_TCL_HDR'+set}'`\" = set"; then
3603    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
3604  else  else
3605    case $TCL_HDR in    case "$TCL_HDR" in
3606    [\\/]* | ?:[\\/]*)    /*)
3607    ac_cv_path_TCL_HDR="$TCL_HDR" # Let the user override the test with a path.    ac_cv_path_TCL_HDR="$TCL_HDR" # Let the user override the test with a path.
3608    ;;    ;;
3609      ?:/*)          
3610      ac_cv_path_TCL_HDR="$TCL_HDR" # Let the user override the test with a dos path.
3611      ;;
3612    *)    *)
3613    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3614  for as_dir in $asc_tcl_include_dirs    ac_dummy="$asc_tcl_include_dirs"
3615  do    for ac_dir in $ac_dummy; do
3616    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
3617    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
3618    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_path_TCL_HDR="$ac_dir/$ac_word"
3619    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
3620      ac_cv_path_TCL_HDR="$as_dir/$ac_word$ac_exec_ext"      fi
3621      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
3622      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
3623    ;;    ;;
3624  esac  esac
3625  fi  fi
3626  TCL_HDR=$ac_cv_path_TCL_HDR  TCL_HDR="$ac_cv_path_TCL_HDR"
   
3627  if test -n "$TCL_HDR"; then  if test -n "$TCL_HDR"; then
3628    echo "$as_me:$LINENO: result: $TCL_HDR" >&5    echo "$ac_t""$TCL_HDR" 1>&6
 echo "${ECHO_T}$TCL_HDR" >&6  
3629  else  else
3630    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
3631  fi  fi
3632    
3633      if test -z "$TCL_HDR" ; then      if test -z "$TCL_HDR" ; then
3634          cat >conftest.$ac_ext <<_ACEOF          cat > conftest.$ac_ext <<EOF
3635  /* confdefs.h.  */  #line 3636 "configure"
3636  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3637  #include <tcl.h>  #include <tcl.h>
3638    EOF
 _ACEOF  
3639  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640    $EGREP "TCL_MAJOR_VERSION.*8" >/dev/null 2>&1; then    egrep "TCL_MAJOR_VERSION.*8" >/dev/null 2>&1; then
3641      rm -rf conftest*
3642    TCL_HDR='tcl.h'    TCL_HDR='tcl.h'
3643  fi  fi
3644  rm -f conftest*  rm -f conftest*
3645    
3646      fi      fi
3647  else  else
3648      echo "$as_me:$LINENO: result: checking for tcl header... $TCL_HDR" >&5      echo "$ac_t""checking for tcl header... $TCL_HDR" 1>&6
 echo "${ECHO_T}checking for tcl header... $TCL_HDR" >&6  
3649  fi  fi
3650  if test -f "$TCL_HDR" ; then  if test -f "$TCL_HDR" ; then
3651      echo "$as_me:$LINENO: checking whether $TCL_HDR is for version 8" >&5      echo $ac_n "checking whether $TCL_HDR is for version 8""... $ac_c" 1>&6
3652  echo $ECHO_N "checking whether $TCL_HDR is for version 8... $ECHO_C" >&6  echo "configure:3653: checking whether $TCL_HDR is for version 8" >&5
3653      echo 'grep TCL_MAJOR_VERSION "$TCL_HDR" 2>&5' 1>&5      echo 'grep TCL_MAJOR_VERSION "$TCL_HDR" 2>&5' 1>&5
3654      grep_tcl_h=`grep TCL_MAJOR_VERSION "$TCL_HDR" 2>&5`      grep_tcl_h=`grep TCL_MAJOR_VERSION "$TCL_HDR" 2>&5`
3655      echo $grep_tcl_h 1>&5      echo $grep_tcl_h 1>&5
3656      case "$grep_tcl_h" in      case "$grep_tcl_h" in
3657          *8)          *8)
3658          echo "$as_me:$LINENO: result: yes" >&5          echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
3659              ;;              ;;
3660          *)          *)
3661          echo "$as_me:$LINENO: result: no" >&5          echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
3662          TCL_HDR=          TCL_HDR=
3663              ;;              ;;
3664      esac      esac
3665  fi  fi
3666  if test -z "$TCL_HDR" ; then  if test -z "$TCL_HDR" ; then
3667      { { echo "$as_me:$LINENO: error: Cannot find a compatiable Tcl header file.      { echo "configure: error: Cannot find a compatiable Tcl header file.
     You must build and install Tcl version 8.3 (but not yet 8.4) before you  
     can build ASCEND.  If you have installed the correct version  
     of Tcl, run configure again with the argument:  
         --with-tcl=LIBRARY,HEADER  
     where LIBRARY and HEADER are the full paths to the Tcl8.3  
     library file and header file, respectively." >&5  
 echo "$as_me: error: Cannot find a compatiable Tcl header file.  
3668      You must build and install Tcl version 8.3 (but not yet 8.4) before you      You must build and install Tcl version 8.3 (but not yet 8.4) before you
3669      can build ASCEND.  If you have installed the correct version      can build ASCEND.  If you have installed the correct version
3670      of Tcl, run configure again with the argument:      of Tcl, run configure again with the argument:
3671          --with-tcl=LIBRARY,HEADER          --with-tcl=LIBRARY,HEADER
3672      where LIBRARY and HEADER are the full paths to the Tcl8.3      where LIBRARY and HEADER are the full paths to the Tcl8.3
3673      library file and header file, respectively." >&2;}      library file and header file, respectively." 1>&2; exit 1; }
    { (exit 1); exit 1; }; }  
3674  fi  fi
3675  TCL_HDR=`echo $TCL_HDR | sed 's,tcl\.h$,,'`  TCL_HDR=`echo $TCL_HDR | sed 's,tcl\.h$,,'`
3676  if test -n "$TCL_HDR" ; then  if test -n "$TCL_HDR" ; then
# Line 8000  fi Line 3683  fi
3683  #  see if the user gave us the location of the Tk8.3  #  see if the user gave us the location of the Tk8.3
3684  #  library and/or header file  #  library and/or header file
3685  #  #
   
3686  # Check whether --with-tk or --without-tk was given.  # Check whether --with-tk or --without-tk was given.
3687  if test "${with_tk+set}" = set; then  if test "${with_tk+set}" = set; then
3688    withval="$with_tk"    withval="$with_tk"
3689      :
3690  else  else
3691    with_tk=yes    with_tk=yes
3692  fi;  fi
3693    
3694    
3695  case "$with_tk" in  case "$with_tk" in
3696      no)      no)
3697      #  User specified --without-tk; this makes no sense,      #  User specified --without-tk; this makes no sense,
3698      #  print a warning and search for it ourselves      #  print a warning and search for it ourselves
3699          { echo "$as_me:$LINENO: WARNING: Bad option '--without-tk'          echo "configure: warning: Bad option '--without-tk'
3700      ASCEND must be compiled with Tk8.0." >&5      ASCEND must be compiled with Tk8.0." 1>&2
 echo "$as_me: WARNING: Bad option '--without-tk'  
     ASCEND must be compiled with Tk8.0." >&2;}  
3701      with_tklib=_searching      with_tklib=_searching
3702      with_tkhdr=_searching      with_tkhdr=_searching
3703          ;;          ;;
# Line 8048  esac Line 3729  esac
3729  if test "X$with_tklib" = X_searching ; then  if test "X$with_tklib" = X_searching ; then
3730      for ac_prog in libtk8.0.a libtk80.a libtk.a libtk8.3.a      for ac_prog in libtk8.0.a libtk80.a libtk.a libtk8.3.a
3731  do  do
3732    # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
3733  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
3734  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3735  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:3736: checking for $ac_word" >&5
3736  if test "${ac_cv_path_TK_LIB+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_path_TK_LIB'+set}'`\" = set"; then
3737    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
3738  else  else
3739    case $TK_LIB in    case "$TK_LIB" in
3740    [\\/]* | ?:[\\/]*)    /*)
3741    ac_cv_path_TK_LIB="$TK_LIB" # Let the user override the test with a path.    ac_cv_path_TK_LIB="$TK_LIB" # Let the user override the test with a path.
3742    ;;    ;;
3743      ?:/*)          
3744      ac_cv_path_TK_LIB="$TK_LIB" # Let the user override the test with a dos path.
3745      ;;
3746    *)    *)
3747    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3748  for as_dir in $asc_tcl_library_dirs    ac_dummy="$asc_tcl_library_dirs"
3749  do    for ac_dir in $ac_dummy; do
3750    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
3751    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
3752    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_path_TK_LIB="$ac_dir/$ac_word"
3753    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
3754      ac_cv_path_TK_LIB="$as_dir/$ac_word$ac_exec_ext"      fi
3755      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
3756      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
3757    ;;    ;;
3758  esac  esac
3759  fi  fi
3760  TK_LIB=$ac_cv_path_TK_LIB  TK_LIB="$ac_cv_path_TK_LIB"
   
3761  if test -n "$TK_LIB"; then  if test -n "$TK_LIB"; then
3762    echo "$as_me:$LINENO: result: $TK_LIB" >&5    echo "$ac_t""$TK_LIB" 1>&6
 echo "${ECHO_T}$TK_LIB" >&6  
3763  else  else
3764    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
3765  fi  fi
3766    
3767    test -n "$TK_LIB" && break  test -n "$TK_LIB" && break
3768  done  done
3769    
3770      if test -z "TK_LIB" ; then      if test -z "TK_LIB" ; then
3771          TK_LIB=_searching          TK_LIB=_searching
3772      fi      fi
3773  else  else
3774      echo "$as_me:$LINENO: result: checking for tk library... $TK_LIB" >&5      echo "$ac_t""checking for tk library... $TK_LIB" 1>&6
 echo "${ECHO_T}checking for tk library... $TK_LIB" >&6  
3775  fi  fi
3776    
3777  #  verify the TK_LIB  #  verify the TK_LIB
3778  #  #
3779  if test ! "X$TK_LIB" = X_searching ; then  if test ! "X$TK_LIB" = X_searching ; then
3780      echo "$as_me:$LINENO: checking whether $TK_LIB is for Tk8.0" >&5      echo $ac_n "checking whether $TK_LIB is for Tk8.0""... $ac_c" 1>&6
3781  echo $ECHO_N "checking whether $TK_LIB is for Tk8.0... $ECHO_C" >&6  echo "configure:3782: checking whether $TK_LIB is for Tk8.0" >&5
3782      asc_libs_orig=$LIBS      asc_libs_orig=$LIBS
3783      LIBS="$TK_LIB $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"      LIBS="$TK_LIB $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
3784      cat >conftest.$ac_ext <<_ACEOF      cat > conftest.$ac_ext <<EOF
3785  /* confdefs.h.  */  #line 3786 "configure"
3786  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
3787    
3788  int  int main() {
 main ()  
 {  
3789  Tk_NameOfFont()  Tk_NameOfFont()
3790    ;  ; return 0; }
3791    return 0;  EOF
3792  }  if { (eval echo configure:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
3793    :    :
3794  else  else
3795    echo "$as_me: failed program was:" >&5    echo "configure: failed program was:" >&5
3796  sed 's/^/| /' conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3797      rm -rf conftest*
3798  TK_LIB=_searching    TK_LIB=_searching
3799  fi  fi
3800  rm -f conftest.err conftest.$ac_objext \  rm -f conftest*;
       conftest$ac_exeext conftest.$ac_ext;  
3801      if test "X$TK_LIB" = X_searching ; then      if test "X$TK_LIB" = X_searching ; then
3802          echo "$as_me:$LINENO: result: no" >&5          echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
3803      else      else
3804          echo "$as_me:$LINENO: result: yes" >&5          echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
3805      fi      fi
3806      LIBS=$asc_libs_orig      LIBS=$asc_libs_orig
3807  fi  fi
# Line 8164  fi Line 3809  fi
3809  #  see if the default LPATH can find the Tk8.0 library  #  see if the default LPATH can find the Tk8.0 library
3810  #  #
3811  if test "X$TK_LIB" = X_searching ; then  if test "X$TK_LIB" = X_searching ; then
3812      echo "$as_me:$LINENO: result: checking for a dynamically loaded Tk8.0 library" >&5      echo "$ac_t""checking for a dynamically loaded Tk8.0 library" 1>&6
3813  echo "${ECHO_T}checking for a dynamically loaded Tk8.0 library" >&6      echo $ac_n "checking for Tk_NameOfFont in -ltk8.0""... $ac_c" 1>&6
3814      echo "$as_me:$LINENO: checking for Tk_NameOfFont in -ltk8.0" >&5  echo "configure:3815: checking for Tk_NameOfFont in -ltk8.0" >&5
3815  echo $ECHO_N "checking for Tk_NameOfFont in -ltk8.0... $ECHO_C" >&6  ac_lib_var=`echo tk8.0'_'Tk_NameOfFont | sed 'y%./+-%__p_%'`
3816  if test "${ac_cv_lib_tk8_0_Tk_NameOfFont+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3817    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
3818  else  else
3819    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3820  LIBS="-ltk8.0 $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"  LIBS="-ltk8.0 $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
3821  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3822  /* confdefs.h.  */  #line 3823 "configure"
3823  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
3824  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
3825  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3826     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3827  char Tk_NameOfFont ();  char Tk_NameOfFont();
3828  int  
3829  main ()  int main() {
3830  {  Tk_NameOfFont()
3831  Tk_NameOfFont ();  ; return 0; }
3832    ;  EOF
3833    return 0;  if { (eval echo configure:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3834  }    rm -rf conftest*
3835  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
3836  rm -f conftest.$ac_objext conftest$ac_exeext  else
3837  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
3838    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
3839    ac_status=$?    rm -rf conftest*
3840    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
3841    rm -f conftest.er1  fi
3842    cat conftest.err >&5  rm -f conftest*
3843    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
3844    (exit $ac_status); } &&  
3845       { ac_try='test -z "$ac_c_werror_flag"  fi
3846               || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3847    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
3848    (eval $ac_try) 2>&5    TK_LIB="-ltk8.0"
3849    ac_status=$?  else
3850    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""no" 1>&6
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_tk8_0_Tk_NameOfFont=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_tk8_0_Tk_NameOfFont=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_tk8_0_Tk_NameOfFont" >&5  
 echo "${ECHO_T}$ac_cv_lib_tk8_0_Tk_NameOfFont" >&6  
 if test $ac_cv_lib_tk8_0_Tk_NameOfFont = yes; then  
   TK_LIB="-ltk8.0"  
3851  fi  fi
3852    
3853  fi  fi
3854  if test "X$TK_LIB" = X_searching ; then  if test "X$TK_LIB" = X_searching ; then
3855      echo "$as_me:$LINENO: checking for Tk_NameOfFont in -ltk80" >&5      echo $ac_n "checking for Tk_NameOfFont in -ltk80""... $ac_c" 1>&6
3856  echo $ECHO_N "checking for Tk_NameOfFont in -ltk80... $ECHO_C" >&6  echo "configure:3857: checking for Tk_NameOfFont in -ltk80" >&5
3857  if test "${ac_cv_lib_tk80_Tk_NameOfFont+set}" = set; then  ac_lib_var=`echo tk80'_'Tk_NameOfFont | sed 'y%./+-%__p_%'`
3858    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3859      echo $ac_n "(cached) $ac_c" 1>&6
3860  else  else
3861    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3862  LIBS="-ltk80 $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"  LIBS="-ltk80 $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
3863  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3864  /* confdefs.h.  */  #line 3865 "configure"
3865  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
3866  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
3867  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3868     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3869  char Tk_NameOfFont ();  char Tk_NameOfFont();
3870  int  
3871  main ()  int main() {
3872  {  Tk_NameOfFont()
3873  Tk_NameOfFont ();  ; return 0; }
3874    ;  EOF
3875    return 0;  if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3876  }    rm -rf conftest*
3877  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
3878  rm -f conftest.$ac_objext conftest$ac_exeext  else
3879  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
3880    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
3881    ac_status=$?    rm -rf conftest*
3882    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
3883    rm -f conftest.er1  fi
3884    cat conftest.err >&5  rm -f conftest*
3885    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
3886    (exit $ac_status); } &&  
3887       { ac_try='test -z "$ac_c_werror_flag"  fi
3888               || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3889    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
3890    (eval $ac_try) 2>&5    TK_LIB="-ltk80"
3891    ac_status=$?  else
3892    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""no" 1>&6
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_tk80_Tk_NameOfFont=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_tk80_Tk_NameOfFont=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_tk80_Tk_NameOfFont" >&5  
 echo "${ECHO_T}$ac_cv_lib_tk80_Tk_NameOfFont" >&6  
 if test $ac_cv_lib_tk80_Tk_NameOfFont = yes; then  
   TK_LIB="-ltk80"  
3893  fi  fi
3894    
3895  fi  fi
3896  if test "X$TK_LIB" = X_searching ; then  if test "X$TK_LIB" = X_searching ; then
3897      echo "$as_me:$LINENO: checking for Tk_NameOfFont in -ltk" >&5      echo $ac_n "checking for Tk_NameOfFont in -ltk""... $ac_c" 1>&6
3898  echo $ECHO_N "checking for Tk_NameOfFont in -ltk... $ECHO_C" >&6  echo "configure:3899: checking for Tk_NameOfFont in -ltk" >&5
3899  if test "${ac_cv_lib_tk_Tk_NameOfFont+set}" = set; then  ac_lib_var=`echo tk'_'Tk_NameOfFont | sed 'y%./+-%__p_%'`
3900    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3901      echo $ac_n "(cached) $ac_c" 1>&6
3902  else  else
3903    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
3904  LIBS="-ltk $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"  LIBS="-ltk $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
3905  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
3906  /* confdefs.h.  */  #line 3907 "configure"
3907  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
3908  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus  
 extern "C"  
 #endif  
3909  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3910     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
3911  char Tk_NameOfFont ();  char Tk_NameOfFont();
3912  int  
3913  main ()  int main() {
3914  {  Tk_NameOfFont()
3915  Tk_NameOfFont ();  ; return 0; }
3916    ;  EOF
3917    return 0;  if { (eval echo configure:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3918  }    rm -rf conftest*
3919  _ACEOF    eval "ac_cv_lib_$ac_lib_var=yes"
3920  rm -f conftest.$ac_objext conftest$ac_exeext  else
3921  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    echo "configure: failed program was:" >&5
3922    (eval $ac_link) 2>conftest.er1    cat conftest.$ac_ext >&5
3923    ac_status=$?    rm -rf conftest*
3924    grep -v '^ *+' conftest.er1 >conftest.err    eval "ac_cv_lib_$ac_lib_var=no"
3925    rm -f conftest.er1  fi
3926    cat conftest.err >&5  rm -f conftest*
3927    echo "$as_me:$LINENO: \$? = $ac_status" >&5  LIBS="$ac_save_LIBS"
3928    (exit $ac_status); } &&  
3929       { ac_try='test -z "$ac_c_werror_flag"  fi
3930               || test ! -s conftest.err'  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3931    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    echo "$ac_t""yes" 1>&6
3932    (eval $ac_try) 2>&5    TK_LIB="-ltk"
3933    ac_status=$?  else
3934    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$ac_t""no" 1>&6
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_tk_Tk_NameOfFont=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_tk_Tk_NameOfFont=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_tk_Tk_NameOfFont" >&5  
 echo "${ECHO_T}$ac_cv_lib_tk_Tk_NameOfFont" >&6  
 if test $ac_cv_lib_tk_Tk_NameOfFont = yes; then  
   TK_LIB="-ltk"  
3935  fi  fi
3936    
3937  fi  fi
# Line 8379  fi Line 3939  fi
3939  #  give up searching for the Tk8.0 library  #  give up searching for the Tk8.0 library
3940  #  #
3941  if test "X$TK_LIB" = X_searching ; then  if test "X$TK_LIB" = X_searching ; then
3942      { { echo "$as_me:$LINENO: error: Cannot find a compatiable Tk library.      { echo "configure: error: Cannot find a compatiable Tk library.
     You must build and install Tk version 8.0 or newer before you  
     can build ASCEND.  If you have installed the correct version  
     of Tk, run configure again with the argument:  
         --with-tk=LIBRARY,HEADER  
     where LIBRARY and HEADER are the full paths to the Tk8.0  
     library file and header file, respectively." >&5  
 echo "$as_me: error: Cannot find a compatiable Tk library.  
3943      You must build and install Tk version 8.0 or newer before you      You must build and install Tk version 8.0 or newer before you
3944      can build ASCEND.  If you have installed the correct version      can build ASCEND.  If you have installed the correct version
3945      of Tk, run configure again with the argument:      of Tk, run configure again with the argument:
3946          --with-tk=LIBRARY,HEADER          --with-tk=LIBRARY,HEADER
3947      where LIBRARY and HEADER are the full paths to the Tk8.0      where LIBRARY and HEADER are the full paths to the Tk8.0
3948      library file and header file, respectively." >&2;}      library file and header file, respectively." 1>&2; exit 1; }
    { (exit 1); exit 1; }; }  
3949  fi  fi
3950    
3951  #  see if the user gave us the location of the Tk8.0 header file  #  see if the user gave us the location of the Tk8.0 header file
3952  #  #
3953  if test ! "X$with_tkhdr" = X_searching ; then  if test ! "X$with_tkhdr" = X_searching ; then
3954      if test ! -f "$TK_HDR" ; then      if test ! -f "$TK_HDR" ; then
3955      { echo "$as_me:$LINENO: WARNING: user specified Tk header file, $TK_HDR, does not exist" >&5      echo "configure: warning: user specified Tk header file, $TK_HDR, does not exist" 1>&2
 echo "$as_me: WARNING: user specified Tk header file, $TK_HDR, does not exist" >&2;}  
3956          with_tkhdr=_searching          with_tkhdr=_searching
3957          TK_HDR=''          TK_HDR=''
3958      fi      fi
# Line 8409  fi Line 3960  fi
3960  if test "X$with_tkhdr" = X_searching ; then  if test "X$with_tkhdr" = X_searching ; then
3961      # Extract the first word of "tk.h", so it can be a program name with args.      # Extract the first word of "tk.h", so it can be a program name with args.
3962  set dummy tk.h; ac_word=$2  set dummy tk.h; ac_word=$2
3963  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3964  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:3965: checking for $ac_word" >&5
3965  if test "${ac_cv_path_TK_HDR+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_path_TK_HDR'+set}'`\" = set"; then
3966    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
3967  else  else
3968    case $TK_HDR in    case "$TK_HDR" in
3969    [\\/]* | ?:[\\/]*)    /*)
3970    ac_cv_path_TK_HDR="$TK_HDR" # Let the user override the test with a path.    ac_cv_path_TK_HDR="$TK_HDR" # Let the user override the test with a path.
3971    ;;    ;;
3972      ?:/*)          
3973      ac_cv_path_TK_HDR="$TK_HDR" # Let the user override the test with a dos path.
3974      ;;
3975    *)    *)
3976    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3977  for as_dir in $asc_tcl_include_dirs    ac_dummy="$asc_tcl_include_dirs"
3978  do    for ac_dir in $ac_dummy; do
3979    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
3980    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
3981    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_path_TK_HDR="$ac_dir/$ac_word"
3982    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
3983      ac_cv_path_TK_HDR="$as_dir/$ac_word$ac_exec_ext"      fi
3984      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
3985      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
3986    ;;    ;;
3987  esac  esac
3988  fi  fi
3989  TK_HDR=$ac_cv_path_TK_HDR  TK_HDR="$ac_cv_path_TK_HDR"
   
3990  if test -n "$TK_HDR"; then  if test -n "$TK_HDR"; then
3991    echo "$as_me:$LINENO: result: $TK_HDR" >&5    echo "$ac_t""$TK_HDR" 1>&6
 echo "${ECHO_T}$TK_HDR" >&6  
3992  else  else
3993    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
3994  fi  fi
3995    
3996      if test -z "$TK_HDR" ; then      if test -z "$TK_HDR" ; then
3997          cat >conftest.$ac_ext <<_ACEOF          cat > conftest.$ac_ext <<EOF
3998  /* confdefs.h.  */  #line 3999 "configure"
3999  _ACEOF  #include "confdefs.h"
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
4000  #include <tk.h>  #include <tk.h>
4001    EOF
 _ACEOF  
4002  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4003    $EGREP "TK_MAJOR_VERSION.*8" >/dev/null 2>&1; then    egrep "TK_MAJOR_VERSION.*8" >/dev/null 2>&1; then
4004      rm -rf conftest*
4005    TK_HDR='tk.h'    TK_HDR='tk.h'
4006  fi  fi
4007  rm -f conftest*  rm -f conftest*
4008    
4009      fi      fi
4010  else  else
4011      echo "$as_me:$LINENO: result: checking for tk header... $TK_HDR" >&5      echo "$ac_t""checking for tk header... $TK_HDR" 1>&6
 echo "${ECHO_T}checking for tk header... $TK_HDR" >&6  
4012  fi  fi
4013  if test -f "$TK_HDR" ; then  if test -f "$TK_HDR" ; then
4014      echo "$as_me:$LINENO: checking whether $TK_HDR is for version 8" >&5      echo $ac_n "checking whether $TK_HDR is for version 8""... $ac_c" 1>&6
4015  echo $ECHO_N "checking whether $TK_HDR is for version 8... $ECHO_C" >&6  echo "configure:4016: checking whether $TK_HDR is for version 8" >&5
4016      echo 'grep TK_MAJOR_VERSION "$TK_HDR" 2>&5' 1>&5      echo 'grep TK_MAJOR_VERSION "$TK_HDR" 2>&5' 1>&5
4017      grep_tk_h=`grep TK_MAJOR_VERSION "$TK_HDR" 2>&5`      grep_tk_h=`grep TK_MAJOR_VERSION "$TK_HDR" 2>&5`
4018      echo $grep_tk_h 1>&5      echo $grep_tk_h 1>&5
4019      case "$grep_tk_h" in      case "$grep_tk_h" in
4020          *8)          *8)
4021          echo "$as_me:$LINENO: result: yes" >&5          echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
4022              ;;              ;;
4023          *)          *)
4024          echo "$as_me:$LINENO: result: no" >&5          echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
4025              TK_HDR=              TK_HDR=
4026              ;;              ;;
4027      esac      esac
4028  fi  fi
4029  if test -z "$TK_HDR" ; then  if test -z "$TK_HDR" ; then
4030      { { echo "$as_me:$LINENO: error: Cannot find a compatiable Tk header file.      { echo "configure: error: Cannot find a compatiable Tk header file.
     You must build and install Tk version 8.0 or newer before you  
     can build ASCEND.  If you have installed the correct version  
     of Tk, run configure again with the argument:  
         --with-tk=LIBRARY,HEADER  
     where LIBRARY and HEADER are the full paths to the Tk8.0  
     library file and header file, respectively." >&5  
 echo "$as_me: error: Cannot find a compatiable Tk header file.  
4031      You must build and install Tk version 8.0 or newer before you      You must build and install Tk version 8.0 or newer before you
4032      can build ASCEND.  If you have installed the correct version      can build ASCEND.  If you have installed the correct version
4033      of Tk, run configure again with the argument:      of Tk, run configure again with the argument:
4034          --with-tk=LIBRARY,HEADER          --with-tk=LIBRARY,HEADER
4035      where LIBRARY and HEADER are the full paths to the Tk8.0      where LIBRARY and HEADER are the full paths to the Tk8.0
4036      library file and header file, respectively." >&2;}      library file and header file, respectively." 1>&2; exit 1; }
    { (exit 1); exit 1; }; }  
4037  fi  fi
4038  TK_HDR=`echo $TK_HDR | sed 's,tk\.h$,,'`  TK_HDR=`echo $TK_HDR | sed 's,tk\.h$,,'`
4039  if test -n "$TK_HDR" ; then  if test -n "$TK_HDR" ; then
# Line 8511  if test -n "$TK_HDR" ; then Line 4044  if test -n "$TK_HDR" ; then
4044  fi  fi
4045    
4046    
   
4047  # Check whether --with-tktable or --without-tktable was given.  # Check whether --with-tktable or --without-tktable was given.
4048  if test "${with_tktable+set}" = set; then  if test "${with_tktable+set}" = set; then
4049    withval="$with_tktable"    withval="$with_tktable"
4050      :
4051    fi
4052    
 fi;  
4053  case "$with_tktable" in  case "$with_tktable" in
4054      yes|no|"")      yes|no|"")
4055          # search for the table          # search for the table
4056          # Extract the first word of "libTktable.a", so it can be a program name with args.          # Extract the first word of "libTktable.a", so it can be a program name with args.
4057  set dummy libTktable.a; ac_word=$2  set dummy libTktable.a; ac_word=$2
4058  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4059  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:4060: checking for $ac_word" >&5
4060  if test "${ac_cv_path_TKTABLE_LIB+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_path_TKTABLE_LIB'+set}'`\" = set"; then
4061    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
4062  else  else
4063    case $TKTABLE_LIB in    case "$TKTABLE_LIB" in
4064    [\\/]* | ?:[\\/]*)    /*)
4065    ac_cv_path_TKTABLE_LIB="$TKTABLE_LIB" # Let the user override the test with a path.    ac_cv_path_TKTABLE_LIB="$TKTABLE_LIB" # Let the user override the test with a path.
4066    ;;    ;;
4067      ?:/*)          
4068      ac_cv_path_TKTABLE_LIB="$TKTABLE_LIB" # Let the user override the test with a dos path.
4069      ;;
4070    *)    *)
4071    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4072  for as_dir in $asc_tk_table_dirs    ac_dummy="$asc_tk_table_dirs"
4073  do    for ac_dir in $ac_dummy; do
4074    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
4075    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
4076    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_path_TKTABLE_LIB="$ac_dir/$ac_word"
4077    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
4078      ac_cv_path_TKTABLE_LIB="$as_dir/$ac_word$ac_exec_ext"      fi
4079      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
4080      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
4081    ;;    ;;
4082  esac  esac
4083  fi  fi
4084  TKTABLE_LIB=$ac_cv_path_TKTABLE_LIB  TKTABLE_LIB="$ac_cv_path_TKTABLE_LIB"
   
4085  if test -n "$TKTABLE_LIB"; then  if test -n "$TKTABLE_LIB"; then
4086    echo "$as_me:$LINENO: result: $TKTABLE_LIB" >&5    echo "$ac_t""$TKTABLE_LIB" 1>&6
 echo "${ECHO_T}$TKTABLE_LIB" >&6  
4087  else  else
4088    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
4089  fi  fi
4090    
4091          ;;          ;;
# Line 8568  esac Line 4097  esac
4097  if test -n "$TKTABLE_LIB" ; then  if test -n "$TKTABLE_LIB" ; then
4098      HAVE_TKTABLE='-DSTATIC_TKTABLE'      HAVE_TKTABLE='-DSTATIC_TKTABLE'
4099  else  else
4100      echo "$as_me:$LINENO: result: Assuming Tktable will be dynamically linked into ASCEND" >&5      echo "$ac_t""Assuming Tktable will be dynamically linked into ASCEND" 1>&6
 echo "${ECHO_T}Assuming Tktable will be dynamically linked into ASCEND" >&6  
4101  fi  fi
4102    
   
4103  # Check whether --with-wish or --without-wish was given.  # Check whether --with-wish or --without-wish was given.
4104  if test "${with_wish+set}" = set; then  if test "${with_wish+set}" = set; then
4105    withval="$with_wish"    withval="$with_wish"
4106      :
4107  else  else
4108    with_wish=no    with_wish=no
4109  fi;  fi
4110    
4111  case "$with_wish" in  case "$with_wish" in
4112      yes|no|"")      yes|no|"")
4113          echo "$as_me:$LINENO: result: --with-wish not specified.          echo "$ac_t""--with-wish not specified.
4114          Setting env vars TCL_LIBRARY, TK_LIBRARY may be needed to run." >&5          Setting env vars TCL_LIBRARY, TK_LIBRARY may be needed to run." 1>&6
 echo "${ECHO_T}--with-wish not specified.  
         Setting env vars TCL_LIBRARY, TK_LIBRARY may be needed to run." >&6  
4115          ;;          ;;
4116      *)      *)
4117          echo "$as_me:$LINENO: checking wish for tcl_library,tklibrary" >&5          echo $ac_n "checking wish for tcl_library,tk_library""... $ac_c" 1>&6
4118  echo $ECHO_N "checking wish for tcl_library,tklibrary... $ECHO_C" >&6  echo "configure:4119: checking wish for tcl_library,tk_library" >&5
4119          ASC_TK_LIBRARY=`config/wishvar tk_library $with_wish`          
4120          ASC_TCL_LIBRARY=`config/wishvar tcl_library $with_wish`  # asc_wishvar( tcl_library,  $with_wish)
4121      echo "$as_me:$LINENO: result:  $ASC_TCL_LIBRARY , $ASC_TK_LIBRARY" >&5  # generate the executable to extract a variable
4122  echo "${ECHO_T} $ASC_TCL_LIBRARY , $ASC_TK_LIBRARY" >&6  # from the tickle shell
4123    cat << EOF > wishvar.tmp.tcl
4124    #! $with_wish
4125    # this is a generated file and can be deleted any time.
4126    if {\$argc != 1} {
4127            puts stderr "\$argv0 needs variable name"
4128            exit 1
4129    }
4130    set var [lindex \$argv 0]
4131    puts [set \$var]
4132    exit 0
4133    EOF
4134    
4135    #call it
4136    # usage wishvar varname shell-to-test-in
4137    ASC_TK_LIBRARY=`$with_wish wishvar.tmp.tcl -- tk_library`
4138    
4139    
4140            
4141    # asc_wishvar( tcl_library,  $with_wish)
4142    # generate the executable to extract a variable
4143    # from the tickle shell
4144    cat << EOF > wishvar.tmp.tcl
4145    #! $with_wish
4146    # this is a generated file and can be deleted any time.
4147    if {\$argc != 1} {
4148            puts stderr "\$argv0 needs variable name"
4149            exit 1
4150    }
4151    set var [lindex \$argv 0]
4152    puts [set \$var]
4153    exit 0
4154    EOF
4155    
4156    #call it
4157    # usage wishvar varname shell-to-test-in
4158    ASC_TCL_LIBRARY=`$with_wish wishvar.tmp.tcl -- tcl_library`
4159    
4160    
4161        echo "$ac_t"" $ASC_TCL_LIBRARY , $ASC_TK_LIBRARY" 1>&6
4162          ;;          ;;
4163  esac  esac
4164    
# Line 8703  asc_f77_support_dirs=" Line 4268  asc_f77_support_dirs="
4268      /afs/cs/project/ascend/depot/build/obj/conopt      /afs/cs/project/ascend/depot/build/obj/conopt
4269  "  "
4270  #  #
   
4271  # Check whether --with-fortran or --without-fortran was given.  # Check whether --with-fortran or --without-fortran was given.
4272  if test "${with_fortran+set}" = set; then  if test "${with_fortran+set}" = set; then
4273    withval="$with_fortran"    withval="$with_fortran"
4274      :
4275  else  else
4276    with_fortran=yes    with_fortran=yes
4277  fi;  fi
4278    
4279  case "$with_fortran" in  case "$with_fortran" in
4280      no)      no)
4281      #  The user disabled all fortran using      #  The user disabled all fortran using
# Line 8756  if test "X$with_f77" = X_searching ; the Line 4321  if test "X$with_f77" = X_searching ; the
4321      #  find it and disable all fortran.      #  find it and disable all fortran.
4322      for ac_prog in f77 xlf g77      for ac_prog in f77 xlf g77
4323  do  do
4324    # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
4325  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
4326  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4327  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:4328: checking for $ac_word" >&5
4328  if test "${ac_cv_path_F77+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_path_F77'+set}'`\" = set"; then
4329    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
4330  else  else
4331    case $F77 in    case "$F77" in
4332    [\\/]* | ?:[\\/]*)    /*)
4333    ac_cv_path_F77="$F77" # Let the user override the test with a path.    ac_cv_path_F77="$F77" # Let the user override the test with a path.
4334    ;;    ;;
4335      ?:/*)          
4336      ac_cv_path_F77="$F77" # Let the user override the test with a dos path.
4337      ;;
4338    *)    *)
4339    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4340  for as_dir in $asc_f77_prog_dirs    ac_dummy="$asc_f77_prog_dirs"
4341  do    for ac_dir in $ac_dummy; do
4342    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
4343    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
4344    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_path_F77="$ac_dir/$ac_word"
4345    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
4346      ac_cv_path_F77="$as_dir/$ac_word$ac_exec_ext"      fi
4347      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
4348      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
4349    ;;    ;;
4350  esac  esac
4351  fi  fi
4352  F77=$ac_cv_path_F77  F77="$ac_cv_path_F77"
   
4353  if test -n "$F77"; then  if test -n "$F77"; then
4354    echo "$as_me:$LINENO: result: $F77" >&5    echo "$ac_t""$F77" 1>&6
 echo "${ECHO_T}$F77" >&6  
4355  else  else
4356    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
4357  fi  fi
4358    
4359    test -n "$F77" && break  test -n "$F77" && break
4360  done  done
4361    
4362      if test -z "$F77" ; then      if test -z "$F77" ; then
4363          with_fortran=no          with_fortran=no
4364          with_f77libs=no          with_f77libs=no
4365          { echo "$as_me:$LINENO: WARNING: Cannot find your Fortran compiler.  Building ASCEND          echo "configure: warning: Cannot find your Fortran compiler.  Building ASCEND
     without integration, MINOS, and CONOPT support.  To bulid ASCEND with  
     Fortran support, run configure with the option  
         --with-fortran=F77,F77LIBS  
     where F77 is the full path to your Fortran compiler and F77LIBS are  
     its related libraries" >&5  
 echo "$as_me: WARNING: Cannot find your Fortran compiler.  Building ASCEND  
4366      without integration, MINOS, and CONOPT support.  To bulid ASCEND with      without integration, MINOS, and CONOPT support.  To bulid ASCEND with
4367      Fortran support, run configure with the option      Fortran support, run configure with the option
4368          --with-fortran=F77,F77LIBS          --with-fortran=F77,F77LIBS
4369      where F77 is the full path to your Fortran compiler and F77LIBS are      where F77 is the full path to your Fortran compiler and F77LIBS are
4370      its related libraries" >&2;}      its related libraries" 1>&2
4371      fi      fi
4372  fi  fi
4373    
4374  if test "X$with_f77libs" = X_searching ; then  if test "X$with_f77libs" = X_searching ; then
4375      #  We found a compiler, now search for the fortran libraries      #  We found a compiler, now search for the fortran libraries
4376      #  based on the system type.      #  based on the system type.
4377      echo "$as_me:$LINENO: result: checking for fortran libraries based on system type" >&5      echo "$ac_t""checking for fortran libraries based on system type" 1>&6
 echo "${ECHO_T}checking for fortran libraries based on system type" >&6  
4378      case "$host" in      case "$host" in
4379          alpha-dec-osf*)          alpha-dec-osf*)
4380              echo "$as_me:$LINENO: checking for for_lle in -lfor" >&5              echo $ac_n "checking for for_lle in -lfor""... $ac_c" 1>&6
4381  echo $ECHO_N "checking for for_lle in -lfor... $ECHO_C" >&6  echo "configure:4382: checking for for_lle in -lfor" >&5
4382  if test "${ac_cv_lib_for_for_lle+set}" = set; then  ac_lib_var=`echo for'_'for_lle | sed 'y%./+-%__p_%'`
4383    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4384      echo $ac_n "(cached) $ac_c" 1>&6
4385  else  else
4386    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4387  LIBS="-lfor $F77LIBS $LIBS"  LIBS="-lfor $F77LIBS $LIBS"
4388  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4389  /* confdefs.h.  */  #line 4390 "configure"
4390  _ACEOF  #include "confdefs.h"
4391  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
4392  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
4393  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
4394    char for_lle();
4395    
4396    int main() {
4397    for_lle()
4398    ; return 0; }
4399    EOF
4400    if { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4401      rm -rf conftest*
4402      eval "ac_cv_lib_$ac_lib_var=yes"
4403    else
4404      echo "configure: failed program was:" >&5
4405      cat conftest.$ac_ext >&5
4406      rm -rf conftest*
4407      eval "ac_cv_lib_$ac_lib_var=no"
4408    fi
4409    rm -f conftest*
4410    LIBS="$ac_save_LIBS"
4411    
4412  /* Override any gcc2 internal prototype to avoid an error.  */  fi
4413  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4414  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char for_lle ();  
 int  
 main ()  
 {  
 for_lle ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_for_for_lle=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_for_for_lle=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_for_for_lle" >&5  
 echo "${ECHO_T}$ac_cv_lib_for_for_lle" >&6  
 if test $ac_cv_lib_for_for_lle = yes; then  
4415    F77LIBS="$F77LIBS -lfor"    F77LIBS="$F77LIBS -lfor"
4416    else
4417      echo "$ac_t""no" 1>&6
4418  fi  fi
4419    
4420              echo "$as_me:$LINENO: checking for _OtsFill in -lots" >&5              echo $ac_n "checking for _OtsFill in -lots""... $ac_c" 1>&6
4421  echo $ECHO_N "checking for _OtsFill in -lots... $ECHO_C" >&6  echo "configure:4422: checking for _OtsFill in -lots" >&5
4422  if test "${ac_cv_lib_ots__OtsFill+set}" = set; then  ac_lib_var=`echo ots'_'_OtsFill | sed 'y%./+-%__p_%'`
4423    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4424      echo $ac_n "(cached) $ac_c" 1>&6
4425  else  else
4426    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4427  LIBS="-lots $F77LIBS $LIBS"  LIBS="-lots $F77LIBS $LIBS"
4428  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4429  /* confdefs.h.  */  #line 4430 "configure"
4430  _ACEOF  #include "confdefs.h"
4431  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
4432  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
4433  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
4434    char _OtsFill();
4435    
4436    int main() {
4437    _OtsFill()
4438    ; return 0; }
4439    EOF
4440    if { (eval echo configure:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4441      rm -rf conftest*
4442      eval "ac_cv_lib_$ac_lib_var=yes"
4443    else
4444      echo "configure: failed program was:" >&5
4445      cat conftest.$ac_ext >&5
4446      rm -rf conftest*
4447      eval "ac_cv_lib_$ac_lib_var=no"
4448    fi
4449    rm -f conftest*
4450    LIBS="$ac_save_LIBS"
4451    
4452  /* Override any gcc2 internal prototype to avoid an error.  */  fi
4453  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4454  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char _OtsFill ();  
 int  
 main ()  
 {  
 _OtsFill ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_ots__OtsFill=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_ots__OtsFill=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_ots__OtsFill" >&5  
 echo "${ECHO_T}$ac_cv_lib_ots__OtsFill" >&6  
 if test $ac_cv_lib_ots__OtsFill = yes; then  
4455    F77LIBS="$F77LIBS -lots"    F77LIBS="$F77LIBS -lots"
4456    else
4457      echo "$ac_t""no" 1>&6
4458  fi  fi
4459    
4460              echo "$as_me:$LINENO: checking for etime_ in -lUfor" >&5              echo $ac_n "checking for etime_ in -lUfor""... $ac_c" 1>&6
4461  echo $ECHO_N "checking for etime_ in -lUfor... $ECHO_C" >&6  echo "configure:4462: checking for etime_ in -lUfor" >&5
4462  if test "${ac_cv_lib_Ufor_etime_+set}" = set; then  ac_lib_var=`echo Ufor'_'etime_ | sed 'y%./+-%__p_%'`
4463    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4464      echo $ac_n "(cached) $ac_c" 1>&6
4465  else  else
4466    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4467  LIBS="-lUfor $F77LIBS $LIBS"  LIBS="-lUfor $F77LIBS $LIBS"
4468  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4469  /* confdefs.h.  */  #line 4470 "configure"
4470  _ACEOF  #include "confdefs.h"
4471  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
4472  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
4473  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
4474    char etime_();
4475    
4476    int main() {
4477    etime_()
4478    ; return 0; }
4479    EOF
4480    if { (eval echo configure:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4481      rm -rf conftest*
4482      eval "ac_cv_lib_$ac_lib_var=yes"
4483    else
4484      echo "configure: failed program was:" >&5
4485      cat conftest.$ac_ext >&5
4486      rm -rf conftest*
4487      eval "ac_cv_lib_$ac_lib_var=no"
4488    fi
4489    rm -f conftest*
4490    LIBS="$ac_save_LIBS"
4491    
4492  /* Override any gcc2 internal prototype to avoid an error.  */  fi
4493  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4494  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char etime_ ();  
 int  
 main ()  
 {  
 etime_ ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_Ufor_etime_=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_Ufor_etime_=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_Ufor_etime_" >&5  
 echo "${ECHO_T}$ac_cv_lib_Ufor_etime_" >&6  
 if test $ac_cv_lib_Ufor_etime_ = yes; then  
4495    F77LIBS="$F77LIBS -lUfor"    F77LIBS="$F77LIBS -lUfor"
4496    else
4497      echo "$ac_t""no" 1>&6
4498  fi  fi
4499    
4500              ;;              ;;
4501          mips-dec-ultrix*)          mips-dec-ultrix*)
4502              echo "$as_me:$LINENO: checking for for_lle in -lfor" >&5              echo $ac_n "checking for for_lle in -lfor""... $ac_c" 1>&6
4503  echo $ECHO_N "checking for for_lle in -lfor... $ECHO_C" >&6  echo "configure:4504: checking for for_lle in -lfor" >&5
4504  if test "${ac_cv_lib_for_for_lle+set}" = set; then  ac_lib_var=`echo for'_'for_lle | sed 'y%./+-%__p_%'`
4505    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4506      echo $ac_n "(cached) $ac_c" 1>&6
4507  else  else
4508    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4509  LIBS="-lfor $F77LIBS $LIBS"  LIBS="-lfor $F77LIBS $LIBS"
4510  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4511  /* confdefs.h.  */  #line 4512 "configure"
4512  _ACEOF  #include "confdefs.h"
4513  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
4514  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
4515  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
4516    char for_lle();
4517    
4518    int main() {
4519    for_lle()
4520    ; return 0; }
4521    EOF
4522    if { (eval echo configure:4523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4523      rm -rf conftest*
4524      eval "ac_cv_lib_$ac_lib_var=yes"
4525    else
4526      echo "configure: failed program was:" >&5
4527      cat conftest.$ac_ext >&5
4528      rm -rf conftest*
4529      eval "ac_cv_lib_$ac_lib_var=no"
4530    fi
4531    rm -f conftest*
4532    LIBS="$ac_save_LIBS"
4533    
4534  /* Override any gcc2 internal prototype to avoid an error.  */  fi
4535  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4536  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char for_lle ();  
 int  
 main ()  
 {  
 for_lle ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_for_for_lle=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_for_for_lle=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_for_for_lle" >&5  
 echo "${ECHO_T}$ac_cv_lib_for_for_lle" >&6  
 if test $ac_cv_lib_for_for_lle = yes; then  
4537    F77LIBS="$F77LIBS -lfor"    F77LIBS="$F77LIBS -lfor"
4538    else
4539      echo "$ac_t""no" 1>&6
4540  fi  fi
4541    
4542              ;;              ;;
4543          hppa1.1-hp-hpux*)          hppa1.1-hp-hpux*)
4544              echo "$as_me:$LINENO: checking for FTN_QATAN in -lcl" >&5              echo $ac_n "checking for FTN_QATAN in -lcl""... $ac_c" 1>&6
4545  echo $ECHO_N "checking for FTN_QATAN in -lcl... $ECHO_C" >&6  echo "configure:4546: checking for FTN_QATAN in -lcl" >&5
4546  if test "${ac_cv_lib_cl_FTN_QATAN+set}" = set; then  ac_lib_var=`echo cl'_'FTN_QATAN | sed 'y%./+-%__p_%'`
4547    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4548      echo $ac_n "(cached) $ac_c" 1>&6
4549  else  else
4550    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4551  LIBS="-lcl $F77LIBS $LIBS"  LIBS="-lcl $F77LIBS $LIBS"
4552  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4553  /* confdefs.h.  */  #line 4554 "configure"
4554  _ACEOF  #include "confdefs.h"
4555  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
4556  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
4557  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
4558    char FTN_QATAN();
4559    
4560    int main() {
4561    FTN_QATAN()
4562    ; return 0; }
4563    EOF
4564    if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4565      rm -rf conftest*
4566      eval "ac_cv_lib_$ac_lib_var=yes"
4567    else
4568      echo "configure: failed program was:" >&5
4569      cat conftest.$ac_ext >&5
4570      rm -rf conftest*
4571      eval "ac_cv_lib_$ac_lib_var=no"
4572    fi
4573    rm -f conftest*
4574    LIBS="$ac_save_LIBS"
4575    
4576  /* Override any gcc2 internal prototype to avoid an error.  */  fi
4577  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4578  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char FTN_QATAN ();  
 int  
 main ()  
 {  
 FTN_QATAN ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_cl_FTN_QATAN=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_cl_FTN_QATAN=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_cl_FTN_QATAN" >&5  
 echo "${ECHO_T}$ac_cv_lib_cl_FTN_QATAN" >&6  
 if test $ac_cv_lib_cl_FTN_QATAN = yes; then  
4579    F77LIBS="$F77LIBS -lcl"    F77LIBS="$F77LIBS -lcl"
4580    else
4581      echo "$ac_t""no" 1>&6
4582  fi  fi
4583    
4584              ;;              ;;
# Line 9172  fi Line 4586  fi
4586              # need to add -lc before -lxlf on AIX to              # need to add -lc before -lxlf on AIX to
4587              # avoid getting the wrong getenv              # avoid getting the wrong getenv
4588              F77LIBS="-lc $F77LIBS"              F77LIBS="-lc $F77LIBS"
4589              echo "$as_me:$LINENO: checking for _xldabs in -lxlf" >&5              echo $ac_n "checking for _xldabs in -lxlf""... $ac_c" 1>&6
4590  echo $ECHO_N "checking for _xldabs in -lxlf... $ECHO_C" >&6  echo "configure:4591: checking for _xldabs in -lxlf" >&5
4591  if test "${ac_cv_lib_xlf__xldabs+set}" = set; then  ac_lib_var=`echo xlf'_'_xldabs | sed 'y%./+-%__p_%'`
4592    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4593      echo $ac_n "(cached) $ac_c" 1>&6
4594  else  else
4595    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4596  LIBS="-lxlf $F77LIBS $LIBS"  LIBS="-lxlf $F77LIBS $LIBS"
4597  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4598  /* confdefs.h.  */  #line 4599 "configure"
4599  _ACEOF  #include "confdefs.h"
4600  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
4601  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
4602  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
4603    char _xldabs();
4604    
4605    int main() {
4606    _xldabs()
4607    ; return 0; }
4608    EOF
4609    if { (eval echo configure:4610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4610      rm -rf conftest*
4611      eval "ac_cv_lib_$ac_lib_var=yes"
4612    else
4613      echo "configure: failed program was:" >&5
4614      cat conftest.$ac_ext >&5
4615      rm -rf conftest*
4616      eval "ac_cv_lib_$ac_lib_var=no"
4617    fi
4618    rm -f conftest*
4619    LIBS="$ac_save_LIBS"
4620    
4621  /* Override any gcc2 internal prototype to avoid an error.  */  fi
4622  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4623  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char _xldabs ();  
 int  
 main ()  
 {  
 _xldabs ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_xlf__xldabs=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_xlf__xldabs=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_xlf__xldabs" >&5  
 echo "${ECHO_T}$ac_cv_lib_xlf__xldabs" >&6  
 if test $ac_cv_lib_xlf__xldabs = yes; then  
4624    F77LIBS="$F77LIBS -lxlf"    F77LIBS="$F77LIBS -lxlf"
4625    else
4626      echo "$ac_t""no" 1>&6
4627  fi  fi
4628    
4629              echo "$as_me:$LINENO: checking for srand_ in -lxlfutil" >&5              echo $ac_n "checking for srand_ in -lxlfutil""... $ac_c" 1>&6
4630  echo $ECHO_N "checking for srand_ in -lxlfutil... $ECHO_C" >&6  echo "configure:4631: checking for srand_ in -lxlfutil" >&5
4631  if test "${ac_cv_lib_xlfutil_srand_+set}" = set; then  ac_lib_var=`echo xlfutil'_'srand_ | sed 'y%./+-%__p_%'`
4632    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4633      echo $ac_n "(cached) $ac_c" 1>&6
4634  else  else
4635    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4636  LIBS="-lxlfutil $F77LIBS $LIBS"  LIBS="-lxlfutil $F77LIBS $LIBS"
4637  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4638  /* confdefs.h.  */  #line 4639 "configure"
4639  _ACEOF  #include "confdefs.h"
4640  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
4641  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
4642  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
4643    char srand_();
4644    
4645    int main() {
4646    srand_()
4647    ; return 0; }
4648    EOF
4649    if { (eval echo configure:4650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4650      rm -rf conftest*
4651      eval "ac_cv_lib_$ac_lib_var=yes"
4652    else
4653      echo "configure: failed program was:" >&5
4654      cat conftest.$ac_ext >&5
4655      rm -rf conftest*
4656      eval "ac_cv_lib_$ac_lib_var=no"
4657    fi
4658    rm -f conftest*
4659    LIBS="$ac_save_LIBS"
4660    
4661  /* Override any gcc2 internal prototype to avoid an error.  */  fi
4662  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4663  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char srand_ ();  
 int  
 main ()  
 {  
 srand_ ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_xlfutil_srand_=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_xlfutil_srand_=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_xlfutil_srand_" >&5  
 echo "${ECHO_T}$ac_cv_lib_xlfutil_srand_" >&6  
 if test $ac_cv_lib_xlfutil_srand_ = yes; then  
4664    F77LIBS="$F77LIBS -lxlfutil"    F77LIBS="$F77LIBS -lxlfutil"
4665    else
4666      echo "$ac_t""no" 1>&6
4667  fi  fi
4668    
4669              echo "$as_me:$LINENO: checking for printf in -lxlf90" >&5              echo $ac_n "checking for printf in -lxlf90""... $ac_c" 1>&6
4670  echo $ECHO_N "checking for printf in -lxlf90... $ECHO_C" >&6  echo "configure:4671: checking for printf in -lxlf90" >&5
4671  if test "${ac_cv_lib_xlf90_printf+set}" = set; then  ac_lib_var=`echo xlf90'_'printf | sed 'y%./+-%__p_%'`
4672    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4673      echo $ac_n "(cached) $ac_c" 1>&6
4674  else  else
4675    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4676  LIBS="-lxlf90 $F77LIBS $LIBS"  LIBS="-lxlf90 $F77LIBS $LIBS"
4677  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4678  /* confdefs.h.  */  #line 4679 "configure"
4679  _ACEOF  #include "confdefs.h"
4680  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
4681  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
4682  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
4683    char printf();
4684    
4685    int main() {
4686    printf()
4687    ; return 0; }
4688    EOF
4689    if { (eval echo configure:4690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4690      rm -rf conftest*
4691      eval "ac_cv_lib_$ac_lib_var=yes"
4692    else
4693      echo "configure: failed program was:" >&5
4694      cat conftest.$ac_ext >&5
4695      rm -rf conftest*
4696      eval "ac_cv_lib_$ac_lib_var=no"
4697    fi
4698    rm -f conftest*
4699    LIBS="$ac_save_LIBS"
4700    
4701  /* Override any gcc2 internal prototype to avoid an error.  */  fi
4702  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4703  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char printf ();  
 int  
 main ()  
 {  
 printf ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_xlf90_printf=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_xlf90_printf=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_xlf90_printf" >&5  
 echo "${ECHO_T}$ac_cv_lib_xlf90_printf" >&6  
 if test $ac_cv_lib_xlf90_printf = yes; then  
4704    F77LIBS="$F77LIBS -lxlf90"    F77LIBS="$F77LIBS -lxlf90"
4705    else
4706      echo "$ac_t""no" 1>&6
4707  fi  fi
4708    
4709              ;;              ;;
4710      *-linux-*)      *-linux-*)
4711          echo "$as_me:$LINENO: checking for pow_dd in -lf2c" >&5          echo $ac_n "checking for pow_dd in -lf2c""... $ac_c" 1>&6
4712  echo $ECHO_N "checking for pow_dd in -lf2c... $ECHO_C" >&6  echo "configure:4713: checking for pow_dd in -lf2c" >&5
4713  if test "${ac_cv_lib_f2c_pow_dd+set}" = set; then  ac_lib_var=`echo f2c'_'pow_dd | sed 'y%./+-%__p_%'`
4714    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4715      echo $ac_n "(cached) $ac_c" 1>&6
4716  else  else
4717    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4718  LIBS="-lf2c $F77LIBS $LIBS"  LIBS="-lf2c $F77LIBS $LIBS"
4719  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4720  /* confdefs.h.  */  #line 4721 "configure"
4721  _ACEOF  #include "confdefs.h"
4722  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
4723  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
4724  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
4725    char pow_dd();
4726    
4727    int main() {
4728    pow_dd()
4729    ; return 0; }
4730    EOF
4731    if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4732      rm -rf conftest*
4733      eval "ac_cv_lib_$ac_lib_var=yes"
4734    else
4735      echo "configure: failed program was:" >&5
4736      cat conftest.$ac_ext >&5
4737      rm -rf conftest*
4738      eval "ac_cv_lib_$ac_lib_var=no"
4739    fi
4740    rm -f conftest*
4741    LIBS="$ac_save_LIBS"
4742    
4743  /* Override any gcc2 internal prototype to avoid an error.  */  fi
4744  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4745  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char pow_dd ();  
 int  
 main ()  
 {  
 pow_dd ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_f2c_pow_dd=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_f2c_pow_dd=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_f2c_pow_dd" >&5  
 echo "${ECHO_T}$ac_cv_lib_f2c_pow_dd" >&6  
 if test $ac_cv_lib_f2c_pow_dd = yes; then  
4746    F77LIBS="$F77LIBS -lf2c"    F77LIBS="$F77LIBS -lf2c"
4747    else
4748      echo "$ac_t""no" 1>&6
4749  fi  fi
4750    
4751          echo "$as_me:$LINENO: checking for pow_dd in -lg2c" >&5          echo $ac_n "checking for pow_dd in -lg2c""... $ac_c" 1>&6
4752  echo $ECHO_N "checking for pow_dd in -lg2c... $ECHO_C" >&6  echo "configure:4753: checking for pow_dd in -lg2c" >&5
4753  if test "${ac_cv_lib_g2c_pow_dd+set}" = set; then  ac_lib_var=`echo g2c'_'pow_dd | sed 'y%./+-%__p_%'`
4754    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4755      echo $ac_n "(cached) $ac_c" 1>&6
4756  else  else
4757    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4758  LIBS="-lg2c $F77LIBS $LIBS"  LIBS="-lg2c $F77LIBS $LIBS"
4759  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4760  /* confdefs.h.  */  #line 4761 "configure"
4761  _ACEOF  #include "confdefs.h"
4762  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
4763  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
4764  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
4765    char pow_dd();
4766    
4767    int main() {
4768    pow_dd()
4769    ; return 0; }
4770    EOF
4771    if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4772      rm -rf conftest*
4773      eval "ac_cv_lib_$ac_lib_var=yes"
4774    else
4775      echo "configure: failed program was:" >&5
4776      cat conftest.$ac_ext >&5
4777      rm -rf conftest*
4778      eval "ac_cv_lib_$ac_lib_var=no"
4779    fi
4780    rm -f conftest*
4781    LIBS="$ac_save_LIBS"
4782    
4783  /* Override any gcc2 internal prototype to avoid an error.  */  fi
4784  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4785  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char pow_dd ();  
 int  
 main ()  
 {  
 pow_dd ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_g2c_pow_dd=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_g2c_pow_dd=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_g2c_pow_dd" >&5  
 echo "${ECHO_T}$ac_cv_lib_g2c_pow_dd" >&6  
 if test $ac_cv_lib_g2c_pow_dd = yes; then  
4786    F77LIBS="$F77LIBS -lg2c"    F77LIBS="$F77LIBS -lg2c"
4787    else
4788      echo "$ac_t""no" 1>&6
4789  fi  fi
4790    
4791          ;;          ;;
# Line 9519  fi Line 4793  fi
4793              if test -n "$GCC" ; then              if test -n "$GCC" ; then
4794                  F77LIBS="-L/opt/SUNWspro/lib -R/opt/SUNWspro/lib"                  F77LIBS="-L/opt/SUNWspro/lib -R/opt/SUNWspro/lib"
4795              fi              fi
4796              echo "$as_me:$LINENO: checking for d_sqrt_ in -lsunmath" >&5              echo $ac_n "checking for d_sqrt_ in -lsunmath""... $ac_c" 1>&6
4797  echo $ECHO_N "checking for d_sqrt_ in -lsunmath... $ECHO_C" >&6  echo "configure:4798: checking for d_sqrt_ in -lsunmath" >&5
4798  if test "${ac_cv_lib_sunmath_d_sqrt_+set}" = set; then  ac_lib_var=`echo sunmath'_'d_sqrt_ | sed 'y%./+-%__p_%'`
4799    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4800      echo $ac_n "(cached) $ac_c" 1>&6
4801  else  else
4802    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4803  LIBS="-lsunmath  $LIBS"  LIBS="-lsunmath  $LIBS"
4804  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4805  /* confdefs.h.  */  #line 4806 "configure"
4806  _ACEOF  #include "confdefs.h"
4807  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
4808  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
4809  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
4810    char d_sqrt_();
4811    
4812    int main() {
4813    d_sqrt_()
4814    ; return 0; }
4815    EOF
4816    if { (eval echo configure:4817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4817      rm -rf conftest*
4818      eval "ac_cv_lib_$ac_lib_var=yes"
4819    else
4820      echo "configure: failed program was:" >&5
4821      cat conftest.$ac_ext >&5
4822      rm -rf conftest*
4823      eval "ac_cv_lib_$ac_lib_var=no"
4824    fi
4825    rm -f conftest*
4826    LIBS="$ac_save_LIBS"
4827    
4828  /* Override any gcc2 internal prototype to avoid an error.  */  fi
4829  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4830  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char d_sqrt_ ();  
 int  
 main ()  
 {  
 d_sqrt_ ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_sunmath_d_sqrt_=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_sunmath_d_sqrt_=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_sunmath_d_sqrt_" >&5  
 echo "${ECHO_T}$ac_cv_lib_sunmath_d_sqrt_" >&6  
 if test $ac_cv_lib_sunmath_d_sqrt_ = yes; then  
4831    MATH_LIBS="-lsunmath $MATH_LIBS"    MATH_LIBS="-lsunmath $MATH_LIBS"
4832    else
4833      echo "$ac_t""no" 1>&6
4834  fi  fi
4835    
4836              echo "$as_me:$LINENO: checking for f77_init in -lF77" >&5              echo $ac_n "checking for f77_init in -lF77""... $ac_c" 1>&6
4837  echo $ECHO_N "checking for f77_init in -lF77... $ECHO_C" >&6  echo "configure:4838: checking for f77_init in -lF77" >&5
4838  if test "${ac_cv_lib_F77_f77_init+set}" = set; then  ac_lib_var=`echo F77'_'f77_init | sed 'y%./+-%__p_%'`
4839    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4840      echo $ac_n "(cached) $ac_c" 1>&6
4841  else  else
4842    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4843  LIBS="-lF77 $F77LIBS $MATH_LIBS $LIBS"  LIBS="-lF77 $F77LIBS $MATH_LIBS $LIBS"
4844  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4845  /* confdefs.h.  */  #line 4846 "configure"
4846  _ACEOF  #include "confdefs.h"
4847  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
4848  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
4849  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
4850    char f77_init();
4851    
4852    int main() {
4853    f77_init()
4854    ; return 0; }
4855    EOF
4856    if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4857      rm -rf conftest*
4858      eval "ac_cv_lib_$ac_lib_var=yes"
4859    else
4860      echo "configure: failed program was:" >&5
4861      cat conftest.$ac_ext >&5
4862      rm -rf conftest*
4863      eval "ac_cv_lib_$ac_lib_var=no"
4864    fi
4865    rm -f conftest*
4866    LIBS="$ac_save_LIBS"
4867    
4868  /* Override any gcc2 internal prototype to avoid an error.  */  fi
4869  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4870  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char f77_init ();  
 int  
 main ()  
 {  
 f77_init ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_F77_f77_init=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_F77_f77_init=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_F77_f77_init" >&5  
 echo "${ECHO_T}$ac_cv_lib_F77_f77_init" >&6  
 if test $ac_cv_lib_F77_f77_init = yes; then  
4871    F77LIBS="$F77LIBS -lF77"    F77LIBS="$F77LIBS -lF77"
4872    else
4873      echo "$ac_t""no" 1>&6
4874  fi  fi
4875    
4876              echo "$as_me:$LINENO: checking for inmax_ in -lM77" >&5              echo $ac_n "checking for inmax_ in -lM77""... $ac_c" 1>&6
4877  echo $ECHO_N "checking for inmax_ in -lM77... $ECHO_C" >&6  echo "configure:4878: checking for inmax_ in -lM77" >&5
4878  if test "${ac_cv_lib_M77_inmax_+set}" = set; then  ac_lib_var=`echo M77'_'inmax_ | sed 'y%./+-%__p_%'`
4879    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4880      echo $ac_n "(cached) $ac_c" 1>&6
4881  else  else
4882    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4883  LIBS="-lM77 $F77LIBS $MATH_LIBS $LIBS"  LIBS="-lM77 $F77LIBS $MATH_LIBS $LIBS"
4884  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4885  /* confdefs.h.  */  #line 4886 "configure"
4886  _ACEOF  #include "confdefs.h"
4887  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
4888  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
4889  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
4890    char inmax_();
4891    
4892    int main() {
4893    inmax_()
4894    ; return 0; }
4895    EOF
4896    if { (eval echo configure:4897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4897      rm -rf conftest*
4898      eval "ac_cv_lib_$ac_lib_var=yes"
4899    else
4900      echo "configure: failed program was:" >&5
4901      cat conftest.$ac_ext >&5
4902      rm -rf conftest*
4903      eval "ac_cv_lib_$ac_lib_var=no"
4904    fi
4905    rm -f conftest*
4906    LIBS="$ac_save_LIBS"
4907    
4908  /* Override any gcc2 internal prototype to avoid an error.  */  fi
4909  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4910  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char inmax_ ();  
 int  
 main ()  
 {  
 inmax_ ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_M77_inmax_=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_M77_inmax_=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_M77_inmax_" >&5  
 echo "${ECHO_T}$ac_cv_lib_M77_inmax_" >&6  
 if test $ac_cv_lib_M77_inmax_ = yes; then  
4911    F77LIBS="$F77LIBS -lM77"    F77LIBS="$F77LIBS -lM77"
4912    else
4913      echo "$ac_t""no" 1>&6
4914  fi  fi
4915    
4916              ;;              ;;
# Line 9728  fi Line 4918  fi
4918              if test -n "$GCC" ; then              if test -n "$GCC" ; then
4919                  F77LIBS="-L/usr/lang/lib"                  F77LIBS="-L/usr/lang/lib"
4920              fi              fi
4921              echo "$as_me:$LINENO: checking for f77_init in -lF77" >&5              echo $ac_n "checking for f77_init in -lF77""... $ac_c" 1>&6
4922  echo $ECHO_N "checking for f77_init in -lF77... $ECHO_C" >&6  echo "configure:4923: checking for f77_init in -lF77" >&5
4923  if test "${ac_cv_lib_F77_f77_init+set}" = set; then  ac_lib_var=`echo F77'_'f77_init | sed 'y%./+-%__p_%'`
4924    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4925      echo $ac_n "(cached) $ac_c" 1>&6
4926  else  else
4927    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4928  LIBS="-lF77 $F77LIBS $LIBS"  LIBS="-lF77 $F77LIBS $LIBS"
4929  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4930  /* confdefs.h.  */  #line 4931 "configure"
4931  _ACEOF  #include "confdefs.h"
4932  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
4933  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
4934  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
4935    char f77_init();
4936    
4937    int main() {
4938    f77_init()
4939    ; return 0; }
4940    EOF
4941    if { (eval echo configure:4942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4942      rm -rf conftest*
4943      eval "ac_cv_lib_$ac_lib_var=yes"
4944    else
4945      echo "configure: failed program was:" >&5
4946      cat conftest.$ac_ext >&5
4947      rm -rf conftest*
4948      eval "ac_cv_lib_$ac_lib_var=no"
4949    fi
4950    rm -f conftest*
4951    LIBS="$ac_save_LIBS"
4952    
4953  /* Override any gcc2 internal prototype to avoid an error.  */  fi
4954  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4955  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char f77_init ();  
 int  
 main ()  
 {  
 f77_init ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_F77_f77_init=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_F77_f77_init=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_F77_f77_init" >&5  
 echo "${ECHO_T}$ac_cv_lib_F77_f77_init" >&6  
 if test $ac_cv_lib_F77_f77_init = yes; then  
4956    F77LIBS="$F77LIBS -lF77"    F77LIBS="$F77LIBS -lF77"
4957    else
4958      echo "$ac_t""no" 1>&6
4959  fi  fi
4960    
4961              echo "$as_me:$LINENO: checking for inmax_ in -lM77" >&5              echo $ac_n "checking for inmax_ in -lM77""... $ac_c" 1>&6
4962  echo $ECHO_N "checking for inmax_ in -lM77... $ECHO_C" >&6  echo "configure:4963: checking for inmax_ in -lM77" >&5
4963  if test "${ac_cv_lib_M77_inmax_+set}" = set; then  ac_lib_var=`echo M77'_'inmax_ | sed 'y%./+-%__p_%'`
4964    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4965      echo $ac_n "(cached) $ac_c" 1>&6
4966  else  else
4967    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
4968  LIBS="-lM77 $F77LIBS $LIBS"  LIBS="-lM77 $F77LIBS $LIBS"
4969  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
4970  /* confdefs.h.  */  #line 4971 "configure"
4971  _ACEOF  #include "confdefs.h"
4972  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
4973  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
4974  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
4975    char inmax_();
4976    
4977    int main() {
4978    inmax_()
4979    ; return 0; }
4980    EOF
4981    if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4982      rm -rf conftest*
4983      eval "ac_cv_lib_$ac_lib_var=yes"
4984    else
4985      echo "configure: failed program was:" >&5
4986      cat conftest.$ac_ext >&5
4987      rm -rf conftest*
4988      eval "ac_cv_lib_$ac_lib_var=no"
4989    fi
4990    rm -f conftest*
4991    LIBS="$ac_save_LIBS"
4992    
4993  /* Override any gcc2 internal prototype to avoid an error.  */  fi
4994  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4995  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char inmax_ ();  
 int  
 main ()  
 {  
 inmax_ ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_M77_inmax_=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_M77_inmax_=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_M77_inmax_" >&5  
 echo "${ECHO_T}$ac_cv_lib_M77_inmax_" >&6  
 if test $ac_cv_lib_M77_inmax_ = yes; then  
4996    F77LIBS="$F77LIBS -lM77"    F77LIBS="$F77LIBS -lM77"
4997    else
4998      echo "$ac_t""no" 1>&6
4999  fi  fi
5000    
5001              ;;              ;;
5002          mips-sgi-irix*)          mips-sgi-irix*)
5003              echo "$as_me:$LINENO: checking for s_copy in -lF77" >&5              echo $ac_n "checking for s_copy in -lF77""... $ac_c" 1>&6
5004  echo $ECHO_N "checking for s_copy in -lF77... $ECHO_C" >&6  echo "configure:5005: checking for s_copy in -lF77" >&5
5005  if test "${ac_cv_lib_F77_s_copy+set}" = set; then  ac_lib_var=`echo F77'_'s_copy | sed 'y%./+-%__p_%'`
5006    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5007      echo $ac_n "(cached) $ac_c" 1>&6
5008  else  else
5009    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5010  LIBS="-lF77 $F77LIBS $LIBS"  LIBS="-lF77 $F77LIBS $LIBS"
5011  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5012  /* confdefs.h.  */  #line 5013 "configure"
5013  _ACEOF  #include "confdefs.h"
5014  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
5015  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
5016  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
5017    char s_copy();
5018    
5019    int main() {
5020    s_copy()
5021    ; return 0; }
5022    EOF
5023    if { (eval echo configure:5024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5024      rm -rf conftest*
5025      eval "ac_cv_lib_$ac_lib_var=yes"
5026    else
5027      echo "configure: failed program was:" >&5
5028      cat conftest.$ac_ext >&5
5029      rm -rf conftest*
5030      eval "ac_cv_lib_$ac_lib_var=no"
5031    fi
5032    rm -f conftest*
5033    LIBS="$ac_save_LIBS"
5034    
5035  /* Override any gcc2 internal prototype to avoid an error.  */  fi
5036  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5037  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char s_copy ();  
 int  
 main ()  
 {  
 s_copy ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_F77_s_copy=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_F77_s_copy=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_F77_s_copy" >&5  
 echo "${ECHO_T}$ac_cv_lib_F77_s_copy" >&6  
 if test $ac_cv_lib_F77_s_copy = yes; then  
5038    F77LIBS="$F77LIBS -lF77"    F77LIBS="$F77LIBS -lF77"
5039    else
5040      echo "$ac_t""no" 1>&6
5041  fi  fi
5042    
5043              echo "$as_me:$LINENO: checking for f_exit in -lI77" >&5              echo $ac_n "checking for f_exit in -lI77""... $ac_c" 1>&6
5044  echo $ECHO_N "checking for f_exit in -lI77... $ECHO_C" >&6  echo "configure:5045: checking for f_exit in -lI77" >&5
5045  if test "${ac_cv_lib_I77_f_exit+set}" = set; then  ac_lib_var=`echo I77'_'f_exit | sed 'y%./+-%__p_%'`
5046    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5047      echo $ac_n "(cached) $ac_c" 1>&6
5048  else  else
5049    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5050  LIBS="-lI77 $F77LIBS $LIBS"  LIBS="-lI77 $F77LIBS $LIBS"
5051  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5052  /* confdefs.h.  */  #line 5053 "configure"
5053  _ACEOF  #include "confdefs.h"
5054  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
5055  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
5056  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
5057    char f_exit();
5058    
5059    int main() {
5060    f_exit()
5061    ; return 0; }
5062    EOF
5063    if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5064      rm -rf conftest*
5065      eval "ac_cv_lib_$ac_lib_var=yes"
5066    else
5067      echo "configure: failed program was:" >&5
5068      cat conftest.$ac_ext >&5
5069      rm -rf conftest*
5070      eval "ac_cv_lib_$ac_lib_var=no"
5071    fi
5072    rm -f conftest*
5073    LIBS="$ac_save_LIBS"
5074    
5075  /* Override any gcc2 internal prototype to avoid an error.  */  fi
5076  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5077  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char f_exit ();  
 int  
 main ()  
 {  
 f_exit ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_I77_f_exit=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_I77_f_exit=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_I77_f_exit" >&5  
 echo "${ECHO_T}$ac_cv_lib_I77_f_exit" >&6  
 if test $ac_cv_lib_I77_f_exit = yes; then  
5078    F77LIBS="$F77LIBS -lI77"    F77LIBS="$F77LIBS -lI77"
5079    else
5080      echo "$ac_t""no" 1>&6
5081  fi  fi
5082    
5083              echo "$as_me:$LINENO: checking for mkidxname in -lisam" >&5              echo $ac_n "checking for mkidxname in -lisam""... $ac_c" 1>&6
5084  echo $ECHO_N "checking for mkidxname in -lisam... $ECHO_C" >&6  echo "configure:5085: checking for mkidxname in -lisam" >&5
5085  if test "${ac_cv_lib_isam_mkidxname+set}" = set; then  ac_lib_var=`echo isam'_'mkidxname | sed 'y%./+-%__p_%'`
5086    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5087      echo $ac_n "(cached) $ac_c" 1>&6
5088  else  else
5089    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5090  LIBS="-lisam $F77LIBS $LIBS"  LIBS="-lisam $F77LIBS $LIBS"
5091  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5092  /* confdefs.h.  */  #line 5093 "configure"
5093  _ACEOF  #include "confdefs.h"
5094  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
5095  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
5096  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
5097    char mkidxname();
5098    
5099    int main() {
5100    mkidxname()
5101    ; return 0; }
5102    EOF
5103    if { (eval echo configure:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5104      rm -rf conftest*
5105      eval "ac_cv_lib_$ac_lib_var=yes"
5106    else
5107      echo "configure: failed program was:" >&5
5108      cat conftest.$ac_ext >&5
5109      rm -rf conftest*
5110      eval "ac_cv_lib_$ac_lib_var=no"
5111    fi
5112    rm -f conftest*
5113    LIBS="$ac_save_LIBS"
5114    
5115  /* Override any gcc2 internal prototype to avoid an error.  */  fi
5116  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5117  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char mkidxname ();  
 int  
 main ()  
 {  
 mkidxname ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_isam_mkidxname=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_isam_mkidxname=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_isam_mkidxname" >&5  
 echo "${ECHO_T}$ac_cv_lib_isam_mkidxname" >&6  
 if test $ac_cv_lib_isam_mkidxname = yes; then  
5118    F77LIBS="$F77LIBS -lisam"    F77LIBS="$F77LIBS -lisam"
5119    else
5120      echo "$ac_t""no" 1>&6
5121  fi  fi
5122    
5123              ;;              ;;
5124          *)          *)
5125              echo "$as_me:$LINENO: checking for printf in -lF77" >&5              echo $ac_n "checking for printf in -lF77""... $ac_c" 1>&6
5126  echo $ECHO_N "checking for printf in -lF77... $ECHO_C" >&6  echo "configure:5127: checking for printf in -lF77" >&5
5127  if test "${ac_cv_lib_F77_printf+set}" = set; then  ac_lib_var=`echo F77'_'printf | sed 'y%./+-%__p_%'`
5128    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5129      echo $ac_n "(cached) $ac_c" 1>&6
5130  else  else
5131    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5132  LIBS="-lF77 $F77LIBS $LIBS"  LIBS="-lF77 $F77LIBS $LIBS"
5133  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5134  /* confdefs.h.  */  #line 5135 "configure"
5135  _ACEOF  #include "confdefs.h"
5136  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
5137  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
5138  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
5139    char printf();
5140    
5141    int main() {
5142    printf()
5143    ; return 0; }
5144    EOF
5145    if { (eval echo configure:5146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5146      rm -rf conftest*
5147      eval "ac_cv_lib_$ac_lib_var=yes"
5148    else
5149      echo "configure: failed program was:" >&5
5150      cat conftest.$ac_ext >&5
5151      rm -rf conftest*
5152      eval "ac_cv_lib_$ac_lib_var=no"
5153    fi
5154    rm -f conftest*
5155    LIBS="$ac_save_LIBS"
5156    
5157  /* Override any gcc2 internal prototype to avoid an error.  */  fi
5158  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5159  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char printf ();  
 int  
 main ()  
 {  
 printf ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_F77_printf=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_F77_printf=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_F77_printf" >&5  
 echo "${ECHO_T}$ac_cv_lib_F77_printf" >&6  
 if test $ac_cv_lib_F77_printf = yes; then  
5160    F77LIBS="$F77LIBS -lF77"    F77LIBS="$F77LIBS -lF77"
5161    else
5162      echo "$ac_t""no" 1>&6
5163  fi  fi
5164    
5165              echo "$as_me:$LINENO: checking for printf in -lM77" >&5              echo $ac_n "checking for printf in -lM77""... $ac_c" 1>&6
5166  echo $ECHO_N "checking for printf in -lM77... $ECHO_C" >&6  echo "configure:5167: checking for printf in -lM77" >&5
5167  if test "${ac_cv_lib_M77_printf+set}" = set; then  ac_lib_var=`echo M77'_'printf | sed 'y%./+-%__p_%'`
5168    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5169      echo $ac_n "(cached) $ac_c" 1>&6
5170  else  else
5171    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5172  LIBS="-lM77 $F77LIBS $LIBS"  LIBS="-lM77 $F77LIBS $LIBS"
5173  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5174  /* confdefs.h.  */  #line 5175 "configure"
5175  _ACEOF  #include "confdefs.h"
5176  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
5177  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
5178  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
5179    char printf();
5180    
5181    int main() {
5182    printf()
5183    ; return 0; }
5184    EOF
5185    if { (eval echo configure:5186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5186      rm -rf conftest*
5187      eval "ac_cv_lib_$ac_lib_var=yes"
5188    else
5189      echo "configure: failed program was:" >&5
5190      cat conftest.$ac_ext >&5
5191      rm -rf conftest*
5192      eval "ac_cv_lib_$ac_lib_var=no"
5193    fi
5194    rm -f conftest*
5195    LIBS="$ac_save_LIBS"
5196    
5197  /* Override any gcc2 internal prototype to avoid an error.  */  fi
5198  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5199  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char printf ();  
 int  
 main ()  
 {  
 printf ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_M77_printf=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_M77_printf=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_M77_printf" >&5  
 echo "${ECHO_T}$ac_cv_lib_M77_printf" >&6  
 if test $ac_cv_lib_M77_printf = yes; then  
5200    F77LIBS="$F77LIBS -lM77"    F77LIBS="$F77LIBS -lM77"
5201    else
5202      echo "$ac_t""no" 1>&6
5203  fi  fi
5204    
5205          echo "$as_me:$LINENO: checking for pow_dd in -lf2c" >&5          echo $ac_n "checking for pow_dd in -lf2c""... $ac_c" 1>&6
5206  echo $ECHO_N "checking for pow_dd in -lf2c... $ECHO_C" >&6  echo "configure:5207: checking for pow_dd in -lf2c" >&5
5207  if test "${ac_cv_lib_f2c_pow_dd+set}" = set; then  ac_lib_var=`echo f2c'_'pow_dd | sed 'y%./+-%__p_%'`
5208    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5209      echo $ac_n "(cached) $ac_c" 1>&6
5210  else  else
5211    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5212  LIBS="-lf2c $F77LIBS $LIBS"  LIBS="-lf2c $F77LIBS $LIBS"
5213  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5214  /* confdefs.h.  */  #line 5215 "configure"
5215  _ACEOF  #include "confdefs.h"
5216  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
5217  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
5218  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
5219    char pow_dd();
5220    
5221    int main() {
5222    pow_dd()
5223    ; return 0; }
5224    EOF
5225    if { (eval echo configure:5226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5226      rm -rf conftest*
5227      eval "ac_cv_lib_$ac_lib_var=yes"
5228    else
5229      echo "configure: failed program was:" >&5
5230      cat conftest.$ac_ext >&5
5231      rm -rf conftest*
5232      eval "ac_cv_lib_$ac_lib_var=no"
5233    fi
5234    rm -f conftest*
5235    LIBS="$ac_save_LIBS"
5236    
5237  /* Override any gcc2 internal prototype to avoid an error.  */  fi
5238  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5239  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char pow_dd ();  
 int  
 main ()  
 {  
 pow_dd ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_f2c_pow_dd=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_f2c_pow_dd=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_f2c_pow_dd" >&5  
 echo "${ECHO_T}$ac_cv_lib_f2c_pow_dd" >&6  
 if test $ac_cv_lib_f2c_pow_dd = yes; then  
5240    F77LIBS="$F77LIBS -lf2c"    F77LIBS="$F77LIBS -lf2c"
5241    else
5242      echo "$ac_t""no" 1>&6
5243  fi  fi
5244    
5245              echo "$as_me:$LINENO: checking for printf in -lf77" >&5              echo $ac_n "checking for printf in -lf77""... $ac_c" 1>&6
5246  echo $ECHO_N "checking for printf in -lf77... $ECHO_C" >&6  echo "configure:5247: checking for printf in -lf77" >&5
5247  if test "${ac_cv_lib_f77_printf+set}" = set; then  ac_lib_var=`echo f77'_'printf | sed 'y%./+-%__p_%'`
5248    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5249      echo $ac_n "(cached) $ac_c" 1>&6
5250  else  else
5251    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5252  LIBS="-lf77 $F77LIBS $LIBS"  LIBS="-lf77 $F77LIBS $LIBS"
5253  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5254  /* confdefs.h.  */  #line 5255 "configure"
5255  _ACEOF  #include "confdefs.h"
5256  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
5257  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
5258  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
5259    char printf();
5260    
5261    int main() {
5262    printf()
5263    ; return 0; }
5264    EOF
5265    if { (eval echo configure:5266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5266      rm -rf conftest*
5267      eval "ac_cv_lib_$ac_lib_var=yes"
5268    else
5269      echo "configure: failed program was:" >&5
5270      cat conftest.$ac_ext >&5
5271      rm -rf conftest*
5272      eval "ac_cv_lib_$ac_lib_var=no"
5273    fi
5274    rm -f conftest*
5275    LIBS="$ac_save_LIBS"
5276    
5277  /* Override any gcc2 internal prototype to avoid an error.  */  fi
5278  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5279  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char printf ();  
 int  
 main ()  
 {  
 printf ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_f77_printf=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_f77_printf=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_f77_printf" >&5  
 echo "${ECHO_T}$ac_cv_lib_f77_printf" >&6  
 if test $ac_cv_lib_f77_printf = yes; then  
5280    F77LIBS="$F77LIBS -lf77"    F77LIBS="$F77LIBS -lf77"
5281    else
5282      echo "$ac_t""no" 1>&6
5283  fi  fi
5284    
5285              echo "$as_me:$LINENO: checking for printf in -lfor" >&5              echo $ac_n "checking for printf in -lfor""... $ac_c" 1>&6
5286  echo $ECHO_N "checking for printf in -lfor... $ECHO_C" >&6  echo "configure:5287: checking for printf in -lfor" >&5
5287  if test "${ac_cv_lib_for_printf+set}" = set; then  ac_lib_var=`echo for'_'printf | sed 'y%./+-%__p_%'`
5288    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5289      echo $ac_n "(cached) $ac_c" 1>&6
5290  else  else
5291    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5292  LIBS="-lfor $F77LIBS $LIBS"  LIBS="-lfor $F77LIBS $LIBS"
5293  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5294  /* confdefs.h.  */  #line 5295 "configure"
5295  _ACEOF  #include "confdefs.h"
5296  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
5297  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
5298  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
5299    char printf();
5300    
5301    int main() {
5302    printf()
5303    ; return 0; }
5304    EOF
5305    if { (eval echo configure:5306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5306      rm -rf conftest*
5307      eval "ac_cv_lib_$ac_lib_var=yes"
5308    else
5309      echo "configure: failed program was:" >&5
5310      cat conftest.$ac_ext >&5
5311      rm -rf conftest*
5312      eval "ac_cv_lib_$ac_lib_var=no"
5313    fi
5314    rm -f conftest*
5315    LIBS="$ac_save_LIBS"
5316    
5317  /* Override any gcc2 internal prototype to avoid an error.  */  fi
5318  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5319  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char printf ();  
 int  
 main ()  
 {  
 printf ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_for_printf=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_for_printf=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_for_printf" >&5  
 echo "${ECHO_T}$ac_cv_lib_for_printf" >&6  
 if test $ac_cv_lib_for_printf = yes; then  
5320    F77LIBS="$F77LIBS -lfor"    F77LIBS="$F77LIBS -lfor"
5321    else
5322      echo "$ac_t""no" 1>&6
5323  fi  fi
5324    
5325              echo "$as_me:$LINENO: checking for printf in -lots" >&5              echo $ac_n "checking for printf in -lots""... $ac_c" 1>&6
5326  echo $ECHO_N "checking for printf in -lots... $ECHO_C" >&6  echo "configure:5327: checking for printf in -lots" >&5
5327  if test "${ac_cv_lib_ots_printf+set}" = set; then  ac_lib_var=`echo ots'_'printf | sed 'y%./+-%__p_%'`
5328    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5329      echo $ac_n "(cached) $ac_c" 1>&6
5330  else  else
5331    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5332  LIBS="-lots $F77LIBS $LIBS"  LIBS="-lots $F77LIBS $LIBS"
5333  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5334  /* confdefs.h.  */  #line 5335 "configure"
5335  _ACEOF  #include "confdefs.h"
5336  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
5337  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
5338  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
5339    char printf();
5340    
5341    int main() {
5342    printf()
5343    ; return 0; }
5344    EOF
5345    if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5346      rm -rf conftest*
5347      eval "ac_cv_lib_$ac_lib_var=yes"
5348    else
5349      echo "configure: failed program was:" >&5
5350      cat conftest.$ac_ext >&5
5351      rm -rf conftest*
5352      eval "ac_cv_lib_$ac_lib_var=no"
5353    fi
5354    rm -f conftest*
5355    LIBS="$ac_save_LIBS"
5356    
5357  /* Override any gcc2 internal prototype to avoid an error.  */  fi
5358  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5359  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char printf ();  
 int  
 main ()  
 {  
 printf ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_ots_printf=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_ots_printf=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_ots_printf" >&5  
 echo "${ECHO_T}$ac_cv_lib_ots_printf" >&6  
 if test $ac_cv_lib_ots_printf = yes; then  
5360    F77LIBS="$F77LIBS -lots"    F77LIBS="$F77LIBS -lots"
5361    else
5362      echo "$ac_t""no" 1>&6
5363  fi  fi
5364    
5365              echo "$as_me:$LINENO: checking for printf in -lUfor" >&5              echo $ac_n "checking for printf in -lUfor""... $ac_c" 1>&6
5366  echo $ECHO_N "checking for printf in -lUfor... $ECHO_C" >&6  echo "configure:5367: checking for printf in -lUfor" >&5
5367  if test "${ac_cv_lib_Ufor_printf+set}" = set; then  ac_lib_var=`echo Ufor'_'printf | sed 'y%./+-%__p_%'`
5368    echo $ECHO_N "(cached) $ECHO_C" >&6  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5369      echo $ac_n "(cached) $ac_c" 1>&6
5370  else  else
5371    ac_check_lib_save_LIBS=$LIBS    ac_save_LIBS="$LIBS"
5372  LIBS="-lUfor $F77LIBS $LIBS"  LIBS="-lUfor $F77LIBS $LIBS"
5373  cat >conftest.$ac_ext <<_ACEOF  cat > conftest.$ac_ext <<EOF
5374  /* confdefs.h.  */  #line 5375 "configure"
5375  _ACEOF  #include "confdefs.h"
5376  cat confdefs.h >>conftest.$ac_ext  /* Override any gcc2 internal prototype to avoid an error.  */
5377  cat >>conftest.$ac_ext <<_ACEOF  /* We use char because int might match the return type of a gcc2
5378  /* end confdefs.h.  */      builtin and then its argument prototype would still apply.  */
5379    char printf();
5380    
5381    int main() {
5382    printf()
5383    ; return 0; }
5384    EOF
5385    if { (eval echo configure:5386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5386      rm -rf conftest*
5387      eval "ac_cv_lib_$ac_lib_var=yes"
5388    else
5389      echo "configure: failed program was:" >&5
5390      cat conftest.$ac_ext >&5
5391      rm -rf conftest*
5392      eval "ac_cv_lib_$ac_lib_var=no"
5393    fi
5394    rm -f conftest*
5395    LIBS="$ac_save_LIBS"
5396    
5397  /* Override any gcc2 internal prototype to avoid an error.  */  fi
5398  #ifdef __cplusplus  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5399  extern "C"    echo "$ac_t""yes" 1>&6
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char printf ();  
 int  
 main ()  
 {  
 printf ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&  
      { ac_try='test -z "$ac_c_werror_flag"  
              || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
      { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_Ufor_printf=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_Ufor_printf=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_Ufor_printf" >&5  
 echo "${ECHO_T}$ac_cv_lib_Ufor_printf" >&6  
 if test $ac_cv_lib_Ufor_printf = yes; then  
5400    F77LIBS="$F77LIBS -lUfor"    F77LIBS="$F77LIBS -lUfor"
5401    else
5402      echo "$ac_t""no" 1>&6
5403  fi  fi
5404    
5405              ;;              ;;
# Line 10559  asc_subdirs='' Line 5413  asc_subdirs=''
5413  #  Initialize the blas variables  #  Initialize the blas variables
5414  make_blaslib=''  make_blaslib=''
5415    
   
5416  # Check whether --with-blas or --without-blas was given.  # Check whether --with-blas or --without-blas was given.
5417  if test "${with_blas+set}" = set; then  if test "${with_blas+set}" = set; then
5418    withval="$with_blas"    withval="$with_blas"
5419      :
5420  else  else
5421    with_blas=yes    with_blas=yes
5422  fi;  fi
5423    
5424  case "$with_fortran$with_blas" in  case "$with_fortran$with_blas" in
5425      no*)      no*)
5426      #  Fortran is disabled; ignore this option (if present)      #  Fortran is disabled; ignore this option (if present)
# Line 10575  case "$with_fortran$with_blas" in Line 5429  case "$with_fortran$with_blas" in
5429      *no)      *no)
5430      #  It is an error if the user chooses to build without      #  It is an error if the user chooses to build without
5431      #  the BLAS library if Fortran is enabled.      #  the BLAS library if Fortran is enabled.
5432          { { echo "$as_me:$LINENO: error: Bad option '--without-blas'          { echo "configure: error: Bad option '--without-blas'
5433      To support Fortran calls, ASCEND must be compiled with a blas library" >&5      To support Fortran calls, ASCEND must be compiled with a blas library" 1>&2; exit 1; }
 echo "$as_me: error: Bad option '--without-blas'  
     To support Fortran calls, ASCEND must be compiled with a blas library" >&2;}  
    { (exit 1); exit 1; }; }  
5434          ;;          ;;
5435      *build)      *build)
5436      #  Fortran is enabled and the user specified --with-blas=build      #  Fortran is enabled and the user specified --with-blas=build
# Line 10587  echo "$as_me: error: Bad option '--witho Line 5438  echo "$as_me: error: Bad option '--witho
5438      #  to build it; useful for testing configure.      #  to build it; useful for testing configure.
5439  #AWW20041206:        blas_src_file="$srcdir/blas/dcopy.f"  #AWW20041206:        blas_src_file="$srcdir/blas/dcopy.f"
5440          blas_src_file="$srcdir/../../blas/dcopy.f"          blas_src_file="$srcdir/../../blas/dcopy.f"
5441          echo "$as_me:$LINENO: checking for blas source file $blas_src_file " >&5          echo $ac_n "checking for blas source file $blas_src_file ""... $ac_c" 1>&6
5442  echo $ECHO_N "checking for blas source file $blas_src_file ... $ECHO_C" >&6  echo "configure:5443: checking for blas source file $blas_src_file " >&5
5443          if test -f $blas_src_file ; then          if test -f $blas_src_file ; then
5444              echo "$as_me:$LINENO: result: yes" >&5              echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
5445  #AWW20041119:            BLASLIB="$ascpwd/ascend4/archive/libascblas.a"  #AWW20041119:            BLASLIB="$ascpwd/ascend4/archive/libascblas.a"
5446              BLASLIB="$ascpwd/../generic/archive/libascblas.a"              BLASLIB="$ascpwd/../generic/archive/libascblas.a"
5447          make_blaslib='make-blaslib'          make_blaslib='make-blaslib'
# Line 10600  echo "${ECHO_T}yes" >&6 Line 5450  echo "${ECHO_T}yes" >&6
5450  #AWW20041206:            asc_subdirs="$asc_subdirs ../blas"  #AWW20041206:            asc_subdirs="$asc_subdirs ../blas"
5451              asc_subdirs="$asc_subdirs ../../blas"              asc_subdirs="$asc_subdirs ../../blas"
5452          else          else
5453              echo "$as_me:$LINENO: result: no" >&5              echo "$ac_t""no" 1>&6
5454  echo "${ECHO_T}no" >&6              { echo "configure: error: User specified '--with-blas=build' but
5455              { { echo "$as_me:$LINENO: error: User specified '--with-blas=build' but          configure cannot find the blas source file $blas_src_file" 1>&2; exit 1; }
         configure cannot find the blas source file $blas_src_file" >&5  
 echo "$as_me: error: User specified '--with-blas=build' but  
         configure cannot find the blas source file $blas_src_file" >&2;}  
    { (exit 1); exit 1; }; }  
5456          fi          fi
5457          ;;          ;;
5458      *yes)      *yes)
# Line 10617  echo "$as_me: error: User specified '--w Line 5463  echo "$as_me: error: User specified '--w
5463      #  disable all Fortran and print a warning.      #  disable all Fortran and print a warning.
5464          for ac_prog in libblas.a libascblas.a          for ac_prog in libblas.a libascblas.a
5465  do  do
5466    # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
5467  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
5468  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5469  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:5470: checking for $ac_word" >&5
5470  if test "${ac_cv_path_BLASLIB+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_path_BLASLIB'+set}'`\" = set"; then
5471    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
5472  else  else
5473    case $BLASLIB in    case "$BLASLIB" in
5474    [\\/]* | ?:[\\/]*)    /*)
5475    ac_cv_path_BLASLIB="$BLASLIB" # Let the user override the test with a path.    ac_cv_path_BLASLIB="$BLASLIB" # Let the user override the test with a path.
5476    ;;    ;;
5477      ?:/*)          
5478      ac_cv_path_BLASLIB="$BLASLIB" # Let the user override the test with a dos path.
5479      ;;
5480    *)    *)
5481    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5482  for as_dir in $asc_f77_support_dirs    ac_dummy="$asc_f77_support_dirs"
5483  do    for ac_dir in $ac_dummy; do
5484    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
5485    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
5486    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_path_BLASLIB="$ac_dir/$ac_word"
5487    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
5488      ac_cv_path_BLASLIB="$as_dir/$ac_word$ac_exec_ext"      fi
5489      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
5490      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
5491    ;;    ;;
5492  esac  esac
5493  fi  fi
5494  BLASLIB=$ac_cv_path_BLASLIB  BLASLIB="$ac_cv_path_BLASLIB"
   
5495  if test -n "$BLASLIB"; then  if test -n "$BLASLIB"; then
5496    echo "$as_me:$LINENO: result: $BLASLIB" >&5    echo "$ac_t""$BLASLIB" 1>&6
 echo "${ECHO_T}$BLASLIB" >&6  
5497  else  else
5498    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
5499  fi  fi
5500    
5501    test -n "$BLASLIB" && break  test -n "$BLASLIB" && break
5502  done  done
5503    
5504          blas_src_file="$srcdir/../../blas/dcopy.f"          blas_src_file="$srcdir/../../blas/dcopy.f"
5505          if test -z "$BLASLIB" -a -n "$blas_src_file" ; then          if test -z "$BLASLIB" -a -n "$blas_src_file" ; then
5506              echo "$as_me:$LINENO: checking for blas source file $blas_src_file " >&5              echo $ac_n "checking for blas source file $blas_src_file ""... $ac_c" 1>&6
5507  echo $ECHO_N "checking for blas source file $blas_src_file ... $ECHO_C" >&6  echo "configure:5508: checking for blas source file $blas_src_file " >&5
5508              if test -f $blas_src_file ; then              if test -f $blas_src_file ; then
5509                  echo "$as_me:$LINENO: result: yes" >&5                  echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
5510  #AWW20041119:           BLASLIB="$ascpwd/ascend4/archive/libascblas.a"  #AWW20041119:           BLASLIB="$ascpwd/ascend4/archive/libascblas.a"
5511              BLASLIB="$ascpwd/../generic/archive/libascblas.a"              BLASLIB="$ascpwd/../generic/archive/libascblas.a"
5512              make_blaslib='make-blaslib'              make_blaslib='make-blaslib'
# Line 10674  echo "${ECHO_T}yes" >&6 Line 5515  echo "${ECHO_T}yes" >&6
5515  #AWW20041206:           asc_subdirs="$asc_subdirs ../blas"  #AWW20041206:           asc_subdirs="$asc_subdirs ../blas"
5516              asc_subdirs="$asc_subdirs ../../blas"              asc_subdirs="$asc_subdirs ../../blas"
5517              else              else
5518                  echo "$as_me:$LINENO: result: no" >&5                  echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
5519              fi              fi
5520          fi          fi
5521          if test -z "$BLASLIB" ; then          if test -z "$BLASLIB" ; then
5522          with_fortran=no          with_fortran=no
5523              { echo "$as_me:$LINENO: WARNING: Cannot find libblas.a, libascblas.a, nor blas              echo "configure: warning: Cannot find libblas.a, libascblas.a, nor blas
     source code.  Building ASCEND without integration, MINOS, and CONOPT  
     support.  To specify a specific location for the blas library, run  
     configure again with the argument:  
         --with-blas=BLASLIB  
     where BLASLIB is the full path to the blas library file." >&5  
 echo "$as_me: WARNING: Cannot find libblas.a, libascblas.a, nor blas  
5524      source code.  Building ASCEND without integration, MINOS, and CONOPT      source code.  Building ASCEND without integration, MINOS, and CONOPT
5525      support.  To specify a specific location for the blas library, run      support.  To specify a specific location for the blas library, run
5526      configure again with the argument:      configure again with the argument:
5527          --with-blas=BLASLIB          --with-blas=BLASLIB
5528      where BLASLIB is the full path to the blas library file." >&2;}      where BLASLIB is the full path to the blas library file." 1>&2
5529          fi          fi
5530      ;;      ;;
5531      *)      *)
# Line 10705  esac Line 5539  esac
5539  #  Initialize the linpack variables  #  Initialize the linpack variables
5540  make_lpaklib=''  make_lpaklib=''
5541    
   
5542  # Check whether --with-linpack or --without-linpack was given.  # Check whether --with-linpack or --without-linpack was given.
5543  if test "${with_linpack+set}" = set; then  if test "${with_linpack+set}" = set; then
5544    withval="$with_linpack"    withval="$with_linpack"
5545      :
5546  else  else
5547    with_linpack=yes    with_linpack=yes
5548  fi;  fi
5549    
5550  case "$with_fortran$with_linpack" in  case "$with_fortran$with_linpack" in
5551      no*)      no*)
5552      #  Fortran is disabled; ignore this option (if present)      #  Fortran is disabled; ignore this option (if present)
# Line 10721  case "$with_fortran$with_linpack" in Line 5555  case "$with_fortran$with_linpack" in
5555      *no)      *no)
5556      #  It is an error if the user chooses to build without      #  It is an error if the user chooses to build without
5557      #  the LINPACK library if Fortran is enabled.      #  the LINPACK library if Fortran is enabled.
5558          { { echo "$as_me:$LINENO: error: Bad option '--without-linpack'          { echo "configure: error: Bad option '--without-linpack'
     To support Fortran calls, ASCEND must be compiled with a  
     linpack library." >&5  
 echo "$as_me: error: Bad option '--without-linpack'  
5559      To support Fortran calls, ASCEND must be compiled with a      To support Fortran calls, ASCEND must be compiled with a
5560      linpack library." >&2;}      linpack library." 1>&2; exit 1; }
    { (exit 1); exit 1; }; }  
5561          ;;          ;;
5562      *build)      *build)
5563      #  Fortran is enabled and the user specified --with-linpack=build      #  Fortran is enabled and the user specified --with-linpack=build
5564      #  For a search for LINPACK source code and tell the Makefile      #  For a search for LINPACK source code and tell the Makefile
5565      #  to build it; useful for testing configure.      #  to build it; useful for testing configure.
5566          lpak_src_file="$srcdir/../../linpack/d1mach.f"          lpak_src_file="$srcdir/../../linpack/d1mach.f"
5567          echo "$as_me:$LINENO: checking for linpack source file $lpak_src_file " >&5          echo $ac_n "checking for linpack source file $lpak_src_file ""... $ac_c" 1>&6
5568  echo $ECHO_N "checking for linpack source file $lpak_src_file ... $ECHO_C" >&6  echo "configure:5569: checking for linpack source file $lpak_src_file " >&5
5569          if test -f $lpak_src_file ; then          if test -f $lpak_src_file ; then
5570              echo "$as_me:$LINENO: result: yes" >&5              echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
5571  #AWW20041119:            LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a"  #AWW20041119:            LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a"
5572              LPAKLIB="$ascpwd/../generic/archive/libasclpak.a"              LPAKLIB="$ascpwd/../generic/archive/libasclpak.a"
5573          make_lpaklib='make-lpaklib'          make_lpaklib='make-lpaklib'
# Line 10747  echo "${ECHO_T}yes" >&6 Line 5576  echo "${ECHO_T}yes" >&6
5576  #AWW20041206:            asc_subdirs="$asc_subdirs ../linpack"  #AWW20041206:            asc_subdirs="$asc_subdirs ../linpack"
5577              asc_subdirs="$asc_subdirs ../../linpack"              asc_subdirs="$asc_subdirs ../../linpack"
5578          else          else
5579              echo "$as_me:$LINENO: result: no" >&5              echo "$ac_t""no" 1>&6
5580  echo "${ECHO_T}no" >&6              { echo "configure: error: User specified '--with-linpack=build' but
5581              { { echo "$as_me:$LINENO: error: User specified '--with-linpack=build' but          configure cannot find the linpack source file $lpak_src_file" 1>&2; exit 1; }
         configure cannot find the linpack source file $lpak_src_file" >&5  
 echo "$as_me: error: User specified '--with-linpack=build' but  
         configure cannot find the linpack source file $lpak_src_file" >&2;}  
    { (exit 1); exit 1; }; }  
5582          fi          fi
5583          ;;          ;;
5584      *yes)      *yes)
# Line 10764  echo "$as_me: error: User specified '--w Line 5589  echo "$as_me: error: User specified '--w
5589      #  disable all Fortran and print a warning.      #  disable all Fortran and print a warning.
5590          for ac_prog in liblpak.a libasclpak.a          for ac_prog in liblpak.a libasclpak.a
5591  do  do
5592    # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
5593  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
5594  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5595  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:5596: checking for $ac_word" >&5
5596  if test "${ac_cv_path_LPAKLIB+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_path_LPAKLIB'+set}'`\" = set"; then
5597    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
5598  else  else
5599    case $LPAKLIB in    case "$LPAKLIB" in
5600    [\\/]* | ?:[\\/]*)    /*)
5601    ac_cv_path_LPAKLIB="$LPAKLIB" # Let the user override the test with a path.    ac_cv_path_LPAKLIB="$LPAKLIB" # Let the user override the test with a path.
5602    ;;    ;;
5603      ?:/*)          
5604      ac_cv_path_LPAKLIB="$LPAKLIB" # Let the user override the test with a dos path.
5605      ;;
5606    *)    *)
5607    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5608  for as_dir in $asc_f77_support_dirs    ac_dummy="$asc_f77_support_dirs"
5609  do    for ac_dir in $ac_dummy; do
5610    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
5611    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
5612    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_path_LPAKLIB="$ac_dir/$ac_word"
5613    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
5614      ac_cv_path_LPAKLIB="$as_dir/$ac_word$ac_exec_ext"      fi
5615      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
5616      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
5617    ;;    ;;
5618  esac  esac
5619  fi  fi
5620  LPAKLIB=$ac_cv_path_LPAKLIB  LPAKLIB="$ac_cv_path_LPAKLIB"
   
5621  if test -n "$LPAKLIB"; then  if test -n "$LPAKLIB"; then
5622    echo "$as_me:$LINENO: result: $LPAKLIB" >&5    echo "$ac_t""$LPAKLIB" 1>&6
 echo "${ECHO_T}$LPAKLIB" >&6  
5623  else  else
5624    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
5625  fi  fi
5626    
5627    test -n "$LPAKLIB" && break  test -n "$LPAKLIB" && break
5628  done  done
5629    
5630          lpak_src_file="$srcdir/../../linpack/d1mach.f"          lpak_src_file="$srcdir/../../linpack/d1mach.f"
5631          if test -z "$LPAKLIB" -a -n "$lpak_src_file" ; then          if test -z "$LPAKLIB" -a -n "$lpak_src_file" ; then
5632              echo "$as_me:$LINENO: checking for linpack source file $lpak_src_file " >&5              echo $ac_n "checking for linpack source file $lpak_src_file ""... $ac_c" 1>&6
5633  echo $ECHO_N "checking for linpack source file $lpak_src_file ... $ECHO_C" >&6  echo "configure:5634: checking for linpack source file $lpak_src_file " >&5
5634              if test -f $lpak_src_file ; then              if test -f $lpak_src_file ; then
5635                  echo "$as_me:$LINENO: result: yes" >&5                  echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
5636  #AWW20041119:           LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a"  #AWW20041119:           LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a"
5637              LPAKLIB="$ascpwd/../generic/archive/libasclpak.a"              LPAKLIB="$ascpwd/../generic/archive/libasclpak.a"
5638              make_lpaklib='make-lpaklib'              make_lpaklib='make-lpaklib'
# Line 10821  echo "${ECHO_T}yes" >&6 Line 5641  echo "${ECHO_T}yes" >&6
5641  #AWW20041206:           asc_subdirs="$asc_subdirs ../linpack"  #AWW20041206:           asc_subdirs="$asc_subdirs ../linpack"
5642              asc_subdirs="$asc_subdirs ../../linpack"              asc_subdirs="$asc_subdirs ../../linpack"
5643              else              else
5644                  echo "$as_me:$LINENO: result: no" >&5                  echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
5645              fi              fi
5646          fi          fi
5647          if test -z "$LPAKLIB" ; then          if test -z "$LPAKLIB" ; then
5648          with_fortran=no          with_fortran=no
5649              { echo "$as_me:$LINENO: WARNING: Cannot find liblpak.a, libasclpak.a, nor linpack              echo "configure: warning: Cannot find liblpak.a, libasclpak.a, nor linpack
     source code.  Building ASCEND without integration, MINOS, and CONOPT  
     support.  To specify a specific location for the linpack library, run  
     configure again with the argument:  
         --with-linpack=LPAKLIB  
     where LPAKLIB is the full path to the linpack library file." >&5  
 echo "$as_me: WARNING: Cannot find liblpak.a, libasclpak.a, nor linpack  
5650      source code.  Building ASCEND without integration, MINOS, and CONOPT      source code.  Building ASCEND without integration, MINOS, and CONOPT
5651      support.  To specify a specific location for the linpack library, run      support.  To specify a specific location for the linpack library, run
5652      configure again with the argument:      configure again with the argument:
5653          --with-linpack=LPAKLIB          --with-linpack=LPAKLIB
5654      where LPAKLIB is the full path to the linpack library file." >&2;}      where LPAKLIB is the full path to the linpack library file." 1>&2
5655          fi          fi
5656      ;;      ;;
5657      *)      *)
# Line 10853  esac Line 5666  esac
5666  make_lsodlib=''  make_lsodlib=''
5667  HAVE_LSOD=''  HAVE_LSOD=''
5668    
   
5669  # Check whether --with-lsod or --without-lsod was given.  # Check whether --with-lsod or --without-lsod was given.
5670  if test "${with_lsod+set}" = set; then  if test "${with_lsod+set}" = set; then
5671    withval="$with_lsod"    withval="$with_lsod"
5672      :
5673  else  else
5674    with_lsod=yes    with_lsod=yes
5675  fi;  fi
5676    
5677  case "$with_fortran$with_lsod" in  case "$with_fortran$with_lsod" in
5678      no*)      no*)
5679      #  Fortran is disabled; ignore this option (if present)      #  Fortran is disabled; ignore this option (if present)
# Line 10876  case "$with_fortran$with_lsod" in Line 5689  case "$with_fortran$with_lsod" in
5689      #  For a search for LSOD source code and tell the Makefile      #  For a search for LSOD source code and tell the Makefile
5690      #  to build it; useful for testing configure.      #  to build it; useful for testing configure.
5691          lsod_src_file="$srcdir/../../lsod/lsode.f"          lsod_src_file="$srcdir/../../lsod/lsode.f"
5692          echo "$as_me:$LINENO: checking for lsod source file $lsod_src_file " >&5          echo $ac_n "checking for lsod source file $lsod_src_file ""... $ac_c" 1>&6
5693  echo $ECHO_N "checking for lsod source file $lsod_src_file ... $ECHO_C" >&6  echo "configure:5694: checking for lsod source file $lsod_src_file " >&5
5694          if test -f $lsod_src_file ; then          if test -f $lsod_src_file ; then
5695              echo "$as_me:$LINENO: result: yes" >&5              echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
5696  #AWW20041119:            LSODLIB="$ascpwd/ascend4/archive/libinteg.a"  #AWW20041119:            LSODLIB="$ascpwd/ascend4/archive/libinteg.a"
5697              LSODLIB="$ascpwd/../generic/archive/libinteg.a"              LSODLIB="$ascpwd/../generic/archive/libinteg.a"
5698          make_lsodlib='make-lsodlib'          make_lsodlib='make-lsodlib'
# Line 10890  echo "${ECHO_T}yes" >&6 Line 5702  echo "${ECHO_T}yes" >&6
5702              asc_subdirs="$asc_subdirs ../../lsod"              asc_subdirs="$asc_subdirs ../../lsod"
5703              HAVE_LSOD='-DSTATIC_LSOD'              HAVE_LSOD='-DSTATIC_LSOD'
5704          else          else
5705              echo "$as_me:$LINENO: result: no" >&5              echo "$ac_t""no" 1>&6
5706  echo "${ECHO_T}no" >&6              { echo "configure: error: User specified '--with-lsod=build' but
5707              { { echo "$as_me:$LINENO: error: User specified '--with-lsod=build' but          configure cannot find the lsod source file $lsod_src_file" 1>&2; exit 1; }
         configure cannot find the lsod source file $lsod_src_file" >&5  
 echo "$as_me: error: User specified '--with-lsod=build' but  
         configure cannot find the lsod source file $lsod_src_file" >&2;}  
    { (exit 1); exit 1; }; }  
5708          fi          fi
5709          ;;          ;;
5710      *yes)      *yes)
# Line 10907  echo "$as_me: error: User specified '--w Line 5715  echo "$as_me: error: User specified '--w
5715      #  and print a warning.      #  and print a warning.
5716          for ac_prog in libinteg.a libasclsod.a          for ac_prog in libinteg.a libasclsod.a
5717  do  do
5718    # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
5719  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
5720  echo "$as_me:$LINENO: checking for $ac_word" >&5  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5721  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo "configure:5722: checking for $ac_word" >&5
5722  if test "${ac_cv_path_LSODLIB+set}" = set; then  if eval "test \"`echo '$''{'ac_cv_path_LSODLIB'+set}'`\" = set"; then
5723    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ac_n "(cached) $ac_c" 1>&6
5724  else  else
5725    case $LSODLIB in    case "$LSODLIB" in
5726    [\\/]* | ?:[\\/]*)    /*)
5727    ac_cv_path_LSODLIB="$LSODLIB" # Let the user override the test with a path.    ac_cv_path_LSODLIB="$LSODLIB" # Let the user override the test with a path.
5728    ;;    ;;
5729      ?:/*)          
5730      ac_cv_path_LSODLIB="$LSODLIB" # Let the user override the test with a dos path.
5731      ;;
5732    *)    *)
5733    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5734  for as_dir in $asc_f77_support_dirs    ac_dummy="$asc_f77_support_dirs"
5735  do    for ac_dir in $ac_dummy; do
5736    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
5737    test -z "$as_dir" && as_dir=.      if test -f $ac_dir/$ac_word; then
5738    for ac_exec_ext in '' $ac_executable_extensions; do        ac_cv_path_LSODLIB="$ac_dir/$ac_word"
5739    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        break
5740      ac_cv_path_LSODLIB="$as_dir/$ac_word$ac_exec_ext"      fi
5741      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    done
5742      break 2    IFS="$ac_save_ifs"
   fi  
 done  
 done  
   
5743    ;;    ;;
5744  esac  esac
5745  fi  fi
5746  LSODLIB=$ac_cv_path_LSODLIB  LSODLIB="$ac_cv_path_LSODLIB"
   
5747  if test -n "$LSODLIB"; then  if test -n "$LSODLIB"; then
5748    echo "$as_me:$LINENO: result: $LSODLIB" >&5    echo "$ac_t""$LSODLIB" 1>&6
 echo "${ECHO_T}$LSODLIB" >&6  
5749  else  else
5750    echo "$as_me:$LINENO: result: no" >&5    echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
5751  fi  fi
5752    
5753    test -n "$LSODLIB" && break  test -n "$LSODLIB" && break
5754  done  done
5755    
5756          lsod_src_file="$srcdir/../../lsod/lsode.f"          lsod_src_file="$srcdir/../../lsod/lsode.f"
5757          if test -z "$LSODLIB" -a -n "$lsod_src_file" ; then          if test -z "$LSODLIB" -a -n "$lsod_src_file" ; then
5758              echo "$as_me:$LINENO: checking for lsod source file $lsod_src_file " >&5              echo $ac_n "checking for lsod source file $lsod_src_file ""... $ac_c" 1>&6
5759  echo $ECHO_N "checking for lsod source file $lsod_src_file ... $ECHO_C" >&6  echo "configure:5760: checking for lsod source file $lsod_src_file " >&5
5760              if test -f $lsod_src_file ; then              if test -f $lsod_src_file ; then
5761                  echo "$as_me:$LINENO: result: yes" >&5                  echo "$ac_t""yes" 1>&6
 echo "${ECHO_T}yes" >&6  
5762  #AWW20041119:           LSODLIB="$ascpwd/ascend4/archive/libinteg.a"  #AWW20041119:           LSODLIB="$ascpwd/ascend4/archive/libinteg.a"
5763              LSODLIB="$ascpwd/../generic/archive/libinteg.a"              LSODLIB="$ascpwd/../generic/archive/libinteg.a"
5764              make_lsodlib='make-lsodlib'              make_lsodlib='make-lsodlib'
# Line 10964  echo "${ECHO_T}yes" >&6 Line 5767  echo "${ECHO_T}yes" >&6
5767  #AWW20041206:           asc_subdirs="$asc_subdirs ../lsod"  #AWW20041206:           asc_subdirs="$asc_subdirs ../lsod"
5768              asc_subdirs="$asc_subdirs ../../lsod"              asc_subdirs="$asc_subdirs ../../lsod"
5769              else              else
5770                  echo "$as_me:$LINENO: result: no" >&5                  echo "$ac_t""no" 1>&6
 echo "${ECHO_T}no" >&6  
5771              fi              fi
5772          fi          fi
5773          if test -z "$LSODLIB" ; then          if test -z "$LSODLIB" ; then
5774          with_lsod=no          with_lsod=no
5775              { echo "$as_me:$LINENO: WARNING: Cannot find libinteg.a nor the lsod              echo "configure: warning: Cannot find libinteg.a nor the lsod
     source code.  Building ASCEND without integration  
     support.  To specify a specific location for the lsod library, run  
     configure again with the argument:  
         --with-lsod=LSODLIB  
     where LSODLIB is the full path to the lsod integration library file." >&5  
 echo "$as_me: WARNING: Cannot find libinteg.a nor the lsod  
5776      source code.  Building ASCEND without integration      source code.  Building ASCEND without integration
5777      support.  To specify a specific location for the lsod library, run      support.  To specify a specific location for the lsod library, run
5778      configure again with the argument:      configure again with the argument:
5779          --with-lsod=LSODLIB          --with-lsod=LSODLIB
5780      where LSODLIB is the full path to the lsod integration library file." >&2;}      where LSODLIB is the full path to the lsod integration library file." 1>&2
5781      else      else
5782          HAVE_LSOD='-DSTATIC_LSOD'          HAVE_LSOD='-DSTATIC_LSOD'
5783          fi          fi
# Line 11052  esac Line 5848  esac
5848  tkdir_root=''  tkdir_root=''
5849  tkdir_topbuilddir=''  tkdir_topbuilddir=''
5850    
   
5851  # Check whether --with-tkdir or --without-tkdir was given.  # Check whether --with-tkdir or --without-tkdir was given.
5852  if test "${with_tkdir+set}" = set; then  if test "${with_tkdir+set}" = set; then
5853    withval="$with_tkdir"    withval="$with_tkdir"
5854      :
5855  else  else
5856    with_tkdir=yes    with_tkdir=yes
5857  fi;  fi
5858    
5859  if test ! "X$with_tkdir" = "Xno" ; then  if test ! "X$with_tkdir" = "Xno" ; then
5860      subdir_file_exists='AscendRC'      subdir_file_exists='AscendRC'
5861  #AWW20041117: FIXME next line  #AWW20041117: FIXME next line
# Line 11086  fi Line 5882  fi
5882  models_dir_root=''  models_dir_root=''
5883  models_topbuilddir=''  models_topbuilddir=''
5884    
   
5885  # Check whether --with-models or --without-models was given.  # Check whether --with-models or --without-models was given.
5886  if test "${with_models+set}" = set; then  if test "${with_models+set}" = set; then
5887    withval="$with_models"    withval="$with_models"
5888      :
5889  else  else
5890    with_models=yes    with_models=yes
5891  fi;  fi
5892    
5893  if test ! "X$with_models" = "Xno" ; then  if test ! "X$with_models" = "Xno" ; then
5894      subdir_file_exists='system.a4l'      subdir_file_exists='system.a4l'
5895  #AWW20041117: FIXME next line  #AWW20041117: FIXME next line
# Line 11217  help_topbuilddir='' Line 6013  help_topbuilddir=''
6013  #AWW20041117:   $conoptlib_makefile  #AWW20041117:   $conoptlib_makefile
6014  #AWW20041117:   $minoslib_makefile  #AWW20041117:   $minoslib_makefile
6015    
6016  #AWW20041216:   Mark suggested using the following - except for last  #AWW20041216:   Mark suggested using the following - except for last
6017  #AWW20041216:   except for last six items. Do they matter?  #AWW20041216:   except for last six items. Do they matter?
6018                                                                                                                                                                                                ac_config_files="$ac_config_files ConfigAscend:../../base/generic/ConfigAscend.in Makefile:../../base/generic/Makefile.in bin/ascend4.sh:../../base/generic/bin/ascend4.sh.in Makefile.Rules:../../base/generic/Makefile.Rules.in archive/Makefile:../../base/generic/archive/Makefile.in bin/Makefile:../../base/generic/bin/Makefile.in compiler/Makefile:../../base/generic/compiler/Makefile.in general/Makefile:../../base/generic/general/Makefile.in ../../tcltk98/generic/interface/Makefile:../../tcltk98/generic/interface/Makefile.in lib/Makefile:../../base/generic/lib/Makefile.in packages/Makefile:../../base/generic/packages/Makefile.in solver/Makefile:../../base/generic/solver/Makefile.in utilities/Makefile:../../base/generic/utilities/Makefile.in $tkdir_makefiles $models_makefiles $help_makefiles $blaslib_makefile $lpaklib_makefile $lsodlib_makefile"  trap '' 1 2 15
6019    
6020    trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6021    
6022  test "x$prefix" = xNONE && prefix=$ac_default_prefix  test "x$prefix" = xNONE && prefix=$ac_default_prefix
6023  # Let make expand exec_prefix.  # Let make expand exec_prefix.
6024  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6025    
6026  # VPATH may cause trouble with some makes, so we remove $(srcdir),  # Any assignment to VPATH causes Sun make to only execute
6027  # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and  # the first set of double-colon rules, so remove it if not needed.
6028  # trailing colons and then remove the whole line if VPATH becomes empty  # If there is a colon in the path, we need to keep it.
 # (actually we leave an empty line to preserve line numbers).  
6029  if test "x$srcdir" = x.; then  if test "x$srcdir" = x.; then
6030    ac_vpsub='/^[  ]*VPATH[    ]*=/{    ac_vpsub='/^[     ]*VPATH[    ]*=[^:]*$/d'
 s/:*\$(srcdir):*/:/;  
 s/:*\${srcdir}:*/:/;  
 s/:*@srcdir@:*/:/;  
 s/^\([^=]*=[     ]*\):*/\1/;  
 s/:*$//;  
 s/^[^=]*=[   ]*$//;  
 }'  
6031  fi  fi
6032    
6033    trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6034    
6035  # Transform confdefs.h into DEFS.  # Transform confdefs.h into DEFS.
6036  # Protect against shell expansion while executing Makefile rules.  # Protect against shell expansion while executing Makefile rules.
6037  # Protect against Makefile macro expansion.  # Protect against Makefile macro expansion.
# Line 11251  fi Line 6042  fi
6042  cat >confdef2opt.sed <<\_ACEOF  cat >confdef2opt.sed <<\_ACEOF
6043  t clear  t clear
6044  : clear  : clear
6045  s,^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g  s,^[    ]*#[    ]*define[   ][  ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
6046  t quote  t quote
6047  s,^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g  s,^[    ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
6048  t quote  t quote
6049  d  d
6050  : quote  : quote
6051  s,[  `~#$^&*(){}\\|;'"<>?],\\&,g  s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
6052  s,\[,\\&,g  s,\[,\\&,g
6053  s,\],\\&,g  s,\],\\&,g
6054  s,\$,$$,g  s,\$,$$,g
# Line 11274  DEFS=`sed -n -f confdef2opt.sed confdefs Line 6065  DEFS=`sed -n -f confdef2opt.sed confdefs
6065  rm -f confdef2opt.sed  rm -f confdef2opt.sed
6066    
6067    
6068  ac_libobjs=  # Without the "./", some shells look in PATH for config.status.
 ac_ltlibobjs=  
 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue  
   # 1. Remove the extension, and $U if already installed.  
   ac_i=`echo "$ac_i" |  
      sed 's/\$U\././;s/\.o$//;s/\.obj$//'`  
   # 2. Add them.  
   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"  
   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'  
 done  
 LIBOBJS=$ac_libobjs  
   
 LTLIBOBJS=$ac_ltlibobjs  
   
   
   
6069  : ${CONFIG_STATUS=./config.status}  : ${CONFIG_STATUS=./config.status}
6070  ac_clean_files_save=$ac_clean_files  
6071  ac_clean_files="$ac_clean_files $CONFIG_STATUS"  echo creating $CONFIG_STATUS
6072  { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5  rm -f $CONFIG_STATUS
6073  echo "$as_me: creating $CONFIG_STATUS" >&6;}  cat > $CONFIG_STATUS <<EOF
6074  cat >$CONFIG_STATUS <<_ACEOF  #! /bin/sh
6075  #! $SHELL  # Generated automatically by configure.
 # Generated by $as_me.  
6076  # Run this file to recreate the current configuration.  # Run this file to recreate the current configuration.
6077    # This directory was configured as follows,
6078    # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6079    #
6080    # $0 $ac_configure_args
6081    #
6082  # Compiler output produced by configure, useful for debugging  # Compiler output produced by configure, useful for debugging
6083  # configure, is in config.log if it exists.  # configure, is in ./config.log if it exists.
   
 debug=false  
 ac_cs_recheck=false  
 ac_cs_silent=false  
 SHELL=\${CONFIG_SHELL-$SHELL}  
 _ACEOF  
   
 cat >>$CONFIG_STATUS <<\_ACEOF  
 ## --------------------- ##  
 ## M4sh Initialization.  ##  
 ## --------------------- ##  
   
 # Be Bourne compatible  
 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+"$@"}'='"$@"'  
 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then  
   set -o posix  
 fi  
 DUALCASE=1; export DUALCASE # for MKS sh  
   
 # Support unset when possible.  
 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then  
   as_unset=unset  
 else  
   as_unset=false  
 fi  
   
   
 # Work around bugs in pre-3.0 UWIN ksh.  
 $as_unset ENV MAIL MAILPATH  
 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  
   fi  
 done  
   
 # Required to use basename.  
 if expr a : '\(a\)' >/dev/null 2>&1; 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'`  
   
   
 # PATH needs CR, and LINENO needs CR and PATH.  
 # 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  
   
   
   as_lineno_1=$LINENO  
   as_lineno_2=$LINENO  
   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`  
   test "x$as_lineno_1" != "x$as_lineno_2" &&  
   test "x$as_lineno_3"  = "x$as_lineno_2"  || {  
   # Find who we are.  Look in the path if we contain no path at all  
   # relative or not.  
   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  
   
        ;;  
   esac  
   # We did not find ourselves, most probably we were run as `sh COMMAND'  
   # in which case we are not to be found in the path.  
   if test "x$as_myself" = x; then  
     as_myself=$0  
   fi  
   if test ! -f "$as_myself"; then  
     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5  
 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}  
    { (exit 1); exit 1; }; }  
   fi  
   case $CONFIG_SHELL in  
   '')  
     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=.  
   for as_base in sh bash ksh sh5; do  
      case $as_dir in  
      /*)  
        if ("$as_dir/$as_base" -c '  
   as_lineno_1=$LINENO  
   as_lineno_2=$LINENO  
   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`  
   test "x$as_lineno_1" != "x$as_lineno_2" &&  
   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then  
          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }  
          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }  
          CONFIG_SHELL=$as_dir/$as_base  
          export CONFIG_SHELL  
          exec "$CONFIG_SHELL" "$0" ${1+"$@"}  
        fi;;  
      esac  
        done  
 done  
 ;;  
   esac  
   
   # 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 before each line; the second 'sed' does the real  
   # work.  The second script uses 'N' to pair each line-number line  
   # with the numbered line, 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  
   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)  
   sed '=' <$as_myself |  
     sed '  
       N  
       s,$,-,  
       : loop  
       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,  
       t loop  
       s,-$,,  
       s,^['$as_cr_digits']*\n,,  
     ' >$as_me.lineno &&  
   chmod +x $as_me.lineno ||  
     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5  
 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 sensible to this).  
   . ./$as_me.lineno  
   # Exit status is that of the last command.  
   exit  
 }  
   
   
 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in  
   *c*,-n*) ECHO_N= ECHO_C='  
 ' ECHO_T='  ' ;;  
   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;  
   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;  
 esac  
   
 if expr a : '\(a\)' >/dev/null 2>&1; then  
   as_expr=expr  
 else  
   as_expr=false  
 fi  
   
 rm -f conf$$ conf$$.exe conf$$.file  
 echo >conf$$.file  
 if ln -s conf$$.file conf$$ 2>/dev/null; then  
   # We could just check for DJGPP; but this test a) works b) is more generic  
   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).  
   if test -f conf$$.exe; then  
     # Don't use ln at all; we don't have any links  
     as_ln_s='cp -p'  
   else  
     as_ln_s='ln -s'  
   fi  
 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$$.file  
   
 if mkdir -p . 2>/dev/null; then  
   as_mkdir_p=:  
 else  
   test -d ./-p && rmdir ./-p  
   as_mkdir_p=false  
 fi  
   
 as_executable_p="test -f"  
   
 # Sed expression to map a string onto a valid CPP name.  
 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"  
   
 # Sed expression to map a string onto a valid variable name.  
 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"  
   
   
 # IFS  
 # We need space, tab and new line, in precisely that order.  
 as_nl='  
 '  
 IFS="   $as_nl"  
   
 # CDPATH.  
 $as_unset CDPATH  
   
 exec 6>&1  
   
 # Open the log real soon, to keep \$[0] and so on meaningful, and to  
 # report actual input values of CONFIG_FILES etc. instead of their  
 # values after options handling.  Logging --version etc. is OK.  
 exec 5>>config.log  
 {  
   echo  
   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX  
 ## Running $as_me. ##  
 _ASBOX  
 } >&5  
 cat >&5 <<_CSEOF  
   
 This file was extended by $as_me, which was  
 generated by GNU Autoconf 2.59.  Invocation command line was  
   
   CONFIG_FILES    = $CONFIG_FILES  
   CONFIG_HEADERS  = $CONFIG_HEADERS  
   CONFIG_LINKS    = $CONFIG_LINKS  
   CONFIG_COMMANDS = $CONFIG_COMMANDS  
   $ $0 $@  
   
 _CSEOF  
 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5  
 echo >&5  
 _ACEOF  
   
 # Files that config.status was made for.  
 if test -n "$ac_config_files"; then  
   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS  
 fi  
   
 if test -n "$ac_config_headers"; then  
   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS  
 fi  
   
 if test -n "$ac_config_links"; then  
   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS  
 fi  
   
 if test -n "$ac_config_commands"; then  
   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS  
 fi  
   
 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, 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  
6084    
6085  Report bugs to <bug-autoconf@gnu.org>."  ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6086  _ACEOF  for ac_option
   
 cat >>$CONFIG_STATUS <<_ACEOF  
 ac_cs_version="\\  
 config.status  
 configured by $0, generated by GNU Autoconf 2.59,  
   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"  
   
 Copyright (C) 2003 Free Software Foundation, Inc.  
 This config.status script is free software; the Free Software Foundation  
 gives unlimited permission to copy, distribute and modify it."  
 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  
6087  do  do
6088    case $1 in    case "\$ac_option" in
   --*=*)  
     ac_option=`expr "x$1" : 'x\([^=]*\)='`  
     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`  
     ac_shift=:  
     ;;  
   -*)  
     ac_option=$1  
     ac_optarg=$2  
     ac_shift=shift  
     ;;  
   *) # This is not an option, so the user has probably given explicit  
      # arguments.  
      ac_option=$1  
      ac_need_defaults=false;;  
   esac  
   
   case $ac_option in  
   # Handling of the options.  
 _ACEOF  
 cat >>$CONFIG_STATUS <<\_ACEOF  
6089    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6090      ac_cs_recheck=: ;;      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6091    --version | --vers* | -V )      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6092      echo "$ac_cs_version"; exit 0 ;;    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6093    --he | --h)      echo "$CONFIG_STATUS generated by autoconf version 2.13"
6094      # Conflict between --help and --header      exit 0 ;;
6095      { { echo "$as_me:$LINENO: error: ambiguous option: $1    -help | --help | --hel | --he | --h)
6096  Try \`$0 --help' for more information." >&5      echo "\$ac_cs_usage"; exit 0 ;;
6097  echo "$as_me: error: ambiguous option: $1    *) echo "\$ac_cs_usage"; exit 1 ;;
 Try \`$0 --help' for more information." >&2;}  
    { (exit 1); exit 1; }; };;  
   --help | --hel | -h )  
     echo "$ac_cs_usage"; exit 0 ;;  
   --debug | --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;;  
   -q | -quiet | --quiet | --quie | --qui | --qu | --q \  
   | -silent | --silent | --silen | --sile | --sil | --si | --s)  
     ac_cs_silent=: ;;  
   
   # This is an error.  
   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1  
 Try \`$0 --help' for more information." >&5  
 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" ;;  
   
   esac  
   shift  
 done  
   
 ac_configure_extra_args=  
   
 if $ac_cs_silent; then  
   exec 6>/dev/null  
   ac_configure_extra_args="$ac_configure_extra_args --silent"  
 fi  
   
 _ACEOF  
 cat >>$CONFIG_STATUS <<_ACEOF  
 if \$ac_cs_recheck; then  
   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6  
   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion  
 fi  
   
 _ACEOF  
   
   
   
   
   
 cat >>$CONFIG_STATUS <<\_ACEOF  
 for ac_config_target in $ac_config_targets  
 do  
   case "$ac_config_target" in  
   # Handling of arguments.  
   "ConfigAscend" ) CONFIG_FILES="$CONFIG_FILES ConfigAscend:../../base/generic/ConfigAscend.in" ;;  
   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:../../base/generic/Makefile.in" ;;  
   "bin/ascend4.sh" ) CONFIG_FILES="$CONFIG_FILES bin/ascend4.sh:../../base/generic/bin/ascend4.sh.in" ;;  
   "Makefile.Rules" ) CONFIG_FILES="$CONFIG_FILES Makefile.Rules:../../base/generic/Makefile.Rules.in" ;;  
   "archive/Makefile" ) CONFIG_FILES="$CONFIG_FILES archive/Makefile:../../base/generic/archive/Makefile.in" ;;  
   "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile:../../base/generic/bin/Makefile.in" ;;  
   "compiler/Makefile" ) CONFIG_FILES="$CONFIG_FILES compiler/Makefile:../../base/generic/compiler/Makefile.in" ;;  
   "general/Makefile" ) CONFIG_FILES="$CONFIG_FILES general/Makefile:../../base/generic/general/Makefile.in" ;;  
   "../../tcltk98/generic/interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES ../../tcltk98/generic/interface/Makefile:../../tcltk98/generic/interface/Makefile.in" ;;  
   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile:../../base/generic/lib/Makefile.in" ;;  
   "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile:../../base/generic/packages/Makefile.in" ;;  
   "solver/Makefile" ) CONFIG_FILES="$CONFIG_FILES solver/Makefile:../../base/generic/solver/Makefile.in" ;;  
   "utilities/Makefile" ) CONFIG_FILES="$CONFIG_FILES utilities/Makefile:../../base/generic/utilities/Makefile.in" ;;  
   "$tkdir_makefiles" ) CONFIG_FILES="$CONFIG_FILES $tkdir_makefiles" ;;  
   "$models_makefiles" ) CONFIG_FILES="$CONFIG_FILES $models_makefiles" ;;  
   "$help_makefiles" ) CONFIG_FILES="$CONFIG_FILES $help_makefiles" ;;  
   "$blaslib_makefile" ) CONFIG_FILES="$CONFIG_FILES $blaslib_makefile" ;;  
   "$lpaklib_makefile" ) CONFIG_FILES="$CONFIG_FILES $lpaklib_makefile" ;;  
   "$lsodlib_makefile" ) CONFIG_FILES="$CONFIG_FILES $lsodlib_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; }; };;  
6098    esac    esac
6099  done  done
6100    
6101  # If the user did not use the arguments to specify the items to instantiate,  ac_given_srcdir=$srcdir
6102  # then the envvar interface is used.  Set only those that are not.  ac_given_INSTALL="$INSTALL"
 # We use the long form for the default assignment because of an extremely  
 # bizarre bug on SunOS 4.1.3.  
 if $ac_need_defaults; then  
   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files  
 fi  
   
 # Have a temporary directory for convenience.  Make it in the build tree  
 # simply because there is no reason to put it here, and in addition,  
 # creating and moving files from /tmp can sometimes cause problems.  
 # Create a temporary directory, and hook for its removal unless debugging.  
 $debug ||  
 {  
   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0  
   trap '{ (exit 1); exit 1; }' 1 2 13 15  
 }  
   
 # Create a (secure) tmp directory for tmp files.  
   
 {  
   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&  
   test -n "$tmp" && test -d "$tmp"  
 }  ||  
 {  
   tmp=./confstat$$-$RANDOM  
   (umask 077 && mkdir $tmp)  
 } ||  
 {  
    echo "$me: cannot create a temporary directory in ." >&2  
    { (exit 1); exit 1; }  
 }  
   
 _ACEOF  
   
 cat >>$CONFIG_STATUS <<_ACEOF  
6103    
6104  #  trap 'rm -fr `echo "ConfigAscend:../../base/generic/ConfigAscend.in
6105  # CONFIG_FILES section.         Makefile:../../base/generic/Makefile.in
6106  #         bin/ascend4.sh:../../base/generic/bin/ascend4.sh.in
6107           Makefile.Rules:../../base/generic/Makefile.Rules.in
6108           archive/Makefile:../../base/generic/archive/Makefile.in
6109           bin/Makefile:../../base/generic/bin/Makefile.in
6110           compiler/Makefile:../../base/generic/compiler/Makefile.in
6111           general/Makefile:../../base/generic/general/Makefile.in
6112           ../../tcltk98/generic/interface/Makefile:../../tcltk98/generic/interface/Makefile.in
6113           lib/Makefile:../../base/generic/lib/Makefile.in
6114           packages/Makefile:../../base/generic/packages/Makefile.in
6115           solver/Makefile:../../base/generic/solver/Makefile.in
6116           utilities/Makefile:../../base/generic/utilities/Makefile.in
6117           $tkdir_makefiles
6118           $models_makefiles
6119           $help_makefiles
6120           $blaslib_makefile
6121           $lpaklib_makefile
6122           $lsodlib_makefile
6123           " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6124    EOF
6125    cat >> $CONFIG_STATUS <<EOF
6126    
6127    # Protect against being on the right side of a sed subst in config.status.
6128    sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6129     s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6130    $ac_vpsub
6131    $extrasub
6132    s%@SHELL@%$SHELL%g
6133    s%@CFLAGS@%$CFLAGS%g
6134    s%@CPPFLAGS@%$CPPFLAGS%g
6135    s%@CXXFLAGS@%$CXXFLAGS%g
6136    s%@FFLAGS@%$FFLAGS%g
6137    s%@DEFS@%$DEFS%g
6138    s%@LDFLAGS@%$LDFLAGS%g
6139    s%@LIBS@%$LIBS%g
6140    s%@exec_prefix@%$exec_prefix%g
6141    s%@prefix@%$prefix%g
6142    s%@program_transform_name@%$program_transform_name%g
6143    s%@bindir@%$bindir%g
6144    s%@sbindir@%$sbindir%g
6145    s%@libexecdir@%$libexecdir%g
6146    s%@datadir@%$datadir%g
6147    s%@sysconfdir@%$sysconfdir%g
6148    s%@sharedstatedir@%$sharedstatedir%g
6149    s%@localstatedir@%$localstatedir%g
6150    s%@libdir@%$libdir%g
6151    s%@includedir@%$includedir%g
6152    s%@oldincludedir@%$oldincludedir%g
6153    s%@infodir@%$infodir%g
6154    s%@mandir@%$mandir%g
6155    s%@RANLIB@%$RANLIB%g
6156    s%@LN_S@%$LN_S%g
6157    s%@SET_MAKE@%$SET_MAKE%g
6158    s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6159    s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6160    s%@INSTALL_DATA@%$INSTALL_DATA%g
6161    s%@host@%$host%g
6162    s%@host_alias@%$host_alias%g
6163    s%@host_cpu@%$host_cpu%g
6164    s%@host_vendor@%$host_vendor%g
6165    s%@host_os@%$host_os%g
6166    s%@asc_cc1@%$asc_cc1%g
6167    s%@asc_cc2@%$asc_cc2%g
6168    s%@asc_cc3@%$asc_cc3%g
6169    s%@CC@%$CC%g
6170    s%@CPP@%$CPP%g
6171    s%@DEBUG_LIBS@%$DEBUG_LIBS%g
6172    s%@YACC@%$YACC%g
6173    s%@LEX@%$LEX%g
6174    s%@LEXLIB@%$LEXLIB%g
6175    s%@TCL_LIB@%$TCL_LIB%g
6176    s%@TCL_HDR@%$TCL_HDR%g
6177    s%@TK_LIB@%$TK_LIB%g
6178    s%@TK_HDR@%$TK_HDR%g
6179    s%@TKTABLE_LIB@%$TKTABLE_LIB%g
6180    s%@F77@%$F77%g
6181    s%@BLASLIB@%$BLASLIB%g
6182    s%@LPAKLIB@%$LPAKLIB%g
6183    s%@LSODLIB@%$LSODLIB%g
6184    s%@ascpwd@%$ascpwd%g
6185    s%@fullpathsrcdir@%$fullpathsrcdir%g
6186    s%@asc_include@%$asc_include%g
6187    s%@scanner_src@%$scanner_src%g
6188    s%@typer_src@%$typer_src%g
6189    s%@MATH_LIBS@%$MATH_LIBS%g
6190    s%@X11_INCLUDES@%$X11_INCLUDES%g
6191    s%@X11_LIBRARIES@%$X11_LIBRARIES%g
6192    s%@X11_RUN_PATH@%$X11_RUN_PATH%g
6193    s%@X11_EXTRA_LIBS@%$X11_EXTRA_LIBS%g
6194    s%@DL_LIBS@%$DL_LIBS%g
6195    s%@LD_FLAGS@%$LD_FLAGS%g
6196    s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
6197    s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
6198    s%@SHLIB_LD@%$SHLIB_LD%g
6199    s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
6200    s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
6201    s%@ASC_LIB_SUFFIX@%$ASC_LIB_SUFFIX%g
6202    s%@ASC_TK_LIBRARY@%$ASC_TK_LIBRARY%g
6203    s%@ASC_TCL_LIBRARY@%$ASC_TCL_LIBRARY%g
6204    s%@HAVE_TKTABLE@%$HAVE_TKTABLE%g
6205    s%@asc_subdirs@%$asc_subdirs%g
6206    s%@F77LIBS@%$F77LIBS%g
6207    s%@make_blaslib@%$make_blaslib%g
6208    s%@make_lpaklib@%$make_lpaklib%g
6209    s%@make_lsodlib@%$make_lsodlib%g
6210    s%@HAVE_LSOD@%$HAVE_LSOD%g
6211    s%@tkdir_root@%$tkdir_root%g
6212    s%@tkdir_topbuilddir@%$tkdir_topbuilddir%g
6213    s%@models_dir_root@%$models_dir_root%g
6214    s%@models_topbuilddir@%$models_topbuilddir%g
6215    s%@help_dir_root@%$help_dir_root%g
6216    s%@help_topbuilddir@%$help_topbuilddir%g
6217    
 # 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  
   # Protect against being on the right side of a sed subst in config.status.  
   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;  
    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF  
 s,@SHELL@,$SHELL,;t t  
 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t  
 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t  
 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t  
 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t  
 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t  
 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t  
 s,@exec_prefix@,$exec_prefix,;t t  
 s,@prefix@,$prefix,;t t  
 s,@program_transform_name@,$program_transform_name,;t t  
 s,@bindir@,$bindir,;t t  
 s,@sbindir@,$sbindir,;t t  
 s,@libexecdir@,$libexecdir,;t t  
 s,@datadir@,$datadir,;t t  
 s,@sysconfdir@,$sysconfdir,;t t  
 s,@sharedstatedir@,$sharedstatedir,;t t  
 s,@localstatedir@,$localstatedir,;t t  
 s,@libdir@,$libdir,;t t  
 s,@includedir@,$includedir,;t t  
 s,@oldincludedir@,$oldincludedir,;t t  
 s,@infodir@,$infodir,;t t  
 s,@mandir@,$mandir,;t t  
 s,@build_alias@,$build_alias,;t t  
 s,@host_alias@,$host_alias,;t t  
 s,@target_alias@,$target_alias,;t t  
 s,@DEFS@,$DEFS,;t t  
 s,@ECHO_C@,$ECHO_C,;t t  
 s,@ECHO_N@,$ECHO_N,;t t  
 s,@ECHO_T@,$ECHO_T,;t t  
 s,@LIBS@,$LIBS,;t t  
 s,@RANLIB@,$RANLIB,;t t  
 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t  
 s,@LN_S@,$LN_S,;t t  
 s,@SET_MAKE@,$SET_MAKE,;t t  
 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t  
 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t  
 s,@INSTALL_DATA@,$INSTALL_DATA,;t t  
 s,@build@,$build,;t t  
 s,@build_cpu@,$build_cpu,;t t  
 s,@build_vendor@,$build_vendor,;t t  
 s,@build_os@,$build_os,;t t  
 s,@host@,$host,;t t  
 s,@host_cpu@,$host_cpu,;t t  
 s,@host_vendor@,$host_vendor,;t t  
 s,@host_os@,$host_os,;t t  
 s,@CC@,$CC,;t t  
 s,@CFLAGS@,$CFLAGS,;t t  
 s,@LDFLAGS@,$LDFLAGS,;t t  
 s,@CPPFLAGS@,$CPPFLAGS,;t t  
 s,@ac_ct_CC@,$ac_ct_CC,;t t  
 s,@EXEEXT@,$EXEEXT,;t t  
 s,@OBJEXT@,$OBJEXT,;t t  
 s,@asc_cc1@,$asc_cc1,;t t  
 s,@asc_cc2@,$asc_cc2,;t t  
 s,@asc_cc3@,$asc_cc3,;t t  
 s,@CPP@,$CPP,;t t  
 s,@DEBUG_LIBS@,$DEBUG_LIBS,;t t  
 s,@EGREP@,$EGREP,;t t  
 s,@YACC@,$YACC,;t t  
 s,@LEX@,$LEX,;t t  
 s,@LEXLIB@,$LEXLIB,;t t  
 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t  
 s,@TCL_LIB@,$TCL_LIB,;t t  
 s,@TCL_HDR@,$TCL_HDR,;t t  
 s,@TK_LIB@,$TK_LIB,;t t  
 s,@TK_HDR@,$TK_HDR,;t t  
 s,@TKTABLE_LIB@,$TKTABLE_LIB,;t t  
 s,@F77@,$F77,;t t  
 s,@BLASLIB@,$BLASLIB,;t t  
 s,@LPAKLIB@,$LPAKLIB,;t t  
 s,@LSODLIB@,$LSODLIB,;t t  
 s,@ascpwd@,$ascpwd,;t t  
 s,@fullpathsrcdir@,$fullpathsrcdir,;t t  
 s,@asc_include@,$asc_include,;t t  
 s,@scanner_src@,$scanner_src,;t t  
 s,@typer_src@,$typer_src,;t t  
 s,@MATH_LIBS@,$MATH_LIBS,;t t  
 s,@X11_INCLUDES@,$X11_INCLUDES,;t t  
 s,@X11_LIBRARIES@,$X11_LIBRARIES,;t t  
 s,@X11_RUN_PATH@,$X11_RUN_PATH,;t t  
 s,@X11_EXTRA_LIBS@,$X11_EXTRA_LIBS,;t t  
 s,@DL_LIBS@,$DL_LIBS,;t t  
 s,@LD_FLAGS@,$LD_FLAGS,;t t  
 s,@LD_SEARCH_FLAGS@,$LD_SEARCH_FLAGS,;t t  
 s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t  
 s,@SHLIB_LD@,$SHLIB_LD,;t t  
 s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t  
 s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t  
 s,@ASC_LIB_SUFFIX@,$ASC_LIB_SUFFIX,;t t  
 s,@ASC_TK_LIBRARY@,$ASC_TK_LIBRARY,;t t  
 s,@ASC_TCL_LIBRARY@,$ASC_TCL_LIBRARY,;t t  
 s,@HAVE_TKTABLE@,$HAVE_TKTABLE,;t t  
 s,@asc_subdirs@,$asc_subdirs,;t t  
 s,@F77LIBS@,$F77LIBS,;t t  
 s,@make_blaslib@,$make_blaslib,;t t  
 s,@make_lpaklib@,$make_lpaklib,;t t  
 s,@make_lsodlib@,$make_lsodlib,;t t  
 s,@HAVE_LSOD@,$HAVE_LSOD,;t t  
 s,@tkdir_root@,$tkdir_root,;t t  
 s,@tkdir_topbuilddir@,$tkdir_topbuilddir,;t t  
 s,@models_dir_root@,$models_dir_root,;t t  
 s,@models_topbuilddir@,$models_topbuilddir,;t t  
 s,@help_dir_root@,$help_dir_root,;t t  
 s,@help_topbuilddir@,$help_topbuilddir,;t t  
 s,@LIBOBJS@,$LIBOBJS,;t t  
 s,@LTLIBOBJS@,$LTLIBOBJS,;t t  
6218  CEOF  CEOF
6219    EOF
6220    
6221  _ACEOF  cat >> $CONFIG_STATUS <<\EOF
6222    
6223    cat >>$CONFIG_STATUS <<\_ACEOF  # Split the substitutions into bite-sized pieces for seds with
6224    # Split the substitutions into bite-sized pieces for seds with  # small command number limits, like on Digital OSF/1 and HP-UX.
6225    # small command number limits, like on Digital OSF/1 and HP-UX.  ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6226    ac_max_sed_lines=48  ac_file=1 # Number of current file.
6227    ac_sed_frag=1 # Number of current file.  ac_beg=1 # First line for current file.
6228    ac_beg=1 # First line for current file.  ac_end=$ac_max_sed_cmds # Line after last line for current file.
6229    ac_end=$ac_max_sed_lines # Line after last line for current file.  ac_more_lines=:
6230    ac_more_lines=:  ac_sed_cmds=""
6231    ac_sed_cmds=  while $ac_more_lines; do
6232    while $ac_more_lines; do    if test $ac_beg -gt 1; then
6233      if test $ac_beg -gt 1; then      sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6234        sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag    else
6235      else      sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6236        sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag    fi
6237      fi    if test ! -s conftest.s$ac_file; then
6238      if test ! -s $tmp/subs.frag; then      ac_more_lines=false
6239        ac_more_lines=false      rm -f conftest.s$ac_file
6240      else
6241        if test -z "$ac_sed_cmds"; then
6242          ac_sed_cmds="sed -f conftest.s$ac_file"
6243      else      else
6244        # The purpose of the label and of the branching condition is to        ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
       # speed up the sed processing (if there are no `@' at all, there  
       # is no need to browse any of the substitutions).  
       # These are the two extra sed commands mentioned above.  
       (echo ':t  
   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed  
       if test -z "$ac_sed_cmds"; then  
     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"  
       else  
     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"  
       fi  
       ac_sed_frag=`expr $ac_sed_frag + 1`  
       ac_beg=$ac_end  
       ac_end=`expr $ac_end + $ac_max_sed_lines`  
6245      fi      fi
6246    done      ac_file=`expr $ac_file + 1`
6247    if test -z "$ac_sed_cmds"; then      ac_beg=$ac_end
6248      ac_sed_cmds=cat      ac_end=`expr $ac_end + $ac_max_sed_cmds`
6249    fi    fi
6250  fi # test -n "$CONFIG_FILES"  done
6251    if test -z "$ac_sed_cmds"; then
6252  _ACEOF    ac_sed_cmds=cat
6253  cat >>$CONFIG_STATUS <<\_ACEOF  fi
6254  for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue  EOF
6255    
6256    cat >> $CONFIG_STATUS <<EOF
6257    
6258    CONFIG_FILES=\${CONFIG_FILES-"ConfigAscend:../../base/generic/ConfigAscend.in
6259           Makefile:../../base/generic/Makefile.in
6260           bin/ascend4.sh:../../base/generic/bin/ascend4.sh.in
6261           Makefile.Rules:../../base/generic/Makefile.Rules.in
6262           archive/Makefile:../../base/generic/archive/Makefile.in
6263           bin/Makefile:../../base/generic/bin/Makefile.in
6264           compiler/Makefile:../../base/generic/compiler/Makefile.in
6265           general/Makefile:../../base/generic/general/Makefile.in
6266           ../../tcltk98/generic/interface/Makefile:../../tcltk98/generic/interface/Makefile.in
6267           lib/Makefile:../../base/generic/lib/Makefile.in
6268           packages/Makefile:../../base/generic/packages/Makefile.in
6269           solver/Makefile:../../base/generic/solver/Makefile.in
6270           utilities/Makefile:../../base/generic/utilities/Makefile.in
6271           $tkdir_makefiles
6272           $models_makefiles
6273           $help_makefiles
6274           $blaslib_makefile
6275           $lpaklib_makefile
6276           $lsodlib_makefile
6277           "}
6278    EOF
6279    cat >> $CONFIG_STATUS <<\EOF
6280    for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6281    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6282    case $ac_file in    case "$ac_file" in
6283    - | *:- | *:-:* ) # input from stdin    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6284      cat >$tmp/stdin         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6285      ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`    *) ac_file_in="${ac_file}.in" ;;
     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;  
   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`  
     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;  
   * )   ac_file_in=$ac_file.in ;;  
6286    esac    esac
6287    
6288    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.    # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
   ac_dir=`(dirname "$ac_file") 2>/dev/null ||  
 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \  
      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'`  
   { if $as_mkdir_p; then  
     mkdir -p "$ac_dir"  
   else  
     as_dir="$ac_dir"  
     as_dirs=  
     while test ! -d "$as_dir"; do  
       as_dirs="$as_dir $as_dirs"  
       as_dir=`(dirname "$as_dir") 2>/dev/null ||  
 $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'`  
     done  
     test ! -n "$as_dirs" || mkdir $as_dirs  
   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5  
 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}  
    { (exit 1); exit 1; }; }; }  
   
   ac_builddir=.  
   
 if test "$ac_dir" != .; then  
   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`  
   # A "../" for each directory in $ac_dir_suffix.  
   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`  
 else  
   ac_dir_suffix= ac_top_builddir=  
 fi  
   
 case $srcdir in  
   .)  # No --srcdir option.  We are building in place.  
     ac_srcdir=.  
     if test -z "$ac_top_builddir"; then  
        ac_top_srcdir=.  
     else  
        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`  
     fi ;;  
   [\\/]* | ?:[\\/]* )  # Absolute path.  
     ac_srcdir=$srcdir$ac_dir_suffix;  
     ac_top_srcdir=$srcdir ;;  
   *) # Relative path.  
     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix  
     ac_top_srcdir=$ac_top_builddir$srcdir ;;  
 esac  
6289    
6290  # Do not use `cd foo && pwd` to compute absolute paths, because    # Remove last slash and all that follows it.  Not all systems have dirname.
6291  # the directories may not exist.    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6292  case `pwd` in    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6293  .) ac_abs_builddir="$ac_dir";;      # The file is in a subdirectory.
6294  *)      test ! -d "$ac_dir" && mkdir "$ac_dir"
6295    case "$ac_dir" in      ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6296    .) ac_abs_builddir=`pwd`;;      # A "../" for each directory in $ac_dir_suffix.
6297    [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;      ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6298    *) ac_abs_builddir=`pwd`/"$ac_dir";;    else
6299    esac;;      ac_dir_suffix= ac_dots=
6300  esac    fi
 case $ac_abs_builddir in  
 .) ac_abs_top_builddir=${ac_top_builddir}.;;  
 *)  
   case ${ac_top_builddir}. in  
   .) ac_abs_top_builddir=$ac_abs_builddir;;  
   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;  
   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;  
   esac;;  
 esac  
 case $ac_abs_builddir in  
 .) ac_abs_srcdir=$ac_srcdir;;  
 *)  
   case $ac_srcdir in  
   .) ac_abs_srcdir=$ac_abs_builddir;;  
   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;  
   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;  
   esac;;  
 esac  
 case $ac_abs_builddir in  
 .) ac_abs_top_srcdir=$ac_top_srcdir;;  
 *)  
   case $ac_top_srcdir in  
   .) ac_abs_top_srcdir=$ac_abs_builddir;;  
   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;  
   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;  
   esac;;  
 esac  
6301    
6302      case "$ac_given_srcdir" in
6303      .)  srcdir=.
6304          if test -z "$ac_dots"; then top_srcdir=.
6305          else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6306      /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6307      *) # Relative path.
6308        srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6309        top_srcdir="$ac_dots$ac_given_srcdir" ;;
6310      esac
6311    
6312    case $INSTALL in    case "$ac_given_INSTALL" in
6313    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;    [/$]*) INSTALL="$ac_given_INSTALL" ;;
6314    *) ac_INSTALL=$ac_top_builddir$INSTALL ;;    *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6315    esac    esac
6316    
6317    if test x"$ac_file" != x-; then    echo creating "$ac_file"
6318      { echo "$as_me:$LINENO: creating $ac_file" >&5    rm -f "$ac_file"
6319  echo "$as_me: creating $ac_file" >&6;}    configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6320      rm -f "$ac_file"    case "$ac_file" in
6321    fi    *Makefile*) ac_comsub="1i\\
6322    # Let's still pretend it is `configure' which instantiates (i.e., don't  # $configure_input" ;;
6323    # use $as_me), people would be surprised to read:    *) ac_comsub= ;;
6324    #    /* config.h.  Generated by config.status.  */    esac
   if test x"$ac_file" = x-; then  
     configure_input=  
   else  
     configure_input="$ac_file.  "  
   fi  
   configure_input=$configure_input"Generated from `echo $ac_file_in |  
                      sed 's,.*/,,'` by configure."  
6325    
6326    # First look for the input files in the build tree, otherwise in the    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6327    # src tree.    sed -e "$ac_comsub
6328    ac_file_inputs=`IFS=:  s%@configure_input@%$configure_input%g
6329      for f in $ac_file_in; do  s%@srcdir@%$srcdir%g
6330        case $f in  s%@top_srcdir@%$top_srcdir%g
6331        -) echo $tmp/stdin ;;  s%@INSTALL@%$INSTALL%g
6332        [\\/$]*)  " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6333       # Absolute (can't be DOS-style, as IFS=:)  fi; done
6334       test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5  rm -f conftest.s*
 echo "$as_me: error: cannot find input file: $f" >&2;}  
    { (exit 1); exit 1; }; }  
      echo "$f";;  
       *) # Relative  
      if test -f "$f"; then  
        # Build tree  
        echo "$f"  
      elif test -f "$srcdir/$f"; then  
        # Source tree  
        echo "$srcdir/$f"  
      else  
        # /dev/null tree  
        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5  
 echo "$as_me: error: cannot find input file: $f" >&2;}  
    { (exit 1); exit 1; }; }  
      fi;;  
       esac  
     done` || { (exit 1); exit 1; }  
 _ACEOF  
 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,@srcdir@,$ac_srcdir,;t t  
 s,@abs_srcdir@,$ac_abs_srcdir,;t t  
 s,@top_srcdir@,$ac_top_srcdir,;t t  
 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t  
 s,@builddir@,$ac_builddir,;t t  
 s,@abs_builddir@,$ac_abs_builddir,;t t  
 s,@top_builddir@,$ac_top_builddir,;t t  
 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t  
 s,@INSTALL@,$ac_INSTALL,;t t  
 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out  
   rm -f $tmp/stdin  
   if test x"$ac_file" != x-; then  
     mv $tmp/out $ac_file  
   else  
     cat $tmp/out  
     rm -f $tmp/out  
   fi  
6335    
6336  done  EOF
6337  _ACEOF  cat >> $CONFIG_STATUS <<EOF
6338    
6339  cat >>$CONFIG_STATUS <<\_ACEOF  EOF
6340    cat >> $CONFIG_STATUS <<\EOF
6341    
6342  { (exit 0); exit 0; }  exit 0
6343  _ACEOF  EOF
6344  chmod +x $CONFIG_STATUS  chmod +x $CONFIG_STATUS
6345  ac_clean_files=$ac_clean_files_save  rm -fr confdefs* $ac_clean_files
6346    test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
   
 # configure is writing to config.log, and then calls config.status.  
 # config.status does its own redirection, appending to config.log.  
 # Unfortunately, on DOS this fails, as config.log is still kept open  
 # by configure, so config.status won't be able to write to it; its  
 # output is simply discarded.  So we exec the FD to /dev/null,  
 # effectively closing config.log, so it can be properly (re)opened and  
 # appended to by config.status.  When coming back to configure, we  
 # need to make the FD available again.  
 if test "$no_create" != yes; then  
   ac_cs_success=:  
   ac_config_status_args=  
   test "$silent" = yes &&  
     ac_config_status_args="$ac_config_status_args --quiet"  
   exec 5>/dev/null  
   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false  
   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  
6347    
6348    
6349  #AC_OUTPUT(  #AC_OUTPUT(

Legend:
Removed from v.40  
changed lines
  Added in v.41

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22