| | 4883 | ac_cv_lib_ncurses_tgoto=yes |
|---|
| | 4884 | else |
|---|
| | 4885 | echo "$as_me: failed program was:" >&5 |
|---|
| | 4886 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 4887 | |
|---|
| | 4888 | ac_cv_lib_ncurses_tgoto=no |
|---|
| | 4889 | fi |
|---|
| | 4890 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|---|
| | 4891 | LIBS=$ac_check_lib_save_LIBS |
|---|
| | 4892 | fi |
|---|
| | 4893 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgoto" >&5 |
|---|
| | 4894 | echo "${ECHO_T}$ac_cv_lib_ncurses_tgoto" >&6 |
|---|
| | 4895 | if test $ac_cv_lib_ncurses_tgoto = yes; then |
|---|
| | 4896 | |
|---|
| | 4897 | LIBS="$LIBS -lncurses" |
|---|
| | 4898 | |
|---|
| | 4899 | else |
|---|
| | 4900 | |
|---|
| | 4901 | echo "$as_me:$LINENO: checking for tgoto in -lcurses" >&5 |
|---|
| | 4902 | echo $ECHO_N "checking for tgoto in -lcurses... $ECHO_C" >&6 |
|---|
| | 4903 | if test "${ac_cv_lib_curses_tgoto+set}" = set; then |
|---|
| | 4904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 4905 | else |
|---|
| | 4906 | ac_check_lib_save_LIBS=$LIBS |
|---|
| | 4907 | LIBS="-lcurses $LIBS" |
|---|
| | 4908 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 4909 | #line $LINENO "configure" |
|---|
| | 4910 | /* confdefs.h. */ |
|---|
| | 4911 | _ACEOF |
|---|
| | 4912 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 4913 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 4914 | /* end confdefs.h. */ |
|---|
| | 4915 | |
|---|
| | 4916 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| | 4917 | #ifdef __cplusplus |
|---|
| | 4918 | extern "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. */ |
|---|
| | 4922 | char tgoto (); |
|---|
| | 4923 | int |
|---|
| | 4924 | main () |
|---|
| | 4925 | { |
|---|
| | 4926 | tgoto (); |
|---|
| | 4927 | ; |
|---|
| | 4928 | return 0; |
|---|
| | 4929 | } |
|---|
| | 4930 | _ACEOF |
|---|
| | 4931 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 4932 | if { (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 |
|---|