Changeset dabfee in git


Ignore:
Timestamp:
Nov 18, 1999, 5:23:51 PM (24 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
bd337e83b5133f98bdeb98af96c098e7d1cbc277
Parents:
58914b361751179a91896ad4caeb81bd63328253
Message:
*hannes: term-stuff


git-svn-id: file:///usr/local/Singular/svn/trunk@3850 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/configure

    r58914b rdabfee  
    36653665done
    36663666
     3667for ac_hdr in term.h
     3668do
     3669ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     3670echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     3671echo "configure:3672: checking for $ac_hdr" >&5
     3672if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     3673  echo $ac_n "(cached) $ac_c" 1>&6
     3674else
     3675  cat > conftest.$ac_ext <<EOF
     3676#line 3677 "configure"
     3677#include "confdefs.h"
     3678#include <$ac_hdr>
     3679EOF
     3680ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     3681{ (eval echo configure:3682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3682ac_err=`grep -v '^ *+' conftest.out`
     3683if test -z "$ac_err"; then
     3684  rm -rf conftest*
     3685  eval "ac_cv_header_$ac_safe=yes"
     3686else
     3687  echo "$ac_err" >&5
     3688  echo "configure: failed program was:" >&5
     3689  cat conftest.$ac_ext >&5
     3690  rm -rf conftest*
     3691  eval "ac_cv_header_$ac_safe=no"
     3692fi
     3693rm -f conftest*
     3694fi
     3695if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     3696  echo "$ac_t""yes" 1>&6
     3697    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     3698  cat >> confdefs.h <<EOF
     3699#define $ac_tr_hdr 1
     3700EOF
     3701 
     3702else
     3703  echo "$ac_t""no" 1>&6
     3704fi
     3705done
     3706
     3707for ac_hdr in sys/termbits.h
     3708do
     3709ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     3710echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     3711echo "configure:3712: checking for $ac_hdr" >&5
     3712if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     3713  echo $ac_n "(cached) $ac_c" 1>&6
     3714else
     3715  cat > conftest.$ac_ext <<EOF
     3716#line 3717 "configure"
     3717#include "confdefs.h"
     3718#include <$ac_hdr>
     3719EOF
     3720ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     3721{ (eval echo configure:3722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3722ac_err=`grep -v '^ *+' conftest.out`
     3723if test -z "$ac_err"; then
     3724  rm -rf conftest*
     3725  eval "ac_cv_header_$ac_safe=yes"
     3726else
     3727  echo "$ac_err" >&5
     3728  echo "configure: failed program was:" >&5
     3729  cat conftest.$ac_ext >&5
     3730  rm -rf conftest*
     3731  eval "ac_cv_header_$ac_safe=no"
     3732fi
     3733rm -f conftest*
     3734fi
     3735if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     3736  echo "$ac_t""yes" 1>&6
     3737    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     3738  cat >> confdefs.h <<EOF
     3739#define $ac_tr_hdr 1
     3740EOF
     3741 
     3742else
     3743  echo "$ac_t""no" 1>&6
     3744fi
     3745done
     3746
    36673747
    36683748# readline
    36693749if test "$with_readline" != no; then
    36703750  echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
    3671 echo "configure:3672: checking for tgetent in -lncurses" >&5
     3751echo "configure:3752: checking for tgetent in -lncurses" >&5
    36723752ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
    36733753if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    36773757LIBS="-lncurses  $LIBS"
    36783758cat > conftest.$ac_ext <<EOF
    3679 #line 3680 "configure"
     3759#line 3760 "configure"
    36803760#include "confdefs.h"
    36813761/* Override any gcc2 internal prototype to avoid an error.  */
     
    36883768; return 0; }
    36893769EOF
    3690 if { (eval echo configure:3691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3770if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    36913771  rm -rf conftest*
    36923772  eval "ac_cv_lib_$ac_lib_var=yes"
     
    37153795\
    37163796   echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
    3717 echo "configure:3718: checking for tgetent in -lcurses" >&5
     3797echo "configure:3798: checking for tgetent in -lcurses" >&5
    37183798ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
    37193799if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    37233803LIBS="-lcurses  $LIBS"
    37243804cat > conftest.$ac_ext <<EOF
    3725 #line 3726 "configure"
     3805#line 3806 "configure"
    37263806#include "confdefs.h"
    37273807/* Override any gcc2 internal prototype to avoid an error.  */
     
    37343814; return 0; }
    37353815EOF
    3736 if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3816if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    37373817  rm -rf conftest*
    37383818  eval "ac_cv_lib_$ac_lib_var=yes"
     
    37613841\
    37623842   echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
    3763 echo "configure:3764: checking for tgetent in -ltermcap" >&5
     3843echo "configure:3844: checking for tgetent in -ltermcap" >&5
    37643844ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
    37653845if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    37693849LIBS="-ltermcap  $LIBS"
    37703850cat > conftest.$ac_ext <<EOF
    3771 #line 3772 "configure"
     3851#line 3852 "configure"
    37723852#include "confdefs.h"
    37733853/* Override any gcc2 internal prototype to avoid an error.  */
     
    37803860; return 0; }
    37813861EOF
    3782 if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3862if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    37833863  rm -rf conftest*
    37843864  eval "ac_cv_lib_$ac_lib_var=yes"
     
    38123892
    38133893   echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6
    3814 echo "configure:3815: checking for rl_abort in -lreadline" >&5
     3894echo "configure:3895: checking for rl_abort in -lreadline" >&5
    38153895ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'`
    38163896if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    38203900LIBS="-lreadline  $LIBS"
    38213901cat > conftest.$ac_ext <<EOF
    3822 #line 3823 "configure"
     3902#line 3903 "configure"
    38233903#include "confdefs.h"
    38243904/* Override any gcc2 internal prototype to avoid an error.  */
     
    38313911; return 0; }
    38323912EOF
    3833 if { (eval echo configure:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     3913if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    38343914  rm -rf conftest*
    38353915  eval "ac_cv_lib_$ac_lib_var=yes"
     
    38623942ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    38633943echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    3864 echo "configure:3865: checking for $ac_hdr" >&5
     3944echo "configure:3945: checking for $ac_hdr" >&5
    38653945if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    38663946  echo $ac_n "(cached) $ac_c" 1>&6
    38673947else
    38683948  cat > conftest.$ac_ext <<EOF
    3869 #line 3870 "configure"
     3949#line 3950 "configure"
    38703950#include "confdefs.h"
    38713951#include <$ac_hdr>
    38723952EOF
    38733953ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3874 { (eval echo configure:3875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3954{ (eval echo configure:3955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    38753955ac_err=`grep -v '^ *+' conftest.out`
    38763956if test -z "$ac_err"; then
     
    39013981      test "$ac_cv_header_readline_readline_h" = yes; then
    39023982     echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6
    3903 echo "configure:3904: checking whether readline.h is ok" >&5
     3983echo "configure:3984: checking whether readline.h is ok" >&5
    39043984     if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then
    39053985  echo $ac_n "(cached) $ac_c" 1>&6
    39063986else
    39073987  cat > conftest.$ac_ext <<EOF
    3908 #line 3909 "configure"
     3988#line 3989 "configure"
    39093989#include "confdefs.h"
    39103990#include<unistd.h>
     
    39314011; return 0; }
    39324012EOF
    3933 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4013if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    39344014  rm -rf conftest*
    39354015  ac_cv_header_readline_readline_h_ok="yes"
     
    39474027#not ok -- try once more with explicitly declaring everything
    39484028      echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6
    3949 echo "configure:3950: checking whether or not we nevertheless can use readline" >&5
     4029echo "configure:4030: checking whether or not we nevertheless can use readline" >&5
    39504030      if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then
    39514031  echo $ac_n "(cached) $ac_c" 1>&6
    39524032else
    39534033  cat > conftest.$ac_ext <<EOF
    3954 #line 3955 "configure"
     4034#line 4035 "configure"
    39554035#include "confdefs.h"
    39564036#include <stdio.h>
     
    39824062; return 0; }
    39834063EOF
    3984 if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4064if { (eval echo configure:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    39854065  rm -rf conftest*
    39864066  ac_cv_have_readline="yes"
     
    40124092  else
    40134093    echo "configure: warning: building without readline: disabling fancy display" 1>&2
     4094    echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
     4095echo "configure:4096: checking for tgetent in -lncurses" >&5
     4096ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
     4097if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4098  echo $ac_n "(cached) $ac_c" 1>&6
     4099else
     4100  ac_save_LIBS="$LIBS"
     4101LIBS="-lncurses  $LIBS"
     4102cat > conftest.$ac_ext <<EOF
     4103#line 4104 "configure"
     4104#include "confdefs.h"
     4105/* Override any gcc2 internal prototype to avoid an error.  */
     4106/* We use char because int might match the return type of a gcc2
     4107    builtin and then its argument prototype would still apply.  */
     4108char tgetent();
     4109
     4110int main() {
     4111tgetent()
     4112; return 0; }
     4113EOF
     4114if { (eval echo configure:4115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4115  rm -rf conftest*
     4116  eval "ac_cv_lib_$ac_lib_var=yes"
     4117else
     4118  echo "configure: failed program was:" >&5
     4119  cat conftest.$ac_ext >&5
     4120  rm -rf conftest*
     4121  eval "ac_cv_lib_$ac_lib_var=no"
     4122fi
     4123rm -f conftest*
     4124LIBS="$ac_save_LIBS"
     4125
     4126fi
     4127if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4128  echo "$ac_t""yes" 1>&6
     4129    ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     4130    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4131  cat >> confdefs.h <<EOF
     4132#define $ac_tr_lib 1
     4133EOF
     4134
     4135  LIBS="-lncurses $LIBS"
     4136
     4137else
     4138  echo "$ac_t""no" 1>&6
     4139\
     4140    echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
     4141echo "configure:4142: checking for tgetent in -lcurses" >&5
     4142ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
     4143if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4144  echo $ac_n "(cached) $ac_c" 1>&6
     4145else
     4146  ac_save_LIBS="$LIBS"
     4147LIBS="-lcurses  $LIBS"
     4148cat > conftest.$ac_ext <<EOF
     4149#line 4150 "configure"
     4150#include "confdefs.h"
     4151/* Override any gcc2 internal prototype to avoid an error.  */
     4152/* We use char because int might match the return type of a gcc2
     4153    builtin and then its argument prototype would still apply.  */
     4154char tgetent();
     4155
     4156int main() {
     4157tgetent()
     4158; return 0; }
     4159EOF
     4160if { (eval echo configure:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4161  rm -rf conftest*
     4162  eval "ac_cv_lib_$ac_lib_var=yes"
     4163else
     4164  echo "configure: failed program was:" >&5
     4165  cat conftest.$ac_ext >&5
     4166  rm -rf conftest*
     4167  eval "ac_cv_lib_$ac_lib_var=no"
     4168fi
     4169rm -f conftest*
     4170LIBS="$ac_save_LIBS"
     4171
     4172fi
     4173if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4174  echo "$ac_t""yes" 1>&6
     4175    ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
     4176    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4177  cat >> confdefs.h <<EOF
     4178#define $ac_tr_lib 1
     4179EOF
     4180
     4181  LIBS="-lcurses $LIBS"
     4182
     4183else
     4184  echo "$ac_t""no" 1>&6
     4185\
     4186    echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
     4187echo "configure:4188: checking for tgetent in -ltermcap" >&5
     4188ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
     4189if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4190  echo $ac_n "(cached) $ac_c" 1>&6
     4191else
     4192  ac_save_LIBS="$LIBS"
     4193LIBS="-ltermcap  $LIBS"
     4194cat > conftest.$ac_ext <<EOF
     4195#line 4196 "configure"
     4196#include "confdefs.h"
     4197/* Override any gcc2 internal prototype to avoid an error.  */
     4198/* We use char because int might match the return type of a gcc2
     4199    builtin and then its argument prototype would still apply.  */
     4200char tgetent();
     4201
     4202int main() {
     4203tgetent()
     4204; return 0; }
     4205EOF
     4206if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4207  rm -rf conftest*
     4208  eval "ac_cv_lib_$ac_lib_var=yes"
     4209else
     4210  echo "configure: failed program was:" >&5
     4211  cat conftest.$ac_ext >&5
     4212  rm -rf conftest*
     4213  eval "ac_cv_lib_$ac_lib_var=no"
     4214fi
     4215rm -f conftest*
     4216LIBS="$ac_save_LIBS"
     4217
     4218fi
     4219if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4220  echo "$ac_t""yes" 1>&6
     4221    ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \
     4222    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4223  cat >> confdefs.h <<EOF
     4224#define $ac_tr_lib 1
     4225EOF
     4226
     4227  LIBS="-ltermcap $LIBS"
     4228
     4229else
     4230  echo "$ac_t""no" 1>&6
     4231\
    40144232    cat >> confdefs.h <<\EOF
    40154233#define HAVE_FEREAD 1
    40164234EOF
    40174235
     4236fi
     4237
     4238fi
     4239
     4240fi
     4241
    40184242  fi
    40194243else
     4244    echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
     4245echo "configure:4246: checking for tgetent in -lncurses" >&5
     4246ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
     4247if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4248  echo $ac_n "(cached) $ac_c" 1>&6
     4249else
     4250  ac_save_LIBS="$LIBS"
     4251LIBS="-lncurses  $LIBS"
     4252cat > conftest.$ac_ext <<EOF
     4253#line 4254 "configure"
     4254#include "confdefs.h"
     4255/* Override any gcc2 internal prototype to avoid an error.  */
     4256/* We use char because int might match the return type of a gcc2
     4257    builtin and then its argument prototype would still apply.  */
     4258char tgetent();
     4259
     4260int main() {
     4261tgetent()
     4262; return 0; }
     4263EOF
     4264if { (eval echo configure:4265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4265  rm -rf conftest*
     4266  eval "ac_cv_lib_$ac_lib_var=yes"
     4267else
     4268  echo "configure: failed program was:" >&5
     4269  cat conftest.$ac_ext >&5
     4270  rm -rf conftest*
     4271  eval "ac_cv_lib_$ac_lib_var=no"
     4272fi
     4273rm -f conftest*
     4274LIBS="$ac_save_LIBS"
     4275
     4276fi
     4277if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4278  echo "$ac_t""yes" 1>&6
     4279    ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     4280    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4281  cat >> confdefs.h <<EOF
     4282#define $ac_tr_lib 1
     4283EOF
     4284
     4285  LIBS="-lncurses $LIBS"
     4286
     4287else
     4288  echo "$ac_t""no" 1>&6
     4289\
     4290    echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
     4291echo "configure:4292: checking for tgetent in -lcurses" >&5
     4292ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
     4293if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4294  echo $ac_n "(cached) $ac_c" 1>&6
     4295else
     4296  ac_save_LIBS="$LIBS"
     4297LIBS="-lcurses  $LIBS"
     4298cat > conftest.$ac_ext <<EOF
     4299#line 4300 "configure"
     4300#include "confdefs.h"
     4301/* Override any gcc2 internal prototype to avoid an error.  */
     4302/* We use char because int might match the return type of a gcc2
     4303    builtin and then its argument prototype would still apply.  */
     4304char tgetent();
     4305
     4306int main() {
     4307tgetent()
     4308; return 0; }
     4309EOF
     4310if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4311  rm -rf conftest*
     4312  eval "ac_cv_lib_$ac_lib_var=yes"
     4313else
     4314  echo "configure: failed program was:" >&5
     4315  cat conftest.$ac_ext >&5
     4316  rm -rf conftest*
     4317  eval "ac_cv_lib_$ac_lib_var=no"
     4318fi
     4319rm -f conftest*
     4320LIBS="$ac_save_LIBS"
     4321
     4322fi
     4323if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4324  echo "$ac_t""yes" 1>&6
     4325    ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
     4326    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4327  cat >> confdefs.h <<EOF
     4328#define $ac_tr_lib 1
     4329EOF
     4330
     4331  LIBS="-lcurses $LIBS"
     4332
     4333else
     4334  echo "$ac_t""no" 1>&6
     4335\
     4336    echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
     4337echo "configure:4338: checking for tgetent in -ltermcap" >&5
     4338ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
     4339if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4340  echo $ac_n "(cached) $ac_c" 1>&6
     4341else
     4342  ac_save_LIBS="$LIBS"
     4343LIBS="-ltermcap  $LIBS"
     4344cat > conftest.$ac_ext <<EOF
     4345#line 4346 "configure"
     4346#include "confdefs.h"
     4347/* Override any gcc2 internal prototype to avoid an error.  */
     4348/* We use char because int might match the return type of a gcc2
     4349    builtin and then its argument prototype would still apply.  */
     4350char tgetent();
     4351
     4352int main() {
     4353tgetent()
     4354; return 0; }
     4355EOF
     4356if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4357  rm -rf conftest*
     4358  eval "ac_cv_lib_$ac_lib_var=yes"
     4359else
     4360  echo "configure: failed program was:" >&5
     4361  cat conftest.$ac_ext >&5
     4362  rm -rf conftest*
     4363  eval "ac_cv_lib_$ac_lib_var=no"
     4364fi
     4365rm -f conftest*
     4366LIBS="$ac_save_LIBS"
     4367
     4368fi
     4369if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4370  echo "$ac_t""yes" 1>&6
     4371    ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \
     4372    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4373  cat >> confdefs.h <<EOF
     4374#define $ac_tr_lib 1
     4375EOF
     4376
     4377  LIBS="-ltermcap $LIBS"
     4378
     4379else
     4380  echo "$ac_t""no" 1>&6
     4381\
    40204382  cat >> confdefs.h <<\EOF
    40214383#define HAVE_FEREAD 1
     
    40244386fi
    40254387
     4388fi
     4389
     4390fi
     4391
     4392fi
     4393
    40264394NEED_LIBS=$LIBS
    40274395
    40284396# gmp, smallgmp, MP, MPT, factory, libfac
    40294397echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6
    4030 echo "configure:4031: checking for mpq_init in -lgmp" >&5
     4398echo "configure:4399: checking for mpq_init in -lgmp" >&5
    40314399ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'`
    40324400if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    40364404LIBS="-lgmp  $LIBS"
    40374405cat > conftest.$ac_ext <<EOF
    4038 #line 4039 "configure"
     4406#line 4407 "configure"
    40394407#include "confdefs.h"
    40404408/* Override any gcc2 internal prototype to avoid an error.  */
     
    40474415; return 0; }
    40484416EOF
    4049 if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4417if { (eval echo configure:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    40504418  rm -rf conftest*
    40514419  eval "ac_cv_lib_$ac_lib_var=yes"
     
    40784446fi
    40794447echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
    4080 echo "configure:4081: checking for mpz_init in -lsmallgmp" >&5
     4448echo "configure:4449: checking for mpz_init in -lsmallgmp" >&5
    40814449ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
    40824450if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    40864454LIBS="-lsmallgmp  $LIBS"
    40874455cat > conftest.$ac_ext <<EOF
    4088 #line 4089 "configure"
     4456#line 4457 "configure"
    40894457#include "confdefs.h"
    40904458/* Override any gcc2 internal prototype to avoid an error.  */
     
    40974465; return 0; }
    40984466EOF
    4099 if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4467if { (eval echo configure:4468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    41004468  rm -rf conftest*
    41014469  eval "ac_cv_lib_$ac_lib_var=yes"
     
    41254493
    41264494echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
    4127 echo "configure:4128: checking for IMP_PutGmpInt in -lMP" >&5
     4495echo "configure:4496: checking for IMP_PutGmpInt in -lMP" >&5
    41284496ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
    41294497if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    41334501LIBS="-lMP  $LIBS"
    41344502cat > conftest.$ac_ext <<EOF
    4135 #line 4136 "configure"
     4503#line 4504 "configure"
    41364504#include "confdefs.h"
    41374505/* Override any gcc2 internal prototype to avoid an error.  */
     
    41444512; return 0; }
    41454513EOF
    4146 if { (eval echo configure:4147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4514if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    41474515  rm -rf conftest*
    41484516  eval "ac_cv_lib_$ac_lib_var=yes"
     
    41724540
    41734541echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
    4174 echo "configure:4175: checking for MPT_GetTree in -lMPT" >&5
     4542echo "configure:4543: checking for MPT_GetTree in -lMPT" >&5
    41754543ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
    41764544if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    41804548LIBS="-lMPT  $LIBS"
    41814549cat > conftest.$ac_ext <<EOF
    4182 #line 4183 "configure"
     4550#line 4551 "configure"
    41834551#include "confdefs.h"
    41844552/* Override any gcc2 internal prototype to avoid an error.  */
     
    41914559; return 0; }
    41924560EOF
    4193 if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4561if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    41944562  rm -rf conftest*
    41954563  eval "ac_cv_lib_$ac_lib_var=yes"
     
    42194587
    42204588echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
    4221 echo "configure:4222: checking for atof in -lsingcf" >&5
     4589echo "configure:4590: checking for atof in -lsingcf" >&5
    42224590ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
    42234591if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    42274595LIBS="-lsingcf  $LIBS"
    42284596cat > conftest.$ac_ext <<EOF
    4229 #line 4230 "configure"
     4597#line 4598 "configure"
    42304598#include "confdefs.h"
    42314599/* Override any gcc2 internal prototype to avoid an error.  */
     
    42384606; return 0; }
    42394607EOF
    4240 if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4608if { (eval echo configure:4609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    42414609  rm -rf conftest*
    42424610  eval "ac_cv_lib_$ac_lib_var=yes"
     
    42664634
    42674635echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
    4268 echo "configure:4269: checking for atof in -lsingfac" >&5
     4636echo "configure:4637: checking for atof in -lsingfac" >&5
    42694637ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
    42704638if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    42744642LIBS="-lsingfac  $LIBS"
    42754643cat > conftest.$ac_ext <<EOF
    4276 #line 4277 "configure"
     4644#line 4645 "configure"
    42774645#include "confdefs.h"
    42784646/* Override any gcc2 internal prototype to avoid an error.  */
     
    42854653; return 0; }
    42864654EOF
    4287 if { (eval echo configure:4288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4655if { (eval echo configure:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    42884656  rm -rf conftest*
    42894657  eval "ac_cv_lib_$ac_lib_var=yes"
     
    43174685ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    43184686echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    4319 echo "configure:4320: checking for $ac_hdr" >&5
     4687echo "configure:4688: checking for $ac_hdr" >&5
    43204688if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    43214689  echo $ac_n "(cached) $ac_c" 1>&6
    43224690else
    43234691  cat > conftest.$ac_ext <<EOF
    4324 #line 4325 "configure"
     4692#line 4693 "configure"
    43254693#include "confdefs.h"
    43264694#include <$ac_hdr>
    43274695EOF
    43284696ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    4329 { (eval echo configure:4330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     4697{ (eval echo configure:4698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    43304698ac_err=`grep -v '^ *+' conftest.out`
    43314699if test -z "$ac_err"; then
     
    43844752# evaluate results
    43854753echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
    4386 echo "configure:4387: checking which apint package to use" >&5
     4754echo "configure:4755: checking which apint package to use" >&5
    43874755if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then
    43884756  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    44284796if test "$with_dl" != no; then
    44294797  echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    4430 echo "configure:4431: checking for dlopen in -ldl" >&5
     4798echo "configure:4799: checking for dlopen in -ldl" >&5
    44314799ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
    44324800if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    44364804LIBS="-ldl  $LIBS"
    44374805cat > conftest.$ac_ext <<EOF
    4438 #line 4439 "configure"
     4806#line 4807 "configure"
    44394807#include "confdefs.h"
    44404808/* Override any gcc2 internal prototype to avoid an error.  */
     
    44474815; return 0; }
    44484816EOF
    4449 if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4817if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    44504818  rm -rf conftest*
    44514819  eval "ac_cv_lib_$ac_lib_var=yes"
     
    44854853  fi
    44864854  echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    4487 echo "configure:4488: checking for shl_load in -ldld" >&5
     4855echo "configure:4856: checking for shl_load in -ldld" >&5
    44884856ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    44894857if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    44934861LIBS="-ldld  $LIBS"
    44944862cat > conftest.$ac_ext <<EOF
    4495 #line 4496 "configure"
     4863#line 4864 "configure"
    44964864#include "confdefs.h"
    44974865/* Override any gcc2 internal prototype to avoid an error.  */
     
    45044872; return 0; }
    45054873EOF
    4506 if { (eval echo configure:4507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     4874if { (eval echo configure:4875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    45074875  rm -rf conftest*
    45084876  eval "ac_cv_lib_$ac_lib_var=yes"
     
    45444912
    45454913echo $ac_n "checking whether to have MP""... $ac_c" 1>&6
    4546 echo "configure:4547: checking whether to have MP" >&5
     4914echo "configure:4915: checking whether to have MP" >&5
    45474915if test "${with_MP}" != yes && test "${with_MP}" != no; then
    45484916  if (test "${will_have_gmp}" = yes) && \
     
    45754943
    45764944echo $ac_n "checking whether to have factory""... $ac_c" 1>&6
    4577 echo "configure:4578: checking whether to have factory" >&5
     4945echo "configure:4946: checking whether to have factory" >&5
    45784946if test "${with_factory}" != yes && test "${with_factory}" != no; then
    45794947  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
     
    46064974
    46074975echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6
    4608 echo "configure:4609: checking whether to have libfac" >&5
     4976echo "configure:4977: checking whether to have libfac" >&5
    46094977if test "${with_libfac}" != yes && test "${with_libfac}" != no; then
    46104978  if (test "${will_have_factory}" = yes) && \
     
    46385006
    46395007echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6
    4640 echo "configure:4641: checking whether to have dbm links" >&5
     5008echo "configure:5009: checking whether to have dbm links" >&5
    46415009if test "$with_dbm" != no; then
    46425010  cat >> confdefs.h <<\EOF
     
    46505018
    46515019echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6
    4652 echo "configure:4653: checking whether to have namespaces" >&5
     5020echo "configure:5021: checking whether to have namespaces" >&5
    46535021if test "$with_namespaces" != yes; then
    46545022  echo "$ac_t""no" 1>&6
     
    46625030
    46635031echo $ac_n "checking whether to have dynamic loading""... $ac_c" 1>&6
    4664 echo "configure:4665: checking whether to have dynamic loading" >&5
     5032echo "configure:5033: checking whether to have dynamic loading" >&5
    46655033if test "$with_dl" != yes; then
    46665034  echo "$ac_t""no" 1>&6
     
    46755043        HPUX-9)
    46765044          echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    4677 echo "configure:4678: checking for shl_load in -ldld" >&5
     5045echo "configure:5046: checking for shl_load in -ldld" >&5
    46785046ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    46795047if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    46835051LIBS="-ldld  $LIBS"
    46845052cat > conftest.$ac_ext <<EOF
    4685 #line 4686 "configure"
     5053#line 5054 "configure"
    46865054#include "confdefs.h"
    46875055/* Override any gcc2 internal prototype to avoid an error.  */
     
    46945062; return 0; }
    46955063EOF
    4696 if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     5064if { (eval echo configure:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    46975065  rm -rf conftest*
    46985066  eval "ac_cv_lib_$ac_lib_var=yes"
     
    47265094        HPUX-10)
    47275095          echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    4728 echo "configure:4729: checking for shl_load in -ldld" >&5
     5096echo "configure:5097: checking for shl_load in -ldld" >&5
    47295097ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    47305098if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    47345102LIBS="-ldld  $LIBS"
    47355103cat > conftest.$ac_ext <<EOF
    4736 #line 4737 "configure"
     5104#line 5105 "configure"
    47375105#include "confdefs.h"
    47385106/* Override any gcc2 internal prototype to avoid an error.  */
     
    47455113; return 0; }
    47465114EOF
    4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     5115if { (eval echo configure:5116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    47485116  rm -rf conftest*
    47495117  eval "ac_cv_lib_$ac_lib_var=yes"
     
    47845152
    47855153echo $ac_n "checking whether to use mtrack""... $ac_c" 1>&6
    4786 echo "configure:4787: checking whether to use mtrack" >&5
     5154echo "configure:5155: checking whether to use mtrack" >&5
    47875155if test "$with_mtrack" = yes && test "$ac_cv_singuname" = ix86-Linux; then
    47885156  echo "$ac_t""yes" 1>&6
     
    47985166
    47995167echo $ac_n "checking which exponent type to use""... $ac_c" 1>&6
    4800 echo "configure:4801: checking which exponent type to use" >&5
     5168echo "configure:5169: checking which exponent type to use" >&5
    48015169if test "$with_exp_type" = "char"; then
    48025170  echo "$ac_t""char" 1>&6
  • Singular/configure.in

    r58914b rdabfee  
    564564AC_CHECK_HEADERS(termcap.h)
    565565AC_CHECK_HEADERS(termios.h)
     566AC_CHECK_HEADERS(term.h)
     567AC_CHECK_HEADERS(sys/termbits.h)
    566568
    567569# readline
     
    645647  else
    646648    AC_MSG_WARN(building without readline: disabling fancy display)
    647     AC_DEFINE(HAVE_FEREAD)
    648   fi
    649 else
    650   AC_DEFINE(HAVE_FEREAD)
     649    AC_CHECK_LIB(ncurses,tgetent,,\
     650    AC_CHECK_LIB(curses,tgetent,,\
     651    AC_CHECK_LIB(termcap,tgetent,,\
     652    AC_DEFINE(HAVE_FEREAD))))
     653  fi
     654else
     655    AC_CHECK_LIB(ncurses,tgetent,,\
     656    AC_CHECK_LIB(curses,tgetent,,\
     657    AC_CHECK_LIB(termcap,tgetent,,\
     658  AC_DEFINE(HAVE_FEREAD))))
    651659fi
    652660
Note: See TracChangeset for help on using the changeset viewer.