Commit 0427e944 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Added support for compiling under Minix 3.1.3 using ACK.

parent 09fd3b49
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5,6 +5,9 @@
                             \___|\___/|_| \_\_____|

                                  Changelog
Dan F (16 May 2007)
- Added support for compiling under Minix 3.1.3 using ACK.

Dan F (14 May 2007)
- Added SFTP directory listing test case 613.

+15 −0
Original line number Diff line number Diff line
@@ -416,6 +416,21 @@ then
             )
fi

if test "$HAVE_GETHOSTBYNAME" != "1"
then
  dnl This is for Minix 3.1
  AC_MSG_CHECKING([for gethostbyname for Minix 3])
  AC_TRY_LINK([
/* Older Minix versions may need <net/gen/netdb.h> here instead */
#include <netdb.h>],
               [gethostbyname("www.dummysite.com");],
               [ dnl worked!
               AC_MSG_RESULT([yes])
               HAVE_GETHOSTBYNAME="1"],
               AC_MSG_RESULT(no)
             )
fi

if test "$HAVE_GETHOSTBYNAME" != "1"
then
  dnl This is for eCos with a stubbed DNS implementation
+20 −9
Original line number Diff line number Diff line
@@ -577,21 +577,32 @@ eCos

Minix
=====
   curl can be compiled on Minix 3 using gcc (ACK has a few problems due
   to mismatched headers and libraries as of ver. 3.1.2).  The gcc and bash
   packages must be installed first.  The default heap size allocated to
   bash is inadequate for running configure and will result in out of memory
   errors.  Increase it with the command:
   curl can be compiled on Minix 3 using gcc or ACK (starting with
   ver. 3.1.3).  The gcc and bash packages must be installed first.
   The default heap size allocated to bash is inadequate for running
   configure and will result in out of memory errors.  Increase it with
   the command:

     chmem =2048000 /usr/local/bin/bash

   Make sure gcc and bash are in the PATH then configure curl with a
   command like this:
   Make sure gcc and bash are in the PATH with the command:
   
     ./configure GREP=/usr/bin/grep AR=/usr/gnu/bin/gar --disable-ldap
     export PATH=/usr/gnu/bin:$PATH
   
   then configure curl with a command like this:

     ./configure CC=gcc GREP=grep AR=/usr/gnu/bin/gar --disable-ldap

   Then simply run 'make'.

   To compile with the ACK C compiler:

     chmem =1024000 /usr/lib/em_cemcom.ansi
     chmem =512000 /usr/lib/i386/as
     ./configure CC=cc LD=cc GREP=grep CPPFLAGS=-D_POSIX_SOURCE=1 \
                 --disable-ldap
     make


CROSS COMPILE
=============
@@ -728,7 +739,7 @@ PORTS
        - i386 FreeBSD
        - i386 HURD
        - i386 Linux 1.3, 2.0, 2.2, 2.3, 2.4, 2.6
        - i386 MINIX 3.1.2
        - i386 MINIX 3.1
        - i386 NetBSD
        - i386 Novell NetWare
        - i386 OS/2
+6 −0
Original line number Diff line number Diff line
@@ -259,6 +259,12 @@
#define sclose(x) CloseSocket(x)
#endif

#ifdef __minix
/* Minix 3 versions up to at least 3.1.3 are missing these prototypes */
extern char * strtok_r(char *s, const char *delim, char **last);
extern struct tm * gmtime_r(const time_t * const timep, struct tm *tmp);
#endif

#define DIR_CHAR      "/"
#ifndef DOT_CHAR
#define DOT_CHAR      "."