Ticket #45: readline_configure_7_8.1.diff

File readline_configure_7_8.1.diff, 8.0 kB (added by arend, 3 years ago)

#define READLINE to 0 instead of leaving it undefined

  • configure.in

    RCS file: /cvsroot/gnugo/gnugo/configure.in,v
    retrieving revision 1.125
    diff -u -p -r1.125 configure.in
     
    315315 
    316316dnl -------- readline support ------------------- 
    317317 
     318AH_TEMPLATE([READLINE], [Enable GNU Readline support]) 
     319 
    318320if test "$with_readline" = yes ; then 
    319321 
    320322    dnl check for a working termcap and readline library 
    321323    AC_SEARCH_LIBS(readline,termcap readline) 
    322324 
    323325    if test "$ac_cv_search_readline" != "no" ; then 
    324         AC_DEFINE(READLINE,1,[Enable GNU Readline support]) 
     326        AC_DEFINE(READLINE,1) 
     327    else 
     328        AC_DEFINE(READLINE,0) 
    325329    fi 
    326          
     330else 
     331    AC_DEFINE(READLINE,0) 
    327332fi 
    328333 
    329334dnl ---------- grid optimisation ------------ 
  • configure

    RCS file: /cvsroot/gnugo/gnugo/configure,v
    retrieving revision 1.118
    diff -u -p -r1.118 configure
     
    43024302fi 
    43034303 
    43044304    if test "$ac_cv_search_readline" != "no" ; then 
    4305  
    4306 cat >>confdefs.h <<\EOF 
     4305        cat >>confdefs.h <<\EOF 
    43074306#define READLINE 1 
    43084307EOF 
    43094308 
     4309    else 
     4310        cat >>confdefs.h <<\EOF 
     4311#define READLINE 0 
     4312EOF 
     4313 
    43104314    fi 
     4315else 
     4316    cat >>confdefs.h <<\EOF 
     4317#define READLINE 0 
     4318EOF 
    43114319 
    43124320fi 
    43134321 
     
    45564564if test "$enable_socket_support" != "no"; then 
    45574565  # Check for all required headers, macros, structures and functions 
    45584566  # at once. 
    4559   echo "$as_me:4559: checking whether socket support can be compiled" >&5 
     4567  echo "$as_me:4567: checking whether socket support can be compiled" >&5 
    45604568echo $ECHO_N "checking whether socket support can be compiled... $ECHO_C" >&6 
    45614569if test "${gnugo_cv_sockets_supported+set}" = set; then 
    45624570  echo $ECHO_N "(cached) $ECHO_C" >&6 
    45634571else 
    45644572  cat >conftest.$ac_ext <<_ACEOF 
    4565 #line 4565 "configure" 
     4573#line 4573 "configure" 
    45664574#include "confdefs.h" 
    45674575#include <sys/socket.h> 
    45684576#include <netinet/in.h> 
     
    45874595} 
    45884596_ACEOF 
    45894597rm -f conftest.$ac_objext conftest$ac_exeext 
    4590 if { (eval echo "$as_me:4590: \"$ac_link\"") >&5 
     4598if { (eval echo "$as_me:4598: \"$ac_link\"") >&5 
    45914599  (eval $ac_link) 2>&5 
    45924600  ac_status=$? 
    4593   echo "$as_me:4593: \$? = $ac_status" >&5 
     4601  echo "$as_me:4601: \$? = $ac_status" >&5 
    45944602  (exit $ac_status); } && 
    45954603         { ac_try='test -s conftest$ac_exeext' 
    4596   { (eval echo "$as_me:4596: \"$ac_try\"") >&5 
     4604  { (eval echo "$as_me:4604: \"$ac_try\"") >&5 
    45974605  (eval $ac_try) 2>&5 
    45984606  ac_status=$? 
    4599   echo "$as_me:4599: \$? = $ac_status" >&5 
     4607  echo "$as_me:4607: \$? = $ac_status" >&5 
    46004608  (exit $ac_status); }; }; then 
    46014609  gnugo_cv_sockets_supported="yes" 
    46024610else 
     
    46064614fi 
    46074615rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 
    46084616fi 
    4609 echo "$as_me:4609: result: $gnugo_cv_sockets_supported" >&5 
     4617echo "$as_me:4617: result: $gnugo_cv_sockets_supported" >&5 
    46104618echo "${ECHO_T}$gnugo_cv_sockets_supported" >&6 
    46114619 
    46124620  if test "$gnugo_cv_sockets_supported" = "yes"; then 
     
    46164624 
    46174625  else 
    46184626    if test "$enable_socket_support" = "yes"; then 
    4619       { { echo "$as_me:4619: error: 
     4627      { { echo "$as_me:4627: error: 
    46204628*** Socket support was requested, but cannot be compiled on your system. *** 
    46214629*** If you think this is a mistake, please report it to <gnugo@gnu.org>. ***" >&5 
    46224630echo "$as_me: error: 
     
    46244632*** If you think this is a mistake, please report it to <gnugo@gnu.org>. ***" >&2;} 
    46254633   { (exit 1); exit 1; }; }; 
    46264634    else 
    4627       { echo "$as_me:4627: WARNING: 
     4635      { echo "$as_me:4635: WARNING: 
    46284636*** Unable to compile socket support on your system.  It will be disabled. *** 
    46294637***  If you think this is a mistake, please report it to <gnugo@gnu.org>.  ***" >&5 
    46304638echo "$as_me: WARNING: 
     
    47174725: ${CONFIG_STATUS=./config.status} 
    47184726ac_clean_files_save=$ac_clean_files 
    47194727ac_clean_files="$ac_clean_files $CONFIG_STATUS" 
    4720 { echo "$as_me:4720: creating $CONFIG_STATUS" >&5 
     4728{ echo "$as_me:4728: creating $CONFIG_STATUS" >&5 
    47214729echo "$as_me: creating $CONFIG_STATUS" >&6;} 
    47224730cat >$CONFIG_STATUS <<_ACEOF 
    47234731#! $SHELL 
     
    48934901    echo "$ac_cs_version"; exit 0 ;; 
    48944902  --he | --h) 
    48954903    # Conflict between --help and --header 
    4896     { { echo "$as_me:4896: error: ambiguous option: $1 
     4904    { { echo "$as_me:4904: error: ambiguous option: $1 
    48974905Try \`$0 --help' for more information." >&5 
    48984906echo "$as_me: error: ambiguous option: $1 
    48994907Try \`$0 --help' for more information." >&2;} 
     
    49124920    ac_need_defaults=false;; 
    49134921 
    49144922  # This is an error. 
    4915   -*) { { echo "$as_me:4915: error: unrecognized option: $1 
     4923  -*) { { echo "$as_me:4923: error: unrecognized option: $1 
    49164924Try \`$0 --help' for more information." >&5 
    49174925echo "$as_me: error: unrecognized option: $1 
    49184926Try \`$0 --help' for more information." >&2;} 
     
    49684976  "config.vc" ) CONFIG_FILES="$CONFIG_FILES config.vc:config.vcin" ;; 
    49694977  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 
    49704978  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 
    4971   *) { { echo "$as_me:4971: error: invalid argument: $ac_config_target" >&5 
     4979  *) { { echo "$as_me:4979: error: invalid argument: $ac_config_target" >&5 
    49724980echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 
    49734981   { (exit 1); exit 1; }; };; 
    49744982  esac 
     
    52075215  esac 
    52085216 
    52095217  if test x"$ac_file" != x-; then 
    5210     { echo "$as_me:5210: creating $ac_file" >&5 
     5218    { echo "$as_me:5218: creating $ac_file" >&5 
    52115219echo "$as_me: creating $ac_file" >&6;} 
    52125220    rm -f "$ac_file" 
    52135221  fi 
     
    52255233      -) echo $tmp/stdin ;; 
    52265234      [\\/$]*) 
    52275235         # Absolute (can't be DOS-style, as IFS=:) 
    5228          test -f "$f" || { { echo "$as_me:5228: error: cannot find input file: $f" >&5 
     5236         test -f "$f" || { { echo "$as_me:5236: error: cannot find input file: $f" >&5 
    52295237echo "$as_me: error: cannot find input file: $f" >&2;} 
    52305238   { (exit 1); exit 1; }; } 
    52315239         echo $f;; 
     
    52385246           echo $srcdir/$f 
    52395247         else 
    52405248           # /dev/null tree 
    5241            { { echo "$as_me:5241: error: cannot find input file: $f" >&5 
     5249           { { echo "$as_me:5249: error: cannot find input file: $f" >&5 
    52425250echo "$as_me: error: cannot find input file: $f" >&2;} 
    52435251   { (exit 1); exit 1; }; } 
    52445252         fi;; 
     
    52995307  * )   ac_file_in=$ac_file.in ;; 
    53005308  esac 
    53015309 
    5302   test x"$ac_file" != x- && { echo "$as_me:5302: creating $ac_file" >&5 
     5310  test x"$ac_file" != x- && { echo "$as_me:5310: creating $ac_file" >&5 
    53035311echo "$as_me: creating $ac_file" >&6;} 
    53045312 
    53055313  # First look for the input files in the build tree, otherwise in the 
     
    53105318      -) echo $tmp/stdin ;; 
    53115319      [\\/$]*) 
    53125320         # Absolute (can't be DOS-style, as IFS=:) 
    5313          test -f "$f" || { { echo "$as_me:5313: error: cannot find input file: $f" >&5 
     5321         test -f "$f" || { { echo "$as_me:5321: error: cannot find input file: $f" >&5 
    53145322echo "$as_me: error: cannot find input file: $f" >&2;} 
    53155323   { (exit 1); exit 1; }; } 
    53165324         echo $f;; 
     
    53235331           echo $srcdir/$f 
    53245332         else 
    53255333           # /dev/null tree 
    5326            { { echo "$as_me:5326: error: cannot find input file: $f" >&5 
     5334           { { echo "$as_me:5334: error: cannot find input file: $f" >&5 
    53275335echo "$as_me: error: cannot find input file: $f" >&2;} 
    53285336   { (exit 1); exit 1; }; } 
    53295337         fi;; 
     
    54405448  rm -f $tmp/in 
    54415449  if test x"$ac_file" != x-; then 
    54425450    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 
    5443       { echo "$as_me:5443: $ac_file is unchanged" >&5 
     5451      { echo "$as_me:5451: $ac_file is unchanged" >&5 
    54445452echo "$as_me: $ac_file is unchanged" >&6;} 
    54455453    else 
    54465454      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \