emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs can't be built on HPUX 10.


From: Dave Love
Subject: Re: Emacs can't be built on HPUX 10.
Date: Sun, 12 Nov 2000 18:05:26 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.90

>>>>> "KH" == Kenichi Handa <address@hidden> writes:

 KH> (1) HP-UX 10.20 now has X11R6.  As this change is harmless,
 KH> I've already installed it.

 KH>    * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
 KH>    -I/usr/contrib/X11R6/include.
 KH>    (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.

It looks like an autoconf or configure.in problem if we don't get that
right.  It's possible we should be using AC_PATH_XTRA rather than
AC_PATH_X -- I don't recall the operational difference.  Do other
autoconf'ed programs which use X get this right on HP-UX?

 KH> The second one is the problem of `ospeed'.  It seems that HPUX
 KH> 10.20 doesn't have the variable `ospeed'.  So, "extern XXX
 KH> opseed" hack doesn't work.  We have discussed on `ospeed' problem
 KH> long ago and my conclusion was to use Emacs's internal variable
 KH> only (see the attached mail at the tail).

I think I actually removed it from some of the files where it wasn't
used.  I happened to look at the Texinfo configure recently in
connexion with termcap.  It contains this:

dnl Checks for variables.
# HP-UX 9 (at least) needs -lncurses which defines termcap variables PC etc.
AC_MSG_CHECKING(for library with termcap variables)
AC_CACHE_VAL(ac_cv_var_ospeed,
oldLIBS=$LIBS 
for trylib in $termlib ncurses curses termlib termcap terminfo; do
   if test "x$trylib" != "x$termlib"; then
     LIBS="$oldLIBS -l$termlib -l$trylib"
   else
     LIBS="$oldLIBS -l$termlib"
   fi
   AC_TRY_LINK(, 
#ifdef HAVE_NCURSES_TERMCAP_H
#include <ncurses/termcap.h>
#else
#ifdef HAVE_TERMCAP_H
#include <termcap.h>
#else
#undef PC
char *BC;
char* *UP;
char PC;      
short ospeed; 
#endif
#endif
return ospeed != 0;
, ac_cv_var_ospeed=$trylib; break)
done
LIBS=$oldLIBS
)
AC_MSG_RESULT($ac_cv_var_ospeed)
if test -n "$ac_cv_var_ospeed" \
   && test "x$termlib" != "x$ac_cv_var_ospeed"; then
  TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}"
fi
AC_SUBST(TERMLIBS)







reply via email to

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