/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

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

revision 1.176 by camm, Tue Jun 14 22:38:25 2005 UTC revision 1.177 by camm, Wed Jun 15 17:33:18 2005 UTC
# Line 3918  else Line 3918  else
3918          fixnum g=0;          fixnum g=0;
3919          fobj(g)->d.e=-1;          fobj(g)->d.e=-1;
3920          fobj(g)->d.t=-1;          fobj(g)->d.t=-1;
3921            fobj(g)->d.s=-1;
3922          fprintf(f,"0x%x",g);          fprintf(f,"0x%x",g);
3923          fclose(f);          fclose(f);
3924          return 0;          return 0;
3925          }          }
3926  EOF  EOF
3927  if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3928  then  then
3929    type_bits=`cat conftest1`    type_bits=`cat conftest1`
3930  else  else
# Line 3942  EOF Line 3943  EOF
3943    
3944    
3945  echo $ac_n "checking sizeof struct contblock""... $ac_c" 1>&6  echo $ac_n "checking sizeof struct contblock""... $ac_c" 1>&6
3946  echo "configure:3946: checking sizeof struct contblock" >&5  echo "configure:3947: checking sizeof struct contblock" >&5
3947    
3948  # work around MSYS pwd result incompatibility  # work around MSYS pwd result incompatibility
3949  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
# Line 3950  if test "$cross_compiling" = yes; then Line 3951  if test "$cross_compiling" = yes; then
3951    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
3952  else  else
3953    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3954  #line 3954 "configure"  #line 3955 "configure"
3955  #include "confdefs.h"  #include "confdefs.h"
3956  #include <stdio.h>  #include <stdio.h>
3957          #define EXTER          #define EXTER
# Line 3964  else Line 3965  else
3965          return 0;          return 0;
3966          }          }
3967  EOF  EOF
3968  if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3969  then  then
3970    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
3971  else  else
# Line 3981  if test "$cross_compiling" = yes; then Line 3982  if test "$cross_compiling" = yes; then
3982    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
3983  else  else
3984    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3985  #line 3985 "configure"  #line 3986 "configure"
3986  #include "confdefs.h"  #include "confdefs.h"
3987  #include <stdio.h>  #include <stdio.h>
3988          #define EXTER          #define EXTER
# Line 3995  else Line 3996  else
3996          return 0;          return 0;
3997          }          }
3998  EOF  EOF
3999  if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4000  then  then
4001    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
4002  else  else
# Line 4020  EOF Line 4021  EOF
4021  # this and restore the traditional behavior here  # this and restore the traditional behavior here
4022    
4023  echo $ac_n "checking for sbrk""... $ac_c" 1>&6  echo $ac_n "checking for sbrk""... $ac_c" 1>&6
4024  echo "configure:4024: checking for sbrk" >&5  echo "configure:4025: checking for sbrk" >&5
4025  HAVE_SBRK=""  HAVE_SBRK=""
4026  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4027    echo "$ac_t""no: WARNING you must be able to emulate sbrk: as on mingw or macosx" 1>&6    echo "$ac_t""no: WARNING you must be able to emulate sbrk: as on mingw or macosx" 1>&6
4028  else  else
4029    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4030  #line 4030 "configure"  #line 4031 "configure"
4031  #include "confdefs.h"  #include "confdefs.h"
4032  #include <unistd.h>  #include <unistd.h>
4033              #include <stdio.h>              #include <stdio.h>
# Line 4038  else Line 4039  else
4039                  return 0;                  return 0;
4040                  }                  }
4041  EOF  EOF
4042  if { (eval echo configure:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4043  then  then
4044    HAVE_SBRK=1    HAVE_SBRK=1
4045                  echo "$ac_t""yes" 1>&6                  echo "$ac_t""yes" 1>&6
# Line 4054  fi Line 4055  fi
4055    
4056  if test "$HAVE_SBRK" = "1" ; then  if test "$HAVE_SBRK" = "1" ; then
4057          echo $ac_n "checking for randomized sbrk""... $ac_c" 1>&6          echo $ac_n "checking for randomized sbrk""... $ac_c" 1>&6
4058  echo "configure:4058: checking for randomized sbrk" >&5  echo "configure:4059: checking for randomized sbrk" >&5
4059          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
4060    SBRK=0    SBRK=0
4061  else  else
4062    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4063  #line 4063 "configure"  #line 4064 "configure"
4064  #include "confdefs.h"  #include "confdefs.h"
4065  #include <unistd.h>  #include <unistd.h>
4066                      #include <stdio.h>                      #include <stdio.h>
# Line 4071  else Line 4072  else
4072                          return 0;                          return 0;
4073                          }                          }
4074  EOF  EOF
4075  if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4076  then  then
4077    SBRK=`cat conftest1`    SBRK=`cat conftest1`
4078  else  else
# Line 4091  fi Line 4092  fi
4092    SBRK1=0    SBRK1=0
4093  else  else
4094    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4095  #line 4095 "configure"  #line 4096 "configure"
4096  #include "confdefs.h"  #include "confdefs.h"
4097  #include <unistd.h>  #include <unistd.h>
4098                      #include <stdio.h>                      #include <stdio.h>
# Line 4103  else Line 4104  else
4104                          return 0;                          return 0;
4105                          }                          }
4106  EOF  EOF
4107  if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4108  then  then
4109    SBRK1=`cat conftest1`    SBRK1=`cat conftest1`
4110  else  else
# Line 4123  fi Line 4124  fi
4124          if test "$SBRK" != "$SBRK1" ; then          if test "$SBRK" != "$SBRK1" ; then
4125                  echo "$ac_t""yes" 1>&6                  echo "$ac_t""yes" 1>&6
4126                  echo $ac_n "checking for randomized brk remedy""... $ac_c" 1>&6                  echo $ac_n "checking for randomized brk remedy""... $ac_c" 1>&6
4127  echo "configure:4127: checking for randomized brk remedy" >&5  echo "configure:4128: checking for randomized brk remedy" >&5
4128                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
4129    SBRK=0    SBRK=0
4130  else  else
4131    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4132  #line 4132 "configure"  #line 4133 "configure"
4133  #include "confdefs.h"  #include "confdefs.h"
4134  #include <syscall.h>  #include <syscall.h>
4135                              #include <linux/personality.h>                              #include <linux/personality.h>
# Line 4148  else Line 4149  else
4149                                  return 0;                                  return 0;
4150                                  }                                  }
4151  EOF  EOF
4152  if { (eval echo configure:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4153  then  then
4154    SBRK=`cat conftest1`    SBRK=`cat conftest1`
4155  else  else
# Line 4168  fi Line 4169  fi
4169    SBRK1=0    SBRK1=0
4170  else  else
4171    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4172  #line 4172 "configure"  #line 4173 "configure"
4173  #include "confdefs.h"  #include "confdefs.h"
4174  #include <syscall.h>  #include <syscall.h>
4175                              #include <linux/personality.h>                              #include <linux/personality.h>
# Line 4188  else Line 4189  else
4189                                  return 0;                                  return 0;
4190                                  }                                  }
4191  EOF  EOF
4192  if { (eval echo configure:4192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4193  then  then
4194    SBRK1=`cat conftest1`    SBRK1=`cat conftest1`
4195  else  else
# Line 4221  EOF Line 4222  EOF
4222  fi  fi
4223    
4224  echo $ac_n "checking "finding default linker script"""... $ac_c" 1>&6  echo $ac_n "checking "finding default linker script"""... $ac_c" 1>&6
4225  echo "configure:4225: checking "finding default linker script"" >&5  echo "configure:4226: checking "finding default linker script"" >&5
4226  touch unixport/gcl.script  touch unixport/gcl.script
4227  echo "int main() {return 0;}" >foo.c  echo "int main() {return 0;}" >foo.c
4228  $CC -Wl,--verbose foo.c -o foo 2>&1 | \  $CC -Wl,--verbose foo.c -o foo 2>&1 | \
# Line 4230  rm -rf foo.c foo Line 4231  rm -rf foo.c foo
4231  if test "`cat gcl.script | wc -l`" != "0" ; then  if test "`cat gcl.script | wc -l`" != "0" ; then
4232    echo "$ac_t""got it" 1>&6    echo "$ac_t""got it" 1>&6
4233    echo $ac_n "checking "trying to lower heap start"""... $ac_c" 1>&6    echo $ac_n "checking "trying to lower heap start"""... $ac_c" 1>&6
4234  echo "configure:4234: checking "trying to lower heap start"" >&5  echo "configure:4235: checking "trying to lower heap start"" >&5
4235    cp gcl.script gcl.script.def    cp gcl.script gcl.script.def
4236    cat gcl.script.def | awk '/SIZEOF_HEADERS/ {gsub("0x...","0x000",$0);} {print}' |  sed 's,\. = 0x10000000;,/*. = 0x10000000;*/,1' >gcl.script    cat gcl.script.def | awk '/SIZEOF_HEADERS/ {gsub("0x...","0x000",$0);} {print}' |  sed 's,\. = 0x10000000;,/*. = 0x10000000;*/,1' >gcl.script
4237    if diff gcl.script.def gcl.script >/dev/null 2>&1 ; then    if diff gcl.script.def gcl.script >/dev/null 2>&1 ; then
# Line 4238  echo "configure:4234: checking "trying t Line 4239  echo "configure:4234: checking "trying t
4239       rm -f gcl.script gcl.script.def       rm -f gcl.script gcl.script.def
4240    else    else
4241       echo $ac_n "checking "linker script"""... $ac_c" 1>&6       echo $ac_n "checking "linker script"""... $ac_c" 1>&6
4242  echo "configure:4242: checking "linker script"" >&5  echo "configure:4243: checking "linker script"" >&5
4243       echo "int main() {return 0;}" >foo.c       echo "int main() {return 0;}" >foo.c
4244       if $CC -Wl,-T gcl.script foo.c -o foo >/dev/null 2>&1 && ./foo >/dev/null 2>&1 ; then       if $CC -Wl,-T gcl.script foo.c -o foo >/dev/null 2>&1 && ./foo >/dev/null 2>&1 ; then
4245            echo "$ac_t"""done"" 1>&6            echo "$ac_t"""done"" 1>&6
# Line 4259  fi Line 4260  fi
4260  old_LDFLAGS="$LDFLAGS"  old_LDFLAGS="$LDFLAGS"
4261  LDFLAGS="$LDFLAGS $TLDFLAGS"  LDFLAGS="$LDFLAGS $TLDFLAGS"
4262  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6
4263  echo "configure:4263: checking "finding DBEGIN"" >&5  echo "configure:4264: checking "finding DBEGIN"" >&5
4264  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4265    dbegin=0    dbegin=0
4266  else  else
4267    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4268  #line 4268 "configure"  #line 4269 "configure"
4269  #include "confdefs.h"  #include "confdefs.h"
4270  #include <stdio.h>  #include <stdio.h>
4271              #include <stdlib.h>              #include <stdlib.h>
# Line 4303  if (!syscall(SYS_personality,PER_LINUX)) Line 4304  if (!syscall(SYS_personality,PER_LINUX))
4304    return 0;    return 0;
4305  }  }
4306  EOF  EOF
4307  if { (eval echo configure:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4308  then  then
4309    dbegin=`cat conftest1`    dbegin=`cat conftest1`
4310  else  else
# Line 4325  echo "$ac_t""got $dbegin" 1>&6 Line 4326  echo "$ac_t""got $dbegin" 1>&6
4326  LDFLAGS="$old_LDFLAGS"  LDFLAGS="$old_LDFLAGS"
4327    
4328  echo $ac_n "checking "for heap shared library heap ceiling"""... $ac_c" 1>&6  echo $ac_n "checking "for heap shared library heap ceiling"""... $ac_c" 1>&6
4329  echo "configure:4329: checking "for heap shared library heap ceiling"" >&5  echo "configure:4330: checking "for heap shared library heap ceiling"" >&5
4330  echo "int main() {return 0;}" >foo.c  echo "int main() {return 0;}" >foo.c
4331  $CC foo.c -o foo  $CC foo.c -o foo
4332  heap_ceiling=`ldd foo | tail -n 1 | awk '{print $NF}' | tr -d '()'`  heap_ceiling=`ldd foo | tail -n 1 | awk '{print $NF}' | tr -d '()'`
# Line 4338  EOF Line 4339  EOF
4339    
4340  # pagewidth  # pagewidth
4341  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6
4342  echo "configure:4342: checking for pagewidth" >&5  echo "configure:4343: checking for pagewidth" >&5
4343  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4344    PAGEWIDTH=0    PAGEWIDTH=0
4345  else  else
4346    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4347  #line 4347 "configure"  #line 4348 "configure"
4348  #include "confdefs.h"  #include "confdefs.h"
4349  #include <stdio.h>  #include <stdio.h>
4350              #include <unistd.h>              #include <unistd.h>
# Line 4353  int main() {size_t i=getpagesize(),j; Line 4354  int main() {size_t i=getpagesize(),j;
4354              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
4355              return 0;}              return 0;}
4356  EOF  EOF
4357  if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4358  then  then
4359    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
4360  else  else
# Line 4373  EOF Line 4374  EOF
4374    
4375    
4376  echo $ac_n "checking "for maxpage revision"""... $ac_c" 1>&6  echo $ac_n "checking "for maxpage revision"""... $ac_c" 1>&6
4377  echo "configure:4377: checking "for maxpage revision"" >&5  echo "configure:4378: checking "for maxpage revision"" >&5
4378  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4379    tmp_maxpage=0    tmp_maxpage=0
4380  else  else
4381    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4382  #line 4382 "configure"  #line 4383 "configure"
4383  #include "confdefs.h"  #include "confdefs.h"
4384  #include <stdio.h>  #include <stdio.h>
4385  main()  main()
# Line 4396  main() Line 4397  main()
4397    return 0;    return 0;
4398  }  }
4399  EOF  EOF
4400  if { (eval echo configure:4400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4401  then  then
4402    tmp_maxpage=`cat conftest1`    tmp_maxpage=`cat conftest1`
4403  else  else
# Line 4421  EOF Line 4422  EOF
4422    
4423    
4424  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6
4425  echo "configure:4425: checking "finding CSTACK_ADDRESS"" >&5  echo "configure:4426: checking "finding CSTACK_ADDRESS"" >&5
4426  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4427    cstack_address=0    cstack_address=0
4428  else  else
4429    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4430  #line 4430 "configure"  #line 4431 "configure"
4431  #include "confdefs.h"  #include "confdefs.h"
4432  #include <stdio.h>  #include <stdio.h>
4433  main()  main()
# Line 4442  main() Line 4443  main()
4443    return 0;    return 0;
4444  }  }
4445  EOF  EOF
4446  if { (eval echo configure:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4447  then  then
4448    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
4449  else  else
# Line 4461  EOF Line 4462  EOF
4462  echo "$ac_t""got $cstack_address" 1>&6  echo "$ac_t""got $cstack_address" 1>&6
4463    
4464  echo $ac_n "checking "finding CSTACK_ALIGNMENT"""... $ac_c" 1>&6  echo $ac_n "checking "finding CSTACK_ALIGNMENT"""... $ac_c" 1>&6
4465  echo "configure:4465: checking "finding CSTACK_ALIGNMENT"" >&5  echo "configure:4466: checking "finding CSTACK_ALIGNMENT"" >&5
4466  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4467    cstack_alignment=0    cstack_alignment=0
4468  else  else
4469    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4470  #line 4470 "configure"  #line 4471 "configure"
4471  #include "confdefs.h"  #include "confdefs.h"
4472  #include <stdio.h>  #include <stdio.h>
4473  main()  main()
# Line 4483  main() Line 4484  main()
4484    return 0;    return 0;
4485  }  }
4486  EOF  EOF
4487  if { (eval echo configure:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4488  then  then
4489    cstack_alignment=`cat conftest1`    cstack_alignment=`cat conftest1`
4490  else  else
# Line 4503  EOF Line 4504  EOF
4504  echo "$ac_t""got $cstack_alignment" 1>&6  echo "$ac_t""got $cstack_alignment" 1>&6
4505    
4506  echo $ac_n "checking "finding CSTACK_DIRECTION"""... $ac_c" 1>&6  echo $ac_n "checking "finding CSTACK_DIRECTION"""... $ac_c" 1>&6
4507  echo "configure:4507: checking "finding CSTACK_DIRECTION"" >&5  echo "configure:4508: checking "finding CSTACK_DIRECTION"" >&5
4508  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4509    cstack_direction=0    cstack_direction=0
4510  else  else
4511    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4512  #line 4512 "configure"  #line 4513 "configure"
4513  #include "confdefs.h"  #include "confdefs.h"
4514  #include <stdio.h>  #include <stdio.h>
4515  void *  void *
# Line 4527  main() Line 4528  main()
4528    return 0;    return 0;
4529  }  }
4530  EOF  EOF
4531  if { (eval echo configure:4531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4532  then  then
4533    cstack_direction=`cat conftest1`    cstack_direction=`cat conftest1`
4534  else  else
# Line 4547  EOF Line 4548  EOF
4548  echo "$ac_t""got $cstack_direction" 1>&6  echo "$ac_t""got $cstack_direction" 1>&6
4549    
4550  echo $ac_n "checking "for C stack size floor from heap """... $ac_c" 1>&6  echo $ac_n "checking "for C stack size floor from heap """... $ac_c" 1>&6
4551  echo "configure:4551: checking "for C stack size floor from heap "" >&5  echo "configure:4552: checking "for C stack size floor from heap "" >&5
4552  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4553    tmp_cssize=0    tmp_cssize=0
4554  else  else
4555    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4556  #line 4556 "configure"  #line 4557 "configure"
4557  #include "confdefs.h"  #include "confdefs.h"
4558  #include <stdio.h>  #include <stdio.h>
4559  int  int
# Line 4572  main() Line 4573  main()
4573    return 0;    return 0;
4574  }  }
4575  EOF  EOF
4576  if { (eval echo configure:4576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4577  then  then
4578    tmp_cssize=`cat conftest1`    tmp_cssize=`cat conftest1`
4579  else  else
# Line 4597  EOF Line 4598  EOF
4598    
4599    
4600  echo $ac_n "checking "for C stack size limit from fixnum table """... $ac_c" 1>&6  echo $ac_n "checking "for C stack size limit from fixnum table """... $ac_c" 1>&6
4601  echo "configure:4601: checking "for C stack size limit from fixnum table "" >&5  echo "configure:4602: checking "for C stack size limit from fixnum table "" >&5
4602  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4603    tmp_cssize=0    tmp_cssize=0
4604  else  else
4605    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4606  #line 4606 "configure"  #line 4607 "configure"
4607  #include "confdefs.h"  #include "confdefs.h"
4608  #include <stdio.h>  #include <stdio.h>
4609  int  int
# Line 4624  main() Line 4625  main()
4625    return 0;    return 0;
4626  }  }
4627  EOF  EOF
4628  if { (eval echo configure:4628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4629  then  then
4630    tmp_cssize=`cat conftest1`    tmp_cssize=`cat conftest1`
4631  else  else
# Line 4650  EOF Line 4651  EOF
4651  cstack_top=0  cstack_top=0
4652  cstack_range=0  cstack_range=0
4653  echo $ac_n "checking "finding cstack top"""... $ac_c" 1>&6  echo $ac_n "checking "finding cstack top"""... $ac_c" 1>&6
4654  echo "configure:4654: checking "finding cstack top"" >&5  echo "configure:4655: checking "finding cstack top"" >&5
4655  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4656    cstack_top=0    cstack_top=0
4657  else  else
4658    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4659  #line 4659 "configure"  #line 4660 "configure"
4660  #include "confdefs.h"  #include "confdefs.h"
4661  #include <stdio.h>  #include <stdio.h>
4662  int  int
# Line 4672  main() Line 4673  main()
4673    return 0;    return 0;
4674  }  }
4675  EOF  EOF
4676  if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4677  then  then
4678    cstack_top=`cat conftest1`    cstack_top=`cat conftest1`
4679  else  else
# Line 4687  fi Line 4688  fi
4688  echo "$ac_t""got $cstack_top" 1>&6  echo "$ac_t""got $cstack_top" 1>&6
4689  if test "$cstack_top" != "0" ; then  if test "$cstack_top" != "0" ; then
4690     echo $ac_n "checking "finding over cstack half range"""... $ac_c" 1>&6     echo $ac_n "checking "finding over cstack half range"""... $ac_c" 1>&6
4691  echo "configure:4691: checking "finding over cstack half range"" >&5  echo "configure:4692: checking "finding over cstack half range"" >&5
4692     if test "$cross_compiling" = yes; then     if test "$cross_compiling" = yes; then
4693    cstack_range=0    cstack_range=0
4694  else  else
4695    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4696  #line 4696 "configure"  #line 4697 "configure"
4697  #include "confdefs.h"  #include "confdefs.h"
4698  #include <stdio.h>  #include <stdio.h>
4699     int     int
# Line 4707  else Line 4708  else
4708       return 0;       return 0;
4709     }     }
4710  EOF  EOF
4711  if { (eval echo configure:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4712  then  then
4713    cstack_range=`cat conftest1`    cstack_range=`cat conftest1`
4714  else  else
# Line 4749  fi Line 4750  fi
4750    
4751    
4752  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6
4753  echo "configure:4753: checking "sizeof long long int"" >&5  echo "configure:4754: checking "sizeof long long int"" >&5
4754  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4755    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
4756    
4757  else  else
4758    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4759  #line 4759 "configure"  #line 4760 "configure"
4760  #include "confdefs.h"  #include "confdefs.h"
4761  #include <stdio.h>  #include <stdio.h>
4762  main()  main()
# Line 4765  main() Line 4766  main()
4766  }  }
4767    
4768  EOF  EOF
4769  if { (eval echo configure:4769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4770  then  then
4771    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4772  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
# Line 4825  FLISP="saved_$SYSTEM" Line 4826  FLISP="saved_$SYSTEM"
4826  for ac_func in getcwd  for ac_func in getcwd
4827  do  do
4828  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4829  echo "configure:4829: checking for $ac_func" >&5  echo "configure:4830: checking for $ac_func" >&5
4830  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4831    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4832  else  else
4833    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4834  #line 4834 "configure"  #line 4835 "configure"
4835  #include "confdefs.h"  #include "confdefs.h"
4836  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4837      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 4853  $ac_func(); Line 4854  $ac_func();
4854    
4855  ; return 0; }  ; return 0; }
4856  EOF  EOF
4857  if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4858    rm -rf conftest*    rm -rf conftest*
4859    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
4860  else  else
# Line 4880  done Line 4881  done
4881  for ac_func in getwd  for ac_func in getwd
4882  do  do
4883  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4884  echo "configure:4884: checking for $ac_func" >&5  echo "configure:4885: checking for $ac_func" >&5
4885  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4886    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4887  else  else
4888    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4889  #line 4889 "configure"  #line 4890 "configure"
4890  #include "confdefs.h"  #include "confdefs.h"
4891  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4892      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 4908  $ac_func(); Line 4909  $ac_func();
4909    
4910  ; return 0; }  ; return 0; }
4911  EOF  EOF
4912  if { (eval echo configure:4912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4913    rm -rf conftest*    rm -rf conftest*
4914    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
4915  else  else
# Line 4933  fi Line 4934  fi
4934  done  done
4935    
4936  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo $ac_n "checking for uname""... $ac_c" 1>&6
4937  echo "configure:4937: checking for uname" >&5  echo "configure:4938: checking for uname" >&5
4938  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
4939    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4940  else  else
4941    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4942  #line 4942 "configure"  #line 4943 "configure"
4943  #include "confdefs.h"  #include "confdefs.h"
4944  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4945      which can conflict with char uname(); below.  */      which can conflict with char uname(); below.  */
# Line 4961  uname(); Line 4962  uname();
4962    
4963  ; return 0; }  ; return 0; }
4964  EOF  EOF
4965  if { (eval echo configure:4965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4966    rm -rf conftest*    rm -rf conftest*
4967    eval "ac_cv_func_uname=yes"    eval "ac_cv_func_uname=yes"
4968  else  else
# Line 4985  EOF Line 4986  EOF
4986  fi  fi
4987    
4988  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
4989  echo "configure:4989: checking for gettimeofday" >&5  echo "configure:4990: checking for gettimeofday" >&5
4990  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
4991    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4992  else  else
4993    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4994  #line 4994 "configure"  #line 4995 "configure"
4995  #include "confdefs.h"  #include "confdefs.h"
4996  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4997      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 5013  gettimeofday(); Line 5014  gettimeofday();
5014    
5015  ; return 0; }  ; return 0; }
5016  EOF  EOF
5017  if { (eval echo configure:5017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5018    rm -rf conftest*    rm -rf conftest*
5019    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
5020  else  else
# Line 5042  for ac_hdr in sys/ioctl.h Line 5043  for ac_hdr in sys/ioctl.h
5043  do  do
5044  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5045  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5046  echo "configure:5046: checking for $ac_hdr" >&5  echo "configure:5047: checking for $ac_hdr" >&5
5047  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5048    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5049  else  else
5050    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5051  #line 5051 "configure"  #line 5052 "configure"
5052  #include "confdefs.h"  #include "confdefs.h"
5053  #include <$ac_hdr>  #include <$ac_hdr>
5054  EOF  EOF
5055  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5056  { (eval echo configure:5056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5057  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5058  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5059    rm -rf conftest*    rm -rf conftest*
# Line 5084  for ac_hdr in elf.h elf_abi.h Line 5085  for ac_hdr in elf.h elf_abi.h
5085  do  do
5086  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5087  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5088  echo "configure:5088: checking for $ac_hdr" >&5  echo "configure:5089: checking for $ac_hdr" >&5
5089  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5090    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5091  else  else
5092    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5093  #line 5093 "configure"  #line 5094 "configure"
5094  #include "confdefs.h"  #include "confdefs.h"
5095  #include <$ac_hdr>  #include <$ac_hdr>
5096  EOF  EOF
5097  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5098  { (eval echo configure:5098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5099  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5100  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5101    rm -rf conftest*    rm -rf conftest*
# Line 5134  done Line 5135  done
5135  #--------------------------------------------------------------------  #--------------------------------------------------------------------
5136    
5137  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
5138  echo "configure:5138: checking for BSDgettimeofday" >&5  echo "configure:5139: checking for BSDgettimeofday" >&5
5139  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
5140    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5141  else  else
5142    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5143  #line 5143 "configure"  #line 5144 "configure"
5144  #include "confdefs.h"  #include "confdefs.h"
5145  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5146      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday(); below.  */
# Line 5162  BSDgettimeofday(); Line 5163  BSDgettimeofday();
5163    
5164  ; return 0; }  ; return 0; }
5165  EOF  EOF
5166  if { (eval echo configure:5166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5167    rm -rf conftest*    rm -rf conftest*
5168    eval "ac_cv_func_BSDgettimeofday=yes"    eval "ac_cv_func_BSDgettimeofday=yes"
5169  else  else
# Line 5183  EOF Line 5184  EOF
5184  else  else
5185    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
5186  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
5187  echo "configure:5187: checking for gettimeofday" >&5  echo "configure:5188: checking for gettimeofday" >&5
5188  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
5189    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5190  else  else
5191    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5192  #line 5192 "configure"  #line 5193 "configure"
5193  #include "confdefs.h"  #include "confdefs.h"
5194  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5195      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 5211  gettimeofday(); Line 5212  gettimeofday();
5212    
5213  ; return 0; }  ; return 0; }
5214  EOF  EOF
5215  if { (eval echo configure:5215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5216    rm -rf conftest*    rm -rf conftest*
5217    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
5218  else  else
# Line 5238  fi Line 5239  fi
5239    
5240    
5241  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
5242  echo "configure:5242: checking for gettimeofday declaration" >&5  echo "configure:5243: checking for gettimeofday declaration" >&5
5243    
5244  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5245  #line 5245 "configure"  #line 5246 "configure"
5246  #include "confdefs.h"  #include "confdefs.h"
5247  #include <sys/time.h>  #include <sys/time.h>
5248  EOF  EOF
# Line 5262  rm -f conftest* Line 5263  rm -f conftest*
5263    
5264    
5265  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5266  echo "configure:5266: checking for sin in -lm" >&5  echo "configure:5267: checking for sin in -lm" >&5
5267  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5268  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5269    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5270  else Line 5271  else
5271    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5272  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
5273  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5274  #line 5274 "configure"  #line 5275 "configure"
5275  #include "confdefs.h"  #include "confdefs.h"
5276  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5277  /* 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
# Line 5281  int main() { Line 5282  int main() {
5282  sin()  sin()
5283  ; return 0; }  ; return 0; }
5284  EOF  EOF
5285  if { (eval echo configure:5285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5286    rm -rf conftest*    rm -rf conftest*
5287    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5288  else  else
# Line 5303  true Line 5304  true
5304  fi  fi
5305    
5306  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6
5307  echo "configure:5307: checking for main in -lmingwex" >&5  echo "configure:5308: checking for main in -lmingwex" >&5
5308  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`
5309  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5310    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5311  else Line 5312  else
5312    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5313  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
5314  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5315  #line 5315 "configure"  #line 5316 "configure"
5316  #include "confdefs.h"  #include "confdefs.h"
5317    
5318  int main() {  int main() {
5319  main()  main()
5320  ; return 0; }  ; return 0; }
5321  EOF  EOF
5322  if { (eval echo configure:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5323    rm -rf conftest*    rm -rf conftest*
5324    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5325  else  else
# Line 5346  if test "$try_japi" = "yes" ; then Line 5347  if test "$try_japi" = "yes" ; then
5347  do  do
5348  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5349  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5350  echo "configure:5350: checking for $ac_hdr" >&5  echo "configure:5351: checking for $ac_hdr" >&5
5351  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5352    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5353  else  else
5354    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5355  #line 5355 "configure"  #line 5356 "configure"
5356  #include "confdefs.h"  #include "confdefs.h"
5357  #include <$ac_hdr>  #include <$ac_hdr>
5358  EOF  EOF
5359  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5360  { (eval echo configure:5360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5361  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5362  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5363    rm -rf conftest*    rm -rf conftest*
# Line 5394  if test "$use" = "mingw" ; then Line 5395  if test "$use" = "mingw" ; then
5395  do  do
5396  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5397  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5398  echo "configure:5398: checking for $ac_hdr" >&5  echo "configure:5399: checking for $ac_hdr" >&5
5399  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5400    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5401  else  else
5402    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5403  #line 5403 "configure"  #line 5404 "configure"
5404  #include "confdefs.h"  #include "confdefs.h"
5405  #include <$ac_hdr>  #include <$ac_hdr>
5406  EOF  EOF
5407  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5408  { (eval echo configure:5408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5409  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5410  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5411    rm -rf conftest*    rm -rf conftest*
# Line 5441  else Line 5442  else
5442  do  do
5443  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5444  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5445  echo "configure:5445: checking for $ac_hdr" >&5  echo "configure:5446: checking for $ac_hdr" >&5
5446  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5447    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5448  else  else
5449    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5450  #line 5450 "configure"  #line 5451 "configure"
5451  #include "confdefs.h"  #include "confdefs.h"
5452  #include <$ac_hdr>  #include <$ac_hdr>
5453  EOF  EOF
5454  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5455  { (eval echo configure:5455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5456  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5457  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5458    rm -rf conftest*    rm -rf conftest*
# Line 5491  for ac_hdr in math.h Line 5492  for ac_hdr in math.h
5492  do  do
5493  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5494  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5495  echo "configure:5495: checking for $ac_hdr" >&5  echo "configure:5496: checking for $ac_hdr" >&5
5496  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5497    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5498  else  else
5499    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5500  #line 5500 "configure"  #line 5501 "configure"
5501  #include "confdefs.h"  #include "confdefs.h"
5502  #include <$ac_hdr>  #include <$ac_hdr>
5503  EOF  EOF
5504  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5505  { (eval echo configure:5505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5506  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5507  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5508    rm -rf conftest*    rm -rf conftest*
# Line 5538  for ac_hdr in values.h Line 5539  for ac_hdr in values.h
5539  do  do
5540  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5541  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5542  echo "configure:5542: checking for $ac_hdr" >&5  echo "configure:5543: checking for $ac_hdr" >&5
5543  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5544    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5545  else  else
5546    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5547  #line 5547 "configure"  #line 5548 "configure"
5548  #include "confdefs.h"  #include "confdefs.h"
5549  #include <$ac_hdr>  #include <$ac_hdr>
5550  EOF  EOF
5551  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5552  { (eval echo configure:5552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5553  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5554  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5555    rm -rf conftest*    rm -rf conftest*
# Line 5585  for ac_hdr in float.h Line 5586  for ac_hdr in float.h
5586  do  do
5587  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5588  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5589  echo "configure:5589: checking for $ac_hdr" >&5  echo "configure:5590: checking for $ac_hdr" >&5
5590  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5591    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5592  else  else
5593    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5594  #line 5594 "configure"  #line 5595 "configure"
5595  #include "confdefs.h"  #include "confdefs.h"
5596  #include <$ac_hdr>  #include <$ac_hdr>
5597  EOF  EOF
5598  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5599  { (eval echo configure:5599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5600  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5601  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5602    rm -rf conftest*    rm -rf conftest*
# Line 5631  done Line 5632  done
5632  # test makes sense.  CM  # test makes sense.  CM
5633  #  #
5634  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo $ac_n "checking for isnormal""... $ac_c" 1>&6
5635  echo "configure:5635: checking for isnormal" >&5  echo "configure:5636: checking for isnormal" >&5
5636  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5637    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6
5638  else  else
5639    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5640  #line 5640 "configure"  #line 5641 "configure"
5641  #include "confdefs.h"  #include "confdefs.h"
5642  #define _GNU_SOURCE  #define _GNU_SOURCE
5643              #include <math.h>              #include <math.h>
# Line 5645  else Line 5646  else
5646                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
5647                  }                  }
5648  EOF  EOF
5649  if { (eval echo configure:5649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5650  then  then
5651    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
5652  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
# Line 5656  else Line 5657  else
5657    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5658    rm -fr conftest*    rm -fr conftest*
5659    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6
5660  echo "configure:5660: checking for fpclass in ieeefp.h" >&5  echo "configure:5661: checking for fpclass in ieeefp.h" >&5
5661                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
5662    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6
5663  else  else
5664    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5665  #line 5665 "configure"  #line 5666 "configure"
5666  #include "confdefs.h"  #include "confdefs.h"
5667  #include <ieeefp.h>  #include <ieeefp.h>
5668                              int main() {                              int main() {
# Line 5669  else Line 5670  else
5670                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
5671                                  }                                  }
5672  EOF  EOF
5673  if { (eval echo configure:5673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5674  then  then
5675    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
5676  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
# Line 5691  fi Line 5692  fi
5692    
5693    
5694  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ac_n "checking for isfinite""... $ac_c" 1>&6
5695  echo "configure:5695: checking for isfinite" >&5  echo "configure:5696: checking for isfinite" >&5
5696  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5697    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6
5698  else  else
5699    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5700  #line 5700 "configure"  #line 5701 "configure"
5701  #include "confdefs.h"  #include "confdefs.h"
5702  #define _GNU_SOURCE  #define _GNU_SOURCE
5703              #include <math.h>              #include <math.h>
# Line 5705  else Line 5706  else
5706                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
5707                  }                  }
5708  EOF  EOF
5709  if { (eval echo configure:5709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5710  then  then
5711    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
5712  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
# Line 5716  else Line 5717  else
5717    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5718    rm -fr conftest*    rm -fr conftest*
5719    echo $ac_n "checking for finite()""... $ac_c" 1>&6    echo $ac_n "checking for finite()""... $ac_c" 1>&6
5720  echo "configure:5720: checking for finite()" >&5  echo "configure:5721: checking for finite()" >&5
5721                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
5722    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$ac_t""no" 1>&6
5723  else  else
5724    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5725  #line 5725 "configure"  #line 5726 "configure"
5726  #include "confdefs.h"  #include "confdefs.h"
5727  #include <math.h>  #include <math.h>
5728                              #include <ieeefp.h>                              #include <ieeefp.h>
# Line 5730  else Line 5731  else
5731                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
5732                                  }                                  }
5733  EOF  EOF
5734  if { (eval echo configure:5734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5735  then  then
5736    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
5737  #define HAVE_FINITE 1  #define HAVE_FINITE 1
# Line 5771  fi Line 5772  fi
5772  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
5773  #--------------------------------------------------------------------  #--------------------------------------------------------------------
5774  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo $ac_n "checking for sockets""... $ac_c" 1>&6
5775  echo "configure:5775: checking for sockets" >&5  echo "configure:5776: checking for sockets" >&5
5776  tcl_checkBoth=0  tcl_checkBoth=0
5777  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo $ac_n "checking for connect""... $ac_c" 1>&6
5778  echo "configure:5778: checking for connect" >&5  echo "configure:5779: checking for connect" >&5
5779  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5780    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5781  else  else
5782    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5783  #line 5783 "configure"  #line 5784 "configure"
5784  #include "confdefs.h"  #include "confdefs.h"
5785  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5786      which can conflict with char connect(); below.  */      which can conflict with char connect(); below.  */
# Line 5802  connect(); Line 5803  connect();
5803    
5804  ; return 0; }  ; return 0; }
5805  EOF  EOF
5806  if { (eval echo configure:5806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5807    rm -rf conftest*    rm -rf conftest*
5808    eval "ac_cv_func_connect=yes"    eval "ac_cv_func_connect=yes"
5809  else  else
# Line 5824  fi Line 5825  fi
5825    
5826  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
5827      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5828  echo "configure:5828: checking for main in -lsocket" >&5  echo "configure:5829: checking for main in -lsocket" >&5
5829  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5830  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5831    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5832  else Line 5833  else
5833    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5834  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
5835  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5836  #line 5836 "configure"  #line 5837 "configure"
5837  #include "confdefs.h"  #include "confdefs.h"
5838    
5839  int main() {  int main() {
5840  main()  main()
5841  ; return 0; }  ; return 0; }
5842  EOF  EOF
5843  if { (eval echo configure:5843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5844    rm -rf conftest*    rm -rf conftest*
5845    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5846  else  else
# Line 5867  if test "$tcl_checkBoth" = 1; then Line 5868  if test "$tcl_checkBoth" = 1; then
5868      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
5869      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
5870      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo $ac_n "checking for accept""... $ac_c" 1>&6
5871  echo "configure:5871: checking for accept" >&5  echo "configure:5872: checking for accept" >&5
5872  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5873    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5874  else  else
5875    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5876  #line 5876 "configure"  #line 5877 "configure"
5877  #include "confdefs.h"  #include "confdefs.h"
5878  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5879      which can conflict with char accept(); below.  */      which can conflict with char accept(); below.  */
# Line 5895  accept(); Line 5896  accept();
5896    
5897  ; return 0; }  ; return 0; }
5898  EOF  EOF
5899  if { (eval echo configure:5899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5900    rm -rf conftest*    rm -rf conftest*
5901    eval "ac_cv_func_accept=yes"    eval "ac_cv_func_accept=yes"
5902  else  else
# Line 5917  fi Line 5918  fi
5918    
5919  fi  fi
5920  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5921  echo "configure:5921: checking for gethostbyname" >&5  echo "configure:5922: checking for gethostbyname" >&5
5922  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5923    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5924  else  else
5925    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5926  #line 5926 "configure"  #line 5927 "configure"
5927  #include "confdefs.h"  #include "confdefs.h"
5928  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5929      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname(); below.  */
# Line 5945  gethostbyname(); Line 5946  gethostbyname();
5946    
5947  ; return 0; }  ; return 0; }
5948  EOF  EOF
5949  if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5950    rm -rf conftest*    rm -rf conftest*
5951    eval "ac_cv_func_gethostbyname=yes"    eval "ac_cv_func_gethostbyname=yes"
5952  else  else
# Line 5963  if eval "test \"`echo '$ac_cv_func_'geth Line 5964  if eval "test \"`echo '$ac_cv_func_'geth
5964  else  else
5965    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
5966  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5967  echo "configure:5967: checking for main in -lnsl" >&5  echo "configure:5968: checking for main in -lnsl" >&5
5968  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5969  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5970    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5971  else Line 5972  else
5972    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5973  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
5974  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5975  #line 5975 "configure"  #line 5976 "configure"
5976  #include "confdefs.h"  #include "confdefs.h"
5977    
5978  int main() {  int main() {
5979  main()  main()
5980  ; return 0; }  ; return 0; }
5981  EOF  EOF
5982  if { (eval echo configure:5982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5983    rm -rf conftest*    rm -rf conftest*
5984    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5985  else  else
# Line 6008  if test "$enable_readline" = "yes" ; the Line 6009  if test "$enable_readline" = "yes" ; the
6009  do  do
6010  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6011  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6012  echo "configure:6012: checking for $ac_hdr" >&5  echo "configure:6013: checking for $ac_hdr" >&5
6013  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6014    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6015  else  else
6016    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6017  #line 6017 "configure"  #line 6018 "configure"
6018  #include "confdefs.h"  #include "confdefs.h"
6019  #include <$ac_hdr>  #include <$ac_hdr>
6020  EOF  EOF
6021  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6022  { (eval echo configure:6022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6023  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6024  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6025    rm -rf conftest*    rm -rf conftest*
# Line 6039  if eval "test \"`echo '$ac_cv_header_'$a Line 6040  if eval "test \"`echo '$ac_cv_header_'$a
6040  #define $ac_tr_hdr 1  #define $ac_tr_hdr 1
6041  EOF  EOF
6042   echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6   echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
6043  echo "configure:6043: checking for main in -lreadline" >&5  echo "configure:6044: checking for main in -lreadline" >&5
6044  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
6045  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6046    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6047  else Line 6048  else
6048    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6049  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
6050  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6051  #line 6051 "configure"  #line 6052 "configure"
6052  #include "confdefs.h"  #include "confdefs.h"
6053    
6054  int main() {  int main() {
6055  main()  main()
6056  ; return 0; }  ; return 0; }
6057  EOF  EOF
6058  if { (eval echo configure:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6059    rm -rf conftest*    rm -rf conftest*
6060    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6061  else  else
# Line 6091  done Line 6092  done
6092    
6093  # These tests discover differences between readline 4.1 and 4.3  # These tests discover differences between readline 4.1 and 4.3
6094          echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6          echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
6095  echo "configure:6095: checking for rl_completion_matches in -lreadline" >&5  echo "configure:6096: checking for rl_completion_matches in -lreadline" >&5
6096  ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`  ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
6097  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6098    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6099  else Line 6100  else
6100    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6101  LIBS="-lreadline  $LIBS"  LIBS="-lreadline  $LIBS"
6102  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6103  #line 6103 "configure"  #line 6104 "configure"
6104  #include "confdefs.h"  #include "confdefs.h"
6105  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6106  /* 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
# Line 6110  int main() { Line 6111  int main() {
6111  rl_completion_matches()  rl_completion_matches()
6112  ; return 0; }  ; return 0; }
6113  EOF  EOF
6114  if { (eval echo configure:6114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6115    rm -rf conftest*    rm -rf conftest*
6116    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6117  else  else
# Line 6143  fi Line 6144  fi
6144    
6145    
6146  echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6  echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6
6147  echo "configure:6147: checking For network code for nsocket.c" >&5  echo "configure:6148: checking For network code for nsocket.c" >&5
6148  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6149  #line 6149 "configure"  #line 6150 "configure"
6150  #include "confdefs.h"  #include "confdefs.h"
6151    
6152  #include <sys/time.h>  #include <sys/time.h>
# Line 6172  int main() { Line 6173  int main() {
6173                    
6174  ; return 0; }  ; return 0; }
6175  EOF  EOF
6176  if { (eval echo configure:6176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6177    rm -rf conftest*    rm -rf conftest*
6178    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6179  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
# Line 6189  rm -f conftest* Line 6190  rm -f conftest*
6190    
6191    
6192  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6
6193  echo "configure:6193: checking check for listen using fcntl" >&5  echo "configure:6194: checking check for listen using fcntl" >&5
6194  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6195  #line 6195 "configure"  #line 6196 "configure"
6196  #include "confdefs.h"  #include "confdefs.h"
6197  #include <stdio.h>  #include <stdio.h>
6198  #include <fcntl.h>  #include <fcntl.h>
# Line 6204  FILE *fp=fopen("configure.in","r"); Line 6205  FILE *fp=fopen("configure.in","r");
6205    
6206  ; return 0; }  ; return 0; }
6207  EOF  EOF
6208  if { (eval echo configure:6208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6209    rm -rf conftest*    rm -rf conftest*
6210    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6211  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
# Line 6223  rm -f conftest* Line 6224  rm -f conftest*
6224    
6225    
6226  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo $ac_n "checking for profil""... $ac_c" 1>&6
6227  echo "configure:6227: checking for profil" >&5  echo "configure:6228: checking for profil" >&5
6228  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then
6229    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6230  else  else
6231    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6232  #line 6232 "configure"  #line 6233 "configure"
6233  #include "confdefs.h"  #include "confdefs.h"
6234  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6235      which can conflict with char profil(); below.  */      which can conflict with char profil(); below.  */
# Line 6251  profil(); Line 6252  profil();
6252    
6253  ; return 0; }  ; return 0; }
6254  EOF  EOF
6255  if { (eval echo configure:6255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6256    rm -rf conftest*    rm -rf conftest*
6257    eval "ac_cv_func_profil=yes"    eval "ac_cv_func_profil=yes"
6258  else  else
# Line 6276  fi Line 6277  fi
6277    
6278    
6279  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo $ac_n "checking for setenv""... $ac_c" 1>&6
6280  echo "configure:6280: checking for setenv" >&5  echo "configure:6281: checking for setenv" >&5
6281  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
6282    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6283  else  else
6284    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6285  #line 6285 "configure"  #line 6286 "configure"
6286  #include "confdefs.h"  #include "confdefs.h"
6287  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6288      which can conflict with char setenv(); below.  */      which can conflict with char setenv(); below.  */
# Line 6304  setenv(); Line 6305  setenv();
6305    
6306  ; return 0; }  ; return 0; }
6307  EOF  EOF
6308  if { (eval echo configure:6308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6309    rm -rf conftest*    rm -rf conftest*
6310    eval "ac_cv_func_setenv=yes"    eval "ac_cv_func_setenv=yes"
6311  else  else
# Line 6330  fi Line 6331  fi
6331    
6332  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
6333  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo $ac_n "checking for putenv""... $ac_c" 1>&6
6334  echo "configure:6334: checking for putenv" >&5  echo "configure:6335: checking for putenv" >&5
6335  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
6336    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6337  else  else
6338    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6339  #line 6339 "configure"  #line 6340 "configure"
6340  #include "confdefs.h"  #include "confdefs.h"
6341  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6342      which can conflict with char putenv(); below.  */      which can conflict with char putenv(); below.  */
# Line 6358  putenv(); Line 6359  putenv();
6359    
6360  ; return 0; }  ; return 0; }
6361  EOF  EOF
6362  if { (eval echo configure:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6363    rm -rf conftest*    rm -rf conftest*
6364    eval "ac_cv_func_putenv=yes"    eval "ac_cv_func_putenv=yes"
6365  else  else
# Line 6384  fi Line 6385  fi
6385  fi  fi
6386    
6387  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6
6388  echo "configure:6388: checking for _cleanup" >&5  echo "configure:6389: checking for _cleanup" >&5
6389  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then
6390    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6391  else  else
6392    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6393  #line 6393 "configure"  #line 6394 "configure"
6394  #include "confdefs.h"  #include "confdefs.h"
6395  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6396      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup(); below.  */
# Line 6412  _cleanup(); Line 6413  _cleanup();
6413    
6414  ; return 0; }  ; return 0; }
6415  EOF  EOF
6416  if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6417    rm -rf conftest*    rm -rf conftest*
6418    eval "ac_cv_func__cleanup=yes"    eval "ac_cv_func__cleanup=yes"
6419  else  else
# Line 6438  fi Line 6439  fi
6439  gcl_ok=no  gcl_ok=no
6440    
6441  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6442  #line 6442 "configure"  #line 6443 "configure"
6443  #include "confdefs.h"  #include "confdefs.h"
6444  #include <ctype.h>  #include <ctype.h>
6445  EOF  EOF
# Line 6466  fi Line 6467  fi
6467    
6468  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
6469  echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6  echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6
6470  echo "configure:6470: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5  echo "configure:6471: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
6471    
6472  case $system in  case $system in
6473         OSF*)         OSF*)
# Line 6497  esac Line 6498  esac
6498    
6499    
6500  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6
6501  echo "configure:6501: checking check for SV_ONSTACK" >&5  echo "configure:6502: checking check for SV_ONSTACK" >&5
6502  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6503  #line 6503 "configure"  #line 6504 "configure"
6504  #include "confdefs.h"  #include "confdefs.h"
6505  #include <signal.h>  #include <signal.h>
6506  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
# Line 6508  int main() { Line 6509  int main() {
6509    
6510  ; return 0; }  ; return 0; }
6511  EOF  EOF
6512  if { (eval echo configure:6512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6513    rm -rf conftest*    rm -rf conftest*
6514    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6515  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
# Line 6525  fi Line 6526  fi
6526  rm -f conftest*  rm -f conftest*
6527    
6528  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6
6529  echo "configure:6529: checking check for SIGSYS" >&5  echo "configure:6530: checking check for SIGSYS" >&5
6530  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6531  #line 6531 "configure"  #line 6532 "configure"
6532  #include "confdefs.h"  #include "confdefs.h"
6533  #include <signal.h>  #include <signal.h>
6534  int joe=SIGSYS;  int joe=SIGSYS;
# Line 6536  int main() { Line 6537  int main() {
6537    
6538  ; return 0; }  ; return 0; }
6539  EOF  EOF
6540  if { (eval echo configure:6540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6541    rm -rf conftest*    rm -rf conftest*
6542    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6543  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
# Line 6554  rm -f conftest* Line 6555  rm -f conftest*
6555    
6556    
6557  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6
6558  echo "configure:6558: checking check for SIGEMT" >&5  echo "configure:6559: checking check for SIGEMT" >&5
6559  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6560  #line 6560 "configure"  #line 6561 "configure"
6561  #include "confdefs.h"  #include "confdefs.h"
6562  #include <signal.h>  #include <signal.h>
6563  int joe=SIGEMT;  int joe=SIGEMT;
# Line 6565  int main() { Line 6566  int main() {
6566    
6567  ; return 0; }  ; return 0; }
6568  EOF  EOF
6569  if { (eval echo configure:6569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6570    rm -rf conftest*    rm -rf conftest*
6571    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6572  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
# Line 6589  rm -f conftest* Line 6590  rm -f conftest*
6590  do  do
6591  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6592  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6593  echo "configure:6593: checking for $ac_hdr" >&5  echo "configure:6594: checking for $ac_hdr" >&5
6594  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6595    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6596  else  else
6597    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6598  #line 6598 "configure"  #line 6599 "configure"
6599  #include "confdefs.h"  #include "confdefs.h"
6600  #include <$ac_hdr>  #include <$ac_hdr>
6601  EOF  EOF
6602  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6603  { (eval echo configure:6603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6604  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6605  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6606    rm -rf conftest*    rm -rf conftest*
# Line 6629  done Line 6630  done
6630  do  do
6631  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6632  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6633  echo "configure:6633: checking for $ac_hdr" >&5  echo "configure:6634: checking for $ac_hdr" >&5
6634  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6635    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6636  else  else
6637    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6638  #line 6638 "configure"  #line 6639 "configure"
6639  #include "confdefs.h"  #include "confdefs.h"
6640  #include <$ac_hdr>  #include <$ac_hdr>
6641  EOF  EOF
6642  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6643  { (eval echo configure:6643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6644  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6645  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6646    rm -rf conftest*    rm -rf conftest*
# Line 6666  fi Line 6667  fi
6667  done  done
6668    
6669          echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6          echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6
6670  echo "configure:6670: checking for sigcontext..." >&5  echo "configure:6671: checking for sigcontext..." >&5
6671          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
6672  #line 6672 "configure"  #line 6673 "configure"
6673  #include "confdefs.h"  #include "confdefs.h"
6674  #include <signal.h>  #include <signal.h>
6675                
# Line 6678  int main() { Line 6679  int main() {
6679                
6680  ; return 0; }  ; return 0; }
6681  EOF  EOF
6682  if { (eval echo configure:6682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6683    rm -rf conftest*    rm -rf conftest*
6684        
6685          sigcontext_works=1;          sigcontext_works=1;
# Line 6699  fi Line 6700  fi
6700  rm -f conftest*  rm -f conftest*
6701         if test "$sigcontext_works" = 0 ; then         if test "$sigcontext_works" = 0 ; then
6702         echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6         echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6
6703  echo "configure:6703: checking for sigcontext..." >&5  echo "configure:6704: checking for sigcontext..." >&5
6704         cat > conftest.$ac_ext <<EOF         cat > conftest.$ac_ext <<EOF
6705  #line 6705 "configure"  #line 6706 "configure"
6706  #include "confdefs.h"  #include "confdefs.h"
6707  #include <signal.h>  #include <signal.h>
6708               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H    
# Line 6717  int main() { Line 6718  int main() {
6718                    
6719  ; return 0; }  ; return 0; }
6720  EOF  EOF
6721  if { (eval echo configure:6721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6722    rm -rf conftest*    rm -rf conftest*
6723        
6724          cat >> confdefs.h <<\EOF          cat >> confdefs.h <<\EOF
# Line 6759  rm -f conftest* Line 6760  rm -f conftest*
6760  # Extract the first word of "emacs", so it can be a program name with args.  # Extract the first word of "emacs", so it can be a program name with args.
6761  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
6762  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6763  echo "configure:6763: checking for $ac_word" >&5  echo "configure:6764: checking for $ac_word" >&5
6764  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
6765    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6766  else  else
# Line 6807  cat >> conftest.el <<EOF Line 6808  cat >> conftest.el <<EOF
6808  EOF  EOF
6809    
6810  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6
6811  echo "configure:6811: checking emacs site lisp directory" >&5  echo "configure:6812: checking emacs site lisp directory" >&5
6812  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then
6813          if [ "$EMACS" != "" ] ; then          if [ "$EMACS" != "" ] ; then
6814                  EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `                  EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
# Line 6831  cat >> conftest.el <<EOF Line 6832  cat >> conftest.el <<EOF
6832  EOF  EOF
6833    
6834  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6
6835  echo "configure:6835: checking emacs default.el" >&5  echo "configure:6836: checking emacs default.el" >&5
6836  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
6837          EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `          EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
6838  else  else
# Line 6860  cat >> conftest.el <<EOF Line 6861  cat >> conftest.el <<EOF
6861  EOF  EOF
6862    
6863  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6
6864  echo "configure:6864: checking emacs info/dir" >&5  echo "configure:6865: checking emacs info/dir" >&5
6865  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
6866      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
6867  else  else
# Line 6878  echo "$ac_t""$INFO_DIR" 1>&6 Line 6879  echo "$ac_t""$INFO_DIR" 1>&6
6879    
6880    
6881  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6
6882  echo "configure:6882: checking for tcl/tk" >&5  echo "configure:6883: checking for tcl/tk" >&5
6883    
6884    
6885  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 6901  EOF Line 6902  EOF
6902  # Extract the first word of "tclsh", so it can be a program name with args.  # Extract the first word of "tclsh", so it can be a program name with args.
6903  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
6904  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6905  echo "configure:6905: checking for $ac_word" >&5  echo "configure:6906: checking for $ac_word" >&5
6906  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then
6907    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6908  else  else
# Line 7006  if test -f ${TK_CONFIG_PREFIX}/../bin/tc Line 7007  if test -f ${TK_CONFIG_PREFIX}/../bin/tc
7007     TCL_STUB_LIBS="-L${TK_CONFIG_PREFIX}/lib -ltkstub${TCL_VERSION_DOT_FREE} -ltclstub${TCL_VERSION_DOT_FREE}"     TCL_STUB_LIBS="-L${TK_CONFIG_PREFIX}/lib -ltkstub${TCL_VERSION_DOT_FREE} -ltclstub${TCL_VERSION_DOT_FREE}"
7008  else  else
7009    echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6    echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6
7010  echo "configure:7010: checking for main in -llieee" >&5  echo "configure:7011: checking for main in -llieee" >&5
7011  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`
7012  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7013    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7014  else Line 7015  else
7015    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7016  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
7017  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7018  #line 7018 "configure"  #line 7019 "configure"
7019  #include "confdefs.h"  #include "confdefs.h"
7020    
7021  int main() {  int main() {
7022  main()  main()
7023  ; return 0; }  ; return 0; }
7024  EOF  EOF
7025  if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7026    rm -rf conftest*    rm -rf conftest*
7027    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7028  else  else
# Line 7088  NOTIFY=$enable_notify Line 7089  NOTIFY=$enable_notify
7089  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
7090    
7091  echo $ac_n "checking alloca""... $ac_c" 1>&6  echo $ac_n "checking alloca""... $ac_c" 1>&6
7092  echo "configure:7092: checking alloca" >&5  echo "configure:7093: checking alloca" >&5
7093  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7094    gcl_ok=no    gcl_ok=no
7095  else  else
7096    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7097  #line 7097 "configure"  #line 7098 "configure"
7098  #include "confdefs.h"  #include "confdefs.h"
7099  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
7100  EOF  EOF
7101  if { (eval echo configure:7101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:7102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7102  then  then
7103    :    :
7104  else  else
# Line 7120  else Line 7121  else
7121    gcl_ok=no    gcl_ok=no
7122  else  else
7123    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7124  #line 7124 "configure"  #line 7125 "configure"
7125  #include "confdefs.h"  #include "confdefs.h"
7126  #include <alloca.h>  #include <alloca.h>
7127    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
7128  EOF  EOF
7129  if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:7130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7130  then  then
7131    :    :
7132  else  else
# Line 7186  if test $gcl_ok = no ; then     echo "$a Line 7187  if test $gcl_ok = no ; then     echo "$a
7187  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
7188  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
7189  echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6  echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6
7190  echo "configure:7190: checking Checking for buggy gcc version from redhat" >&5  echo "configure:7191: checking Checking for buggy gcc version from redhat" >&5
7191  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
7192     then     then
7193          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1

Legend:
Removed from v.1.176  
changed lines
  Added in v.1.177

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26