| 42 |
settings that it contains to whatever is appropriate for your environment. |
settings that it contains to whatever is appropriate for your environment. |
| 43 |
In particular, if you want to force a specific value for newline, you can |
In particular, if you want to force a specific value for newline, you can |
| 44 |
define the NEWLINE macro. |
define the NEWLINE macro. |
| 45 |
|
|
| 46 |
An alternative approach is not to edit config.h, but to use -D on the |
An alternative approach is not to edit config.h, but to use -D on the |
| 47 |
compiler command line to make any changes that you need. |
compiler command line to make any changes that you need. |
| 48 |
|
|
| 49 |
NOTE: There have been occasions when the way in which certain parameters |
NOTE: There have been occasions when the way in which certain parameters |
| 50 |
in config.h are used has changed between releases. (In the configure/make |
in config.h are used has changed between releases. (In the configure/make |
| 51 |
world, this is handled automatically.) When upgrading to a new release, |
world, this is handled automatically.) When upgrading to a new release, |
| 52 |
you are strongly advised to review config.h.generic before re-using what |
you are strongly advised to review config.h.generic before re-using what |
| 53 |
you had previously. |
you had previously. |
| 54 |
|
|
| 55 |
(2) Copy or rename the file pcre.h.generic as pcre.h. |
(2) Copy or rename the file pcre.h.generic as pcre.h. |
| 56 |
|
|
| 57 |
(3) EITHER: |
(3) EITHER: |
| 58 |
Copy or rename file pcre_chartables.c.dist as pcre_chartables.c. |
Copy or rename file pcre_chartables.c.dist as pcre_chartables.c. |
| 59 |
|
|
| 60 |
OR: |
OR: |
| 61 |
Compile dftables.c as a stand-alone program, and then run it with the |
Compile dftables.c as a stand-alone program, and then run it with the |
| 62 |
single argument "pcre_chartables.c". This generates a set of standard |
single argument "pcre_chartables.c". This generates a set of standard |
| 65 |
that is specified by LC_xxx environment variables, add the -L option to |
that is specified by LC_xxx environment variables, add the -L option to |
| 66 |
the dftables command. You must use this method if you are building on |
the dftables command. You must use this method if you are building on |
| 67 |
a system that uses EBCDIC code. |
a system that uses EBCDIC code. |
| 68 |
|
|
| 69 |
The tables in pcre_chartables.c are defaults. The caller of PCRE can |
The tables in pcre_chartables.c are defaults. The caller of PCRE can |
| 70 |
specify alternative tables at run time. |
specify alternative tables at run time. |
| 71 |
|
|
| 72 |
(4) Ensure that you have the following header files: |
(4) Ensure that you have the following header files: |
| 73 |
|
|
| 74 |
pcre_internal.h |
pcre_internal.h |
| 75 |
ucp.h |
ucp.h |
| 76 |
ucpinternal.h |
ucpinternal.h |
| 77 |
ucptable.h |
ucptable.h |
| 78 |
|
|
| 79 |
(5) Also ensure that you have the following file, which is #included as source |
(5) Also ensure that you have the following file, which is #included as source |
| 80 |
when building a debugging version of PCRE and is also used by pcretest. |
when building a debugging version of PCRE and is also used by pcretest. |
| 81 |
|
|
| 82 |
pcre_printint.src |
pcre_printint.src |
| 83 |
|
|
| 84 |
(6) Compile the following source files: |
(6) Compile the following source files: |
| 85 |
|
|
| 86 |
pcre_chartables.c |
pcre_chartables.c |
| 87 |
pcre_compile.c |
pcre_compile.c |
| 88 |
pcre_config.c |
pcre_config.c |
| 103 |
pcre_valid_utf8.c |
pcre_valid_utf8.c |
| 104 |
pcre_version.c |
pcre_version.c |
| 105 |
pcre_xclass.c |
pcre_xclass.c |
| 106 |
|
|
| 107 |
(7) Now link all the compiled code into an object library in whichever form |
(7) Now link all the compiled code into an object library in whichever form |
| 108 |
your system keeps such libraries. This is the basic PCRE C library. If |
your system keeps such libraries. This is the basic PCRE C library. If |
| 109 |
your system has static and shared libraries, you may have to do this once |
your system has static and shared libraries, you may have to do this once |
| 110 |
for each type. |
for each type. |
| 111 |
|
|
| 112 |
(8) Similarly, compile pcreposix.c and link the result (on its own) as the |
(8) Similarly, compile pcreposix.c and link the result (on its own) as the |
| 113 |
pcreposix library. |
pcreposix library. |
| 114 |
|
|