[242] in bug-owl

home help back first fref pref prev next nref lref last post

Patch to build owl under NetBSD

daemon@ATHENA.MIT.EDU (Geoff Schmidt)
Tue Jul 29 00:12:23 2003

Date: Tue, 29 Jul 2003 00:12:16 -0400
From: Geoff Schmidt <gschmidt@MIT.EDU>
To: bug-owl@MIT.EDU
Message-ID: <20030729041216.GB21682@department-of-alchemy.mit.edu>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR"
Content-Disposition: inline


--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Greetings!

Attached find simple patches to configure.in and owl.h to make the owl
in CVS build under NetBSD. I am not sure if they are right, or
maximally enlightened, but they make it build. I also got some odd
errors when building libfaim which went away after I made clean and
autoconfed in that directory. I would potentially be game to package
owl for NetBSD.

I haven't checked to see if this patch cause lossage on other systems.

Thanks for a great client!

geoff



--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=netbsd-build-patch

*** configure.in.orig	Mon Jul 28 21:52:55 2003
--- configure.in	Mon Jul 28 22:31:49 2003
***************
*** 29,40 ****
  	AC_MSG_RESULT(no)
  fi
  
  AC_CHECK_LIB(ncurses, initscr,,
     AC_CHECK_LIB(curses, initscr,, AC_MSG_ERROR(No curses library found.)))
  AC_CHECK_LIB(com_err, com_err)
  AC_CHECK_LIB(nsl, gethostbyname)
  AC_CHECK_LIB(socket, socket)
! AC_CHECK_LIB(k5crypto, krb5_derive_key)
  AC_CHECK_LIB(des425, req_act_vno)
  AC_CHECK_LIB(des, des_quad_cksum)
  AC_CHECK_LIB(resolv, res_search)
--- 29,70 ----
  	AC_MSG_RESULT(no)
  fi
  
+ dnl Check for NetBSD
+ AC_MSG_CHECKING(for /usr/pkg/lib)
+ if test -d /usr/pkg/lib; then
+ 	LDFLAGS=-L/usr/pkg/lib\ ${LDFLAGS}
+ 	AC_MSG_RESULT(yes)
+ else
+ 	AC_MSG_RESULT(no)
+ fi
+ AC_MSG_CHECKING(for /usr/include/krb5)
+ if test -d /usr/include/krb5; then
+ 	CFLAGS=${CFLAGS}\ -I/usr/include/krb5
+ 	CPPFLAGS=${CPPFLAGS}\ -I/usr/include/krb5
+ 	AC_MSG_RESULT(yes)
+ else
+ 	AC_MSG_RESULT(no)
+ fi
+ AC_MSG_CHECKING(for /usr/include/kerberosIV)
+ if test -d /usr/include/kerberosIV; then
+ 	CFLAGS=${CFLAGS}\ -I/usr/include/kerberosIV
+ 	CPPFLAGS=${CPPFLAGS}\ -I/usr/include/kerberosIV
+ 	AC_MSG_RESULT(yes)
+ else
+ 	AC_MSG_RESULT(no)
+ fi
+ 
  AC_CHECK_LIB(ncurses, initscr,,
     AC_CHECK_LIB(curses, initscr,, AC_MSG_ERROR(No curses library found.)))
  AC_CHECK_LIB(com_err, com_err)
  AC_CHECK_LIB(nsl, gethostbyname)
  AC_CHECK_LIB(socket, socket)
! # netbsd needs the following three before krb5
! AC_CHECK_LIB(asn1, free_Principal)
! AC_CHECK_LIB(crypto, SHA1_Init)
! AC_CHECK_LIB(roken, net_write)
! AC_CHECK_LIB(k5crypto, krb5_derive_key,,
!    AC_CHECK_LIB(krb5, krb5_derive_key))
  AC_CHECK_LIB(des425, req_act_vno)
  AC_CHECK_LIB(des, des_quad_cksum)
  AC_CHECK_LIB(resolv, res_search)
***************
*** 85,91 ****
  dnl Checks for typedefs, structures, and compiler characteristics.
  AC_CHECK_FILE(/usr/share/terminfo, AC_DEFINE(TERMINFO, "/usr/share/terminfo", [Have terminfo]),
    AC_CHECK_FILE(/usr/share/lib/terminfo, AC_DEFINE(TERMINFO, "/usr/share/lib/terminfo", [Have terminfo]),
!   AC_MSG_ERROR(No terminfo found for this system)))
  
  AC_SUBST(XSUBPPDIR)
  
--- 115,122 ----
  dnl Checks for typedefs, structures, and compiler characteristics.
  AC_CHECK_FILE(/usr/share/terminfo, AC_DEFINE(TERMINFO, "/usr/share/terminfo", [Have terminfo]),
    AC_CHECK_FILE(/usr/share/lib/terminfo, AC_DEFINE(TERMINFO, "/usr/share/lib/terminfo", [Have terminfo]),
!     AC_CHECK_FILE(/usr/pkg/share/terminfo, AC_DEFINE(TERMINFO, "/usr/share/lib/terminfo", [Have terminfo]), # netbsd
!     AC_MSG_ERROR(No terminfo found for this system))))
  
  AC_SUBST(XSUBPPDIR)
  
*** owl.h.orig	Mon Jul 28 22:59:43 2003
--- owl.h	Mon Jul 28 22:42:03 2003
***************
*** 1,14 ****
  #ifndef INC_OWL_H
  #define INC_OWL_H
  
- #include <curses.h>
  #include <sys/param.h>
  #include <EXTERN.h>
  #include <netdb.h>
  #include <regex.h>
  #include <time.h>
  #include <libfaim/aim.h>
  #include "config.h"
  #ifdef HAVE_LIBZEPHYR
  #include <zephyr/zephyr.h>
  #endif
--- 1,21 ----
  #ifndef INC_OWL_H
  #define INC_OWL_H
  
  #include <sys/param.h>
  #include <EXTERN.h>
  #include <netdb.h>
  #include <regex.h>
  #include <time.h>
  #include <libfaim/aim.h>
+ 
  #include "config.h"
+ #ifdef HAVE_LIBNCURSES
+ #include <ncurses.h>
+ #else
+ #ifdef HAVE_LIBCURSES
+ #include <curses.h>
+ #endif /* HAVE_LIBCURSES */
+ #endif /* HAVE_LIBNCURSES */
  #ifdef HAVE_LIBZEPHYR
  #include <zephyr/zephyr.h>
  #endif

--T4sUOijqQbZv57TR--

home help back first fref pref prev next nref lref last post