Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 471972
Collapse All | Expand All

(-)a/configure (-41 lines)
Lines 1379-1425 Link Here
1379
1379
1380
1380
1381
tcap=no
1381
tcap=no
1382
echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
1383
ac_lib_var=`echo termcap'_'tgetstr | tr './+\055' '__p_'`
1384
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1385
  echo $ac_n "(cached) $ac_c" 1>&6
1386
else
1387
  ac_save_LIBS="$LIBS"
1388
LIBS="-ltermcap  $LIBS"
1389
cat > conftest.$ac_ext <<EOF
1390
#line 1337 "configure"
1391
#include "confdefs.h"
1392
/* Override any gcc2 internal prototype to avoid an error.  */
1393
/* We use char because int might match the return type of a gcc2
1394
    builtin and then its argument prototype would still apply.  */
1395
char tgetstr();
1396
1397
int main() { return 0; }
1398
int t() {
1399
tgetstr()
1400
; return 0; }
1401
EOF
1402
if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1403
  rm -rf conftest*
1404
  eval "ac_cv_lib_$ac_lib_var=yes"
1405
else
1406
  rm -rf conftest*
1407
  eval "ac_cv_lib_$ac_lib_var=no"
1408
fi
1409
rm -f conftest*
1410
LIBS="$ac_save_LIBS"
1411
1412
fi
1413
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1414
  echo "$ac_t""yes" 1>&6
1415
  cat >> confdefs.h <<\EOF
1416
#define HAVE_LIBTERMCAP 1
1417
EOF
1418
 LIBS="$LIBS -ltermcap" tcap=yes
1419
else
1420
  echo "$ac_t""no" 1>&6
1421
fi
1422
1423
if test $tcap = no; then
1382
if test $tcap = no; then
1424
   echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6
1383
   echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6
1425
ac_lib_var=`echo termlib'_'tgetstr | tr './+\055' '__p_'`
1384
ac_lib_var=`echo termlib'_'tgetstr | tr './+\055' '__p_'`
(-)a/configure-gtk (-41 lines)
Lines 1379-1425 Link Here
1379
1379
1380
1380
1381
tcap=no
1381
tcap=no
1382
echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
1383
ac_lib_var=`echo termcap'_'tgetstr | tr './+\055' '__p_'`
1384
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1385
  echo $ac_n "(cached) $ac_c" 1>&6
1386
else
1387
  ac_save_LIBS="$LIBS"
1388
LIBS="-ltermcap  $LIBS"
1389
cat > conftest.$ac_ext <<EOF
1390
#line 1337 "configure"
1391
#include "confdefs.h"
1392
/* Override any gcc2 internal prototype to avoid an error.  */
1393
/* We use char because int might match the return type of a gcc2
1394
    builtin and then its argument prototype would still apply.  */
1395
char tgetstr();
1396
1397
int main() { return 0; }
1398
int t() {
1399
tgetstr()
1400
; return 0; }
1401
EOF
1402
if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1403
  rm -rf conftest*
1404
  eval "ac_cv_lib_$ac_lib_var=yes"
1405
else
1406
  rm -rf conftest*
1407
  eval "ac_cv_lib_$ac_lib_var=no"
1408
fi
1409
rm -f conftest*
1410
LIBS="$ac_save_LIBS"
1411
1412
fi
1413
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1414
  echo "$ac_t""yes" 1>&6
1415
  cat >> confdefs.h <<\EOF
1416
#define HAVE_LIBTERMCAP 1
1417
EOF
1418
 LIBS="$LIBS -ltermcap" tcap=yes
1419
else
1420
  echo "$ac_t""no" 1>&6
1421
fi
1422
1423
if test $tcap = no; then
1382
if test $tcap = no; then
1424
   echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6
1383
   echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6
1425
ac_lib_var=`echo termlib'_'tgetstr | tr './+\055' '__p_'`
1384
ac_lib_var=`echo termlib'_'tgetstr | tr './+\055' '__p_'`

Return to bug 471972