screen-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[screen-devel] [bug #26832] problem with libutempter


From: Sadrul Habib Chowdhury
Subject: [screen-devel] [bug #26832] problem with libutempter
Date: Sun, 28 Mar 2010 02:48:37 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)

Update of bug #26832 (project screen):

                  Status:         Need Discussion => Wont Fix               
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #3:

The following seem to be the change relevant to libutempter:


--- a/src/configure.in
+++ b/src/configure.in
@@ -863,12 +855,14 @@ AC_TRY_COMPILE([
 #else
 #include <utmp.h>
 #endif
-],[struct utmp u; u.ut_host[0] = 0;], AC_DEFINE(UTHOST))
-AC_CHECK_HEADER(utempter.h, have_utempter=yes, have_utempter=no)
-if test "$have_utempter" = yes; then
-  AC_DEFINE(HAVE_UTEMPTER)
-  LIBS="$LIBS -lutempter"
-fi
+],[struct utmp u; u.ut_host[0] = 0;], AC_DEFINE([UTHOST], [], [UTHOST]))
+AC_CHECK_HEADER([utempter.h],
+[AC_CHECK_LIB([utempter], [main],
+[have_utempter=yes
+AC_DEFINE([HAVE_UTEMPTER], [], [HAVE_UTEMPTER])
+LIBS="$LIBS -lutempter"],
+[have_utempter=no])],
+[have_utempter=no])
 
 dnl
 dnl    ****  loadav  ****


>From this change, it looks like you are checking for the existence of the
library even after you've found the header file. I am inclined to say that
will happen only in a broken system, and screen shouldn't need to work around
that.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?26832>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]