/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

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

revision 1.207 by camm, Sun Nov 27 21:50:35 2005 UTC revision 1.208 by camm, Wed Nov 30 15:37:02 2005 UTC
# Line 4954  if test "$tmp_cssize" != "$enable_cssize Line 4954  if test "$tmp_cssize" != "$enable_cssize
4954  else  else
4955     echo "$ac_t""$enable_cssize is OK" 1>&6     echo "$ac_t""$enable_cssize is OK" 1>&6
4956  fi  fi
4957    
4958    echo $ac_n "checking for C stack size limit from address wrap""... $ac_c" 1>&6
4959    echo "configure:4960: checking for C stack size limit from address wrap" >&5
4960    if test "$cross_compiling" = yes; then
4961      tmp_cssize=0
4962    else
4963      cat > conftest.$ac_ext <<EOF
4964    #line 4965 "configure"
4965    #include "confdefs.h"
4966    #include <stdio.h>
4967    int
4968    main()
4969    {
4970      char *b;
4971      FILE *fp = fopen("conftest1","w");
4972      unsigned long j,k;
4973      
4974      j=-$cstack_address * $cstack_direction;
4975      j=j>$enable_cssize ? $enable_cssize : j;
4976      fprintf(fp,"%lu",j);
4977      fclose(fp);
4978      return 0;
4979    }
4980    EOF
4981    if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4982    then
4983      tmp_cssize=`cat conftest1`
4984    else
4985      echo "configure: failed program was:" >&5
4986      cat conftest.$ac_ext >&5
4987      rm -fr conftest*
4988      tmp_cssize=0
4989    fi
4990    rm -fr conftest*
4991    fi
4992    
4993    if test "$tmp_cssize" != "$enable_cssize" ; then
4994       enable_cssize=$tmp_cssize;
4995       echo "$ac_t""$enable_cssize" 1>&6
4996    else
4997       echo "$ac_t""$enable_cssize is OK" 1>&6
4998    fi
4999  cat >> confdefs.h <<EOF  cat >> confdefs.h <<EOF
5000  #define CSSIZE $enable_cssize  #define CSSIZE $enable_cssize
5001  EOF  EOF
# Line 4962  EOF Line 5004  EOF
5004  mem_top=0  mem_top=0
5005  mem_range=0  mem_range=0
5006  echo $ac_n "checking mem top""... $ac_c" 1>&6  echo $ac_n "checking mem top""... $ac_c" 1>&6
5007  echo "configure:4966: checking mem top" >&5  echo "configure:5008: checking mem top" >&5
5008  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5009    mem_top=0    mem_top=0
5010  else  else
5011    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5012  #line 4971 "configure"  #line 5013 "configure"
5013  #include "confdefs.h"  #include "confdefs.h"
5014  #include <stdio.h>  #include <stdio.h>
5015  int  int
# Line 4992  main() Line 5034  main()
5034    fclose(fp);    fclose(fp);
5035    return 0;}    return 0;}
5036  EOF  EOF
5037  if { (eval echo configure:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5038  then  then
5039    mem_top=`cat conftest1`    mem_top=`cat conftest1`
5040  else  else
# Line 5007  fi Line 5049  fi
5049  echo "$ac_t""$mem_top" 1>&6  echo "$ac_t""$mem_top" 1>&6
5050  if test "$mem_top" != "0" ; then  if test "$mem_top" != "0" ; then
5051     echo $ac_n "checking finding upper mem half range""... $ac_c" 1>&6     echo $ac_n "checking finding upper mem half range""... $ac_c" 1>&6
5052  echo "configure:5011: checking finding upper mem half range" >&5  echo "configure:5053: checking finding upper mem half range" >&5
5053     if test "$cross_compiling" = yes; then     if test "$cross_compiling" = yes; then
5054    mem_range=0    mem_range=0
5055  else  else
5056    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5057  #line 5016 "configure"  #line 5058 "configure"
5058  #include "confdefs.h"  #include "confdefs.h"
5059  #include <stdio.h>  #include <stdio.h>
5060     int     int
# Line 5027  else Line 5069  else
5069       return 0;       return 0;
5070     }     }
5071  EOF  EOF
5072  if { (eval echo configure:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5073  then  then
5074    mem_range=`cat conftest1`    mem_range=`cat conftest1`
5075  else  else
# Line 5069  fi Line 5111  fi
5111    
5112    
5113  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6
5114  echo "configure:5073: checking "sizeof long long int"" >&5  echo "configure:5115: checking "sizeof long long int"" >&5
5115  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5116    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
5117    
5118  else  else
5119    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5120  #line 5079 "configure"  #line 5121 "configure"
5121  #include "confdefs.h"  #include "confdefs.h"
5122  #include <stdio.h>  #include <stdio.h>
5123  main()  main()
# Line 5085  main() Line 5127  main()
5127  }  }
5128    
5129  EOF  EOF
5130  if { (eval echo configure:5089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5131  then  then
5132    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
5133  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
# Line 5166  fi Line 5208  fi
5208  if test "$enable_pargcl" != "no" ; then                  if test "$enable_pargcl" != "no" ; then                
5209    
5210           echo $ac_n "checking enable_pargcl=yes, doing configure in pargcl directory""... $ac_c" 1>&6           echo $ac_n "checking enable_pargcl=yes, doing configure in pargcl directory""... $ac_c" 1>&6
5211  echo "configure:5170: checking enable_pargcl=yes, doing configure in pargcl directory" >&5  echo "configure:5212: checking enable_pargcl=yes, doing configure in pargcl directory" >&5
5212           if test -d pargcl; then           if test -d pargcl; then
5213             PARGCLDIR=pargcl             PARGCLDIR=pargcl
5214           fi           fi
# Line 5203  FLISP="saved_$SYSTEM" Line 5245  FLISP="saved_$SYSTEM"
5245  for ac_func in getcwd  for ac_func in getcwd
5246  do  do
5247  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5248  echo "configure:5207: checking for $ac_func" >&5  echo "configure:5249: checking for $ac_func" >&5
5249  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5250    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5251  else  else
5252    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5253  #line 5212 "configure"  #line 5254 "configure"
5254  #include "confdefs.h"  #include "confdefs.h"
5255  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5256      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 5231  $ac_func(); Line 5273  $ac_func();
5273    
5274  ; return 0; }  ; return 0; }
5275  EOF  EOF
5276  if { (eval echo configure:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5277    rm -rf conftest*    rm -rf conftest*
5278    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
5279  else  else
# Line 5258  done Line 5300  done
5300  for ac_func in getwd  for ac_func in getwd
5301  do  do
5302  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5303  echo "configure:5262: checking for $ac_func" >&5  echo "configure:5304: checking for $ac_func" >&5
5304  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5305    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5306  else  else
5307    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5308  #line 5267 "configure"  #line 5309 "configure"
5309  #include "confdefs.h"  #include "confdefs.h"
5310  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5311      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 5286  $ac_func(); Line 5328  $ac_func();
5328    
5329  ; return 0; }  ; return 0; }
5330  EOF  EOF
5331  if { (eval echo configure:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5332    rm -rf conftest*    rm -rf conftest*
5333    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
5334  else  else
# Line 5311  fi Line 5353  fi
5353  done  done
5354    
5355  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo $ac_n "checking for uname""... $ac_c" 1>&6
5356  echo "configure:5315: checking for uname" >&5  echo "configure:5357: checking for uname" >&5
5357  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
5358    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5359  else  else
5360    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5361  #line 5320 "configure"  #line 5362 "configure"
5362  #include "confdefs.h"  #include "confdefs.h"
5363  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5364      which can conflict with char uname(); below.  */      which can conflict with char uname(); below.  */
# Line 5339  uname(); Line 5381  uname();
5381    
5382  ; return 0; }  ; return 0; }
5383  EOF  EOF
5384  if { (eval echo configure:5343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5385    rm -rf conftest*    rm -rf conftest*
5386    eval "ac_cv_func_uname=yes"    eval "ac_cv_func_uname=yes"
5387  else  else
# Line 5363  EOF Line 5405  EOF
5405  fi  fi
5406    
5407  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
5408  echo "configure:5367: checking for gettimeofday" >&5  echo "configure:5409: checking for gettimeofday" >&5
5409  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
5410    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5411  else  else
5412    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5413  #line 5372 "configure"  #line 5414 "configure"
5414  #include "confdefs.h"  #include "confdefs.h"
5415  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5416      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 5391  gettimeofday(); Line 5433  gettimeofday();
5433    
5434  ; return 0; }  ; return 0; }
5435  EOF  EOF
5436  if { (eval echo configure:5395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5437    rm -rf conftest*    rm -rf conftest*
5438    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
5439  else  else
# Line 5420  for ac_hdr in sys/ioctl.h Line 5462  for ac_hdr in sys/ioctl.h
5462  do  do
5463  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5464  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5465  echo "configure:5424: checking for $ac_hdr" >&5  echo "configure:5466: checking for $ac_hdr" >&5
5466  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5467    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5468  else  else
5469    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5470  #line 5429 "configure"  #line 5471 "configure"
5471  #include "confdefs.h"  #include "confdefs.h"
5472  #include <$ac_hdr>  #include <$ac_hdr>
5473  EOF  EOF
5474  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5475  { (eval echo configure:5434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5476  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5477  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5478    rm -rf conftest*    rm -rf conftest*
# Line 5462  for ac_hdr in elf.h elf_abi.h Line 5504  for ac_hdr in elf.h elf_abi.h
5504  do  do
5505  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5506  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5507  echo "configure:5466: checking for $ac_hdr" >&5  echo "configure:5508: checking for $ac_hdr" >&5
5508  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5509    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5510  else  else
5511    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5512  #line 5471 "configure"  #line 5513 "configure"
5513  #include "confdefs.h"  #include "confdefs.h"
5514  #include <$ac_hdr>  #include <$ac_hdr>
5515  EOF  EOF
5516  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5517  { (eval echo configure:5476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5518  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5519  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5520    rm -rf conftest*    rm -rf conftest*
# Line 5512  done Line 5554  done
5554  #--------------------------------------------------------------------  #--------------------------------------------------------------------
5555    
5556  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
5557  echo "configure:5516: checking for BSDgettimeofday" >&5  echo "configure:5558: checking for BSDgettimeofday" >&5
5558  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
5559    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5560  else  else
5561    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5562  #line 5521 "configure"  #line 5563 "configure"
5563  #include "confdefs.h"  #include "confdefs.h"
5564  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5565      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday(); below.  */
# Line 5540  BSDgettimeofday(); Line 5582  BSDgettimeofday();
5582    
5583  ; return 0; }  ; return 0; }
5584  EOF  EOF
5585  if { (eval echo configure:5544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5586    rm -rf conftest*    rm -rf conftest*
5587    eval "ac_cv_func_BSDgettimeofday=yes"    eval "ac_cv_func_BSDgettimeofday=yes"
5588  else  else
# Line 5561  EOF Line 5603  EOF
5603  else  else
5604    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
5605  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
5606  echo "configure:5565: checking for gettimeofday" >&5  echo "configure:5607: checking for gettimeofday" >&5
5607  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
5608    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5609  else  else
5610    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5611  #line 5570 "configure"  #line 5612 "configure"
5612  #include "confdefs.h"  #include "confdefs.h"
5613  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5614      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 5589  gettimeofday(); Line 5631  gettimeofday();
5631    
5632  ; return 0; }  ; return 0; }
5633  EOF  EOF
5634  if { (eval echo configure:5593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5635    rm -rf conftest*    rm -rf conftest*
5636    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
5637  else  else
# Line 5616  fi Line 5658  fi
5658    
5659    
5660  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
5661  echo "configure:5620: checking for gettimeofday declaration" >&5  echo "configure:5662: checking for gettimeofday declaration" >&5
5662    
5663  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5664  #line 5623 "configure"  #line 5665 "configure"
5665  #include "confdefs.h"  #include "confdefs.h"
5666  #include <sys/time.h>  #include <sys/time.h>
5667  EOF  EOF
# Line 5640  rm -f conftest* Line 5682  rm -f conftest*
5682    
5683    
5684  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5685  echo "configure:5644: checking for sin in -lm" >&5  echo "configure:5686: checking for sin in -lm" >&5
5686  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5687  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
5688    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5648  else Line 5690  else
5690    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5691  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
5692  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5693  #line 5652 "configure"  #line 5694 "configure"
5694  #include "confdefs.h"  #include "confdefs.h"
5695  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5696  /* 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 5659  int main() { Line 5701  int main() {
5701  sin()  sin()
5702  ; return 0; }  ; return 0; }
5703  EOF  EOF
5704  if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5705    rm -rf conftest*    rm -rf conftest*
5706    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5707  else  else
# Line 5681  true Line 5723  true
5723  fi  fi
5724    
5725  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6
5726  echo "configure:5685: checking for main in -lmingwex" >&5  echo "configure:5727: checking for main in -lmingwex" >&5
5727  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`
5728  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
5729    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5689  else Line 5731  else
5731    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5732  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
5733  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5734  #line 5693 "configure"  #line 5735 "configure"
5735  #include "confdefs.h"  #include "confdefs.h"
5736    
5737  int main() {  int main() {
5738  main()  main()
5739  ; return 0; }  ; return 0; }
5740  EOF  EOF
5741  if { (eval echo configure:5700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5742    rm -rf conftest*    rm -rf conftest*
5743    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5744  else  else
# Line 5724  if test "$try_japi" = "yes" ; then Line 5766  if test "$try_japi" = "yes" ; then
5766  do  do
5767  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5768  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5769  echo "configure:5728: checking for $ac_hdr" >&5  echo "configure:5770: checking for $ac_hdr" >&5
5770  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5771    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5772  else  else
5773    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5774  #line 5733 "configure"  #line 5775 "configure"
5775  #include "confdefs.h"  #include "confdefs.h"
5776  #include <$ac_hdr>  #include <$ac_hdr>
5777  EOF  EOF
5778  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5779  { (eval echo configure:5738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5780  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5781  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5782    rm -rf conftest*    rm -rf conftest*
# Line 5772  if test "$use" = "mingw" ; then Line 5814  if test "$use" = "mingw" ; then
5814  do  do
5815  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5816  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5817  echo "configure:5776: checking for $ac_hdr" >&5  echo "configure:5818: checking for $ac_hdr" >&5
5818  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5819    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5820  else  else
5821    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5822  #line 5781 "configure"  #line 5823 "configure"
5823  #include "confdefs.h"  #include "confdefs.h"
5824  #include <$ac_hdr>  #include <$ac_hdr>
5825  EOF  EOF
5826  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5827  { (eval echo configure:5786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5828  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5829  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5830    rm -rf conftest*    rm -rf conftest*
# Line 5819  else Line 5861  else
5861  do  do
5862  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5863  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5864  echo "configure:5823: checking for $ac_hdr" >&5  echo "configure:5865: checking for $ac_hdr" >&5
5865  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5866    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5867  else  else
5868    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5869  #line 5828 "configure"  #line 5870 "configure"
5870  #include "confdefs.h"  #include "confdefs.h"
5871  #include <$ac_hdr>  #include <$ac_hdr>
5872  EOF  EOF
5873  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5874  { (eval echo configure:5833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5875  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5876  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5877    rm -rf conftest*    rm -rf conftest*
# Line 5869  for ac_hdr in math.h Line 5911  for ac_hdr in math.h
5911  do  do
5912  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5913  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5914  echo "configure:5873: checking for $ac_hdr" >&5  echo "configure:5915: checking for $ac_hdr" >&5
5915  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5916    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5917  else  else
5918    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5919  #line 5878 "configure"  #line 5920 "configure"
5920  #include "confdefs.h"  #include "confdefs.h"
5921  #include <$ac_hdr>  #include <$ac_hdr>
5922  EOF  EOF
5923  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5924  { (eval echo configure:5883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5925  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5926  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5927    rm -rf conftest*    rm -rf conftest*
# Line 5916  for ac_hdr in values.h Line 5958  for ac_hdr in values.h
5958  do  do
5959  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5960  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5961  echo "configure:5920: checking for $ac_hdr" >&5  echo "configure:5962: checking for $ac_hdr" >&5
5962  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5963    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5964  else  else
5965    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5966  #line 5925 "configure"  #line 5967 "configure"
5967  #include "confdefs.h"  #include "confdefs.h"
5968  #include <$ac_hdr>  #include <$ac_hdr>
5969  EOF  EOF
5970  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5971  { (eval echo configure:5930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5972  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5973  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5974    rm -rf conftest*    rm -rf conftest*
# Line 5963  for ac_hdr in float.h Line 6005  for ac_hdr in float.h
6005  do  do
6006  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6007  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6008  echo "configure:5967: checking for $ac_hdr" >&5  echo "configure:6009: checking for $ac_hdr" >&5
6009  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6010    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6011  else  else
6012    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6013  #line 5972 "configure"  #line 6014 "configure"
6014  #include "confdefs.h"  #include "confdefs.h"
6015  #include <$ac_hdr>  #include <$ac_hdr>
6016  EOF  EOF
6017  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6018  { (eval echo configure:5977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6019  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6020  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6021    rm -rf conftest*    rm -rf conftest*
# Line 6009  done Line 6051  done
6051  # test makes sense.  CM  # test makes sense.  CM
6052  #  #
6053  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo $ac_n "checking for isnormal""... $ac_c" 1>&6
6054  echo "configure:6013: checking for isnormal" >&5  echo "configure:6055: checking for isnormal" >&5
6055  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6056    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6
6057  else  else
6058    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6059  #line 6018 "configure"  #line 6060 "configure"
6060  #include "confdefs.h"  #include "confdefs.h"
6061  #define _GNU_SOURCE 1  #define _GNU_SOURCE 1
6062              #include <math.h>              #include <math.h>
# Line 6023  else Line 6065  else
6065                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
6066                  }                  }
6067  EOF  EOF
6068  if { (eval echo configure:6027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6069  then  then
6070    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6071  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
# Line 6034  else Line 6076  else
6076    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6077    rm -fr conftest*    rm -fr conftest*
6078    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
6079  echo "configure:6038: checking for fpclass in ieeefp.h" >&5  echo "configure:6080: checking for fpclass in ieeefp.h" >&5
6080                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
6081    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6
6082  else  else
6083    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6084  #line 6043 "configure"  #line 6085 "configure"
6085  #include "confdefs.h"  #include "confdefs.h"
6086  #include <ieeefp.h>  #include <ieeefp.h>
6087                              int main() {                              int main() {
# Line 6047  else Line 6089  else
6089                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
6090                                  }                                  }
6091  EOF  EOF
6092  if { (eval echo configure:6051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:6093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6093  then  then
6094    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6095  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
# Line 6069  fi Line 6111  fi
6111    
6112    
6113  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ac_n "checking for isfinite""... $ac_c" 1>&6
6114  echo "configure:6073: checking for isfinite" >&5  echo "configure:6115: checking for isfinite" >&5
6115  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6116    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6
6117  else  else
6118    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6119  #line 6078 "configure"  #line 6120 "configure"
6120  #include "confdefs.h"  #include "confdefs.h"
6121  #define _GNU_SOURCE 1  #define _GNU_SOURCE 1
6122              #include <math.h>              #include <math.h>
# Line 6083  else Line 6125  else
6125                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
6126                  }                  }
6127  EOF  EOF
6128  if { (eval echo configure:6087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:6129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6129  then  then
6130    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6131  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
# Line 6094  else Line 6136  else
6136    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6137    rm -fr conftest*    rm -fr conftest*
6138    echo $ac_n "checking for finite()""... $ac_c" 1>&6    echo $ac_n "checking for finite()""... $ac_c" 1>&6
6139  echo "configure:6098: checking for finite()" >&5  echo "configure:6140: checking for finite()" >&5
6140                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
6141    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$ac_t""no" 1>&6
6142  else  else
6143    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6144  #line 6103 "configure"  #line 6145 "configure"
6145  #include "confdefs.h"  #include "confdefs.h"
6146  #include <math.h>  #include <math.h>
6147                              #include <ieeefp.h>                              #include <ieeefp.h>
# Line 6108  else Line 6150  else
6150                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
6151                                  }                                  }
6152  EOF  EOF
6153  if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6154  then  then
6155    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6156  #define HAVE_FINITE 1  #define HAVE_FINITE 1
# Line 6149  fi Line 6191  fi
6191  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
6192  #--------------------------------------------------------------------  #--------------------------------------------------------------------
6193  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo $ac_n "checking for sockets""... $ac_c" 1>&6
6194  echo "configure:6153: checking for sockets" >&5  echo "configure:6195: checking for sockets" >&5
6195  tcl_checkBoth=0  tcl_checkBoth=0
6196  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo $ac_n "checking for connect""... $ac_c" 1>&6
6197  echo "configure:6156: checking for connect" >&5  echo "configure:6198: checking for connect" >&5
6198  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6199    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6200  else  else
6201    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6202  #line 6161 "configure"  #line 6203 "configure"
6203  #include "confdefs.h"  #include "confdefs.h"
6204  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6205      which can conflict with char connect(); below.  */      which can conflict with char connect(); below.  */
# Line 6180  connect(); Line 6222  connect();
6222    
6223  ; return 0; }  ; return 0; }
6224  EOF  EOF
6225  if { (eval echo configure:6184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6226    rm -rf conftest*    rm -rf conftest*
6227    eval "ac_cv_func_connect=yes"    eval "ac_cv_func_connect=yes"
6228  else  else
# Line 6202  fi Line 6244  fi
6244    
6245  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
6246      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
6247  echo "configure:6206: checking for main in -lsocket" >&5  echo "configure:6248: checking for main in -lsocket" >&5
6248  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6249  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
6250    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6210  else Line 6252  else
6252    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6253  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
6254  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6255  #line 6214 "configure"  #line 6256 "configure"
6256  #include "confdefs.h"  #include "confdefs.h"
6257    
6258  int main() {  int main() {
6259  main()  main()
6260  ; return 0; }  ; return 0; }
6261  EOF  EOF
6262  if { (eval echo configure:6221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6263    rm -rf conftest*    rm -rf conftest*
6264    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6265  else  else
# Line 6245  if test "$tcl_checkBoth" = 1; then Line 6287  if test "$tcl_checkBoth" = 1; then
6287      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
6288      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
6289      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo $ac_n "checking for accept""... $ac_c" 1>&6
6290  echo "configure:6249: checking for accept" >&5  echo "configure:6291: checking for accept" >&5
6291  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6292    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6293  else  else
6294    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6295  #line 6254 "configure"  #line 6296 "configure"
6296  #include "confdefs.h"  #include "confdefs.h"
6297  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6298      which can conflict with char accept(); below.  */      which can conflict with char accept(); below.  */
# Line 6273  accept(); Line 6315  accept();
6315    
6316  ; return 0; }  ; return 0; }
6317  EOF  EOF
6318  if { (eval echo configure:6277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6319    rm -rf conftest*    rm -rf conftest*
6320    eval "ac_cv_func_accept=yes"    eval "ac_cv_func_accept=yes"
6321  else  else
# Line 6295  fi Line 6337  fi
6337    
6338  fi  fi
6339  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6340  echo "configure:6299: checking for gethostbyname" >&5  echo "configure:6341: checking for gethostbyname" >&5
6341  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6342    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6343  else  else
6344    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6345  #line 6304 "configure"  #line 6346 "configure"
6346  #include "confdefs.h"  #include "confdefs.h"
6347  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6348      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname(); below.  */
# Line 6323  gethostbyname(); Line 6365  gethostbyname();
6365    
6366  ; return 0; }  ; return 0; }
6367  EOF  EOF
6368  if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6369    rm -rf conftest*    rm -rf conftest*
6370    eval "ac_cv_func_gethostbyname=yes"    eval "ac_cv_func_gethostbyname=yes"
6371  else  else
# Line 6341  if eval "test \"`echo '$ac_cv_func_'geth Line 6383  if eval "test \"`echo '$ac_cv_func_'geth
6383  else  else
6384    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
6385  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
6386  echo "configure:6345: checking for main in -lnsl" >&5  echo "configure:6387: checking for main in -lnsl" >&5
6387  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6388  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
6389    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6349  else Line 6391  else
6391    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6392  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
6393  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6394  #line 6353 "configure"  #line 6395 "configure"
6395  #include "confdefs.h"  #include "confdefs.h"
6396    
6397  int main() {  int main() {
6398  main()  main()
6399  ; return 0; }  ; return 0; }
6400  EOF  EOF
6401  if { (eval echo configure:6360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6402    rm -rf conftest*    rm -rf conftest*
6403    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6404  else  else
# Line 6386  if test "$enable_readline" = "yes" ; the Line 6428  if test "$enable_readline" = "yes" ; the
6428  do  do
6429  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6430  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6431  echo "configure:6390: checking for $ac_hdr" >&5  echo "configure:6432: checking for $ac_hdr" >&5
6432  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6433    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6434  else  else
6435    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6436  #line 6395 "configure"  #line 6437 "configure"
6437  #include "confdefs.h"  #include "confdefs.h"
6438  #include <$ac_hdr>  #include <$ac_hdr>
6439  EOF  EOF
6440  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6441  { (eval echo configure:6400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6442  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6443  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6444    rm -rf conftest*    rm -rf conftest*
# Line 6417  if eval "test \"`echo '$ac_cv_header_'$a Line 6459  if eval "test \"`echo '$ac_cv_header_'$a
6459  #define $ac_tr_hdr 1  #define $ac_tr_hdr 1
6460  EOF  EOF
6461   echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6   echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
6462  echo "configure:6421: checking for main in -lreadline" >&5  echo "configure:6463: checking for main in -lreadline" >&5
6463  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
6464  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
6465    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6425  else Line 6467  else
6467    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6468  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
6469  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6470  #line 6429 "configure"  #line 6471 "configure"
6471  #include "confdefs.h"  #include "confdefs.h"
6472    
6473  int main() {  int main() {
6474  main()  main()
6475  ; return 0; }  ; return 0; }
6476  EOF  EOF
6477  if { (eval echo configure:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6478    rm -rf conftest*    rm -rf conftest*
6479    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6480  else  else
# Line 6469  done Line 6511  done
6511    
6512  # These tests discover differences between readline 4.1 and 4.3  # These tests discover differences between readline 4.1 and 4.3
6513          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
6514  echo "configure:6473: checking for rl_completion_matches in -lreadline" >&5  echo "configure:6515: checking for rl_completion_matches in -lreadline" >&5
6515  ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`  ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
6516  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
6517    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6477  else Line 6519  else
6519    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6520  LIBS="-lreadline  $LIBS"  LIBS="-lreadline  $LIBS"
6521  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6522  #line 6481 "configure"  #line 6523 "configure"
6523  #include "confdefs.h"  #include "confdefs.h"
6524  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6525  /* 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 6488  int main() { Line 6530  int main() {
6530  rl_completion_matches()  rl_completion_matches()
6531  ; return 0; }  ; return 0; }
6532  EOF  EOF
6533  if { (eval echo configure:6492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6534    rm -rf conftest*    rm -rf conftest*
6535    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6536  else  else
# Line 6521  fi Line 6563  fi
6563    
6564    
6565  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
6566  echo "configure:6525: checking For network code for nsocket.c" >&5  echo "configure:6567: checking For network code for nsocket.c" >&5
6567  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6568  #line 6527 "configure"  #line 6569 "configure"
6569  #include "confdefs.h"  #include "confdefs.h"
6570    
6571  #include <sys/time.h>  #include <sys/time.h>
# Line 6550  int main() { Line 6592  int main() {
6592                    
6593  ; return 0; }  ; return 0; }
6594  EOF  EOF
6595  if { (eval echo configure:6554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6596    rm -rf conftest*    rm -rf conftest*
6597    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6598  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
# Line 6567  rm -f conftest* Line 6609  rm -f conftest*
6609    
6610    
6611  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
6612  echo "configure:6571: checking check for listen using fcntl" >&5  echo "configure:6613: checking check for listen using fcntl" >&5
6613  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6614  #line 6573 "configure"  #line 6615 "configure"
6615  #include "confdefs.h"  #include "confdefs.h"
6616  #include <stdio.h>  #include <stdio.h>
6617  #include <fcntl.h>  #include <fcntl.h>
# Line 6582  FILE *fp=fopen("configure.in","r"); Line 6624  FILE *fp=fopen("configure.in","r");
6624    
6625  ; return 0; }  ; return 0; }
6626  EOF  EOF
6627  if { (eval echo configure:6586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6628    rm -rf conftest*    rm -rf conftest*
6629    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6630  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
# Line 6601  rm -f conftest* Line 6643  rm -f conftest*
6643    
6644    
6645  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo $ac_n "checking for profil""... $ac_c" 1>&6
6646  echo "configure:6605: checking for profil" >&5  echo "configure:6647: checking for profil" >&5
6647  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then
6648    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6649  else  else
6650    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6651  #line 6610 "configure"  #line 6652 "configure"
6652  #include "confdefs.h"  #include "confdefs.h"
6653  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6654      which can conflict with char profil(); below.  */      which can conflict with char profil(); below.  */
# Line 6629  profil(); Line 6671  profil();
6671    
6672  ; return 0; }  ; return 0; }
6673  EOF  EOF
6674  if { (eval echo configure:6633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6675    rm -rf conftest*    rm -rf conftest*
6676    eval "ac_cv_func_profil=yes"    eval "ac_cv_func_profil=yes"
6677  else  else
# Line 6654  fi Line 6696  fi
6696    
6697    
6698  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo $ac_n "checking for setenv""... $ac_c" 1>&6
6699  echo "configure:6658: checking for setenv" >&5  echo "configure:6700: checking for setenv" >&5
6700  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
6701    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6702  else  else
6703    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6704  #line 6663 "configure"  #line 6705 "configure"
6705  #include "confdefs.h"  #include "confdefs.h"
6706  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6707      which can conflict with char setenv(); below.  */      which can conflict with char setenv(); below.  */
# Line 6682  setenv(); Line 6724  setenv();
6724    
6725  ; return 0; }  ; return 0; }
6726  EOF  EOF
6727  if { (eval echo configure:6686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6728    rm -rf conftest*    rm -rf conftest*
6729    eval "ac_cv_func_setenv=yes"    eval "ac_cv_func_setenv=yes"
6730  else  else
# Line 6708  fi Line 6750  fi
6750    
6751  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
6752  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo $ac_n "checking for putenv""... $ac_c" 1>&6
6753  echo "configure:6712: checking for putenv" >&5  echo "configure:6754: checking for putenv" >&5
6754  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
6755    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6756  else  else
6757    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6758  #line 6717 "configure"  #line 6759 "configure"
6759  #include "confdefs.h"  #include "confdefs.h"
6760  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6761      which can conflict with char putenv(); below.  */      which can conflict with char putenv(); below.  */
# Line 6736  putenv(); Line 6778  putenv();
6778    
6779  ; return 0; }  ; return 0; }
6780  EOF  EOF
6781  if { (eval echo configure:6740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6782    rm -rf conftest*    rm -rf conftest*
6783    eval "ac_cv_func_putenv=yes"    eval "ac_cv_func_putenv=yes"
6784  else  else
# Line 6762  fi Line 6804  fi
6804  fi  fi
6805    
6806  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6
6807  echo "configure:6766: checking for _cleanup" >&5  echo "configure:6808: checking for _cleanup" >&5
6808  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then
6809    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6810  else  else
6811    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6812  #line 6771 "configure"  #line 6813 "configure"
6813  #include "confdefs.h"  #include "confdefs.h"
6814  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6815      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup(); below.  */
# Line 6790  _cleanup(); Line 6832  _cleanup();
6832    
6833  ; return 0; }  ; return 0; }
6834  EOF  EOF
6835  if { (eval echo configure:6794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6836    rm -rf conftest*    rm -rf conftest*
6837    eval "ac_cv_func__cleanup=yes"    eval "ac_cv_func__cleanup=yes"
6838  else  else
# Line 6816  fi Line 6858  fi
6858  gcl_ok=no  gcl_ok=no
6859    
6860  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6861  #line 6820 "configure"  #line 6862 "configure"
6862  #include "confdefs.h"  #include "confdefs.h"
6863  #include <ctype.h>  #include <ctype.h>
6864  EOF  EOF
# Line 6844  fi Line 6886  fi
6886    
6887  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
6888  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
6889  echo "configure:6848: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5  echo "configure:6890: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
6890    
6891  case $system in  case $system in
6892         OSF*)         OSF*)
# Line 6875  esac Line 6917  esac
6917    
6918    
6919  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6
6920  echo "configure:6879: checking check for SV_ONSTACK" >&5  echo "configure:6921: checking check for SV_ONSTACK" >&5
6921  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6922  #line 6881 "configure"  #line 6923 "configure"
6923  #include "confdefs.h"  #include "confdefs.h"
6924  #include <signal.h>  #include <signal.h>
6925  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
# Line 6886  int main() { Line 6928  int main() {
6928    
6929  ; return 0; }  ; return 0; }
6930  EOF  EOF
6931  if { (eval echo configure:6890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6932    rm -rf conftest*    rm -rf conftest*
6933    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6934  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
# Line 6903  fi Line 6945  fi
6945  rm -f conftest*  rm -f conftest*
6946    
6947  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6
6948  echo "configure:6907: checking check for SIGSYS" >&5  echo "configure:6949: checking check for SIGSYS" >&5
6949  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6950  #line 6909 "configure"  #line 6951 "configure"
6951  #include "confdefs.h"  #include "confdefs.h"
6952  #include <signal.h>  #include <signal.h>
6953  int joe=SIGSYS;  int joe=SIGSYS;
# Line 6914  int main() { Line 6956  int main() {
6956    
6957  ; return 0; }  ; return 0; }
6958  EOF  EOF
6959  if { (eval echo configure:6918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6960    rm -rf conftest*    rm -rf conftest*
6961    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6962  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
# Line 6932  rm -f conftest* Line 6974  rm -f conftest*
6974    
6975    
6976  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6
6977  echo "configure:6936: checking check for SIGEMT" >&5  echo "configure:6978: checking check for SIGEMT" >&5
6978  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6979  #line 6938 "configure"  #line 6980 "configure"
6980  #include "confdefs.h"  #include "confdefs.h"
6981  #include <signal.h>  #include <signal.h>
6982  int joe=SIGEMT;  int joe=SIGEMT;
# Line 6943  int main() { Line 6985  int main() {
6985    
6986  ; return 0; }  ; return 0; }
6987  EOF  EOF
6988  if { (eval echo configure:6947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6989    rm -rf conftest*    rm -rf conftest*
6990    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6991  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
# Line 6967  rm -f conftest* Line 7009  rm -f conftest*
7009  do  do
7010  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7011  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7012  echo "configure:6971: checking for $ac_hdr" >&5  echo "configure:7013: checking for $ac_hdr" >&5
7013  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7014    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7015  else  else
7016    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7017  #line 6976 "configure"  #line 7018 "configure"
7018  #include "confdefs.h"  #include "confdefs.h"
7019  #include <$ac_hdr>  #include <$ac_hdr>
7020  EOF  EOF
7021  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7022  { (eval echo configure:6981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:7023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7023  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7024  if test -z "$ac_err"; then  if test -z "$ac_err"; then
7025    rm -rf conftest*    rm -rf conftest*
# Line 7007  done Line 7049  done
7049  do  do
7050  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7051  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7052  echo "configure:7011: checking for $ac_hdr" >&5  echo "configure:7053: checking for $ac_hdr" >&5
7053  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7054    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7055  else  else
7056    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7057  #line 7016 "configure"  #line 7058 "configure"
7058  #include "confdefs.h"  #include "confdefs.h"
7059  #include <$ac_hdr>  #include <$ac_hdr>
7060  EOF  EOF
7061  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7062  { (eval echo configure:7021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:7063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7063  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7064  if test -z "$ac_err"; then  if test -z "$ac_err"; then
7065    rm -rf conftest*    rm -rf conftest*
# Line 7044  fi Line 7086  fi
7086  done  done
7087    
7088          echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6          echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6
7089  echo "configure:7048: checking for sigcontext..." >&5  echo "configure:7090: checking for sigcontext..." >&5
7090          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
7091  #line 7050 "configure"  #line 7092 "configure"
7092  #include "confdefs.h"  #include "confdefs.h"
7093  #include <signal.h>  #include <signal.h>
7094                
# Line 7056  int main() { Line 7098  int main() {
7098                
7099  ; return 0; }  ; return 0; }
7100  EOF  EOF
7101  if { (eval echo configure:7060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7102    rm -rf conftest*    rm -rf conftest*
7103        
7104          sigcontext_works=1;          sigcontext_works=1;
# Line 7077  fi Line 7119  fi
7119  rm -f conftest*  rm -f conftest*
7120         if test "$sigcontext_works" = 0 ; then         if test "$sigcontext_works" = 0 ; then
7121         echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6         echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6
7122  echo "configure:7081: checking for sigcontext..." >&5  echo "configure:7123: checking for sigcontext..." >&5
7123         cat > conftest.$ac_ext <<EOF         cat > conftest.$ac_ext <<EOF
7124  #line 7083 "configure"  #line 7125 "configure"
7125  #include "confdefs.h"  #include "confdefs.h"
7126  #include <signal.h>  #include <signal.h>
7127               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H    
# Line 7095  int main() { Line 7137  int main() {
7137                    
7138  ; return 0; }  ; return 0; }
7139  EOF  EOF
7140  if { (eval echo configure:7099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7141    rm -rf conftest*    rm -rf conftest*
7142        
7143          cat >> confdefs.h <<\EOF          cat >> confdefs.h <<\EOF
# Line 7137  rm -f conftest* Line 7179  rm -f conftest*
7179  # 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.
7180  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
7181  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7182  echo "configure:7141: checking for $ac_word" >&5  echo "configure:7183: checking for $ac_word" >&5
7183  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
7184    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7185  else  else
# Line 7185  cat >> conftest.el <<EOF Line 7227  cat >> conftest.el <<EOF
7227  EOF  EOF
7228    
7229  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6
7230  echo "configure:7189: checking emacs site lisp directory" >&5  echo "configure:7231: checking emacs site lisp directory" >&5
7231  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then
7232          if [ "$EMACS" != "" ] ; then          if [ "$EMACS" != "" ] ; then
7233                  EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | grep -v ^Warning: | sed -e /Loading/d | sed -e /load/d | sed -e /^Warn/d`                  EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | grep -v ^Warning: | sed -e /Loading/d | sed -e /load/d | sed -e /^Warn/d`
# Line 7209  cat >> conftest.el <<EOF Line 7251  cat >> conftest.el <<EOF
7251  EOF  EOF
7252    
7253  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6
7254  echo "configure:7213: checking emacs default.el" >&5  echo "configure:7255: checking emacs default.el" >&5
7255  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
7256          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 `
7257  else  else
# Line 7238  cat >> conftest.el <<EOF Line 7280  cat >> conftest.el <<EOF
7280  EOF  EOF
7281    
7282  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6
7283  echo "configure:7242: checking emacs info/dir" >&5  echo "configure:7284: checking emacs info/dir" >&5
7284  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
7285      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
7286  else  else
# Line 7256  echo "$ac_t""$INFO_DIR" 1>&6 Line 7298  echo "$ac_t""$INFO_DIR" 1>&6
7298    
7299    
7300  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6
7301  echo "configure:7260: checking for tcl/tk" >&5  echo "configure:7302: checking for tcl/tk" >&5
7302    
7303    
7304  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 7279  EOF Line 7321  EOF
7321  # 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.
7322  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
7323  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7324  echo "configure:7283: checking for $ac_word" >&5  echo "configure:7325: checking for $ac_word" >&5
7325  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then
7326    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7327  else  else
# Line 7384  if test -f ${TK_CONFIG_PREFIX}/../bin/tc Line 7426  if test -f ${TK_CONFIG_PREFIX}/../bin/tc
7426     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}"
7427  else  else
7428    echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6    echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6
7429  echo "configure:7388: checking for main in -llieee" >&5  echo "configure:7430: checking for main in -llieee" >&5
7430  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`
7431  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
7432    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7392  else Line 7434  else
7434    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7435  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
7436  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7437  #line 7396 "configure"  #line 7438 "configure"
7438  #include "confdefs.h"  #include "confdefs.h"
7439    
7440  int main() {  int main() {
7441  main()  main()
7442  ; return 0; }  ; return 0; }
7443  EOF  EOF
7444  if { (eval echo configure:7403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7445    rm -rf conftest*    rm -rf conftest*
7446    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7447  else  else
# Line 7467  NOTIFY=$enable_notify Line 7509  NOTIFY=$enable_notify
7509    
7510  if test "$use" != "mingw" ; then  if test "$use" != "mingw" ; then
7511    echo $ac_n "checking alloca""... $ac_c" 1>&6    echo $ac_n "checking alloca""... $ac_c" 1>&6
7512  echo "configure:7471: checking alloca" >&5  echo "configure:7513: checking alloca" >&5
7513    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
7514    gcl_ok=no    gcl_ok=no
7515  else  else
7516    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7517  #line 7476 "configure"  #line 7518 "configure"
7518  #include "confdefs.h"  #include "confdefs.h"
7519  #include <stdio.h>  #include <stdio.h>
7520    int main() { exit(alloca(500) != NULL ? 0 : 1);}    int main() { exit(alloca(500) != NULL ? 0 : 1);}
7521  EOF  EOF
7522  if { (eval echo configure:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:7523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7523  then  then
7524    :    :
7525  else  else
# Line 7500  EOF Line 7542  EOF
7542    gcl_ok=no    gcl_ok=no
7543  else  else
7544    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7545  #line 7504 "configure"  #line 7546 "configure"
7546  #include "confdefs.h"  #include "confdefs.h"
7547  #include <alloca.h>  #include <alloca.h>
7548      int main() { exit(alloca(500) != NULL ? 0 : 1)}      int main() { exit(alloca(500) != NULL ? 0 : 1)}
7549  EOF  EOF
7550  if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:7551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7551  then  then
7552    :    :
7553  else  else
# Line 7560  fi Line 7602  fi
7602  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
7603  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
7604  echo $ac_n "checking for buggy gcc version from redhat""... $ac_c" 1>&6  echo $ac_n "checking for buggy gcc version from redhat""... $ac_c" 1>&6
7605  echo "configure:7564: checking for buggy gcc version from redhat" >&5  echo "configure:7606: checking for buggy gcc version from redhat" >&5
7606  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
7607     then     then
7608          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1

Legend:
Removed from v.1.207  
changed lines
  Added in v.1.208

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