Merge tag 'upstream/0.21.10-clean'
Upstream version 0.21.10-clean
Willi Mann
4 years ago
283 | 283 | - Support EndNote reference citations in convert.c |
284 | 284 | - Improved handling of some tables |
285 | 285 | - Fixed --text processing broken in 0.21.8 - outputs/text.conf |
286 | 0.21.10: | |
287 | - added gentoo automake-fix and iconv-detection patches |
0 | 0 | Installation Instructions |
1 | 1 | ************************* |
2 | 2 | |
3 | Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation, | |
4 | Inc. | |
3 | Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software | |
4 | Foundation, Inc. | |
5 | 5 | |
6 | 6 | Copying and distribution of this file, with or without modification, |
7 | 7 | are permitted in any medium without royalty provided the copyright |
11 | 11 | Basic Installation |
12 | 12 | ================== |
13 | 13 | |
14 | Briefly, the shell commands `./configure; make; make install' should | |
15 | configure, build, and install this package. The following | |
16 | more-detailed instructions are generic; see the `README' file for | |
14 | Briefly, the shell command './configure && make && make install' | |
15 | should configure, build, and install this package. The following | |
16 | more-detailed instructions are generic; see the 'README' file for | |
17 | 17 | instructions specific to this package. Some packages provide this |
18 | `INSTALL' file but do not implement all of the features documented | |
18 | 'INSTALL' file but do not implement all of the features documented | |
19 | 19 | below. The lack of an optional feature in a given package is not |
20 | 20 | necessarily a bug. More recommendations for GNU packages can be found |
21 | 21 | in *note Makefile Conventions: (standards)Makefile Conventions. |
22 | 22 | |
23 | The `configure' shell script attempts to guess correct values for | |
23 | The 'configure' shell script attempts to guess correct values for | |
24 | 24 | various system-dependent variables used during compilation. It uses |
25 | those values to create a `Makefile' in each directory of the package. | |
26 | It may also create one or more `.h' files containing system-dependent | |
27 | definitions. Finally, it creates a shell script `config.status' that | |
25 | those values to create a 'Makefile' in each directory of the package. | |
26 | It may also create one or more '.h' files containing system-dependent | |
27 | definitions. Finally, it creates a shell script 'config.status' that | |
28 | 28 | you can run in the future to recreate the current configuration, and a |
29 | file `config.log' containing compiler output (useful mainly for | |
30 | debugging `configure'). | |
31 | ||
32 | It can also use an optional file (typically called `config.cache' | |
33 | and enabled with `--cache-file=config.cache' or simply `-C') that saves | |
34 | the results of its tests to speed up reconfiguring. Caching is | |
35 | disabled by default to prevent problems with accidental use of stale | |
36 | cache files. | |
29 | file 'config.log' containing compiler output (useful mainly for | |
30 | debugging 'configure'). | |
31 | ||
32 | It can also use an optional file (typically called 'config.cache' and | |
33 | enabled with '--cache-file=config.cache' or simply '-C') that saves the | |
34 | results of its tests to speed up reconfiguring. Caching is disabled by | |
35 | default to prevent problems with accidental use of stale cache files. | |
37 | 36 | |
38 | 37 | If you need to do unusual things to compile the package, please try |
39 | to figure out how `configure' could check whether to do them, and mail | |
40 | diffs or instructions to the address given in the `README' so they can | |
38 | to figure out how 'configure' could check whether to do them, and mail | |
39 | diffs or instructions to the address given in the 'README' so they can | |
41 | 40 | be considered for the next release. If you are using the cache, and at |
42 | some point `config.cache' contains results you don't want to keep, you | |
41 | some point 'config.cache' contains results you don't want to keep, you | |
43 | 42 | may remove or edit it. |
44 | 43 | |
45 | The file `configure.ac' (or `configure.in') is used to create | |
46 | `configure' by a program called `autoconf'. You need `configure.ac' if | |
47 | you want to change it or regenerate `configure' using a newer version | |
48 | of `autoconf'. | |
44 | The file 'configure.ac' (or 'configure.in') is used to create | |
45 | 'configure' by a program called 'autoconf'. You need 'configure.ac' if | |
46 | you want to change it or regenerate 'configure' using a newer version of | |
47 | 'autoconf'. | |
49 | 48 | |
50 | 49 | The simplest way to compile this package is: |
51 | 50 | |
52 | 1. `cd' to the directory containing the package's source code and type | |
53 | `./configure' to configure the package for your system. | |
54 | ||
55 | Running `configure' might take a while. While running, it prints | |
51 | 1. 'cd' to the directory containing the package's source code and type | |
52 | './configure' to configure the package for your system. | |
53 | ||
54 | Running 'configure' might take a while. While running, it prints | |
56 | 55 | some messages telling which features it is checking for. |
57 | 56 | |
58 | 2. Type `make' to compile the package. | |
59 | ||
60 | 3. Optionally, type `make check' to run any self-tests that come with | |
57 | 2. Type 'make' to compile the package. | |
58 | ||
59 | 3. Optionally, type 'make check' to run any self-tests that come with | |
61 | 60 | the package, generally using the just-built uninstalled binaries. |
62 | 61 | |
63 | 4. Type `make install' to install the programs and any data files and | |
62 | 4. Type 'make install' to install the programs and any data files and | |
64 | 63 | documentation. When installing into a prefix owned by root, it is |
65 | 64 | recommended that the package be configured and built as a regular |
66 | user, and only the `make install' phase executed with root | |
65 | user, and only the 'make install' phase executed with root | |
67 | 66 | privileges. |
68 | 67 | |
69 | 5. Optionally, type `make installcheck' to repeat any self-tests, but | |
68 | 5. Optionally, type 'make installcheck' to repeat any self-tests, but | |
70 | 69 | this time using the binaries in their final installed location. |
71 | 70 | This target does not install anything. Running this target as a |
72 | regular user, particularly if the prior `make install' required | |
71 | regular user, particularly if the prior 'make install' required | |
73 | 72 | root privileges, verifies that the installation completed |
74 | 73 | correctly. |
75 | 74 | |
76 | 75 | 6. You can remove the program binaries and object files from the |
77 | source code directory by typing `make clean'. To also remove the | |
78 | files that `configure' created (so you can compile the package for | |
79 | a different kind of computer), type `make distclean'. There is | |
80 | also a `make maintainer-clean' target, but that is intended mainly | |
76 | source code directory by typing 'make clean'. To also remove the | |
77 | files that 'configure' created (so you can compile the package for | |
78 | a different kind of computer), type 'make distclean'. There is | |
79 | also a 'make maintainer-clean' target, but that is intended mainly | |
81 | 80 | for the package's developers. If you use it, you may have to get |
82 | 81 | all sorts of other programs in order to regenerate files that came |
83 | 82 | with the distribution. |
84 | 83 | |
85 | 7. Often, you can also type `make uninstall' to remove the installed | |
84 | 7. Often, you can also type 'make uninstall' to remove the installed | |
86 | 85 | files again. In practice, not all packages have tested that |
87 | 86 | uninstallation works correctly, even though it is required by the |
88 | 87 | GNU Coding Standards. |
89 | 88 | |
90 | 8. Some packages, particularly those that use Automake, provide `make | |
89 | 8. Some packages, particularly those that use Automake, provide 'make | |
91 | 90 | distcheck', which can by used by developers to test that all other |
92 | targets like `make install' and `make uninstall' work correctly. | |
91 | targets like 'make install' and 'make uninstall' work correctly. | |
93 | 92 | This target is generally not run by end users. |
94 | 93 | |
95 | 94 | Compilers and Options |
96 | 95 | ===================== |
97 | 96 | |
98 | 97 | Some systems require unusual options for compilation or linking that |
99 | the `configure' script does not know about. Run `./configure --help' | |
98 | the 'configure' script does not know about. Run './configure --help' | |
100 | 99 | for details on some of the pertinent environment variables. |
101 | 100 | |
102 | You can give `configure' initial values for configuration parameters | |
103 | by setting variables in the command line or in the environment. Here | |
104 | is an example: | |
101 | You can give 'configure' initial values for configuration parameters | |
102 | by setting variables in the command line or in the environment. Here is | |
103 | an example: | |
105 | 104 | |
106 | 105 | ./configure CC=c99 CFLAGS=-g LIBS=-lposix |
107 | 106 | |
112 | 111 | |
113 | 112 | You can compile the package for more than one kind of computer at the |
114 | 113 | same time, by placing the object files for each architecture in their |
115 | own directory. To do this, you can use GNU `make'. `cd' to the | |
114 | own directory. To do this, you can use GNU 'make'. 'cd' to the | |
116 | 115 | directory where you want the object files and executables to go and run |
117 | the `configure' script. `configure' automatically checks for the | |
118 | source code in the directory that `configure' is in and in `..'. This | |
119 | is known as a "VPATH" build. | |
120 | ||
121 | With a non-GNU `make', it is safer to compile the package for one | |
116 | the 'configure' script. 'configure' automatically checks for the source | |
117 | code in the directory that 'configure' is in and in '..'. This is known | |
118 | as a "VPATH" build. | |
119 | ||
120 | With a non-GNU 'make', it is safer to compile the package for one | |
122 | 121 | architecture at a time in the source code directory. After you have |
123 | installed the package for one architecture, use `make distclean' before | |
122 | installed the package for one architecture, use 'make distclean' before | |
124 | 123 | reconfiguring for another architecture. |
125 | 124 | |
126 | 125 | On MacOS X 10.5 and later systems, you can create libraries and |
127 | 126 | executables that work on multiple system types--known as "fat" or |
128 | "universal" binaries--by specifying multiple `-arch' options to the | |
129 | compiler but only a single `-arch' option to the preprocessor. Like | |
127 | "universal" binaries--by specifying multiple '-arch' options to the | |
128 | compiler but only a single '-arch' option to the preprocessor. Like | |
130 | 129 | this: |
131 | 130 | |
132 | 131 | ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ |
135 | 134 | |
136 | 135 | This is not guaranteed to produce working output in all cases, you |
137 | 136 | may have to build one architecture at a time and combine the results |
138 | using the `lipo' tool if you have problems. | |
137 | using the 'lipo' tool if you have problems. | |
139 | 138 | |
140 | 139 | Installation Names |
141 | 140 | ================== |
142 | 141 | |
143 | By default, `make install' installs the package's commands under | |
144 | `/usr/local/bin', include files under `/usr/local/include', etc. You | |
145 | can specify an installation prefix other than `/usr/local' by giving | |
146 | `configure' the option `--prefix=PREFIX', where PREFIX must be an | |
142 | By default, 'make install' installs the package's commands under | |
143 | '/usr/local/bin', include files under '/usr/local/include', etc. You | |
144 | can specify an installation prefix other than '/usr/local' by giving | |
145 | 'configure' the option '--prefix=PREFIX', where PREFIX must be an | |
147 | 146 | absolute file name. |
148 | 147 | |
149 | 148 | You can specify separate installation prefixes for |
150 | 149 | architecture-specific files and architecture-independent files. If you |
151 | pass the option `--exec-prefix=PREFIX' to `configure', the package uses | |
150 | pass the option '--exec-prefix=PREFIX' to 'configure', the package uses | |
152 | 151 | PREFIX as the prefix for installing programs and libraries. |
153 | 152 | Documentation and other data files still use the regular prefix. |
154 | 153 | |
155 | 154 | In addition, if you use an unusual directory layout you can give |
156 | options like `--bindir=DIR' to specify different values for particular | |
157 | kinds of files. Run `configure --help' for a list of the directories | |
158 | you can set and what kinds of files go in them. In general, the | |
159 | default for these options is expressed in terms of `${prefix}', so that | |
160 | specifying just `--prefix' will affect all of the other directory | |
155 | options like '--bindir=DIR' to specify different values for particular | |
156 | kinds of files. Run 'configure --help' for a list of the directories | |
157 | you can set and what kinds of files go in them. In general, the default | |
158 | for these options is expressed in terms of '${prefix}', so that | |
159 | specifying just '--prefix' will affect all of the other directory | |
161 | 160 | specifications that were not explicitly provided. |
162 | 161 | |
163 | 162 | The most portable way to affect installation locations is to pass the |
164 | correct locations to `configure'; however, many packages provide one or | |
163 | correct locations to 'configure'; however, many packages provide one or | |
165 | 164 | both of the following shortcuts of passing variable assignments to the |
166 | `make install' command line to change installation locations without | |
165 | 'make install' command line to change installation locations without | |
167 | 166 | having to reconfigure or recompile. |
168 | 167 | |
169 | 168 | The first method involves providing an override variable for each |
170 | affected directory. For example, `make install | |
169 | affected directory. For example, 'make install | |
171 | 170 | prefix=/alternate/directory' will choose an alternate location for all |
172 | 171 | directory configuration variables that were expressed in terms of |
173 | `${prefix}'. Any directories that were specified during `configure', | |
174 | but not in terms of `${prefix}', must each be overridden at install | |
175 | time for the entire installation to be relocated. The approach of | |
176 | makefile variable overrides for each directory variable is required by | |
177 | the GNU Coding Standards, and ideally causes no recompilation. | |
178 | However, some platforms have known limitations with the semantics of | |
179 | shared libraries that end up requiring recompilation when using this | |
180 | method, particularly noticeable in packages that use GNU Libtool. | |
181 | ||
182 | The second method involves providing the `DESTDIR' variable. For | |
183 | example, `make install DESTDIR=/alternate/directory' will prepend | |
184 | `/alternate/directory' before all installation names. The approach of | |
185 | `DESTDIR' overrides is not required by the GNU Coding Standards, and | |
172 | '${prefix}'. Any directories that were specified during 'configure', | |
173 | but not in terms of '${prefix}', must each be overridden at install time | |
174 | for the entire installation to be relocated. The approach of makefile | |
175 | variable overrides for each directory variable is required by the GNU | |
176 | Coding Standards, and ideally causes no recompilation. However, some | |
177 | platforms have known limitations with the semantics of shared libraries | |
178 | that end up requiring recompilation when using this method, particularly | |
179 | noticeable in packages that use GNU Libtool. | |
180 | ||
181 | The second method involves providing the 'DESTDIR' variable. For | |
182 | example, 'make install DESTDIR=/alternate/directory' will prepend | |
183 | '/alternate/directory' before all installation names. The approach of | |
184 | 'DESTDIR' overrides is not required by the GNU Coding Standards, and | |
186 | 185 | does not work on platforms that have drive letters. On the other hand, |
187 | 186 | it does better at avoiding recompilation issues, and works well even |
188 | when some directory options were not specified in terms of `${prefix}' | |
189 | at `configure' time. | |
187 | when some directory options were not specified in terms of '${prefix}' | |
188 | at 'configure' time. | |
190 | 189 | |
191 | 190 | Optional Features |
192 | 191 | ================= |
193 | 192 | |
194 | 193 | If the package supports it, you can cause programs to be installed |
195 | with an extra prefix or suffix on their names by giving `configure' the | |
196 | option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. | |
197 | ||
198 | Some packages pay attention to `--enable-FEATURE' options to | |
199 | `configure', where FEATURE indicates an optional part of the package. | |
200 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE | |
201 | is something like `gnu-as' or `x' (for the X Window System). The | |
202 | `README' should mention any `--enable-' and `--with-' options that the | |
194 | with an extra prefix or suffix on their names by giving 'configure' the | |
195 | option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'. | |
196 | ||
197 | Some packages pay attention to '--enable-FEATURE' options to | |
198 | 'configure', where FEATURE indicates an optional part of the package. | |
199 | They may also pay attention to '--with-PACKAGE' options, where PACKAGE | |
200 | is something like 'gnu-as' or 'x' (for the X Window System). The | |
201 | 'README' should mention any '--enable-' and '--with-' options that the | |
203 | 202 | package recognizes. |
204 | 203 | |
205 | For packages that use the X Window System, `configure' can usually | |
204 | For packages that use the X Window System, 'configure' can usually | |
206 | 205 | find the X include and library files automatically, but if it doesn't, |
207 | you can use the `configure' options `--x-includes=DIR' and | |
208 | `--x-libraries=DIR' to specify their locations. | |
206 | you can use the 'configure' options '--x-includes=DIR' and | |
207 | '--x-libraries=DIR' to specify their locations. | |
209 | 208 | |
210 | 209 | Some packages offer the ability to configure how verbose the |
211 | execution of `make' will be. For these packages, running `./configure | |
210 | execution of 'make' will be. For these packages, running './configure | |
212 | 211 | --enable-silent-rules' sets the default to minimal output, which can be |
213 | overridden with `make V=1'; while running `./configure | |
212 | overridden with 'make V=1'; while running './configure | |
214 | 213 | --disable-silent-rules' sets the default to verbose, which can be |
215 | overridden with `make V=0'. | |
214 | overridden with 'make V=0'. | |
216 | 215 | |
217 | 216 | Particular systems |
218 | 217 | ================== |
219 | 218 | |
220 | On HP-UX, the default C compiler is not ANSI C compatible. If GNU | |
221 | CC is not installed, it is recommended to use the following options in | |
219 | On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC | |
220 | is not installed, it is recommended to use the following options in | |
222 | 221 | order to use an ANSI C compiler: |
223 | 222 | |
224 | 223 | ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" |
225 | 224 | |
226 | 225 | and if that doesn't work, install pre-built binaries of GCC for HP-UX. |
227 | 226 | |
228 | HP-UX `make' updates targets which have the same time stamps as | |
229 | their prerequisites, which makes it generally unusable when shipped | |
230 | generated files such as `configure' are involved. Use GNU `make' | |
231 | instead. | |
227 | HP-UX 'make' updates targets which have the same time stamps as their | |
228 | prerequisites, which makes it generally unusable when shipped generated | |
229 | files such as 'configure' are involved. Use GNU 'make' instead. | |
232 | 230 | |
233 | 231 | On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot |
234 | parse its `<wchar.h>' header file. The option `-nodtk' can be used as | |
235 | a workaround. If GNU CC is not installed, it is therefore recommended | |
236 | to try | |
232 | parse its '<wchar.h>' header file. The option '-nodtk' can be used as a | |
233 | workaround. If GNU CC is not installed, it is therefore recommended to | |
234 | try | |
237 | 235 | |
238 | 236 | ./configure CC="cc" |
239 | 237 | |
241 | 239 | |
242 | 240 | ./configure CC="cc -nodtk" |
243 | 241 | |
244 | On Solaris, don't put `/usr/ucb' early in your `PATH'. This | |
242 | On Solaris, don't put '/usr/ucb' early in your 'PATH'. This | |
245 | 243 | directory contains several dysfunctional programs; working variants of |
246 | these programs are available in `/usr/bin'. So, if you need `/usr/ucb' | |
247 | in your `PATH', put it _after_ `/usr/bin'. | |
248 | ||
249 | On Haiku, software installed for all users goes in `/boot/common', | |
250 | not `/usr/local'. It is recommended to use the following options: | |
244 | these programs are available in '/usr/bin'. So, if you need '/usr/ucb' | |
245 | in your 'PATH', put it _after_ '/usr/bin'. | |
246 | ||
247 | On Haiku, software installed for all users goes in '/boot/common', | |
248 | not '/usr/local'. It is recommended to use the following options: | |
251 | 249 | |
252 | 250 | ./configure --prefix=/boot/common |
253 | 251 | |
254 | 252 | Specifying the System Type |
255 | 253 | ========================== |
256 | 254 | |
257 | There may be some features `configure' cannot figure out | |
255 | There may be some features 'configure' cannot figure out | |
258 | 256 | automatically, but needs to determine by the type of machine the package |
259 | 257 | will run on. Usually, assuming the package is built to be run on the |
260 | _same_ architectures, `configure' can figure that out, but if it prints | |
258 | _same_ architectures, 'configure' can figure that out, but if it prints | |
261 | 259 | a message saying it cannot guess the machine type, give it the |
262 | `--build=TYPE' option. TYPE can either be a short name for the system | |
263 | type, such as `sun4', or a canonical name which has the form: | |
260 | '--build=TYPE' option. TYPE can either be a short name for the system | |
261 | type, such as 'sun4', or a canonical name which has the form: | |
264 | 262 | |
265 | 263 | CPU-COMPANY-SYSTEM |
266 | 264 | |
269 | 267 | OS |
270 | 268 | KERNEL-OS |
271 | 269 | |
272 | See the file `config.sub' for the possible values of each field. If | |
273 | `config.sub' isn't included in this package, then this package doesn't | |
270 | See the file 'config.sub' for the possible values of each field. If | |
271 | 'config.sub' isn't included in this package, then this package doesn't | |
274 | 272 | need to know the machine type. |
275 | 273 | |
276 | 274 | If you are _building_ compiler tools for cross-compiling, you should |
277 | use the option `--target=TYPE' to select the type of system they will | |
275 | use the option '--target=TYPE' to select the type of system they will | |
278 | 276 | produce code for. |
279 | 277 | |
280 | 278 | If you want to _use_ a cross compiler, that generates code for a |
281 | 279 | platform different from the build platform, you should specify the |
282 | 280 | "host" platform (i.e., that on which the generated programs will |
283 | eventually be run) with `--host=TYPE'. | |
281 | eventually be run) with '--host=TYPE'. | |
284 | 282 | |
285 | 283 | Sharing Defaults |
286 | 284 | ================ |
287 | 285 | |
288 | If you want to set default values for `configure' scripts to share, | |
289 | you can create a site shell script called `config.site' that gives | |
290 | default values for variables like `CC', `cache_file', and `prefix'. | |
291 | `configure' looks for `PREFIX/share/config.site' if it exists, then | |
292 | `PREFIX/etc/config.site' if it exists. Or, you can set the | |
293 | `CONFIG_SITE' environment variable to the location of the site script. | |
294 | A warning: not all `configure' scripts look for a site script. | |
286 | If you want to set default values for 'configure' scripts to share, | |
287 | you can create a site shell script called 'config.site' that gives | |
288 | default values for variables like 'CC', 'cache_file', and 'prefix'. | |
289 | 'configure' looks for 'PREFIX/share/config.site' if it exists, then | |
290 | 'PREFIX/etc/config.site' if it exists. Or, you can set the | |
291 | 'CONFIG_SITE' environment variable to the location of the site script. | |
292 | A warning: not all 'configure' scripts look for a site script. | |
295 | 293 | |
296 | 294 | Defining Variables |
297 | 295 | ================== |
298 | 296 | |
299 | 297 | Variables not defined in a site shell script can be set in the |
300 | environment passed to `configure'. However, some packages may run | |
298 | environment passed to 'configure'. However, some packages may run | |
301 | 299 | configure again during the build, and the customized values of these |
302 | 300 | variables may be lost. In order to avoid this problem, you should set |
303 | them in the `configure' command line, using `VAR=value'. For example: | |
301 | them in the 'configure' command line, using 'VAR=value'. For example: | |
304 | 302 | |
305 | 303 | ./configure CC=/usr/local2/bin/gcc |
306 | 304 | |
307 | causes the specified `gcc' to be used as the C compiler (unless it is | |
305 | causes the specified 'gcc' to be used as the C compiler (unless it is | |
308 | 306 | overridden in the site shell script). |
309 | 307 | |
310 | Unfortunately, this technique does not work for `CONFIG_SHELL' due to | |
311 | an Autoconf limitation. Until the limitation is lifted, you can use | |
312 | this workaround: | |
308 | Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an | |
309 | Autoconf limitation. Until the limitation is lifted, you can use this | |
310 | workaround: | |
313 | 311 | |
314 | 312 | CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash |
315 | 313 | |
316 | `configure' Invocation | |
314 | 'configure' Invocation | |
317 | 315 | ====================== |
318 | 316 | |
319 | `configure' recognizes the following options to control how it | |
317 | 'configure' recognizes the following options to control how it | |
320 | 318 | operates. |
321 | 319 | |
322 | `--help' | |
323 | `-h' | |
324 | Print a summary of all of the options to `configure', and exit. | |
325 | ||
326 | `--help=short' | |
327 | `--help=recursive' | |
320 | '--help' | |
321 | '-h' | |
322 | Print a summary of all of the options to 'configure', and exit. | |
323 | ||
324 | '--help=short' | |
325 | '--help=recursive' | |
328 | 326 | Print a summary of the options unique to this package's |
329 | `configure', and exit. The `short' variant lists options used | |
330 | only in the top level, while the `recursive' variant lists options | |
331 | also present in any nested packages. | |
332 | ||
333 | `--version' | |
334 | `-V' | |
335 | Print the version of Autoconf used to generate the `configure' | |
327 | 'configure', and exit. The 'short' variant lists options used only | |
328 | in the top level, while the 'recursive' variant lists options also | |
329 | present in any nested packages. | |
330 | ||
331 | '--version' | |
332 | '-V' | |
333 | Print the version of Autoconf used to generate the 'configure' | |
336 | 334 | script, and exit. |
337 | 335 | |
338 | `--cache-file=FILE' | |
336 | '--cache-file=FILE' | |
339 | 337 | Enable the cache: use and save the results of the tests in FILE, |
340 | traditionally `config.cache'. FILE defaults to `/dev/null' to | |
338 | traditionally 'config.cache'. FILE defaults to '/dev/null' to | |
341 | 339 | disable caching. |
342 | 340 | |
343 | `--config-cache' | |
344 | `-C' | |
345 | Alias for `--cache-file=config.cache'. | |
346 | ||
347 | `--quiet' | |
348 | `--silent' | |
349 | `-q' | |
341 | '--config-cache' | |
342 | '-C' | |
343 | Alias for '--cache-file=config.cache'. | |
344 | ||
345 | '--quiet' | |
346 | '--silent' | |
347 | '-q' | |
350 | 348 | Do not print messages saying which checks are being made. To |
351 | suppress all normal output, redirect it to `/dev/null' (any error | |
349 | suppress all normal output, redirect it to '/dev/null' (any error | |
352 | 350 | messages will still be shown). |
353 | 351 | |
354 | `--srcdir=DIR' | |
352 | '--srcdir=DIR' | |
355 | 353 | Look for the package's source code in directory DIR. Usually |
356 | `configure' can determine that directory automatically. | |
357 | ||
358 | `--prefix=DIR' | |
359 | Use DIR as the installation prefix. *note Installation Names:: | |
360 | for more details, including other options available for fine-tuning | |
361 | the installation locations. | |
362 | ||
363 | `--no-create' | |
364 | `-n' | |
354 | 'configure' can determine that directory automatically. | |
355 | ||
356 | '--prefix=DIR' | |
357 | Use DIR as the installation prefix. *note Installation Names:: for | |
358 | more details, including other options available for fine-tuning the | |
359 | installation locations. | |
360 | ||
361 | '--no-create' | |
362 | '-n' | |
365 | 363 | Run the configure checks, but stop before creating any output |
366 | 364 | files. |
367 | 365 | |
368 | `configure' also accepts some other, not widely useful, options. Run | |
369 | `configure --help' for more details. | |
366 | 'configure' also accepts some other, not widely useful, options. Run | |
367 | 'configure --help' for more details. |
0 | # Makefile.in generated by automake 1.13.4 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
15 | 15 | |
16 | 16 | # this is the main Makefile.am |
17 | 17 | VPATH = @srcdir@ |
18 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
18 | am__is_gnu_make = { \ | |
19 | if test -z '$(MAKELEVEL)'; then \ | |
20 | false; \ | |
21 | elif test -n '$(MAKE_HOST)'; then \ | |
22 | true; \ | |
23 | elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ | |
24 | true; \ | |
25 | else \ | |
26 | false; \ | |
27 | fi; \ | |
28 | } | |
19 | 29 | am__make_running_with_option = \ |
20 | 30 | case $${target_option-} in \ |
21 | 31 | ?) ;; \ |
79 | 89 | build_triplet = @build@ |
80 | 90 | host_triplet = @host@ |
81 | 91 | subdir = . |
82 | DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \ | |
83 | $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
84 | $(top_srcdir)/configure $(am__configure_deps) \ | |
85 | $(srcdir)/config.h.in COPYING config/config.guess \ | |
86 | config/config.sub config/depcomp config/install-sh \ | |
87 | config/missing $(top_srcdir)/config/config.guess \ | |
88 | $(top_srcdir)/config/config.sub \ | |
89 | $(top_srcdir)/config/install-sh $(top_srcdir)/config/missing | |
90 | 92 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
91 | 93 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
92 | 94 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
93 | 95 | $(ACLOCAL_M4) |
96 | DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ | |
97 | $(am__configure_deps) $(am__DIST_COMMON) | |
94 | 98 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
95 | 99 | configure.lineno config.status.lineno |
96 | 100 | mkinstalldirs = $(install_sh) -d |
154 | 158 | CTAGS = ctags |
155 | 159 | CSCOPE = cscope |
156 | 160 | DIST_SUBDIRS = $(SUBDIRS) |
161 | am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ | |
162 | $(top_srcdir)/config/compile $(top_srcdir)/config/config.guess \ | |
163 | $(top_srcdir)/config/config.sub \ | |
164 | $(top_srcdir)/config/install-sh $(top_srcdir)/config/missing \ | |
165 | AUTHORS COPYING ChangeLog INSTALL NEWS README config/compile \ | |
166 | config/config.guess config/config.sub config/install-sh \ | |
167 | config/missing | |
157 | 168 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
158 | 169 | distdir = $(PACKAGE)-$(VERSION) |
159 | 170 | top_distdir = $(distdir) |
318 | 329 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ |
319 | 330 | $(am__cd) $(top_srcdir) && \ |
320 | 331 | $(AUTOMAKE) --gnu Makefile |
321 | .PRECIOUS: Makefile | |
322 | 332 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
323 | 333 | @case '$?' in \ |
324 | 334 | *config.status*) \ |
339 | 349 | $(am__aclocal_m4_deps): |
340 | 350 | |
341 | 351 | config.h: stamp-h1 |
342 | @if test ! -f $@; then rm -f stamp-h1; else :; fi | |
343 | @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi | |
352 | @test -f $@ || rm -f stamp-h1 | |
353 | @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 | |
344 | 354 | |
345 | 355 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status |
346 | 356 | @rm -f stamp-h1 |
524 | 534 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ |
525 | 535 | || chmod -R a+r "$(distdir)" |
526 | 536 | dist-gzip: distdir |
527 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
537 | tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz | |
528 | 538 | $(am__post_remove_distdir) |
529 | 539 | |
530 | 540 | dist-bzip2: distdir |
540 | 550 | $(am__post_remove_distdir) |
541 | 551 | |
542 | 552 | dist-tarZ: distdir |
553 | @echo WARNING: "Support for distribution archives compressed with" \ | |
554 | "legacy program 'compress' is deprecated." >&2 | |
555 | @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 | |
543 | 556 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
544 | 557 | $(am__post_remove_distdir) |
545 | 558 | |
546 | 559 | dist-shar: distdir |
547 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz | |
560 | @echo WARNING: "Support for shar distribution archives is" \ | |
561 | "deprecated." >&2 | |
562 | @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 | |
563 | shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz | |
548 | 564 | $(am__post_remove_distdir) |
549 | 565 | |
550 | 566 | dist-zip: distdir |
562 | 578 | distcheck: dist |
563 | 579 | case '$(DIST_ARCHIVES)' in \ |
564 | 580 | *.tar.gz*) \ |
565 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ | |
581 | eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ | |
566 | 582 | *.tar.bz2*) \ |
567 | 583 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
568 | 584 | *.tar.lz*) \ |
572 | 588 | *.tar.Z*) \ |
573 | 589 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
574 | 590 | *.shar.gz*) \ |
575 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ | |
591 | eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ | |
576 | 592 | *.zip*) \ |
577 | 593 | unzip $(distdir).zip ;;\ |
578 | 594 | esac |
579 | 595 | chmod -R a-w $(distdir) |
580 | 596 | chmod u+w $(distdir) |
581 | mkdir $(distdir)/_build $(distdir)/_inst | |
597 | mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst | |
582 | 598 | chmod a-w $(distdir) |
583 | 599 | test -d $(distdir)/_build || exit 0; \ |
584 | 600 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ |
585 | 601 | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ |
586 | 602 | && am__cwd=`pwd` \ |
587 | && $(am__cd) $(distdir)/_build \ | |
588 | && ../configure --srcdir=.. --prefix="$$dc_install_base" \ | |
603 | && $(am__cd) $(distdir)/_build/sub \ | |
604 | && ../../configure \ | |
589 | 605 | $(AM_DISTCHECK_CONFIGURE_FLAGS) \ |
590 | 606 | $(DISTCHECK_CONFIGURE_FLAGS) \ |
607 | --srcdir=../.. --prefix="$$dc_install_base" \ | |
591 | 608 | && $(MAKE) $(AM_MAKEFLAGS) \ |
592 | 609 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ |
593 | 610 | && $(MAKE) $(AM_MAKEFLAGS) check \ |
762 | 779 | mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ |
763 | 780 | uninstall-am |
764 | 781 | |
782 | .PRECIOUS: Makefile | |
783 | ||
765 | 784 | |
766 | 785 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
767 | 786 | # Otherwise a system limit (for SysV at least) may be exceeded. |
0 | 0.21.10 (23 Nov 2018): | |
1 | Applied gentoo automake-fix and iconv.detection patches | |
0 | 2 | 0.21.9 (2 Jan 2015): |
1 | 3 | Correct text conversion failure introduced in 0.21.8 |
2 | 4 | Improved processing of tables |
0 | # | |
1 | # Makefile for unrtf (MinGW version) | |
2 | # | |
3 | ||
4 | CC = gcc | |
5 | LD = gcc | |
6 | ||
7 | INSTALL = cp -f | |
8 | INSTALL_PROGRAM = $(INSTALL) | |
9 | INSTALL_DATA = $(INSTALL) | |
10 | ||
11 | # must be equal to DEBUG or NDEBUG | |
12 | DB = NDEBUG | |
13 | OPT = -O2 | |
14 | ||
15 | LDLIBS = -liconv -lShlwapi | |
16 | ||
17 | CFLAGS = -Wall $(OPT) -D$(DB) -I. -DHAVE_CONFIG_H | |
18 | LDFLAGS = | |
19 | ||
20 | SRCS = attr.c convert.c error.c hash.c my_iconv.c main.c \ | |
21 | malloc.c output.c parse.c path.c unicode.c user.c \ | |
22 | util.c word.c unrtf_w.c | |
23 | OBJS = attr.o convert.o error.o hash.o my_iconv.o main.o \ | |
24 | malloc.o output.o parse.o path.o unicode.o user.o \ | |
25 | util.o word.o unrtf_w.o | |
26 | ||
27 | PROGS = unrtf | |
28 | ||
29 | VPATH = ./:../src | |
30 | ||
31 | all: $(PROGS) | |
32 | ||
33 | clean: | |
34 | rm -f $(OBJS) | |
35 | rm -f $(PROGS) | |
36 | ||
37 | unrtf : $(OBJS) | |
38 | @rm -f $@ | |
39 | $(LD) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@ | |
40 | ||
41 | .c.o: | |
42 | $(CC) $(CFLAGS) -c $< |
0 | <?xml version="1.0" encoding="utf-8"?> | |
1 | <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
2 | <ImportGroup Label="PropertySheets" /> | |
3 | <PropertyGroup Label="UserMacros"> | |
4 | <libiconv>c:\recolldeps\iconv64</libiconv> | |
5 | </PropertyGroup> | |
6 | <PropertyGroup /> | |
7 | <ItemDefinitionGroup /> | |
8 | <ItemGroup> | |
9 | <BuildMacro Include="libiconv"> | |
10 | <Value>$(libiconv)</Value> | |
11 | <EnvironmentVariable>true</EnvironmentVariable> | |
12 | </BuildMacro> | |
13 | </ItemGroup> | |
14 | </Project>⏎ |
0 | /* safeunistd.h: <unistd.h>, but with compat. and large file support for MSVC. | |
1 | * | |
2 | * Copyright (C) 2007 Olly Betts | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or | |
5 | * modify it under the terms of the GNU General Public License as | |
6 | * published by the Free Software Foundation; either version 2 of the | |
7 | * License, or (at your option) any later version. | |
8 | * | |
9 | * This program is distributed in the hope that it will be useful, | |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | * GNU General Public License for more details. | |
13 | * | |
14 | * You should have received a copy of the GNU General Public License | |
15 | * along with this program; if not, write to the Free Software | |
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 | |
17 | * USA | |
18 | */ | |
19 | ||
20 | #ifndef XAPIAN_INCLUDED_SAFEUNISTD_H | |
21 | #define XAPIAN_INCLUDED_SAFEUNISTD_H | |
22 | ||
23 | #ifndef _MSC_VER | |
24 | # include <unistd.h> | |
25 | #else | |
26 | ||
27 | // sys/types.h has a typedef for off_t so make sure we've seen that before | |
28 | // we hide it behind a #define. | |
29 | # include <sys/types.h> | |
30 | ||
31 | // MSVC doesn't even HAVE unistd.h - io.h seems the nearest equivalent. | |
32 | // We also need to do some renaming of functions to get versions which | |
33 | // work on large files. | |
34 | # include <io.h> | |
35 | ||
36 | # ifdef lseek | |
37 | # undef lseek | |
38 | # endif | |
39 | ||
40 | # ifdef off_t | |
41 | # undef off_t | |
42 | # endif | |
43 | ||
44 | # define lseek(FD, OFF, WHENCE) _lseeki64(FD, OFF, WHENCE) | |
45 | # define off_t __int64 | |
46 | ||
47 | // process.h is needed for getpid(). | |
48 | # include <process.h> | |
49 | ||
50 | #endif | |
51 | ||
52 | #ifdef _MSC_VER | |
53 | ||
54 | inline unsigned int | |
55 | sleep(unsigned int seconds) | |
56 | { | |
57 | // Use our own little helper function to avoid pulling in <windows.h>. | |
58 | extern void xapian_sleep_milliseconds(unsigned int millisecs); | |
59 | ||
60 | // Sleep takes a time interval in milliseconds, whereas POSIX sleep takes | |
61 | // a time interval in seconds, so we need to multiply 'seconds' by 1000. | |
62 | // | |
63 | // But make sure the multiplication won't overflow! 4294967 seconds is | |
64 | // nearly 50 days, so just sleep for that long and return the number of | |
65 | // seconds left to sleep for. The common case of sleep(CONSTANT) should | |
66 | // optimise to just xapian_sleep_milliseconds(CONSTANT). | |
67 | if (seconds > 4294967u) { | |
68 | xapian_sleep_milliseconds(4294967000u); | |
69 | return seconds - 4294967u; | |
70 | } | |
71 | xapian_sleep_milliseconds(seconds * 1000u); | |
72 | return 0; | |
73 | } | |
74 | ||
75 | #endif | |
76 | ||
77 | #endif /* XAPIAN_INCLUDED_SAFEUNISTD_H */ |
0 | | |
1 | Microsoft Visual Studio Solution File, Format Version 12.00 | |
2 | # Visual Studio 14 | |
3 | VisualStudioVersion = 14.0.23107.0 | |
4 | MinimumVisualStudioVersion = 10.0.40219.1 | |
5 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "unrtf", "unrtf.vcxproj", "{4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}" | |
6 | EndProject | |
7 | Global | |
8 | GlobalSection(SolutionConfigurationPlatforms) = preSolution | |
9 | Debug|x64 = Debug|x64 | |
10 | Debug|x86 = Debug|x86 | |
11 | Release|x64 = Release|x64 | |
12 | Release|x86 = Release|x86 | |
13 | EndGlobalSection | |
14 | GlobalSection(ProjectConfigurationPlatforms) = postSolution | |
15 | {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Debug|x64.ActiveCfg = Release|Win32 | |
16 | {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Debug|x64.Build.0 = Release|Win32 | |
17 | {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Debug|x86.ActiveCfg = Debug|Win32 | |
18 | {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Debug|x86.Build.0 = Debug|Win32 | |
19 | {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Release|x64.ActiveCfg = Release|x64 | |
20 | {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Release|x64.Build.0 = Release|x64 | |
21 | {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Release|x86.ActiveCfg = Release|Win32 | |
22 | {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Release|x86.Build.0 = Release|Win32 | |
23 | EndGlobalSection | |
24 | GlobalSection(SolutionProperties) = preSolution | |
25 | HideSolutionNode = FALSE | |
26 | EndGlobalSection | |
27 | EndGlobal |
0 | <?xml version="1.0" encoding="utf-8"?> | |
1 | <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
2 | <ItemGroup Label="ProjectConfigurations"> | |
3 | <ProjectConfiguration Include="Debug|Win32"> | |
4 | <Configuration>Debug</Configuration> | |
5 | <Platform>Win32</Platform> | |
6 | </ProjectConfiguration> | |
7 | <ProjectConfiguration Include="Release|Win32"> | |
8 | <Configuration>Release</Configuration> | |
9 | <Platform>Win32</Platform> | |
10 | </ProjectConfiguration> | |
11 | <ProjectConfiguration Include="Debug|x64"> | |
12 | <Configuration>Debug</Configuration> | |
13 | <Platform>x64</Platform> | |
14 | </ProjectConfiguration> | |
15 | <ProjectConfiguration Include="Release|x64"> | |
16 | <Configuration>Release</Configuration> | |
17 | <Platform>x64</Platform> | |
18 | </ProjectConfiguration> | |
19 | </ItemGroup> | |
20 | <PropertyGroup Label="Globals"> | |
21 | <ProjectGuid>{4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}</ProjectGuid> | |
22 | <Keyword>Win32Proj</Keyword> | |
23 | <RootNamespace>unrtf</RootNamespace> | |
24 | <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion> | |
25 | </PropertyGroup> | |
26 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | |
27 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | |
28 | <ConfigurationType>Application</ConfigurationType> | |
29 | <UseDebugLibraries>true</UseDebugLibraries> | |
30 | <PlatformToolset>v140</PlatformToolset> | |
31 | <CharacterSet>MultiByte</CharacterSet> | |
32 | </PropertyGroup> | |
33 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | |
34 | <ConfigurationType>Application</ConfigurationType> | |
35 | <UseDebugLibraries>false</UseDebugLibraries> | |
36 | <PlatformToolset>v140</PlatformToolset> | |
37 | <WholeProgramOptimization>true</WholeProgramOptimization> | |
38 | <CharacterSet>MultiByte</CharacterSet> | |
39 | </PropertyGroup> | |
40 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | |
41 | <ConfigurationType>Application</ConfigurationType> | |
42 | <UseDebugLibraries>true</UseDebugLibraries> | |
43 | <PlatformToolset>v140</PlatformToolset> | |
44 | <CharacterSet>MultiByte</CharacterSet> | |
45 | </PropertyGroup> | |
46 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | |
47 | <ConfigurationType>Application</ConfigurationType> | |
48 | <UseDebugLibraries>false</UseDebugLibraries> | |
49 | <PlatformToolset>v140</PlatformToolset> | |
50 | <WholeProgramOptimization>true</WholeProgramOptimization> | |
51 | <CharacterSet>MultiByte</CharacterSet> | |
52 | </PropertyGroup> | |
53 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | |
54 | <ImportGroup Label="ExtensionSettings"> | |
55 | </ImportGroup> | |
56 | <ImportGroup Label="Shared"> | |
57 | </ImportGroup> | |
58 | <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
59 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
60 | <Import Project="SolutionSettings.props" /> | |
61 | </ImportGroup> | |
62 | <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | |
63 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
64 | <Import Project="SolutionSettings.props" /> | |
65 | </ImportGroup> | |
66 | <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | |
67 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
68 | <Import Project="SolutionSettings.props" /> | |
69 | </ImportGroup> | |
70 | <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | |
71 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
72 | <Import Project="SolutionSettings.props" /> | |
73 | </ImportGroup> | |
74 | <PropertyGroup Label="UserMacros" /> | |
75 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
76 | <LinkIncremental>true</LinkIncremental> | |
77 | </PropertyGroup> | |
78 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | |
79 | <LinkIncremental>true</LinkIncremental> | |
80 | </PropertyGroup> | |
81 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | |
82 | <LinkIncremental>false</LinkIncremental> | |
83 | <OutDir>$(SolutionDir)\$(Platform)\$(Configuration)\</OutDir> | |
84 | </PropertyGroup> | |
85 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | |
86 | <LinkIncremental>false</LinkIncremental> | |
87 | </PropertyGroup> | |
88 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
89 | <ClCompile> | |
90 | <PrecompiledHeader> | |
91 | </PrecompiledHeader> | |
92 | <WarningLevel>Level3</WarningLevel> | |
93 | <Optimization>Disabled</Optimization> | |
94 | <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
95 | <AdditionalIncludeDirectories>$(SolutionDir);$(libiconv)\include</AdditionalIncludeDirectories> | |
96 | </ClCompile> | |
97 | <Link> | |
98 | <SubSystem>Console</SubSystem> | |
99 | <GenerateDebugInformation>true</GenerateDebugInformation> | |
100 | <AdditionalLibraryDirectories>$(libiconv)\libiconv\$(Platform)\$(Configuration)</AdditionalLibraryDirectories> | |
101 | <AdditionalDependencies>libiconv.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies> | |
102 | </Link> | |
103 | </ItemDefinitionGroup> | |
104 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | |
105 | <ClCompile> | |
106 | <PrecompiledHeader> | |
107 | </PrecompiledHeader> | |
108 | <WarningLevel>Level3</WarningLevel> | |
109 | <Optimization>Disabled</Optimization> | |
110 | <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
111 | <AdditionalIncludeDirectories>$(SolutionDir);$(libiconv)\include</AdditionalIncludeDirectories> | |
112 | </ClCompile> | |
113 | <Link> | |
114 | <SubSystem>Console</SubSystem> | |
115 | <GenerateDebugInformation>true</GenerateDebugInformation> | |
116 | <AdditionalLibraryDirectories>$(libiconv)\libiconv\$(Platform)\$(Configuration)</AdditionalLibraryDirectories> | |
117 | <AdditionalDependencies>libiconv.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies> | |
118 | </Link> | |
119 | </ItemDefinitionGroup> | |
120 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | |
121 | <ClCompile> | |
122 | <WarningLevel>Level3</WarningLevel> | |
123 | <PrecompiledHeader> | |
124 | </PrecompiledHeader> | |
125 | <Optimization>MaxSpeed</Optimization> | |
126 | <FunctionLevelLinking>true</FunctionLevelLinking> | |
127 | <IntrinsicFunctions>true</IntrinsicFunctions> | |
128 | <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
129 | <AdditionalIncludeDirectories>$(SolutionDir);$(libiconv)\include</AdditionalIncludeDirectories> | |
130 | </ClCompile> | |
131 | <Link> | |
132 | <SubSystem>Console</SubSystem> | |
133 | <GenerateDebugInformation>true</GenerateDebugInformation> | |
134 | <EnableCOMDATFolding>true</EnableCOMDATFolding> | |
135 | <OptimizeReferences>true</OptimizeReferences> | |
136 | <AdditionalLibraryDirectories>$(libiconv)\libiconv\$(Platform)\$(Configuration)</AdditionalLibraryDirectories> | |
137 | <AdditionalDependencies>libiconv.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies> | |
138 | </Link> | |
139 | </ItemDefinitionGroup> | |
140 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | |
141 | <ClCompile> | |
142 | <WarningLevel>Level3</WarningLevel> | |
143 | <PrecompiledHeader> | |
144 | </PrecompiledHeader> | |
145 | <Optimization>MaxSpeed</Optimization> | |
146 | <FunctionLevelLinking>true</FunctionLevelLinking> | |
147 | <IntrinsicFunctions>true</IntrinsicFunctions> | |
148 | <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
149 | <AdditionalIncludeDirectories>$(SolutionDir);$(libiconv)\include</AdditionalIncludeDirectories> | |
150 | </ClCompile> | |
151 | <Link> | |
152 | <SubSystem>Console</SubSystem> | |
153 | <GenerateDebugInformation>true</GenerateDebugInformation> | |
154 | <EnableCOMDATFolding>true</EnableCOMDATFolding> | |
155 | <OptimizeReferences>true</OptimizeReferences> | |
156 | <AdditionalLibraryDirectories>$(libiconv)\libiconv\$(Platform)\$(Configuration)</AdditionalLibraryDirectories> | |
157 | <AdditionalDependencies>libiconv.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies> | |
158 | </Link> | |
159 | </ItemDefinitionGroup> | |
160 | <ItemGroup> | |
161 | <ClCompile Include="..\src\attr.c" /> | |
162 | <ClCompile Include="..\src\convert.c" /> | |
163 | <ClCompile Include="..\src\error.c" /> | |
164 | <ClCompile Include="..\src\hash.c" /> | |
165 | <ClCompile Include="..\src\main.c" /> | |
166 | <ClCompile Include="..\src\malloc.c" /> | |
167 | <ClCompile Include="..\src\my_iconv.c" /> | |
168 | <ClCompile Include="..\src\output.c" /> | |
169 | <ClCompile Include="..\src\parse.c" /> | |
170 | <ClCompile Include="..\src\path.c" /> | |
171 | <ClCompile Include="..\src\unicode.c" /> | |
172 | <ClCompile Include="..\src\user.c" /> | |
173 | <ClCompile Include="..\src\util.c" /> | |
174 | <ClCompile Include="..\src\word.c" /> | |
175 | <ClCompile Include="unrtf_w.c" /> | |
176 | </ItemGroup> | |
177 | <ItemGroup> | |
178 | <ClInclude Include="..\src\attr.h" /> | |
179 | <ClInclude Include="..\src\convert.h" /> | |
180 | <ClInclude Include="..\src\defs.h" /> | |
181 | <ClInclude Include="..\src\error.h" /> | |
182 | <ClInclude Include="..\src\hash.h" /> | |
183 | <ClInclude Include="..\src\main.h" /> | |
184 | <ClInclude Include="..\src\malloc.h" /> | |
185 | <ClInclude Include="..\src\my_iconv.h" /> | |
186 | <ClInclude Include="..\src\output.h" /> | |
187 | <ClInclude Include="..\src\parse.h" /> | |
188 | <ClInclude Include="..\src\path.h" /> | |
189 | <ClInclude Include="..\src\unicode.h" /> | |
190 | <ClInclude Include="..\src\user.h" /> | |
191 | <ClInclude Include="..\src\util.h" /> | |
192 | <ClInclude Include="..\src\word.h" /> | |
193 | <ClInclude Include="config.h" /> | |
194 | </ItemGroup> | |
195 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | |
196 | <ImportGroup Label="ExtensionTargets"> | |
197 | </ImportGroup> | |
198 | </Project>⏎ |
0 | <?xml version="1.0" encoding="utf-8"?> | |
1 | <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
2 | <ItemGroup> | |
3 | <Filter Include="Source Files"> | |
4 | <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> | |
5 | <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> | |
6 | </Filter> | |
7 | <Filter Include="Header Files"> | |
8 | <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> | |
9 | <Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions> | |
10 | </Filter> | |
11 | <Filter Include="Resource Files"> | |
12 | <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> | |
13 | <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> | |
14 | </Filter> | |
15 | </ItemGroup> | |
16 | <ItemGroup> | |
17 | <ClCompile Include="..\src\attr.c"> | |
18 | <Filter>Source Files</Filter> | |
19 | </ClCompile> | |
20 | <ClCompile Include="..\src\convert.c"> | |
21 | <Filter>Source Files</Filter> | |
22 | </ClCompile> | |
23 | <ClCompile Include="..\src\error.c"> | |
24 | <Filter>Source Files</Filter> | |
25 | </ClCompile> | |
26 | <ClCompile Include="..\src\hash.c"> | |
27 | <Filter>Source Files</Filter> | |
28 | </ClCompile> | |
29 | <ClCompile Include="..\src\main.c"> | |
30 | <Filter>Source Files</Filter> | |
31 | </ClCompile> | |
32 | <ClCompile Include="..\src\malloc.c"> | |
33 | <Filter>Source Files</Filter> | |
34 | </ClCompile> | |
35 | <ClCompile Include="..\src\my_iconv.c"> | |
36 | <Filter>Source Files</Filter> | |
37 | </ClCompile> | |
38 | <ClCompile Include="..\src\output.c"> | |
39 | <Filter>Source Files</Filter> | |
40 | </ClCompile> | |
41 | <ClCompile Include="..\src\parse.c"> | |
42 | <Filter>Source Files</Filter> | |
43 | </ClCompile> | |
44 | <ClCompile Include="..\src\path.c"> | |
45 | <Filter>Source Files</Filter> | |
46 | </ClCompile> | |
47 | <ClCompile Include="..\src\unicode.c"> | |
48 | <Filter>Source Files</Filter> | |
49 | </ClCompile> | |
50 | <ClCompile Include="..\src\user.c"> | |
51 | <Filter>Source Files</Filter> | |
52 | </ClCompile> | |
53 | <ClCompile Include="..\src\util.c"> | |
54 | <Filter>Source Files</Filter> | |
55 | </ClCompile> | |
56 | <ClCompile Include="..\src\word.c"> | |
57 | <Filter>Source Files</Filter> | |
58 | </ClCompile> | |
59 | <ClCompile Include="unrtf_w.c"> | |
60 | <Filter>Source Files</Filter> | |
61 | </ClCompile> | |
62 | </ItemGroup> | |
63 | <ItemGroup> | |
64 | <ClInclude Include="..\src\attr.h"> | |
65 | <Filter>Header Files</Filter> | |
66 | </ClInclude> | |
67 | <ClInclude Include="..\src\convert.h"> | |
68 | <Filter>Header Files</Filter> | |
69 | </ClInclude> | |
70 | <ClInclude Include="..\src\error.h"> | |
71 | <Filter>Header Files</Filter> | |
72 | </ClInclude> | |
73 | <ClInclude Include="..\src\hash.h"> | |
74 | <Filter>Header Files</Filter> | |
75 | </ClInclude> | |
76 | <ClInclude Include="..\src\main.h"> | |
77 | <Filter>Header Files</Filter> | |
78 | </ClInclude> | |
79 | <ClInclude Include="..\src\malloc.h"> | |
80 | <Filter>Header Files</Filter> | |
81 | </ClInclude> | |
82 | <ClInclude Include="..\src\my_iconv.h"> | |
83 | <Filter>Header Files</Filter> | |
84 | </ClInclude> | |
85 | <ClInclude Include="..\src\output.h"> | |
86 | <Filter>Header Files</Filter> | |
87 | </ClInclude> | |
88 | <ClInclude Include="..\src\parse.h"> | |
89 | <Filter>Header Files</Filter> | |
90 | </ClInclude> | |
91 | <ClInclude Include="..\src\path.h"> | |
92 | <Filter>Header Files</Filter> | |
93 | </ClInclude> | |
94 | <ClInclude Include="..\src\unicode.h"> | |
95 | <Filter>Header Files</Filter> | |
96 | </ClInclude> | |
97 | <ClInclude Include="..\src\user.h"> | |
98 | <Filter>Header Files</Filter> | |
99 | </ClInclude> | |
100 | <ClInclude Include="..\src\util.h"> | |
101 | <Filter>Header Files</Filter> | |
102 | </ClInclude> | |
103 | <ClInclude Include="..\src\word.h"> | |
104 | <Filter>Header Files</Filter> | |
105 | </ClInclude> | |
106 | <ClInclude Include="config.h"> | |
107 | <Filter>Header Files</Filter> | |
108 | </ClInclude> | |
109 | <ClInclude Include="..\src\defs.h"> | |
110 | <Filter>Header Files</Filter> | |
111 | </ClInclude> | |
112 | </ItemGroup> | |
113 | </Project>⏎ |
0 | #include "config.h" | |
1 | ||
2 | #ifdef _WIN32 | |
3 | /*- | |
4 | * Copyright (c) 1990, 1993 | |
5 | * The Regents of the University of California. All rights reserved. | |
6 | * | |
7 | * The quadratic code is derived from software contributed to Berkeley by | |
8 | * Chris Torek. | |
9 | * | |
10 | * Redistribution and use in source and binary forms, with or without | |
11 | * modification, are permitted provided that the following conditions | |
12 | * are met: | |
13 | * 1. Redistributions of source code must retain the above copyright | |
14 | * notice, this list of conditions and the following disclaimer. | |
15 | * 2. Redistributions in binary form must reproduce the above copyright | |
16 | * notice, this list of conditions and the following disclaimer in the | |
17 | * documentation and/or other materials provided with the distribution. | |
18 | * 4. Neither the name of the University nor the names of its contributors | |
19 | * may be used to endorse or promote products derived from this software | |
20 | * without specific prior written permission. | |
21 | * | |
22 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | |
23 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
25 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
26 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
27 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
28 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
29 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
30 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
31 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
32 | * SUCH DAMAGE. | |
33 | */ | |
34 | ||
35 | #include <ctype.h> | |
36 | #include <string.h> | |
37 | #include <stdio.h> | |
38 | ||
39 | /* | |
40 | * Find the first occurrence of find in s, ignore case. | |
41 | */ | |
42 | char *strcasestr(const char *s, const char *find) | |
43 | { | |
44 | /* Less code size, but quadratic performance in the worst case. */ | |
45 | char c, sc; | |
46 | size_t len; | |
47 | ||
48 | if ((c = *find++) != 0) { | |
49 | c = tolower((unsigned char)c); | |
50 | len = strlen(find); | |
51 | do { | |
52 | do { | |
53 | if ((sc = *s++) == 0) | |
54 | return (NULL); | |
55 | } while ((char)tolower((unsigned char)sc) != c); | |
56 | } while (strncasecmp(s, find, len) != 0); | |
57 | s--; | |
58 | } | |
59 | return ((char *)s); | |
60 | } | |
61 | ||
62 | ||
63 | ||
64 | unsigned int unrtf_ntohl(unsigned int in) | |
65 | { | |
66 | const unsigned char *f = (const unsigned char*)∈ | |
67 | return( | |
68 | ((unsigned int)(f[3])) + | |
69 | ((unsigned int)(f[2]) << 8) + | |
70 | ((unsigned int)(f[1]) << 16) + | |
71 | ((unsigned int)(f[0]) << 24)); | |
72 | } | |
73 | ||
74 | #endif | |
75 | ||
76 | #include <Shlwapi.h> | |
77 | #pragma comment(lib, "shlwapi.lib") | |
78 | ||
79 | const char *path_thisexecpath() | |
80 | { | |
81 | #ifdef UNICODE | |
82 | Error: Need to add UNICODE code here | |
83 | #else | |
84 | static TCHAR text[MAX_PATH]; | |
85 | if (text[0] == 0) { | |
86 | DWORD length = GetModuleFileName(NULL, text, MAX_PATH); | |
87 | #ifdef NTDDI_WIN8_future | |
88 | PathCchRemoveFileSpec(text, MAX_PATH); | |
89 | #else | |
90 | PathRemoveFileSpec(text); | |
91 | #endif | |
92 | } | |
93 | return (const char *)text; | |
94 | #endif | |
95 | } | |
96 | ||
97 | /* Location for program data: charmaps etc */ | |
98 | const char *unrtfDataDir() | |
99 | { | |
100 | static char buffer[MAX_PATH]; | |
101 | if (buffer[0] == 0) { | |
102 | const char *execdir = path_thisexecpath(); | |
103 | if (strlen(execdir) + strlen("Share") + 4 < MAX_PATH) { | |
104 | snprintf(buffer, MAX_PATH, "%s\\Share\\", execdir); | |
105 | } | |
106 | } | |
107 | return buffer; | |
108 | } |
0 | # generated automatically by aclocal 1.13.4 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
0 | # generated automatically by aclocal 1.15.1 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2017 Free Software Foundation, Inc. | |
3 | 3 | |
4 | 4 | # This file is free software; the Free Software Foundation |
5 | 5 | # gives unlimited permission to copy and/or distribute it, |
19 | 19 | If you have problems, you may need to regenerate the build system entirely. |
20 | 20 | To do so, use the procedure documented by the package, typically 'autoreconf'.])]) |
21 | 21 | |
22 | # Copyright (C) 2002-2013 Free Software Foundation, Inc. | |
22 | # Copyright (C) 2002-2017 Free Software Foundation, Inc. | |
23 | 23 | # |
24 | 24 | # This file is free software; the Free Software Foundation |
25 | 25 | # gives unlimited permission to copy and/or distribute it, |
31 | 31 | # generated from the m4 files accompanying Automake X.Y. |
32 | 32 | # (This private macro should not be called outside this file.) |
33 | 33 | AC_DEFUN([AM_AUTOMAKE_VERSION], |
34 | [am__api_version='1.13' | |
34 | [am__api_version='1.15' | |
35 | 35 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
36 | 36 | dnl require some minimum version. Point them to the right macro. |
37 | m4_if([$1], [1.13.4], [], | |
37 | m4_if([$1], [1.15.1], [], | |
38 | 38 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
39 | 39 | ]) |
40 | 40 | |
50 | 50 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
51 | 51 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
52 | 52 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
53 | [AM_AUTOMAKE_VERSION([1.13.4])dnl | |
53 | [AM_AUTOMAKE_VERSION([1.15.1])dnl | |
54 | 54 | m4_ifndef([AC_AUTOCONF_VERSION], |
55 | 55 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
56 | 56 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
57 | 57 | |
58 | 58 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
59 | 59 | |
60 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
60 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
61 | 61 | # |
62 | 62 | # This file is free software; the Free Software Foundation |
63 | 63 | # gives unlimited permission to copy and/or distribute it, |
102 | 102 | # configured tree to be moved without reconfiguration. |
103 | 103 | |
104 | 104 | AC_DEFUN([AM_AUX_DIR_EXPAND], |
105 | [dnl Rely on autoconf to set up CDPATH properly. | |
106 | AC_PREREQ([2.50])dnl | |
107 | # expand $ac_aux_dir to an absolute path | |
108 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
105 | [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | |
106 | # Expand $ac_aux_dir to an absolute path. | |
107 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
109 | 108 | ]) |
110 | 109 | |
111 | 110 | # AM_CONDITIONAL -*- Autoconf -*- |
112 | 111 | |
113 | # Copyright (C) 1997-2013 Free Software Foundation, Inc. | |
112 | # Copyright (C) 1997-2017 Free Software Foundation, Inc. | |
114 | 113 | # |
115 | 114 | # This file is free software; the Free Software Foundation |
116 | 115 | # gives unlimited permission to copy and/or distribute it, |
141 | 140 | Usually this means the macro was only invoked conditionally.]]) |
142 | 141 | fi])]) |
143 | 142 | |
144 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
143 | # Copyright (C) 1999-2017 Free Software Foundation, Inc. | |
145 | 144 | # |
146 | 145 | # This file is free software; the Free Software Foundation |
147 | 146 | # gives unlimited permission to copy and/or distribute it, |
332 | 331 | |
333 | 332 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
334 | 333 | |
335 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
334 | # Copyright (C) 1999-2017 Free Software Foundation, Inc. | |
336 | 335 | # |
337 | 336 | # This file is free software; the Free Software Foundation |
338 | 337 | # gives unlimited permission to copy and/or distribute it, |
408 | 407 | |
409 | 408 | # Do all the work for Automake. -*- Autoconf -*- |
410 | 409 | |
411 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
410 | # Copyright (C) 1996-2017 Free Software Foundation, Inc. | |
412 | 411 | # |
413 | 412 | # This file is free software; the Free Software Foundation |
414 | 413 | # gives unlimited permission to copy and/or distribute it, |
416 | 415 | |
417 | 416 | # This macro actually does too much. Some checks are only needed if |
418 | 417 | # your package does certain things. But this isn't really a big deal. |
418 | ||
419 | dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. | |
420 | m4_define([AC_PROG_CC], | |
421 | m4_defn([AC_PROG_CC]) | |
422 | [_AM_PROG_CC_C_O | |
423 | ]) | |
419 | 424 | |
420 | 425 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
421 | 426 | # AM_INIT_AUTOMAKE([OPTIONS]) |
492 | 497 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
493 | 498 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
494 | 499 | AC_SUBST([mkdir_p], ['$(MKDIR_P)']) |
495 | # We need awk for the "check" target. The system "awk" is bad on | |
496 | # some platforms. | |
500 | # We need awk for the "check" target (and possibly the TAP driver). The | |
501 | # system "awk" is bad on some platforms. | |
497 | 502 | AC_REQUIRE([AC_PROG_AWK])dnl |
498 | 503 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
499 | 504 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
525 | 530 | AC_CONFIG_COMMANDS_PRE(dnl |
526 | 531 | [m4_provide_if([_AM_COMPILER_EXEEXT], |
527 | 532 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
533 | ||
534 | # POSIX will say in a future version that running "rm -f" with no argument | |
535 | # is OK; and we want to be able to make that assumption in our Makefile | |
536 | # recipes. So use an aggressive probe to check that the usage we want is | |
537 | # actually supported "in the wild" to an acceptable degree. | |
538 | # See automake bug#10828. | |
539 | # To make any issue more visible, cause the running configure to be aborted | |
540 | # by default if the 'rm' program in use doesn't match our expectations; the | |
541 | # user can still override this though. | |
542 | if rm -f && rm -fr && rm -rf; then : OK; else | |
543 | cat >&2 <<'END' | |
544 | Oops! | |
545 | ||
546 | Your 'rm' program seems unable to run without file operands specified | |
547 | on the command line, even when the '-f' option is present. This is contrary | |
548 | to the behaviour of most rm programs out there, and not conforming with | |
549 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
550 | ||
551 | Please tell bug-automake@gnu.org about your system, including the value | |
552 | of your $PATH and any error possibly output before this message. This | |
553 | can help us improve future automake versions. | |
554 | ||
555 | END | |
556 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
557 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
558 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
559 | echo >&2 | |
560 | else | |
561 | cat >&2 <<'END' | |
562 | Aborting the configuration process, to ensure you take notice of the issue. | |
563 | ||
564 | You can download and install GNU coreutils to get an 'rm' implementation | |
565 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
566 | ||
567 | If you want to complete the configuration process using your problematic | |
568 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
569 | to "yes", and re-run configure. | |
570 | ||
571 | END | |
572 | AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) | |
573 | fi | |
574 | fi | |
575 | dnl The trailing newline in this macro's definition is deliberate, for | |
576 | dnl backward compatibility and to allow trailing 'dnl'-style comments | |
577 | dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. | |
528 | 578 | ]) |
529 | 579 | |
530 | 580 | dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not |
532 | 582 | dnl mangled by Autoconf and run in a shell conditional statement. |
533 | 583 | m4_define([_AC_COMPILER_EXEEXT], |
534 | 584 | m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) |
535 | ||
536 | 585 | |
537 | 586 | # When config.status generates a header, we must update the stamp-h file. |
538 | 587 | # This file resides in the same directory as the config header |
555 | 604 | done |
556 | 605 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
557 | 606 | |
558 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
607 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
559 | 608 | # |
560 | 609 | # This file is free software; the Free Software Foundation |
561 | 610 | # gives unlimited permission to copy and/or distribute it, |
566 | 615 | # Define $install_sh. |
567 | 616 | AC_DEFUN([AM_PROG_INSTALL_SH], |
568 | 617 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
569 | if test x"${install_sh}" != xset; then | |
618 | if test x"${install_sh+set}" != xset; then | |
570 | 619 | case $am_aux_dir in |
571 | 620 | *\ * | *\ *) |
572 | 621 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
576 | 625 | fi |
577 | 626 | AC_SUBST([install_sh])]) |
578 | 627 | |
579 | # Copyright (C) 2003-2013 Free Software Foundation, Inc. | |
628 | # Copyright (C) 2003-2017 Free Software Foundation, Inc. | |
580 | 629 | # |
581 | 630 | # This file is free software; the Free Software Foundation |
582 | 631 | # gives unlimited permission to copy and/or distribute it, |
598 | 647 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
599 | 648 | # From Jim Meyering |
600 | 649 | |
601 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
650 | # Copyright (C) 1996-2017 Free Software Foundation, Inc. | |
602 | 651 | # |
603 | 652 | # This file is free software; the Free Software Foundation |
604 | 653 | # gives unlimited permission to copy and/or distribute it, |
633 | 682 | |
634 | 683 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
635 | 684 | |
636 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
685 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
637 | 686 | # |
638 | 687 | # This file is free software; the Free Software Foundation |
639 | 688 | # gives unlimited permission to copy and/or distribute it, |
683 | 732 | |
684 | 733 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
685 | 734 | |
686 | # Copyright (C) 1997-2013 Free Software Foundation, Inc. | |
735 | # Copyright (C) 1997-2017 Free Software Foundation, Inc. | |
687 | 736 | # |
688 | 737 | # This file is free software; the Free Software Foundation |
689 | 738 | # gives unlimited permission to copy and/or distribute it, |
722 | 771 | |
723 | 772 | # Helper functions for option handling. -*- Autoconf -*- |
724 | 773 | |
725 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
774 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
726 | 775 | # |
727 | 776 | # This file is free software; the Free Software Foundation |
728 | 777 | # gives unlimited permission to copy and/or distribute it, |
751 | 800 | AC_DEFUN([_AM_IF_OPTION], |
752 | 801 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
753 | 802 | |
803 | # Copyright (C) 1999-2017 Free Software Foundation, Inc. | |
804 | # | |
805 | # This file is free software; the Free Software Foundation | |
806 | # gives unlimited permission to copy and/or distribute it, | |
807 | # with or without modifications, as long as this notice is preserved. | |
808 | ||
809 | # _AM_PROG_CC_C_O | |
810 | # --------------- | |
811 | # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC | |
812 | # to automatically call this. | |
813 | AC_DEFUN([_AM_PROG_CC_C_O], | |
814 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
815 | AC_REQUIRE_AUX_FILE([compile])dnl | |
816 | AC_LANG_PUSH([C])dnl | |
817 | AC_CACHE_CHECK( | |
818 | [whether $CC understands -c and -o together], | |
819 | [am_cv_prog_cc_c_o], | |
820 | [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) | |
821 | # Make sure it works both with $CC and with simple cc. | |
822 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
823 | # compilers refuse to overwrite an existing .o file with -o, | |
824 | # though they will create one. | |
825 | am_cv_prog_cc_c_o=yes | |
826 | for am_i in 1 2; do | |
827 | if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ | |
828 | && test -f conftest2.$ac_objext; then | |
829 | : OK | |
830 | else | |
831 | am_cv_prog_cc_c_o=no | |
832 | break | |
833 | fi | |
834 | done | |
835 | rm -f core conftest* | |
836 | unset am_i]) | |
837 | if test "$am_cv_prog_cc_c_o" != yes; then | |
838 | # Losing compiler, so override with the script. | |
839 | # FIXME: It is wrong to rewrite CC. | |
840 | # But if we don't then we get into trouble of one sort or another. | |
841 | # A longer-term fix would be to have automake use am__CC in this case, | |
842 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
843 | CC="$am_aux_dir/compile $CC" | |
844 | fi | |
845 | AC_LANG_POP([C])]) | |
846 | ||
847 | # For backward compatibility. | |
848 | AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) | |
849 | ||
850 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
851 | # | |
852 | # This file is free software; the Free Software Foundation | |
853 | # gives unlimited permission to copy and/or distribute it, | |
854 | # with or without modifications, as long as this notice is preserved. | |
855 | ||
856 | # AM_RUN_LOG(COMMAND) | |
857 | # ------------------- | |
858 | # Run COMMAND, save the exit status in ac_status, and log it. | |
859 | # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) | |
860 | AC_DEFUN([AM_RUN_LOG], | |
861 | [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD | |
862 | ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD | |
863 | ac_status=$? | |
864 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
865 | (exit $ac_status); }]) | |
866 | ||
754 | 867 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
755 | 868 | |
756 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
869 | # Copyright (C) 1996-2017 Free Software Foundation, Inc. | |
757 | 870 | # |
758 | 871 | # This file is free software; the Free Software Foundation |
759 | 872 | # gives unlimited permission to copy and/or distribute it, |
834 | 947 | rm -f conftest.file |
835 | 948 | ]) |
836 | 949 | |
837 | # Copyright (C) 2009-2013 Free Software Foundation, Inc. | |
950 | # Copyright (C) 2009-2017 Free Software Foundation, Inc. | |
838 | 951 | # |
839 | 952 | # This file is free software; the Free Software Foundation |
840 | 953 | # gives unlimited permission to copy and/or distribute it, |
894 | 1007 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
895 | 1008 | ]) |
896 | 1009 | |
897 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
1010 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
898 | 1011 | # |
899 | 1012 | # This file is free software; the Free Software Foundation |
900 | 1013 | # gives unlimited permission to copy and/or distribute it, |
922 | 1035 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
923 | 1036 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
924 | 1037 | |
925 | # Copyright (C) 2006-2013 Free Software Foundation, Inc. | |
1038 | # Copyright (C) 2006-2017 Free Software Foundation, Inc. | |
926 | 1039 | # |
927 | 1040 | # This file is free software; the Free Software Foundation |
928 | 1041 | # gives unlimited permission to copy and/or distribute it, |
941 | 1054 | |
942 | 1055 | # Check how to create a tarball. -*- Autoconf -*- |
943 | 1056 | |
944 | # Copyright (C) 2004-2013 Free Software Foundation, Inc. | |
1057 | # Copyright (C) 2004-2017 Free Software Foundation, Inc. | |
945 | 1058 | # |
946 | 1059 | # This file is free software; the Free Software Foundation |
947 | 1060 | # gives unlimited permission to copy and/or distribute it, |
0 | outputsdir = ${libdir}/${PACKAGE} | |
0 | outputsdir = ${pkgdatadir} | |
1 | 1 | dist_outputs_DATA = SYMBOL.charmap |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.69 for unrtf 0.21.9. | |
2 | # Generated by GNU Autoconf 2.69 for unrtf 0.21.10. | |
3 | 3 | # |
4 | 4 | # Report bugs to <bug-unrtf@gnu.org>. |
5 | 5 | # |
579 | 579 | # Identity of this package. |
580 | 580 | PACKAGE_NAME='unrtf' |
581 | 581 | PACKAGE_TARNAME='unrtf' |
582 | PACKAGE_VERSION='0.21.9' | |
583 | PACKAGE_STRING='unrtf 0.21.9' | |
582 | PACKAGE_VERSION='0.21.10' | |
583 | PACKAGE_STRING='unrtf 0.21.10' | |
584 | 584 | PACKAGE_BUGREPORT='bug-unrtf@gnu.org' |
585 | 585 | PACKAGE_URL='' |
586 | 586 | |
1277 | 1277 | # Omit some internal or obsolete options to make the list less imposing. |
1278 | 1278 | # This message is too long to be a string in the A/UX 3.1 sh. |
1279 | 1279 | cat <<_ACEOF |
1280 | \`configure' configures unrtf 0.21.9 to adapt to many kinds of systems. | |
1280 | \`configure' configures unrtf 0.21.10 to adapt to many kinds of systems. | |
1281 | 1281 | |
1282 | 1282 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1283 | 1283 | |
1347 | 1347 | |
1348 | 1348 | if test -n "$ac_init_help"; then |
1349 | 1349 | case $ac_init_help in |
1350 | short | recursive ) echo "Configuration of unrtf 0.21.9:";; | |
1350 | short | recursive ) echo "Configuration of unrtf 0.21.10:";; | |
1351 | 1351 | esac |
1352 | 1352 | cat <<\_ACEOF |
1353 | 1353 | |
1441 | 1441 | test -n "$ac_init_help" && exit $ac_status |
1442 | 1442 | if $ac_init_version; then |
1443 | 1443 | cat <<\_ACEOF |
1444 | unrtf configure 0.21.9 | |
1444 | unrtf configure 0.21.10 | |
1445 | 1445 | generated by GNU Autoconf 2.69 |
1446 | 1446 | |
1447 | 1447 | Copyright (C) 2012 Free Software Foundation, Inc. |
1810 | 1810 | This file contains any messages produced by compilers while |
1811 | 1811 | running configure, to aid debugging if configure makes a mistake. |
1812 | 1812 | |
1813 | It was created by unrtf $as_me 0.21.9, which was | |
1813 | It was created by unrtf $as_me 0.21.10, which was | |
1814 | 1814 | generated by GNU Autoconf 2.69. Invocation command line was |
1815 | 1815 | |
1816 | 1816 | $ $0 $@ |
2193 | 2193 | |
2194 | 2194 | # Initialize automake |
2195 | 2195 | |
2196 | am__api_version='1.13' | |
2196 | am__api_version='1.15' | |
2197 | 2197 | |
2198 | 2198 | # Find a good install program. We prefer a C program (faster), |
2199 | 2199 | # so one script is as good as another. But avoid the broken or |
2365 | 2365 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2366 | 2366 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
2367 | 2367 | |
2368 | # expand $ac_aux_dir to an absolute path | |
2369 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2368 | # Expand $ac_aux_dir to an absolute path. | |
2369 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2370 | 2370 | |
2371 | 2371 | if test x"${MISSING+set}" != xset; then |
2372 | 2372 | case $am_aux_dir in |
2385 | 2385 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
2386 | 2386 | fi |
2387 | 2387 | |
2388 | if test x"${install_sh}" != xset; then | |
2388 | if test x"${install_sh+set}" != xset; then | |
2389 | 2389 | case $am_aux_dir in |
2390 | 2390 | *\ * | *\ *) |
2391 | 2391 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
2679 | 2679 | |
2680 | 2680 | # Define the identity of the package. |
2681 | 2681 | PACKAGE='unrtf' |
2682 | VERSION='0.21.9' | |
2682 | VERSION='0.21.10' | |
2683 | 2683 | |
2684 | 2684 | |
2685 | 2685 | cat >>confdefs.h <<_ACEOF |
2713 | 2713 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
2714 | 2714 | mkdir_p='$(MKDIR_P)' |
2715 | 2715 | |
2716 | # We need awk for the "check" target. The system "awk" is bad on | |
2717 | # some platforms. | |
2716 | # We need awk for the "check" target (and possibly the TAP driver). The | |
2717 | # system "awk" is bad on some platforms. | |
2718 | 2718 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2719 | 2719 | # in the wild :-( We should find a proper way to deprecate it ... |
2720 | 2720 | AMTAR='$${TAR-tar}' |
2729 | 2729 | |
2730 | 2730 | |
2731 | 2731 | |
2732 | ||
2733 | # POSIX will say in a future version that running "rm -f" with no argument | |
2734 | # is OK; and we want to be able to make that assumption in our Makefile | |
2735 | # recipes. So use an aggressive probe to check that the usage we want is | |
2736 | # actually supported "in the wild" to an acceptable degree. | |
2737 | # See automake bug#10828. | |
2738 | # To make any issue more visible, cause the running configure to be aborted | |
2739 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2740 | # user can still override this though. | |
2741 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2742 | cat >&2 <<'END' | |
2743 | Oops! | |
2744 | ||
2745 | Your 'rm' program seems unable to run without file operands specified | |
2746 | on the command line, even when the '-f' option is present. This is contrary | |
2747 | to the behaviour of most rm programs out there, and not conforming with | |
2748 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2749 | ||
2750 | Please tell bug-automake@gnu.org about your system, including the value | |
2751 | of your $PATH and any error possibly output before this message. This | |
2752 | can help us improve future automake versions. | |
2753 | ||
2754 | END | |
2755 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2756 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2757 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2758 | echo >&2 | |
2759 | else | |
2760 | cat >&2 <<'END' | |
2761 | Aborting the configuration process, to ensure you take notice of the issue. | |
2762 | ||
2763 | You can download and install GNU coreutils to get an 'rm' implementation | |
2764 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2765 | ||
2766 | If you want to complete the configuration process using your problematic | |
2767 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
2768 | to "yes", and re-run configure. | |
2769 | ||
2770 | END | |
2771 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
2772 | fi | |
2773 | fi | |
2732 | 2774 | |
2733 | 2775 | |
2734 | 2776 | # AM_MAINTAINER_MODE is a controversial macro. |
3555 | 3597 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3556 | 3598 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3557 | 3599 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3600 | ||
3601 | ac_ext=c | |
3602 | ac_cpp='$CPP $CPPFLAGS' | |
3603 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3604 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3605 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3607 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3608 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3609 | $as_echo_n "(cached) " >&6 | |
3610 | else | |
3611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3612 | /* end confdefs.h. */ | |
3613 | ||
3614 | int | |
3615 | main () | |
3616 | { | |
3617 | ||
3618 | ; | |
3619 | return 0; | |
3620 | } | |
3621 | _ACEOF | |
3622 | # Make sure it works both with $CC and with simple cc. | |
3623 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3624 | # compilers refuse to overwrite an existing .o file with -o, | |
3625 | # though they will create one. | |
3626 | am_cv_prog_cc_c_o=yes | |
3627 | for am_i in 1 2; do | |
3628 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3629 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3630 | ac_status=$? | |
3631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3632 | (exit $ac_status); } \ | |
3633 | && test -f conftest2.$ac_objext; then | |
3634 | : OK | |
3635 | else | |
3636 | am_cv_prog_cc_c_o=no | |
3637 | break | |
3638 | fi | |
3639 | done | |
3640 | rm -f core conftest* | |
3641 | unset am_i | |
3642 | fi | |
3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3644 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3645 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3646 | # Losing compiler, so override with the script. | |
3647 | # FIXME: It is wrong to rewrite CC. | |
3648 | # But if we don't then we get into trouble of one sort or another. | |
3649 | # A longer-term fix would be to have automake use am__CC in this case, | |
3650 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3651 | CC="$am_aux_dir/compile $CC" | |
3652 | fi | |
3653 | ac_ext=c | |
3654 | ac_cpp='$CPP $CPPFLAGS' | |
3655 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3656 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3657 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3658 | ||
3558 | 3659 | DEPDIR="${am__leading_dot}deps" |
3559 | 3660 | |
3560 | 3661 | ac_config_commands="$ac_config_commands depfiles" |
4326 | 4427 | ;; |
4327 | 4428 | *-*-darwin*) LIBS="-liconv" |
4328 | 4429 | ;; |
4430 | *-*-solaris*) LIBS="-liconv" | |
4431 | ;; | |
4329 | 4432 | esac |
4330 | 4433 | |
4331 | 4434 | ac_config_files="$ac_config_files Makefile doc/Makefile outputs/Makefile patches/Makefile src/Makefile tests/Makefile" |
4864 | 4967 | # report actual input values of CONFIG_FILES etc. instead of their |
4865 | 4968 | # values after options handling. |
4866 | 4969 | ac_log=" |
4867 | This file was extended by unrtf $as_me 0.21.9, which was | |
4970 | This file was extended by unrtf $as_me 0.21.10, which was | |
4868 | 4971 | generated by GNU Autoconf 2.69. Invocation command line was |
4869 | 4972 | |
4870 | 4973 | CONFIG_FILES = $CONFIG_FILES |
4930 | 5033 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4931 | 5034 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
4932 | 5035 | ac_cs_version="\\ |
4933 | unrtf config.status 0.21.9 | |
5036 | unrtf config.status 0.21.10 | |
4934 | 5037 | configured by $0, generated by GNU Autoconf 2.69, |
4935 | 5038 | with options \\"\$ac_cs_config\\" |
4936 | 5039 |
1 | 1 | # Process this file with autoconf to produce a configure script. |
2 | 2 | |
3 | 3 | AC_PREREQ(2.59) |
4 | AC_INIT([unrtf], [0.21.9], [bug-unrtf@gnu.org]) | |
4 | AC_INIT([unrtf], [0.21.10], [bug-unrtf@gnu.org]) | |
5 | 5 | AC_CONFIG_SRCDIR([src/attr.c]) |
6 | 6 | AC_CONFIG_AUX_DIR([config]) |
7 | 7 | AC_CONFIG_HEADER([config.h]) |
45 | 45 | *-*-cygwin*) AC_SUBST(LIBS, ["-liconv"]);; |
46 | 46 | *aix*) AC_SUBST(LIBS, ["-liconv"]);; |
47 | 47 | *-*-darwin*) AC_SUBST(LIBS, ["-liconv"]);; |
48 | *-*-solaris*) AC_SUBST(LIBS, ["-liconv"]);; | |
48 | 49 | esac |
49 | 50 | |
50 | 51 | AC_CONFIG_FILES([Makefile |
0 | # Makefile.in generated by automake 1.13.4 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
13 | 13 | |
14 | 14 | @SET_MAKE@ |
15 | 15 | VPATH = @srcdir@ |
16 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
16 | am__is_gnu_make = { \ | |
17 | if test -z '$(MAKELEVEL)'; then \ | |
18 | false; \ | |
19 | elif test -n '$(MAKE_HOST)'; then \ | |
20 | true; \ | |
21 | elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ | |
22 | true; \ | |
23 | else \ | |
24 | false; \ | |
25 | fi; \ | |
26 | } | |
17 | 27 | am__make_running_with_option = \ |
18 | 28 | case $${target_option-} in \ |
19 | 29 | ?) ;; \ |
77 | 87 | build_triplet = @build@ |
78 | 88 | host_triplet = @host@ |
79 | 89 | subdir = doc |
80 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
81 | $(dist_man1_MANS) | |
82 | 90 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
83 | 91 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
84 | 92 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
85 | 93 | $(ACLOCAL_M4) |
94 | DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) | |
86 | 95 | mkinstalldirs = $(install_sh) -d |
87 | 96 | CONFIG_HEADER = $(top_builddir)/config.h |
88 | 97 | CONFIG_CLEAN_FILES = |
138 | 147 | NROFF = nroff |
139 | 148 | MANS = $(dist_man1_MANS) |
140 | 149 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) |
150 | am__DIST_COMMON = $(dist_man1_MANS) $(srcdir)/Makefile.in | |
141 | 151 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
142 | 152 | ACLOCAL = @ACLOCAL@ |
143 | 153 | AMTAR = @AMTAR@ |
252 | 262 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ |
253 | 263 | $(am__cd) $(top_srcdir) && \ |
254 | 264 | $(AUTOMAKE) --gnu doc/Makefile |
255 | .PRECIOUS: Makefile | |
256 | 265 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
257 | 266 | @case '$?' in \ |
258 | 267 | *config.status*) \ |
467 | 476 | mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \ |
468 | 477 | uninstall-am uninstall-man uninstall-man1 |
469 | 478 | |
479 | .PRECIOUS: Makefile | |
480 | ||
470 | 481 | |
471 | 482 | unrtf.1: unrtf.1.in Makefile |
472 | 483 | sed -e 's!@DATADIR@!${datarootdir}/unrtf!g' < ${srcdir}/unrtf.1.in > unrtf.1 |
0 | # Makefile.in generated by automake 1.13.4 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
14 | 14 | @SET_MAKE@ |
15 | 15 | |
16 | 16 | VPATH = @srcdir@ |
17 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
17 | am__is_gnu_make = { \ | |
18 | if test -z '$(MAKELEVEL)'; then \ | |
19 | false; \ | |
20 | elif test -n '$(MAKE_HOST)'; then \ | |
21 | true; \ | |
22 | elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ | |
23 | true; \ | |
24 | else \ | |
25 | false; \ | |
26 | fi; \ | |
27 | } | |
18 | 28 | am__make_running_with_option = \ |
19 | 29 | case $${target_option-} in \ |
20 | 30 | ?) ;; \ |
78 | 88 | build_triplet = @build@ |
79 | 89 | host_triplet = @host@ |
80 | 90 | subdir = outputs |
81 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
82 | $(dist_outputs_DATA) | |
83 | 91 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
84 | 92 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
85 | 93 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
86 | 94 | $(ACLOCAL_M4) |
95 | DIST_COMMON = $(srcdir)/Makefile.am $(dist_outputs_DATA) \ | |
96 | $(am__DIST_COMMON) | |
87 | 97 | mkinstalldirs = $(install_sh) -d |
88 | 98 | CONFIG_HEADER = $(top_builddir)/config.h |
89 | 99 | CONFIG_CLEAN_FILES = |
137 | 147 | am__installdirs = "$(DESTDIR)$(outputsdir)" |
138 | 148 | DATA = $(dist_outputs_DATA) |
139 | 149 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) |
150 | am__DIST_COMMON = $(srcdir)/Makefile.in | |
140 | 151 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
141 | 152 | ACLOCAL = @ACLOCAL@ |
142 | 153 | AMTAR = @AMTAR@ |
259 | 270 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu outputs/Makefile'; \ |
260 | 271 | $(am__cd) $(top_srcdir) && \ |
261 | 272 | $(AUTOMAKE) --gnu outputs/Makefile |
262 | .PRECIOUS: Makefile | |
263 | 273 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
264 | 274 | @case '$?' in \ |
265 | 275 | *config.status*) \ |
452 | 462 | mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \ |
453 | 463 | uninstall-am uninstall-dist_outputsDATA |
454 | 464 | |
465 | .PRECIOUS: Makefile | |
466 | ||
455 | 467 | |
456 | 468 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
457 | 469 | # Otherwise a system limit (for SysV at least) may be exceeded. |
177 | 177 | <s> |
178 | 178 | dbl_strikethru_end |
179 | 179 | </s> |
180 | all_caps_begin | |
181 | <span style="text-transform: uppercase"> | |
182 | all_caps_end | |
183 | </span> | |
184 | small_caps_begin | |
185 | <span style="font-variant: small-caps"> | |
186 | small_caps_end | |
187 | </span> | |
180 | 188 | emboss_begin |
181 | 189 | <span style="background:gray"><font color="black"> |
182 | 190 | emboss_end |
758 | 766 | ♥ |
759 | 767 | 9839 |
760 | 768 | ♦ |
769 | # non unicode characters in the symbol font | |
770 | # see http://www.fileformat.info/info/unicode/font/symbol/nonunicode.htm | |
771 | # 61472 space? | |
772 | 61473 | |
773 | ! | |
774 | 61474 | |
775 | ∀ | |
776 | 61475 | |
777 | \# | |
778 | 61476 | |
779 | ∃ | |
780 | 61475 | |
781 | % | |
782 | 61478 | |
783 | & | |
784 | 61479 | |
785 | ∋ | |
786 | 61480 | |
787 | ( | |
788 | 61481 | |
789 | ) | |
790 | 61482 | |
791 | * | |
792 | 61483 | |
793 | + | |
794 | 61484 | |
795 | , | |
796 | 61485 | |
797 | — | |
798 | 61486 | |
799 | . | |
800 | 61487 | |
801 | / | |
802 | 61488 | |
803 | 0 | |
804 | 61489 | |
805 | 1 | |
806 | 61490 | |
807 | 2 | |
808 | 61491 | |
809 | 3 | |
810 | 61492 | |
811 | 4 | |
812 | 61493 | |
813 | 5 | |
814 | 61494 | |
815 | 6 | |
816 | 61495 | |
817 | 7 | |
818 | 61496 | |
819 | 8 | |
820 | 61497 | |
821 | 9 | |
822 | 61498 | |
823 | : | |
824 | 61499 | |
825 | ; | |
826 | 61500 | |
827 | < | |
828 | 61501 | |
829 | = | |
830 | 61502 | |
831 | > | |
832 | 61503 | |
833 | ? | |
834 | 61504 | |
835 | ≅ | |
836 | 61505 | |
837 | Α | |
838 | 61506 | |
839 | Β | |
840 | 61507 | |
841 | Χ | |
842 | 61508 | |
843 | Δ | |
844 | 61509 | |
845 | Ε | |
846 | 61510 | |
847 | Φ | |
848 | 61511 | |
849 | Γ | |
850 | 61512 | |
851 | Η | |
852 | 61513 | |
853 | Ι | |
854 | 61514 | |
855 | ϕ | |
856 | 61515 | |
857 | Κ | |
858 | 61516 | |
859 | Λ | |
860 | 61517 | |
861 | Μ | |
862 | 61518 | |
863 | Ν | |
864 | 61519 | |
865 | Ο | |
866 | 61520 | |
867 | Π | |
868 | 61521 | |
869 | Θ | |
870 | 61522 | |
871 | Ρ | |
872 | 61523 | |
873 | Σ | |
874 | 61524 | |
875 | Τ | |
876 | 61525 | |
877 | Υ | |
878 | 61526 | |
879 | ς | |
880 | 61527 | |
881 | Ω | |
882 | 61528 | |
883 | Ξ | |
884 | 61529 | |
885 | Ψ | |
886 | 61530 | |
887 | Ζ | |
888 | 61531 | |
889 | [ | |
890 | 61532 | |
891 | ∴ | |
892 | 61533 | |
893 | ] | |
894 | 61534 | |
895 | ⊥ | |
896 | 61535 | |
897 | _ | |
898 | 61536 | |
899 | ‾ | |
900 | 61537 | |
901 | α | |
902 | 61538 | |
903 | β | |
904 | 61539 | |
905 | χ | |
906 | 61540 | |
907 | δ | |
908 | 61541 | |
909 | ε | |
910 | 61542 | |
911 | φ | |
912 | 61543 | |
913 | γ | |
914 | 61544 | |
915 | η | |
916 | 61545 | |
917 | τ | |
918 | 61546 | |
919 | ϕ | |
920 | 61547 | |
921 | κ | |
922 | 61548 | |
923 | λ | |
924 | 61549 | |
925 | μ | |
926 | 61550 | |
927 | ν | |
928 | 61551 | |
929 | ο | |
930 | 61552 | |
931 | π | |
932 | 61553 | |
933 | θ | |
934 | 61554 | |
935 | ρ | |
936 | 61555 | |
937 | σ | |
938 | 61556 | |
939 | τ | |
940 | 61557 | |
941 | υ | |
942 | 61558 | |
943 | ϖ | |
944 | 61559 | |
945 | ω | |
946 | 61560 | |
947 | ξ | |
948 | 61561 | |
949 | ψ | |
950 | 61562 | |
951 | ζ | |
952 | 61563 | |
953 | { | |
954 | 61564 | |
955 | | | |
956 | 61565 | |
957 | } | |
958 | 61566 | |
959 | ∼ | |
960 | 61600 | |
961 | € | |
962 | 61601 | |
963 | ϒ | |
964 | 61602 | |
965 | ′ | |
966 | 61603 | |
967 | ≤ | |
968 | 61604 | |
969 | ⁄ | |
970 | 61605 | |
971 | ∞ | |
972 | 61606 | |
973 | ƒ | |
974 | 61607 | |
975 | ♣ | |
976 | 61608 | |
977 | ♦ | |
978 | 61609 | |
979 | ♥ | |
980 | 61610 | |
981 | ♠ | |
982 | 61611 | |
983 | ↔ | |
984 | 61612 | |
985 | ← | |
986 | 61613 | |
987 | ↑ | |
988 | 61614 | |
989 | → | |
990 | 61615 | |
991 | ↓ | |
992 | 61616 | |
993 | ° | |
994 | 61617 | |
995 | ± | |
996 | 61618 | |
997 | ″ | |
998 | 61619 | |
999 | ≥ | |
1000 | 61620 | |
1001 | × | |
1002 | 61621 | |
1003 | ∝ | |
1004 | 61622 | |
1005 | ∂ | |
1006 | 61623 | |
1007 | • | |
1008 | 61624 | |
1009 | ÷ | |
1010 | 61625 | |
1011 | ≠ | |
1012 | 61626 | |
1013 | ≡ | |
1014 | 61627 | |
1015 | ≈ | |
1016 | 61628 | |
1017 | … | |
1018 | # vertical bar | |
1019 | 61629 | |
1020 | | | |
1021 | 61630 | |
1022 | — | |
1023 | 61631 | |
1024 | ↵ | |
1025 | 61632 | |
1026 | ℵ | |
1027 | 61633 | |
1028 | ℑ | |
1029 | 61634 | |
1030 | ℜ | |
1031 | 61635 | |
1032 | ℘ | |
1033 | 61636 | |
1034 | ⊗ | |
1035 | 61637 | |
1036 | ⊕ | |
1037 | 61638 | |
1038 | ∅ | |
1039 | 61639 | |
1040 | ∩ | |
1041 | 61640 | |
1042 | ∪ | |
1043 | 61641 | |
1044 | ⊃ | |
1045 | 61642 | |
1046 | ⊇ | |
1047 | 61643 | |
1048 | ⊄ | |
1049 | 61644 | |
1050 | ⊂ | |
1051 | 61645 | |
1052 | ⊆ | |
1053 | 61646 | |
1054 | ∈ | |
1055 | 61647 | |
1056 | ∉ | |
1057 | 61648 | |
1058 | ∠ | |
1059 | 61649 | |
1060 | ∇ | |
1061 | 61650 | |
1062 | ® | |
1063 | 61651 | |
1064 | © | |
1065 | 61652 | |
1066 | ™ | |
1067 | 61653 | |
1068 | ∏ | |
1069 | 61654 | |
1070 | √ | |
1071 | 61655 | |
1072 | · | |
1073 | 61656 | |
1074 | ¬ | |
1075 | 61657 | |
1076 | ∧ | |
1077 | 61658 | |
1078 | ∨ | |
1079 | 61659 | |
1080 | ⇔ | |
1081 | 61660 | |
1082 | ⇐ | |
1083 | 61661 | |
1084 | ⇑ | |
1085 | 61662 | |
1086 | ⇒ | |
1087 | 61663 | |
1088 | ⇓ | |
1089 | 61664 | |
1090 | ◊ | |
1091 | 61665 | |
1092 | ⟨ | |
1093 | 61666 | |
1094 | ® | |
1095 | 61667 | |
1096 | © | |
1097 | 61668 | |
1098 | ™ | |
1099 | 61669 | |
1100 | ∑ | |
1101 | #61670 | |
1102 | # large right parenthesis ceiling | |
1103 | #61671 | |
1104 | # large parenthesis middle | |
1105 | #61672 | |
1106 | # large left parenthesis floor | |
1107 | 61673 | |
1108 | # large left square bracket ceiling | |
1109 | ⌈ | |
1110 | #61674 | |
1111 | # large left square bracket middle | |
1112 | 61675 | |
1113 | # large left square bracket floor | |
1114 | ⌊ | |
1115 | #61676 | |
1116 | # large left bracket ceiling | |
1117 | # 61677 | |
1118 | # large left bracket middle | |
1119 | #61678 | |
1120 | # large left bracket floor | |
1121 | #61679 | |
1122 | # large vertical bar | |
1123 | #61680 | |
1124 | # appears blank | |
1125 | 61681 | |
1126 | ⟩ | |
1127 | 61682 | |
1128 | # integral | |
1129 | ∫ | |
1130 | #61683 | |
1131 | # large integral ceiling | |
1132 | #61684 | |
1133 | # large integral middle | |
1134 | #61685 | |
1135 | # large integral floor | |
1136 | #61686 | |
1137 | # large right parenthesis ceiling | |
1138 | #61687 | |
1139 | # large right parenthesis middle | |
1140 | #61688 | |
1141 | # large right parenthesis floor | |
1142 | 61689 | |
1143 | # large right square bracket ceiling | |
1144 | ⌉ | |
1145 | #61690 | |
1146 | # large right square bracket middle | |
1147 | 61691 | |
1148 | # large right square bracket floor | |
1149 | ⌋ | |
1150 | #61692 | |
1151 | # large right bracket middle | |
1152 | #61694 | |
1153 | # large right bracket floot |
0 | # Makefile.in generated by automake 1.13.4 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
16 | 16 | # this simple Makefile.am just adds the patches to the distributed |
17 | 17 | # tarball in the release. |
18 | 18 | VPATH = @srcdir@ |
19 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
19 | am__is_gnu_make = { \ | |
20 | if test -z '$(MAKELEVEL)'; then \ | |
21 | false; \ | |
22 | elif test -n '$(MAKE_HOST)'; then \ | |
23 | true; \ | |
24 | elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ | |
25 | true; \ | |
26 | else \ | |
27 | false; \ | |
28 | fi; \ | |
29 | } | |
20 | 30 | am__make_running_with_option = \ |
21 | 31 | case $${target_option-} in \ |
22 | 32 | ?) ;; \ |
80 | 90 | build_triplet = @build@ |
81 | 91 | host_triplet = @host@ |
82 | 92 | subdir = patches |
83 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am | |
84 | 93 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
85 | 94 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
86 | 95 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
87 | 96 | $(ACLOCAL_M4) |
97 | DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) | |
88 | 98 | mkinstalldirs = $(install_sh) -d |
89 | 99 | CONFIG_HEADER = $(top_builddir)/config.h |
90 | 100 | CONFIG_CLEAN_FILES = |
109 | 119 | *) (install-info --version) >/dev/null 2>&1;; \ |
110 | 120 | esac |
111 | 121 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) |
122 | am__DIST_COMMON = $(srcdir)/Makefile.in | |
112 | 123 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
113 | 124 | ACLOCAL = @ACLOCAL@ |
114 | 125 | AMTAR = @AMTAR@ |
222 | 233 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu patches/Makefile'; \ |
223 | 234 | $(am__cd) $(top_srcdir) && \ |
224 | 235 | $(AUTOMAKE) --gnu patches/Makefile |
225 | .PRECIOUS: Makefile | |
226 | 236 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
227 | 237 | @case '$?' in \ |
228 | 238 | *config.status*) \ |
390 | 400 | maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ |
391 | 401 | pdf-am ps ps-am tags-am uninstall uninstall-am |
392 | 402 | |
403 | .PRECIOUS: Makefile | |
404 | ||
393 | 405 | |
394 | 406 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
395 | 407 | # Otherwise a system limit (for SysV at least) may be exceeded. |
0 | # Makefile.in generated by automake 1.13.4 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
17 | 17 | # It all works automagically. |
18 | 18 | |
19 | 19 | VPATH = @srcdir@ |
20 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
20 | am__is_gnu_make = { \ | |
21 | if test -z '$(MAKELEVEL)'; then \ | |
22 | false; \ | |
23 | elif test -n '$(MAKE_HOST)'; then \ | |
24 | true; \ | |
25 | elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ | |
26 | true; \ | |
27 | else \ | |
28 | false; \ | |
29 | fi; \ | |
30 | } | |
21 | 31 | am__make_running_with_option = \ |
22 | 32 | case $${target_option-} in \ |
23 | 33 | ?) ;; \ |
82 | 92 | host_triplet = @host@ |
83 | 93 | bin_PROGRAMS = unrtf$(EXEEXT) |
84 | 94 | subdir = src |
85 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
86 | $(top_srcdir)/config/depcomp | |
87 | 95 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
88 | 96 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
89 | 97 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
90 | 98 | $(ACLOCAL_M4) |
99 | DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) | |
91 | 100 | mkinstalldirs = $(install_sh) -d |
92 | 101 | CONFIG_HEADER = $(top_builddir)/config.h |
93 | 102 | CONFIG_CLEAN_FILES = |
155 | 164 | done | $(am__uniquify_input)` |
156 | 165 | ETAGS = etags |
157 | 166 | CTAGS = ctags |
167 | am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp | |
158 | 168 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
159 | 169 | ACLOCAL = @ACLOCAL@ |
160 | 170 | AMTAR = @AMTAR@ |
285 | 295 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ |
286 | 296 | $(am__cd) $(top_srcdir) && \ |
287 | 297 | $(AUTOMAKE) --gnu src/Makefile |
288 | .PRECIOUS: Makefile | |
289 | 298 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
290 | 299 | @case '$?' in \ |
291 | 300 | *config.status*) \ |
376 | 385 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
377 | 386 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
378 | 387 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
379 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< | |
388 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< | |
380 | 389 | |
381 | 390 | .c.obj: |
382 | 391 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` |
383 | 392 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
384 | 393 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
385 | 394 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
386 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` | |
395 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` | |
387 | 396 | |
388 | 397 | ID: $(am__tagged_files) |
389 | 398 | $(am__define_uniq_tagged_files); mkid -fID $$unique |
589 | 598 | ps ps-am tags tags-am uninstall uninstall-am \ |
590 | 599 | uninstall-binPROGRAMS |
591 | 600 | |
601 | .PRECIOUS: Makefile | |
602 | ||
592 | 603 | |
593 | 604 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
594 | 605 | # Otherwise a system limit (for SysV at least) may be exceeded. |
74 | 74 | extern int simulate_smallcaps; |
75 | 75 | |
76 | 76 | |
77 | #define MAX_ATTRS (10000) | |
77 | #define MAX_ATTRS 100 | |
78 | 78 | |
79 | 79 | |
80 | 80 | /* For each RTF text block (the text within braces) we must keep |
84 | 84 | * from parent blocks, all new AttrStacks do the same from |
85 | 85 | * their parent AttrStack. |
86 | 86 | */ |
87 | typedef struct _stack { | |
87 | typedef struct _stack | |
88 | { | |
88 | 89 | unsigned char attr_stack[MAX_ATTRS]; |
89 | char *attr_stack_params[MAX_ATTRS]; | |
90 | char *attr_stack_params[MAX_ATTRS]; | |
90 | 91 | int tos; |
91 | struct _stack *next; | |
92 | struct _stack *prev; | |
92 | 93 | } AttrStack; |
93 | 94 | |
94 | 95 | /*@null@*/ static AttrStack *stack_of_stacks = NULL; |
95 | 96 | /*@null@*/ static AttrStack *stack_of_stacks_top = NULL; |
96 | 97 | |
97 | ||
98 | static void attr_express_begin(int attr, char *param); | |
99 | static void attr_express_end(int attr, char *param); | |
100 | ||
101 | ||
102 | /* Iterate from top of given stack looking for findattr */ | |
103 | static int attr_find(AttrStack *stack, int findattr) | |
104 | { | |
105 | int i; | |
106 | for (i = stack->tos; i >= 0; i--) | |
107 | if (stack->attr_stack[i] == findattr) | |
108 | { | |
109 | return i; | |
110 | } | |
111 | return -1; | |
112 | } | |
113 | ||
114 | /* Iterate all stacks looking for most recent value for attr */ | |
115 | static int attrstack_find_attr(int findattr, char **paramp) | |
116 | { | |
117 | AttrStack *stack = stack_of_stacks_top; | |
118 | ||
119 | while (stack) | |
120 | { | |
121 | int index = attr_find(stack, findattr); | |
122 | if (index >= 0) | |
123 | { | |
124 | *paramp = stack->attr_stack_params[index]; | |
125 | return TRUE; | |
126 | } | |
127 | stack = stack->prev; | |
128 | } | |
129 | return FALSE; | |
130 | } | |
131 | ||
132 | /* Remove attribute at the given index, unexpressing and reexpressing | |
133 | the ones above in appropriate order. */ | |
134 | static void attr_pull_out(AttrStack *stack, int index) | |
135 | { | |
136 | int j; | |
137 | /* Unexpress all newer attributes, and the one we'll remove */ | |
138 | for (j = stack->tos; j >= index; j--) | |
139 | { | |
140 | attr_express_end(stack->attr_stack[j], stack->attr_stack_params[j]); | |
141 | } | |
142 | ||
143 | /* Delete target attribute and shift the stack down */ | |
144 | if (stack->attr_stack_params[index]) | |
145 | my_free(stack->attr_stack_params[index]); | |
146 | for (j = index; j < stack->tos; j++) | |
147 | { | |
148 | stack->attr_stack[j] = stack->attr_stack[j + 1]; | |
149 | stack->attr_stack_params[j] = stack->attr_stack_params[j + 1]; | |
150 | } | |
151 | stack->tos--; | |
152 | ||
153 | /* Re-express unexpressed attributes */ | |
154 | for (j = index; j <= stack->tos; j++) | |
155 | { | |
156 | attr_express_begin(stack->attr_stack[j], stack->attr_stack_params[j]); | |
157 | } | |
158 | return; | |
159 | } | |
160 | ||
161 | /* Unexpress and remove top attr. Internal version, no checking of args */ | |
162 | static void attr_pop_internal(AttrStack *stack, int attr) | |
163 | { | |
164 | if (stack->tos >= 0) | |
165 | { | |
166 | char *param = stack->attr_stack_params[stack->tos]; | |
167 | ||
168 | attr_express_end(attr, param); | |
169 | ||
170 | if (param) | |
171 | { | |
172 | my_free(param); | |
173 | } | |
174 | ||
175 | stack->tos--; | |
176 | } | |
177 | } | |
98 | 178 | |
99 | 179 | |
100 | 180 | /*======================================================================== |
104 | 184 | * Returns: None. |
105 | 185 | *=======================================================================*/ |
106 | 186 | |
107 | void | |
108 | attr_express_begin (int attr, char* param) { | |
109 | switch(attr) | |
110 | { | |
111 | case ATTR_BOLD: | |
112 | if (safe_printf(0, op->bold_begin)) fprintf(stderr, TOO_MANY_ARGS, "bold_begin");; | |
113 | break; | |
114 | case ATTR_ITALIC: | |
115 | if (safe_printf(0, op->italic_begin)) fprintf(stderr, TOO_MANY_ARGS, "italic_begin");; | |
187 | static void attr_express_begin(int attr, char *param) | |
188 | { | |
189 | switch (attr) | |
190 | { | |
191 | case ATTR_BOLD: | |
192 | if (safe_printf(0, op->bold_begin)) | |
193 | { | |
194 | fprintf(stderr, TOO_MANY_ARGS, "bold_begin"); | |
195 | }; | |
196 | break; | |
197 | case ATTR_ITALIC: | |
198 | if (safe_printf(0, op->italic_begin)) | |
199 | { | |
200 | fprintf(stderr, TOO_MANY_ARGS, "italic_begin"); | |
201 | }; | |
116 | 202 | break; |
117 | 203 | |
118 | 204 | /* Various underlines, they all resolve to HTML's <u> */ |
119 | 205 | case ATTR_THICK_UL: |
120 | 206 | case ATTR_WAVE_UL: |
121 | 207 | case ATTR_DASH_UL: |
122 | case ATTR_DOT_UL: | |
208 | case ATTR_DOT_UL: | |
123 | 209 | case ATTR_DOT_DASH_UL: |
124 | 210 | case ATTR_2DOT_DASH_UL: |
125 | case ATTR_WORD_UL: | |
126 | case ATTR_UNDERLINE: | |
127 | if (safe_printf(0, op->underline_begin)) fprintf(stderr, TOO_MANY_ARGS, "underline_begin");; | |
128 | break; | |
129 | ||
130 | case ATTR_DOUBLE_UL: | |
131 | if (safe_printf(0, op->dbl_underline_begin)) fprintf(stderr, TOO_MANY_ARGS, "dbl_underline_begin");; | |
132 | break; | |
133 | ||
134 | case ATTR_FONTSIZE: | |
135 | op_begin_std_fontsize (op, atoi (param)); | |
136 | break; | |
137 | ||
138 | case ATTR_FONTFACE: | |
139 | if (safe_printf(1, op->font_begin,param)) fprintf(stderr, TOO_MANY_ARGS, "font_begin");; | |
140 | break; | |
141 | ||
142 | case ATTR_FOREGROUND: | |
143 | if (safe_printf(1, op->foreground_begin, param)) fprintf(stderr, TOO_MANY_ARGS, "foreground_begin");; | |
144 | break; | |
145 | ||
146 | case ATTR_BACKGROUND: | |
211 | case ATTR_WORD_UL: | |
212 | case ATTR_UNDERLINE: | |
213 | if (safe_printf(0, op->underline_begin)) | |
214 | { | |
215 | fprintf(stderr, TOO_MANY_ARGS, "underline_begin"); | |
216 | }; | |
217 | break; | |
218 | ||
219 | case ATTR_DOUBLE_UL: | |
220 | if (safe_printf(0, op->dbl_underline_begin)) | |
221 | { | |
222 | fprintf(stderr, TOO_MANY_ARGS, "dbl_underline_begin"); | |
223 | }; | |
224 | break; | |
225 | ||
226 | case ATTR_FONTSIZE: | |
227 | op_begin_std_fontsize(op, atoi(param)); | |
228 | break; | |
229 | ||
230 | case ATTR_FONTFACE: | |
231 | if (safe_printf(1, op->font_begin, param)) | |
232 | { | |
233 | fprintf(stderr, TOO_MANY_ARGS, "font_begin"); | |
234 | }; | |
235 | break; | |
236 | ||
237 | case ATTR_FOREGROUND: | |
238 | if (safe_printf(1, op->foreground_begin, param)) | |
239 | { | |
240 | fprintf(stderr, TOO_MANY_ARGS, "foreground_begin"); | |
241 | }; | |
242 | break; | |
243 | ||
244 | case ATTR_BACKGROUND: | |
147 | 245 | if (!simple_mode) |
148 | if (safe_printf(1, op->background_begin,param)) fprintf(stderr, TOO_MANY_ARGS, "background_begin");; | |
149 | break; | |
150 | ||
151 | case ATTR_SUPER: | |
152 | if (safe_printf(0, op->superscript_begin)) fprintf(stderr, TOO_MANY_ARGS, "superscript_begin");; | |
153 | break; | |
154 | case ATTR_SUB: | |
155 | if (safe_printf(0, op->subscript_begin)) fprintf(stderr, TOO_MANY_ARGS, "subscript_begin");; | |
156 | break; | |
157 | ||
158 | case ATTR_STRIKE: | |
159 | if (safe_printf(0, op->strikethru_begin)) fprintf(stderr, TOO_MANY_ARGS, "strikethru_begin");; | |
160 | break; | |
161 | ||
162 | case ATTR_DBL_STRIKE: | |
163 | if (safe_printf(0, op->dbl_strikethru_begin)) fprintf(stderr, TOO_MANY_ARGS, "dbl_strikethru_begin");; | |
164 | break; | |
165 | ||
166 | case ATTR_EXPAND: | |
167 | if (safe_printf(1, op->expand_begin, param)) fprintf(stderr, TOO_MANY_ARGS, "expand_begin");; | |
168 | break; | |
169 | ||
170 | case ATTR_OUTLINE: | |
171 | if (safe_printf(0, op->outline_begin)) fprintf(stderr, TOO_MANY_ARGS, "outline_begin");; | |
172 | break; | |
173 | case ATTR_SHADOW: | |
174 | if (safe_printf(0, op->shadow_begin)) fprintf(stderr, TOO_MANY_ARGS, "shadow_begin");; | |
175 | break; | |
176 | case ATTR_EMBOSS: | |
177 | if (safe_printf(0, op->emboss_begin)) fprintf(stderr, TOO_MANY_ARGS, "emboss_begin");; | |
178 | break; | |
179 | case ATTR_ENGRAVE: | |
180 | if (safe_printf(0, op->engrave_begin)) fprintf(stderr, TOO_MANY_ARGS, "engrave_begin");; | |
246 | if (safe_printf(1, op->background_begin, param)) | |
247 | { | |
248 | fprintf(stderr, TOO_MANY_ARGS, "background_begin"); | |
249 | }; | |
250 | break; | |
251 | ||
252 | case ATTR_SUPER: | |
253 | if (safe_printf(0, op->superscript_begin)) | |
254 | { | |
255 | fprintf(stderr, TOO_MANY_ARGS, "superscript_begin"); | |
256 | }; | |
257 | break; | |
258 | case ATTR_SUB: | |
259 | if (safe_printf(0, op->subscript_begin)) | |
260 | { | |
261 | fprintf(stderr, TOO_MANY_ARGS, "subscript_begin"); | |
262 | }; | |
263 | break; | |
264 | ||
265 | case ATTR_STRIKE: | |
266 | if (safe_printf(0, op->strikethru_begin)) | |
267 | { | |
268 | fprintf(stderr, TOO_MANY_ARGS, "strikethru_begin"); | |
269 | }; | |
270 | break; | |
271 | ||
272 | case ATTR_DBL_STRIKE: | |
273 | if (safe_printf(0, op->dbl_strikethru_begin)) | |
274 | { | |
275 | fprintf(stderr, TOO_MANY_ARGS, "dbl_strikethru_begin"); | |
276 | }; | |
277 | break; | |
278 | ||
279 | case ATTR_EXPAND: | |
280 | if (safe_printf(1, op->expand_begin, param)) | |
281 | { | |
282 | fprintf(stderr, TOO_MANY_ARGS, "expand_begin"); | |
283 | }; | |
284 | break; | |
285 | ||
286 | case ATTR_OUTLINE: | |
287 | if (safe_printf(0, op->outline_begin)) | |
288 | { | |
289 | fprintf(stderr, TOO_MANY_ARGS, "outline_begin"); | |
290 | }; | |
291 | break; | |
292 | case ATTR_SHADOW: | |
293 | if (safe_printf(0, op->shadow_begin)) | |
294 | { | |
295 | fprintf(stderr, TOO_MANY_ARGS, "shadow_begin"); | |
296 | }; | |
297 | break; | |
298 | case ATTR_EMBOSS: | |
299 | if (safe_printf(0, op->emboss_begin)) | |
300 | { | |
301 | fprintf(stderr, TOO_MANY_ARGS, "emboss_begin"); | |
302 | }; | |
303 | break; | |
304 | case ATTR_ENGRAVE: | |
305 | if (safe_printf(0, op->engrave_begin)) | |
306 | { | |
307 | fprintf(stderr, TOO_MANY_ARGS, "engrave_begin"); | |
308 | }; | |
181 | 309 | break; |
182 | 310 | |
183 | 311 | case ATTR_CAPS: |
184 | 312 | if (op->simulate_all_caps) |
313 | { | |
185 | 314 | simulate_allcaps = TRUE; |
186 | break; | |
187 | ||
188 | case ATTR_SMALLCAPS: | |
315 | } | |
316 | else | |
317 | { | |
318 | if (op->all_caps_begin) | |
319 | if (safe_printf(0, op->all_caps_begin)) | |
320 | { | |
321 | fprintf(stderr, TOO_MANY_ARGS, "all_caps_begin"); | |
322 | } | |
323 | } | |
324 | break; | |
325 | ||
326 | case ATTR_SMALLCAPS: | |
189 | 327 | if (op->simulate_small_caps) |
328 | { | |
190 | 329 | simulate_smallcaps = TRUE; |
191 | else { | |
330 | } | |
331 | else | |
332 | { | |
192 | 333 | if (op->small_caps_begin) |
193 | if (safe_printf(0, op->small_caps_begin)) fprintf(stderr, TOO_MANY_ARGS, "small_caps_begin");; | |
334 | if (safe_printf(0, op->small_caps_begin)) | |
335 | { | |
336 | fprintf(stderr, TOO_MANY_ARGS, "small_caps_begin"); | |
337 | }; | |
194 | 338 | } |
195 | 339 | break; |
196 | 340 | } |
204 | 348 | * Returns: None. |
205 | 349 | *=======================================================================*/ |
206 | 350 | |
207 | void | |
208 | attr_express_end (int attr, char *param) | |
209 | { | |
210 | switch(attr) | |
211 | { | |
212 | case ATTR_BOLD: | |
213 | if (safe_printf(0, op->bold_end)) fprintf(stderr, TOO_MANY_ARGS, "bold_end");; | |
214 | break; | |
215 | case ATTR_ITALIC: | |
216 | if (safe_printf(0, op->italic_end)) fprintf(stderr, TOO_MANY_ARGS, "italic_end");; | |
351 | static void attr_express_end(int attr, char *param) | |
352 | { | |
353 | switch (attr) | |
354 | { | |
355 | case ATTR_BOLD: | |
356 | if (safe_printf(0, op->bold_end)) | |
357 | { | |
358 | fprintf(stderr, TOO_MANY_ARGS, "bold_end"); | |
359 | }; | |
360 | break; | |
361 | case ATTR_ITALIC: | |
362 | if (safe_printf(0, op->italic_end)) | |
363 | { | |
364 | fprintf(stderr, TOO_MANY_ARGS, "italic_end"); | |
365 | }; | |
217 | 366 | break; |
218 | 367 | |
219 | 368 | /* Various underlines, they all resolve to HTML's </u> */ |
220 | 369 | case ATTR_THICK_UL: |
221 | 370 | case ATTR_WAVE_UL: |
222 | 371 | case ATTR_DASH_UL: |
223 | case ATTR_DOT_UL: | |
372 | case ATTR_DOT_UL: | |
224 | 373 | case ATTR_DOT_DASH_UL: |
225 | case ATTR_2DOT_DASH_UL: | |
226 | case ATTR_WORD_UL: | |
227 | case ATTR_UNDERLINE: | |
228 | if (safe_printf(0, op->underline_end)) fprintf(stderr, TOO_MANY_ARGS, "underline_end");; | |
229 | break; | |
230 | ||
231 | case ATTR_DOUBLE_UL: | |
232 | if (safe_printf(0, op->dbl_underline_end)) fprintf(stderr, TOO_MANY_ARGS, "dbl_underline_end");; | |
233 | break; | |
234 | ||
235 | case ATTR_FONTSIZE: | |
236 | op_end_std_fontsize (op, atoi (param)); | |
237 | break; | |
238 | ||
239 | case ATTR_FONTFACE: | |
240 | if (safe_printf(0, op->font_end)) fprintf(stderr, TOO_MANY_ARGS, "font_end");; | |
241 | break; | |
242 | ||
243 | case ATTR_FOREGROUND: | |
244 | if (safe_printf(0, op->foreground_end)) fprintf(stderr, TOO_MANY_ARGS, "foreground_end");; | |
245 | break; | |
246 | case ATTR_BACKGROUND: | |
374 | case ATTR_2DOT_DASH_UL: | |
375 | case ATTR_WORD_UL: | |
376 | case ATTR_UNDERLINE: | |
377 | if (safe_printf(0, op->underline_end)) | |
378 | { | |
379 | fprintf(stderr, TOO_MANY_ARGS, "underline_end"); | |
380 | }; | |
381 | break; | |
382 | ||
383 | case ATTR_DOUBLE_UL: | |
384 | if (safe_printf(0, op->dbl_underline_end)) | |
385 | { | |
386 | fprintf(stderr, TOO_MANY_ARGS, "dbl_underline_end"); | |
387 | }; | |
388 | break; | |
389 | ||
390 | case ATTR_FONTSIZE: | |
391 | op_end_std_fontsize(op, atoi(param)); | |
392 | break; | |
393 | ||
394 | case ATTR_FONTFACE: | |
395 | if (safe_printf(0, op->font_end)) | |
396 | { | |
397 | fprintf(stderr, TOO_MANY_ARGS, "font_end"); | |
398 | }; | |
399 | break; | |
400 | ||
401 | case ATTR_FOREGROUND: | |
402 | if (safe_printf(0, op->foreground_end)) | |
403 | { | |
404 | fprintf(stderr, TOO_MANY_ARGS, "foreground_end"); | |
405 | }; | |
406 | break; | |
407 | case ATTR_BACKGROUND: | |
247 | 408 | if (!simple_mode) |
248 | if (safe_printf(0, op->background_end)) fprintf(stderr, TOO_MANY_ARGS, "background_end");; | |
249 | break; | |
250 | ||
251 | case ATTR_SUPER: | |
252 | if (safe_printf(0, op->superscript_end)) fprintf(stderr, TOO_MANY_ARGS, "superscript_end");; | |
253 | break; | |
254 | case ATTR_SUB: | |
255 | if (safe_printf(0, op->subscript_end)) fprintf(stderr, TOO_MANY_ARGS, "subscript_end");; | |
256 | break; | |
257 | ||
258 | case ATTR_STRIKE: | |
259 | if (safe_printf(0, op->strikethru_end)) fprintf(stderr, TOO_MANY_ARGS, "strikethru_end");; | |
260 | break; | |
261 | ||
262 | case ATTR_DBL_STRIKE: | |
263 | if (safe_printf(0, op->dbl_strikethru_end)) fprintf(stderr, TOO_MANY_ARGS, "dbl_strikethru_end");; | |
264 | break; | |
265 | ||
266 | case ATTR_OUTLINE: | |
267 | if (safe_printf(0, op->outline_end)) fprintf(stderr, TOO_MANY_ARGS, "outline_end");; | |
268 | break; | |
269 | case ATTR_SHADOW: | |
270 | if (safe_printf(0, op->shadow_end)) fprintf(stderr, TOO_MANY_ARGS, "shadow_end");; | |
271 | break; | |
272 | case ATTR_EMBOSS: | |
273 | if (safe_printf(0, op->emboss_end)) fprintf(stderr, TOO_MANY_ARGS, "emboss_end");; | |
274 | break; | |
275 | case ATTR_ENGRAVE: | |
276 | if (safe_printf(0, op->engrave_end)) fprintf(stderr, TOO_MANY_ARGS, "engrave_end");; | |
277 | break; | |
278 | ||
279 | case ATTR_EXPAND: | |
280 | if (safe_printf(0, op->expand_end)) fprintf(stderr, TOO_MANY_ARGS, "expand_end");; | |
409 | if (safe_printf(0, op->background_end)) | |
410 | { | |
411 | fprintf(stderr, TOO_MANY_ARGS, "background_end"); | |
412 | }; | |
413 | break; | |
414 | ||
415 | case ATTR_SUPER: | |
416 | if (safe_printf(0, op->superscript_end)) | |
417 | { | |
418 | fprintf(stderr, TOO_MANY_ARGS, "superscript_end"); | |
419 | }; | |
420 | break; | |
421 | case ATTR_SUB: | |
422 | if (safe_printf(0, op->subscript_end)) | |
423 | { | |
424 | fprintf(stderr, TOO_MANY_ARGS, "subscript_end"); | |
425 | }; | |
426 | break; | |
427 | ||
428 | case ATTR_STRIKE: | |
429 | if (safe_printf(0, op->strikethru_end)) | |
430 | { | |
431 | fprintf(stderr, TOO_MANY_ARGS, "strikethru_end"); | |
432 | }; | |
433 | break; | |
434 | ||
435 | case ATTR_DBL_STRIKE: | |
436 | if (safe_printf(0, op->dbl_strikethru_end)) | |
437 | { | |
438 | fprintf(stderr, TOO_MANY_ARGS, "dbl_strikethru_end"); | |
439 | }; | |
440 | break; | |
441 | ||
442 | case ATTR_OUTLINE: | |
443 | if (safe_printf(0, op->outline_end)) | |
444 | { | |
445 | fprintf(stderr, TOO_MANY_ARGS, "outline_end"); | |
446 | }; | |
447 | break; | |
448 | case ATTR_SHADOW: | |
449 | if (safe_printf(0, op->shadow_end)) | |
450 | { | |
451 | fprintf(stderr, TOO_MANY_ARGS, "shadow_end"); | |
452 | }; | |
453 | break; | |
454 | case ATTR_EMBOSS: | |
455 | if (safe_printf(0, op->emboss_end)) | |
456 | { | |
457 | fprintf(stderr, TOO_MANY_ARGS, "emboss_end"); | |
458 | }; | |
459 | break; | |
460 | case ATTR_ENGRAVE: | |
461 | if (safe_printf(0, op->engrave_end)) | |
462 | { | |
463 | fprintf(stderr, TOO_MANY_ARGS, "engrave_end"); | |
464 | }; | |
465 | break; | |
466 | ||
467 | case ATTR_EXPAND: | |
468 | if (safe_printf(0, op->expand_end)) | |
469 | { | |
470 | fprintf(stderr, TOO_MANY_ARGS, "expand_end"); | |
471 | }; | |
281 | 472 | break; |
282 | 473 | |
283 | 474 | case ATTR_CAPS: |
284 | 475 | if (op->simulate_all_caps) |
476 | { | |
285 | 477 | simulate_allcaps = FALSE; |
286 | break; | |
287 | ||
288 | case ATTR_SMALLCAPS: | |
478 | } | |
479 | else | |
480 | { | |
481 | if (op->all_caps_end) | |
482 | if (safe_printf(0, op->all_caps_end)) | |
483 | { | |
484 | fprintf(stderr, TOO_MANY_ARGS, "all_caps_end"); | |
485 | }; | |
486 | } | |
487 | break; | |
488 | ||
489 | case ATTR_SMALLCAPS: | |
289 | 490 | if (op->simulate_small_caps) |
491 | { | |
290 | 492 | simulate_smallcaps = FALSE; |
291 | else { | |
493 | } | |
494 | else | |
495 | { | |
292 | 496 | if (op->small_caps_end) |
293 | if (safe_printf(0, op->small_caps_end)) fprintf(stderr, TOO_MANY_ARGS, "small_caps_end");; | |
497 | if (safe_printf(0, op->small_caps_end)) | |
498 | { | |
499 | fprintf(stderr, TOO_MANY_ARGS, "small_caps_end"); | |
500 | }; | |
294 | 501 | } |
295 | 502 | break; |
296 | 503 | } |
305 | 512 | * Returns: None. |
306 | 513 | *=======================================================================*/ |
307 | 514 | |
308 | void | |
309 | attr_push(int attr, char* param) | |
515 | void attr_push(int attr, char *param) | |
310 | 516 | { |
311 | 517 | AttrStack *stack = stack_of_stacks_top; |
312 | if (!stack) { | |
518 | int i; | |
519 | char *oldparam; | |
520 | ||
521 | /*fprintf(stderr, "attr_push: [%d] [%s]\n", attr, param);*/ | |
522 | ||
523 | if (!stack) | |
524 | { | |
313 | 525 | warning_handler("No stack to push attribute onto"); |
314 | 526 | return; |
315 | 527 | } |
316 | 528 | |
317 | if (stack->tos >= MAX_ATTRS -1) { | |
529 | /* Remove any current value of the same attr in the top stack */ | |
530 | if ((i = attr_find(stack, attr)) != -1) | |
531 | { | |
532 | attr_pull_out(stack, i); | |
533 | } | |
534 | ||
535 | if (stack->tos >= MAX_ATTRS - 1) | |
536 | { | |
318 | 537 | fprintf(stderr, "Too many attributes!\n"); |
319 | 538 | return; |
320 | 539 | } |
326 | 545 | |
327 | 546 | ++stack->tos; |
328 | 547 | stack->attr_stack[stack->tos] = attr; |
329 | if (param) | |
548 | if (param) | |
549 | { | |
330 | 550 | stack->attr_stack_params[stack->tos] = my_strdup(param); |
551 | } | |
331 | 552 | else |
553 | { | |
332 | 554 | stack->attr_stack_params[stack->tos] = NULL; |
555 | } | |
333 | 556 | |
334 | 557 | attr_express_begin(attr, param); |
335 | 558 | } |
336 | 559 | |
560 | /* Unexpress and remove an attribute which is not the top one */ | |
561 | int attr_find_pop(int findattr) | |
562 | { | |
563 | int i; | |
564 | AttrStack *stack = stack_of_stacks_top; | |
565 | ||
566 | if (!stack) | |
567 | { | |
568 | warning_handler("no stack to pop attributes from"); | |
569 | return FALSE; | |
570 | } | |
571 | ||
572 | /* Check whether findattr is on stack at all; if not, just give up */ | |
573 | if ((i = attr_find(stack, findattr)) < 0) | |
574 | { | |
575 | return FALSE; | |
576 | } | |
577 | attr_pull_out(stack, i); | |
578 | return TRUE; | |
579 | } | |
337 | 580 | |
338 | 581 | /*======================================================================== |
339 | 582 | * Name: attr_get_param |
342 | 585 | * Returns: string. |
343 | 586 | *=======================================================================*/ |
344 | 587 | |
345 | char * | |
346 | attr_get_param(int attr) | |
588 | char * | |
589 | attr_get_param(int attr) | |
347 | 590 | { |
348 | 591 | int i; |
349 | 592 | AttrStack *stack = stack_of_stacks_top; |
350 | if (!stack) { | |
351 | if (attr != ATTR_ENCODING) { | |
593 | if (!stack) | |
594 | { | |
595 | if (attr != ATTR_ENCODING) | |
596 | { | |
352 | 597 | /* |
353 | 598 |