patch to configure.ac to build openssh -5.2p1 on Haiku, based on Ingo's patch for 5.0p1

This commit is contained in:
Scott McCreary
2009-05-19 05:14:37 +00:00
parent ee0ece7bdf
commit a97b7b400f

View File

@@ -0,0 +1,35 @@
diff -urN openssh-5.2p1/configure.ac openssh-5.2p1-haiku/configure.ac
--- openssh-5.2p1/configure.ac 2009-05-19 03:58:15.000000000 +0000
+++ openssh-5.2p1-haiku/configure.ac 2009-05-19 05:02:04.000000000 +0000
@@ -484,6 +484,11 @@
*-*-dragonfly*)
SSHDLIBS="$SSHDLIBS -lcrypt"
;;
+*-*-haiku*)
+ LIBS="$LIBS -lbsd "
+ AC_CHECK_LIB(network, socket)
+ MANTYPE=man
+ ;;
*-*-hpux*)
# first we define all of the options common to all HP-UX releases
CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
@@ -2611,6 +2616,19 @@
)
fi
+if test -z "$have_u_int64_t" ; then
+ AC_MSG_CHECKING([for u_int64_t type in posix/stdint.h])
+ AC_TRY_COMPILE(
+ [ #include <posix/stdint.h> ],
+ [ u_int64_t a; a = 1],
+ [
+ AC_DEFINE(HAVE_U_INT64_T)
+ AC_MSG_RESULT(yes)
+ ],
+ [ AC_MSG_RESULT(no) ]
+ )
+fi
+
if test -z "$have_u_intxx_t" ; then
AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
AC_TRY_COMPILE(