Attached is a first patch to support the Cygwin 1.x platform.
It is made against 2.0.22-alpha, due to the fact that I am currently
on vacation and don't have the bandwidth (GSM modem :(( to grap a
fresh CVS tree. Hope someone with commit access to CVS can incorporate
the changes anyway, Martin?!
2.0.22 configures, build and runs with prefork MPM (non-threaded) on
Cygwin 1.1.8 and 1.3.2. Cygwin 1.3.2 supports pthreads, but I have
still problems in getting the threaded MPM to work, so that's why
prefork is assumed as default MPM.
The patch needs still some work, but this is a first scratch.
Here are the changes:
* build/binbuild.sh: corrected path to config.guess. This may be
corrected already in recent version?!
* configure.in: added Cygwin specific APR_SETVARs.
* os/config.m4: added Cygwin specific values for $OS and $OS_DIR.
$OS_DIR will change to "cygwin" as soon as I get the DSO/DLL things
clean as with 1.3.20.
* srclib/apr/build/apr_hints.m4: added Cygwin specific APR_ADDTOs.
* srclib/apr/configure.in: added Cygwin specific directives. $OSDIR
will change to "cygwin" as soon as I clean things up.
* srclib/apr/file_io/unix/dir.c: changed a suspicious #ifdef
statement. Is this a missconfiguration of thread vs. non-thread #ifdef
exclusion?!?!
* srclib/apr-util/xml/expat/lib/expat.h.in: added a OS specific
#ifdef statement, due that Cygwin defines __declspec, but we are not
on Win32 and don't want to import from DLL. Maybe this has to be
changed in expat distribution itself?!?!
* srclib/apr-util/xml/expat/lib/xmlparse.c: same as expat.h.in.
* support/logresolve.c: added OS specific #ifdef statement to define
h_errno as extern __declspec(dllimport); it's imported from the
cygwin1.dll itself.
Stipe
tolj@wapme-systems.de
-------------------------------------------------------------------
Wapme Systems AG
Münsterstr. 248
40470 Düsseldorf
Tel: +49-211-74845-0
Fax: +49-211-74845-299
E-Mail: info@wapme-systems.de
Internet: http://www.wapme-systems.de
-------------------------------------------------------------------
wapme.net - wherever you are
|