diff options
| author | Andrei Zmievski <andrei@php.net> | 2000-04-11 18:40:47 +0000 |
|---|---|---|
| committer | Andrei Zmievski <andrei@php.net> | 2000-04-11 18:40:47 +0000 |
| commit | da1cca03ae8538c587e6bf9a98b340d45949352b (patch) | |
| tree | f8477e89dc0b936215c6fed8537c047857553a61 /ext/pcre/pcrelib/NON-UNIX-USE | |
| parent | 804861c5acb465abec4b3c485b2fb5e47c2431e9 (diff) | |
| download | php-git-da1cca03ae8538c587e6bf9a98b340d45949352b.tar.gz | |
Re-add.
Diffstat (limited to 'ext/pcre/pcrelib/NON-UNIX-USE')
| -rw-r--r-- | ext/pcre/pcrelib/NON-UNIX-USE | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/ext/pcre/pcrelib/NON-UNIX-USE b/ext/pcre/pcrelib/NON-UNIX-USE new file mode 100644 index 0000000000..09a743245b --- /dev/null +++ b/ext/pcre/pcrelib/NON-UNIX-USE @@ -0,0 +1,50 @@ +Compiling PCRE on non-Unix systems +---------------------------------- + +If you want to compile PCRE for a non-Unix system, note that it consists +entirely of code written in Standard C, and so should compile successfully +on any machine with a Standard C compiler and library, using normal compiling +commands to do the following: + +(1) Copy or rename the file config.in as config.h, and change the macros that +define HAVE_STRERROR and HAVE_MEMMOVE to define them as 1 rather than 0. +Unfortunately, because of the way Unix autoconf works, the default setting has +to be 0. + +(2) Copy or rename the file pcre.in as pcre.h, and change the macro definitions +for PCRE_MAJOR, PCRE_MINOR, and PCRE_DATE near its start to the values set in +configure.in. + +(3) Compile dftables.c as a stand-alone program, and then run it with +the standard output sent to chartables.c. This generates a set of standard +character tables. + +(4) Compile maketables.c, get.c, study.c and pcre.c and link them all +together into an object library in whichever form your system keeps such +libraries. This is the pcre library (chartables.c gets included by means of an +#include directive). + +(5) Similarly, compile pcreposix.c and link it as the pcreposix library. + +(6) Compile the test program pcretest.c. This needs the functions in the +pcre and pcreposix libraries when linking. + +(7) Run pcretest on the testinput files in the testdata directory, and check +that the output matches the corresponding testoutput files. You must use the +-i option when checking testinput2. + +If you have a system without "configure" but where you can use a Makefile, edit +Makefile.in to create Makefile, substituting suitable values for the variables +at the head of the file. + +Some help in building a Win32 DLL of PCRE in GnuWin32 environments was +contributed by Paul.Sokolovsky@technologist.com. These environments are +Mingw32 (http://www.xraylith.wisc.edu/~khan/software/gnu-win32/) and +CygWin (http://sourceware.cygnus.com/cygwin/). Paul comments: + + For CygWin, set CFLAGS=-mno-cygwin, and do 'make dll'. You'll get + pcre.dll (containing pcreposix also), libpcre.dll.a, and dynamically + linked pgrep and pcretest. If you have /bin/sh, run RunTest (three + main test go ok, locale not supported). + +**** |
