[MPlayer-cvslog] r32268 - trunk/configure

diego subversion at mplayerhq.hu
Thu Sep 16 16:39:40 CEST 2010


Author: diego
Date: Thu Sep 16 16:39:40 2010
New Revision: 32268

Log:
Simplify termcap check.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Thu Sep 16 16:38:50 2010	(r32267)
+++ trunk/configure	Thu Sep 16 16:39:40 2010	(r32268)
@@ -3762,15 +3762,10 @@ fi #if sunos
 
 echocheck "termcap"
 if test "$_termcap" = auto ; then
-  cat > $TMPC <<EOF
-#include <stddef.h>
-#include <term.h>
-int main(void) { tgetent(NULL, NULL); return 0; }
-EOF
   _termcap=no
   for _ld_tmp in "-lncurses" "-ltinfo" "-ltermcap"; do
-    cc_check $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" \
-      && _termcap=yes && break
+    function_check term.h 'tgetent(0, 0)' $_ld_tmp &&
+      extra_ldflags="$extra_ldflags $_ld_tmp" && _termcap=yes && break
   done
 fi
 if test "$_termcap" = yes ; then


More information about the MPlayer-cvslog mailing list