Changeset 92

Show
Ignore:
Timestamp:
07/23/04 05:21:08 (4 years ago)
Author:
morris
Message:

test ncurses first

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wire/trunk/configure

    r91 r92  
    48394839else 
    48404840 
    4841                         echo "$as_me:$LINENO: checking for tgoto in -lcurses" >&5 
    4842 echo $ECHO_N "checking for tgoto in -lcurses... $ECHO_C" >&6 
    4843 if test "${ac_cv_lib_curses_tgoto+set}" = set; then 
     4841                        echo "$as_me:$LINENO: checking for tgoto in -lncurses" >&5 
     4842echo $ECHO_N "checking for tgoto in -lncurses... $ECHO_C" >&6 
     4843if test "${ac_cv_lib_ncurses_tgoto+set}" = set; then 
    48444844  echo $ECHO_N "(cached) $ECHO_C" >&6 
    48454845else 
    48464846  ac_check_lib_save_LIBS=$LIBS 
    4847 LIBS="-lcurses  $LIBS" 
     4847LIBS="-lncurses  $LIBS" 
    48484848cat >conftest.$ac_ext <<_ACEOF 
    48494849#line $LINENO "configure" 
     
    48814881  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    48824882  (exit $ac_status); }; }; then 
     4883  ac_cv_lib_ncurses_tgoto=yes 
     4884else 
     4885  echo "$as_me: failed program was:" >&5 
     4886sed 's/^/| /' conftest.$ac_ext >&5 
     4887 
     4888ac_cv_lib_ncurses_tgoto=no 
     4889fi 
     4890rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 
     4891LIBS=$ac_check_lib_save_LIBS 
     4892fi 
     4893echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgoto" >&5 
     4894echo "${ECHO_T}$ac_cv_lib_ncurses_tgoto" >&6 
     4895if test $ac_cv_lib_ncurses_tgoto = yes; then 
     4896 
     4897                                LIBS="$LIBS -lncurses" 
     4898 
     4899else 
     4900 
     4901                                echo "$as_me:$LINENO: checking for tgoto in -lcurses" >&5 
     4902echo $ECHO_N "checking for tgoto in -lcurses... $ECHO_C" >&6 
     4903if test "${ac_cv_lib_curses_tgoto+set}" = set; then 
     4904  echo $ECHO_N "(cached) $ECHO_C" >&6 
     4905else 
     4906  ac_check_lib_save_LIBS=$LIBS 
     4907LIBS="-lcurses  $LIBS" 
     4908cat >conftest.$ac_ext <<_ACEOF 
     4909#line $LINENO "configure" 
     4910/* confdefs.h.  */ 
     4911_ACEOF 
     4912cat confdefs.h >>conftest.$ac_ext 
     4913cat >>conftest.$ac_ext <<_ACEOF 
     4914/* end confdefs.h.  */ 
     4915 
     4916/* Override any gcc2 internal prototype to avoid an error.  */ 
     4917#ifdef __cplusplus 
     4918extern "C" 
     4919#endif 
     4920/* We use char because int might match the return type of a gcc2 
     4921   builtin and then its argument prototype would still apply.  */ 
     4922char tgoto (); 
     4923int 
     4924main () 
     4925{ 
     4926tgoto (); 
     4927  ; 
     4928  return 0; 
     4929} 
     4930_ACEOF 
     4931rm -f conftest.$ac_objext conftest$ac_exeext 
     4932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 
     4933  (eval $ac_link) 2>&5 
     4934  ac_status=$? 
     4935  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     4936  (exit $ac_status); } && 
     4937         { ac_try='test -s conftest$ac_exeext' 
     4938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     4939  (eval $ac_try) 2>&5 
     4940  ac_status=$? 
     4941  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     4942  (exit $ac_status); }; }; then 
    48834943  ac_cv_lib_curses_tgoto=yes 
    48844944else 
     
    48954955if test $ac_cv_lib_curses_tgoto = yes; then 
    48964956 
    4897                                 LIBS="$LIBS -lcurses" 
     4957                                        LIBS="$LIBS -lcurses" 
     4958 
     4959fi 
     4960 
    48984961 
    48994962fi 
  • wire/trunk/configure.in

    r91 r92  
    155155                        LIBS="$LIBS -ltermcap" 
    156156                ], [ 
    157                         AC_CHECK_LIB([curses], [tgoto], [ 
    158                                 LIBS="$LIBS -lcurses" 
     157                        AC_CHECK_LIB([ncurses], [tgoto], [ 
     158                                LIBS="$LIBS -lncurses" 
     159                        ], [ 
     160                                AC_CHECK_LIB([curses], [tgoto], [ 
     161                                        LIBS="$LIBS -lcurses" 
     162                                ]) 
    159163                        ]) 
    160164                ])