]>
Commit | Line | Data |
---|---|---|
36e75d83 PG |
1 | diff -urN BUILD/abook-0.6.0pre2/abook.1 abook/abook.1 |
2 | --- BUILD/abook-0.6.0pre2/abook.1 2006-09-06 07:26:10.000000000 +0200 | |
3 | +++ abook/abook.1 2013-03-13 15:07:45.000000000 +0100 | |
4 | @@ -27,12 +27,14 @@ | |
5 | \fB\-\-datafile\fP \fI<filename>\fR | |
6 | Use an alternative addressbook file (default is \fI$HOME/.abook/addressbook\fR). | |
7 | .TP | |
8 | -\fB\-\-mutt\-query\fP \fI<string>\fR | |
9 | +\fB\-\-mutt\-query\fP \fI<string>\fR [ \fB\-\-outformat\fP \fI<outputformat>\fR ] | |
10 | Make a query for mutt (search the addressbook for \fI<string>\fR). | |
11 | .br | |
12 | The \fB\-\-datafile\fP option, as documented above, may be used | |
13 | .BI BEFORE | |
14 | this option to search a different addressbook file. | |
15 | +.br | |
16 | +Only a subset of the below \fI<outputformat>\fR are allowed: \fBmutt\fP (default), \fBvcard\fP and \fBcustom\fP | |
17 | .TP | |
18 | \fB\-\-convert\fP [ \fB\-\-informat\fP \fI<inputformat>\fR ] [ \fB\-\-infile\fP \fI<inputfile>\fR ] [ \fB\-\-outformat\fP \fI<outputformat>\fR ] [ \fB\-\-outfile\fP \fI<outputfile>\fR ] | |
19 | Converts \fI<inputfile>\fR in \fI<inputformat>\fR to \fI<outputfile>\fR in \fI<outputformat>\fR | |
20 | @@ -52,6 +54,8 @@ | |
21 | - \fBcsv\fP comma separated values | |
22 | .br | |
23 | - \fBpalmcsv\fP Palm comma separated values | |
24 | +.br | |
25 | +- \fBvcard\fP VCard addressbook | |
26 | ||
27 | .br | |
28 | The following \fIoutputformats\fR are supported: | |
29 | @@ -66,7 +70,7 @@ | |
30 | .br | |
31 | - \fBpine\fP pine addressbook | |
32 | .br | |
33 | -- \fBgcrd\fP GnomeCard (VCard) addressbook | |
34 | +- \fBvcard\fP VCard addressbook | |
35 | .br | |
36 | - \fBcsv\fP comma separated values | |
37 | .br | |
38 | @@ -81,6 +85,17 @@ | |
39 | - \fBwl\fP Wanderlust address book | |
40 | .br | |
41 | - \fBbsdcal\fP BSD calendar | |
42 | +.br | |
43 | +- \fBcustom\fP Custom output format, see below | |
44 | +.TP | |
45 | +\fB\-\-outformatstr\fP \fI<string>\fR | |
46 | +Only used if \fB\-\-mutt\-query\fP \fIor\fR \fB\-\-convert\fP is specified \fIand\fR \fB\-\-outformat\fP=\fIcustom\fR. \fI<string>\fR is a format string allowing placeholders. | |
47 | +.br | |
48 | +A placeholder can be any of the standard fields names (see \fBabookrc\fP(5)) and must be encapsulated by curly brackets. | |
49 | +.br | |
50 | +The default value is "{nick} ({name}): {mobile}" | |
51 | +.br | |
52 | +If \fI<string>\fR starts with \fI!\fR only entries whose all fields from \fI<string>\fR are non-NULL are included. | |
53 | .TP | |
54 | \fB\-\-add-email\fP | |
55 | Read an e-mail message from stdin and add the sender to the addressbook. | |
56 | diff -urN BUILD/abook-0.6.0pre2/abook.c abook/abook.c | |
57 | --- BUILD/abook-0.6.0pre2/abook.c 2006-09-04 21:24:12.000000000 +0200 | |
58 | +++ abook/abook.c 2013-03-13 15:07:45.000000000 +0100 | |
59 | @@ -1,5 +1,5 @@ | |
60 | /* | |
61 | - * $Id: abook.c,v 1.60 2006/09/04 18:29:24 cduval Exp $ | |
62 | + * $Id$ | |
63 | * | |
64 | * by JH <jheinonen@users.sourceforge.net> | |
65 | * | |
66 | @@ -50,6 +50,12 @@ | |
67 | char *datafile = NULL; | |
68 | static char *rcfile = NULL; | |
69 | ||
70 | +// custom formatting | |
71 | +char custom_format[FORMAT_STRING_LEN] = "{nick} ({name}): {mobile}"; | |
72 | +char *parsed_custom_format = NULL; | |
73 | +enum field_types *custom_format_fields = 0; | |
74 | +struct abook_output_item_filter selected_item_filter; | |
75 | + | |
76 | bool alternative_datafile = FALSE; | |
77 | bool alternative_rcfile = FALSE; | |
78 | ||
79 | @@ -187,9 +193,11 @@ | |
80 | main(int argc, char **argv) | |
81 | { | |
82 | #if defined(HAVE_SETLOCALE) && defined(HAVE_LOCALE_H) | |
83 | - setlocale(LC_ALL, ""); | |
84 | + setlocale(LC_MESSAGES, ""); | |
85 | + setlocale(LC_TIME, ""); | |
86 | + setlocale(LC_CTYPE, ""); | |
87 | + setlocale(LC_COLLATE, ""); | |
88 | #endif | |
89 | - | |
90 | bindtextdomain(PACKAGE, LOCALEDIR); | |
91 | textdomain(PACKAGE); | |
92 | ||
93 | @@ -301,6 +309,7 @@ | |
94 | *infile = "-", | |
95 | *outfile = "-"; | |
96 | int c; | |
97 | + selected_item_filter = select_output_item_filter("muttq"); | |
98 | ||
99 | for(;;) { | |
100 | int option_index = 0; | |
101 | @@ -311,6 +320,7 @@ | |
102 | OPT_CONVERT, | |
103 | OPT_INFORMAT, | |
104 | OPT_OUTFORMAT, | |
105 | + OPT_OUTFORMAT_STR, | |
106 | OPT_INFILE, | |
107 | OPT_OUTFILE, | |
108 | OPT_FORMATS | |
109 | @@ -325,6 +335,7 @@ | |
110 | { "convert", 0, 0, OPT_CONVERT }, | |
111 | { "informat", 1, 0, OPT_INFORMAT }, | |
112 | { "outformat", 1, 0, OPT_OUTFORMAT }, | |
113 | + { "outformatstr", 1, 0, OPT_OUTFORMAT_STR }, | |
114 | { "infile", 1, 0, OPT_INFILE }, | |
115 | { "outfile", 1, 0, OPT_OUTFILE }, | |
116 | { "formats", 0, 0, OPT_FORMATS }, | |
117 | @@ -366,7 +377,21 @@ | |
118 | set_convert_var(informat); | |
119 | break; | |
120 | case OPT_OUTFORMAT: | |
121 | - set_convert_var(outformat); | |
122 | + if(mode != MODE_CONVERT && mode != MODE_QUERY) { | |
123 | + fprintf(stderr, | |
124 | + _("please use option --outformat after --convert or --mutt-query option\n")); | |
125 | + exit(EXIT_FAILURE); | |
126 | + } | |
127 | + // ascii-name is stored, it's used to traverse | |
128 | + // e_filters[] in MODE_CONVERT (see export_file()) | |
129 | + outformat = optarg; | |
130 | + // but in case a query-compatible filter is requested | |
131 | + // try to guess right now which one it is, from u_filters[] | |
132 | + selected_item_filter = select_output_item_filter(outformat); | |
133 | + break; | |
134 | + case OPT_OUTFORMAT_STR: | |
135 | + strncpy(custom_format, optarg, FORMAT_STRING_LEN); | |
136 | + custom_format[FORMAT_STRING_LEN - 1] = 0; | |
137 | break; | |
138 | case OPT_INFILE: | |
139 | set_convert_var(infile); | |
140 | @@ -382,6 +407,23 @@ | |
141 | } | |
142 | } | |
143 | ||
144 | + // if the output format requested does not allow filtered querying | |
145 | + // (not in u_filter[]) and --convert has not been specified; bailout | |
146 | + if(! selected_item_filter.func && mode != MODE_CONVERT) { | |
147 | + printf("output format %s not supported or incompatible with --mutt-query\n", outformat); | |
148 | + exit(EXIT_FAILURE); | |
149 | + } | |
150 | + if(! selected_item_filter.func) | |
151 | + selected_item_filter = select_output_item_filter("muttq"); | |
152 | + else if (! strcmp(outformat, "custom")) { | |
153 | + if(! *custom_format) { | |
154 | + fprintf(stderr, _("Invalid custom format string\n")); | |
155 | + exit(EXIT_FAILURE); | |
156 | + } | |
157 | + parsed_custom_format = (char *)malloc(FORMAT_STRING_LEN * sizeof(char*)); | |
158 | + custom_format_fields = (enum field_types *)malloc(FORMAT_STRING_MAX_FIELDS * sizeof(enum field_types *)); | |
159 | + parse_custom_format(custom_format, parsed_custom_format, custom_format_fields); | |
160 | + } | |
161 | if(optind < argc) { | |
162 | fprintf(stderr, _("%s: unrecognized arguments on command line\n"), | |
163 | argv[0]); | |
164 | @@ -427,6 +469,8 @@ | |
165 | puts (_(" (default: text)")); | |
166 | puts (_(" --outfile <file> destination file")); | |
167 | puts (_(" (default: stdout)")); | |
168 | + puts (_(" --outformatstr <str> format to use for \"custom\" --outformat")); | |
169 | + puts (_(" (default: \"{nick} ({name}): {mobile}\")")); | |
170 | puts (_(" --formats list available formats")); | |
171 | } | |
172 | ||
173 | @@ -445,34 +489,12 @@ | |
174 | } | |
175 | ||
176 | static void | |
177 | -muttq_print_item(FILE *file, int item) | |
178 | -{ | |
179 | - abook_list *emails, *e; | |
180 | - char *tmp = db_email_get(item); | |
181 | - | |
182 | - emails = csv_to_abook_list(tmp); | |
183 | - free(tmp); | |
184 | - | |
185 | - for(e = emails; e; e = e->next) { | |
186 | - fprintf(file, "%s\t%s\t%s\n", e->data, db_name_get(item), | |
187 | - !db_fget(item, NOTES) ?" " :db_fget(item, NOTES) | |
188 | - ); | |
189 | - if(!opt_get_bool(BOOL_MUTT_RETURN_ALL_EMAILS)) | |
190 | - break; | |
191 | - } | |
192 | - abook_list_free(&emails); | |
193 | -} | |
194 | - | |
195 | -static void | |
196 | mutt_query(char *str) | |
197 | { | |
198 | init_mutt_query(); | |
199 | ||
200 | if( str == NULL || !strcasecmp(str, "all") ) { | |
201 | - struct db_enumerator e = init_db_enumerator(ENUM_ALL); | |
202 | - printf("All items\n"); | |
203 | - db_enumerate_items(e) | |
204 | - muttq_print_item(stdout, e.item); | |
205 | + export_file("muttq", "-"); | |
206 | } else { | |
207 | int search_fields[] = {NAME, EMAIL, NICK, -1}; | |
208 | int i; | |
209 | @@ -480,9 +502,14 @@ | |
210 | printf("Not found\n"); | |
211 | quit_mutt_query(EXIT_FAILURE); | |
212 | } | |
213 | - putchar('\n'); | |
214 | + // mutt expects a leading line containing | |
215 | + // a message about the query. | |
216 | + // Others output filter supporting query (vcard, custom) | |
217 | + // don't needs this. | |
218 | + if(!strcmp(selected_item_filter.filtname, "muttq")) | |
219 | + putchar('\n'); | |
220 | while(i >= 0) { | |
221 | - muttq_print_item(stdout, i); | |
222 | + e_write_item(stdout, i, selected_item_filter.func); | |
223 | i = find_item(str, i + 1, search_fields); | |
224 | } | |
225 | } | |
226 | @@ -708,6 +735,7 @@ | |
227 | check_abook_directory(); | |
228 | init_opts(); | |
229 | load_opts(rcfile); | |
230 | + init_standard_fields(); | |
231 | atexit(free_opts); | |
232 | ||
233 | /* | |
234 | diff -urN BUILD/abook-0.6.0pre2/abook.h abook/abook.h | |
235 | --- BUILD/abook-0.6.0pre2/abook.h 2005-10-26 01:27:24.000000000 +0200 | |
236 | +++ abook/abook.h 2013-03-13 15:07:45.000000000 +0100 | |
237 | @@ -50,6 +50,7 @@ | |
238 | #define ISSPACE(c) isspace((unsigned char)c) | |
239 | ||
240 | #define SKIPWS(c) while(*(c) && ISSPACE(*(c))) c++ | |
241 | +#define SKIPNONWS(c) while(*(c) && ! ISSPACE(*(c))) c++ | |
242 | ||
243 | #ifndef DEBUG | |
244 | # define NDEBUG 1 | |
245 | diff -urN BUILD/abook-0.6.0pre2/abookrc.5 abook/abookrc.5 | |
246 | --- BUILD/abook-0.6.0pre2/abookrc.5 2006-09-04 21:24:13.000000000 +0200 | |
247 | +++ abook/abookrc.5 2013-03-13 15:07:45.000000000 +0100 | |
248 | @@ -90,7 +90,7 @@ | |
249 | \fI{name:22}\fP | |
250 | displays the \fIname\fP field with a maximal width of 22 characters. | |
251 | .TP | |
252 | -\fI{phone:-13|workphone|mobile}\fP | |
253 | +\fI{phone:-12|workphone|mobile}\fP | |
254 | displays (right aligned within a width of 13 characters), either the \fIphone\fP, \fIworkphone\fP or \fImobile\fP field, whichever being the first to be non-empty. | |
255 | .RE | |
256 | .IP | |
257 | @@ -146,6 +146,84 @@ | |
258 | \fBshow_cursor\fP=[true|false] | |
259 | Defines if the cursor is visible in main display. Default is false. | |
260 | ||
261 | +.TP | |
262 | +\fBuse_mouse\fP=[true|false] | |
263 | +Defines if navigation via the mouse is activated. Default is false. | |
264 | + | |
265 | +.TP | |
266 | +\fBuse_colors\fP=[true|false] | |
267 | +Defines if the output of abook is colorized. Default is false. | |
268 | + | |
269 | +.TP | |
270 | +Color settings: | |
271 | +\fBcolor_header_fg\fP=color | |
272 | +Foreground color for header bar | |
273 | + | |
274 | +\fBcolor_header_bg\fP=color | |
275 | +Background color for header bar | |
276 | + | |
277 | +\fBcolor_footer_fg\fP=color | |
278 | +Foreground color for footer bar | |
279 | + | |
280 | +\fBcolor_footer_bg\fP=color | |
281 | +Background color for footer bar | |
282 | + | |
283 | +\fBcolor_list_even_fg\fP=color | |
284 | +Foreground color for normal list entries with even index in the list (starting | |
285 | +with index 0) | |
286 | + | |
287 | +\fBcolor_list_even_bg\fP=color | |
288 | +Background color for normal list entries with even index in the list (starting | |
289 | +with index 0) | |
290 | + | |
291 | +\fBcolor_list_odd_fg\fP=color | |
292 | +Foreground color for normal list entries with odd index in the list (starting | |
293 | +with index 0) | |
294 | + | |
295 | +\fBcolor_list_odd_bg\fP=color | |
296 | +Background color for normal list entries with odd index in the list (starting | |
297 | +with index 0) | |
298 | + | |
299 | +\fBcolor_list_header_fg\fP=color | |
300 | +Foreground color for the list header | |
301 | + | |
302 | +\fBcolor_list_header_bg\fP=color | |
303 | +Background color for the list header | |
304 | + | |
305 | +\fBcolor_list_highlight_fg\fP=color | |
306 | +Foreground color for highlighted list entries | |
307 | + | |
308 | +\fBcolor_list_highlight_bg\fP=color | |
309 | +Background color for highlighted list entries | |
310 | + | |
311 | +\fBcolor_tab_border_fg\fP=color | |
312 | +Foreground color for tab borders on details page | |
313 | + | |
314 | +\fBcolor_tab_border_bg\fP=color | |
315 | +Background color for tab borders on details page | |
316 | + | |
317 | +\fBcolor_tab_label_fg\fP=color | |
318 | +Foreground color for tab labes on details page | |
319 | + | |
320 | +\fBcolor_tab_label_bg\fP=color | |
321 | +Background color for tab labes on details page | |
322 | + | |
323 | +\fBcolor_field_name_fg\fP=color | |
324 | +Foreground color for field names on details page | |
325 | + | |
326 | +\fBcolor_field_name_bg\fP=color | |
327 | +Background color for field names on details page | |
328 | + | |
329 | +\fBcolor_field_value_fg\fP=color | |
330 | +Foreground color for field values on details page | |
331 | + | |
332 | +\fBcolor_field_value_bg\fP=color | |
333 | +Background color for field values on details page | |
334 | + | |
335 | +Where \fBcolor\fP can be: default, black, red, green, yellow, blue, magenta, cyan, white | |
336 | + | |
337 | + | |
338 | + | |
339 | .SH SAMPLE CONFIGURATION FILE | |
340 | ||
341 | .nf | |
342 | diff -urN BUILD/abook-0.6.0pre2/abook_rl.c abook/abook_rl.c | |
343 | --- BUILD/abook-0.6.0pre2/abook_rl.c 2005-09-23 17:42:11.000000000 +0200 | |
344 | +++ abook/abook_rl.c 2013-03-13 15:07:45.000000000 +0100 | |
345 | @@ -1,5 +1,5 @@ | |
346 | /* | |
347 | - * $Id: abook_rl.c,v 1.16 2005/09/23 15:42:11 jheinonen Exp $ | |
348 | + * $Id$ | |
349 | * | |
350 | * by JH <jheinonen@users.sourceforge.net> | |
351 | * | |
352 | diff -urN BUILD/abook-0.6.0pre2/abook.spec abook/abook.spec | |
353 | --- BUILD/abook-0.6.0pre2/abook.spec 2006-09-06 11:45:14.000000000 +0200 | |
354 | +++ abook/abook.spec 1970-01-01 01:00:00.000000000 +0100 | |
355 | @@ -1,47 +0,0 @@ | |
356 | -Summary: Text-based addressbook program | |
357 | -Name: abook | |
358 | -Version: 0.6.0pre2 | |
359 | -Release: 1 | |
360 | -License: GPL | |
361 | -Group: Utilities | |
362 | -Source: http://prdownloads.sourceforge.net/abook/%{name}-%{version}.tar.gz | |
363 | -URL: http://abook.sourceforge.net/ | |
364 | -BuildPreReq: ncurses-devel readline-devel gettext | |
365 | -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root | |
366 | - | |
367 | -%description | |
368 | -Abook is a text-based addressbook program designed to | |
369 | -use with mutt mail client. | |
370 | - | |
371 | - | |
372 | -%prep | |
373 | -%setup -q | |
374 | - | |
375 | - | |
376 | -%build | |
377 | -%configure | |
378 | -make %{_smp_mflags} | |
379 | - | |
380 | - | |
381 | -%install | |
382 | -%makeinstall | |
383 | - | |
384 | -%find_lang %{name} | |
385 | - | |
386 | - | |
387 | -%clean | |
388 | -rm -rf -- "%{buildroot}" | |
389 | - | |
390 | - | |
391 | -%files -f %{name}.lang | |
392 | -%defattr(-,root,root) | |
393 | -%doc AUTHORS BUGS COPYING ChangeLog FAQ NEWS README THANKS TODO sample.abookrc | |
394 | -%{_bindir}/abook | |
395 | -%{_mandir}/man1/abook.* | |
396 | -%{_mandir}/man5/abookrc.* | |
397 | - | |
398 | - | |
399 | -%changelog | |
400 | -* Mon Mar 11 2002 Jaakko Heinonen <jheinonen@users.sourceforge.net> | |
401 | -- rewrote the spec file originally written by | |
402 | - Gustavo Niemeyer <niemeyer@conectiva.com> | |
403 | diff -urN BUILD/abook-0.6.0pre2/ABOUT-NLS abook/ABOUT-NLS | |
404 | --- BUILD/abook-0.6.0pre2/ABOUT-NLS 2005-09-17 12:10:23.000000000 +0200 | |
405 | +++ abook/ABOUT-NLS 2013-03-13 15:07:45.000000000 +0100 | |
406 | @@ -18,35 +18,7 @@ | |
407 | available translations. They tell how people wanting to contribute and | |
408 | work on translations can contact the appropriate team. | |
409 | ||
410 | - When reporting bugs in the `intl/' directory or bugs which may be | |
411 | -related to internationalization, you should tell about the version of | |
412 | -`gettext' which is used. The information can be found in the | |
413 | -`intl/VERSION' file, in internationalized packages. | |
414 | - | |
415 | -1.1 Quick configuration advice | |
416 | -============================== | |
417 | - | |
418 | -If you want to exploit the full power of internationalization, you | |
419 | -should configure it using | |
420 | - | |
421 | - ./configure --with-included-gettext | |
422 | - | |
423 | -to force usage of internationalizing routines provided within this | |
424 | -package, despite the existence of internationalizing capabilities in the | |
425 | -operating system where this package is being installed. So far, only | |
426 | -the `gettext' implementation in the GNU C library version 2 provides as | |
427 | -many features (such as locale alias, message inheritance, automatic | |
428 | -charset conversion or plural form handling) as the implementation here. | |
429 | -It is also not possible to offer this additional functionality on top | |
430 | -of a `catgets' implementation. Future versions of GNU `gettext' will | |
431 | -very likely convey even more functionality. So it might be a good idea | |
432 | -to change to GNU `gettext' as soon as possible. | |
433 | - | |
434 | - So you need _not_ provide this option if you are using GNU libc 2 or | |
435 | -you have installed a recent copy of the GNU gettext package with the | |
436 | -included `libintl'. | |
437 | - | |
438 | -1.2 INSTALL Matters | |
439 | +1.1 INSTALL Matters | |
440 | =================== | |
441 | ||
442 | Some packages are "localizable" when properly installed; the programs | |
443 | @@ -56,36 +28,19 @@ | |
444 | ||
445 | By default, this package will be installed to allow translation of | |
446 | messages. It will automatically detect whether the system already | |
447 | -provides the GNU `gettext' functions. If not, the included GNU | |
448 | -`gettext' library will be used. This library is wholly contained | |
449 | -within this package, usually in the `intl/' subdirectory, so prior | |
450 | -installation of the GNU `gettext' package is _not_ required. | |
451 | -Installers may use special options at configuration time for changing | |
452 | -the default behaviour. The commands: | |
453 | +provides the GNU `gettext' functions. Installers may use special | |
454 | +options at configuration time for changing the default behaviour. The | |
455 | +command: | |
456 | ||
457 | - ./configure --with-included-gettext | |
458 | ./configure --disable-nls | |
459 | ||
460 | -will, respectively, bypass any pre-existing `gettext' to use the | |
461 | -internationalizing routines provided within this package, or else, | |
462 | -_totally_ disable translation of messages. | |
463 | +will _totally_ disable translation of messages. | |
464 | ||
465 | When you already have GNU `gettext' installed on your system and run | |
466 | configure without an option for your new package, `configure' will | |
467 | -probably detect the previously built and installed `libintl.a' file and | |
468 | -will decide to use this. This might not be desirable. You should use | |
469 | -the more recent version of the GNU `gettext' library. I.e. if the file | |
470 | -`intl/VERSION' shows that the library which comes with this package is | |
471 | -more recent, you should use | |
472 | - | |
473 | - ./configure --with-included-gettext | |
474 | - | |
475 | -to prevent auto-detection. | |
476 | - | |
477 | - The configuration process will not test for the `catgets' function | |
478 | -and therefore it will not be used. The reason is that even an | |
479 | -emulation of `gettext' on top of `catgets' could not provide all the | |
480 | -extensions of the GNU `gettext' library. | |
481 | +probably detect the previously built and installed `libintl' library | |
482 | +and will decide to use it. If not, you may have to to use the | |
483 | +`--with-libintl-prefix' option to tell `configure' where to look for it. | |
484 | ||
485 | Internationalized packages usually have many `po/LL.po' files, where | |
486 | LL gives an ISO 639 two-letter code identifying the language. Unless | |
487 | @@ -96,13 +51,16 @@ | |
488 | `LINGUAS' should then contain a space separated list of two-letter | |
489 | codes, stating which languages are allowed. | |
490 | ||
491 | -1.3 Using This Package | |
492 | +1.2 Using This Package | |
493 | ====================== | |
494 | ||
495 | As a user, if your language has been installed for this package, you | |
496 | only have to set the `LANG' environment variable to the appropriate | |
497 | -`LL_CC' combination. Here `LL' is an ISO 639 two-letter language code, | |
498 | -and `CC' is an ISO 3166 two-letter country code. For example, let's | |
499 | +`LL_CC' combination. If you happen to have the `LC_ALL' or some other | |
500 | +`LC_xxx' environment variables set, you should unset them before | |
501 | +setting `LANG', otherwise the setting of `LANG' will not have the | |
502 | +desired effect. Here `LL' is an ISO 639 two-letter language code, and | |
503 | +`CC' is an ISO 3166 two-letter country code. For example, let's | |
504 | suppose that you speak German and live in Germany. At the shell | |
505 | prompt, merely execute `setenv LANG de_DE' (in `csh'), | |
506 | `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). | |
507 | @@ -118,8 +76,8 @@ | |
508 | language and `CC' denoting the country, is the one use on systems based | |
509 | on GNU libc. On other systems, some variations of this scheme are | |
510 | used, such as `LL' or `LL_CC.ENCODING'. You can get the list of | |
511 | -locales supported by your system for your country by running the command | |
512 | -`locale -a | grep '^LL''. | |
513 | +locales supported by your system for your language by running the | |
514 | +command `locale -a | grep '^LL''. | |
515 | ||
516 | Not all programs have translations for all languages. By default, an | |
517 | English message is shown in place of a nonexistent translation. If you | |
518 | @@ -145,7 +103,7 @@ | |
519 | to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' | |
520 | (Portuguese as spoken in Portugal) in this context. | |
521 | ||
522 | -1.4 Translating Teams | |
523 | +1.3 Translating Teams | |
524 | ===================== | |
525 | ||
526 | For the Free Translation Project to be a success, we need interested | |
527 | @@ -153,8 +111,7 @@ | |
528 | able to synergize with other translators speaking the same language. | |
529 | Each translation team has its own mailing list. The up-to-date list of | |
530 | teams can be found at the Free Translation Project's homepage, | |
531 | -`http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams" | |
532 | -area. | |
533 | +`http://translationproject.org/', in the "Teams" area. | |
534 | ||
535 | If you'd like to volunteer to _work_ at translating messages, you | |
536 | should become a member of the translating team for your own language. | |
537 | @@ -168,786 +125,1125 @@ | |
538 | _actively_ in translations, or at solving translational difficulties, | |
539 | rather than merely lurking around. If your team does not exist yet and | |
540 | you want to start one, or if you are unsure about what to do or how to | |
541 | -get started, please write to `translation@iro.umontreal.ca' to reach the | |
542 | -coordinator for all translator teams. | |
543 | +get started, please write to `coordinator@translationproject.org' to | |
544 | +reach the coordinator for all translator teams. | |
545 | ||
546 | The English team is special. It works at improving and uniformizing | |
547 | -the terminology in use. Proven linguistic skill are praised more than | |
548 | -programming skill, here. | |
549 | +the terminology in use. Proven linguistic skills are praised more than | |
550 | +programming skills, here. | |
551 | ||
552 | -1.5 Available Packages | |
553 | +1.4 Available Packages | |
554 | ====================== | |
555 | ||
556 | Languages are not equally supported in all packages. The following | |
557 | -matrix shows the current state of internationalization, as of April | |
558 | -2005. The matrix shows, in regard of each package, for which languages | |
559 | +matrix shows the current state of internationalization, as of June | |
560 | +2010. The matrix shows, in regard of each package, for which languages | |
561 | PO files have been submitted to translation coordination, with a | |
562 | translation percentage of at least 50%. | |
563 | ||
564 | - Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB | |
565 | + Ready PO files af am an ar as ast az be be@latin bg bn_IN bs ca | |
566 | + +--------------------------------------------------+ | |
567 | + a2ps | [] [] | | |
568 | + aegis | | | |
569 | + ant-phone | | | |
570 | + anubis | | | |
571 | + aspell | [] [] | | |
572 | + bash | | | |
573 | + bfd | | | |
574 | + bibshelf | [] | | |
575 | + binutils | | | |
576 | + bison | | | |
577 | + bison-runtime | [] | | |
578 | + bluez-pin | [] [] | | |
579 | + bombono-dvd | | | |
580 | + buzztard | | | |
581 | + cflow | | | |
582 | + clisp | | | |
583 | + coreutils | [] [] | | |
584 | + cpio | | | |
585 | + cppi | | | |
586 | + cpplib | [] | | |
587 | + cryptsetup | | | |
588 | + dfarc | | | |
589 | + dialog | [] [] | | |
590 | + dico | | | |
591 | + diffutils | [] | | |
592 | + dink | | | |
593 | + doodle | | | |
594 | + e2fsprogs | [] | | |
595 | + enscript | [] | | |
596 | + exif | | | |
597 | + fetchmail | [] | | |
598 | + findutils | [] | | |
599 | + flex | [] | | |
600 | + freedink | | | |
601 | + gas | | | |
602 | + gawk | [] [] | | |
603 | + gcal | [] | | |
604 | + gcc | | | |
605 | + gettext-examples | [] [] [] [] | | |
606 | + gettext-runtime | [] [] | | |
607 | + gettext-tools | [] [] | | |
608 | + gip | [] | | |
609 | + gjay | | | |
610 | + gliv | [] | | |
611 | + glunarclock | [] [] | | |
612 | + gnubiff | | | |
613 | + gnucash | [] | | |
614 | + gnuedu | | | |
615 | + gnulib | | | |
616 | + gnunet | | | |
617 | + gnunet-gtk | | | |
618 | + gnutls | | | |
619 | + gold | | | |
620 | + gpe-aerial | | | |
621 | + gpe-beam | | | |
622 | + gpe-bluetooth | | | |
623 | + gpe-calendar | | | |
624 | + gpe-clock | [] | | |
625 | + gpe-conf | | | |
626 | + gpe-contacts | | | |
627 | + gpe-edit | | | |
628 | + gpe-filemanager | | | |
629 | + gpe-go | | | |
630 | + gpe-login | | | |
631 | + gpe-ownerinfo | [] | | |
632 | + gpe-package | | | |
633 | + gpe-sketchbook | | | |
634 | + gpe-su | [] | | |
635 | + gpe-taskmanager | [] | | |
636 | + gpe-timesheet | [] | | |
637 | + gpe-today | [] | | |
638 | + gpe-todo | | | |
639 | + gphoto2 | | | |
640 | + gprof | [] | | |
641 | + gpsdrive | | | |
642 | + gramadoir | | | |
643 | + grep | | | |
644 | + grub | [] [] | | |
645 | + gsasl | | | |
646 | + gss | | | |
647 | + gst-plugins-bad | [] | | |
648 | + gst-plugins-base | [] | | |
649 | + gst-plugins-good | [] | | |
650 | + gst-plugins-ugly | [] | | |
651 | + gstreamer | [] [] [] | | |
652 | + gtick | | | |
653 | + gtkam | [] | | |
654 | + gtkorphan | [] | | |
655 | + gtkspell | [] [] [] | | |
656 | + gutenprint | | | |
657 | + hello | [] | | |
658 | + help2man | | | |
659 | + hylafax | | | |
660 | + idutils | | | |
661 | + indent | [] [] | | |
662 | + iso_15924 | | | |
663 | + iso_3166 | [] [] [] [] [] [] [] | | |
664 | + iso_3166_2 | | | |
665 | + iso_4217 | | | |
666 | + iso_639 | [] [] [] [] | | |
667 | + iso_639_3 | | | |
668 | + jwhois | | | |
669 | + kbd | | | |
670 | + keytouch | [] | | |
671 | + keytouch-editor | | | |
672 | + keytouch-keyboa... | [] | | |
673 | + klavaro | [] | | |
674 | + latrine | | | |
675 | + ld | [] | | |
676 | + leafpad | [] [] | | |
677 | + libc | [] [] | | |
678 | + libexif | () | | |
679 | + libextractor | | | |
680 | + libgnutls | | | |
681 | + libgpewidget | | | |
682 | + libgpg-error | | | |
683 | + libgphoto2 | | | |
684 | + libgphoto2_port | | | |
685 | + libgsasl | | | |
686 | + libiconv | [] | | |
687 | + libidn | | | |
688 | + lifelines | | | |
689 | + liferea | [] [] | | |
690 | + lilypond | | | |
691 | + linkdr | [] | | |
692 | + lordsawar | | | |
693 | + lprng | | | |
694 | + lynx | [] | | |
695 | + m4 | | | |
696 | + mailfromd | | | |
697 | + mailutils | | | |
698 | + make | | | |
699 | + man-db | | | |
700 | + man-db-manpages | | | |
701 | + minicom | | | |
702 | + mkisofs | | | |
703 | + myserver | | | |
704 | + nano | [] [] | | |
705 | + opcodes | | | |
706 | + parted | | | |
707 | + pies | | | |
708 | + popt | | | |
709 | + psmisc | | | |
710 | + pspp | [] | | |
711 | + pwdutils | | | |
712 | + radius | [] | | |
713 | + recode | [] [] | | |
714 | + rosegarden | | | |
715 | + rpm | | | |
716 | + rush | | | |
717 | + sarg | | | |
718 | + screem | | | |
719 | + scrollkeeper | [] [] [] | | |
720 | + sed | [] [] | | |
721 | + sharutils | [] [] | | |
722 | + shishi | | | |
723 | + skencil | | | |
724 | + solfege | | | |
725 | + solfege-manual | | | |
726 | + soundtracker | | | |
727 | + sp | | | |
728 | + sysstat | | | |
729 | + tar | [] | | |
730 | + texinfo | | | |
731 | + tin | | | |
732 | + unicode-han-tra... | | | |
733 | + unicode-transla... | | | |
734 | + util-linux-ng | [] | | |
735 | + vice | | | |
736 | + vmm | | | |
737 | + vorbis-tools | | | |
738 | + wastesedge | | | |
739 | + wdiff | | | |
740 | + wget | [] [] | | |
741 | + wyslij-po | | | |
742 | + xchat | [] [] [] [] | | |
743 | + xdg-user-dirs | [] [] [] [] [] [] [] [] [] | | |
744 | + xkeyboard-config | [] [] | | |
745 | + +--------------------------------------------------+ | |
746 | + af am an ar as ast az be be@latin bg bn_IN bs ca | |
747 | + 6 0 1 2 3 19 1 10 3 28 3 1 38 | |
748 | + | |
749 | + crh cs da de el en en_GB en_ZA eo es et eu fa | |
750 | +-------------------------------------------------+ | |
751 | - GNUnet | | | |
752 | - a2ps | [] [] [] [] [] | | |
753 | - aegis | () | | |
754 | - ant-phone | () | | |
755 | - anubis | [] | | |
756 | - ap-utils | | | |
757 | - aspell | [] [] [] [] | | |
758 | - bash | [] [] | | |
759 | - batchelor | [] | | |
760 | - bfd | | | |
761 | - bibshelf | [] | | |
762 | - binutils | [] | | |
763 | - bison | [] [] | | |
764 | - bluez-pin | [] [] [] [] | | |
765 | - clisp | [] [] | | |
766 | - console-tools | [] [] | | |
767 | - coreutils | [] [] [] [] | | |
768 | + a2ps | [] [] [] [] [] [] [] | | |
769 | + aegis | [] [] [] | | |
770 | + ant-phone | [] () | | |
771 | + anubis | [] [] | | |
772 | + aspell | [] [] [] [] [] | | |
773 | + bash | [] [] [] | | |
774 | + bfd | [] | | |
775 | + bibshelf | [] [] [] | | |
776 | + binutils | [] | | |
777 | + bison | [] [] | | |
778 | + bison-runtime | [] [] [] [] | | |
779 | + bluez-pin | [] [] [] [] [] [] | | |
780 | + bombono-dvd | [] | | |
781 | + buzztard | [] [] [] | | |
782 | + cflow | [] [] | | |
783 | + clisp | [] [] [] [] | | |
784 | + coreutils | [] [] [] [] | | |
785 | cpio | | | |
786 | - cpplib | [] [] [] | | |
787 | - darkstat | [] () [] | | |
788 | - dialog | [] [] [] [] [] [] | | |
789 | - diffutils | [] [] [] [] [] | | |
790 | - doodle | [] | | |
791 | - e2fsprogs | [] [] | | |
792 | - enscript | [] [] [] [] | | |
793 | - error | [] [] [] [] | | |
794 | - fetchmail | [] () [] [] [] | | |
795 | - fileutils | [] [] | | |
796 | - findutils | [] [] [] | | |
797 | - flex | [] [] [] | | |
798 | - fslint | [] | | |
799 | - gas | | | |
800 | - gawk | [] [] [] | | |
801 | - gbiff | [] | | |
802 | - gcal | [] | | |
803 | - gcc | [] | | |
804 | - gettext-examples | [] [] [] [] | | |
805 | - gettext-runtime | [] [] [] [] | | |
806 | - gettext-tools | [] [] | | |
807 | - gimp-print | [] [] [] [] | | |
808 | - gip | | | |
809 | - gliv | [] | | |
810 | - glunarclock | | | |
811 | - gmult | [] [] | | |
812 | - gnubiff | () | | |
813 | - gnucash | [] () () [] | | |
814 | - gnucash-glossary | [] () | | |
815 | - gpe-aerial | [] [] | | |
816 | - gpe-beam | [] [] | | |
817 | - gpe-calendar | [] [] | | |
818 | - gpe-clock | [] [] | | |
819 | - gpe-conf | [] [] | | |
820 | - gpe-contacts | | | |
821 | - gpe-edit | [] | | |
822 | - gpe-go | [] | | |
823 | - gpe-login | [] [] | | |
824 | - gpe-ownerinfo | [] [] | | |
825 | - gpe-sketchbook | [] [] | | |
826 | - gpe-su | [] [] | | |
827 | - gpe-taskmanager | [] [] | | |
828 | - gpe-timesheet | [] | | |
829 | - gpe-today | [] [] | | |
830 | - gpe-todo | [] [] | | |
831 | - gphoto2 | [] [] [] [] | | |
832 | - gprof | [] [] | | |
833 | - gpsdrive | () () | | |
834 | - gramadoir | [] [] | | |
835 | - grep | [] [] [] [] [] [] | | |
836 | - gretl | | | |
837 | - gsasl | [] | | |
838 | + cppi | | | |
839 | + cpplib | [] [] [] | | |
840 | + cryptsetup | [] | | |
841 | + dfarc | [] [] [] | | |
842 | + dialog | [] [] [] [] [] | | |
843 | + dico | | | |
844 | + diffutils | [] [] [] [] [] [] | | |
845 | + dink | [] [] [] | | |
846 | + doodle | [] | | |
847 | + e2fsprogs | [] [] [] | | |
848 | + enscript | [] [] [] | | |
849 | + exif | () [] [] | | |
850 | + fetchmail | [] [] () [] [] [] | | |
851 | + findutils | [] [] [] | | |
852 | + flex | [] [] | | |
853 | + freedink | [] [] [] | | |
854 | + gas | [] | | |
855 | + gawk | [] [] [] | | |
856 | + gcal | [] | | |
857 | + gcc | [] [] | | |
858 | + gettext-examples | [] [] [] [] | | |
859 | + gettext-runtime | [] [] [] [] | | |
860 | + gettext-tools | [] [] [] | | |
861 | + gip | [] [] [] [] | | |
862 | + gjay | [] | | |
863 | + gliv | [] [] [] | | |
864 | + glunarclock | [] [] | | |
865 | + gnubiff | () | | |
866 | + gnucash | [] () () () () | | |
867 | + gnuedu | [] [] | | |
868 | + gnulib | [] [] | | |
869 | + gnunet | | | |
870 | + gnunet-gtk | [] | | |
871 | + gnutls | [] [] | | |
872 | + gold | [] | | |
873 | + gpe-aerial | [] [] [] [] | | |
874 | + gpe-beam | [] [] [] [] | | |
875 | + gpe-bluetooth | [] [] | | |
876 | + gpe-calendar | [] | | |
877 | + gpe-clock | [] [] [] [] | | |
878 | + gpe-conf | [] [] [] | | |
879 | + gpe-contacts | [] [] [] | | |
880 | + gpe-edit | [] [] | | |
881 | + gpe-filemanager | [] [] [] | | |
882 | + gpe-go | [] [] [] [] | | |
883 | + gpe-login | [] [] | | |
884 | + gpe-ownerinfo | [] [] [] [] | | |
885 | + gpe-package | [] [] [] | | |
886 | + gpe-sketchbook | [] [] [] [] | | |
887 | + gpe-su | [] [] [] [] | | |
888 | + gpe-taskmanager | [] [] [] [] | | |
889 | + gpe-timesheet | [] [] [] [] | | |
890 | + gpe-today | [] [] [] [] | | |
891 | + gpe-todo | [] [] [] | | |
892 | + gphoto2 | [] [] () [] [] [] | | |
893 | + gprof | [] [] [] | | |
894 | + gpsdrive | [] [] [] | | |
895 | + gramadoir | [] [] [] | | |
896 | + grep | [] | | |
897 | + grub | [] [] | | |
898 | + gsasl | [] | | |
899 | gss | | | |
900 | - gst-plugins | [] [] [] [] [] [] | | |
901 | - gstreamer | [] [] [] [] [] | | |
902 | - gtick | [] () | | |
903 | - gtkspell | [] [] [] | | |
904 | - hello | [] [] [] [] | | |
905 | - id-utils | [] [] | | |
906 | - impost | | | |
907 | - indent | [] [] | | |
908 | - iso_3166 | | | |
909 | - iso_3166_1 | [] [] [] [] [] | | |
910 | - iso_3166_2 | | | |
911 | - iso_3166_3 | [] | | |
912 | - iso_4217 | | | |
913 | - iso_639 | | | |
914 | - jpilot | [] | | |
915 | - jtag | | | |
916 | - jwhois | | | |
917 | - kbd | [] [] [] [] | | |
918 | - latrine | () | | |
919 | - ld | [] | | |
920 | - libc | [] [] [] [] [] | | |
921 | + gst-plugins-bad | [] [] [] [] [] | | |
922 | + gst-plugins-base | [] [] [] [] [] | | |
923 | + gst-plugins-good | [] [] [] [] [] [] | | |
924 | + gst-plugins-ugly | [] [] [] [] [] [] | | |
925 | + gstreamer | [] [] [] [] [] | | |
926 | + gtick | [] () [] | | |
927 | + gtkam | [] [] () [] [] | | |
928 | + gtkorphan | [] [] [] [] | | |
929 | + gtkspell | [] [] [] [] [] [] [] | | |
930 | + gutenprint | [] [] [] | | |
931 | + hello | [] [] [] [] | | |
932 | + help2man | [] | | |
933 | + hylafax | [] [] | | |
934 | + idutils | [] [] | | |
935 | + indent | [] [] [] [] [] [] [] | | |
936 | + iso_15924 | [] () [] [] | | |
937 | + iso_3166 | [] [] [] [] () [] [] [] () | | |
938 | + iso_3166_2 | () | | |
939 | + iso_4217 | [] [] [] () [] [] | | |
940 | + iso_639 | [] [] [] [] () [] [] | | |
941 | + iso_639_3 | [] | | |
942 | + jwhois | [] | | |
943 | + kbd | [] [] [] [] [] | | |
944 | + keytouch | [] [] | | |
945 | + keytouch-editor | [] [] | | |
946 | + keytouch-keyboa... | [] | | |
947 | + klavaro | [] [] [] [] | | |
948 | + latrine | [] () | | |
949 | + ld | [] [] | | |
950 | + leafpad | [] [] [] [] [] [] | | |
951 | + libc | [] [] [] [] | | |
952 | + libexif | [] [] () | | |
953 | libextractor | | | |
954 | - libgpewidget | [] [] [] | | |
955 | + libgnutls | [] | | |
956 | + libgpewidget | [] [] | | |
957 | + libgpg-error | [] [] | | |
958 | + libgphoto2 | [] () | | |
959 | + libgphoto2_port | [] () [] | | |
960 | libgsasl | | | |
961 | - libiconv | [] [] [] [] [] | | |
962 | - libidn | | | |
963 | - lifelines | [] () | | |
964 | - lilypond | [] | | |
965 | - lingoteach | | | |
966 | - lynx | [] [] [] [] | | |
967 | - m4 | [] [] [] [] | | |
968 | - mailutils | [] | | |
969 | - make | [] [] | | |
970 | - man-db | [] () [] [] | | |
971 | - minicom | [] [] | | |
972 | - mysecretdiary | [] [] | | |
973 | - nano | [] () [] | | |
974 | - nano_1_0 | [] () [] [] | | |
975 | - opcodes | [] | | |
976 | - parted | [] [] [] [] | | |
977 | - psmisc | | | |
978 | - ptx | [] [] [] | | |
979 | - pwdutils | | | |
980 | - python | | | |
981 | - radius | [] | | |
982 | - recode | [] [] [] [] [] | | |
983 | - rpm | [] [] | | |
984 | + libiconv | [] [] [] [] [] | | |
985 | + libidn | [] [] [] | | |
986 | + lifelines | [] () | | |
987 | + liferea | [] [] [] [] [] | | |
988 | + lilypond | [] [] [] | | |
989 | + linkdr | [] [] [] | | |
990 | + lordsawar | [] | | |
991 | + lprng | | | |
992 | + lynx | [] [] [] [] | | |
993 | + m4 | [] [] [] [] | | |
994 | + mailfromd | | | |
995 | + mailutils | [] | | |
996 | + make | [] [] [] | | |
997 | + man-db | | | |
998 | + man-db-manpages | | | |
999 | + minicom | [] [] [] [] | | |
1000 | + mkisofs | | | |
1001 | + myserver | | | |
1002 | + nano | [] [] [] | | |
1003 | + opcodes | [] [] | | |
1004 | + parted | [] [] | | |
1005 | + pies | | | |
1006 | + popt | [] [] [] [] [] | | |
1007 | + psmisc | [] [] [] | | |
1008 | + pspp | [] | | |
1009 | + pwdutils | [] | | |
1010 | + radius | [] | | |
1011 | + recode | [] [] [] [] [] [] | | |
1012 | + rosegarden | () () () | | |
1013 | + rpm | [] [] [] | | |
1014 | + rush | | | |
1015 | + sarg | | | |
1016 | screem | | | |
1017 | - scrollkeeper | [] [] [] [] [] [] [] [] | | |
1018 | - sed | [] [] | | |
1019 | - sh-utils | [] [] | | |
1020 | - shared-mime-info | [] [] | | |
1021 | - sharutils | [] [] [] [] [] | | |
1022 | - silky | | | |
1023 | - skencil | [] () | | |
1024 | - sketch | [] () | | |
1025 | - solfege | [] | | |
1026 | - soundtracker | [] [] | | |
1027 | - sp | [] | | |
1028 | - stardict | [] | | |
1029 | - tar | | | |
1030 | - texinfo | [] [] | | |
1031 | - textutils | [] [] [] | | |
1032 | - tin | () () | | |
1033 | - tp-robot | [] | | |
1034 | - tuxpaint | [] [] [] [] [] [] [] | | |
1035 | + scrollkeeper | [] [] [] [] [] | | |
1036 | + sed | [] [] [] [] [] [] | | |
1037 | + sharutils | [] [] [] [] | | |
1038 | + shishi | | | |
1039 | + skencil | [] () [] | | |
1040 | + solfege | [] [] [] | | |
1041 | + solfege-manual | [] [] | | |
1042 | + soundtracker | [] [] [] | | |
1043 | + sp | [] | | |
1044 | + sysstat | [] [] [] | | |
1045 | + tar | [] [] [] [] | | |
1046 | + texinfo | [] [] [] | | |
1047 | + tin | [] [] | | |
1048 | unicode-han-tra... | | | |
1049 | unicode-transla... | | | |
1050 | - util-linux | [] [] [] [] | | |
1051 | - vorbis-tools | [] [] [] [] | | |
1052 | - wastesedge | () | | |
1053 | - wdiff | [] [] [] [] | | |
1054 | - wget | [] [] [] [] [] [] | | |
1055 | - xchat | [] [] [] [] | | |
1056 | - xkeyboard-config | | | |
1057 | - xpad | | | |
1058 | + util-linux-ng | [] [] [] [] | | |
1059 | + vice | () () | | |
1060 | + vmm | [] | | |
1061 | + vorbis-tools | [] [] | | |
1062 | + wastesedge | [] | | |
1063 | + wdiff | [] [] | | |
1064 | + wget | [] [] [] | | |
1065 | + wyslij-po | | | |
1066 | + xchat | [] [] [] [] [] | | |
1067 | + xdg-user-dirs | [] [] [] [] [] [] [] [] [] | | |
1068 | + xkeyboard-config | [] [] [] [] [] [] | | |
1069 | +-------------------------------------------------+ | |
1070 | - af am ar az be bg bs ca cs cy da de el en en_GB | |
1071 | - 10 0 0 2 7 4 0 41 43 3 52 90 20 1 15 | |
1072 | + crh cs da de el en en_GB en_ZA eo es et eu fa | |
1073 | + 5 64 105 117 18 1 8 0 28 89 18 19 0 | |
1074 | ||
1075 | - eo es et eu fa fi fr ga gl he hr hu id is it | |
1076 | - +-----------------------------------------------+ | |
1077 | - GNUnet | | | |
1078 | - a2ps | [] [] [] () | | |
1079 | - aegis | | | |
1080 | - ant-phone | [] | | |
1081 | - anubis | [] | | |
1082 | - ap-utils | [] | | |
1083 | - aspell | [] [] | | |
1084 | - bash | [] [] [] [] | | |
1085 | - batchelor | [] [] | | |
1086 | - bfd | [] | | |
1087 | - bibshelf | [] [] [] | | |
1088 | - binutils | [] [] | | |
1089 | - bison | [] [] [] [] [] [] | | |
1090 | - bluez-pin | [] [] [] [] [] [] | | |
1091 | - clisp | [] [] | | |
1092 | - console-tools | | | |
1093 | - coreutils | [] [] [] [] [] | | |
1094 | - cpio | [] [] | | |
1095 | - cpplib | [] [] | | |
1096 | - darkstat | [] () [] [] [] | | |
1097 | - dialog | [] [] [] [] [] [] [] [] | | |
1098 | - diffutils | [] [] [] [] [] [] [] [] [] [] | | |
1099 | - doodle | [] [] | | |
1100 | - e2fsprogs | [] [] [] | | |
1101 | - enscript | [] [] | | |
1102 | - error | [] [] [] [] [] | | |
1103 | - fetchmail | [] | | |
1104 | - fileutils | [] [] [] [] [] [] | | |
1105 | - findutils | [] [] [] [] [] | | |
1106 | - flex | [] [] [] | | |
1107 | - fslint | [] | | |
1108 | - gas | [] [] | | |
1109 | - gawk | [] [] [] [] | | |
1110 | - gbiff | [] | | |
1111 | - gcal | [] [] | | |
1112 | - gcc | [] | | |
1113 | - gettext-examples | [] [] [] [] | | |
1114 | - gettext-runtime | [] [] [] [] [] [] | | |
1115 | - gettext-tools | [] [] [] | | |
1116 | - gimp-print | [] [] | | |
1117 | - gip | [] [] [] | | |
1118 | - gliv | () | | |
1119 | - glunarclock | [] [] [] | | |
1120 | - gmult | [] [] [] | | |
1121 | - gnubiff | () () | | |
1122 | - gnucash | [] () [] | | |
1123 | - gnucash-glossary | [] [] | | |
1124 | - gpe-aerial | [] [] | | |
1125 | - gpe-beam | [] [] | | |
1126 | - gpe-calendar | [] [] [] [] | | |
1127 | - gpe-clock | [] [] [] | | |
1128 | - gpe-conf | [] | | |
1129 | - gpe-contacts | [] | | |
1130 | - gpe-edit | [] [] | | |
1131 | - gpe-go | [] [] | | |
1132 | - gpe-login | [] [] [] | | |
1133 | - gpe-ownerinfo | [] [] [] [] [] | | |
1134 | - gpe-sketchbook | [] [] | | |
1135 | - gpe-su | [] [] [] | | |
1136 | - gpe-taskmanager | [] [] [] | | |
1137 | - gpe-timesheet | [] [] [] [] | | |
1138 | - gpe-today | [] [] [] [] | | |
1139 | - gpe-todo | [] [] [] | | |
1140 | - gphoto2 | [] [] [] [] [] | | |
1141 | - gprof | [] [] [] | | |
1142 | - gpsdrive | () () [] () | | |
1143 | - gramadoir | [] [] | | |
1144 | - grep | [] [] [] [] [] [] [] [] [] [] [] [] | | |
1145 | - gretl | [] [] [] | | |
1146 | - gsasl | [] [] [] | | |
1147 | - gss | [] | | |
1148 | - gst-plugins | [] [] [] | | |
1149 | - gstreamer | [] | | |
1150 | - gtick | [] [] [] [] [] | | |
1151 | - gtkspell | [] [] [] [] [] [] | | |
1152 | - hello | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | | |
1153 | - id-utils | [] [] [] [] | | |
1154 | - impost | [] [] | | |
1155 | - indent | [] [] [] [] [] [] [] [] [] [] [] | | |
1156 | - iso_3166 | [] [] [] | | |
1157 | - iso_3166_1 | [] [] [] [] [] [] [] | | |
1158 | - iso_3166_2 | [] | | |
1159 | - iso_3166_3 | [] | | |
1160 | - iso_4217 | [] [] [] | | |
1161 | - iso_639 | [] [] [] [] | | |
1162 | - jpilot | [] [] | | |
1163 | - jtag | [] | | |
1164 | - jwhois | [] [] [] [] [] | | |
1165 | - kbd | [] [] | | |
1166 | - latrine | [] [] [] | | |
1167 | - ld | [] [] | | |
1168 | - libc | [] [] [] [] [] | | |
1169 | - libextractor | | | |
1170 | - libgpewidget | [] [] [] [] [] | | |
1171 | - libgsasl | [] [] | | |
1172 | - libiconv | [] [] [] [] [] [] [] [] [] [] [] | | |
1173 | - libidn | [] [] | | |
1174 | - lifelines | () | | |
1175 | - lilypond | [] | | |
1176 | - lingoteach | [] [] [] | | |
1177 | - lynx | [] [] [] | | |
1178 | - m4 | [] [] [] [] | | |
1179 | - mailutils | [] [] | | |
1180 | - make | [] [] [] [] [] [] [] | | |
1181 | - man-db | () | | |
1182 | - minicom | [] [] [] [] | | |
1183 | - mysecretdiary | [] [] [] | | |
1184 | - nano | [] [] () [] [] | | |
1185 | - nano_1_0 | [] [] [] [] [] | | |
1186 | - opcodes | [] [] | | |
1187 | - parted | [] [] [] [] | | |
1188 | - psmisc | [] [] | | |
1189 | - ptx | [] [] [] [] [] [] [] [] [] | | |
1190 | - pwdutils | | | |
1191 | - python | | | |
1192 | - radius | [] [] | | |
1193 | - recode | [] [] [] [] [] [] [] [] | | |
1194 | - rpm | [] | | |
1195 | - screem | | | |
1196 | - scrollkeeper | [] [] [] | | |
1197 | - sed | [] [] [] [] [] | | |
1198 | - sh-utils | [] [] [] [] [] [] [] | | |
1199 | - shared-mime-info | [] [] [] [] [] [] | | |
1200 | - sharutils | [] [] [] [] [] [] [] | | |
1201 | - silky | [] | | |
1202 | - skencil | [] [] | | |
1203 | - sketch | [] [] | | |
1204 | - solfege | [] | | |
1205 | - soundtracker | [] [] [] | | |
1206 | - sp | [] | | |
1207 | - stardict | [] | | |
1208 | - tar | [] [] [] [] [] | | |
1209 | - texinfo | [] [] [] | | |
1210 | - textutils | [] [] [] [] [] | | |
1211 | - tin | [] () | | |
1212 | - tp-robot | [] [] | | |
1213 | - tuxpaint | [] [] [] [] [] [] [] [] [] | | |
1214 | - unicode-han-tra... | | | |
1215 | - unicode-transla... | [] [] | | |
1216 | - util-linux | [] [] [] [] [] [] | | |
1217 | - vorbis-tools | [] [] | | |
1218 | - wastesedge | () | | |
1219 | - wdiff | [] [] [] [] [] [] [] [] | | |
1220 | - wget | [] [] [] [] [] [] [] [] [] [] | | |
1221 | - xchat | [] [] [] [] [] | | |
1222 | - xkeyboard-config | | | |
1223 | - xpad | [] [] [] | | |
1224 | - +-----------------------------------------------+ | |
1225 | - eo es et eu fa fi fr ga gl he hr hu id is it | |
1226 | - 13 85 21 15 2 35 115 45 17 8 6 40 27 1 45 | |
1227 | + fi fr ga gl gu he hi hr hu hy id is it ja ka kn | |
1228 | + +----------------------------------------------------+ | |
1229 | + a2ps | [] [] [] [] | | |
1230 | + aegis | [] [] | | |
1231 | + ant-phone | [] [] | | |
1232 | + anubis | [] [] [] [] | | |
1233 | + aspell | [] [] [] [] | | |
1234 | + bash | [] [] [] [] | | |
1235 | + bfd | [] [] [] | | |
1236 | + bibshelf | [] [] [] [] [] | | |
1237 | + binutils | [] [] [] | | |
1238 | + bison | [] [] [] [] | | |
1239 | + bison-runtime | [] [] [] [] [] [] | | |
1240 | + bluez-pin | [] [] [] [] [] [] [] [] | | |
1241 | + bombono-dvd | [] | | |
1242 | + buzztard | [] | | |
1243 | + cflow | [] [] [] | | |
1244 | + clisp | [] | | |
1245 | + coreutils | [] [] [] [] [] | | |
1246 | + cpio | [] [] [] [] | | |
1247 | + cppi | [] [] | | |
1248 | + cpplib | [] [] [] | | |
1249 | + cryptsetup | [] [] [] | | |
1250 | + dfarc | [] [] [] | | |
1251 | + dialog | [] [] [] [] [] [] [] | | |
1252 | + dico | | | |
1253 | + diffutils | [] [] [] [] [] [] [] [] [] | | |
1254 | + dink | [] | | |
1255 | + doodle | [] [] | | |
1256 | + e2fsprogs | [] [] | | |
1257 | + enscript | [] [] [] [] | | |
1258 | + exif | [] [] [] [] [] [] | | |
1259 | + fetchmail | [] [] [] [] | | |
1260 | + findutils | [] [] [] [] [] [] | | |
1261 | + flex | [] [] [] | | |
1262 | + freedink | [] [] [] | | |
1263 | + gas | [] [] | | |
1264 | + gawk | [] [] [] [] () [] | | |
1265 | + gcal | [] | | |
1266 | + gcc | [] | | |
1267 | + gettext-examples | [] [] [] [] [] [] [] | | |
1268 | + gettext-runtime | [] [] [] [] [] [] | | |
1269 | + gettext-tools | [] [] [] [] | | |
1270 | + gip | [] [] [] [] [] [] | | |
1271 | + gjay | [] | | |
1272 | + gliv | [] () | | |
1273 | + glunarclock | [] [] [] [] | | |
1274 | + gnubiff | () [] () | | |
1275 | + gnucash | () () () () () [] | | |
1276 | + gnuedu | [] [] | | |
1277 | + gnulib | [] [] [] [] [] [] | | |
1278 | + gnunet | | | |
1279 | + gnunet-gtk | [] | | |
1280 | + gnutls | [] [] | | |
1281 | + gold | [] [] | | |
1282 | + gpe-aerial | [] [] [] | | |
1283 | + gpe-beam | [] [] [] [] | | |
1284 | + gpe-bluetooth | [] [] [] [] | | |
1285 | + gpe-calendar | [] [] | | |
1286 | + gpe-clock | [] [] [] [] [] | | |
1287 | + gpe-conf | [] [] [] [] | | |
1288 | + gpe-contacts | [] [] [] [] | | |
1289 | + gpe-edit | [] [] [] | | |
1290 | + gpe-filemanager | [] [] [] [] | | |
1291 | + gpe-go | [] [] [] [] [] | | |
1292 | + gpe-login | [] [] [] | | |
1293 | + gpe-ownerinfo | [] [] [] [] [] | | |
1294 | + gpe-package | [] [] [] | | |
1295 | + gpe-sketchbook | [] [] [] [] | | |
1296 | + gpe-su | [] [] [] [] [] [] | | |
1297 | + gpe-taskmanager | [] [] [] [] [] | | |
1298 | + gpe-timesheet | [] [] [] [] [] | | |
1299 | + gpe-today | [] [] [] [] [] [] [] | | |
1300 | + gpe-todo | [] [] [] | | |
1301 | + gphoto2 | [] [] [] [] [] [] | | |
1302 | + gprof | [] [] [] [] | | |
1303 | + gpsdrive | [] [] [] | | |
1304 | + gramadoir | [] [] [] | | |
1305 | + grep | [] [] | | |
1306 | + grub | [] [] [] [] | | |
1307 | + gsasl | [] [] [] [] [] | | |
1308 | + gss | [] [] [] [] [] | | |
1309 | + gst-plugins-bad | [] [] [] [] [] [] | | |
1310 | + gst-plugins-base | [] [] [] [] [] [] | | |
1311 | + gst-plugins-good | [] [] [] [] [] [] | | |
1312 | + gst-plugins-ugly | [] [] [] [] [] [] | | |
1313 | + gstreamer | [] [] [] [] [] | | |
1314 | + gtick | [] [] [] [] [] | | |
1315 | + gtkam | [] [] [] [] [] | | |
1316 | + gtkorphan | [] [] [] | | |
1317 | + gtkspell | [] [] [] [] [] [] [] [] [] | | |
1318 | + gutenprint | [] [] [] [] | | |
1319 | + hello | [] [] [] | | |
1320 | + help2man | [] [] | | |
1321 | + hylafax | [] | | |
1322 | + idutils | [] [] [] [] [] [] | | |
1323 | + indent | [] [] [] [] [] [] [] [] | | |
1324 | + iso_15924 | [] () [] [] | | |
1325 | + iso_3166 | [] () [] [] [] [] [] [] [] [] [] [] | | |
1326 | + iso_3166_2 | () [] [] [] | | |
1327 | + iso_4217 | [] () [] [] [] [] | | |
1328 | + iso_639 | [] () [] [] [] [] [] [] [] | | |
1329 | + iso_639_3 | () [] [] | | |
1330 | + jwhois | [] [] [] [] [] | | |
1331 | + kbd | [] [] | | |
1332 | + keytouch | [] [] [] [] [] [] | | |
1333 | + keytouch-editor | [] [] [] [] [] | | |
1334 | + keytouch-keyboa... | [] [] [] [] [] | | |
1335 | + klavaro | [] [] | | |
1336 | + latrine | [] [] [] | | |
1337 | + ld | [] [] [] [] | | |
1338 | + leafpad | [] [] [] [] [] [] [] () | | |
1339 | + libc | [] [] [] [] [] | | |
1340 | + libexif | [] | | |
1341 | + libextractor | | | |
1342 | + libgnutls | [] [] | | |
1343 | + libgpewidget | [] [] [] [] | | |
1344 | + libgpg-error | [] [] | | |
1345 | + libgphoto2 | [] [] [] | | |
1346 | + libgphoto2_port | [] [] [] | | |
1347 | + libgsasl | [] [] [] [] [] | | |
1348 | + libiconv | [] [] [] [] [] [] | | |
1349 | + libidn | [] [] [] [] | | |
1350 | + lifelines | () | | |
1351 | + liferea | [] [] [] [] | | |
1352 | + lilypond | [] [] | | |
1353 | + linkdr | [] [] [] [] [] | | |
1354 | + lordsawar | | | |
1355 | + lprng | [] | | |
1356 | + lynx | [] [] [] [] [] | | |
1357 | + m4 | [] [] [] [] [] [] | | |
1358 | + mailfromd | | | |
1359 | + mailutils | [] [] | | |
1360 | + make | [] [] [] [] [] [] [] [] [] | | |
1361 | + man-db | [] [] | | |
1362 | + man-db-manpages | [] | | |
1363 | + minicom | [] [] [] [] [] | | |
1364 | + mkisofs | [] [] [] [] | | |
1365 | + myserver | | | |
1366 | + nano | [] [] [] [] [] [] | | |
1367 | + opcodes | [] [] [] [] | | |
1368 | + parted | [] [] [] [] | | |
1369 | + pies | | | |
1370 | + popt | [] [] [] [] [] [] [] [] [] | | |
1371 | + psmisc | [] [] [] | | |
1372 | + pspp | | | |
1373 | + pwdutils | [] [] | | |
1374 | + radius | [] [] | | |
1375 | + recode | [] [] [] [] [] [] [] [] | | |
1376 | + rosegarden | () () () () () | | |
1377 | + rpm | [] [] | | |
1378 | + rush | | | |
1379 | + sarg | [] | | |
1380 | + screem | [] [] | | |
1381 | + scrollkeeper | [] [] [] [] | | |
1382 | + sed | [] [] [] [] [] [] [] [] | | |
1383 | + sharutils | [] [] [] [] [] [] [] | | |
1384 | + shishi | [] | | |
1385 | + skencil | [] | | |
1386 | + solfege | [] [] [] [] | | |
1387 | + solfege-manual | [] [] | | |
1388 | + soundtracker | [] [] | | |
1389 | + sp | [] () | | |
1390 | + sysstat | [] [] [] [] [] | | |
1391 | + tar | [] [] [] [] [] [] [] | | |
1392 | + texinfo | [] [] [] [] | | |
1393 | + tin | [] | | |
1394 | + unicode-han-tra... | | | |
1395 | + unicode-transla... | [] [] | | |
1396 | + util-linux-ng | [] [] [] [] [] [] | | |
1397 | + vice | () () () | | |
1398 | + vmm | [] | | |
1399 | + vorbis-tools | [] | | |
1400 | + wastesedge | () () | | |
1401 | + wdiff | [] | | |
1402 | + wget | [] [] [] [] [] [] [] [] | | |
1403 | + wyslij-po | [] [] [] | | |
1404 | + xchat | [] [] [] [] [] [] [] [] [] | | |
1405 | + xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] | | |
1406 | + xkeyboard-config | [] [] [] [] [] | | |
1407 | + +----------------------------------------------------+ | |
1408 | + fi fr ga gl gu he hi hr hu hy id is it ja ka kn | |
1409 | + 105 121 53 20 4 8 3 5 53 2 120 5 84 67 0 4 | |
1410 | ||
1411 | - ja ko ku lg lt lv mk mn ms mt nb nl nn no nso | |
1412 | + ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne | |
1413 | +-----------------------------------------------+ | |
1414 | - GNUnet | | | |
1415 | - a2ps | () [] [] () | | |
1416 | - aegis | () | | |
1417 | - ant-phone | [] | | |
1418 | - anubis | [] [] [] | | |
1419 | - ap-utils | | | |
1420 | - aspell | [] [] | | |
1421 | - bash | [] | | |
1422 | - batchelor | [] | | |
1423 | + a2ps | [] | | |
1424 | + aegis | | | |
1425 | + ant-phone | | | |
1426 | + anubis | [] [] | | |
1427 | + aspell | [] | | |
1428 | + bash | | | |
1429 | bfd | | | |
1430 | - bibshelf | | | |
1431 | + bibshelf | [] [] | | |
1432 | binutils | | | |
1433 | - bison | [] [] [] | | |
1434 | - bluez-pin | [] | | |
1435 | - clisp | [] | | |
1436 | - console-tools | | | |
1437 | - coreutils | [] [] | | |
1438 | + bison | [] | | |
1439 | + bison-runtime | [] [] [] [] [] | | |
1440 | + bluez-pin | [] [] [] [] [] | | |
1441 | + bombono-dvd | | | |
1442 | + buzztard | | | |
1443 | + cflow | | | |
1444 | + clisp | | | |
1445 | + coreutils | [] | | |
1446 | cpio | | | |
1447 | + cppi | | | |
1448 | cpplib | | | |
1449 | - darkstat | [] [] | | |
1450 | - dialog | [] | | |
1451 | - diffutils | [] [] [] | | |
1452 | + cryptsetup | | | |
1453 | + dfarc | [] | | |
1454 | + dialog | [] [] [] [] [] | | |
1455 | + dico | | | |
1456 | + diffutils | [] [] | | |
1457 | + dink | | | |
1458 | doodle | | | |
1459 | e2fsprogs | | | |
1460 | - enscript | [] | | |
1461 | - error | [] | | |
1462 | - fetchmail | [] [] | | |
1463 | - fileutils | [] [] | | |
1464 | - findutils | [] | | |
1465 | - flex | [] [] | | |
1466 | - fslint | [] | | |
1467 | + enscript | | | |
1468 | + exif | [] | | |
1469 | + fetchmail | | | |
1470 | + findutils | | | |
1471 | + flex | | | |
1472 | + freedink | [] | | |
1473 | gas | | | |
1474 | - gawk | [] [] | | |
1475 | - gbiff | [] | | |
1476 | + gawk | | | |
1477 | gcal | | | |
1478 | gcc | | | |
1479 | - gettext-examples | [] [] | | |
1480 | - gettext-runtime | [] [] [] | | |
1481 | - gettext-tools | [] [] | | |
1482 | - gimp-print | [] [] | | |
1483 | - gip | [] | | |
1484 | - gliv | [] | | |
1485 | - glunarclock | [] [] | | |
1486 | - gmult | [] | | |
1487 | + gettext-examples | [] [] [] [] | | |
1488 | + gettext-runtime | [] | | |
1489 | + gettext-tools | [] | | |
1490 | + gip | [] [] | | |
1491 | + gjay | | | |
1492 | + gliv | | | |
1493 | + glunarclock | [] | | |
1494 | gnubiff | | | |
1495 | - gnucash | () () [] | | |
1496 | - gnucash-glossary | [] | | |
1497 | - gpe-aerial | [] | | |
1498 | - gpe-beam | [] | | |
1499 | - gpe-calendar | [] | | |
1500 | - gpe-clock | [] | | |
1501 | - gpe-conf | [] | | |
1502 | - gpe-contacts | | | |
1503 | - gpe-edit | [] | | |
1504 | - gpe-go | [] | | |
1505 | - gpe-login | [] | | |
1506 | - gpe-ownerinfo | [] | | |
1507 | - gpe-sketchbook | [] | | |
1508 | - gpe-su | [] | | |
1509 | - gpe-taskmanager | [] [] | | |
1510 | - gpe-timesheet | [] | | |
1511 | - gpe-today | [] | | |
1512 | - gpe-todo | [] | | |
1513 | - gphoto2 | [] [] | | |
1514 | - gprof | | | |
1515 | - gpsdrive | () () () | | |
1516 | - gramadoir | () | | |
1517 | - grep | [] [] [] | | |
1518 | - gretl | | | |
1519 | - gsasl | [] | | |
1520 | + gnucash | () () () () | | |
1521 | + gnuedu | | | |
1522 | + gnulib | | | |
1523 | + gnunet | | | |
1524 | + gnunet-gtk | | | |
1525 | + gnutls | [] | | |
1526 | + gold | | | |
1527 | + gpe-aerial | [] | | |
1528 | + gpe-beam | [] | | |
1529 | + gpe-bluetooth | [] [] | | |
1530 | + gpe-calendar | [] | | |
1531 | + gpe-clock | [] [] [] [] [] | | |
1532 | + gpe-conf | [] [] | | |
1533 | + gpe-contacts | [] [] | | |
1534 | + gpe-edit | [] | | |
1535 | + gpe-filemanager | [] [] | | |
1536 | + gpe-go | [] [] [] | | |
1537 | + gpe-login | [] | | |
1538 | + gpe-ownerinfo | [] [] | | |
1539 | + gpe-package | [] [] | | |
1540 | + gpe-sketchbook | [] [] | | |
1541 | + gpe-su | [] [] [] [] [] [] | | |
1542 | + gpe-taskmanager | [] [] [] [] [] [] | | |
1543 | + gpe-timesheet | [] [] | | |
1544 | + gpe-today | [] [] [] [] | | |
1545 | + gpe-todo | [] [] | | |
1546 | + gphoto2 | | | |
1547 | + gprof | [] | | |
1548 | + gpsdrive | | | |
1549 | + gramadoir | | | |
1550 | + grep | | | |
1551 | + grub | | | |
1552 | + gsasl | | | |
1553 | gss | | | |
1554 | - gst-plugins | [] | | |
1555 | - gstreamer | [] | | |
1556 | - gtick | [] | | |
1557 | - gtkspell | [] [] | | |
1558 | - hello | [] [] [] [] [] [] [] [] | | |
1559 | - id-utils | [] | | |
1560 | - impost | | | |
1561 | - indent | [] [] | | |
1562 | - iso_3166 | [] | | |
1563 | - iso_3166_1 | [] [] | | |
1564 | - iso_3166_2 | [] | | |
1565 | - iso_3166_3 | [] | | |
1566 | - iso_4217 | [] [] [] | | |
1567 | - iso_639 | [] [] [] | | |
1568 | - jpilot | () () () | | |
1569 | - jtag | | | |
1570 | - jwhois | [] | | |
1571 | - kbd | [] | | |
1572 | - latrine | [] | | |
1573 | + gst-plugins-bad | [] [] [] [] | | |
1574 | + gst-plugins-base | [] [] | | |
1575 | + gst-plugins-good | [] [] | | |
1576 | + gst-plugins-ugly | [] [] [] [] [] | | |
1577 | + gstreamer | | | |
1578 | + gtick | | | |
1579 | + gtkam | [] | | |
1580 | + gtkorphan | [] [] | | |
1581 | + gtkspell | [] [] [] [] [] [] [] | | |
1582 | + gutenprint | | | |
1583 | + hello | [] [] [] | | |
1584 | + help2man | | | |
1585 | + hylafax | | | |
1586 | + idutils | | | |
1587 | + indent | | | |
1588 | + iso_15924 | [] [] | | |
1589 | + iso_3166 | [] [] () [] [] [] [] [] | | |
1590 | + iso_3166_2 | | | |
1591 | + iso_4217 | [] [] | | |
1592 | + iso_639 | [] [] | | |
1593 | + iso_639_3 | [] | | |
1594 | + jwhois | [] | | |
1595 | + kbd | | | |
1596 | + keytouch | [] | | |
1597 | + keytouch-editor | [] | | |
1598 | + keytouch-keyboa... | [] | | |
1599 | + klavaro | [] | | |
1600 | + latrine | [] | | |
1601 | ld | | | |
1602 | - libc | [] [] [] [] [] | | |
1603 | + leafpad | [] [] [] | | |
1604 | + libc | [] | | |
1605 | + libexif | | | |
1606 | libextractor | | | |
1607 | - libgpewidget | [] | | |
1608 | - libgsasl | [] | | |
1609 | - libiconv | [] | | |
1610 | + libgnutls | [] | | |
1611 | + libgpewidget | [] [] | | |
1612 | + libgpg-error | | | |
1613 | + libgphoto2 | | | |
1614 | + libgphoto2_port | | | |
1615 | + libgsasl | | | |
1616 | + libiconv | | | |
1617 | libidn | | | |
1618 | - lifelines | [] | | |
1619 | - lilypond | [] | | |
1620 | - lingoteach | [] | | |
1621 | - lynx | [] [] | | |
1622 | - m4 | [] [] | | |
1623 | + lifelines | | | |
1624 | + liferea | | | |
1625 | + lilypond | | | |
1626 | + linkdr | | | |
1627 | + lordsawar | | | |
1628 | + lprng | | | |
1629 | + lynx | | | |
1630 | + m4 | | | |
1631 | + mailfromd | | | |
1632 | mailutils | | | |
1633 | - make | [] [] [] | | |
1634 | - man-db | () | | |
1635 | - minicom | [] | | |
1636 | - mysecretdiary | [] | | |
1637 | - nano | [] [] | | |
1638 | - nano_1_0 | [] [] [] | | |
1639 | - opcodes | [] | | |
1640 | - parted | [] [] | | |
1641 | - psmisc | [] [] | | |
1642 | - ptx | [] [] [] | | |
1643 | + make | [] | | |
1644 | + man-db | | | |
1645 | + man-db-manpages | | | |
1646 | + minicom | [] | | |
1647 | + mkisofs | | | |
1648 | + myserver | | | |
1649 | + nano | [] [] | | |
1650 | + opcodes | | | |
1651 | + parted | | | |
1652 | + pies | | | |
1653 | + popt | [] [] [] | | |
1654 | + psmisc | | | |
1655 | + pspp | | | |
1656 | pwdutils | | | |
1657 | - python | | | |
1658 | radius | | | |
1659 | - recode | [] | | |
1660 | - rpm | [] [] | | |
1661 | - screem | [] | | |
1662 | - scrollkeeper | [] [] [] | | |
1663 | - sed | [] [] | | |
1664 | - sh-utils | [] [] | | |
1665 | - shared-mime-info | [] [] [] [] | | |
1666 | - sharutils | [] [] | | |
1667 | - silky | [] | | |
1668 | + recode | | | |
1669 | + rosegarden | | | |
1670 | + rpm | | | |
1671 | + rush | | | |
1672 | + sarg | | | |
1673 | + screem | | | |
1674 | + scrollkeeper | [] [] | | |
1675 | + sed | | | |
1676 | + sharutils | | | |
1677 | + shishi | | | |
1678 | skencil | | | |
1679 | - sketch | | | |
1680 | - solfege | [] [] | | |
1681 | + solfege | [] | | |
1682 | + solfege-manual | | | |
1683 | soundtracker | | | |
1684 | - sp | () | | |
1685 | - stardict | [] [] | | |
1686 | - tar | [] [] | | |
1687 | - texinfo | [] [] [] | | |
1688 | - textutils | [] [] [] | | |
1689 | + sp | | | |
1690 | + sysstat | [] | | |
1691 | + tar | [] | | |
1692 | + texinfo | [] | | |
1693 | tin | | | |
1694 | - tp-robot | [] | | |
1695 | - tuxpaint | [] [] [] [] [] [] | | |
1696 | unicode-han-tra... | | | |
1697 | unicode-transla... | | | |
1698 | - util-linux | [] [] | | |
1699 | - vorbis-tools | [] | | |
1700 | - wastesedge | [] | | |
1701 | - wdiff | [] [] | | |
1702 | - wget | [] [] | | |
1703 | - xchat | [] [] [] [] | | |
1704 | - xkeyboard-config | [] | | |
1705 | - xpad | [] | | |
1706 | + util-linux-ng | | | |
1707 | + vice | | | |
1708 | + vmm | | | |
1709 | + vorbis-tools | | | |
1710 | + wastesedge | | | |
1711 | + wdiff | | | |
1712 | + wget | [] | | |
1713 | + wyslij-po | | | |
1714 | + xchat | [] [] [] | | |
1715 | + xdg-user-dirs | [] [] [] [] [] [] [] [] | | |
1716 | + xkeyboard-config | [] [] [] | | |
1717 | +-----------------------------------------------+ | |
1718 | - ja ko ku lg lt lv mk mn ms mt nb nl nn no nso | |
1719 | - 33 11 1 1 1 2 2 3 11 0 15 96 7 5 0 | |
1720 | - | |
1721 | - or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta | |
1722 | - +-------------------------------------------------+ | |
1723 | - GNUnet | | | |
1724 | - a2ps | () [] [] [] [] [] [] | | |
1725 | - aegis | () () | | |
1726 | - ant-phone | [] | | |
1727 | - anubis | [] [] [] | | |
1728 | - ap-utils | () | | |
1729 | - aspell | [] [] | | |
1730 | - bash | [] [] [] | | |
1731 | - batchelor | [] | | |
1732 | - bfd | | | |
1733 | - bibshelf | | | |
1734 | - binutils | [] [] | | |
1735 | - bison | [] [] [] [] [] | | |
1736 | - bluez-pin | [] [] [] [] [] [] [] [] | | |
1737 | - clisp | [] | | |
1738 | - console-tools | [] | | |
1739 | - coreutils | [] [] [] [] | | |
1740 | - cpio | [] [] | | |
1741 | - cpplib | | | |
1742 | - darkstat | [] [] [] [] [] [] | | |
1743 | - dialog | [] [] [] [] [] [] [] | | |
1744 | - diffutils | [] [] [] [] [] [] | | |
1745 | - doodle | [] | | |
1746 | - e2fsprogs | [] [] | | |
1747 | - enscript | [] [] [] [] | | |
1748 | - error | [] [] [] | | |
1749 | - fetchmail | [] () [] [] [] | | |
1750 | - fileutils | [] [] [] [] [] | | |
1751 | - findutils | [] [] [] [] [] [] | | |
1752 | - flex | [] [] [] [] [] | | |
1753 | - fslint | [] [] [] | | |
1754 | - gas | | | |
1755 | - gawk | [] [] [] [] | | |
1756 | - gbiff | [] | | |
1757 | - gcal | [] | | |
1758 | - gcc | | | |
1759 | - gettext-examples | [] [] [] [] [] [] | | |
1760 | - gettext-runtime | [] [] [] [] [] [] [] | | |
1761 | - gettext-tools | [] [] [] [] [] [] [] | | |
1762 | - gimp-print | [] [] | | |
1763 | - gip | [] [] [] | | |
1764 | - gliv | [] [] [] | | |
1765 | - glunarclock | [] [] [] [] [] [] | | |
1766 | - gmult | [] [] [] [] | | |
1767 | - gnubiff | () [] | | |
1768 | - gnucash | () [] [] [] [] | | |
1769 | - gnucash-glossary | [] [] [] | | |
1770 | - gpe-aerial | [] [] [] [] [] [] | | |
1771 | - gpe-beam | [] [] [] [] [] [] | | |
1772 | - gpe-calendar | [] [] [] [] [] [] [] | | |
1773 | - gpe-clock | [] [] [] [] [] [] [] | | |
1774 | - gpe-conf | [] [] [] [] [] [] | | |
1775 | - gpe-contacts | [] [] [] | | |
1776 | - gpe-edit | [] [] [] [] [] [] [] | | |
1777 | - gpe-go | [] [] [] [] [] | | |
1778 | - gpe-login | [] [] [] [] [] [] [] | | |
1779 | - gpe-ownerinfo | [] [] [] [] [] [] [] | | |
1780 | - gpe-sketchbook | [] [] [] [] [] [] [] | | |
1781 | - gpe-su | [] [] [] [] [] [] [] | | |
1782 | - gpe-taskmanager | [] [] [] [] [] [] [] | | |
1783 | - gpe-timesheet | [] [] [] [] [] [] [] | | |
1784 | - gpe-today | [] [] [] [] [] [] [] | | |
1785 | - gpe-todo | [] [] [] [] [] [] [] | | |
1786 | - gphoto2 | [] [] [] [] | | |
1787 | - gprof | [] [] [] | | |
1788 | - gpsdrive | [] | | |
1789 | - gramadoir | [] | | |
1790 | - grep | [] [] [] [] [] [] [] | | |
1791 | - gretl | [] | | |
1792 | - gsasl | [] [] [] [] [] | | |
1793 | - gss | [] [] [] | | |
1794 | - gst-plugins | [] [] [] [] | | |
1795 | - gstreamer | [] [] [] [] | | |
1796 | - gtick | [] [] [] | | |
1797 | - gtkspell | [] [] [] [] [] [] | | |
1798 | - hello | [] [] [] [] [] [] [] | | |
1799 | - id-utils | [] [] [] [] | | |
1800 | - impost | | | |
1801 | - indent | [] [] [] [] [] [] | | |
1802 | - iso_3166 | [] [] [] [] [] | | |
1803 | - iso_3166_1 | [] [] [] [] | | |
1804 | - iso_3166_2 | | | |
1805 | - iso_3166_3 | [] [] [] | | |
1806 | - iso_4217 | [] [] | | |
1807 | - iso_639 | [] [] [] | | |
1808 | - jpilot | | | |
1809 | - jtag | [] | | |
1810 | - jwhois | [] [] [] () () | | |
1811 | - kbd | [] [] [] | | |
1812 | - latrine | [] [] | | |
1813 | - ld | [] | | |
1814 | - libc | [] [] [] [] [] | | |
1815 | - libextractor | [] | | |
1816 | - libgpewidget | [] [] [] [] [] [] | | |
1817 | - libgsasl | [] [] [] | | |
1818 | - libiconv | [] [] [] [] [] [] [] [] [] [] | | |
1819 | - libidn | [] () | | |
1820 | - lifelines | [] [] | | |
1821 | - lilypond | [] | | |
1822 | - lingoteach | [] | | |
1823 | - lynx | [] [] [] | | |
1824 | - m4 | [] [] [] [] [] | | |
1825 | - mailutils | [] [] [] | | |
1826 | - make | [] [] [] [] | | |
1827 | - man-db | [] [] | | |
1828 | - minicom | [] [] [] [] | | |
1829 | - mysecretdiary | [] [] [] [] | | |
1830 | - nano | [] [] [] | | |
1831 | - nano_1_0 | [] [] [] [] | | |
1832 | - opcodes | [] [] | | |
1833 | - parted | [] [] [] [] | | |
1834 | - psmisc | [] [] | | |
1835 | - ptx | [] [] [] [] [] [] | | |
1836 | - pwdutils | [] | | |
1837 | - python | | | |
1838 | - radius | [] [] | | |
1839 | - recode | [] [] [] [] [] [] | | |
1840 | - rpm | [] [] [] [] | | |
1841 | - screem | | | |
1842 | - scrollkeeper | [] [] [] [] [] [] [] | | |
1843 | - sed | [] [] [] [] [] [] [] [] | | |
1844 | - sh-utils | [] [] [] | | |
1845 | - shared-mime-info | [] [] [] [] [] | | |
1846 | - sharutils | [] [] [] | | |
1847 | - silky | [] | | |
1848 | - skencil | [] [] [] | | |
1849 | - sketch | [] [] [] | | |
1850 | - solfege | | | |
1851 | - soundtracker | [] [] | | |
1852 | - sp | | | |
1853 | - stardict | [] [] | | |
1854 | - tar | [] [] [] [] | | |
1855 | - texinfo | [] [] [] [] | | |
1856 | - textutils | [] [] [] | | |
1857 | - tin | | | |
1858 | - tp-robot | [] | | |
1859 | - tuxpaint | [] [] [] [] [] [] [] [] | | |
1860 | - unicode-han-tra... | | | |
1861 | - unicode-transla... | | | |
1862 | - util-linux | [] [] [] | | |
1863 | - vorbis-tools | [] [] | | |
1864 | - wastesedge | | | |
1865 | - wdiff | [] [] [] [] [] [] | | |
1866 | - wget | [] [] [] [] [] [] [] [] [] | | |
1867 | - xchat | [] [] [] [] [] [] | | |
1868 | - xkeyboard-config | | | |
1869 | - xpad | | | |
1870 | - +-------------------------------------------------+ | |
1871 | - or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta | |
1872 | - 1 0 48 30 58 6 79 71 5 45 13 12 50 86 0 | |
1873 | + ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne | |
1874 | + 20 5 10 1 13 48 4 2 2 4 24 10 20 3 1 | |
1875 | ||
1876 | - tg th tk tr uk ven vi wa xh zh_CN zh_TW zu | |
1877 | - +--------------------------------------------+ | |
1878 | - GNUnet | | 0 | |
1879 | - a2ps | [] [] [] | 19 | |
1880 | - aegis | | 0 | |
1881 | - ant-phone | [] | 4 | |
1882 | - anubis | [] | 9 | |
1883 | - ap-utils | () | 1 | |
1884 | - aspell | [] [] [] | 13 | |
1885 | - bash | | 10 | |
1886 | - batchelor | [] [] | 7 | |
1887 | - bfd | | 1 | |
1888 | - bibshelf | [] | 5 | |
1889 | - binutils | [] | 6 | |
1890 | - bison | [] | 17 | |
1891 | - bluez-pin | [] [] [] [] [] | 24 | |
1892 | - clisp | | 7 | |
1893 | - console-tools | [] | 4 | |
1894 | - coreutils | [] | 16 | |
1895 | - cpio | [] [] | 6 | |
1896 | - cpplib | [] [] | 7 | |
1897 | - darkstat | [] () () | 15 | |
1898 | - dialog | [] [] [] | 25 | |
1899 | - diffutils | [] [] [] [] | 28 | |
1900 | - doodle | [] | 5 | |
1901 | - e2fsprogs | [] | 8 | |
1902 | - enscript | [] | 12 | |
1903 | - error | [] [] [] | 16 | |
1904 | - fetchmail | [] | 12 | |
1905 | - fileutils | [] [] [] | 18 | |
1906 | - findutils | [] [] | 17 | |
1907 | - flex | [] [] | 15 | |
1908 | - fslint | [] | 7 | |
1909 | - gas | [] | 3 | |
1910 | - gawk | [] | 14 | |
1911 | - gbiff | | 4 | |
1912 | - gcal | [] | 5 | |
1913 | - gcc | [] | 3 | |
1914 | - gettext-examples | [] [] [] [] | 20 | |
1915 | - gettext-runtime | [] [] [] [] [] | 25 | |
1916 | - gettext-tools | [] [] [] | 17 | |
1917 | - gimp-print | [] | 11 | |
1918 | - gip | [] | 8 | |
1919 | - gliv | [] | 6 | |
1920 | - glunarclock | [] [] | 13 | |
1921 | - gmult | [] [] [] | 13 | |
1922 | - gnubiff | [] | 3 | |
1923 | - gnucash | () [] | 10 | |
1924 | - gnucash-glossary | [] | 8 | |
1925 | - gpe-aerial | [] [] | 13 | |
1926 | - gpe-beam | [] [] | 13 | |
1927 | - gpe-calendar | [] [] [] [] | 18 | |
1928 | - gpe-clock | [] [] [] [] | 17 | |
1929 | - gpe-conf | [] [] | 12 | |
1930 | - gpe-contacts | [] [] | 6 | |
1931 | - gpe-edit | [] [] [] [] | 15 | |
1932 | - gpe-go | [] [] | 11 | |
1933 | - gpe-login | [] [] [] [] [] | 18 | |
1934 | - gpe-ownerinfo | [] [] [] [] | 19 | |
1935 | - gpe-sketchbook | [] [] | 14 | |
1936 | - gpe-su | [] [] [] | 16 | |
1937 | - gpe-taskmanager | [] [] [] | 17 | |
1938 | - gpe-timesheet | [] [] [] [] | 17 | |
1939 | - gpe-today | [] [] [] [] [] | 19 | |
1940 | - gpe-todo | [] [] [] | 16 | |
1941 | - gphoto2 | [] [] | 17 | |
1942 | - gprof | [] [] | 10 | |
1943 | - gpsdrive | | 2 | |
1944 | - gramadoir | [] | 6 | |
1945 | - grep | [] [] [] [] | 32 | |
1946 | - gretl | | 4 | |
1947 | - gsasl | [] [] | 12 | |
1948 | - gss | [] | 5 | |
1949 | - gst-plugins | [] [] | 16 | |
1950 | - gstreamer | [] [] [] | 14 | |
1951 | - gtick | [] | 11 | |
1952 | - gtkspell | [] [] [] | 20 | |
1953 | - hello | [] [] [] [] | 37 | |
1954 | - id-utils | [] [] | 13 | |
1955 | - impost | [] | 3 | |
1956 | - indent | [] [] [] | 24 | |
1957 | - iso_3166 | [] [] [] | 12 | |
1958 | - iso_3166_1 | [] [] | 20 | |
1959 | - iso_3166_2 | | 2 | |
1960 | - iso_3166_3 | [] [] | 8 | |
1961 | - iso_4217 | [] [] | 10 | |
1962 | - iso_639 | [] [] | 12 | |
1963 | - jpilot | [] [] [] | 6 | |
1964 | - jtag | | 2 | |
1965 | - jwhois | [] [] [] | 12 | |
1966 | - kbd | [] [] | 12 | |
1967 | - latrine | [] [] | 8 | |
1968 | - ld | [] | 5 | |
1969 | - libc | [] [] | 22 | |
1970 | - libextractor | | 1 | |
1971 | - libgpewidget | [] [] | 17 | |
1972 | - libgsasl | [] | 7 | |
1973 | - libiconv | [] [] [] [] [] | 32 | |
1974 | - libidn | [] [] | 5 | |
1975 | - lifelines | | 4 | |
1976 | - lilypond | [] | 5 | |
1977 | - lingoteach | | 5 | |
1978 | - lynx | [] [] | 14 | |
1979 | - m4 | [] [] | 17 | |
1980 | - mailutils | [] | 7 | |
1981 | - make | [] [] | 18 | |
1982 | - man-db | | 5 | |
1983 | - minicom | | 11 | |
1984 | - mysecretdiary | [] [] | 12 | |
1985 | - nano | | 11 | |
1986 | - nano_1_0 | [] [] | 17 | |
1987 | - opcodes | [] | 7 | |
1988 | - parted | [] [] [] | 17 | |
1989 | - psmisc | [] | 7 | |
1990 | - ptx | [] [] | 23 | |
1991 | - pwdutils | | 1 | |
1992 | - python | | 0 | |
1993 | - radius | [] | 6 | |
1994 | - recode | [] [] | 22 | |
1995 | - rpm | [] [] | 11 | |
1996 | - screem | | 1 | |
1997 | - scrollkeeper | [] [] | 23 | |
1998 | - sed | [] [] | 19 | |
1999 | - sh-utils | [] | 15 | |
2000 | - shared-mime-info | [] [] | 19 | |
2001 | - sharutils | [] [] [] | 20 | |
2002 | - silky | | 3 | |
2003 | - skencil | | 6 | |
2004 | - sketch | | 6 | |
2005 | - solfege | | 4 | |
2006 | - soundtracker | [] | 8 | |
2007 | - sp | [] | 3 | |
2008 | - stardict | [] [] [] [] | 10 | |
2009 | - tar | [] [] | 13 | |
2010 | - texinfo | [] [] | 14 | |
2011 | - textutils | [] [] [] | 17 | |
2012 | - tin | | 1 | |
2013 | - tp-robot | [] [] | 7 | |
2014 | - tuxpaint | [] [] [] [] | 34 | |
2015 | - unicode-han-tra... | | 0 | |
2016 | - unicode-transla... | | 2 | |
2017 | - util-linux | [] [] | 17 | |
2018 | - vorbis-tools | [] | 10 | |
2019 | - wastesedge | | 1 | |
2020 | - wdiff | [] [] | 22 | |
2021 | - wget | [] [] [] [] | 31 | |
2022 | - xchat | [] [] [] | 22 | |
2023 | - xkeyboard-config | | 1 | |
2024 | - xpad | [] | 5 | |
2025 | - +--------------------------------------------+ | |
2026 | - 72 teams tg th tk tr uk ven vi wa xh zh_CN zh_TW zu | |
2027 | - 147 domains 0 0 1 78 29 0 71 16 0 41 20 0 1711 | |
2028 | + nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr | |
2029 | + +---------------------------------------------------+ | |
2030 | + a2ps | [] [] [] [] [] [] [] [] | | |
2031 | + aegis | [] [] [] | | |
2032 | + ant-phone | [] [] | | |
2033 | + anubis | [] [] [] | | |
2034 | + aspell | [] [] [] [] [] | | |
2035 | + bash | [] [] | | |
2036 | + bfd | [] | | |
2037 | + bibshelf | [] [] | | |
2038 | + binutils | [] [] | | |
2039 | + bison | [] [] [] | | |
2040 | + bison-runtime | [] [] [] [] [] [] [] | | |
2041 | + bluez-pin | [] [] [] [] [] [] [] [] | | |
2042 | + bombono-dvd | [] () | | |
2043 | + buzztard | [] [] | | |
2044 | + cflow | [] | | |
2045 | + clisp | [] [] | | |
2046 | + coreutils | [] [] [] [] [] [] | | |
2047 | + cpio | [] [] [] | | |
2048 | + cppi | [] | | |
2049 | + cpplib | [] | | |
2050 | + cryptsetup | [] | | |
2051 | + dfarc | [] | | |
2052 | + dialog | [] [] [] [] | | |
2053 | + dico | [] | | |
2054 | + diffutils | [] [] [] [] [] [] | | |
2055 | + dink | () | | |
2056 | + doodle | [] [] | | |
2057 | + e2fsprogs | [] [] | | |
2058 | + enscript | [] [] [] [] [] | | |
2059 | + exif | [] [] [] () [] | | |
2060 | + fetchmail | [] [] [] [] | | |
2061 | + findutils | [] [] [] [] [] | | |
2062 | + flex | [] [] [] [] [] | | |
2063 | + freedink | [] [] | | |
2064 | + gas | | | |
2065 | + gawk | [] [] [] [] | | |
2066 | + gcal | | | |
2067 | + gcc | [] | | |
2068 | + gettext-examples | [] [] [] [] [] [] [] [] | | |
2069 | + gettext-runtime | [] [] [] [] [] [] [] [] [] | | |
2070 | + gettext-tools | [] [] [] [] [] [] | | |
2071 | + gip | [] [] [] [] [] | | |
2072 | + gjay | | | |
2073 | + gliv | [] [] [] [] [] [] | | |
2074 | + glunarclock | [] [] [] [] [] | | |
2075 | + gnubiff | [] () | | |
2076 | + gnucash | [] () () () | | |
2077 | + gnuedu | [] | | |
2078 | + gnulib | [] [] [] [] | | |
2079 | + gnunet | | | |
2080 | + gnunet-gtk | | | |
2081 | + gnutls | [] [] | | |
2082 | + gold | | | |
2083 | + gpe-aerial | [] [] [] [] [] [] [] | | |
2084 | + gpe-beam | [] [] [] [] [] [] [] | | |
2085 | + gpe-bluetooth | [] [] | | |
2086 | + gpe-calendar | [] [] [] [] | | |
2087 | + gpe-clock | [] [] [] [] [] [] [] [] | | |
2088 | + gpe-conf | [] [] [] [] [] [] [] | | |
2089 | + gpe-contacts | [] [] [] [] [] | | |
2090 | + gpe-edit | [] [] [] | | |
2091 | + gpe-filemanager | [] [] [] | | |
2092 | + gpe-go | [] [] [] [] [] [] [] [] | | |
2093 | + gpe-login | [] [] | | |
2094 | + gpe-ownerinfo | [] [] [] [] [] [] [] [] | | |
2095 | + gpe-package | [] [] | | |
2096 | + gpe-sketchbook | [] [] [] [] [] [] [] | | |
2097 | + gpe-su | [] [] [] [] [] [] [] [] | | |
2098 | + gpe-taskmanager | [] [] [] [] [] [] [] [] | | |
2099 | + gpe-timesheet | [] [] [] [] [] [] [] [] | | |
2100 | + gpe-today | [] [] [] [] [] [] [] [] | | |
2101 | + gpe-todo | [] [] [] [] [] | | |
2102 | + gphoto2 | [] [] [] [] [] [] [] [] | | |
2103 | + gprof | [] [] [] | | |
2104 | + gpsdrive | [] [] | | |
2105 | + gramadoir | [] [] | | |
2106 | + grep | [] [] [] [] | | |
2107 | + grub | [] [] [] | | |
2108 | + gsasl | [] [] [] [] | | |
2109 | + gss | [] [] [] | | |
2110 | + gst-plugins-bad | [] [] [] [] [] [] | | |
2111 | + gst-plugins-base | [] [] [] [] [] | | |
2112 | + gst-plugins-good | [] [] [] [] [] | | |
2113 | + gst-plugins-ugly | [] [] [] [] [] [] | | |
2114 | + gstreamer | [] [] [] [] [] | | |
2115 | + gtick | [] [] [] | | |
2116 | + gtkam | [] [] [] [] [] [] | | |
2117 | + gtkorphan | [] | | |
2118 | + gtkspell | [] [] [] [] [] [] [] [] [] [] | | |
2119 | + gutenprint | [] [] | | |
2120 | + hello | [] [] [] [] | | |
2121 | + help2man | [] [] | | |
2122 | + hylafax | [] | | |
2123 | + idutils | [] [] [] [] [] | | |
2124 | + indent | [] [] [] [] [] [] [] | | |
2125 | + iso_15924 | [] [] [] [] | | |
2126 | + iso_3166 | [] [] [] [] [] () [] [] [] [] [] [] [] [] | | |
2127 | + iso_3166_2 | [] [] [] | | |
2128 | + iso_4217 | [] [] [] [] [] [] [] [] | | |
2129 | + iso_639 | [] [] [] [] [] [] [] [] [] | | |
2130 | + iso_639_3 | [] [] | | |
2131 | + jwhois | [] [] [] [] | | |
2132 | + kbd | [] [] [] | | |
2133 | + keytouch | [] [] [] | | |
2134 | + keytouch-editor | [] [] [] | | |
2135 | + keytouch-keyboa... | [] [] [] | | |
2136 | + klavaro | [] [] | | |
2137 | + latrine | [] [] | | |
2138 | + ld | | | |
2139 | + leafpad | [] [] [] [] [] [] [] [] [] | | |
2140 | + libc | [] [] [] [] | | |
2141 | + libexif | [] [] () [] | | |
2142 | + libextractor | | | |
2143 | + libgnutls | [] [] | | |
2144 | + libgpewidget | [] [] [] | | |
2145 | + libgpg-error | [] [] | | |
2146 | + libgphoto2 | [] [] | | |
2147 | + libgphoto2_port | [] [] [] [] [] | | |
2148 | + libgsasl | [] [] [] [] [] | | |
2149 | + libiconv | [] [] [] [] [] | | |
2150 | + libidn | [] [] | | |
2151 | + lifelines | [] [] | | |
2152 | + liferea | [] [] [] [] [] () () [] | | |
2153 | + lilypond | [] | | |
2154 | + linkdr | [] [] [] | | |
2155 | + lordsawar | | | |
2156 | + lprng | [] | | |
2157 | + lynx | [] [] [] | | |
2158 | + m4 | [] [] [] [] [] | | |
2159 | + mailfromd | [] | | |
2160 | + mailutils | [] | | |
2161 | + make | [] [] [] [] | | |
2162 | + man-db | [] [] [] | | |
2163 | + man-db-manpages | [] [] [] | | |
2164 | + minicom | [] [] [] [] | | |
2165 | + mkisofs | [] [] [] | | |
2166 | + myserver | | | |
2167 | + nano | [] [] [] [] | | |
2168 | + opcodes | [] [] | | |
2169 | + parted | [] [] [] [] | | |
2170 | + pies | [] | | |
2171 | + popt | [] [] [] [] | | |
2172 | + psmisc | [] [] [] | | |
2173 | + pspp | [] [] | | |
2174 | + pwdutils | [] | | |
2175 | + radius | [] [] [] | | |
2176 | + recode | [] [] [] [] [] [] [] [] | | |
2177 | + rosegarden | () () | | |
2178 | + rpm | [] [] [] | | |
2179 | + rush | [] [] | | |
2180 | + sarg | | | |
2181 | + screem | | | |
2182 | + scrollkeeper | [] [] [] [] [] [] [] [] | | |
2183 | + sed | [] [] [] [] [] [] [] [] [] | | |
2184 | + sharutils | [] [] [] [] | | |
2185 | + shishi | [] | | |
2186 | + skencil | [] [] | | |
2187 | + solfege | [] [] [] [] | | |
2188 | + solfege-manual | [] [] [] | | |
2189 | + soundtracker | [] | | |
2190 | + sp | | | |
2191 | + sysstat | [] [] [] [] | | |
2192 | + tar | [] [] [] [] | | |
2193 | + texinfo | [] [] [] [] | | |
2194 | + tin | [] | | |
2195 | + unicode-han-tra... | | | |
2196 | + unicode-transla... | | | |
2197 | + util-linux-ng | [] [] [] [] [] | | |
2198 | + vice | [] | | |
2199 | + vmm | [] | | |
2200 | + vorbis-tools | [] [] | | |
2201 | + wastesedge | [] | | |
2202 | + wdiff | [] [] | | |
2203 | + wget | [] [] [] [] [] [] [] | | |
2204 | + wyslij-po | [] [] [] | | |
2205 | + xchat | [] [] [] [] [] [] [] [] [] | | |
2206 | + xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | | |
2207 | + xkeyboard-config | [] [] [] | | |
2208 | + +---------------------------------------------------+ | |
2209 | + nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr | |
2210 | + 135 10 4 7 105 1 29 62 47 91 3 54 46 9 37 | |
2211 | + | |
2212 | + sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW | |
2213 | + +---------------------------------------------------+ | |
2214 | + a2ps | [] [] [] [] [] | 27 | |
2215 | + aegis | [] | 9 | |
2216 | + ant-phone | [] [] [] [] | 9 | |
2217 | + anubis | [] [] [] [] | 15 | |
2218 | + aspell | [] [] [] | 20 | |
2219 | + bash | [] [] [] | 12 | |
2220 | + bfd | [] | 6 | |
2221 | + bibshelf | [] [] [] | 16 | |
2222 | + binutils | [] [] | 8 | |
2223 | + bison | [] [] | 12 | |
2224 | + bison-runtime | [] [] [] [] [] [] | 29 | |
2225 | + bluez-pin | [] [] [] [] [] [] [] [] | 37 | |
2226 | + bombono-dvd | [] | 4 | |
2227 | + buzztard | [] | 7 | |
2228 | + cflow | [] [] [] | 9 | |
2229 | + clisp | | 10 | |
2230 | + coreutils | [] [] [] [] | 22 | |
2231 | + cpio | [] [] [] [] [] [] | 13 | |
2232 | + cppi | [] [] | 5 | |
2233 | + cpplib | [] [] [] [] [] [] | 14 | |
2234 | + cryptsetup | [] [] | 7 | |
2235 | + dfarc | [] | 9 | |
2236 | + dialog | [] [] [] [] [] [] [] | 30 | |
2237 | + dico | [] | 2 | |
2238 | + diffutils | [] [] [] [] [] [] | 30 | |
2239 | + dink | | 4 | |
2240 | + doodle | [] [] | 7 | |
2241 | + e2fsprogs | [] [] [] | 11 | |
2242 | + enscript | [] [] [] [] | 17 | |
2243 | + exif | [] [] [] | 16 | |
2244 | + fetchmail | [] [] [] | 17 | |
2245 | + findutils | [] [] [] [] [] | 20 | |
2246 | + flex | [] [] [] [] | 15 | |
2247 | + freedink | [] | 10 | |
2248 | + gas | [] | 4 | |
2249 | + gawk | [] [] [] [] | 18 | |
2250 | + gcal | [] [] | 5 | |
2251 | + gcc | [] [] [] | 7 | |
2252 | + gettext-examples | [] [] [] [] [] [] [] | 34 | |
2253 | + gettext-runtime | [] [] [] [] [] [] [] | 29 | |
2254 | + gettext-tools | [] [] [] [] [] [] | 22 | |
2255 | + gip | [] [] [] [] | 22 | |
2256 | + gjay | [] | 3 | |
2257 | + gliv | [] [] [] | 14 | |
2258 | + glunarclock | [] [] [] [] [] | 19 | |
2259 | + gnubiff | [] [] | 4 | |
2260 | + gnucash | () [] () [] () | 10 | |
2261 | + gnuedu | [] [] | 7 | |
2262 | + gnulib | [] [] [] [] | 16 | |
2263 | + gnunet | [] | 1 | |
2264 | + gnunet-gtk | [] [] [] | 5 | |
2265 | + gnutls | [] [] [] | 10 | |
2266 | + gold | [] | 4 | |
2267 | + gpe-aerial | [] [] [] | 18 | |
2268 | + gpe-beam | [] [] [] | 19 | |
2269 | + gpe-bluetooth | [] [] [] | 13 | |
2270 | + gpe-calendar | [] [] [] [] | 12 | |
2271 | + gpe-clock | [] [] [] [] [] | 28 | |
2272 | + gpe-conf | [] [] [] [] | 20 | |
2273 | + gpe-contacts | [] [] [] | 17 | |
2274 | + gpe-edit | [] [] [] | 12 | |
2275 | + gpe-filemanager | [] [] [] [] | 16 | |
2276 | + gpe-go | [] [] [] [] [] | 25 | |
2277 | + gpe-login | [] [] [] | 11 | |
2278 | + gpe-ownerinfo | [] [] [] [] [] | 25 | |
2279 | + gpe-package | [] [] [] | 13 | |
2280 | + gpe-sketchbook | [] [] [] | 20 | |
2281 | + gpe-su | [] [] [] [] [] | 30 | |
2282 | + gpe-taskmanager | [] [] [] [] [] | 29 | |
2283 | + gpe-timesheet | [] [] [] [] [] | 25 | |
2284 | + gpe-today | [] [] [] [] [] [] | 30 | |
2285 | + gpe-todo | [] [] [] [] | 17 | |
2286 | + gphoto2 | [] [] [] [] [] | 24 | |
2287 | + gprof | [] [] [] | 15 | |
2288 | + gpsdrive | [] [] [] | 11 | |
2289 | + gramadoir | [] [] [] | 11 | |
2290 | + grep | [] [] [] | 10 | |
2291 | + grub | [] [] [] | 14 | |
2292 | + gsasl | [] [] [] [] | 14 | |
2293 | + gss | [] [] [] | 11 | |
2294 | + gst-plugins-bad | [] [] [] [] | 26 | |
2295 | + gst-plugins-base | [] [] [] [] [] | 24 | |
2296 | + gst-plugins-good | [] [] [] [] | 24 | |
2297 | + gst-plugins-ugly | [] [] [] [] [] | 29 | |
2298 | + gstreamer | [] [] [] [] | 22 | |
2299 | + gtick | [] [] [] | 13 | |
2300 | + gtkam | [] [] [] | 20 | |
2301 | + gtkorphan | [] [] [] | 14 | |
2302 | + gtkspell | [] [] [] [] [] [] [] [] [] | 45 | |
2303 | + gutenprint | [] | 10 | |
2304 | + hello | [] [] [] [] [] [] | 21 | |
2305 | + help2man | [] [] | 7 | |
2306 | + hylafax | [] | 5 | |
2307 | + idutils | [] [] [] [] | 17 | |
2308 | + indent | [] [] [] [] [] [] | 30 | |
2309 | + iso_15924 | () [] () [] [] | 16 | |
2310 | + iso_3166 | [] [] () [] [] () [] [] [] () | 53 | |
2311 | + iso_3166_2 | () [] () [] | 9 | |
2312 | + iso_4217 | [] () [] [] () [] [] | 26 | |
2313 | + iso_639 | [] [] [] () [] () [] [] [] [] | 38 | |
2314 | + iso_639_3 | [] () | 8 | |
2315 | + jwhois | [] [] [] [] [] | 16 | |
2316 | + kbd | [] [] [] [] [] | 15 | |
2317 | + keytouch | [] [] [] | 16 | |
2318 | + keytouch-editor | [] [] [] | 14 | |
2319 | + keytouch-keyboa... | [] [] [] | 14 | |
2320 | + klavaro | [] | 11 | |
2321 | + latrine | [] [] [] | 10 | |
2322 | + ld | [] [] [] [] | 11 | |
2323 | + leafpad | [] [] [] [] [] [] | 33 | |
2324 | + libc | [] [] [] [] [] | 21 | |
2325 | + libexif | [] () | 7 | |
2326 | + libextractor | [] | 1 | |
2327 | + libgnutls | [] [] [] | 9 | |
2328 | + libgpewidget | [] [] [] | 14 | |
2329 | + libgpg-error | [] [] [] | 9 | |
2330 | + libgphoto2 | [] [] | 8 | |
2331 | + libgphoto2_port | [] [] [] [] | 14 | |
2332 | + libgsasl | [] [] [] | 13 | |
2333 | + libiconv | [] [] [] [] | 21 | |
2334 | + libidn | () [] [] | 11 | |
2335 | + lifelines | [] | 4 | |
2336 | + liferea | [] [] [] | 21 | |
2337 | + lilypond | [] | 7 | |
2338 | + linkdr | [] [] [] [] [] | 17 | |
2339 | + lordsawar | | 1 | |
2340 | + lprng | [] | 3 | |
2341 | + lynx | [] [] [] [] | 17 | |
2342 | + m4 | [] [] [] [] | 19 | |
2343 | + mailfromd | [] [] | 3 | |
2344 | + mailutils | [] | 5 | |
2345 | + make | [] [] [] [] | 21 | |
2346 | + man-db | [] [] [] | 8 | |
2347 | + man-db-manpages | | 4 | |
2348 | + minicom | [] [] | 16 | |
2349 | + mkisofs | [] [] | 9 | |
2350 | + myserver | | 0 | |
2351 | + nano | [] [] [] [] | 21 | |
2352 | + opcodes | [] [] [] | 11 | |
2353 | + parted | [] [] [] [] [] | 15 | |
2354 | + pies | [] [] | 3 | |
2355 | + popt | [] [] [] [] [] [] | 27 | |
2356 | + psmisc | [] [] | 11 | |
2357 | + pspp | | 4 | |
2358 | + pwdutils | [] [] | 6 | |
2359 | + radius | [] [] | 9 | |
2360 | + recode | [] [] [] [] | 28 | |
2361 | + rosegarden | () | 0 | |
2362 | + rpm | [] [] [] | 11 | |
2363 | + rush | [] [] | 4 | |
2364 | + sarg | | 1 | |
2365 | + screem | [] | 3 | |
2366 | + scrollkeeper | [] [] [] [] [] | 27 | |
2367 | + sed | [] [] [] [] [] | 30 | |
2368 | + sharutils | [] [] [] [] [] | 22 | |
2369 | + shishi | [] | 3 | |
2370 | + skencil | [] [] | 7 | |
2371 | + solfege | [] [] [] [] | 16 | |
2372 | + solfege-manual | [] | 8 | |
2373 | + soundtracker | [] [] [] | 9 | |
2374 | + sp | [] | 3 | |
2375 | + sysstat | [] [] | 15 | |
2376 | + tar | [] [] [] [] [] [] | 23 | |
2377 | + texinfo | [] [] [] [] [] | 17 | |
2378 | + tin | | 4 | |
2379 | + unicode-han-tra... | | 0 | |
2380 | + unicode-transla... | | 2 | |
2381 | + util-linux-ng | [] [] [] [] | 20 | |
2382 | + vice | () () | 1 | |
2383 | + vmm | [] | 4 | |
2384 | + vorbis-tools | [] | 6 | |
2385 | + wastesedge | | 2 | |
2386 | + wdiff | [] [] | 7 | |
2387 | + wget | [] [] [] [] [] | 26 | |
2388 | + wyslij-po | [] [] | 8 | |
2389 | + xchat | [] [] [] [] [] [] | 36 | |
2390 | + xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | 63 | |
2391 | + xkeyboard-config | [] [] [] | 22 | |
2392 | + +---------------------------------------------------+ | |
2393 | + 85 teams sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW | |
2394 | + 178 domains 119 1 3 3 0 10 65 51 155 17 98 7 41 2618 | |
2395 | ||
2396 | Some counters in the preceding matrix are higher than the number of | |
2397 | visible blocks let us expect. This is because a few extra PO files are | |
2398 | @@ -960,12 +1256,12 @@ | |
2399 | lag between the mere existence a PO file and its wide availability in a | |
2400 | distribution. | |
2401 | ||
2402 | - If April 2005 seems to be old, you may fetch a more recent copy of | |
2403 | + If June 2010 seems to be old, you may fetch a more recent copy of | |
2404 | this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date | |
2405 | matrix with full percentage details can be found at | |
2406 | -`http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'. | |
2407 | +`http://translationproject.org/extra/matrix.html'. | |
2408 | ||
2409 | -1.6 Using `gettext' in new packages | |
2410 | +1.5 Using `gettext' in new packages | |
2411 | =================================== | |
2412 | ||
2413 | If you are writing a freely available program and want to | |
2414 | @@ -981,6 +1277,6 @@ | |
2415 | Free Translation Project is also available for packages which are not | |
2416 | developed inside the GNU project. Therefore the information given above | |
2417 | applies also for every other Free Software Project. Contact | |
2418 | -`translation@iro.umontreal.ca' to make the `.pot' files available to | |
2419 | -the translation teams. | |
2420 | +`coordinator@translationproject.org' to make the `.pot' files available | |
2421 | +to the translation teams. | |
2422 | ||
2423 | AC_DEFUN([AC_LIB_READLINE], [ | |
2424 | diff -urN BUILD/abook-0.6.0pre2/aclocal.m4 abook/aclocal.m4 | |
2425 | --- BUILD/abook-0.6.0pre2/aclocal.m4 2006-09-05 10:19:33.000000000 +0200 | |
2426 | +++ abook/aclocal.m4 2013-03-13 15:07:45.000000000 +0100 | |
2427 | @@ -1,7 +1,8 @@ | |
2428 | -# generated automatically by aclocal 1.9.3 -*- Autoconf -*- | |
2429 | +# generated automatically by aclocal 1.11.6 -*- Autoconf -*- | |
2430 | ||
2431 | -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 | |
2432 | -# Free Software Foundation, Inc. | |
2433 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
2434 | +# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, | |
2435 | +# Inc. | |
2436 | # This file is free software; the Free Software Foundation | |
2437 | # gives unlimited permission to copy and/or distribute it, | |
2438 | # with or without modifications, as long as this notice is preserved. | |
2439 | @@ -11,55 +12,62 @@ | |
2440 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
2441 | # PARTICULAR PURPOSE. | |
2442 | ||
2443 | -# -*- Autoconf -*- | |
2444 | -# Copyright (C) 2002, 2003 Free Software Foundation, Inc. | |
2445 | -# Generated from amversion.in; do not edit by hand. | |
2446 | - | |
2447 | -# This program is free software; you can redistribute it and/or modify | |
2448 | -# it under the terms of the GNU General Public License as published by | |
2449 | -# the Free Software Foundation; either version 2, or (at your option) | |
2450 | -# any later version. | |
2451 | +m4_ifndef([AC_AUTOCONF_VERSION], | |
2452 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
2453 | +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, | |
2454 | +[m4_warning([this file was generated for autoconf 2.69. | |
2455 | +You have another version of autoconf. It may work, but is not guaranteed to. | |
2456 | +If you have problems, you may need to regenerate the build system entirely. | |
2457 | +To do so, use the procedure documented by the package, typically `autoreconf'.])]) | |
2458 | ||
2459 | -# This program is distributed in the hope that it will be useful, | |
2460 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
2461 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
2462 | -# GNU General Public License for more details. | |
2463 | - | |
2464 | -# You should have received a copy of the GNU General Public License | |
2465 | -# along with this program; if not, write to the Free Software | |
2466 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
2467 | +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software | |
2468 | +# Foundation, Inc. | |
2469 | +# | |
2470 | +# This file is free software; the Free Software Foundation | |
2471 | +# gives unlimited permission to copy and/or distribute it, | |
2472 | +# with or without modifications, as long as this notice is preserved. | |
2473 | + | |
2474 | +# serial 1 | |
2475 | ||
2476 | # AM_AUTOMAKE_VERSION(VERSION) | |
2477 | # ---------------------------- | |
2478 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | |
2479 | # generated from the m4 files accompanying Automake X.Y. | |
2480 | -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) | |
2481 | +# (This private macro should not be called outside this file.) | |
2482 | +AC_DEFUN([AM_AUTOMAKE_VERSION], | |
2483 | +[am__api_version='1.11' | |
2484 | +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
2485 | +dnl require some minimum version. Point them to the right macro. | |
2486 | +m4_if([$1], [1.11.6], [], | |
2487 | + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
2488 | +]) | |
2489 | + | |
2490 | +# _AM_AUTOCONF_VERSION(VERSION) | |
2491 | +# ----------------------------- | |
2492 | +# aclocal traces this macro to find the Autoconf version. | |
2493 | +# This is a private macro too. Using m4_define simplifies | |
2494 | +# the logic in aclocal, which can simply ignore this definition. | |
2495 | +m4_define([_AM_AUTOCONF_VERSION], []) | |
2496 | ||
2497 | # AM_SET_CURRENT_AUTOMAKE_VERSION | |
2498 | # ------------------------------- | |
2499 | -# Call AM_AUTOMAKE_VERSION so it can be traced. | |
2500 | -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | |
2501 | +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |
2502 | +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | |
2503 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
2504 | - [AM_AUTOMAKE_VERSION([1.9.3])]) | |
2505 | - | |
2506 | -# AM_AUX_DIR_EXPAND | |
2507 | +[AM_AUTOMAKE_VERSION([1.11.6])dnl | |
2508 | +m4_ifndef([AC_AUTOCONF_VERSION], | |
2509 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
2510 | +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |
2511 | ||
2512 | -# Copyright (C) 2001, 2003 Free Software Foundation, Inc. | |
2513 | +# AM_AUX_DIR_EXPAND -*- Autoconf -*- | |
2514 | ||
2515 | -# This program is free software; you can redistribute it and/or modify | |
2516 | -# it under the terms of the GNU General Public License as published by | |
2517 | -# the Free Software Foundation; either version 2, or (at your option) | |
2518 | -# any later version. | |
2519 | +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. | |
2520 | +# | |
2521 | +# This file is free software; the Free Software Foundation | |
2522 | +# gives unlimited permission to copy and/or distribute it, | |
2523 | +# with or without modifications, as long as this notice is preserved. | |
2524 | ||
2525 | -# This program is distributed in the hope that it will be useful, | |
2526 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
2527 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
2528 | -# GNU General Public License for more details. | |
2529 | - | |
2530 | -# You should have received a copy of the GNU General Public License | |
2531 | -# along with this program; if not, write to the Free Software | |
2532 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
2533 | -# 02111-1307, USA. | |
2534 | +# serial 1 | |
2535 | ||
2536 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | |
2537 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | |
2538 | @@ -106,26 +114,16 @@ | |
2539 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2540 | ]) | |
2541 | ||
2542 | -# AM_CONDITIONAL -*- Autoconf -*- | |
2543 | - | |
2544 | -# Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc. | |
2545 | +# AM_CONDITIONAL -*- Autoconf -*- | |
2546 | ||
2547 | -# This program is free software; you can redistribute it and/or modify | |
2548 | -# it under the terms of the GNU General Public License as published by | |
2549 | -# the Free Software Foundation; either version 2, or (at your option) | |
2550 | -# any later version. | |
2551 | - | |
2552 | -# This program is distributed in the hope that it will be useful, | |
2553 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
2554 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
2555 | -# GNU General Public License for more details. | |
2556 | - | |
2557 | -# You should have received a copy of the GNU General Public License | |
2558 | -# along with this program; if not, write to the Free Software | |
2559 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
2560 | -# 02111-1307, USA. | |
2561 | +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 | |
2562 | +# Free Software Foundation, Inc. | |
2563 | +# | |
2564 | +# This file is free software; the Free Software Foundation | |
2565 | +# gives unlimited permission to copy and/or distribute it, | |
2566 | +# with or without modifications, as long as this notice is preserved. | |
2567 | ||
2568 | -# serial 6 | |
2569 | +# serial 9 | |
2570 | ||
2571 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | |
2572 | # ------------------------------------- | |
2573 | @@ -134,8 +132,11 @@ | |
2574 | [AC_PREREQ(2.52)dnl | |
2575 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
2576 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
2577 | -AC_SUBST([$1_TRUE]) | |
2578 | -AC_SUBST([$1_FALSE]) | |
2579 | +AC_SUBST([$1_TRUE])dnl | |
2580 | +AC_SUBST([$1_FALSE])dnl | |
2581 | +_AM_SUBST_NOTMAKE([$1_TRUE])dnl | |
2582 | +_AM_SUBST_NOTMAKE([$1_FALSE])dnl | |
2583 | +m4_define([_AM_COND_VALUE_$1], [$2])dnl | |
2584 | if $2; then | |
2585 | $1_TRUE= | |
2586 | $1_FALSE='#' | |
2587 | @@ -149,26 +150,14 @@ | |
2588 | Usually this means the macro was only invoked conditionally.]]) | |
2589 | fi])]) | |
2590 | ||
2591 | -# serial 7 -*- Autoconf -*- | |
2592 | - | |
2593 | -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 | |
2594 | -# Free Software Foundation, Inc. | |
2595 | - | |
2596 | -# This program is free software; you can redistribute it and/or modify | |
2597 | -# it under the terms of the GNU General Public License as published by | |
2598 | -# the Free Software Foundation; either version 2, or (at your option) | |
2599 | -# any later version. | |
2600 | - | |
2601 | -# This program is distributed in the hope that it will be useful, | |
2602 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
2603 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
2604 | -# GNU General Public License for more details. | |
2605 | - | |
2606 | -# You should have received a copy of the GNU General Public License | |
2607 | -# along with this program; if not, write to the Free Software | |
2608 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
2609 | -# 02111-1307, USA. | |
2610 | +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, | |
2611 | +# 2010, 2011 Free Software Foundation, Inc. | |
2612 | +# | |
2613 | +# This file is free software; the Free Software Foundation | |
2614 | +# gives unlimited permission to copy and/or distribute it, | |
2615 | +# with or without modifications, as long as this notice is preserved. | |
2616 | ||
2617 | +# serial 12 | |
2618 | ||
2619 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | |
2620 | # written in clear, in which case automake, when reading aclocal.m4, | |
2621 | @@ -177,7 +166,6 @@ | |
2622 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | |
2623 | ||
2624 | ||
2625 | - | |
2626 | # _AM_DEPENDENCIES(NAME) | |
2627 | # ---------------------- | |
2628 | # See how the compiler implements dependency checking. | |
2629 | @@ -197,6 +185,7 @@ | |
2630 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | |
2631 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | |
2632 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
2633 | + [$1], UPC, [depcc="$UPC" am_compiler_list=], | |
2634 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
2635 | [depcc="$$1" am_compiler_list=]) | |
2636 | ||
2637 | @@ -208,6 +197,7 @@ | |
2638 | # instance it was reported that on HP-UX the gcc test will end up | |
2639 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2640 | # in D'. | |
2641 | + rm -rf conftest.dir | |
2642 | mkdir conftest.dir | |
2643 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2644 | # using a relative directory. | |
2645 | @@ -225,6 +215,16 @@ | |
2646 | if test "$am_compiler_list" = ""; then | |
2647 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | |
2648 | fi | |
2649 | + am__universal=false | |
2650 | + m4_case([$1], [CC], | |
2651 | + [case " $depcc " in #( | |
2652 | + *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
2653 | + esac], | |
2654 | + [CXX], | |
2655 | + [case " $depcc " in #( | |
2656 | + *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
2657 | + esac]) | |
2658 | + | |
2659 | for depmode in $am_compiler_list; do | |
2660 | # Setup a source with many dependencies, because some compilers | |
2661 | # like to wrap large dependency lists on column 80 (with \), and | |
2662 | @@ -242,7 +242,17 @@ | |
2663 | done | |
2664 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
2665 | ||
2666 | + # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2667 | + # mode. It turns out that the SunPro C++ compiler does not properly | |
2668 | + # handle `-M -o', and we need to detect this. Also, some Intel | |
2669 | + # versions had trouble with output in subdirs | |
2670 | + am__obj=sub/conftest.${OBJEXT-o} | |
2671 | + am__minus_obj="-o $am__obj" | |
2672 | case $depmode in | |
2673 | + gcc) | |
2674 | + # This depmode causes a compiler race in universal mode. | |
2675 | + test "$am__universal" = false || continue | |
2676 | + ;; | |
2677 | nosideeffect) | |
2678 | # after this tag, mechanisms are not by side-effect, so they'll | |
2679 | # only be used when explicitly requested | |
2680 | @@ -252,18 +262,23 @@ | |
2681 | break | |
2682 | fi | |
2683 | ;; | |
2684 | + msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
2685 | + # This compiler won't grok `-c -o', but also, the minuso test has | |
2686 | + # not run yet. These depmodes are late enough in the game, and | |
2687 | + # so weak that their functioning should not be impacted. | |
2688 | + am__obj=conftest.${OBJEXT-o} | |
2689 | + am__minus_obj= | |
2690 | + ;; | |
2691 | none) break ;; | |
2692 | esac | |
2693 | - # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2694 | - # mode. It turns out that the SunPro C++ compiler does not properly | |
2695 | - # handle `-M -o', and we need to detect this. | |
2696 | if depmode=$depmode \ | |
2697 | - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
2698 | + source=sub/conftest.c object=$am__obj \ | |
2699 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
2700 | - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
2701 | + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
2702 | >/dev/null 2>conftest.err && | |
2703 | + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
2704 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
2705 | - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
2706 | + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
2707 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2708 | # icc doesn't choke on unknown options, it will just issue warnings | |
2709 | # or remarks (even with -Werror). So we grep stderr for any message | |
2710 | @@ -312,74 +327,79 @@ | |
2711 | if test "x$enable_dependency_tracking" != xno; then | |
2712 | am_depcomp="$ac_aux_dir/depcomp" | |
2713 | AMDEPBACKSLASH='\' | |
2714 | + am__nodep='_no' | |
2715 | fi | |
2716 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | |
2717 | -AC_SUBST([AMDEPBACKSLASH]) | |
2718 | +AC_SUBST([AMDEPBACKSLASH])dnl | |
2719 | +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |
2720 | +AC_SUBST([am__nodep])dnl | |
2721 | +_AM_SUBST_NOTMAKE([am__nodep])dnl | |
2722 | ]) | |
2723 | ||
2724 | -# Generate code to set up dependency tracking. -*- Autoconf -*- | |
2725 | - | |
2726 | -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 | |
2727 | -# Free Software Foundation, Inc. | |
2728 | - | |
2729 | -# This program is free software; you can redistribute it and/or modify | |
2730 | -# it under the terms of the GNU General Public License as published by | |
2731 | -# the Free Software Foundation; either version 2, or (at your option) | |
2732 | -# any later version. | |
2733 | +# Generate code to set up dependency tracking. -*- Autoconf -*- | |
2734 | ||
2735 | -# This program is distributed in the hope that it will be useful, | |
2736 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
2737 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
2738 | -# GNU General Public License for more details. | |
2739 | - | |
2740 | -# You should have received a copy of the GNU General Public License | |
2741 | -# along with this program; if not, write to the Free Software | |
2742 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
2743 | -# 02111-1307, USA. | |
2744 | +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
2745 | +# Free Software Foundation, Inc. | |
2746 | +# | |
2747 | +# This file is free software; the Free Software Foundation | |
2748 | +# gives unlimited permission to copy and/or distribute it, | |
2749 | +# with or without modifications, as long as this notice is preserved. | |
2750 | ||
2751 | -#serial 2 | |
2752 | +#serial 5 | |
2753 | ||
2754 | # _AM_OUTPUT_DEPENDENCY_COMMANDS | |
2755 | # ------------------------------ | |
2756 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | |
2757 | -[for mf in $CONFIG_FILES; do | |
2758 | - # Strip MF so we end up with the name of the file. | |
2759 | - mf=`echo "$mf" | sed -e 's/:.*$//'` | |
2760 | - # Check whether this is an Automake generated Makefile or not. | |
2761 | - # We used to match only the files named `Makefile.in', but | |
2762 | - # some people rename them; so instead we look at the file content. | |
2763 | - # Grep'ing the first line is not enough: some people post-process | |
2764 | - # each Makefile.in and add a new line on top of each file to say so. | |
2765 | - # So let's grep whole file. | |
2766 | - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
2767 | - dirpart=`AS_DIRNAME("$mf")` | |
2768 | - else | |
2769 | - continue | |
2770 | - fi | |
2771 | - # Extract the definition of DEPDIR, am__include, and am__quote | |
2772 | - # from the Makefile without running `make'. | |
2773 | - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
2774 | - test -z "$DEPDIR" && continue | |
2775 | - am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
2776 | - test -z "am__include" && continue | |
2777 | - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
2778 | - # When using ansi2knr, U may be empty or an underscore; expand it | |
2779 | - U=`sed -n 's/^U = //p' < "$mf"` | |
2780 | - # Find all dependency output files, they are included files with | |
2781 | - # $(DEPDIR) in their names. We invoke sed twice because it is the | |
2782 | - # simplest approach to changing $(DEPDIR) to its actual value in the | |
2783 | - # expansion. | |
2784 | - for file in `sed -n " | |
2785 | - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
2786 | - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
2787 | - # Make sure the directory exists. | |
2788 | - test -f "$dirpart/$file" && continue | |
2789 | - fdir=`AS_DIRNAME(["$file"])` | |
2790 | - AS_MKDIR_P([$dirpart/$fdir]) | |
2791 | - # echo "creating $dirpart/$file" | |
2792 | - echo '# dummy' > "$dirpart/$file" | |
2793 | +[{ | |
2794 | + # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
2795 | + # are listed without --file. Let's play safe and only enable the eval | |
2796 | + # if we detect the quoting. | |
2797 | + case $CONFIG_FILES in | |
2798 | + *\'*) eval set x "$CONFIG_FILES" ;; | |
2799 | + *) set x $CONFIG_FILES ;; | |
2800 | + esac | |
2801 | + shift | |
2802 | + for mf | |
2803 | + do | |
2804 | + # Strip MF so we end up with the name of the file. | |
2805 | + mf=`echo "$mf" | sed -e 's/:.*$//'` | |
2806 | + # Check whether this is an Automake generated Makefile or not. | |
2807 | + # We used to match only the files named `Makefile.in', but | |
2808 | + # some people rename them; so instead we look at the file content. | |
2809 | + # Grep'ing the first line is not enough: some people post-process | |
2810 | + # each Makefile.in and add a new line on top of each file to say so. | |
2811 | + # Grep'ing the whole file is not good either: AIX grep has a line | |
2812 | + # limit of 2048, but all sed's we know have understand at least 4000. | |
2813 | + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
2814 | + dirpart=`AS_DIRNAME("$mf")` | |
2815 | + else | |
2816 | + continue | |
2817 | + fi | |
2818 | + # Extract the definition of DEPDIR, am__include, and am__quote | |
2819 | + # from the Makefile without running `make'. | |
2820 | + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
2821 | + test -z "$DEPDIR" && continue | |
2822 | + am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
2823 | + test -z "am__include" && continue | |
2824 | + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
2825 | + # When using ansi2knr, U may be empty or an underscore; expand it | |
2826 | + U=`sed -n 's/^U = //p' < "$mf"` | |
2827 | + # Find all dependency output files, they are included files with | |
2828 | + # $(DEPDIR) in their names. We invoke sed twice because it is the | |
2829 | + # simplest approach to changing $(DEPDIR) to its actual value in the | |
2830 | + # expansion. | |
2831 | + for file in `sed -n " | |
2832 | + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
2833 | + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
2834 | + # Make sure the directory exists. | |
2835 | + test -f "$dirpart/$file" && continue | |
2836 | + fdir=`AS_DIRNAME(["$file"])` | |
2837 | + AS_MKDIR_P([$dirpart/$fdir]) | |
2838 | + # echo "creating $dirpart/$file" | |
2839 | + echo '# dummy' > "$dirpart/$file" | |
2840 | + done | |
2841 | done | |
2842 | -done | |
2843 | +} | |
2844 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | |
2845 | ||
2846 | ||
2847 | @@ -396,55 +416,20 @@ | |
2848 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | |
2849 | ]) | |
2850 | ||
2851 | -# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- | |
2852 | +# Do all the work for Automake. -*- Autoconf -*- | |
2853 | ||
2854 | -# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc. | |
2855 | - | |
2856 | -# This program is free software; you can redistribute it and/or modify | |
2857 | -# it under the terms of the GNU General Public License as published by | |
2858 | -# the Free Software Foundation; either version 2, or (at your option) | |
2859 | -# any later version. | |
2860 | - | |
2861 | -# This program is distributed in the hope that it will be useful, | |
2862 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
2863 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
2864 | -# GNU General Public License for more details. | |
2865 | - | |
2866 | -# You should have received a copy of the GNU General Public License | |
2867 | -# along with this program; if not, write to the Free Software | |
2868 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
2869 | -# 02111-1307, USA. | |
2870 | - | |
2871 | -# serial 7 | |
2872 | - | |
2873 | -# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. | |
2874 | -AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) | |
2875 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
2876 | +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. | |
2877 | +# | |
2878 | +# This file is free software; the Free Software Foundation | |
2879 | +# gives unlimited permission to copy and/or distribute it, | |
2880 | +# with or without modifications, as long as this notice is preserved. | |
2881 | ||
2882 | -# Do all the work for Automake. -*- Autoconf -*- | |
2883 | +# serial 16 | |
2884 | ||
2885 | -# This macro actually does too much some checks are only needed if | |
2886 | +# This macro actually does too much. Some checks are only needed if | |
2887 | # your package does certain things. But this isn't really a big deal. | |
2888 | ||
2889 | -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 | |
2890 | -# Free Software Foundation, Inc. | |
2891 | - | |
2892 | -# This program is free software; you can redistribute it and/or modify | |
2893 | -# it under the terms of the GNU General Public License as published by | |
2894 | -# the Free Software Foundation; either version 2, or (at your option) | |
2895 | -# any later version. | |
2896 | - | |
2897 | -# This program is distributed in the hope that it will be useful, | |
2898 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
2899 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
2900 | -# GNU General Public License for more details. | |
2901 | - | |
2902 | -# You should have received a copy of the GNU General Public License | |
2903 | -# along with this program; if not, write to the Free Software | |
2904 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
2905 | -# 02111-1307, USA. | |
2906 | - | |
2907 | -# serial 11 | |
2908 | - | |
2909 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
2910 | # AM_INIT_AUTOMAKE([OPTIONS]) | |
2911 | # ----------------------------------------------- | |
2912 | @@ -457,16 +442,20 @@ | |
2913 | # arguments mandatory, and then we can depend on a new Autoconf | |
2914 | # release and drop the old call support. | |
2915 | AC_DEFUN([AM_INIT_AUTOMAKE], | |
2916 | -[AC_PREREQ([2.58])dnl | |
2917 | +[AC_PREREQ([2.62])dnl | |
2918 | dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
2919 | dnl the ones we care about. | |
2920 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
2921 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
2922 | AC_REQUIRE([AC_PROG_INSTALL])dnl | |
2923 | -# test to see if srcdir already configured | |
2924 | -if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2925 | - test -f $srcdir/config.status; then | |
2926 | - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
2927 | +if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2928 | + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2929 | + # is not polluted with repeated "-I." | |
2930 | + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
2931 | + # test to see if srcdir already configured | |
2932 | + if test -f $srcdir/config.status; then | |
2933 | + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
2934 | + fi | |
2935 | fi | |
2936 | ||
2937 | # test whether we have cygpath | |
2938 | @@ -486,6 +475,9 @@ | |
2939 | AC_SUBST([PACKAGE], [$1])dnl | |
2940 | AC_SUBST([VERSION], [$2])], | |
2941 | [_AM_SET_OPTIONS([$1])dnl | |
2942 | +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
2943 | +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | |
2944 | + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
2945 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
2946 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
2947 | ||
2948 | @@ -501,8 +493,8 @@ | |
2949 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | |
2950 | AM_MISSING_PROG(AUTOHEADER, autoheader) | |
2951 | AM_MISSING_PROG(MAKEINFO, makeinfo) | |
2952 | -AM_PROG_INSTALL_SH | |
2953 | -AM_PROG_INSTALL_STRIP | |
2954 | +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
2955 | +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | |
2956 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl | |
2957 | # We need awk for the "check" target. The system "awk" is bad on | |
2958 | # some platforms. | |
2959 | @@ -510,19 +502,36 @@ | |
2960 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
2961 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
2962 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
2963 | - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
2964 | - [_AM_PROG_TAR([v7])])]) | |
2965 | + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
2966 | + [_AM_PROG_TAR([v7])])]) | |
2967 | _AM_IF_OPTION([no-dependencies],, | |
2968 | [AC_PROVIDE_IFELSE([AC_PROG_CC], | |
2969 | - [_AM_DEPENDENCIES(CC)], | |
2970 | - [define([AC_PROG_CC], | |
2971 | - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |
2972 | + [_AM_DEPENDENCIES(CC)], | |
2973 | + [define([AC_PROG_CC], | |
2974 | + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |
2975 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
2976 | - [_AM_DEPENDENCIES(CXX)], | |
2977 | - [define([AC_PROG_CXX], | |
2978 | - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
2979 | -]) | |
2980 | -]) | |
2981 | + [_AM_DEPENDENCIES(CXX)], | |
2982 | + [define([AC_PROG_CXX], | |
2983 | + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
2984 | +AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
2985 | + [_AM_DEPENDENCIES(OBJC)], | |
2986 | + [define([AC_PROG_OBJC], | |
2987 | + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | |
2988 | +]) | |
2989 | +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |
2990 | +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the | |
2991 | +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |
2992 | +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
2993 | +AC_CONFIG_COMMANDS_PRE(dnl | |
2994 | +[m4_provide_if([_AM_COMPILER_EXEEXT], | |
2995 | + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | |
2996 | +]) | |
2997 | + | |
2998 | +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
2999 | +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | |
3000 | +dnl mangled by Autoconf and run in a shell conditional statement. | |
3001 | +m4_define([_AC_COMPILER_EXEEXT], | |
3002 | +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | |
3003 | ||
3004 | ||
3005 | # When config.status generates a header, we must update the stamp-h file. | |
3006 | @@ -534,62 +543,49 @@ | |
3007 | # our stamp files there. | |
3008 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
3009 | [# Compute $1's index in $config_headers. | |
3010 | +_am_arg=$1 | |
3011 | _am_stamp_count=1 | |
3012 | for _am_header in $config_headers :; do | |
3013 | case $_am_header in | |
3014 | - $1 | $1:* ) | |
3015 | + $_am_arg | $_am_arg:* ) | |
3016 | break ;; | |
3017 | * ) | |
3018 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
3019 | esac | |
3020 | done | |
3021 | -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) | |
3022 | +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |
3023 | + | |
3024 | +# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, | |
3025 | +# Inc. | |
3026 | +# | |
3027 | +# This file is free software; the Free Software Foundation | |
3028 | +# gives unlimited permission to copy and/or distribute it, | |
3029 | +# with or without modifications, as long as this notice is preserved. | |
3030 | + | |
3031 | +# serial 1 | |
3032 | ||
3033 | # AM_PROG_INSTALL_SH | |
3034 | # ------------------ | |
3035 | # Define $install_sh. | |
3036 | - | |
3037 | -# Copyright (C) 2001, 2003 Free Software Foundation, Inc. | |
3038 | - | |
3039 | -# This program is free software; you can redistribute it and/or modify | |
3040 | -# it under the terms of the GNU General Public License as published by | |
3041 | -# the Free Software Foundation; either version 2, or (at your option) | |
3042 | -# any later version. | |
3043 | - | |
3044 | -# This program is distributed in the hope that it will be useful, | |
3045 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
3046 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
3047 | -# GNU General Public License for more details. | |
3048 | - | |
3049 | -# You should have received a copy of the GNU General Public License | |
3050 | -# along with this program; if not, write to the Free Software | |
3051 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
3052 | -# 02111-1307, USA. | |
3053 | - | |
3054 | AC_DEFUN([AM_PROG_INSTALL_SH], | |
3055 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
3056 | -install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
3057 | +if test x"${install_sh}" != xset; then | |
3058 | + case $am_aux_dir in | |
3059 | + *\ * | *\ *) | |
3060 | + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3061 | + *) | |
3062 | + install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3063 | + esac | |
3064 | +fi | |
3065 | AC_SUBST(install_sh)]) | |
3066 | ||
3067 | -# -*- Autoconf -*- | |
3068 | -# Copyright (C) 2003 Free Software Foundation, Inc. | |
3069 | - | |
3070 | -# This program is free software; you can redistribute it and/or modify | |
3071 | -# it under the terms of the GNU General Public License as published by | |
3072 | -# the Free Software Foundation; either version 2, or (at your option) | |
3073 | -# any later version. | |
3074 | - | |
3075 | -# This program is distributed in the hope that it will be useful, | |
3076 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
3077 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
3078 | -# GNU General Public License for more details. | |
3079 | - | |
3080 | -# You should have received a copy of the GNU General Public License | |
3081 | -# along with this program; if not, write to the Free Software | |
3082 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
3083 | -# 02111-1307, USA. | |
3084 | +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. | |
3085 | +# | |
3086 | +# This file is free software; the Free Software Foundation | |
3087 | +# gives unlimited permission to copy and/or distribute it, | |
3088 | +# with or without modifications, as long as this notice is preserved. | |
3089 | ||
3090 | -# serial 1 | |
3091 | +# serial 2 | |
3092 | ||
3093 | # Check whether the underlying file-system supports filenames | |
3094 | # with a leading dot. For instance MS-DOS doesn't. | |
3095 | @@ -604,26 +600,15 @@ | |
3096 | rmdir .tst 2>/dev/null | |
3097 | AC_SUBST([am__leading_dot])]) | |
3098 | ||
3099 | -# Check to see how 'make' treats includes. -*- Autoconf -*- | |
3100 | - | |
3101 | -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. | |
3102 | +# Check to see how 'make' treats includes. -*- Autoconf -*- | |
3103 | ||
3104 | -# This program is free software; you can redistribute it and/or modify | |
3105 | -# it under the terms of the GNU General Public License as published by | |
3106 | -# the Free Software Foundation; either version 2, or (at your option) | |
3107 | -# any later version. | |
3108 | - | |
3109 | -# This program is distributed in the hope that it will be useful, | |
3110 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
3111 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
3112 | -# GNU General Public License for more details. | |
3113 | - | |
3114 | -# You should have received a copy of the GNU General Public License | |
3115 | -# along with this program; if not, write to the Free Software | |
3116 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
3117 | -# 02111-1307, USA. | |
3118 | +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. | |
3119 | +# | |
3120 | +# This file is free software; the Free Software Foundation | |
3121 | +# gives unlimited permission to copy and/or distribute it, | |
3122 | +# with or without modifications, as long as this notice is preserved. | |
3123 | ||
3124 | -# serial 2 | |
3125 | +# serial 4 | |
3126 | ||
3127 | # AM_MAKE_INCLUDE() | |
3128 | # ----------------- | |
3129 | @@ -632,7 +617,7 @@ | |
3130 | [am_make=${MAKE-make} | |
3131 | cat > confinc << 'END' | |
3132 | am__doit: | |
3133 | - @echo done | |
3134 | + @echo this is the am__doit target | |
3135 | .PHONY: am__doit | |
3136 | END | |
3137 | # If we don't find an include directive, just comment out the code. | |
3138 | @@ -642,24 +627,24 @@ | |
3139 | _am_result=none | |
3140 | # First try GNU make style include. | |
3141 | echo "include confinc" > confmf | |
3142 | -# We grep out `Entering directory' and `Leaving directory' | |
3143 | -# messages which can occur if `w' ends up in MAKEFLAGS. | |
3144 | -# In particular we don't look at `^make:' because GNU make might | |
3145 | -# be invoked under some other name (usually "gmake"), in which | |
3146 | -# case it prints its new name instead of `make'. | |
3147 | -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3148 | - am__include=include | |
3149 | - am__quote= | |
3150 | - _am_result=GNU | |
3151 | -fi | |
3152 | +# Ignore all kinds of additional output from `make'. | |
3153 | +case `$am_make -s -f confmf 2> /dev/null` in #( | |
3154 | +*the\ am__doit\ target*) | |
3155 | + am__include=include | |
3156 | + am__quote= | |
3157 | + _am_result=GNU | |
3158 | + ;; | |
3159 | +esac | |
3160 | # Now try BSD make style include. | |
3161 | if test "$am__include" = "#"; then | |
3162 | echo '.include "confinc"' > confmf | |
3163 | - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3164 | - am__include=.include | |
3165 | - am__quote="\"" | |
3166 | - _am_result=BSD | |
3167 | - fi | |
3168 | + case `$am_make -s -f confmf 2> /dev/null` in #( | |
3169 | + *the\ am__doit\ target*) | |
3170 | + am__include=.include | |
3171 | + am__quote="\"" | |
3172 | + _am_result=BSD | |
3173 | + ;; | |
3174 | + esac | |
3175 | fi | |
3176 | AC_SUBST([am__include]) | |
3177 | AC_SUBST([am__quote]) | |
3178 | @@ -667,27 +652,16 @@ | |
3179 | rm -f confinc confmf | |
3180 | ]) | |
3181 | ||
3182 | -# -*- Autoconf -*- | |
3183 | +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
3184 | ||
3185 | +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |
3186 | +# Free Software Foundation, Inc. | |
3187 | +# | |
3188 | +# This file is free software; the Free Software Foundation | |
3189 | +# gives unlimited permission to copy and/or distribute it, | |
3190 | +# with or without modifications, as long as this notice is preserved. | |
3191 | ||
3192 | -# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. | |
3193 | - | |
3194 | -# This program is free software; you can redistribute it and/or modify | |
3195 | -# it under the terms of the GNU General Public License as published by | |
3196 | -# the Free Software Foundation; either version 2, or (at your option) | |
3197 | -# any later version. | |
3198 | - | |
3199 | -# This program is distributed in the hope that it will be useful, | |
3200 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
3201 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
3202 | -# GNU General Public License for more details. | |
3203 | - | |
3204 | -# You should have received a copy of the GNU General Public License | |
3205 | -# along with this program; if not, write to the Free Software | |
3206 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
3207 | -# 02111-1307, USA. | |
3208 | - | |
3209 | -# serial 3 | |
3210 | +# serial 6 | |
3211 | ||
3212 | # AM_MISSING_PROG(NAME, PROGRAM) | |
3213 | # ------------------------------ | |
3214 | @@ -703,7 +677,15 @@ | |
3215 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
3216 | AC_DEFUN([AM_MISSING_HAS_RUN], | |
3217 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
3218 | -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
3219 | +AC_REQUIRE_AUX_FILE([missing])dnl | |
3220 | +if test x"${MISSING+set}" != xset; then | |
3221 | + case $am_aux_dir in | |
3222 | + *\ * | *\ *) | |
3223 | + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3224 | + *) | |
3225 | + MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3226 | + esac | |
3227 | +fi | |
3228 | # Use eval to expand $SHELL | |
3229 | if eval "$MISSING --run true"; then | |
3230 | am_missing_run="$MISSING --run " | |
3231 | @@ -713,100 +695,45 @@ | |
3232 | fi | |
3233 | ]) | |
3234 | ||
3235 | -# AM_PROG_MKDIR_P | |
3236 | -# --------------- | |
3237 | -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. | |
3238 | - | |
3239 | -# Copyright (C) 2003, 2004 Free Software Foundation, Inc. | |
3240 | +# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, | |
3241 | +# Inc. | |
3242 | +# | |
3243 | +# This file is free software; the Free Software Foundation | |
3244 | +# gives unlimited permission to copy and/or distribute it, | |
3245 | +# with or without modifications, as long as this notice is preserved. | |
3246 | ||
3247 | -# This program is free software; you can redistribute it and/or modify | |
3248 | -# it under the terms of the GNU General Public License as published by | |
3249 | -# the Free Software Foundation; either version 2, or (at your option) | |
3250 | -# any later version. | |
3251 | +# serial 1 | |
3252 | ||
3253 | -# This program is distributed in the hope that it will be useful, | |
3254 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
3255 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
3256 | -# GNU General Public License for more details. | |
3257 | - | |
3258 | -# You should have received a copy of the GNU General Public License | |
3259 | -# along with this program; if not, write to the Free Software | |
3260 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
3261 | -# 02111-1307, USA. | |
3262 | - | |
3263 | -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories | |
3264 | -# created by `make install' are always world readable, even if the | |
3265 | -# installer happens to have an overly restrictive umask (e.g. 077). | |
3266 | -# This was a mistake. There are at least two reasons why we must not | |
3267 | -# use `-m 0755': | |
3268 | -# - it causes special bits like SGID to be ignored, | |
3269 | -# - it may be too restrictive (some setups expect 775 directories). | |
3270 | -# | |
3271 | -# Do not use -m 0755 and let people choose whatever they expect by | |
3272 | -# setting umask. | |
3273 | -# | |
3274 | -# We cannot accept any implementation of `mkdir' that recognizes `-p'. | |
3275 | -# Some implementations (such as Solaris 8's) are not thread-safe: if a | |
3276 | -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' | |
3277 | -# concurrently, both version can detect that a/ is missing, but only | |
3278 | -# one can create it and the other will error out. Consequently we | |
3279 | -# restrict ourselves to GNU make (using the --version option ensures | |
3280 | -# this.) | |
3281 | +# AM_PROG_MKDIR_P | |
3282 | +# --------------- | |
3283 | +# Check for `mkdir -p'. | |
3284 | AC_DEFUN([AM_PROG_MKDIR_P], | |
3285 | -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
3286 | - # We used to keeping the `.' as first argument, in order to | |
3287 | - # allow $(mkdir_p) to be used without argument. As in | |
3288 | - # $(mkdir_p) $(somedir) | |
3289 | - # where $(somedir) is conditionally defined. However this is wrong | |
3290 | - # for two reasons: | |
3291 | - # 1. if the package is installed by a user who cannot write `.' | |
3292 | - # make install will fail, | |
3293 | - # 2. the above comment should most certainly read | |
3294 | - # $(mkdir_p) $(DESTDIR)$(somedir) | |
3295 | - # so it does not work when $(somedir) is undefined and | |
3296 | - # $(DESTDIR) is not. | |
3297 | - # To support the latter case, we have to write | |
3298 | - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
3299 | - # so the `.' trick is pointless. | |
3300 | - mkdir_p='mkdir -p --' | |
3301 | -else | |
3302 | - # On NextStep and OpenStep, the `mkdir' command does not | |
3303 | - # recognize any option. It will interpret all options as | |
3304 | - # directories to create, and then abort because `.' already | |
3305 | - # exists. | |
3306 | - for d in ./-p ./--version; | |
3307 | - do | |
3308 | - test -d $d && rmdir $d | |
3309 | - done | |
3310 | - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
3311 | - if test -f "$ac_aux_dir/mkinstalldirs"; then | |
3312 | - mkdir_p='$(mkinstalldirs)' | |
3313 | - else | |
3314 | - mkdir_p='$(install_sh) -d' | |
3315 | - fi | |
3316 | -fi | |
3317 | -AC_SUBST([mkdir_p])]) | |
3318 | - | |
3319 | -# Helper functions for option handling. -*- Autoconf -*- | |
3320 | - | |
3321 | -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. | |
3322 | +[AC_PREREQ([2.60])dnl | |
3323 | +AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
3324 | +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |
3325 | +dnl while keeping a definition of mkdir_p for backward compatibility. | |
3326 | +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |
3327 | +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |
3328 | +dnl Makefile.ins that do not define MKDIR_P, so we do our own | |
3329 | +dnl adjustment using top_builddir (which is defined more often than | |
3330 | +dnl MKDIR_P). | |
3331 | +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
3332 | +case $mkdir_p in | |
3333 | + [[\\/$]]* | ?:[[\\/]]*) ;; | |
3334 | + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3335 | +esac | |
3336 | +]) | |
3337 | ||
3338 | -# This program is free software; you can redistribute it and/or modify | |
3339 | -# it under the terms of the GNU General Public License as published by | |
3340 | -# the Free Software Foundation; either version 2, or (at your option) | |
3341 | -# any later version. | |
3342 | +# Helper functions for option handling. -*- Autoconf -*- | |
3343 | ||
3344 | -# This program is distributed in the hope that it will be useful, | |
3345 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
3346 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
3347 | -# GNU General Public License for more details. | |
3348 | - | |
3349 | -# You should have received a copy of the GNU General Public License | |
3350 | -# along with this program; if not, write to the Free Software | |
3351 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
3352 | -# 02111-1307, USA. | |
3353 | +# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software | |
3354 | +# Foundation, Inc. | |
3355 | +# | |
3356 | +# This file is free software; the Free Software Foundation | |
3357 | +# gives unlimited permission to copy and/or distribute it, | |
3358 | +# with or without modifications, as long as this notice is preserved. | |
3359 | ||
3360 | -# serial 2 | |
3361 | +# serial 5 | |
3362 | ||
3363 | # _AM_MANGLE_OPTION(NAME) | |
3364 | # ----------------------- | |
3365 | @@ -814,16 +741,16 @@ | |
3366 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
3367 | ||
3368 | # _AM_SET_OPTION(NAME) | |
3369 | -# ------------------------------ | |
3370 | +# -------------------- | |
3371 | # Set option NAME. Presently that only means defining a flag for this option. | |
3372 | AC_DEFUN([_AM_SET_OPTION], | |
3373 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
3374 | ||
3375 | # _AM_SET_OPTIONS(OPTIONS) | |
3376 | -# ---------------------------------- | |
3377 | +# ------------------------ | |
3378 | # OPTIONS is a space-separated list of Automake options. | |
3379 | AC_DEFUN([_AM_SET_OPTIONS], | |
3380 | -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
3381 | +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
3382 | ||
3383 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
3384 | # ------------------------------------------- | |
3385 | @@ -831,29 +758,19 @@ | |
3386 | AC_DEFUN([_AM_IF_OPTION], | |
3387 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
3388 | ||
3389 | - | |
3390 | -# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003 | |
3391 | +# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2006 | |
3392 | # Free Software Foundation, Inc. | |
3393 | +# | |
3394 | +# This file is free software; the Free Software Foundation | |
3395 | +# gives unlimited permission to copy and/or distribute it, | |
3396 | +# with or without modifications, as long as this notice is preserved. | |
3397 | ||
3398 | -# This program is free software; you can redistribute it and/or modify | |
3399 | -# it under the terms of the GNU General Public License as published by | |
3400 | -# the Free Software Foundation; either version 2, or (at your option) | |
3401 | -# any later version. | |
3402 | - | |
3403 | -# This program is distributed in the hope that it will be useful, | |
3404 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
3405 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
3406 | -# GNU General Public License for more details. | |
3407 | - | |
3408 | -# You should have received a copy of the GNU General Public License | |
3409 | -# along with this program; if not, write to the Free Software | |
3410 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
3411 | -# 02111-1307, USA. | |
3412 | - | |
3413 | -# serial 3 | |
3414 | +# serial 5 | |
3415 | ||
3416 | AC_DEFUN([AM_C_PROTOTYPES], | |
3417 | [AC_REQUIRE([AC_C_PROTOTYPES]) | |
3418 | +AC_DIAGNOSE([obsolete], | |
3419 | + [$0: automatic de-ANSI-fication support is deprecated]) | |
3420 | if test "$ac_cv_prog_cc_stdc" != no; then | |
3421 | U= ANSI2KNR= | |
3422 | else | |
3423 | @@ -861,35 +778,24 @@ | |
3424 | fi | |
3425 | # Ensure some checks needed by ansi2knr itself. | |
3426 | AC_REQUIRE([AC_HEADER_STDC]) | |
3427 | -AC_CHECK_HEADERS(string.h) | |
3428 | -AC_SUBST(U)dnl | |
3429 | -AC_SUBST(ANSI2KNR)dnl | |
3430 | +AC_CHECK_HEADERS([string.h]) | |
3431 | +AC_SUBST([U])dnl | |
3432 | +AC_SUBST([ANSI2KNR])dnl | |
3433 | +_AM_SUBST_NOTMAKE([ANSI2KNR])dnl | |
3434 | ]) | |
3435 | ||
3436 | AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) | |
3437 | ||
3438 | -# | |
3439 | -# Check to make sure that the build environment is sane. | |
3440 | -# | |
3441 | - | |
3442 | -# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc. | |
3443 | +# Check to make sure that the build environment is sane. -*- Autoconf -*- | |
3444 | ||
3445 | -# This program is free software; you can redistribute it and/or modify | |
3446 | -# it under the terms of the GNU General Public License as published by | |
3447 | -# the Free Software Foundation; either version 2, or (at your option) | |
3448 | -# any later version. | |
3449 | - | |
3450 | -# This program is distributed in the hope that it will be useful, | |
3451 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
3452 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
3453 | -# GNU General Public License for more details. | |
3454 | - | |
3455 | -# You should have received a copy of the GNU General Public License | |
3456 | -# along with this program; if not, write to the Free Software | |
3457 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
3458 | -# 02111-1307, USA. | |
3459 | +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 | |
3460 | +# Free Software Foundation, Inc. | |
3461 | +# | |
3462 | +# This file is free software; the Free Software Foundation | |
3463 | +# gives unlimited permission to copy and/or distribute it, | |
3464 | +# with or without modifications, as long as this notice is preserved. | |
3465 | ||
3466 | -# serial 3 | |
3467 | +# serial 5 | |
3468 | ||
3469 | # AM_SANITY_CHECK | |
3470 | # --------------- | |
3471 | @@ -898,16 +804,29 @@ | |
3472 | # Just in case | |
3473 | sleep 1 | |
3474 | echo timestamp > conftest.file | |
3475 | +# Reject unsafe characters in $srcdir or the absolute working directory | |
3476 | +# name. Accept space and tab only in the latter. | |
3477 | +am_lf=' | |
3478 | +' | |
3479 | +case `pwd` in | |
3480 | + *[[\\\"\#\$\&\'\`$am_lf]]*) | |
3481 | + AC_MSG_ERROR([unsafe absolute working directory name]);; | |
3482 | +esac | |
3483 | +case $srcdir in | |
3484 | + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |
3485 | + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | |
3486 | +esac | |
3487 | + | |
3488 | # Do `set' in a subshell so we don't clobber the current shell's | |
3489 | # arguments. Must try -L first in case configure is actually a | |
3490 | # symlink; some systems play weird games with the mod time of symlinks | |
3491 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3492 | # directory). | |
3493 | if ( | |
3494 | - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
3495 | + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3496 | if test "$[*]" = "X"; then | |
3497 | # -L didn't work. | |
3498 | - set X `ls -t $srcdir/configure conftest.file` | |
3499 | + set X `ls -t "$srcdir/configure" conftest.file` | |
3500 | fi | |
3501 | rm -f conftest.file | |
3502 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
3503 | @@ -932,25 +851,16 @@ | |
3504 | fi | |
3505 | AC_MSG_RESULT(yes)]) | |
3506 | ||
3507 | -# AM_PROG_INSTALL_STRIP | |
3508 | - | |
3509 | -# Copyright (C) 2001, 2003 Free Software Foundation, Inc. | |
3510 | - | |
3511 | -# This program is free software; you can redistribute it and/or modify | |
3512 | -# it under the terms of the GNU General Public License as published by | |
3513 | -# the Free Software Foundation; either version 2, or (at your option) | |
3514 | -# any later version. | |
3515 | +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. | |
3516 | +# | |
3517 | +# This file is free software; the Free Software Foundation | |
3518 | +# gives unlimited permission to copy and/or distribute it, | |
3519 | +# with or without modifications, as long as this notice is preserved. | |
3520 | ||
3521 | -# This program is distributed in the hope that it will be useful, | |
3522 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
3523 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
3524 | -# GNU General Public License for more details. | |
3525 | - | |
3526 | -# You should have received a copy of the GNU General Public License | |
3527 | -# along with this program; if not, write to the Free Software | |
3528 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
3529 | -# 02111-1307, USA. | |
3530 | +# serial 1 | |
3531 | ||
3532 | +# AM_PROG_INSTALL_STRIP | |
3533 | +# --------------------- | |
3534 | # One issue with vendor `install' (even GNU) is that you can't | |
3535 | # specify the program used to strip binaries. This is especially | |
3536 | # annoying in cross-compiling environments, where the build's strip | |
3537 | @@ -968,30 +878,37 @@ | |
3538 | if test "$cross_compiling" != no; then | |
3539 | AC_CHECK_TOOL([STRIP], [strip], :) | |
3540 | fi | |
3541 | -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
3542 | +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3543 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
3544 | ||
3545 | -# Check how to create a tarball. -*- Autoconf -*- | |
3546 | +# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. | |
3547 | +# | |
3548 | +# This file is free software; the Free Software Foundation | |
3549 | +# gives unlimited permission to copy and/or distribute it, | |
3550 | +# with or without modifications, as long as this notice is preserved. | |
3551 | ||
3552 | -# Copyright (C) 2004 Free Software Foundation, Inc. | |
3553 | +# serial 3 | |
3554 | ||
3555 | -# This program is free software; you can redistribute it and/or modify | |
3556 | -# it under the terms of the GNU General Public License as published by | |
3557 | -# the Free Software Foundation; either version 2, or (at your option) | |
3558 | -# any later version. | |
3559 | +# _AM_SUBST_NOTMAKE(VARIABLE) | |
3560 | +# --------------------------- | |
3561 | +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
3562 | +# This macro is traced by Automake. | |
3563 | +AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
3564 | + | |
3565 | +# AM_SUBST_NOTMAKE(VARIABLE) | |
3566 | +# -------------------------- | |
3567 | +# Public sister of _AM_SUBST_NOTMAKE. | |
3568 | +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |
3569 | ||
3570 | -# This program is distributed in the hope that it will be useful, | |
3571 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
3572 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
3573 | -# GNU General Public License for more details. | |
3574 | - | |
3575 | -# You should have received a copy of the GNU General Public License | |
3576 | -# along with this program; if not, write to the Free Software | |
3577 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
3578 | -# 02111-1307, USA. | |
3579 | +# Check how to create a tarball. -*- Autoconf -*- | |
3580 | ||
3581 | -# serial 1 | |
3582 | +# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. | |
3583 | +# | |
3584 | +# This file is free software; the Free Software Foundation | |
3585 | +# gives unlimited permission to copy and/or distribute it, | |
3586 | +# with or without modifications, as long as this notice is preserved. | |
3587 | ||
3588 | +# serial 2 | |
3589 | ||
3590 | # _AM_PROG_TAR(FORMAT) | |
3591 | # -------------------- | |
3592 | @@ -1007,10 +924,11 @@ | |
3593 | # a tarball read from stdin. | |
3594 | # $(am__untar) < result.tar | |
3595 | AC_DEFUN([_AM_PROG_TAR], | |
3596 | -[# Always define AMTAR for backward compatibility. | |
3597 | -AM_MISSING_PROG([AMTAR], [tar]) | |
3598 | +[# Always define AMTAR for backward compatibility. Yes, it's still used | |
3599 | +# in the wild :-( We should find a proper way to deprecate it ... | |
3600 | +AC_SUBST([AMTAR], ['$${TAR-tar}']) | |
3601 | m4_if([$1], [v7], | |
3602 | - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], | |
3603 | + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | |
3604 | [m4_case([$1], [ustar],, [pax],, | |
3605 | [m4_fatal([Unknown tar format])]) | |
3606 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
3607 | @@ -1079,32 +997,13 @@ | |
3608 | AC_SUBST([am__untar]) | |
3609 | ]) # _AM_PROG_TAR | |
3610 | ||
3611 | -m4_include([m4/codeset.m4]) | |
3612 | m4_include([m4/gettext.m4]) | |
3613 | -m4_include([m4/glibc2.m4]) | |
3614 | -m4_include([m4/glibc21.m4]) | |
3615 | m4_include([m4/iconv.m4]) | |
3616 | -m4_include([m4/intdiv0.m4]) | |
3617 | -m4_include([m4/intmax.m4]) | |
3618 | -m4_include([m4/inttypes-pri.m4]) | |
3619 | -m4_include([m4/inttypes.m4]) | |
3620 | -m4_include([m4/inttypes_h.m4]) | |
3621 | -m4_include([m4/lcmessage.m4]) | |
3622 | +m4_include([m4/intlmacosx.m4]) | |
3623 | m4_include([m4/lib-ld.m4]) | |
3624 | m4_include([m4/lib-link.m4]) | |
3625 | m4_include([m4/lib-prefix.m4]) | |
3626 | -m4_include([m4/longdouble.m4]) | |
3627 | -m4_include([m4/longlong.m4]) | |
3628 | m4_include([m4/nls.m4]) | |
3629 | m4_include([m4/po.m4]) | |
3630 | -m4_include([m4/printf-posix.m4]) | |
3631 | m4_include([m4/progtest.m4]) | |
3632 | -m4_include([m4/signed.m4]) | |
3633 | -m4_include([m4/size_max.m4]) | |
3634 | -m4_include([m4/stdint_h.m4]) | |
3635 | -m4_include([m4/uintmax_t.m4]) | |
3636 | -m4_include([m4/ulonglong.m4]) | |
3637 | -m4_include([m4/wchar_t.m4]) | |
3638 | -m4_include([m4/wint_t.m4]) | |
3639 | -m4_include([m4/xsize.m4]) | |
3640 | m4_include([acinclude.m4]) | |
3641 | diff -urN BUILD/abook-0.6.0pre2/AUTHORS abook/AUTHORS | |
3642 | --- BUILD/abook-0.6.0pre2/AUTHORS 2006-08-30 12:32:15.000000000 +0200 | |
3643 | +++ abook/AUTHORS 2013-03-13 15:07:45.000000000 +0100 | |
3644 | @@ -26,3 +26,21 @@ | |
3645 | - palmcsv export filter | |
3646 | - fixes | |
3647 | ||
3648 | +Michael Krolikowski <mkroli@yahoo.de> | |
3649 | + - built-in vcard import filter | |
3650 | + | |
3651 | +Raphaël Droz <raphael.droz+floss@gmail.com> | |
3652 | + - custom output format | |
3653 | + - reworked ldif input/output | |
3654 | + - vcard import filter through libvformat | |
3655 | + - fixes | |
3656 | + | |
3657 | +Thorsten Wißmann <edu@thorsten-wissmann.de> | |
3658 | + - color support | |
3659 | + - mouse support | |
3660 | + | |
3661 | +Fabio Zanini <fabio.zanini@fastmail.fm> | |
3662 | + - merge entries | |
3663 | + - duplicated entries removal | |
3664 | + - mutt "groups" | |
3665 | + - fixes | |
3666 | diff -urN BUILD/abook-0.6.0pre2/ChangeLog abook/ChangeLog | |
3667 | --- BUILD/abook-0.6.0pre2/ChangeLog 2006-09-06 15:22:53.000000000 +0200 | |
3668 | +++ abook/ChangeLog 2013-03-13 15:07:45.000000000 +0100 | |
3669 | @@ -1,11 +1,24 @@ | |
3670 | +git | |
3671 | + - custom output format (Raphaël Droz) | |
3672 | + - remove duplicates (Fabio Zanini) | |
3673 | + - merge entries (Fabio Zanini) | |
3674 | + - mutt groups support (Fabio Zanini) | |
3675 | + - vcard initial input filter (Michael Krolikowski) | |
3676 | + - vcard parser improvements (Fabio Zanini, Raphaël Droz) | |
3677 | + - color support (Thorsten Wißmann) | |
3678 | + - mouse support (Thorsten Wißmann) | |
3679 | + - extra-fields deletion bugfix (Jorrit Tijben) | |
3680 | + - additinal keybinding (Hagen Fuchs) | |
3681 | + - autotools update (Fabio Zanini) | |
3682 | + - case-sensitive ldif fields parsing (Christian Brabandt) | |
3683 | + - ldif standard input support (Raphaël Droz) | |
3684 | + - ldif extensible field management rewritting (Raphaël Droz) | |
3685 | + | |
3686 | 0.6.0 | |
3687 | - configurable views (Cedric Duval) | |
3688 | - new field types, lists and improved custom field support (Cedric Duval) | |
3689 | - index_format option (Cedric Duval) | |
3690 | - Italian translation (Claudio Stazzone) | |
3691 | - - BSD calendar export filter (Guillem Jover) | |
3692 | - - translation updates | |
3693 | - - bugfixes | |
3694 | ||
3695 | 0.5.6 | |
3696 | - translation fixes | |
3697 | diff -urN BUILD/abook-0.6.0pre2/color.h abook/color.h | |
3698 | --- BUILD/abook-0.6.0pre2/color.h 1970-01-01 01:00:00.000000000 +0100 | |
3699 | +++ abook/color.h 2013-03-13 15:07:45.000000000 +0100 | |
3700 | @@ -0,0 +1,21 @@ | |
3701 | + | |
3702 | +#ifndef __ABOOK_COLORS_H_ | |
3703 | +#define __ABOOK_COLORS_H_ | |
3704 | + | |
3705 | +#define COLOR_DEFAULT -1 | |
3706 | + | |
3707 | +enum { | |
3708 | + CP_HEADER = 1, | |
3709 | + CP_FOOTER, | |
3710 | + CP_LIST_EVEN, | |
3711 | + CP_LIST_ODD, | |
3712 | + CP_LIST_HEADER, | |
3713 | + CP_LIST_HIGHLIGHT, | |
3714 | + CP_TAB_BORDER, | |
3715 | + CP_TAB_LABEL, | |
3716 | + CP_FIELD_NAME, | |
3717 | + CP_FIELD_VALUE, | |
3718 | +}; | |
3719 | + | |
3720 | +#endif | |
3721 | + | |
3722 | diff -urN BUILD/abook-0.6.0pre2/config.guess abook/config.guess | |
3723 | --- BUILD/abook-0.6.0pre2/config.guess 2006-08-04 22:18:23.000000000 +0200 | |
3724 | +++ abook/config.guess 2013-03-13 15:07:45.000000000 +0100 | |
3725 | @@ -1,9 +1,10 @@ | |
3726 | #! /bin/sh | |
3727 | # Attempt to guess a canonical system name. | |
3728 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | |
3729 | -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. | |
3730 | +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, | |
3731 | +# 2011, 2012 Free Software Foundation, Inc. | |
3732 | ||
3733 | -timestamp='2006-02-23' | |
3734 | +timestamp='2012-09-25' | |
3735 | ||
3736 | # This file is free software; you can redistribute it and/or modify it | |
3737 | # under the terms of the GNU General Public License as published by | |
3738 | @@ -16,9 +17,7 @@ | |
3739 | # General Public License for more details. | |
3740 | # | |
3741 | # You should have received a copy of the GNU General Public License | |
3742 | -# along with this program; if not, write to the Free Software | |
3743 | -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | |
3744 | -# 02110-1301, USA. | |
3745 | +# along with this program; if not, see <http://www.gnu.org/licenses/>. | |
3746 | # | |
3747 | # As a special exception to the GNU General Public License, if you | |
3748 | # distribute this file as part of a program that contains a | |
3749 | @@ -26,16 +25,16 @@ | |
3750 | # the same distribution terms that you use for the rest of that program. | |
3751 | ||
3752 | ||
3753 | -# Originally written by Per Bothner <per@bothner.com>. | |
3754 | -# Please send patches to <config-patches@gnu.org>. Submit a context | |
3755 | -# diff and a properly formatted ChangeLog entry. | |
3756 | +# Originally written by Per Bothner. Please send patches (context | |
3757 | +# diff format) to <config-patches@gnu.org> and include a ChangeLog | |
3758 | +# entry. | |
3759 | # | |
3760 | # This script attempts to guess a canonical system name similar to | |
3761 | # config.sub. If it succeeds, it prints the system name on stdout, and | |
3762 | # exits with 0. Otherwise, it exits with 1. | |
3763 | # | |
3764 | -# The plan is that this can be called by configure scripts if you | |
3765 | -# don't specify an explicit build system type. | |
3766 | +# You can get the latest version of this script from: | |
3767 | +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | |
3768 | ||
3769 | me=`echo "$0" | sed -e 's,.*/,,'` | |
3770 | ||
3771 | @@ -55,7 +54,8 @@ | |
3772 | GNU config.guess ($timestamp) | |
3773 | ||
3774 | Originally written by Per Bothner. | |
3775 | -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 | |
3776 | +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | |
3777 | +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 | |
3778 | Free Software Foundation, Inc. | |
3779 | ||
3780 | This is free software; see the source for copying conditions. There is NO | |
3781 | @@ -138,12 +138,35 @@ | |
3782 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown | |
3783 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown | |
3784 | ||
3785 | +case "${UNAME_SYSTEM}" in | |
3786 | +Linux|GNU/*) | |
3787 | + eval $set_cc_for_build | |
3788 | + cat <<-EOF > $dummy.c | |
3789 | + #include <features.h> | |
3790 | + #ifdef __UCLIBC__ | |
3791 | + # ifdef __UCLIBC_CONFIG_VERSION__ | |
3792 | + LIBC=uclibc __UCLIBC_CONFIG_VERSION__ | |
3793 | + # else | |
3794 | + LIBC=uclibc | |
3795 | + # endif | |
3796 | + #else | |
3797 | + # ifdef __dietlibc__ | |
3798 | + LIBC=dietlibc | |
3799 | + # else | |
3800 | + LIBC=gnu | |
3801 | + # endif | |
3802 | + #endif | |
3803 | + EOF | |
3804 | + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | |
3805 | + ;; | |
3806 | +esac | |
3807 | + | |
3808 | # Note: order is significant - the case branches are not exclusive. | |
3809 | ||
3810 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | |
3811 | *:NetBSD:*:*) | |
3812 | # NetBSD (nbsd) targets should (where applicable) match one or | |
3813 | - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, | |
3814 | + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, | |
3815 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | |
3816 | # switched to ELF, *-*-netbsd* would select the old | |
3817 | # object file format. This provides both forward | |
3818 | @@ -160,6 +183,7 @@ | |
3819 | arm*) machine=arm-unknown ;; | |
3820 | sh3el) machine=shl-unknown ;; | |
3821 | sh3eb) machine=sh-unknown ;; | |
3822 | + sh5el) machine=sh5le-unknown ;; | |
3823 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; | |
3824 | esac | |
3825 | # The Operating System including object format, if it has switched | |
3826 | @@ -168,7 +192,7 @@ | |
3827 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) | |
3828 | eval $set_cc_for_build | |
3829 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |
3830 | - | grep __ELF__ >/dev/null | |
3831 | + | grep -q __ELF__ | |
3832 | then | |
3833 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). | |
3834 | # Return netbsd for either. FIX? | |
3835 | @@ -178,7 +202,7 @@ | |
3836 | fi | |
3837 | ;; | |
3838 | *) | |
3839 | - os=netbsd | |
3840 | + os=netbsd | |
3841 | ;; | |
3842 | esac | |
3843 | # The OS release | |
3844 | @@ -199,6 +223,10 @@ | |
3845 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | |
3846 | echo "${machine}-${os}${release}" | |
3847 | exit ;; | |
3848 | + *:Bitrig:*:*) | |
3849 | + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` | |
3850 | + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} | |
3851 | + exit ;; | |
3852 | *:OpenBSD:*:*) | |
3853 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | |
3854 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | |
3855 | @@ -210,7 +238,7 @@ | |
3856 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} | |
3857 | exit ;; | |
3858 | macppc:MirBSD:*:*) | |
3859 | - echo powerppc-unknown-mirbsd${UNAME_RELEASE} | |
3860 | + echo powerpc-unknown-mirbsd${UNAME_RELEASE} | |
3861 | exit ;; | |
3862 | *:MirBSD:*:*) | |
3863 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} | |
3864 | @@ -221,7 +249,7 @@ | |
3865 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` | |
3866 | ;; | |
3867 | *5.*) | |
3868 | - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | |
3869 | + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | |
3870 | ;; | |
3871 | esac | |
3872 | # According to Compaq, /usr/sbin/psrinfo has been available on | |
3873 | @@ -267,7 +295,10 @@ | |
3874 | # A Xn.n version is an unreleased experimental baselevel. | |
3875 | # 1.2 uses "1.2" for uname -r. | |
3876 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | |
3877 | - exit ;; | |
3878 | + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. | |
3879 | + exitcode=$? | |
3880 | + trap '' 0 | |
3881 | + exit $exitcode ;; | |
3882 | Alpha\ *:Windows_NT*:*) | |
3883 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
3884 | # Should we change UNAME_MACHINE based on the output of uname instead | |
3885 | @@ -293,12 +324,12 @@ | |
3886 | echo s390-ibm-zvmoe | |
3887 | exit ;; | |
3888 | *:OS400:*:*) | |
3889 | - echo powerpc-ibm-os400 | |
3890 | + echo powerpc-ibm-os400 | |
3891 | exit ;; | |
3892 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | |
3893 | echo arm-acorn-riscix${UNAME_RELEASE} | |
3894 | exit ;; | |
3895 | - arm:riscos:*:*|arm:RISCOS:*:*) | |
3896 | + arm*:riscos:*:*|arm*:RISCOS:*:*) | |
3897 | echo arm-unknown-riscos | |
3898 | exit ;; | |
3899 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) | |
3900 | @@ -322,14 +353,33 @@ | |
3901 | case `/usr/bin/uname -p` in | |
3902 | sparc) echo sparc-icl-nx7; exit ;; | |
3903 | esac ;; | |
3904 | + s390x:SunOS:*:*) | |
3905 | + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
3906 | + exit ;; | |
3907 | sun4H:SunOS:5.*:*) | |
3908 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
3909 | exit ;; | |
3910 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | |
3911 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
3912 | exit ;; | |
3913 | - i86pc:SunOS:5.*:*) | |
3914 | - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
3915 | + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) | |
3916 | + echo i386-pc-auroraux${UNAME_RELEASE} | |
3917 | + exit ;; | |
3918 | + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) | |
3919 | + eval $set_cc_for_build | |
3920 | + SUN_ARCH="i386" | |
3921 | + # If there is a compiler, see if it is configured for 64-bit objects. | |
3922 | + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. | |
3923 | + # This test works for both compilers. | |
3924 | + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
3925 | + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
3926 | + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
3927 | + grep IS_64BIT_ARCH >/dev/null | |
3928 | + then | |
3929 | + SUN_ARCH="x86_64" | |
3930 | + fi | |
3931 | + fi | |
3932 | + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
3933 | exit ;; | |
3934 | sun4*:SunOS:6*:*) | |
3935 | # According to config.sub, this is the proper way to canonicalize | |
3936 | @@ -373,23 +423,23 @@ | |
3937 | # MiNT. But MiNT is downward compatible to TOS, so this should | |
3938 | # be no problem. | |
3939 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) | |
3940 | - echo m68k-atari-mint${UNAME_RELEASE} | |
3941 | + echo m68k-atari-mint${UNAME_RELEASE} | |
3942 | exit ;; | |
3943 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) | |
3944 | echo m68k-atari-mint${UNAME_RELEASE} | |
3945 | - exit ;; | |
3946 | + exit ;; | |
3947 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) | |
3948 | - echo m68k-atari-mint${UNAME_RELEASE} | |
3949 | + echo m68k-atari-mint${UNAME_RELEASE} | |
3950 | exit ;; | |
3951 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) | |
3952 | - echo m68k-milan-mint${UNAME_RELEASE} | |
3953 | - exit ;; | |
3954 | + echo m68k-milan-mint${UNAME_RELEASE} | |
3955 | + exit ;; | |
3956 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) | |
3957 | - echo m68k-hades-mint${UNAME_RELEASE} | |
3958 | - exit ;; | |
3959 | + echo m68k-hades-mint${UNAME_RELEASE} | |
3960 | + exit ;; | |
3961 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | |
3962 | - echo m68k-unknown-mint${UNAME_RELEASE} | |
3963 | - exit ;; | |
3964 | + echo m68k-unknown-mint${UNAME_RELEASE} | |
3965 | + exit ;; | |
3966 | m68k:machten:*:*) | |
3967 | echo m68k-apple-machten${UNAME_RELEASE} | |
3968 | exit ;; | |
3969 | @@ -459,8 +509,8 @@ | |
3970 | echo m88k-motorola-sysv3 | |
3971 | exit ;; | |
3972 | AViiON:dgux:*:*) | |
3973 | - # DG/UX returns AViiON for all architectures | |
3974 | - UNAME_PROCESSOR=`/usr/bin/uname -p` | |
3975 | + # DG/UX returns AViiON for all architectures | |
3976 | + UNAME_PROCESSOR=`/usr/bin/uname -p` | |
3977 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | |
3978 | then | |
3979 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ | |
3980 | @@ -473,7 +523,7 @@ | |
3981 | else | |
3982 | echo i586-dg-dgux${UNAME_RELEASE} | |
3983 | fi | |
3984 | - exit ;; | |
3985 | + exit ;; | |
3986 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) | |
3987 | echo m88k-dolphin-sysv3 | |
3988 | exit ;; | |
3989 | @@ -530,7 +580,7 @@ | |
3990 | echo rs6000-ibm-aix3.2 | |
3991 | fi | |
3992 | exit ;; | |
3993 | - *:AIX:*:[45]) | |
3994 | + *:AIX:*:[4567]) | |
3995 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | |
3996 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | |
3997 | IBM_ARCH=rs6000 | |
3998 | @@ -573,52 +623,52 @@ | |
3999 | 9000/[678][0-9][0-9]) | |
4000 | if [ -x /usr/bin/getconf ]; then | |
4001 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | |
4002 | - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | |
4003 | - case "${sc_cpu_version}" in | |
4004 | - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | |
4005 | - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | |
4006 | - 532) # CPU_PA_RISC2_0 | |
4007 | - case "${sc_kernel_bits}" in | |
4008 | - 32) HP_ARCH="hppa2.0n" ;; | |
4009 | - 64) HP_ARCH="hppa2.0w" ;; | |
4010 | + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | |
4011 | + case "${sc_cpu_version}" in | |
4012 | + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | |
4013 | + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | |
4014 | + 532) # CPU_PA_RISC2_0 | |
4015 | + case "${sc_kernel_bits}" in | |
4016 | + 32) HP_ARCH="hppa2.0n" ;; | |
4017 | + 64) HP_ARCH="hppa2.0w" ;; | |
4018 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 | |
4019 | - esac ;; | |
4020 | - esac | |
4021 | + esac ;; | |
4022 | + esac | |
4023 | fi | |
4024 | if [ "${HP_ARCH}" = "" ]; then | |
4025 | eval $set_cc_for_build | |
4026 | - sed 's/^ //' << EOF >$dummy.c | |
4027 | + sed 's/^ //' << EOF >$dummy.c | |
4028 | ||
4029 | - #define _HPUX_SOURCE | |
4030 | - #include <stdlib.h> | |
4031 | - #include <unistd.h> | |
4032 | - | |
4033 | - int main () | |
4034 | - { | |
4035 | - #if defined(_SC_KERNEL_BITS) | |
4036 | - long bits = sysconf(_SC_KERNEL_BITS); | |
4037 | - #endif | |
4038 | - long cpu = sysconf (_SC_CPU_VERSION); | |
4039 | - | |
4040 | - switch (cpu) | |
4041 | - { | |
4042 | - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | |
4043 | - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | |
4044 | - case CPU_PA_RISC2_0: | |
4045 | - #if defined(_SC_KERNEL_BITS) | |
4046 | - switch (bits) | |
4047 | - { | |
4048 | - case 64: puts ("hppa2.0w"); break; | |
4049 | - case 32: puts ("hppa2.0n"); break; | |
4050 | - default: puts ("hppa2.0"); break; | |
4051 | - } break; | |
4052 | - #else /* !defined(_SC_KERNEL_BITS) */ | |
4053 | - puts ("hppa2.0"); break; | |
4054 | - #endif | |
4055 | - default: puts ("hppa1.0"); break; | |
4056 | - } | |
4057 | - exit (0); | |
4058 | - } | |
4059 | + #define _HPUX_SOURCE | |
4060 | + #include <stdlib.h> | |
4061 | + #include <unistd.h> | |
4062 | + | |
4063 | + int main () | |
4064 | + { | |
4065 | + #if defined(_SC_KERNEL_BITS) | |
4066 | + long bits = sysconf(_SC_KERNEL_BITS); | |
4067 | + #endif | |
4068 | + long cpu = sysconf (_SC_CPU_VERSION); | |
4069 | + | |
4070 | + switch (cpu) | |
4071 | + { | |
4072 | + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | |
4073 | + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | |
4074 | + case CPU_PA_RISC2_0: | |
4075 | + #if defined(_SC_KERNEL_BITS) | |
4076 | + switch (bits) | |
4077 | + { | |
4078 | + case 64: puts ("hppa2.0w"); break; | |
4079 | + case 32: puts ("hppa2.0n"); break; | |
4080 | + default: puts ("hppa2.0"); break; | |
4081 | + } break; | |
4082 | + #else /* !defined(_SC_KERNEL_BITS) */ | |
4083 | + puts ("hppa2.0"); break; | |
4084 | + #endif | |
4085 | + default: puts ("hppa1.0"); break; | |
4086 | + } | |
4087 | + exit (0); | |
4088 | + } | |
4089 | EOF | |
4090 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | |
4091 | test -z "$HP_ARCH" && HP_ARCH=hppa | |
4092 | @@ -638,7 +688,7 @@ | |
4093 | # => hppa64-hp-hpux11.23 | |
4094 | ||
4095 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | |
4096 | - grep __LP64__ >/dev/null | |
4097 | + grep -q __LP64__ | |
4098 | then | |
4099 | HP_ARCH="hppa2.0w" | |
4100 | else | |
4101 | @@ -709,22 +759,22 @@ | |
4102 | exit ;; | |
4103 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) | |
4104 | echo c1-convex-bsd | |
4105 | - exit ;; | |
4106 | + exit ;; | |
4107 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) | |
4108 | if getsysinfo -f scalar_acc | |
4109 | then echo c32-convex-bsd | |
4110 | else echo c2-convex-bsd | |
4111 | fi | |
4112 | - exit ;; | |
4113 | + exit ;; | |
4114 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) | |
4115 | echo c34-convex-bsd | |
4116 | - exit ;; | |
4117 | + exit ;; | |
4118 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) | |
4119 | echo c38-convex-bsd | |
4120 | - exit ;; | |
4121 | + exit ;; | |
4122 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) | |
4123 | echo c4-convex-bsd | |
4124 | - exit ;; | |
4125 | + exit ;; | |
4126 | CRAY*Y-MP:*:*:*) | |
4127 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
4128 | exit ;; | |
4129 | @@ -748,14 +798,14 @@ | |
4130 | exit ;; | |
4131 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) | |
4132 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | |
4133 | - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
4134 | - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | |
4135 | - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
4136 | - exit ;; | |
4137 | + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
4138 | + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | |
4139 | + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
4140 | + exit ;; | |
4141 | 5000:UNIX_System_V:4.*:*) | |
4142 | - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
4143 | - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | |
4144 | - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
4145 | + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
4146 | + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | |
4147 | + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
4148 | exit ;; | |
4149 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) | |
4150 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | |
4151 | @@ -767,38 +817,51 @@ | |
4152 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | |
4153 | exit ;; | |
4154 | *:FreeBSD:*:*) | |
4155 | - case ${UNAME_MACHINE} in | |
4156 | - pc98) | |
4157 | - echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
4158 | + UNAME_PROCESSOR=`/usr/bin/uname -p` | |
4159 | + case ${UNAME_PROCESSOR} in | |
4160 | + amd64) | |
4161 | + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
4162 | *) | |
4163 | - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
4164 | + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
4165 | esac | |
4166 | exit ;; | |
4167 | i*:CYGWIN*:*) | |
4168 | echo ${UNAME_MACHINE}-pc-cygwin | |
4169 | exit ;; | |
4170 | - i*:MINGW*:*) | |
4171 | - echo ${UNAME_MACHINE}-pc-mingw32 | |
4172 | + *:MINGW64*:*) | |
4173 | + echo ${UNAME_MACHINE}-pc-mingw64 | |
4174 | exit ;; | |
4175 | - i*:MSYS_NT-*:*:*) | |
4176 | + *:MINGW*:*) | |
4177 | echo ${UNAME_MACHINE}-pc-mingw32 | |
4178 | exit ;; | |
4179 | + i*:MSYS*:*) | |
4180 | + echo ${UNAME_MACHINE}-pc-msys | |
4181 | + exit ;; | |
4182 | i*:windows32*:*) | |
4183 | - # uname -m includes "-pc" on this system. | |
4184 | - echo ${UNAME_MACHINE}-mingw32 | |
4185 | + # uname -m includes "-pc" on this system. | |
4186 | + echo ${UNAME_MACHINE}-mingw32 | |
4187 | exit ;; | |
4188 | i*:PW*:*) | |
4189 | echo ${UNAME_MACHINE}-pc-pw32 | |
4190 | exit ;; | |
4191 | - x86:Interix*:[345]*) | |
4192 | - echo i586-pc-interix${UNAME_RELEASE} | |
4193 | - exit ;; | |
4194 | - EM64T:Interix*:[345]*) | |
4195 | - echo x86_64-unknown-interix${UNAME_RELEASE} | |
4196 | - exit ;; | |
4197 | + *:Interix*:*) | |
4198 | + case ${UNAME_MACHINE} in | |
4199 | + x86) | |
4200 | + echo i586-pc-interix${UNAME_RELEASE} | |
4201 | + exit ;; | |
4202 | + authenticamd | genuineintel | EM64T) | |
4203 | + echo x86_64-unknown-interix${UNAME_RELEASE} | |
4204 | + exit ;; | |
4205 | + IA64) | |
4206 | + echo ia64-unknown-interix${UNAME_RELEASE} | |
4207 | + exit ;; | |
4208 | + esac ;; | |
4209 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | |
4210 | echo i${UNAME_MACHINE}-pc-mks | |
4211 | exit ;; | |
4212 | + 8664:Windows_NT:*) | |
4213 | + echo x86_64-pc-mks | |
4214 | + exit ;; | |
4215 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | |
4216 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
4217 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | |
4218 | @@ -819,197 +882,145 @@ | |
4219 | exit ;; | |
4220 | *:GNU:*:*) | |
4221 | # the GNU system | |
4222 | - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | |
4223 | + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | |
4224 | exit ;; | |
4225 | *:GNU/*:*:*) | |
4226 | # other systems with GNU libc and userland | |
4227 | - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | |
4228 | + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} | |
4229 | exit ;; | |
4230 | i*86:Minix:*:*) | |
4231 | echo ${UNAME_MACHINE}-pc-minix | |
4232 | exit ;; | |
4233 | + aarch64:Linux:*:*) | |
4234 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4235 | + exit ;; | |
4236 | + aarch64_be:Linux:*:*) | |
4237 | + UNAME_MACHINE=aarch64_be | |
4238 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4239 | + exit ;; | |
4240 | + alpha:Linux:*:*) | |
4241 | + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | |
4242 | + EV5) UNAME_MACHINE=alphaev5 ;; | |
4243 | + EV56) UNAME_MACHINE=alphaev56 ;; | |
4244 | + PCA56) UNAME_MACHINE=alphapca56 ;; | |
4245 | + PCA57) UNAME_MACHINE=alphapca56 ;; | |
4246 | + EV6) UNAME_MACHINE=alphaev6 ;; | |
4247 | + EV67) UNAME_MACHINE=alphaev67 ;; | |
4248 | + EV68*) UNAME_MACHINE=alphaev68 ;; | |
4249 | + esac | |
4250 | + objdump --private-headers /bin/sh | grep -q ld.so.1 | |
4251 | + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi | |
4252 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4253 | + exit ;; | |
4254 | arm*:Linux:*:*) | |
4255 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
4256 | + eval $set_cc_for_build | |
4257 | + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |
4258 | + | grep -q __ARM_EABI__ | |
4259 | + then | |
4260 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4261 | + else | |
4262 | + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | |
4263 | + | grep -q __ARM_PCS_VFP | |
4264 | + then | |
4265 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi | |
4266 | + else | |
4267 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf | |
4268 | + fi | |
4269 | + fi | |
4270 | + exit ;; | |
4271 | + avr32*:Linux:*:*) | |
4272 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4273 | exit ;; | |
4274 | cris:Linux:*:*) | |
4275 | - echo cris-axis-linux-gnu | |
4276 | + echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
4277 | exit ;; | |
4278 | crisv32:Linux:*:*) | |
4279 | - echo crisv32-axis-linux-gnu | |
4280 | + echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
4281 | exit ;; | |
4282 | frv:Linux:*:*) | |
4283 | - echo frv-unknown-linux-gnu | |
4284 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4285 | + exit ;; | |
4286 | + hexagon:Linux:*:*) | |
4287 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4288 | + exit ;; | |
4289 | + i*86:Linux:*:*) | |
4290 | + echo ${UNAME_MACHINE}-pc-linux-${LIBC} | |
4291 | exit ;; | |
4292 | ia64:Linux:*:*) | |
4293 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
4294 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4295 | exit ;; | |
4296 | m32r*:Linux:*:*) | |
4297 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
4298 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4299 | exit ;; | |
4300 | m68*:Linux:*:*) | |
4301 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
4302 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4303 | exit ;; | |
4304 | - mips:Linux:*:*) | |
4305 | + mips:Linux:*:* | mips64:Linux:*:*) | |
4306 | eval $set_cc_for_build | |
4307 | sed 's/^ //' << EOF >$dummy.c | |
4308 | #undef CPU | |
4309 | - #undef mips | |
4310 | - #undef mipsel | |
4311 | + #undef ${UNAME_MACHINE} | |
4312 | + #undef ${UNAME_MACHINE}el | |
4313 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | |
4314 | - CPU=mipsel | |
4315 | + CPU=${UNAME_MACHINE}el | |
4316 | #else | |
4317 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | |
4318 | - CPU=mips | |
4319 | + CPU=${UNAME_MACHINE} | |
4320 | #else | |
4321 | CPU= | |
4322 | #endif | |
4323 | #endif | |
4324 | EOF | |
4325 | - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | |
4326 | - /^CPU/{ | |
4327 | - s: ::g | |
4328 | - p | |
4329 | - }'`" | |
4330 | - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | |
4331 | - ;; | |
4332 | - mips64:Linux:*:*) | |
4333 | - eval $set_cc_for_build | |
4334 | - sed 's/^ //' << EOF >$dummy.c | |
4335 | - #undef CPU | |
4336 | - #undef mips64 | |
4337 | - #undef mips64el | |
4338 | - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | |
4339 | - CPU=mips64el | |
4340 | - #else | |
4341 | - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | |
4342 | - CPU=mips64 | |
4343 | - #else | |
4344 | - CPU= | |
4345 | - #endif | |
4346 | - #endif | |
4347 | -EOF | |
4348 | - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | |
4349 | - /^CPU/{ | |
4350 | - s: ::g | |
4351 | - p | |
4352 | - }'`" | |
4353 | - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | |
4354 | + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | |
4355 | + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } | |
4356 | ;; | |
4357 | or32:Linux:*:*) | |
4358 | - echo or32-unknown-linux-gnu | |
4359 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4360 | exit ;; | |
4361 | - ppc:Linux:*:*) | |
4362 | - echo powerpc-unknown-linux-gnu | |
4363 | + padre:Linux:*:*) | |
4364 | + echo sparc-unknown-linux-${LIBC} | |
4365 | exit ;; | |
4366 | - ppc64:Linux:*:*) | |
4367 | - echo powerpc64-unknown-linux-gnu | |
4368 | - exit ;; | |
4369 | - alpha:Linux:*:*) | |
4370 | - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | |
4371 | - EV5) UNAME_MACHINE=alphaev5 ;; | |
4372 | - EV56) UNAME_MACHINE=alphaev56 ;; | |
4373 | - PCA56) UNAME_MACHINE=alphapca56 ;; | |
4374 | - PCA57) UNAME_MACHINE=alphapca56 ;; | |
4375 | - EV6) UNAME_MACHINE=alphaev6 ;; | |
4376 | - EV67) UNAME_MACHINE=alphaev67 ;; | |
4377 | - EV68*) UNAME_MACHINE=alphaev68 ;; | |
4378 | - esac | |
4379 | - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null | |
4380 | - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | |
4381 | - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | |
4382 | + parisc64:Linux:*:* | hppa64:Linux:*:*) | |
4383 | + echo hppa64-unknown-linux-${LIBC} | |
4384 | exit ;; | |
4385 | parisc:Linux:*:* | hppa:Linux:*:*) | |
4386 | # Look for CPU level | |
4387 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | |
4388 | - PA7*) echo hppa1.1-unknown-linux-gnu ;; | |
4389 | - PA8*) echo hppa2.0-unknown-linux-gnu ;; | |
4390 | - *) echo hppa-unknown-linux-gnu ;; | |
4391 | + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; | |
4392 | + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; | |
4393 | + *) echo hppa-unknown-linux-${LIBC} ;; | |
4394 | esac | |
4395 | exit ;; | |
4396 | - parisc64:Linux:*:* | hppa64:Linux:*:*) | |
4397 | - echo hppa64-unknown-linux-gnu | |
4398 | + ppc64:Linux:*:*) | |
4399 | + echo powerpc64-unknown-linux-${LIBC} | |
4400 | + exit ;; | |
4401 | + ppc:Linux:*:*) | |
4402 | + echo powerpc-unknown-linux-${LIBC} | |
4403 | exit ;; | |
4404 | s390:Linux:*:* | s390x:Linux:*:*) | |
4405 | echo ${UNAME_MACHINE}-ibm-linux | |
4406 | exit ;; | |
4407 | sh64*:Linux:*:*) | |
4408 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
4409 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4410 | exit ;; | |
4411 | sh*:Linux:*:*) | |
4412 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
4413 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4414 | exit ;; | |
4415 | sparc:Linux:*:* | sparc64:Linux:*:*) | |
4416 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
4417 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4418 | + exit ;; | |
4419 | + tile*:Linux:*:*) | |
4420 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4421 | exit ;; | |
4422 | vax:Linux:*:*) | |
4423 | - echo ${UNAME_MACHINE}-dec-linux-gnu | |
4424 | + echo ${UNAME_MACHINE}-dec-linux-${LIBC} | |
4425 | exit ;; | |
4426 | x86_64:Linux:*:*) | |
4427 | - echo x86_64-unknown-linux-gnu | |
4428 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4429 | + exit ;; | |
4430 | + xtensa*:Linux:*:*) | |
4431 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
4432 | exit ;; | |
4433 | - i*86:Linux:*:*) | |
4434 | - # The BFD linker knows what the default object file format is, so | |
4435 | - # first see if it will tell us. cd to the root directory to prevent | |
4436 | - # problems with other programs or directories called `ld' in the path. | |
4437 | - # Set LC_ALL=C to ensure ld outputs messages in English. | |
4438 | - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | |
4439 | - | sed -ne '/supported targets:/!d | |
4440 | - s/[ ][ ]*/ /g | |
4441 | - s/.*supported targets: *// | |
4442 | - s/ .*// | |
4443 | - p'` | |
4444 | - case "$ld_supported_targets" in | |
4445 | - elf32-i386) | |
4446 | - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" | |
4447 | - ;; | |
4448 | - a.out-i386-linux) | |
4449 | - echo "${UNAME_MACHINE}-pc-linux-gnuaout" | |
4450 | - exit ;; | |
4451 | - coff-i386) | |
4452 | - echo "${UNAME_MACHINE}-pc-linux-gnucoff" | |
4453 | - exit ;; | |
4454 | - "") | |
4455 | - # Either a pre-BFD a.out linker (linux-gnuoldld) or | |
4456 | - # one that does not give us useful --help. | |
4457 | - echo "${UNAME_MACHINE}-pc-linux-gnuoldld" | |
4458 | - exit ;; | |
4459 | - esac | |
4460 | - # Determine whether the default compiler is a.out or elf | |
4461 | - eval $set_cc_for_build | |
4462 | - sed 's/^ //' << EOF >$dummy.c | |
4463 | - #include <features.h> | |
4464 | - #ifdef __ELF__ | |
4465 | - # ifdef __GLIBC__ | |
4466 | - # if __GLIBC__ >= 2 | |
4467 | - LIBC=gnu | |
4468 | - # else | |
4469 | - LIBC=gnulibc1 | |
4470 | - # endif | |
4471 | - # else | |
4472 | - LIBC=gnulibc1 | |
4473 | - # endif | |
4474 | - #else | |
4475 | - #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun) | |
4476 | - LIBC=gnu | |
4477 | - #else | |
4478 | - LIBC=gnuaout | |
4479 | - #endif | |
4480 | - #endif | |
4481 | - #ifdef __dietlibc__ | |
4482 | - LIBC=dietlibc | |
4483 | - #endif | |
4484 | -EOF | |
4485 | - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | |
4486 | - /^LIBC/{ | |
4487 | - s: ::g | |
4488 | - p | |
4489 | - }'`" | |
4490 | - test x"${LIBC}" != x && { | |
4491 | - echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | |
4492 | - exit | |
4493 | - } | |
4494 | - test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } | |
4495 | - ;; | |
4496 | i*86:DYNIX/ptx:4*:*) | |
4497 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | |
4498 | # earlier versions are messed up and put the nodename in both | |
4499 | @@ -1017,11 +1028,11 @@ | |
4500 | echo i386-sequent-sysv4 | |
4501 | exit ;; | |
4502 | i*86:UNIX_SV:4.2MP:2.*) | |
4503 | - # Unixware is an offshoot of SVR4, but it has its own version | |
4504 | - # number series starting with 2... | |
4505 | - # I am not positive that other SVR4 systems won't match this, | |
4506 | + # Unixware is an offshoot of SVR4, but it has its own version | |
4507 | + # number series starting with 2... | |
4508 | + # I am not positive that other SVR4 systems won't match this, | |
4509 | # I just have to hope. -- rms. | |
4510 | - # Use sysv4.2uw... so that sysv4* matches it. | |
4511 | + # Use sysv4.2uw... so that sysv4* matches it. | |
4512 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} | |
4513 | exit ;; | |
4514 | i*86:OS/2:*:*) | |
4515 | @@ -1038,7 +1049,7 @@ | |
4516 | i*86:syllable:*:*) | |
4517 | echo ${UNAME_MACHINE}-pc-syllable | |
4518 | exit ;; | |
4519 | - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) | |
4520 | + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) | |
4521 | echo i386-unknown-lynxos${UNAME_RELEASE} | |
4522 | exit ;; | |
4523 | i*86:*DOS:*:*) | |
4524 | @@ -1053,7 +1064,7 @@ | |
4525 | fi | |
4526 | exit ;; | |
4527 | i*86:*:5:[678]*) | |
4528 | - # UnixWare 7.x, OpenUNIX and OpenServer 6. | |
4529 | + # UnixWare 7.x, OpenUNIX and OpenServer 6. | |
4530 | case `/bin/uname -X | grep "^Machine"` in | |
4531 | *486*) UNAME_MACHINE=i486 ;; | |
4532 | *Pentium) UNAME_MACHINE=i586 ;; | |
4533 | @@ -1081,10 +1092,13 @@ | |
4534 | exit ;; | |
4535 | pc:*:*:*) | |
4536 | # Left here for compatibility: | |
4537 | - # uname -m prints for DJGPP always 'pc', but it prints nothing about | |
4538 | - # the processor, so we play safe by assuming i386. | |
4539 | - echo i386-pc-msdosdjgpp | |
4540 | - exit ;; | |
4541 | + # uname -m prints for DJGPP always 'pc', but it prints nothing about | |
4542 | + # the processor, so we play safe by assuming i586. | |
4543 | + # Note: whatever this is, it MUST be the same as what config.sub | |
4544 | + # prints for the "djgpp" host, or else GDB configury will decide that | |
4545 | + # this is a cross-build. | |
4546 | + echo i586-pc-msdosdjgpp | |
4547 | + exit ;; | |
4548 | Intel:Mach:3*:*) | |
4549 | echo i386-pc-mach3 | |
4550 | exit ;; | |
4551 | @@ -1119,8 +1133,18 @@ | |
4552 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | |
4553 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
4554 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) | |
4555 | - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
4556 | - && { echo i486-ncr-sysv4; exit; } ;; | |
4557 | + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
4558 | + && { echo i486-ncr-sysv4; exit; } ;; | |
4559 | + NCR*:*:4.2:* | MPRAS*:*:4.2:*) | |
4560 | + OS_REL='.3' | |
4561 | + test -r /etc/.relid \ | |
4562 | + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` | |
4563 | + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
4564 | + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | |
4565 | + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | |
4566 | + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } | |
4567 | + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ | |
4568 | + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
4569 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) | |
4570 | echo m68k-unknown-lynxos${UNAME_RELEASE} | |
4571 | exit ;; | |
4572 | @@ -1133,7 +1157,7 @@ | |
4573 | rs6000:LynxOS:2.*:*) | |
4574 | echo rs6000-unknown-lynxos${UNAME_RELEASE} | |
4575 | exit ;; | |
4576 | - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) | |
4577 | + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) | |
4578 | echo powerpc-unknown-lynxos${UNAME_RELEASE} | |
4579 | exit ;; | |
4580 | SM[BE]S:UNIX_SV:*:*) | |
4581 | @@ -1153,10 +1177,10 @@ | |
4582 | echo ns32k-sni-sysv | |
4583 | fi | |
4584 | exit ;; | |
4585 | - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | |
4586 | - # says <Richard.M.Bartel@ccMail.Census.GOV> | |
4587 | - echo i586-unisys-sysv4 | |
4588 | - exit ;; | |
4589 | + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | |
4590 | + # says <Richard.M.Bartel@ccMail.Census.GOV> | |
4591 | + echo i586-unisys-sysv4 | |
4592 | + exit ;; | |
4593 | *:UNIX_System_V:4*:FTX*) | |
4594 | # From Gerald Hewes <hewes@openmarket.com>. | |
4595 | # How about differentiating between stratus architectures? -djm | |
4596 | @@ -1182,11 +1206,11 @@ | |
4597 | exit ;; | |
4598 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) | |
4599 | if [ -d /usr/nec ]; then | |
4600 | - echo mips-nec-sysv${UNAME_RELEASE} | |
4601 | + echo mips-nec-sysv${UNAME_RELEASE} | |
4602 | else | |
4603 | - echo mips-unknown-sysv${UNAME_RELEASE} | |
4604 | + echo mips-unknown-sysv${UNAME_RELEASE} | |
4605 | fi | |
4606 | - exit ;; | |
4607 | + exit ;; | |
4608 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. | |
4609 | echo powerpc-be-beos | |
4610 | exit ;; | |
4611 | @@ -1196,6 +1220,12 @@ | |
4612 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. | |
4613 | echo i586-pc-beos | |
4614 | exit ;; | |
4615 | + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. | |
4616 | + echo i586-pc-haiku | |
4617 | + exit ;; | |
4618 | + x86_64:Haiku:*:*) | |
4619 | + echo x86_64-unknown-haiku | |
4620 | + exit ;; | |
4621 | SX-4:SUPER-UX:*:*) | |
4622 | echo sx4-nec-superux${UNAME_RELEASE} | |
4623 | exit ;; | |
4624 | @@ -1205,6 +1235,15 @@ | |
4625 | SX-6:SUPER-UX:*:*) | |
4626 | echo sx6-nec-superux${UNAME_RELEASE} | |
4627 | exit ;; | |
4628 | + SX-7:SUPER-UX:*:*) | |
4629 | + echo sx7-nec-superux${UNAME_RELEASE} | |
4630 | + exit ;; | |
4631 | + SX-8:SUPER-UX:*:*) | |
4632 | + echo sx8-nec-superux${UNAME_RELEASE} | |
4633 | + exit ;; | |
4634 | + SX-8R:SUPER-UX:*:*) | |
4635 | + echo sx8r-nec-superux${UNAME_RELEASE} | |
4636 | + exit ;; | |
4637 | Power*:Rhapsody:*:*) | |
4638 | echo powerpc-apple-rhapsody${UNAME_RELEASE} | |
4639 | exit ;; | |
4640 | @@ -1214,6 +1253,16 @@ | |
4641 | *:Darwin:*:*) | |
4642 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | |
4643 | case $UNAME_PROCESSOR in | |
4644 | + i386) | |
4645 | + eval $set_cc_for_build | |
4646 | + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
4647 | + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
4648 | + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
4649 | + grep IS_64BIT_ARCH >/dev/null | |
4650 | + then | |
4651 | + UNAME_PROCESSOR="x86_64" | |
4652 | + fi | |
4653 | + fi ;; | |
4654 | unknown) UNAME_PROCESSOR=powerpc ;; | |
4655 | esac | |
4656 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | |
4657 | @@ -1229,7 +1278,10 @@ | |
4658 | *:QNX:*:4*) | |
4659 | echo i386-pc-qnx | |
4660 | exit ;; | |
4661 | - NSE-?:NONSTOP_KERNEL:*:*) | |
4662 | + NEO-?:NONSTOP_KERNEL:*:*) | |
4663 | + echo neo-tandem-nsk${UNAME_RELEASE} | |
4664 | + exit ;; | |
4665 | + NSE-*:NONSTOP_KERNEL:*:*) | |
4666 | echo nse-tandem-nsk${UNAME_RELEASE} | |
4667 | exit ;; | |
4668 | NSR-?:NONSTOP_KERNEL:*:*) | |
4669 | @@ -1274,13 +1326,13 @@ | |
4670 | echo pdp10-unknown-its | |
4671 | exit ;; | |
4672 | SEI:*:*:SEIUX) | |
4673 | - echo mips-sei-seiux${UNAME_RELEASE} | |
4674 | + echo mips-sei-seiux${UNAME_RELEASE} | |
4675 | exit ;; | |
4676 | *:DragonFly:*:*) | |
4677 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | |
4678 | exit ;; | |
4679 | *:*VMS:*:*) | |
4680 | - UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
4681 | + UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
4682 | case "${UNAME_MACHINE}" in | |
4683 | A*) echo alpha-dec-vms ; exit ;; | |
4684 | I*) echo ia64-dec-vms ; exit ;; | |
4685 | @@ -1295,11 +1347,14 @@ | |
4686 | i*86:rdos:*:*) | |
4687 | echo ${UNAME_MACHINE}-pc-rdos | |
4688 | exit ;; | |
4689 | + i*86:AROS:*:*) | |
4690 | + echo ${UNAME_MACHINE}-pc-aros | |
4691 | + exit ;; | |
4692 | + x86_64:VMkernel:*:*) | |
4693 | + echo ${UNAME_MACHINE}-unknown-esx | |
4694 | + exit ;; | |
4695 | esac | |
4696 | ||
4697 | -#echo '(No uname command or uname output not recognized.)' 1>&2 | |
4698 | -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | |
4699 | - | |
4700 | eval $set_cc_for_build | |
4701 | cat >$dummy.c <<EOF | |
4702 | #ifdef _SEQUENT_ | |
4703 | @@ -1317,11 +1372,11 @@ | |
4704 | #include <sys/param.h> | |
4705 | printf ("m68k-sony-newsos%s\n", | |
4706 | #ifdef NEWSOS4 | |
4707 | - "4" | |
4708 | + "4" | |
4709 | #else | |
4710 | - "" | |
4711 | + "" | |
4712 | #endif | |
4713 | - ); exit (0); | |
4714 | + ); exit (0); | |
4715 | #endif | |
4716 | #endif | |
4717 | ||
4718 | @@ -1455,9 +1510,9 @@ | |
4719 | the operating system you are using. It is advised that you | |
4720 | download the most up to date version of the config scripts from | |
4721 | ||
4722 | - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess | |
4723 | + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | |
4724 | and | |
4725 | - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub | |
4726 | + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | |
4727 | ||
4728 | If the version you run ($0) is already up to date, please | |
4729 | send the following data and any information you think might be | |
4730 | diff -urN BUILD/abook-0.6.0pre2/config.h.in abook/config.h.in | |
4731 | --- BUILD/abook-0.6.0pre2/config.h.in 2006-09-05 10:19:48.000000000 +0200 | |
4732 | +++ abook/config.h.in 2013-03-13 15:07:45.000000000 +0100 | |
4733 | @@ -1,12 +1,4 @@ | |
4734 | -/* config.h.in. Generated from configure.in by autoheader. */ | |
4735 | - | |
4736 | -/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP | |
4737 | - systems. This function is required for `alloca.c' support on those systems. | |
4738 | - */ | |
4739 | -#undef CRAY_STACKSEG_END | |
4740 | - | |
4741 | -/* Define to 1 if using `alloca.c'. */ | |
4742 | -#undef C_ALLOCA | |
4743 | +/* config.h.in. Generated from configure.ac by autoheader. */ | |
4744 | ||
4745 | /* Define to 1 if translation of program messages to the user's native | |
4746 | language is requested. */ | |
4747 | @@ -15,19 +7,6 @@ | |
4748 | /* Handle multibyte characters */ | |
4749 | #undef HANDLE_MULTIBYTE | |
4750 | ||
4751 | -/* Define to 1 if you have `alloca', as a function or macro. */ | |
4752 | -#undef HAVE_ALLOCA | |
4753 | - | |
4754 | -/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). | |
4755 | - */ | |
4756 | -#undef HAVE_ALLOCA_H | |
4757 | - | |
4758 | -/* Define to 1 if you have the <argz.h> header file. */ | |
4759 | -#undef HAVE_ARGZ_H | |
4760 | - | |
4761 | -/* Define to 1 if you have the `asprintf' function. */ | |
4762 | -#undef HAVE_ASPRINTF | |
4763 | - | |
4764 | /* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the | |
4765 | CoreFoundation framework. */ | |
4766 | #undef HAVE_CFLOCALECOPYCURRENT | |
4767 | @@ -40,97 +19,31 @@ | |
4768 | */ | |
4769 | #undef HAVE_DCGETTEXT | |
4770 | ||
4771 | -/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you | |
4772 | - don't. */ | |
4773 | -#undef HAVE_DECL_FEOF_UNLOCKED | |
4774 | - | |
4775 | -/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if | |
4776 | - you don't. */ | |
4777 | -#undef HAVE_DECL_FGETS_UNLOCKED | |
4778 | - | |
4779 | -/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you | |
4780 | - don't. */ | |
4781 | -#undef HAVE_DECL_GETC_UNLOCKED | |
4782 | - | |
4783 | /* Define to 1 if you have the declaration of `wcwidth', and to 0 if you | |
4784 | don't. */ | |
4785 | #undef HAVE_DECL_WCWIDTH | |
4786 | ||
4787 | -/* Define to 1 if you have the declaration of `_snprintf', and to 0 if you | |
4788 | - don't. */ | |
4789 | -#undef HAVE_DECL__SNPRINTF | |
4790 | - | |
4791 | -/* Define to 1 if you have the declaration of `_snwprintf', and to 0 if you | |
4792 | - don't. */ | |
4793 | -#undef HAVE_DECL__SNWPRINTF | |
4794 | - | |
4795 | -/* Define to 1 if you have the `fwprintf' function. */ | |
4796 | -#undef HAVE_FWPRINTF | |
4797 | - | |
4798 | -/* Define to 1 if you have the `getcwd' function. */ | |
4799 | -#undef HAVE_GETCWD | |
4800 | - | |
4801 | -/* Define to 1 if you have the `getegid' function. */ | |
4802 | -#undef HAVE_GETEGID | |
4803 | - | |
4804 | -/* Define to 1 if you have the `geteuid' function. */ | |
4805 | -#undef HAVE_GETEUID | |
4806 | - | |
4807 | -/* Define to 1 if you have the `getgid' function. */ | |
4808 | -#undef HAVE_GETGID | |
4809 | - | |
4810 | -/* Define to 1 if you have the `getpagesize' function. */ | |
4811 | -#undef HAVE_GETPAGESIZE | |
4812 | - | |
4813 | /* Define if the GNU gettext() function is already present or preinstalled. */ | |
4814 | #undef HAVE_GETTEXT | |
4815 | ||
4816 | -/* Define to 1 if you have the `getuid' function. */ | |
4817 | -#undef HAVE_GETUID | |
4818 | - | |
4819 | /* Define to 1 if you have the <history.h> header file. */ | |
4820 | #undef HAVE_HISTORY_H | |
4821 | ||
4822 | -/* Define if you have the iconv() function. */ | |
4823 | +/* Define if you have the iconv() function and it works. */ | |
4824 | #undef HAVE_ICONV | |
4825 | ||
4826 | /* Define to 1 if you have the <iconv.h> header file. */ | |
4827 | #undef HAVE_ICONV_H | |
4828 | ||
4829 | -/* Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>. */ | |
4830 | -#undef HAVE_INTMAX_T | |
4831 | - | |
4832 | -/* Define if <inttypes.h> exists and doesn't clash with <sys/types.h>. */ | |
4833 | +/* Define to 1 if you have the <inttypes.h> header file. */ | |
4834 | #undef HAVE_INTTYPES_H | |
4835 | ||
4836 | -/* Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, and | |
4837 | - declares uintmax_t. */ | |
4838 | -#undef HAVE_INTTYPES_H_WITH_UINTMAX | |
4839 | - | |
4840 | -/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */ | |
4841 | -#undef HAVE_LANGINFO_CODESET | |
4842 | - | |
4843 | -/* Define if your <locale.h> file defines LC_MESSAGES. */ | |
4844 | -#undef HAVE_LC_MESSAGES | |
4845 | - | |
4846 | /* Define if you have a readline compatible library */ | |
4847 | #undef HAVE_LIBREADLINE | |
4848 | ||
4849 | -/* Define to 1 if you have the <limits.h> header file. */ | |
4850 | -#undef HAVE_LIMITS_H | |
4851 | - | |
4852 | /* Define to 1 if you have the <locale.h> header file. */ | |
4853 | #undef HAVE_LOCALE_H | |
4854 | ||
4855 | -/* Define if you have the 'long double' type. */ | |
4856 | -#undef HAVE_LONG_DOUBLE | |
4857 | - | |
4858 | -/* Define if you have the 'long long' type. */ | |
4859 | -#undef HAVE_LONG_LONG | |
4860 | - | |
4861 | -/* Define to 1 if you have the <malloc.h> header file. */ | |
4862 | -#undef HAVE_MALLOC_H | |
4863 | - | |
4864 | /* Define to 1 if you have the `mbrtowc' function. */ | |
4865 | #undef HAVE_MBRTOWC | |
4866 | ||
4867 | @@ -143,27 +56,9 @@ | |
4868 | /* Define to 1 if you have the <memory.h> header file. */ | |
4869 | #undef HAVE_MEMORY_H | |
4870 | ||
4871 | -/* Define to 1 if you have the `mempcpy' function. */ | |
4872 | -#undef HAVE_MEMPCPY | |
4873 | - | |
4874 | -/* Define to 1 if you have a working `mmap' system call. */ | |
4875 | -#undef HAVE_MMAP | |
4876 | - | |
4877 | -/* Define to 1 if you have the `munmap' function. */ | |
4878 | -#undef HAVE_MUNMAP | |
4879 | - | |
4880 | /* Define to 1 if you have the <ncurses.h> header file. */ | |
4881 | #undef HAVE_NCURSES_H | |
4882 | ||
4883 | -/* Define to 1 if you have the <nl_types.h> header file. */ | |
4884 | -#undef HAVE_NL_TYPES_H | |
4885 | - | |
4886 | -/* Define if your printf() function supports format strings with positions. */ | |
4887 | -#undef HAVE_POSIX_PRINTF | |
4888 | - | |
4889 | -/* Define to 1 if you have the `putenv' function. */ | |
4890 | -#undef HAVE_PUTENV | |
4891 | - | |
4892 | /* Define to 1 if you have the <readline.h> header file. */ | |
4893 | #undef HAVE_READLINE_H | |
4894 | ||
4895 | @@ -179,9 +74,6 @@ | |
4896 | /* Define to 1 if you have the `resizeterm' function. */ | |
4897 | #undef HAVE_RESIZETERM | |
4898 | ||
4899 | -/* Define to 1 if you have the `setenv' function. */ | |
4900 | -#undef HAVE_SETENV | |
4901 | - | |
4902 | /* Define to 1 if you have the `setlocale' function. */ | |
4903 | #undef HAVE_SETLOCALE | |
4904 | ||
4905 | @@ -191,64 +83,39 @@ | |
4906 | /* Define if you have the <stdarg.h> header file. */ | |
4907 | #undef HAVE_STDARG_H | |
4908 | ||
4909 | -/* Define to 1 if you have the <stddef.h> header file. */ | |
4910 | -#undef HAVE_STDDEF_H | |
4911 | - | |
4912 | /* Define to 1 if you have the <stdint.h> header file. */ | |
4913 | #undef HAVE_STDINT_H | |
4914 | ||
4915 | -/* Define if <stdint.h> exists, doesn't clash with <sys/types.h>, and declares | |
4916 | - uintmax_t. */ | |
4917 | -#undef HAVE_STDINT_H_WITH_UINTMAX | |
4918 | - | |
4919 | /* Define to 1 if you have the <stdlib.h> header file. */ | |
4920 | #undef HAVE_STDLIB_H | |
4921 | ||
4922 | -/* Define to 1 if you have the `stpcpy' function. */ | |
4923 | -#undef HAVE_STPCPY | |
4924 | - | |
4925 | -/* Define to 1 if you have the `strcasecmp' function. */ | |
4926 | -#undef HAVE_STRCASECMP | |
4927 | +/* Define to 1 if you have the `strcasestr' function. */ | |
4928 | +#undef HAVE_STRCASESTR | |
4929 | ||
4930 | /* Define to 1 if you have the `strcoll' function and it is properly defined. | |
4931 | */ | |
4932 | #undef HAVE_STRCOLL | |
4933 | ||
4934 | -/* Define to 1 if you have the `strdup' function. */ | |
4935 | -#undef HAVE_STRDUP | |
4936 | - | |
4937 | /* Define to 1 if you have the <strings.h> header file. */ | |
4938 | #undef HAVE_STRINGS_H | |
4939 | ||
4940 | /* Define to 1 if you have the <string.h> header file. */ | |
4941 | #undef HAVE_STRING_H | |
4942 | ||
4943 | -/* Define to 1 if you have the `strtoul' function. */ | |
4944 | -#undef HAVE_STRTOUL | |
4945 | - | |
4946 | /* Define to 1 if you have the <sys/ioctl.h> header file. */ | |
4947 | #undef HAVE_SYS_IOCTL_H | |
4948 | ||
4949 | -/* Define to 1 if you have the <sys/param.h> header file. */ | |
4950 | -#undef HAVE_SYS_PARAM_H | |
4951 | - | |
4952 | /* Define to 1 if you have the <sys/stat.h> header file. */ | |
4953 | #undef HAVE_SYS_STAT_H | |
4954 | ||
4955 | /* Define to 1 if you have the <sys/types.h> header file. */ | |
4956 | #undef HAVE_SYS_TYPES_H | |
4957 | ||
4958 | -/* Define to 1 if you have the `tsearch' function. */ | |
4959 | -#undef HAVE_TSEARCH | |
4960 | - | |
4961 | -/* Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>. */ | |
4962 | -#undef HAVE_UINTMAX_T | |
4963 | - | |
4964 | /* Define to 1 if you have the <unistd.h> header file. */ | |
4965 | #undef HAVE_UNISTD_H | |
4966 | ||
4967 | -/* Define if you have the 'unsigned long long' type. */ | |
4968 | -#undef HAVE_UNSIGNED_LONG_LONG | |
4969 | +/* Defined if the vformat library is available */ | |
4970 | +#undef HAVE_VFORMAT | |
4971 | ||
4972 | /* Define to 1 if you have the `vsnprintf' function. */ | |
4973 | #undef HAVE_VSNPRINTF | |
4974 | @@ -256,36 +123,9 @@ | |
4975 | /* Define if you have the <wchar.h> header file. */ | |
4976 | #undef HAVE_WCHAR_H | |
4977 | ||
4978 | -/* Define if you have the 'wchar_t' type. */ | |
4979 | -#undef HAVE_WCHAR_T | |
4980 | - | |
4981 | -/* Define to 1 if you have the `wcslen' function. */ | |
4982 | -#undef HAVE_WCSLEN | |
4983 | - | |
4984 | /* Define to 1 if you have the `wcwidth' function. */ | |
4985 | #undef HAVE_WCWIDTH | |
4986 | ||
4987 | -/* Define if you have the 'wint_t' type. */ | |
4988 | -#undef HAVE_WINT_T | |
4989 | - | |
4990 | -/* Define to 1 if you have the `__argz_count' function. */ | |
4991 | -#undef HAVE___ARGZ_COUNT | |
4992 | - | |
4993 | -/* Define to 1 if you have the `__argz_next' function. */ | |
4994 | -#undef HAVE___ARGZ_NEXT | |
4995 | - | |
4996 | -/* Define to 1 if you have the `__argz_stringify' function. */ | |
4997 | -#undef HAVE___ARGZ_STRINGIFY | |
4998 | - | |
4999 | -/* Define to 1 if you have the `__fsetlocking' function. */ | |
5000 | -#undef HAVE___FSETLOCKING | |
5001 | - | |
5002 | -/* Define as const if the declaration of iconv() needs const. */ | |
5003 | -#undef ICONV_CONST | |
5004 | - | |
5005 | -/* Define if integer division by zero raises signal SIGFPE. */ | |
5006 | -#undef INTDIV0_RAISES_SIGFPE | |
5007 | - | |
5008 | /* locale directory */ | |
5009 | #undef LOCALEDIR | |
5010 | ||
5011 | @@ -304,58 +144,58 @@ | |
5012 | /* Define to the one symbol short name of this package. */ | |
5013 | #undef PACKAGE_TARNAME | |
5014 | ||
5015 | +/* Define to the home page for this package. */ | |
5016 | +#undef PACKAGE_URL | |
5017 | + | |
5018 | /* Define to the version of this package. */ | |
5019 | #undef PACKAGE_VERSION | |
5020 | ||
5021 | -/* Define if <inttypes.h> exists and defines unusable PRI* macros. */ | |
5022 | -#undef PRI_MACROS_BROKEN | |
5023 | - | |
5024 | /* Define to 1 if the C compiler supports function prototypes. */ | |
5025 | #undef PROTOTYPES | |
5026 | ||
5027 | -/* Define as the maximum value of type 'size_t', if the system doesn't define | |
5028 | - it. */ | |
5029 | -#undef SIZE_MAX | |
5030 | - | |
5031 | -/* If using the C implementation of alloca, define if you know the | |
5032 | - direction of stack growth for your system; otherwise it will be | |
5033 | - automatically deduced at run-time. | |
5034 | - STACK_DIRECTION > 0 => grows toward higher addresses | |
5035 | - STACK_DIRECTION < 0 => grows toward lower addresses | |
5036 | - STACK_DIRECTION = 0 => direction of growth unknown */ | |
5037 | -#undef STACK_DIRECTION | |
5038 | - | |
5039 | /* Define to 1 if you have the ANSI C header files. */ | |
5040 | #undef STDC_HEADERS | |
5041 | ||
5042 | +/* Enable extensions on AIX 3, Interix. */ | |
5043 | +#ifndef _ALL_SOURCE | |
5044 | +# undef _ALL_SOURCE | |
5045 | +#endif | |
5046 | +/* Enable GNU extensions on systems that have them. */ | |
5047 | +#ifndef _GNU_SOURCE | |
5048 | +# undef _GNU_SOURCE | |
5049 | +#endif | |
5050 | +/* Enable threading extensions on Solaris. */ | |
5051 | +#ifndef _POSIX_PTHREAD_SEMANTICS | |
5052 | +# undef _POSIX_PTHREAD_SEMANTICS | |
5053 | +#endif | |
5054 | +/* Enable extensions on HP NonStop. */ | |
5055 | +#ifndef _TANDEM_SOURCE | |
5056 | +# undef _TANDEM_SOURCE | |
5057 | +#endif | |
5058 | +/* Enable general extensions on Solaris. */ | |
5059 | +#ifndef __EXTENSIONS__ | |
5060 | +# undef __EXTENSIONS__ | |
5061 | +#endif | |
5062 | + | |
5063 | + | |
5064 | /* Version number of package */ | |
5065 | #undef VERSION | |
5066 | ||
5067 | +/* Define to 1 if on MINIX. */ | |
5068 | +#undef _MINIX | |
5069 | + | |
5070 | +/* Define to 2 if the system does not provide POSIX.1 features except with | |
5071 | + this defined. */ | |
5072 | +#undef _POSIX_1_SOURCE | |
5073 | + | |
5074 | +/* Define to 1 if you need to in order for `stat' and other things to work. */ | |
5075 | +#undef _POSIX_SOURCE | |
5076 | + | |
5077 | /* Define like PROTOTYPES; this can be used by system headers. */ | |
5078 | #undef __PROTOTYPES | |
5079 | ||
5080 | -/* Define to empty if `const' does not conform to ANSI C. */ | |
5081 | -#undef const | |
5082 | - | |
5083 | /* Define to `__inline__' or `__inline' if that's what the C compiler | |
5084 | calls it, or to nothing if 'inline' is not supported under any name. */ | |
5085 | #ifndef __cplusplus | |
5086 | #undef inline | |
5087 | #endif | |
5088 | - | |
5089 | -/* Define to `long' if <sys/types.h> does not define. */ | |
5090 | -#undef off_t | |
5091 | - | |
5092 | -/* Define as the type of the result of subtracting two pointers, if the system | |
5093 | - doesn't define it. */ | |
5094 | -#undef ptrdiff_t | |
5095 | - | |
5096 | -/* Define to empty if the C compiler doesn't support this keyword. */ | |
5097 | -#undef signed | |
5098 | - | |
5099 | -/* Define to `unsigned' if <sys/types.h> does not define. */ | |
5100 | -#undef size_t | |
5101 | - | |
5102 | -/* Define to unsigned long or unsigned long long if <stdint.h> and | |
5103 | - <inttypes.h> don't define. */ | |
5104 | -#undef uintmax_t | |
5105 | diff -urN BUILD/abook-0.6.0pre2/config.rpath abook/config.rpath | |
5106 | --- BUILD/abook-0.6.0pre2/config.rpath 2005-09-17 12:10:25.000000000 +0200 | |
5107 | +++ abook/config.rpath 2013-03-13 15:07:45.000000000 +0100 | |
5108 | @@ -2,7 +2,7 @@ | |
5109 | # Output a system dependent set of variables, describing how to set the | |
5110 | # run time search path of shared libraries in an executable. | |
5111 | # | |
5112 | -# Copyright 1996-2005 Free Software Foundation, Inc. | |
5113 | +# Copyright 1996-2010 Free Software Foundation, Inc. | |
5114 | # Taken from GNU libtool, 2001 | |
5115 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
5116 | # | |
5117 | @@ -25,7 +25,7 @@ | |
5118 | # known workaround is to choose shorter directory names for the build | |
5119 | # directory and/or the installation directory. | |
5120 | ||
5121 | -# All known linkers require a `.a' archive for static linking (except M$VC, | |
5122 | +# All known linkers require a `.a' archive for static linking (except MSVC, | |
5123 | # which needs '.lib'). | |
5124 | libext=a | |
5125 | shrext=.so | |
5126 | @@ -35,9 +35,19 @@ | |
5127 | host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
5128 | host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
5129 | ||
5130 | -cc_basename=`echo "$CC" | sed -e 's%^.*/%%'` | |
5131 | +# Code taken from libtool.m4's _LT_CC_BASENAME. | |
5132 | ||
5133 | -# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. | |
5134 | +for cc_temp in $CC""; do | |
5135 | + case $cc_temp in | |
5136 | + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
5137 | + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
5138 | + \-*) ;; | |
5139 | + *) break;; | |
5140 | + esac | |
5141 | +done | |
5142 | +cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` | |
5143 | + | |
5144 | +# Code taken from libtool.m4's _LT_COMPILER_PIC. | |
5145 | ||
5146 | wl= | |
5147 | if test "$GCC" = yes; then | |
5148 | @@ -48,13 +58,13 @@ | |
5149 | wl='-Wl,' | |
5150 | ;; | |
5151 | darwin*) | |
5152 | - case "$cc_basename" in | |
5153 | + case $cc_basename in | |
5154 | xlc*) | |
5155 | wl='-Wl,' | |
5156 | ;; | |
5157 | esac | |
5158 | ;; | |
5159 | - mingw* | pw32* | os2*) | |
5160 | + mingw* | cygwin* | pw32* | os2* | cegcc*) | |
5161 | ;; | |
5162 | hpux9* | hpux10* | hpux11*) | |
5163 | wl='-Wl,' | |
5164 | @@ -64,9 +74,15 @@ | |
5165 | ;; | |
5166 | newsos6) | |
5167 | ;; | |
5168 | - linux*) | |
5169 | + linux* | k*bsd*-gnu) | |
5170 | case $cc_basename in | |
5171 | - icc* | ecc*) | |
5172 | + ecc*) | |
5173 | + wl='-Wl,' | |
5174 | + ;; | |
5175 | + icc* | ifort*) | |
5176 | + wl='-Wl,' | |
5177 | + ;; | |
5178 | + lf95*) | |
5179 | wl='-Wl,' | |
5180 | ;; | |
5181 | pgcc | pgf77 | pgf90) | |
5182 | @@ -78,12 +94,19 @@ | |
5183 | como) | |
5184 | wl='-lopt=' | |
5185 | ;; | |
5186 | + *) | |
5187 | + case `$CC -V 2>&1 | sed 5q` in | |
5188 | + *Sun\ C*) | |
5189 | + wl='-Wl,' | |
5190 | + ;; | |
5191 | + esac | |
5192 | + ;; | |
5193 | esac | |
5194 | ;; | |
5195 | osf3* | osf4* | osf5*) | |
5196 | wl='-Wl,' | |
5197 | ;; | |
5198 | - sco3.2v5*) | |
5199 | + rdos*) | |
5200 | ;; | |
5201 | solaris*) | |
5202 | wl='-Wl,' | |
5203 | @@ -91,11 +114,14 @@ | |
5204 | sunos4*) | |
5205 | wl='-Qoption ld ' | |
5206 | ;; | |
5207 | - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
5208 | + sysv4 | sysv4.2uw2* | sysv4.3*) | |
5209 | wl='-Wl,' | |
5210 | ;; | |
5211 | sysv4*MP*) | |
5212 | ;; | |
5213 | + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
5214 | + wl='-Wl,' | |
5215 | + ;; | |
5216 | unicos*) | |
5217 | wl='-Wl,' | |
5218 | ;; | |
5219 | @@ -104,7 +130,7 @@ | |
5220 | esac | |
5221 | fi | |
5222 | ||
5223 | -# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. | |
5224 | +# Code taken from libtool.m4's _LT_LINKER_SHLIBS. | |
5225 | ||
5226 | hardcode_libdir_flag_spec= | |
5227 | hardcode_libdir_separator= | |
5228 | @@ -112,7 +138,7 @@ | |
5229 | hardcode_minus_L=no | |
5230 | ||
5231 | case "$host_os" in | |
5232 | - cygwin* | mingw* | pw32*) | |
5233 | + cygwin* | mingw* | pw32* | cegcc*) | |
5234 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
5235 | # When not using gcc, we currently assume that we are using | |
5236 | # Microsoft Visual C++. | |
5237 | @@ -120,6 +146,10 @@ | |
5238 | with_gnu_ld=no | |
5239 | fi | |
5240 | ;; | |
5241 | + interix*) | |
5242 | + # we just hope/assume this is gcc and not c89 (= MSVC++) | |
5243 | + with_gnu_ld=yes | |
5244 | + ;; | |
5245 | openbsd*) | |
5246 | with_gnu_ld=no | |
5247 | ;; | |
5248 | @@ -127,8 +157,14 @@ | |
5249 | ||
5250 | ld_shlibs=yes | |
5251 | if test "$with_gnu_ld" = yes; then | |
5252 | + # Set some defaults for GNU ld with shared library support. These | |
5253 | + # are reset later if shared libraries are not supported. Putting them | |
5254 | + # here allows them to be overridden if necessary. | |
5255 | + # Unlike libtool, we use -rpath here, not --rpath, since the documented | |
5256 | + # option of GNU ld is called -rpath, not --rpath. | |
5257 | + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
5258 | case "$host_os" in | |
5259 | - aix3* | aix4* | aix5*) | |
5260 | + aix[3-9]*) | |
5261 | # On AIX/PPC, the GNU linker is very broken | |
5262 | if test "$host_cpu" != ia64; then | |
5263 | ld_shlibs=no | |
5264 | @@ -152,7 +188,7 @@ | |
5265 | ld_shlibs=no | |
5266 | fi | |
5267 | ;; | |
5268 | - cygwin* | mingw* | pw32*) | |
5269 | + cygwin* | mingw* | pw32* | cegcc*) | |
5270 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
5271 | # no search path for DLLs. | |
5272 | hardcode_libdir_flag_spec='-L$libdir' | |
5273 | @@ -162,9 +198,20 @@ | |
5274 | ld_shlibs=no | |
5275 | fi | |
5276 | ;; | |
5277 | + interix[3-9]*) | |
5278 | + hardcode_direct=no | |
5279 | + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
5280 | + ;; | |
5281 | + gnu* | linux* | k*bsd*-gnu) | |
5282 | + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
5283 | + : | |
5284 | + else | |
5285 | + ld_shlibs=no | |
5286 | + fi | |
5287 | + ;; | |
5288 | netbsd*) | |
5289 | ;; | |
5290 | - solaris* | sysv5*) | |
5291 | + solaris*) | |
5292 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
5293 | ld_shlibs=no | |
5294 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
5295 | @@ -173,16 +220,23 @@ | |
5296 | ld_shlibs=no | |
5297 | fi | |
5298 | ;; | |
5299 | + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
5300 | + case `$LD -v 2>&1` in | |
5301 | + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
5302 | + ld_shlibs=no | |
5303 | + ;; | |
5304 | + *) | |
5305 | + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
5306 | + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
5307 | + else | |
5308 | + ld_shlibs=no | |
5309 | + fi | |
5310 | + ;; | |
5311 | + esac | |
5312 | + ;; | |
5313 | sunos4*) | |
5314 | hardcode_direct=yes | |
5315 | ;; | |
5316 | - linux*) | |
5317 | - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
5318 | - : | |
5319 | - else | |
5320 | - ld_shlibs=no | |
5321 | - fi | |
5322 | - ;; | |
5323 | *) | |
5324 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
5325 | : | |
5326 | @@ -191,10 +245,8 @@ | |
5327 | fi | |
5328 | ;; | |
5329 | esac | |
5330 | - if test "$ld_shlibs" = yes; then | |
5331 | - # Unlike libtool, we use -rpath here, not --rpath, since the documented | |
5332 | - # option of GNU ld is called -rpath, not --rpath. | |
5333 | - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
5334 | + if test "$ld_shlibs" = no; then | |
5335 | + hardcode_libdir_flag_spec= | |
5336 | fi | |
5337 | else | |
5338 | case "$host_os" in | |
5339 | @@ -208,7 +260,7 @@ | |
5340 | hardcode_direct=unsupported | |
5341 | fi | |
5342 | ;; | |
5343 | - aix4* | aix5*) | |
5344 | + aix[4-9]*) | |
5345 | if test "$host_cpu" = ia64; then | |
5346 | # On IA64, the linker does run time linking by default, so we don't | |
5347 | # have to do anything special. | |
5348 | @@ -218,13 +270,14 @@ | |
5349 | # Test if we are trying to use run time linking or normal | |
5350 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
5351 | # need to do runtime linking. | |
5352 | - case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
5353 | + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
5354 | for ld_flag in $LDFLAGS; do | |
5355 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
5356 | aix_use_runtimelinking=yes | |
5357 | break | |
5358 | fi | |
5359 | done | |
5360 | + ;; | |
5361 | esac | |
5362 | fi | |
5363 | hardcode_direct=yes | |
5364 | @@ -236,7 +289,7 @@ | |
5365 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
5366 | then | |
5367 | # We have reworked collect2 | |
5368 | - hardcode_direct=yes | |
5369 | + : | |
5370 | else | |
5371 | # We have old collect2 | |
5372 | hardcode_direct=unsupported | |
5373 | @@ -244,6 +297,7 @@ | |
5374 | hardcode_libdir_flag_spec='-L$libdir' | |
5375 | hardcode_libdir_separator= | |
5376 | fi | |
5377 | + ;; | |
5378 | esac | |
5379 | fi | |
5380 | # Begin _LT_AC_SYS_LIBPATH_AIX. | |
5381 | @@ -278,7 +332,7 @@ | |
5382 | ;; | |
5383 | bsdi[45]*) | |
5384 | ;; | |
5385 | - cygwin* | mingw* | pw32*) | |
5386 | + cygwin* | mingw* | pw32* | cegcc*) | |
5387 | # When not using gcc, we currently assume that we are using | |
5388 | # Microsoft Visual C++. | |
5389 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
5390 | @@ -291,7 +345,7 @@ | |
5391 | if test "$GCC" = yes ; then | |
5392 | : | |
5393 | else | |
5394 | - case "$cc_basename" in | |
5395 | + case $cc_basename in | |
5396 | xlc*) | |
5397 | ;; | |
5398 | *) | |
5399 | @@ -314,7 +368,7 @@ | |
5400 | hardcode_direct=yes | |
5401 | hardcode_minus_L=yes | |
5402 | ;; | |
5403 | - freebsd* | kfreebsd*-gnu | dragonfly*) | |
5404 | + freebsd* | dragonfly*) | |
5405 | hardcode_libdir_flag_spec='-R$libdir' | |
5406 | hardcode_direct=yes | |
5407 | ;; | |
5408 | @@ -326,24 +380,25 @@ | |
5409 | # but as the default location of the library. | |
5410 | hardcode_minus_L=yes | |
5411 | ;; | |
5412 | - hpux10* | hpux11*) | |
5413 | + hpux10*) | |
5414 | if test "$with_gnu_ld" = no; then | |
5415 | - case "$host_cpu" in | |
5416 | - hppa*64*) | |
5417 | - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
5418 | - hardcode_libdir_separator=: | |
5419 | - hardcode_direct=no | |
5420 | - ;; | |
5421 | - ia64*) | |
5422 | - hardcode_libdir_flag_spec='-L$libdir' | |
5423 | + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
5424 | + hardcode_libdir_separator=: | |
5425 | + hardcode_direct=yes | |
5426 | + # hardcode_minus_L: Not really in the search PATH, | |
5427 | + # but as the default location of the library. | |
5428 | + hardcode_minus_L=yes | |
5429 | + fi | |
5430 | + ;; | |
5431 | + hpux11*) | |
5432 | + if test "$with_gnu_ld" = no; then | |
5433 | + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
5434 | + hardcode_libdir_separator=: | |
5435 | + case $host_cpu in | |
5436 | + hppa*64*|ia64*) | |
5437 | hardcode_direct=no | |
5438 | - # hardcode_minus_L: Not really in the search PATH, | |
5439 | - # but as the default location of the library. | |
5440 | - hardcode_minus_L=yes | |
5441 | ;; | |
5442 | *) | |
5443 | - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
5444 | - hardcode_libdir_separator=: | |
5445 | hardcode_direct=yes | |
5446 | # hardcode_minus_L: Not really in the search PATH, | |
5447 | # but as the default location of the library. | |
5448 | @@ -366,18 +421,22 @@ | |
5449 | hardcode_libdir_separator=: | |
5450 | ;; | |
5451 | openbsd*) | |
5452 | - hardcode_direct=yes | |
5453 | - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5454 | - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
5455 | + if test -f /usr/libexec/ld.so; then | |
5456 | + hardcode_direct=yes | |
5457 | + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5458 | + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
5459 | + else | |
5460 | + case "$host_os" in | |
5461 | + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
5462 | + hardcode_libdir_flag_spec='-R$libdir' | |
5463 | + ;; | |
5464 | + *) | |
5465 | + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
5466 | + ;; | |
5467 | + esac | |
5468 | + fi | |
5469 | else | |
5470 | - case "$host_os" in | |
5471 | - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
5472 | - hardcode_libdir_flag_spec='-R$libdir' | |
5473 | - ;; | |
5474 | - *) | |
5475 | - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
5476 | - ;; | |
5477 | - esac | |
5478 | + ld_shlibs=no | |
5479 | fi | |
5480 | ;; | |
5481 | os2*) | |
5482 | @@ -397,8 +456,6 @@ | |
5483 | fi | |
5484 | hardcode_libdir_separator=: | |
5485 | ;; | |
5486 | - sco3.2v5*) | |
5487 | - ;; | |
5488 | solaris*) | |
5489 | hardcode_libdir_flag_spec='-R$libdir' | |
5490 | ;; | |
5491 | @@ -427,14 +484,11 @@ | |
5492 | ld_shlibs=yes | |
5493 | fi | |
5494 | ;; | |
5495 | - sysv4.2uw2*) | |
5496 | - hardcode_direct=yes | |
5497 | - hardcode_minus_L=no | |
5498 | - ;; | |
5499 | - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
5500 | + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
5501 | ;; | |
5502 | - sysv5*) | |
5503 | - hardcode_libdir_flag_spec= | |
5504 | + sysv5* | sco3.2v5* | sco5v6*) | |
5505 | + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
5506 | + hardcode_libdir_separator=':' | |
5507 | ;; | |
5508 | uts4*) | |
5509 | hardcode_libdir_flag_spec='-L$libdir' | |
5510 | @@ -446,37 +500,55 @@ | |
5511 | fi | |
5512 | ||
5513 | # Check dynamic linker characteristics | |
5514 | -# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. | |
5515 | +# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. | |
5516 | +# Unlike libtool.m4, here we don't care about _all_ names of the library, but | |
5517 | +# only about the one the linker finds when passed -lNAME. This is the last | |
5518 | +# element of library_names_spec in libtool.m4, or possibly two of them if the | |
5519 | +# linker has special search rules. | |
5520 | +library_names_spec= # the last element of library_names_spec in libtool.m4 | |
5521 | libname_spec='lib$name' | |
5522 | case "$host_os" in | |
5523 | aix3*) | |
5524 | + library_names_spec='$libname.a' | |
5525 | ;; | |
5526 | - aix4* | aix5*) | |
5527 | + aix[4-9]*) | |
5528 | + library_names_spec='$libname$shrext' | |
5529 | ;; | |
5530 | amigaos*) | |
5531 | + library_names_spec='$libname.a' | |
5532 | ;; | |
5533 | beos*) | |
5534 | + library_names_spec='$libname$shrext' | |
5535 | ;; | |
5536 | bsdi[45]*) | |
5537 | + library_names_spec='$libname$shrext' | |
5538 | ;; | |
5539 | - cygwin* | mingw* | pw32*) | |
5540 | + cygwin* | mingw* | pw32* | cegcc*) | |
5541 | shrext=.dll | |
5542 | + library_names_spec='$libname.dll.a $libname.lib' | |
5543 | ;; | |
5544 | darwin* | rhapsody*) | |
5545 | shrext=.dylib | |
5546 | + library_names_spec='$libname$shrext' | |
5547 | ;; | |
5548 | dgux*) | |
5549 | + library_names_spec='$libname$shrext' | |
5550 | ;; | |
5551 | freebsd1*) | |
5552 | ;; | |
5553 | - kfreebsd*-gnu) | |
5554 | - ;; | |
5555 | - freebsd*) | |
5556 | + freebsd* | dragonfly*) | |
5557 | + case "$host_os" in | |
5558 | + freebsd[123]*) | |
5559 | + library_names_spec='$libname$shrext$versuffix' ;; | |
5560 | + *) | |
5561 | + library_names_spec='$libname$shrext' ;; | |
5562 | + esac | |
5563 | ;; | |
5564 | gnu*) | |
5565 | + library_names_spec='$libname$shrext' | |
5566 | ;; | |
5567 | hpux9* | hpux10* | hpux11*) | |
5568 | - case "$host_cpu" in | |
5569 | + case $host_cpu in | |
5570 | ia64*) | |
5571 | shrext=.so | |
5572 | ;; | |
5573 | @@ -487,8 +559,13 @@ | |
5574 | shrext=.sl | |
5575 | ;; | |
5576 | esac | |
5577 | + library_names_spec='$libname$shrext' | |
5578 | + ;; | |
5579 | + interix[3-9]*) | |
5580 | + library_names_spec='$libname$shrext' | |
5581 | ;; | |
5582 | irix5* | irix6* | nonstopux*) | |
5583 | + library_names_spec='$libname$shrext' | |
5584 | case "$host_os" in | |
5585 | irix5* | nonstopux*) | |
5586 | libsuff= shlibsuff= | |
5587 | @@ -505,41 +582,59 @@ | |
5588 | ;; | |
5589 | linux*oldld* | linux*aout* | linux*coff*) | |
5590 | ;; | |
5591 | - linux*) | |
5592 | + linux* | k*bsd*-gnu) | |
5593 | + library_names_spec='$libname$shrext' | |
5594 | ;; | |
5595 | knetbsd*-gnu) | |
5596 | + library_names_spec='$libname$shrext' | |
5597 | ;; | |
5598 | netbsd*) | |
5599 | + library_names_spec='$libname$shrext' | |
5600 | ;; | |
5601 | newsos6) | |
5602 | + library_names_spec='$libname$shrext' | |
5603 | ;; | |
5604 | nto-qnx*) | |
5605 | + library_names_spec='$libname$shrext' | |
5606 | ;; | |
5607 | openbsd*) | |
5608 | + library_names_spec='$libname$shrext$versuffix' | |
5609 | ;; | |
5610 | os2*) | |
5611 | libname_spec='$name' | |
5612 | shrext=.dll | |
5613 | + library_names_spec='$libname.a' | |
5614 | ;; | |
5615 | osf3* | osf4* | osf5*) | |
5616 | + library_names_spec='$libname$shrext' | |
5617 | ;; | |
5618 | - sco3.2v5*) | |
5619 | + rdos*) | |
5620 | ;; | |
5621 | solaris*) | |
5622 | + library_names_spec='$libname$shrext' | |
5623 | ;; | |
5624 | sunos4*) | |
5625 | + library_names_spec='$libname$shrext$versuffix' | |
5626 | ;; | |
5627 | - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
5628 | + sysv4 | sysv4.3*) | |
5629 | + library_names_spec='$libname$shrext' | |
5630 | ;; | |
5631 | sysv4*MP*) | |
5632 | + library_names_spec='$libname$shrext' | |
5633 | + ;; | |
5634 | + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5635 | + library_names_spec='$libname$shrext' | |
5636 | ;; | |
5637 | uts4*) | |
5638 | + library_names_spec='$libname$shrext' | |
5639 | ;; | |
5640 | esac | |
5641 | ||
5642 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5643 | escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` | |
5644 | shlibext=`echo "$shrext" | sed -e 's,^\.,,'` | |
5645 | +escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | |
5646 | +escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | |
5647 | escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | |
5648 | ||
5649 | LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF | |
5650 | @@ -553,6 +648,12 @@ | |
5651 | # Shared library suffix (normally "so"). | |
5652 | shlibext="$shlibext" | |
5653 | ||
5654 | +# Format of library name prefix. | |
5655 | +libname_spec="$escaped_libname_spec" | |
5656 | + | |
5657 | +# Library names that the linker finds when passed -lNAME. | |
5658 | +library_names_spec="$escaped_library_names_spec" | |
5659 | + | |
5660 | # Flag to hardcode \$libdir into a binary during linking. | |
5661 | # This must work even if \$libdir does not exist. | |
5662 | hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" | |
5663 | diff -urN BUILD/abook-0.6.0pre2/config.sub abook/config.sub | |
5664 | --- BUILD/abook-0.6.0pre2/config.sub 2006-08-04 22:18:23.000000000 +0200 | |
5665 | +++ abook/config.sub 2013-03-13 15:07:45.000000000 +0100 | |
5666 | @@ -1,9 +1,10 @@ | |
5667 | #! /bin/sh | |
5668 | # Configuration validation subroutine script. | |
5669 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | |
5670 | -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. | |
5671 | +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, | |
5672 | +# 2011, 2012 Free Software Foundation, Inc. | |
5673 | ||
5674 | -timestamp='2006-02-23' | |
5675 | +timestamp='2012-10-10' | |
5676 | ||
5677 | # This file is (in principle) common to ALL GNU software. | |
5678 | # The presence of a machine in this file suggests that SOME GNU software | |
5679 | @@ -20,9 +21,7 @@ | |
5680 | # GNU General Public License for more details. | |
5681 | # | |
5682 | # You should have received a copy of the GNU General Public License | |
5683 | -# along with this program; if not, write to the Free Software | |
5684 | -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | |
5685 | -# 02110-1301, USA. | |
5686 | +# along with this program; if not, see <http://www.gnu.org/licenses/>. | |
5687 | # | |
5688 | # As a special exception to the GNU General Public License, if you | |
5689 | # distribute this file as part of a program that contains a | |
5690 | @@ -31,13 +30,16 @@ | |
5691 | ||
5692 | ||
5693 | # Please send patches to <config-patches@gnu.org>. Submit a context | |
5694 | -# diff and a properly formatted ChangeLog entry. | |
5695 | +# diff and a properly formatted GNU ChangeLog entry. | |
5696 | # | |
5697 | # Configuration subroutine to validate and canonicalize a configuration type. | |
5698 | # Supply the specified configuration type as an argument. | |
5699 | # If it is invalid, we print an error message on stderr and exit with code 1. | |
5700 | # Otherwise, we print the canonical config type on stdout and succeed. | |
5701 | ||
5702 | +# You can get the latest version of this script from: | |
5703 | +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | |
5704 | + | |
5705 | # This file is supposed to be the same for all GNU packages | |
5706 | # and recognize all the CPU types, system types and aliases | |
5707 | # that are meaningful with *any* GNU software. | |
5708 | @@ -71,7 +73,8 @@ | |
5709 | version="\ | |
5710 | GNU config.sub ($timestamp) | |
5711 | ||
5712 | -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 | |
5713 | +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | |
5714 | +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 | |
5715 | Free Software Foundation, Inc. | |
5716 | ||
5717 | This is free software; see the source for copying conditions. There is NO | |
5718 | @@ -119,12 +122,18 @@ | |
5719 | # Here we must recognize all the valid KERNEL-OS combinations. | |
5720 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | |
5721 | case $maybe_os in | |
5722 | - nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ | |
5723 | - uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ | |
5724 | + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ | |
5725 | + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ | |
5726 | + knetbsd*-gnu* | netbsd*-gnu* | \ | |
5727 | + kopensolaris*-gnu* | \ | |
5728 | storm-chaos* | os2-emx* | rtmk-nova*) | |
5729 | os=-$maybe_os | |
5730 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | |
5731 | ;; | |
5732 | + android-linux) | |
5733 | + os=-linux-android | |
5734 | + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
5735 | + ;; | |
5736 | *) | |
5737 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` | |
5738 | if [ $basic_machine != $1 ] | |
5739 | @@ -147,10 +156,13 @@ | |
5740 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ | |
5741 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ | |
5742 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ | |
5743 | - -apple | -axis | -knuth | -cray) | |
5744 | + -apple | -axis | -knuth | -cray | -microblaze*) | |
5745 | os= | |
5746 | basic_machine=$1 | |
5747 | ;; | |
5748 | + -bluegene*) | |
5749 | + os=-cnk | |
5750 | + ;; | |
5751 | -sim | -cisco | -oki | -wec | -winbond) | |
5752 | os= | |
5753 | basic_machine=$1 | |
5754 | @@ -165,10 +177,10 @@ | |
5755 | os=-chorusos | |
5756 | basic_machine=$1 | |
5757 | ;; | |
5758 | - -chorusrdb) | |
5759 | - os=-chorusrdb | |
5760 | + -chorusrdb) | |
5761 | + os=-chorusrdb | |
5762 | basic_machine=$1 | |
5763 | - ;; | |
5764 | + ;; | |
5765 | -hiux*) | |
5766 | os=-hiuxwe2 | |
5767 | ;; | |
5768 | @@ -213,6 +225,12 @@ | |
5769 | -isc*) | |
5770 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
5771 | ;; | |
5772 | + -lynx*178) | |
5773 | + os=-lynxos178 | |
5774 | + ;; | |
5775 | + -lynx*5) | |
5776 | + os=-lynxos5 | |
5777 | + ;; | |
5778 | -lynx*) | |
5779 | os=-lynxos | |
5780 | ;; | |
5781 | @@ -237,23 +255,32 @@ | |
5782 | # Some are omitted here because they have special meanings below. | |
5783 | 1750a | 580 \ | |
5784 | | a29k \ | |
5785 | + | aarch64 | aarch64_be \ | |
5786 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | |
5787 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | |
5788 | | am33_2.0 \ | |
5789 | - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ | |
5790 | + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | |
5791 | + | be32 | be64 \ | |
5792 | | bfin \ | |
5793 | | c4x | clipper \ | |
5794 | - | d10v | d30v | dlx | dsp16xx \ | |
5795 | - | fr30 | frv \ | |
5796 | + | d10v | d30v | dlx | dsp16xx | dvp \ | |
5797 | + | epiphany \ | |
5798 | + | fido | fr30 | frv \ | |
5799 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | |
5800 | + | hexagon \ | |
5801 | | i370 | i860 | i960 | ia64 \ | |
5802 | | ip2k | iq2000 \ | |
5803 | - | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ | |
5804 | + | le32 | le64 \ | |
5805 | + | lm32 \ | |
5806 | + | m32c | m32r | m32rle | m68000 | m68k | m88k \ | |
5807 | + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | |
5808 | | mips | mipsbe | mipseb | mipsel | mipsle \ | |
5809 | | mips16 \ | |
5810 | | mips64 | mips64el \ | |
5811 | - | mips64vr | mips64vrel \ | |
5812 | + | mips64octeon | mips64octeonel \ | |
5813 | | mips64orion | mips64orionel \ | |
5814 | + | mips64r5900 | mips64r5900el \ | |
5815 | + | mips64vr | mips64vrel \ | |
5816 | | mips64vr4100 | mips64vr4100el \ | |
5817 | | mips64vr4300 | mips64vr4300el \ | |
5818 | | mips64vr5000 | mips64vr5000el \ | |
5819 | @@ -266,31 +293,42 @@ | |
5820 | | mipsisa64sr71k | mipsisa64sr71kel \ | |
5821 | | mipstx39 | mipstx39el \ | |
5822 | | mn10200 | mn10300 \ | |
5823 | + | moxie \ | |
5824 | | mt \ | |
5825 | | msp430 \ | |
5826 | + | nds32 | nds32le | nds32be \ | |
5827 | | nios | nios2 \ | |
5828 | | ns16k | ns32k \ | |
5829 | + | open8 \ | |
5830 | | or32 \ | |
5831 | | pdp10 | pdp11 | pj | pjl \ | |
5832 | - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | |
5833 | + | powerpc | powerpc64 | powerpc64le | powerpcle \ | |
5834 | | pyramid \ | |
5835 | - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | |
5836 | + | rl78 | rx \ | |
5837 | + | score \ | |
5838 | + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | |
5839 | | sh64 | sh64le \ | |
5840 | - | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ | |
5841 | - | sparcv8 | sparcv9 | sparcv9b \ | |
5842 | - | strongarm \ | |
5843 | - | tahoe | thumb | tic4x | tic80 | tron \ | |
5844 | - | v850 | v850e \ | |
5845 | + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | |
5846 | + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | |
5847 | + | spu \ | |
5848 | + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | |
5849 | + | ubicom32 \ | |
5850 | + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | |
5851 | | we32k \ | |
5852 | - | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ | |
5853 | - | z8k) | |
5854 | + | x86 | xc16x | xstormy16 | xtensa \ | |
5855 | + | z8k | z80) | |
5856 | basic_machine=$basic_machine-unknown | |
5857 | ;; | |
5858 | - m32c) | |
5859 | - basic_machine=$basic_machine-unknown | |
5860 | + c54x) | |
5861 | + basic_machine=tic54x-unknown | |
5862 | + ;; | |
5863 | + c55x) | |
5864 | + basic_machine=tic55x-unknown | |
5865 | + ;; | |
5866 | + c6x) | |
5867 | + basic_machine=tic6x-unknown | |
5868 | ;; | |
5869 | - m6811 | m68hc11 | m6812 | m68hc12) | |
5870 | - # Motorola 68HC11/12. | |
5871 | + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) | |
5872 | basic_machine=$basic_machine-unknown | |
5873 | os=-none | |
5874 | ;; | |
5875 | @@ -300,6 +338,21 @@ | |
5876 | basic_machine=mt-unknown | |
5877 | ;; | |
5878 | ||
5879 | + strongarm | thumb | xscale) | |
5880 | + basic_machine=arm-unknown | |
5881 | + ;; | |
5882 | + xgate) | |
5883 | + basic_machine=$basic_machine-unknown | |
5884 | + os=-none | |
5885 | + ;; | |
5886 | + xscaleeb) | |
5887 | + basic_machine=armeb-unknown | |
5888 | + ;; | |
5889 | + | |
5890 | + xscaleel) | |
5891 | + basic_machine=armel-unknown | |
5892 | + ;; | |
5893 | + | |
5894 | # We use `pc' rather than `unknown' | |
5895 | # because (1) that's what they normally are, and | |
5896 | # (2) the word "unknown" tends to confuse beginning users. | |
5897 | @@ -314,29 +367,37 @@ | |
5898 | # Recognize the basic CPU types with company name. | |
5899 | 580-* \ | |
5900 | | a29k-* \ | |
5901 | + | aarch64-* | aarch64_be-* \ | |
5902 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | |
5903 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | |
5904 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | |
5905 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | |
5906 | - | avr-* \ | |
5907 | + | avr-* | avr32-* \ | |
5908 | + | be32-* | be64-* \ | |
5909 | | bfin-* | bs2000-* \ | |
5910 | - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | |
5911 | + | c[123]* | c30-* | [cjt]90-* | c4x-* \ | |
5912 | | clipper-* | craynv-* | cydra-* \ | |
5913 | | d10v-* | d30v-* | dlx-* \ | |
5914 | | elxsi-* \ | |
5915 | - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | |
5916 | + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | |
5917 | | h8300-* | h8500-* \ | |
5918 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | |
5919 | + | hexagon-* \ | |
5920 | | i*86-* | i860-* | i960-* | ia64-* \ | |
5921 | | ip2k-* | iq2000-* \ | |
5922 | - | m32r-* | m32rle-* \ | |
5923 | + | le32-* | le64-* \ | |
5924 | + | lm32-* \ | |
5925 | + | m32c-* | m32r-* | m32rle-* \ | |
5926 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | |
5927 | - | m88110-* | m88k-* | maxq-* | mcore-* \ | |
5928 | + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | |
5929 | + | microblaze-* | microblazeel-* \ | |
5930 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | |
5931 | | mips16-* \ | |
5932 | | mips64-* | mips64el-* \ | |
5933 | - | mips64vr-* | mips64vrel-* \ | |
5934 | + | mips64octeon-* | mips64octeonel-* \ | |
5935 | | mips64orion-* | mips64orionel-* \ | |
5936 | + | mips64r5900-* | mips64r5900el-* \ | |
5937 | + | mips64vr-* | mips64vrel-* \ | |
5938 | | mips64vr4100-* | mips64vr4100el-* \ | |
5939 | | mips64vr4300-* | mips64vr4300el-* \ | |
5940 | | mips64vr5000-* | mips64vr5000el-* \ | |
5941 | @@ -351,29 +412,36 @@ | |
5942 | | mmix-* \ | |
5943 | | mt-* \ | |
5944 | | msp430-* \ | |
5945 | + | nds32-* | nds32le-* | nds32be-* \ | |
5946 | | nios-* | nios2-* \ | |
5947 | | none-* | np1-* | ns16k-* | ns32k-* \ | |
5948 | + | open8-* \ | |
5949 | | orion-* \ | |
5950 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | |
5951 | - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | |
5952 | + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | |
5953 | | pyramid-* \ | |
5954 | - | romp-* | rs6000-* \ | |
5955 | - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | |
5956 | + | rl78-* | romp-* | rs6000-* | rx-* \ | |
5957 | + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | |
5958 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | |
5959 | - | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ | |
5960 | + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | |
5961 | | sparclite-* \ | |
5962 | - | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | |
5963 | - | tahoe-* | thumb-* \ | |
5964 | + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | |
5965 | + | tahoe-* \ | |
5966 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | |
5967 | + | tile*-* \ | |
5968 | | tron-* \ | |
5969 | - | v850-* | v850e-* | vax-* \ | |
5970 | + | ubicom32-* \ | |
5971 | + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | |
5972 | + | vax-* \ | |
5973 | | we32k-* \ | |
5974 | - | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ | |
5975 | - | xstormy16-* | xtensa-* \ | |
5976 | + | x86-* | x86_64-* | xc16x-* | xps100-* \ | |
5977 | + | xstormy16-* | xtensa*-* \ | |
5978 | | ymp-* \ | |
5979 | - | z8k-*) | |
5980 | + | z8k-* | z80-*) | |
5981 | ;; | |
5982 | - m32c-*) | |
5983 | + # Recognize the basic CPU types without company name, with glob match. | |
5984 | + xtensa*) | |
5985 | + basic_machine=$basic_machine-unknown | |
5986 | ;; | |
5987 | # Recognize the various machine names and aliases which stand | |
5988 | # for a CPU type and a company and sometimes even an OS. | |
5989 | @@ -391,7 +459,7 @@ | |
5990 | basic_machine=a29k-amd | |
5991 | os=-udi | |
5992 | ;; | |
5993 | - abacus) | |
5994 | + abacus) | |
5995 | basic_machine=abacus-unknown | |
5996 | ;; | |
5997 | adobe68k) | |
5998 | @@ -437,6 +505,10 @@ | |
5999 | basic_machine=m68k-apollo | |
6000 | os=-bsd | |
6001 | ;; | |
6002 | + aros) | |
6003 | + basic_machine=i386-pc | |
6004 | + os=-aros | |
6005 | + ;; | |
6006 | aux) | |
6007 | basic_machine=m68k-apple | |
6008 | os=-aux | |
6009 | @@ -445,10 +517,35 @@ | |
6010 | basic_machine=ns32k-sequent | |
6011 | os=-dynix | |
6012 | ;; | |
6013 | + blackfin) | |
6014 | + basic_machine=bfin-unknown | |
6015 | + os=-linux | |
6016 | + ;; | |
6017 | + blackfin-*) | |
6018 | + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` | |
6019 | + os=-linux | |
6020 | + ;; | |
6021 | + bluegene*) | |
6022 | + basic_machine=powerpc-ibm | |
6023 | + os=-cnk | |
6024 | + ;; | |
6025 | + c54x-*) | |
6026 | + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
6027 | + ;; | |
6028 | + c55x-*) | |
6029 | + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
6030 | + ;; | |
6031 | + c6x-*) | |
6032 | + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
6033 | + ;; | |
6034 | c90) | |
6035 | basic_machine=c90-cray | |
6036 | os=-unicos | |
6037 | ;; | |
6038 | + cegcc) | |
6039 | + basic_machine=arm-unknown | |
6040 | + os=-cegcc | |
6041 | + ;; | |
6042 | convex-c1) | |
6043 | basic_machine=c1-convex | |
6044 | os=-bsd | |
6045 | @@ -477,8 +574,8 @@ | |
6046 | basic_machine=craynv-cray | |
6047 | os=-unicosmp | |
6048 | ;; | |
6049 | - cr16c) | |
6050 | - basic_machine=cr16c-unknown | |
6051 | + cr16 | cr16-*) | |
6052 | + basic_machine=cr16-unknown | |
6053 | os=-elf | |
6054 | ;; | |
6055 | crds | unos) | |
6056 | @@ -516,6 +613,10 @@ | |
6057 | basic_machine=m88k-motorola | |
6058 | os=-sysv3 | |
6059 | ;; | |
6060 | + dicos) | |
6061 | + basic_machine=i686-pc | |
6062 | + os=-dicos | |
6063 | + ;; | |
6064 | djgpp) | |
6065 | basic_machine=i586-pc | |
6066 | os=-msdosdjgpp | |
6067 | @@ -631,7 +732,6 @@ | |
6068 | i370-ibm* | ibm*) | |
6069 | basic_machine=i370-ibm | |
6070 | ;; | |
6071 | -# I'm not sure what "Sysv32" means. Should this be sysv3.2? | |
6072 | i*86v32) | |
6073 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
6074 | os=-sysv32 | |
6075 | @@ -670,6 +770,14 @@ | |
6076 | basic_machine=m68k-isi | |
6077 | os=-sysv | |
6078 | ;; | |
6079 | + m68knommu) | |
6080 | + basic_machine=m68k-unknown | |
6081 | + os=-linux | |
6082 | + ;; | |
6083 | + m68knommu-*) | |
6084 | + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` | |
6085 | + os=-linux | |
6086 | + ;; | |
6087 | m88k-omron*) | |
6088 | basic_machine=m88k-omron | |
6089 | ;; | |
6090 | @@ -681,10 +789,21 @@ | |
6091 | basic_machine=ns32k-utek | |
6092 | os=-sysv | |
6093 | ;; | |
6094 | + microblaze*) | |
6095 | + basic_machine=microblaze-xilinx | |
6096 | + ;; | |
6097 | + mingw64) | |
6098 | + basic_machine=x86_64-pc | |
6099 | + os=-mingw64 | |
6100 | + ;; | |
6101 | mingw32) | |
6102 | basic_machine=i386-pc | |
6103 | os=-mingw32 | |
6104 | ;; | |
6105 | + mingw32ce) | |
6106 | + basic_machine=arm-unknown | |
6107 | + os=-mingw32ce | |
6108 | + ;; | |
6109 | miniframe) | |
6110 | basic_machine=m68000-convergent | |
6111 | ;; | |
6112 | @@ -692,6 +811,24 @@ | |
6113 | basic_machine=m68k-atari | |
6114 | os=-mint | |
6115 | ;; | |
6116 | + mipsEE* | ee | ps2) | |
6117 | + basic_machine=mips64r5900el-scei | |
6118 | + case $os in | |
6119 | + -linux*) | |
6120 | + ;; | |
6121 | + *) | |
6122 | + os=-elf | |
6123 | + ;; | |
6124 | + esac | |
6125 | + ;; | |
6126 | + iop) | |
6127 | + basic_machine=mipsel-scei | |
6128 | + os=-irx | |
6129 | + ;; | |
6130 | + dvp) | |
6131 | + basic_machine=dvp-scei | |
6132 | + os=-elf | |
6133 | + ;; | |
6134 | mips3*-*) | |
6135 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` | |
6136 | ;; | |
6137 | @@ -713,10 +850,18 @@ | |
6138 | ms1-*) | |
6139 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` | |
6140 | ;; | |
6141 | + msys) | |
6142 | + basic_machine=i386-pc | |
6143 | + os=-msys | |
6144 | + ;; | |
6145 | mvs) | |
6146 | basic_machine=i370-ibm | |
6147 | os=-mvs | |
6148 | ;; | |
6149 | + nacl) | |
6150 | + basic_machine=le32-unknown | |
6151 | + os=-nacl | |
6152 | + ;; | |
6153 | ncr3000) | |
6154 | basic_machine=i486-ncr | |
6155 | os=-sysv4 | |
6156 | @@ -781,6 +926,12 @@ | |
6157 | np1) | |
6158 | basic_machine=np1-gould | |
6159 | ;; | |
6160 | + neo-tandem) | |
6161 | + basic_machine=neo-tandem | |
6162 | + ;; | |
6163 | + nse-tandem) | |
6164 | + basic_machine=nse-tandem | |
6165 | + ;; | |
6166 | nsr-tandem) | |
6167 | basic_machine=nsr-tandem | |
6168 | ;; | |
6169 | @@ -811,6 +962,14 @@ | |
6170 | basic_machine=i860-intel | |
6171 | os=-osf | |
6172 | ;; | |
6173 | + parisc) | |
6174 | + basic_machine=hppa-unknown | |
6175 | + os=-linux | |
6176 | + ;; | |
6177 | + parisc-*) | |
6178 | + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` | |
6179 | + os=-linux | |
6180 | + ;; | |
6181 | pbd) | |
6182 | basic_machine=sparc-tti | |
6183 | ;; | |
6184 | @@ -855,9 +1014,10 @@ | |
6185 | ;; | |
6186 | power) basic_machine=power-ibm | |
6187 | ;; | |
6188 | - ppc) basic_machine=powerpc-unknown | |
6189 | + ppc | ppcbe) basic_machine=powerpc-unknown | |
6190 | ;; | |
6191 | - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | |
6192 | + ppc-* | ppcbe-*) | |
6193 | + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | |
6194 | ;; | |
6195 | ppcle | powerpclittle | ppc-le | powerpc-little) | |
6196 | basic_machine=powerpcle-unknown | |
6197 | @@ -912,6 +1072,10 @@ | |
6198 | sb1el) | |
6199 | basic_machine=mipsisa64sb1el-unknown | |
6200 | ;; | |
6201 | + sde) | |
6202 | + basic_machine=mipsisa32-sde | |
6203 | + os=-elf | |
6204 | + ;; | |
6205 | sei) | |
6206 | basic_machine=mips-sei | |
6207 | os=-seiux | |
6208 | @@ -923,6 +1087,9 @@ | |
6209 | basic_machine=sh-hitachi | |
6210 | os=-hms | |
6211 | ;; | |
6212 | + sh5el) | |
6213 | + basic_machine=sh5le-unknown | |
6214 | + ;; | |
6215 | sh64) | |
6216 | basic_machine=sh64-unknown | |
6217 | ;; | |
6218 | @@ -944,6 +1111,9 @@ | |
6219 | basic_machine=i860-stratus | |
6220 | os=-sysv4 | |
6221 | ;; | |
6222 | + strongarm-* | thumb-*) | |
6223 | + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` | |
6224 | + ;; | |
6225 | sun2) | |
6226 | basic_machine=m68000-sun | |
6227 | ;; | |
6228 | @@ -1000,17 +1170,9 @@ | |
6229 | basic_machine=t90-cray | |
6230 | os=-unicos | |
6231 | ;; | |
6232 | - tic54x | c54x*) | |
6233 | - basic_machine=tic54x-unknown | |
6234 | - os=-coff | |
6235 | - ;; | |
6236 | - tic55x | c55x*) | |
6237 | - basic_machine=tic55x-unknown | |
6238 | - os=-coff | |
6239 | - ;; | |
6240 | - tic6x | c6x*) | |
6241 | - basic_machine=tic6x-unknown | |
6242 | - os=-coff | |
6243 | + tile*) | |
6244 | + basic_machine=$basic_machine-unknown | |
6245 | + os=-linux-gnu | |
6246 | ;; | |
6247 | tx39) | |
6248 | basic_machine=mipstx39-unknown | |
6249 | @@ -1079,6 +1241,9 @@ | |
6250 | xps | xps100) | |
6251 | basic_machine=xps100-honeywell | |
6252 | ;; | |
6253 | + xscale-* | xscalee[bl]-*) | |
6254 | + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` | |
6255 | + ;; | |
6256 | ymp) | |
6257 | basic_machine=ymp-cray | |
6258 | os=-unicos | |
6259 | @@ -1087,6 +1252,10 @@ | |
6260 | basic_machine=z8k-unknown | |
6261 | os=-sim | |
6262 | ;; | |
6263 | + z80-*-coff) | |
6264 | + basic_machine=z80-unknown | |
6265 | + os=-sim | |
6266 | + ;; | |
6267 | none) | |
6268 | basic_machine=none-none | |
6269 | os=-none | |
6270 | @@ -1125,10 +1294,10 @@ | |
6271 | we32k) | |
6272 | basic_machine=we32k-att | |
6273 | ;; | |
6274 | - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) | |
6275 | + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) | |
6276 | basic_machine=sh-unknown | |
6277 | ;; | |
6278 | - sparc | sparcv8 | sparcv9 | sparcv9b) | |
6279 | + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) | |
6280 | basic_machine=sparc-sun | |
6281 | ;; | |
6282 | cydra) | |
6283 | @@ -1172,9 +1341,12 @@ | |
6284 | if [ x"$os" != x"" ] | |
6285 | then | |
6286 | case $os in | |
6287 | - # First match some system type aliases | |
6288 | - # that might get confused with valid system types. | |
6289 | + # First match some system type aliases | |
6290 | + # that might get confused with valid system types. | |
6291 | # -solaris* is a basic system type, with this one exception. | |
6292 | + -auroraux) | |
6293 | + os=-auroraux | |
6294 | + ;; | |
6295 | -solaris1 | -solaris1.*) | |
6296 | os=`echo $os | sed -e 's|solaris1|sunos4|'` | |
6297 | ;; | |
6298 | @@ -1195,29 +1367,31 @@ | |
6299 | # Each alternative MUST END IN A *, to match a version number. | |
6300 | # -sysv* is not here because it comes later, after sysvr4. | |
6301 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | |
6302 | - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | |
6303 | - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | |
6304 | + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | |
6305 | + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | |
6306 | + | -sym* | -kopensolaris* \ | |
6307 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | |
6308 | - | -aos* \ | |
6309 | + | -aos* | -aros* \ | |
6310 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | |
6311 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | |
6312 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | |
6313 | - | -openbsd* | -solidbsd* \ | |
6314 | + | -bitrig* | -openbsd* | -solidbsd* \ | |
6315 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | |
6316 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | |
6317 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | |
6318 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | |
6319 | - | -chorusos* | -chorusrdb* \ | |
6320 | - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | |
6321 | - | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | |
6322 | + | -chorusos* | -chorusrdb* | -cegcc* \ | |
6323 | + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | |
6324 | + | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | |
6325 | + | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | |
6326 | | -uxpv* | -beos* | -mpeix* | -udk* \ | |
6327 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | |
6328 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | |
6329 | - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | |
6330 | + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -irx* \ | |
6331 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | |
6332 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | |
6333 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | |
6334 | - | -skyos* | -haiku* | -rdos*) | |
6335 | + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) | |
6336 | # Remember, each alternative MUST END IN *, to match a version number. | |
6337 | ;; | |
6338 | -qnx*) | |
6339 | @@ -1256,7 +1430,7 @@ | |
6340 | -opened*) | |
6341 | os=-openedition | |
6342 | ;; | |
6343 | - -os400*) | |
6344 | + -os400*) | |
6345 | os=-os400 | |
6346 | ;; | |
6347 | -wince*) | |
6348 | @@ -1305,7 +1479,7 @@ | |
6349 | -sinix*) | |
6350 | os=-sysv4 | |
6351 | ;; | |
6352 | - -tpf*) | |
6353 | + -tpf*) | |
6354 | os=-tpf | |
6355 | ;; | |
6356 | -triton*) | |
6357 | @@ -1347,6 +1521,11 @@ | |
6358 | -zvmoe) | |
6359 | os=-zvmoe | |
6360 | ;; | |
6361 | + -dicos*) | |
6362 | + os=-dicos | |
6363 | + ;; | |
6364 | + -nacl*) | |
6365 | + ;; | |
6366 | -none) | |
6367 | ;; | |
6368 | *) | |
6369 | @@ -1369,6 +1548,12 @@ | |
6370 | # system, and we'll never get to this point. | |
6371 | ||
6372 | case $basic_machine in | |
6373 | + score-*) | |
6374 | + os=-elf | |
6375 | + ;; | |
6376 | + spu-*) | |
6377 | + os=-elf | |
6378 | + ;; | |
6379 | *-acorn) | |
6380 | os=-riscix1.2 | |
6381 | ;; | |
6382 | @@ -1378,9 +1563,21 @@ | |
6383 | arm*-semi) | |
6384 | os=-aout | |
6385 | ;; | |
6386 | - c4x-* | tic4x-*) | |
6387 | - os=-coff | |
6388 | - ;; | |
6389 | + c4x-* | tic4x-*) | |
6390 | + os=-coff | |
6391 | + ;; | |
6392 | + hexagon-*) | |
6393 | + os=-elf | |
6394 | + ;; | |
6395 | + tic54x-*) | |
6396 | + os=-coff | |
6397 | + ;; | |
6398 | + tic55x-*) | |
6399 | + os=-coff | |
6400 | + ;; | |
6401 | + tic6x-*) | |
6402 | + os=-coff | |
6403 | + ;; | |
6404 | # This must come before the *-dec entry. | |
6405 | pdp10-*) | |
6406 | os=-tops20 | |
6407 | @@ -1399,13 +1596,13 @@ | |
6408 | ;; | |
6409 | m68000-sun) | |
6410 | os=-sunos3 | |
6411 | - # This also exists in the configure program, but was not the | |
6412 | - # default. | |
6413 | - # os=-sunos4 | |
6414 | ;; | |
6415 | m68*-cisco) | |
6416 | os=-aout | |
6417 | ;; | |
6418 | + mep-*) | |
6419 | + os=-elf | |
6420 | + ;; | |
6421 | mips*-cisco) | |
6422 | os=-elf | |
6423 | ;; | |
6424 | @@ -1430,7 +1627,7 @@ | |
6425 | *-ibm) | |
6426 | os=-aix | |
6427 | ;; | |
6428 | - *-knuth) | |
6429 | + *-knuth) | |
6430 | os=-mmixware | |
6431 | ;; | |
6432 | *-wec) | |
6433 | @@ -1535,7 +1732,7 @@ | |
6434 | -sunos*) | |
6435 | vendor=sun | |
6436 | ;; | |
6437 | - -aix*) | |
6438 | + -cnk*|-aix*) | |
6439 | vendor=ibm | |
6440 | ;; | |
6441 | -beos*) | |
6442 | diff -urN BUILD/abook-0.6.0pre2/configure abook/configure | |
6443 | --- BUILD/abook-0.6.0pre2/configure 2006-09-05 10:19:36.000000000 +0200 | |
6444 | +++ abook/configure 2013-03-13 15:07:45.000000000 +0100 | |
6445 | @@ -1,81 +1,459 @@ | |
6446 | #! /bin/sh | |
6447 | # Guess values for system-dependent variables and create Makefiles. | |
6448 | -# Generated by GNU Autoconf 2.59. | |
6449 | +# Generated by GNU Autoconf 2.69. | |
6450 | +# | |
6451 | +# | |
6452 | +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
6453 | +# | |
6454 | # | |
6455 | -# Copyright (C) 2003 Free Software Foundation, Inc. | |
6456 | # This configure script is free software; the Free Software Foundation | |
6457 | # gives unlimited permission to copy, distribute and modify it. | |
6458 | -## --------------------- ## | |
6459 | -## M4sh Initialization. ## | |
6460 | -## --------------------- ## | |
6461 | +## -------------------- ## | |
6462 | +## M4sh Initialization. ## | |
6463 | +## -------------------- ## | |
6464 | ||
6465 | -# Be Bourne compatible | |
6466 | -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
6467 | +# Be more Bourne compatible | |
6468 | +DUALCASE=1; export DUALCASE # for MKS sh | |
6469 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
6470 | emulate sh | |
6471 | NULLCMD=: | |
6472 | - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
6473 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
6474 | # is contrary to our usage. Disable this feature. | |
6475 | alias -g '${1+"$@"}'='"$@"' | |
6476 | -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
6477 | - set -o posix | |
6478 | + setopt NO_GLOB_SUBST | |
6479 | +else | |
6480 | + case `(set -o) 2>/dev/null` in #( | |
6481 | + *posix*) : | |
6482 | + set -o posix ;; #( | |
6483 | + *) : | |
6484 | + ;; | |
6485 | +esac | |
6486 | fi | |
6487 | -DUALCASE=1; export DUALCASE # for MKS sh | |
6488 | ||
6489 | -# Support unset when possible. | |
6490 | -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6491 | - as_unset=unset | |
6492 | -else | |
6493 | - as_unset=false | |
6494 | + | |
6495 | +as_nl=' | |
6496 | +' | |
6497 | +export as_nl | |
6498 | +# Printing a long string crashes Solaris 7 /usr/bin/printf. | |
6499 | +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6500 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
6501 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
6502 | +# Prefer a ksh shell builtin over an external printf program on Solaris, | |
6503 | +# but without wasting forks for bash or zsh. | |
6504 | +if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
6505 | + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6506 | + as_echo='print -r --' | |
6507 | + as_echo_n='print -rn --' | |
6508 | +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6509 | + as_echo='printf %s\n' | |
6510 | + as_echo_n='printf %s' | |
6511 | +else | |
6512 | + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
6513 | + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
6514 | + as_echo_n='/usr/ucb/echo -n' | |
6515 | + else | |
6516 | + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
6517 | + as_echo_n_body='eval | |
6518 | + arg=$1; | |
6519 | + case $arg in #( | |
6520 | + *"$as_nl"*) | |
6521 | + expr "X$arg" : "X\\(.*\\)$as_nl"; | |
6522 | + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
6523 | + esac; | |
6524 | + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
6525 | + ' | |
6526 | + export as_echo_n_body | |
6527 | + as_echo_n='sh -c $as_echo_n_body as_echo' | |
6528 | + fi | |
6529 | + export as_echo_body | |
6530 | + as_echo='sh -c $as_echo_body as_echo' | |
6531 | +fi | |
6532 | + | |
6533 | +# The user is always right. | |
6534 | +if test "${PATH_SEPARATOR+set}" != set; then | |
6535 | + PATH_SEPARATOR=: | |
6536 | + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
6537 | + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
6538 | + PATH_SEPARATOR=';' | |
6539 | + } | |
6540 | fi | |
6541 | ||
6542 | ||
6543 | -# Work around bugs in pre-3.0 UWIN ksh. | |
6544 | -$as_unset ENV MAIL MAILPATH | |
6545 | +# IFS | |
6546 | +# We need space, tab and new line, in precisely that order. Quoting is | |
6547 | +# there to prevent editors from complaining about space-tab. | |
6548 | +# (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6549 | +# splitting by setting IFS to empty value.) | |
6550 | +IFS=" "" $as_nl" | |
6551 | + | |
6552 | +# Find who we are. Look in the path if we contain no directory separator. | |
6553 | +as_myself= | |
6554 | +case $0 in #(( | |
6555 | + *[\\/]* ) as_myself=$0 ;; | |
6556 | + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6557 | +for as_dir in $PATH | |
6558 | +do | |
6559 | + IFS=$as_save_IFS | |
6560 | + test -z "$as_dir" && as_dir=. | |
6561 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6562 | + done | |
6563 | +IFS=$as_save_IFS | |
6564 | + | |
6565 | + ;; | |
6566 | +esac | |
6567 | +# We did not find ourselves, most probably we were run as `sh COMMAND' | |
6568 | +# in which case we are not to be found in the path. | |
6569 | +if test "x$as_myself" = x; then | |
6570 | + as_myself=$0 | |
6571 | +fi | |
6572 | +if test ! -f "$as_myself"; then | |
6573 | + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
6574 | + exit 1 | |
6575 | +fi | |
6576 | + | |
6577 | +# Unset variables that we do not need and which cause bugs (e.g. in | |
6578 | +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
6579 | +# suppresses any "Segmentation fault" message there. '((' could | |
6580 | +# trigger a bug in pdksh 5.2.14. | |
6581 | +for as_var in BASH_ENV ENV MAIL MAILPATH | |
6582 | +do eval test x\${$as_var+set} = xset \ | |
6583 | + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
6584 | +done | |
6585 | PS1='$ ' | |
6586 | PS2='> ' | |
6587 | PS4='+ ' | |
6588 | ||
6589 | # NLS nuisances. | |
6590 | -for as_var in \ | |
6591 | - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
6592 | - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
6593 | - LC_TELEPHONE LC_TIME | |
6594 | +LC_ALL=C | |
6595 | +export LC_ALL | |
6596 | +LANGUAGE=C | |
6597 | +export LANGUAGE | |
6598 | + | |
6599 | +# CDPATH. | |
6600 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
6601 | + | |
6602 | +# Use a proper internal environment variable to ensure we don't fall | |
6603 | + # into an infinite loop, continuously re-executing ourselves. | |
6604 | + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
6605 | + _as_can_reexec=no; export _as_can_reexec; | |
6606 | + # We cannot yet assume a decent shell, so we have to provide a | |
6607 | +# neutralization value for shells without unset; and this also | |
6608 | +# works around shells that cannot unset nonexistent variables. | |
6609 | +# Preserve -v and -x to the replacement shell. | |
6610 | +BASH_ENV=/dev/null | |
6611 | +ENV=/dev/null | |
6612 | +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
6613 | +case $- in # (((( | |
6614 | + *v*x* | *x*v* ) as_opts=-vx ;; | |
6615 | + *v* ) as_opts=-v ;; | |
6616 | + *x* ) as_opts=-x ;; | |
6617 | + * ) as_opts= ;; | |
6618 | +esac | |
6619 | +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
6620 | +# Admittedly, this is quite paranoid, since all the known shells bail | |
6621 | +# out after a failed `exec'. | |
6622 | +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
6623 | +as_fn_exit 255 | |
6624 | + fi | |
6625 | + # We don't want this to propagate to other subprocesses. | |
6626 | + { _as_can_reexec=; unset _as_can_reexec;} | |
6627 | +if test "x$CONFIG_SHELL" = x; then | |
6628 | + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
6629 | + emulate sh | |
6630 | + NULLCMD=: | |
6631 | + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
6632 | + # is contrary to our usage. Disable this feature. | |
6633 | + alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
6634 | + setopt NO_GLOB_SUBST | |
6635 | +else | |
6636 | + case \`(set -o) 2>/dev/null\` in #( | |
6637 | + *posix*) : | |
6638 | + set -o posix ;; #( | |
6639 | + *) : | |
6640 | + ;; | |
6641 | +esac | |
6642 | +fi | |
6643 | +" | |
6644 | + as_required="as_fn_return () { (exit \$1); } | |
6645 | +as_fn_success () { as_fn_return 0; } | |
6646 | +as_fn_failure () { as_fn_return 1; } | |
6647 | +as_fn_ret_success () { return 0; } | |
6648 | +as_fn_ret_failure () { return 1; } | |
6649 | + | |
6650 | +exitcode=0 | |
6651 | +as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
6652 | +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
6653 | +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
6654 | +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
6655 | +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
6656 | + | |
6657 | +else | |
6658 | + exitcode=1; echo positional parameters were not saved. | |
6659 | +fi | |
6660 | +test x\$exitcode = x0 || exit 1 | |
6661 | +test -x / || exit 1" | |
6662 | + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
6663 | + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
6664 | + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
6665 | + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
6666 | +test \$(( 1 + 1 )) = 2 || exit 1" | |
6667 | + if (eval "$as_required") 2>/dev/null; then : | |
6668 | + as_have_required=yes | |
6669 | +else | |
6670 | + as_have_required=no | |
6671 | +fi | |
6672 | + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
6673 | + | |
6674 | +else | |
6675 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6676 | +as_found=false | |
6677 | +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
6678 | do | |
6679 | - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
6680 | - eval $as_var=C; export $as_var | |
6681 | - else | |
6682 | - $as_unset $as_var | |
6683 | + IFS=$as_save_IFS | |
6684 | + test -z "$as_dir" && as_dir=. | |
6685 | + as_found=: | |
6686 | + case $as_dir in #( | |
6687 | + /*) | |
6688 | + for as_base in sh bash ksh sh5; do | |
6689 | + # Try only shells that exist, to save several forks. | |
6690 | + as_shell=$as_dir/$as_base | |
6691 | + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
6692 | + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
6693 | + CONFIG_SHELL=$as_shell as_have_required=yes | |
6694 | + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
6695 | + break 2 | |
6696 | +fi | |
6697 | +fi | |
6698 | + done;; | |
6699 | + esac | |
6700 | + as_found=false | |
6701 | +done | |
6702 | +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
6703 | + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
6704 | + CONFIG_SHELL=$SHELL as_have_required=yes | |
6705 | +fi; } | |
6706 | +IFS=$as_save_IFS | |
6707 | + | |
6708 | + | |
6709 | + if test "x$CONFIG_SHELL" != x; then : | |
6710 | + export CONFIG_SHELL | |
6711 | + # We cannot yet assume a decent shell, so we have to provide a | |
6712 | +# neutralization value for shells without unset; and this also | |
6713 | +# works around shells that cannot unset nonexistent variables. | |
6714 | +# Preserve -v and -x to the replacement shell. | |
6715 | +BASH_ENV=/dev/null | |
6716 | +ENV=/dev/null | |
6717 | +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
6718 | +case $- in # (((( | |
6719 | + *v*x* | *x*v* ) as_opts=-vx ;; | |
6720 | + *v* ) as_opts=-v ;; | |
6721 | + *x* ) as_opts=-x ;; | |
6722 | + * ) as_opts= ;; | |
6723 | +esac | |
6724 | +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
6725 | +# Admittedly, this is quite paranoid, since all the known shells bail | |
6726 | +# out after a failed `exec'. | |
6727 | +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
6728 | +exit 255 | |
6729 | +fi | |
6730 | + | |
6731 | + if test x$as_have_required = xno; then : | |
6732 | + $as_echo "$0: This script requires a shell more modern than all" | |
6733 | + $as_echo "$0: the shells that I found on your system." | |
6734 | + if test x${ZSH_VERSION+set} = xset ; then | |
6735 | + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
6736 | + $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
6737 | + else | |
6738 | + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
6739 | +$0: including any error possibly output before this | |
6740 | +$0: message. Then install a modern shell, or manually run | |
6741 | +$0: the script under such a shell if you do have one." | |
6742 | fi | |
6743 | -done | |
6744 | + exit 1 | |
6745 | +fi | |
6746 | +fi | |
6747 | +fi | |
6748 | +SHELL=${CONFIG_SHELL-/bin/sh} | |
6749 | +export SHELL | |
6750 | +# Unset more variables known to interfere with behavior of common tools. | |
6751 | +CLICOLOR_FORCE= GREP_OPTIONS= | |
6752 | +unset CLICOLOR_FORCE GREP_OPTIONS | |
6753 | + | |
6754 | +## --------------------- ## | |
6755 | +## M4sh Shell Functions. ## | |
6756 | +## --------------------- ## | |
6757 | +# as_fn_unset VAR | |
6758 | +# --------------- | |
6759 | +# Portably unset VAR. | |
6760 | +as_fn_unset () | |
6761 | +{ | |
6762 | + { eval $1=; unset $1;} | |
6763 | +} | |
6764 | +as_unset=as_fn_unset | |
6765 | + | |
6766 | +# as_fn_set_status STATUS | |
6767 | +# ----------------------- | |
6768 | +# Set $? to STATUS, without forking. | |
6769 | +as_fn_set_status () | |
6770 | +{ | |
6771 | + return $1 | |
6772 | +} # as_fn_set_status | |
6773 | + | |
6774 | +# as_fn_exit STATUS | |
6775 | +# ----------------- | |
6776 | +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
6777 | +as_fn_exit () | |
6778 | +{ | |
6779 | + set +e | |
6780 | + as_fn_set_status $1 | |
6781 | + exit $1 | |
6782 | +} # as_fn_exit | |
6783 | + | |
6784 | +# as_fn_mkdir_p | |
6785 | +# ------------- | |
6786 | +# Create "$as_dir" as a directory, including parents if necessary. | |
6787 | +as_fn_mkdir_p () | |
6788 | +{ | |
6789 | + | |
6790 | + case $as_dir in #( | |
6791 | + -*) as_dir=./$as_dir;; | |
6792 | + esac | |
6793 | + test -d "$as_dir" || eval $as_mkdir_p || { | |
6794 | + as_dirs= | |
6795 | + while :; do | |
6796 | + case $as_dir in #( | |
6797 | + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
6798 | + *) as_qdir=$as_dir;; | |
6799 | + esac | |
6800 | + as_dirs="'$as_qdir' $as_dirs" | |
6801 | + as_dir=`$as_dirname -- "$as_dir" || | |
6802 | +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6803 | + X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6804 | + X"$as_dir" : 'X\(//\)$' \| \ | |
6805 | + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6806 | +$as_echo X"$as_dir" | | |
6807 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6808 | + s//\1/ | |
6809 | + q | |
6810 | + } | |
6811 | + /^X\(\/\/\)[^/].*/{ | |
6812 | + s//\1/ | |
6813 | + q | |
6814 | + } | |
6815 | + /^X\(\/\/\)$/{ | |
6816 | + s//\1/ | |
6817 | + q | |
6818 | + } | |
6819 | + /^X\(\/\).*/{ | |
6820 | + s//\1/ | |
6821 | + q | |
6822 | + } | |
6823 | + s/.*/./; q'` | |
6824 | + test -d "$as_dir" && break | |
6825 | + done | |
6826 | + test -z "$as_dirs" || eval "mkdir $as_dirs" | |
6827 | + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
6828 | + | |
6829 | + | |
6830 | +} # as_fn_mkdir_p | |
6831 | + | |
6832 | +# as_fn_executable_p FILE | |
6833 | +# ----------------------- | |
6834 | +# Test if FILE is an executable regular file. | |
6835 | +as_fn_executable_p () | |
6836 | +{ | |
6837 | + test -f "$1" && test -x "$1" | |
6838 | +} # as_fn_executable_p | |
6839 | +# as_fn_append VAR VALUE | |
6840 | +# ---------------------- | |
6841 | +# Append the text in VALUE to the end of the definition contained in VAR. Take | |
6842 | +# advantage of any shell optimizations that allow amortized linear growth over | |
6843 | +# repeated appends, instead of the typical quadratic growth present in naive | |
6844 | +# implementations. | |
6845 | +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
6846 | + eval 'as_fn_append () | |
6847 | + { | |
6848 | + eval $1+=\$2 | |
6849 | + }' | |
6850 | +else | |
6851 | + as_fn_append () | |
6852 | + { | |
6853 | + eval $1=\$$1\$2 | |
6854 | + } | |
6855 | +fi # as_fn_append | |
6856 | + | |
6857 | +# as_fn_arith ARG... | |
6858 | +# ------------------ | |
6859 | +# Perform arithmetic evaluation on the ARGs, and store the result in the | |
6860 | +# global $as_val. Take advantage of shells that can avoid forks. The arguments | |
6861 | +# must be portable across $(()) and expr. | |
6862 | +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
6863 | + eval 'as_fn_arith () | |
6864 | + { | |
6865 | + as_val=$(( $* )) | |
6866 | + }' | |
6867 | +else | |
6868 | + as_fn_arith () | |
6869 | + { | |
6870 | + as_val=`expr "$@" || test $? -eq 1` | |
6871 | + } | |
6872 | +fi # as_fn_arith | |
6873 | + | |
6874 | ||
6875 | -# Required to use basename. | |
6876 | -if expr a : '\(a\)' >/dev/null 2>&1; then | |
6877 | +# as_fn_error STATUS ERROR [LINENO LOG_FD] | |
6878 | +# ---------------------------------------- | |
6879 | +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
6880 | +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
6881 | +# script with STATUS, using 1 if that was 0. | |
6882 | +as_fn_error () | |
6883 | +{ | |
6884 | + as_status=$1; test $as_status -eq 0 && as_status=1 | |
6885 | + if test "$4"; then | |
6886 | + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6887 | + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
6888 | + fi | |
6889 | + $as_echo "$as_me: error: $2" >&2 | |
6890 | + as_fn_exit $as_status | |
6891 | +} # as_fn_error | |
6892 | + | |
6893 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
6894 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6895 | as_expr=expr | |
6896 | else | |
6897 | as_expr=false | |
6898 | fi | |
6899 | ||
6900 | -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
6901 | +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
6902 | as_basename=basename | |
6903 | else | |
6904 | as_basename=false | |
6905 | fi | |
6906 | ||
6907 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
6908 | + as_dirname=dirname | |
6909 | +else | |
6910 | + as_dirname=false | |
6911 | +fi | |
6912 | ||
6913 | -# Name of the executable. | |
6914 | -as_me=`$as_basename "$0" || | |
6915 | +as_me=`$as_basename -- "$0" || | |
6916 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
6917 | X"$0" : 'X\(//\)$' \| \ | |
6918 | - X"$0" : 'X\(/\)$' \| \ | |
6919 | - . : '\(.\)' 2>/dev/null || | |
6920 | -echo X/"$0" | | |
6921 | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
6922 | - /^X\/\(\/\/\)$/{ s//\1/; q; } | |
6923 | - /^X\/\(\/\).*/{ s//\1/; q; } | |
6924 | - s/.*/./; q'` | |
6925 | - | |
6926 | + X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
6927 | +$as_echo X/"$0" | | |
6928 | + sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
6929 | + s//\1/ | |
6930 | + q | |
6931 | + } | |
6932 | + /^X\/\(\/\/\)$/{ | |
6933 | + s//\1/ | |
6934 | + q | |
6935 | + } | |
6936 | + /^X\/\(\/\).*/{ | |
6937 | + s//\1/ | |
6938 | + q | |
6939 | + } | |
6940 | + s/.*/./; q'` | |
6941 | ||
6942 | -# PATH needs CR, and LINENO needs CR and PATH. | |
6943 | # Avoid depending upon Character Ranges. | |
6944 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6945 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6946 | @@ -83,146 +461,91 @@ | |
6947 | as_cr_digits='0123456789' | |
6948 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6949 | ||
6950 | -# The user is always right. | |
6951 | -if test "${PATH_SEPARATOR+set}" != set; then | |
6952 | - echo "#! /bin/sh" >conf$$.sh | |
6953 | - echo "exit 0" >>conf$$.sh | |
6954 | - chmod +x conf$$.sh | |
6955 | - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6956 | - PATH_SEPARATOR=';' | |
6957 | - else | |
6958 | - PATH_SEPARATOR=: | |
6959 | - fi | |
6960 | - rm -f conf$$.sh | |
6961 | -fi | |
6962 | - | |
6963 | - | |
6964 | - as_lineno_1=$LINENO | |
6965 | - as_lineno_2=$LINENO | |
6966 | - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
6967 | - test "x$as_lineno_1" != "x$as_lineno_2" && | |
6968 | - test "x$as_lineno_3" = "x$as_lineno_2" || { | |
6969 | - # Find who we are. Look in the path if we contain no path at all | |
6970 | - # relative or not. | |
6971 | - case $0 in | |
6972 | - *[\\/]* ) as_myself=$0 ;; | |
6973 | - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6974 | -for as_dir in $PATH | |
6975 | -do | |
6976 | - IFS=$as_save_IFS | |
6977 | - test -z "$as_dir" && as_dir=. | |
6978 | - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6979 | -done | |
6980 | - | |
6981 | - ;; | |
6982 | - esac | |
6983 | - # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6984 | - # in which case we are not to be found in the path. | |
6985 | - if test "x$as_myself" = x; then | |
6986 | - as_myself=$0 | |
6987 | - fi | |
6988 | - if test ! -f "$as_myself"; then | |
6989 | - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
6990 | - { (exit 1); exit 1; }; } | |
6991 | - fi | |
6992 | - case $CONFIG_SHELL in | |
6993 | - '') | |
6994 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6995 | -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
6996 | -do | |
6997 | - IFS=$as_save_IFS | |
6998 | - test -z "$as_dir" && as_dir=. | |
6999 | - for as_base in sh bash ksh sh5; do | |
7000 | - case $as_dir in | |
7001 | - /*) | |
7002 | - if ("$as_dir/$as_base" -c ' | |
7003 | - as_lineno_1=$LINENO | |
7004 | - as_lineno_2=$LINENO | |
7005 | - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7006 | - test "x$as_lineno_1" != "x$as_lineno_2" && | |
7007 | - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
7008 | - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
7009 | - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
7010 | - CONFIG_SHELL=$as_dir/$as_base | |
7011 | - export CONFIG_SHELL | |
7012 | - exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
7013 | - fi;; | |
7014 | - esac | |
7015 | - done | |
7016 | -done | |
7017 | -;; | |
7018 | - esac | |
7019 | ||
7020 | - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
7021 | - # uniformly replaced by the line number. The first 'sed' inserts a | |
7022 | - # line-number line before each line; the second 'sed' does the real | |
7023 | - # work. The second script uses 'N' to pair each line-number line | |
7024 | - # with the numbered line, and appends trailing '-' during | |
7025 | - # substitution so that $LINENO is not a special case at line end. | |
7026 | - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
7027 | - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
7028 | - sed '=' <$as_myself | | |
7029 | + as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
7030 | + as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
7031 | + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
7032 | + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
7033 | + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
7034 | + sed -n ' | |
7035 | + p | |
7036 | + /[$]LINENO/= | |
7037 | + ' <$as_myself | | |
7038 | sed ' | |
7039 | + s/[$]LINENO.*/&-/ | |
7040 | + t lineno | |
7041 | + b | |
7042 | + :lineno | |
7043 | N | |
7044 | - s,$,-, | |
7045 | - : loop | |
7046 | - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
7047 | + :loop | |
7048 | + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
7049 | t loop | |
7050 | - s,-$,, | |
7051 | - s,^['$as_cr_digits']*\n,, | |
7052 | + s/-\n.*// | |
7053 | ' >$as_me.lineno && | |
7054 | - chmod +x $as_me.lineno || | |
7055 | - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
7056 | - { (exit 1); exit 1; }; } | |
7057 | + chmod +x "$as_me.lineno" || | |
7058 | + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
7059 | ||
7060 | + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
7061 | + # already done that, so ensure we don't try to do so again and fall | |
7062 | + # in an infinite loop. This has already happened in practice. | |
7063 | + _as_can_reexec=no; export _as_can_reexec | |
7064 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7065 | # (the dirname of $[0] is not the place where we might find the | |
7066 | - # original and so on. Autoconf is especially sensible to this). | |
7067 | - . ./$as_me.lineno | |
7068 | + # original and so on. Autoconf is especially sensitive to this). | |
7069 | + . "./$as_me.lineno" | |
7070 | # Exit status is that of the last command. | |
7071 | exit | |
7072 | } | |
7073 | ||
7074 | - | |
7075 | -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
7076 | - *c*,-n*) ECHO_N= ECHO_C=' | |
7077 | -' ECHO_T=' ' ;; | |
7078 | - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
7079 | - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
7080 | +ECHO_C= ECHO_N= ECHO_T= | |
7081 | +case `echo -n x` in #((((( | |
7082 | +-n*) | |
7083 | + case `echo 'xy\c'` in | |
7084 | + *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7085 | + xy) ECHO_C='\c';; | |
7086 | + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7087 | + ECHO_T=' ';; | |
7088 | + esac;; | |
7089 | +*) | |
7090 | + ECHO_N='-n';; | |
7091 | esac | |
7092 | ||
7093 | -if expr a : '\(a\)' >/dev/null 2>&1; then | |
7094 | - as_expr=expr | |
7095 | +rm -f conf$$ conf$$.exe conf$$.file | |
7096 | +if test -d conf$$.dir; then | |
7097 | + rm -f conf$$.dir/conf$$.file | |
7098 | else | |
7099 | - as_expr=false | |
7100 | + rm -f conf$$.dir | |
7101 | + mkdir conf$$.dir 2>/dev/null | |
7102 | fi | |
7103 | - | |
7104 | -rm -f conf$$ conf$$.exe conf$$.file | |
7105 | -echo >conf$$.file | |
7106 | -if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7107 | - # We could just check for DJGPP; but this test a) works b) is more generic | |
7108 | - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
7109 | - if test -f conf$$.exe; then | |
7110 | - # Don't use ln at all; we don't have any links | |
7111 | - as_ln_s='cp -p' | |
7112 | - else | |
7113 | +if (echo >conf$$.file) 2>/dev/null; then | |
7114 | + if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7115 | as_ln_s='ln -s' | |
7116 | + # ... but there are two gotchas: | |
7117 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7118 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
7119 | + # In both cases, we have to default to `cp -pR'. | |
7120 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
7121 | + as_ln_s='cp -pR' | |
7122 | + elif ln conf$$.file conf$$ 2>/dev/null; then | |
7123 | + as_ln_s=ln | |
7124 | + else | |
7125 | + as_ln_s='cp -pR' | |
7126 | fi | |
7127 | -elif ln conf$$.file conf$$ 2>/dev/null; then | |
7128 | - as_ln_s=ln | |
7129 | else | |
7130 | - as_ln_s='cp -p' | |
7131 | + as_ln_s='cp -pR' | |
7132 | fi | |
7133 | -rm -f conf$$ conf$$.exe conf$$.file | |
7134 | +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
7135 | +rmdir conf$$.dir 2>/dev/null | |
7136 | ||
7137 | if mkdir -p . 2>/dev/null; then | |
7138 | - as_mkdir_p=: | |
7139 | + as_mkdir_p='mkdir -p "$as_dir"' | |
7140 | else | |
7141 | test -d ./-p && rmdir ./-p | |
7142 | as_mkdir_p=false | |
7143 | fi | |
7144 | ||
7145 | -as_executable_p="test -f" | |
7146 | +as_test_x='test -x' | |
7147 | +as_executable_p=as_fn_executable_p | |
7148 | ||
7149 | # Sed expression to map a string onto a valid CPP name. | |
7150 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7151 | @@ -231,38 +554,25 @@ | |
7152 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7153 | ||
7154 | ||
7155 | -# IFS | |
7156 | -# We need space, tab and new line, in precisely that order. | |
7157 | -as_nl=' | |
7158 | -' | |
7159 | -IFS=" $as_nl" | |
7160 | - | |
7161 | -# CDPATH. | |
7162 | -$as_unset CDPATH | |
7163 | - | |
7164 | +test -n "$DJDIR" || exec 7<&0 </dev/null | |
7165 | +exec 6>&1 | |
7166 | ||
7167 | # Name of the host. | |
7168 | -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
7169 | +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
7170 | # so uname gets run too. | |
7171 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
7172 | ||
7173 | -exec 6>&1 | |
7174 | - | |
7175 | # | |
7176 | # Initializations. | |
7177 | # | |
7178 | ac_default_prefix=/usr/local | |
7179 | +ac_clean_files= | |
7180 | ac_config_libobj_dir=. | |
7181 | +LIBOBJS= | |
7182 | cross_compiling=no | |
7183 | subdirs= | |
7184 | MFLAGS= | |
7185 | MAKEFLAGS= | |
7186 | -SHELL=${CONFIG_SHELL-/bin/sh} | |
7187 | - | |
7188 | -# Maximum number of lines to put in a shell here document. | |
7189 | -# This variable seems obsolete. It should probably be removed, and | |
7190 | -# only ac_max_sed_lines should be used. | |
7191 | -: ${ac_max_here_lines=38} | |
7192 | ||
7193 | # Identity of this package. | |
7194 | PACKAGE_NAME= | |
7195 | @@ -270,51 +580,193 @@ | |
7196 | PACKAGE_VERSION= | |
7197 | PACKAGE_STRING= | |
7198 | PACKAGE_BUGREPORT= | |
7199 | +PACKAGE_URL= | |
7200 | ||
7201 | ac_unique_file="abook.c" | |
7202 | # Factoring default headers for most tests. | |
7203 | ac_includes_default="\ | |
7204 | #include <stdio.h> | |
7205 | -#if HAVE_SYS_TYPES_H | |
7206 | +#ifdef HAVE_SYS_TYPES_H | |
7207 | # include <sys/types.h> | |
7208 | #endif | |
7209 | -#if HAVE_SYS_STAT_H | |
7210 | +#ifdef HAVE_SYS_STAT_H | |
7211 | # include <sys/stat.h> | |
7212 | #endif | |
7213 | -#if STDC_HEADERS | |
7214 | +#ifdef STDC_HEADERS | |
7215 | # include <stdlib.h> | |
7216 | # include <stddef.h> | |
7217 | #else | |
7218 | -# if HAVE_STDLIB_H | |
7219 | +# ifdef HAVE_STDLIB_H | |
7220 | # include <stdlib.h> | |
7221 | # endif | |
7222 | #endif | |
7223 | -#if HAVE_STRING_H | |
7224 | -# if !STDC_HEADERS && HAVE_MEMORY_H | |
7225 | +#ifdef HAVE_STRING_H | |
7226 | +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
7227 | # include <memory.h> | |
7228 | # endif | |
7229 | # include <string.h> | |
7230 | #endif | |
7231 | -#if HAVE_STRINGS_H | |
7232 | +#ifdef HAVE_STRINGS_H | |
7233 | # include <strings.h> | |
7234 | #endif | |
7235 | -#if HAVE_INTTYPES_H | |
7236 | +#ifdef HAVE_INTTYPES_H | |
7237 | # include <inttypes.h> | |
7238 | -#else | |
7239 | -# if HAVE_STDINT_H | |
7240 | -# include <stdint.h> | |
7241 | -# endif | |
7242 | #endif | |
7243 | -#if HAVE_UNISTD_H | |
7244 | +#ifdef HAVE_STDINT_H | |
7245 | +# include <stdint.h> | |
7246 | +#endif | |
7247 | +#ifdef HAVE_UNISTD_H | |
7248 | # include <unistd.h> | |
7249 | #endif" | |
7250 | ||
7251 | -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP GLIBC2 RANLIB ac_ct_RANLIB ALLOCA GLIBC21 INTL_MACOSX_LIBS HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB localedir USE_INCLUDED_INTL_H_TRUE USE_INCLUDED_INTL_H_FALSE U ANSI2KNR LIBOBJS LTLIBOBJS' | |
7252 | +gt_needs= | |
7253 | +ac_subst_vars='am__EXEEXT_FALSE | |
7254 | +am__EXEEXT_TRUE | |
7255 | +LTLIBOBJS | |
7256 | +LIBOBJS | |
7257 | +ENABLE_VFORMAT_SUPPORT_FALSE | |
7258 | +ENABLE_VFORMAT_SUPPORT_TRUE | |
7259 | +ANSI2KNR | |
7260 | +U | |
7261 | +USE_INCLUDED_INTL_H_FALSE | |
7262 | +USE_INCLUDED_INTL_H_TRUE | |
7263 | +POSUB | |
7264 | +LTLIBINTL | |
7265 | +LIBINTL | |
7266 | +INTLLIBS | |
7267 | +LTLIBICONV | |
7268 | +LIBICONV | |
7269 | +INTL_MACOSX_LIBS | |
7270 | +host_os | |
7271 | +host_vendor | |
7272 | +host_cpu | |
7273 | +host | |
7274 | +build_os | |
7275 | +build_vendor | |
7276 | +build_cpu | |
7277 | +build | |
7278 | +XGETTEXT_EXTRA_OPTIONS | |
7279 | +MSGMERGE | |
7280 | +XGETTEXT_015 | |
7281 | +XGETTEXT | |
7282 | +GMSGFMT_015 | |
7283 | +MSGFMT_015 | |
7284 | +GMSGFMT | |
7285 | +MSGFMT | |
7286 | +GETTEXT_MACRO_VERSION | |
7287 | +USE_NLS | |
7288 | +EGREP | |
7289 | +GREP | |
7290 | +CPP | |
7291 | +am__fastdepCC_FALSE | |
7292 | +am__fastdepCC_TRUE | |
7293 | +CCDEPMODE | |
7294 | +am__nodep | |
7295 | +AMDEPBACKSLASH | |
7296 | +AMDEP_FALSE | |
7297 | +AMDEP_TRUE | |
7298 | +am__quote | |
7299 | +am__include | |
7300 | +DEPDIR | |
7301 | +OBJEXT | |
7302 | +EXEEXT | |
7303 | +ac_ct_CC | |
7304 | +CPPFLAGS | |
7305 | +LDFLAGS | |
7306 | +CFLAGS | |
7307 | +CC | |
7308 | +am__untar | |
7309 | +am__tar | |
7310 | +AMTAR | |
7311 | +am__leading_dot | |
7312 | +SET_MAKE | |
7313 | +AWK | |
7314 | +mkdir_p | |
7315 | +MKDIR_P | |
7316 | +INSTALL_STRIP_PROGRAM | |
7317 | +STRIP | |
7318 | +install_sh | |
7319 | +MAKEINFO | |
7320 | +AUTOHEADER | |
7321 | +AUTOMAKE | |
7322 | +AUTOCONF | |
7323 | +ACLOCAL | |
7324 | +VERSION | |
7325 | +PACKAGE | |
7326 | +CYGPATH_W | |
7327 | +am__isrc | |
7328 | +INSTALL_DATA | |
7329 | +INSTALL_SCRIPT | |
7330 | +INSTALL_PROGRAM | |
7331 | +target_alias | |
7332 | +host_alias | |
7333 | +build_alias | |
7334 | +LIBS | |
7335 | +ECHO_T | |
7336 | +ECHO_N | |
7337 | +ECHO_C | |
7338 | +DEFS | |
7339 | +mandir | |
7340 | +localedir | |
7341 | +libdir | |
7342 | +psdir | |
7343 | +pdfdir | |
7344 | +dvidir | |
7345 | +htmldir | |
7346 | +infodir | |
7347 | +docdir | |
7348 | +oldincludedir | |
7349 | +includedir | |
7350 | +localstatedir | |
7351 | +sharedstatedir | |
7352 | +sysconfdir | |
7353 | +datadir | |
7354 | +datarootdir | |
7355 | +libexecdir | |
7356 | +sbindir | |
7357 | +bindir | |
7358 | +program_transform_name | |
7359 | +prefix | |
7360 | +exec_prefix | |
7361 | +PACKAGE_URL | |
7362 | +PACKAGE_BUGREPORT | |
7363 | +PACKAGE_STRING | |
7364 | +PACKAGE_VERSION | |
7365 | +PACKAGE_TARNAME | |
7366 | +PACKAGE_NAME | |
7367 | +PATH_SEPARATOR | |
7368 | +SHELL' | |
7369 | ac_subst_files='' | |
7370 | +ac_user_opts=' | |
7371 | +enable_option_checking | |
7372 | +enable_dependency_tracking | |
7373 | +enable_nls | |
7374 | +with_gnu_ld | |
7375 | +enable_rpath | |
7376 | +with_libiconv_prefix | |
7377 | +with_libintl_prefix | |
7378 | +with_localedir | |
7379 | +with_curses | |
7380 | +with_readline | |
7381 | +enable_vformat | |
7382 | +enable_debug | |
7383 | +' | |
7384 | + ac_precious_vars='build_alias | |
7385 | +host_alias | |
7386 | +target_alias | |
7387 | +CC | |
7388 | +CFLAGS | |
7389 | +LDFLAGS | |
7390 | +LIBS | |
7391 | +CPPFLAGS | |
7392 | +CPP' | |
7393 | + | |
7394 | ||
7395 | # Initialize some variables set by options. | |
7396 | ac_init_help= | |
7397 | ac_init_version=false | |
7398 | +ac_unrecognized_opts= | |
7399 | +ac_unrecognized_sep= | |
7400 | # The variables have the same names as the options, with | |
7401 | # dashes changed to underlines. | |
7402 | cache_file=/dev/null | |
7403 | @@ -337,34 +789,49 @@ | |
7404 | # and all the variables that are supposed to be based on exec_prefix | |
7405 | # by default will actually change. | |
7406 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7407 | +# (The list follows the same order as the GNU Coding Standards.) | |
7408 | bindir='${exec_prefix}/bin' | |
7409 | sbindir='${exec_prefix}/sbin' | |
7410 | libexecdir='${exec_prefix}/libexec' | |
7411 | -datadir='${prefix}/share' | |
7412 | +datarootdir='${prefix}/share' | |
7413 | +datadir='${datarootdir}' | |
7414 | sysconfdir='${prefix}/etc' | |
7415 | sharedstatedir='${prefix}/com' | |
7416 | localstatedir='${prefix}/var' | |
7417 | -libdir='${exec_prefix}/lib' | |
7418 | includedir='${prefix}/include' | |
7419 | oldincludedir='/usr/include' | |
7420 | -infodir='${prefix}/info' | |
7421 | -mandir='${prefix}/man' | |
7422 | +docdir='${datarootdir}/doc/${PACKAGE}' | |
7423 | +infodir='${datarootdir}/info' | |
7424 | +htmldir='${docdir}' | |
7425 | +dvidir='${docdir}' | |
7426 | +pdfdir='${docdir}' | |
7427 | +psdir='${docdir}' | |
7428 | +libdir='${exec_prefix}/lib' | |
7429 | +localedir='${datarootdir}/locale' | |
7430 | +mandir='${datarootdir}/man' | |
7431 | ||
7432 | ac_prev= | |
7433 | +ac_dashdash= | |
7434 | for ac_option | |
7435 | do | |
7436 | # If the previous option needs an argument, assign it. | |
7437 | if test -n "$ac_prev"; then | |
7438 | - eval "$ac_prev=\$ac_option" | |
7439 | + eval $ac_prev=\$ac_option | |
7440 | ac_prev= | |
7441 | continue | |
7442 | fi | |
7443 | ||
7444 | - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
7445 | + case $ac_option in | |
7446 | + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
7447 | + *=) ac_optarg= ;; | |
7448 | + *) ac_optarg=yes ;; | |
7449 | + esac | |
7450 | ||
7451 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
7452 | ||
7453 | - case $ac_option in | |
7454 | + case $ac_dashdash$ac_option in | |
7455 | + --) | |
7456 | + ac_dashdash=yes ;; | |
7457 | ||
7458 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
7459 | ac_prev=bindir ;; | |
7460 | @@ -386,33 +853,59 @@ | |
7461 | --config-cache | -C) | |
7462 | cache_file=config.cache ;; | |
7463 | ||
7464 | - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
7465 | + -datadir | --datadir | --datadi | --datad) | |
7466 | ac_prev=datadir ;; | |
7467 | - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
7468 | - | --da=*) | |
7469 | + -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
7470 | datadir=$ac_optarg ;; | |
7471 | ||
7472 | + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
7473 | + | --dataroo | --dataro | --datar) | |
7474 | + ac_prev=datarootdir ;; | |
7475 | + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
7476 | + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
7477 | + datarootdir=$ac_optarg ;; | |
7478 | + | |
7479 | -disable-* | --disable-*) | |
7480 | - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
7481 | + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
7482 | # Reject names that are not valid shell variable names. | |
7483 | - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
7484 | - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
7485 | - { (exit 1); exit 1; }; } | |
7486 | - ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
7487 | - eval "enable_$ac_feature=no" ;; | |
7488 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
7489 | + as_fn_error $? "invalid feature name: $ac_useropt" | |
7490 | + ac_useropt_orig=$ac_useropt | |
7491 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
7492 | + case $ac_user_opts in | |
7493 | + *" | |
7494 | +"enable_$ac_useropt" | |
7495 | +"*) ;; | |
7496 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
7497 | + ac_unrecognized_sep=', ';; | |
7498 | + esac | |
7499 | + eval enable_$ac_useropt=no ;; | |
7500 | + | |
7501 | + -docdir | --docdir | --docdi | --doc | --do) | |
7502 | + ac_prev=docdir ;; | |
7503 | + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
7504 | + docdir=$ac_optarg ;; | |
7505 | + | |
7506 | + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
7507 | + ac_prev=dvidir ;; | |
7508 | + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
7509 | + dvidir=$ac_optarg ;; | |
7510 | ||
7511 | -enable-* | --enable-*) | |
7512 | - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
7513 | + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
7514 | # Reject names that are not valid shell variable names. | |
7515 | - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
7516 | - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
7517 | - { (exit 1); exit 1; }; } | |
7518 | - ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
7519 | - case $ac_option in | |
7520 | - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
7521 | - *) ac_optarg=yes ;; | |
7522 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
7523 | + as_fn_error $? "invalid feature name: $ac_useropt" | |
7524 | + ac_useropt_orig=$ac_useropt | |
7525 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
7526 | + case $ac_user_opts in | |
7527 | + *" | |
7528 | +"enable_$ac_useropt" | |
7529 | +"*) ;; | |
7530 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
7531 | + ac_unrecognized_sep=', ';; | |
7532 | esac | |
7533 | - eval "enable_$ac_feature='$ac_optarg'" ;; | |
7534 | + eval enable_$ac_useropt=\$ac_optarg ;; | |
7535 | ||
7536 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
7537 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
7538 | @@ -439,6 +932,12 @@ | |
7539 | -host=* | --host=* | --hos=* | --ho=*) | |
7540 | host_alias=$ac_optarg ;; | |
7541 | ||
7542 | + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
7543 | + ac_prev=htmldir ;; | |
7544 | + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
7545 | + | --ht=*) | |
7546 | + htmldir=$ac_optarg ;; | |
7547 | + | |
7548 | -includedir | --includedir | --includedi | --included | --include \ | |
7549 | | --includ | --inclu | --incl | --inc) | |
7550 | ac_prev=includedir ;; | |
7551 | @@ -463,13 +962,16 @@ | |
7552 | | --libexe=* | --libex=* | --libe=*) | |
7553 | libexecdir=$ac_optarg ;; | |
7554 | ||
7555 | + -localedir | --localedir | --localedi | --localed | --locale) | |
7556 | + ac_prev=localedir ;; | |
7557 | + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
7558 | + localedir=$ac_optarg ;; | |
7559 | + | |
7560 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
7561 | - | --localstate | --localstat | --localsta | --localst \ | |
7562 | - | --locals | --local | --loca | --loc | --lo) | |
7563 | + | --localstate | --localstat | --localsta | --localst | --locals) | |
7564 | ac_prev=localstatedir ;; | |
7565 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7566 | - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
7567 | - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
7568 | + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
7569 | localstatedir=$ac_optarg ;; | |
7570 | ||
7571 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
7572 | @@ -534,6 +1036,16 @@ | |
7573 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
7574 | program_transform_name=$ac_optarg ;; | |
7575 | ||
7576 | + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
7577 | + ac_prev=pdfdir ;; | |
7578 | + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
7579 | + pdfdir=$ac_optarg ;; | |
7580 | + | |
7581 | + -psdir | --psdir | --psdi | --psd | --ps) | |
7582 | + ac_prev=psdir ;; | |
7583 | + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
7584 | + psdir=$ac_optarg ;; | |
7585 | + | |
7586 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
7587 | | -silent | --silent | --silen | --sile | --sil) | |
7588 | silent=yes ;; | |
7589 | @@ -584,26 +1096,36 @@ | |
7590 | ac_init_version=: ;; | |
7591 | ||
7592 | -with-* | --with-*) | |
7593 | - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
7594 | + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
7595 | # Reject names that are not valid shell variable names. | |
7596 | - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
7597 | - { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
7598 | - { (exit 1); exit 1; }; } | |
7599 | - ac_package=`echo $ac_package| sed 's/-/_/g'` | |
7600 | - case $ac_option in | |
7601 | - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
7602 | - *) ac_optarg=yes ;; | |
7603 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
7604 | + as_fn_error $? "invalid package name: $ac_useropt" | |
7605 | + ac_useropt_orig=$ac_useropt | |
7606 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
7607 | + case $ac_user_opts in | |
7608 | + *" | |
7609 | +"with_$ac_useropt" | |
7610 | +"*) ;; | |
7611 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
7612 | + ac_unrecognized_sep=', ';; | |
7613 | esac | |
7614 | - eval "with_$ac_package='$ac_optarg'" ;; | |
7615 | + eval with_$ac_useropt=\$ac_optarg ;; | |
7616 | ||
7617 | -without-* | --without-*) | |
7618 | - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
7619 | + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
7620 | # Reject names that are not valid shell variable names. | |
7621 | - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
7622 | - { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
7623 | - { (exit 1); exit 1; }; } | |
7624 | - ac_package=`echo $ac_package | sed 's/-/_/g'` | |
7625 | - eval "with_$ac_package=no" ;; | |
7626 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
7627 | + as_fn_error $? "invalid package name: $ac_useropt" | |
7628 | + ac_useropt_orig=$ac_useropt | |
7629 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
7630 | + case $ac_user_opts in | |
7631 | + *" | |
7632 | +"with_$ac_useropt" | |
7633 | +"*) ;; | |
7634 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
7635 | + ac_unrecognized_sep=', ';; | |
7636 | + esac | |
7637 | + eval with_$ac_useropt=no ;; | |
7638 | ||
7639 | --x) | |
7640 | # Obsolete; use --with-x. | |
7641 | @@ -623,27 +1145,26 @@ | |
7642 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
7643 | x_libraries=$ac_optarg ;; | |
7644 | ||
7645 | - -*) { echo "$as_me: error: unrecognized option: $ac_option | |
7646 | -Try \`$0 --help' for more information." >&2 | |
7647 | - { (exit 1); exit 1; }; } | |
7648 | + -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
7649 | +Try \`$0 --help' for more information" | |
7650 | ;; | |
7651 | ||
7652 | *=*) | |
7653 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
7654 | # Reject names that are not valid shell variable names. | |
7655 | - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
7656 | - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
7657 | - { (exit 1); exit 1; }; } | |
7658 | - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
7659 | - eval "$ac_envvar='$ac_optarg'" | |
7660 | + case $ac_envvar in #( | |
7661 | + '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
7662 | + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
7663 | + esac | |
7664 | + eval $ac_envvar=\$ac_optarg | |
7665 | export $ac_envvar ;; | |
7666 | ||
7667 | *) | |
7668 | # FIXME: should be removed in autoconf 3.0. | |
7669 | - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
7670 | + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
7671 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
7672 | - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
7673 | - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
7674 | + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
7675 | + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
7676 | ;; | |
7677 | ||
7678 | esac | |
7679 | @@ -651,31 +1172,36 @@ | |
7680 | ||
7681 | if test -n "$ac_prev"; then | |
7682 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
7683 | - { echo "$as_me: error: missing argument to $ac_option" >&2 | |
7684 | - { (exit 1); exit 1; }; } | |
7685 | + as_fn_error $? "missing argument to $ac_option" | |
7686 | fi | |
7687 | ||
7688 | -# Be sure to have absolute paths. | |
7689 | -for ac_var in exec_prefix prefix | |
7690 | -do | |
7691 | - eval ac_val=$`echo $ac_var` | |
7692 | - case $ac_val in | |
7693 | - [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
7694 | - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
7695 | - { (exit 1); exit 1; }; };; | |
7696 | +if test -n "$ac_unrecognized_opts"; then | |
7697 | + case $enable_option_checking in | |
7698 | + no) ;; | |
7699 | + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
7700 | + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
7701 | esac | |
7702 | -done | |
7703 | +fi | |
7704 | ||
7705 | -# Be sure to have absolute paths. | |
7706 | -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
7707 | - localstatedir libdir includedir oldincludedir infodir mandir | |
7708 | +# Check all directory arguments for consistency. | |
7709 | +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
7710 | + datadir sysconfdir sharedstatedir localstatedir includedir \ | |
7711 | + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
7712 | + libdir localedir mandir | |
7713 | do | |
7714 | - eval ac_val=$`echo $ac_var` | |
7715 | + eval ac_val=\$$ac_var | |
7716 | + # Remove trailing slashes. | |
7717 | + case $ac_val in | |
7718 | + */ ) | |
7719 | + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
7720 | + eval $ac_var=\$ac_val;; | |
7721 | + esac | |
7722 | + # Be sure to have absolute directory names. | |
7723 | case $ac_val in | |
7724 | - [\\/$]* | ?:[\\/]* ) ;; | |
7725 | - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
7726 | - { (exit 1); exit 1; }; };; | |
7727 | + [\\/$]* | ?:[\\/]* ) continue;; | |
7728 | + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
7729 | esac | |
7730 | + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
7731 | done | |
7732 | ||
7733 | # There might be people who depend on the old broken behavior: `$host' | |
7734 | @@ -689,8 +1215,6 @@ | |
7735 | if test "x$host_alias" != x; then | |
7736 | if test "x$build_alias" = x; then | |
7737 | cross_compiling=maybe | |
7738 | - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
7739 | - If a cross compiler is detected then cross compile mode will be used." >&2 | |
7740 | elif test "x$build_alias" != "x$host_alias"; then | |
7741 | cross_compiling=yes | |
7742 | fi | |
7743 | @@ -702,74 +1226,72 @@ | |
7744 | test "$silent" = yes && exec 6>/dev/null | |
7745 | ||
7746 | ||
7747 | +ac_pwd=`pwd` && test -n "$ac_pwd" && | |
7748 | +ac_ls_di=`ls -di .` && | |
7749 | +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
7750 | + as_fn_error $? "working directory cannot be determined" | |
7751 | +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
7752 | + as_fn_error $? "pwd does not report name of working directory" | |
7753 | + | |
7754 | + | |
7755 | # Find the source files, if location was not specified. | |
7756 | if test -z "$srcdir"; then | |
7757 | ac_srcdir_defaulted=yes | |
7758 | - # Try the directory containing this script, then its parent. | |
7759 | - ac_confdir=`(dirname "$0") 2>/dev/null || | |
7760 | -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7761 | - X"$0" : 'X\(//\)[^/]' \| \ | |
7762 | - X"$0" : 'X\(//\)$' \| \ | |
7763 | - X"$0" : 'X\(/\)' \| \ | |
7764 | - . : '\(.\)' 2>/dev/null || | |
7765 | -echo X"$0" | | |
7766 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7767 | - /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7768 | - /^X\(\/\/\)$/{ s//\1/; q; } | |
7769 | - /^X\(\/\).*/{ s//\1/; q; } | |
7770 | - s/.*/./; q'` | |
7771 | + # Try the directory containing this script, then the parent directory. | |
7772 | + ac_confdir=`$as_dirname -- "$as_myself" || | |
7773 | +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7774 | + X"$as_myself" : 'X\(//\)[^/]' \| \ | |
7775 | + X"$as_myself" : 'X\(//\)$' \| \ | |
7776 | + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
7777 | +$as_echo X"$as_myself" | | |
7778 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7779 | + s//\1/ | |
7780 | + q | |
7781 | + } | |
7782 | + /^X\(\/\/\)[^/].*/{ | |
7783 | + s//\1/ | |
7784 | + q | |
7785 | + } | |
7786 | + /^X\(\/\/\)$/{ | |
7787 | + s//\1/ | |
7788 | + q | |
7789 | + } | |
7790 | + /^X\(\/\).*/{ | |
7791 | + s//\1/ | |
7792 | + q | |
7793 | + } | |
7794 | + s/.*/./; q'` | |
7795 | srcdir=$ac_confdir | |
7796 | - if test ! -r $srcdir/$ac_unique_file; then | |
7797 | + if test ! -r "$srcdir/$ac_unique_file"; then | |
7798 | srcdir=.. | |
7799 | fi | |
7800 | else | |
7801 | ac_srcdir_defaulted=no | |
7802 | fi | |
7803 | -if test ! -r $srcdir/$ac_unique_file; then | |
7804 | - if test "$ac_srcdir_defaulted" = yes; then | |
7805 | - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
7806 | - { (exit 1); exit 1; }; } | |
7807 | - else | |
7808 | - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
7809 | - { (exit 1); exit 1; }; } | |
7810 | - fi | |
7811 | -fi | |
7812 | -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
7813 | - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
7814 | - { (exit 1); exit 1; }; } | |
7815 | -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
7816 | -ac_env_build_alias_set=${build_alias+set} | |
7817 | -ac_env_build_alias_value=$build_alias | |
7818 | -ac_cv_env_build_alias_set=${build_alias+set} | |
7819 | -ac_cv_env_build_alias_value=$build_alias | |
7820 | -ac_env_host_alias_set=${host_alias+set} | |
7821 | -ac_env_host_alias_value=$host_alias | |
7822 | -ac_cv_env_host_alias_set=${host_alias+set} | |
7823 | -ac_cv_env_host_alias_value=$host_alias | |
7824 | -ac_env_target_alias_set=${target_alias+set} | |
7825 | -ac_env_target_alias_value=$target_alias | |
7826 | -ac_cv_env_target_alias_set=${target_alias+set} | |
7827 | -ac_cv_env_target_alias_value=$target_alias | |
7828 | -ac_env_CC_set=${CC+set} | |
7829 | -ac_env_CC_value=$CC | |
7830 | -ac_cv_env_CC_set=${CC+set} | |
7831 | -ac_cv_env_CC_value=$CC | |
7832 | -ac_env_CFLAGS_set=${CFLAGS+set} | |
7833 | -ac_env_CFLAGS_value=$CFLAGS | |
7834 | -ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
7835 | -ac_cv_env_CFLAGS_value=$CFLAGS | |
7836 | -ac_env_LDFLAGS_set=${LDFLAGS+set} | |
7837 | -ac_env_LDFLAGS_value=$LDFLAGS | |
7838 | -ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
7839 | -ac_cv_env_LDFLAGS_value=$LDFLAGS | |
7840 | -ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
7841 | -ac_env_CPPFLAGS_value=$CPPFLAGS | |
7842 | -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
7843 | -ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
7844 | -ac_env_CPP_set=${CPP+set} | |
7845 | -ac_env_CPP_value=$CPP | |
7846 | -ac_cv_env_CPP_set=${CPP+set} | |
7847 | -ac_cv_env_CPP_value=$CPP | |
7848 | +if test ! -r "$srcdir/$ac_unique_file"; then | |
7849 | + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
7850 | + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
7851 | +fi | |
7852 | +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
7853 | +ac_abs_confdir=`( | |
7854 | + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
7855 | + pwd)` | |
7856 | +# When building in place, set srcdir=. | |
7857 | +if test "$ac_abs_confdir" = "$ac_pwd"; then | |
7858 | + srcdir=. | |
7859 | +fi | |
7860 | +# Remove unnecessary trailing slashes from srcdir. | |
7861 | +# Double slashes in file names in object file debugging info | |
7862 | +# mess up M-x gdb in Emacs. | |
7863 | +case $srcdir in | |
7864 | +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
7865 | +esac | |
7866 | +for ac_var in $ac_precious_vars; do | |
7867 | + eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
7868 | + eval ac_env_${ac_var}_value=\$${ac_var} | |
7869 | + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
7870 | + eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
7871 | +done | |
7872 | ||
7873 | # | |
7874 | # Report the --help message. | |
7875 | @@ -792,20 +1314,17 @@ | |
7876 | --help=short display options specific to this package | |
7877 | --help=recursive display the short help of all the included packages | |
7878 | -V, --version display version information and exit | |
7879 | - -q, --quiet, --silent do not print \`checking...' messages | |
7880 | + -q, --quiet, --silent do not print \`checking ...' messages | |
7881 | --cache-file=FILE cache test results in FILE [disabled] | |
7882 | -C, --config-cache alias for \`--cache-file=config.cache' | |
7883 | -n, --no-create do not create output files | |
7884 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
7885 | ||
7886 | -_ACEOF | |
7887 | - | |
7888 | - cat <<_ACEOF | |
7889 | Installation directories: | |
7890 | --prefix=PREFIX install architecture-independent files in PREFIX | |
7891 | - [$ac_default_prefix] | |
7892 | + [$ac_default_prefix] | |
7893 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
7894 | - [PREFIX] | |
7895 | + [PREFIX] | |
7896 | ||
7897 | By default, \`make install' will install all the files in | |
7898 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
7899 | @@ -815,18 +1334,25 @@ | |
7900 | For better control, use the options below. | |
7901 | ||
7902 | Fine tuning of the installation directories: | |
7903 | - --bindir=DIR user executables [EPREFIX/bin] | |
7904 | - --sbindir=DIR system admin executables [EPREFIX/sbin] | |
7905 | - --libexecdir=DIR program executables [EPREFIX/libexec] | |
7906 | - --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
7907 | - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
7908 | - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
7909 | - --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
7910 | - --libdir=DIR object code libraries [EPREFIX/lib] | |
7911 | - --includedir=DIR C header files [PREFIX/include] | |
7912 | - --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
7913 | - --infodir=DIR info documentation [PREFIX/info] | |
7914 | - --mandir=DIR man documentation [PREFIX/man] | |
7915 | + --bindir=DIR user executables [EPREFIX/bin] | |
7916 | + --sbindir=DIR system admin executables [EPREFIX/sbin] | |
7917 | + --libexecdir=DIR program executables [EPREFIX/libexec] | |
7918 | + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
7919 | + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
7920 | + --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
7921 | + --libdir=DIR object code libraries [EPREFIX/lib] | |
7922 | + --includedir=DIR C header files [PREFIX/include] | |
7923 | + --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
7924 | + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
7925 | + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
7926 | + --infodir=DIR info documentation [DATAROOTDIR/info] | |
7927 | + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
7928 | + --mandir=DIR man documentation [DATAROOTDIR/man] | |
7929 | + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
7930 | + --htmldir=DIR html documentation [DOCDIR] | |
7931 | + --dvidir=DIR dvi documentation [DOCDIR] | |
7932 | + --pdfdir=DIR pdf documentation [DOCDIR] | |
7933 | + --psdir=DIR ps documentation [DOCDIR] | |
7934 | _ACEOF | |
7935 | ||
7936 | cat <<\_ACEOF | |
7937 | @@ -847,12 +1373,14 @@ | |
7938 | cat <<\_ACEOF | |
7939 | ||
7940 | Optional Features: | |
7941 | + --disable-option-checking ignore unrecognized --enable/--with options | |
7942 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
7943 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
7944 | - --disable-nls do not use Native Language Support | |
7945 | --disable-dependency-tracking speeds up one-time build | |
7946 | --enable-dependency-tracking do not reject slow dependency extractors | |
7947 | + --disable-nls do not use Native Language Support | |
7948 | --disable-rpath do not hardcode runtime library paths | |
7949 | + --enable-vformat Use libvformat is available | |
7950 | --enable-debug Enable debugging support | |
7951 | ||
7952 | Optional Packages: | |
7953 | @@ -861,7 +1389,6 @@ | |
7954 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
7955 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
7956 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
7957 | - --with-included-gettext use the GNU gettext library included here | |
7958 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
7959 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
7960 | --with-localedir=PATH Where the locale files are installed | |
7961 | @@ -873,158 +1400,582 @@ | |
7962 | CFLAGS C compiler flags | |
7963 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
7964 | nonstandard directory <lib dir> | |
7965 | - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
7966 | - headers in a nonstandard directory <include dir> | |
7967 | + LIBS libraries to pass to the linker, e.g. -l<library> | |
7968 | + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
7969 | + you have headers in a nonstandard directory <include dir> | |
7970 | CPP C preprocessor | |
7971 | ||
7972 | Use these variables to override the choices made by `configure' or to help | |
7973 | it to find libraries and programs with nonstandard names/locations. | |
7974 | ||
7975 | +Report bugs to the package provider. | |
7976 | _ACEOF | |
7977 | +ac_status=$? | |
7978 | fi | |
7979 | ||
7980 | if test "$ac_init_help" = "recursive"; then | |
7981 | # If there are subdirs, report their specific --help. | |
7982 | - ac_popdir=`pwd` | |
7983 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
7984 | - test -d $ac_dir || continue | |
7985 | + test -d "$ac_dir" || | |
7986 | + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
7987 | + continue | |
7988 | ac_builddir=. | |
7989 | ||
7990 | -if test "$ac_dir" != .; then | |
7991 | - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7992 | - # A "../" for each directory in $ac_dir_suffix. | |
7993 | - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7994 | -else | |
7995 | - ac_dir_suffix= ac_top_builddir= | |
7996 | -fi | |
7997 | +case "$ac_dir" in | |
7998 | +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7999 | +*) | |
8000 | + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8001 | + # A ".." for each directory in $ac_dir_suffix. | |
8002 | + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8003 | + case $ac_top_builddir_sub in | |
8004 | + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8005 | + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8006 | + esac ;; | |
8007 | +esac | |
8008 | +ac_abs_top_builddir=$ac_pwd | |
8009 | +ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8010 | +# for backward compatibility: | |
8011 | +ac_top_builddir=$ac_top_build_prefix | |
8012 | ||
8013 | case $srcdir in | |
8014 | - .) # No --srcdir option. We are building in place. | |
8015 | + .) # We are building in place. | |
8016 | ac_srcdir=. | |
8017 | - if test -z "$ac_top_builddir"; then | |
8018 | - ac_top_srcdir=. | |
8019 | - else | |
8020 | - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8021 | - fi ;; | |
8022 | - [\\/]* | ?:[\\/]* ) # Absolute path. | |
8023 | + ac_top_srcdir=$ac_top_builddir_sub | |
8024 | + ac_abs_top_srcdir=$ac_pwd ;; | |
8025 | + [\\/]* | ?:[\\/]* ) # Absolute name. | |
8026 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8027 | - ac_top_srcdir=$srcdir ;; | |
8028 | - *) # Relative path. | |
8029 | - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8030 | - ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8031 | -esac | |
8032 | - | |
8033 | -# Do not use `cd foo && pwd` to compute absolute paths, because | |
8034 | -# the directories may not exist. | |
8035 | -case `pwd` in | |
8036 | -.) ac_abs_builddir="$ac_dir";; | |
8037 | -*) | |
8038 | - case "$ac_dir" in | |
8039 | - .) ac_abs_builddir=`pwd`;; | |
8040 | - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8041 | - *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8042 | - esac;; | |
8043 | -esac | |
8044 | -case $ac_abs_builddir in | |
8045 | -.) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8046 | -*) | |
8047 | - case ${ac_top_builddir}. in | |
8048 | - .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8049 | - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8050 | - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8051 | - esac;; | |
8052 | -esac | |
8053 | -case $ac_abs_builddir in | |
8054 | -.) ac_abs_srcdir=$ac_srcdir;; | |
8055 | -*) | |
8056 | - case $ac_srcdir in | |
8057 | - .) ac_abs_srcdir=$ac_abs_builddir;; | |
8058 | - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8059 | - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8060 | - esac;; | |
8061 | -esac | |
8062 | -case $ac_abs_builddir in | |
8063 | -.) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8064 | -*) | |
8065 | - case $ac_top_srcdir in | |
8066 | - .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8067 | - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8068 | - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8069 | - esac;; | |
8070 | -esac | |
8071 | - | |
8072 | - cd $ac_dir | |
8073 | - # Check for guested configure; otherwise get Cygnus style configure. | |
8074 | - if test -f $ac_srcdir/configure.gnu; then | |
8075 | - echo | |
8076 | - $SHELL $ac_srcdir/configure.gnu --help=recursive | |
8077 | - elif test -f $ac_srcdir/configure; then | |
8078 | - echo | |
8079 | - $SHELL $ac_srcdir/configure --help=recursive | |
8080 | - elif test -f $ac_srcdir/configure.ac || | |
8081 | - test -f $ac_srcdir/configure.in; then | |
8082 | - echo | |
8083 | - $ac_configure --help | |
8084 | + ac_top_srcdir=$srcdir | |
8085 | + ac_abs_top_srcdir=$srcdir ;; | |
8086 | + *) # Relative name. | |
8087 | + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8088 | + ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8089 | + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8090 | +esac | |
8091 | +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
8092 | + | |
8093 | + cd "$ac_dir" || { ac_status=$?; continue; } | |
8094 | + # Check for guested configure. | |
8095 | + if test -f "$ac_srcdir/configure.gnu"; then | |
8096 | + echo && | |
8097 | + $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
8098 | + elif test -f "$ac_srcdir/configure"; then | |
8099 | + echo && | |
8100 | + $SHELL "$ac_srcdir/configure" --help=recursive | |
8101 | else | |
8102 | - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
8103 | - fi | |
8104 | - cd $ac_popdir | |
8105 | + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
8106 | + fi || ac_status=$? | |
8107 | + cd "$ac_pwd" || { ac_status=$?; break; } | |
8108 | done | |
8109 | fi | |
8110 | ||
8111 | -test -n "$ac_init_help" && exit 0 | |
8112 | +test -n "$ac_init_help" && exit $ac_status | |
8113 | if $ac_init_version; then | |
8114 | cat <<\_ACEOF | |
8115 | +configure | |
8116 | +generated by GNU Autoconf 2.69 | |
8117 | ||
8118 | -Copyright (C) 2003 Free Software Foundation, Inc. | |
8119 | +Copyright (C) 2012 Free Software Foundation, Inc. | |
8120 | This configure script is free software; the Free Software Foundation | |
8121 | gives unlimited permission to copy, distribute and modify it. | |
8122 | _ACEOF | |
8123 | - exit 0 | |
8124 | + exit | |
8125 | fi | |
8126 | -exec 5>config.log | |
8127 | -cat >&5 <<_ACEOF | |
8128 | -This file contains any messages produced by compilers while | |
8129 | -running configure, to aid debugging if configure makes a mistake. | |
8130 | - | |
8131 | -It was created by $as_me, which was | |
8132 | -generated by GNU Autoconf 2.59. Invocation command line was | |
8133 | - | |
8134 | - $ $0 $@ | |
8135 | ||
8136 | -_ACEOF | |
8137 | +## ------------------------ ## | |
8138 | +## Autoconf initialization. ## | |
8139 | +## ------------------------ ## | |
8140 | + | |
8141 | +# ac_fn_c_try_compile LINENO | |
8142 | +# -------------------------- | |
8143 | +# Try to compile conftest.$ac_ext, and return whether this succeeded. | |
8144 | +ac_fn_c_try_compile () | |
8145 | { | |
8146 | -cat <<_ASUNAME | |
8147 | -## --------- ## | |
8148 | -## Platform. ## | |
8149 | -## --------- ## | |
8150 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8151 | + rm -f conftest.$ac_objext | |
8152 | + if { { ac_try="$ac_compile" | |
8153 | +case "(($ac_try" in | |
8154 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8155 | + *) ac_try_echo=$ac_try;; | |
8156 | +esac | |
8157 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
8158 | +$as_echo "$ac_try_echo"; } >&5 | |
8159 | + (eval "$ac_compile") 2>conftest.err | |
8160 | + ac_status=$? | |
8161 | + if test -s conftest.err; then | |
8162 | + grep -v '^ *+' conftest.err >conftest.er1 | |
8163 | + cat conftest.er1 >&5 | |
8164 | + mv -f conftest.er1 conftest.err | |
8165 | + fi | |
8166 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8167 | + test $ac_status = 0; } && { | |
8168 | + test -z "$ac_c_werror_flag" || | |
8169 | + test ! -s conftest.err | |
8170 | + } && test -s conftest.$ac_objext; then : | |
8171 | + ac_retval=0 | |
8172 | +else | |
8173 | + $as_echo "$as_me: failed program was:" >&5 | |
8174 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
8175 | ||
8176 | -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
8177 | -uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
8178 | -uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
8179 | -uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
8180 | -uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
8181 | + ac_retval=1 | |
8182 | +fi | |
8183 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
8184 | + as_fn_set_status $ac_retval | |
8185 | ||
8186 | -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
8187 | -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8188 | +} # ac_fn_c_try_compile | |
8189 | ||
8190 | -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
8191 | -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
8192 | -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
8193 | -hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
8194 | -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
8195 | -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
8196 | -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
8197 | +# ac_fn_c_try_cpp LINENO | |
8198 | +# ---------------------- | |
8199 | +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
8200 | +ac_fn_c_try_cpp () | |
8201 | +{ | |
8202 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8203 | + if { { ac_try="$ac_cpp conftest.$ac_ext" | |
8204 | +case "(($ac_try" in | |
8205 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8206 | + *) ac_try_echo=$ac_try;; | |
8207 | +esac | |
8208 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
8209 | +$as_echo "$ac_try_echo"; } >&5 | |
8210 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
8211 | + ac_status=$? | |
8212 | + if test -s conftest.err; then | |
8213 | + grep -v '^ *+' conftest.err >conftest.er1 | |
8214 | + cat conftest.er1 >&5 | |
8215 | + mv -f conftest.er1 conftest.err | |
8216 | + fi | |
8217 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8218 | + test $ac_status = 0; } > conftest.i && { | |
8219 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8220 | + test ! -s conftest.err | |
8221 | + }; then : | |
8222 | + ac_retval=0 | |
8223 | +else | |
8224 | + $as_echo "$as_me: failed program was:" >&5 | |
8225 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
8226 | + | |
8227 | + ac_retval=1 | |
8228 | +fi | |
8229 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
8230 | + as_fn_set_status $ac_retval | |
8231 | + | |
8232 | +} # ac_fn_c_try_cpp | |
8233 | + | |
8234 | +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
8235 | +# ------------------------------------------------------- | |
8236 | +# Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
8237 | +# the include files in INCLUDES and setting the cache variable VAR | |
8238 | +# accordingly. | |
8239 | +ac_fn_c_check_header_mongrel () | |
8240 | +{ | |
8241 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8242 | + if eval \${$3+:} false; then : | |
8243 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
8244 | +$as_echo_n "checking for $2... " >&6; } | |
8245 | +if eval \${$3+:} false; then : | |
8246 | + $as_echo_n "(cached) " >&6 | |
8247 | +fi | |
8248 | +eval ac_res=\$$3 | |
8249 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8250 | +$as_echo "$ac_res" >&6; } | |
8251 | +else | |
8252 | + # Is the header compilable? | |
8253 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
8254 | +$as_echo_n "checking $2 usability... " >&6; } | |
8255 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8256 | +/* end confdefs.h. */ | |
8257 | +$4 | |
8258 | +#include <$2> | |
8259 | +_ACEOF | |
8260 | +if ac_fn_c_try_compile "$LINENO"; then : | |
8261 | + ac_header_compiler=yes | |
8262 | +else | |
8263 | + ac_header_compiler=no | |
8264 | +fi | |
8265 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8266 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
8267 | +$as_echo "$ac_header_compiler" >&6; } | |
8268 | ||
8269 | -_ASUNAME | |
8270 | +# Is the header present? | |
8271 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
8272 | +$as_echo_n "checking $2 presence... " >&6; } | |
8273 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8274 | +/* end confdefs.h. */ | |
8275 | +#include <$2> | |
8276 | +_ACEOF | |
8277 | +if ac_fn_c_try_cpp "$LINENO"; then : | |
8278 | + ac_header_preproc=yes | |
8279 | +else | |
8280 | + ac_header_preproc=no | |
8281 | +fi | |
8282 | +rm -f conftest.err conftest.i conftest.$ac_ext | |
8283 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
8284 | +$as_echo "$ac_header_preproc" >&6; } | |
8285 | ||
8286 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8287 | -for as_dir in $PATH | |
8288 | -do | |
8289 | - IFS=$as_save_IFS | |
8290 | - test -z "$as_dir" && as_dir=. | |
8291 | - echo "PATH: $as_dir" | |
8292 | -done | |
8293 | +# So? What about this header? | |
8294 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
8295 | + yes:no: ) | |
8296 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8297 | +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8298 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
8299 | +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
8300 | + ;; | |
8301 | + no:yes:* ) | |
8302 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
8303 | +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
8304 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
8305 | +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
8306 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
8307 | +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
8308 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
8309 | +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
8310 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
8311 | +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
8312 | + ;; | |
8313 | +esac | |
8314 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
8315 | +$as_echo_n "checking for $2... " >&6; } | |
8316 | +if eval \${$3+:} false; then : | |
8317 | + $as_echo_n "(cached) " >&6 | |
8318 | +else | |
8319 | + eval "$3=\$ac_header_compiler" | |
8320 | +fi | |
8321 | +eval ac_res=\$$3 | |
8322 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8323 | +$as_echo "$ac_res" >&6; } | |
8324 | +fi | |
8325 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
8326 | + | |
8327 | +} # ac_fn_c_check_header_mongrel | |
8328 | + | |
8329 | +# ac_fn_c_try_run LINENO | |
8330 | +# ---------------------- | |
8331 | +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
8332 | +# that executables *can* be run. | |
8333 | +ac_fn_c_try_run () | |
8334 | +{ | |
8335 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8336 | + if { { ac_try="$ac_link" | |
8337 | +case "(($ac_try" in | |
8338 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8339 | + *) ac_try_echo=$ac_try;; | |
8340 | +esac | |
8341 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
8342 | +$as_echo "$ac_try_echo"; } >&5 | |
8343 | + (eval "$ac_link") 2>&5 | |
8344 | + ac_status=$? | |
8345 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8346 | + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
8347 | + { { case "(($ac_try" in | |
8348 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8349 | + *) ac_try_echo=$ac_try;; | |
8350 | +esac | |
8351 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
8352 | +$as_echo "$ac_try_echo"; } >&5 | |
8353 | + (eval "$ac_try") 2>&5 | |
8354 | + ac_status=$? | |
8355 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8356 | + test $ac_status = 0; }; }; then : | |
8357 | + ac_retval=0 | |
8358 | +else | |
8359 | + $as_echo "$as_me: program exited with status $ac_status" >&5 | |
8360 | + $as_echo "$as_me: failed program was:" >&5 | |
8361 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
8362 | + | |
8363 | + ac_retval=$ac_status | |
8364 | +fi | |
8365 | + rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
8366 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
8367 | + as_fn_set_status $ac_retval | |
8368 | + | |
8369 | +} # ac_fn_c_try_run | |
8370 | + | |
8371 | +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
8372 | +# ------------------------------------------------------- | |
8373 | +# Tests whether HEADER exists and can be compiled using the include files in | |
8374 | +# INCLUDES, setting the cache variable VAR accordingly. | |
8375 | +ac_fn_c_check_header_compile () | |
8376 | +{ | |
8377 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8378 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
8379 | +$as_echo_n "checking for $2... " >&6; } | |
8380 | +if eval \${$3+:} false; then : | |
8381 | + $as_echo_n "(cached) " >&6 | |
8382 | +else | |
8383 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8384 | +/* end confdefs.h. */ | |
8385 | +$4 | |
8386 | +#include <$2> | |
8387 | +_ACEOF | |
8388 | +if ac_fn_c_try_compile "$LINENO"; then : | |
8389 | + eval "$3=yes" | |
8390 | +else | |
8391 | + eval "$3=no" | |
8392 | +fi | |
8393 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8394 | +fi | |
8395 | +eval ac_res=\$$3 | |
8396 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8397 | +$as_echo "$ac_res" >&6; } | |
8398 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
8399 | + | |
8400 | +} # ac_fn_c_check_header_compile | |
8401 | + | |
8402 | +# ac_fn_c_try_link LINENO | |
8403 | +# ----------------------- | |
8404 | +# Try to link conftest.$ac_ext, and return whether this succeeded. | |
8405 | +ac_fn_c_try_link () | |
8406 | +{ | |
8407 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8408 | + rm -f conftest.$ac_objext conftest$ac_exeext | |
8409 | + if { { ac_try="$ac_link" | |
8410 | +case "(($ac_try" in | |
8411 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8412 | + *) ac_try_echo=$ac_try;; | |
8413 | +esac | |
8414 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
8415 | +$as_echo "$ac_try_echo"; } >&5 | |
8416 | + (eval "$ac_link") 2>conftest.err | |
8417 | + ac_status=$? | |
8418 | + if test -s conftest.err; then | |
8419 | + grep -v '^ *+' conftest.err >conftest.er1 | |
8420 | + cat conftest.er1 >&5 | |
8421 | + mv -f conftest.er1 conftest.err | |
8422 | + fi | |
8423 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8424 | + test $ac_status = 0; } && { | |
8425 | + test -z "$ac_c_werror_flag" || | |
8426 | + test ! -s conftest.err | |
8427 | + } && test -s conftest$ac_exeext && { | |
8428 | + test "$cross_compiling" = yes || | |
8429 | + test -x conftest$ac_exeext | |
8430 | + }; then : | |
8431 | + ac_retval=0 | |
8432 | +else | |
8433 | + $as_echo "$as_me: failed program was:" >&5 | |
8434 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
8435 | + | |
8436 | + ac_retval=1 | |
8437 | +fi | |
8438 | + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
8439 | + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
8440 | + # interfere with the next link command; also delete a directory that is | |
8441 | + # left behind by Apple's compiler. We do this before executing the actions. | |
8442 | + rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
8443 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
8444 | + as_fn_set_status $ac_retval | |
8445 | + | |
8446 | +} # ac_fn_c_try_link | |
8447 | + | |
8448 | +# ac_fn_c_check_func LINENO FUNC VAR | |
8449 | +# ---------------------------------- | |
8450 | +# Tests whether FUNC exists, setting the cache variable VAR accordingly | |
8451 | +ac_fn_c_check_func () | |
8452 | +{ | |
8453 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8454 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
8455 | +$as_echo_n "checking for $2... " >&6; } | |
8456 | +if eval \${$3+:} false; then : | |
8457 | + $as_echo_n "(cached) " >&6 | |
8458 | +else | |
8459 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8460 | +/* end confdefs.h. */ | |
8461 | +/* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
8462 | + For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8463 | +#define $2 innocuous_$2 | |
8464 | + | |
8465 | +/* System header to define __stub macros and hopefully few prototypes, | |
8466 | + which can conflict with char $2 (); below. | |
8467 | + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8468 | + <limits.h> exists even on freestanding compilers. */ | |
8469 | + | |
8470 | +#ifdef __STDC__ | |
8471 | +# include <limits.h> | |
8472 | +#else | |
8473 | +# include <assert.h> | |
8474 | +#endif | |
8475 | + | |
8476 | +#undef $2 | |
8477 | + | |
8478 | +/* Override any GCC internal prototype to avoid an error. | |
8479 | + Use char because int might match the return type of a GCC | |
8480 | + builtin and then its argument prototype would still apply. */ | |
8481 | +#ifdef __cplusplus | |
8482 | +extern "C" | |
8483 | +#endif | |
8484 | +char $2 (); | |
8485 | +/* The GNU C library defines this for functions which it implements | |
8486 | + to always fail with ENOSYS. Some functions are actually named | |
8487 | + something starting with __ and the normal name is an alias. */ | |
8488 | +#if defined __stub_$2 || defined __stub___$2 | |
8489 | +choke me | |
8490 | +#endif | |
8491 | + | |
8492 | +int | |
8493 | +main () | |
8494 | +{ | |
8495 | +return $2 (); | |
8496 | + ; | |
8497 | + return 0; | |
8498 | +} | |
8499 | +_ACEOF | |
8500 | +if ac_fn_c_try_link "$LINENO"; then : | |
8501 | + eval "$3=yes" | |
8502 | +else | |
8503 | + eval "$3=no" | |
8504 | +fi | |
8505 | +rm -f core conftest.err conftest.$ac_objext \ | |
8506 | + conftest$ac_exeext conftest.$ac_ext | |
8507 | +fi | |
8508 | +eval ac_res=\$$3 | |
8509 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8510 | +$as_echo "$ac_res" >&6; } | |
8511 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
8512 | + | |
8513 | +} # ac_fn_c_check_func | |
8514 | + | |
8515 | +# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
8516 | +# --------------------------------------------- | |
8517 | +# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
8518 | +# accordingly. | |
8519 | +ac_fn_c_check_decl () | |
8520 | +{ | |
8521 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8522 | + as_decl_name=`echo $2|sed 's/ *(.*//'` | |
8523 | + as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
8524 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
8525 | +$as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
8526 | +if eval \${$3+:} false; then : | |
8527 | + $as_echo_n "(cached) " >&6 | |
8528 | +else | |
8529 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8530 | +/* end confdefs.h. */ | |
8531 | +$4 | |
8532 | +int | |
8533 | +main () | |
8534 | +{ | |
8535 | +#ifndef $as_decl_name | |
8536 | +#ifdef __cplusplus | |
8537 | + (void) $as_decl_use; | |
8538 | +#else | |
8539 | + (void) $as_decl_name; | |
8540 | +#endif | |
8541 | +#endif | |
8542 | + | |
8543 | + ; | |
8544 | + return 0; | |
8545 | +} | |
8546 | +_ACEOF | |
8547 | +if ac_fn_c_try_compile "$LINENO"; then : | |
8548 | + eval "$3=yes" | |
8549 | +else | |
8550 | + eval "$3=no" | |
8551 | +fi | |
8552 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8553 | +fi | |
8554 | +eval ac_res=\$$3 | |
8555 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8556 | +$as_echo "$ac_res" >&6; } | |
8557 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
8558 | + | |
8559 | +} # ac_fn_c_check_decl | |
8560 | + | |
8561 | +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
8562 | +# ------------------------------------------- | |
8563 | +# Tests whether TYPE exists after having included INCLUDES, setting cache | |
8564 | +# variable VAR accordingly. | |
8565 | +ac_fn_c_check_type () | |
8566 | +{ | |
8567 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8568 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
8569 | +$as_echo_n "checking for $2... " >&6; } | |
8570 | +if eval \${$3+:} false; then : | |
8571 | + $as_echo_n "(cached) " >&6 | |
8572 | +else | |
8573 | + eval "$3=no" | |
8574 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8575 | +/* end confdefs.h. */ | |
8576 | +$4 | |
8577 | +int | |
8578 | +main () | |
8579 | +{ | |
8580 | +if (sizeof ($2)) | |
8581 | + return 0; | |
8582 | + ; | |
8583 | + return 0; | |
8584 | +} | |
8585 | +_ACEOF | |
8586 | +if ac_fn_c_try_compile "$LINENO"; then : | |
8587 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8588 | +/* end confdefs.h. */ | |
8589 | +$4 | |
8590 | +int | |
8591 | +main () | |
8592 | +{ | |
8593 | +if (sizeof (($2))) | |
8594 | + return 0; | |
8595 | + ; | |
8596 | + return 0; | |
8597 | +} | |
8598 | +_ACEOF | |
8599 | +if ac_fn_c_try_compile "$LINENO"; then : | |
8600 | + | |
8601 | +else | |
8602 | + eval "$3=yes" | |
8603 | +fi | |
8604 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8605 | +fi | |
8606 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8607 | +fi | |
8608 | +eval ac_res=\$$3 | |
8609 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8610 | +$as_echo "$ac_res" >&6; } | |
8611 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
8612 | + | |
8613 | +} # ac_fn_c_check_type | |
8614 | +cat >config.log <<_ACEOF | |
8615 | +This file contains any messages produced by compilers while | |
8616 | +running configure, to aid debugging if configure makes a mistake. | |
8617 | + | |
8618 | +It was created by $as_me, which was | |
8619 | +generated by GNU Autoconf 2.69. Invocation command line was | |
8620 | + | |
8621 | + $ $0 $@ | |
8622 | + | |
8623 | +_ACEOF | |
8624 | +exec 5>>config.log | |
8625 | +{ | |
8626 | +cat <<_ASUNAME | |
8627 | +## --------- ## | |
8628 | +## Platform. ## | |
8629 | +## --------- ## | |
8630 | + | |
8631 | +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
8632 | +uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
8633 | +uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
8634 | +uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
8635 | +uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
8636 | + | |
8637 | +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
8638 | +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8639 | + | |
8640 | +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
8641 | +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
8642 | +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
8643 | +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
8644 | +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
8645 | +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
8646 | +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
8647 | + | |
8648 | +_ASUNAME | |
8649 | + | |
8650 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8651 | +for as_dir in $PATH | |
8652 | +do | |
8653 | + IFS=$as_save_IFS | |
8654 | + test -z "$as_dir" && as_dir=. | |
8655 | + $as_echo "PATH: $as_dir" | |
8656 | + done | |
8657 | +IFS=$as_save_IFS | |
8658 | ||
8659 | } >&5 | |
8660 | ||
8661 | @@ -1046,7 +1997,6 @@ | |
8662 | ac_configure_args= | |
8663 | ac_configure_args0= | |
8664 | ac_configure_args1= | |
8665 | -ac_sep= | |
8666 | ac_must_keep_next=false | |
8667 | for ac_pass in 1 2 | |
8668 | do | |
8669 | @@ -1057,13 +2007,13 @@ | |
8670 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
8671 | | -silent | --silent | --silen | --sile | --sil) | |
8672 | continue ;; | |
8673 | - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
8674 | - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8675 | + *\'*) | |
8676 | + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8677 | esac | |
8678 | case $ac_pass in | |
8679 | - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
8680 | + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
8681 | 2) | |
8682 | - ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
8683 | + as_fn_append ac_configure_args1 " '$ac_arg'" | |
8684 | if test $ac_must_keep_next = true; then | |
8685 | ac_must_keep_next=false # Got value, back to normal. | |
8686 | else | |
8687 | @@ -1079,104 +2029,115 @@ | |
8688 | -* ) ac_must_keep_next=true ;; | |
8689 | esac | |
8690 | fi | |
8691 | - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
8692 | - # Get rid of the leading space. | |
8693 | - ac_sep=" " | |
8694 | + as_fn_append ac_configure_args " '$ac_arg'" | |
8695 | ;; | |
8696 | esac | |
8697 | done | |
8698 | done | |
8699 | -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
8700 | -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
8701 | +{ ac_configure_args0=; unset ac_configure_args0;} | |
8702 | +{ ac_configure_args1=; unset ac_configure_args1;} | |
8703 | ||
8704 | # When interrupted or exit'd, cleanup temporary files, and complete | |
8705 | # config.log. We remove comments because anyway the quotes in there | |
8706 | # would cause problems or look ugly. | |
8707 | -# WARNING: Be sure not to use single quotes in there, as some shells, | |
8708 | -# such as our DU 5.0 friend, will then `close' the trap. | |
8709 | +# WARNING: Use '\'' to represent an apostrophe within the trap. | |
8710 | +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
8711 | trap 'exit_status=$? | |
8712 | # Save into config.log some information that might help in debugging. | |
8713 | { | |
8714 | echo | |
8715 | ||
8716 | - cat <<\_ASBOX | |
8717 | -## ---------------- ## | |
8718 | + $as_echo "## ---------------- ## | |
8719 | ## Cache variables. ## | |
8720 | -## ---------------- ## | |
8721 | -_ASBOX | |
8722 | +## ---------------- ##" | |
8723 | echo | |
8724 | # The following way of writing the cache mishandles newlines in values, | |
8725 | -{ | |
8726 | +( | |
8727 | + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
8728 | + eval ac_val=\$$ac_var | |
8729 | + case $ac_val in #( | |
8730 | + *${as_nl}*) | |
8731 | + case $ac_var in #( | |
8732 | + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
8733 | +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
8734 | + esac | |
8735 | + case $ac_var in #( | |
8736 | + _ | IFS | as_nl) ;; #( | |
8737 | + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
8738 | + *) { eval $ac_var=; unset $ac_var;} ;; | |
8739 | + esac ;; | |
8740 | + esac | |
8741 | + done | |
8742 | (set) 2>&1 | | |
8743 | - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
8744 | - *ac_space=\ *) | |
8745 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
8746 | + *${as_nl}ac_space=\ *) | |
8747 | sed -n \ | |
8748 | - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
8749 | - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
8750 | - ;; | |
8751 | + "s/'\''/'\''\\\\'\'''\''/g; | |
8752 | + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
8753 | + ;; #( | |
8754 | *) | |
8755 | - sed -n \ | |
8756 | - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
8757 | + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
8758 | ;; | |
8759 | - esac; | |
8760 | -} | |
8761 | + esac | | |
8762 | + sort | |
8763 | +) | |
8764 | echo | |
8765 | ||
8766 | - cat <<\_ASBOX | |
8767 | -## ----------------- ## | |
8768 | + $as_echo "## ----------------- ## | |
8769 | ## Output variables. ## | |
8770 | -## ----------------- ## | |
8771 | -_ASBOX | |
8772 | +## ----------------- ##" | |
8773 | echo | |
8774 | for ac_var in $ac_subst_vars | |
8775 | do | |
8776 | - eval ac_val=$`echo $ac_var` | |
8777 | - echo "$ac_var='"'"'$ac_val'"'"'" | |
8778 | + eval ac_val=\$$ac_var | |
8779 | + case $ac_val in | |
8780 | + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
8781 | + esac | |
8782 | + $as_echo "$ac_var='\''$ac_val'\''" | |
8783 | done | sort | |
8784 | echo | |
8785 | ||
8786 | if test -n "$ac_subst_files"; then | |
8787 | - cat <<\_ASBOX | |
8788 | -## ------------- ## | |
8789 | -## Output files. ## | |
8790 | -## ------------- ## | |
8791 | -_ASBOX | |
8792 | + $as_echo "## ------------------- ## | |
8793 | +## File substitutions. ## | |
8794 | +## ------------------- ##" | |
8795 | echo | |
8796 | for ac_var in $ac_subst_files | |
8797 | do | |
8798 | - eval ac_val=$`echo $ac_var` | |
8799 | - echo "$ac_var='"'"'$ac_val'"'"'" | |
8800 | + eval ac_val=\$$ac_var | |
8801 | + case $ac_val in | |
8802 | + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
8803 | + esac | |
8804 | + $as_echo "$ac_var='\''$ac_val'\''" | |
8805 | done | sort | |
8806 | echo | |
8807 | fi | |
8808 | ||
8809 | if test -s confdefs.h; then | |
8810 | - cat <<\_ASBOX | |
8811 | -## ----------- ## | |
8812 | + $as_echo "## ----------- ## | |
8813 | ## confdefs.h. ## | |
8814 | -## ----------- ## | |
8815 | -_ASBOX | |
8816 | +## ----------- ##" | |
8817 | echo | |
8818 | - sed "/^$/d" confdefs.h | sort | |
8819 | + cat confdefs.h | |
8820 | echo | |
8821 | fi | |
8822 | test "$ac_signal" != 0 && | |
8823 | - echo "$as_me: caught signal $ac_signal" | |
8824 | - echo "$as_me: exit $exit_status" | |
8825 | + $as_echo "$as_me: caught signal $ac_signal" | |
8826 | + $as_echo "$as_me: exit $exit_status" | |
8827 | } >&5 | |
8828 | - rm -f core *.core && | |
8829 | - rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
8830 | + rm -f core *.core core.conftest.* && | |
8831 | + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
8832 | exit $exit_status | |
8833 | - ' 0 | |
8834 | +' 0 | |
8835 | for ac_signal in 1 2 13 15; do | |
8836 | - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
8837 | + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
8838 | done | |
8839 | ac_signal=0 | |
8840 | ||
8841 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
8842 | -rm -rf conftest* confdefs.h | |
8843 | -# AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
8844 | -echo >confdefs.h | |
8845 | +rm -f -r conftest* confdefs.h | |
8846 | + | |
8847 | +$as_echo "/* confdefs.h */" > confdefs.h | |
8848 | ||
8849 | # Predefined preprocessor variables. | |
8850 | ||
8851 | @@ -1184,112 +2145,138 @@ | |
8852 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
8853 | _ACEOF | |
8854 | ||
8855 | - | |
8856 | cat >>confdefs.h <<_ACEOF | |
8857 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
8858 | _ACEOF | |
8859 | ||
8860 | - | |
8861 | cat >>confdefs.h <<_ACEOF | |
8862 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
8863 | _ACEOF | |
8864 | ||
8865 | - | |
8866 | cat >>confdefs.h <<_ACEOF | |
8867 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
8868 | _ACEOF | |
8869 | ||
8870 | - | |
8871 | cat >>confdefs.h <<_ACEOF | |
8872 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
8873 | _ACEOF | |
8874 | ||
8875 | +cat >>confdefs.h <<_ACEOF | |
8876 | +#define PACKAGE_URL "$PACKAGE_URL" | |
8877 | +_ACEOF | |
8878 | + | |
8879 | ||
8880 | # Let the site file select an alternate cache file if it wants to. | |
8881 | -# Prefer explicitly selected file to automatically selected ones. | |
8882 | -if test -z "$CONFIG_SITE"; then | |
8883 | - if test "x$prefix" != xNONE; then | |
8884 | - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
8885 | - else | |
8886 | - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
8887 | - fi | |
8888 | -fi | |
8889 | -for ac_site_file in $CONFIG_SITE; do | |
8890 | - if test -r "$ac_site_file"; then | |
8891 | - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
8892 | -echo "$as_me: loading site script $ac_site_file" >&6;} | |
8893 | +# Prefer an explicitly selected file to automatically selected ones. | |
8894 | +ac_site_file1=NONE | |
8895 | +ac_site_file2=NONE | |
8896 | +if test -n "$CONFIG_SITE"; then | |
8897 | + # We do not want a PATH search for config.site. | |
8898 | + case $CONFIG_SITE in #(( | |
8899 | + -*) ac_site_file1=./$CONFIG_SITE;; | |
8900 | + */*) ac_site_file1=$CONFIG_SITE;; | |
8901 | + *) ac_site_file1=./$CONFIG_SITE;; | |
8902 | + esac | |
8903 | +elif test "x$prefix" != xNONE; then | |
8904 | + ac_site_file1=$prefix/share/config.site | |
8905 | + ac_site_file2=$prefix/etc/config.site | |
8906 | +else | |
8907 | + ac_site_file1=$ac_default_prefix/share/config.site | |
8908 | + ac_site_file2=$ac_default_prefix/etc/config.site | |
8909 | +fi | |
8910 | +for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
8911 | +do | |
8912 | + test "x$ac_site_file" = xNONE && continue | |
8913 | + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
8914 | + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
8915 | +$as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
8916 | sed 's/^/| /' "$ac_site_file" >&5 | |
8917 | - . "$ac_site_file" | |
8918 | + . "$ac_site_file" \ | |
8919 | + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8920 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8921 | +as_fn_error $? "failed to load site script $ac_site_file | |
8922 | +See \`config.log' for more details" "$LINENO" 5; } | |
8923 | fi | |
8924 | done | |
8925 | ||
8926 | if test -r "$cache_file"; then | |
8927 | - # Some versions of bash will fail to source /dev/null (special | |
8928 | - # files actually), so we avoid doing that. | |
8929 | - if test -f "$cache_file"; then | |
8930 | - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
8931 | -echo "$as_me: loading cache $cache_file" >&6;} | |
8932 | + # Some versions of bash will fail to source /dev/null (special files | |
8933 | + # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
8934 | + if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
8935 | + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
8936 | +$as_echo "$as_me: loading cache $cache_file" >&6;} | |
8937 | case $cache_file in | |
8938 | - [\\/]* | ?:[\\/]* ) . $cache_file;; | |
8939 | - *) . ./$cache_file;; | |
8940 | + [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
8941 | + *) . "./$cache_file";; | |
8942 | esac | |
8943 | fi | |
8944 | else | |
8945 | - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
8946 | -echo "$as_me: creating cache $cache_file" >&6;} | |
8947 | + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
8948 | +$as_echo "$as_me: creating cache $cache_file" >&6;} | |
8949 | >$cache_file | |
8950 | fi | |
8951 | ||
8952 | +gt_needs="$gt_needs " | |
8953 | # Check that the precious variables saved in the cache have kept the same | |
8954 | # value. | |
8955 | ac_cache_corrupted=false | |
8956 | -for ac_var in `(set) 2>&1 | | |
8957 | - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
8958 | +for ac_var in $ac_precious_vars; do | |
8959 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
8960 | eval ac_new_set=\$ac_env_${ac_var}_set | |
8961 | - eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
8962 | - eval ac_new_val="\$ac_env_${ac_var}_value" | |
8963 | + eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
8964 | + eval ac_new_val=\$ac_env_${ac_var}_value | |
8965 | case $ac_old_set,$ac_new_set in | |
8966 | set,) | |
8967 | - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
8968 | -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
8969 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
8970 | +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
8971 | ac_cache_corrupted=: ;; | |
8972 | ,set) | |
8973 | - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
8974 | -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
8975 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
8976 | +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
8977 | ac_cache_corrupted=: ;; | |
8978 | ,);; | |
8979 | *) | |
8980 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8981 | - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
8982 | -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
8983 | - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
8984 | -echo "$as_me: former value: $ac_old_val" >&2;} | |
8985 | - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
8986 | -echo "$as_me: current value: $ac_new_val" >&2;} | |
8987 | - ac_cache_corrupted=: | |
8988 | + # differences in whitespace do not lead to failure. | |
8989 | + ac_old_val_w=`echo x $ac_old_val` | |
8990 | + ac_new_val_w=`echo x $ac_new_val` | |
8991 | + if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
8992 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
8993 | +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
8994 | + ac_cache_corrupted=: | |
8995 | + else | |
8996 | + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
8997 | +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
8998 | + eval $ac_var=\$ac_old_val | |
8999 | + fi | |
9000 | + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
9001 | +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
9002 | + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
9003 | +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
9004 | fi;; | |
9005 | esac | |
9006 | # Pass precious variables to config.status. | |
9007 | if test "$ac_new_set" = set; then | |
9008 | case $ac_new_val in | |
9009 | - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
9010 | - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9011 | + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9012 | *) ac_arg=$ac_var=$ac_new_val ;; | |
9013 | esac | |
9014 | case " $ac_configure_args " in | |
9015 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
9016 | - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
9017 | + *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
9018 | esac | |
9019 | fi | |
9020 | done | |
9021 | if $ac_cache_corrupted; then | |
9022 | - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
9023 | -echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
9024 | - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
9025 | -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
9026 | - { (exit 1); exit 1; }; } | |
9027 | -fi | |
9028 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
9029 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
9030 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
9031 | +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
9032 | + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
9033 | +fi | |
9034 | +## -------------------- ## | |
9035 | +## Main body of script. ## | |
9036 | +## -------------------- ## | |
9037 | ||
9038 | ac_ext=c | |
9039 | ac_cpp='$CPP $CPPFLAGS' | |
9040 | @@ -1299,47 +2286,36 @@ | |
9041 | ||
9042 | ||
9043 | ||
9044 | +am__api_version='1.11' | |
9045 | ||
9046 | - | |
9047 | - | |
9048 | - | |
9049 | - | |
9050 | - | |
9051 | - | |
9052 | - | |
9053 | - | |
9054 | - | |
9055 | - | |
9056 | - | |
9057 | - | |
9058 | - | |
9059 | - | |
9060 | - | |
9061 | -am__api_version="1.9" | |
9062 | ac_aux_dir= | |
9063 | -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
9064 | - if test -f $ac_dir/install-sh; then | |
9065 | +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
9066 | + if test -f "$ac_dir/install-sh"; then | |
9067 | ac_aux_dir=$ac_dir | |
9068 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
9069 | break | |
9070 | - elif test -f $ac_dir/install.sh; then | |
9071 | + elif test -f "$ac_dir/install.sh"; then | |
9072 | ac_aux_dir=$ac_dir | |
9073 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
9074 | break | |
9075 | - elif test -f $ac_dir/shtool; then | |
9076 | + elif test -f "$ac_dir/shtool"; then | |
9077 | ac_aux_dir=$ac_dir | |
9078 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
9079 | break | |
9080 | fi | |
9081 | done | |
9082 | if test -z "$ac_aux_dir"; then | |
9083 | - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
9084 | -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
9085 | - { (exit 1); exit 1; }; } | |
9086 | -fi | |
9087 | -ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
9088 | -ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
9089 | -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
9090 | + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
9091 | +fi | |
9092 | + | |
9093 | +# These three variables are undocumented and unsupported, | |
9094 | +# and are intended to be withdrawn in a future Autoconf release. | |
9095 | +# They can cause serious problems if a builder's source tree is in a directory | |
9096 | +# whose full name contains unusual characters. | |
9097 | +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
9098 | +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
9099 | +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
9100 | + | |
9101 | ||
9102 | # Find a good install program. We prefer a C program (faster), | |
9103 | # so one script is as good as another. But avoid the broken or | |
9104 | @@ -1354,22 +2330,23 @@ | |
9105 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9106 | # OS/2's system install, which has a completely different semantic | |
9107 | # ./install, which can be erroneously created by make from ./install.sh. | |
9108 | -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
9109 | -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
9110 | +# Reject install programs that cannot install multiple files. | |
9111 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
9112 | +$as_echo_n "checking for a BSD-compatible install... " >&6; } | |
9113 | if test -z "$INSTALL"; then | |
9114 | -if test "${ac_cv_path_install+set}" = set; then | |
9115 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9116 | +if ${ac_cv_path_install+:} false; then : | |
9117 | + $as_echo_n "(cached) " >&6 | |
9118 | else | |
9119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9120 | for as_dir in $PATH | |
9121 | do | |
9122 | IFS=$as_save_IFS | |
9123 | test -z "$as_dir" && as_dir=. | |
9124 | - # Account for people who put trailing slashes in PATH elements. | |
9125 | -case $as_dir/ in | |
9126 | - ./ | .// | /cC/* | \ | |
9127 | + # Account for people who put trailing slashes in PATH elements. | |
9128 | +case $as_dir/ in #(( | |
9129 | + ./ | .// | /[cC]/* | \ | |
9130 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
9131 | - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
9132 | + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
9133 | /usr/ucb/* ) ;; | |
9134 | *) | |
9135 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9136 | @@ -1377,7 +2354,7 @@ | |
9137 | # by default. | |
9138 | for ac_prog in ginstall scoinst install; do | |
9139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9140 | - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
9141 | + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
9142 | if test $ac_prog = install && | |
9143 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
9144 | # AIX install. It has an incompatible calling convention. | |
9145 | @@ -1387,30 +2364,43 @@ | |
9146 | # program-specific install script used by HP pwplus--don't use. | |
9147 | : | |
9148 | else | |
9149 | - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
9150 | - break 3 | |
9151 | + rm -rf conftest.one conftest.two conftest.dir | |
9152 | + echo one > conftest.one | |
9153 | + echo two > conftest.two | |
9154 | + mkdir conftest.dir | |
9155 | + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
9156 | + test -s conftest.one && test -s conftest.two && | |
9157 | + test -s conftest.dir/conftest.one && | |
9158 | + test -s conftest.dir/conftest.two | |
9159 | + then | |
9160 | + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
9161 | + break 3 | |
9162 | + fi | |
9163 | fi | |
9164 | fi | |
9165 | done | |
9166 | done | |
9167 | ;; | |
9168 | esac | |
9169 | -done | |
9170 | ||
9171 | + done | |
9172 | +IFS=$as_save_IFS | |
9173 | + | |
9174 | +rm -rf conftest.one conftest.two conftest.dir | |
9175 | ||
9176 | fi | |
9177 | if test "${ac_cv_path_install+set}" = set; then | |
9178 | INSTALL=$ac_cv_path_install | |
9179 | else | |
9180 | - # As a last resort, use the slow shell script. We don't cache a | |
9181 | - # path for INSTALL within a source directory, because that will | |
9182 | + # As a last resort, use the slow shell script. Don't cache a | |
9183 | + # value for INSTALL within a source directory, because that will | |
9184 | # break other packages using the cache if that directory is | |
9185 | - # removed, or if the path is relative. | |
9186 | + # removed, or if the value is a relative name. | |
9187 | INSTALL=$ac_install_sh | |
9188 | fi | |
9189 | fi | |
9190 | -echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
9191 | -echo "${ECHO_T}$INSTALL" >&6 | |
9192 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
9193 | +$as_echo "$INSTALL" >&6; } | |
9194 | ||
9195 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9196 | # It thinks the first close brace ends the variable substitution. | |
9197 | @@ -1420,21 +2410,34 @@ | |
9198 | ||
9199 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9200 | ||
9201 | -echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
9202 | -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
9203 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
9204 | +$as_echo_n "checking whether build environment is sane... " >&6; } | |
9205 | # Just in case | |
9206 | sleep 1 | |
9207 | echo timestamp > conftest.file | |
9208 | +# Reject unsafe characters in $srcdir or the absolute working directory | |
9209 | +# name. Accept space and tab only in the latter. | |
9210 | +am_lf=' | |
9211 | +' | |
9212 | +case `pwd` in | |
9213 | + *[\\\"\#\$\&\'\`$am_lf]*) | |
9214 | + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
9215 | +esac | |
9216 | +case $srcdir in | |
9217 | + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
9218 | + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
9219 | +esac | |
9220 | + | |
9221 | # Do `set' in a subshell so we don't clobber the current shell's | |
9222 | # arguments. Must try -L first in case configure is actually a | |
9223 | # symlink; some systems play weird games with the mod time of symlinks | |
9224 | # (eg FreeBSD returns the mod time of the symlink's containing | |
9225 | # directory). | |
9226 | if ( | |
9227 | - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
9228 | + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
9229 | if test "$*" = "X"; then | |
9230 | # -L didn't work. | |
9231 | - set X `ls -t $srcdir/configure conftest.file` | |
9232 | + set X `ls -t "$srcdir/configure" conftest.file` | |
9233 | fi | |
9234 | rm -f conftest.file | |
9235 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
9236 | @@ -1444,11 +2447,8 @@ | |
9237 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
9238 | # broken ls alias from the environment. This has actually | |
9239 | # happened. Such a system could not be considered "sane". | |
9240 | - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
9241 | -alias in your environment" >&5 | |
9242 | -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
9243 | -alias in your environment" >&2;} | |
9244 | - { (exit 1); exit 1; }; } | |
9245 | + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
9246 | +alias in your environment" "$LINENO" 5 | |
9247 | fi | |
9248 | ||
9249 | test "$2" = conftest.file | |
9250 | @@ -1457,139 +2457,268 @@ | |
9251 | # Ok. | |
9252 | : | |
9253 | else | |
9254 | - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
9255 | -Check your system clock" >&5 | |
9256 | -echo "$as_me: error: newly created file is older than distributed files! | |
9257 | -Check your system clock" >&2;} | |
9258 | - { (exit 1); exit 1; }; } | |
9259 | + as_fn_error $? "newly created file is older than distributed files! | |
9260 | +Check your system clock" "$LINENO" 5 | |
9261 | fi | |
9262 | -echo "$as_me:$LINENO: result: yes" >&5 | |
9263 | -echo "${ECHO_T}yes" >&6 | |
9264 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9265 | +$as_echo "yes" >&6; } | |
9266 | test "$program_prefix" != NONE && | |
9267 | - program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
9268 | + program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
9269 | # Use a double $ so make ignores it. | |
9270 | test "$program_suffix" != NONE && | |
9271 | - program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
9272 | -# Double any \ or $. echo might interpret backslashes. | |
9273 | + program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
9274 | +# Double any \ or $. | |
9275 | # By default was `s,x,x', remove it if useless. | |
9276 | -cat <<\_ACEOF >conftest.sed | |
9277 | -s/[\\$]/&&/g;s/;s,x,x,$// | |
9278 | -_ACEOF | |
9279 | -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
9280 | -rm conftest.sed | |
9281 | +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
9282 | +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
9283 | ||
9284 | # expand $ac_aux_dir to an absolute path | |
9285 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
9286 | ||
9287 | -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
9288 | +if test x"${MISSING+set}" != xset; then | |
9289 | + case $am_aux_dir in | |
9290 | + *\ * | *\ *) | |
9291 | + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
9292 | + *) | |
9293 | + MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
9294 | + esac | |
9295 | +fi | |
9296 | # Use eval to expand $SHELL | |
9297 | if eval "$MISSING --run true"; then | |
9298 | am_missing_run="$MISSING --run " | |
9299 | else | |
9300 | am_missing_run= | |
9301 | - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
9302 | -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
9303 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
9304 | +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
9305 | fi | |
9306 | ||
9307 | -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
9308 | - # We used to keeping the `.' as first argument, in order to | |
9309 | - # allow $(mkdir_p) to be used without argument. As in | |
9310 | - # $(mkdir_p) $(somedir) | |
9311 | - # where $(somedir) is conditionally defined. However this is wrong | |
9312 | - # for two reasons: | |
9313 | - # 1. if the package is installed by a user who cannot write `.' | |
9314 | - # make install will fail, | |
9315 | - # 2. the above comment should most certainly read | |
9316 | - # $(mkdir_p) $(DESTDIR)$(somedir) | |
9317 | - # so it does not work when $(somedir) is undefined and | |
9318 | - # $(DESTDIR) is not. | |
9319 | - # To support the latter case, we have to write | |
9320 | - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
9321 | - # so the `.' trick is pointless. | |
9322 | - mkdir_p='mkdir -p --' | |
9323 | -else | |
9324 | - # On NextStep and OpenStep, the `mkdir' command does not | |
9325 | - # recognize any option. It will interpret all options as | |
9326 | - # directories to create, and then abort because `.' already | |
9327 | - # exists. | |
9328 | - for d in ./-p ./--version; | |
9329 | - do | |
9330 | - test -d $d && rmdir $d | |
9331 | - done | |
9332 | - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
9333 | - if test -f "$ac_aux_dir/mkinstalldirs"; then | |
9334 | - mkdir_p='$(mkinstalldirs)' | |
9335 | - else | |
9336 | - mkdir_p='$(install_sh) -d' | |
9337 | - fi | |
9338 | +if test x"${install_sh}" != xset; then | |
9339 | + case $am_aux_dir in | |
9340 | + *\ * | *\ *) | |
9341 | + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
9342 | + *) | |
9343 | + install_sh="\${SHELL} $am_aux_dir/install-sh" | |
9344 | + esac | |
9345 | fi | |
9346 | ||
9347 | -for ac_prog in gawk mawk nawk awk | |
9348 | -do | |
9349 | - # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9350 | -set dummy $ac_prog; ac_word=$2 | |
9351 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9352 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9353 | -if test "${ac_cv_prog_AWK+set}" = set; then | |
9354 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9355 | +# Installed binaries are usually stripped using `strip' when the user | |
9356 | +# run `make install-strip'. However `strip' might not be the right | |
9357 | +# tool to use in cross-compilation environments, therefore Automake | |
9358 | +# will honor the `STRIP' environment variable to overrule this program. | |
9359 | +if test "$cross_compiling" != no; then | |
9360 | + if test -n "$ac_tool_prefix"; then | |
9361 | + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
9362 | +set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
9363 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9364 | +$as_echo_n "checking for $ac_word... " >&6; } | |
9365 | +if ${ac_cv_prog_STRIP+:} false; then : | |
9366 | + $as_echo_n "(cached) " >&6 | |
9367 | else | |
9368 | - if test -n "$AWK"; then | |
9369 | - ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
9370 | + if test -n "$STRIP"; then | |
9371 | + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9372 | else | |
9373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9374 | for as_dir in $PATH | |
9375 | do | |
9376 | IFS=$as_save_IFS | |
9377 | test -z "$as_dir" && as_dir=. | |
9378 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
9379 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9380 | - ac_cv_prog_AWK="$ac_prog" | |
9381 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9382 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
9383 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9384 | + ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
9385 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9386 | break 2 | |
9387 | fi | |
9388 | done | |
9389 | -done | |
9390 | + done | |
9391 | +IFS=$as_save_IFS | |
9392 | ||
9393 | fi | |
9394 | fi | |
9395 | -AWK=$ac_cv_prog_AWK | |
9396 | -if test -n "$AWK"; then | |
9397 | - echo "$as_me:$LINENO: result: $AWK" >&5 | |
9398 | -echo "${ECHO_T}$AWK" >&6 | |
9399 | +STRIP=$ac_cv_prog_STRIP | |
9400 | +if test -n "$STRIP"; then | |
9401 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
9402 | +$as_echo "$STRIP" >&6; } | |
9403 | else | |
9404 | - echo "$as_me:$LINENO: result: no" >&5 | |
9405 | -echo "${ECHO_T}no" >&6 | |
9406 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9407 | +$as_echo "no" >&6; } | |
9408 | fi | |
9409 | ||
9410 | - test -n "$AWK" && break | |
9411 | -done | |
9412 | ||
9413 | -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
9414 | -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
9415 | -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
9416 | -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
9417 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9418 | -else | |
9419 | - cat >conftest.make <<\_ACEOF | |
9420 | -all: | |
9421 | - @echo 'ac_maketemp="$(MAKE)"' | |
9422 | -_ACEOF | |
9423 | -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9424 | -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
9425 | -if test -n "$ac_maketemp"; then | |
9426 | - eval ac_cv_prog_make_${ac_make}_set=yes | |
9427 | -else | |
9428 | - eval ac_cv_prog_make_${ac_make}_set=no | |
9429 | -fi | |
9430 | -rm -f conftest.make | |
9431 | fi | |
9432 | -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
9433 | - echo "$as_me:$LINENO: result: yes" >&5 | |
9434 | -echo "${ECHO_T}yes" >&6 | |
9435 | - SET_MAKE= | |
9436 | +if test -z "$ac_cv_prog_STRIP"; then | |
9437 | + ac_ct_STRIP=$STRIP | |
9438 | + # Extract the first word of "strip", so it can be a program name with args. | |
9439 | +set dummy strip; ac_word=$2 | |
9440 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9441 | +$as_echo_n "checking for $ac_word... " >&6; } | |
9442 | +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
9443 | + $as_echo_n "(cached) " >&6 | |
9444 | +else | |
9445 | + if test -n "$ac_ct_STRIP"; then | |
9446 | + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
9447 | +else | |
9448 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9449 | +for as_dir in $PATH | |
9450 | +do | |
9451 | + IFS=$as_save_IFS | |
9452 | + test -z "$as_dir" && as_dir=. | |
9453 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
9454 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9455 | + ac_cv_prog_ac_ct_STRIP="strip" | |
9456 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9457 | + break 2 | |
9458 | + fi | |
9459 | +done | |
9460 | + done | |
9461 | +IFS=$as_save_IFS | |
9462 | + | |
9463 | +fi | |
9464 | +fi | |
9465 | +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
9466 | +if test -n "$ac_ct_STRIP"; then | |
9467 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
9468 | +$as_echo "$ac_ct_STRIP" >&6; } | |
9469 | +else | |
9470 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9471 | +$as_echo "no" >&6; } | |
9472 | +fi | |
9473 | + | |
9474 | + if test "x$ac_ct_STRIP" = x; then | |
9475 | + STRIP=":" | |
9476 | + else | |
9477 | + case $cross_compiling:$ac_tool_warned in | |
9478 | +yes:) | |
9479 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9480 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9481 | +ac_tool_warned=yes ;; | |
9482 | +esac | |
9483 | + STRIP=$ac_ct_STRIP | |
9484 | + fi | |
9485 | +else | |
9486 | + STRIP="$ac_cv_prog_STRIP" | |
9487 | +fi | |
9488 | + | |
9489 | +fi | |
9490 | +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
9491 | + | |
9492 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
9493 | +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
9494 | +if test -z "$MKDIR_P"; then | |
9495 | + if ${ac_cv_path_mkdir+:} false; then : | |
9496 | + $as_echo_n "(cached) " >&6 | |
9497 | +else | |
9498 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9499 | +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
9500 | +do | |
9501 | + IFS=$as_save_IFS | |
9502 | + test -z "$as_dir" && as_dir=. | |
9503 | + for ac_prog in mkdir gmkdir; do | |
9504 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
9505 | + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
9506 | + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
9507 | + 'mkdir (GNU coreutils) '* | \ | |
9508 | + 'mkdir (coreutils) '* | \ | |
9509 | + 'mkdir (fileutils) '4.1*) | |
9510 | + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
9511 | + break 3;; | |
9512 | + esac | |
9513 | + done | |
9514 | + done | |
9515 | + done | |
9516 | +IFS=$as_save_IFS | |
9517 | + | |
9518 | +fi | |
9519 | + | |
9520 | + test -d ./--version && rmdir ./--version | |
9521 | + if test "${ac_cv_path_mkdir+set}" = set; then | |
9522 | + MKDIR_P="$ac_cv_path_mkdir -p" | |
9523 | + else | |
9524 | + # As a last resort, use the slow shell script. Don't cache a | |
9525 | + # value for MKDIR_P within a source directory, because that will | |
9526 | + # break other packages using the cache if that directory is | |
9527 | + # removed, or if the value is a relative name. | |
9528 | + MKDIR_P="$ac_install_sh -d" | |
9529 | + fi | |
9530 | +fi | |
9531 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
9532 | +$as_echo "$MKDIR_P" >&6; } | |
9533 | + | |
9534 | +mkdir_p="$MKDIR_P" | |
9535 | +case $mkdir_p in | |
9536 | + [\\/$]* | ?:[\\/]*) ;; | |
9537 | + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
9538 | +esac | |
9539 | + | |
9540 | +for ac_prog in gawk mawk nawk awk | |
9541 | +do | |
9542 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9543 | +set dummy $ac_prog; ac_word=$2 | |
9544 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9545 | +$as_echo_n "checking for $ac_word... " >&6; } | |
9546 | +if ${ac_cv_prog_AWK+:} false; then : | |
9547 | + $as_echo_n "(cached) " >&6 | |
9548 | +else | |
9549 | + if test -n "$AWK"; then | |
9550 | + ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
9551 | +else | |
9552 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9553 | +for as_dir in $PATH | |
9554 | +do | |
9555 | + IFS=$as_save_IFS | |
9556 | + test -z "$as_dir" && as_dir=. | |
9557 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
9558 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9559 | + ac_cv_prog_AWK="$ac_prog" | |
9560 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9561 | + break 2 | |
9562 | + fi | |
9563 | +done | |
9564 | + done | |
9565 | +IFS=$as_save_IFS | |
9566 | + | |
9567 | +fi | |
9568 | +fi | |
9569 | +AWK=$ac_cv_prog_AWK | |
9570 | +if test -n "$AWK"; then | |
9571 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
9572 | +$as_echo "$AWK" >&6; } | |
9573 | +else | |
9574 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9575 | +$as_echo "no" >&6; } | |
9576 | +fi | |
9577 | + | |
9578 | + | |
9579 | + test -n "$AWK" && break | |
9580 | +done | |
9581 | + | |
9582 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
9583 | +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
9584 | +set x ${MAKE-make} | |
9585 | +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
9586 | +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
9587 | + $as_echo_n "(cached) " >&6 | |
9588 | +else | |
9589 | + cat >conftest.make <<\_ACEOF | |
9590 | +SHELL = /bin/sh | |
9591 | +all: | |
9592 | + @echo '@@@%%%=$(MAKE)=@@@%%%' | |
9593 | +_ACEOF | |
9594 | +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
9595 | +case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
9596 | + *@@@%%%=?*=@@@%%%*) | |
9597 | + eval ac_cv_prog_make_${ac_make}_set=yes;; | |
9598 | + *) | |
9599 | + eval ac_cv_prog_make_${ac_make}_set=no;; | |
9600 | +esac | |
9601 | +rm -f conftest.make | |
9602 | +fi | |
9603 | +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
9604 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9605 | +$as_echo "yes" >&6; } | |
9606 | + SET_MAKE= | |
9607 | else | |
9608 | - echo "$as_me:$LINENO: result: no" >&5 | |
9609 | -echo "${ECHO_T}no" >&6 | |
9610 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9611 | +$as_echo "no" >&6; } | |
9612 | SET_MAKE="MAKE=${MAKE-make}" | |
9613 | fi | |
9614 | ||
9615 | @@ -1602,12 +2731,14 @@ | |
9616 | fi | |
9617 | rmdir .tst 2>/dev/null | |
9618 | ||
9619 | -# test to see if srcdir already configured | |
9620 | -if test "`cd $srcdir && pwd`" != "`pwd`" && | |
9621 | - test -f $srcdir/config.status; then | |
9622 | - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
9623 | -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
9624 | - { (exit 1); exit 1; }; } | |
9625 | +if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
9626 | + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
9627 | + # is not polluted with repeated "-I." | |
9628 | + am__isrc=' -I$(srcdir)' | |
9629 | + # test to see if srcdir already configured | |
9630 | + if test -f $srcdir/config.status; then | |
9631 | + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
9632 | + fi | |
9633 | fi | |
9634 | ||
9635 | # test whether we have cygpath | |
9636 | @@ -1650,1448 +2781,910 @@ | |
9637 | ||
9638 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
9639 | ||
9640 | -install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
9641 | +# We need awk for the "check" target. The system "awk" is bad on | |
9642 | +# some platforms. | |
9643 | +# Always define AMTAR for backward compatibility. Yes, it's still used | |
9644 | +# in the wild :-( We should find a proper way to deprecate it ... | |
9645 | +AMTAR='$${TAR-tar}' | |
9646 | ||
9647 | -# Installed binaries are usually stripped using `strip' when the user | |
9648 | -# run `make install-strip'. However `strip' might not be the right | |
9649 | -# tool to use in cross-compilation environments, therefore Automake | |
9650 | -# will honor the `STRIP' environment variable to overrule this program. | |
9651 | -if test "$cross_compiling" != no; then | |
9652 | - if test -n "$ac_tool_prefix"; then | |
9653 | - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
9654 | -set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
9655 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9656 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9657 | -if test "${ac_cv_prog_STRIP+set}" = set; then | |
9658 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9659 | +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
9660 | + | |
9661 | + | |
9662 | + | |
9663 | + | |
9664 | + | |
9665 | +ac_config_headers="$ac_config_headers config.h" | |
9666 | + | |
9667 | + | |
9668 | + | |
9669 | +DEPDIR="${am__leading_dot}deps" | |
9670 | + | |
9671 | +ac_config_commands="$ac_config_commands depfiles" | |
9672 | + | |
9673 | + | |
9674 | +am_make=${MAKE-make} | |
9675 | +cat > confinc << 'END' | |
9676 | +am__doit: | |
9677 | + @echo this is the am__doit target | |
9678 | +.PHONY: am__doit | |
9679 | +END | |
9680 | +# If we don't find an include directive, just comment out the code. | |
9681 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
9682 | +$as_echo_n "checking for style of include used by $am_make... " >&6; } | |
9683 | +am__include="#" | |
9684 | +am__quote= | |
9685 | +_am_result=none | |
9686 | +# First try GNU make style include. | |
9687 | +echo "include confinc" > confmf | |
9688 | +# Ignore all kinds of additional output from `make'. | |
9689 | +case `$am_make -s -f confmf 2> /dev/null` in #( | |
9690 | +*the\ am__doit\ target*) | |
9691 | + am__include=include | |
9692 | + am__quote= | |
9693 | + _am_result=GNU | |
9694 | + ;; | |
9695 | +esac | |
9696 | +# Now try BSD make style include. | |
9697 | +if test "$am__include" = "#"; then | |
9698 | + echo '.include "confinc"' > confmf | |
9699 | + case `$am_make -s -f confmf 2> /dev/null` in #( | |
9700 | + *the\ am__doit\ target*) | |
9701 | + am__include=.include | |
9702 | + am__quote="\"" | |
9703 | + _am_result=BSD | |
9704 | + ;; | |
9705 | + esac | |
9706 | +fi | |
9707 | + | |
9708 | + | |
9709 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
9710 | +$as_echo "$_am_result" >&6; } | |
9711 | +rm -f confinc confmf | |
9712 | + | |
9713 | +# Check whether --enable-dependency-tracking was given. | |
9714 | +if test "${enable_dependency_tracking+set}" = set; then : | |
9715 | + enableval=$enable_dependency_tracking; | |
9716 | +fi | |
9717 | + | |
9718 | +if test "x$enable_dependency_tracking" != xno; then | |
9719 | + am_depcomp="$ac_aux_dir/depcomp" | |
9720 | + AMDEPBACKSLASH='\' | |
9721 | + am__nodep='_no' | |
9722 | +fi | |
9723 | + if test "x$enable_dependency_tracking" != xno; then | |
9724 | + AMDEP_TRUE= | |
9725 | + AMDEP_FALSE='#' | |
9726 | else | |
9727 | - if test -n "$STRIP"; then | |
9728 | - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9729 | + AMDEP_TRUE='#' | |
9730 | + AMDEP_FALSE= | |
9731 | +fi | |
9732 | + | |
9733 | + | |
9734 | +ac_ext=c | |
9735 | +ac_cpp='$CPP $CPPFLAGS' | |
9736 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9737 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9738 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9739 | +if test -n "$ac_tool_prefix"; then | |
9740 | + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
9741 | +set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
9742 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9743 | +$as_echo_n "checking for $ac_word... " >&6; } | |
9744 | +if ${ac_cv_prog_CC+:} false; then : | |
9745 | + $as_echo_n "(cached) " >&6 | |
9746 | +else | |
9747 | + if test -n "$CC"; then | |
9748 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
9749 | else | |
9750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9751 | for as_dir in $PATH | |
9752 | do | |
9753 | IFS=$as_save_IFS | |
9754 | test -z "$as_dir" && as_dir=. | |
9755 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
9756 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9757 | - ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
9758 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9759 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
9760 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9761 | + ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
9762 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9763 | break 2 | |
9764 | fi | |
9765 | done | |
9766 | -done | |
9767 | + done | |
9768 | +IFS=$as_save_IFS | |
9769 | ||
9770 | fi | |
9771 | fi | |
9772 | -STRIP=$ac_cv_prog_STRIP | |
9773 | -if test -n "$STRIP"; then | |
9774 | - echo "$as_me:$LINENO: result: $STRIP" >&5 | |
9775 | -echo "${ECHO_T}$STRIP" >&6 | |
9776 | +CC=$ac_cv_prog_CC | |
9777 | +if test -n "$CC"; then | |
9778 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
9779 | +$as_echo "$CC" >&6; } | |
9780 | else | |
9781 | - echo "$as_me:$LINENO: result: no" >&5 | |
9782 | -echo "${ECHO_T}no" >&6 | |
9783 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9784 | +$as_echo "no" >&6; } | |
9785 | fi | |
9786 | ||
9787 | + | |
9788 | fi | |
9789 | -if test -z "$ac_cv_prog_STRIP"; then | |
9790 | - ac_ct_STRIP=$STRIP | |
9791 | - # Extract the first word of "strip", so it can be a program name with args. | |
9792 | -set dummy strip; ac_word=$2 | |
9793 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9794 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9795 | -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
9796 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9797 | +if test -z "$ac_cv_prog_CC"; then | |
9798 | + ac_ct_CC=$CC | |
9799 | + # Extract the first word of "gcc", so it can be a program name with args. | |
9800 | +set dummy gcc; ac_word=$2 | |
9801 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9802 | +$as_echo_n "checking for $ac_word... " >&6; } | |
9803 | +if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
9804 | + $as_echo_n "(cached) " >&6 | |
9805 | else | |
9806 | - if test -n "$ac_ct_STRIP"; then | |
9807 | - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
9808 | + if test -n "$ac_ct_CC"; then | |
9809 | + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9810 | else | |
9811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9812 | for as_dir in $PATH | |
9813 | do | |
9814 | IFS=$as_save_IFS | |
9815 | test -z "$as_dir" && as_dir=. | |
9816 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
9817 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9818 | - ac_cv_prog_ac_ct_STRIP="strip" | |
9819 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9820 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
9821 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9822 | + ac_cv_prog_ac_ct_CC="gcc" | |
9823 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9824 | break 2 | |
9825 | fi | |
9826 | done | |
9827 | -done | |
9828 | + done | |
9829 | +IFS=$as_save_IFS | |
9830 | ||
9831 | - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
9832 | fi | |
9833 | fi | |
9834 | -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
9835 | -if test -n "$ac_ct_STRIP"; then | |
9836 | - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
9837 | -echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
9838 | +ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9839 | +if test -n "$ac_ct_CC"; then | |
9840 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
9841 | +$as_echo "$ac_ct_CC" >&6; } | |
9842 | else | |
9843 | - echo "$as_me:$LINENO: result: no" >&5 | |
9844 | -echo "${ECHO_T}no" >&6 | |
9845 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9846 | +$as_echo "no" >&6; } | |
9847 | fi | |
9848 | ||
9849 | - STRIP=$ac_ct_STRIP | |
9850 | + if test "x$ac_ct_CC" = x; then | |
9851 | + CC="" | |
9852 | + else | |
9853 | + case $cross_compiling:$ac_tool_warned in | |
9854 | +yes:) | |
9855 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9856 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9857 | +ac_tool_warned=yes ;; | |
9858 | +esac | |
9859 | + CC=$ac_ct_CC | |
9860 | + fi | |
9861 | else | |
9862 | - STRIP="$ac_cv_prog_STRIP" | |
9863 | -fi | |
9864 | - | |
9865 | + CC="$ac_cv_prog_CC" | |
9866 | fi | |
9867 | -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
9868 | - | |
9869 | -# We need awk for the "check" target. The system "awk" is bad on | |
9870 | -# some platforms. | |
9871 | -# Always define AMTAR for backward compatibility. | |
9872 | - | |
9873 | -AMTAR=${AMTAR-"${am_missing_run}tar"} | |
9874 | - | |
9875 | -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
9876 | - | |
9877 | - | |
9878 | - | |
9879 | - | |
9880 | - | |
9881 | - ac_config_headers="$ac_config_headers config.h" | |
9882 | - | |
9883 | ||
9884 | - | |
9885 | - | |
9886 | - | |
9887 | - MKINSTALLDIRS= | |
9888 | - if test -n "$ac_aux_dir"; then | |
9889 | - case "$ac_aux_dir" in | |
9890 | - /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
9891 | - *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
9892 | - esac | |
9893 | - fi | |
9894 | - if test -z "$MKINSTALLDIRS"; then | |
9895 | - MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
9896 | +if test -z "$CC"; then | |
9897 | + if test -n "$ac_tool_prefix"; then | |
9898 | + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9899 | +set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
9900 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9901 | +$as_echo_n "checking for $ac_word... " >&6; } | |
9902 | +if ${ac_cv_prog_CC+:} false; then : | |
9903 | + $as_echo_n "(cached) " >&6 | |
9904 | +else | |
9905 | + if test -n "$CC"; then | |
9906 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
9907 | +else | |
9908 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9909 | +for as_dir in $PATH | |
9910 | +do | |
9911 | + IFS=$as_save_IFS | |
9912 | + test -z "$as_dir" && as_dir=. | |
9913 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
9914 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9915 | + ac_cv_prog_CC="${ac_tool_prefix}cc" | |
9916 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9917 | + break 2 | |
9918 | fi | |
9919 | +done | |
9920 | + done | |
9921 | +IFS=$as_save_IFS | |
9922 | ||
9923 | - | |
9924 | - | |
9925 | - echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
9926 | -echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
9927 | - # Check whether --enable-nls or --disable-nls was given. | |
9928 | -if test "${enable_nls+set}" = set; then | |
9929 | - enableval="$enable_nls" | |
9930 | - USE_NLS=$enableval | |
9931 | +fi | |
9932 | +fi | |
9933 | +CC=$ac_cv_prog_CC | |
9934 | +if test -n "$CC"; then | |
9935 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
9936 | +$as_echo "$CC" >&6; } | |
9937 | else | |
9938 | - USE_NLS=yes | |
9939 | -fi; | |
9940 | - echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
9941 | -echo "${ECHO_T}$USE_NLS" >&6 | |
9942 | - | |
9943 | - | |
9944 | - | |
9945 | - | |
9946 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9947 | +$as_echo "no" >&6; } | |
9948 | +fi | |
9949 | ||
9950 | ||
9951 | -# Prepare PATH_SEPARATOR. | |
9952 | -# The user is always right. | |
9953 | -if test "${PATH_SEPARATOR+set}" != set; then | |
9954 | - echo "#! /bin/sh" >conf$$.sh | |
9955 | - echo "exit 0" >>conf$$.sh | |
9956 | - chmod +x conf$$.sh | |
9957 | - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9958 | - PATH_SEPARATOR=';' | |
9959 | - else | |
9960 | - PATH_SEPARATOR=: | |
9961 | fi | |
9962 | - rm -f conf$$.sh | |
9963 | fi | |
9964 | - | |
9965 | -# Find out how to test for executable files. Don't use a zero-byte file, | |
9966 | -# as systems may use methods other than mode bits to determine executability. | |
9967 | -cat >conf$$.file <<_ASEOF | |
9968 | -#! /bin/sh | |
9969 | -exit 0 | |
9970 | -_ASEOF | |
9971 | -chmod +x conf$$.file | |
9972 | -if test -x conf$$.file >/dev/null 2>&1; then | |
9973 | - ac_executable_p="test -x" | |
9974 | +if test -z "$CC"; then | |
9975 | + # Extract the first word of "cc", so it can be a program name with args. | |
9976 | +set dummy cc; ac_word=$2 | |
9977 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9978 | +$as_echo_n "checking for $ac_word... " >&6; } | |
9979 | +if ${ac_cv_prog_CC+:} false; then : | |
9980 | + $as_echo_n "(cached) " >&6 | |
9981 | else | |
9982 | - ac_executable_p="test -f" | |
9983 | -fi | |
9984 | -rm -f conf$$.file | |
9985 | - | |
9986 | -# Extract the first word of "msgfmt", so it can be a program name with args. | |
9987 | -set dummy msgfmt; ac_word=$2 | |
9988 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9989 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9990 | -if test "${ac_cv_path_MSGFMT+set}" = set; then | |
9991 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9992 | + if test -n "$CC"; then | |
9993 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
9994 | else | |
9995 | - case "$MSGFMT" in | |
9996 | - [\\/]* | ?:[\\/]*) | |
9997 | - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9998 | - ;; | |
9999 | - *) | |
10000 | - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
10001 | - for ac_dir in $PATH; do | |
10002 | - IFS="$ac_save_IFS" | |
10003 | - test -z "$ac_dir" && ac_dir=. | |
10004 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
10005 | - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
10006 | - echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
10007 | - if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && | |
10008 | - (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
10009 | - ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
10010 | - break 2 | |
10011 | - fi | |
10012 | - fi | |
10013 | - done | |
10014 | - done | |
10015 | - IFS="$ac_save_IFS" | |
10016 | - test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
10017 | - ;; | |
10018 | -esac | |
10019 | + ac_prog_rejected=no | |
10020 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10021 | +for as_dir in $PATH | |
10022 | +do | |
10023 | + IFS=$as_save_IFS | |
10024 | + test -z "$as_dir" && as_dir=. | |
10025 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
10026 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10027 | + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10028 | + ac_prog_rejected=yes | |
10029 | + continue | |
10030 | + fi | |
10031 | + ac_cv_prog_CC="cc" | |
10032 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10033 | + break 2 | |
10034 | + fi | |
10035 | +done | |
10036 | + done | |
10037 | +IFS=$as_save_IFS | |
10038 | + | |
10039 | +if test $ac_prog_rejected = yes; then | |
10040 | + # We found a bogon in the path, so make sure we never use it. | |
10041 | + set dummy $ac_cv_prog_CC | |
10042 | + shift | |
10043 | + if test $# != 0; then | |
10044 | + # We chose a different compiler from the bogus one. | |
10045 | + # However, it has the same basename, so the bogon will be chosen | |
10046 | + # first if we set CC to just the basename; use the full file name. | |
10047 | + shift | |
10048 | + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10049 | + fi | |
10050 | fi | |
10051 | -MSGFMT="$ac_cv_path_MSGFMT" | |
10052 | -if test "$MSGFMT" != ":"; then | |
10053 | - echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
10054 | -echo "${ECHO_T}$MSGFMT" >&6 | |
10055 | +fi | |
10056 | +fi | |
10057 | +CC=$ac_cv_prog_CC | |
10058 | +if test -n "$CC"; then | |
10059 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
10060 | +$as_echo "$CC" >&6; } | |
10061 | else | |
10062 | - echo "$as_me:$LINENO: result: no" >&5 | |
10063 | -echo "${ECHO_T}no" >&6 | |
10064 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10065 | +$as_echo "no" >&6; } | |
10066 | fi | |
10067 | ||
10068 | - # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
10069 | -set dummy gmsgfmt; ac_word=$2 | |
10070 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10071 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10072 | -if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
10073 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10074 | + | |
10075 | +fi | |
10076 | +if test -z "$CC"; then | |
10077 | + if test -n "$ac_tool_prefix"; then | |
10078 | + for ac_prog in cl.exe | |
10079 | + do | |
10080 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10081 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10082 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10083 | +$as_echo_n "checking for $ac_word... " >&6; } | |
10084 | +if ${ac_cv_prog_CC+:} false; then : | |
10085 | + $as_echo_n "(cached) " >&6 | |
10086 | else | |
10087 | - case $GMSGFMT in | |
10088 | - [\\/]* | ?:[\\/]*) | |
10089 | - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
10090 | - ;; | |
10091 | - *) | |
10092 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10093 | + if test -n "$CC"; then | |
10094 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
10095 | +else | |
10096 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10097 | for as_dir in $PATH | |
10098 | do | |
10099 | IFS=$as_save_IFS | |
10100 | test -z "$as_dir" && as_dir=. | |
10101 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
10102 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10103 | - ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
10104 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10105 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
10106 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10107 | + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10108 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10109 | break 2 | |
10110 | fi | |
10111 | done | |
10112 | -done | |
10113 | + done | |
10114 | +IFS=$as_save_IFS | |
10115 | ||
10116 | - test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
10117 | - ;; | |
10118 | -esac | |
10119 | fi | |
10120 | -GMSGFMT=$ac_cv_path_GMSGFMT | |
10121 | - | |
10122 | -if test -n "$GMSGFMT"; then | |
10123 | - echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
10124 | -echo "${ECHO_T}$GMSGFMT" >&6 | |
10125 | +fi | |
10126 | +CC=$ac_cv_prog_CC | |
10127 | +if test -n "$CC"; then | |
10128 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
10129 | +$as_echo "$CC" >&6; } | |
10130 | else | |
10131 | - echo "$as_me:$LINENO: result: no" >&5 | |
10132 | -echo "${ECHO_T}no" >&6 | |
10133 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10134 | +$as_echo "no" >&6; } | |
10135 | fi | |
10136 | ||
10137 | ||
10138 | - | |
10139 | -# Prepare PATH_SEPARATOR. | |
10140 | -# The user is always right. | |
10141 | -if test "${PATH_SEPARATOR+set}" != set; then | |
10142 | - echo "#! /bin/sh" >conf$$.sh | |
10143 | - echo "exit 0" >>conf$$.sh | |
10144 | - chmod +x conf$$.sh | |
10145 | - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10146 | - PATH_SEPARATOR=';' | |
10147 | - else | |
10148 | - PATH_SEPARATOR=: | |
10149 | - fi | |
10150 | - rm -f conf$$.sh | |
10151 | + test -n "$CC" && break | |
10152 | + done | |
10153 | fi | |
10154 | - | |
10155 | -# Find out how to test for executable files. Don't use a zero-byte file, | |
10156 | -# as systems may use methods other than mode bits to determine executability. | |
10157 | -cat >conf$$.file <<_ASEOF | |
10158 | -#! /bin/sh | |
10159 | -exit 0 | |
10160 | -_ASEOF | |
10161 | -chmod +x conf$$.file | |
10162 | -if test -x conf$$.file >/dev/null 2>&1; then | |
10163 | - ac_executable_p="test -x" | |
10164 | +if test -z "$CC"; then | |
10165 | + ac_ct_CC=$CC | |
10166 | + for ac_prog in cl.exe | |
10167 | +do | |
10168 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10169 | +set dummy $ac_prog; ac_word=$2 | |
10170 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10171 | +$as_echo_n "checking for $ac_word... " >&6; } | |
10172 | +if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
10173 | + $as_echo_n "(cached) " >&6 | |
10174 | else | |
10175 | - ac_executable_p="test -f" | |
10176 | -fi | |
10177 | -rm -f conf$$.file | |
10178 | - | |
10179 | -# Extract the first word of "xgettext", so it can be a program name with args. | |
10180 | -set dummy xgettext; ac_word=$2 | |
10181 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10182 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10183 | -if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
10184 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10185 | + if test -n "$ac_ct_CC"; then | |
10186 | + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10187 | else | |
10188 | - case "$XGETTEXT" in | |
10189 | - [\\/]* | ?:[\\/]*) | |
10190 | - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
10191 | - ;; | |
10192 | - *) | |
10193 | - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
10194 | - for ac_dir in $PATH; do | |
10195 | - IFS="$ac_save_IFS" | |
10196 | - test -z "$ac_dir" && ac_dir=. | |
10197 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
10198 | - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
10199 | - echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
10200 | - if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && | |
10201 | - (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
10202 | - ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
10203 | - break 2 | |
10204 | - fi | |
10205 | - fi | |
10206 | - done | |
10207 | - done | |
10208 | - IFS="$ac_save_IFS" | |
10209 | - test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
10210 | - ;; | |
10211 | -esac | |
10212 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10213 | +for as_dir in $PATH | |
10214 | +do | |
10215 | + IFS=$as_save_IFS | |
10216 | + test -z "$as_dir" && as_dir=. | |
10217 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
10218 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10219 | + ac_cv_prog_ac_ct_CC="$ac_prog" | |
10220 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10221 | + break 2 | |
10222 | + fi | |
10223 | +done | |
10224 | + done | |
10225 | +IFS=$as_save_IFS | |
10226 | + | |
10227 | fi | |
10228 | -XGETTEXT="$ac_cv_path_XGETTEXT" | |
10229 | -if test "$XGETTEXT" != ":"; then | |
10230 | - echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
10231 | -echo "${ECHO_T}$XGETTEXT" >&6 | |
10232 | +fi | |
10233 | +ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10234 | +if test -n "$ac_ct_CC"; then | |
10235 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
10236 | +$as_echo "$ac_ct_CC" >&6; } | |
10237 | else | |
10238 | - echo "$as_me:$LINENO: result: no" >&5 | |
10239 | -echo "${ECHO_T}no" >&6 | |
10240 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10241 | +$as_echo "no" >&6; } | |
10242 | fi | |
10243 | ||
10244 | - rm -f messages.po | |
10245 | ||
10246 | + test -n "$ac_ct_CC" && break | |
10247 | +done | |
10248 | ||
10249 | -# Prepare PATH_SEPARATOR. | |
10250 | -# The user is always right. | |
10251 | -if test "${PATH_SEPARATOR+set}" != set; then | |
10252 | - echo "#! /bin/sh" >conf$$.sh | |
10253 | - echo "exit 0" >>conf$$.sh | |
10254 | - chmod +x conf$$.sh | |
10255 | - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10256 | - PATH_SEPARATOR=';' | |
10257 | + if test "x$ac_ct_CC" = x; then | |
10258 | + CC="" | |
10259 | else | |
10260 | - PATH_SEPARATOR=: | |
10261 | + case $cross_compiling:$ac_tool_warned in | |
10262 | +yes:) | |
10263 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10264 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10265 | +ac_tool_warned=yes ;; | |
10266 | +esac | |
10267 | + CC=$ac_ct_CC | |
10268 | fi | |
10269 | - rm -f conf$$.sh | |
10270 | -fi | |
10271 | - | |
10272 | -# Find out how to test for executable files. Don't use a zero-byte file, | |
10273 | -# as systems may use methods other than mode bits to determine executability. | |
10274 | -cat >conf$$.file <<_ASEOF | |
10275 | -#! /bin/sh | |
10276 | -exit 0 | |
10277 | -_ASEOF | |
10278 | -chmod +x conf$$.file | |
10279 | -if test -x conf$$.file >/dev/null 2>&1; then | |
10280 | - ac_executable_p="test -x" | |
10281 | -else | |
10282 | - ac_executable_p="test -f" | |
10283 | fi | |
10284 | -rm -f conf$$.file | |
10285 | ||
10286 | -# Extract the first word of "msgmerge", so it can be a program name with args. | |
10287 | -set dummy msgmerge; ac_word=$2 | |
10288 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10289 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10290 | -if test "${ac_cv_path_MSGMERGE+set}" = set; then | |
10291 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10292 | -else | |
10293 | - case "$MSGMERGE" in | |
10294 | - [\\/]* | ?:[\\/]*) | |
10295 | - ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
10296 | - ;; | |
10297 | - *) | |
10298 | - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
10299 | - for ac_dir in $PATH; do | |
10300 | - IFS="$ac_save_IFS" | |
10301 | - test -z "$ac_dir" && ac_dir=. | |
10302 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
10303 | - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
10304 | - echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
10305 | - if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then | |
10306 | - ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
10307 | - break 2 | |
10308 | - fi | |
10309 | - fi | |
10310 | - done | |
10311 | - done | |
10312 | - IFS="$ac_save_IFS" | |
10313 | - test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
10314 | - ;; | |
10315 | -esac | |
10316 | -fi | |
10317 | -MSGMERGE="$ac_cv_path_MSGMERGE" | |
10318 | -if test "$MSGMERGE" != ":"; then | |
10319 | - echo "$as_me:$LINENO: result: $MSGMERGE" >&5 | |
10320 | -echo "${ECHO_T}$MSGMERGE" >&6 | |
10321 | -else | |
10322 | - echo "$as_me:$LINENO: result: no" >&5 | |
10323 | -echo "${ECHO_T}no" >&6 | |
10324 | fi | |
10325 | ||
10326 | ||
10327 | - if test "$GMSGFMT" != ":"; then | |
10328 | - if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
10329 | - (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
10330 | - : ; | |
10331 | - else | |
10332 | - GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
10333 | - echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
10334 | -echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 | |
10335 | - GMSGFMT=":" | |
10336 | - fi | |
10337 | - fi | |
10338 | +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
10339 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
10340 | +as_fn_error $? "no acceptable C compiler found in \$PATH | |
10341 | +See \`config.log' for more details" "$LINENO" 5; } | |
10342 | ||
10343 | - if test "$XGETTEXT" != ":"; then | |
10344 | - if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
10345 | - (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
10346 | - : ; | |
10347 | - else | |
10348 | - echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
10349 | -echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | |
10350 | - XGETTEXT=":" | |
10351 | - fi | |
10352 | - rm -f messages.po | |
10353 | +# Provide some information about the compiler. | |
10354 | +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
10355 | +set X $ac_compile | |
10356 | +ac_compiler=$2 | |
10357 | +for ac_option in --version -v -V -qversion; do | |
10358 | + { { ac_try="$ac_compiler $ac_option >&5" | |
10359 | +case "(($ac_try" in | |
10360 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10361 | + *) ac_try_echo=$ac_try;; | |
10362 | +esac | |
10363 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
10364 | +$as_echo "$ac_try_echo"; } >&5 | |
10365 | + (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
10366 | + ac_status=$? | |
10367 | + if test -s conftest.err; then | |
10368 | + sed '10a\ | |
10369 | +... rest of stderr output deleted ... | |
10370 | + 10q' conftest.err >conftest.er1 | |
10371 | + cat conftest.er1 >&5 | |
10372 | fi | |
10373 | + rm -f conftest.er1 conftest.err | |
10374 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10375 | + test $ac_status = 0; } | |
10376 | +done | |
10377 | ||
10378 | - ac_config_commands="$ac_config_commands default-1" | |
10379 | - | |
10380 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10381 | +/* end confdefs.h. */ | |
10382 | ||
10383 | -DEPDIR="${am__leading_dot}deps" | |
10384 | +int | |
10385 | +main () | |
10386 | +{ | |
10387 | ||
10388 | - ac_config_commands="$ac_config_commands depfiles" | |
10389 | - | |
10390 | - | |
10391 | -am_make=${MAKE-make} | |
10392 | -cat > confinc << 'END' | |
10393 | -am__doit: | |
10394 | - @echo done | |
10395 | -.PHONY: am__doit | |
10396 | -END | |
10397 | -# If we don't find an include directive, just comment out the code. | |
10398 | -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
10399 | -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
10400 | -am__include="#" | |
10401 | -am__quote= | |
10402 | -_am_result=none | |
10403 | -# First try GNU make style include. | |
10404 | -echo "include confinc" > confmf | |
10405 | -# We grep out `Entering directory' and `Leaving directory' | |
10406 | -# messages which can occur if `w' ends up in MAKEFLAGS. | |
10407 | -# In particular we don't look at `^make:' because GNU make might | |
10408 | -# be invoked under some other name (usually "gmake"), in which | |
10409 | -# case it prints its new name instead of `make'. | |
10410 | -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
10411 | - am__include=include | |
10412 | - am__quote= | |
10413 | - _am_result=GNU | |
10414 | -fi | |
10415 | -# Now try BSD make style include. | |
10416 | -if test "$am__include" = "#"; then | |
10417 | - echo '.include "confinc"' > confmf | |
10418 | - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
10419 | - am__include=.include | |
10420 | - am__quote="\"" | |
10421 | - _am_result=BSD | |
10422 | - fi | |
10423 | -fi | |
10424 | + ; | |
10425 | + return 0; | |
10426 | +} | |
10427 | +_ACEOF | |
10428 | +ac_clean_files_save=$ac_clean_files | |
10429 | +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
10430 | +# Try to create an executable without -o first, disregard a.out. | |
10431 | +# It will help us diagnose broken compilers, and finding out an intuition | |
10432 | +# of exeext. | |
10433 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
10434 | +$as_echo_n "checking whether the C compiler works... " >&6; } | |
10435 | +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
10436 | ||
10437 | +# The possible output files: | |
10438 | +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
10439 | ||
10440 | -echo "$as_me:$LINENO: result: $_am_result" >&5 | |
10441 | -echo "${ECHO_T}$_am_result" >&6 | |
10442 | -rm -f confinc confmf | |
10443 | +ac_rmfiles= | |
10444 | +for ac_file in $ac_files | |
10445 | +do | |
10446 | + case $ac_file in | |
10447 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
10448 | + * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
10449 | + esac | |
10450 | +done | |
10451 | +rm -f $ac_rmfiles | |
10452 | ||
10453 | -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
10454 | -if test "${enable_dependency_tracking+set}" = set; then | |
10455 | - enableval="$enable_dependency_tracking" | |
10456 | +if { { ac_try="$ac_link_default" | |
10457 | +case "(($ac_try" in | |
10458 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10459 | + *) ac_try_echo=$ac_try;; | |
10460 | +esac | |
10461 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
10462 | +$as_echo "$ac_try_echo"; } >&5 | |
10463 | + (eval "$ac_link_default") 2>&5 | |
10464 | + ac_status=$? | |
10465 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10466 | + test $ac_status = 0; }; then : | |
10467 | + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
10468 | +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
10469 | +# in a Makefile. We should not override ac_cv_exeext if it was cached, | |
10470 | +# so that the user can short-circuit this test for compilers unknown to | |
10471 | +# Autoconf. | |
10472 | +for ac_file in $ac_files '' | |
10473 | +do | |
10474 | + test -f "$ac_file" || continue | |
10475 | + case $ac_file in | |
10476 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
10477 | + ;; | |
10478 | + [ab].out ) | |
10479 | + # We found the default executable, but exeext='' is most | |
10480 | + # certainly right. | |
10481 | + break;; | |
10482 | + *.* ) | |
10483 | + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
10484 | + then :; else | |
10485 | + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10486 | + fi | |
10487 | + # We set ac_cv_exeext here because the later test for it is not | |
10488 | + # safe: cross compilers may not add the suffix if given an `-o' | |
10489 | + # argument, so we may need to know it at that point already. | |
10490 | + # Even if this section looks crufty: it has the advantage of | |
10491 | + # actually working. | |
10492 | + break;; | |
10493 | + * ) | |
10494 | + break;; | |
10495 | + esac | |
10496 | +done | |
10497 | +test "$ac_cv_exeext" = no && ac_cv_exeext= | |
10498 | ||
10499 | -fi; | |
10500 | -if test "x$enable_dependency_tracking" != xno; then | |
10501 | - am_depcomp="$ac_aux_dir/depcomp" | |
10502 | - AMDEPBACKSLASH='\' | |
10503 | +else | |
10504 | + ac_file='' | |
10505 | fi | |
10506 | +if test -z "$ac_file"; then : | |
10507 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10508 | +$as_echo "no" >&6; } | |
10509 | +$as_echo "$as_me: failed program was:" >&5 | |
10510 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
10511 | ||
10512 | - | |
10513 | -if test "x$enable_dependency_tracking" != xno; then | |
10514 | - AMDEP_TRUE= | |
10515 | - AMDEP_FALSE='#' | |
10516 | +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
10517 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
10518 | +as_fn_error 77 "C compiler cannot create executables | |
10519 | +See \`config.log' for more details" "$LINENO" 5; } | |
10520 | else | |
10521 | - AMDEP_TRUE='#' | |
10522 | - AMDEP_FALSE= | |
10523 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10524 | +$as_echo "yes" >&6; } | |
10525 | fi | |
10526 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
10527 | +$as_echo_n "checking for C compiler default output file name... " >&6; } | |
10528 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
10529 | +$as_echo "$ac_file" >&6; } | |
10530 | +ac_exeext=$ac_cv_exeext | |
10531 | ||
10532 | +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
10533 | +ac_clean_files=$ac_clean_files_save | |
10534 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
10535 | +$as_echo_n "checking for suffix of executables... " >&6; } | |
10536 | +if { { ac_try="$ac_link" | |
10537 | +case "(($ac_try" in | |
10538 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10539 | + *) ac_try_echo=$ac_try;; | |
10540 | +esac | |
10541 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
10542 | +$as_echo "$ac_try_echo"; } >&5 | |
10543 | + (eval "$ac_link") 2>&5 | |
10544 | + ac_status=$? | |
10545 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10546 | + test $ac_status = 0; }; then : | |
10547 | + # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10548 | +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10549 | +# work properly (i.e., refer to `conftest.exe'), while it won't with | |
10550 | +# `rm'. | |
10551 | +for ac_file in conftest.exe conftest conftest.*; do | |
10552 | + test -f "$ac_file" || continue | |
10553 | + case $ac_file in | |
10554 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
10555 | + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10556 | + break;; | |
10557 | + * ) break;; | |
10558 | + esac | |
10559 | +done | |
10560 | +else | |
10561 | + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
10562 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
10563 | +as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
10564 | +See \`config.log' for more details" "$LINENO" 5; } | |
10565 | +fi | |
10566 | +rm -f conftest conftest$ac_cv_exeext | |
10567 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
10568 | +$as_echo "$ac_cv_exeext" >&6; } | |
10569 | ||
10570 | +rm -f conftest.$ac_ext | |
10571 | +EXEEXT=$ac_cv_exeext | |
10572 | +ac_exeext=$EXEEXT | |
10573 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10574 | +/* end confdefs.h. */ | |
10575 | +#include <stdio.h> | |
10576 | +int | |
10577 | +main () | |
10578 | +{ | |
10579 | +FILE *f = fopen ("conftest.out", "w"); | |
10580 | + return ferror (f) || fclose (f) != 0; | |
10581 | ||
10582 | -ac_ext=c | |
10583 | -ac_cpp='$CPP $CPPFLAGS' | |
10584 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10585 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10586 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10587 | -if test -n "$ac_tool_prefix"; then | |
10588 | - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10589 | -set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10590 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10591 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10592 | -if test "${ac_cv_prog_CC+set}" = set; then | |
10593 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10594 | -else | |
10595 | - if test -n "$CC"; then | |
10596 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
10597 | -else | |
10598 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10599 | -for as_dir in $PATH | |
10600 | -do | |
10601 | - IFS=$as_save_IFS | |
10602 | - test -z "$as_dir" && as_dir=. | |
10603 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
10604 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10605 | - ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10606 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10607 | - break 2 | |
10608 | + ; | |
10609 | + return 0; | |
10610 | +} | |
10611 | +_ACEOF | |
10612 | +ac_clean_files="$ac_clean_files conftest.out" | |
10613 | +# Check that the compiler produces executables we can run. If not, either | |
10614 | +# the compiler is broken, or we cross compile. | |
10615 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
10616 | +$as_echo_n "checking whether we are cross compiling... " >&6; } | |
10617 | +if test "$cross_compiling" != yes; then | |
10618 | + { { ac_try="$ac_link" | |
10619 | +case "(($ac_try" in | |
10620 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10621 | + *) ac_try_echo=$ac_try;; | |
10622 | +esac | |
10623 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
10624 | +$as_echo "$ac_try_echo"; } >&5 | |
10625 | + (eval "$ac_link") 2>&5 | |
10626 | + ac_status=$? | |
10627 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10628 | + test $ac_status = 0; } | |
10629 | + if { ac_try='./conftest$ac_cv_exeext' | |
10630 | + { { case "(($ac_try" in | |
10631 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10632 | + *) ac_try_echo=$ac_try;; | |
10633 | +esac | |
10634 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
10635 | +$as_echo "$ac_try_echo"; } >&5 | |
10636 | + (eval "$ac_try") 2>&5 | |
10637 | + ac_status=$? | |
10638 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10639 | + test $ac_status = 0; }; }; then | |
10640 | + cross_compiling=no | |
10641 | + else | |
10642 | + if test "$cross_compiling" = maybe; then | |
10643 | + cross_compiling=yes | |
10644 | + else | |
10645 | + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
10646 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
10647 | +as_fn_error $? "cannot run C compiled programs. | |
10648 | +If you meant to cross compile, use \`--host'. | |
10649 | +See \`config.log' for more details" "$LINENO" 5; } | |
10650 | + fi | |
10651 | fi | |
10652 | -done | |
10653 | -done | |
10654 | - | |
10655 | -fi | |
10656 | -fi | |
10657 | -CC=$ac_cv_prog_CC | |
10658 | -if test -n "$CC"; then | |
10659 | - echo "$as_me:$LINENO: result: $CC" >&5 | |
10660 | -echo "${ECHO_T}$CC" >&6 | |
10661 | -else | |
10662 | - echo "$as_me:$LINENO: result: no" >&5 | |
10663 | -echo "${ECHO_T}no" >&6 | |
10664 | fi | |
10665 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
10666 | +$as_echo "$cross_compiling" >&6; } | |
10667 | ||
10668 | -fi | |
10669 | -if test -z "$ac_cv_prog_CC"; then | |
10670 | - ac_ct_CC=$CC | |
10671 | - # Extract the first word of "gcc", so it can be a program name with args. | |
10672 | -set dummy gcc; ac_word=$2 | |
10673 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10674 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10675 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10676 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10677 | -else | |
10678 | - if test -n "$ac_ct_CC"; then | |
10679 | - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10680 | +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
10681 | +ac_clean_files=$ac_clean_files_save | |
10682 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
10683 | +$as_echo_n "checking for suffix of object files... " >&6; } | |
10684 | +if ${ac_cv_objext+:} false; then : | |
10685 | + $as_echo_n "(cached) " >&6 | |
10686 | else | |
10687 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10688 | -for as_dir in $PATH | |
10689 | -do | |
10690 | - IFS=$as_save_IFS | |
10691 | - test -z "$as_dir" && as_dir=. | |
10692 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
10693 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10694 | - ac_cv_prog_ac_ct_CC="gcc" | |
10695 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10696 | - break 2 | |
10697 | - fi | |
10698 | -done | |
10699 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10700 | +/* end confdefs.h. */ | |
10701 | + | |
10702 | +int | |
10703 | +main () | |
10704 | +{ | |
10705 | + | |
10706 | + ; | |
10707 | + return 0; | |
10708 | +} | |
10709 | +_ACEOF | |
10710 | +rm -f conftest.o conftest.obj | |
10711 | +if { { ac_try="$ac_compile" | |
10712 | +case "(($ac_try" in | |
10713 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10714 | + *) ac_try_echo=$ac_try;; | |
10715 | +esac | |
10716 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
10717 | +$as_echo "$ac_try_echo"; } >&5 | |
10718 | + (eval "$ac_compile") 2>&5 | |
10719 | + ac_status=$? | |
10720 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10721 | + test $ac_status = 0; }; then : | |
10722 | + for ac_file in conftest.o conftest.obj conftest.*; do | |
10723 | + test -f "$ac_file" || continue; | |
10724 | + case $ac_file in | |
10725 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
10726 | + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10727 | + break;; | |
10728 | + esac | |
10729 | done | |
10730 | +else | |
10731 | + $as_echo "$as_me: failed program was:" >&5 | |
10732 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
10733 | ||
10734 | +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
10735 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
10736 | +as_fn_error $? "cannot compute suffix of object files: cannot compile | |
10737 | +See \`config.log' for more details" "$LINENO" 5; } | |
10738 | fi | |
10739 | +rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10740 | fi | |
10741 | -ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10742 | -if test -n "$ac_ct_CC"; then | |
10743 | - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10744 | -echo "${ECHO_T}$ac_ct_CC" >&6 | |
10745 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
10746 | +$as_echo "$ac_cv_objext" >&6; } | |
10747 | +OBJEXT=$ac_cv_objext | |
10748 | +ac_objext=$OBJEXT | |
10749 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
10750 | +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
10751 | +if ${ac_cv_c_compiler_gnu+:} false; then : | |
10752 | + $as_echo_n "(cached) " >&6 | |
10753 | else | |
10754 | - echo "$as_me:$LINENO: result: no" >&5 | |
10755 | -echo "${ECHO_T}no" >&6 | |
10756 | -fi | |
10757 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10758 | +/* end confdefs.h. */ | |
10759 | ||
10760 | - CC=$ac_ct_CC | |
10761 | -else | |
10762 | - CC="$ac_cv_prog_CC" | |
10763 | -fi | |
10764 | +int | |
10765 | +main () | |
10766 | +{ | |
10767 | +#ifndef __GNUC__ | |
10768 | + choke me | |
10769 | +#endif | |
10770 | ||
10771 | -if test -z "$CC"; then | |
10772 | - if test -n "$ac_tool_prefix"; then | |
10773 | - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10774 | -set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10775 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10776 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10777 | -if test "${ac_cv_prog_CC+set}" = set; then | |
10778 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10779 | -else | |
10780 | - if test -n "$CC"; then | |
10781 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
10782 | + ; | |
10783 | + return 0; | |
10784 | +} | |
10785 | +_ACEOF | |
10786 | +if ac_fn_c_try_compile "$LINENO"; then : | |
10787 | + ac_compiler_gnu=yes | |
10788 | else | |
10789 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10790 | -for as_dir in $PATH | |
10791 | -do | |
10792 | - IFS=$as_save_IFS | |
10793 | - test -z "$as_dir" && as_dir=. | |
10794 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
10795 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10796 | - ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10797 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10798 | - break 2 | |
10799 | - fi | |
10800 | -done | |
10801 | -done | |
10802 | - | |
10803 | + ac_compiler_gnu=no | |
10804 | fi | |
10805 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10806 | +ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
10807 | + | |
10808 | fi | |
10809 | -CC=$ac_cv_prog_CC | |
10810 | -if test -n "$CC"; then | |
10811 | - echo "$as_me:$LINENO: result: $CC" >&5 | |
10812 | -echo "${ECHO_T}$CC" >&6 | |
10813 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
10814 | +$as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
10815 | +if test $ac_compiler_gnu = yes; then | |
10816 | + GCC=yes | |
10817 | else | |
10818 | - echo "$as_me:$LINENO: result: no" >&5 | |
10819 | -echo "${ECHO_T}no" >&6 | |
10820 | + GCC= | |
10821 | fi | |
10822 | +ac_test_CFLAGS=${CFLAGS+set} | |
10823 | +ac_save_CFLAGS=$CFLAGS | |
10824 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
10825 | +$as_echo_n "checking whether $CC accepts -g... " >&6; } | |
10826 | +if ${ac_cv_prog_cc_g+:} false; then : | |
10827 | + $as_echo_n "(cached) " >&6 | |
10828 | +else | |
10829 | + ac_save_c_werror_flag=$ac_c_werror_flag | |
10830 | + ac_c_werror_flag=yes | |
10831 | + ac_cv_prog_cc_g=no | |
10832 | + CFLAGS="-g" | |
10833 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10834 | +/* end confdefs.h. */ | |
10835 | ||
10836 | -fi | |
10837 | -if test -z "$ac_cv_prog_CC"; then | |
10838 | - ac_ct_CC=$CC | |
10839 | - # Extract the first word of "cc", so it can be a program name with args. | |
10840 | -set dummy cc; ac_word=$2 | |
10841 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10842 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10843 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10844 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10845 | +int | |
10846 | +main () | |
10847 | +{ | |
10848 | + | |
10849 | + ; | |
10850 | + return 0; | |
10851 | +} | |
10852 | +_ACEOF | |
10853 | +if ac_fn_c_try_compile "$LINENO"; then : | |
10854 | + ac_cv_prog_cc_g=yes | |
10855 | else | |
10856 | - if test -n "$ac_ct_CC"; then | |
10857 | - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10858 | + CFLAGS="" | |
10859 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10860 | +/* end confdefs.h. */ | |
10861 | + | |
10862 | +int | |
10863 | +main () | |
10864 | +{ | |
10865 | + | |
10866 | + ; | |
10867 | + return 0; | |
10868 | +} | |
10869 | +_ACEOF | |
10870 | +if ac_fn_c_try_compile "$LINENO"; then : | |
10871 | + | |
10872 | else | |
10873 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10874 | -for as_dir in $PATH | |
10875 | -do | |
10876 | - IFS=$as_save_IFS | |
10877 | - test -z "$as_dir" && as_dir=. | |
10878 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
10879 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10880 | - ac_cv_prog_ac_ct_CC="cc" | |
10881 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10882 | - break 2 | |
10883 | - fi | |
10884 | -done | |
10885 | -done | |
10886 | + ac_c_werror_flag=$ac_save_c_werror_flag | |
10887 | + CFLAGS="-g" | |
10888 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10889 | +/* end confdefs.h. */ | |
10890 | + | |
10891 | +int | |
10892 | +main () | |
10893 | +{ | |
10894 | ||
10895 | + ; | |
10896 | + return 0; | |
10897 | +} | |
10898 | +_ACEOF | |
10899 | +if ac_fn_c_try_compile "$LINENO"; then : | |
10900 | + ac_cv_prog_cc_g=yes | |
10901 | fi | |
10902 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10903 | fi | |
10904 | -ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10905 | -if test -n "$ac_ct_CC"; then | |
10906 | - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10907 | -echo "${ECHO_T}$ac_ct_CC" >&6 | |
10908 | -else | |
10909 | - echo "$as_me:$LINENO: result: no" >&5 | |
10910 | -echo "${ECHO_T}no" >&6 | |
10911 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10912 | fi | |
10913 | - | |
10914 | - CC=$ac_ct_CC | |
10915 | -else | |
10916 | - CC="$ac_cv_prog_CC" | |
10917 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10918 | + ac_c_werror_flag=$ac_save_c_werror_flag | |
10919 | fi | |
10920 | - | |
10921 | -fi | |
10922 | -if test -z "$CC"; then | |
10923 | - # Extract the first word of "cc", so it can be a program name with args. | |
10924 | -set dummy cc; ac_word=$2 | |
10925 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10926 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10927 | -if test "${ac_cv_prog_CC+set}" = set; then | |
10928 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10929 | -else | |
10930 | - if test -n "$CC"; then | |
10931 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
10932 | -else | |
10933 | - ac_prog_rejected=no | |
10934 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10935 | -for as_dir in $PATH | |
10936 | -do | |
10937 | - IFS=$as_save_IFS | |
10938 | - test -z "$as_dir" && as_dir=. | |
10939 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
10940 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10941 | - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10942 | - ac_prog_rejected=yes | |
10943 | - continue | |
10944 | - fi | |
10945 | - ac_cv_prog_CC="cc" | |
10946 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10947 | - break 2 | |
10948 | - fi | |
10949 | -done | |
10950 | -done | |
10951 | - | |
10952 | -if test $ac_prog_rejected = yes; then | |
10953 | - # We found a bogon in the path, so make sure we never use it. | |
10954 | - set dummy $ac_cv_prog_CC | |
10955 | - shift | |
10956 | - if test $# != 0; then | |
10957 | - # We chose a different compiler from the bogus one. | |
10958 | - # However, it has the same basename, so the bogon will be chosen | |
10959 | - # first if we set CC to just the basename; use the full file name. | |
10960 | - shift | |
10961 | - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10962 | - fi | |
10963 | -fi | |
10964 | -fi | |
10965 | -fi | |
10966 | -CC=$ac_cv_prog_CC | |
10967 | -if test -n "$CC"; then | |
10968 | - echo "$as_me:$LINENO: result: $CC" >&5 | |
10969 | -echo "${ECHO_T}$CC" >&6 | |
10970 | -else | |
10971 | - echo "$as_me:$LINENO: result: no" >&5 | |
10972 | -echo "${ECHO_T}no" >&6 | |
10973 | -fi | |
10974 | - | |
10975 | -fi | |
10976 | -if test -z "$CC"; then | |
10977 | - if test -n "$ac_tool_prefix"; then | |
10978 | - for ac_prog in cl | |
10979 | - do | |
10980 | - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10981 | -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10982 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10983 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10984 | -if test "${ac_cv_prog_CC+set}" = set; then | |
10985 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10986 | -else | |
10987 | - if test -n "$CC"; then | |
10988 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
10989 | -else | |
10990 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10991 | -for as_dir in $PATH | |
10992 | -do | |
10993 | - IFS=$as_save_IFS | |
10994 | - test -z "$as_dir" && as_dir=. | |
10995 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
10996 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10997 | - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10998 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10999 | - break 2 | |
11000 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
11001 | +$as_echo "$ac_cv_prog_cc_g" >&6; } | |
11002 | +if test "$ac_test_CFLAGS" = set; then | |
11003 | + CFLAGS=$ac_save_CFLAGS | |
11004 | +elif test $ac_cv_prog_cc_g = yes; then | |
11005 | + if test "$GCC" = yes; then | |
11006 | + CFLAGS="-g -O2" | |
11007 | + else | |
11008 | + CFLAGS="-g" | |
11009 | fi | |
11010 | -done | |
11011 | -done | |
11012 | - | |
11013 | -fi | |
11014 | -fi | |
11015 | -CC=$ac_cv_prog_CC | |
11016 | -if test -n "$CC"; then | |
11017 | - echo "$as_me:$LINENO: result: $CC" >&5 | |
11018 | -echo "${ECHO_T}$CC" >&6 | |
11019 | -else | |
11020 | - echo "$as_me:$LINENO: result: no" >&5 | |
11021 | -echo "${ECHO_T}no" >&6 | |
11022 | -fi | |
11023 | - | |
11024 | - test -n "$CC" && break | |
11025 | - done | |
11026 | -fi | |
11027 | -if test -z "$CC"; then | |
11028 | - ac_ct_CC=$CC | |
11029 | - for ac_prog in cl | |
11030 | -do | |
11031 | - # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11032 | -set dummy $ac_prog; ac_word=$2 | |
11033 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11034 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11035 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11036 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11037 | -else | |
11038 | - if test -n "$ac_ct_CC"; then | |
11039 | - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11040 | else | |
11041 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11042 | -for as_dir in $PATH | |
11043 | -do | |
11044 | - IFS=$as_save_IFS | |
11045 | - test -z "$as_dir" && as_dir=. | |
11046 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
11047 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11048 | - ac_cv_prog_ac_ct_CC="$ac_prog" | |
11049 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11050 | - break 2 | |
11051 | + if test "$GCC" = yes; then | |
11052 | + CFLAGS="-O2" | |
11053 | + else | |
11054 | + CFLAGS= | |
11055 | fi | |
11056 | -done | |
11057 | -done | |
11058 | - | |
11059 | -fi | |
11060 | fi | |
11061 | -ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11062 | -if test -n "$ac_ct_CC"; then | |
11063 | - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11064 | -echo "${ECHO_T}$ac_ct_CC" >&6 | |
11065 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
11066 | +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
11067 | +if ${ac_cv_prog_cc_c89+:} false; then : | |
11068 | + $as_echo_n "(cached) " >&6 | |
11069 | else | |
11070 | - echo "$as_me:$LINENO: result: no" >&5 | |
11071 | -echo "${ECHO_T}no" >&6 | |
11072 | -fi | |
11073 | - | |
11074 | - test -n "$ac_ct_CC" && break | |
11075 | -done | |
11076 | - | |
11077 | - CC=$ac_ct_CC | |
11078 | -fi | |
11079 | - | |
11080 | -fi | |
11081 | - | |
11082 | - | |
11083 | -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11084 | -See \`config.log' for more details." >&5 | |
11085 | -echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11086 | -See \`config.log' for more details." >&2;} | |
11087 | - { (exit 1); exit 1; }; } | |
11088 | + ac_cv_prog_cc_c89=no | |
11089 | +ac_save_CC=$CC | |
11090 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11091 | +/* end confdefs.h. */ | |
11092 | +#include <stdarg.h> | |
11093 | +#include <stdio.h> | |
11094 | +struct stat; | |
11095 | +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11096 | +struct buf { int x; }; | |
11097 | +FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11098 | +static char *e (p, i) | |
11099 | + char **p; | |
11100 | + int i; | |
11101 | +{ | |
11102 | + return p[i]; | |
11103 | +} | |
11104 | +static char *f (char * (*g) (char **, int), char **p, ...) | |
11105 | +{ | |
11106 | + char *s; | |
11107 | + va_list v; | |
11108 | + va_start (v,p); | |
11109 | + s = g (p, va_arg (v,int)); | |
11110 | + va_end (v); | |
11111 | + return s; | |
11112 | +} | |
11113 | ||
11114 | -# Provide some information about the compiler. | |
11115 | -echo "$as_me:$LINENO:" \ | |
11116 | - "checking for C compiler version" >&5 | |
11117 | -ac_compiler=`set X $ac_compile; echo $2` | |
11118 | -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11119 | - (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11120 | - ac_status=$? | |
11121 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11122 | - (exit $ac_status); } | |
11123 | -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11124 | - (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11125 | - ac_status=$? | |
11126 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11127 | - (exit $ac_status); } | |
11128 | -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11129 | - (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11130 | - ac_status=$? | |
11131 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11132 | - (exit $ac_status); } | |
11133 | +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11134 | + function prototypes and stuff, but not '\xHH' hex character constants. | |
11135 | + These don't provoke an error unfortunately, instead are silently treated | |
11136 | + as 'x'. The following induces an error, until -std is added to get | |
11137 | + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11138 | + array size at least. It's necessary to write '\x00'==0 to get something | |
11139 | + that's true only with -std. */ | |
11140 | +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11141 | ||
11142 | -cat >conftest.$ac_ext <<_ACEOF | |
11143 | -/* confdefs.h. */ | |
11144 | -_ACEOF | |
11145 | -cat confdefs.h >>conftest.$ac_ext | |
11146 | -cat >>conftest.$ac_ext <<_ACEOF | |
11147 | -/* end confdefs.h. */ | |
11148 | +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
11149 | + inside strings and character constants. */ | |
11150 | +#define FOO(x) 'x' | |
11151 | +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
11152 | ||
11153 | +int test (int i, double x); | |
11154 | +struct s1 {int (*f) (int a);}; | |
11155 | +struct s2 {int (*f) (double a);}; | |
11156 | +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11157 | +int argc; | |
11158 | +char **argv; | |
11159 | int | |
11160 | main () | |
11161 | { | |
11162 | - | |
11163 | +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11164 | ; | |
11165 | return 0; | |
11166 | } | |
11167 | _ACEOF | |
11168 | -ac_clean_files_save=$ac_clean_files | |
11169 | -ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11170 | -# Try to create an executable without -o first, disregard a.out. | |
11171 | -# It will help us diagnose broken compilers, and finding out an intuition | |
11172 | -# of exeext. | |
11173 | -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
11174 | -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
11175 | -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
11176 | -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11177 | - (eval $ac_link_default) 2>&5 | |
11178 | - ac_status=$? | |
11179 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11180 | - (exit $ac_status); }; then | |
11181 | - # Find the output, starting from the most likely. This scheme is | |
11182 | -# not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11183 | -# resort. | |
11184 | - | |
11185 | -# Be careful to initialize this variable, since it used to be cached. | |
11186 | -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11187 | -ac_cv_exeext= | |
11188 | -# b.out is created by i960 compilers. | |
11189 | -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11190 | +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
11191 | + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11192 | do | |
11193 | - test -f "$ac_file" || continue | |
11194 | - case $ac_file in | |
11195 | - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
11196 | - ;; | |
11197 | - conftest.$ac_ext ) | |
11198 | - # This is the source file. | |
11199 | - ;; | |
11200 | - [ab].out ) | |
11201 | - # We found the default executable, but exeext='' is most | |
11202 | - # certainly right. | |
11203 | - break;; | |
11204 | - *.* ) | |
11205 | - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
11206 | - # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11207 | - # but it would be cool to find out if it's true. Does anybody | |
11208 | - # maintain Libtool? --akim. | |
11209 | - export ac_cv_exeext | |
11210 | - break;; | |
11211 | - * ) | |
11212 | - break;; | |
11213 | - esac | |
11214 | + CC="$ac_save_CC $ac_arg" | |
11215 | + if ac_fn_c_try_compile "$LINENO"; then : | |
11216 | + ac_cv_prog_cc_c89=$ac_arg | |
11217 | +fi | |
11218 | +rm -f core conftest.err conftest.$ac_objext | |
11219 | + test "x$ac_cv_prog_cc_c89" != "xno" && break | |
11220 | done | |
11221 | -else | |
11222 | - echo "$as_me: failed program was:" >&5 | |
11223 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
11224 | +rm -f conftest.$ac_ext | |
11225 | +CC=$ac_save_CC | |
11226 | ||
11227 | -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11228 | -See \`config.log' for more details." >&5 | |
11229 | -echo "$as_me: error: C compiler cannot create executables | |
11230 | -See \`config.log' for more details." >&2;} | |
11231 | - { (exit 77); exit 77; }; } | |
11232 | fi | |
11233 | +# AC_CACHE_VAL | |
11234 | +case "x$ac_cv_prog_cc_c89" in | |
11235 | + x) | |
11236 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
11237 | +$as_echo "none needed" >&6; } ;; | |
11238 | + xno) | |
11239 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
11240 | +$as_echo "unsupported" >&6; } ;; | |
11241 | + *) | |
11242 | + CC="$CC $ac_cv_prog_cc_c89" | |
11243 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
11244 | +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
11245 | +esac | |
11246 | +if test "x$ac_cv_prog_cc_c89" != xno; then : | |
11247 | ||
11248 | -ac_exeext=$ac_cv_exeext | |
11249 | -echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11250 | -echo "${ECHO_T}$ac_file" >&6 | |
11251 | - | |
11252 | -# Check the compiler produces executables we can run. If not, either | |
11253 | -# the compiler is broken, or we cross compile. | |
11254 | -echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11255 | -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11256 | -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11257 | -# If not cross compiling, check that we can run a simple program. | |
11258 | -if test "$cross_compiling" != yes; then | |
11259 | - if { ac_try='./$ac_file' | |
11260 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11261 | - (eval $ac_try) 2>&5 | |
11262 | - ac_status=$? | |
11263 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11264 | - (exit $ac_status); }; }; then | |
11265 | - cross_compiling=no | |
11266 | - else | |
11267 | - if test "$cross_compiling" = maybe; then | |
11268 | - cross_compiling=yes | |
11269 | - else | |
11270 | - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11271 | -If you meant to cross compile, use \`--host'. | |
11272 | -See \`config.log' for more details." >&5 | |
11273 | -echo "$as_me: error: cannot run C compiled programs. | |
11274 | -If you meant to cross compile, use \`--host'. | |
11275 | -See \`config.log' for more details." >&2;} | |
11276 | - { (exit 1); exit 1; }; } | |
11277 | - fi | |
11278 | - fi | |
11279 | fi | |
11280 | -echo "$as_me:$LINENO: result: yes" >&5 | |
11281 | -echo "${ECHO_T}yes" >&6 | |
11282 | ||
11283 | -rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11284 | -ac_clean_files=$ac_clean_files_save | |
11285 | -# Check the compiler produces executables we can run. If not, either | |
11286 | -# the compiler is broken, or we cross compile. | |
11287 | -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11288 | -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11289 | -echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11290 | -echo "${ECHO_T}$cross_compiling" >&6 | |
11291 | - | |
11292 | -echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11293 | -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11294 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11295 | - (eval $ac_link) 2>&5 | |
11296 | - ac_status=$? | |
11297 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11298 | - (exit $ac_status); }; then | |
11299 | - # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11300 | -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11301 | -# work properly (i.e., refer to `conftest.exe'), while it won't with | |
11302 | -# `rm'. | |
11303 | -for ac_file in conftest.exe conftest conftest.*; do | |
11304 | - test -f "$ac_file" || continue | |
11305 | - case $ac_file in | |
11306 | - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11307 | - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
11308 | - export ac_cv_exeext | |
11309 | - break;; | |
11310 | - * ) break;; | |
11311 | - esac | |
11312 | -done | |
11313 | -else | |
11314 | - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11315 | -See \`config.log' for more details." >&5 | |
11316 | -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11317 | -See \`config.log' for more details." >&2;} | |
11318 | - { (exit 1); exit 1; }; } | |
11319 | -fi | |
11320 | +ac_ext=c | |
11321 | +ac_cpp='$CPP $CPPFLAGS' | |
11322 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11323 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11324 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11325 | ||
11326 | -rm -f conftest$ac_cv_exeext | |
11327 | -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11328 | -echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11329 | +depcc="$CC" am_compiler_list= | |
11330 | ||
11331 | -rm -f conftest.$ac_ext | |
11332 | -EXEEXT=$ac_cv_exeext | |
11333 | -ac_exeext=$EXEEXT | |
11334 | -echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11335 | -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11336 | -if test "${ac_cv_objext+set}" = set; then | |
11337 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11338 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
11339 | +$as_echo_n "checking dependency style of $depcc... " >&6; } | |
11340 | +if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
11341 | + $as_echo_n "(cached) " >&6 | |
11342 | else | |
11343 | - cat >conftest.$ac_ext <<_ACEOF | |
11344 | -/* confdefs.h. */ | |
11345 | -_ACEOF | |
11346 | -cat confdefs.h >>conftest.$ac_ext | |
11347 | -cat >>conftest.$ac_ext <<_ACEOF | |
11348 | -/* end confdefs.h. */ | |
11349 | + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
11350 | + # We make a subdir and do the tests there. Otherwise we can end up | |
11351 | + # making bogus files that we don't know about and never remove. For | |
11352 | + # instance it was reported that on HP-UX the gcc test will end up | |
11353 | + # making a dummy file named `D' -- because `-MD' means `put the output | |
11354 | + # in D'. | |
11355 | + rm -rf conftest.dir | |
11356 | + mkdir conftest.dir | |
11357 | + # Copy depcomp to subdir because otherwise we won't find it if we're | |
11358 | + # using a relative directory. | |
11359 | + cp "$am_depcomp" conftest.dir | |
11360 | + cd conftest.dir | |
11361 | + # We will build objects and dependencies in a subdirectory because | |
11362 | + # it helps to detect inapplicable dependency modes. For instance | |
11363 | + # both Tru64's cc and ICC support -MD to output dependencies as a | |
11364 | + # side effect of compilation, but ICC will put the dependencies in | |
11365 | + # the current directory while Tru64 will put them in the object | |
11366 | + # directory. | |
11367 | + mkdir sub | |
11368 | ||
11369 | -int | |
11370 | -main () | |
11371 | -{ | |
11372 | + am_cv_CC_dependencies_compiler_type=none | |
11373 | + if test "$am_compiler_list" = ""; then | |
11374 | + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
11375 | + fi | |
11376 | + am__universal=false | |
11377 | + case " $depcc " in #( | |
11378 | + *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
11379 | + esac | |
11380 | ||
11381 | - ; | |
11382 | - return 0; | |
11383 | -} | |
11384 | -_ACEOF | |
11385 | -rm -f conftest.o conftest.obj | |
11386 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11387 | - (eval $ac_compile) 2>&5 | |
11388 | - ac_status=$? | |
11389 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11390 | - (exit $ac_status); }; then | |
11391 | - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11392 | - case $ac_file in | |
11393 | - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11394 | - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11395 | - break;; | |
11396 | - esac | |
11397 | -done | |
11398 | -else | |
11399 | - echo "$as_me: failed program was:" >&5 | |
11400 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
11401 | - | |
11402 | -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11403 | -See \`config.log' for more details." >&5 | |
11404 | -echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11405 | -See \`config.log' for more details." >&2;} | |
11406 | - { (exit 1); exit 1; }; } | |
11407 | -fi | |
11408 | - | |
11409 | -rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11410 | -fi | |
11411 | -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11412 | -echo "${ECHO_T}$ac_cv_objext" >&6 | |
11413 | -OBJEXT=$ac_cv_objext | |
11414 | -ac_objext=$OBJEXT | |
11415 | -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11416 | -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11417 | -if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11418 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11419 | -else | |
11420 | - cat >conftest.$ac_ext <<_ACEOF | |
11421 | -/* confdefs.h. */ | |
11422 | -_ACEOF | |
11423 | -cat confdefs.h >>conftest.$ac_ext | |
11424 | -cat >>conftest.$ac_ext <<_ACEOF | |
11425 | -/* end confdefs.h. */ | |
11426 | - | |
11427 | -int | |
11428 | -main () | |
11429 | -{ | |
11430 | -#ifndef __GNUC__ | |
11431 | - choke me | |
11432 | -#endif | |
11433 | - | |
11434 | - ; | |
11435 | - return 0; | |
11436 | -} | |
11437 | -_ACEOF | |
11438 | -rm -f conftest.$ac_objext | |
11439 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11440 | - (eval $ac_compile) 2>conftest.er1 | |
11441 | - ac_status=$? | |
11442 | - grep -v '^ *+' conftest.er1 >conftest.err | |
11443 | - rm -f conftest.er1 | |
11444 | - cat conftest.err >&5 | |
11445 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11446 | - (exit $ac_status); } && | |
11447 | - { ac_try='test -z "$ac_c_werror_flag" | |
11448 | - || test ! -s conftest.err' | |
11449 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11450 | - (eval $ac_try) 2>&5 | |
11451 | - ac_status=$? | |
11452 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11453 | - (exit $ac_status); }; } && | |
11454 | - { ac_try='test -s conftest.$ac_objext' | |
11455 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11456 | - (eval $ac_try) 2>&5 | |
11457 | - ac_status=$? | |
11458 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11459 | - (exit $ac_status); }; }; then | |
11460 | - ac_compiler_gnu=yes | |
11461 | -else | |
11462 | - echo "$as_me: failed program was:" >&5 | |
11463 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
11464 | - | |
11465 | -ac_compiler_gnu=no | |
11466 | -fi | |
11467 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11468 | -ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
11469 | - | |
11470 | -fi | |
11471 | -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11472 | -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11473 | -GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11474 | -ac_test_CFLAGS=${CFLAGS+set} | |
11475 | -ac_save_CFLAGS=$CFLAGS | |
11476 | -CFLAGS="-g" | |
11477 | -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
11478 | -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11479 | -if test "${ac_cv_prog_cc_g+set}" = set; then | |
11480 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11481 | -else | |
11482 | - cat >conftest.$ac_ext <<_ACEOF | |
11483 | -/* confdefs.h. */ | |
11484 | -_ACEOF | |
11485 | -cat confdefs.h >>conftest.$ac_ext | |
11486 | -cat >>conftest.$ac_ext <<_ACEOF | |
11487 | -/* end confdefs.h. */ | |
11488 | - | |
11489 | -int | |
11490 | -main () | |
11491 | -{ | |
11492 | - | |
11493 | - ; | |
11494 | - return 0; | |
11495 | -} | |
11496 | -_ACEOF | |
11497 | -rm -f conftest.$ac_objext | |
11498 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11499 | - (eval $ac_compile) 2>conftest.er1 | |
11500 | - ac_status=$? | |
11501 | - grep -v '^ *+' conftest.er1 >conftest.err | |
11502 | - rm -f conftest.er1 | |
11503 | - cat conftest.err >&5 | |
11504 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11505 | - (exit $ac_status); } && | |
11506 | - { ac_try='test -z "$ac_c_werror_flag" | |
11507 | - || test ! -s conftest.err' | |
11508 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11509 | - (eval $ac_try) 2>&5 | |
11510 | - ac_status=$? | |
11511 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11512 | - (exit $ac_status); }; } && | |
11513 | - { ac_try='test -s conftest.$ac_objext' | |
11514 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11515 | - (eval $ac_try) 2>&5 | |
11516 | - ac_status=$? | |
11517 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11518 | - (exit $ac_status); }; }; then | |
11519 | - ac_cv_prog_cc_g=yes | |
11520 | -else | |
11521 | - echo "$as_me: failed program was:" >&5 | |
11522 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
11523 | - | |
11524 | -ac_cv_prog_cc_g=no | |
11525 | -fi | |
11526 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11527 | -fi | |
11528 | -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11529 | -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11530 | -if test "$ac_test_CFLAGS" = set; then | |
11531 | - CFLAGS=$ac_save_CFLAGS | |
11532 | -elif test $ac_cv_prog_cc_g = yes; then | |
11533 | - if test "$GCC" = yes; then | |
11534 | - CFLAGS="-g -O2" | |
11535 | - else | |
11536 | - CFLAGS="-g" | |
11537 | - fi | |
11538 | -else | |
11539 | - if test "$GCC" = yes; then | |
11540 | - CFLAGS="-O2" | |
11541 | - else | |
11542 | - CFLAGS= | |
11543 | - fi | |
11544 | -fi | |
11545 | -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11546 | -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11547 | -if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11548 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11549 | -else | |
11550 | - ac_cv_prog_cc_stdc=no | |
11551 | -ac_save_CC=$CC | |
11552 | -cat >conftest.$ac_ext <<_ACEOF | |
11553 | -/* confdefs.h. */ | |
11554 | -_ACEOF | |
11555 | -cat confdefs.h >>conftest.$ac_ext | |
11556 | -cat >>conftest.$ac_ext <<_ACEOF | |
11557 | -/* end confdefs.h. */ | |
11558 | -#include <stdarg.h> | |
11559 | -#include <stdio.h> | |
11560 | -#include <sys/types.h> | |
11561 | -#include <sys/stat.h> | |
11562 | -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11563 | -struct buf { int x; }; | |
11564 | -FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11565 | -static char *e (p, i) | |
11566 | - char **p; | |
11567 | - int i; | |
11568 | -{ | |
11569 | - return p[i]; | |
11570 | -} | |
11571 | -static char *f (char * (*g) (char **, int), char **p, ...) | |
11572 | -{ | |
11573 | - char *s; | |
11574 | - va_list v; | |
11575 | - va_start (v,p); | |
11576 | - s = g (p, va_arg (v,int)); | |
11577 | - va_end (v); | |
11578 | - return s; | |
11579 | -} | |
11580 | - | |
11581 | -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11582 | - function prototypes and stuff, but not '\xHH' hex character constants. | |
11583 | - These don't provoke an error unfortunately, instead are silently treated | |
11584 | - as 'x'. The following induces an error, until -std1 is added to get | |
11585 | - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11586 | - array size at least. It's necessary to write '\x00'==0 to get something | |
11587 | - that's true only with -std1. */ | |
11588 | -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11589 | - | |
11590 | -int test (int i, double x); | |
11591 | -struct s1 {int (*f) (int a);}; | |
11592 | -struct s2 {int (*f) (double a);}; | |
11593 | -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11594 | -int argc; | |
11595 | -char **argv; | |
11596 | -int | |
11597 | -main () | |
11598 | -{ | |
11599 | -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11600 | - ; | |
11601 | - return 0; | |
11602 | -} | |
11603 | -_ACEOF | |
11604 | -# Don't try gcc -ansi; that turns off useful extensions and | |
11605 | -# breaks some systems' header files. | |
11606 | -# AIX -qlanglvl=ansi | |
11607 | -# Ultrix and OSF/1 -std1 | |
11608 | -# HP-UX 10.20 and later -Ae | |
11609 | -# HP-UX older versions -Aa -D_HPUX_SOURCE | |
11610 | -# SVR4 -Xc -D__EXTENSIONS__ | |
11611 | -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11612 | -do | |
11613 | - CC="$ac_save_CC $ac_arg" | |
11614 | - rm -f conftest.$ac_objext | |
11615 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11616 | - (eval $ac_compile) 2>conftest.er1 | |
11617 | - ac_status=$? | |
11618 | - grep -v '^ *+' conftest.er1 >conftest.err | |
11619 | - rm -f conftest.er1 | |
11620 | - cat conftest.err >&5 | |
11621 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11622 | - (exit $ac_status); } && | |
11623 | - { ac_try='test -z "$ac_c_werror_flag" | |
11624 | - || test ! -s conftest.err' | |
11625 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11626 | - (eval $ac_try) 2>&5 | |
11627 | - ac_status=$? | |
11628 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11629 | - (exit $ac_status); }; } && | |
11630 | - { ac_try='test -s conftest.$ac_objext' | |
11631 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11632 | - (eval $ac_try) 2>&5 | |
11633 | - ac_status=$? | |
11634 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11635 | - (exit $ac_status); }; }; then | |
11636 | - ac_cv_prog_cc_stdc=$ac_arg | |
11637 | -break | |
11638 | -else | |
11639 | - echo "$as_me: failed program was:" >&5 | |
11640 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
11641 | - | |
11642 | -fi | |
11643 | -rm -f conftest.err conftest.$ac_objext | |
11644 | -done | |
11645 | -rm -f conftest.$ac_ext conftest.$ac_objext | |
11646 | -CC=$ac_save_CC | |
11647 | - | |
11648 | -fi | |
11649 | - | |
11650 | -case "x$ac_cv_prog_cc_stdc" in | |
11651 | - x|xno) | |
11652 | - echo "$as_me:$LINENO: result: none needed" >&5 | |
11653 | -echo "${ECHO_T}none needed" >&6 ;; | |
11654 | - *) | |
11655 | - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11656 | -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11657 | - CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11658 | -esac | |
11659 | - | |
11660 | -# Some people use a C++ compiler to compile C. Since we use `exit', | |
11661 | -# in C++ we need to declare it. In case someone uses the same compiler | |
11662 | -# for both compiling C and C++ we need to have the C++ compiler decide | |
11663 | -# the declaration of exit, since it's the most demanding environment. | |
11664 | -cat >conftest.$ac_ext <<_ACEOF | |
11665 | -#ifndef __cplusplus | |
11666 | - choke me | |
11667 | -#endif | |
11668 | -_ACEOF | |
11669 | -rm -f conftest.$ac_objext | |
11670 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11671 | - (eval $ac_compile) 2>conftest.er1 | |
11672 | - ac_status=$? | |
11673 | - grep -v '^ *+' conftest.er1 >conftest.err | |
11674 | - rm -f conftest.er1 | |
11675 | - cat conftest.err >&5 | |
11676 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11677 | - (exit $ac_status); } && | |
11678 | - { ac_try='test -z "$ac_c_werror_flag" | |
11679 | - || test ! -s conftest.err' | |
11680 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11681 | - (eval $ac_try) 2>&5 | |
11682 | - ac_status=$? | |
11683 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11684 | - (exit $ac_status); }; } && | |
11685 | - { ac_try='test -s conftest.$ac_objext' | |
11686 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11687 | - (eval $ac_try) 2>&5 | |
11688 | - ac_status=$? | |
11689 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11690 | - (exit $ac_status); }; }; then | |
11691 | - for ac_declaration in \ | |
11692 | - '' \ | |
11693 | - 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
11694 | - 'extern "C" void std::exit (int); using std::exit;' \ | |
11695 | - 'extern "C" void exit (int) throw ();' \ | |
11696 | - 'extern "C" void exit (int);' \ | |
11697 | - 'void exit (int);' | |
11698 | -do | |
11699 | - cat >conftest.$ac_ext <<_ACEOF | |
11700 | -/* confdefs.h. */ | |
11701 | -_ACEOF | |
11702 | -cat confdefs.h >>conftest.$ac_ext | |
11703 | -cat >>conftest.$ac_ext <<_ACEOF | |
11704 | -/* end confdefs.h. */ | |
11705 | -$ac_declaration | |
11706 | -#include <stdlib.h> | |
11707 | -int | |
11708 | -main () | |
11709 | -{ | |
11710 | -exit (42); | |
11711 | - ; | |
11712 | - return 0; | |
11713 | -} | |
11714 | -_ACEOF | |
11715 | -rm -f conftest.$ac_objext | |
11716 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11717 | - (eval $ac_compile) 2>conftest.er1 | |
11718 | - ac_status=$? | |
11719 | - grep -v '^ *+' conftest.er1 >conftest.err | |
11720 | - rm -f conftest.er1 | |
11721 | - cat conftest.err >&5 | |
11722 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11723 | - (exit $ac_status); } && | |
11724 | - { ac_try='test -z "$ac_c_werror_flag" | |
11725 | - || test ! -s conftest.err' | |
11726 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11727 | - (eval $ac_try) 2>&5 | |
11728 | - ac_status=$? | |
11729 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11730 | - (exit $ac_status); }; } && | |
11731 | - { ac_try='test -s conftest.$ac_objext' | |
11732 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11733 | - (eval $ac_try) 2>&5 | |
11734 | - ac_status=$? | |
11735 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11736 | - (exit $ac_status); }; }; then | |
11737 | - : | |
11738 | -else | |
11739 | - echo "$as_me: failed program was:" >&5 | |
11740 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
11741 | - | |
11742 | -continue | |
11743 | -fi | |
11744 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11745 | - cat >conftest.$ac_ext <<_ACEOF | |
11746 | -/* confdefs.h. */ | |
11747 | -_ACEOF | |
11748 | -cat confdefs.h >>conftest.$ac_ext | |
11749 | -cat >>conftest.$ac_ext <<_ACEOF | |
11750 | -/* end confdefs.h. */ | |
11751 | -$ac_declaration | |
11752 | -int | |
11753 | -main () | |
11754 | -{ | |
11755 | -exit (42); | |
11756 | - ; | |
11757 | - return 0; | |
11758 | -} | |
11759 | -_ACEOF | |
11760 | -rm -f conftest.$ac_objext | |
11761 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11762 | - (eval $ac_compile) 2>conftest.er1 | |
11763 | - ac_status=$? | |
11764 | - grep -v '^ *+' conftest.er1 >conftest.err | |
11765 | - rm -f conftest.er1 | |
11766 | - cat conftest.err >&5 | |
11767 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11768 | - (exit $ac_status); } && | |
11769 | - { ac_try='test -z "$ac_c_werror_flag" | |
11770 | - || test ! -s conftest.err' | |
11771 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11772 | - (eval $ac_try) 2>&5 | |
11773 | - ac_status=$? | |
11774 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11775 | - (exit $ac_status); }; } && | |
11776 | - { ac_try='test -s conftest.$ac_objext' | |
11777 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11778 | - (eval $ac_try) 2>&5 | |
11779 | - ac_status=$? | |
11780 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11781 | - (exit $ac_status); }; }; then | |
11782 | - break | |
11783 | -else | |
11784 | - echo "$as_me: failed program was:" >&5 | |
11785 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
11786 | - | |
11787 | -fi | |
11788 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11789 | -done | |
11790 | -rm -f conftest* | |
11791 | -if test -n "$ac_declaration"; then | |
11792 | - echo '#ifdef __cplusplus' >>confdefs.h | |
11793 | - echo $ac_declaration >>confdefs.h | |
11794 | - echo '#endif' >>confdefs.h | |
11795 | -fi | |
11796 | - | |
11797 | -else | |
11798 | - echo "$as_me: failed program was:" >&5 | |
11799 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
11800 | - | |
11801 | -fi | |
11802 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11803 | -ac_ext=c | |
11804 | -ac_cpp='$CPP $CPPFLAGS' | |
11805 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11806 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11807 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11808 | - | |
11809 | -depcc="$CC" am_compiler_list= | |
11810 | - | |
11811 | -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
11812 | -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
11813 | -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
11814 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11815 | -else | |
11816 | - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
11817 | - # We make a subdir and do the tests there. Otherwise we can end up | |
11818 | - # making bogus files that we don't know about and never remove. For | |
11819 | - # instance it was reported that on HP-UX the gcc test will end up | |
11820 | - # making a dummy file named `D' -- because `-MD' means `put the output | |
11821 | - # in D'. | |
11822 | - mkdir conftest.dir | |
11823 | - # Copy depcomp to subdir because otherwise we won't find it if we're | |
11824 | - # using a relative directory. | |
11825 | - cp "$am_depcomp" conftest.dir | |
11826 | - cd conftest.dir | |
11827 | - # We will build objects and dependencies in a subdirectory because | |
11828 | - # it helps to detect inapplicable dependency modes. For instance | |
11829 | - # both Tru64's cc and ICC support -MD to output dependencies as a | |
11830 | - # side effect of compilation, but ICC will put the dependencies in | |
11831 | - # the current directory while Tru64 will put them in the object | |
11832 | - # directory. | |
11833 | - mkdir sub | |
11834 | - | |
11835 | - am_cv_CC_dependencies_compiler_type=none | |
11836 | - if test "$am_compiler_list" = ""; then | |
11837 | - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
11838 | - fi | |
11839 | for depmode in $am_compiler_list; do | |
11840 | # Setup a source with many dependencies, because some compilers | |
11841 | # like to wrap large dependency lists on column 80 (with \), and | |
11842 | @@ -3109,7 +3702,17 @@ | |
11843 | done | |
11844 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
11845 | ||
11846 | + # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
11847 | + # mode. It turns out that the SunPro C++ compiler does not properly | |
11848 | + # handle `-M -o', and we need to detect this. Also, some Intel | |
11849 | + # versions had trouble with output in subdirs | |
11850 | + am__obj=sub/conftest.${OBJEXT-o} | |
11851 | + am__minus_obj="-o $am__obj" | |
11852 | case $depmode in | |
11853 | + gcc) | |
11854 | + # This depmode causes a compiler race in universal mode. | |
11855 | + test "$am__universal" = false || continue | |
11856 | + ;; | |
11857 | nosideeffect) | |
11858 | # after this tag, mechanisms are not by side-effect, so they'll | |
11859 | # only be used when explicitly requested | |
11860 | @@ -3119,18 +3722,23 @@ | |
11861 | break | |
11862 | fi | |
11863 | ;; | |
11864 | + msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
11865 | + # This compiler won't grok `-c -o', but also, the minuso test has | |
11866 | + # not run yet. These depmodes are late enough in the game, and | |
11867 | + # so weak that their functioning should not be impacted. | |
11868 | + am__obj=conftest.${OBJEXT-o} | |
11869 | + am__minus_obj= | |
11870 | + ;; | |
11871 | none) break ;; | |
11872 | esac | |
11873 | - # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
11874 | - # mode. It turns out that the SunPro C++ compiler does not properly | |
11875 | - # handle `-M -o', and we need to detect this. | |
11876 | if depmode=$depmode \ | |
11877 | - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
11878 | + source=sub/conftest.c object=$am__obj \ | |
11879 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
11880 | - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
11881 | + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
11882 | >/dev/null 2>conftest.err && | |
11883 | + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
11884 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
11885 | - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
11886 | + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
11887 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
11888 | # icc doesn't choke on unknown options, it will just issue warnings | |
11889 | # or remarks (even with -Werror). So we grep stderr for any message | |
11890 | @@ -3154,13 +3762,11 @@ | |
11891 | fi | |
11892 | ||
11893 | fi | |
11894 | -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
11895 | -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
11896 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
11897 | +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
11898 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
11899 | ||
11900 | - | |
11901 | - | |
11902 | -if | |
11903 | + if | |
11904 | test "x$enable_dependency_tracking" != xno \ | |
11905 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
11906 | am__fastdepCC_TRUE= | |
11907 | @@ -3171,75 +3777,21 @@ | |
11908 | fi | |
11909 | ||
11910 | ||
11911 | -# Make sure we can run config.sub. | |
11912 | -$ac_config_sub sun4 >/dev/null 2>&1 || | |
11913 | - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
11914 | -echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
11915 | - { (exit 1); exit 1; }; } | |
11916 | - | |
11917 | -echo "$as_me:$LINENO: checking build system type" >&5 | |
11918 | -echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
11919 | -if test "${ac_cv_build+set}" = set; then | |
11920 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11921 | -else | |
11922 | - ac_cv_build_alias=$build_alias | |
11923 | -test -z "$ac_cv_build_alias" && | |
11924 | - ac_cv_build_alias=`$ac_config_guess` | |
11925 | -test -z "$ac_cv_build_alias" && | |
11926 | - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
11927 | -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
11928 | - { (exit 1); exit 1; }; } | |
11929 | -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
11930 | - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
11931 | -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
11932 | - { (exit 1); exit 1; }; } | |
11933 | - | |
11934 | -fi | |
11935 | -echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
11936 | -echo "${ECHO_T}$ac_cv_build" >&6 | |
11937 | -build=$ac_cv_build | |
11938 | -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
11939 | -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
11940 | -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
11941 | - | |
11942 | - | |
11943 | -echo "$as_me:$LINENO: checking host system type" >&5 | |
11944 | -echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
11945 | -if test "${ac_cv_host+set}" = set; then | |
11946 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11947 | -else | |
11948 | - ac_cv_host_alias=$host_alias | |
11949 | -test -z "$ac_cv_host_alias" && | |
11950 | - ac_cv_host_alias=$ac_cv_build_alias | |
11951 | -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
11952 | - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
11953 | -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
11954 | - { (exit 1); exit 1; }; } | |
11955 | - | |
11956 | -fi | |
11957 | -echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
11958 | -echo "${ECHO_T}$ac_cv_host" >&6 | |
11959 | -host=$ac_cv_host | |
11960 | -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
11961 | -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
11962 | -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
11963 | - | |
11964 | - | |
11965 | ||
11966 | ac_ext=c | |
11967 | ac_cpp='$CPP $CPPFLAGS' | |
11968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11971 | -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11972 | -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11973 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
11974 | +$as_echo_n "checking how to run the C preprocessor... " >&6; } | |
11975 | # On Suns, sometimes $CPP names a directory. | |
11976 | if test -n "$CPP" && test -d "$CPP"; then | |
11977 | CPP= | |
11978 | fi | |
11979 | if test -z "$CPP"; then | |
11980 | - if test "${ac_cv_prog_CPP+set}" = set; then | |
11981 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11982 | + if ${ac_cv_prog_CPP+:} false; then : | |
11983 | + $as_echo_n "(cached) " >&6 | |
11984 | else | |
11985 | # Double quotes because CPP needs to be expanded | |
11986 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11987 | @@ -3253,11 +3805,7 @@ | |
11988 | # <limits.h> exists even on freestanding compilers. | |
11989 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11990 | # not just through cpp. "Syntax error" is here to catch this case. | |
11991 | - cat >conftest.$ac_ext <<_ACEOF | |
11992 | -/* confdefs.h. */ | |
11993 | -_ACEOF | |
11994 | -cat confdefs.h >>conftest.$ac_ext | |
11995 | -cat >>conftest.$ac_ext <<_ACEOF | |
11996 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11997 | /* end confdefs.h. */ | |
11998 | #ifdef __STDC__ | |
11999 | # include <limits.h> | |
12000 | @@ -3266,78 +3814,34 @@ | |
12001 | #endif | |
12002 | Syntax error | |
12003 | _ACEOF | |
12004 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12005 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12006 | - ac_status=$? | |
12007 | - grep -v '^ *+' conftest.er1 >conftest.err | |
12008 | - rm -f conftest.er1 | |
12009 | - cat conftest.err >&5 | |
12010 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12011 | - (exit $ac_status); } >/dev/null; then | |
12012 | - if test -s conftest.err; then | |
12013 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
12014 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12015 | - else | |
12016 | - ac_cpp_err= | |
12017 | - fi | |
12018 | -else | |
12019 | - ac_cpp_err=yes | |
12020 | -fi | |
12021 | -if test -z "$ac_cpp_err"; then | |
12022 | - : | |
12023 | -else | |
12024 | - echo "$as_me: failed program was:" >&5 | |
12025 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
12026 | +if ac_fn_c_try_cpp "$LINENO"; then : | |
12027 | ||
12028 | +else | |
12029 | # Broken: fails on valid input. | |
12030 | continue | |
12031 | fi | |
12032 | -rm -f conftest.err conftest.$ac_ext | |
12033 | +rm -f conftest.err conftest.i conftest.$ac_ext | |
12034 | ||
12035 | - # OK, works on sane cases. Now check whether non-existent headers | |
12036 | + # OK, works on sane cases. Now check whether nonexistent headers | |
12037 | # can be detected and how. | |
12038 | - cat >conftest.$ac_ext <<_ACEOF | |
12039 | -/* confdefs.h. */ | |
12040 | -_ACEOF | |
12041 | -cat confdefs.h >>conftest.$ac_ext | |
12042 | -cat >>conftest.$ac_ext <<_ACEOF | |
12043 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12044 | /* end confdefs.h. */ | |
12045 | #include <ac_nonexistent.h> | |
12046 | _ACEOF | |
12047 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12048 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12049 | - ac_status=$? | |
12050 | - grep -v '^ *+' conftest.er1 >conftest.err | |
12051 | - rm -f conftest.er1 | |
12052 | - cat conftest.err >&5 | |
12053 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12054 | - (exit $ac_status); } >/dev/null; then | |
12055 | - if test -s conftest.err; then | |
12056 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
12057 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12058 | - else | |
12059 | - ac_cpp_err= | |
12060 | - fi | |
12061 | -else | |
12062 | - ac_cpp_err=yes | |
12063 | -fi | |
12064 | -if test -z "$ac_cpp_err"; then | |
12065 | +if ac_fn_c_try_cpp "$LINENO"; then : | |
12066 | # Broken: success on invalid input. | |
12067 | continue | |
12068 | else | |
12069 | - echo "$as_me: failed program was:" >&5 | |
12070 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
12071 | - | |
12072 | # Passes both tests. | |
12073 | ac_preproc_ok=: | |
12074 | break | |
12075 | fi | |
12076 | -rm -f conftest.err conftest.$ac_ext | |
12077 | +rm -f conftest.err conftest.i conftest.$ac_ext | |
12078 | ||
12079 | done | |
12080 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12081 | -rm -f conftest.err conftest.$ac_ext | |
12082 | -if $ac_preproc_ok; then | |
12083 | +rm -f conftest.i conftest.err conftest.$ac_ext | |
12084 | +if $ac_preproc_ok; then : | |
12085 | break | |
12086 | fi | |
12087 | ||
12088 | @@ -3349,8 +3853,8 @@ | |
12089 | else | |
12090 | ac_cv_prog_CPP=$CPP | |
12091 | fi | |
12092 | -echo "$as_me:$LINENO: result: $CPP" >&5 | |
12093 | -echo "${ECHO_T}$CPP" >&6 | |
12094 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
12095 | +$as_echo "$CPP" >&6; } | |
12096 | ac_preproc_ok=false | |
12097 | for ac_c_preproc_warn_flag in '' yes | |
12098 | do | |
12099 | @@ -3360,11 +3864,7 @@ | |
12100 | # <limits.h> exists even on freestanding compilers. | |
12101 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12102 | # not just through cpp. "Syntax error" is here to catch this case. | |
12103 | - cat >conftest.$ac_ext <<_ACEOF | |
12104 | -/* confdefs.h. */ | |
12105 | -_ACEOF | |
12106 | -cat confdefs.h >>conftest.$ac_ext | |
12107 | -cat >>conftest.$ac_ext <<_ACEOF | |
12108 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12109 | /* end confdefs.h. */ | |
12110 | #ifdef __STDC__ | |
12111 | # include <limits.h> | |
12112 | @@ -3373,85 +3873,40 @@ | |
12113 | #endif | |
12114 | Syntax error | |
12115 | _ACEOF | |
12116 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12117 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12118 | - ac_status=$? | |
12119 | - grep -v '^ *+' conftest.er1 >conftest.err | |
12120 | - rm -f conftest.er1 | |
12121 | - cat conftest.err >&5 | |
12122 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12123 | - (exit $ac_status); } >/dev/null; then | |
12124 | - if test -s conftest.err; then | |
12125 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
12126 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12127 | - else | |
12128 | - ac_cpp_err= | |
12129 | - fi | |
12130 | -else | |
12131 | - ac_cpp_err=yes | |
12132 | -fi | |
12133 | -if test -z "$ac_cpp_err"; then | |
12134 | - : | |
12135 | -else | |
12136 | - echo "$as_me: failed program was:" >&5 | |
12137 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
12138 | +if ac_fn_c_try_cpp "$LINENO"; then : | |
12139 | ||
12140 | +else | |
12141 | # Broken: fails on valid input. | |
12142 | continue | |
12143 | fi | |
12144 | -rm -f conftest.err conftest.$ac_ext | |
12145 | +rm -f conftest.err conftest.i conftest.$ac_ext | |
12146 | ||
12147 | - # OK, works on sane cases. Now check whether non-existent headers | |
12148 | + # OK, works on sane cases. Now check whether nonexistent headers | |
12149 | # can be detected and how. | |
12150 | - cat >conftest.$ac_ext <<_ACEOF | |
12151 | -/* confdefs.h. */ | |
12152 | -_ACEOF | |
12153 | -cat confdefs.h >>conftest.$ac_ext | |
12154 | -cat >>conftest.$ac_ext <<_ACEOF | |
12155 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12156 | /* end confdefs.h. */ | |
12157 | #include <ac_nonexistent.h> | |
12158 | _ACEOF | |
12159 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12160 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12161 | - ac_status=$? | |
12162 | - grep -v '^ *+' conftest.er1 >conftest.err | |
12163 | - rm -f conftest.er1 | |
12164 | - cat conftest.err >&5 | |
12165 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12166 | - (exit $ac_status); } >/dev/null; then | |
12167 | - if test -s conftest.err; then | |
12168 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
12169 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12170 | - else | |
12171 | - ac_cpp_err= | |
12172 | - fi | |
12173 | -else | |
12174 | - ac_cpp_err=yes | |
12175 | -fi | |
12176 | -if test -z "$ac_cpp_err"; then | |
12177 | +if ac_fn_c_try_cpp "$LINENO"; then : | |
12178 | # Broken: success on invalid input. | |
12179 | continue | |
12180 | else | |
12181 | - echo "$as_me: failed program was:" >&5 | |
12182 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
12183 | - | |
12184 | # Passes both tests. | |
12185 | ac_preproc_ok=: | |
12186 | break | |
12187 | fi | |
12188 | -rm -f conftest.err conftest.$ac_ext | |
12189 | +rm -f conftest.err conftest.i conftest.$ac_ext | |
12190 | ||
12191 | done | |
12192 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12193 | -rm -f conftest.err conftest.$ac_ext | |
12194 | -if $ac_preproc_ok; then | |
12195 | - : | |
12196 | +rm -f conftest.i conftest.err conftest.$ac_ext | |
12197 | +if $ac_preproc_ok; then : | |
12198 | + | |
12199 | else | |
12200 | - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
12201 | -See \`config.log' for more details." >&5 | |
12202 | -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
12203 | -See \`config.log' for more details." >&2;} | |
12204 | - { (exit 1); exit 1; }; } | |
12205 | + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12206 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12207 | +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
12208 | +See \`config.log' for more details" "$LINENO" 5; } | |
12209 | fi | |
12210 | ||
12211 | ac_ext=c | |
12212 | @@ -3461,275 +3916,142 @@ | |
12213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12214 | ||
12215 | ||
12216 | -echo "$as_me:$LINENO: checking for egrep" >&5 | |
12217 | -echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
12218 | -if test "${ac_cv_prog_egrep+set}" = set; then | |
12219 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12220 | -else | |
12221 | - if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
12222 | - then ac_cv_prog_egrep='grep -E' | |
12223 | - else ac_cv_prog_egrep='egrep' | |
12224 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
12225 | +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
12226 | +if ${ac_cv_path_GREP+:} false; then : | |
12227 | + $as_echo_n "(cached) " >&6 | |
12228 | +else | |
12229 | + if test -z "$GREP"; then | |
12230 | + ac_path_GREP_found=false | |
12231 | + # Loop through the user's path and test for each of PROGNAME-LIST | |
12232 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12233 | +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
12234 | +do | |
12235 | + IFS=$as_save_IFS | |
12236 | + test -z "$as_dir" && as_dir=. | |
12237 | + for ac_prog in grep ggrep; do | |
12238 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
12239 | + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
12240 | + as_fn_executable_p "$ac_path_GREP" || continue | |
12241 | +# Check for GNU ac_path_GREP and select it if it is found. | |
12242 | + # Check for GNU $ac_path_GREP | |
12243 | +case `"$ac_path_GREP" --version 2>&1` in | |
12244 | +*GNU*) | |
12245 | + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
12246 | +*) | |
12247 | + ac_count=0 | |
12248 | + $as_echo_n 0123456789 >"conftest.in" | |
12249 | + while : | |
12250 | + do | |
12251 | + cat "conftest.in" "conftest.in" >"conftest.tmp" | |
12252 | + mv "conftest.tmp" "conftest.in" | |
12253 | + cp "conftest.in" "conftest.nl" | |
12254 | + $as_echo 'GREP' >> "conftest.nl" | |
12255 | + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
12256 | + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
12257 | + as_fn_arith $ac_count + 1 && ac_count=$as_val | |
12258 | + if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
12259 | + # Best one so far, save it but keep looking for a better one | |
12260 | + ac_cv_path_GREP="$ac_path_GREP" | |
12261 | + ac_path_GREP_max=$ac_count | |
12262 | fi | |
12263 | -fi | |
12264 | -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
12265 | -echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
12266 | - EGREP=$ac_cv_prog_egrep | |
12267 | - | |
12268 | - | |
12269 | - | |
12270 | - echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5 | |
12271 | -echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6 | |
12272 | -if test "${ac_cv_gnu_library_2+set}" = set; then | |
12273 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12274 | -else | |
12275 | - cat >conftest.$ac_ext <<_ACEOF | |
12276 | -/* confdefs.h. */ | |
12277 | -_ACEOF | |
12278 | -cat confdefs.h >>conftest.$ac_ext | |
12279 | -cat >>conftest.$ac_ext <<_ACEOF | |
12280 | -/* end confdefs.h. */ | |
12281 | - | |
12282 | -#include <features.h> | |
12283 | -#ifdef __GNU_LIBRARY__ | |
12284 | - #if (__GLIBC__ >= 2) | |
12285 | - Lucky GNU user | |
12286 | - #endif | |
12287 | -#endif | |
12288 | + # 10*(2^10) chars as input seems more than enough | |
12289 | + test $ac_count -gt 10 && break | |
12290 | + done | |
12291 | + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
12292 | +esac | |
12293 | ||
12294 | -_ACEOF | |
12295 | -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12296 | - $EGREP "Lucky GNU user" >/dev/null 2>&1; then | |
12297 | - ac_cv_gnu_library_2=yes | |
12298 | + $ac_path_GREP_found && break 3 | |
12299 | + done | |
12300 | + done | |
12301 | + done | |
12302 | +IFS=$as_save_IFS | |
12303 | + if test -z "$ac_cv_path_GREP"; then | |
12304 | + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
12305 | + fi | |
12306 | else | |
12307 | - ac_cv_gnu_library_2=no | |
12308 | + ac_cv_path_GREP=$GREP | |
12309 | fi | |
12310 | -rm -f conftest* | |
12311 | - | |
12312 | - | |
12313 | ||
12314 | fi | |
12315 | -echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5 | |
12316 | -echo "${ECHO_T}$ac_cv_gnu_library_2" >&6 | |
12317 | - | |
12318 | - GLIBC2="$ac_cv_gnu_library_2" | |
12319 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
12320 | +$as_echo "$ac_cv_path_GREP" >&6; } | |
12321 | + GREP="$ac_cv_path_GREP" | |
12322 | ||
12323 | ||
12324 | -if test -n "$ac_tool_prefix"; then | |
12325 | - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
12326 | -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
12327 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12328 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12329 | -if test "${ac_cv_prog_RANLIB+set}" = set; then | |
12330 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12331 | -else | |
12332 | - if test -n "$RANLIB"; then | |
12333 | - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12334 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
12335 | +$as_echo_n "checking for egrep... " >&6; } | |
12336 | +if ${ac_cv_path_EGREP+:} false; then : | |
12337 | + $as_echo_n "(cached) " >&6 | |
12338 | else | |
12339 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12340 | -for as_dir in $PATH | |
12341 | + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
12342 | + then ac_cv_path_EGREP="$GREP -E" | |
12343 | + else | |
12344 | + if test -z "$EGREP"; then | |
12345 | + ac_path_EGREP_found=false | |
12346 | + # Loop through the user's path and test for each of PROGNAME-LIST | |
12347 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12348 | +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
12349 | do | |
12350 | IFS=$as_save_IFS | |
12351 | test -z "$as_dir" && as_dir=. | |
12352 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
12353 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12354 | - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
12355 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12356 | - break 2 | |
12357 | - fi | |
12358 | -done | |
12359 | -done | |
12360 | - | |
12361 | -fi | |
12362 | -fi | |
12363 | -RANLIB=$ac_cv_prog_RANLIB | |
12364 | -if test -n "$RANLIB"; then | |
12365 | - echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
12366 | -echo "${ECHO_T}$RANLIB" >&6 | |
12367 | -else | |
12368 | - echo "$as_me:$LINENO: result: no" >&5 | |
12369 | -echo "${ECHO_T}no" >&6 | |
12370 | -fi | |
12371 | + for ac_prog in egrep; do | |
12372 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
12373 | + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
12374 | + as_fn_executable_p "$ac_path_EGREP" || continue | |
12375 | +# Check for GNU ac_path_EGREP and select it if it is found. | |
12376 | + # Check for GNU $ac_path_EGREP | |
12377 | +case `"$ac_path_EGREP" --version 2>&1` in | |
12378 | +*GNU*) | |
12379 | + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
12380 | +*) | |
12381 | + ac_count=0 | |
12382 | + $as_echo_n 0123456789 >"conftest.in" | |
12383 | + while : | |
12384 | + do | |
12385 | + cat "conftest.in" "conftest.in" >"conftest.tmp" | |
12386 | + mv "conftest.tmp" "conftest.in" | |
12387 | + cp "conftest.in" "conftest.nl" | |
12388 | + $as_echo 'EGREP' >> "conftest.nl" | |
12389 | + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
12390 | + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
12391 | + as_fn_arith $ac_count + 1 && ac_count=$as_val | |
12392 | + if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
12393 | + # Best one so far, save it but keep looking for a better one | |
12394 | + ac_cv_path_EGREP="$ac_path_EGREP" | |
12395 | + ac_path_EGREP_max=$ac_count | |
12396 | + fi | |
12397 | + # 10*(2^10) chars as input seems more than enough | |
12398 | + test $ac_count -gt 10 && break | |
12399 | + done | |
12400 | + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
12401 | +esac | |
12402 | ||
12403 | -fi | |
12404 | -if test -z "$ac_cv_prog_RANLIB"; then | |
12405 | - ac_ct_RANLIB=$RANLIB | |
12406 | - # Extract the first word of "ranlib", so it can be a program name with args. | |
12407 | -set dummy ranlib; ac_word=$2 | |
12408 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12409 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12410 | -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
12411 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12412 | -else | |
12413 | - if test -n "$ac_ct_RANLIB"; then | |
12414 | - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
12415 | -else | |
12416 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12417 | -for as_dir in $PATH | |
12418 | -do | |
12419 | - IFS=$as_save_IFS | |
12420 | - test -z "$as_dir" && as_dir=. | |
12421 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
12422 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12423 | - ac_cv_prog_ac_ct_RANLIB="ranlib" | |
12424 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12425 | - break 2 | |
12426 | + $ac_path_EGREP_found && break 3 | |
12427 | + done | |
12428 | + done | |
12429 | + done | |
12430 | +IFS=$as_save_IFS | |
12431 | + if test -z "$ac_cv_path_EGREP"; then | |
12432 | + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
12433 | fi | |
12434 | -done | |
12435 | -done | |
12436 | - | |
12437 | - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
12438 | -fi | |
12439 | -fi | |
12440 | -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12441 | -if test -n "$ac_ct_RANLIB"; then | |
12442 | - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
12443 | -echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
12444 | -else | |
12445 | - echo "$as_me:$LINENO: result: no" >&5 | |
12446 | -echo "${ECHO_T}no" >&6 | |
12447 | -fi | |
12448 | - | |
12449 | - RANLIB=$ac_ct_RANLIB | |
12450 | else | |
12451 | - RANLIB="$ac_cv_prog_RANLIB" | |
12452 | + ac_cv_path_EGREP=$EGREP | |
12453 | fi | |
12454 | ||
12455 | -echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
12456 | -echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
12457 | -if test "${ac_cv_search_strerror+set}" = set; then | |
12458 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12459 | -else | |
12460 | - ac_func_search_save_LIBS=$LIBS | |
12461 | -ac_cv_search_strerror=no | |
12462 | -cat >conftest.$ac_ext <<_ACEOF | |
12463 | -/* confdefs.h. */ | |
12464 | -_ACEOF | |
12465 | -cat confdefs.h >>conftest.$ac_ext | |
12466 | -cat >>conftest.$ac_ext <<_ACEOF | |
12467 | -/* end confdefs.h. */ | |
12468 | - | |
12469 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
12470 | -#ifdef __cplusplus | |
12471 | -extern "C" | |
12472 | -#endif | |
12473 | -/* We use char because int might match the return type of a gcc2 | |
12474 | - builtin and then its argument prototype would still apply. */ | |
12475 | -char strerror (); | |
12476 | -int | |
12477 | -main () | |
12478 | -{ | |
12479 | -strerror (); | |
12480 | - ; | |
12481 | - return 0; | |
12482 | -} | |
12483 | -_ACEOF | |
12484 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
12485 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12486 | - (eval $ac_link) 2>conftest.er1 | |
12487 | - ac_status=$? | |
12488 | - grep -v '^ *+' conftest.er1 >conftest.err | |
12489 | - rm -f conftest.er1 | |
12490 | - cat conftest.err >&5 | |
12491 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12492 | - (exit $ac_status); } && | |
12493 | - { ac_try='test -z "$ac_c_werror_flag" | |
12494 | - || test ! -s conftest.err' | |
12495 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12496 | - (eval $ac_try) 2>&5 | |
12497 | - ac_status=$? | |
12498 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12499 | - (exit $ac_status); }; } && | |
12500 | - { ac_try='test -s conftest$ac_exeext' | |
12501 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12502 | - (eval $ac_try) 2>&5 | |
12503 | - ac_status=$? | |
12504 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12505 | - (exit $ac_status); }; }; then | |
12506 | - ac_cv_search_strerror="none required" | |
12507 | -else | |
12508 | - echo "$as_me: failed program was:" >&5 | |
12509 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
12510 | - | |
12511 | -fi | |
12512 | -rm -f conftest.err conftest.$ac_objext \ | |
12513 | - conftest$ac_exeext conftest.$ac_ext | |
12514 | -if test "$ac_cv_search_strerror" = no; then | |
12515 | - for ac_lib in cposix; do | |
12516 | - LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12517 | - cat >conftest.$ac_ext <<_ACEOF | |
12518 | -/* confdefs.h. */ | |
12519 | -_ACEOF | |
12520 | -cat confdefs.h >>conftest.$ac_ext | |
12521 | -cat >>conftest.$ac_ext <<_ACEOF | |
12522 | -/* end confdefs.h. */ | |
12523 | - | |
12524 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
12525 | -#ifdef __cplusplus | |
12526 | -extern "C" | |
12527 | -#endif | |
12528 | -/* We use char because int might match the return type of a gcc2 | |
12529 | - builtin and then its argument prototype would still apply. */ | |
12530 | -char strerror (); | |
12531 | -int | |
12532 | -main () | |
12533 | -{ | |
12534 | -strerror (); | |
12535 | - ; | |
12536 | - return 0; | |
12537 | -} | |
12538 | -_ACEOF | |
12539 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
12540 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12541 | - (eval $ac_link) 2>conftest.er1 | |
12542 | - ac_status=$? | |
12543 | - grep -v '^ *+' conftest.er1 >conftest.err | |
12544 | - rm -f conftest.er1 | |
12545 | - cat conftest.err >&5 | |
12546 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12547 | - (exit $ac_status); } && | |
12548 | - { ac_try='test -z "$ac_c_werror_flag" | |
12549 | - || test ! -s conftest.err' | |
12550 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12551 | - (eval $ac_try) 2>&5 | |
12552 | - ac_status=$? | |
12553 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12554 | - (exit $ac_status); }; } && | |
12555 | - { ac_try='test -s conftest$ac_exeext' | |
12556 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12557 | - (eval $ac_try) 2>&5 | |
12558 | - ac_status=$? | |
12559 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12560 | - (exit $ac_status); }; }; then | |
12561 | - ac_cv_search_strerror="-l$ac_lib" | |
12562 | -break | |
12563 | -else | |
12564 | - echo "$as_me: failed program was:" >&5 | |
12565 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
12566 | - | |
12567 | -fi | |
12568 | -rm -f conftest.err conftest.$ac_objext \ | |
12569 | - conftest$ac_exeext conftest.$ac_ext | |
12570 | - done | |
12571 | -fi | |
12572 | -LIBS=$ac_func_search_save_LIBS | |
12573 | + fi | |
12574 | fi | |
12575 | -echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
12576 | -echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
12577 | -if test "$ac_cv_search_strerror" != no; then | |
12578 | - test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
12579 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
12580 | +$as_echo "$ac_cv_path_EGREP" >&6; } | |
12581 | + EGREP="$ac_cv_path_EGREP" | |
12582 | ||
12583 | -fi | |
12584 | ||
12585 | -echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12586 | -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12587 | -if test "${ac_cv_header_stdc+set}" = set; then | |
12588 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12589 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
12590 | +$as_echo_n "checking for ANSI C header files... " >&6; } | |
12591 | +if ${ac_cv_header_stdc+:} false; then : | |
12592 | + $as_echo_n "(cached) " >&6 | |
12593 | else | |
12594 | - cat >conftest.$ac_ext <<_ACEOF | |
12595 | -/* confdefs.h. */ | |
12596 | -_ACEOF | |
12597 | -cat confdefs.h >>conftest.$ac_ext | |
12598 | -cat >>conftest.$ac_ext <<_ACEOF | |
12599 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12600 | /* end confdefs.h. */ | |
12601 | #include <stdlib.h> | |
12602 | #include <stdarg.h> | |
12603 | @@ -3744,51 +4066,23 @@ | |
12604 | return 0; | |
12605 | } | |
12606 | _ACEOF | |
12607 | -rm -f conftest.$ac_objext | |
12608 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12609 | - (eval $ac_compile) 2>conftest.er1 | |
12610 | - ac_status=$? | |
12611 | - grep -v '^ *+' conftest.er1 >conftest.err | |
12612 | - rm -f conftest.er1 | |
12613 | - cat conftest.err >&5 | |
12614 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12615 | - (exit $ac_status); } && | |
12616 | - { ac_try='test -z "$ac_c_werror_flag" | |
12617 | - || test ! -s conftest.err' | |
12618 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12619 | - (eval $ac_try) 2>&5 | |
12620 | - ac_status=$? | |
12621 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12622 | - (exit $ac_status); }; } && | |
12623 | - { ac_try='test -s conftest.$ac_objext' | |
12624 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12625 | - (eval $ac_try) 2>&5 | |
12626 | - ac_status=$? | |
12627 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12628 | - (exit $ac_status); }; }; then | |
12629 | +if ac_fn_c_try_compile "$LINENO"; then : | |
12630 | ac_cv_header_stdc=yes | |
12631 | else | |
12632 | - echo "$as_me: failed program was:" >&5 | |
12633 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
12634 | - | |
12635 | -ac_cv_header_stdc=no | |
12636 | + ac_cv_header_stdc=no | |
12637 | fi | |
12638 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12639 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12640 | ||
12641 | if test $ac_cv_header_stdc = yes; then | |
12642 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12643 | - cat >conftest.$ac_ext <<_ACEOF | |
12644 | -/* confdefs.h. */ | |
12645 | -_ACEOF | |
12646 | -cat confdefs.h >>conftest.$ac_ext | |
12647 | -cat >>conftest.$ac_ext <<_ACEOF | |
12648 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12649 | /* end confdefs.h. */ | |
12650 | #include <string.h> | |
12651 | ||
12652 | _ACEOF | |
12653 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12654 | - $EGREP "memchr" >/dev/null 2>&1; then | |
12655 | - : | |
12656 | + $EGREP "memchr" >/dev/null 2>&1; then : | |
12657 | + | |
12658 | else | |
12659 | ac_cv_header_stdc=no | |
12660 | fi | |
12661 | @@ -3798,18 +4092,14 @@ | |
12662 | ||
12663 | if test $ac_cv_header_stdc = yes; then | |
12664 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12665 | - cat >conftest.$ac_ext <<_ACEOF | |
12666 | -/* confdefs.h. */ | |
12667 | -_ACEOF | |
12668 | -cat confdefs.h >>conftest.$ac_ext | |
12669 | -cat >>conftest.$ac_ext <<_ACEOF | |
12670 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12671 | /* end confdefs.h. */ | |
12672 | #include <stdlib.h> | |
12673 | ||
12674 | _ACEOF | |
12675 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12676 | - $EGREP "free" >/dev/null 2>&1; then | |
12677 | - : | |
12678 | + $EGREP "free" >/dev/null 2>&1; then : | |
12679 | + | |
12680 | else | |
12681 | ac_cv_header_stdc=no | |
12682 | fi | |
12683 | @@ -3819,16 +4109,13 @@ | |
12684 | ||
12685 | if test $ac_cv_header_stdc = yes; then | |
12686 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12687 | - if test "$cross_compiling" = yes; then | |
12688 | + if test "$cross_compiling" = yes; then : | |
12689 | : | |
12690 | else | |
12691 | - cat >conftest.$ac_ext <<_ACEOF | |
12692 | -/* confdefs.h. */ | |
12693 | -_ACEOF | |
12694 | -cat confdefs.h >>conftest.$ac_ext | |
12695 | -cat >>conftest.$ac_ext <<_ACEOF | |
12696 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12697 | /* end confdefs.h. */ | |
12698 | #include <ctype.h> | |
12699 | +#include <stdlib.h> | |
12700 | #if ((' ' & 0x0FF) == 0x020) | |
12701 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12702 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12703 | @@ -3848,5807 +4135,897 @@ | |
12704 | for (i = 0; i < 256; i++) | |
12705 | if (XOR (islower (i), ISLOWER (i)) | |
12706 | || toupper (i) != TOUPPER (i)) | |
12707 | - exit(2); | |
12708 | - exit (0); | |
12709 | + return 2; | |
12710 | + return 0; | |
12711 | } | |
12712 | _ACEOF | |
12713 | -rm -f conftest$ac_exeext | |
12714 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12715 | - (eval $ac_link) 2>&5 | |
12716 | - ac_status=$? | |
12717 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12718 | - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12719 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12720 | - (eval $ac_try) 2>&5 | |
12721 | - ac_status=$? | |
12722 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12723 | - (exit $ac_status); }; }; then | |
12724 | - : | |
12725 | -else | |
12726 | - echo "$as_me: program exited with status $ac_status" >&5 | |
12727 | -echo "$as_me: failed program was:" >&5 | |
12728 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
12729 | +if ac_fn_c_try_run "$LINENO"; then : | |
12730 | ||
12731 | -( exit $ac_status ) | |
12732 | -ac_cv_header_stdc=no | |
12733 | +else | |
12734 | + ac_cv_header_stdc=no | |
12735 | fi | |
12736 | -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12737 | +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12738 | + conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12739 | fi | |
12740 | + | |
12741 | fi | |
12742 | fi | |
12743 | -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12744 | -echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12745 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
12746 | +$as_echo "$ac_cv_header_stdc" >&6; } | |
12747 | if test $ac_cv_header_stdc = yes; then | |
12748 | ||
12749 | -cat >>confdefs.h <<\_ACEOF | |
12750 | -#define STDC_HEADERS 1 | |
12751 | -_ACEOF | |
12752 | +$as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
12753 | ||
12754 | fi | |
12755 | ||
12756 | -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
12757 | -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
12758 | -if test "${ac_cv_c_const+set}" = set; then | |
12759 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12760 | -else | |
12761 | - cat >conftest.$ac_ext <<_ACEOF | |
12762 | -/* confdefs.h. */ | |
12763 | +# On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12764 | +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
12765 | + inttypes.h stdint.h unistd.h | |
12766 | +do : | |
12767 | + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12768 | +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
12769 | +" | |
12770 | +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
12771 | + cat >>confdefs.h <<_ACEOF | |
12772 | +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12773 | _ACEOF | |
12774 | -cat confdefs.h >>conftest.$ac_ext | |
12775 | -cat >>conftest.$ac_ext <<_ACEOF | |
12776 | -/* end confdefs.h. */ | |
12777 | ||
12778 | -int | |
12779 | -main () | |
12780 | -{ | |
12781 | -/* FIXME: Include the comments suggested by Paul. */ | |
12782 | -#ifndef __cplusplus | |
12783 | - /* Ultrix mips cc rejects this. */ | |
12784 | - typedef int charset[2]; | |
12785 | - const charset x; | |
12786 | - /* SunOS 4.1.1 cc rejects this. */ | |
12787 | - char const *const *ccp; | |
12788 | - char **p; | |
12789 | - /* NEC SVR4.0.2 mips cc rejects this. */ | |
12790 | - struct point {int x, y;}; | |
12791 | - static struct point const zero = {0,0}; | |
12792 | - /* AIX XL C 1.02.0.0 rejects this. | |
12793 | - It does not let you subtract one const X* pointer from another in | |
12794 | - an arm of an if-expression whose if-part is not a constant | |
12795 | - expression */ | |
12796 | - const char *g = "string"; | |
12797 | - ccp = &g + (g ? g-g : 0); | |
12798 | - /* HPUX 7.0 cc rejects these. */ | |
12799 | - ++ccp; | |
12800 | - p = (char**) ccp; | |
12801 | - ccp = (char const *const *) p; | |
12802 | - { /* SCO 3.2v4 cc rejects this. */ | |
12803 | - char *t; | |
12804 | - char const *s = 0 ? (char *) 0 : (char const *) 0; | |
12805 | +fi | |
12806 | ||
12807 | - *t++ = 0; | |
12808 | - } | |
12809 | - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
12810 | - int x[] = {25, 17}; | |
12811 | - const int *foo = &x[0]; | |
12812 | - ++foo; | |
12813 | - } | |
12814 | - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
12815 | - typedef const int *iptr; | |
12816 | - iptr p = 0; | |
12817 | - ++p; | |
12818 | - } | |
12819 | - { /* AIX XL C 1.02.0.0 rejects this saying | |
12820 | - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12821 | - struct s { int j; const int *ap[3]; }; | |
12822 | - struct s *b; b->j = 5; | |
12823 | - } | |
12824 | - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
12825 | - const int foo = 10; | |
12826 | - } | |
12827 | -#endif | |
12828 | +done | |
12829 | ||
12830 | - ; | |
12831 | - return 0; | |
12832 | -} | |
12833 | -_ACEOF | |
12834 | -rm -f conftest.$ac_objext | |
12835 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12836 | - (eval $ac_compile) 2>conftest.er1 | |
12837 | - ac_status=$? | |
12838 | - grep -v '^ *+' conftest.er1 >conftest.err | |
12839 | - rm -f conftest.er1 | |
12840 | - cat conftest.err >&5 | |
12841 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12842 | - (exit $ac_status); } && | |
12843 | - { ac_try='test -z "$ac_c_werror_flag" | |
12844 | - || test ! -s conftest.err' | |
12845 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12846 | - (eval $ac_try) 2>&5 | |
12847 | - ac_status=$? | |
12848 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12849 | - (exit $ac_status); }; } && | |
12850 | - { ac_try='test -s conftest.$ac_objext' | |
12851 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12852 | - (eval $ac_try) 2>&5 | |
12853 | - ac_status=$? | |
12854 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12855 | - (exit $ac_status); }; }; then | |
12856 | - ac_cv_c_const=yes | |
12857 | -else | |
12858 | - echo "$as_me: failed program was:" >&5 | |
12859 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
12860 | ||
12861 | -ac_cv_c_const=no | |
12862 | -fi | |
12863 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12864 | + | |
12865 | + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
12866 | +if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
12867 | + MINIX=yes | |
12868 | +else | |
12869 | + MINIX= | |
12870 | fi | |
12871 | -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
12872 | -echo "${ECHO_T}$ac_cv_c_const" >&6 | |
12873 | -if test $ac_cv_c_const = no; then | |
12874 | ||
12875 | -cat >>confdefs.h <<\_ACEOF | |
12876 | -#define const | |
12877 | -_ACEOF | |
12878 | ||
12879 | -fi | |
12880 | + if test "$MINIX" = yes; then | |
12881 | + | |
12882 | +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
12883 | + | |
12884 | ||
12885 | +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
12886 | ||
12887 | - echo "$as_me:$LINENO: checking for signed" >&5 | |
12888 | -echo $ECHO_N "checking for signed... $ECHO_C" >&6 | |
12889 | -if test "${bh_cv_c_signed+set}" = set; then | |
12890 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12891 | + | |
12892 | +$as_echo "#define _MINIX 1" >>confdefs.h | |
12893 | + | |
12894 | + fi | |
12895 | + | |
12896 | + | |
12897 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
12898 | +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
12899 | +if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
12900 | + $as_echo_n "(cached) " >&6 | |
12901 | else | |
12902 | - cat >conftest.$ac_ext <<_ACEOF | |
12903 | -/* confdefs.h. */ | |
12904 | -_ACEOF | |
12905 | -cat confdefs.h >>conftest.$ac_ext | |
12906 | -cat >>conftest.$ac_ext <<_ACEOF | |
12907 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12908 | /* end confdefs.h. */ | |
12909 | ||
12910 | +# define __EXTENSIONS__ 1 | |
12911 | + $ac_includes_default | |
12912 | int | |
12913 | main () | |
12914 | { | |
12915 | -signed char x; | |
12916 | + | |
12917 | ; | |
12918 | return 0; | |
12919 | } | |
12920 | _ACEOF | |
12921 | -rm -f conftest.$ac_objext | |
12922 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12923 | - (eval $ac_compile) 2>conftest.er1 | |
12924 | - ac_status=$? | |
12925 | - grep -v '^ *+' conftest.er1 >conftest.err | |
12926 | - rm -f conftest.er1 | |
12927 | - cat conftest.err >&5 | |
12928 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12929 | - (exit $ac_status); } && | |
12930 | - { ac_try='test -z "$ac_c_werror_flag" | |
12931 | - || test ! -s conftest.err' | |
12932 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12933 | - (eval $ac_try) 2>&5 | |
12934 | - ac_status=$? | |
12935 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12936 | - (exit $ac_status); }; } && | |
12937 | - { ac_try='test -s conftest.$ac_objext' | |
12938 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12939 | - (eval $ac_try) 2>&5 | |
12940 | - ac_status=$? | |
12941 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12942 | - (exit $ac_status); }; }; then | |
12943 | - bh_cv_c_signed=yes | |
12944 | +if ac_fn_c_try_compile "$LINENO"; then : | |
12945 | + ac_cv_safe_to_define___extensions__=yes | |
12946 | else | |
12947 | - echo "$as_me: failed program was:" >&5 | |
12948 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
12949 | - | |
12950 | -bh_cv_c_signed=no | |
12951 | + ac_cv_safe_to_define___extensions__=no | |
12952 | fi | |
12953 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12954 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12955 | fi | |
12956 | -echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 | |
12957 | -echo "${ECHO_T}$bh_cv_c_signed" >&6 | |
12958 | - if test $bh_cv_c_signed = no; then | |
12959 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
12960 | +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
12961 | + test $ac_cv_safe_to_define___extensions__ = yes && | |
12962 | + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
12963 | ||
12964 | -cat >>confdefs.h <<\_ACEOF | |
12965 | -#define signed | |
12966 | -_ACEOF | |
12967 | + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
12968 | ||
12969 | - fi | |
12970 | + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
12971 | ||
12972 | -echo "$as_me:$LINENO: checking for inline" >&5 | |
12973 | -echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
12974 | -if test "${ac_cv_c_inline+set}" = set; then | |
12975 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12976 | -else | |
12977 | - ac_cv_c_inline=no | |
12978 | -for ac_kw in inline __inline__ __inline; do | |
12979 | - cat >conftest.$ac_ext <<_ACEOF | |
12980 | -/* confdefs.h. */ | |
12981 | -_ACEOF | |
12982 | -cat confdefs.h >>conftest.$ac_ext | |
12983 | -cat >>conftest.$ac_ext <<_ACEOF | |
12984 | -/* end confdefs.h. */ | |
12985 | -#ifndef __cplusplus | |
12986 | -typedef int foo_t; | |
12987 | -static $ac_kw foo_t static_foo () {return 0; } | |
12988 | -$ac_kw foo_t foo () {return 0; } | |
12989 | -#endif | |
12990 | + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
12991 | ||
12992 | -_ACEOF | |
12993 | -rm -f conftest.$ac_objext | |
12994 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12995 | - (eval $ac_compile) 2>conftest.er1 | |
12996 | - ac_status=$? | |
12997 | - grep -v '^ *+' conftest.er1 >conftest.err | |
12998 | - rm -f conftest.er1 | |
12999 | - cat conftest.err >&5 | |
13000 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13001 | - (exit $ac_status); } && | |
13002 | - { ac_try='test -z "$ac_c_werror_flag" | |
13003 | - || test ! -s conftest.err' | |
13004 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13005 | - (eval $ac_try) 2>&5 | |
13006 | - ac_status=$? | |
13007 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13008 | - (exit $ac_status); }; } && | |
13009 | - { ac_try='test -s conftest.$ac_objext' | |
13010 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13011 | - (eval $ac_try) 2>&5 | |
13012 | - ac_status=$? | |
13013 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13014 | - (exit $ac_status); }; }; then | |
13015 | - ac_cv_c_inline=$ac_kw; break | |
13016 | -else | |
13017 | - echo "$as_me: failed program was:" >&5 | |
13018 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
13019 | + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
13020 | ||
13021 | -fi | |
13022 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13023 | -done | |
13024 | ||
13025 | + | |
13026 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
13027 | +$as_echo_n "checking whether NLS is requested... " >&6; } | |
13028 | + # Check whether --enable-nls was given. | |
13029 | +if test "${enable_nls+set}" = set; then : | |
13030 | + enableval=$enable_nls; USE_NLS=$enableval | |
13031 | +else | |
13032 | + USE_NLS=yes | |
13033 | fi | |
13034 | -echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
13035 | -echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
13036 | ||
13037 | - | |
13038 | -case $ac_cv_c_inline in | |
13039 | - inline | yes) ;; | |
13040 | - *) | |
13041 | - case $ac_cv_c_inline in | |
13042 | - no) ac_val=;; | |
13043 | - *) ac_val=$ac_cv_c_inline;; | |
13044 | - esac | |
13045 | - cat >>confdefs.h <<_ACEOF | |
13046 | -#ifndef __cplusplus | |
13047 | -#define inline $ac_val | |
13048 | -#endif | |
13049 | -_ACEOF | |
13050 | - ;; | |
13051 | -esac | |
13052 | - | |
13053 | -# On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
13054 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
13055 | +$as_echo "$USE_NLS" >&6; } | |
13056 | ||
13057 | ||
13058 | ||
13059 | ||
13060 | + GETTEXT_MACRO_VERSION=0.18 | |
13061 | ||
13062 | ||
13063 | ||
13064 | ||
13065 | - | |
13066 | -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
13067 | - inttypes.h stdint.h unistd.h | |
13068 | -do | |
13069 | -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13070 | -echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13071 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13072 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13073 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13074 | -else | |
13075 | - cat >conftest.$ac_ext <<_ACEOF | |
13076 | -/* confdefs.h. */ | |
13077 | -_ACEOF | |
13078 | -cat confdefs.h >>conftest.$ac_ext | |
13079 | -cat >>conftest.$ac_ext <<_ACEOF | |
13080 | -/* end confdefs.h. */ | |
13081 | -$ac_includes_default | |
13082 | - | |
13083 | -#include <$ac_header> | |
13084 | -_ACEOF | |
13085 | -rm -f conftest.$ac_objext | |
13086 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13087 | - (eval $ac_compile) 2>conftest.er1 | |
13088 | - ac_status=$? | |
13089 | - grep -v '^ *+' conftest.er1 >conftest.err | |
13090 | - rm -f conftest.er1 | |
13091 | - cat conftest.err >&5 | |
13092 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13093 | - (exit $ac_status); } && | |
13094 | - { ac_try='test -z "$ac_c_werror_flag" | |
13095 | - || test ! -s conftest.err' | |
13096 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13097 | - (eval $ac_try) 2>&5 | |
13098 | - ac_status=$? | |
13099 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13100 | - (exit $ac_status); }; } && | |
13101 | - { ac_try='test -s conftest.$ac_objext' | |
13102 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13103 | - (eval $ac_try) 2>&5 | |
13104 | - ac_status=$? | |
13105 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13106 | - (exit $ac_status); }; }; then | |
13107 | - eval "$as_ac_Header=yes" | |
13108 | -else | |
13109 | - echo "$as_me: failed program was:" >&5 | |
13110 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
13111 | - | |
13112 | -eval "$as_ac_Header=no" | |
13113 | -fi | |
13114 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13115 | +# Prepare PATH_SEPARATOR. | |
13116 | +# The user is always right. | |
13117 | +if test "${PATH_SEPARATOR+set}" != set; then | |
13118 | + echo "#! /bin/sh" >conf$$.sh | |
13119 | + echo "exit 0" >>conf$$.sh | |
13120 | + chmod +x conf$$.sh | |
13121 | + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13122 | + PATH_SEPARATOR=';' | |
13123 | + else | |
13124 | + PATH_SEPARATOR=: | |
13125 | + fi | |
13126 | + rm -f conf$$.sh | |
13127 | fi | |
13128 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13129 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13130 | -if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13131 | - cat >>confdefs.h <<_ACEOF | |
13132 | -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13133 | -_ACEOF | |
13134 | ||
13135 | +# Find out how to test for executable files. Don't use a zero-byte file, | |
13136 | +# as systems may use methods other than mode bits to determine executability. | |
13137 | +cat >conf$$.file <<_ASEOF | |
13138 | +#! /bin/sh | |
13139 | +exit 0 | |
13140 | +_ASEOF | |
13141 | +chmod +x conf$$.file | |
13142 | +if test -x conf$$.file >/dev/null 2>&1; then | |
13143 | + ac_executable_p="test -x" | |
13144 | +else | |
13145 | + ac_executable_p="test -f" | |
13146 | fi | |
13147 | +rm -f conf$$.file | |
13148 | ||
13149 | -done | |
13150 | - | |
13151 | - | |
13152 | -echo "$as_me:$LINENO: checking for off_t" >&5 | |
13153 | -echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
13154 | -if test "${ac_cv_type_off_t+set}" = set; then | |
13155 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13156 | -else | |
13157 | - cat >conftest.$ac_ext <<_ACEOF | |
13158 | -/* confdefs.h. */ | |
13159 | -_ACEOF | |
13160 | -cat confdefs.h >>conftest.$ac_ext | |
13161 | -cat >>conftest.$ac_ext <<_ACEOF | |
13162 | -/* end confdefs.h. */ | |
13163 | -$ac_includes_default | |
13164 | -int | |
13165 | -main () | |
13166 | -{ | |
13167 | -if ((off_t *) 0) | |
13168 | - return 0; | |
13169 | -if (sizeof (off_t)) | |
13170 | - return 0; | |
13171 | - ; | |
13172 | - return 0; | |
13173 | -} | |
13174 | -_ACEOF | |
13175 | -rm -f conftest.$ac_objext | |
13176 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13177 | - (eval $ac_compile) 2>conftest.er1 | |
13178 | - ac_status=$? | |
13179 | - grep -v '^ *+' conftest.er1 >conftest.err | |
13180 | - rm -f conftest.er1 | |
13181 | - cat conftest.err >&5 | |
13182 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13183 | - (exit $ac_status); } && | |
13184 | - { ac_try='test -z "$ac_c_werror_flag" | |
13185 | - || test ! -s conftest.err' | |
13186 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13187 | - (eval $ac_try) 2>&5 | |
13188 | - ac_status=$? | |
13189 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13190 | - (exit $ac_status); }; } && | |
13191 | - { ac_try='test -s conftest.$ac_objext' | |
13192 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13193 | - (eval $ac_try) 2>&5 | |
13194 | - ac_status=$? | |
13195 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13196 | - (exit $ac_status); }; }; then | |
13197 | - ac_cv_type_off_t=yes | |
13198 | +# Extract the first word of "msgfmt", so it can be a program name with args. | |
13199 | +set dummy msgfmt; ac_word=$2 | |
13200 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13201 | +$as_echo_n "checking for $ac_word... " >&6; } | |
13202 | +if ${ac_cv_path_MSGFMT+:} false; then : | |
13203 | + $as_echo_n "(cached) " >&6 | |
13204 | else | |
13205 | - echo "$as_me: failed program was:" >&5 | |
13206 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
13207 | - | |
13208 | -ac_cv_type_off_t=no | |
13209 | -fi | |
13210 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13211 | + case "$MSGFMT" in | |
13212 | + [\\/]* | ?:[\\/]*) | |
13213 | + ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
13214 | + ;; | |
13215 | + *) | |
13216 | + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13217 | + for ac_dir in $PATH; do | |
13218 | + IFS="$ac_save_IFS" | |
13219 | + test -z "$ac_dir" && ac_dir=. | |
13220 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
13221 | + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13222 | + echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
13223 | + if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && | |
13224 | + (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
13225 | + ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
13226 | + break 2 | |
13227 | + fi | |
13228 | + fi | |
13229 | + done | |
13230 | + done | |
13231 | + IFS="$ac_save_IFS" | |
13232 | + test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
13233 | + ;; | |
13234 | +esac | |
13235 | fi | |
13236 | -echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
13237 | -echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
13238 | -if test $ac_cv_type_off_t = yes; then | |
13239 | - : | |
13240 | +MSGFMT="$ac_cv_path_MSGFMT" | |
13241 | +if test "$MSGFMT" != ":"; then | |
13242 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
13243 | +$as_echo "$MSGFMT" >&6; } | |
13244 | else | |
13245 | - | |
13246 | -cat >>confdefs.h <<_ACEOF | |
13247 | -#define off_t long | |
13248 | -_ACEOF | |
13249 | - | |
13250 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13251 | +$as_echo "no" >&6; } | |
13252 | fi | |
13253 | ||
13254 | -echo "$as_me:$LINENO: checking for size_t" >&5 | |
13255 | -echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
13256 | -if test "${ac_cv_type_size_t+set}" = set; then | |
13257 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13258 | -else | |
13259 | - cat >conftest.$ac_ext <<_ACEOF | |
13260 | -/* confdefs.h. */ | |
13261 | -_ACEOF | |
13262 | -cat confdefs.h >>conftest.$ac_ext | |
13263 | -cat >>conftest.$ac_ext <<_ACEOF | |
13264 | -/* end confdefs.h. */ | |
13265 | -$ac_includes_default | |
13266 | -int | |
13267 | -main () | |
13268 | -{ | |
13269 | -if ((size_t *) 0) | |
13270 | - return 0; | |
13271 | -if (sizeof (size_t)) | |
13272 | - return 0; | |
13273 | - ; | |
13274 | - return 0; | |
13275 | -} | |
13276 | -_ACEOF | |
13277 | -rm -f conftest.$ac_objext | |
13278 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13279 | - (eval $ac_compile) 2>conftest.er1 | |
13280 | - ac_status=$? | |
13281 | - grep -v '^ *+' conftest.er1 >conftest.err | |
13282 | - rm -f conftest.er1 | |
13283 | - cat conftest.err >&5 | |
13284 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13285 | - (exit $ac_status); } && | |
13286 | - { ac_try='test -z "$ac_c_werror_flag" | |
13287 | - || test ! -s conftest.err' | |
13288 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13289 | - (eval $ac_try) 2>&5 | |
13290 | - ac_status=$? | |
13291 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13292 | - (exit $ac_status); }; } && | |
13293 | - { ac_try='test -s conftest.$ac_objext' | |
13294 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13295 | - (eval $ac_try) 2>&5 | |
13296 | - ac_status=$? | |
13297 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13298 | - (exit $ac_status); }; }; then | |
13299 | - ac_cv_type_size_t=yes | |
13300 | + # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
13301 | +set dummy gmsgfmt; ac_word=$2 | |
13302 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13303 | +$as_echo_n "checking for $ac_word... " >&6; } | |
13304 | +if ${ac_cv_path_GMSGFMT+:} false; then : | |
13305 | + $as_echo_n "(cached) " >&6 | |
13306 | else | |
13307 | - echo "$as_me: failed program was:" >&5 | |
13308 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
13309 | + case $GMSGFMT in | |
13310 | + [\\/]* | ?:[\\/]*) | |
13311 | + ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
13312 | + ;; | |
13313 | + *) | |
13314 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13315 | +for as_dir in $PATH | |
13316 | +do | |
13317 | + IFS=$as_save_IFS | |
13318 | + test -z "$as_dir" && as_dir=. | |
13319 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
13320 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13321 | + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
13322 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13323 | + break 2 | |
13324 | + fi | |
13325 | +done | |
13326 | + done | |
13327 | +IFS=$as_save_IFS | |
13328 | ||
13329 | -ac_cv_type_size_t=no | |
13330 | -fi | |
13331 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13332 | + test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
13333 | + ;; | |
13334 | +esac | |
13335 | fi | |
13336 | -echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
13337 | -echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
13338 | -if test $ac_cv_type_size_t = yes; then | |
13339 | - : | |
13340 | +GMSGFMT=$ac_cv_path_GMSGFMT | |
13341 | +if test -n "$GMSGFMT"; then | |
13342 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
13343 | +$as_echo "$GMSGFMT" >&6; } | |
13344 | else | |
13345 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13346 | +$as_echo "no" >&6; } | |
13347 | +fi | |
13348 | ||
13349 | -cat >>confdefs.h <<_ACEOF | |
13350 | -#define size_t unsigned | |
13351 | -_ACEOF | |
13352 | ||
13353 | -fi | |
13354 | ||
13355 | + case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
13356 | + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; | |
13357 | + *) MSGFMT_015=$MSGFMT ;; | |
13358 | + esac | |
13359 | ||
13360 | - echo "$as_me:$LINENO: checking for long long" >&5 | |
13361 | -echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
13362 | -if test "${ac_cv_type_long_long+set}" = set; then | |
13363 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13364 | -else | |
13365 | - cat >conftest.$ac_ext <<_ACEOF | |
13366 | -/* confdefs.h. */ | |
13367 | -_ACEOF | |
13368 | -cat confdefs.h >>conftest.$ac_ext | |
13369 | -cat >>conftest.$ac_ext <<_ACEOF | |
13370 | -/* end confdefs.h. */ | |
13371 | -long long ll = 1LL; int i = 63; | |
13372 | -int | |
13373 | -main () | |
13374 | -{ | |
13375 | -long long llmax = (long long) -1; | |
13376 | - return ll << i | ll >> i | llmax / ll | llmax % ll; | |
13377 | - ; | |
13378 | - return 0; | |
13379 | -} | |
13380 | -_ACEOF | |
13381 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
13382 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13383 | - (eval $ac_link) 2>conftest.er1 | |
13384 | - ac_status=$? | |
13385 | - grep -v '^ *+' conftest.er1 >conftest.err | |
13386 | - rm -f conftest.er1 | |
13387 | - cat conftest.err >&5 | |
13388 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13389 | - (exit $ac_status); } && | |
13390 | - { ac_try='test -z "$ac_c_werror_flag" | |
13391 | - || test ! -s conftest.err' | |
13392 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13393 | - (eval $ac_try) 2>&5 | |
13394 | - ac_status=$? | |
13395 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13396 | - (exit $ac_status); }; } && | |
13397 | - { ac_try='test -s conftest$ac_exeext' | |
13398 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13399 | - (eval $ac_try) 2>&5 | |
13400 | - ac_status=$? | |
13401 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13402 | - (exit $ac_status); }; }; then | |
13403 | - ac_cv_type_long_long=yes | |
13404 | -else | |
13405 | - echo "$as_me: failed program was:" >&5 | |
13406 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
13407 | + case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
13408 | + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; | |
13409 | + *) GMSGFMT_015=$GMSGFMT ;; | |
13410 | + esac | |
13411 | ||
13412 | -ac_cv_type_long_long=no | |
13413 | -fi | |
13414 | -rm -f conftest.err conftest.$ac_objext \ | |
13415 | - conftest$ac_exeext conftest.$ac_ext | |
13416 | -fi | |
13417 | -echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
13418 | -echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
13419 | - if test $ac_cv_type_long_long = yes; then | |
13420 | ||
13421 | -cat >>confdefs.h <<\_ACEOF | |
13422 | -#define HAVE_LONG_LONG 1 | |
13423 | -_ACEOF | |
13424 | ||
13425 | +# Prepare PATH_SEPARATOR. | |
13426 | +# The user is always right. | |
13427 | +if test "${PATH_SEPARATOR+set}" != set; then | |
13428 | + echo "#! /bin/sh" >conf$$.sh | |
13429 | + echo "exit 0" >>conf$$.sh | |
13430 | + chmod +x conf$$.sh | |
13431 | + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13432 | + PATH_SEPARATOR=';' | |
13433 | + else | |
13434 | + PATH_SEPARATOR=: | |
13435 | fi | |
13436 | + rm -f conf$$.sh | |
13437 | +fi | |
13438 | ||
13439 | - | |
13440 | - echo "$as_me:$LINENO: checking for long double" >&5 | |
13441 | -echo $ECHO_N "checking for long double... $ECHO_C" >&6 | |
13442 | -if test "${gt_cv_c_long_double+set}" = set; then | |
13443 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13444 | +# Find out how to test for executable files. Don't use a zero-byte file, | |
13445 | +# as systems may use methods other than mode bits to determine executability. | |
13446 | +cat >conf$$.file <<_ASEOF | |
13447 | +#! /bin/sh | |
13448 | +exit 0 | |
13449 | +_ASEOF | |
13450 | +chmod +x conf$$.file | |
13451 | +if test -x conf$$.file >/dev/null 2>&1; then | |
13452 | + ac_executable_p="test -x" | |
13453 | else | |
13454 | - if test "$GCC" = yes; then | |
13455 | - gt_cv_c_long_double=yes | |
13456 | - else | |
13457 | - cat >conftest.$ac_ext <<_ACEOF | |
13458 | -/* confdefs.h. */ | |
13459 | -_ACEOF | |
13460 | -cat confdefs.h >>conftest.$ac_ext | |
13461 | -cat >>conftest.$ac_ext <<_ACEOF | |
13462 | -/* end confdefs.h. */ | |
13463 | - | |
13464 | - /* The Stardent Vistra knows sizeof(long double), but does not support it. */ | |
13465 | - long double foo = 0.0; | |
13466 | - /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ | |
13467 | - int array [2*(sizeof(long double) >= sizeof(double)) - 1]; | |
13468 | - | |
13469 | -int | |
13470 | -main () | |
13471 | -{ | |
13472 | + ac_executable_p="test -f" | |
13473 | +fi | |
13474 | +rm -f conf$$.file | |
13475 | ||
13476 | - ; | |
13477 | - return 0; | |
13478 | -} | |
13479 | -_ACEOF | |
13480 | -rm -f conftest.$ac_objext | |
13481 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13482 | - (eval $ac_compile) 2>conftest.er1 | |
13483 | - ac_status=$? | |
13484 | - grep -v '^ *+' conftest.er1 >conftest.err | |
13485 | - rm -f conftest.er1 | |
13486 | - cat conftest.err >&5 | |
13487 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13488 | - (exit $ac_status); } && | |
13489 | - { ac_try='test -z "$ac_c_werror_flag" | |
13490 | - || test ! -s conftest.err' | |
13491 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13492 | - (eval $ac_try) 2>&5 | |
13493 | - ac_status=$? | |
13494 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13495 | - (exit $ac_status); }; } && | |
13496 | - { ac_try='test -s conftest.$ac_objext' | |
13497 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13498 | - (eval $ac_try) 2>&5 | |
13499 | - ac_status=$? | |
13500 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13501 | - (exit $ac_status); }; }; then | |
13502 | - gt_cv_c_long_double=yes | |
13503 | +# Extract the first word of "xgettext", so it can be a program name with args. | |
13504 | +set dummy xgettext; ac_word=$2 | |
13505 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13506 | +$as_echo_n "checking for $ac_word... " >&6; } | |
13507 | +if ${ac_cv_path_XGETTEXT+:} false; then : | |
13508 | + $as_echo_n "(cached) " >&6 | |
13509 | else | |
13510 | - echo "$as_me: failed program was:" >&5 | |
13511 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
13512 | - | |
13513 | -gt_cv_c_long_double=no | |
13514 | + case "$XGETTEXT" in | |
13515 | + [\\/]* | ?:[\\/]*) | |
13516 | + ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
13517 | + ;; | |
13518 | + *) | |
13519 | + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13520 | + for ac_dir in $PATH; do | |
13521 | + IFS="$ac_save_IFS" | |
13522 | + test -z "$ac_dir" && ac_dir=. | |
13523 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
13524 | + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13525 | + echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
13526 | + if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && | |
13527 | + (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
13528 | + ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
13529 | + break 2 | |
13530 | + fi | |
13531 | + fi | |
13532 | + done | |
13533 | + done | |
13534 | + IFS="$ac_save_IFS" | |
13535 | + test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
13536 | + ;; | |
13537 | +esac | |
13538 | fi | |
13539 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13540 | - fi | |
13541 | +XGETTEXT="$ac_cv_path_XGETTEXT" | |
13542 | +if test "$XGETTEXT" != ":"; then | |
13543 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
13544 | +$as_echo "$XGETTEXT" >&6; } | |
13545 | +else | |
13546 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13547 | +$as_echo "no" >&6; } | |
13548 | fi | |
13549 | -echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 | |
13550 | -echo "${ECHO_T}$gt_cv_c_long_double" >&6 | |
13551 | - if test $gt_cv_c_long_double = yes; then | |
13552 | ||
13553 | -cat >>confdefs.h <<\_ACEOF | |
13554 | -#define HAVE_LONG_DOUBLE 1 | |
13555 | -_ACEOF | |
13556 | + rm -f messages.po | |
13557 | ||
13558 | - fi | |
13559 | + case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
13560 | + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | |
13561 | + *) XGETTEXT_015=$XGETTEXT ;; | |
13562 | + esac | |
13563 | ||
13564 | ||
13565 | - echo "$as_me:$LINENO: checking for wchar_t" >&5 | |
13566 | -echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
13567 | -if test "${gt_cv_c_wchar_t+set}" = set; then | |
13568 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13569 | -else | |
13570 | - cat >conftest.$ac_ext <<_ACEOF | |
13571 | -/* confdefs.h. */ | |
13572 | -_ACEOF | |
13573 | -cat confdefs.h >>conftest.$ac_ext | |
13574 | -cat >>conftest.$ac_ext <<_ACEOF | |
13575 | -/* end confdefs.h. */ | |
13576 | -#include <stddef.h> | |
13577 | - wchar_t foo = (wchar_t)'\0'; | |
13578 | -int | |
13579 | -main () | |
13580 | -{ | |
13581 | ||
13582 | - ; | |
13583 | - return 0; | |
13584 | -} | |
13585 | -_ACEOF | |
13586 | -rm -f conftest.$ac_objext | |
13587 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13588 | - (eval $ac_compile) 2>conftest.er1 | |
13589 | - ac_status=$? | |
13590 | - grep -v '^ *+' conftest.er1 >conftest.err | |
13591 | - rm -f conftest.er1 | |
13592 | - cat conftest.err >&5 | |
13593 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13594 | - (exit $ac_status); } && | |
13595 | - { ac_try='test -z "$ac_c_werror_flag" | |
13596 | - || test ! -s conftest.err' | |
13597 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13598 | - (eval $ac_try) 2>&5 | |
13599 | - ac_status=$? | |
13600 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13601 | - (exit $ac_status); }; } && | |
13602 | - { ac_try='test -s conftest.$ac_objext' | |
13603 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13604 | - (eval $ac_try) 2>&5 | |
13605 | - ac_status=$? | |
13606 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13607 | - (exit $ac_status); }; }; then | |
13608 | - gt_cv_c_wchar_t=yes | |
13609 | +# Prepare PATH_SEPARATOR. | |
13610 | +# The user is always right. | |
13611 | +if test "${PATH_SEPARATOR+set}" != set; then | |
13612 | + echo "#! /bin/sh" >conf$$.sh | |
13613 | + echo "exit 0" >>conf$$.sh | |
13614 | + chmod +x conf$$.sh | |
13615 | + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13616 | + PATH_SEPARATOR=';' | |
13617 | + else | |
13618 | + PATH_SEPARATOR=: | |
13619 | + fi | |
13620 | + rm -f conf$$.sh | |
13621 | +fi | |
13622 | + | |
13623 | +# Find out how to test for executable files. Don't use a zero-byte file, | |
13624 | +# as systems may use methods other than mode bits to determine executability. | |
13625 | +cat >conf$$.file <<_ASEOF | |
13626 | +#! /bin/sh | |
13627 | +exit 0 | |
13628 | +_ASEOF | |
13629 | +chmod +x conf$$.file | |
13630 | +if test -x conf$$.file >/dev/null 2>&1; then | |
13631 | + ac_executable_p="test -x" | |
13632 | else | |
13633 | - echo "$as_me: failed program was:" >&5 | |
13634 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
13635 | + ac_executable_p="test -f" | |
13636 | +fi | |
13637 | +rm -f conf$$.file | |
13638 | ||
13639 | -gt_cv_c_wchar_t=no | |
13640 | +# Extract the first word of "msgmerge", so it can be a program name with args. | |
13641 | +set dummy msgmerge; ac_word=$2 | |
13642 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13643 | +$as_echo_n "checking for $ac_word... " >&6; } | |
13644 | +if ${ac_cv_path_MSGMERGE+:} false; then : | |
13645 | + $as_echo_n "(cached) " >&6 | |
13646 | +else | |
13647 | + case "$MSGMERGE" in | |
13648 | + [\\/]* | ?:[\\/]*) | |
13649 | + ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
13650 | + ;; | |
13651 | + *) | |
13652 | + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13653 | + for ac_dir in $PATH; do | |
13654 | + IFS="$ac_save_IFS" | |
13655 | + test -z "$ac_dir" && ac_dir=. | |
13656 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
13657 | + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13658 | + echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
13659 | + if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then | |
13660 | + ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
13661 | + break 2 | |
13662 | + fi | |
13663 | + fi | |
13664 | + done | |
13665 | + done | |
13666 | + IFS="$ac_save_IFS" | |
13667 | + test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
13668 | + ;; | |
13669 | +esac | |
13670 | fi | |
13671 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13672 | +MSGMERGE="$ac_cv_path_MSGMERGE" | |
13673 | +if test "$MSGMERGE" != ":"; then | |
13674 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
13675 | +$as_echo "$MSGMERGE" >&6; } | |
13676 | +else | |
13677 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13678 | +$as_echo "no" >&6; } | |
13679 | fi | |
13680 | -echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 | |
13681 | -echo "${ECHO_T}$gt_cv_c_wchar_t" >&6 | |
13682 | - if test $gt_cv_c_wchar_t = yes; then | |
13683 | ||
13684 | -cat >>confdefs.h <<\_ACEOF | |
13685 | -#define HAVE_WCHAR_T 1 | |
13686 | -_ACEOF | |
13687 | ||
13688 | - fi | |
13689 | + test -n "$localedir" || localedir='${datadir}/locale' | |
13690 | ||
13691 | ||
13692 | - echo "$as_me:$LINENO: checking for wint_t" >&5 | |
13693 | -echo $ECHO_N "checking for wint_t... $ECHO_C" >&6 | |
13694 | -if test "${gt_cv_c_wint_t+set}" = set; then | |
13695 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13696 | -else | |
13697 | - cat >conftest.$ac_ext <<_ACEOF | |
13698 | -/* confdefs.h. */ | |
13699 | -_ACEOF | |
13700 | -cat confdefs.h >>conftest.$ac_ext | |
13701 | -cat >>conftest.$ac_ext <<_ACEOF | |
13702 | -/* end confdefs.h. */ | |
13703 | -#include <wchar.h> | |
13704 | - wint_t foo = (wchar_t)'\0'; | |
13705 | -int | |
13706 | -main () | |
13707 | -{ | |
13708 | + test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= | |
13709 | ||
13710 | - ; | |
13711 | - return 0; | |
13712 | -} | |
13713 | -_ACEOF | |
13714 | -rm -f conftest.$ac_objext | |
13715 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13716 | - (eval $ac_compile) 2>conftest.er1 | |
13717 | - ac_status=$? | |
13718 | - grep -v '^ *+' conftest.er1 >conftest.err | |
13719 | - rm -f conftest.er1 | |
13720 | - cat conftest.err >&5 | |
13721 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13722 | - (exit $ac_status); } && | |
13723 | - { ac_try='test -z "$ac_c_werror_flag" | |
13724 | - || test ! -s conftest.err' | |
13725 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13726 | - (eval $ac_try) 2>&5 | |
13727 | - ac_status=$? | |
13728 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13729 | - (exit $ac_status); }; } && | |
13730 | - { ac_try='test -s conftest.$ac_objext' | |
13731 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13732 | - (eval $ac_try) 2>&5 | |
13733 | - ac_status=$? | |
13734 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13735 | - (exit $ac_status); }; }; then | |
13736 | - gt_cv_c_wint_t=yes | |
13737 | -else | |
13738 | - echo "$as_me: failed program was:" >&5 | |
13739 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
13740 | ||
13741 | -gt_cv_c_wint_t=no | |
13742 | -fi | |
13743 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13744 | -fi | |
13745 | -echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 | |
13746 | -echo "${ECHO_T}$gt_cv_c_wint_t" >&6 | |
13747 | - if test $gt_cv_c_wint_t = yes; then | |
13748 | + ac_config_commands="$ac_config_commands po-directories" | |
13749 | ||
13750 | -cat >>confdefs.h <<\_ACEOF | |
13751 | -#define HAVE_WINT_T 1 | |
13752 | -_ACEOF | |
13753 | ||
13754 | - fi | |
13755 | ||
13756 | + if test "X$prefix" = "XNONE"; then | |
13757 | + acl_final_prefix="$ac_default_prefix" | |
13758 | + else | |
13759 | + acl_final_prefix="$prefix" | |
13760 | + fi | |
13761 | + if test "X$exec_prefix" = "XNONE"; then | |
13762 | + acl_final_exec_prefix='${prefix}' | |
13763 | + else | |
13764 | + acl_final_exec_prefix="$exec_prefix" | |
13765 | + fi | |
13766 | + acl_save_prefix="$prefix" | |
13767 | + prefix="$acl_final_prefix" | |
13768 | + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
13769 | + prefix="$acl_save_prefix" | |
13770 | ||
13771 | - echo "$as_me:$LINENO: checking for inttypes.h" >&5 | |
13772 | -echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 | |
13773 | -if test "${gl_cv_header_inttypes_h+set}" = set; then | |
13774 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13775 | -else | |
13776 | - cat >conftest.$ac_ext <<_ACEOF | |
13777 | -/* confdefs.h. */ | |
13778 | -_ACEOF | |
13779 | -cat confdefs.h >>conftest.$ac_ext | |
13780 | -cat >>conftest.$ac_ext <<_ACEOF | |
13781 | -/* end confdefs.h. */ | |
13782 | -#include <sys/types.h> | |
13783 | -#include <inttypes.h> | |
13784 | -int | |
13785 | -main () | |
13786 | -{ | |
13787 | -uintmax_t i = (uintmax_t) -1; | |
13788 | - ; | |
13789 | - return 0; | |
13790 | -} | |
13791 | -_ACEOF | |
13792 | -rm -f conftest.$ac_objext | |
13793 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13794 | - (eval $ac_compile) 2>conftest.er1 | |
13795 | - ac_status=$? | |
13796 | - grep -v '^ *+' conftest.er1 >conftest.err | |
13797 | - rm -f conftest.er1 | |
13798 | - cat conftest.err >&5 | |
13799 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13800 | - (exit $ac_status); } && | |
13801 | - { ac_try='test -z "$ac_c_werror_flag" | |
13802 | - || test ! -s conftest.err' | |
13803 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13804 | - (eval $ac_try) 2>&5 | |
13805 | - ac_status=$? | |
13806 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13807 | - (exit $ac_status); }; } && | |
13808 | - { ac_try='test -s conftest.$ac_objext' | |
13809 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13810 | - (eval $ac_try) 2>&5 | |
13811 | - ac_status=$? | |
13812 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13813 | - (exit $ac_status); }; }; then | |
13814 | - gl_cv_header_inttypes_h=yes | |
13815 | -else | |
13816 | - echo "$as_me: failed program was:" >&5 | |
13817 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
13818 | +# Make sure we can run config.sub. | |
13819 | +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
13820 | + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
13821 | ||
13822 | -gl_cv_header_inttypes_h=no | |
13823 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
13824 | +$as_echo_n "checking build system type... " >&6; } | |
13825 | +if ${ac_cv_build+:} false; then : | |
13826 | + $as_echo_n "(cached) " >&6 | |
13827 | +else | |
13828 | + ac_build_alias=$build_alias | |
13829 | +test "x$ac_build_alias" = x && | |
13830 | + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
13831 | +test "x$ac_build_alias" = x && | |
13832 | + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
13833 | +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
13834 | + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
13835 | + | |
13836 | +fi | |
13837 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
13838 | +$as_echo "$ac_cv_build" >&6; } | |
13839 | +case $ac_cv_build in | |
13840 | +*-*-*) ;; | |
13841 | +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
13842 | +esac | |
13843 | +build=$ac_cv_build | |
13844 | +ac_save_IFS=$IFS; IFS='-' | |
13845 | +set x $ac_cv_build | |
13846 | +shift | |
13847 | +build_cpu=$1 | |
13848 | +build_vendor=$2 | |
13849 | +shift; shift | |
13850 | +# Remember, the first character of IFS is used to create $*, | |
13851 | +# except with old shells: | |
13852 | +build_os=$* | |
13853 | +IFS=$ac_save_IFS | |
13854 | +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
13855 | + | |
13856 | + | |
13857 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
13858 | +$as_echo_n "checking host system type... " >&6; } | |
13859 | +if ${ac_cv_host+:} false; then : | |
13860 | + $as_echo_n "(cached) " >&6 | |
13861 | +else | |
13862 | + if test "x$host_alias" = x; then | |
13863 | + ac_cv_host=$ac_cv_build | |
13864 | +else | |
13865 | + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
13866 | + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
13867 | fi | |
13868 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13869 | + | |
13870 | fi | |
13871 | -echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 | |
13872 | -echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6 | |
13873 | - if test $gl_cv_header_inttypes_h = yes; then | |
13874 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
13875 | +$as_echo "$ac_cv_host" >&6; } | |
13876 | +case $ac_cv_host in | |
13877 | +*-*-*) ;; | |
13878 | +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
13879 | +esac | |
13880 | +host=$ac_cv_host | |
13881 | +ac_save_IFS=$IFS; IFS='-' | |
13882 | +set x $ac_cv_host | |
13883 | +shift | |
13884 | +host_cpu=$1 | |
13885 | +host_vendor=$2 | |
13886 | +shift; shift | |
13887 | +# Remember, the first character of IFS is used to create $*, | |
13888 | +# except with old shells: | |
13889 | +host_os=$* | |
13890 | +IFS=$ac_save_IFS | |
13891 | +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
13892 | ||
13893 | -cat >>confdefs.h <<_ACEOF | |
13894 | -#define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
13895 | -_ACEOF | |
13896 | ||
13897 | - fi | |
13898 | ||
13899 | +# Check whether --with-gnu-ld was given. | |
13900 | +if test "${with_gnu_ld+set}" = set; then : | |
13901 | + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
13902 | +else | |
13903 | + with_gnu_ld=no | |
13904 | +fi | |
13905 | ||
13906 | - echo "$as_me:$LINENO: checking for stdint.h" >&5 | |
13907 | -echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 | |
13908 | -if test "${gl_cv_header_stdint_h+set}" = set; then | |
13909 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13910 | +# Prepare PATH_SEPARATOR. | |
13911 | +# The user is always right. | |
13912 | +if test "${PATH_SEPARATOR+set}" != set; then | |
13913 | + echo "#! /bin/sh" >conf$$.sh | |
13914 | + echo "exit 0" >>conf$$.sh | |
13915 | + chmod +x conf$$.sh | |
13916 | + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13917 | + PATH_SEPARATOR=';' | |
13918 | + else | |
13919 | + PATH_SEPARATOR=: | |
13920 | + fi | |
13921 | + rm -f conf$$.sh | |
13922 | +fi | |
13923 | +ac_prog=ld | |
13924 | +if test "$GCC" = yes; then | |
13925 | + # Check if gcc -print-prog-name=ld gives a path. | |
13926 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
13927 | +$as_echo_n "checking for ld used by GCC... " >&6; } | |
13928 | + case $host in | |
13929 | + *-*-mingw*) | |
13930 | + # gcc leaves a trailing carriage return which upsets mingw | |
13931 | + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
13932 | + *) | |
13933 | + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
13934 | + esac | |
13935 | + case $ac_prog in | |
13936 | + # Accept absolute paths. | |
13937 | + [\\/]* | [A-Za-z]:[\\/]*) | |
13938 | + re_direlt='/[^/][^/]*/\.\./' | |
13939 | + # Canonicalize the path of ld | |
13940 | + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
13941 | + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
13942 | + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
13943 | + done | |
13944 | + test -z "$LD" && LD="$ac_prog" | |
13945 | + ;; | |
13946 | + "") | |
13947 | + # If it fails, then pretend we aren't using GCC. | |
13948 | + ac_prog=ld | |
13949 | + ;; | |
13950 | + *) | |
13951 | + # If it is relative, then search for the first ld in PATH. | |
13952 | + with_gnu_ld=unknown | |
13953 | + ;; | |
13954 | + esac | |
13955 | +elif test "$with_gnu_ld" = yes; then | |
13956 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
13957 | +$as_echo_n "checking for GNU ld... " >&6; } | |
13958 | else | |
13959 | - cat >conftest.$ac_ext <<_ACEOF | |
13960 | -/* confdefs.h. */ | |
13961 | -_ACEOF | |
13962 | -cat confdefs.h >>conftest.$ac_ext | |
13963 | -cat >>conftest.$ac_ext <<_ACEOF | |
13964 | -/* end confdefs.h. */ | |
13965 | -#include <sys/types.h> | |
13966 | -#include <stdint.h> | |
13967 | -int | |
13968 | -main () | |
13969 | -{ | |
13970 | -uintmax_t i = (uintmax_t) -1; | |
13971 | - ; | |
13972 | - return 0; | |
13973 | -} | |
13974 | -_ACEOF | |
13975 | -rm -f conftest.$ac_objext | |
13976 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13977 | - (eval $ac_compile) 2>conftest.er1 | |
13978 | - ac_status=$? | |
13979 | - grep -v '^ *+' conftest.er1 >conftest.err | |
13980 | - rm -f conftest.er1 | |
13981 | - cat conftest.err >&5 | |
13982 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13983 | - (exit $ac_status); } && | |
13984 | - { ac_try='test -z "$ac_c_werror_flag" | |
13985 | - || test ! -s conftest.err' | |
13986 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13987 | - (eval $ac_try) 2>&5 | |
13988 | - ac_status=$? | |
13989 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13990 | - (exit $ac_status); }; } && | |
13991 | - { ac_try='test -s conftest.$ac_objext' | |
13992 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13993 | - (eval $ac_try) 2>&5 | |
13994 | - ac_status=$? | |
13995 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13996 | - (exit $ac_status); }; }; then | |
13997 | - gl_cv_header_stdint_h=yes | |
13998 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
13999 | +$as_echo_n "checking for non-GNU ld... " >&6; } | |
14000 | +fi | |
14001 | +if ${acl_cv_path_LD+:} false; then : | |
14002 | + $as_echo_n "(cached) " >&6 | |
14003 | else | |
14004 | - echo "$as_me: failed program was:" >&5 | |
14005 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
14006 | - | |
14007 | -gl_cv_header_stdint_h=no | |
14008 | + if test -z "$LD"; then | |
14009 | + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
14010 | + for ac_dir in $PATH; do | |
14011 | + test -z "$ac_dir" && ac_dir=. | |
14012 | + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
14013 | + acl_cv_path_LD="$ac_dir/$ac_prog" | |
14014 | + # Check to see if the program is GNU ld. I'd rather use --version, | |
14015 | + # but apparently some GNU ld's only accept -v. | |
14016 | + # Break only if it was the GNU/non-GNU ld that we prefer. | |
14017 | + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
14018 | + *GNU* | *'with BFD'*) | |
14019 | + test "$with_gnu_ld" != no && break ;; | |
14020 | + *) | |
14021 | + test "$with_gnu_ld" != yes && break ;; | |
14022 | + esac | |
14023 | + fi | |
14024 | + done | |
14025 | + IFS="$ac_save_ifs" | |
14026 | +else | |
14027 | + acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
14028 | fi | |
14029 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14030 | fi | |
14031 | -echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 | |
14032 | -echo "${ECHO_T}$gl_cv_header_stdint_h" >&6 | |
14033 | - if test $gl_cv_header_stdint_h = yes; then | |
14034 | - | |
14035 | -cat >>confdefs.h <<_ACEOF | |
14036 | -#define HAVE_STDINT_H_WITH_UINTMAX 1 | |
14037 | -_ACEOF | |
14038 | ||
14039 | - fi | |
14040 | +LD="$acl_cv_path_LD" | |
14041 | +if test -n "$LD"; then | |
14042 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
14043 | +$as_echo "$LD" >&6; } | |
14044 | +else | |
14045 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14046 | +$as_echo "no" >&6; } | |
14047 | +fi | |
14048 | +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
14049 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
14050 | +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
14051 | +if ${acl_cv_prog_gnu_ld+:} false; then : | |
14052 | + $as_echo_n "(cached) " >&6 | |
14053 | +else | |
14054 | + # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
14055 | +case `$LD -v 2>&1 </dev/null` in | |
14056 | +*GNU* | *'with BFD'*) | |
14057 | + acl_cv_prog_gnu_ld=yes ;; | |
14058 | +*) | |
14059 | + acl_cv_prog_gnu_ld=no ;; | |
14060 | +esac | |
14061 | +fi | |
14062 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
14063 | +$as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
14064 | +with_gnu_ld=$acl_cv_prog_gnu_ld | |
14065 | ||
14066 | ||
14067 | ||
14068 | ||
14069 | - echo "$as_me:$LINENO: checking for intmax_t" >&5 | |
14070 | -echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 | |
14071 | -if test "${gt_cv_c_intmax_t+set}" = set; then | |
14072 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14073 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
14074 | +$as_echo_n "checking for shared library run path origin... " >&6; } | |
14075 | +if ${acl_cv_rpath+:} false; then : | |
14076 | + $as_echo_n "(cached) " >&6 | |
14077 | else | |
14078 | - cat >conftest.$ac_ext <<_ACEOF | |
14079 | -/* confdefs.h. */ | |
14080 | -_ACEOF | |
14081 | -cat confdefs.h >>conftest.$ac_ext | |
14082 | -cat >>conftest.$ac_ext <<_ACEOF | |
14083 | -/* end confdefs.h. */ | |
14084 | - | |
14085 | -#include <stddef.h> | |
14086 | -#include <stdlib.h> | |
14087 | -#if HAVE_STDINT_H_WITH_UINTMAX | |
14088 | -#include <stdint.h> | |
14089 | -#endif | |
14090 | -#if HAVE_INTTYPES_H_WITH_UINTMAX | |
14091 | -#include <inttypes.h> | |
14092 | -#endif | |
14093 | ||
14094 | -int | |
14095 | -main () | |
14096 | -{ | |
14097 | -intmax_t x = -1; | |
14098 | - ; | |
14099 | - return 0; | |
14100 | -} | |
14101 | -_ACEOF | |
14102 | -rm -f conftest.$ac_objext | |
14103 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14104 | - (eval $ac_compile) 2>conftest.er1 | |
14105 | - ac_status=$? | |
14106 | - grep -v '^ *+' conftest.er1 >conftest.err | |
14107 | - rm -f conftest.er1 | |
14108 | - cat conftest.err >&5 | |
14109 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14110 | - (exit $ac_status); } && | |
14111 | - { ac_try='test -z "$ac_c_werror_flag" | |
14112 | - || test ! -s conftest.err' | |
14113 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14114 | - (eval $ac_try) 2>&5 | |
14115 | - ac_status=$? | |
14116 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14117 | - (exit $ac_status); }; } && | |
14118 | - { ac_try='test -s conftest.$ac_objext' | |
14119 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14120 | - (eval $ac_try) 2>&5 | |
14121 | - ac_status=$? | |
14122 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14123 | - (exit $ac_status); }; }; then | |
14124 | - gt_cv_c_intmax_t=yes | |
14125 | -else | |
14126 | - echo "$as_me: failed program was:" >&5 | |
14127 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
14128 | + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
14129 | + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
14130 | + . ./conftest.sh | |
14131 | + rm -f ./conftest.sh | |
14132 | + acl_cv_rpath=done | |
14133 | ||
14134 | -gt_cv_c_intmax_t=no | |
14135 | fi | |
14136 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14137 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
14138 | +$as_echo "$acl_cv_rpath" >&6; } | |
14139 | + wl="$acl_cv_wl" | |
14140 | + acl_libext="$acl_cv_libext" | |
14141 | + acl_shlibext="$acl_cv_shlibext" | |
14142 | + acl_libname_spec="$acl_cv_libname_spec" | |
14143 | + acl_library_names_spec="$acl_cv_library_names_spec" | |
14144 | + acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
14145 | + acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
14146 | + acl_hardcode_direct="$acl_cv_hardcode_direct" | |
14147 | + acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
14148 | + # Check whether --enable-rpath was given. | |
14149 | +if test "${enable_rpath+set}" = set; then : | |
14150 | + enableval=$enable_rpath; : | |
14151 | +else | |
14152 | + enable_rpath=yes | |
14153 | fi | |
14154 | -echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 | |
14155 | -echo "${ECHO_T}$gt_cv_c_intmax_t" >&6 | |
14156 | - if test $gt_cv_c_intmax_t = yes; then | |
14157 | - | |
14158 | -cat >>confdefs.h <<\_ACEOF | |
14159 | -#define HAVE_INTMAX_T 1 | |
14160 | -_ACEOF | |
14161 | ||
14162 | - fi | |
14163 | ||
14164 | ||
14165 | ||
14166 | - echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 | |
14167 | -echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6 | |
14168 | -if test "${gt_cv_func_printf_posix+set}" = set; then | |
14169 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14170 | + acl_libdirstem=lib | |
14171 | + acl_libdirstem2= | |
14172 | + case "$host_os" in | |
14173 | + solaris*) | |
14174 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 | |
14175 | +$as_echo_n "checking for 64-bit host... " >&6; } | |
14176 | +if ${gl_cv_solaris_64bit+:} false; then : | |
14177 | + $as_echo_n "(cached) " >&6 | |
14178 | else | |
14179 | - | |
14180 | - if test "$cross_compiling" = yes; then | |
14181 | - | |
14182 | - cat >conftest.$ac_ext <<_ACEOF | |
14183 | -/* confdefs.h. */ | |
14184 | -_ACEOF | |
14185 | -cat confdefs.h >>conftest.$ac_ext | |
14186 | -cat >>conftest.$ac_ext <<_ACEOF | |
14187 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14188 | /* end confdefs.h. */ | |
14189 | ||
14190 | -#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ | |
14191 | - notposix | |
14192 | +#ifdef _LP64 | |
14193 | +sixtyfour bits | |
14194 | #endif | |
14195 | ||
14196 | _ACEOF | |
14197 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14198 | - $EGREP "notposix" >/dev/null 2>&1; then | |
14199 | - gt_cv_func_printf_posix="guessing no" | |
14200 | + $EGREP "sixtyfour bits" >/dev/null 2>&1; then : | |
14201 | + gl_cv_solaris_64bit=yes | |
14202 | else | |
14203 | - gt_cv_func_printf_posix="guessing yes" | |
14204 | + gl_cv_solaris_64bit=no | |
14205 | fi | |
14206 | rm -f conftest* | |
14207 | ||
14208 | ||
14209 | -else | |
14210 | - cat >conftest.$ac_ext <<_ACEOF | |
14211 | -/* confdefs.h. */ | |
14212 | -_ACEOF | |
14213 | -cat confdefs.h >>conftest.$ac_ext | |
14214 | -cat >>conftest.$ac_ext <<_ACEOF | |
14215 | -/* end confdefs.h. */ | |
14216 | - | |
14217 | -#include <stdio.h> | |
14218 | -#include <string.h> | |
14219 | -/* The string "%2$d %1$d", with dollar characters protected from the shell's | |
14220 | - dollar expansion (possibly an autoconf bug). */ | |
14221 | -static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; | |
14222 | -static char buf[100]; | |
14223 | -int main () | |
14224 | -{ | |
14225 | - sprintf (buf, format, 33, 55); | |
14226 | - return (strcmp (buf, "55 33") != 0); | |
14227 | -} | |
14228 | -_ACEOF | |
14229 | -rm -f conftest$ac_exeext | |
14230 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14231 | - (eval $ac_link) 2>&5 | |
14232 | - ac_status=$? | |
14233 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14234 | - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14235 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14236 | - (eval $ac_try) 2>&5 | |
14237 | - ac_status=$? | |
14238 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14239 | - (exit $ac_status); }; }; then | |
14240 | - gt_cv_func_printf_posix=yes | |
14241 | -else | |
14242 | - echo "$as_me: program exited with status $ac_status" >&5 | |
14243 | -echo "$as_me: failed program was:" >&5 | |
14244 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
14245 | - | |
14246 | -( exit $ac_status ) | |
14247 | -gt_cv_func_printf_posix=no | |
14248 | -fi | |
14249 | -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14250 | fi | |
14251 | - | |
14252 | -fi | |
14253 | -echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 | |
14254 | -echo "${ECHO_T}$gt_cv_func_printf_posix" >&6 | |
14255 | - case $gt_cv_func_printf_posix in | |
14256 | - *yes) | |
14257 | - | |
14258 | -cat >>confdefs.h <<\_ACEOF | |
14259 | -#define HAVE_POSIX_PRINTF 1 | |
14260 | -_ACEOF | |
14261 | - | |
14262 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 | |
14263 | +$as_echo "$gl_cv_solaris_64bit" >&6; } | |
14264 | + if test $gl_cv_solaris_64bit = yes; then | |
14265 | + acl_libdirstem=lib/64 | |
14266 | + case "$host_cpu" in | |
14267 | + sparc*) acl_libdirstem2=lib/sparcv9 ;; | |
14268 | + i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; | |
14269 | + esac | |
14270 | + fi | |
14271 | + ;; | |
14272 | + *) | |
14273 | + searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
14274 | + if test -n "$searchpath"; then | |
14275 | + acl_save_IFS="${IFS= }"; IFS=":" | |
14276 | + for searchdir in $searchpath; do | |
14277 | + if test -d "$searchdir"; then | |
14278 | + case "$searchdir" in | |
14279 | + */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
14280 | + */../ | */.. ) | |
14281 | + # Better ignore directories of this form. They are misleading. | |
14282 | + ;; | |
14283 | + *) searchdir=`cd "$searchdir" && pwd` | |
14284 | + case "$searchdir" in | |
14285 | + */lib64 ) acl_libdirstem=lib64 ;; | |
14286 | + esac ;; | |
14287 | + esac | |
14288 | + fi | |
14289 | + done | |
14290 | + IFS="$acl_save_IFS" | |
14291 | + fi | |
14292 | ;; | |
14293 | esac | |
14294 | + test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
14295 | ||
14296 | -# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
14297 | -# for constant arguments. Useless! | |
14298 | -echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
14299 | -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
14300 | -if test "${ac_cv_working_alloca_h+set}" = set; then | |
14301 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14302 | -else | |
14303 | - cat >conftest.$ac_ext <<_ACEOF | |
14304 | -/* confdefs.h. */ | |
14305 | -_ACEOF | |
14306 | -cat confdefs.h >>conftest.$ac_ext | |
14307 | -cat >>conftest.$ac_ext <<_ACEOF | |
14308 | -/* end confdefs.h. */ | |
14309 | -#include <alloca.h> | |
14310 | -int | |
14311 | -main () | |
14312 | -{ | |
14313 | -char *p = (char *) alloca (2 * sizeof (int)); | |
14314 | - ; | |
14315 | - return 0; | |
14316 | -} | |
14317 | -_ACEOF | |
14318 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
14319 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14320 | - (eval $ac_link) 2>conftest.er1 | |
14321 | - ac_status=$? | |
14322 | - grep -v '^ *+' conftest.er1 >conftest.err | |
14323 | - rm -f conftest.er1 | |
14324 | - cat conftest.err >&5 | |
14325 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14326 | - (exit $ac_status); } && | |
14327 | - { ac_try='test -z "$ac_c_werror_flag" | |
14328 | - || test ! -s conftest.err' | |
14329 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14330 | - (eval $ac_try) 2>&5 | |
14331 | - ac_status=$? | |
14332 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14333 | - (exit $ac_status); }; } && | |
14334 | - { ac_try='test -s conftest$ac_exeext' | |
14335 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14336 | - (eval $ac_try) 2>&5 | |
14337 | - ac_status=$? | |
14338 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14339 | - (exit $ac_status); }; }; then | |
14340 | - ac_cv_working_alloca_h=yes | |
14341 | -else | |
14342 | - echo "$as_me: failed program was:" >&5 | |
14343 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
14344 | - | |
14345 | -ac_cv_working_alloca_h=no | |
14346 | -fi | |
14347 | -rm -f conftest.err conftest.$ac_objext \ | |
14348 | - conftest$ac_exeext conftest.$ac_ext | |
14349 | -fi | |
14350 | -echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
14351 | -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
14352 | -if test $ac_cv_working_alloca_h = yes; then | |
14353 | - | |
14354 | -cat >>confdefs.h <<\_ACEOF | |
14355 | -#define HAVE_ALLOCA_H 1 | |
14356 | -_ACEOF | |
14357 | - | |
14358 | -fi | |
14359 | - | |
14360 | -echo "$as_me:$LINENO: checking for alloca" >&5 | |
14361 | -echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
14362 | -if test "${ac_cv_func_alloca_works+set}" = set; then | |
14363 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14364 | -else | |
14365 | - cat >conftest.$ac_ext <<_ACEOF | |
14366 | -/* confdefs.h. */ | |
14367 | -_ACEOF | |
14368 | -cat confdefs.h >>conftest.$ac_ext | |
14369 | -cat >>conftest.$ac_ext <<_ACEOF | |
14370 | -/* end confdefs.h. */ | |
14371 | -#ifdef __GNUC__ | |
14372 | -# define alloca __builtin_alloca | |
14373 | -#else | |
14374 | -# ifdef _MSC_VER | |
14375 | -# include <malloc.h> | |
14376 | -# define alloca _alloca | |
14377 | -# else | |
14378 | -# if HAVE_ALLOCA_H | |
14379 | -# include <alloca.h> | |
14380 | -# else | |
14381 | -# ifdef _AIX | |
14382 | - #pragma alloca | |
14383 | -# else | |
14384 | -# ifndef alloca /* predefined by HP cc +Olibcalls */ | |
14385 | -char *alloca (); | |
14386 | -# endif | |
14387 | -# endif | |
14388 | -# endif | |
14389 | -# endif | |
14390 | -#endif | |
14391 | - | |
14392 | -int | |
14393 | -main () | |
14394 | -{ | |
14395 | -char *p = (char *) alloca (1); | |
14396 | - ; | |
14397 | - return 0; | |
14398 | -} | |
14399 | -_ACEOF | |
14400 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
14401 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14402 | - (eval $ac_link) 2>conftest.er1 | |
14403 | - ac_status=$? | |
14404 | - grep -v '^ *+' conftest.er1 >conftest.err | |
14405 | - rm -f conftest.er1 | |
14406 | - cat conftest.err >&5 | |
14407 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14408 | - (exit $ac_status); } && | |
14409 | - { ac_try='test -z "$ac_c_werror_flag" | |
14410 | - || test ! -s conftest.err' | |
14411 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14412 | - (eval $ac_try) 2>&5 | |
14413 | - ac_status=$? | |
14414 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14415 | - (exit $ac_status); }; } && | |
14416 | - { ac_try='test -s conftest$ac_exeext' | |
14417 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14418 | - (eval $ac_try) 2>&5 | |
14419 | - ac_status=$? | |
14420 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14421 | - (exit $ac_status); }; }; then | |
14422 | - ac_cv_func_alloca_works=yes | |
14423 | -else | |
14424 | - echo "$as_me: failed program was:" >&5 | |
14425 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
14426 | - | |
14427 | -ac_cv_func_alloca_works=no | |
14428 | -fi | |
14429 | -rm -f conftest.err conftest.$ac_objext \ | |
14430 | - conftest$ac_exeext conftest.$ac_ext | |
14431 | -fi | |
14432 | -echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
14433 | -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
14434 | - | |
14435 | -if test $ac_cv_func_alloca_works = yes; then | |
14436 | - | |
14437 | -cat >>confdefs.h <<\_ACEOF | |
14438 | -#define HAVE_ALLOCA 1 | |
14439 | -_ACEOF | |
14440 | - | |
14441 | -else | |
14442 | - # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
14443 | -# that cause trouble. Some versions do not even contain alloca or | |
14444 | -# contain a buggy version. If you still want to use their alloca, | |
14445 | -# use ar to extract alloca.o from them instead of compiling alloca.c. | |
14446 | ||
14447 | -ALLOCA=alloca.$ac_objext | |
14448 | ||
14449 | -cat >>confdefs.h <<\_ACEOF | |
14450 | -#define C_ALLOCA 1 | |
14451 | -_ACEOF | |
14452 | ||
14453 | ||
14454 | -echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
14455 | -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
14456 | -if test "${ac_cv_os_cray+set}" = set; then | |
14457 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14458 | -else | |
14459 | - cat >conftest.$ac_ext <<_ACEOF | |
14460 | -/* confdefs.h. */ | |
14461 | -_ACEOF | |
14462 | -cat confdefs.h >>conftest.$ac_ext | |
14463 | -cat >>conftest.$ac_ext <<_ACEOF | |
14464 | -/* end confdefs.h. */ | |
14465 | -#if defined(CRAY) && ! defined(CRAY2) | |
14466 | -webecray | |
14467 | -#else | |
14468 | -wenotbecray | |
14469 | -#endif | |
14470 | ||
14471 | -_ACEOF | |
14472 | -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14473 | - $EGREP "webecray" >/dev/null 2>&1; then | |
14474 | - ac_cv_os_cray=yes | |
14475 | -else | |
14476 | - ac_cv_os_cray=no | |
14477 | -fi | |
14478 | -rm -f conftest* | |
14479 | ||
14480 | -fi | |
14481 | -echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | |
14482 | -echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
14483 | -if test $ac_cv_os_cray = yes; then | |
14484 | - for ac_func in _getb67 GETB67 getb67; do | |
14485 | - as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14486 | -echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14487 | -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14488 | -if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14489 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14490 | -else | |
14491 | - cat >conftest.$ac_ext <<_ACEOF | |
14492 | -/* confdefs.h. */ | |
14493 | -_ACEOF | |
14494 | -cat confdefs.h >>conftest.$ac_ext | |
14495 | -cat >>conftest.$ac_ext <<_ACEOF | |
14496 | -/* end confdefs.h. */ | |
14497 | -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14498 | - For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14499 | -#define $ac_func innocuous_$ac_func | |
14500 | ||
14501 | -/* System header to define __stub macros and hopefully few prototypes, | |
14502 | - which can conflict with char $ac_func (); below. | |
14503 | - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14504 | - <limits.h> exists even on freestanding compilers. */ | |
14505 | ||
14506 | -#ifdef __STDC__ | |
14507 | -# include <limits.h> | |
14508 | -#else | |
14509 | -# include <assert.h> | |
14510 | -#endif | |
14511 | ||
14512 | -#undef $ac_func | |
14513 | ||
14514 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
14515 | -#ifdef __cplusplus | |
14516 | -extern "C" | |
14517 | -{ | |
14518 | -#endif | |
14519 | -/* We use char because int might match the return type of a gcc2 | |
14520 | - builtin and then its argument prototype would still apply. */ | |
14521 | -char $ac_func (); | |
14522 | -/* The GNU C library defines this for functions which it implements | |
14523 | - to always fail with ENOSYS. Some functions are actually named | |
14524 | - something starting with __ and the normal name is an alias. */ | |
14525 | -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14526 | -choke me | |
14527 | -#else | |
14528 | -char (*f) () = $ac_func; | |
14529 | -#endif | |
14530 | -#ifdef __cplusplus | |
14531 | -} | |
14532 | -#endif | |
14533 | ||
14534 | -int | |
14535 | -main () | |
14536 | -{ | |
14537 | -return f != $ac_func; | |
14538 | - ; | |
14539 | - return 0; | |
14540 | -} | |
14541 | -_ACEOF | |
14542 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
14543 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14544 | - (eval $ac_link) 2>conftest.er1 | |
14545 | - ac_status=$? | |
14546 | - grep -v '^ *+' conftest.er1 >conftest.err | |
14547 | - rm -f conftest.er1 | |
14548 | - cat conftest.err >&5 | |
14549 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14550 | - (exit $ac_status); } && | |
14551 | - { ac_try='test -z "$ac_c_werror_flag" | |
14552 | - || test ! -s conftest.err' | |
14553 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14554 | - (eval $ac_try) 2>&5 | |
14555 | - ac_status=$? | |
14556 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14557 | - (exit $ac_status); }; } && | |
14558 | - { ac_try='test -s conftest$ac_exeext' | |
14559 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14560 | - (eval $ac_try) 2>&5 | |
14561 | - ac_status=$? | |
14562 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14563 | - (exit $ac_status); }; }; then | |
14564 | - eval "$as_ac_var=yes" | |
14565 | -else | |
14566 | - echo "$as_me: failed program was:" >&5 | |
14567 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
14568 | + use_additional=yes | |
14569 | ||
14570 | -eval "$as_ac_var=no" | |
14571 | -fi | |
14572 | -rm -f conftest.err conftest.$ac_objext \ | |
14573 | - conftest$ac_exeext conftest.$ac_ext | |
14574 | -fi | |
14575 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14576 | -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14577 | -if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14578 | + acl_save_prefix="$prefix" | |
14579 | + prefix="$acl_final_prefix" | |
14580 | + acl_save_exec_prefix="$exec_prefix" | |
14581 | + exec_prefix="$acl_final_exec_prefix" | |
14582 | ||
14583 | -cat >>confdefs.h <<_ACEOF | |
14584 | -#define CRAY_STACKSEG_END $ac_func | |
14585 | -_ACEOF | |
14586 | + eval additional_includedir=\"$includedir\" | |
14587 | + eval additional_libdir=\"$libdir\" | |
14588 | ||
14589 | - break | |
14590 | -fi | |
14591 | + exec_prefix="$acl_save_exec_prefix" | |
14592 | + prefix="$acl_save_prefix" | |
14593 | ||
14594 | - done | |
14595 | -fi | |
14596 | ||
14597 | -echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
14598 | -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
14599 | -if test "${ac_cv_c_stack_direction+set}" = set; then | |
14600 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14601 | -else | |
14602 | - if test "$cross_compiling" = yes; then | |
14603 | - ac_cv_c_stack_direction=0 | |
14604 | -else | |
14605 | - cat >conftest.$ac_ext <<_ACEOF | |
14606 | -/* confdefs.h. */ | |
14607 | -_ACEOF | |
14608 | -cat confdefs.h >>conftest.$ac_ext | |
14609 | -cat >>conftest.$ac_ext <<_ACEOF | |
14610 | -/* end confdefs.h. */ | |
14611 | -int | |
14612 | -find_stack_direction () | |
14613 | -{ | |
14614 | - static char *addr = 0; | |
14615 | - auto char dummy; | |
14616 | - if (addr == 0) | |
14617 | - { | |
14618 | - addr = &dummy; | |
14619 | - return find_stack_direction (); | |
14620 | - } | |
14621 | - else | |
14622 | - return (&dummy > addr) ? 1 : -1; | |
14623 | -} | |
14624 | +# Check whether --with-libiconv-prefix was given. | |
14625 | +if test "${with_libiconv_prefix+set}" = set; then : | |
14626 | + withval=$with_libiconv_prefix; | |
14627 | + if test "X$withval" = "Xno"; then | |
14628 | + use_additional=no | |
14629 | + else | |
14630 | + if test "X$withval" = "X"; then | |
14631 | ||
14632 | -int | |
14633 | -main () | |
14634 | -{ | |
14635 | - exit (find_stack_direction () < 0); | |
14636 | -} | |
14637 | -_ACEOF | |
14638 | -rm -f conftest$ac_exeext | |
14639 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14640 | - (eval $ac_link) 2>&5 | |
14641 | - ac_status=$? | |
14642 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14643 | - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14644 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14645 | - (eval $ac_try) 2>&5 | |
14646 | - ac_status=$? | |
14647 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14648 | - (exit $ac_status); }; }; then | |
14649 | - ac_cv_c_stack_direction=1 | |
14650 | -else | |
14651 | - echo "$as_me: program exited with status $ac_status" >&5 | |
14652 | -echo "$as_me: failed program was:" >&5 | |
14653 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
14654 | + acl_save_prefix="$prefix" | |
14655 | + prefix="$acl_final_prefix" | |
14656 | + acl_save_exec_prefix="$exec_prefix" | |
14657 | + exec_prefix="$acl_final_exec_prefix" | |
14658 | ||
14659 | -( exit $ac_status ) | |
14660 | -ac_cv_c_stack_direction=-1 | |
14661 | -fi | |
14662 | -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14663 | -fi | |
14664 | -fi | |
14665 | -echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
14666 | -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
14667 | + eval additional_includedir=\"$includedir\" | |
14668 | + eval additional_libdir=\"$libdir\" | |
14669 | ||
14670 | -cat >>confdefs.h <<_ACEOF | |
14671 | -#define STACK_DIRECTION $ac_cv_c_stack_direction | |
14672 | -_ACEOF | |
14673 | + exec_prefix="$acl_save_exec_prefix" | |
14674 | + prefix="$acl_save_prefix" | |
14675 | ||
14676 | + else | |
14677 | + additional_includedir="$withval/include" | |
14678 | + additional_libdir="$withval/$acl_libdirstem" | |
14679 | + if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
14680 | + && ! test -d "$withval/$acl_libdirstem"; then | |
14681 | + additional_libdir="$withval/$acl_libdirstem2" | |
14682 | + fi | |
14683 | + fi | |
14684 | + fi | |
14685 | ||
14686 | fi | |
14687 | ||
14688 | + LIBICONV= | |
14689 | + LTLIBICONV= | |
14690 | + INCICONV= | |
14691 | + LIBICONV_PREFIX= | |
14692 | + HAVE_LIBICONV= | |
14693 | + rpathdirs= | |
14694 | + ltrpathdirs= | |
14695 | + names_already_handled= | |
14696 | + names_next_round='iconv ' | |
14697 | + while test -n "$names_next_round"; do | |
14698 | + names_this_round="$names_next_round" | |
14699 | + names_next_round= | |
14700 | + for name in $names_this_round; do | |
14701 | + already_handled= | |
14702 | + for n in $names_already_handled; do | |
14703 | + if test "$n" = "$name"; then | |
14704 | + already_handled=yes | |
14705 | + break | |
14706 | + fi | |
14707 | + done | |
14708 | + if test -z "$already_handled"; then | |
14709 | + names_already_handled="$names_already_handled $name" | |
14710 | + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
14711 | + eval value=\"\$HAVE_LIB$uppername\" | |
14712 | + if test -n "$value"; then | |
14713 | + if test "$value" = yes; then | |
14714 | + eval value=\"\$LIB$uppername\" | |
14715 | + test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
14716 | + eval value=\"\$LTLIB$uppername\" | |
14717 | + test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
14718 | + else | |
14719 | + : | |
14720 | + fi | |
14721 | + else | |
14722 | + found_dir= | |
14723 | + found_la= | |
14724 | + found_so= | |
14725 | + found_a= | |
14726 | + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
14727 | + if test -n "$acl_shlibext"; then | |
14728 | + shrext=".$acl_shlibext" # typically: shrext=.so | |
14729 | + else | |
14730 | + shrext= | |
14731 | + fi | |
14732 | + if test $use_additional = yes; then | |
14733 | + dir="$additional_libdir" | |
14734 | + if test -n "$acl_shlibext"; then | |
14735 | + if test -f "$dir/$libname$shrext"; then | |
14736 | + found_dir="$dir" | |
14737 | + found_so="$dir/$libname$shrext" | |
14738 | + else | |
14739 | + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
14740 | + ver=`(cd "$dir" && \ | |
14741 | + for f in "$libname$shrext".*; do echo "$f"; done \ | |
14742 | + | sed -e "s,^$libname$shrext\\\\.,," \ | |
14743 | + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
14744 | + | sed 1q ) 2>/dev/null` | |
14745 | + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
14746 | + found_dir="$dir" | |
14747 | + found_so="$dir/$libname$shrext.$ver" | |
14748 | + fi | |
14749 | + else | |
14750 | + eval library_names=\"$acl_library_names_spec\" | |
14751 | + for f in $library_names; do | |
14752 | + if test -f "$dir/$f"; then | |
14753 | + found_dir="$dir" | |
14754 | + found_so="$dir/$f" | |
14755 | + break | |
14756 | + fi | |
14757 | + done | |
14758 | + fi | |
14759 | + fi | |
14760 | + fi | |
14761 | + if test "X$found_dir" = "X"; then | |
14762 | + if test -f "$dir/$libname.$acl_libext"; then | |
14763 | + found_dir="$dir" | |
14764 | + found_a="$dir/$libname.$acl_libext" | |
14765 | + fi | |
14766 | + fi | |
14767 | + if test "X$found_dir" != "X"; then | |
14768 | + if test -f "$dir/$libname.la"; then | |
14769 | + found_la="$dir/$libname.la" | |
14770 | + fi | |
14771 | + fi | |
14772 | + fi | |
14773 | + if test "X$found_dir" = "X"; then | |
14774 | + for x in $LDFLAGS $LTLIBICONV; do | |
14775 | ||
14776 | - | |
14777 | -for ac_header in stdlib.h unistd.h | |
14778 | -do | |
14779 | -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14780 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14781 | - echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14782 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14783 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14784 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14785 | -fi | |
14786 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14787 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14788 | -else | |
14789 | - # Is the header compilable? | |
14790 | -echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14791 | -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14792 | -cat >conftest.$ac_ext <<_ACEOF | |
14793 | -/* confdefs.h. */ | |
14794 | -_ACEOF | |
14795 | -cat confdefs.h >>conftest.$ac_ext | |
14796 | -cat >>conftest.$ac_ext <<_ACEOF | |
14797 | -/* end confdefs.h. */ | |
14798 | -$ac_includes_default | |
14799 | -#include <$ac_header> | |
14800 | -_ACEOF | |
14801 | -rm -f conftest.$ac_objext | |
14802 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14803 | - (eval $ac_compile) 2>conftest.er1 | |
14804 | - ac_status=$? | |
14805 | - grep -v '^ *+' conftest.er1 >conftest.err | |
14806 | - rm -f conftest.er1 | |
14807 | - cat conftest.err >&5 | |
14808 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14809 | - (exit $ac_status); } && | |
14810 | - { ac_try='test -z "$ac_c_werror_flag" | |
14811 | - || test ! -s conftest.err' | |
14812 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14813 | - (eval $ac_try) 2>&5 | |
14814 | - ac_status=$? | |
14815 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14816 | - (exit $ac_status); }; } && | |
14817 | - { ac_try='test -s conftest.$ac_objext' | |
14818 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14819 | - (eval $ac_try) 2>&5 | |
14820 | - ac_status=$? | |
14821 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14822 | - (exit $ac_status); }; }; then | |
14823 | - ac_header_compiler=yes | |
14824 | -else | |
14825 | - echo "$as_me: failed program was:" >&5 | |
14826 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
14827 | - | |
14828 | -ac_header_compiler=no | |
14829 | -fi | |
14830 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14831 | -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14832 | -echo "${ECHO_T}$ac_header_compiler" >&6 | |
14833 | - | |
14834 | -# Is the header present? | |
14835 | -echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14836 | -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14837 | -cat >conftest.$ac_ext <<_ACEOF | |
14838 | -/* confdefs.h. */ | |
14839 | -_ACEOF | |
14840 | -cat confdefs.h >>conftest.$ac_ext | |
14841 | -cat >>conftest.$ac_ext <<_ACEOF | |
14842 | -/* end confdefs.h. */ | |
14843 | -#include <$ac_header> | |
14844 | -_ACEOF | |
14845 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14846 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14847 | - ac_status=$? | |
14848 | - grep -v '^ *+' conftest.er1 >conftest.err | |
14849 | - rm -f conftest.er1 | |
14850 | - cat conftest.err >&5 | |
14851 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14852 | - (exit $ac_status); } >/dev/null; then | |
14853 | - if test -s conftest.err; then | |
14854 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
14855 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14856 | - else | |
14857 | - ac_cpp_err= | |
14858 | - fi | |
14859 | -else | |
14860 | - ac_cpp_err=yes | |
14861 | -fi | |
14862 | -if test -z "$ac_cpp_err"; then | |
14863 | - ac_header_preproc=yes | |
14864 | -else | |
14865 | - echo "$as_me: failed program was:" >&5 | |
14866 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
14867 | - | |
14868 | - ac_header_preproc=no | |
14869 | -fi | |
14870 | -rm -f conftest.err conftest.$ac_ext | |
14871 | -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14872 | -echo "${ECHO_T}$ac_header_preproc" >&6 | |
14873 | - | |
14874 | -# So? What about this header? | |
14875 | -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14876 | - yes:no: ) | |
14877 | - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14878 | -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14879 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14880 | -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14881 | - ac_header_preproc=yes | |
14882 | - ;; | |
14883 | - no:yes:* ) | |
14884 | - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14885 | -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14886 | - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14887 | -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14888 | - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14889 | -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14890 | - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14891 | -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14892 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14893 | -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14894 | - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14895 | -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14896 | - ( | |
14897 | - cat <<\_ASBOX | |
14898 | -## ------------------------------------------ ## | |
14899 | -## Report this to the AC_PACKAGE_NAME lists. ## | |
14900 | -## ------------------------------------------ ## | |
14901 | -_ASBOX | |
14902 | - ) | | |
14903 | - sed "s/^/$as_me: WARNING: /" >&2 | |
14904 | - ;; | |
14905 | -esac | |
14906 | -echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14907 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14908 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14909 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14910 | -else | |
14911 | - eval "$as_ac_Header=\$ac_header_preproc" | |
14912 | -fi | |
14913 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14914 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14915 | - | |
14916 | -fi | |
14917 | -if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14918 | - cat >>confdefs.h <<_ACEOF | |
14919 | -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14920 | -_ACEOF | |
14921 | - | |
14922 | -fi | |
14923 | - | |
14924 | -done | |
14925 | - | |
14926 | - | |
14927 | -for ac_func in getpagesize | |
14928 | -do | |
14929 | -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14930 | -echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14931 | -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14932 | -if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14933 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14934 | -else | |
14935 | - cat >conftest.$ac_ext <<_ACEOF | |
14936 | -/* confdefs.h. */ | |
14937 | -_ACEOF | |
14938 | -cat confdefs.h >>conftest.$ac_ext | |
14939 | -cat >>conftest.$ac_ext <<_ACEOF | |
14940 | -/* end confdefs.h. */ | |
14941 | -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14942 | - For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14943 | -#define $ac_func innocuous_$ac_func | |
14944 | - | |
14945 | -/* System header to define __stub macros and hopefully few prototypes, | |
14946 | - which can conflict with char $ac_func (); below. | |
14947 | - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14948 | - <limits.h> exists even on freestanding compilers. */ | |
14949 | - | |
14950 | -#ifdef __STDC__ | |
14951 | -# include <limits.h> | |
14952 | -#else | |
14953 | -# include <assert.h> | |
14954 | -#endif | |
14955 | - | |
14956 | -#undef $ac_func | |
14957 | - | |
14958 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
14959 | -#ifdef __cplusplus | |
14960 | -extern "C" | |
14961 | -{ | |
14962 | -#endif | |
14963 | -/* We use char because int might match the return type of a gcc2 | |
14964 | - builtin and then its argument prototype would still apply. */ | |
14965 | -char $ac_func (); | |
14966 | -/* The GNU C library defines this for functions which it implements | |
14967 | - to always fail with ENOSYS. Some functions are actually named | |
14968 | - something starting with __ and the normal name is an alias. */ | |
14969 | -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14970 | -choke me | |
14971 | -#else | |
14972 | -char (*f) () = $ac_func; | |
14973 | -#endif | |
14974 | -#ifdef __cplusplus | |
14975 | -} | |
14976 | -#endif | |
14977 | - | |
14978 | -int | |
14979 | -main () | |
14980 | -{ | |
14981 | -return f != $ac_func; | |
14982 | - ; | |
14983 | - return 0; | |
14984 | -} | |
14985 | -_ACEOF | |
14986 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
14987 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14988 | - (eval $ac_link) 2>conftest.er1 | |
14989 | - ac_status=$? | |
14990 | - grep -v '^ *+' conftest.er1 >conftest.err | |
14991 | - rm -f conftest.er1 | |
14992 | - cat conftest.err >&5 | |
14993 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14994 | - (exit $ac_status); } && | |
14995 | - { ac_try='test -z "$ac_c_werror_flag" | |
14996 | - || test ! -s conftest.err' | |
14997 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14998 | - (eval $ac_try) 2>&5 | |
14999 | - ac_status=$? | |
15000 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15001 | - (exit $ac_status); }; } && | |
15002 | - { ac_try='test -s conftest$ac_exeext' | |
15003 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15004 | - (eval $ac_try) 2>&5 | |
15005 | - ac_status=$? | |
15006 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15007 | - (exit $ac_status); }; }; then | |
15008 | - eval "$as_ac_var=yes" | |
15009 | -else | |
15010 | - echo "$as_me: failed program was:" >&5 | |
15011 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
15012 | - | |
15013 | -eval "$as_ac_var=no" | |
15014 | -fi | |
15015 | -rm -f conftest.err conftest.$ac_objext \ | |
15016 | - conftest$ac_exeext conftest.$ac_ext | |
15017 | -fi | |
15018 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15019 | -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15020 | -if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15021 | - cat >>confdefs.h <<_ACEOF | |
15022 | -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15023 | -_ACEOF | |
15024 | - | |
15025 | -fi | |
15026 | -done | |
15027 | - | |
15028 | -echo "$as_me:$LINENO: checking for working mmap" >&5 | |
15029 | -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
15030 | -if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
15031 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15032 | -else | |
15033 | - if test "$cross_compiling" = yes; then | |
15034 | - ac_cv_func_mmap_fixed_mapped=no | |
15035 | -else | |
15036 | - cat >conftest.$ac_ext <<_ACEOF | |
15037 | -/* confdefs.h. */ | |
15038 | -_ACEOF | |
15039 | -cat confdefs.h >>conftest.$ac_ext | |
15040 | -cat >>conftest.$ac_ext <<_ACEOF | |
15041 | -/* end confdefs.h. */ | |
15042 | -$ac_includes_default | |
15043 | -/* malloc might have been renamed as rpl_malloc. */ | |
15044 | -#undef malloc | |
15045 | - | |
15046 | -/* Thanks to Mike Haertel and Jim Avera for this test. | |
15047 | - Here is a matrix of mmap possibilities: | |
15048 | - mmap private not fixed | |
15049 | - mmap private fixed at somewhere currently unmapped | |
15050 | - mmap private fixed at somewhere already mapped | |
15051 | - mmap shared not fixed | |
15052 | - mmap shared fixed at somewhere currently unmapped | |
15053 | - mmap shared fixed at somewhere already mapped | |
15054 | - For private mappings, we should verify that changes cannot be read() | |
15055 | - back from the file, nor mmap's back from the file at a different | |
15056 | - address. (There have been systems where private was not correctly | |
15057 | - implemented like the infamous i386 svr4.0, and systems where the | |
15058 | - VM page cache was not coherent with the file system buffer cache | |
15059 | - like early versions of FreeBSD and possibly contemporary NetBSD.) | |
15060 | - For shared mappings, we should conversely verify that changes get | |
15061 | - propagated back to all the places they're supposed to be. | |
15062 | - | |
15063 | - Grep wants private fixed already mapped. | |
15064 | - The main things grep needs to know about mmap are: | |
15065 | - * does it exist and is it safe to write into the mmap'd area | |
15066 | - * how to use it (BSD variants) */ | |
15067 | - | |
15068 | -#include <fcntl.h> | |
15069 | -#include <sys/mman.h> | |
15070 | - | |
15071 | -#if !STDC_HEADERS && !HAVE_STDLIB_H | |
15072 | -char *malloc (); | |
15073 | -#endif | |
15074 | - | |
15075 | -/* This mess was copied from the GNU getpagesize.h. */ | |
15076 | -#if !HAVE_GETPAGESIZE | |
15077 | -/* Assume that all systems that can run configure have sys/param.h. */ | |
15078 | -# if !HAVE_SYS_PARAM_H | |
15079 | -# define HAVE_SYS_PARAM_H 1 | |
15080 | -# endif | |
15081 | - | |
15082 | -# ifdef _SC_PAGESIZE | |
15083 | -# define getpagesize() sysconf(_SC_PAGESIZE) | |
15084 | -# else /* no _SC_PAGESIZE */ | |
15085 | -# if HAVE_SYS_PARAM_H | |
15086 | -# include <sys/param.h> | |
15087 | -# ifdef EXEC_PAGESIZE | |
15088 | -# define getpagesize() EXEC_PAGESIZE | |
15089 | -# else /* no EXEC_PAGESIZE */ | |
15090 | -# ifdef NBPG | |
15091 | -# define getpagesize() NBPG * CLSIZE | |
15092 | -# ifndef CLSIZE | |
15093 | -# define CLSIZE 1 | |
15094 | -# endif /* no CLSIZE */ | |
15095 | -# else /* no NBPG */ | |
15096 | -# ifdef NBPC | |
15097 | -# define getpagesize() NBPC | |
15098 | -# else /* no NBPC */ | |
15099 | -# ifdef PAGESIZE | |
15100 | -# define getpagesize() PAGESIZE | |
15101 | -# endif /* PAGESIZE */ | |
15102 | -# endif /* no NBPC */ | |
15103 | -# endif /* no NBPG */ | |
15104 | -# endif /* no EXEC_PAGESIZE */ | |
15105 | -# else /* no HAVE_SYS_PARAM_H */ | |
15106 | -# define getpagesize() 8192 /* punt totally */ | |
15107 | -# endif /* no HAVE_SYS_PARAM_H */ | |
15108 | -# endif /* no _SC_PAGESIZE */ | |
15109 | - | |
15110 | -#endif /* no HAVE_GETPAGESIZE */ | |
15111 | - | |
15112 | -int | |
15113 | -main () | |
15114 | -{ | |
15115 | - char *data, *data2, *data3; | |
15116 | - int i, pagesize; | |
15117 | - int fd; | |
15118 | - | |
15119 | - pagesize = getpagesize (); | |
15120 | - | |
15121 | - /* First, make a file with some known garbage in it. */ | |
15122 | - data = (char *) malloc (pagesize); | |
15123 | - if (!data) | |
15124 | - exit (1); | |
15125 | - for (i = 0; i < pagesize; ++i) | |
15126 | - *(data + i) = rand (); | |
15127 | - umask (0); | |
15128 | - fd = creat ("conftest.mmap", 0600); | |
15129 | - if (fd < 0) | |
15130 | - exit (1); | |
15131 | - if (write (fd, data, pagesize) != pagesize) | |
15132 | - exit (1); | |
15133 | - close (fd); | |
15134 | - | |
15135 | - /* Next, try to mmap the file at a fixed address which already has | |
15136 | - something else allocated at it. If we can, also make sure that | |
15137 | - we see the same garbage. */ | |
15138 | - fd = open ("conftest.mmap", O_RDWR); | |
15139 | - if (fd < 0) | |
15140 | - exit (1); | |
15141 | - data2 = (char *) malloc (2 * pagesize); | |
15142 | - if (!data2) | |
15143 | - exit (1); | |
15144 | - data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
15145 | - if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
15146 | - MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
15147 | - exit (1); | |
15148 | - for (i = 0; i < pagesize; ++i) | |
15149 | - if (*(data + i) != *(data2 + i)) | |
15150 | - exit (1); | |
15151 | - | |
15152 | - /* Finally, make sure that changes to the mapped area do not | |
15153 | - percolate back to the file as seen by read(). (This is a bug on | |
15154 | - some variants of i386 svr4.0.) */ | |
15155 | - for (i = 0; i < pagesize; ++i) | |
15156 | - *(data2 + i) = *(data2 + i) + 1; | |
15157 | - data3 = (char *) malloc (pagesize); | |
15158 | - if (!data3) | |
15159 | - exit (1); | |
15160 | - if (read (fd, data3, pagesize) != pagesize) | |
15161 | - exit (1); | |
15162 | - for (i = 0; i < pagesize; ++i) | |
15163 | - if (*(data + i) != *(data3 + i)) | |
15164 | - exit (1); | |
15165 | - close (fd); | |
15166 | - exit (0); | |
15167 | -} | |
15168 | -_ACEOF | |
15169 | -rm -f conftest$ac_exeext | |
15170 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15171 | - (eval $ac_link) 2>&5 | |
15172 | - ac_status=$? | |
15173 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15174 | - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15175 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15176 | - (eval $ac_try) 2>&5 | |
15177 | - ac_status=$? | |
15178 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15179 | - (exit $ac_status); }; }; then | |
15180 | - ac_cv_func_mmap_fixed_mapped=yes | |
15181 | -else | |
15182 | - echo "$as_me: program exited with status $ac_status" >&5 | |
15183 | -echo "$as_me: failed program was:" >&5 | |
15184 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
15185 | - | |
15186 | -( exit $ac_status ) | |
15187 | -ac_cv_func_mmap_fixed_mapped=no | |
15188 | -fi | |
15189 | -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15190 | -fi | |
15191 | -fi | |
15192 | -echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
15193 | -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
15194 | -if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
15195 | - | |
15196 | -cat >>confdefs.h <<\_ACEOF | |
15197 | -#define HAVE_MMAP 1 | |
15198 | -_ACEOF | |
15199 | - | |
15200 | -fi | |
15201 | -rm -f conftest.mmap | |
15202 | - | |
15203 | - | |
15204 | - echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 | |
15205 | -echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 | |
15206 | -if test "${ac_cv_gnu_library_2_1+set}" = set; then | |
15207 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15208 | -else | |
15209 | - cat >conftest.$ac_ext <<_ACEOF | |
15210 | -/* confdefs.h. */ | |
15211 | -_ACEOF | |
15212 | -cat confdefs.h >>conftest.$ac_ext | |
15213 | -cat >>conftest.$ac_ext <<_ACEOF | |
15214 | -/* end confdefs.h. */ | |
15215 | - | |
15216 | -#include <features.h> | |
15217 | -#ifdef __GNU_LIBRARY__ | |
15218 | - #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
15219 | - Lucky GNU user | |
15220 | - #endif | |
15221 | -#endif | |
15222 | - | |
15223 | -_ACEOF | |
15224 | -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15225 | - $EGREP "Lucky GNU user" >/dev/null 2>&1; then | |
15226 | - ac_cv_gnu_library_2_1=yes | |
15227 | -else | |
15228 | - ac_cv_gnu_library_2_1=no | |
15229 | -fi | |
15230 | -rm -f conftest* | |
15231 | - | |
15232 | - | |
15233 | - | |
15234 | -fi | |
15235 | -echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 | |
15236 | -echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 | |
15237 | - | |
15238 | - GLIBC21="$ac_cv_gnu_library_2_1" | |
15239 | - | |
15240 | - | |
15241 | - | |
15242 | - | |
15243 | - echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 | |
15244 | -echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6 | |
15245 | -if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then | |
15246 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15247 | -else | |
15248 | - | |
15249 | - if test "$cross_compiling" = yes; then | |
15250 | - | |
15251 | - # Guess based on the CPU. | |
15252 | - case "$host_cpu" in | |
15253 | - alpha* | i3456786 | m68k | s390*) | |
15254 | - gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
15255 | - *) | |
15256 | - gt_cv_int_divbyzero_sigfpe="guessing no";; | |
15257 | - esac | |
15258 | - | |
15259 | -else | |
15260 | - cat >conftest.$ac_ext <<_ACEOF | |
15261 | -/* confdefs.h. */ | |
15262 | -_ACEOF | |
15263 | -cat confdefs.h >>conftest.$ac_ext | |
15264 | -cat >>conftest.$ac_ext <<_ACEOF | |
15265 | -/* end confdefs.h. */ | |
15266 | - | |
15267 | -#include <stdlib.h> | |
15268 | -#include <signal.h> | |
15269 | - | |
15270 | -static void | |
15271 | -#ifdef __cplusplus | |
15272 | -sigfpe_handler (int sig) | |
15273 | -#else | |
15274 | -sigfpe_handler (sig) int sig; | |
15275 | -#endif | |
15276 | -{ | |
15277 | - /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ | |
15278 | - exit (sig != SIGFPE); | |
15279 | -} | |
15280 | - | |
15281 | -int x = 1; | |
15282 | -int y = 0; | |
15283 | -int z; | |
15284 | -int nan; | |
15285 | - | |
15286 | -int main () | |
15287 | -{ | |
15288 | - signal (SIGFPE, sigfpe_handler); | |
15289 | -/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
15290 | -#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
15291 | - signal (SIGTRAP, sigfpe_handler); | |
15292 | -#endif | |
15293 | -/* Linux/SPARC yields signal SIGILL. */ | |
15294 | -#if defined (__sparc__) && defined (__linux__) | |
15295 | - signal (SIGILL, sigfpe_handler); | |
15296 | -#endif | |
15297 | - | |
15298 | - z = x / y; | |
15299 | - nan = y / y; | |
15300 | - exit (1); | |
15301 | -} | |
15302 | - | |
15303 | -_ACEOF | |
15304 | -rm -f conftest$ac_exeext | |
15305 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15306 | - (eval $ac_link) 2>&5 | |
15307 | - ac_status=$? | |
15308 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15309 | - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15310 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15311 | - (eval $ac_try) 2>&5 | |
15312 | - ac_status=$? | |
15313 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15314 | - (exit $ac_status); }; }; then | |
15315 | - gt_cv_int_divbyzero_sigfpe=yes | |
15316 | -else | |
15317 | - echo "$as_me: program exited with status $ac_status" >&5 | |
15318 | -echo "$as_me: failed program was:" >&5 | |
15319 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
15320 | - | |
15321 | -( exit $ac_status ) | |
15322 | -gt_cv_int_divbyzero_sigfpe=no | |
15323 | -fi | |
15324 | -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15325 | -fi | |
15326 | - | |
15327 | -fi | |
15328 | -echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 | |
15329 | -echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6 | |
15330 | - case "$gt_cv_int_divbyzero_sigfpe" in | |
15331 | - *yes) value=1;; | |
15332 | - *) value=0;; | |
15333 | - esac | |
15334 | - | |
15335 | -cat >>confdefs.h <<_ACEOF | |
15336 | -#define INTDIV0_RAISES_SIGFPE $value | |
15337 | -_ACEOF | |
15338 | - | |
15339 | - | |
15340 | - | |
15341 | - echo "$as_me:$LINENO: checking for unsigned long long" >&5 | |
15342 | -echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 | |
15343 | -if test "${ac_cv_type_unsigned_long_long+set}" = set; then | |
15344 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15345 | -else | |
15346 | - cat >conftest.$ac_ext <<_ACEOF | |
15347 | -/* confdefs.h. */ | |
15348 | -_ACEOF | |
15349 | -cat confdefs.h >>conftest.$ac_ext | |
15350 | -cat >>conftest.$ac_ext <<_ACEOF | |
15351 | -/* end confdefs.h. */ | |
15352 | -unsigned long long ull = 1ULL; int i = 63; | |
15353 | -int | |
15354 | -main () | |
15355 | -{ | |
15356 | -unsigned long long ullmax = (unsigned long long) -1; | |
15357 | - return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
15358 | - ; | |
15359 | - return 0; | |
15360 | -} | |
15361 | -_ACEOF | |
15362 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
15363 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15364 | - (eval $ac_link) 2>conftest.er1 | |
15365 | - ac_status=$? | |
15366 | - grep -v '^ *+' conftest.er1 >conftest.err | |
15367 | - rm -f conftest.er1 | |
15368 | - cat conftest.err >&5 | |
15369 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15370 | - (exit $ac_status); } && | |
15371 | - { ac_try='test -z "$ac_c_werror_flag" | |
15372 | - || test ! -s conftest.err' | |
15373 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15374 | - (eval $ac_try) 2>&5 | |
15375 | - ac_status=$? | |
15376 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15377 | - (exit $ac_status); }; } && | |
15378 | - { ac_try='test -s conftest$ac_exeext' | |
15379 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15380 | - (eval $ac_try) 2>&5 | |
15381 | - ac_status=$? | |
15382 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15383 | - (exit $ac_status); }; }; then | |
15384 | - ac_cv_type_unsigned_long_long=yes | |
15385 | -else | |
15386 | - echo "$as_me: failed program was:" >&5 | |
15387 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
15388 | - | |
15389 | -ac_cv_type_unsigned_long_long=no | |
15390 | -fi | |
15391 | -rm -f conftest.err conftest.$ac_objext \ | |
15392 | - conftest$ac_exeext conftest.$ac_ext | |
15393 | -fi | |
15394 | -echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 | |
15395 | -echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 | |
15396 | - if test $ac_cv_type_unsigned_long_long = yes; then | |
15397 | - | |
15398 | -cat >>confdefs.h <<\_ACEOF | |
15399 | -#define HAVE_UNSIGNED_LONG_LONG 1 | |
15400 | -_ACEOF | |
15401 | - | |
15402 | - fi | |
15403 | - | |
15404 | - | |
15405 | - | |
15406 | - | |
15407 | - if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then | |
15408 | - | |
15409 | - test $ac_cv_type_unsigned_long_long = yes \ | |
15410 | - && ac_type='unsigned long long' \ | |
15411 | - || ac_type='unsigned long' | |
15412 | - | |
15413 | -cat >>confdefs.h <<_ACEOF | |
15414 | -#define uintmax_t $ac_type | |
15415 | -_ACEOF | |
15416 | - | |
15417 | - else | |
15418 | - | |
15419 | -cat >>confdefs.h <<\_ACEOF | |
15420 | -#define HAVE_UINTMAX_T 1 | |
15421 | -_ACEOF | |
15422 | - | |
15423 | - fi | |
15424 | - | |
15425 | - | |
15426 | - echo "$as_me:$LINENO: checking for inttypes.h" >&5 | |
15427 | -echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 | |
15428 | -if test "${gt_cv_header_inttypes_h+set}" = set; then | |
15429 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15430 | -else | |
15431 | - | |
15432 | - cat >conftest.$ac_ext <<_ACEOF | |
15433 | -/* confdefs.h. */ | |
15434 | -_ACEOF | |
15435 | -cat confdefs.h >>conftest.$ac_ext | |
15436 | -cat >>conftest.$ac_ext <<_ACEOF | |
15437 | -/* end confdefs.h. */ | |
15438 | -#include <sys/types.h> | |
15439 | -#include <inttypes.h> | |
15440 | -int | |
15441 | -main () | |
15442 | -{ | |
15443 | - | |
15444 | - ; | |
15445 | - return 0; | |
15446 | -} | |
15447 | -_ACEOF | |
15448 | -rm -f conftest.$ac_objext | |
15449 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15450 | - (eval $ac_compile) 2>conftest.er1 | |
15451 | - ac_status=$? | |
15452 | - grep -v '^ *+' conftest.er1 >conftest.err | |
15453 | - rm -f conftest.er1 | |
15454 | - cat conftest.err >&5 | |
15455 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15456 | - (exit $ac_status); } && | |
15457 | - { ac_try='test -z "$ac_c_werror_flag" | |
15458 | - || test ! -s conftest.err' | |
15459 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15460 | - (eval $ac_try) 2>&5 | |
15461 | - ac_status=$? | |
15462 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15463 | - (exit $ac_status); }; } && | |
15464 | - { ac_try='test -s conftest.$ac_objext' | |
15465 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15466 | - (eval $ac_try) 2>&5 | |
15467 | - ac_status=$? | |
15468 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15469 | - (exit $ac_status); }; }; then | |
15470 | - gt_cv_header_inttypes_h=yes | |
15471 | -else | |
15472 | - echo "$as_me: failed program was:" >&5 | |
15473 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
15474 | - | |
15475 | -gt_cv_header_inttypes_h=no | |
15476 | -fi | |
15477 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15478 | - | |
15479 | -fi | |
15480 | -echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 | |
15481 | -echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6 | |
15482 | - if test $gt_cv_header_inttypes_h = yes; then | |
15483 | - | |
15484 | -cat >>confdefs.h <<_ACEOF | |
15485 | -#define HAVE_INTTYPES_H 1 | |
15486 | -_ACEOF | |
15487 | - | |
15488 | - fi | |
15489 | - | |
15490 | - | |
15491 | - | |
15492 | - if test $gt_cv_header_inttypes_h = yes; then | |
15493 | - echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 | |
15494 | -echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6 | |
15495 | -if test "${gt_cv_inttypes_pri_broken+set}" = set; then | |
15496 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15497 | -else | |
15498 | - | |
15499 | - cat >conftest.$ac_ext <<_ACEOF | |
15500 | -/* confdefs.h. */ | |
15501 | -_ACEOF | |
15502 | -cat confdefs.h >>conftest.$ac_ext | |
15503 | -cat >>conftest.$ac_ext <<_ACEOF | |
15504 | -/* end confdefs.h. */ | |
15505 | -#include <inttypes.h> | |
15506 | -#ifdef PRId32 | |
15507 | -char *p = PRId32; | |
15508 | -#endif | |
15509 | - | |
15510 | -int | |
15511 | -main () | |
15512 | -{ | |
15513 | - | |
15514 | - ; | |
15515 | - return 0; | |
15516 | -} | |
15517 | -_ACEOF | |
15518 | -rm -f conftest.$ac_objext | |
15519 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15520 | - (eval $ac_compile) 2>conftest.er1 | |
15521 | - ac_status=$? | |
15522 | - grep -v '^ *+' conftest.er1 >conftest.err | |
15523 | - rm -f conftest.er1 | |
15524 | - cat conftest.err >&5 | |
15525 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15526 | - (exit $ac_status); } && | |
15527 | - { ac_try='test -z "$ac_c_werror_flag" | |
15528 | - || test ! -s conftest.err' | |
15529 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15530 | - (eval $ac_try) 2>&5 | |
15531 | - ac_status=$? | |
15532 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15533 | - (exit $ac_status); }; } && | |
15534 | - { ac_try='test -s conftest.$ac_objext' | |
15535 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15536 | - (eval $ac_try) 2>&5 | |
15537 | - ac_status=$? | |
15538 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15539 | - (exit $ac_status); }; }; then | |
15540 | - gt_cv_inttypes_pri_broken=no | |
15541 | -else | |
15542 | - echo "$as_me: failed program was:" >&5 | |
15543 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
15544 | - | |
15545 | -gt_cv_inttypes_pri_broken=yes | |
15546 | -fi | |
15547 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15548 | - | |
15549 | -fi | |
15550 | -echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 | |
15551 | -echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6 | |
15552 | - fi | |
15553 | - if test "$gt_cv_inttypes_pri_broken" = yes; then | |
15554 | - | |
15555 | -cat >>confdefs.h <<_ACEOF | |
15556 | -#define PRI_MACROS_BROKEN 1 | |
15557 | -_ACEOF | |
15558 | - | |
15559 | - fi | |
15560 | - | |
15561 | - | |
15562 | - | |
15563 | -for ac_header in stdint.h | |
15564 | -do | |
15565 | -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15566 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15567 | - echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15568 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15569 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15570 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15571 | -fi | |
15572 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15573 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15574 | -else | |
15575 | - # Is the header compilable? | |
15576 | -echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15577 | -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15578 | -cat >conftest.$ac_ext <<_ACEOF | |
15579 | -/* confdefs.h. */ | |
15580 | -_ACEOF | |
15581 | -cat confdefs.h >>conftest.$ac_ext | |
15582 | -cat >>conftest.$ac_ext <<_ACEOF | |
15583 | -/* end confdefs.h. */ | |
15584 | -$ac_includes_default | |
15585 | -#include <$ac_header> | |
15586 | -_ACEOF | |
15587 | -rm -f conftest.$ac_objext | |
15588 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15589 | - (eval $ac_compile) 2>conftest.er1 | |
15590 | - ac_status=$? | |
15591 | - grep -v '^ *+' conftest.er1 >conftest.err | |
15592 | - rm -f conftest.er1 | |
15593 | - cat conftest.err >&5 | |
15594 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15595 | - (exit $ac_status); } && | |
15596 | - { ac_try='test -z "$ac_c_werror_flag" | |
15597 | - || test ! -s conftest.err' | |
15598 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15599 | - (eval $ac_try) 2>&5 | |
15600 | - ac_status=$? | |
15601 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15602 | - (exit $ac_status); }; } && | |
15603 | - { ac_try='test -s conftest.$ac_objext' | |
15604 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15605 | - (eval $ac_try) 2>&5 | |
15606 | - ac_status=$? | |
15607 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15608 | - (exit $ac_status); }; }; then | |
15609 | - ac_header_compiler=yes | |
15610 | -else | |
15611 | - echo "$as_me: failed program was:" >&5 | |
15612 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
15613 | - | |
15614 | -ac_header_compiler=no | |
15615 | -fi | |
15616 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15617 | -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15618 | -echo "${ECHO_T}$ac_header_compiler" >&6 | |
15619 | - | |
15620 | -# Is the header present? | |
15621 | -echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15622 | -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15623 | -cat >conftest.$ac_ext <<_ACEOF | |
15624 | -/* confdefs.h. */ | |
15625 | -_ACEOF | |
15626 | -cat confdefs.h >>conftest.$ac_ext | |
15627 | -cat >>conftest.$ac_ext <<_ACEOF | |
15628 | -/* end confdefs.h. */ | |
15629 | -#include <$ac_header> | |
15630 | -_ACEOF | |
15631 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15632 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15633 | - ac_status=$? | |
15634 | - grep -v '^ *+' conftest.er1 >conftest.err | |
15635 | - rm -f conftest.er1 | |
15636 | - cat conftest.err >&5 | |
15637 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15638 | - (exit $ac_status); } >/dev/null; then | |
15639 | - if test -s conftest.err; then | |
15640 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
15641 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15642 | - else | |
15643 | - ac_cpp_err= | |
15644 | - fi | |
15645 | -else | |
15646 | - ac_cpp_err=yes | |
15647 | -fi | |
15648 | -if test -z "$ac_cpp_err"; then | |
15649 | - ac_header_preproc=yes | |
15650 | -else | |
15651 | - echo "$as_me: failed program was:" >&5 | |
15652 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
15653 | - | |
15654 | - ac_header_preproc=no | |
15655 | -fi | |
15656 | -rm -f conftest.err conftest.$ac_ext | |
15657 | -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15658 | -echo "${ECHO_T}$ac_header_preproc" >&6 | |
15659 | - | |
15660 | -# So? What about this header? | |
15661 | -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15662 | - yes:no: ) | |
15663 | - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15664 | -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15665 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15666 | -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15667 | - ac_header_preproc=yes | |
15668 | - ;; | |
15669 | - no:yes:* ) | |
15670 | - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15671 | -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15672 | - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15673 | -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15674 | - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15675 | -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15676 | - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15677 | -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15678 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15679 | -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15680 | - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15681 | -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15682 | - ( | |
15683 | - cat <<\_ASBOX | |
15684 | -## ------------------------------------------ ## | |
15685 | -## Report this to the AC_PACKAGE_NAME lists. ## | |
15686 | -## ------------------------------------------ ## | |
15687 | -_ASBOX | |
15688 | - ) | | |
15689 | - sed "s/^/$as_me: WARNING: /" >&2 | |
15690 | - ;; | |
15691 | -esac | |
15692 | -echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15693 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15694 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15695 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15696 | -else | |
15697 | - eval "$as_ac_Header=\$ac_header_preproc" | |
15698 | -fi | |
15699 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15700 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15701 | - | |
15702 | -fi | |
15703 | -if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15704 | - cat >>confdefs.h <<_ACEOF | |
15705 | -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15706 | -_ACEOF | |
15707 | - | |
15708 | -fi | |
15709 | - | |
15710 | -done | |
15711 | - | |
15712 | - echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 | |
15713 | -echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6 | |
15714 | - result= | |
15715 | - cat >conftest.$ac_ext <<_ACEOF | |
15716 | -/* confdefs.h. */ | |
15717 | -_ACEOF | |
15718 | -cat confdefs.h >>conftest.$ac_ext | |
15719 | -cat >>conftest.$ac_ext <<_ACEOF | |
15720 | -/* end confdefs.h. */ | |
15721 | - | |
15722 | -#include <limits.h> | |
15723 | -#if HAVE_STDINT_H | |
15724 | -#include <stdint.h> | |
15725 | -#endif | |
15726 | -#ifdef SIZE_MAX | |
15727 | -Found it | |
15728 | -#endif | |
15729 | - | |
15730 | -_ACEOF | |
15731 | -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15732 | - $EGREP "Found it" >/dev/null 2>&1; then | |
15733 | - result=yes | |
15734 | -fi | |
15735 | -rm -f conftest* | |
15736 | - | |
15737 | - if test -z "$result"; then | |
15738 | - if test "$cross_compiling" = yes; then | |
15739 | - # Depending upon the size, compute the lo and hi bounds. | |
15740 | -cat >conftest.$ac_ext <<_ACEOF | |
15741 | -/* confdefs.h. */ | |
15742 | -_ACEOF | |
15743 | -cat confdefs.h >>conftest.$ac_ext | |
15744 | -cat >>conftest.$ac_ext <<_ACEOF | |
15745 | -/* end confdefs.h. */ | |
15746 | -#include <stddef.h> | |
15747 | -int | |
15748 | -main () | |
15749 | -{ | |
15750 | -static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; | |
15751 | -test_array [0] = 0 | |
15752 | - | |
15753 | - ; | |
15754 | - return 0; | |
15755 | -} | |
15756 | -_ACEOF | |
15757 | -rm -f conftest.$ac_objext | |
15758 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15759 | - (eval $ac_compile) 2>conftest.er1 | |
15760 | - ac_status=$? | |
15761 | - grep -v '^ *+' conftest.er1 >conftest.err | |
15762 | - rm -f conftest.er1 | |
15763 | - cat conftest.err >&5 | |
15764 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15765 | - (exit $ac_status); } && | |
15766 | - { ac_try='test -z "$ac_c_werror_flag" | |
15767 | - || test ! -s conftest.err' | |
15768 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15769 | - (eval $ac_try) 2>&5 | |
15770 | - ac_status=$? | |
15771 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15772 | - (exit $ac_status); }; } && | |
15773 | - { ac_try='test -s conftest.$ac_objext' | |
15774 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15775 | - (eval $ac_try) 2>&5 | |
15776 | - ac_status=$? | |
15777 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15778 | - (exit $ac_status); }; }; then | |
15779 | - ac_lo=0 ac_mid=0 | |
15780 | - while :; do | |
15781 | - cat >conftest.$ac_ext <<_ACEOF | |
15782 | -/* confdefs.h. */ | |
15783 | -_ACEOF | |
15784 | -cat confdefs.h >>conftest.$ac_ext | |
15785 | -cat >>conftest.$ac_ext <<_ACEOF | |
15786 | -/* end confdefs.h. */ | |
15787 | -#include <stddef.h> | |
15788 | -int | |
15789 | -main () | |
15790 | -{ | |
15791 | -static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; | |
15792 | -test_array [0] = 0 | |
15793 | - | |
15794 | - ; | |
15795 | - return 0; | |
15796 | -} | |
15797 | -_ACEOF | |
15798 | -rm -f conftest.$ac_objext | |
15799 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15800 | - (eval $ac_compile) 2>conftest.er1 | |
15801 | - ac_status=$? | |
15802 | - grep -v '^ *+' conftest.er1 >conftest.err | |
15803 | - rm -f conftest.er1 | |
15804 | - cat conftest.err >&5 | |
15805 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15806 | - (exit $ac_status); } && | |
15807 | - { ac_try='test -z "$ac_c_werror_flag" | |
15808 | - || test ! -s conftest.err' | |
15809 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15810 | - (eval $ac_try) 2>&5 | |
15811 | - ac_status=$? | |
15812 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15813 | - (exit $ac_status); }; } && | |
15814 | - { ac_try='test -s conftest.$ac_objext' | |
15815 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15816 | - (eval $ac_try) 2>&5 | |
15817 | - ac_status=$? | |
15818 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15819 | - (exit $ac_status); }; }; then | |
15820 | - ac_hi=$ac_mid; break | |
15821 | -else | |
15822 | - echo "$as_me: failed program was:" >&5 | |
15823 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
15824 | - | |
15825 | -ac_lo=`expr $ac_mid + 1` | |
15826 | - if test $ac_lo -le $ac_mid; then | |
15827 | - ac_lo= ac_hi= | |
15828 | - break | |
15829 | - fi | |
15830 | - ac_mid=`expr 2 '*' $ac_mid + 1` | |
15831 | -fi | |
15832 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15833 | - done | |
15834 | -else | |
15835 | - echo "$as_me: failed program was:" >&5 | |
15836 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
15837 | - | |
15838 | -cat >conftest.$ac_ext <<_ACEOF | |
15839 | -/* confdefs.h. */ | |
15840 | -_ACEOF | |
15841 | -cat confdefs.h >>conftest.$ac_ext | |
15842 | -cat >>conftest.$ac_ext <<_ACEOF | |
15843 | -/* end confdefs.h. */ | |
15844 | -#include <stddef.h> | |
15845 | -int | |
15846 | -main () | |
15847 | -{ | |
15848 | -static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; | |
15849 | -test_array [0] = 0 | |
15850 | - | |
15851 | - ; | |
15852 | - return 0; | |
15853 | -} | |
15854 | -_ACEOF | |
15855 | -rm -f conftest.$ac_objext | |
15856 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15857 | - (eval $ac_compile) 2>conftest.er1 | |
15858 | - ac_status=$? | |
15859 | - grep -v '^ *+' conftest.er1 >conftest.err | |
15860 | - rm -f conftest.er1 | |
15861 | - cat conftest.err >&5 | |
15862 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15863 | - (exit $ac_status); } && | |
15864 | - { ac_try='test -z "$ac_c_werror_flag" | |
15865 | - || test ! -s conftest.err' | |
15866 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15867 | - (eval $ac_try) 2>&5 | |
15868 | - ac_status=$? | |
15869 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15870 | - (exit $ac_status); }; } && | |
15871 | - { ac_try='test -s conftest.$ac_objext' | |
15872 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15873 | - (eval $ac_try) 2>&5 | |
15874 | - ac_status=$? | |
15875 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15876 | - (exit $ac_status); }; }; then | |
15877 | - ac_hi=-1 ac_mid=-1 | |
15878 | - while :; do | |
15879 | - cat >conftest.$ac_ext <<_ACEOF | |
15880 | -/* confdefs.h. */ | |
15881 | -_ACEOF | |
15882 | -cat confdefs.h >>conftest.$ac_ext | |
15883 | -cat >>conftest.$ac_ext <<_ACEOF | |
15884 | -/* end confdefs.h. */ | |
15885 | -#include <stddef.h> | |
15886 | -int | |
15887 | -main () | |
15888 | -{ | |
15889 | -static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; | |
15890 | -test_array [0] = 0 | |
15891 | - | |
15892 | - ; | |
15893 | - return 0; | |
15894 | -} | |
15895 | -_ACEOF | |
15896 | -rm -f conftest.$ac_objext | |
15897 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15898 | - (eval $ac_compile) 2>conftest.er1 | |
15899 | - ac_status=$? | |
15900 | - grep -v '^ *+' conftest.er1 >conftest.err | |
15901 | - rm -f conftest.er1 | |
15902 | - cat conftest.err >&5 | |
15903 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15904 | - (exit $ac_status); } && | |
15905 | - { ac_try='test -z "$ac_c_werror_flag" | |
15906 | - || test ! -s conftest.err' | |
15907 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15908 | - (eval $ac_try) 2>&5 | |
15909 | - ac_status=$? | |
15910 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15911 | - (exit $ac_status); }; } && | |
15912 | - { ac_try='test -s conftest.$ac_objext' | |
15913 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15914 | - (eval $ac_try) 2>&5 | |
15915 | - ac_status=$? | |
15916 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15917 | - (exit $ac_status); }; }; then | |
15918 | - ac_lo=$ac_mid; break | |
15919 | -else | |
15920 | - echo "$as_me: failed program was:" >&5 | |
15921 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
15922 | - | |
15923 | -ac_hi=`expr '(' $ac_mid ')' - 1` | |
15924 | - if test $ac_mid -le $ac_hi; then | |
15925 | - ac_lo= ac_hi= | |
15926 | - break | |
15927 | - fi | |
15928 | - ac_mid=`expr 2 '*' $ac_mid` | |
15929 | -fi | |
15930 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15931 | - done | |
15932 | -else | |
15933 | - echo "$as_me: failed program was:" >&5 | |
15934 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
15935 | - | |
15936 | -ac_lo= ac_hi= | |
15937 | -fi | |
15938 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15939 | -fi | |
15940 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15941 | -# Binary search between lo and hi bounds. | |
15942 | -while test "x$ac_lo" != "x$ac_hi"; do | |
15943 | - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15944 | - cat >conftest.$ac_ext <<_ACEOF | |
15945 | -/* confdefs.h. */ | |
15946 | -_ACEOF | |
15947 | -cat confdefs.h >>conftest.$ac_ext | |
15948 | -cat >>conftest.$ac_ext <<_ACEOF | |
15949 | -/* end confdefs.h. */ | |
15950 | -#include <stddef.h> | |
15951 | -int | |
15952 | -main () | |
15953 | -{ | |
15954 | -static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; | |
15955 | -test_array [0] = 0 | |
15956 | - | |
15957 | - ; | |
15958 | - return 0; | |
15959 | -} | |
15960 | -_ACEOF | |
15961 | -rm -f conftest.$ac_objext | |
15962 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15963 | - (eval $ac_compile) 2>conftest.er1 | |
15964 | - ac_status=$? | |
15965 | - grep -v '^ *+' conftest.er1 >conftest.err | |
15966 | - rm -f conftest.er1 | |
15967 | - cat conftest.err >&5 | |
15968 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15969 | - (exit $ac_status); } && | |
15970 | - { ac_try='test -z "$ac_c_werror_flag" | |
15971 | - || test ! -s conftest.err' | |
15972 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15973 | - (eval $ac_try) 2>&5 | |
15974 | - ac_status=$? | |
15975 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15976 | - (exit $ac_status); }; } && | |
15977 | - { ac_try='test -s conftest.$ac_objext' | |
15978 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15979 | - (eval $ac_try) 2>&5 | |
15980 | - ac_status=$? | |
15981 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15982 | - (exit $ac_status); }; }; then | |
15983 | - ac_hi=$ac_mid | |
15984 | -else | |
15985 | - echo "$as_me: failed program was:" >&5 | |
15986 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
15987 | - | |
15988 | -ac_lo=`expr '(' $ac_mid ')' + 1` | |
15989 | -fi | |
15990 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15991 | -done | |
15992 | -case $ac_lo in | |
15993 | -?*) res_hi=$ac_lo;; | |
15994 | -'') result=? ;; | |
15995 | -esac | |
15996 | -else | |
15997 | - if test "$cross_compiling" = yes; then | |
15998 | - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15999 | -See \`config.log' for more details." >&5 | |
16000 | -echo "$as_me: error: cannot run test program while cross compiling | |
16001 | -See \`config.log' for more details." >&2;} | |
16002 | - { (exit 1); exit 1; }; } | |
16003 | -else | |
16004 | - cat >conftest.$ac_ext <<_ACEOF | |
16005 | -/* confdefs.h. */ | |
16006 | -_ACEOF | |
16007 | -cat confdefs.h >>conftest.$ac_ext | |
16008 | -cat >>conftest.$ac_ext <<_ACEOF | |
16009 | -/* end confdefs.h. */ | |
16010 | -#include <stddef.h> | |
16011 | -long longval () { return ~(size_t)0 / 10; } | |
16012 | -unsigned long ulongval () { return ~(size_t)0 / 10; } | |
16013 | -#include <stdio.h> | |
16014 | -#include <stdlib.h> | |
16015 | -int | |
16016 | -main () | |
16017 | -{ | |
16018 | - | |
16019 | - FILE *f = fopen ("conftest.val", "w"); | |
16020 | - if (! f) | |
16021 | - exit (1); | |
16022 | - if ((~(size_t)0 / 10) < 0) | |
16023 | - { | |
16024 | - long i = longval (); | |
16025 | - if (i != (~(size_t)0 / 10)) | |
16026 | - exit (1); | |
16027 | - fprintf (f, "%ld\n", i); | |
16028 | - } | |
16029 | - else | |
16030 | - { | |
16031 | - unsigned long i = ulongval (); | |
16032 | - if (i != (~(size_t)0 / 10)) | |
16033 | - exit (1); | |
16034 | - fprintf (f, "%lu\n", i); | |
16035 | - } | |
16036 | - exit (ferror (f) || fclose (f) != 0); | |
16037 | - | |
16038 | - ; | |
16039 | - return 0; | |
16040 | -} | |
16041 | -_ACEOF | |
16042 | -rm -f conftest$ac_exeext | |
16043 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16044 | - (eval $ac_link) 2>&5 | |
16045 | - ac_status=$? | |
16046 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16047 | - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16048 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16049 | - (eval $ac_try) 2>&5 | |
16050 | - ac_status=$? | |
16051 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16052 | - (exit $ac_status); }; }; then | |
16053 | - res_hi=`cat conftest.val` | |
16054 | -else | |
16055 | - echo "$as_me: program exited with status $ac_status" >&5 | |
16056 | -echo "$as_me: failed program was:" >&5 | |
16057 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16058 | - | |
16059 | -( exit $ac_status ) | |
16060 | -result=? | |
16061 | -fi | |
16062 | -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16063 | -fi | |
16064 | -fi | |
16065 | -rm -f conftest.val | |
16066 | - if test "$cross_compiling" = yes; then | |
16067 | - # Depending upon the size, compute the lo and hi bounds. | |
16068 | -cat >conftest.$ac_ext <<_ACEOF | |
16069 | -/* confdefs.h. */ | |
16070 | -_ACEOF | |
16071 | -cat confdefs.h >>conftest.$ac_ext | |
16072 | -cat >>conftest.$ac_ext <<_ACEOF | |
16073 | -/* end confdefs.h. */ | |
16074 | -#include <stddef.h> | |
16075 | -int | |
16076 | -main () | |
16077 | -{ | |
16078 | -static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; | |
16079 | -test_array [0] = 0 | |
16080 | - | |
16081 | - ; | |
16082 | - return 0; | |
16083 | -} | |
16084 | -_ACEOF | |
16085 | -rm -f conftest.$ac_objext | |
16086 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16087 | - (eval $ac_compile) 2>conftest.er1 | |
16088 | - ac_status=$? | |
16089 | - grep -v '^ *+' conftest.er1 >conftest.err | |
16090 | - rm -f conftest.er1 | |
16091 | - cat conftest.err >&5 | |
16092 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16093 | - (exit $ac_status); } && | |
16094 | - { ac_try='test -z "$ac_c_werror_flag" | |
16095 | - || test ! -s conftest.err' | |
16096 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16097 | - (eval $ac_try) 2>&5 | |
16098 | - ac_status=$? | |
16099 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16100 | - (exit $ac_status); }; } && | |
16101 | - { ac_try='test -s conftest.$ac_objext' | |
16102 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16103 | - (eval $ac_try) 2>&5 | |
16104 | - ac_status=$? | |
16105 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16106 | - (exit $ac_status); }; }; then | |
16107 | - ac_lo=0 ac_mid=0 | |
16108 | - while :; do | |
16109 | - cat >conftest.$ac_ext <<_ACEOF | |
16110 | -/* confdefs.h. */ | |
16111 | -_ACEOF | |
16112 | -cat confdefs.h >>conftest.$ac_ext | |
16113 | -cat >>conftest.$ac_ext <<_ACEOF | |
16114 | -/* end confdefs.h. */ | |
16115 | -#include <stddef.h> | |
16116 | -int | |
16117 | -main () | |
16118 | -{ | |
16119 | -static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; | |
16120 | -test_array [0] = 0 | |
16121 | - | |
16122 | - ; | |
16123 | - return 0; | |
16124 | -} | |
16125 | -_ACEOF | |
16126 | -rm -f conftest.$ac_objext | |
16127 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16128 | - (eval $ac_compile) 2>conftest.er1 | |
16129 | - ac_status=$? | |
16130 | - grep -v '^ *+' conftest.er1 >conftest.err | |
16131 | - rm -f conftest.er1 | |
16132 | - cat conftest.err >&5 | |
16133 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16134 | - (exit $ac_status); } && | |
16135 | - { ac_try='test -z "$ac_c_werror_flag" | |
16136 | - || test ! -s conftest.err' | |
16137 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16138 | - (eval $ac_try) 2>&5 | |
16139 | - ac_status=$? | |
16140 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16141 | - (exit $ac_status); }; } && | |
16142 | - { ac_try='test -s conftest.$ac_objext' | |
16143 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16144 | - (eval $ac_try) 2>&5 | |
16145 | - ac_status=$? | |
16146 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16147 | - (exit $ac_status); }; }; then | |
16148 | - ac_hi=$ac_mid; break | |
16149 | -else | |
16150 | - echo "$as_me: failed program was:" >&5 | |
16151 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16152 | - | |
16153 | -ac_lo=`expr $ac_mid + 1` | |
16154 | - if test $ac_lo -le $ac_mid; then | |
16155 | - ac_lo= ac_hi= | |
16156 | - break | |
16157 | - fi | |
16158 | - ac_mid=`expr 2 '*' $ac_mid + 1` | |
16159 | -fi | |
16160 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16161 | - done | |
16162 | -else | |
16163 | - echo "$as_me: failed program was:" >&5 | |
16164 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16165 | - | |
16166 | -cat >conftest.$ac_ext <<_ACEOF | |
16167 | -/* confdefs.h. */ | |
16168 | -_ACEOF | |
16169 | -cat confdefs.h >>conftest.$ac_ext | |
16170 | -cat >>conftest.$ac_ext <<_ACEOF | |
16171 | -/* end confdefs.h. */ | |
16172 | -#include <stddef.h> | |
16173 | -int | |
16174 | -main () | |
16175 | -{ | |
16176 | -static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; | |
16177 | -test_array [0] = 0 | |
16178 | - | |
16179 | - ; | |
16180 | - return 0; | |
16181 | -} | |
16182 | -_ACEOF | |
16183 | -rm -f conftest.$ac_objext | |
16184 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16185 | - (eval $ac_compile) 2>conftest.er1 | |
16186 | - ac_status=$? | |
16187 | - grep -v '^ *+' conftest.er1 >conftest.err | |
16188 | - rm -f conftest.er1 | |
16189 | - cat conftest.err >&5 | |
16190 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16191 | - (exit $ac_status); } && | |
16192 | - { ac_try='test -z "$ac_c_werror_flag" | |
16193 | - || test ! -s conftest.err' | |
16194 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16195 | - (eval $ac_try) 2>&5 | |
16196 | - ac_status=$? | |
16197 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16198 | - (exit $ac_status); }; } && | |
16199 | - { ac_try='test -s conftest.$ac_objext' | |
16200 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16201 | - (eval $ac_try) 2>&5 | |
16202 | - ac_status=$? | |
16203 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16204 | - (exit $ac_status); }; }; then | |
16205 | - ac_hi=-1 ac_mid=-1 | |
16206 | - while :; do | |
16207 | - cat >conftest.$ac_ext <<_ACEOF | |
16208 | -/* confdefs.h. */ | |
16209 | -_ACEOF | |
16210 | -cat confdefs.h >>conftest.$ac_ext | |
16211 | -cat >>conftest.$ac_ext <<_ACEOF | |
16212 | -/* end confdefs.h. */ | |
16213 | -#include <stddef.h> | |
16214 | -int | |
16215 | -main () | |
16216 | -{ | |
16217 | -static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; | |
16218 | -test_array [0] = 0 | |
16219 | - | |
16220 | - ; | |
16221 | - return 0; | |
16222 | -} | |
16223 | -_ACEOF | |
16224 | -rm -f conftest.$ac_objext | |
16225 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16226 | - (eval $ac_compile) 2>conftest.er1 | |
16227 | - ac_status=$? | |
16228 | - grep -v '^ *+' conftest.er1 >conftest.err | |
16229 | - rm -f conftest.er1 | |
16230 | - cat conftest.err >&5 | |
16231 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16232 | - (exit $ac_status); } && | |
16233 | - { ac_try='test -z "$ac_c_werror_flag" | |
16234 | - || test ! -s conftest.err' | |
16235 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16236 | - (eval $ac_try) 2>&5 | |
16237 | - ac_status=$? | |
16238 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16239 | - (exit $ac_status); }; } && | |
16240 | - { ac_try='test -s conftest.$ac_objext' | |
16241 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16242 | - (eval $ac_try) 2>&5 | |
16243 | - ac_status=$? | |
16244 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16245 | - (exit $ac_status); }; }; then | |
16246 | - ac_lo=$ac_mid; break | |
16247 | -else | |
16248 | - echo "$as_me: failed program was:" >&5 | |
16249 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16250 | - | |
16251 | -ac_hi=`expr '(' $ac_mid ')' - 1` | |
16252 | - if test $ac_mid -le $ac_hi; then | |
16253 | - ac_lo= ac_hi= | |
16254 | - break | |
16255 | - fi | |
16256 | - ac_mid=`expr 2 '*' $ac_mid` | |
16257 | -fi | |
16258 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16259 | - done | |
16260 | -else | |
16261 | - echo "$as_me: failed program was:" >&5 | |
16262 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16263 | - | |
16264 | -ac_lo= ac_hi= | |
16265 | -fi | |
16266 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16267 | -fi | |
16268 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16269 | -# Binary search between lo and hi bounds. | |
16270 | -while test "x$ac_lo" != "x$ac_hi"; do | |
16271 | - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16272 | - cat >conftest.$ac_ext <<_ACEOF | |
16273 | -/* confdefs.h. */ | |
16274 | -_ACEOF | |
16275 | -cat confdefs.h >>conftest.$ac_ext | |
16276 | -cat >>conftest.$ac_ext <<_ACEOF | |
16277 | -/* end confdefs.h. */ | |
16278 | -#include <stddef.h> | |
16279 | -int | |
16280 | -main () | |
16281 | -{ | |
16282 | -static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; | |
16283 | -test_array [0] = 0 | |
16284 | - | |
16285 | - ; | |
16286 | - return 0; | |
16287 | -} | |
16288 | -_ACEOF | |
16289 | -rm -f conftest.$ac_objext | |
16290 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16291 | - (eval $ac_compile) 2>conftest.er1 | |
16292 | - ac_status=$? | |
16293 | - grep -v '^ *+' conftest.er1 >conftest.err | |
16294 | - rm -f conftest.er1 | |
16295 | - cat conftest.err >&5 | |
16296 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16297 | - (exit $ac_status); } && | |
16298 | - { ac_try='test -z "$ac_c_werror_flag" | |
16299 | - || test ! -s conftest.err' | |
16300 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16301 | - (eval $ac_try) 2>&5 | |
16302 | - ac_status=$? | |
16303 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16304 | - (exit $ac_status); }; } && | |
16305 | - { ac_try='test -s conftest.$ac_objext' | |
16306 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16307 | - (eval $ac_try) 2>&5 | |
16308 | - ac_status=$? | |
16309 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16310 | - (exit $ac_status); }; }; then | |
16311 | - ac_hi=$ac_mid | |
16312 | -else | |
16313 | - echo "$as_me: failed program was:" >&5 | |
16314 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16315 | - | |
16316 | -ac_lo=`expr '(' $ac_mid ')' + 1` | |
16317 | -fi | |
16318 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16319 | -done | |
16320 | -case $ac_lo in | |
16321 | -?*) res_lo=$ac_lo;; | |
16322 | -'') result=? ;; | |
16323 | -esac | |
16324 | -else | |
16325 | - if test "$cross_compiling" = yes; then | |
16326 | - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16327 | -See \`config.log' for more details." >&5 | |
16328 | -echo "$as_me: error: cannot run test program while cross compiling | |
16329 | -See \`config.log' for more details." >&2;} | |
16330 | - { (exit 1); exit 1; }; } | |
16331 | -else | |
16332 | - cat >conftest.$ac_ext <<_ACEOF | |
16333 | -/* confdefs.h. */ | |
16334 | -_ACEOF | |
16335 | -cat confdefs.h >>conftest.$ac_ext | |
16336 | -cat >>conftest.$ac_ext <<_ACEOF | |
16337 | -/* end confdefs.h. */ | |
16338 | -#include <stddef.h> | |
16339 | -long longval () { return ~(size_t)0 % 10; } | |
16340 | -unsigned long ulongval () { return ~(size_t)0 % 10; } | |
16341 | -#include <stdio.h> | |
16342 | -#include <stdlib.h> | |
16343 | -int | |
16344 | -main () | |
16345 | -{ | |
16346 | - | |
16347 | - FILE *f = fopen ("conftest.val", "w"); | |
16348 | - if (! f) | |
16349 | - exit (1); | |
16350 | - if ((~(size_t)0 % 10) < 0) | |
16351 | - { | |
16352 | - long i = longval (); | |
16353 | - if (i != (~(size_t)0 % 10)) | |
16354 | - exit (1); | |
16355 | - fprintf (f, "%ld\n", i); | |
16356 | - } | |
16357 | - else | |
16358 | - { | |
16359 | - unsigned long i = ulongval (); | |
16360 | - if (i != (~(size_t)0 % 10)) | |
16361 | - exit (1); | |
16362 | - fprintf (f, "%lu\n", i); | |
16363 | - } | |
16364 | - exit (ferror (f) || fclose (f) != 0); | |
16365 | - | |
16366 | - ; | |
16367 | - return 0; | |
16368 | -} | |
16369 | -_ACEOF | |
16370 | -rm -f conftest$ac_exeext | |
16371 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16372 | - (eval $ac_link) 2>&5 | |
16373 | - ac_status=$? | |
16374 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16375 | - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16376 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16377 | - (eval $ac_try) 2>&5 | |
16378 | - ac_status=$? | |
16379 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16380 | - (exit $ac_status); }; }; then | |
16381 | - res_lo=`cat conftest.val` | |
16382 | -else | |
16383 | - echo "$as_me: program exited with status $ac_status" >&5 | |
16384 | -echo "$as_me: failed program was:" >&5 | |
16385 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16386 | - | |
16387 | -( exit $ac_status ) | |
16388 | -result=? | |
16389 | -fi | |
16390 | -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16391 | -fi | |
16392 | -fi | |
16393 | -rm -f conftest.val | |
16394 | - if test "$cross_compiling" = yes; then | |
16395 | - # Depending upon the size, compute the lo and hi bounds. | |
16396 | -cat >conftest.$ac_ext <<_ACEOF | |
16397 | -/* confdefs.h. */ | |
16398 | -_ACEOF | |
16399 | -cat confdefs.h >>conftest.$ac_ext | |
16400 | -cat >>conftest.$ac_ext <<_ACEOF | |
16401 | -/* end confdefs.h. */ | |
16402 | -#include <stddef.h> | |
16403 | -int | |
16404 | -main () | |
16405 | -{ | |
16406 | -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; | |
16407 | -test_array [0] = 0 | |
16408 | - | |
16409 | - ; | |
16410 | - return 0; | |
16411 | -} | |
16412 | -_ACEOF | |
16413 | -rm -f conftest.$ac_objext | |
16414 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16415 | - (eval $ac_compile) 2>conftest.er1 | |
16416 | - ac_status=$? | |
16417 | - grep -v '^ *+' conftest.er1 >conftest.err | |
16418 | - rm -f conftest.er1 | |
16419 | - cat conftest.err >&5 | |
16420 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16421 | - (exit $ac_status); } && | |
16422 | - { ac_try='test -z "$ac_c_werror_flag" | |
16423 | - || test ! -s conftest.err' | |
16424 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16425 | - (eval $ac_try) 2>&5 | |
16426 | - ac_status=$? | |
16427 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16428 | - (exit $ac_status); }; } && | |
16429 | - { ac_try='test -s conftest.$ac_objext' | |
16430 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16431 | - (eval $ac_try) 2>&5 | |
16432 | - ac_status=$? | |
16433 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16434 | - (exit $ac_status); }; }; then | |
16435 | - ac_lo=0 ac_mid=0 | |
16436 | - while :; do | |
16437 | - cat >conftest.$ac_ext <<_ACEOF | |
16438 | -/* confdefs.h. */ | |
16439 | -_ACEOF | |
16440 | -cat confdefs.h >>conftest.$ac_ext | |
16441 | -cat >>conftest.$ac_ext <<_ACEOF | |
16442 | -/* end confdefs.h. */ | |
16443 | -#include <stddef.h> | |
16444 | -int | |
16445 | -main () | |
16446 | -{ | |
16447 | -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; | |
16448 | -test_array [0] = 0 | |
16449 | - | |
16450 | - ; | |
16451 | - return 0; | |
16452 | -} | |
16453 | -_ACEOF | |
16454 | -rm -f conftest.$ac_objext | |
16455 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16456 | - (eval $ac_compile) 2>conftest.er1 | |
16457 | - ac_status=$? | |
16458 | - grep -v '^ *+' conftest.er1 >conftest.err | |
16459 | - rm -f conftest.er1 | |
16460 | - cat conftest.err >&5 | |
16461 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16462 | - (exit $ac_status); } && | |
16463 | - { ac_try='test -z "$ac_c_werror_flag" | |
16464 | - || test ! -s conftest.err' | |
16465 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16466 | - (eval $ac_try) 2>&5 | |
16467 | - ac_status=$? | |
16468 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16469 | - (exit $ac_status); }; } && | |
16470 | - { ac_try='test -s conftest.$ac_objext' | |
16471 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16472 | - (eval $ac_try) 2>&5 | |
16473 | - ac_status=$? | |
16474 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16475 | - (exit $ac_status); }; }; then | |
16476 | - ac_hi=$ac_mid; break | |
16477 | -else | |
16478 | - echo "$as_me: failed program was:" >&5 | |
16479 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16480 | - | |
16481 | -ac_lo=`expr $ac_mid + 1` | |
16482 | - if test $ac_lo -le $ac_mid; then | |
16483 | - ac_lo= ac_hi= | |
16484 | - break | |
16485 | - fi | |
16486 | - ac_mid=`expr 2 '*' $ac_mid + 1` | |
16487 | -fi | |
16488 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16489 | - done | |
16490 | -else | |
16491 | - echo "$as_me: failed program was:" >&5 | |
16492 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16493 | - | |
16494 | -cat >conftest.$ac_ext <<_ACEOF | |
16495 | -/* confdefs.h. */ | |
16496 | -_ACEOF | |
16497 | -cat confdefs.h >>conftest.$ac_ext | |
16498 | -cat >>conftest.$ac_ext <<_ACEOF | |
16499 | -/* end confdefs.h. */ | |
16500 | -#include <stddef.h> | |
16501 | -int | |
16502 | -main () | |
16503 | -{ | |
16504 | -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; | |
16505 | -test_array [0] = 0 | |
16506 | - | |
16507 | - ; | |
16508 | - return 0; | |
16509 | -} | |
16510 | -_ACEOF | |
16511 | -rm -f conftest.$ac_objext | |
16512 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16513 | - (eval $ac_compile) 2>conftest.er1 | |
16514 | - ac_status=$? | |
16515 | - grep -v '^ *+' conftest.er1 >conftest.err | |
16516 | - rm -f conftest.er1 | |
16517 | - cat conftest.err >&5 | |
16518 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16519 | - (exit $ac_status); } && | |
16520 | - { ac_try='test -z "$ac_c_werror_flag" | |
16521 | - || test ! -s conftest.err' | |
16522 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16523 | - (eval $ac_try) 2>&5 | |
16524 | - ac_status=$? | |
16525 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16526 | - (exit $ac_status); }; } && | |
16527 | - { ac_try='test -s conftest.$ac_objext' | |
16528 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16529 | - (eval $ac_try) 2>&5 | |
16530 | - ac_status=$? | |
16531 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16532 | - (exit $ac_status); }; }; then | |
16533 | - ac_hi=-1 ac_mid=-1 | |
16534 | - while :; do | |
16535 | - cat >conftest.$ac_ext <<_ACEOF | |
16536 | -/* confdefs.h. */ | |
16537 | -_ACEOF | |
16538 | -cat confdefs.h >>conftest.$ac_ext | |
16539 | -cat >>conftest.$ac_ext <<_ACEOF | |
16540 | -/* end confdefs.h. */ | |
16541 | -#include <stddef.h> | |
16542 | -int | |
16543 | -main () | |
16544 | -{ | |
16545 | -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; | |
16546 | -test_array [0] = 0 | |
16547 | - | |
16548 | - ; | |
16549 | - return 0; | |
16550 | -} | |
16551 | -_ACEOF | |
16552 | -rm -f conftest.$ac_objext | |
16553 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16554 | - (eval $ac_compile) 2>conftest.er1 | |
16555 | - ac_status=$? | |
16556 | - grep -v '^ *+' conftest.er1 >conftest.err | |
16557 | - rm -f conftest.er1 | |
16558 | - cat conftest.err >&5 | |
16559 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16560 | - (exit $ac_status); } && | |
16561 | - { ac_try='test -z "$ac_c_werror_flag" | |
16562 | - || test ! -s conftest.err' | |
16563 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16564 | - (eval $ac_try) 2>&5 | |
16565 | - ac_status=$? | |
16566 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16567 | - (exit $ac_status); }; } && | |
16568 | - { ac_try='test -s conftest.$ac_objext' | |
16569 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16570 | - (eval $ac_try) 2>&5 | |
16571 | - ac_status=$? | |
16572 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16573 | - (exit $ac_status); }; }; then | |
16574 | - ac_lo=$ac_mid; break | |
16575 | -else | |
16576 | - echo "$as_me: failed program was:" >&5 | |
16577 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16578 | - | |
16579 | -ac_hi=`expr '(' $ac_mid ')' - 1` | |
16580 | - if test $ac_mid -le $ac_hi; then | |
16581 | - ac_lo= ac_hi= | |
16582 | - break | |
16583 | - fi | |
16584 | - ac_mid=`expr 2 '*' $ac_mid` | |
16585 | -fi | |
16586 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16587 | - done | |
16588 | -else | |
16589 | - echo "$as_me: failed program was:" >&5 | |
16590 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16591 | - | |
16592 | -ac_lo= ac_hi= | |
16593 | -fi | |
16594 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16595 | -fi | |
16596 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16597 | -# Binary search between lo and hi bounds. | |
16598 | -while test "x$ac_lo" != "x$ac_hi"; do | |
16599 | - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16600 | - cat >conftest.$ac_ext <<_ACEOF | |
16601 | -/* confdefs.h. */ | |
16602 | -_ACEOF | |
16603 | -cat confdefs.h >>conftest.$ac_ext | |
16604 | -cat >>conftest.$ac_ext <<_ACEOF | |
16605 | -/* end confdefs.h. */ | |
16606 | -#include <stddef.h> | |
16607 | -int | |
16608 | -main () | |
16609 | -{ | |
16610 | -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; | |
16611 | -test_array [0] = 0 | |
16612 | - | |
16613 | - ; | |
16614 | - return 0; | |
16615 | -} | |
16616 | -_ACEOF | |
16617 | -rm -f conftest.$ac_objext | |
16618 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16619 | - (eval $ac_compile) 2>conftest.er1 | |
16620 | - ac_status=$? | |
16621 | - grep -v '^ *+' conftest.er1 >conftest.err | |
16622 | - rm -f conftest.er1 | |
16623 | - cat conftest.err >&5 | |
16624 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16625 | - (exit $ac_status); } && | |
16626 | - { ac_try='test -z "$ac_c_werror_flag" | |
16627 | - || test ! -s conftest.err' | |
16628 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16629 | - (eval $ac_try) 2>&5 | |
16630 | - ac_status=$? | |
16631 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16632 | - (exit $ac_status); }; } && | |
16633 | - { ac_try='test -s conftest.$ac_objext' | |
16634 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16635 | - (eval $ac_try) 2>&5 | |
16636 | - ac_status=$? | |
16637 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16638 | - (exit $ac_status); }; }; then | |
16639 | - ac_hi=$ac_mid | |
16640 | -else | |
16641 | - echo "$as_me: failed program was:" >&5 | |
16642 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16643 | - | |
16644 | -ac_lo=`expr '(' $ac_mid ')' + 1` | |
16645 | -fi | |
16646 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16647 | -done | |
16648 | -case $ac_lo in | |
16649 | -?*) fits_in_uint=$ac_lo;; | |
16650 | -'') result=? ;; | |
16651 | -esac | |
16652 | -else | |
16653 | - if test "$cross_compiling" = yes; then | |
16654 | - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16655 | -See \`config.log' for more details." >&5 | |
16656 | -echo "$as_me: error: cannot run test program while cross compiling | |
16657 | -See \`config.log' for more details." >&2;} | |
16658 | - { (exit 1); exit 1; }; } | |
16659 | -else | |
16660 | - cat >conftest.$ac_ext <<_ACEOF | |
16661 | -/* confdefs.h. */ | |
16662 | -_ACEOF | |
16663 | -cat confdefs.h >>conftest.$ac_ext | |
16664 | -cat >>conftest.$ac_ext <<_ACEOF | |
16665 | -/* end confdefs.h. */ | |
16666 | -#include <stddef.h> | |
16667 | -long longval () { return sizeof (size_t) <= sizeof (unsigned int); } | |
16668 | -unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } | |
16669 | -#include <stdio.h> | |
16670 | -#include <stdlib.h> | |
16671 | -int | |
16672 | -main () | |
16673 | -{ | |
16674 | - | |
16675 | - FILE *f = fopen ("conftest.val", "w"); | |
16676 | - if (! f) | |
16677 | - exit (1); | |
16678 | - if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) | |
16679 | - { | |
16680 | - long i = longval (); | |
16681 | - if (i != (sizeof (size_t) <= sizeof (unsigned int))) | |
16682 | - exit (1); | |
16683 | - fprintf (f, "%ld\n", i); | |
16684 | - } | |
16685 | - else | |
16686 | - { | |
16687 | - unsigned long i = ulongval (); | |
16688 | - if (i != (sizeof (size_t) <= sizeof (unsigned int))) | |
16689 | - exit (1); | |
16690 | - fprintf (f, "%lu\n", i); | |
16691 | - } | |
16692 | - exit (ferror (f) || fclose (f) != 0); | |
16693 | - | |
16694 | - ; | |
16695 | - return 0; | |
16696 | -} | |
16697 | -_ACEOF | |
16698 | -rm -f conftest$ac_exeext | |
16699 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16700 | - (eval $ac_link) 2>&5 | |
16701 | - ac_status=$? | |
16702 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16703 | - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16704 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16705 | - (eval $ac_try) 2>&5 | |
16706 | - ac_status=$? | |
16707 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16708 | - (exit $ac_status); }; }; then | |
16709 | - fits_in_uint=`cat conftest.val` | |
16710 | -else | |
16711 | - echo "$as_me: program exited with status $ac_status" >&5 | |
16712 | -echo "$as_me: failed program was:" >&5 | |
16713 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16714 | - | |
16715 | -( exit $ac_status ) | |
16716 | -result=? | |
16717 | -fi | |
16718 | -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16719 | -fi | |
16720 | -fi | |
16721 | -rm -f conftest.val | |
16722 | - if test "$fits_in_uint" = 1; then | |
16723 | - cat >conftest.$ac_ext <<_ACEOF | |
16724 | -/* confdefs.h. */ | |
16725 | -_ACEOF | |
16726 | -cat confdefs.h >>conftest.$ac_ext | |
16727 | -cat >>conftest.$ac_ext <<_ACEOF | |
16728 | -/* end confdefs.h. */ | |
16729 | -#include <stddef.h> | |
16730 | - extern size_t foo; | |
16731 | - extern unsigned long foo; | |
16732 | - | |
16733 | -int | |
16734 | -main () | |
16735 | -{ | |
16736 | - | |
16737 | - ; | |
16738 | - return 0; | |
16739 | -} | |
16740 | -_ACEOF | |
16741 | -rm -f conftest.$ac_objext | |
16742 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16743 | - (eval $ac_compile) 2>conftest.er1 | |
16744 | - ac_status=$? | |
16745 | - grep -v '^ *+' conftest.er1 >conftest.err | |
16746 | - rm -f conftest.er1 | |
16747 | - cat conftest.err >&5 | |
16748 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16749 | - (exit $ac_status); } && | |
16750 | - { ac_try='test -z "$ac_c_werror_flag" | |
16751 | - || test ! -s conftest.err' | |
16752 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16753 | - (eval $ac_try) 2>&5 | |
16754 | - ac_status=$? | |
16755 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16756 | - (exit $ac_status); }; } && | |
16757 | - { ac_try='test -s conftest.$ac_objext' | |
16758 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16759 | - (eval $ac_try) 2>&5 | |
16760 | - ac_status=$? | |
16761 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16762 | - (exit $ac_status); }; }; then | |
16763 | - fits_in_uint=0 | |
16764 | -else | |
16765 | - echo "$as_me: failed program was:" >&5 | |
16766 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16767 | - | |
16768 | -fi | |
16769 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16770 | - fi | |
16771 | - if test -z "$result"; then | |
16772 | - if test "$fits_in_uint" = 1; then | |
16773 | - result="$res_hi$res_lo"U | |
16774 | - else | |
16775 | - result="$res_hi$res_lo"UL | |
16776 | - fi | |
16777 | - else | |
16778 | - result='~(size_t)0' | |
16779 | - fi | |
16780 | - fi | |
16781 | - echo "$as_me:$LINENO: result: $result" >&5 | |
16782 | -echo "${ECHO_T}$result" >&6 | |
16783 | - if test "$result" != yes; then | |
16784 | - | |
16785 | -cat >>confdefs.h <<_ACEOF | |
16786 | -#define SIZE_MAX $result | |
16787 | -_ACEOF | |
16788 | - | |
16789 | - fi | |
16790 | - | |
16791 | - | |
16792 | - | |
16793 | - | |
16794 | - | |
16795 | -for ac_header in stdint.h | |
16796 | -do | |
16797 | -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16798 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16799 | - echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16800 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16801 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16802 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16803 | -fi | |
16804 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16805 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16806 | -else | |
16807 | - # Is the header compilable? | |
16808 | -echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16809 | -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16810 | -cat >conftest.$ac_ext <<_ACEOF | |
16811 | -/* confdefs.h. */ | |
16812 | -_ACEOF | |
16813 | -cat confdefs.h >>conftest.$ac_ext | |
16814 | -cat >>conftest.$ac_ext <<_ACEOF | |
16815 | -/* end confdefs.h. */ | |
16816 | -$ac_includes_default | |
16817 | -#include <$ac_header> | |
16818 | -_ACEOF | |
16819 | -rm -f conftest.$ac_objext | |
16820 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16821 | - (eval $ac_compile) 2>conftest.er1 | |
16822 | - ac_status=$? | |
16823 | - grep -v '^ *+' conftest.er1 >conftest.err | |
16824 | - rm -f conftest.er1 | |
16825 | - cat conftest.err >&5 | |
16826 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16827 | - (exit $ac_status); } && | |
16828 | - { ac_try='test -z "$ac_c_werror_flag" | |
16829 | - || test ! -s conftest.err' | |
16830 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16831 | - (eval $ac_try) 2>&5 | |
16832 | - ac_status=$? | |
16833 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16834 | - (exit $ac_status); }; } && | |
16835 | - { ac_try='test -s conftest.$ac_objext' | |
16836 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16837 | - (eval $ac_try) 2>&5 | |
16838 | - ac_status=$? | |
16839 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16840 | - (exit $ac_status); }; }; then | |
16841 | - ac_header_compiler=yes | |
16842 | -else | |
16843 | - echo "$as_me: failed program was:" >&5 | |
16844 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16845 | - | |
16846 | -ac_header_compiler=no | |
16847 | -fi | |
16848 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16849 | -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16850 | -echo "${ECHO_T}$ac_header_compiler" >&6 | |
16851 | - | |
16852 | -# Is the header present? | |
16853 | -echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16854 | -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16855 | -cat >conftest.$ac_ext <<_ACEOF | |
16856 | -/* confdefs.h. */ | |
16857 | -_ACEOF | |
16858 | -cat confdefs.h >>conftest.$ac_ext | |
16859 | -cat >>conftest.$ac_ext <<_ACEOF | |
16860 | -/* end confdefs.h. */ | |
16861 | -#include <$ac_header> | |
16862 | -_ACEOF | |
16863 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16864 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16865 | - ac_status=$? | |
16866 | - grep -v '^ *+' conftest.er1 >conftest.err | |
16867 | - rm -f conftest.er1 | |
16868 | - cat conftest.err >&5 | |
16869 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16870 | - (exit $ac_status); } >/dev/null; then | |
16871 | - if test -s conftest.err; then | |
16872 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
16873 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
16874 | - else | |
16875 | - ac_cpp_err= | |
16876 | - fi | |
16877 | -else | |
16878 | - ac_cpp_err=yes | |
16879 | -fi | |
16880 | -if test -z "$ac_cpp_err"; then | |
16881 | - ac_header_preproc=yes | |
16882 | -else | |
16883 | - echo "$as_me: failed program was:" >&5 | |
16884 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16885 | - | |
16886 | - ac_header_preproc=no | |
16887 | -fi | |
16888 | -rm -f conftest.err conftest.$ac_ext | |
16889 | -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16890 | -echo "${ECHO_T}$ac_header_preproc" >&6 | |
16891 | - | |
16892 | -# So? What about this header? | |
16893 | -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16894 | - yes:no: ) | |
16895 | - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16896 | -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16897 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16898 | -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16899 | - ac_header_preproc=yes | |
16900 | - ;; | |
16901 | - no:yes:* ) | |
16902 | - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16903 | -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16904 | - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16905 | -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16906 | - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16907 | -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16908 | - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16909 | -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16910 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16911 | -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16912 | - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16913 | -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
16914 | - ( | |
16915 | - cat <<\_ASBOX | |
16916 | -## ------------------------------------------ ## | |
16917 | -## Report this to the AC_PACKAGE_NAME lists. ## | |
16918 | -## ------------------------------------------ ## | |
16919 | -_ASBOX | |
16920 | - ) | | |
16921 | - sed "s/^/$as_me: WARNING: /" >&2 | |
16922 | - ;; | |
16923 | -esac | |
16924 | -echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16925 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16926 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16927 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16928 | -else | |
16929 | - eval "$as_ac_Header=\$ac_header_preproc" | |
16930 | -fi | |
16931 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16932 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16933 | - | |
16934 | -fi | |
16935 | -if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16936 | - cat >>confdefs.h <<_ACEOF | |
16937 | -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16938 | -_ACEOF | |
16939 | - | |
16940 | -fi | |
16941 | - | |
16942 | -done | |
16943 | - | |
16944 | - | |
16945 | - | |
16946 | - echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 | |
16947 | -echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6 | |
16948 | -if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then | |
16949 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16950 | -else | |
16951 | - gt_save_CPPFLAGS="$CPPFLAGS" | |
16952 | - CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" | |
16953 | - gt_save_LIBS="$LIBS" | |
16954 | - LIBS="$LIBS -framework CoreFoundation" | |
16955 | - cat >conftest.$ac_ext <<_ACEOF | |
16956 | -/* confdefs.h. */ | |
16957 | -_ACEOF | |
16958 | -cat confdefs.h >>conftest.$ac_ext | |
16959 | -cat >>conftest.$ac_ext <<_ACEOF | |
16960 | -/* end confdefs.h. */ | |
16961 | -#include <CFPreferences.h> | |
16962 | -int | |
16963 | -main () | |
16964 | -{ | |
16965 | -CFPreferencesCopyAppValue(NULL, NULL) | |
16966 | - ; | |
16967 | - return 0; | |
16968 | -} | |
16969 | -_ACEOF | |
16970 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
16971 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16972 | - (eval $ac_link) 2>conftest.er1 | |
16973 | - ac_status=$? | |
16974 | - grep -v '^ *+' conftest.er1 >conftest.err | |
16975 | - rm -f conftest.er1 | |
16976 | - cat conftest.err >&5 | |
16977 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16978 | - (exit $ac_status); } && | |
16979 | - { ac_try='test -z "$ac_c_werror_flag" | |
16980 | - || test ! -s conftest.err' | |
16981 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16982 | - (eval $ac_try) 2>&5 | |
16983 | - ac_status=$? | |
16984 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16985 | - (exit $ac_status); }; } && | |
16986 | - { ac_try='test -s conftest$ac_exeext' | |
16987 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16988 | - (eval $ac_try) 2>&5 | |
16989 | - ac_status=$? | |
16990 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16991 | - (exit $ac_status); }; }; then | |
16992 | - gt_cv_func_CFPreferencesCopyAppValue=yes | |
16993 | -else | |
16994 | - echo "$as_me: failed program was:" >&5 | |
16995 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
16996 | - | |
16997 | -gt_cv_func_CFPreferencesCopyAppValue=no | |
16998 | -fi | |
16999 | -rm -f conftest.err conftest.$ac_objext \ | |
17000 | - conftest$ac_exeext conftest.$ac_ext | |
17001 | - CPPFLAGS="$gt_save_CPPFLAGS" | |
17002 | - LIBS="$gt_save_LIBS" | |
17003 | -fi | |
17004 | -echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 | |
17005 | -echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6 | |
17006 | - if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
17007 | - | |
17008 | -cat >>confdefs.h <<\_ACEOF | |
17009 | -#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 | |
17010 | -_ACEOF | |
17011 | - | |
17012 | - fi | |
17013 | - echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 | |
17014 | -echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6 | |
17015 | -if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then | |
17016 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17017 | -else | |
17018 | - gt_save_CPPFLAGS="$CPPFLAGS" | |
17019 | - CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" | |
17020 | - gt_save_LIBS="$LIBS" | |
17021 | - LIBS="$LIBS -framework CoreFoundation" | |
17022 | - cat >conftest.$ac_ext <<_ACEOF | |
17023 | -/* confdefs.h. */ | |
17024 | -_ACEOF | |
17025 | -cat confdefs.h >>conftest.$ac_ext | |
17026 | -cat >>conftest.$ac_ext <<_ACEOF | |
17027 | -/* end confdefs.h. */ | |
17028 | -#include <CFLocale.h> | |
17029 | -int | |
17030 | -main () | |
17031 | -{ | |
17032 | -CFLocaleCopyCurrent(); | |
17033 | - ; | |
17034 | - return 0; | |
17035 | -} | |
17036 | -_ACEOF | |
17037 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
17038 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17039 | - (eval $ac_link) 2>conftest.er1 | |
17040 | - ac_status=$? | |
17041 | - grep -v '^ *+' conftest.er1 >conftest.err | |
17042 | - rm -f conftest.er1 | |
17043 | - cat conftest.err >&5 | |
17044 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17045 | - (exit $ac_status); } && | |
17046 | - { ac_try='test -z "$ac_c_werror_flag" | |
17047 | - || test ! -s conftest.err' | |
17048 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17049 | - (eval $ac_try) 2>&5 | |
17050 | - ac_status=$? | |
17051 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17052 | - (exit $ac_status); }; } && | |
17053 | - { ac_try='test -s conftest$ac_exeext' | |
17054 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17055 | - (eval $ac_try) 2>&5 | |
17056 | - ac_status=$? | |
17057 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17058 | - (exit $ac_status); }; }; then | |
17059 | - gt_cv_func_CFLocaleCopyCurrent=yes | |
17060 | -else | |
17061 | - echo "$as_me: failed program was:" >&5 | |
17062 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
17063 | - | |
17064 | -gt_cv_func_CFLocaleCopyCurrent=no | |
17065 | -fi | |
17066 | -rm -f conftest.err conftest.$ac_objext \ | |
17067 | - conftest$ac_exeext conftest.$ac_ext | |
17068 | - CPPFLAGS="$gt_save_CPPFLAGS" | |
17069 | - LIBS="$gt_save_LIBS" | |
17070 | -fi | |
17071 | -echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 | |
17072 | -echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6 | |
17073 | - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
17074 | - | |
17075 | -cat >>confdefs.h <<\_ACEOF | |
17076 | -#define HAVE_CFLOCALECOPYCURRENT 1 | |
17077 | -_ACEOF | |
17078 | - | |
17079 | - fi | |
17080 | - INTL_MACOSX_LIBS= | |
17081 | - if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
17082 | - INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | |
17083 | - fi | |
17084 | - | |
17085 | - | |
17086 | - | |
17087 | - if test "X$prefix" = "XNONE"; then | |
17088 | - acl_final_prefix="$ac_default_prefix" | |
17089 | - else | |
17090 | - acl_final_prefix="$prefix" | |
17091 | - fi | |
17092 | - if test "X$exec_prefix" = "XNONE"; then | |
17093 | - acl_final_exec_prefix='${prefix}' | |
17094 | - else | |
17095 | - acl_final_exec_prefix="$exec_prefix" | |
17096 | - fi | |
17097 | - acl_save_prefix="$prefix" | |
17098 | - prefix="$acl_final_prefix" | |
17099 | - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
17100 | - prefix="$acl_save_prefix" | |
17101 | - | |
17102 | - | |
17103 | -# Check whether --with-gnu-ld or --without-gnu-ld was given. | |
17104 | -if test "${with_gnu_ld+set}" = set; then | |
17105 | - withval="$with_gnu_ld" | |
17106 | - test "$withval" = no || with_gnu_ld=yes | |
17107 | -else | |
17108 | - with_gnu_ld=no | |
17109 | -fi; | |
17110 | -# Prepare PATH_SEPARATOR. | |
17111 | -# The user is always right. | |
17112 | -if test "${PATH_SEPARATOR+set}" != set; then | |
17113 | - echo "#! /bin/sh" >conf$$.sh | |
17114 | - echo "exit 0" >>conf$$.sh | |
17115 | - chmod +x conf$$.sh | |
17116 | - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
17117 | - PATH_SEPARATOR=';' | |
17118 | - else | |
17119 | - PATH_SEPARATOR=: | |
17120 | - fi | |
17121 | - rm -f conf$$.sh | |
17122 | -fi | |
17123 | -ac_prog=ld | |
17124 | -if test "$GCC" = yes; then | |
17125 | - # Check if gcc -print-prog-name=ld gives a path. | |
17126 | - echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
17127 | -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
17128 | - case $host in | |
17129 | - *-*-mingw*) | |
17130 | - # gcc leaves a trailing carriage return which upsets mingw | |
17131 | - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
17132 | - *) | |
17133 | - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
17134 | - esac | |
17135 | - case $ac_prog in | |
17136 | - # Accept absolute paths. | |
17137 | - [\\/]* | [A-Za-z]:[\\/]*) | |
17138 | - re_direlt='/[^/][^/]*/\.\./' | |
17139 | - # Canonicalize the path of ld | |
17140 | - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
17141 | - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
17142 | - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
17143 | - done | |
17144 | - test -z "$LD" && LD="$ac_prog" | |
17145 | - ;; | |
17146 | - "") | |
17147 | - # If it fails, then pretend we aren't using GCC. | |
17148 | - ac_prog=ld | |
17149 | - ;; | |
17150 | - *) | |
17151 | - # If it is relative, then search for the first ld in PATH. | |
17152 | - with_gnu_ld=unknown | |
17153 | - ;; | |
17154 | - esac | |
17155 | -elif test "$with_gnu_ld" = yes; then | |
17156 | - echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
17157 | -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
17158 | -else | |
17159 | - echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
17160 | -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
17161 | -fi | |
17162 | -if test "${acl_cv_path_LD+set}" = set; then | |
17163 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17164 | -else | |
17165 | - if test -z "$LD"; then | |
17166 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
17167 | - for ac_dir in $PATH; do | |
17168 | - test -z "$ac_dir" && ac_dir=. | |
17169 | - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
17170 | - acl_cv_path_LD="$ac_dir/$ac_prog" | |
17171 | - # Check to see if the program is GNU ld. I'd rather use --version, | |
17172 | - # but apparently some GNU ld's only accept -v. | |
17173 | - # Break only if it was the GNU/non-GNU ld that we prefer. | |
17174 | - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
17175 | - *GNU* | *'with BFD'*) | |
17176 | - test "$with_gnu_ld" != no && break ;; | |
17177 | - *) | |
17178 | - test "$with_gnu_ld" != yes && break ;; | |
17179 | - esac | |
17180 | - fi | |
17181 | - done | |
17182 | - IFS="$ac_save_ifs" | |
17183 | -else | |
17184 | - acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
17185 | -fi | |
17186 | -fi | |
17187 | - | |
17188 | -LD="$acl_cv_path_LD" | |
17189 | -if test -n "$LD"; then | |
17190 | - echo "$as_me:$LINENO: result: $LD" >&5 | |
17191 | -echo "${ECHO_T}$LD" >&6 | |
17192 | -else | |
17193 | - echo "$as_me:$LINENO: result: no" >&5 | |
17194 | -echo "${ECHO_T}no" >&6 | |
17195 | -fi | |
17196 | -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
17197 | -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
17198 | - { (exit 1); exit 1; }; } | |
17199 | -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
17200 | -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
17201 | -if test "${acl_cv_prog_gnu_ld+set}" = set; then | |
17202 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17203 | -else | |
17204 | - # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
17205 | -case `$LD -v 2>&1 </dev/null` in | |
17206 | -*GNU* | *'with BFD'*) | |
17207 | - acl_cv_prog_gnu_ld=yes ;; | |
17208 | -*) | |
17209 | - acl_cv_prog_gnu_ld=no ;; | |
17210 | -esac | |
17211 | -fi | |
17212 | -echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 | |
17213 | -echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 | |
17214 | -with_gnu_ld=$acl_cv_prog_gnu_ld | |
17215 | - | |
17216 | - | |
17217 | - | |
17218 | - | |
17219 | - echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | |
17220 | -echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 | |
17221 | -if test "${acl_cv_rpath+set}" = set; then | |
17222 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17223 | -else | |
17224 | - | |
17225 | - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
17226 | - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
17227 | - . ./conftest.sh | |
17228 | - rm -f ./conftest.sh | |
17229 | - acl_cv_rpath=done | |
17230 | - | |
17231 | -fi | |
17232 | -echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 | |
17233 | -echo "${ECHO_T}$acl_cv_rpath" >&6 | |
17234 | - wl="$acl_cv_wl" | |
17235 | - libext="$acl_cv_libext" | |
17236 | - shlibext="$acl_cv_shlibext" | |
17237 | - hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
17238 | - hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
17239 | - hardcode_direct="$acl_cv_hardcode_direct" | |
17240 | - hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
17241 | - # Check whether --enable-rpath or --disable-rpath was given. | |
17242 | -if test "${enable_rpath+set}" = set; then | |
17243 | - enableval="$enable_rpath" | |
17244 | - : | |
17245 | -else | |
17246 | - enable_rpath=yes | |
17247 | -fi; | |
17248 | - | |
17249 | - | |
17250 | - | |
17251 | - | |
17252 | - | |
17253 | - | |
17254 | - | |
17255 | - use_additional=yes | |
17256 | - | |
17257 | - acl_save_prefix="$prefix" | |
17258 | - prefix="$acl_final_prefix" | |
17259 | - acl_save_exec_prefix="$exec_prefix" | |
17260 | - exec_prefix="$acl_final_exec_prefix" | |
17261 | - | |
17262 | - eval additional_includedir=\"$includedir\" | |
17263 | - eval additional_libdir=\"$libdir\" | |
17264 | - | |
17265 | - exec_prefix="$acl_save_exec_prefix" | |
17266 | - prefix="$acl_save_prefix" | |
17267 | - | |
17268 | - | |
17269 | -# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
17270 | -if test "${with_libiconv_prefix+set}" = set; then | |
17271 | - withval="$with_libiconv_prefix" | |
17272 | - | |
17273 | - if test "X$withval" = "Xno"; then | |
17274 | - use_additional=no | |
17275 | - else | |
17276 | - if test "X$withval" = "X"; then | |
17277 | - | |
17278 | - acl_save_prefix="$prefix" | |
17279 | - prefix="$acl_final_prefix" | |
17280 | - acl_save_exec_prefix="$exec_prefix" | |
17281 | - exec_prefix="$acl_final_exec_prefix" | |
17282 | - | |
17283 | - eval additional_includedir=\"$includedir\" | |
17284 | - eval additional_libdir=\"$libdir\" | |
17285 | - | |
17286 | - exec_prefix="$acl_save_exec_prefix" | |
17287 | - prefix="$acl_save_prefix" | |
17288 | - | |
17289 | - else | |
17290 | - additional_includedir="$withval/include" | |
17291 | - additional_libdir="$withval/lib" | |
17292 | - fi | |
17293 | - fi | |
17294 | - | |
17295 | -fi; | |
17296 | - LIBICONV= | |
17297 | - LTLIBICONV= | |
17298 | - INCICONV= | |
17299 | - rpathdirs= | |
17300 | - ltrpathdirs= | |
17301 | - names_already_handled= | |
17302 | - names_next_round='iconv ' | |
17303 | - while test -n "$names_next_round"; do | |
17304 | - names_this_round="$names_next_round" | |
17305 | - names_next_round= | |
17306 | - for name in $names_this_round; do | |
17307 | - already_handled= | |
17308 | - for n in $names_already_handled; do | |
17309 | - if test "$n" = "$name"; then | |
17310 | - already_handled=yes | |
17311 | - break | |
17312 | - fi | |
17313 | - done | |
17314 | - if test -z "$already_handled"; then | |
17315 | - names_already_handled="$names_already_handled $name" | |
17316 | - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
17317 | - eval value=\"\$HAVE_LIB$uppername\" | |
17318 | - if test -n "$value"; then | |
17319 | - if test "$value" = yes; then | |
17320 | - eval value=\"\$LIB$uppername\" | |
17321 | - test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
17322 | - eval value=\"\$LTLIB$uppername\" | |
17323 | - test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
17324 | - else | |
17325 | - : | |
17326 | - fi | |
17327 | - else | |
17328 | - found_dir= | |
17329 | - found_la= | |
17330 | - found_so= | |
17331 | - found_a= | |
17332 | - if test $use_additional = yes; then | |
17333 | - if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
17334 | - found_dir="$additional_libdir" | |
17335 | - found_so="$additional_libdir/lib$name.$shlibext" | |
17336 | - if test -f "$additional_libdir/lib$name.la"; then | |
17337 | - found_la="$additional_libdir/lib$name.la" | |
17338 | - fi | |
17339 | - else | |
17340 | - if test -f "$additional_libdir/lib$name.$libext"; then | |
17341 | - found_dir="$additional_libdir" | |
17342 | - found_a="$additional_libdir/lib$name.$libext" | |
17343 | - if test -f "$additional_libdir/lib$name.la"; then | |
17344 | - found_la="$additional_libdir/lib$name.la" | |
17345 | - fi | |
17346 | - fi | |
17347 | - fi | |
17348 | - fi | |
17349 | - if test "X$found_dir" = "X"; then | |
17350 | - for x in $LDFLAGS $LTLIBICONV; do | |
17351 | - | |
17352 | - acl_save_prefix="$prefix" | |
17353 | - prefix="$acl_final_prefix" | |
17354 | - acl_save_exec_prefix="$exec_prefix" | |
17355 | - exec_prefix="$acl_final_exec_prefix" | |
17356 | - eval x=\"$x\" | |
17357 | - exec_prefix="$acl_save_exec_prefix" | |
17358 | - prefix="$acl_save_prefix" | |
17359 | - | |
17360 | - case "$x" in | |
17361 | - -L*) | |
17362 | - dir=`echo "X$x" | sed -e 's/^X-L//'` | |
17363 | - if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
17364 | - found_dir="$dir" | |
17365 | - found_so="$dir/lib$name.$shlibext" | |
17366 | - if test -f "$dir/lib$name.la"; then | |
17367 | - found_la="$dir/lib$name.la" | |
17368 | - fi | |
17369 | - else | |
17370 | - if test -f "$dir/lib$name.$libext"; then | |
17371 | - found_dir="$dir" | |
17372 | - found_a="$dir/lib$name.$libext" | |
17373 | - if test -f "$dir/lib$name.la"; then | |
17374 | - found_la="$dir/lib$name.la" | |
17375 | - fi | |
17376 | - fi | |
17377 | - fi | |
17378 | - ;; | |
17379 | - esac | |
17380 | - if test "X$found_dir" != "X"; then | |
17381 | - break | |
17382 | - fi | |
17383 | - done | |
17384 | - fi | |
17385 | - if test "X$found_dir" != "X"; then | |
17386 | - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
17387 | - if test "X$found_so" != "X"; then | |
17388 | - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
17389 | - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
17390 | - else | |
17391 | - haveit= | |
17392 | - for x in $ltrpathdirs; do | |
17393 | - if test "X$x" = "X$found_dir"; then | |
17394 | - haveit=yes | |
17395 | - break | |
17396 | - fi | |
17397 | - done | |
17398 | - if test -z "$haveit"; then | |
17399 | - ltrpathdirs="$ltrpathdirs $found_dir" | |
17400 | - fi | |
17401 | - if test "$hardcode_direct" = yes; then | |
17402 | - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
17403 | - else | |
17404 | - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
17405 | - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
17406 | - haveit= | |
17407 | - for x in $rpathdirs; do | |
17408 | - if test "X$x" = "X$found_dir"; then | |
17409 | - haveit=yes | |
17410 | - break | |
17411 | - fi | |
17412 | - done | |
17413 | - if test -z "$haveit"; then | |
17414 | - rpathdirs="$rpathdirs $found_dir" | |
17415 | - fi | |
17416 | - else | |
17417 | - haveit= | |
17418 | - for x in $LDFLAGS $LIBICONV; do | |
17419 | - | |
17420 | - acl_save_prefix="$prefix" | |
17421 | - prefix="$acl_final_prefix" | |
17422 | - acl_save_exec_prefix="$exec_prefix" | |
17423 | - exec_prefix="$acl_final_exec_prefix" | |
17424 | - eval x=\"$x\" | |
17425 | - exec_prefix="$acl_save_exec_prefix" | |
17426 | - prefix="$acl_save_prefix" | |
17427 | - | |
17428 | - if test "X$x" = "X-L$found_dir"; then | |
17429 | - haveit=yes | |
17430 | - break | |
17431 | - fi | |
17432 | - done | |
17433 | - if test -z "$haveit"; then | |
17434 | - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
17435 | - fi | |
17436 | - if test "$hardcode_minus_L" != no; then | |
17437 | - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
17438 | - else | |
17439 | - LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
17440 | - fi | |
17441 | - fi | |
17442 | - fi | |
17443 | - fi | |
17444 | - else | |
17445 | - if test "X$found_a" != "X"; then | |
17446 | - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
17447 | - else | |
17448 | - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
17449 | - fi | |
17450 | - fi | |
17451 | - additional_includedir= | |
17452 | - case "$found_dir" in | |
17453 | - */lib | */lib/) | |
17454 | - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
17455 | - additional_includedir="$basedir/include" | |
17456 | - ;; | |
17457 | - esac | |
17458 | - if test "X$additional_includedir" != "X"; then | |
17459 | - if test "X$additional_includedir" != "X/usr/include"; then | |
17460 | - haveit= | |
17461 | - if test "X$additional_includedir" = "X/usr/local/include"; then | |
17462 | - if test -n "$GCC"; then | |
17463 | - case $host_os in | |
17464 | - linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
17465 | - esac | |
17466 | - fi | |
17467 | - fi | |
17468 | - if test -z "$haveit"; then | |
17469 | - for x in $CPPFLAGS $INCICONV; do | |
17470 | - | |
17471 | - acl_save_prefix="$prefix" | |
17472 | - prefix="$acl_final_prefix" | |
17473 | - acl_save_exec_prefix="$exec_prefix" | |
17474 | - exec_prefix="$acl_final_exec_prefix" | |
17475 | - eval x=\"$x\" | |
17476 | - exec_prefix="$acl_save_exec_prefix" | |
17477 | - prefix="$acl_save_prefix" | |
17478 | - | |
17479 | - if test "X$x" = "X-I$additional_includedir"; then | |
17480 | - haveit=yes | |
17481 | - break | |
17482 | - fi | |
17483 | - done | |
17484 | - if test -z "$haveit"; then | |
17485 | - if test -d "$additional_includedir"; then | |
17486 | - INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
17487 | - fi | |
17488 | - fi | |
17489 | - fi | |
17490 | - fi | |
17491 | - fi | |
17492 | - if test -n "$found_la"; then | |
17493 | - save_libdir="$libdir" | |
17494 | - case "$found_la" in | |
17495 | - */* | *\\*) . "$found_la" ;; | |
17496 | - *) . "./$found_la" ;; | |
17497 | - esac | |
17498 | - libdir="$save_libdir" | |
17499 | - for dep in $dependency_libs; do | |
17500 | - case "$dep" in | |
17501 | - -L*) | |
17502 | - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
17503 | - if test "X$additional_libdir" != "X/usr/lib"; then | |
17504 | - haveit= | |
17505 | - if test "X$additional_libdir" = "X/usr/local/lib"; then | |
17506 | - if test -n "$GCC"; then | |
17507 | - case $host_os in | |
17508 | - linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
17509 | - esac | |
17510 | - fi | |
17511 | - fi | |
17512 | - if test -z "$haveit"; then | |
17513 | - haveit= | |
17514 | - for x in $LDFLAGS $LIBICONV; do | |
17515 | - | |
17516 | - acl_save_prefix="$prefix" | |
17517 | - prefix="$acl_final_prefix" | |
17518 | - acl_save_exec_prefix="$exec_prefix" | |
17519 | - exec_prefix="$acl_final_exec_prefix" | |
17520 | - eval x=\"$x\" | |
17521 | - exec_prefix="$acl_save_exec_prefix" | |
17522 | - prefix="$acl_save_prefix" | |
17523 | - | |
17524 | - if test "X$x" = "X-L$additional_libdir"; then | |
17525 | - haveit=yes | |
17526 | - break | |
17527 | - fi | |
17528 | - done | |
17529 | - if test -z "$haveit"; then | |
17530 | - if test -d "$additional_libdir"; then | |
17531 | - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
17532 | - fi | |
17533 | - fi | |
17534 | - haveit= | |
17535 | - for x in $LDFLAGS $LTLIBICONV; do | |
17536 | - | |
17537 | - acl_save_prefix="$prefix" | |
17538 | - prefix="$acl_final_prefix" | |
17539 | - acl_save_exec_prefix="$exec_prefix" | |
17540 | - exec_prefix="$acl_final_exec_prefix" | |
17541 | - eval x=\"$x\" | |
17542 | - exec_prefix="$acl_save_exec_prefix" | |
17543 | - prefix="$acl_save_prefix" | |
17544 | - | |
17545 | - if test "X$x" = "X-L$additional_libdir"; then | |
17546 | - haveit=yes | |
17547 | - break | |
17548 | - fi | |
17549 | - done | |
17550 | - if test -z "$haveit"; then | |
17551 | - if test -d "$additional_libdir"; then | |
17552 | - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
17553 | - fi | |
17554 | - fi | |
17555 | - fi | |
17556 | - fi | |
17557 | - ;; | |
17558 | - -R*) | |
17559 | - dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
17560 | - if test "$enable_rpath" != no; then | |
17561 | - haveit= | |
17562 | - for x in $rpathdirs; do | |
17563 | - if test "X$x" = "X$dir"; then | |
17564 | - haveit=yes | |
17565 | - break | |
17566 | - fi | |
17567 | - done | |
17568 | - if test -z "$haveit"; then | |
17569 | - rpathdirs="$rpathdirs $dir" | |
17570 | - fi | |
17571 | - haveit= | |
17572 | - for x in $ltrpathdirs; do | |
17573 | - if test "X$x" = "X$dir"; then | |
17574 | - haveit=yes | |
17575 | - break | |
17576 | - fi | |
17577 | - done | |
17578 | - if test -z "$haveit"; then | |
17579 | - ltrpathdirs="$ltrpathdirs $dir" | |
17580 | - fi | |
17581 | - fi | |
17582 | - ;; | |
17583 | - -l*) | |
17584 | - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
17585 | - ;; | |
17586 | - *.la) | |
17587 | - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
17588 | - ;; | |
17589 | - *) | |
17590 | - LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
17591 | - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
17592 | - ;; | |
17593 | - esac | |
17594 | - done | |
17595 | - fi | |
17596 | - else | |
17597 | - LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
17598 | - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
17599 | - fi | |
17600 | - fi | |
17601 | - fi | |
17602 | - done | |
17603 | - done | |
17604 | - if test "X$rpathdirs" != "X"; then | |
17605 | - if test -n "$hardcode_libdir_separator"; then | |
17606 | - alldirs= | |
17607 | - for found_dir in $rpathdirs; do | |
17608 | - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
17609 | - done | |
17610 | - acl_save_libdir="$libdir" | |
17611 | - libdir="$alldirs" | |
17612 | - eval flag=\"$hardcode_libdir_flag_spec\" | |
17613 | - libdir="$acl_save_libdir" | |
17614 | - LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
17615 | - else | |
17616 | - for found_dir in $rpathdirs; do | |
17617 | - acl_save_libdir="$libdir" | |
17618 | - libdir="$found_dir" | |
17619 | - eval flag=\"$hardcode_libdir_flag_spec\" | |
17620 | - libdir="$acl_save_libdir" | |
17621 | - LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
17622 | - done | |
17623 | - fi | |
17624 | - fi | |
17625 | - if test "X$ltrpathdirs" != "X"; then | |
17626 | - for found_dir in $ltrpathdirs; do | |
17627 | - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
17628 | - done | |
17629 | - fi | |
17630 | - | |
17631 | - | |
17632 | - | |
17633 | - | |
17634 | - | |
17635 | - | |
17636 | - | |
17637 | - | |
17638 | - echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 | |
17639 | -echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 | |
17640 | -if test "${ac_cv_type_ptrdiff_t+set}" = set; then | |
17641 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17642 | -else | |
17643 | - cat >conftest.$ac_ext <<_ACEOF | |
17644 | -/* confdefs.h. */ | |
17645 | -_ACEOF | |
17646 | -cat confdefs.h >>conftest.$ac_ext | |
17647 | -cat >>conftest.$ac_ext <<_ACEOF | |
17648 | -/* end confdefs.h. */ | |
17649 | -$ac_includes_default | |
17650 | -int | |
17651 | -main () | |
17652 | -{ | |
17653 | -if ((ptrdiff_t *) 0) | |
17654 | - return 0; | |
17655 | -if (sizeof (ptrdiff_t)) | |
17656 | - return 0; | |
17657 | - ; | |
17658 | - return 0; | |
17659 | -} | |
17660 | -_ACEOF | |
17661 | -rm -f conftest.$ac_objext | |
17662 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17663 | - (eval $ac_compile) 2>conftest.er1 | |
17664 | - ac_status=$? | |
17665 | - grep -v '^ *+' conftest.er1 >conftest.err | |
17666 | - rm -f conftest.er1 | |
17667 | - cat conftest.err >&5 | |
17668 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17669 | - (exit $ac_status); } && | |
17670 | - { ac_try='test -z "$ac_c_werror_flag" | |
17671 | - || test ! -s conftest.err' | |
17672 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17673 | - (eval $ac_try) 2>&5 | |
17674 | - ac_status=$? | |
17675 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17676 | - (exit $ac_status); }; } && | |
17677 | - { ac_try='test -s conftest.$ac_objext' | |
17678 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17679 | - (eval $ac_try) 2>&5 | |
17680 | - ac_status=$? | |
17681 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17682 | - (exit $ac_status); }; }; then | |
17683 | - ac_cv_type_ptrdiff_t=yes | |
17684 | -else | |
17685 | - echo "$as_me: failed program was:" >&5 | |
17686 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
17687 | - | |
17688 | -ac_cv_type_ptrdiff_t=no | |
17689 | -fi | |
17690 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17691 | -fi | |
17692 | -echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 | |
17693 | -echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 | |
17694 | -if test $ac_cv_type_ptrdiff_t = yes; then | |
17695 | - : | |
17696 | -else | |
17697 | - | |
17698 | -cat >>confdefs.h <<\_ACEOF | |
17699 | -#define ptrdiff_t long | |
17700 | -_ACEOF | |
17701 | - | |
17702 | - | |
17703 | -fi | |
17704 | - | |
17705 | - | |
17706 | - | |
17707 | - | |
17708 | - | |
17709 | - | |
17710 | - | |
17711 | - | |
17712 | - | |
17713 | - | |
17714 | - | |
17715 | -for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | |
17716 | -stdlib.h string.h unistd.h sys/param.h | |
17717 | -do | |
17718 | -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17719 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17720 | - echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17721 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17722 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17723 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17724 | -fi | |
17725 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17726 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17727 | -else | |
17728 | - # Is the header compilable? | |
17729 | -echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17730 | -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17731 | -cat >conftest.$ac_ext <<_ACEOF | |
17732 | -/* confdefs.h. */ | |
17733 | -_ACEOF | |
17734 | -cat confdefs.h >>conftest.$ac_ext | |
17735 | -cat >>conftest.$ac_ext <<_ACEOF | |
17736 | -/* end confdefs.h. */ | |
17737 | -$ac_includes_default | |
17738 | -#include <$ac_header> | |
17739 | -_ACEOF | |
17740 | -rm -f conftest.$ac_objext | |
17741 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17742 | - (eval $ac_compile) 2>conftest.er1 | |
17743 | - ac_status=$? | |
17744 | - grep -v '^ *+' conftest.er1 >conftest.err | |
17745 | - rm -f conftest.er1 | |
17746 | - cat conftest.err >&5 | |
17747 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17748 | - (exit $ac_status); } && | |
17749 | - { ac_try='test -z "$ac_c_werror_flag" | |
17750 | - || test ! -s conftest.err' | |
17751 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17752 | - (eval $ac_try) 2>&5 | |
17753 | - ac_status=$? | |
17754 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17755 | - (exit $ac_status); }; } && | |
17756 | - { ac_try='test -s conftest.$ac_objext' | |
17757 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17758 | - (eval $ac_try) 2>&5 | |
17759 | - ac_status=$? | |
17760 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17761 | - (exit $ac_status); }; }; then | |
17762 | - ac_header_compiler=yes | |
17763 | -else | |
17764 | - echo "$as_me: failed program was:" >&5 | |
17765 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
17766 | - | |
17767 | -ac_header_compiler=no | |
17768 | -fi | |
17769 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17770 | -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17771 | -echo "${ECHO_T}$ac_header_compiler" >&6 | |
17772 | - | |
17773 | -# Is the header present? | |
17774 | -echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17775 | -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17776 | -cat >conftest.$ac_ext <<_ACEOF | |
17777 | -/* confdefs.h. */ | |
17778 | -_ACEOF | |
17779 | -cat confdefs.h >>conftest.$ac_ext | |
17780 | -cat >>conftest.$ac_ext <<_ACEOF | |
17781 | -/* end confdefs.h. */ | |
17782 | -#include <$ac_header> | |
17783 | -_ACEOF | |
17784 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17785 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17786 | - ac_status=$? | |
17787 | - grep -v '^ *+' conftest.er1 >conftest.err | |
17788 | - rm -f conftest.er1 | |
17789 | - cat conftest.err >&5 | |
17790 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17791 | - (exit $ac_status); } >/dev/null; then | |
17792 | - if test -s conftest.err; then | |
17793 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
17794 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
17795 | - else | |
17796 | - ac_cpp_err= | |
17797 | - fi | |
17798 | -else | |
17799 | - ac_cpp_err=yes | |
17800 | -fi | |
17801 | -if test -z "$ac_cpp_err"; then | |
17802 | - ac_header_preproc=yes | |
17803 | -else | |
17804 | - echo "$as_me: failed program was:" >&5 | |
17805 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
17806 | - | |
17807 | - ac_header_preproc=no | |
17808 | -fi | |
17809 | -rm -f conftest.err conftest.$ac_ext | |
17810 | -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17811 | -echo "${ECHO_T}$ac_header_preproc" >&6 | |
17812 | - | |
17813 | -# So? What about this header? | |
17814 | -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17815 | - yes:no: ) | |
17816 | - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17817 | -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17818 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17819 | -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17820 | - ac_header_preproc=yes | |
17821 | - ;; | |
17822 | - no:yes:* ) | |
17823 | - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17824 | -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17825 | - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17826 | -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17827 | - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17828 | -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17829 | - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17830 | -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17831 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17832 | -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17833 | - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17834 | -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17835 | - ( | |
17836 | - cat <<\_ASBOX | |
17837 | -## ------------------------------------------ ## | |
17838 | -## Report this to the AC_PACKAGE_NAME lists. ## | |
17839 | -## ------------------------------------------ ## | |
17840 | -_ASBOX | |
17841 | - ) | | |
17842 | - sed "s/^/$as_me: WARNING: /" >&2 | |
17843 | - ;; | |
17844 | -esac | |
17845 | -echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17846 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17847 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17848 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17849 | -else | |
17850 | - eval "$as_ac_Header=\$ac_header_preproc" | |
17851 | -fi | |
17852 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17853 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17854 | - | |
17855 | -fi | |
17856 | -if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17857 | - cat >>confdefs.h <<_ACEOF | |
17858 | -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17859 | -_ACEOF | |
17860 | - | |
17861 | -fi | |
17862 | - | |
17863 | -done | |
17864 | - | |
17865 | - | |
17866 | - | |
17867 | - | |
17868 | - | |
17869 | - | |
17870 | - | |
17871 | - | |
17872 | - | |
17873 | - | |
17874 | - | |
17875 | - | |
17876 | - | |
17877 | - | |
17878 | - | |
17879 | - | |
17880 | - | |
17881 | - | |
17882 | - | |
17883 | - | |
17884 | - | |
17885 | - | |
17886 | - | |
17887 | - | |
17888 | -for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ | |
17889 | -mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ | |
17890 | -strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ | |
17891 | -__fsetlocking | |
17892 | -do | |
17893 | -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
17894 | -echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17895 | -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17896 | -if eval "test \"\${$as_ac_var+set}\" = set"; then | |
17897 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17898 | -else | |
17899 | - cat >conftest.$ac_ext <<_ACEOF | |
17900 | -/* confdefs.h. */ | |
17901 | -_ACEOF | |
17902 | -cat confdefs.h >>conftest.$ac_ext | |
17903 | -cat >>conftest.$ac_ext <<_ACEOF | |
17904 | -/* end confdefs.h. */ | |
17905 | -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17906 | - For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17907 | -#define $ac_func innocuous_$ac_func | |
17908 | - | |
17909 | -/* System header to define __stub macros and hopefully few prototypes, | |
17910 | - which can conflict with char $ac_func (); below. | |
17911 | - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17912 | - <limits.h> exists even on freestanding compilers. */ | |
17913 | - | |
17914 | -#ifdef __STDC__ | |
17915 | -# include <limits.h> | |
17916 | -#else | |
17917 | -# include <assert.h> | |
17918 | -#endif | |
17919 | - | |
17920 | -#undef $ac_func | |
17921 | - | |
17922 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
17923 | -#ifdef __cplusplus | |
17924 | -extern "C" | |
17925 | -{ | |
17926 | -#endif | |
17927 | -/* We use char because int might match the return type of a gcc2 | |
17928 | - builtin and then its argument prototype would still apply. */ | |
17929 | -char $ac_func (); | |
17930 | -/* The GNU C library defines this for functions which it implements | |
17931 | - to always fail with ENOSYS. Some functions are actually named | |
17932 | - something starting with __ and the normal name is an alias. */ | |
17933 | -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17934 | -choke me | |
17935 | -#else | |
17936 | -char (*f) () = $ac_func; | |
17937 | -#endif | |
17938 | -#ifdef __cplusplus | |
17939 | -} | |
17940 | -#endif | |
17941 | - | |
17942 | -int | |
17943 | -main () | |
17944 | -{ | |
17945 | -return f != $ac_func; | |
17946 | - ; | |
17947 | - return 0; | |
17948 | -} | |
17949 | -_ACEOF | |
17950 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
17951 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17952 | - (eval $ac_link) 2>conftest.er1 | |
17953 | - ac_status=$? | |
17954 | - grep -v '^ *+' conftest.er1 >conftest.err | |
17955 | - rm -f conftest.er1 | |
17956 | - cat conftest.err >&5 | |
17957 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17958 | - (exit $ac_status); } && | |
17959 | - { ac_try='test -z "$ac_c_werror_flag" | |
17960 | - || test ! -s conftest.err' | |
17961 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17962 | - (eval $ac_try) 2>&5 | |
17963 | - ac_status=$? | |
17964 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17965 | - (exit $ac_status); }; } && | |
17966 | - { ac_try='test -s conftest$ac_exeext' | |
17967 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17968 | - (eval $ac_try) 2>&5 | |
17969 | - ac_status=$? | |
17970 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17971 | - (exit $ac_status); }; }; then | |
17972 | - eval "$as_ac_var=yes" | |
17973 | -else | |
17974 | - echo "$as_me: failed program was:" >&5 | |
17975 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
17976 | - | |
17977 | -eval "$as_ac_var=no" | |
17978 | -fi | |
17979 | -rm -f conftest.err conftest.$ac_objext \ | |
17980 | - conftest$ac_exeext conftest.$ac_ext | |
17981 | -fi | |
17982 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
17983 | -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
17984 | -if test `eval echo '${'$as_ac_var'}'` = yes; then | |
17985 | - cat >>confdefs.h <<_ACEOF | |
17986 | -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17987 | -_ACEOF | |
17988 | - | |
17989 | -fi | |
17990 | -done | |
17991 | - | |
17992 | - | |
17993 | - | |
17994 | - echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 | |
17995 | -echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6 | |
17996 | -if test "${ac_cv_have_decl__snprintf+set}" = set; then | |
17997 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17998 | -else | |
17999 | - cat >conftest.$ac_ext <<_ACEOF | |
18000 | -/* confdefs.h. */ | |
18001 | -_ACEOF | |
18002 | -cat confdefs.h >>conftest.$ac_ext | |
18003 | -cat >>conftest.$ac_ext <<_ACEOF | |
18004 | -/* end confdefs.h. */ | |
18005 | -#include <stdio.h> | |
18006 | -int | |
18007 | -main () | |
18008 | -{ | |
18009 | - | |
18010 | -#ifndef _snprintf | |
18011 | - char *p = (char *) _snprintf; | |
18012 | -#endif | |
18013 | - | |
18014 | - ; | |
18015 | - return 0; | |
18016 | -} | |
18017 | -_ACEOF | |
18018 | -rm -f conftest.$ac_objext | |
18019 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18020 | - (eval $ac_compile) 2>conftest.er1 | |
18021 | - ac_status=$? | |
18022 | - grep -v '^ *+' conftest.er1 >conftest.err | |
18023 | - rm -f conftest.er1 | |
18024 | - cat conftest.err >&5 | |
18025 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18026 | - (exit $ac_status); } && | |
18027 | - { ac_try='test -z "$ac_c_werror_flag" | |
18028 | - || test ! -s conftest.err' | |
18029 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18030 | - (eval $ac_try) 2>&5 | |
18031 | - ac_status=$? | |
18032 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18033 | - (exit $ac_status); }; } && | |
18034 | - { ac_try='test -s conftest.$ac_objext' | |
18035 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18036 | - (eval $ac_try) 2>&5 | |
18037 | - ac_status=$? | |
18038 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18039 | - (exit $ac_status); }; }; then | |
18040 | - ac_cv_have_decl__snprintf=yes | |
18041 | -else | |
18042 | - echo "$as_me: failed program was:" >&5 | |
18043 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
18044 | - | |
18045 | -ac_cv_have_decl__snprintf=no | |
18046 | -fi | |
18047 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18048 | -fi | |
18049 | -echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 | |
18050 | -echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6 | |
18051 | - if test $ac_cv_have_decl__snprintf = yes; then | |
18052 | - gt_value=1 | |
18053 | - else | |
18054 | - gt_value=0 | |
18055 | - fi | |
18056 | - | |
18057 | -cat >>confdefs.h <<_ACEOF | |
18058 | -#define HAVE_DECL__SNPRINTF $gt_value | |
18059 | -_ACEOF | |
18060 | - | |
18061 | - | |
18062 | - | |
18063 | - echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 | |
18064 | -echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6 | |
18065 | -if test "${ac_cv_have_decl__snwprintf+set}" = set; then | |
18066 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18067 | -else | |
18068 | - cat >conftest.$ac_ext <<_ACEOF | |
18069 | -/* confdefs.h. */ | |
18070 | -_ACEOF | |
18071 | -cat confdefs.h >>conftest.$ac_ext | |
18072 | -cat >>conftest.$ac_ext <<_ACEOF | |
18073 | -/* end confdefs.h. */ | |
18074 | -#include <stdio.h> | |
18075 | -int | |
18076 | -main () | |
18077 | -{ | |
18078 | - | |
18079 | -#ifndef _snwprintf | |
18080 | - char *p = (char *) _snwprintf; | |
18081 | -#endif | |
18082 | - | |
18083 | - ; | |
18084 | - return 0; | |
18085 | -} | |
18086 | -_ACEOF | |
18087 | -rm -f conftest.$ac_objext | |
18088 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18089 | - (eval $ac_compile) 2>conftest.er1 | |
18090 | - ac_status=$? | |
18091 | - grep -v '^ *+' conftest.er1 >conftest.err | |
18092 | - rm -f conftest.er1 | |
18093 | - cat conftest.err >&5 | |
18094 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18095 | - (exit $ac_status); } && | |
18096 | - { ac_try='test -z "$ac_c_werror_flag" | |
18097 | - || test ! -s conftest.err' | |
18098 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18099 | - (eval $ac_try) 2>&5 | |
18100 | - ac_status=$? | |
18101 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18102 | - (exit $ac_status); }; } && | |
18103 | - { ac_try='test -s conftest.$ac_objext' | |
18104 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18105 | - (eval $ac_try) 2>&5 | |
18106 | - ac_status=$? | |
18107 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18108 | - (exit $ac_status); }; }; then | |
18109 | - ac_cv_have_decl__snwprintf=yes | |
18110 | -else | |
18111 | - echo "$as_me: failed program was:" >&5 | |
18112 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
18113 | - | |
18114 | -ac_cv_have_decl__snwprintf=no | |
18115 | -fi | |
18116 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18117 | -fi | |
18118 | -echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 | |
18119 | -echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6 | |
18120 | - if test $ac_cv_have_decl__snwprintf = yes; then | |
18121 | - gt_value=1 | |
18122 | - else | |
18123 | - gt_value=0 | |
18124 | - fi | |
18125 | - | |
18126 | -cat >>confdefs.h <<_ACEOF | |
18127 | -#define HAVE_DECL__SNWPRINTF $gt_value | |
18128 | -_ACEOF | |
18129 | - | |
18130 | - | |
18131 | - | |
18132 | - | |
18133 | - echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 | |
18134 | -echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6 | |
18135 | -if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then | |
18136 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18137 | -else | |
18138 | - cat >conftest.$ac_ext <<_ACEOF | |
18139 | -/* confdefs.h. */ | |
18140 | -_ACEOF | |
18141 | -cat confdefs.h >>conftest.$ac_ext | |
18142 | -cat >>conftest.$ac_ext <<_ACEOF | |
18143 | -/* end confdefs.h. */ | |
18144 | -#include <stdio.h> | |
18145 | -int | |
18146 | -main () | |
18147 | -{ | |
18148 | - | |
18149 | -#ifndef feof_unlocked | |
18150 | - char *p = (char *) feof_unlocked; | |
18151 | -#endif | |
18152 | - | |
18153 | - ; | |
18154 | - return 0; | |
18155 | -} | |
18156 | -_ACEOF | |
18157 | -rm -f conftest.$ac_objext | |
18158 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18159 | - (eval $ac_compile) 2>conftest.er1 | |
18160 | - ac_status=$? | |
18161 | - grep -v '^ *+' conftest.er1 >conftest.err | |
18162 | - rm -f conftest.er1 | |
18163 | - cat conftest.err >&5 | |
18164 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18165 | - (exit $ac_status); } && | |
18166 | - { ac_try='test -z "$ac_c_werror_flag" | |
18167 | - || test ! -s conftest.err' | |
18168 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18169 | - (eval $ac_try) 2>&5 | |
18170 | - ac_status=$? | |
18171 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18172 | - (exit $ac_status); }; } && | |
18173 | - { ac_try='test -s conftest.$ac_objext' | |
18174 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18175 | - (eval $ac_try) 2>&5 | |
18176 | - ac_status=$? | |
18177 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18178 | - (exit $ac_status); }; }; then | |
18179 | - ac_cv_have_decl_feof_unlocked=yes | |
18180 | -else | |
18181 | - echo "$as_me: failed program was:" >&5 | |
18182 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
18183 | - | |
18184 | -ac_cv_have_decl_feof_unlocked=no | |
18185 | -fi | |
18186 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18187 | -fi | |
18188 | -echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 | |
18189 | -echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6 | |
18190 | - if test $ac_cv_have_decl_feof_unlocked = yes; then | |
18191 | - gt_value=1 | |
18192 | - else | |
18193 | - gt_value=0 | |
18194 | - fi | |
18195 | - | |
18196 | -cat >>confdefs.h <<_ACEOF | |
18197 | -#define HAVE_DECL_FEOF_UNLOCKED $gt_value | |
18198 | -_ACEOF | |
18199 | - | |
18200 | - | |
18201 | - | |
18202 | - echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 | |
18203 | -echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6 | |
18204 | -if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then | |
18205 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18206 | -else | |
18207 | - cat >conftest.$ac_ext <<_ACEOF | |
18208 | -/* confdefs.h. */ | |
18209 | -_ACEOF | |
18210 | -cat confdefs.h >>conftest.$ac_ext | |
18211 | -cat >>conftest.$ac_ext <<_ACEOF | |
18212 | -/* end confdefs.h. */ | |
18213 | -#include <stdio.h> | |
18214 | -int | |
18215 | -main () | |
18216 | -{ | |
18217 | - | |
18218 | -#ifndef fgets_unlocked | |
18219 | - char *p = (char *) fgets_unlocked; | |
18220 | -#endif | |
18221 | - | |
18222 | - ; | |
18223 | - return 0; | |
18224 | -} | |
18225 | -_ACEOF | |
18226 | -rm -f conftest.$ac_objext | |
18227 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18228 | - (eval $ac_compile) 2>conftest.er1 | |
18229 | - ac_status=$? | |
18230 | - grep -v '^ *+' conftest.er1 >conftest.err | |
18231 | - rm -f conftest.er1 | |
18232 | - cat conftest.err >&5 | |
18233 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18234 | - (exit $ac_status); } && | |
18235 | - { ac_try='test -z "$ac_c_werror_flag" | |
18236 | - || test ! -s conftest.err' | |
18237 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18238 | - (eval $ac_try) 2>&5 | |
18239 | - ac_status=$? | |
18240 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18241 | - (exit $ac_status); }; } && | |
18242 | - { ac_try='test -s conftest.$ac_objext' | |
18243 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18244 | - (eval $ac_try) 2>&5 | |
18245 | - ac_status=$? | |
18246 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18247 | - (exit $ac_status); }; }; then | |
18248 | - ac_cv_have_decl_fgets_unlocked=yes | |
18249 | -else | |
18250 | - echo "$as_me: failed program was:" >&5 | |
18251 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
18252 | - | |
18253 | -ac_cv_have_decl_fgets_unlocked=no | |
18254 | -fi | |
18255 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18256 | -fi | |
18257 | -echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 | |
18258 | -echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6 | |
18259 | - if test $ac_cv_have_decl_fgets_unlocked = yes; then | |
18260 | - gt_value=1 | |
18261 | - else | |
18262 | - gt_value=0 | |
18263 | - fi | |
18264 | - | |
18265 | -cat >>confdefs.h <<_ACEOF | |
18266 | -#define HAVE_DECL_FGETS_UNLOCKED $gt_value | |
18267 | -_ACEOF | |
18268 | - | |
18269 | - | |
18270 | - | |
18271 | - echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 | |
18272 | -echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 | |
18273 | -if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then | |
18274 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18275 | -else | |
18276 | - cat >conftest.$ac_ext <<_ACEOF | |
18277 | -/* confdefs.h. */ | |
18278 | -_ACEOF | |
18279 | -cat confdefs.h >>conftest.$ac_ext | |
18280 | -cat >>conftest.$ac_ext <<_ACEOF | |
18281 | -/* end confdefs.h. */ | |
18282 | -#include <stdio.h> | |
18283 | -int | |
18284 | -main () | |
18285 | -{ | |
18286 | - | |
18287 | -#ifndef getc_unlocked | |
18288 | - char *p = (char *) getc_unlocked; | |
18289 | -#endif | |
18290 | - | |
18291 | - ; | |
18292 | - return 0; | |
18293 | -} | |
18294 | -_ACEOF | |
18295 | -rm -f conftest.$ac_objext | |
18296 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18297 | - (eval $ac_compile) 2>conftest.er1 | |
18298 | - ac_status=$? | |
18299 | - grep -v '^ *+' conftest.er1 >conftest.err | |
18300 | - rm -f conftest.er1 | |
18301 | - cat conftest.err >&5 | |
18302 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18303 | - (exit $ac_status); } && | |
18304 | - { ac_try='test -z "$ac_c_werror_flag" | |
18305 | - || test ! -s conftest.err' | |
18306 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18307 | - (eval $ac_try) 2>&5 | |
18308 | - ac_status=$? | |
18309 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18310 | - (exit $ac_status); }; } && | |
18311 | - { ac_try='test -s conftest.$ac_objext' | |
18312 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18313 | - (eval $ac_try) 2>&5 | |
18314 | - ac_status=$? | |
18315 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18316 | - (exit $ac_status); }; }; then | |
18317 | - ac_cv_have_decl_getc_unlocked=yes | |
18318 | -else | |
18319 | - echo "$as_me: failed program was:" >&5 | |
18320 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
18321 | - | |
18322 | -ac_cv_have_decl_getc_unlocked=no | |
18323 | -fi | |
18324 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18325 | -fi | |
18326 | -echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 | |
18327 | -echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 | |
18328 | - if test $ac_cv_have_decl_getc_unlocked = yes; then | |
18329 | - gt_value=1 | |
18330 | - else | |
18331 | - gt_value=0 | |
18332 | - fi | |
18333 | - | |
18334 | -cat >>confdefs.h <<_ACEOF | |
18335 | -#define HAVE_DECL_GETC_UNLOCKED $gt_value | |
18336 | -_ACEOF | |
18337 | - | |
18338 | - | |
18339 | - | |
18340 | - case $gt_cv_func_printf_posix in | |
18341 | - *yes) HAVE_POSIX_PRINTF=1 ;; | |
18342 | - *) HAVE_POSIX_PRINTF=0 ;; | |
18343 | - esac | |
18344 | - | |
18345 | - if test "$ac_cv_func_asprintf" = yes; then | |
18346 | - HAVE_ASPRINTF=1 | |
18347 | - else | |
18348 | - HAVE_ASPRINTF=0 | |
18349 | - fi | |
18350 | - | |
18351 | - if test "$ac_cv_func_snprintf" = yes; then | |
18352 | - HAVE_SNPRINTF=1 | |
18353 | - else | |
18354 | - HAVE_SNPRINTF=0 | |
18355 | - fi | |
18356 | - | |
18357 | - if test "$ac_cv_func_wprintf" = yes; then | |
18358 | - HAVE_WPRINTF=1 | |
18359 | - else | |
18360 | - HAVE_WPRINTF=0 | |
18361 | - fi | |
18362 | - | |
18363 | - | |
18364 | - | |
18365 | - | |
18366 | - | |
18367 | - | |
18368 | - | |
18369 | - am_save_CPPFLAGS="$CPPFLAGS" | |
18370 | - | |
18371 | - for element in $INCICONV; do | |
18372 | - haveit= | |
18373 | - for x in $CPPFLAGS; do | |
18374 | - | |
18375 | - acl_save_prefix="$prefix" | |
18376 | - prefix="$acl_final_prefix" | |
18377 | - acl_save_exec_prefix="$exec_prefix" | |
18378 | - exec_prefix="$acl_final_exec_prefix" | |
18379 | - eval x=\"$x\" | |
18380 | - exec_prefix="$acl_save_exec_prefix" | |
18381 | - prefix="$acl_save_prefix" | |
18382 | - | |
18383 | - if test "X$x" = "X$element"; then | |
18384 | - haveit=yes | |
18385 | - break | |
18386 | - fi | |
18387 | - done | |
18388 | - if test -z "$haveit"; then | |
18389 | - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
18390 | - fi | |
18391 | - done | |
18392 | - | |
18393 | - | |
18394 | - echo "$as_me:$LINENO: checking for iconv" >&5 | |
18395 | -echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
18396 | -if test "${am_cv_func_iconv+set}" = set; then | |
18397 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18398 | -else | |
18399 | - | |
18400 | - am_cv_func_iconv="no, consider installing GNU libiconv" | |
18401 | - am_cv_lib_iconv=no | |
18402 | - cat >conftest.$ac_ext <<_ACEOF | |
18403 | -/* confdefs.h. */ | |
18404 | -_ACEOF | |
18405 | -cat confdefs.h >>conftest.$ac_ext | |
18406 | -cat >>conftest.$ac_ext <<_ACEOF | |
18407 | -/* end confdefs.h. */ | |
18408 | -#include <stdlib.h> | |
18409 | -#include <iconv.h> | |
18410 | -int | |
18411 | -main () | |
18412 | -{ | |
18413 | -iconv_t cd = iconv_open("",""); | |
18414 | - iconv(cd,NULL,NULL,NULL,NULL); | |
18415 | - iconv_close(cd); | |
18416 | - ; | |
18417 | - return 0; | |
18418 | -} | |
18419 | -_ACEOF | |
18420 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
18421 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18422 | - (eval $ac_link) 2>conftest.er1 | |
18423 | - ac_status=$? | |
18424 | - grep -v '^ *+' conftest.er1 >conftest.err | |
18425 | - rm -f conftest.er1 | |
18426 | - cat conftest.err >&5 | |
18427 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18428 | - (exit $ac_status); } && | |
18429 | - { ac_try='test -z "$ac_c_werror_flag" | |
18430 | - || test ! -s conftest.err' | |
18431 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18432 | - (eval $ac_try) 2>&5 | |
18433 | - ac_status=$? | |
18434 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18435 | - (exit $ac_status); }; } && | |
18436 | - { ac_try='test -s conftest$ac_exeext' | |
18437 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18438 | - (eval $ac_try) 2>&5 | |
18439 | - ac_status=$? | |
18440 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18441 | - (exit $ac_status); }; }; then | |
18442 | - am_cv_func_iconv=yes | |
18443 | -else | |
18444 | - echo "$as_me: failed program was:" >&5 | |
18445 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
18446 | - | |
18447 | -fi | |
18448 | -rm -f conftest.err conftest.$ac_objext \ | |
18449 | - conftest$ac_exeext conftest.$ac_ext | |
18450 | - if test "$am_cv_func_iconv" != yes; then | |
18451 | - am_save_LIBS="$LIBS" | |
18452 | - LIBS="$LIBS $LIBICONV" | |
18453 | - cat >conftest.$ac_ext <<_ACEOF | |
18454 | -/* confdefs.h. */ | |
18455 | -_ACEOF | |
18456 | -cat confdefs.h >>conftest.$ac_ext | |
18457 | -cat >>conftest.$ac_ext <<_ACEOF | |
18458 | -/* end confdefs.h. */ | |
18459 | -#include <stdlib.h> | |
18460 | -#include <iconv.h> | |
18461 | -int | |
18462 | -main () | |
18463 | -{ | |
18464 | -iconv_t cd = iconv_open("",""); | |
18465 | - iconv(cd,NULL,NULL,NULL,NULL); | |
18466 | - iconv_close(cd); | |
18467 | - ; | |
18468 | - return 0; | |
18469 | -} | |
18470 | -_ACEOF | |
18471 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
18472 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18473 | - (eval $ac_link) 2>conftest.er1 | |
18474 | - ac_status=$? | |
18475 | - grep -v '^ *+' conftest.er1 >conftest.err | |
18476 | - rm -f conftest.er1 | |
18477 | - cat conftest.err >&5 | |
18478 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18479 | - (exit $ac_status); } && | |
18480 | - { ac_try='test -z "$ac_c_werror_flag" | |
18481 | - || test ! -s conftest.err' | |
18482 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18483 | - (eval $ac_try) 2>&5 | |
18484 | - ac_status=$? | |
18485 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18486 | - (exit $ac_status); }; } && | |
18487 | - { ac_try='test -s conftest$ac_exeext' | |
18488 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18489 | - (eval $ac_try) 2>&5 | |
18490 | - ac_status=$? | |
18491 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18492 | - (exit $ac_status); }; }; then | |
18493 | - am_cv_lib_iconv=yes | |
18494 | - am_cv_func_iconv=yes | |
18495 | -else | |
18496 | - echo "$as_me: failed program was:" >&5 | |
18497 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
18498 | - | |
18499 | -fi | |
18500 | -rm -f conftest.err conftest.$ac_objext \ | |
18501 | - conftest$ac_exeext conftest.$ac_ext | |
18502 | - LIBS="$am_save_LIBS" | |
18503 | - fi | |
18504 | - | |
18505 | -fi | |
18506 | -echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
18507 | -echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
18508 | - if test "$am_cv_func_iconv" = yes; then | |
18509 | - | |
18510 | -cat >>confdefs.h <<\_ACEOF | |
18511 | -#define HAVE_ICONV 1 | |
18512 | -_ACEOF | |
18513 | - | |
18514 | - fi | |
18515 | - if test "$am_cv_lib_iconv" = yes; then | |
18516 | - echo "$as_me:$LINENO: checking how to link with libiconv" >&5 | |
18517 | -echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 | |
18518 | - echo "$as_me:$LINENO: result: $LIBICONV" >&5 | |
18519 | -echo "${ECHO_T}$LIBICONV" >&6 | |
18520 | - else | |
18521 | - CPPFLAGS="$am_save_CPPFLAGS" | |
18522 | - LIBICONV= | |
18523 | - LTLIBICONV= | |
18524 | - fi | |
18525 | - | |
18526 | - | |
18527 | - | |
18528 | - if test "$am_cv_func_iconv" = yes; then | |
18529 | - echo "$as_me:$LINENO: checking for iconv declaration" >&5 | |
18530 | -echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
18531 | - if test "${am_cv_proto_iconv+set}" = set; then | |
18532 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18533 | -else | |
18534 | - | |
18535 | - cat >conftest.$ac_ext <<_ACEOF | |
18536 | -/* confdefs.h. */ | |
18537 | -_ACEOF | |
18538 | -cat confdefs.h >>conftest.$ac_ext | |
18539 | -cat >>conftest.$ac_ext <<_ACEOF | |
18540 | -/* end confdefs.h. */ | |
18541 | - | |
18542 | -#include <stdlib.h> | |
18543 | -#include <iconv.h> | |
18544 | -extern | |
18545 | -#ifdef __cplusplus | |
18546 | -"C" | |
18547 | -#endif | |
18548 | -#if defined(__STDC__) || defined(__cplusplus) | |
18549 | -size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
18550 | -#else | |
18551 | -size_t iconv(); | |
18552 | -#endif | |
18553 | - | |
18554 | -int | |
18555 | -main () | |
18556 | -{ | |
18557 | - | |
18558 | - ; | |
18559 | - return 0; | |
18560 | -} | |
18561 | -_ACEOF | |
18562 | -rm -f conftest.$ac_objext | |
18563 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18564 | - (eval $ac_compile) 2>conftest.er1 | |
18565 | - ac_status=$? | |
18566 | - grep -v '^ *+' conftest.er1 >conftest.err | |
18567 | - rm -f conftest.er1 | |
18568 | - cat conftest.err >&5 | |
18569 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18570 | - (exit $ac_status); } && | |
18571 | - { ac_try='test -z "$ac_c_werror_flag" | |
18572 | - || test ! -s conftest.err' | |
18573 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18574 | - (eval $ac_try) 2>&5 | |
18575 | - ac_status=$? | |
18576 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18577 | - (exit $ac_status); }; } && | |
18578 | - { ac_try='test -s conftest.$ac_objext' | |
18579 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18580 | - (eval $ac_try) 2>&5 | |
18581 | - ac_status=$? | |
18582 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18583 | - (exit $ac_status); }; }; then | |
18584 | - am_cv_proto_iconv_arg1="" | |
18585 | -else | |
18586 | - echo "$as_me: failed program was:" >&5 | |
18587 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
18588 | - | |
18589 | -am_cv_proto_iconv_arg1="const" | |
18590 | -fi | |
18591 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18592 | - am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
18593 | -fi | |
18594 | - | |
18595 | - am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
18596 | - echo "$as_me:$LINENO: result: ${ac_t:- | |
18597 | - }$am_cv_proto_iconv" >&5 | |
18598 | -echo "${ECHO_T}${ac_t:- | |
18599 | - }$am_cv_proto_iconv" >&6 | |
18600 | - | |
18601 | -cat >>confdefs.h <<_ACEOF | |
18602 | -#define ICONV_CONST $am_cv_proto_iconv_arg1 | |
18603 | -_ACEOF | |
18604 | - | |
18605 | - fi | |
18606 | - | |
18607 | - | |
18608 | - echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 | |
18609 | -echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 | |
18610 | -if test "${am_cv_langinfo_codeset+set}" = set; then | |
18611 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18612 | -else | |
18613 | - cat >conftest.$ac_ext <<_ACEOF | |
18614 | -/* confdefs.h. */ | |
18615 | -_ACEOF | |
18616 | -cat confdefs.h >>conftest.$ac_ext | |
18617 | -cat >>conftest.$ac_ext <<_ACEOF | |
18618 | -/* end confdefs.h. */ | |
18619 | -#include <langinfo.h> | |
18620 | -int | |
18621 | -main () | |
18622 | -{ | |
18623 | -char* cs = nl_langinfo(CODESET); | |
18624 | - ; | |
18625 | - return 0; | |
18626 | -} | |
18627 | -_ACEOF | |
18628 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
18629 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18630 | - (eval $ac_link) 2>conftest.er1 | |
18631 | - ac_status=$? | |
18632 | - grep -v '^ *+' conftest.er1 >conftest.err | |
18633 | - rm -f conftest.er1 | |
18634 | - cat conftest.err >&5 | |
18635 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18636 | - (exit $ac_status); } && | |
18637 | - { ac_try='test -z "$ac_c_werror_flag" | |
18638 | - || test ! -s conftest.err' | |
18639 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18640 | - (eval $ac_try) 2>&5 | |
18641 | - ac_status=$? | |
18642 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18643 | - (exit $ac_status); }; } && | |
18644 | - { ac_try='test -s conftest$ac_exeext' | |
18645 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18646 | - (eval $ac_try) 2>&5 | |
18647 | - ac_status=$? | |
18648 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18649 | - (exit $ac_status); }; }; then | |
18650 | - am_cv_langinfo_codeset=yes | |
18651 | -else | |
18652 | - echo "$as_me: failed program was:" >&5 | |
18653 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
18654 | - | |
18655 | -am_cv_langinfo_codeset=no | |
18656 | -fi | |
18657 | -rm -f conftest.err conftest.$ac_objext \ | |
18658 | - conftest$ac_exeext conftest.$ac_ext | |
18659 | - | |
18660 | -fi | |
18661 | -echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 | |
18662 | -echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 | |
18663 | - if test $am_cv_langinfo_codeset = yes; then | |
18664 | - | |
18665 | -cat >>confdefs.h <<\_ACEOF | |
18666 | -#define HAVE_LANGINFO_CODESET 1 | |
18667 | -_ACEOF | |
18668 | - | |
18669 | - fi | |
18670 | - | |
18671 | - if test $ac_cv_header_locale_h = yes; then | |
18672 | - | |
18673 | - echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 | |
18674 | -echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
18675 | -if test "${gt_cv_val_LC_MESSAGES+set}" = set; then | |
18676 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18677 | -else | |
18678 | - cat >conftest.$ac_ext <<_ACEOF | |
18679 | -/* confdefs.h. */ | |
18680 | -_ACEOF | |
18681 | -cat confdefs.h >>conftest.$ac_ext | |
18682 | -cat >>conftest.$ac_ext <<_ACEOF | |
18683 | -/* end confdefs.h. */ | |
18684 | -#include <locale.h> | |
18685 | -int | |
18686 | -main () | |
18687 | -{ | |
18688 | -return LC_MESSAGES | |
18689 | - ; | |
18690 | - return 0; | |
18691 | -} | |
18692 | -_ACEOF | |
18693 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
18694 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18695 | - (eval $ac_link) 2>conftest.er1 | |
18696 | - ac_status=$? | |
18697 | - grep -v '^ *+' conftest.er1 >conftest.err | |
18698 | - rm -f conftest.er1 | |
18699 | - cat conftest.err >&5 | |
18700 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18701 | - (exit $ac_status); } && | |
18702 | - { ac_try='test -z "$ac_c_werror_flag" | |
18703 | - || test ! -s conftest.err' | |
18704 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18705 | - (eval $ac_try) 2>&5 | |
18706 | - ac_status=$? | |
18707 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18708 | - (exit $ac_status); }; } && | |
18709 | - { ac_try='test -s conftest$ac_exeext' | |
18710 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18711 | - (eval $ac_try) 2>&5 | |
18712 | - ac_status=$? | |
18713 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18714 | - (exit $ac_status); }; }; then | |
18715 | - gt_cv_val_LC_MESSAGES=yes | |
18716 | -else | |
18717 | - echo "$as_me: failed program was:" >&5 | |
18718 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
18719 | - | |
18720 | -gt_cv_val_LC_MESSAGES=no | |
18721 | -fi | |
18722 | -rm -f conftest.err conftest.$ac_objext \ | |
18723 | - conftest$ac_exeext conftest.$ac_ext | |
18724 | -fi | |
18725 | -echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5 | |
18726 | -echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6 | |
18727 | - if test $gt_cv_val_LC_MESSAGES = yes; then | |
18728 | - | |
18729 | -cat >>confdefs.h <<\_ACEOF | |
18730 | -#define HAVE_LC_MESSAGES 1 | |
18731 | -_ACEOF | |
18732 | - | |
18733 | - fi | |
18734 | - | |
18735 | - fi | |
18736 | - | |
18737 | - if test -n "$INTL_MACOSX_LIBS"; then | |
18738 | - CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" | |
18739 | - fi | |
18740 | - | |
18741 | - for ac_prog in bison | |
18742 | -do | |
18743 | - # Extract the first word of "$ac_prog", so it can be a program name with args. | |
18744 | -set dummy $ac_prog; ac_word=$2 | |
18745 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
18746 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
18747 | -if test "${ac_cv_prog_INTLBISON+set}" = set; then | |
18748 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18749 | -else | |
18750 | - if test -n "$INTLBISON"; then | |
18751 | - ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
18752 | -else | |
18753 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18754 | -for as_dir in $PATH | |
18755 | -do | |
18756 | - IFS=$as_save_IFS | |
18757 | - test -z "$as_dir" && as_dir=. | |
18758 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
18759 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
18760 | - ac_cv_prog_INTLBISON="$ac_prog" | |
18761 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18762 | - break 2 | |
18763 | - fi | |
18764 | -done | |
18765 | -done | |
18766 | - | |
18767 | -fi | |
18768 | -fi | |
18769 | -INTLBISON=$ac_cv_prog_INTLBISON | |
18770 | -if test -n "$INTLBISON"; then | |
18771 | - echo "$as_me:$LINENO: result: $INTLBISON" >&5 | |
18772 | -echo "${ECHO_T}$INTLBISON" >&6 | |
18773 | -else | |
18774 | - echo "$as_me:$LINENO: result: no" >&5 | |
18775 | -echo "${ECHO_T}no" >&6 | |
18776 | -fi | |
18777 | - | |
18778 | - test -n "$INTLBISON" && break | |
18779 | -done | |
18780 | - | |
18781 | - if test -z "$INTLBISON"; then | |
18782 | - ac_verc_fail=yes | |
18783 | - else | |
18784 | - echo "$as_me:$LINENO: checking version of bison" >&5 | |
18785 | -echo $ECHO_N "checking version of bison... $ECHO_C" >&6 | |
18786 | - ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
18787 | - case $ac_prog_version in | |
18788 | - '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
18789 | - 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
18790 | - ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
18791 | - *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
18792 | - esac | |
18793 | - echo "$as_me:$LINENO: result: $ac_prog_version" >&5 | |
18794 | -echo "${ECHO_T}$ac_prog_version" >&6 | |
18795 | - fi | |
18796 | - if test $ac_verc_fail = yes; then | |
18797 | - INTLBISON=: | |
18798 | - fi | |
18799 | - | |
18800 | - | |
18801 | - | |
18802 | - | |
18803 | - | |
18804 | - | |
18805 | - | |
18806 | - | |
18807 | - | |
18808 | - | |
18809 | - | |
18810 | - | |
18811 | - | |
18812 | - | |
18813 | - | |
18814 | - | |
18815 | - echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 | |
18816 | -echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6 | |
18817 | -if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then | |
18818 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18819 | -else | |
18820 | - gt_save_CPPFLAGS="$CPPFLAGS" | |
18821 | - CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" | |
18822 | - gt_save_LIBS="$LIBS" | |
18823 | - LIBS="$LIBS -framework CoreFoundation" | |
18824 | - cat >conftest.$ac_ext <<_ACEOF | |
18825 | -/* confdefs.h. */ | |
18826 | -_ACEOF | |
18827 | -cat confdefs.h >>conftest.$ac_ext | |
18828 | -cat >>conftest.$ac_ext <<_ACEOF | |
18829 | -/* end confdefs.h. */ | |
18830 | -#include <CFPreferences.h> | |
18831 | -int | |
18832 | -main () | |
18833 | -{ | |
18834 | -CFPreferencesCopyAppValue(NULL, NULL) | |
18835 | - ; | |
18836 | - return 0; | |
18837 | -} | |
18838 | -_ACEOF | |
18839 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
18840 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18841 | - (eval $ac_link) 2>conftest.er1 | |
18842 | - ac_status=$? | |
18843 | - grep -v '^ *+' conftest.er1 >conftest.err | |
18844 | - rm -f conftest.er1 | |
18845 | - cat conftest.err >&5 | |
18846 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18847 | - (exit $ac_status); } && | |
18848 | - { ac_try='test -z "$ac_c_werror_flag" | |
18849 | - || test ! -s conftest.err' | |
18850 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18851 | - (eval $ac_try) 2>&5 | |
18852 | - ac_status=$? | |
18853 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18854 | - (exit $ac_status); }; } && | |
18855 | - { ac_try='test -s conftest$ac_exeext' | |
18856 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18857 | - (eval $ac_try) 2>&5 | |
18858 | - ac_status=$? | |
18859 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18860 | - (exit $ac_status); }; }; then | |
18861 | - gt_cv_func_CFPreferencesCopyAppValue=yes | |
18862 | -else | |
18863 | - echo "$as_me: failed program was:" >&5 | |
18864 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
18865 | - | |
18866 | -gt_cv_func_CFPreferencesCopyAppValue=no | |
18867 | -fi | |
18868 | -rm -f conftest.err conftest.$ac_objext \ | |
18869 | - conftest$ac_exeext conftest.$ac_ext | |
18870 | - CPPFLAGS="$gt_save_CPPFLAGS" | |
18871 | - LIBS="$gt_save_LIBS" | |
18872 | -fi | |
18873 | -echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 | |
18874 | -echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6 | |
18875 | - if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
18876 | - | |
18877 | -cat >>confdefs.h <<\_ACEOF | |
18878 | -#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 | |
18879 | -_ACEOF | |
18880 | - | |
18881 | - fi | |
18882 | - echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 | |
18883 | -echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6 | |
18884 | -if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then | |
18885 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18886 | -else | |
18887 | - gt_save_CPPFLAGS="$CPPFLAGS" | |
18888 | - CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" | |
18889 | - gt_save_LIBS="$LIBS" | |
18890 | - LIBS="$LIBS -framework CoreFoundation" | |
18891 | - cat >conftest.$ac_ext <<_ACEOF | |
18892 | -/* confdefs.h. */ | |
18893 | -_ACEOF | |
18894 | -cat confdefs.h >>conftest.$ac_ext | |
18895 | -cat >>conftest.$ac_ext <<_ACEOF | |
18896 | -/* end confdefs.h. */ | |
18897 | -#include <CFLocale.h> | |
18898 | -int | |
18899 | -main () | |
18900 | -{ | |
18901 | -CFLocaleCopyCurrent(); | |
18902 | - ; | |
18903 | - return 0; | |
18904 | -} | |
18905 | -_ACEOF | |
18906 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
18907 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18908 | - (eval $ac_link) 2>conftest.er1 | |
18909 | - ac_status=$? | |
18910 | - grep -v '^ *+' conftest.er1 >conftest.err | |
18911 | - rm -f conftest.er1 | |
18912 | - cat conftest.err >&5 | |
18913 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18914 | - (exit $ac_status); } && | |
18915 | - { ac_try='test -z "$ac_c_werror_flag" | |
18916 | - || test ! -s conftest.err' | |
18917 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18918 | - (eval $ac_try) 2>&5 | |
18919 | - ac_status=$? | |
18920 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18921 | - (exit $ac_status); }; } && | |
18922 | - { ac_try='test -s conftest$ac_exeext' | |
18923 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18924 | - (eval $ac_try) 2>&5 | |
18925 | - ac_status=$? | |
18926 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18927 | - (exit $ac_status); }; }; then | |
18928 | - gt_cv_func_CFLocaleCopyCurrent=yes | |
18929 | -else | |
18930 | - echo "$as_me: failed program was:" >&5 | |
18931 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
18932 | - | |
18933 | -gt_cv_func_CFLocaleCopyCurrent=no | |
18934 | -fi | |
18935 | -rm -f conftest.err conftest.$ac_objext \ | |
18936 | - conftest$ac_exeext conftest.$ac_ext | |
18937 | - CPPFLAGS="$gt_save_CPPFLAGS" | |
18938 | - LIBS="$gt_save_LIBS" | |
18939 | -fi | |
18940 | -echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 | |
18941 | -echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6 | |
18942 | - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
18943 | - | |
18944 | -cat >>confdefs.h <<\_ACEOF | |
18945 | -#define HAVE_CFLOCALECOPYCURRENT 1 | |
18946 | -_ACEOF | |
18947 | - | |
18948 | - fi | |
18949 | - INTL_MACOSX_LIBS= | |
18950 | - if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
18951 | - INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | |
18952 | - fi | |
18953 | - | |
18954 | - | |
18955 | - | |
18956 | - | |
18957 | - echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
18958 | -echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
18959 | - # Check whether --enable-nls or --disable-nls was given. | |
18960 | -if test "${enable_nls+set}" = set; then | |
18961 | - enableval="$enable_nls" | |
18962 | - USE_NLS=$enableval | |
18963 | -else | |
18964 | - USE_NLS=yes | |
18965 | -fi; | |
18966 | - echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
18967 | -echo "${ECHO_T}$USE_NLS" >&6 | |
18968 | - | |
18969 | - | |
18970 | - | |
18971 | - | |
18972 | - BUILD_INCLUDED_LIBINTL=no | |
18973 | - USE_INCLUDED_LIBINTL=no | |
18974 | - | |
18975 | - LIBINTL= | |
18976 | - LTLIBINTL= | |
18977 | - POSUB= | |
18978 | - | |
18979 | - if test "$USE_NLS" = "yes"; then | |
18980 | - gt_use_preinstalled_gnugettext=no | |
18981 | - | |
18982 | - echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 | |
18983 | -echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
18984 | - | |
18985 | -# Check whether --with-included-gettext or --without-included-gettext was given. | |
18986 | -if test "${with_included_gettext+set}" = set; then | |
18987 | - withval="$with_included_gettext" | |
18988 | - nls_cv_force_use_gnu_gettext=$withval | |
18989 | -else | |
18990 | - nls_cv_force_use_gnu_gettext=no | |
18991 | -fi; | |
18992 | - echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
18993 | -echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
18994 | - | |
18995 | - nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
18996 | - if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
18997 | - | |
18998 | - | |
18999 | - | |
19000 | - | |
19001 | - | |
19002 | - | |
19003 | - echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 | |
19004 | -echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 | |
19005 | -if test "${gt_cv_func_gnugettext1_libc+set}" = set; then | |
19006 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19007 | -else | |
19008 | - cat >conftest.$ac_ext <<_ACEOF | |
19009 | -/* confdefs.h. */ | |
19010 | -_ACEOF | |
19011 | -cat confdefs.h >>conftest.$ac_ext | |
19012 | -cat >>conftest.$ac_ext <<_ACEOF | |
19013 | -/* end confdefs.h. */ | |
19014 | -#include <libintl.h> | |
19015 | -extern int _nl_msg_cat_cntr; | |
19016 | -extern int *_nl_domain_bindings; | |
19017 | -int | |
19018 | -main () | |
19019 | -{ | |
19020 | -bindtextdomain ("", ""); | |
19021 | -return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings | |
19022 | - ; | |
19023 | - return 0; | |
19024 | -} | |
19025 | -_ACEOF | |
19026 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
19027 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19028 | - (eval $ac_link) 2>conftest.er1 | |
19029 | - ac_status=$? | |
19030 | - grep -v '^ *+' conftest.er1 >conftest.err | |
19031 | - rm -f conftest.er1 | |
19032 | - cat conftest.err >&5 | |
19033 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19034 | - (exit $ac_status); } && | |
19035 | - { ac_try='test -z "$ac_c_werror_flag" | |
19036 | - || test ! -s conftest.err' | |
19037 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19038 | - (eval $ac_try) 2>&5 | |
19039 | - ac_status=$? | |
19040 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19041 | - (exit $ac_status); }; } && | |
19042 | - { ac_try='test -s conftest$ac_exeext' | |
19043 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19044 | - (eval $ac_try) 2>&5 | |
19045 | - ac_status=$? | |
19046 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19047 | - (exit $ac_status); }; }; then | |
19048 | - gt_cv_func_gnugettext1_libc=yes | |
19049 | -else | |
19050 | - echo "$as_me: failed program was:" >&5 | |
19051 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
19052 | - | |
19053 | -gt_cv_func_gnugettext1_libc=no | |
19054 | -fi | |
19055 | -rm -f conftest.err conftest.$ac_objext \ | |
19056 | - conftest$ac_exeext conftest.$ac_ext | |
19057 | -fi | |
19058 | -echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 | |
19059 | -echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 | |
19060 | - | |
19061 | - if test "$gt_cv_func_gnugettext1_libc" != "yes"; then | |
19062 | - | |
19063 | - | |
19064 | - | |
19065 | - use_additional=yes | |
19066 | - | |
19067 | - acl_save_prefix="$prefix" | |
19068 | - prefix="$acl_final_prefix" | |
19069 | - acl_save_exec_prefix="$exec_prefix" | |
19070 | - exec_prefix="$acl_final_exec_prefix" | |
19071 | - | |
19072 | - eval additional_includedir=\"$includedir\" | |
19073 | - eval additional_libdir=\"$libdir\" | |
19074 | - | |
19075 | - exec_prefix="$acl_save_exec_prefix" | |
19076 | - prefix="$acl_save_prefix" | |
19077 | - | |
19078 | - | |
19079 | -# Check whether --with-libintl-prefix or --without-libintl-prefix was given. | |
19080 | -if test "${with_libintl_prefix+set}" = set; then | |
19081 | - withval="$with_libintl_prefix" | |
19082 | - | |
19083 | - if test "X$withval" = "Xno"; then | |
19084 | - use_additional=no | |
19085 | - else | |
19086 | - if test "X$withval" = "X"; then | |
19087 | - | |
19088 | - acl_save_prefix="$prefix" | |
19089 | - prefix="$acl_final_prefix" | |
19090 | - acl_save_exec_prefix="$exec_prefix" | |
19091 | - exec_prefix="$acl_final_exec_prefix" | |
19092 | - | |
19093 | - eval additional_includedir=\"$includedir\" | |
19094 | - eval additional_libdir=\"$libdir\" | |
19095 | - | |
19096 | - exec_prefix="$acl_save_exec_prefix" | |
19097 | - prefix="$acl_save_prefix" | |
19098 | - | |
19099 | - else | |
19100 | - additional_includedir="$withval/include" | |
19101 | - additional_libdir="$withval/lib" | |
19102 | - fi | |
19103 | - fi | |
19104 | - | |
19105 | -fi; | |
19106 | - LIBINTL= | |
19107 | - LTLIBINTL= | |
19108 | - INCINTL= | |
19109 | - rpathdirs= | |
19110 | - ltrpathdirs= | |
19111 | - names_already_handled= | |
19112 | - names_next_round='intl ' | |
19113 | - while test -n "$names_next_round"; do | |
19114 | - names_this_round="$names_next_round" | |
19115 | - names_next_round= | |
19116 | - for name in $names_this_round; do | |
19117 | - already_handled= | |
19118 | - for n in $names_already_handled; do | |
19119 | - if test "$n" = "$name"; then | |
19120 | - already_handled=yes | |
19121 | - break | |
19122 | - fi | |
19123 | - done | |
19124 | - if test -z "$already_handled"; then | |
19125 | - names_already_handled="$names_already_handled $name" | |
19126 | - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
19127 | - eval value=\"\$HAVE_LIB$uppername\" | |
19128 | - if test -n "$value"; then | |
19129 | - if test "$value" = yes; then | |
19130 | - eval value=\"\$LIB$uppername\" | |
19131 | - test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
19132 | - eval value=\"\$LTLIB$uppername\" | |
19133 | - test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
19134 | - else | |
19135 | - : | |
19136 | - fi | |
19137 | - else | |
19138 | - found_dir= | |
19139 | - found_la= | |
19140 | - found_so= | |
19141 | - found_a= | |
19142 | - if test $use_additional = yes; then | |
19143 | - if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
19144 | - found_dir="$additional_libdir" | |
19145 | - found_so="$additional_libdir/lib$name.$shlibext" | |
19146 | - if test -f "$additional_libdir/lib$name.la"; then | |
19147 | - found_la="$additional_libdir/lib$name.la" | |
19148 | - fi | |
19149 | - else | |
19150 | - if test -f "$additional_libdir/lib$name.$libext"; then | |
19151 | - found_dir="$additional_libdir" | |
19152 | - found_a="$additional_libdir/lib$name.$libext" | |
19153 | - if test -f "$additional_libdir/lib$name.la"; then | |
19154 | - found_la="$additional_libdir/lib$name.la" | |
19155 | - fi | |
19156 | - fi | |
19157 | - fi | |
19158 | - fi | |
19159 | - if test "X$found_dir" = "X"; then | |
19160 | - for x in $LDFLAGS $LTLIBINTL; do | |
19161 | - | |
19162 | - acl_save_prefix="$prefix" | |
19163 | - prefix="$acl_final_prefix" | |
19164 | - acl_save_exec_prefix="$exec_prefix" | |
19165 | - exec_prefix="$acl_final_exec_prefix" | |
19166 | - eval x=\"$x\" | |
19167 | - exec_prefix="$acl_save_exec_prefix" | |
19168 | - prefix="$acl_save_prefix" | |
19169 | + acl_save_prefix="$prefix" | |
19170 | + prefix="$acl_final_prefix" | |
19171 | + acl_save_exec_prefix="$exec_prefix" | |
19172 | + exec_prefix="$acl_final_exec_prefix" | |
19173 | + eval x=\"$x\" | |
19174 | + exec_prefix="$acl_save_exec_prefix" | |
19175 | + prefix="$acl_save_prefix" | |
19176 | ||
19177 | case "$x" in | |
19178 | -L*) | |
19179 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
19180 | - if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
19181 | - found_dir="$dir" | |
19182 | - found_so="$dir/lib$name.$shlibext" | |
19183 | - if test -f "$dir/lib$name.la"; then | |
19184 | - found_la="$dir/lib$name.la" | |
19185 | - fi | |
19186 | - else | |
19187 | - if test -f "$dir/lib$name.$libext"; then | |
19188 | + if test -n "$acl_shlibext"; then | |
19189 | + if test -f "$dir/$libname$shrext"; then | |
19190 | found_dir="$dir" | |
19191 | - found_a="$dir/lib$name.$libext" | |
19192 | - if test -f "$dir/lib$name.la"; then | |
19193 | - found_la="$dir/lib$name.la" | |
19194 | + found_so="$dir/$libname$shrext" | |
19195 | + else | |
19196 | + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
19197 | + ver=`(cd "$dir" && \ | |
19198 | + for f in "$libname$shrext".*; do echo "$f"; done \ | |
19199 | + | sed -e "s,^$libname$shrext\\\\.,," \ | |
19200 | + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
19201 | + | sed 1q ) 2>/dev/null` | |
19202 | + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
19203 | + found_dir="$dir" | |
19204 | + found_so="$dir/$libname$shrext.$ver" | |
19205 | + fi | |
19206 | + else | |
19207 | + eval library_names=\"$acl_library_names_spec\" | |
19208 | + for f in $library_names; do | |
19209 | + if test -f "$dir/$f"; then | |
19210 | + found_dir="$dir" | |
19211 | + found_so="$dir/$f" | |
19212 | + break | |
19213 | + fi | |
19214 | + done | |
19215 | fi | |
19216 | fi | |
19217 | fi | |
19218 | + if test "X$found_dir" = "X"; then | |
19219 | + if test -f "$dir/$libname.$acl_libext"; then | |
19220 | + found_dir="$dir" | |
19221 | + found_a="$dir/$libname.$acl_libext" | |
19222 | + fi | |
19223 | + fi | |
19224 | + if test "X$found_dir" != "X"; then | |
19225 | + if test -f "$dir/$libname.la"; then | |
19226 | + found_la="$dir/$libname.la" | |
19227 | + fi | |
19228 | + fi | |
19229 | ;; | |
19230 | esac | |
19231 | if test "X$found_dir" != "X"; then | |
19232 | @@ -9657,10 +5034,12 @@ | |
19233 | done | |
19234 | fi | |
19235 | if test "X$found_dir" != "X"; then | |
19236 | - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
19237 | + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
19238 | if test "X$found_so" != "X"; then | |
19239 | - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
19240 | - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
19241 | + if test "$enable_rpath" = no \ | |
19242 | + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
19243 | + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
19244 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
19245 | else | |
19246 | haveit= | |
19247 | for x in $ltrpathdirs; do | |
19248 | @@ -9672,11 +5051,11 @@ | |
19249 | if test -z "$haveit"; then | |
19250 | ltrpathdirs="$ltrpathdirs $found_dir" | |
19251 | fi | |
19252 | - if test "$hardcode_direct" = yes; then | |
19253 | - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
19254 | + if test "$acl_hardcode_direct" = yes; then | |
19255 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
19256 | else | |
19257 | - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
19258 | - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
19259 | + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
19260 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
19261 | haveit= | |
19262 | for x in $rpathdirs; do | |
19263 | if test "X$x" = "X$found_dir"; then | |
19264 | @@ -9689,7 +5068,7 @@ | |
19265 | fi | |
19266 | else | |
19267 | haveit= | |
19268 | - for x in $LDFLAGS $LIBINTL; do | |
19269 | + for x in $LDFLAGS $LIBICONV; do | |
19270 | ||
19271 | acl_save_prefix="$prefix" | |
19272 | prefix="$acl_final_prefix" | |
19273 | @@ -9705,27 +5084,37 @@ | |
19274 | fi | |
19275 | done | |
19276 | if test -z "$haveit"; then | |
19277 | - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
19278 | + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
19279 | fi | |
19280 | - if test "$hardcode_minus_L" != no; then | |
19281 | - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
19282 | + if test "$acl_hardcode_minus_L" != no; then | |
19283 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
19284 | else | |
19285 | - LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
19286 | + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
19287 | fi | |
19288 | fi | |
19289 | fi | |
19290 | fi | |
19291 | else | |
19292 | if test "X$found_a" != "X"; then | |
19293 | - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
19294 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
19295 | else | |
19296 | - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
19297 | + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
19298 | fi | |
19299 | fi | |
19300 | additional_includedir= | |
19301 | case "$found_dir" in | |
19302 | - */lib | */lib/) | |
19303 | - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
19304 | + */$acl_libdirstem | */$acl_libdirstem/) | |
19305 | + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
19306 | + if test "$name" = 'iconv'; then | |
19307 | + LIBICONV_PREFIX="$basedir" | |
19308 | + fi | |
19309 | + additional_includedir="$basedir/include" | |
19310 | + ;; | |
19311 | + */$acl_libdirstem2 | */$acl_libdirstem2/) | |
19312 | + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
19313 | + if test "$name" = 'iconv'; then | |
19314 | + LIBICONV_PREFIX="$basedir" | |
19315 | + fi | |
19316 | additional_includedir="$basedir/include" | |
19317 | ;; | |
19318 | esac | |
19319 | @@ -9740,7 +5129,7 @@ | |
19320 | fi | |
19321 | fi | |
19322 | if test -z "$haveit"; then | |
19323 | - for x in $CPPFLAGS $INCINTL; do | |
19324 | + for x in $CPPFLAGS $INCICONV; do | |
19325 | ||
19326 | acl_save_prefix="$prefix" | |
19327 | prefix="$acl_final_prefix" | |
19328 | @@ -9757,7 +5146,7 @@ | |
19329 | done | |
19330 | if test -z "$haveit"; then | |
19331 | if test -d "$additional_includedir"; then | |
19332 | - INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
19333 | + INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
19334 | fi | |
19335 | fi | |
19336 | fi | |
19337 | @@ -9774,9 +5163,11 @@ | |
19338 | case "$dep" in | |
19339 | -L*) | |
19340 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
19341 | - if test "X$additional_libdir" != "X/usr/lib"; then | |
19342 | + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
19343 | + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
19344 | haveit= | |
19345 | - if test "X$additional_libdir" = "X/usr/local/lib"; then | |
19346 | + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
19347 | + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
19348 | if test -n "$GCC"; then | |
19349 | case $host_os in | |
19350 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
19351 | @@ -9785,7 +5176,7 @@ | |
19352 | fi | |
19353 | if test -z "$haveit"; then | |
19354 | haveit= | |
19355 | - for x in $LDFLAGS $LIBINTL; do | |
19356 | + for x in $LDFLAGS $LIBICONV; do | |
19357 | ||
19358 | acl_save_prefix="$prefix" | |
19359 | prefix="$acl_final_prefix" | |
19360 | @@ -9802,11 +5193,11 @@ | |
19361 | done | |
19362 | if test -z "$haveit"; then | |
19363 | if test -d "$additional_libdir"; then | |
19364 | - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
19365 | + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
19366 | fi | |
19367 | fi | |
19368 | haveit= | |
19369 | - for x in $LDFLAGS $LTLIBINTL; do | |
19370 | + for x in $LDFLAGS $LTLIBICONV; do | |
19371 | ||
19372 | acl_save_prefix="$prefix" | |
19373 | prefix="$acl_final_prefix" | |
19374 | @@ -9823,7 +5214,7 @@ | |
19375 | done | |
19376 | if test -z "$haveit"; then | |
19377 | if test -d "$additional_libdir"; then | |
19378 | - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
19379 | + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
19380 | fi | |
19381 | fi | |
19382 | fi | |
19383 | @@ -9861,2691 +5252,2155 @@ | |
19384 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
19385 | ;; | |
19386 | *) | |
19387 | - LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
19388 | - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
19389 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
19390 | + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
19391 | ;; | |
19392 | esac | |
19393 | done | |
19394 | fi | |
19395 | else | |
19396 | - LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
19397 | - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
19398 | + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
19399 | + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
19400 | fi | |
19401 | fi | |
19402 | fi | |
19403 | done | |
19404 | done | |
19405 | if test "X$rpathdirs" != "X"; then | |
19406 | - if test -n "$hardcode_libdir_separator"; then | |
19407 | + if test -n "$acl_hardcode_libdir_separator"; then | |
19408 | alldirs= | |
19409 | for found_dir in $rpathdirs; do | |
19410 | - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
19411 | + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
19412 | done | |
19413 | acl_save_libdir="$libdir" | |
19414 | libdir="$alldirs" | |
19415 | - eval flag=\"$hardcode_libdir_flag_spec\" | |
19416 | + eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
19417 | libdir="$acl_save_libdir" | |
19418 | - LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
19419 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
19420 | else | |
19421 | for found_dir in $rpathdirs; do | |
19422 | acl_save_libdir="$libdir" | |
19423 | libdir="$found_dir" | |
19424 | - eval flag=\"$hardcode_libdir_flag_spec\" | |
19425 | + eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
19426 | libdir="$acl_save_libdir" | |
19427 | - LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
19428 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
19429 | done | |
19430 | fi | |
19431 | fi | |
19432 | if test "X$ltrpathdirs" != "X"; then | |
19433 | for found_dir in $ltrpathdirs; do | |
19434 | - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
19435 | + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
19436 | done | |
19437 | fi | |
19438 | ||
19439 | - echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 | |
19440 | -echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 | |
19441 | -if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then | |
19442 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19443 | -else | |
19444 | - gt_save_CPPFLAGS="$CPPFLAGS" | |
19445 | - CPPFLAGS="$CPPFLAGS $INCINTL" | |
19446 | - gt_save_LIBS="$LIBS" | |
19447 | - LIBS="$LIBS $LIBINTL" | |
19448 | - cat >conftest.$ac_ext <<_ACEOF | |
19449 | -/* confdefs.h. */ | |
19450 | -_ACEOF | |
19451 | -cat confdefs.h >>conftest.$ac_ext | |
19452 | -cat >>conftest.$ac_ext <<_ACEOF | |
19453 | -/* end confdefs.h. */ | |
19454 | -#include <libintl.h> | |
19455 | -extern int _nl_msg_cat_cntr; | |
19456 | -extern | |
19457 | -#ifdef __cplusplus | |
19458 | -"C" | |
19459 | -#endif | |
19460 | -const char *_nl_expand_alias (const char *); | |
19461 | -int | |
19462 | -main () | |
19463 | -{ | |
19464 | -bindtextdomain ("", ""); | |
19465 | -return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") | |
19466 | - ; | |
19467 | - return 0; | |
19468 | -} | |
19469 | -_ACEOF | |
19470 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
19471 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19472 | - (eval $ac_link) 2>conftest.er1 | |
19473 | - ac_status=$? | |
19474 | - grep -v '^ *+' conftest.er1 >conftest.err | |
19475 | - rm -f conftest.er1 | |
19476 | - cat conftest.err >&5 | |
19477 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19478 | - (exit $ac_status); } && | |
19479 | - { ac_try='test -z "$ac_c_werror_flag" | |
19480 | - || test ! -s conftest.err' | |
19481 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19482 | - (eval $ac_try) 2>&5 | |
19483 | - ac_status=$? | |
19484 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19485 | - (exit $ac_status); }; } && | |
19486 | - { ac_try='test -s conftest$ac_exeext' | |
19487 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19488 | - (eval $ac_try) 2>&5 | |
19489 | - ac_status=$? | |
19490 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19491 | - (exit $ac_status); }; }; then | |
19492 | - gt_cv_func_gnugettext1_libintl=yes | |
19493 | -else | |
19494 | - echo "$as_me: failed program was:" >&5 | |
19495 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
19496 | - | |
19497 | -gt_cv_func_gnugettext1_libintl=no | |
19498 | -fi | |
19499 | -rm -f conftest.err conftest.$ac_objext \ | |
19500 | - conftest$ac_exeext conftest.$ac_ext | |
19501 | - if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then | |
19502 | - LIBS="$LIBS $LIBICONV" | |
19503 | - cat >conftest.$ac_ext <<_ACEOF | |
19504 | -/* confdefs.h. */ | |
19505 | -_ACEOF | |
19506 | -cat confdefs.h >>conftest.$ac_ext | |
19507 | -cat >>conftest.$ac_ext <<_ACEOF | |
19508 | -/* end confdefs.h. */ | |
19509 | -#include <libintl.h> | |
19510 | -extern int _nl_msg_cat_cntr; | |
19511 | -extern | |
19512 | -#ifdef __cplusplus | |
19513 | -"C" | |
19514 | -#endif | |
19515 | -const char *_nl_expand_alias (const char *); | |
19516 | -int | |
19517 | -main () | |
19518 | -{ | |
19519 | -bindtextdomain ("", ""); | |
19520 | -return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") | |
19521 | - ; | |
19522 | - return 0; | |
19523 | -} | |
19524 | -_ACEOF | |
19525 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
19526 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19527 | - (eval $ac_link) 2>conftest.er1 | |
19528 | - ac_status=$? | |
19529 | - grep -v '^ *+' conftest.er1 >conftest.err | |
19530 | - rm -f conftest.er1 | |
19531 | - cat conftest.err >&5 | |
19532 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19533 | - (exit $ac_status); } && | |
19534 | - { ac_try='test -z "$ac_c_werror_flag" | |
19535 | - || test ! -s conftest.err' | |
19536 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19537 | - (eval $ac_try) 2>&5 | |
19538 | - ac_status=$? | |
19539 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19540 | - (exit $ac_status); }; } && | |
19541 | - { ac_try='test -s conftest$ac_exeext' | |
19542 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19543 | - (eval $ac_try) 2>&5 | |
19544 | - ac_status=$? | |
19545 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19546 | - (exit $ac_status); }; }; then | |
19547 | - LIBINTL="$LIBINTL $LIBICONV" | |
19548 | - LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
19549 | - gt_cv_func_gnugettext1_libintl=yes | |
19550 | - | |
19551 | -else | |
19552 | - echo "$as_me: failed program was:" >&5 | |
19553 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
19554 | - | |
19555 | -fi | |
19556 | -rm -f conftest.err conftest.$ac_objext \ | |
19557 | - conftest$ac_exeext conftest.$ac_ext | |
19558 | - fi | |
19559 | - CPPFLAGS="$gt_save_CPPFLAGS" | |
19560 | - LIBS="$gt_save_LIBS" | |
19561 | -fi | |
19562 | -echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 | |
19563 | -echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 | |
19564 | - fi | |
19565 | - | |
19566 | - if test "$gt_cv_func_gnugettext1_libc" = "yes" \ | |
19567 | - || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ | |
19568 | - && test "$PACKAGE" != gettext-runtime \ | |
19569 | - && test "$PACKAGE" != gettext-tools; }; then | |
19570 | - gt_use_preinstalled_gnugettext=yes | |
19571 | - else | |
19572 | - LIBINTL= | |
19573 | - LTLIBINTL= | |
19574 | - INCINTL= | |
19575 | - fi | |
19576 | - | |
19577 | - | |
19578 | - if test "$gt_use_preinstalled_gnugettext" != "yes"; then | |
19579 | - nls_cv_use_gnu_gettext=yes | |
19580 | - fi | |
19581 | - fi | |
19582 | - | |
19583 | - if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
19584 | - BUILD_INCLUDED_LIBINTL=yes | |
19585 | - USE_INCLUDED_LIBINTL=yes | |
19586 | - LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" | |
19587 | - LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" | |
19588 | - LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
19589 | - fi | |
19590 | - | |
19591 | - CATOBJEXT= | |
19592 | - if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
19593 | - || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
19594 | - CATOBJEXT=.gmo | |
19595 | - fi | |
19596 | - | |
19597 | - | |
19598 | - if test -n "$INTL_MACOSX_LIBS"; then | |
19599 | - if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
19600 | - || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
19601 | - LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | |
19602 | - LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | |
19603 | - fi | |
19604 | - fi | |
19605 | - | |
19606 | - if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
19607 | - || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
19608 | - | |
19609 | -cat >>confdefs.h <<\_ACEOF | |
19610 | -#define ENABLE_NLS 1 | |
19611 | -_ACEOF | |
19612 | - | |
19613 | - else | |
19614 | - USE_NLS=no | |
19615 | - fi | |
19616 | - fi | |
19617 | - | |
19618 | - echo "$as_me:$LINENO: checking whether to use NLS" >&5 | |
19619 | -echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 | |
19620 | - echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
19621 | -echo "${ECHO_T}$USE_NLS" >&6 | |
19622 | - if test "$USE_NLS" = "yes"; then | |
19623 | - echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 | |
19624 | -echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 | |
19625 | - if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
19626 | - if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then | |
19627 | - gt_source="external libintl" | |
19628 | - else | |
19629 | - gt_source="libc" | |
19630 | - fi | |
19631 | - else | |
19632 | - gt_source="included intl directory" | |
19633 | - fi | |
19634 | - echo "$as_me:$LINENO: result: $gt_source" >&5 | |
19635 | -echo "${ECHO_T}$gt_source" >&6 | |
19636 | - fi | |
19637 | - | |
19638 | - if test "$USE_NLS" = "yes"; then | |
19639 | - | |
19640 | - if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
19641 | - if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then | |
19642 | - echo "$as_me:$LINENO: checking how to link with libintl" >&5 | |
19643 | -echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 | |
19644 | - echo "$as_me:$LINENO: result: $LIBINTL" >&5 | |
19645 | -echo "${ECHO_T}$LIBINTL" >&6 | |
19646 | - | |
19647 | - for element in $INCINTL; do | |
19648 | - haveit= | |
19649 | - for x in $CPPFLAGS; do | |
19650 | ||
19651 | - acl_save_prefix="$prefix" | |
19652 | - prefix="$acl_final_prefix" | |
19653 | - acl_save_exec_prefix="$exec_prefix" | |
19654 | - exec_prefix="$acl_final_exec_prefix" | |
19655 | - eval x=\"$x\" | |
19656 | - exec_prefix="$acl_save_exec_prefix" | |
19657 | - prefix="$acl_save_prefix" | |
19658 | ||
19659 | - if test "X$x" = "X$element"; then | |
19660 | - haveit=yes | |
19661 | - break | |
19662 | - fi | |
19663 | - done | |
19664 | - if test -z "$haveit"; then | |
19665 | - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
19666 | - fi | |
19667 | - done | |
19668 | ||
19669 | - fi | |
19670 | ||
19671 | ||
19672 | -cat >>confdefs.h <<\_ACEOF | |
19673 | -#define HAVE_GETTEXT 1 | |
19674 | -_ACEOF | |
19675 | ||
19676 | ||
19677 | -cat >>confdefs.h <<\_ACEOF | |
19678 | -#define HAVE_DCGETTEXT 1 | |
19679 | -_ACEOF | |
19680 | ||
19681 | - fi | |
19682 | ||
19683 | - POSUB=po | |
19684 | - fi | |
19685 | ||
19686 | ||
19687 | - if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then | |
19688 | - BUILD_INCLUDED_LIBINTL=yes | |
19689 | - fi | |
19690 | ||
19691 | ||
19692 | ||
19693 | ||
19694 | ||
19695 | - nls_cv_header_intl= | |
19696 | - nls_cv_header_libgt= | |
19697 | ||
19698 | - DATADIRNAME=share | |
19699 | ||
19700 | ||
19701 | - INSTOBJEXT=.mo | |
19702 | ||
19703 | ||
19704 | - GENCAT=gencat | |
19705 | ||
19706 | ||
19707 | - INTLOBJS= | |
19708 | - if test "$USE_INCLUDED_LIBINTL" = yes; then | |
19709 | - INTLOBJS="\$(GETTOBJS)" | |
19710 | - fi | |
19711 | ||
19712 | ||
19713 | - INTL_LIBTOOL_SUFFIX_PREFIX= | |
19714 | ||
19715 | ||
19716 | ||
19717 | - INTLLIBS="$LIBINTL" | |
19718 | ||
19719 | ||
19720 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 | |
19721 | +$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } | |
19722 | +if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : | |
19723 | + $as_echo_n "(cached) " >&6 | |
19724 | +else | |
19725 | + gt_save_LIBS="$LIBS" | |
19726 | + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
19727 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19728 | +/* end confdefs.h. */ | |
19729 | +#include <CoreFoundation/CFPreferences.h> | |
19730 | +int | |
19731 | +main () | |
19732 | +{ | |
19733 | +CFPreferencesCopyAppValue(NULL, NULL) | |
19734 | + ; | |
19735 | + return 0; | |
19736 | +} | |
19737 | +_ACEOF | |
19738 | +if ac_fn_c_try_link "$LINENO"; then : | |
19739 | + gt_cv_func_CFPreferencesCopyAppValue=yes | |
19740 | +else | |
19741 | + gt_cv_func_CFPreferencesCopyAppValue=no | |
19742 | +fi | |
19743 | +rm -f core conftest.err conftest.$ac_objext \ | |
19744 | + conftest$ac_exeext conftest.$ac_ext | |
19745 | + LIBS="$gt_save_LIBS" | |
19746 | +fi | |
19747 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 | |
19748 | +$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | |
19749 | + if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
19750 | ||
19751 | +$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h | |
19752 | ||
19753 | + fi | |
19754 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 | |
19755 | +$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } | |
19756 | +if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : | |
19757 | + $as_echo_n "(cached) " >&6 | |
19758 | +else | |
19759 | + gt_save_LIBS="$LIBS" | |
19760 | + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
19761 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19762 | +/* end confdefs.h. */ | |
19763 | +#include <CoreFoundation/CFLocale.h> | |
19764 | +int | |
19765 | +main () | |
19766 | +{ | |
19767 | +CFLocaleCopyCurrent(); | |
19768 | + ; | |
19769 | + return 0; | |
19770 | +} | |
19771 | +_ACEOF | |
19772 | +if ac_fn_c_try_link "$LINENO"; then : | |
19773 | + gt_cv_func_CFLocaleCopyCurrent=yes | |
19774 | +else | |
19775 | + gt_cv_func_CFLocaleCopyCurrent=no | |
19776 | +fi | |
19777 | +rm -f core conftest.err conftest.$ac_objext \ | |
19778 | + conftest$ac_exeext conftest.$ac_ext | |
19779 | + LIBS="$gt_save_LIBS" | |
19780 | +fi | |
19781 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 | |
19782 | +$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } | |
19783 | + if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
19784 | ||
19785 | +$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h | |
19786 | ||
19787 | + fi | |
19788 | + INTL_MACOSX_LIBS= | |
19789 | + if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
19790 | + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | |
19791 | + fi | |
19792 | ||
19793 | ||
19794 | ||
19795 | ||
19796 | ||
19797 | - abook_localedir="$datadir/locale" | |
19798 | - abook_localedir=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
19799 | - eval tmp_abook_prefix=\""$abook_localedir"\" | |
19800 | - eval echo $tmp_abook_prefix | |
19801 | - )` | |
19802 | ||
19803 | -localedir="\$(datadir)/locale" | |
19804 | + LIBINTL= | |
19805 | + LTLIBINTL= | |
19806 | + POSUB= | |
19807 | ||
19808 | + case " $gt_needs " in | |
19809 | + *" need-formatstring-macros "*) gt_api_version=3 ;; | |
19810 | + *" need-ngettext "*) gt_api_version=2 ;; | |
19811 | + *) gt_api_version=1 ;; | |
19812 | + esac | |
19813 | + gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | |
19814 | + gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | |
19815 | ||
19816 | -# Check whether --with-localedir or --without-localedir was given. | |
19817 | -if test "${with_localedir+set}" = set; then | |
19818 | - withval="$with_localedir" | |
19819 | + if test "$USE_NLS" = "yes"; then | |
19820 | + gt_use_preinstalled_gnugettext=no | |
19821 | ||
19822 | -fi; | |
19823 | -if test "x$with_localedir" != "x"; then | |
19824 | - abook_localedir="$with_localedir" | |
19825 | - localedir="$with_localedir" | |
19826 | -fi | |
19827 | ||
19828 | + if test $gt_api_version -ge 3; then | |
19829 | + gt_revision_test_code=' | |
19830 | +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
19831 | +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | |
19832 | +#endif | |
19833 | +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | |
19834 | +' | |
19835 | + else | |
19836 | + gt_revision_test_code= | |
19837 | + fi | |
19838 | + if test $gt_api_version -ge 2; then | |
19839 | + gt_expression_test_code=' + * ngettext ("", "", 0)' | |
19840 | + else | |
19841 | + gt_expression_test_code= | |
19842 | + fi | |
19843 | ||
19844 | -cat >>confdefs.h <<_ACEOF | |
19845 | -#define LOCALEDIR "$abook_localedir" | |
19846 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 | |
19847 | +$as_echo_n "checking for GNU gettext in libc... " >&6; } | |
19848 | +if eval \${$gt_func_gnugettext_libc+:} false; then : | |
19849 | + $as_echo_n "(cached) " >&6 | |
19850 | +else | |
19851 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19852 | +/* end confdefs.h. */ | |
19853 | +#include <libintl.h> | |
19854 | +$gt_revision_test_code | |
19855 | +extern int _nl_msg_cat_cntr; | |
19856 | +extern int *_nl_domain_bindings; | |
19857 | +int | |
19858 | +main () | |
19859 | +{ | |
19860 | +bindtextdomain ("", ""); | |
19861 | +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings | |
19862 | + ; | |
19863 | + return 0; | |
19864 | +} | |
19865 | _ACEOF | |
19866 | - | |
19867 | - | |
19868 | - | |
19869 | - | |
19870 | - | |
19871 | -if test x$USE_INCLUDED_LIBINTL = xyes; then | |
19872 | - USE_INCLUDED_INTL_H_TRUE= | |
19873 | - USE_INCLUDED_INTL_H_FALSE='#' | |
19874 | +if ac_fn_c_try_link "$LINENO"; then : | |
19875 | + eval "$gt_func_gnugettext_libc=yes" | |
19876 | else | |
19877 | - USE_INCLUDED_INTL_H_TRUE='#' | |
19878 | - USE_INCLUDED_INTL_H_FALSE= | |
19879 | + eval "$gt_func_gnugettext_libc=no" | |
19880 | fi | |
19881 | +rm -f core conftest.err conftest.$ac_objext \ | |
19882 | + conftest$ac_exeext conftest.$ac_ext | |
19883 | +fi | |
19884 | +eval ac_res=\$$gt_func_gnugettext_libc | |
19885 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
19886 | +$as_echo "$ac_res" >&6; } | |
19887 | ||
19888 | + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then | |
19889 | ||
19890 | ||
19891 | -ac_ext=c | |
19892 | -ac_cpp='$CPP $CPPFLAGS' | |
19893 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19894 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19895 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19896 | -if test -n "$ac_tool_prefix"; then | |
19897 | - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
19898 | -set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
19899 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
19900 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19901 | -if test "${ac_cv_prog_CC+set}" = set; then | |
19902 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19903 | -else | |
19904 | - if test -n "$CC"; then | |
19905 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
19906 | -else | |
19907 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19908 | -for as_dir in $PATH | |
19909 | -do | |
19910 | - IFS=$as_save_IFS | |
19911 | - test -z "$as_dir" && as_dir=. | |
19912 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
19913 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19914 | - ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
19915 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19916 | - break 2 | |
19917 | - fi | |
19918 | -done | |
19919 | -done | |
19920 | - | |
19921 | -fi | |
19922 | -fi | |
19923 | -CC=$ac_cv_prog_CC | |
19924 | -if test -n "$CC"; then | |
19925 | - echo "$as_me:$LINENO: result: $CC" >&5 | |
19926 | -echo "${ECHO_T}$CC" >&6 | |
19927 | -else | |
19928 | - echo "$as_me:$LINENO: result: no" >&5 | |
19929 | -echo "${ECHO_T}no" >&6 | |
19930 | -fi | |
19931 | - | |
19932 | -fi | |
19933 | -if test -z "$ac_cv_prog_CC"; then | |
19934 | - ac_ct_CC=$CC | |
19935 | - # Extract the first word of "gcc", so it can be a program name with args. | |
19936 | -set dummy gcc; ac_word=$2 | |
19937 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
19938 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19939 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
19940 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19941 | -else | |
19942 | - if test -n "$ac_ct_CC"; then | |
19943 | - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
19944 | -else | |
19945 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19946 | -for as_dir in $PATH | |
19947 | -do | |
19948 | - IFS=$as_save_IFS | |
19949 | - test -z "$as_dir" && as_dir=. | |
19950 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
19951 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19952 | - ac_cv_prog_ac_ct_CC="gcc" | |
19953 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19954 | - break 2 | |
19955 | - fi | |
19956 | -done | |
19957 | -done | |
19958 | ||
19959 | -fi | |
19960 | -fi | |
19961 | -ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
19962 | -if test -n "$ac_ct_CC"; then | |
19963 | - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
19964 | -echo "${ECHO_T}$ac_ct_CC" >&6 | |
19965 | -else | |
19966 | - echo "$as_me:$LINENO: result: no" >&5 | |
19967 | -echo "${ECHO_T}no" >&6 | |
19968 | -fi | |
19969 | ||
19970 | - CC=$ac_ct_CC | |
19971 | -else | |
19972 | - CC="$ac_cv_prog_CC" | |
19973 | -fi | |
19974 | ||
19975 | -if test -z "$CC"; then | |
19976 | - if test -n "$ac_tool_prefix"; then | |
19977 | - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
19978 | -set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
19979 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
19980 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19981 | -if test "${ac_cv_prog_CC+set}" = set; then | |
19982 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19983 | -else | |
19984 | - if test -n "$CC"; then | |
19985 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
19986 | -else | |
19987 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19988 | -for as_dir in $PATH | |
19989 | -do | |
19990 | - IFS=$as_save_IFS | |
19991 | - test -z "$as_dir" && as_dir=. | |
19992 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
19993 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19994 | - ac_cv_prog_CC="${ac_tool_prefix}cc" | |
19995 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19996 | - break 2 | |
19997 | - fi | |
19998 | -done | |
19999 | -done | |
20000 | + am_save_CPPFLAGS="$CPPFLAGS" | |
20001 | ||
20002 | -fi | |
20003 | -fi | |
20004 | -CC=$ac_cv_prog_CC | |
20005 | -if test -n "$CC"; then | |
20006 | - echo "$as_me:$LINENO: result: $CC" >&5 | |
20007 | -echo "${ECHO_T}$CC" >&6 | |
20008 | -else | |
20009 | - echo "$as_me:$LINENO: result: no" >&5 | |
20010 | -echo "${ECHO_T}no" >&6 | |
20011 | -fi | |
20012 | + for element in $INCICONV; do | |
20013 | + haveit= | |
20014 | + for x in $CPPFLAGS; do | |
20015 | ||
20016 | -fi | |
20017 | -if test -z "$ac_cv_prog_CC"; then | |
20018 | - ac_ct_CC=$CC | |
20019 | - # Extract the first word of "cc", so it can be a program name with args. | |
20020 | -set dummy cc; ac_word=$2 | |
20021 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
20022 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20023 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
20024 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20025 | -else | |
20026 | - if test -n "$ac_ct_CC"; then | |
20027 | - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
20028 | -else | |
20029 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20030 | -for as_dir in $PATH | |
20031 | -do | |
20032 | - IFS=$as_save_IFS | |
20033 | - test -z "$as_dir" && as_dir=. | |
20034 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
20035 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20036 | - ac_cv_prog_ac_ct_CC="cc" | |
20037 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20038 | - break 2 | |
20039 | - fi | |
20040 | -done | |
20041 | -done | |
20042 | + acl_save_prefix="$prefix" | |
20043 | + prefix="$acl_final_prefix" | |
20044 | + acl_save_exec_prefix="$exec_prefix" | |
20045 | + exec_prefix="$acl_final_exec_prefix" | |
20046 | + eval x=\"$x\" | |
20047 | + exec_prefix="$acl_save_exec_prefix" | |
20048 | + prefix="$acl_save_prefix" | |
20049 | ||
20050 | -fi | |
20051 | -fi | |
20052 | -ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
20053 | -if test -n "$ac_ct_CC"; then | |
20054 | - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
20055 | -echo "${ECHO_T}$ac_ct_CC" >&6 | |
20056 | -else | |
20057 | - echo "$as_me:$LINENO: result: no" >&5 | |
20058 | -echo "${ECHO_T}no" >&6 | |
20059 | -fi | |
20060 | + if test "X$x" = "X$element"; then | |
20061 | + haveit=yes | |
20062 | + break | |
20063 | + fi | |
20064 | + done | |
20065 | + if test -z "$haveit"; then | |
20066 | + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
20067 | + fi | |
20068 | + done | |
20069 | ||
20070 | - CC=$ac_ct_CC | |
20071 | -else | |
20072 | - CC="$ac_cv_prog_CC" | |
20073 | -fi | |
20074 | ||
20075 | -fi | |
20076 | -if test -z "$CC"; then | |
20077 | - # Extract the first word of "cc", so it can be a program name with args. | |
20078 | -set dummy cc; ac_word=$2 | |
20079 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
20080 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20081 | -if test "${ac_cv_prog_CC+set}" = set; then | |
20082 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20083 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
20084 | +$as_echo_n "checking for iconv... " >&6; } | |
20085 | +if ${am_cv_func_iconv+:} false; then : | |
20086 | + $as_echo_n "(cached) " >&6 | |
20087 | else | |
20088 | - if test -n "$CC"; then | |
20089 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
20090 | -else | |
20091 | - ac_prog_rejected=no | |
20092 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20093 | -for as_dir in $PATH | |
20094 | -do | |
20095 | - IFS=$as_save_IFS | |
20096 | - test -z "$as_dir" && as_dir=. | |
20097 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
20098 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20099 | - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
20100 | - ac_prog_rejected=yes | |
20101 | - continue | |
20102 | - fi | |
20103 | - ac_cv_prog_CC="cc" | |
20104 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20105 | - break 2 | |
20106 | - fi | |
20107 | -done | |
20108 | -done | |
20109 | ||
20110 | -if test $ac_prog_rejected = yes; then | |
20111 | - # We found a bogon in the path, so make sure we never use it. | |
20112 | - set dummy $ac_cv_prog_CC | |
20113 | - shift | |
20114 | - if test $# != 0; then | |
20115 | - # We chose a different compiler from the bogus one. | |
20116 | - # However, it has the same basename, so the bogon will be chosen | |
20117 | - # first if we set CC to just the basename; use the full file name. | |
20118 | - shift | |
20119 | - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
20120 | - fi | |
20121 | -fi | |
20122 | -fi | |
20123 | + am_cv_func_iconv="no, consider installing GNU libiconv" | |
20124 | + am_cv_lib_iconv=no | |
20125 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20126 | +/* end confdefs.h. */ | |
20127 | +#include <stdlib.h> | |
20128 | +#include <iconv.h> | |
20129 | +int | |
20130 | +main () | |
20131 | +{ | |
20132 | +iconv_t cd = iconv_open("",""); | |
20133 | + iconv(cd,NULL,NULL,NULL,NULL); | |
20134 | + iconv_close(cd); | |
20135 | + ; | |
20136 | + return 0; | |
20137 | +} | |
20138 | +_ACEOF | |
20139 | +if ac_fn_c_try_link "$LINENO"; then : | |
20140 | + am_cv_func_iconv=yes | |
20141 | fi | |
20142 | -CC=$ac_cv_prog_CC | |
20143 | -if test -n "$CC"; then | |
20144 | - echo "$as_me:$LINENO: result: $CC" >&5 | |
20145 | -echo "${ECHO_T}$CC" >&6 | |
20146 | -else | |
20147 | - echo "$as_me:$LINENO: result: no" >&5 | |
20148 | -echo "${ECHO_T}no" >&6 | |
20149 | +rm -f core conftest.err conftest.$ac_objext \ | |
20150 | + conftest$ac_exeext conftest.$ac_ext | |
20151 | + if test "$am_cv_func_iconv" != yes; then | |
20152 | + am_save_LIBS="$LIBS" | |
20153 | + LIBS="$LIBS $LIBICONV" | |
20154 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20155 | +/* end confdefs.h. */ | |
20156 | +#include <stdlib.h> | |
20157 | +#include <iconv.h> | |
20158 | +int | |
20159 | +main () | |
20160 | +{ | |
20161 | +iconv_t cd = iconv_open("",""); | |
20162 | + iconv(cd,NULL,NULL,NULL,NULL); | |
20163 | + iconv_close(cd); | |
20164 | + ; | |
20165 | + return 0; | |
20166 | +} | |
20167 | +_ACEOF | |
20168 | +if ac_fn_c_try_link "$LINENO"; then : | |
20169 | + am_cv_lib_iconv=yes | |
20170 | + am_cv_func_iconv=yes | |
20171 | fi | |
20172 | +rm -f core conftest.err conftest.$ac_objext \ | |
20173 | + conftest$ac_exeext conftest.$ac_ext | |
20174 | + LIBS="$am_save_LIBS" | |
20175 | + fi | |
20176 | ||
20177 | fi | |
20178 | -if test -z "$CC"; then | |
20179 | - if test -n "$ac_tool_prefix"; then | |
20180 | - for ac_prog in cl | |
20181 | - do | |
20182 | - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
20183 | -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
20184 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
20185 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20186 | -if test "${ac_cv_prog_CC+set}" = set; then | |
20187 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20188 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
20189 | +$as_echo "$am_cv_func_iconv" >&6; } | |
20190 | + if test "$am_cv_func_iconv" = yes; then | |
20191 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
20192 | +$as_echo_n "checking for working iconv... " >&6; } | |
20193 | +if ${am_cv_func_iconv_works+:} false; then : | |
20194 | + $as_echo_n "(cached) " >&6 | |
20195 | else | |
20196 | - if test -n "$CC"; then | |
20197 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
20198 | + | |
20199 | + am_save_LIBS="$LIBS" | |
20200 | + if test $am_cv_lib_iconv = yes; then | |
20201 | + LIBS="$LIBS $LIBICONV" | |
20202 | + fi | |
20203 | + if test "$cross_compiling" = yes; then : | |
20204 | + case "$host_os" in | |
20205 | + aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
20206 | + *) am_cv_func_iconv_works="guessing yes" ;; | |
20207 | + esac | |
20208 | else | |
20209 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20210 | -for as_dir in $PATH | |
20211 | -do | |
20212 | - IFS=$as_save_IFS | |
20213 | - test -z "$as_dir" && as_dir=. | |
20214 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
20215 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20216 | - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
20217 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20218 | - break 2 | |
20219 | - fi | |
20220 | -done | |
20221 | -done | |
20222 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20223 | +/* end confdefs.h. */ | |
20224 | ||
20225 | -fi | |
20226 | -fi | |
20227 | -CC=$ac_cv_prog_CC | |
20228 | -if test -n "$CC"; then | |
20229 | - echo "$as_me:$LINENO: result: $CC" >&5 | |
20230 | -echo "${ECHO_T}$CC" >&6 | |
20231 | +#include <iconv.h> | |
20232 | +#include <string.h> | |
20233 | +int main () | |
20234 | +{ | |
20235 | + /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
20236 | + returns. */ | |
20237 | + { | |
20238 | + iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
20239 | + if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
20240 | + { | |
20241 | + static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
20242 | + char buf[10]; | |
20243 | + const char *inptr = input; | |
20244 | + size_t inbytesleft = strlen (input); | |
20245 | + char *outptr = buf; | |
20246 | + size_t outbytesleft = sizeof (buf); | |
20247 | + size_t res = iconv (cd_utf8_to_88591, | |
20248 | + (char **) &inptr, &inbytesleft, | |
20249 | + &outptr, &outbytesleft); | |
20250 | + if (res == 0) | |
20251 | + return 1; | |
20252 | + } | |
20253 | + } | |
20254 | + /* Test against Solaris 10 bug: Failures are not distinguishable from | |
20255 | + successful returns. */ | |
20256 | + { | |
20257 | + iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); | |
20258 | + if (cd_ascii_to_88591 != (iconv_t)(-1)) | |
20259 | + { | |
20260 | + static const char input[] = "\263"; | |
20261 | + char buf[10]; | |
20262 | + const char *inptr = input; | |
20263 | + size_t inbytesleft = strlen (input); | |
20264 | + char *outptr = buf; | |
20265 | + size_t outbytesleft = sizeof (buf); | |
20266 | + size_t res = iconv (cd_ascii_to_88591, | |
20267 | + (char **) &inptr, &inbytesleft, | |
20268 | + &outptr, &outbytesleft); | |
20269 | + if (res == 0) | |
20270 | + return 1; | |
20271 | + } | |
20272 | + } | |
20273 | +#if 0 /* This bug could be worked around by the caller. */ | |
20274 | + /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
20275 | + { | |
20276 | + iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
20277 | + if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
20278 | + { | |
20279 | + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
20280 | + char buf[50]; | |
20281 | + const char *inptr = input; | |
20282 | + size_t inbytesleft = strlen (input); | |
20283 | + char *outptr = buf; | |
20284 | + size_t outbytesleft = sizeof (buf); | |
20285 | + size_t res = iconv (cd_88591_to_utf8, | |
20286 | + (char **) &inptr, &inbytesleft, | |
20287 | + &outptr, &outbytesleft); | |
20288 | + if ((int)res > 0) | |
20289 | + return 1; | |
20290 | + } | |
20291 | + } | |
20292 | +#endif | |
20293 | + /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
20294 | + provided. */ | |
20295 | + if (/* Try standardized names. */ | |
20296 | + iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
20297 | + /* Try IRIX, OSF/1 names. */ | |
20298 | + && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
20299 | + /* Try AIX names. */ | |
20300 | + && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
20301 | + /* Try HP-UX names. */ | |
20302 | + && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
20303 | + return 1; | |
20304 | + return 0; | |
20305 | +} | |
20306 | +_ACEOF | |
20307 | +if ac_fn_c_try_run "$LINENO"; then : | |
20308 | + am_cv_func_iconv_works=yes | |
20309 | else | |
20310 | - echo "$as_me:$LINENO: result: no" >&5 | |
20311 | -echo "${ECHO_T}no" >&6 | |
20312 | + am_cv_func_iconv_works=no | |
20313 | +fi | |
20314 | +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
20315 | + conftest.$ac_objext conftest.beam conftest.$ac_ext | |
20316 | fi | |
20317 | ||
20318 | - test -n "$CC" && break | |
20319 | - done | |
20320 | + LIBS="$am_save_LIBS" | |
20321 | + | |
20322 | fi | |
20323 | -if test -z "$CC"; then | |
20324 | - ac_ct_CC=$CC | |
20325 | - for ac_prog in cl | |
20326 | -do | |
20327 | - # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20328 | -set dummy $ac_prog; ac_word=$2 | |
20329 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
20330 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20331 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
20332 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20333 | -else | |
20334 | - if test -n "$ac_ct_CC"; then | |
20335 | - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
20336 | -else | |
20337 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20338 | -for as_dir in $PATH | |
20339 | -do | |
20340 | - IFS=$as_save_IFS | |
20341 | - test -z "$as_dir" && as_dir=. | |
20342 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
20343 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20344 | - ac_cv_prog_ac_ct_CC="$ac_prog" | |
20345 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20346 | - break 2 | |
20347 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
20348 | +$as_echo "$am_cv_func_iconv_works" >&6; } | |
20349 | + case "$am_cv_func_iconv_works" in | |
20350 | + *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
20351 | + *) am_func_iconv=yes ;; | |
20352 | + esac | |
20353 | + else | |
20354 | + am_func_iconv=no am_cv_lib_iconv=no | |
20355 | fi | |
20356 | -done | |
20357 | -done | |
20358 | + if test "$am_func_iconv" = yes; then | |
20359 | ||
20360 | -fi | |
20361 | -fi | |
20362 | -ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
20363 | -if test -n "$ac_ct_CC"; then | |
20364 | - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
20365 | -echo "${ECHO_T}$ac_ct_CC" >&6 | |
20366 | -else | |
20367 | - echo "$as_me:$LINENO: result: no" >&5 | |
20368 | -echo "${ECHO_T}no" >&6 | |
20369 | -fi | |
20370 | +$as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
20371 | ||
20372 | - test -n "$ac_ct_CC" && break | |
20373 | -done | |
20374 | + fi | |
20375 | + if test "$am_cv_lib_iconv" = yes; then | |
20376 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
20377 | +$as_echo_n "checking how to link with libiconv... " >&6; } | |
20378 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
20379 | +$as_echo "$LIBICONV" >&6; } | |
20380 | + else | |
20381 | + CPPFLAGS="$am_save_CPPFLAGS" | |
20382 | + LIBICONV= | |
20383 | + LTLIBICONV= | |
20384 | + fi | |
20385 | ||
20386 | - CC=$ac_ct_CC | |
20387 | -fi | |
20388 | + | |
20389 | + | |
20390 | + | |
20391 | + | |
20392 | + | |
20393 | + | |
20394 | + | |
20395 | + | |
20396 | + | |
20397 | + | |
20398 | + use_additional=yes | |
20399 | + | |
20400 | + acl_save_prefix="$prefix" | |
20401 | + prefix="$acl_final_prefix" | |
20402 | + acl_save_exec_prefix="$exec_prefix" | |
20403 | + exec_prefix="$acl_final_exec_prefix" | |
20404 | + | |
20405 | + eval additional_includedir=\"$includedir\" | |
20406 | + eval additional_libdir=\"$libdir\" | |
20407 | + | |
20408 | + exec_prefix="$acl_save_exec_prefix" | |
20409 | + prefix="$acl_save_prefix" | |
20410 | + | |
20411 | + | |
20412 | +# Check whether --with-libintl-prefix was given. | |
20413 | +if test "${with_libintl_prefix+set}" = set; then : | |
20414 | + withval=$with_libintl_prefix; | |
20415 | + if test "X$withval" = "Xno"; then | |
20416 | + use_additional=no | |
20417 | + else | |
20418 | + if test "X$withval" = "X"; then | |
20419 | + | |
20420 | + acl_save_prefix="$prefix" | |
20421 | + prefix="$acl_final_prefix" | |
20422 | + acl_save_exec_prefix="$exec_prefix" | |
20423 | + exec_prefix="$acl_final_exec_prefix" | |
20424 | + | |
20425 | + eval additional_includedir=\"$includedir\" | |
20426 | + eval additional_libdir=\"$libdir\" | |
20427 | + | |
20428 | + exec_prefix="$acl_save_exec_prefix" | |
20429 | + prefix="$acl_save_prefix" | |
20430 | + | |
20431 | + else | |
20432 | + additional_includedir="$withval/include" | |
20433 | + additional_libdir="$withval/$acl_libdirstem" | |
20434 | + if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
20435 | + && ! test -d "$withval/$acl_libdirstem"; then | |
20436 | + additional_libdir="$withval/$acl_libdirstem2" | |
20437 | + fi | |
20438 | + fi | |
20439 | + fi | |
20440 | ||
20441 | fi | |
20442 | ||
20443 | + LIBINTL= | |
20444 | + LTLIBINTL= | |
20445 | + INCINTL= | |
20446 | + LIBINTL_PREFIX= | |
20447 | + HAVE_LIBINTL= | |
20448 | + rpathdirs= | |
20449 | + ltrpathdirs= | |
20450 | + names_already_handled= | |
20451 | + names_next_round='intl ' | |
20452 | + while test -n "$names_next_round"; do | |
20453 | + names_this_round="$names_next_round" | |
20454 | + names_next_round= | |
20455 | + for name in $names_this_round; do | |
20456 | + already_handled= | |
20457 | + for n in $names_already_handled; do | |
20458 | + if test "$n" = "$name"; then | |
20459 | + already_handled=yes | |
20460 | + break | |
20461 | + fi | |
20462 | + done | |
20463 | + if test -z "$already_handled"; then | |
20464 | + names_already_handled="$names_already_handled $name" | |
20465 | + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
20466 | + eval value=\"\$HAVE_LIB$uppername\" | |
20467 | + if test -n "$value"; then | |
20468 | + if test "$value" = yes; then | |
20469 | + eval value=\"\$LIB$uppername\" | |
20470 | + test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
20471 | + eval value=\"\$LTLIB$uppername\" | |
20472 | + test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
20473 | + else | |
20474 | + : | |
20475 | + fi | |
20476 | + else | |
20477 | + found_dir= | |
20478 | + found_la= | |
20479 | + found_so= | |
20480 | + found_a= | |
20481 | + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
20482 | + if test -n "$acl_shlibext"; then | |
20483 | + shrext=".$acl_shlibext" # typically: shrext=.so | |
20484 | + else | |
20485 | + shrext= | |
20486 | + fi | |
20487 | + if test $use_additional = yes; then | |
20488 | + dir="$additional_libdir" | |
20489 | + if test -n "$acl_shlibext"; then | |
20490 | + if test -f "$dir/$libname$shrext"; then | |
20491 | + found_dir="$dir" | |
20492 | + found_so="$dir/$libname$shrext" | |
20493 | + else | |
20494 | + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
20495 | + ver=`(cd "$dir" && \ | |
20496 | + for f in "$libname$shrext".*; do echo "$f"; done \ | |
20497 | + | sed -e "s,^$libname$shrext\\\\.,," \ | |
20498 | + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
20499 | + | sed 1q ) 2>/dev/null` | |
20500 | + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
20501 | + found_dir="$dir" | |
20502 | + found_so="$dir/$libname$shrext.$ver" | |
20503 | + fi | |
20504 | + else | |
20505 | + eval library_names=\"$acl_library_names_spec\" | |
20506 | + for f in $library_names; do | |
20507 | + if test -f "$dir/$f"; then | |
20508 | + found_dir="$dir" | |
20509 | + found_so="$dir/$f" | |
20510 | + break | |
20511 | + fi | |
20512 | + done | |
20513 | + fi | |
20514 | + fi | |
20515 | + fi | |
20516 | + if test "X$found_dir" = "X"; then | |
20517 | + if test -f "$dir/$libname.$acl_libext"; then | |
20518 | + found_dir="$dir" | |
20519 | + found_a="$dir/$libname.$acl_libext" | |
20520 | + fi | |
20521 | + fi | |
20522 | + if test "X$found_dir" != "X"; then | |
20523 | + if test -f "$dir/$libname.la"; then | |
20524 | + found_la="$dir/$libname.la" | |
20525 | + fi | |
20526 | + fi | |
20527 | + fi | |
20528 | + if test "X$found_dir" = "X"; then | |
20529 | + for x in $LDFLAGS $LTLIBINTL; do | |
20530 | ||
20531 | -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
20532 | -See \`config.log' for more details." >&5 | |
20533 | -echo "$as_me: error: no acceptable C compiler found in \$PATH | |
20534 | -See \`config.log' for more details." >&2;} | |
20535 | - { (exit 1); exit 1; }; } | |
20536 | + acl_save_prefix="$prefix" | |
20537 | + prefix="$acl_final_prefix" | |
20538 | + acl_save_exec_prefix="$exec_prefix" | |
20539 | + exec_prefix="$acl_final_exec_prefix" | |
20540 | + eval x=\"$x\" | |
20541 | + exec_prefix="$acl_save_exec_prefix" | |
20542 | + prefix="$acl_save_prefix" | |
20543 | ||
20544 | -# Provide some information about the compiler. | |
20545 | -echo "$as_me:$LINENO:" \ | |
20546 | - "checking for C compiler version" >&5 | |
20547 | -ac_compiler=`set X $ac_compile; echo $2` | |
20548 | -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
20549 | - (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
20550 | - ac_status=$? | |
20551 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20552 | - (exit $ac_status); } | |
20553 | -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
20554 | - (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
20555 | - ac_status=$? | |
20556 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20557 | - (exit $ac_status); } | |
20558 | -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
20559 | - (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
20560 | - ac_status=$? | |
20561 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20562 | - (exit $ac_status); } | |
20563 | + case "$x" in | |
20564 | + -L*) | |
20565 | + dir=`echo "X$x" | sed -e 's/^X-L//'` | |
20566 | + if test -n "$acl_shlibext"; then | |
20567 | + if test -f "$dir/$libname$shrext"; then | |
20568 | + found_dir="$dir" | |
20569 | + found_so="$dir/$libname$shrext" | |
20570 | + else | |
20571 | + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
20572 | + ver=`(cd "$dir" && \ | |
20573 | + for f in "$libname$shrext".*; do echo "$f"; done \ | |
20574 | + | sed -e "s,^$libname$shrext\\\\.,," \ | |
20575 | + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
20576 | + | sed 1q ) 2>/dev/null` | |
20577 | + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
20578 | + found_dir="$dir" | |
20579 | + found_so="$dir/$libname$shrext.$ver" | |
20580 | + fi | |
20581 | + else | |
20582 | + eval library_names=\"$acl_library_names_spec\" | |
20583 | + for f in $library_names; do | |
20584 | + if test -f "$dir/$f"; then | |
20585 | + found_dir="$dir" | |
20586 | + found_so="$dir/$f" | |
20587 | + break | |
20588 | + fi | |
20589 | + done | |
20590 | + fi | |
20591 | + fi | |
20592 | + fi | |
20593 | + if test "X$found_dir" = "X"; then | |
20594 | + if test -f "$dir/$libname.$acl_libext"; then | |
20595 | + found_dir="$dir" | |
20596 | + found_a="$dir/$libname.$acl_libext" | |
20597 | + fi | |
20598 | + fi | |
20599 | + if test "X$found_dir" != "X"; then | |
20600 | + if test -f "$dir/$libname.la"; then | |
20601 | + found_la="$dir/$libname.la" | |
20602 | + fi | |
20603 | + fi | |
20604 | + ;; | |
20605 | + esac | |
20606 | + if test "X$found_dir" != "X"; then | |
20607 | + break | |
20608 | + fi | |
20609 | + done | |
20610 | + fi | |
20611 | + if test "X$found_dir" != "X"; then | |
20612 | + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
20613 | + if test "X$found_so" != "X"; then | |
20614 | + if test "$enable_rpath" = no \ | |
20615 | + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
20616 | + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
20617 | + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
20618 | + else | |
20619 | + haveit= | |
20620 | + for x in $ltrpathdirs; do | |
20621 | + if test "X$x" = "X$found_dir"; then | |
20622 | + haveit=yes | |
20623 | + break | |
20624 | + fi | |
20625 | + done | |
20626 | + if test -z "$haveit"; then | |
20627 | + ltrpathdirs="$ltrpathdirs $found_dir" | |
20628 | + fi | |
20629 | + if test "$acl_hardcode_direct" = yes; then | |
20630 | + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
20631 | + else | |
20632 | + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
20633 | + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
20634 | + haveit= | |
20635 | + for x in $rpathdirs; do | |
20636 | + if test "X$x" = "X$found_dir"; then | |
20637 | + haveit=yes | |
20638 | + break | |
20639 | + fi | |
20640 | + done | |
20641 | + if test -z "$haveit"; then | |
20642 | + rpathdirs="$rpathdirs $found_dir" | |
20643 | + fi | |
20644 | + else | |
20645 | + haveit= | |
20646 | + for x in $LDFLAGS $LIBINTL; do | |
20647 | ||
20648 | -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
20649 | -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
20650 | -if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
20651 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20652 | -else | |
20653 | - cat >conftest.$ac_ext <<_ACEOF | |
20654 | -/* confdefs.h. */ | |
20655 | -_ACEOF | |
20656 | -cat confdefs.h >>conftest.$ac_ext | |
20657 | -cat >>conftest.$ac_ext <<_ACEOF | |
20658 | -/* end confdefs.h. */ | |
20659 | + acl_save_prefix="$prefix" | |
20660 | + prefix="$acl_final_prefix" | |
20661 | + acl_save_exec_prefix="$exec_prefix" | |
20662 | + exec_prefix="$acl_final_exec_prefix" | |
20663 | + eval x=\"$x\" | |
20664 | + exec_prefix="$acl_save_exec_prefix" | |
20665 | + prefix="$acl_save_prefix" | |
20666 | ||
20667 | -int | |
20668 | -main () | |
20669 | -{ | |
20670 | -#ifndef __GNUC__ | |
20671 | - choke me | |
20672 | -#endif | |
20673 | + if test "X$x" = "X-L$found_dir"; then | |
20674 | + haveit=yes | |
20675 | + break | |
20676 | + fi | |
20677 | + done | |
20678 | + if test -z "$haveit"; then | |
20679 | + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
20680 | + fi | |
20681 | + if test "$acl_hardcode_minus_L" != no; then | |
20682 | + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
20683 | + else | |
20684 | + LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
20685 | + fi | |
20686 | + fi | |
20687 | + fi | |
20688 | + fi | |
20689 | + else | |
20690 | + if test "X$found_a" != "X"; then | |
20691 | + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
20692 | + else | |
20693 | + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
20694 | + fi | |
20695 | + fi | |
20696 | + additional_includedir= | |
20697 | + case "$found_dir" in | |
20698 | + */$acl_libdirstem | */$acl_libdirstem/) | |
20699 | + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
20700 | + if test "$name" = 'intl'; then | |
20701 | + LIBINTL_PREFIX="$basedir" | |
20702 | + fi | |
20703 | + additional_includedir="$basedir/include" | |
20704 | + ;; | |
20705 | + */$acl_libdirstem2 | */$acl_libdirstem2/) | |
20706 | + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
20707 | + if test "$name" = 'intl'; then | |
20708 | + LIBINTL_PREFIX="$basedir" | |
20709 | + fi | |
20710 | + additional_includedir="$basedir/include" | |
20711 | + ;; | |
20712 | + esac | |
20713 | + if test "X$additional_includedir" != "X"; then | |
20714 | + if test "X$additional_includedir" != "X/usr/include"; then | |
20715 | + haveit= | |
20716 | + if test "X$additional_includedir" = "X/usr/local/include"; then | |
20717 | + if test -n "$GCC"; then | |
20718 | + case $host_os in | |
20719 | + linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
20720 | + esac | |
20721 | + fi | |
20722 | + fi | |
20723 | + if test -z "$haveit"; then | |
20724 | + for x in $CPPFLAGS $INCINTL; do | |
20725 | ||
20726 | - ; | |
20727 | - return 0; | |
20728 | -} | |
20729 | -_ACEOF | |
20730 | -rm -f conftest.$ac_objext | |
20731 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20732 | - (eval $ac_compile) 2>conftest.er1 | |
20733 | - ac_status=$? | |
20734 | - grep -v '^ *+' conftest.er1 >conftest.err | |
20735 | - rm -f conftest.er1 | |
20736 | - cat conftest.err >&5 | |
20737 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20738 | - (exit $ac_status); } && | |
20739 | - { ac_try='test -z "$ac_c_werror_flag" | |
20740 | - || test ! -s conftest.err' | |
20741 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20742 | - (eval $ac_try) 2>&5 | |
20743 | - ac_status=$? | |
20744 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20745 | - (exit $ac_status); }; } && | |
20746 | - { ac_try='test -s conftest.$ac_objext' | |
20747 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20748 | - (eval $ac_try) 2>&5 | |
20749 | - ac_status=$? | |
20750 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20751 | - (exit $ac_status); }; }; then | |
20752 | - ac_compiler_gnu=yes | |
20753 | -else | |
20754 | - echo "$as_me: failed program was:" >&5 | |
20755 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
20756 | + acl_save_prefix="$prefix" | |
20757 | + prefix="$acl_final_prefix" | |
20758 | + acl_save_exec_prefix="$exec_prefix" | |
20759 | + exec_prefix="$acl_final_exec_prefix" | |
20760 | + eval x=\"$x\" | |
20761 | + exec_prefix="$acl_save_exec_prefix" | |
20762 | + prefix="$acl_save_prefix" | |
20763 | ||
20764 | -ac_compiler_gnu=no | |
20765 | -fi | |
20766 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20767 | -ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
20768 | + if test "X$x" = "X-I$additional_includedir"; then | |
20769 | + haveit=yes | |
20770 | + break | |
20771 | + fi | |
20772 | + done | |
20773 | + if test -z "$haveit"; then | |
20774 | + if test -d "$additional_includedir"; then | |
20775 | + INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
20776 | + fi | |
20777 | + fi | |
20778 | + fi | |
20779 | + fi | |
20780 | + fi | |
20781 | + if test -n "$found_la"; then | |
20782 | + save_libdir="$libdir" | |
20783 | + case "$found_la" in | |
20784 | + */* | *\\*) . "$found_la" ;; | |
20785 | + *) . "./$found_la" ;; | |
20786 | + esac | |
20787 | + libdir="$save_libdir" | |
20788 | + for dep in $dependency_libs; do | |
20789 | + case "$dep" in | |
20790 | + -L*) | |
20791 | + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
20792 | + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
20793 | + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
20794 | + haveit= | |
20795 | + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
20796 | + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
20797 | + if test -n "$GCC"; then | |
20798 | + case $host_os in | |
20799 | + linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
20800 | + esac | |
20801 | + fi | |
20802 | + fi | |
20803 | + if test -z "$haveit"; then | |
20804 | + haveit= | |
20805 | + for x in $LDFLAGS $LIBINTL; do | |
20806 | ||
20807 | -fi | |
20808 | -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
20809 | -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
20810 | -GCC=`test $ac_compiler_gnu = yes && echo yes` | |
20811 | -ac_test_CFLAGS=${CFLAGS+set} | |
20812 | -ac_save_CFLAGS=$CFLAGS | |
20813 | -CFLAGS="-g" | |
20814 | -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
20815 | -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
20816 | -if test "${ac_cv_prog_cc_g+set}" = set; then | |
20817 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20818 | -else | |
20819 | - cat >conftest.$ac_ext <<_ACEOF | |
20820 | -/* confdefs.h. */ | |
20821 | -_ACEOF | |
20822 | -cat confdefs.h >>conftest.$ac_ext | |
20823 | -cat >>conftest.$ac_ext <<_ACEOF | |
20824 | -/* end confdefs.h. */ | |
20825 | + acl_save_prefix="$prefix" | |
20826 | + prefix="$acl_final_prefix" | |
20827 | + acl_save_exec_prefix="$exec_prefix" | |
20828 | + exec_prefix="$acl_final_exec_prefix" | |
20829 | + eval x=\"$x\" | |
20830 | + exec_prefix="$acl_save_exec_prefix" | |
20831 | + prefix="$acl_save_prefix" | |
20832 | ||
20833 | -int | |
20834 | -main () | |
20835 | -{ | |
20836 | + if test "X$x" = "X-L$additional_libdir"; then | |
20837 | + haveit=yes | |
20838 | + break | |
20839 | + fi | |
20840 | + done | |
20841 | + if test -z "$haveit"; then | |
20842 | + if test -d "$additional_libdir"; then | |
20843 | + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
20844 | + fi | |
20845 | + fi | |
20846 | + haveit= | |
20847 | + for x in $LDFLAGS $LTLIBINTL; do | |
20848 | ||
20849 | - ; | |
20850 | - return 0; | |
20851 | -} | |
20852 | -_ACEOF | |
20853 | -rm -f conftest.$ac_objext | |
20854 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20855 | - (eval $ac_compile) 2>conftest.er1 | |
20856 | - ac_status=$? | |
20857 | - grep -v '^ *+' conftest.er1 >conftest.err | |
20858 | - rm -f conftest.er1 | |
20859 | - cat conftest.err >&5 | |
20860 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20861 | - (exit $ac_status); } && | |
20862 | - { ac_try='test -z "$ac_c_werror_flag" | |
20863 | - || test ! -s conftest.err' | |
20864 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20865 | - (eval $ac_try) 2>&5 | |
20866 | - ac_status=$? | |
20867 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20868 | - (exit $ac_status); }; } && | |
20869 | - { ac_try='test -s conftest.$ac_objext' | |
20870 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20871 | - (eval $ac_try) 2>&5 | |
20872 | - ac_status=$? | |
20873 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20874 | - (exit $ac_status); }; }; then | |
20875 | - ac_cv_prog_cc_g=yes | |
20876 | -else | |
20877 | - echo "$as_me: failed program was:" >&5 | |
20878 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
20879 | + acl_save_prefix="$prefix" | |
20880 | + prefix="$acl_final_prefix" | |
20881 | + acl_save_exec_prefix="$exec_prefix" | |
20882 | + exec_prefix="$acl_final_exec_prefix" | |
20883 | + eval x=\"$x\" | |
20884 | + exec_prefix="$acl_save_exec_prefix" | |
20885 | + prefix="$acl_save_prefix" | |
20886 | ||
20887 | -ac_cv_prog_cc_g=no | |
20888 | -fi | |
20889 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20890 | -fi | |
20891 | -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
20892 | -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
20893 | -if test "$ac_test_CFLAGS" = set; then | |
20894 | - CFLAGS=$ac_save_CFLAGS | |
20895 | -elif test $ac_cv_prog_cc_g = yes; then | |
20896 | - if test "$GCC" = yes; then | |
20897 | - CFLAGS="-g -O2" | |
20898 | - else | |
20899 | - CFLAGS="-g" | |
20900 | + if test "X$x" = "X-L$additional_libdir"; then | |
20901 | + haveit=yes | |
20902 | + break | |
20903 | + fi | |
20904 | + done | |
20905 | + if test -z "$haveit"; then | |
20906 | + if test -d "$additional_libdir"; then | |
20907 | + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
20908 | + fi | |
20909 | + fi | |
20910 | + fi | |
20911 | + fi | |
20912 | + ;; | |
20913 | + -R*) | |
20914 | + dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
20915 | + if test "$enable_rpath" != no; then | |
20916 | + haveit= | |
20917 | + for x in $rpathdirs; do | |
20918 | + if test "X$x" = "X$dir"; then | |
20919 | + haveit=yes | |
20920 | + break | |
20921 | + fi | |
20922 | + done | |
20923 | + if test -z "$haveit"; then | |
20924 | + rpathdirs="$rpathdirs $dir" | |
20925 | + fi | |
20926 | + haveit= | |
20927 | + for x in $ltrpathdirs; do | |
20928 | + if test "X$x" = "X$dir"; then | |
20929 | + haveit=yes | |
20930 | + break | |
20931 | + fi | |
20932 | + done | |
20933 | + if test -z "$haveit"; then | |
20934 | + ltrpathdirs="$ltrpathdirs $dir" | |
20935 | + fi | |
20936 | + fi | |
20937 | + ;; | |
20938 | + -l*) | |
20939 | + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
20940 | + ;; | |
20941 | + *.la) | |
20942 | + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
20943 | + ;; | |
20944 | + *) | |
20945 | + LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
20946 | + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
20947 | + ;; | |
20948 | + esac | |
20949 | + done | |
20950 | + fi | |
20951 | + else | |
20952 | + LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
20953 | + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
20954 | + fi | |
20955 | + fi | |
20956 | + fi | |
20957 | + done | |
20958 | + done | |
20959 | + if test "X$rpathdirs" != "X"; then | |
20960 | + if test -n "$acl_hardcode_libdir_separator"; then | |
20961 | + alldirs= | |
20962 | + for found_dir in $rpathdirs; do | |
20963 | + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
20964 | + done | |
20965 | + acl_save_libdir="$libdir" | |
20966 | + libdir="$alldirs" | |
20967 | + eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
20968 | + libdir="$acl_save_libdir" | |
20969 | + LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
20970 | + else | |
20971 | + for found_dir in $rpathdirs; do | |
20972 | + acl_save_libdir="$libdir" | |
20973 | + libdir="$found_dir" | |
20974 | + eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
20975 | + libdir="$acl_save_libdir" | |
20976 | + LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
20977 | + done | |
20978 | + fi | |
20979 | fi | |
20980 | -else | |
20981 | - if test "$GCC" = yes; then | |
20982 | - CFLAGS="-O2" | |
20983 | - else | |
20984 | - CFLAGS= | |
20985 | + if test "X$ltrpathdirs" != "X"; then | |
20986 | + for found_dir in $ltrpathdirs; do | |
20987 | + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
20988 | + done | |
20989 | fi | |
20990 | -fi | |
20991 | -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
20992 | -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
20993 | -if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
20994 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20995 | -else | |
20996 | - ac_cv_prog_cc_stdc=no | |
20997 | -ac_save_CC=$CC | |
20998 | -cat >conftest.$ac_ext <<_ACEOF | |
20999 | -/* confdefs.h. */ | |
21000 | -_ACEOF | |
21001 | -cat confdefs.h >>conftest.$ac_ext | |
21002 | -cat >>conftest.$ac_ext <<_ACEOF | |
21003 | -/* end confdefs.h. */ | |
21004 | -#include <stdarg.h> | |
21005 | -#include <stdio.h> | |
21006 | -#include <sys/types.h> | |
21007 | -#include <sys/stat.h> | |
21008 | -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
21009 | -struct buf { int x; }; | |
21010 | -FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
21011 | -static char *e (p, i) | |
21012 | - char **p; | |
21013 | - int i; | |
21014 | -{ | |
21015 | - return p[i]; | |
21016 | -} | |
21017 | -static char *f (char * (*g) (char **, int), char **p, ...) | |
21018 | -{ | |
21019 | - char *s; | |
21020 | - va_list v; | |
21021 | - va_start (v,p); | |
21022 | - s = g (p, va_arg (v,int)); | |
21023 | - va_end (v); | |
21024 | - return s; | |
21025 | -} | |
21026 | ||
21027 | -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
21028 | - function prototypes and stuff, but not '\xHH' hex character constants. | |
21029 | - These don't provoke an error unfortunately, instead are silently treated | |
21030 | - as 'x'. The following induces an error, until -std1 is added to get | |
21031 | - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
21032 | - array size at least. It's necessary to write '\x00'==0 to get something | |
21033 | - that's true only with -std1. */ | |
21034 | -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
21035 | ||
21036 | -int test (int i, double x); | |
21037 | -struct s1 {int (*f) (int a);}; | |
21038 | -struct s2 {int (*f) (double a);}; | |
21039 | -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
21040 | -int argc; | |
21041 | -char **argv; | |
21042 | -int | |
21043 | -main () | |
21044 | -{ | |
21045 | -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
21046 | - ; | |
21047 | - return 0; | |
21048 | -} | |
21049 | -_ACEOF | |
21050 | -# Don't try gcc -ansi; that turns off useful extensions and | |
21051 | -# breaks some systems' header files. | |
21052 | -# AIX -qlanglvl=ansi | |
21053 | -# Ultrix and OSF/1 -std1 | |
21054 | -# HP-UX 10.20 and later -Ae | |
21055 | -# HP-UX older versions -Aa -D_HPUX_SOURCE | |
21056 | -# SVR4 -Xc -D__EXTENSIONS__ | |
21057 | -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
21058 | -do | |
21059 | - CC="$ac_save_CC $ac_arg" | |
21060 | - rm -f conftest.$ac_objext | |
21061 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21062 | - (eval $ac_compile) 2>conftest.er1 | |
21063 | - ac_status=$? | |
21064 | - grep -v '^ *+' conftest.er1 >conftest.err | |
21065 | - rm -f conftest.er1 | |
21066 | - cat conftest.err >&5 | |
21067 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21068 | - (exit $ac_status); } && | |
21069 | - { ac_try='test -z "$ac_c_werror_flag" | |
21070 | - || test ! -s conftest.err' | |
21071 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21072 | - (eval $ac_try) 2>&5 | |
21073 | - ac_status=$? | |
21074 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21075 | - (exit $ac_status); }; } && | |
21076 | - { ac_try='test -s conftest.$ac_objext' | |
21077 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21078 | - (eval $ac_try) 2>&5 | |
21079 | - ac_status=$? | |
21080 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21081 | - (exit $ac_status); }; }; then | |
21082 | - ac_cv_prog_cc_stdc=$ac_arg | |
21083 | -break | |
21084 | -else | |
21085 | - echo "$as_me: failed program was:" >&5 | |
21086 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
21087 | ||
21088 | -fi | |
21089 | -rm -f conftest.err conftest.$ac_objext | |
21090 | -done | |
21091 | -rm -f conftest.$ac_ext conftest.$ac_objext | |
21092 | -CC=$ac_save_CC | |
21093 | ||
21094 | -fi | |
21095 | ||
21096 | -case "x$ac_cv_prog_cc_stdc" in | |
21097 | - x|xno) | |
21098 | - echo "$as_me:$LINENO: result: none needed" >&5 | |
21099 | -echo "${ECHO_T}none needed" >&6 ;; | |
21100 | - *) | |
21101 | - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
21102 | -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
21103 | - CC="$CC $ac_cv_prog_cc_stdc" ;; | |
21104 | -esac | |
21105 | ||
21106 | -# Some people use a C++ compiler to compile C. Since we use `exit', | |
21107 | -# in C++ we need to declare it. In case someone uses the same compiler | |
21108 | -# for both compiling C and C++ we need to have the C++ compiler decide | |
21109 | -# the declaration of exit, since it's the most demanding environment. | |
21110 | -cat >conftest.$ac_ext <<_ACEOF | |
21111 | -#ifndef __cplusplus | |
21112 | - choke me | |
21113 | -#endif | |
21114 | -_ACEOF | |
21115 | -rm -f conftest.$ac_objext | |
21116 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21117 | - (eval $ac_compile) 2>conftest.er1 | |
21118 | - ac_status=$? | |
21119 | - grep -v '^ *+' conftest.er1 >conftest.err | |
21120 | - rm -f conftest.er1 | |
21121 | - cat conftest.err >&5 | |
21122 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21123 | - (exit $ac_status); } && | |
21124 | - { ac_try='test -z "$ac_c_werror_flag" | |
21125 | - || test ! -s conftest.err' | |
21126 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21127 | - (eval $ac_try) 2>&5 | |
21128 | - ac_status=$? | |
21129 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21130 | - (exit $ac_status); }; } && | |
21131 | - { ac_try='test -s conftest.$ac_objext' | |
21132 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21133 | - (eval $ac_try) 2>&5 | |
21134 | - ac_status=$? | |
21135 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21136 | - (exit $ac_status); }; }; then | |
21137 | - for ac_declaration in \ | |
21138 | - '' \ | |
21139 | - 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
21140 | - 'extern "C" void std::exit (int); using std::exit;' \ | |
21141 | - 'extern "C" void exit (int) throw ();' \ | |
21142 | - 'extern "C" void exit (int);' \ | |
21143 | - 'void exit (int);' | |
21144 | -do | |
21145 | - cat >conftest.$ac_ext <<_ACEOF | |
21146 | -/* confdefs.h. */ | |
21147 | -_ACEOF | |
21148 | -cat confdefs.h >>conftest.$ac_ext | |
21149 | -cat >>conftest.$ac_ext <<_ACEOF | |
21150 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 | |
21151 | +$as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
21152 | +if eval \${$gt_func_gnugettext_libintl+:} false; then : | |
21153 | + $as_echo_n "(cached) " >&6 | |
21154 | +else | |
21155 | + gt_save_CPPFLAGS="$CPPFLAGS" | |
21156 | + CPPFLAGS="$CPPFLAGS $INCINTL" | |
21157 | + gt_save_LIBS="$LIBS" | |
21158 | + LIBS="$LIBS $LIBINTL" | |
21159 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21160 | /* end confdefs.h. */ | |
21161 | -$ac_declaration | |
21162 | -#include <stdlib.h> | |
21163 | +#include <libintl.h> | |
21164 | +$gt_revision_test_code | |
21165 | +extern int _nl_msg_cat_cntr; | |
21166 | +extern | |
21167 | +#ifdef __cplusplus | |
21168 | +"C" | |
21169 | +#endif | |
21170 | +const char *_nl_expand_alias (const char *); | |
21171 | int | |
21172 | main () | |
21173 | { | |
21174 | -exit (42); | |
21175 | +bindtextdomain ("", ""); | |
21176 | +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | |
21177 | ; | |
21178 | return 0; | |
21179 | } | |
21180 | _ACEOF | |
21181 | -rm -f conftest.$ac_objext | |
21182 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21183 | - (eval $ac_compile) 2>conftest.er1 | |
21184 | - ac_status=$? | |
21185 | - grep -v '^ *+' conftest.er1 >conftest.err | |
21186 | - rm -f conftest.er1 | |
21187 | - cat conftest.err >&5 | |
21188 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21189 | - (exit $ac_status); } && | |
21190 | - { ac_try='test -z "$ac_c_werror_flag" | |
21191 | - || test ! -s conftest.err' | |
21192 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21193 | - (eval $ac_try) 2>&5 | |
21194 | - ac_status=$? | |
21195 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21196 | - (exit $ac_status); }; } && | |
21197 | - { ac_try='test -s conftest.$ac_objext' | |
21198 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21199 | - (eval $ac_try) 2>&5 | |
21200 | - ac_status=$? | |
21201 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21202 | - (exit $ac_status); }; }; then | |
21203 | - : | |
21204 | +if ac_fn_c_try_link "$LINENO"; then : | |
21205 | + eval "$gt_func_gnugettext_libintl=yes" | |
21206 | else | |
21207 | - echo "$as_me: failed program was:" >&5 | |
21208 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
21209 | - | |
21210 | -continue | |
21211 | + eval "$gt_func_gnugettext_libintl=no" | |
21212 | fi | |
21213 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21214 | - cat >conftest.$ac_ext <<_ACEOF | |
21215 | -/* confdefs.h. */ | |
21216 | -_ACEOF | |
21217 | -cat confdefs.h >>conftest.$ac_ext | |
21218 | -cat >>conftest.$ac_ext <<_ACEOF | |
21219 | +rm -f core conftest.err conftest.$ac_objext \ | |
21220 | + conftest$ac_exeext conftest.$ac_ext | |
21221 | + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then | |
21222 | + LIBS="$LIBS $LIBICONV" | |
21223 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21224 | /* end confdefs.h. */ | |
21225 | -$ac_declaration | |
21226 | +#include <libintl.h> | |
21227 | +$gt_revision_test_code | |
21228 | +extern int _nl_msg_cat_cntr; | |
21229 | +extern | |
21230 | +#ifdef __cplusplus | |
21231 | +"C" | |
21232 | +#endif | |
21233 | +const char *_nl_expand_alias (const char *); | |
21234 | int | |
21235 | main () | |
21236 | { | |
21237 | -exit (42); | |
21238 | +bindtextdomain ("", ""); | |
21239 | +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | |
21240 | ; | |
21241 | return 0; | |
21242 | } | |
21243 | _ACEOF | |
21244 | -rm -f conftest.$ac_objext | |
21245 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21246 | - (eval $ac_compile) 2>conftest.er1 | |
21247 | - ac_status=$? | |
21248 | - grep -v '^ *+' conftest.er1 >conftest.err | |
21249 | - rm -f conftest.er1 | |
21250 | - cat conftest.err >&5 | |
21251 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21252 | - (exit $ac_status); } && | |
21253 | - { ac_try='test -z "$ac_c_werror_flag" | |
21254 | - || test ! -s conftest.err' | |
21255 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21256 | - (eval $ac_try) 2>&5 | |
21257 | - ac_status=$? | |
21258 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21259 | - (exit $ac_status); }; } && | |
21260 | - { ac_try='test -s conftest.$ac_objext' | |
21261 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21262 | - (eval $ac_try) 2>&5 | |
21263 | - ac_status=$? | |
21264 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21265 | - (exit $ac_status); }; }; then | |
21266 | - break | |
21267 | -else | |
21268 | - echo "$as_me: failed program was:" >&5 | |
21269 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
21270 | +if ac_fn_c_try_link "$LINENO"; then : | |
21271 | + LIBINTL="$LIBINTL $LIBICONV" | |
21272 | + LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
21273 | + eval "$gt_func_gnugettext_libintl=yes" | |
21274 | ||
21275 | fi | |
21276 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21277 | -done | |
21278 | -rm -f conftest* | |
21279 | -if test -n "$ac_declaration"; then | |
21280 | - echo '#ifdef __cplusplus' >>confdefs.h | |
21281 | - echo $ac_declaration >>confdefs.h | |
21282 | - echo '#endif' >>confdefs.h | |
21283 | +rm -f core conftest.err conftest.$ac_objext \ | |
21284 | + conftest$ac_exeext conftest.$ac_ext | |
21285 | + fi | |
21286 | + CPPFLAGS="$gt_save_CPPFLAGS" | |
21287 | + LIBS="$gt_save_LIBS" | |
21288 | fi | |
21289 | +eval ac_res=\$$gt_func_gnugettext_libintl | |
21290 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
21291 | +$as_echo "$ac_res" >&6; } | |
21292 | + fi | |
21293 | ||
21294 | -else | |
21295 | - echo "$as_me: failed program was:" >&5 | |
21296 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
21297 | + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ | |
21298 | + || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | |
21299 | + && test "$PACKAGE" != gettext-runtime \ | |
21300 | + && test "$PACKAGE" != gettext-tools; }; then | |
21301 | + gt_use_preinstalled_gnugettext=yes | |
21302 | + else | |
21303 | + LIBINTL= | |
21304 | + LTLIBINTL= | |
21305 | + INCINTL= | |
21306 | + fi | |
21307 | ||
21308 | -fi | |
21309 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21310 | -ac_ext=c | |
21311 | -ac_cpp='$CPP $CPPFLAGS' | |
21312 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21313 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21314 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21315 | ||
21316 | -depcc="$CC" am_compiler_list= | |
21317 | ||
21318 | -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
21319 | -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
21320 | -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
21321 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21322 | -else | |
21323 | - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
21324 | - # We make a subdir and do the tests there. Otherwise we can end up | |
21325 | - # making bogus files that we don't know about and never remove. For | |
21326 | - # instance it was reported that on HP-UX the gcc test will end up | |
21327 | - # making a dummy file named `D' -- because `-MD' means `put the output | |
21328 | - # in D'. | |
21329 | - mkdir conftest.dir | |
21330 | - # Copy depcomp to subdir because otherwise we won't find it if we're | |
21331 | - # using a relative directory. | |
21332 | - cp "$am_depcomp" conftest.dir | |
21333 | - cd conftest.dir | |
21334 | - # We will build objects and dependencies in a subdirectory because | |
21335 | - # it helps to detect inapplicable dependency modes. For instance | |
21336 | - # both Tru64's cc and ICC support -MD to output dependencies as a | |
21337 | - # side effect of compilation, but ICC will put the dependencies in | |
21338 | - # the current directory while Tru64 will put them in the object | |
21339 | - # directory. | |
21340 | - mkdir sub | |
21341 | + if test -n "$INTL_MACOSX_LIBS"; then | |
21342 | + if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
21343 | + || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
21344 | + LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | |
21345 | + LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | |
21346 | + fi | |
21347 | + fi | |
21348 | ||
21349 | - am_cv_CC_dependencies_compiler_type=none | |
21350 | - if test "$am_compiler_list" = ""; then | |
21351 | - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
21352 | + if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
21353 | + || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
21354 | + | |
21355 | +$as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
21356 | + | |
21357 | + else | |
21358 | + USE_NLS=no | |
21359 | + fi | |
21360 | fi | |
21361 | - for depmode in $am_compiler_list; do | |
21362 | - # Setup a source with many dependencies, because some compilers | |
21363 | - # like to wrap large dependency lists on column 80 (with \), and | |
21364 | - # we should not choose a depcomp mode which is confused by this. | |
21365 | - # | |
21366 | - # We need to recreate these files for each test, as the compiler may | |
21367 | - # overwrite some of them when testing with obscure command lines. | |
21368 | - # This happens at least with the AIX C compiler. | |
21369 | - : > sub/conftest.c | |
21370 | - for i in 1 2 3 4 5 6; do | |
21371 | - echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
21372 | - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
21373 | - # Solaris 8's {/usr,}/bin/sh. | |
21374 | - touch sub/conftst$i.h | |
21375 | - done | |
21376 | - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
21377 | ||
21378 | - case $depmode in | |
21379 | - nosideeffect) | |
21380 | - # after this tag, mechanisms are not by side-effect, so they'll | |
21381 | - # only be used when explicitly requested | |
21382 | - if test "x$enable_dependency_tracking" = xyes; then | |
21383 | - continue | |
21384 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 | |
21385 | +$as_echo_n "checking whether to use NLS... " >&6; } | |
21386 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
21387 | +$as_echo "$USE_NLS" >&6; } | |
21388 | + if test "$USE_NLS" = "yes"; then | |
21389 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 | |
21390 | +$as_echo_n "checking where the gettext function comes from... " >&6; } | |
21391 | + if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
21392 | + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
21393 | + gt_source="external libintl" | |
21394 | else | |
21395 | - break | |
21396 | - fi | |
21397 | - ;; | |
21398 | - none) break ;; | |
21399 | - esac | |
21400 | - # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
21401 | - # mode. It turns out that the SunPro C++ compiler does not properly | |
21402 | - # handle `-M -o', and we need to detect this. | |
21403 | - if depmode=$depmode \ | |
21404 | - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
21405 | - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
21406 | - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
21407 | - >/dev/null 2>conftest.err && | |
21408 | - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
21409 | - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
21410 | - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
21411 | - # icc doesn't choke on unknown options, it will just issue warnings | |
21412 | - # or remarks (even with -Werror). So we grep stderr for any message | |
21413 | - # that says an option was ignored or not supported. | |
21414 | - # When given -MP, icc 7.0 and 7.1 complain thusly: | |
21415 | - # icc: Command line warning: ignoring option '-M'; no argument required | |
21416 | - # The diagnosis changed in icc 8.0: | |
21417 | - # icc: Command line remark: option '-MP' not supported | |
21418 | - if (grep 'ignoring option' conftest.err || | |
21419 | - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
21420 | - am_cv_CC_dependencies_compiler_type=$depmode | |
21421 | - break | |
21422 | + gt_source="libc" | |
21423 | fi | |
21424 | + else | |
21425 | + gt_source="included intl directory" | |
21426 | fi | |
21427 | - done | |
21428 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 | |
21429 | +$as_echo "$gt_source" >&6; } | |
21430 | + fi | |
21431 | ||
21432 | - cd .. | |
21433 | - rm -rf conftest.dir | |
21434 | -else | |
21435 | - am_cv_CC_dependencies_compiler_type=none | |
21436 | -fi | |
21437 | + if test "$USE_NLS" = "yes"; then | |
21438 | ||
21439 | -fi | |
21440 | -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
21441 | -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
21442 | -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
21443 | + if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
21444 | + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
21445 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 | |
21446 | +$as_echo_n "checking how to link with libintl... " >&6; } | |
21447 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | |
21448 | +$as_echo "$LIBINTL" >&6; } | |
21449 | ||
21450 | + for element in $INCINTL; do | |
21451 | + haveit= | |
21452 | + for x in $CPPFLAGS; do | |
21453 | ||
21454 | + acl_save_prefix="$prefix" | |
21455 | + prefix="$acl_final_prefix" | |
21456 | + acl_save_exec_prefix="$exec_prefix" | |
21457 | + exec_prefix="$acl_final_exec_prefix" | |
21458 | + eval x=\"$x\" | |
21459 | + exec_prefix="$acl_save_exec_prefix" | |
21460 | + prefix="$acl_save_prefix" | |
21461 | ||
21462 | -if | |
21463 | - test "x$enable_dependency_tracking" != xno \ | |
21464 | - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
21465 | - am__fastdepCC_TRUE= | |
21466 | - am__fastdepCC_FALSE='#' | |
21467 | -else | |
21468 | - am__fastdepCC_TRUE='#' | |
21469 | - am__fastdepCC_FALSE= | |
21470 | -fi | |
21471 | + if test "X$x" = "X$element"; then | |
21472 | + haveit=yes | |
21473 | + break | |
21474 | + fi | |
21475 | + done | |
21476 | + if test -z "$haveit"; then | |
21477 | + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
21478 | + fi | |
21479 | + done | |
21480 | + | |
21481 | + fi | |
21482 | ||
21483 | ||
21484 | -echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
21485 | -echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
21486 | -if test "${ac_cv_search_strerror+set}" = set; then | |
21487 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21488 | -else | |
21489 | - ac_func_search_save_LIBS=$LIBS | |
21490 | -ac_cv_search_strerror=no | |
21491 | -cat >conftest.$ac_ext <<_ACEOF | |
21492 | -/* confdefs.h. */ | |
21493 | -_ACEOF | |
21494 | -cat confdefs.h >>conftest.$ac_ext | |
21495 | -cat >>conftest.$ac_ext <<_ACEOF | |
21496 | -/* end confdefs.h. */ | |
21497 | +$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h | |
21498 | ||
21499 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
21500 | -#ifdef __cplusplus | |
21501 | -extern "C" | |
21502 | -#endif | |
21503 | -/* We use char because int might match the return type of a gcc2 | |
21504 | - builtin and then its argument prototype would still apply. */ | |
21505 | -char strerror (); | |
21506 | -int | |
21507 | -main () | |
21508 | -{ | |
21509 | -strerror (); | |
21510 | - ; | |
21511 | - return 0; | |
21512 | -} | |
21513 | -_ACEOF | |
21514 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
21515 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21516 | - (eval $ac_link) 2>conftest.er1 | |
21517 | - ac_status=$? | |
21518 | - grep -v '^ *+' conftest.er1 >conftest.err | |
21519 | - rm -f conftest.er1 | |
21520 | - cat conftest.err >&5 | |
21521 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21522 | - (exit $ac_status); } && | |
21523 | - { ac_try='test -z "$ac_c_werror_flag" | |
21524 | - || test ! -s conftest.err' | |
21525 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21526 | - (eval $ac_try) 2>&5 | |
21527 | - ac_status=$? | |
21528 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21529 | - (exit $ac_status); }; } && | |
21530 | - { ac_try='test -s conftest$ac_exeext' | |
21531 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21532 | - (eval $ac_try) 2>&5 | |
21533 | - ac_status=$? | |
21534 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21535 | - (exit $ac_status); }; }; then | |
21536 | - ac_cv_search_strerror="none required" | |
21537 | -else | |
21538 | - echo "$as_me: failed program was:" >&5 | |
21539 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
21540 | ||
21541 | -fi | |
21542 | -rm -f conftest.err conftest.$ac_objext \ | |
21543 | - conftest$ac_exeext conftest.$ac_ext | |
21544 | -if test "$ac_cv_search_strerror" = no; then | |
21545 | - for ac_lib in cposix; do | |
21546 | - LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
21547 | - cat >conftest.$ac_ext <<_ACEOF | |
21548 | -/* confdefs.h. */ | |
21549 | -_ACEOF | |
21550 | -cat confdefs.h >>conftest.$ac_ext | |
21551 | -cat >>conftest.$ac_ext <<_ACEOF | |
21552 | -/* end confdefs.h. */ | |
21553 | +$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h | |
21554 | ||
21555 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
21556 | -#ifdef __cplusplus | |
21557 | -extern "C" | |
21558 | -#endif | |
21559 | -/* We use char because int might match the return type of a gcc2 | |
21560 | - builtin and then its argument prototype would still apply. */ | |
21561 | -char strerror (); | |
21562 | -int | |
21563 | -main () | |
21564 | -{ | |
21565 | -strerror (); | |
21566 | - ; | |
21567 | - return 0; | |
21568 | -} | |
21569 | -_ACEOF | |
21570 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
21571 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21572 | - (eval $ac_link) 2>conftest.er1 | |
21573 | - ac_status=$? | |
21574 | - grep -v '^ *+' conftest.er1 >conftest.err | |
21575 | - rm -f conftest.er1 | |
21576 | - cat conftest.err >&5 | |
21577 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21578 | - (exit $ac_status); } && | |
21579 | - { ac_try='test -z "$ac_c_werror_flag" | |
21580 | - || test ! -s conftest.err' | |
21581 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21582 | - (eval $ac_try) 2>&5 | |
21583 | - ac_status=$? | |
21584 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21585 | - (exit $ac_status); }; } && | |
21586 | - { ac_try='test -s conftest$ac_exeext' | |
21587 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21588 | - (eval $ac_try) 2>&5 | |
21589 | - ac_status=$? | |
21590 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21591 | - (exit $ac_status); }; }; then | |
21592 | - ac_cv_search_strerror="-l$ac_lib" | |
21593 | -break | |
21594 | -else | |
21595 | - echo "$as_me: failed program was:" >&5 | |
21596 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
21597 | + fi | |
21598 | ||
21599 | -fi | |
21600 | -rm -f conftest.err conftest.$ac_objext \ | |
21601 | - conftest$ac_exeext conftest.$ac_ext | |
21602 | - done | |
21603 | -fi | |
21604 | -LIBS=$ac_func_search_save_LIBS | |
21605 | -fi | |
21606 | -echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
21607 | -echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
21608 | -if test "$ac_cv_search_strerror" != no; then | |
21609 | - test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
21610 | + POSUB=po | |
21611 | + fi | |
21612 | ||
21613 | -fi | |
21614 | ||
21615 | -echo "$as_me:$LINENO: checking for function prototypes" >&5 | |
21616 | -echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 | |
21617 | -if test "$ac_cv_prog_cc_stdc" != no; then | |
21618 | - echo "$as_me:$LINENO: result: yes" >&5 | |
21619 | -echo "${ECHO_T}yes" >&6 | |
21620 | ||
21621 | -cat >>confdefs.h <<\_ACEOF | |
21622 | -#define PROTOTYPES 1 | |
21623 | -_ACEOF | |
21624 | + INTLLIBS="$LIBINTL" | |
21625 | ||
21626 | ||
21627 | -cat >>confdefs.h <<\_ACEOF | |
21628 | -#define __PROTOTYPES 1 | |
21629 | -_ACEOF | |
21630 | ||
21631 | -else | |
21632 | - echo "$as_me:$LINENO: result: no" >&5 | |
21633 | -echo "${ECHO_T}no" >&6 | |
21634 | -fi | |
21635 | ||
21636 | ||
21637 | -if test "$ac_cv_prog_cc_stdc" != no; then | |
21638 | - U= ANSI2KNR= | |
21639 | -else | |
21640 | - U=_ ANSI2KNR=./ansi2knr | |
21641 | -fi | |
21642 | -# Ensure some checks needed by ansi2knr itself. | |
21643 | ||
21644 | ||
21645 | -for ac_header in string.h | |
21646 | -do | |
21647 | -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21648 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21649 | - echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21650 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21651 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21652 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21653 | -fi | |
21654 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21655 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21656 | -else | |
21657 | - # Is the header compilable? | |
21658 | -echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21659 | -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21660 | -cat >conftest.$ac_ext <<_ACEOF | |
21661 | -/* confdefs.h. */ | |
21662 | -_ACEOF | |
21663 | -cat confdefs.h >>conftest.$ac_ext | |
21664 | -cat >>conftest.$ac_ext <<_ACEOF | |
21665 | -/* end confdefs.h. */ | |
21666 | -$ac_includes_default | |
21667 | -#include <$ac_header> | |
21668 | -_ACEOF | |
21669 | -rm -f conftest.$ac_objext | |
21670 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21671 | - (eval $ac_compile) 2>conftest.er1 | |
21672 | - ac_status=$? | |
21673 | - grep -v '^ *+' conftest.er1 >conftest.err | |
21674 | - rm -f conftest.er1 | |
21675 | - cat conftest.err >&5 | |
21676 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21677 | - (exit $ac_status); } && | |
21678 | - { ac_try='test -z "$ac_c_werror_flag" | |
21679 | - || test ! -s conftest.err' | |
21680 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21681 | - (eval $ac_try) 2>&5 | |
21682 | - ac_status=$? | |
21683 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21684 | - (exit $ac_status); }; } && | |
21685 | - { ac_try='test -s conftest.$ac_objext' | |
21686 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21687 | - (eval $ac_try) 2>&5 | |
21688 | - ac_status=$? | |
21689 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21690 | - (exit $ac_status); }; }; then | |
21691 | - ac_header_compiler=yes | |
21692 | -else | |
21693 | - echo "$as_me: failed program was:" >&5 | |
21694 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
21695 | ||
21696 | -ac_header_compiler=no | |
21697 | -fi | |
21698 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21699 | -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21700 | -echo "${ECHO_T}$ac_header_compiler" >&6 | |
21701 | ||
21702 | -# Is the header present? | |
21703 | -echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21704 | -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
21705 | -cat >conftest.$ac_ext <<_ACEOF | |
21706 | -/* confdefs.h. */ | |
21707 | -_ACEOF | |
21708 | -cat confdefs.h >>conftest.$ac_ext | |
21709 | -cat >>conftest.$ac_ext <<_ACEOF | |
21710 | -/* end confdefs.h. */ | |
21711 | -#include <$ac_header> | |
21712 | -_ACEOF | |
21713 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21714 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21715 | - ac_status=$? | |
21716 | - grep -v '^ *+' conftest.er1 >conftest.err | |
21717 | - rm -f conftest.er1 | |
21718 | - cat conftest.err >&5 | |
21719 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21720 | - (exit $ac_status); } >/dev/null; then | |
21721 | - if test -s conftest.err; then | |
21722 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
21723 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
21724 | - else | |
21725 | - ac_cpp_err= | |
21726 | - fi | |
21727 | -else | |
21728 | - ac_cpp_err=yes | |
21729 | -fi | |
21730 | -if test -z "$ac_cpp_err"; then | |
21731 | - ac_header_preproc=yes | |
21732 | -else | |
21733 | - echo "$as_me: failed program was:" >&5 | |
21734 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
21735 | ||
21736 | - ac_header_preproc=no | |
21737 | -fi | |
21738 | -rm -f conftest.err conftest.$ac_ext | |
21739 | -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21740 | -echo "${ECHO_T}$ac_header_preproc" >&6 | |
21741 | ||
21742 | -# So? What about this header? | |
21743 | -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
21744 | - yes:no: ) | |
21745 | - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
21746 | -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
21747 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
21748 | -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21749 | - ac_header_preproc=yes | |
21750 | - ;; | |
21751 | - no:yes:* ) | |
21752 | - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
21753 | -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
21754 | - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
21755 | -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21756 | - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21757 | -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21758 | - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21759 | -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
21760 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
21761 | -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
21762 | - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
21763 | -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
21764 | - ( | |
21765 | - cat <<\_ASBOX | |
21766 | -## ------------------------------------------ ## | |
21767 | -## Report this to the AC_PACKAGE_NAME lists. ## | |
21768 | -## ------------------------------------------ ## | |
21769 | -_ASBOX | |
21770 | - ) | | |
21771 | - sed "s/^/$as_me: WARNING: /" >&2 | |
21772 | - ;; | |
21773 | -esac | |
21774 | -echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21775 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21776 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21777 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21778 | -else | |
21779 | - eval "$as_ac_Header=\$ac_header_preproc" | |
21780 | -fi | |
21781 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21782 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21783 | + abook_localedir="$datadir/locale" | |
21784 | + abook_localedir=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
21785 | + eval tmp_abook_prefix=\""$abook_localedir"\" | |
21786 | + eval echo $tmp_abook_prefix | |
21787 | + )` | |
21788 | ||
21789 | -fi | |
21790 | -if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
21791 | - cat >>confdefs.h <<_ACEOF | |
21792 | -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21793 | -_ACEOF | |
21794 | +localedir="\$(datadir)/locale" | |
21795 | ||
21796 | + | |
21797 | +# Check whether --with-localedir was given. | |
21798 | +if test "${with_localedir+set}" = set; then : | |
21799 | + withval=$with_localedir; | |
21800 | fi | |
21801 | ||
21802 | -done | |
21803 | +if test "x$with_localedir" != "x"; then | |
21804 | + abook_localedir="$with_localedir" | |
21805 | + localedir="$with_localedir" | |
21806 | +fi | |
21807 | ||
21808 | ||
21809 | -if test "x$U" != "x"; then | |
21810 | - { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5 | |
21811 | -echo "$as_me: error: Compiler not ANSI compliant" >&2;} | |
21812 | - { (exit 1); exit 1; }; } | |
21813 | -fi | |
21814 | -echo "$as_me:$LINENO: checking for inline" >&5 | |
21815 | -echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
21816 | -if test "${ac_cv_c_inline+set}" = set; then | |
21817 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21818 | -else | |
21819 | - ac_cv_c_inline=no | |
21820 | -for ac_kw in inline __inline__ __inline; do | |
21821 | - cat >conftest.$ac_ext <<_ACEOF | |
21822 | -/* confdefs.h. */ | |
21823 | +cat >>confdefs.h <<_ACEOF | |
21824 | +#define LOCALEDIR "$abook_localedir" | |
21825 | _ACEOF | |
21826 | -cat confdefs.h >>conftest.$ac_ext | |
21827 | -cat >>conftest.$ac_ext <<_ACEOF | |
21828 | -/* end confdefs.h. */ | |
21829 | -#ifndef __cplusplus | |
21830 | -typedef int foo_t; | |
21831 | -static $ac_kw foo_t static_foo () {return 0; } | |
21832 | -$ac_kw foo_t foo () {return 0; } | |
21833 | -#endif | |
21834 | ||
21835 | -_ACEOF | |
21836 | -rm -f conftest.$ac_objext | |
21837 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21838 | - (eval $ac_compile) 2>conftest.er1 | |
21839 | - ac_status=$? | |
21840 | - grep -v '^ *+' conftest.er1 >conftest.err | |
21841 | - rm -f conftest.er1 | |
21842 | - cat conftest.err >&5 | |
21843 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21844 | - (exit $ac_status); } && | |
21845 | - { ac_try='test -z "$ac_c_werror_flag" | |
21846 | - || test ! -s conftest.err' | |
21847 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21848 | - (eval $ac_try) 2>&5 | |
21849 | - ac_status=$? | |
21850 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21851 | - (exit $ac_status); }; } && | |
21852 | - { ac_try='test -s conftest.$ac_objext' | |
21853 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21854 | - (eval $ac_try) 2>&5 | |
21855 | - ac_status=$? | |
21856 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21857 | - (exit $ac_status); }; }; then | |
21858 | - ac_cv_c_inline=$ac_kw; break | |
21859 | -else | |
21860 | - echo "$as_me: failed program was:" >&5 | |
21861 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
21862 | ||
21863 | -fi | |
21864 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21865 | -done | |
21866 | ||
21867 | + if test x$USE_INCLUDED_LIBINTL = xyes; then | |
21868 | + USE_INCLUDED_INTL_H_TRUE= | |
21869 | + USE_INCLUDED_INTL_H_FALSE='#' | |
21870 | +else | |
21871 | + USE_INCLUDED_INTL_H_TRUE='#' | |
21872 | + USE_INCLUDED_INTL_H_FALSE= | |
21873 | fi | |
21874 | -echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
21875 | -echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
21876 | ||
21877 | ||
21878 | -case $ac_cv_c_inline in | |
21879 | - inline | yes) ;; | |
21880 | - *) | |
21881 | - case $ac_cv_c_inline in | |
21882 | - no) ac_val=;; | |
21883 | - *) ac_val=$ac_cv_c_inline;; | |
21884 | - esac | |
21885 | - cat >>confdefs.h <<_ACEOF | |
21886 | -#ifndef __cplusplus | |
21887 | -#define inline $ac_val | |
21888 | -#endif | |
21889 | -_ACEOF | |
21890 | - ;; | |
21891 | -esac | |
21892 | ||
21893 | -# Find a good install program. We prefer a C program (faster), | |
21894 | -# so one script is as good as another. But avoid the broken or | |
21895 | -# incompatible versions: | |
21896 | -# SysV /etc/install, /usr/sbin/install | |
21897 | -# SunOS /usr/etc/install | |
21898 | -# IRIX /sbin/install | |
21899 | -# AIX /bin/install | |
21900 | -# AmigaOS /C/install, which installs bootblocks on floppy discs | |
21901 | -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
21902 | -# AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
21903 | -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
21904 | -# OS/2's system install, which has a completely different semantic | |
21905 | -# ./install, which can be erroneously created by make from ./install.sh. | |
21906 | -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
21907 | -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
21908 | -if test -z "$INSTALL"; then | |
21909 | -if test "${ac_cv_path_install+set}" = set; then | |
21910 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21911 | +ac_ext=c | |
21912 | +ac_cpp='$CPP $CPPFLAGS' | |
21913 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21914 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21915 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21916 | +if test -n "$ac_tool_prefix"; then | |
21917 | + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
21918 | +set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
21919 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21920 | +$as_echo_n "checking for $ac_word... " >&6; } | |
21921 | +if ${ac_cv_prog_CC+:} false; then : | |
21922 | + $as_echo_n "(cached) " >&6 | |
21923 | else | |
21924 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21925 | + if test -n "$CC"; then | |
21926 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
21927 | +else | |
21928 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21929 | for as_dir in $PATH | |
21930 | do | |
21931 | IFS=$as_save_IFS | |
21932 | test -z "$as_dir" && as_dir=. | |
21933 | - # Account for people who put trailing slashes in PATH elements. | |
21934 | -case $as_dir/ in | |
21935 | - ./ | .// | /cC/* | \ | |
21936 | - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
21937 | - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
21938 | - /usr/ucb/* ) ;; | |
21939 | - *) | |
21940 | - # OSF1 and SCO ODT 3.0 have their own names for install. | |
21941 | - # Don't use installbsd from OSF since it installs stuff as root | |
21942 | - # by default. | |
21943 | - for ac_prog in ginstall scoinst install; do | |
21944 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
21945 | - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
21946 | - if test $ac_prog = install && | |
21947 | - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
21948 | - # AIX install. It has an incompatible calling convention. | |
21949 | - : | |
21950 | - elif test $ac_prog = install && | |
21951 | - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
21952 | - # program-specific install script used by HP pwplus--don't use. | |
21953 | - : | |
21954 | - else | |
21955 | - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
21956 | - break 3 | |
21957 | - fi | |
21958 | - fi | |
21959 | - done | |
21960 | - done | |
21961 | - ;; | |
21962 | -esac | |
21963 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
21964 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21965 | + ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
21966 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21967 | + break 2 | |
21968 | + fi | |
21969 | done | |
21970 | - | |
21971 | + done | |
21972 | +IFS=$as_save_IFS | |
21973 | ||
21974 | fi | |
21975 | - if test "${ac_cv_path_install+set}" = set; then | |
21976 | - INSTALL=$ac_cv_path_install | |
21977 | - else | |
21978 | - # As a last resort, use the slow shell script. We don't cache a | |
21979 | - # path for INSTALL within a source directory, because that will | |
21980 | - # break other packages using the cache if that directory is | |
21981 | - # removed, or if the path is relative. | |
21982 | - INSTALL=$ac_install_sh | |
21983 | - fi | |
21984 | fi | |
21985 | -echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
21986 | -echo "${ECHO_T}$INSTALL" >&6 | |
21987 | - | |
21988 | -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
21989 | -# It thinks the first close brace ends the variable substitution. | |
21990 | -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
21991 | - | |
21992 | -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
21993 | - | |
21994 | -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
21995 | - | |
21996 | -echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
21997 | -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
21998 | -if test "${ac_cv_header_stdc+set}" = set; then | |
21999 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22000 | +CC=$ac_cv_prog_CC | |
22001 | +if test -n "$CC"; then | |
22002 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
22003 | +$as_echo "$CC" >&6; } | |
22004 | else | |
22005 | - cat >conftest.$ac_ext <<_ACEOF | |
22006 | -/* confdefs.h. */ | |
22007 | -_ACEOF | |
22008 | -cat confdefs.h >>conftest.$ac_ext | |
22009 | -cat >>conftest.$ac_ext <<_ACEOF | |
22010 | -/* end confdefs.h. */ | |
22011 | -#include <stdlib.h> | |
22012 | -#include <stdarg.h> | |
22013 | -#include <string.h> | |
22014 | -#include <float.h> | |
22015 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22016 | +$as_echo "no" >&6; } | |
22017 | +fi | |
22018 | ||
22019 | -int | |
22020 | -main () | |
22021 | -{ | |
22022 | ||
22023 | - ; | |
22024 | - return 0; | |
22025 | -} | |
22026 | -_ACEOF | |
22027 | -rm -f conftest.$ac_objext | |
22028 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22029 | - (eval $ac_compile) 2>conftest.er1 | |
22030 | - ac_status=$? | |
22031 | - grep -v '^ *+' conftest.er1 >conftest.err | |
22032 | - rm -f conftest.er1 | |
22033 | - cat conftest.err >&5 | |
22034 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22035 | - (exit $ac_status); } && | |
22036 | - { ac_try='test -z "$ac_c_werror_flag" | |
22037 | - || test ! -s conftest.err' | |
22038 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22039 | - (eval $ac_try) 2>&5 | |
22040 | - ac_status=$? | |
22041 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22042 | - (exit $ac_status); }; } && | |
22043 | - { ac_try='test -s conftest.$ac_objext' | |
22044 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22045 | - (eval $ac_try) 2>&5 | |
22046 | - ac_status=$? | |
22047 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22048 | - (exit $ac_status); }; }; then | |
22049 | - ac_cv_header_stdc=yes | |
22050 | +fi | |
22051 | +if test -z "$ac_cv_prog_CC"; then | |
22052 | + ac_ct_CC=$CC | |
22053 | + # Extract the first word of "gcc", so it can be a program name with args. | |
22054 | +set dummy gcc; ac_word=$2 | |
22055 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
22056 | +$as_echo_n "checking for $ac_word... " >&6; } | |
22057 | +if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
22058 | + $as_echo_n "(cached) " >&6 | |
22059 | +else | |
22060 | + if test -n "$ac_ct_CC"; then | |
22061 | + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
22062 | else | |
22063 | - echo "$as_me: failed program was:" >&5 | |
22064 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
22065 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22066 | +for as_dir in $PATH | |
22067 | +do | |
22068 | + IFS=$as_save_IFS | |
22069 | + test -z "$as_dir" && as_dir=. | |
22070 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
22071 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22072 | + ac_cv_prog_ac_ct_CC="gcc" | |
22073 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22074 | + break 2 | |
22075 | + fi | |
22076 | +done | |
22077 | + done | |
22078 | +IFS=$as_save_IFS | |
22079 | ||
22080 | -ac_cv_header_stdc=no | |
22081 | fi | |
22082 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22083 | - | |
22084 | -if test $ac_cv_header_stdc = yes; then | |
22085 | - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
22086 | - cat >conftest.$ac_ext <<_ACEOF | |
22087 | -/* confdefs.h. */ | |
22088 | -_ACEOF | |
22089 | -cat confdefs.h >>conftest.$ac_ext | |
22090 | -cat >>conftest.$ac_ext <<_ACEOF | |
22091 | -/* end confdefs.h. */ | |
22092 | -#include <string.h> | |
22093 | - | |
22094 | -_ACEOF | |
22095 | -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
22096 | - $EGREP "memchr" >/dev/null 2>&1; then | |
22097 | - : | |
22098 | +fi | |
22099 | +ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
22100 | +if test -n "$ac_ct_CC"; then | |
22101 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
22102 | +$as_echo "$ac_ct_CC" >&6; } | |
22103 | else | |
22104 | - ac_cv_header_stdc=no | |
22105 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22106 | +$as_echo "no" >&6; } | |
22107 | fi | |
22108 | -rm -f conftest* | |
22109 | ||
22110 | + if test "x$ac_ct_CC" = x; then | |
22111 | + CC="" | |
22112 | + else | |
22113 | + case $cross_compiling:$ac_tool_warned in | |
22114 | +yes:) | |
22115 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
22116 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
22117 | +ac_tool_warned=yes ;; | |
22118 | +esac | |
22119 | + CC=$ac_ct_CC | |
22120 | + fi | |
22121 | +else | |
22122 | + CC="$ac_cv_prog_CC" | |
22123 | fi | |
22124 | ||
22125 | -if test $ac_cv_header_stdc = yes; then | |
22126 | - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
22127 | - cat >conftest.$ac_ext <<_ACEOF | |
22128 | -/* confdefs.h. */ | |
22129 | -_ACEOF | |
22130 | -cat confdefs.h >>conftest.$ac_ext | |
22131 | -cat >>conftest.$ac_ext <<_ACEOF | |
22132 | -/* end confdefs.h. */ | |
22133 | -#include <stdlib.h> | |
22134 | +if test -z "$CC"; then | |
22135 | + if test -n "$ac_tool_prefix"; then | |
22136 | + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
22137 | +set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
22138 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
22139 | +$as_echo_n "checking for $ac_word... " >&6; } | |
22140 | +if ${ac_cv_prog_CC+:} false; then : | |
22141 | + $as_echo_n "(cached) " >&6 | |
22142 | +else | |
22143 | + if test -n "$CC"; then | |
22144 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
22145 | +else | |
22146 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22147 | +for as_dir in $PATH | |
22148 | +do | |
22149 | + IFS=$as_save_IFS | |
22150 | + test -z "$as_dir" && as_dir=. | |
22151 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
22152 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22153 | + ac_cv_prog_CC="${ac_tool_prefix}cc" | |
22154 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22155 | + break 2 | |
22156 | + fi | |
22157 | +done | |
22158 | + done | |
22159 | +IFS=$as_save_IFS | |
22160 | ||
22161 | -_ACEOF | |
22162 | -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
22163 | - $EGREP "free" >/dev/null 2>&1; then | |
22164 | - : | |
22165 | +fi | |
22166 | +fi | |
22167 | +CC=$ac_cv_prog_CC | |
22168 | +if test -n "$CC"; then | |
22169 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
22170 | +$as_echo "$CC" >&6; } | |
22171 | else | |
22172 | - ac_cv_header_stdc=no | |
22173 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22174 | +$as_echo "no" >&6; } | |
22175 | fi | |
22176 | -rm -f conftest* | |
22177 | ||
22178 | -fi | |
22179 | ||
22180 | -if test $ac_cv_header_stdc = yes; then | |
22181 | - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
22182 | - if test "$cross_compiling" = yes; then | |
22183 | - : | |
22184 | + fi | |
22185 | +fi | |
22186 | +if test -z "$CC"; then | |
22187 | + # Extract the first word of "cc", so it can be a program name with args. | |
22188 | +set dummy cc; ac_word=$2 | |
22189 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
22190 | +$as_echo_n "checking for $ac_word... " >&6; } | |
22191 | +if ${ac_cv_prog_CC+:} false; then : | |
22192 | + $as_echo_n "(cached) " >&6 | |
22193 | else | |
22194 | - cat >conftest.$ac_ext <<_ACEOF | |
22195 | -/* confdefs.h. */ | |
22196 | -_ACEOF | |
22197 | -cat confdefs.h >>conftest.$ac_ext | |
22198 | -cat >>conftest.$ac_ext <<_ACEOF | |
22199 | -/* end confdefs.h. */ | |
22200 | -#include <ctype.h> | |
22201 | -#if ((' ' & 0x0FF) == 0x020) | |
22202 | -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
22203 | -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
22204 | -#else | |
22205 | -# define ISLOWER(c) \ | |
22206 | - (('a' <= (c) && (c) <= 'i') \ | |
22207 | - || ('j' <= (c) && (c) <= 'r') \ | |
22208 | - || ('s' <= (c) && (c) <= 'z')) | |
22209 | -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
22210 | -#endif | |
22211 | - | |
22212 | -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
22213 | -int | |
22214 | -main () | |
22215 | -{ | |
22216 | - int i; | |
22217 | - for (i = 0; i < 256; i++) | |
22218 | - if (XOR (islower (i), ISLOWER (i)) | |
22219 | - || toupper (i) != TOUPPER (i)) | |
22220 | - exit(2); | |
22221 | - exit (0); | |
22222 | -} | |
22223 | -_ACEOF | |
22224 | -rm -f conftest$ac_exeext | |
22225 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22226 | - (eval $ac_link) 2>&5 | |
22227 | - ac_status=$? | |
22228 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22229 | - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22230 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22231 | - (eval $ac_try) 2>&5 | |
22232 | - ac_status=$? | |
22233 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22234 | - (exit $ac_status); }; }; then | |
22235 | - : | |
22236 | + if test -n "$CC"; then | |
22237 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
22238 | else | |
22239 | - echo "$as_me: program exited with status $ac_status" >&5 | |
22240 | -echo "$as_me: failed program was:" >&5 | |
22241 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
22242 | + ac_prog_rejected=no | |
22243 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22244 | +for as_dir in $PATH | |
22245 | +do | |
22246 | + IFS=$as_save_IFS | |
22247 | + test -z "$as_dir" && as_dir=. | |
22248 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
22249 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22250 | + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
22251 | + ac_prog_rejected=yes | |
22252 | + continue | |
22253 | + fi | |
22254 | + ac_cv_prog_CC="cc" | |
22255 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22256 | + break 2 | |
22257 | + fi | |
22258 | +done | |
22259 | + done | |
22260 | +IFS=$as_save_IFS | |
22261 | ||
22262 | -( exit $ac_status ) | |
22263 | -ac_cv_header_stdc=no | |
22264 | +if test $ac_prog_rejected = yes; then | |
22265 | + # We found a bogon in the path, so make sure we never use it. | |
22266 | + set dummy $ac_cv_prog_CC | |
22267 | + shift | |
22268 | + if test $# != 0; then | |
22269 | + # We chose a different compiler from the bogus one. | |
22270 | + # However, it has the same basename, so the bogon will be chosen | |
22271 | + # first if we set CC to just the basename; use the full file name. | |
22272 | + shift | |
22273 | + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
22274 | + fi | |
22275 | fi | |
22276 | -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
22277 | fi | |
22278 | fi | |
22279 | +CC=$ac_cv_prog_CC | |
22280 | +if test -n "$CC"; then | |
22281 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
22282 | +$as_echo "$CC" >&6; } | |
22283 | +else | |
22284 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22285 | +$as_echo "no" >&6; } | |
22286 | fi | |
22287 | -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
22288 | -echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
22289 | -if test $ac_cv_header_stdc = yes; then | |
22290 | ||
22291 | -cat >>confdefs.h <<\_ACEOF | |
22292 | -#define STDC_HEADERS 1 | |
22293 | -_ACEOF | |
22294 | ||
22295 | fi | |
22296 | +if test -z "$CC"; then | |
22297 | + if test -n "$ac_tool_prefix"; then | |
22298 | + for ac_prog in cl.exe | |
22299 | + do | |
22300 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
22301 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
22302 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
22303 | +$as_echo_n "checking for $ac_word... " >&6; } | |
22304 | +if ${ac_cv_prog_CC+:} false; then : | |
22305 | + $as_echo_n "(cached) " >&6 | |
22306 | +else | |
22307 | + if test -n "$CC"; then | |
22308 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
22309 | +else | |
22310 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22311 | +for as_dir in $PATH | |
22312 | +do | |
22313 | + IFS=$as_save_IFS | |
22314 | + test -z "$as_dir" && as_dir=. | |
22315 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
22316 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22317 | + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
22318 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22319 | + break 2 | |
22320 | + fi | |
22321 | +done | |
22322 | + done | |
22323 | +IFS=$as_save_IFS | |
22324 | ||
22325 | +fi | |
22326 | +fi | |
22327 | +CC=$ac_cv_prog_CC | |
22328 | +if test -n "$CC"; then | |
22329 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
22330 | +$as_echo "$CC" >&6; } | |
22331 | +else | |
22332 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22333 | +$as_echo "no" >&6; } | |
22334 | +fi | |
22335 | ||
22336 | ||
22337 | - | |
22338 | - | |
22339 | -for ac_header in unistd.h locale.h sys/ioctl.h iconv.h | |
22340 | -do | |
22341 | -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22342 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22343 | - echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22344 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22345 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22346 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22347 | + test -n "$CC" && break | |
22348 | + done | |
22349 | fi | |
22350 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22351 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22352 | +if test -z "$CC"; then | |
22353 | + ac_ct_CC=$CC | |
22354 | + for ac_prog in cl.exe | |
22355 | +do | |
22356 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
22357 | +set dummy $ac_prog; ac_word=$2 | |
22358 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
22359 | +$as_echo_n "checking for $ac_word... " >&6; } | |
22360 | +if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
22361 | + $as_echo_n "(cached) " >&6 | |
22362 | else | |
22363 | - # Is the header compilable? | |
22364 | -echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22365 | -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22366 | -cat >conftest.$ac_ext <<_ACEOF | |
22367 | -/* confdefs.h. */ | |
22368 | -_ACEOF | |
22369 | -cat confdefs.h >>conftest.$ac_ext | |
22370 | -cat >>conftest.$ac_ext <<_ACEOF | |
22371 | -/* end confdefs.h. */ | |
22372 | -$ac_includes_default | |
22373 | -#include <$ac_header> | |
22374 | -_ACEOF | |
22375 | -rm -f conftest.$ac_objext | |
22376 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22377 | - (eval $ac_compile) 2>conftest.er1 | |
22378 | - ac_status=$? | |
22379 | - grep -v '^ *+' conftest.er1 >conftest.err | |
22380 | - rm -f conftest.er1 | |
22381 | - cat conftest.err >&5 | |
22382 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22383 | - (exit $ac_status); } && | |
22384 | - { ac_try='test -z "$ac_c_werror_flag" | |
22385 | - || test ! -s conftest.err' | |
22386 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22387 | - (eval $ac_try) 2>&5 | |
22388 | - ac_status=$? | |
22389 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22390 | - (exit $ac_status); }; } && | |
22391 | - { ac_try='test -s conftest.$ac_objext' | |
22392 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22393 | - (eval $ac_try) 2>&5 | |
22394 | - ac_status=$? | |
22395 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22396 | - (exit $ac_status); }; }; then | |
22397 | - ac_header_compiler=yes | |
22398 | + if test -n "$ac_ct_CC"; then | |
22399 | + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
22400 | else | |
22401 | - echo "$as_me: failed program was:" >&5 | |
22402 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
22403 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22404 | +for as_dir in $PATH | |
22405 | +do | |
22406 | + IFS=$as_save_IFS | |
22407 | + test -z "$as_dir" && as_dir=. | |
22408 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
22409 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22410 | + ac_cv_prog_ac_ct_CC="$ac_prog" | |
22411 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22412 | + break 2 | |
22413 | + fi | |
22414 | +done | |
22415 | + done | |
22416 | +IFS=$as_save_IFS | |
22417 | ||
22418 | -ac_header_compiler=no | |
22419 | fi | |
22420 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22421 | -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22422 | -echo "${ECHO_T}$ac_header_compiler" >&6 | |
22423 | - | |
22424 | -# Is the header present? | |
22425 | -echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22426 | -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22427 | -cat >conftest.$ac_ext <<_ACEOF | |
22428 | -/* confdefs.h. */ | |
22429 | -_ACEOF | |
22430 | -cat confdefs.h >>conftest.$ac_ext | |
22431 | -cat >>conftest.$ac_ext <<_ACEOF | |
22432 | -/* end confdefs.h. */ | |
22433 | -#include <$ac_header> | |
22434 | -_ACEOF | |
22435 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22436 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22437 | - ac_status=$? | |
22438 | - grep -v '^ *+' conftest.er1 >conftest.err | |
22439 | - rm -f conftest.er1 | |
22440 | - cat conftest.err >&5 | |
22441 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22442 | - (exit $ac_status); } >/dev/null; then | |
22443 | - if test -s conftest.err; then | |
22444 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
22445 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
22446 | - else | |
22447 | - ac_cpp_err= | |
22448 | - fi | |
22449 | -else | |
22450 | - ac_cpp_err=yes | |
22451 | fi | |
22452 | -if test -z "$ac_cpp_err"; then | |
22453 | - ac_header_preproc=yes | |
22454 | +ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
22455 | +if test -n "$ac_ct_CC"; then | |
22456 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
22457 | +$as_echo "$ac_ct_CC" >&6; } | |
22458 | else | |
22459 | - echo "$as_me: failed program was:" >&5 | |
22460 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
22461 | - | |
22462 | - ac_header_preproc=no | |
22463 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22464 | +$as_echo "no" >&6; } | |
22465 | fi | |
22466 | -rm -f conftest.err conftest.$ac_ext | |
22467 | -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22468 | -echo "${ECHO_T}$ac_header_preproc" >&6 | |
22469 | ||
22470 | -# So? What about this header? | |
22471 | -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22472 | - yes:no: ) | |
22473 | - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22474 | -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22475 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
22476 | -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22477 | - ac_header_preproc=yes | |
22478 | - ;; | |
22479 | - no:yes:* ) | |
22480 | - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
22481 | -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
22482 | - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
22483 | -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22484 | - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22485 | -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22486 | - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22487 | -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
22488 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
22489 | -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
22490 | - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
22491 | -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
22492 | - ( | |
22493 | - cat <<\_ASBOX | |
22494 | -## ------------------------------------------ ## | |
22495 | -## Report this to the AC_PACKAGE_NAME lists. ## | |
22496 | -## ------------------------------------------ ## | |
22497 | -_ASBOX | |
22498 | - ) | | |
22499 | - sed "s/^/$as_me: WARNING: /" >&2 | |
22500 | - ;; | |
22501 | + | |
22502 | + test -n "$ac_ct_CC" && break | |
22503 | +done | |
22504 | + | |
22505 | + if test "x$ac_ct_CC" = x; then | |
22506 | + CC="" | |
22507 | + else | |
22508 | + case $cross_compiling:$ac_tool_warned in | |
22509 | +yes:) | |
22510 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
22511 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
22512 | +ac_tool_warned=yes ;; | |
22513 | esac | |
22514 | -echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22515 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22516 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22517 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22518 | -else | |
22519 | - eval "$as_ac_Header=\$ac_header_preproc" | |
22520 | + CC=$ac_ct_CC | |
22521 | + fi | |
22522 | fi | |
22523 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22524 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22525 | ||
22526 | fi | |
22527 | -if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22528 | - cat >>confdefs.h <<_ACEOF | |
22529 | -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22530 | -_ACEOF | |
22531 | ||
22532 | -fi | |
22533 | ||
22534 | -done | |
22535 | +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
22536 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22537 | +as_fn_error $? "no acceptable C compiler found in \$PATH | |
22538 | +See \`config.log' for more details" "$LINENO" 5; } | |
22539 | ||
22540 | -if test "${ac_cv_header_stdarg_h+set}" = set; then | |
22541 | - echo "$as_me:$LINENO: checking for stdarg.h" >&5 | |
22542 | -echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 | |
22543 | -if test "${ac_cv_header_stdarg_h+set}" = set; then | |
22544 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22545 | -fi | |
22546 | -echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 | |
22547 | -echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 | |
22548 | -else | |
22549 | - # Is the header compilable? | |
22550 | -echo "$as_me:$LINENO: checking stdarg.h usability" >&5 | |
22551 | -echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6 | |
22552 | -cat >conftest.$ac_ext <<_ACEOF | |
22553 | -/* confdefs.h. */ | |
22554 | -_ACEOF | |
22555 | -cat confdefs.h >>conftest.$ac_ext | |
22556 | -cat >>conftest.$ac_ext <<_ACEOF | |
22557 | -/* end confdefs.h. */ | |
22558 | -$ac_includes_default | |
22559 | -#include <stdarg.h> | |
22560 | -_ACEOF | |
22561 | -rm -f conftest.$ac_objext | |
22562 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22563 | - (eval $ac_compile) 2>conftest.er1 | |
22564 | - ac_status=$? | |
22565 | - grep -v '^ *+' conftest.er1 >conftest.err | |
22566 | - rm -f conftest.er1 | |
22567 | - cat conftest.err >&5 | |
22568 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22569 | - (exit $ac_status); } && | |
22570 | - { ac_try='test -z "$ac_c_werror_flag" | |
22571 | - || test ! -s conftest.err' | |
22572 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22573 | - (eval $ac_try) 2>&5 | |
22574 | - ac_status=$? | |
22575 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22576 | - (exit $ac_status); }; } && | |
22577 | - { ac_try='test -s conftest.$ac_objext' | |
22578 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22579 | - (eval $ac_try) 2>&5 | |
22580 | +# Provide some information about the compiler. | |
22581 | +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
22582 | +set X $ac_compile | |
22583 | +ac_compiler=$2 | |
22584 | +for ac_option in --version -v -V -qversion; do | |
22585 | + { { ac_try="$ac_compiler $ac_option >&5" | |
22586 | +case "(($ac_try" in | |
22587 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22588 | + *) ac_try_echo=$ac_try;; | |
22589 | +esac | |
22590 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
22591 | +$as_echo "$ac_try_echo"; } >&5 | |
22592 | + (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
22593 | ac_status=$? | |
22594 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22595 | - (exit $ac_status); }; }; then | |
22596 | - ac_header_compiler=yes | |
22597 | + if test -s conftest.err; then | |
22598 | + sed '10a\ | |
22599 | +... rest of stderr output deleted ... | |
22600 | + 10q' conftest.err >conftest.er1 | |
22601 | + cat conftest.er1 >&5 | |
22602 | + fi | |
22603 | + rm -f conftest.er1 conftest.err | |
22604 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22605 | + test $ac_status = 0; } | |
22606 | +done | |
22607 | + | |
22608 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
22609 | +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22610 | +if ${ac_cv_c_compiler_gnu+:} false; then : | |
22611 | + $as_echo_n "(cached) " >&6 | |
22612 | else | |
22613 | - echo "$as_me: failed program was:" >&5 | |
22614 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
22615 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22616 | +/* end confdefs.h. */ | |
22617 | ||
22618 | -ac_header_compiler=no | |
22619 | -fi | |
22620 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22621 | -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22622 | -echo "${ECHO_T}$ac_header_compiler" >&6 | |
22623 | +int | |
22624 | +main () | |
22625 | +{ | |
22626 | +#ifndef __GNUC__ | |
22627 | + choke me | |
22628 | +#endif | |
22629 | ||
22630 | -# Is the header present? | |
22631 | -echo "$as_me:$LINENO: checking stdarg.h presence" >&5 | |
22632 | -echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6 | |
22633 | -cat >conftest.$ac_ext <<_ACEOF | |
22634 | -/* confdefs.h. */ | |
22635 | -_ACEOF | |
22636 | -cat confdefs.h >>conftest.$ac_ext | |
22637 | -cat >>conftest.$ac_ext <<_ACEOF | |
22638 | -/* end confdefs.h. */ | |
22639 | -#include <stdarg.h> | |
22640 | -_ACEOF | |
22641 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22642 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22643 | - ac_status=$? | |
22644 | - grep -v '^ *+' conftest.er1 >conftest.err | |
22645 | - rm -f conftest.er1 | |
22646 | - cat conftest.err >&5 | |
22647 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22648 | - (exit $ac_status); } >/dev/null; then | |
22649 | - if test -s conftest.err; then | |
22650 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
22651 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
22652 | - else | |
22653 | - ac_cpp_err= | |
22654 | - fi | |
22655 | + ; | |
22656 | + return 0; | |
22657 | +} | |
22658 | +_ACEOF | |
22659 | +if ac_fn_c_try_compile "$LINENO"; then : | |
22660 | + ac_compiler_gnu=yes | |
22661 | else | |
22662 | - ac_cpp_err=yes | |
22663 | + ac_compiler_gnu=no | |
22664 | fi | |
22665 | -if test -z "$ac_cpp_err"; then | |
22666 | - ac_header_preproc=yes | |
22667 | -else | |
22668 | - echo "$as_me: failed program was:" >&5 | |
22669 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
22670 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22671 | +ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
22672 | ||
22673 | - ac_header_preproc=no | |
22674 | fi | |
22675 | -rm -f conftest.err conftest.$ac_ext | |
22676 | -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22677 | -echo "${ECHO_T}$ac_header_preproc" >&6 | |
22678 | - | |
22679 | -# So? What about this header? | |
22680 | -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22681 | - yes:no: ) | |
22682 | - { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22683 | -echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22684 | - { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 | |
22685 | -echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} | |
22686 | - ac_header_preproc=yes | |
22687 | - ;; | |
22688 | - no:yes:* ) | |
22689 | - { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 | |
22690 | -echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} | |
22691 | - { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 | |
22692 | -echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} | |
22693 | - { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 | |
22694 | -echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} | |
22695 | - { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22696 | -echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
22697 | - { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 | |
22698 | -echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} | |
22699 | - { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 | |
22700 | -echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} | |
22701 | - ( | |
22702 | - cat <<\_ASBOX | |
22703 | -## ------------------------------------------ ## | |
22704 | -## Report this to the AC_PACKAGE_NAME lists. ## | |
22705 | -## ------------------------------------------ ## | |
22706 | -_ASBOX | |
22707 | - ) | | |
22708 | - sed "s/^/$as_me: WARNING: /" >&2 | |
22709 | - ;; | |
22710 | -esac | |
22711 | -echo "$as_me:$LINENO: checking for stdarg.h" >&5 | |
22712 | -echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 | |
22713 | -if test "${ac_cv_header_stdarg_h+set}" = set; then | |
22714 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22715 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
22716 | +$as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
22717 | +if test $ac_compiler_gnu = yes; then | |
22718 | + GCC=yes | |
22719 | else | |
22720 | - ac_cv_header_stdarg_h=$ac_header_preproc | |
22721 | + GCC= | |
22722 | fi | |
22723 | -echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 | |
22724 | -echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 | |
22725 | +ac_test_CFLAGS=${CFLAGS+set} | |
22726 | +ac_save_CFLAGS=$CFLAGS | |
22727 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
22728 | +$as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22729 | +if ${ac_cv_prog_cc_g+:} false; then : | |
22730 | + $as_echo_n "(cached) " >&6 | |
22731 | +else | |
22732 | + ac_save_c_werror_flag=$ac_c_werror_flag | |
22733 | + ac_c_werror_flag=yes | |
22734 | + ac_cv_prog_cc_g=no | |
22735 | + CFLAGS="-g" | |
22736 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22737 | +/* end confdefs.h. */ | |
22738 | ||
22739 | -fi | |
22740 | -if test $ac_cv_header_stdarg_h = yes; then | |
22741 | +int | |
22742 | +main () | |
22743 | +{ | |
22744 | ||
22745 | -cat >>confdefs.h <<\_ACEOF | |
22746 | -#define HAVE_STDARG_H 1 | |
22747 | + ; | |
22748 | + return 0; | |
22749 | +} | |
22750 | _ACEOF | |
22751 | - | |
22752 | +if ac_fn_c_try_compile "$LINENO"; then : | |
22753 | + ac_cv_prog_cc_g=yes | |
22754 | else | |
22755 | - { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5 | |
22756 | -echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;} | |
22757 | - { (exit 1); exit 1; }; } | |
22758 | -fi | |
22759 | + CFLAGS="" | |
22760 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22761 | +/* end confdefs.h. */ | |
22762 | + | |
22763 | +int | |
22764 | +main () | |
22765 | +{ | |
22766 | ||
22767 | + ; | |
22768 | + return 0; | |
22769 | +} | |
22770 | +_ACEOF | |
22771 | +if ac_fn_c_try_compile "$LINENO"; then : | |
22772 | ||
22773 | -echo "$as_me:$LINENO: checking for working strcoll" >&5 | |
22774 | -echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6 | |
22775 | -if test "${ac_cv_func_strcoll_works+set}" = set; then | |
22776 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22777 | -else | |
22778 | - if test "$cross_compiling" = yes; then | |
22779 | - ac_cv_func_strcoll_works=no | |
22780 | else | |
22781 | - cat >conftest.$ac_ext <<_ACEOF | |
22782 | -/* confdefs.h. */ | |
22783 | -_ACEOF | |
22784 | -cat confdefs.h >>conftest.$ac_ext | |
22785 | -cat >>conftest.$ac_ext <<_ACEOF | |
22786 | + ac_c_werror_flag=$ac_save_c_werror_flag | |
22787 | + CFLAGS="-g" | |
22788 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22789 | /* end confdefs.h. */ | |
22790 | -$ac_includes_default | |
22791 | + | |
22792 | int | |
22793 | main () | |
22794 | { | |
22795 | -exit (strcoll ("abc", "def") >= 0 || | |
22796 | - strcoll ("ABC", "DEF") >= 0 || | |
22797 | - strcoll ("123", "456") >= 0) | |
22798 | + | |
22799 | ; | |
22800 | return 0; | |
22801 | } | |
22802 | _ACEOF | |
22803 | -rm -f conftest$ac_exeext | |
22804 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22805 | - (eval $ac_link) 2>&5 | |
22806 | - ac_status=$? | |
22807 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22808 | - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22809 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22810 | - (eval $ac_try) 2>&5 | |
22811 | - ac_status=$? | |
22812 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22813 | - (exit $ac_status); }; }; then | |
22814 | - ac_cv_func_strcoll_works=yes | |
22815 | -else | |
22816 | - echo "$as_me: program exited with status $ac_status" >&5 | |
22817 | -echo "$as_me: failed program was:" >&5 | |
22818 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
22819 | - | |
22820 | -( exit $ac_status ) | |
22821 | -ac_cv_func_strcoll_works=no | |
22822 | +if ac_fn_c_try_compile "$LINENO"; then : | |
22823 | + ac_cv_prog_cc_g=yes | |
22824 | fi | |
22825 | -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
22826 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22827 | fi | |
22828 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22829 | fi | |
22830 | -echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 | |
22831 | -echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6 | |
22832 | -if test $ac_cv_func_strcoll_works = yes; then | |
22833 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22834 | + ac_c_werror_flag=$ac_save_c_werror_flag | |
22835 | +fi | |
22836 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
22837 | +$as_echo "$ac_cv_prog_cc_g" >&6; } | |
22838 | +if test "$ac_test_CFLAGS" = set; then | |
22839 | + CFLAGS=$ac_save_CFLAGS | |
22840 | +elif test $ac_cv_prog_cc_g = yes; then | |
22841 | + if test "$GCC" = yes; then | |
22842 | + CFLAGS="-g -O2" | |
22843 | + else | |
22844 | + CFLAGS="-g" | |
22845 | + fi | |
22846 | +else | |
22847 | + if test "$GCC" = yes; then | |
22848 | + CFLAGS="-O2" | |
22849 | + else | |
22850 | + CFLAGS= | |
22851 | + fi | |
22852 | +fi | |
22853 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
22854 | +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22855 | +if ${ac_cv_prog_cc_c89+:} false; then : | |
22856 | + $as_echo_n "(cached) " >&6 | |
22857 | +else | |
22858 | + ac_cv_prog_cc_c89=no | |
22859 | +ac_save_CC=$CC | |
22860 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22861 | +/* end confdefs.h. */ | |
22862 | +#include <stdarg.h> | |
22863 | +#include <stdio.h> | |
22864 | +struct stat; | |
22865 | +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
22866 | +struct buf { int x; }; | |
22867 | +FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
22868 | +static char *e (p, i) | |
22869 | + char **p; | |
22870 | + int i; | |
22871 | +{ | |
22872 | + return p[i]; | |
22873 | +} | |
22874 | +static char *f (char * (*g) (char **, int), char **p, ...) | |
22875 | +{ | |
22876 | + char *s; | |
22877 | + va_list v; | |
22878 | + va_start (v,p); | |
22879 | + s = g (p, va_arg (v,int)); | |
22880 | + va_end (v); | |
22881 | + return s; | |
22882 | +} | |
22883 | + | |
22884 | +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
22885 | + function prototypes and stuff, but not '\xHH' hex character constants. | |
22886 | + These don't provoke an error unfortunately, instead are silently treated | |
22887 | + as 'x'. The following induces an error, until -std is added to get | |
22888 | + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
22889 | + array size at least. It's necessary to write '\x00'==0 to get something | |
22890 | + that's true only with -std. */ | |
22891 | +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
22892 | + | |
22893 | +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
22894 | + inside strings and character constants. */ | |
22895 | +#define FOO(x) 'x' | |
22896 | +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
22897 | ||
22898 | -cat >>confdefs.h <<\_ACEOF | |
22899 | -#define HAVE_STRCOLL 1 | |
22900 | +int test (int i, double x); | |
22901 | +struct s1 {int (*f) (int a);}; | |
22902 | +struct s2 {int (*f) (double a);}; | |
22903 | +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
22904 | +int argc; | |
22905 | +char **argv; | |
22906 | +int | |
22907 | +main () | |
22908 | +{ | |
22909 | +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
22910 | + ; | |
22911 | + return 0; | |
22912 | +} | |
22913 | _ACEOF | |
22914 | +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
22915 | + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
22916 | +do | |
22917 | + CC="$ac_save_CC $ac_arg" | |
22918 | + if ac_fn_c_try_compile "$LINENO"; then : | |
22919 | + ac_cv_prog_cc_c89=$ac_arg | |
22920 | +fi | |
22921 | +rm -f core conftest.err conftest.$ac_objext | |
22922 | + test "x$ac_cv_prog_cc_c89" != "xno" && break | |
22923 | +done | |
22924 | +rm -f conftest.$ac_ext | |
22925 | +CC=$ac_save_CC | |
22926 | ||
22927 | fi | |
22928 | +# AC_CACHE_VAL | |
22929 | +case "x$ac_cv_prog_cc_c89" in | |
22930 | + x) | |
22931 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
22932 | +$as_echo "none needed" >&6; } ;; | |
22933 | + xno) | |
22934 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
22935 | +$as_echo "unsupported" >&6; } ;; | |
22936 | + *) | |
22937 | + CC="$CC $ac_cv_prog_cc_c89" | |
22938 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
22939 | +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
22940 | +esac | |
22941 | +if test "x$ac_cv_prog_cc_c89" != xno; then : | |
22942 | ||
22943 | +fi | |
22944 | ||
22945 | -for ac_func in setlocale | |
22946 | -do | |
22947 | -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
22948 | -echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22949 | -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22950 | -if eval "test \"\${$as_ac_var+set}\" = set"; then | |
22951 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22952 | +ac_ext=c | |
22953 | +ac_cpp='$CPP $CPPFLAGS' | |
22954 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22955 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22956 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22957 | + | |
22958 | +depcc="$CC" am_compiler_list= | |
22959 | + | |
22960 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
22961 | +$as_echo_n "checking dependency style of $depcc... " >&6; } | |
22962 | +if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
22963 | + $as_echo_n "(cached) " >&6 | |
22964 | else | |
22965 | - cat >conftest.$ac_ext <<_ACEOF | |
22966 | -/* confdefs.h. */ | |
22967 | -_ACEOF | |
22968 | -cat confdefs.h >>conftest.$ac_ext | |
22969 | -cat >>conftest.$ac_ext <<_ACEOF | |
22970 | -/* end confdefs.h. */ | |
22971 | -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
22972 | - For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22973 | -#define $ac_func innocuous_$ac_func | |
22974 | + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
22975 | + # We make a subdir and do the tests there. Otherwise we can end up | |
22976 | + # making bogus files that we don't know about and never remove. For | |
22977 | + # instance it was reported that on HP-UX the gcc test will end up | |
22978 | + # making a dummy file named `D' -- because `-MD' means `put the output | |
22979 | + # in D'. | |
22980 | + rm -rf conftest.dir | |
22981 | + mkdir conftest.dir | |
22982 | + # Copy depcomp to subdir because otherwise we won't find it if we're | |
22983 | + # using a relative directory. | |
22984 | + cp "$am_depcomp" conftest.dir | |
22985 | + cd conftest.dir | |
22986 | + # We will build objects and dependencies in a subdirectory because | |
22987 | + # it helps to detect inapplicable dependency modes. For instance | |
22988 | + # both Tru64's cc and ICC support -MD to output dependencies as a | |
22989 | + # side effect of compilation, but ICC will put the dependencies in | |
22990 | + # the current directory while Tru64 will put them in the object | |
22991 | + # directory. | |
22992 | + mkdir sub | |
22993 | ||
22994 | -/* System header to define __stub macros and hopefully few prototypes, | |
22995 | - which can conflict with char $ac_func (); below. | |
22996 | - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22997 | - <limits.h> exists even on freestanding compilers. */ | |
22998 | + am_cv_CC_dependencies_compiler_type=none | |
22999 | + if test "$am_compiler_list" = ""; then | |
23000 | + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
23001 | + fi | |
23002 | + am__universal=false | |
23003 | + case " $depcc " in #( | |
23004 | + *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
23005 | + esac | |
23006 | ||
23007 | -#ifdef __STDC__ | |
23008 | -# include <limits.h> | |
23009 | -#else | |
23010 | -# include <assert.h> | |
23011 | -#endif | |
23012 | + for depmode in $am_compiler_list; do | |
23013 | + # Setup a source with many dependencies, because some compilers | |
23014 | + # like to wrap large dependency lists on column 80 (with \), and | |
23015 | + # we should not choose a depcomp mode which is confused by this. | |
23016 | + # | |
23017 | + # We need to recreate these files for each test, as the compiler may | |
23018 | + # overwrite some of them when testing with obscure command lines. | |
23019 | + # This happens at least with the AIX C compiler. | |
23020 | + : > sub/conftest.c | |
23021 | + for i in 1 2 3 4 5 6; do | |
23022 | + echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
23023 | + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
23024 | + # Solaris 8's {/usr,}/bin/sh. | |
23025 | + touch sub/conftst$i.h | |
23026 | + done | |
23027 | + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
23028 | + | |
23029 | + # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
23030 | + # mode. It turns out that the SunPro C++ compiler does not properly | |
23031 | + # handle `-M -o', and we need to detect this. Also, some Intel | |
23032 | + # versions had trouble with output in subdirs | |
23033 | + am__obj=sub/conftest.${OBJEXT-o} | |
23034 | + am__minus_obj="-o $am__obj" | |
23035 | + case $depmode in | |
23036 | + gcc) | |
23037 | + # This depmode causes a compiler race in universal mode. | |
23038 | + test "$am__universal" = false || continue | |
23039 | + ;; | |
23040 | + nosideeffect) | |
23041 | + # after this tag, mechanisms are not by side-effect, so they'll | |
23042 | + # only be used when explicitly requested | |
23043 | + if test "x$enable_dependency_tracking" = xyes; then | |
23044 | + continue | |
23045 | + else | |
23046 | + break | |
23047 | + fi | |
23048 | + ;; | |
23049 | + msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
23050 | + # This compiler won't grok `-c -o', but also, the minuso test has | |
23051 | + # not run yet. These depmodes are late enough in the game, and | |
23052 | + # so weak that their functioning should not be impacted. | |
23053 | + am__obj=conftest.${OBJEXT-o} | |
23054 | + am__minus_obj= | |
23055 | + ;; | |
23056 | + none) break ;; | |
23057 | + esac | |
23058 | + if depmode=$depmode \ | |
23059 | + source=sub/conftest.c object=$am__obj \ | |
23060 | + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
23061 | + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
23062 | + >/dev/null 2>conftest.err && | |
23063 | + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
23064 | + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
23065 | + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
23066 | + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
23067 | + # icc doesn't choke on unknown options, it will just issue warnings | |
23068 | + # or remarks (even with -Werror). So we grep stderr for any message | |
23069 | + # that says an option was ignored or not supported. | |
23070 | + # When given -MP, icc 7.0 and 7.1 complain thusly: | |
23071 | + # icc: Command line warning: ignoring option '-M'; no argument required | |
23072 | + # The diagnosis changed in icc 8.0: | |
23073 | + # icc: Command line remark: option '-MP' not supported | |
23074 | + if (grep 'ignoring option' conftest.err || | |
23075 | + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
23076 | + am_cv_CC_dependencies_compiler_type=$depmode | |
23077 | + break | |
23078 | + fi | |
23079 | + fi | |
23080 | + done | |
23081 | + | |
23082 | + cd .. | |
23083 | + rm -rf conftest.dir | |
23084 | +else | |
23085 | + am_cv_CC_dependencies_compiler_type=none | |
23086 | +fi | |
23087 | ||
23088 | -#undef $ac_func | |
23089 | +fi | |
23090 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
23091 | +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
23092 | +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
23093 | ||
23094 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
23095 | -#ifdef __cplusplus | |
23096 | -extern "C" | |
23097 | -{ | |
23098 | -#endif | |
23099 | -/* We use char because int might match the return type of a gcc2 | |
23100 | + if | |
23101 | + test "x$enable_dependency_tracking" != xno \ | |
23102 | + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
23103 | + am__fastdepCC_TRUE= | |
23104 | + am__fastdepCC_FALSE='#' | |
23105 | +else | |
23106 | + am__fastdepCC_TRUE='#' | |
23107 | + am__fastdepCC_FALSE= | |
23108 | +fi | |
23109 | + | |
23110 | + | |
23111 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 | |
23112 | +$as_echo_n "checking for library containing strerror... " >&6; } | |
23113 | +if ${ac_cv_search_strerror+:} false; then : | |
23114 | + $as_echo_n "(cached) " >&6 | |
23115 | +else | |
23116 | + ac_func_search_save_LIBS=$LIBS | |
23117 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23118 | +/* end confdefs.h. */ | |
23119 | + | |
23120 | +/* Override any GCC internal prototype to avoid an error. | |
23121 | + Use char because int might match the return type of a GCC | |
23122 | builtin and then its argument prototype would still apply. */ | |
23123 | -char $ac_func (); | |
23124 | -/* The GNU C library defines this for functions which it implements | |
23125 | - to always fail with ENOSYS. Some functions are actually named | |
23126 | - something starting with __ and the normal name is an alias. */ | |
23127 | -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23128 | -choke me | |
23129 | -#else | |
23130 | -char (*f) () = $ac_func; | |
23131 | -#endif | |
23132 | #ifdef __cplusplus | |
23133 | -} | |
23134 | +extern "C" | |
23135 | #endif | |
23136 | - | |
23137 | +char strerror (); | |
23138 | int | |
23139 | main () | |
23140 | { | |
23141 | -return f != $ac_func; | |
23142 | +return strerror (); | |
23143 | ; | |
23144 | return 0; | |
23145 | } | |
23146 | _ACEOF | |
23147 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
23148 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23149 | - (eval $ac_link) 2>conftest.er1 | |
23150 | - ac_status=$? | |
23151 | - grep -v '^ *+' conftest.er1 >conftest.err | |
23152 | - rm -f conftest.er1 | |
23153 | - cat conftest.err >&5 | |
23154 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23155 | - (exit $ac_status); } && | |
23156 | - { ac_try='test -z "$ac_c_werror_flag" | |
23157 | - || test ! -s conftest.err' | |
23158 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23159 | - (eval $ac_try) 2>&5 | |
23160 | - ac_status=$? | |
23161 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23162 | - (exit $ac_status); }; } && | |
23163 | - { ac_try='test -s conftest$ac_exeext' | |
23164 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23165 | - (eval $ac_try) 2>&5 | |
23166 | - ac_status=$? | |
23167 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23168 | - (exit $ac_status); }; }; then | |
23169 | - eval "$as_ac_var=yes" | |
23170 | +for ac_lib in '' cposix; do | |
23171 | + if test -z "$ac_lib"; then | |
23172 | + ac_res="none required" | |
23173 | + else | |
23174 | + ac_res=-l$ac_lib | |
23175 | + LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23176 | + fi | |
23177 | + if ac_fn_c_try_link "$LINENO"; then : | |
23178 | + ac_cv_search_strerror=$ac_res | |
23179 | +fi | |
23180 | +rm -f core conftest.err conftest.$ac_objext \ | |
23181 | + conftest$ac_exeext | |
23182 | + if ${ac_cv_search_strerror+:} false; then : | |
23183 | + break | |
23184 | +fi | |
23185 | +done | |
23186 | +if ${ac_cv_search_strerror+:} false; then : | |
23187 | + | |
23188 | else | |
23189 | - echo "$as_me: failed program was:" >&5 | |
23190 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
23191 | + ac_cv_search_strerror=no | |
23192 | +fi | |
23193 | +rm conftest.$ac_ext | |
23194 | +LIBS=$ac_func_search_save_LIBS | |
23195 | +fi | |
23196 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | |
23197 | +$as_echo "$ac_cv_search_strerror" >&6; } | |
23198 | +ac_res=$ac_cv_search_strerror | |
23199 | +if test "$ac_res" != no; then : | |
23200 | + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
23201 | + | |
23202 | +fi | |
23203 | + | |
23204 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 | |
23205 | +$as_echo_n "checking for function prototypes... " >&6; } | |
23206 | +if test "$ac_cv_prog_cc_c89" != no; then | |
23207 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23208 | +$as_echo "yes" >&6; } | |
23209 | + | |
23210 | +$as_echo "#define PROTOTYPES 1" >>confdefs.h | |
23211 | + | |
23212 | ||
23213 | -eval "$as_ac_var=no" | |
23214 | +$as_echo "#define __PROTOTYPES 1" >>confdefs.h | |
23215 | + | |
23216 | +else | |
23217 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23218 | +$as_echo "no" >&6; } | |
23219 | fi | |
23220 | -rm -f conftest.err conftest.$ac_objext \ | |
23221 | - conftest$ac_exeext conftest.$ac_ext | |
23222 | + | |
23223 | + | |
23224 | + | |
23225 | +if test "$ac_cv_prog_cc_stdc" != no; then | |
23226 | + U= ANSI2KNR= | |
23227 | +else | |
23228 | + U=_ ANSI2KNR=./ansi2knr | |
23229 | fi | |
23230 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23231 | -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23232 | -if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23233 | +# Ensure some checks needed by ansi2knr itself. | |
23234 | + | |
23235 | +for ac_header in string.h | |
23236 | +do : | |
23237 | + ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" | |
23238 | +if test "x$ac_cv_header_string_h" = xyes; then : | |
23239 | cat >>confdefs.h <<_ACEOF | |
23240 | -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23241 | +#define HAVE_STRING_H 1 | |
23242 | _ACEOF | |
23243 | ||
23244 | fi | |
23245 | + | |
23246 | done | |
23247 | ||
23248 | ||
23249 | -ac_widec_funcs=yes | |
23250 | -if test "${ac_cv_header_wchar_h+set}" = set; then | |
23251 | - echo "$as_me:$LINENO: checking for wchar.h" >&5 | |
23252 | -echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 | |
23253 | -if test "${ac_cv_header_wchar_h+set}" = set; then | |
23254 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23255 | +if test "x$U" != "x"; then | |
23256 | + as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5 | |
23257 | fi | |
23258 | -echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 | |
23259 | -echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 | |
23260 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
23261 | +$as_echo_n "checking for inline... " >&6; } | |
23262 | +if ${ac_cv_c_inline+:} false; then : | |
23263 | + $as_echo_n "(cached) " >&6 | |
23264 | else | |
23265 | - # Is the header compilable? | |
23266 | -echo "$as_me:$LINENO: checking wchar.h usability" >&5 | |
23267 | -echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 | |
23268 | -cat >conftest.$ac_ext <<_ACEOF | |
23269 | -/* confdefs.h. */ | |
23270 | -_ACEOF | |
23271 | -cat confdefs.h >>conftest.$ac_ext | |
23272 | -cat >>conftest.$ac_ext <<_ACEOF | |
23273 | + ac_cv_c_inline=no | |
23274 | +for ac_kw in inline __inline__ __inline; do | |
23275 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23276 | /* end confdefs.h. */ | |
23277 | -$ac_includes_default | |
23278 | -#include <wchar.h> | |
23279 | -_ACEOF | |
23280 | -rm -f conftest.$ac_objext | |
23281 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23282 | - (eval $ac_compile) 2>conftest.er1 | |
23283 | - ac_status=$? | |
23284 | - grep -v '^ *+' conftest.er1 >conftest.err | |
23285 | - rm -f conftest.er1 | |
23286 | - cat conftest.err >&5 | |
23287 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23288 | - (exit $ac_status); } && | |
23289 | - { ac_try='test -z "$ac_c_werror_flag" | |
23290 | - || test ! -s conftest.err' | |
23291 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23292 | - (eval $ac_try) 2>&5 | |
23293 | - ac_status=$? | |
23294 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23295 | - (exit $ac_status); }; } && | |
23296 | - { ac_try='test -s conftest.$ac_objext' | |
23297 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23298 | - (eval $ac_try) 2>&5 | |
23299 | - ac_status=$? | |
23300 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23301 | - (exit $ac_status); }; }; then | |
23302 | - ac_header_compiler=yes | |
23303 | -else | |
23304 | - echo "$as_me: failed program was:" >&5 | |
23305 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
23306 | - | |
23307 | -ac_header_compiler=no | |
23308 | -fi | |
23309 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23310 | -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23311 | -echo "${ECHO_T}$ac_header_compiler" >&6 | |
23312 | +#ifndef __cplusplus | |
23313 | +typedef int foo_t; | |
23314 | +static $ac_kw foo_t static_foo () {return 0; } | |
23315 | +$ac_kw foo_t foo () {return 0; } | |
23316 | +#endif | |
23317 | ||
23318 | -# Is the header present? | |
23319 | -echo "$as_me:$LINENO: checking wchar.h presence" >&5 | |
23320 | -echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 | |
23321 | -cat >conftest.$ac_ext <<_ACEOF | |
23322 | -/* confdefs.h. */ | |
23323 | -_ACEOF | |
23324 | -cat confdefs.h >>conftest.$ac_ext | |
23325 | -cat >>conftest.$ac_ext <<_ACEOF | |
23326 | -/* end confdefs.h. */ | |
23327 | -#include <wchar.h> | |
23328 | _ACEOF | |
23329 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23330 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23331 | - ac_status=$? | |
23332 | - grep -v '^ *+' conftest.er1 >conftest.err | |
23333 | - rm -f conftest.er1 | |
23334 | - cat conftest.err >&5 | |
23335 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23336 | - (exit $ac_status); } >/dev/null; then | |
23337 | - if test -s conftest.err; then | |
23338 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
23339 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
23340 | - else | |
23341 | - ac_cpp_err= | |
23342 | - fi | |
23343 | -else | |
23344 | - ac_cpp_err=yes | |
23345 | +if ac_fn_c_try_compile "$LINENO"; then : | |
23346 | + ac_cv_c_inline=$ac_kw | |
23347 | fi | |
23348 | -if test -z "$ac_cpp_err"; then | |
23349 | - ac_header_preproc=yes | |
23350 | -else | |
23351 | - echo "$as_me: failed program was:" >&5 | |
23352 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
23353 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23354 | + test "$ac_cv_c_inline" != no && break | |
23355 | +done | |
23356 | ||
23357 | - ac_header_preproc=no | |
23358 | fi | |
23359 | -rm -f conftest.err conftest.$ac_ext | |
23360 | -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23361 | -echo "${ECHO_T}$ac_header_preproc" >&6 | |
23362 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
23363 | +$as_echo "$ac_cv_c_inline" >&6; } | |
23364 | ||
23365 | -# So? What about this header? | |
23366 | -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23367 | - yes:no: ) | |
23368 | - { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23369 | -echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23370 | - { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 | |
23371 | -echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} | |
23372 | - ac_header_preproc=yes | |
23373 | - ;; | |
23374 | - no:yes:* ) | |
23375 | - { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 | |
23376 | -echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} | |
23377 | - { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 | |
23378 | -echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} | |
23379 | - { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 | |
23380 | -echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} | |
23381 | - { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23382 | -echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
23383 | - { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 | |
23384 | -echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} | |
23385 | - { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 | |
23386 | -echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} | |
23387 | - ( | |
23388 | - cat <<\_ASBOX | |
23389 | -## ------------------------------------------ ## | |
23390 | -## Report this to the AC_PACKAGE_NAME lists. ## | |
23391 | -## ------------------------------------------ ## | |
23392 | -_ASBOX | |
23393 | - ) | | |
23394 | - sed "s/^/$as_me: WARNING: /" >&2 | |
23395 | +case $ac_cv_c_inline in | |
23396 | + inline | yes) ;; | |
23397 | + *) | |
23398 | + case $ac_cv_c_inline in | |
23399 | + no) ac_val=;; | |
23400 | + *) ac_val=$ac_cv_c_inline;; | |
23401 | + esac | |
23402 | + cat >>confdefs.h <<_ACEOF | |
23403 | +#ifndef __cplusplus | |
23404 | +#define inline $ac_val | |
23405 | +#endif | |
23406 | +_ACEOF | |
23407 | ;; | |
23408 | esac | |
23409 | -echo "$as_me:$LINENO: checking for wchar.h" >&5 | |
23410 | -echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 | |
23411 | -if test "${ac_cv_header_wchar_h+set}" = set; then | |
23412 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23413 | + | |
23414 | + | |
23415 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
23416 | +$as_echo_n "checking for ANSI C header files... " >&6; } | |
23417 | +if ${ac_cv_header_stdc+:} false; then : | |
23418 | + $as_echo_n "(cached) " >&6 | |
23419 | else | |
23420 | - ac_cv_header_wchar_h=$ac_header_preproc | |
23421 | -fi | |
23422 | -echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 | |
23423 | -echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 | |
23424 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23425 | +/* end confdefs.h. */ | |
23426 | +#include <stdlib.h> | |
23427 | +#include <stdarg.h> | |
23428 | +#include <string.h> | |
23429 | +#include <float.h> | |
23430 | + | |
23431 | +int | |
23432 | +main () | |
23433 | +{ | |
23434 | ||
23435 | + ; | |
23436 | + return 0; | |
23437 | +} | |
23438 | +_ACEOF | |
23439 | +if ac_fn_c_try_compile "$LINENO"; then : | |
23440 | + ac_cv_header_stdc=yes | |
23441 | +else | |
23442 | + ac_cv_header_stdc=no | |
23443 | fi | |
23444 | -if test $ac_cv_header_wchar_h = yes; then | |
23445 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23446 | ||
23447 | - ac_have_wchar_h=yes | |
23448 | +if test $ac_cv_header_stdc = yes; then | |
23449 | + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
23450 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23451 | +/* end confdefs.h. */ | |
23452 | +#include <string.h> | |
23453 | ||
23454 | -cat >>confdefs.h <<\_ACEOF | |
23455 | -#define HAVE_WCHAR_H 1 | |
23456 | _ACEOF | |
23457 | +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
23458 | + $EGREP "memchr" >/dev/null 2>&1; then : | |
23459 | ||
23460 | else | |
23461 | - ac_have_wchar_h=no | |
23462 | + ac_cv_header_stdc=no | |
23463 | fi | |
23464 | +rm -f conftest* | |
23465 | ||
23466 | +fi | |
23467 | ||
23468 | +if test $ac_cv_header_stdc = yes; then | |
23469 | + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
23470 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23471 | +/* end confdefs.h. */ | |
23472 | +#include <stdlib.h> | |
23473 | ||
23474 | +_ACEOF | |
23475 | +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
23476 | + $EGREP "free" >/dev/null 2>&1; then : | |
23477 | ||
23478 | +else | |
23479 | + ac_cv_header_stdc=no | |
23480 | +fi | |
23481 | +rm -f conftest* | |
23482 | ||
23483 | +fi | |
23484 | ||
23485 | -for ac_func in mbtowc wcwidth mbrtowc mbsinit | |
23486 | -do | |
23487 | -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23488 | -echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23489 | -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23490 | -if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23491 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23492 | +if test $ac_cv_header_stdc = yes; then | |
23493 | + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
23494 | + if test "$cross_compiling" = yes; then : | |
23495 | + : | |
23496 | else | |
23497 | - cat >conftest.$ac_ext <<_ACEOF | |
23498 | -/* confdefs.h. */ | |
23499 | -_ACEOF | |
23500 | -cat confdefs.h >>conftest.$ac_ext | |
23501 | -cat >>conftest.$ac_ext <<_ACEOF | |
23502 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23503 | /* end confdefs.h. */ | |
23504 | -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23505 | - For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23506 | -#define $ac_func innocuous_$ac_func | |
23507 | - | |
23508 | -/* System header to define __stub macros and hopefully few prototypes, | |
23509 | - which can conflict with char $ac_func (); below. | |
23510 | - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23511 | - <limits.h> exists even on freestanding compilers. */ | |
23512 | - | |
23513 | -#ifdef __STDC__ | |
23514 | -# include <limits.h> | |
23515 | -#else | |
23516 | -# include <assert.h> | |
23517 | -#endif | |
23518 | - | |
23519 | -#undef $ac_func | |
23520 | - | |
23521 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
23522 | -#ifdef __cplusplus | |
23523 | -extern "C" | |
23524 | -{ | |
23525 | -#endif | |
23526 | -/* We use char because int might match the return type of a gcc2 | |
23527 | - builtin and then its argument prototype would still apply. */ | |
23528 | -char $ac_func (); | |
23529 | -/* The GNU C library defines this for functions which it implements | |
23530 | - to always fail with ENOSYS. Some functions are actually named | |
23531 | - something starting with __ and the normal name is an alias. */ | |
23532 | -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23533 | -choke me | |
23534 | +#include <ctype.h> | |
23535 | +#include <stdlib.h> | |
23536 | +#if ((' ' & 0x0FF) == 0x020) | |
23537 | +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
23538 | +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
23539 | #else | |
23540 | -char (*f) () = $ac_func; | |
23541 | -#endif | |
23542 | -#ifdef __cplusplus | |
23543 | -} | |
23544 | +# define ISLOWER(c) \ | |
23545 | + (('a' <= (c) && (c) <= 'i') \ | |
23546 | + || ('j' <= (c) && (c) <= 'r') \ | |
23547 | + || ('s' <= (c) && (c) <= 'z')) | |
23548 | +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
23549 | #endif | |
23550 | ||
23551 | +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
23552 | int | |
23553 | main () | |
23554 | { | |
23555 | -return f != $ac_func; | |
23556 | - ; | |
23557 | + int i; | |
23558 | + for (i = 0; i < 256; i++) | |
23559 | + if (XOR (islower (i), ISLOWER (i)) | |
23560 | + || toupper (i) != TOUPPER (i)) | |
23561 | + return 2; | |
23562 | return 0; | |
23563 | } | |
23564 | _ACEOF | |
23565 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
23566 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23567 | - (eval $ac_link) 2>conftest.er1 | |
23568 | - ac_status=$? | |
23569 | - grep -v '^ *+' conftest.er1 >conftest.err | |
23570 | - rm -f conftest.er1 | |
23571 | - cat conftest.err >&5 | |
23572 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23573 | - (exit $ac_status); } && | |
23574 | - { ac_try='test -z "$ac_c_werror_flag" | |
23575 | - || test ! -s conftest.err' | |
23576 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23577 | - (eval $ac_try) 2>&5 | |
23578 | - ac_status=$? | |
23579 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23580 | - (exit $ac_status); }; } && | |
23581 | - { ac_try='test -s conftest$ac_exeext' | |
23582 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23583 | - (eval $ac_try) 2>&5 | |
23584 | - ac_status=$? | |
23585 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23586 | - (exit $ac_status); }; }; then | |
23587 | - eval "$as_ac_var=yes" | |
23588 | +if ac_fn_c_try_run "$LINENO"; then : | |
23589 | + | |
23590 | else | |
23591 | - echo "$as_me: failed program was:" >&5 | |
23592 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
23593 | + ac_cv_header_stdc=no | |
23594 | +fi | |
23595 | +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
23596 | + conftest.$ac_objext conftest.beam conftest.$ac_ext | |
23597 | +fi | |
23598 | ||
23599 | -eval "$as_ac_var=no" | |
23600 | fi | |
23601 | -rm -f conftest.err conftest.$ac_objext \ | |
23602 | - conftest$ac_exeext conftest.$ac_ext | |
23603 | fi | |
23604 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23605 | -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23606 | -if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23607 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
23608 | +$as_echo "$ac_cv_header_stdc" >&6; } | |
23609 | +if test $ac_cv_header_stdc = yes; then | |
23610 | + | |
23611 | +$as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
23612 | + | |
23613 | +fi | |
23614 | + | |
23615 | +for ac_header in unistd.h locale.h sys/ioctl.h iconv.h | |
23616 | +do : | |
23617 | + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23618 | +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
23619 | +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
23620 | cat >>confdefs.h <<_ACEOF | |
23621 | -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23622 | +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
23623 | _ACEOF | |
23624 | ||
23625 | -else | |
23626 | - ac_widec_funcs=no | |
23627 | fi | |
23628 | + | |
23629 | done | |
23630 | ||
23631 | -echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5 | |
23632 | -echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6 | |
23633 | -if test "${ac_cv_have_decl_wcwidth+set}" = set; then | |
23634 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23635 | +ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" | |
23636 | +if test "x$ac_cv_header_stdarg_h" = xyes; then : | |
23637 | + | |
23638 | +$as_echo "#define HAVE_STDARG_H 1" >>confdefs.h | |
23639 | + | |
23640 | else | |
23641 | - cat >conftest.$ac_ext <<_ACEOF | |
23642 | -/* confdefs.h. */ | |
23643 | -_ACEOF | |
23644 | -cat confdefs.h >>conftest.$ac_ext | |
23645 | -cat >>conftest.$ac_ext <<_ACEOF | |
23646 | + as_fn_error $? "*** stdarg.h is missing on your system ***" "$LINENO" 5 | |
23647 | +fi | |
23648 | + | |
23649 | + | |
23650 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5 | |
23651 | +$as_echo_n "checking for working strcoll... " >&6; } | |
23652 | +if ${ac_cv_func_strcoll_works+:} false; then : | |
23653 | + $as_echo_n "(cached) " >&6 | |
23654 | +else | |
23655 | + if test "$cross_compiling" = yes; then : | |
23656 | + ac_cv_func_strcoll_works=no | |
23657 | +else | |
23658 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23659 | /* end confdefs.h. */ | |
23660 | $ac_includes_default | |
23661 | int | |
23662 | main () | |
23663 | { | |
23664 | -#ifndef wcwidth | |
23665 | - char *p = (char *) wcwidth; | |
23666 | -#endif | |
23667 | - | |
23668 | +return (strcoll ("abc", "def") >= 0 || | |
23669 | + strcoll ("ABC", "DEF") >= 0 || | |
23670 | + strcoll ("123", "456") >= 0) | |
23671 | ; | |
23672 | return 0; | |
23673 | } | |
23674 | _ACEOF | |
23675 | -rm -f conftest.$ac_objext | |
23676 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23677 | - (eval $ac_compile) 2>conftest.er1 | |
23678 | - ac_status=$? | |
23679 | - grep -v '^ *+' conftest.er1 >conftest.err | |
23680 | - rm -f conftest.er1 | |
23681 | - cat conftest.err >&5 | |
23682 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23683 | - (exit $ac_status); } && | |
23684 | - { ac_try='test -z "$ac_c_werror_flag" | |
23685 | - || test ! -s conftest.err' | |
23686 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23687 | - (eval $ac_try) 2>&5 | |
23688 | - ac_status=$? | |
23689 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23690 | - (exit $ac_status); }; } && | |
23691 | - { ac_try='test -s conftest.$ac_objext' | |
23692 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23693 | - (eval $ac_try) 2>&5 | |
23694 | - ac_status=$? | |
23695 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23696 | - (exit $ac_status); }; }; then | |
23697 | - ac_cv_have_decl_wcwidth=yes | |
23698 | +if ac_fn_c_try_run "$LINENO"; then : | |
23699 | + ac_cv_func_strcoll_works=yes | |
23700 | else | |
23701 | - echo "$as_me: failed program was:" >&5 | |
23702 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
23703 | - | |
23704 | -ac_cv_have_decl_wcwidth=no | |
23705 | + ac_cv_func_strcoll_works=no | |
23706 | fi | |
23707 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23708 | +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
23709 | + conftest.$ac_objext conftest.beam conftest.$ac_ext | |
23710 | fi | |
23711 | -echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5 | |
23712 | -echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6 | |
23713 | -if test $ac_cv_have_decl_wcwidth = yes; then | |
23714 | ||
23715 | -cat >>confdefs.h <<_ACEOF | |
23716 | -#define HAVE_DECL_WCWIDTH 1 | |
23717 | -_ACEOF | |
23718 | +fi | |
23719 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5 | |
23720 | +$as_echo "$ac_cv_func_strcoll_works" >&6; } | |
23721 | +if test $ac_cv_func_strcoll_works = yes; then | |
23722 | ||
23723 | +$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h | |
23724 | ||
23725 | -else | |
23726 | +fi | |
23727 | + | |
23728 | +for ac_func in setlocale | |
23729 | +do : | |
23730 | + ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" | |
23731 | +if test "x$ac_cv_func_setlocale" = xyes; then : | |
23732 | cat >>confdefs.h <<_ACEOF | |
23733 | -#define HAVE_DECL_WCWIDTH 0 | |
23734 | +#define HAVE_SETLOCALE 1 | |
23735 | _ACEOF | |
23736 | ||
23737 | - | |
23738 | fi | |
23739 | +done | |
23740 | + | |
23741 | + | |
23742 | +ac_widec_funcs=yes | |
23743 | +ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | |
23744 | +if test "x$ac_cv_header_wchar_h" = xyes; then : | |
23745 | + | |
23746 | + ac_have_wchar_h=yes | |
23747 | ||
23748 | +$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | |
23749 | ||
23750 | -echo "$as_me:$LINENO: checking for wchar_t" >&5 | |
23751 | -echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
23752 | -if test "${ac_cv_type_wchar_t+set}" = set; then | |
23753 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23754 | else | |
23755 | - cat >conftest.$ac_ext <<_ACEOF | |
23756 | -/* confdefs.h. */ | |
23757 | -_ACEOF | |
23758 | -cat confdefs.h >>conftest.$ac_ext | |
23759 | -cat >>conftest.$ac_ext <<_ACEOF | |
23760 | -/* end confdefs.h. */ | |
23761 | -$ac_includes_default | |
23762 | -int | |
23763 | -main () | |
23764 | -{ | |
23765 | -if ((wchar_t *) 0) | |
23766 | - return 0; | |
23767 | -if (sizeof (wchar_t)) | |
23768 | - return 0; | |
23769 | - ; | |
23770 | - return 0; | |
23771 | -} | |
23772 | + ac_have_wchar_h=no | |
23773 | +fi | |
23774 | + | |
23775 | + | |
23776 | +for ac_func in mbtowc wcwidth mbrtowc mbsinit | |
23777 | +do : | |
23778 | + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23779 | +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
23780 | +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
23781 | + cat >>confdefs.h <<_ACEOF | |
23782 | +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23783 | _ACEOF | |
23784 | -rm -f conftest.$ac_objext | |
23785 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23786 | - (eval $ac_compile) 2>conftest.er1 | |
23787 | - ac_status=$? | |
23788 | - grep -v '^ *+' conftest.er1 >conftest.err | |
23789 | - rm -f conftest.er1 | |
23790 | - cat conftest.err >&5 | |
23791 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23792 | - (exit $ac_status); } && | |
23793 | - { ac_try='test -z "$ac_c_werror_flag" | |
23794 | - || test ! -s conftest.err' | |
23795 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23796 | - (eval $ac_try) 2>&5 | |
23797 | - ac_status=$? | |
23798 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23799 | - (exit $ac_status); }; } && | |
23800 | - { ac_try='test -s conftest.$ac_objext' | |
23801 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23802 | - (eval $ac_try) 2>&5 | |
23803 | - ac_status=$? | |
23804 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23805 | - (exit $ac_status); }; }; then | |
23806 | - ac_cv_type_wchar_t=yes | |
23807 | -else | |
23808 | - echo "$as_me: failed program was:" >&5 | |
23809 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
23810 | ||
23811 | -ac_cv_type_wchar_t=no | |
23812 | +else | |
23813 | + ac_widec_funcs=no | |
23814 | fi | |
23815 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23816 | +done | |
23817 | + | |
23818 | +ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "$ac_includes_default" | |
23819 | +if test "x$ac_cv_have_decl_wcwidth" = xyes; then : | |
23820 | + ac_have_decl=1 | |
23821 | +else | |
23822 | + ac_have_decl=0 | |
23823 | fi | |
23824 | -echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
23825 | -echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
23826 | -if test $ac_cv_type_wchar_t = yes; then | |
23827 | - : | |
23828 | + | |
23829 | +cat >>confdefs.h <<_ACEOF | |
23830 | +#define HAVE_DECL_WCWIDTH $ac_have_decl | |
23831 | +_ACEOF | |
23832 | + | |
23833 | +ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default" | |
23834 | +if test "x$ac_cv_type_wchar_t" = xyes; then : | |
23835 | + | |
23836 | else | |
23837 | ac_widec_funcs=no | |
23838 | fi | |
23839 | @@ -12560,231 +7415,65 @@ | |
23840 | ||
23841 | abook_cv_curses=/usr | |
23842 | ||
23843 | -# Check whether --with-curses or --without-curses was given. | |
23844 | -if test "${with_curses+set}" = set; then | |
23845 | - withval="$with_curses" | |
23846 | - if test $withval != yes; then | |
23847 | +# Check whether --with-curses was given. | |
23848 | +if test "${with_curses+set}" = set; then : | |
23849 | + withval=$with_curses; if test $withval != yes; then | |
23850 | abook_cv_curses=$withval | |
23851 | fi | |
23852 | if test x$abook_cv_curses != x/usr; then | |
23853 | LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS" | |
23854 | CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include" | |
23855 | fi | |
23856 | -fi; | |
23857 | +fi | |
23858 | + | |
23859 | ||
23860 | -echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5 | |
23861 | -echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6 | |
23862 | -if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then | |
23863 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23864 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5 | |
23865 | +$as_echo_n "checking for initscr in -lncursesw... " >&6; } | |
23866 | +if ${ac_cv_lib_ncursesw_initscr+:} false; then : | |
23867 | + $as_echo_n "(cached) " >&6 | |
23868 | else | |
23869 | ac_check_lib_save_LIBS=$LIBS | |
23870 | LIBS="-lncursesw $LIBS" | |
23871 | -cat >conftest.$ac_ext <<_ACEOF | |
23872 | -/* confdefs.h. */ | |
23873 | -_ACEOF | |
23874 | -cat confdefs.h >>conftest.$ac_ext | |
23875 | -cat >>conftest.$ac_ext <<_ACEOF | |
23876 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23877 | /* end confdefs.h. */ | |
23878 | ||
23879 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
23880 | +/* Override any GCC internal prototype to avoid an error. | |
23881 | + Use char because int might match the return type of a GCC | |
23882 | + builtin and then its argument prototype would still apply. */ | |
23883 | #ifdef __cplusplus | |
23884 | extern "C" | |
23885 | #endif | |
23886 | -/* We use char because int might match the return type of a gcc2 | |
23887 | - builtin and then its argument prototype would still apply. */ | |
23888 | char initscr (); | |
23889 | int | |
23890 | main () | |
23891 | { | |
23892 | -initscr (); | |
23893 | +return initscr (); | |
23894 | ; | |
23895 | return 0; | |
23896 | } | |
23897 | _ACEOF | |
23898 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
23899 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23900 | - (eval $ac_link) 2>conftest.er1 | |
23901 | - ac_status=$? | |
23902 | - grep -v '^ *+' conftest.er1 >conftest.err | |
23903 | - rm -f conftest.er1 | |
23904 | - cat conftest.err >&5 | |
23905 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23906 | - (exit $ac_status); } && | |
23907 | - { ac_try='test -z "$ac_c_werror_flag" | |
23908 | - || test ! -s conftest.err' | |
23909 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23910 | - (eval $ac_try) 2>&5 | |
23911 | - ac_status=$? | |
23912 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23913 | - (exit $ac_status); }; } && | |
23914 | - { ac_try='test -s conftest$ac_exeext' | |
23915 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23916 | - (eval $ac_try) 2>&5 | |
23917 | - ac_status=$? | |
23918 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23919 | - (exit $ac_status); }; }; then | |
23920 | +if ac_fn_c_try_link "$LINENO"; then : | |
23921 | ac_cv_lib_ncursesw_initscr=yes | |
23922 | else | |
23923 | - echo "$as_me: failed program was:" >&5 | |
23924 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
23925 | - | |
23926 | -ac_cv_lib_ncursesw_initscr=no | |
23927 | + ac_cv_lib_ncursesw_initscr=no | |
23928 | fi | |
23929 | -rm -f conftest.err conftest.$ac_objext \ | |
23930 | - conftest$ac_exeext conftest.$ac_ext | |
23931 | +rm -f core conftest.err conftest.$ac_objext \ | |
23932 | + conftest$ac_exeext conftest.$ac_ext | |
23933 | LIBS=$ac_check_lib_save_LIBS | |
23934 | fi | |
23935 | -echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5 | |
23936 | -echo "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6 | |
23937 | -if test $ac_cv_lib_ncursesw_initscr = yes; then | |
23938 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5 | |
23939 | +$as_echo "$ac_cv_lib_ncursesw_initscr" >&6; } | |
23940 | +if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then : | |
23941 | LIBS="$LIBS -lncursesw" | |
23942 | if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then | |
23943 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | |
23944 | fi | |
23945 | - | |
23946 | -for ac_header in ncurses.h | |
23947 | -do | |
23948 | -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23949 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23950 | - echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23951 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23952 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23953 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23954 | -fi | |
23955 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23956 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23957 | -else | |
23958 | - # Is the header compilable? | |
23959 | -echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23960 | -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
23961 | -cat >conftest.$ac_ext <<_ACEOF | |
23962 | -/* confdefs.h. */ | |
23963 | -_ACEOF | |
23964 | -cat confdefs.h >>conftest.$ac_ext | |
23965 | -cat >>conftest.$ac_ext <<_ACEOF | |
23966 | -/* end confdefs.h. */ | |
23967 | -$ac_includes_default | |
23968 | -#include <$ac_header> | |
23969 | -_ACEOF | |
23970 | -rm -f conftest.$ac_objext | |
23971 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23972 | - (eval $ac_compile) 2>conftest.er1 | |
23973 | - ac_status=$? | |
23974 | - grep -v '^ *+' conftest.er1 >conftest.err | |
23975 | - rm -f conftest.er1 | |
23976 | - cat conftest.err >&5 | |
23977 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23978 | - (exit $ac_status); } && | |
23979 | - { ac_try='test -z "$ac_c_werror_flag" | |
23980 | - || test ! -s conftest.err' | |
23981 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23982 | - (eval $ac_try) 2>&5 | |
23983 | - ac_status=$? | |
23984 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23985 | - (exit $ac_status); }; } && | |
23986 | - { ac_try='test -s conftest.$ac_objext' | |
23987 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23988 | - (eval $ac_try) 2>&5 | |
23989 | - ac_status=$? | |
23990 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23991 | - (exit $ac_status); }; }; then | |
23992 | - ac_header_compiler=yes | |
23993 | -else | |
23994 | - echo "$as_me: failed program was:" >&5 | |
23995 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
23996 | - | |
23997 | -ac_header_compiler=no | |
23998 | -fi | |
23999 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24000 | -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24001 | -echo "${ECHO_T}$ac_header_compiler" >&6 | |
24002 | - | |
24003 | -# Is the header present? | |
24004 | -echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24005 | -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
24006 | -cat >conftest.$ac_ext <<_ACEOF | |
24007 | -/* confdefs.h. */ | |
24008 | -_ACEOF | |
24009 | -cat confdefs.h >>conftest.$ac_ext | |
24010 | -cat >>conftest.$ac_ext <<_ACEOF | |
24011 | -/* end confdefs.h. */ | |
24012 | -#include <$ac_header> | |
24013 | -_ACEOF | |
24014 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24015 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24016 | - ac_status=$? | |
24017 | - grep -v '^ *+' conftest.er1 >conftest.err | |
24018 | - rm -f conftest.er1 | |
24019 | - cat conftest.err >&5 | |
24020 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24021 | - (exit $ac_status); } >/dev/null; then | |
24022 | - if test -s conftest.err; then | |
24023 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
24024 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
24025 | - else | |
24026 | - ac_cpp_err= | |
24027 | - fi | |
24028 | -else | |
24029 | - ac_cpp_err=yes | |
24030 | -fi | |
24031 | -if test -z "$ac_cpp_err"; then | |
24032 | - ac_header_preproc=yes | |
24033 | -else | |
24034 | - echo "$as_me: failed program was:" >&5 | |
24035 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
24036 | - | |
24037 | - ac_header_preproc=no | |
24038 | -fi | |
24039 | -rm -f conftest.err conftest.$ac_ext | |
24040 | -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24041 | -echo "${ECHO_T}$ac_header_preproc" >&6 | |
24042 | - | |
24043 | -# So? What about this header? | |
24044 | -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24045 | - yes:no: ) | |
24046 | - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24047 | -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24048 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
24049 | -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24050 | - ac_header_preproc=yes | |
24051 | - ;; | |
24052 | - no:yes:* ) | |
24053 | - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
24054 | -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
24055 | - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
24056 | -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24057 | - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24058 | -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24059 | - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24060 | -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
24061 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
24062 | -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
24063 | - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
24064 | -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
24065 | - ( | |
24066 | - cat <<\_ASBOX | |
24067 | -## ------------------------------------------ ## | |
24068 | -## Report this to the AC_PACKAGE_NAME lists. ## | |
24069 | -## ------------------------------------------ ## | |
24070 | -_ASBOX | |
24071 | - ) | | |
24072 | - sed "s/^/$as_me: WARNING: /" >&2 | |
24073 | - ;; | |
24074 | -esac | |
24075 | -echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24076 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24077 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24078 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24079 | -else | |
24080 | - eval "$as_ac_Header=\$ac_header_preproc" | |
24081 | -fi | |
24082 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24083 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24084 | - | |
24085 | -fi | |
24086 | -if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
24087 | + for ac_header in ncurses.h | |
24088 | +do : | |
24089 | + ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" | |
24090 | +if test "x$ac_cv_header_ncurses_h" = xyes; then : | |
24091 | cat >>confdefs.h <<_ACEOF | |
24092 | -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
24093 | +#define HAVE_NCURSES_H 1 | |
24094 | _ACEOF | |
24095 | ||
24096 | fi | |
24097 | @@ -12794,219 +7483,53 @@ | |
24098 | else | |
24099 | ||
24100 | ac_widec_possible=no | |
24101 | - echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5 | |
24102 | -echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6 | |
24103 | -if test "${ac_cv_lib_ncurses_initscr+set}" = set; then | |
24104 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24105 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 | |
24106 | +$as_echo_n "checking for initscr in -lncurses... " >&6; } | |
24107 | +if ${ac_cv_lib_ncurses_initscr+:} false; then : | |
24108 | + $as_echo_n "(cached) " >&6 | |
24109 | else | |
24110 | ac_check_lib_save_LIBS=$LIBS | |
24111 | LIBS="-lncurses $LIBS" | |
24112 | -cat >conftest.$ac_ext <<_ACEOF | |
24113 | -/* confdefs.h. */ | |
24114 | -_ACEOF | |
24115 | -cat confdefs.h >>conftest.$ac_ext | |
24116 | -cat >>conftest.$ac_ext <<_ACEOF | |
24117 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24118 | /* end confdefs.h. */ | |
24119 | ||
24120 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
24121 | +/* Override any GCC internal prototype to avoid an error. | |
24122 | + Use char because int might match the return type of a GCC | |
24123 | + builtin and then its argument prototype would still apply. */ | |
24124 | #ifdef __cplusplus | |
24125 | extern "C" | |
24126 | #endif | |
24127 | -/* We use char because int might match the return type of a gcc2 | |
24128 | - builtin and then its argument prototype would still apply. */ | |
24129 | char initscr (); | |
24130 | int | |
24131 | main () | |
24132 | { | |
24133 | -initscr (); | |
24134 | +return initscr (); | |
24135 | ; | |
24136 | return 0; | |
24137 | } | |
24138 | _ACEOF | |
24139 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
24140 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24141 | - (eval $ac_link) 2>conftest.er1 | |
24142 | - ac_status=$? | |
24143 | - grep -v '^ *+' conftest.er1 >conftest.err | |
24144 | - rm -f conftest.er1 | |
24145 | - cat conftest.err >&5 | |
24146 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24147 | - (exit $ac_status); } && | |
24148 | - { ac_try='test -z "$ac_c_werror_flag" | |
24149 | - || test ! -s conftest.err' | |
24150 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24151 | - (eval $ac_try) 2>&5 | |
24152 | - ac_status=$? | |
24153 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24154 | - (exit $ac_status); }; } && | |
24155 | - { ac_try='test -s conftest$ac_exeext' | |
24156 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24157 | - (eval $ac_try) 2>&5 | |
24158 | - ac_status=$? | |
24159 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24160 | - (exit $ac_status); }; }; then | |
24161 | +if ac_fn_c_try_link "$LINENO"; then : | |
24162 | ac_cv_lib_ncurses_initscr=yes | |
24163 | else | |
24164 | - echo "$as_me: failed program was:" >&5 | |
24165 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
24166 | - | |
24167 | -ac_cv_lib_ncurses_initscr=no | |
24168 | + ac_cv_lib_ncurses_initscr=no | |
24169 | fi | |
24170 | -rm -f conftest.err conftest.$ac_objext \ | |
24171 | - conftest$ac_exeext conftest.$ac_ext | |
24172 | +rm -f core conftest.err conftest.$ac_objext \ | |
24173 | + conftest$ac_exeext conftest.$ac_ext | |
24174 | LIBS=$ac_check_lib_save_LIBS | |
24175 | fi | |
24176 | -echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5 | |
24177 | -echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6 | |
24178 | -if test $ac_cv_lib_ncurses_initscr = yes; then | |
24179 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5 | |
24180 | +$as_echo "$ac_cv_lib_ncurses_initscr" >&6; } | |
24181 | +if test "x$ac_cv_lib_ncurses_initscr" = xyes; then : | |
24182 | LIBS="$LIBS -lncurses" | |
24183 | if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then | |
24184 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses" | |
24185 | fi | |
24186 | - | |
24187 | -for ac_header in ncurses.h | |
24188 | -do | |
24189 | -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
24190 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24191 | - echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24192 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24193 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24194 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24195 | -fi | |
24196 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24197 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24198 | -else | |
24199 | - # Is the header compilable? | |
24200 | -echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
24201 | -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
24202 | -cat >conftest.$ac_ext <<_ACEOF | |
24203 | -/* confdefs.h. */ | |
24204 | -_ACEOF | |
24205 | -cat confdefs.h >>conftest.$ac_ext | |
24206 | -cat >>conftest.$ac_ext <<_ACEOF | |
24207 | -/* end confdefs.h. */ | |
24208 | -$ac_includes_default | |
24209 | -#include <$ac_header> | |
24210 | -_ACEOF | |
24211 | -rm -f conftest.$ac_objext | |
24212 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24213 | - (eval $ac_compile) 2>conftest.er1 | |
24214 | - ac_status=$? | |
24215 | - grep -v '^ *+' conftest.er1 >conftest.err | |
24216 | - rm -f conftest.er1 | |
24217 | - cat conftest.err >&5 | |
24218 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24219 | - (exit $ac_status); } && | |
24220 | - { ac_try='test -z "$ac_c_werror_flag" | |
24221 | - || test ! -s conftest.err' | |
24222 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24223 | - (eval $ac_try) 2>&5 | |
24224 | - ac_status=$? | |
24225 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24226 | - (exit $ac_status); }; } && | |
24227 | - { ac_try='test -s conftest.$ac_objext' | |
24228 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24229 | - (eval $ac_try) 2>&5 | |
24230 | - ac_status=$? | |
24231 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24232 | - (exit $ac_status); }; }; then | |
24233 | - ac_header_compiler=yes | |
24234 | -else | |
24235 | - echo "$as_me: failed program was:" >&5 | |
24236 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
24237 | - | |
24238 | -ac_header_compiler=no | |
24239 | -fi | |
24240 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24241 | -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24242 | -echo "${ECHO_T}$ac_header_compiler" >&6 | |
24243 | - | |
24244 | -# Is the header present? | |
24245 | -echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24246 | -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
24247 | -cat >conftest.$ac_ext <<_ACEOF | |
24248 | -/* confdefs.h. */ | |
24249 | -_ACEOF | |
24250 | -cat confdefs.h >>conftest.$ac_ext | |
24251 | -cat >>conftest.$ac_ext <<_ACEOF | |
24252 | -/* end confdefs.h. */ | |
24253 | -#include <$ac_header> | |
24254 | -_ACEOF | |
24255 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24256 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24257 | - ac_status=$? | |
24258 | - grep -v '^ *+' conftest.er1 >conftest.err | |
24259 | - rm -f conftest.er1 | |
24260 | - cat conftest.err >&5 | |
24261 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24262 | - (exit $ac_status); } >/dev/null; then | |
24263 | - if test -s conftest.err; then | |
24264 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
24265 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
24266 | - else | |
24267 | - ac_cpp_err= | |
24268 | - fi | |
24269 | -else | |
24270 | - ac_cpp_err=yes | |
24271 | -fi | |
24272 | -if test -z "$ac_cpp_err"; then | |
24273 | - ac_header_preproc=yes | |
24274 | -else | |
24275 | - echo "$as_me: failed program was:" >&5 | |
24276 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
24277 | - | |
24278 | - ac_header_preproc=no | |
24279 | -fi | |
24280 | -rm -f conftest.err conftest.$ac_ext | |
24281 | -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24282 | -echo "${ECHO_T}$ac_header_preproc" >&6 | |
24283 | - | |
24284 | -# So? What about this header? | |
24285 | -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24286 | - yes:no: ) | |
24287 | - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24288 | -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24289 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
24290 | -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24291 | - ac_header_preproc=yes | |
24292 | - ;; | |
24293 | - no:yes:* ) | |
24294 | - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
24295 | -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
24296 | - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
24297 | -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24298 | - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24299 | -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24300 | - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24301 | -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
24302 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
24303 | -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
24304 | - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
24305 | -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
24306 | - ( | |
24307 | - cat <<\_ASBOX | |
24308 | -## ------------------------------------------ ## | |
24309 | -## Report this to the AC_PACKAGE_NAME lists. ## | |
24310 | -## ------------------------------------------ ## | |
24311 | -_ASBOX | |
24312 | - ) | | |
24313 | - sed "s/^/$as_me: WARNING: /" >&2 | |
24314 | - ;; | |
24315 | -esac | |
24316 | -echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24317 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24318 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24319 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24320 | -else | |
24321 | - eval "$as_ac_Header=\$ac_header_preproc" | |
24322 | -fi | |
24323 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24324 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24325 | - | |
24326 | -fi | |
24327 | -if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
24328 | + for ac_header in ncurses.h | |
24329 | +do : | |
24330 | + ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" | |
24331 | +if test "x$ac_cv_header_ncurses_h" = xyes; then : | |
24332 | cat >>confdefs.h <<_ACEOF | |
24333 | -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
24334 | +#define HAVE_NCURSES_H 1 | |
24335 | _ACEOF | |
24336 | ||
24337 | fi | |
24338 | @@ -13015,237 +7538,92 @@ | |
24339 | ||
24340 | else | |
24341 | ||
24342 | -echo "$as_me:$LINENO: checking for initscr" >&5 | |
24343 | -echo $ECHO_N "checking for initscr... $ECHO_C" >&6 | |
24344 | -if test "${ac_cv_func_initscr+set}" = set; then | |
24345 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24346 | -else | |
24347 | - cat >conftest.$ac_ext <<_ACEOF | |
24348 | -/* confdefs.h. */ | |
24349 | -_ACEOF | |
24350 | -cat confdefs.h >>conftest.$ac_ext | |
24351 | -cat >>conftest.$ac_ext <<_ACEOF | |
24352 | -/* end confdefs.h. */ | |
24353 | -/* Define initscr to an innocuous variant, in case <limits.h> declares initscr. | |
24354 | - For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24355 | -#define initscr innocuous_initscr | |
24356 | - | |
24357 | -/* System header to define __stub macros and hopefully few prototypes, | |
24358 | - which can conflict with char initscr (); below. | |
24359 | - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24360 | - <limits.h> exists even on freestanding compilers. */ | |
24361 | - | |
24362 | -#ifdef __STDC__ | |
24363 | -# include <limits.h> | |
24364 | -#else | |
24365 | -# include <assert.h> | |
24366 | -#endif | |
24367 | - | |
24368 | -#undef initscr | |
24369 | - | |
24370 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
24371 | -#ifdef __cplusplus | |
24372 | -extern "C" | |
24373 | -{ | |
24374 | -#endif | |
24375 | -/* We use char because int might match the return type of a gcc2 | |
24376 | - builtin and then its argument prototype would still apply. */ | |
24377 | -char initscr (); | |
24378 | -/* The GNU C library defines this for functions which it implements | |
24379 | - to always fail with ENOSYS. Some functions are actually named | |
24380 | - something starting with __ and the normal name is an alias. */ | |
24381 | -#if defined (__stub_initscr) || defined (__stub___initscr) | |
24382 | -choke me | |
24383 | -#else | |
24384 | -char (*f) () = initscr; | |
24385 | -#endif | |
24386 | -#ifdef __cplusplus | |
24387 | -} | |
24388 | -#endif | |
24389 | - | |
24390 | -int | |
24391 | -main () | |
24392 | -{ | |
24393 | -return f != initscr; | |
24394 | - ; | |
24395 | - return 0; | |
24396 | -} | |
24397 | -_ACEOF | |
24398 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
24399 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24400 | - (eval $ac_link) 2>conftest.er1 | |
24401 | - ac_status=$? | |
24402 | - grep -v '^ *+' conftest.er1 >conftest.err | |
24403 | - rm -f conftest.er1 | |
24404 | - cat conftest.err >&5 | |
24405 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24406 | - (exit $ac_status); } && | |
24407 | - { ac_try='test -z "$ac_c_werror_flag" | |
24408 | - || test ! -s conftest.err' | |
24409 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24410 | - (eval $ac_try) 2>&5 | |
24411 | - ac_status=$? | |
24412 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24413 | - (exit $ac_status); }; } && | |
24414 | - { ac_try='test -s conftest$ac_exeext' | |
24415 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24416 | - (eval $ac_try) 2>&5 | |
24417 | - ac_status=$? | |
24418 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24419 | - (exit $ac_status); }; }; then | |
24420 | - ac_cv_func_initscr=yes | |
24421 | -else | |
24422 | - echo "$as_me: failed program was:" >&5 | |
24423 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
24424 | +ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr" | |
24425 | +if test "x$ac_cv_func_initscr" = xyes; then : | |
24426 | ||
24427 | -ac_cv_func_initscr=no | |
24428 | -fi | |
24429 | -rm -f conftest.err conftest.$ac_objext \ | |
24430 | - conftest$ac_exeext conftest.$ac_ext | |
24431 | -fi | |
24432 | -echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5 | |
24433 | -echo "${ECHO_T}$ac_cv_func_initscr" >&6 | |
24434 | -if test $ac_cv_func_initscr = yes; then | |
24435 | - : | |
24436 | else | |
24437 | ||
24438 | case $host_os in #(vi | |
24439 | freebsd*) #(vi | |
24440 | - echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5 | |
24441 | -echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6 | |
24442 | -if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then | |
24443 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24444 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5 | |
24445 | +$as_echo_n "checking for tgoto in -lmytinfo... " >&6; } | |
24446 | +if ${ac_cv_lib_mytinfo_tgoto+:} false; then : | |
24447 | + $as_echo_n "(cached) " >&6 | |
24448 | else | |
24449 | ac_check_lib_save_LIBS=$LIBS | |
24450 | LIBS="-lmytinfo $LIBS" | |
24451 | -cat >conftest.$ac_ext <<_ACEOF | |
24452 | -/* confdefs.h. */ | |
24453 | -_ACEOF | |
24454 | -cat confdefs.h >>conftest.$ac_ext | |
24455 | -cat >>conftest.$ac_ext <<_ACEOF | |
24456 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24457 | /* end confdefs.h. */ | |
24458 | ||
24459 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
24460 | +/* Override any GCC internal prototype to avoid an error. | |
24461 | + Use char because int might match the return type of a GCC | |
24462 | + builtin and then its argument prototype would still apply. */ | |
24463 | #ifdef __cplusplus | |
24464 | extern "C" | |
24465 | #endif | |
24466 | -/* We use char because int might match the return type of a gcc2 | |
24467 | - builtin and then its argument prototype would still apply. */ | |
24468 | char tgoto (); | |
24469 | int | |
24470 | main () | |
24471 | { | |
24472 | -tgoto (); | |
24473 | +return tgoto (); | |
24474 | ; | |
24475 | return 0; | |
24476 | } | |
24477 | _ACEOF | |
24478 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
24479 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24480 | - (eval $ac_link) 2>conftest.er1 | |
24481 | - ac_status=$? | |
24482 | - grep -v '^ *+' conftest.er1 >conftest.err | |
24483 | - rm -f conftest.er1 | |
24484 | - cat conftest.err >&5 | |
24485 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24486 | - (exit $ac_status); } && | |
24487 | - { ac_try='test -z "$ac_c_werror_flag" | |
24488 | - || test ! -s conftest.err' | |
24489 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24490 | - (eval $ac_try) 2>&5 | |
24491 | - ac_status=$? | |
24492 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24493 | - (exit $ac_status); }; } && | |
24494 | - { ac_try='test -s conftest$ac_exeext' | |
24495 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24496 | - (eval $ac_try) 2>&5 | |
24497 | - ac_status=$? | |
24498 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24499 | - (exit $ac_status); }; }; then | |
24500 | +if ac_fn_c_try_link "$LINENO"; then : | |
24501 | ac_cv_lib_mytinfo_tgoto=yes | |
24502 | else | |
24503 | - echo "$as_me: failed program was:" >&5 | |
24504 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
24505 | - | |
24506 | -ac_cv_lib_mytinfo_tgoto=no | |
24507 | + ac_cv_lib_mytinfo_tgoto=no | |
24508 | fi | |
24509 | -rm -f conftest.err conftest.$ac_objext \ | |
24510 | - conftest$ac_exeext conftest.$ac_ext | |
24511 | +rm -f core conftest.err conftest.$ac_objext \ | |
24512 | + conftest$ac_exeext conftest.$ac_ext | |
24513 | LIBS=$ac_check_lib_save_LIBS | |
24514 | fi | |
24515 | -echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5 | |
24516 | -echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6 | |
24517 | -if test $ac_cv_lib_mytinfo_tgoto = yes; then | |
24518 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5 | |
24519 | +$as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; } | |
24520 | +if test "x$ac_cv_lib_mytinfo_tgoto" = xyes; then : | |
24521 | LIBS="-lmytinfo $LIBS" | |
24522 | fi | |
24523 | ||
24524 | ;; | |
24525 | hpux10.*|hpux11.*) | |
24526 | - echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5 | |
24527 | -echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6 | |
24528 | -if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then | |
24529 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24530 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5 | |
24531 | +$as_echo_n "checking for initscr in -lcur_colr... " >&6; } | |
24532 | +if ${ac_cv_lib_cur_colr_initscr+:} false; then : | |
24533 | + $as_echo_n "(cached) " >&6 | |
24534 | else | |
24535 | ac_check_lib_save_LIBS=$LIBS | |
24536 | LIBS="-lcur_colr $LIBS" | |
24537 | -cat >conftest.$ac_ext <<_ACEOF | |
24538 | -/* confdefs.h. */ | |
24539 | -_ACEOF | |
24540 | -cat confdefs.h >>conftest.$ac_ext | |
24541 | -cat >>conftest.$ac_ext <<_ACEOF | |
24542 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24543 | /* end confdefs.h. */ | |
24544 | ||
24545 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
24546 | +/* Override any GCC internal prototype to avoid an error. | |
24547 | + Use char because int might match the return type of a GCC | |
24548 | + builtin and then its argument prototype would still apply. */ | |
24549 | #ifdef __cplusplus | |
24550 | extern "C" | |
24551 | #endif | |
24552 | -/* We use char because int might match the return type of a gcc2 | |
24553 | - builtin and then its argument prototype would still apply. */ | |
24554 | char initscr (); | |
24555 | int | |
24556 | main () | |
24557 | { | |
24558 | -initscr (); | |
24559 | +return initscr (); | |
24560 | ; | |
24561 | return 0; | |
24562 | } | |
24563 | _ACEOF | |
24564 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
24565 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24566 | - (eval $ac_link) 2>conftest.er1 | |
24567 | - ac_status=$? | |
24568 | - grep -v '^ *+' conftest.er1 >conftest.err | |
24569 | - rm -f conftest.er1 | |
24570 | - cat conftest.err >&5 | |
24571 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24572 | - (exit $ac_status); } && | |
24573 | - { ac_try='test -z "$ac_c_werror_flag" | |
24574 | - || test ! -s conftest.err' | |
24575 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24576 | - (eval $ac_try) 2>&5 | |
24577 | - ac_status=$? | |
24578 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24579 | - (exit $ac_status); }; } && | |
24580 | - { ac_try='test -s conftest$ac_exeext' | |
24581 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24582 | - (eval $ac_try) 2>&5 | |
24583 | - ac_status=$? | |
24584 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24585 | - (exit $ac_status); }; }; then | |
24586 | +if ac_fn_c_try_link "$LINENO"; then : | |
24587 | ac_cv_lib_cur_colr_initscr=yes | |
24588 | else | |
24589 | - echo "$as_me: failed program was:" >&5 | |
24590 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
24591 | - | |
24592 | -ac_cv_lib_cur_colr_initscr=no | |
24593 | + ac_cv_lib_cur_colr_initscr=no | |
24594 | fi | |
24595 | -rm -f conftest.err conftest.$ac_objext \ | |
24596 | - conftest$ac_exeext conftest.$ac_ext | |
24597 | +rm -f core conftest.err conftest.$ac_objext \ | |
24598 | + conftest$ac_exeext conftest.$ac_ext | |
24599 | LIBS=$ac_check_lib_save_LIBS | |
24600 | fi | |
24601 | -echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5 | |
24602 | -echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6 | |
24603 | -if test $ac_cv_lib_cur_colr_initscr = yes; then | |
24604 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5 | |
24605 | +$as_echo "$ac_cv_lib_cur_colr_initscr" >&6; } | |
24606 | +if test "x$ac_cv_lib_cur_colr_initscr" = xyes; then : | |
24607 | ||
24608 | LIBS="-lcur_colr $LIBS" | |
24609 | CFLAGS="-I/usr/include/curses_colr $CFLAGS" | |
24610 | @@ -13253,264 +7631,120 @@ | |
24611 | ||
24612 | else | |
24613 | ||
24614 | - echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5 | |
24615 | -echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6 | |
24616 | -if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then | |
24617 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24618 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5 | |
24619 | +$as_echo_n "checking for initscr in -lHcurses... " >&6; } | |
24620 | +if ${ac_cv_lib_Hcurses_initscr+:} false; then : | |
24621 | + $as_echo_n "(cached) " >&6 | |
24622 | else | |
24623 | ac_check_lib_save_LIBS=$LIBS | |
24624 | LIBS="-lHcurses $LIBS" | |
24625 | -cat >conftest.$ac_ext <<_ACEOF | |
24626 | -/* confdefs.h. */ | |
24627 | -_ACEOF | |
24628 | -cat confdefs.h >>conftest.$ac_ext | |
24629 | -cat >>conftest.$ac_ext <<_ACEOF | |
24630 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24631 | /* end confdefs.h. */ | |
24632 | ||
24633 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
24634 | -#ifdef __cplusplus | |
24635 | -extern "C" | |
24636 | -#endif | |
24637 | -/* We use char because int might match the return type of a gcc2 | |
24638 | +/* Override any GCC internal prototype to avoid an error. | |
24639 | + Use char because int might match the return type of a GCC | |
24640 | builtin and then its argument prototype would still apply. */ | |
24641 | -char initscr (); | |
24642 | -int | |
24643 | -main () | |
24644 | -{ | |
24645 | -initscr (); | |
24646 | - ; | |
24647 | - return 0; | |
24648 | -} | |
24649 | -_ACEOF | |
24650 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
24651 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24652 | - (eval $ac_link) 2>conftest.er1 | |
24653 | - ac_status=$? | |
24654 | - grep -v '^ *+' conftest.er1 >conftest.err | |
24655 | - rm -f conftest.er1 | |
24656 | - cat conftest.err >&5 | |
24657 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24658 | - (exit $ac_status); } && | |
24659 | - { ac_try='test -z "$ac_c_werror_flag" | |
24660 | - || test ! -s conftest.err' | |
24661 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24662 | - (eval $ac_try) 2>&5 | |
24663 | - ac_status=$? | |
24664 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24665 | - (exit $ac_status); }; } && | |
24666 | - { ac_try='test -s conftest$ac_exeext' | |
24667 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24668 | - (eval $ac_try) 2>&5 | |
24669 | - ac_status=$? | |
24670 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24671 | - (exit $ac_status); }; }; then | |
24672 | - ac_cv_lib_Hcurses_initscr=yes | |
24673 | -else | |
24674 | - echo "$as_me: failed program was:" >&5 | |
24675 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
24676 | - | |
24677 | -ac_cv_lib_Hcurses_initscr=no | |
24678 | -fi | |
24679 | -rm -f conftest.err conftest.$ac_objext \ | |
24680 | - conftest$ac_exeext conftest.$ac_ext | |
24681 | -LIBS=$ac_check_lib_save_LIBS | |
24682 | -fi | |
24683 | -echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5 | |
24684 | -echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6 | |
24685 | -if test $ac_cv_lib_Hcurses_initscr = yes; then | |
24686 | - | |
24687 | - # HP's header uses __HP_CURSES, but user claims _HP_CURSES. | |
24688 | - LIBS="-lHcurses $LIBS" | |
24689 | - CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS" | |
24690 | - ac_cv_func_initscr=yes | |
24691 | - | |
24692 | -fi | |
24693 | - | |
24694 | -fi | |
24695 | - | |
24696 | - ;; | |
24697 | -linux*) # Suse Linux does not follow /usr/lib convention | |
24698 | - LIBS="$LIBS -L/lib" | |
24699 | - ;; | |
24700 | -esac | |
24701 | - | |
24702 | -if test ".$With5lib" != ".no" ; then | |
24703 | -if test -d /usr/5lib ; then | |
24704 | - # SunOS 3.x or 4.x | |
24705 | - CPPFLAGS="$CPPFLAGS -I/usr/5include" | |
24706 | - LIBS="$LIBS -L/usr/5lib" | |
24707 | -fi | |
24708 | -fi | |
24709 | - | |
24710 | -if test ".$ac_cv_func_initscr" != .yes ; then | |
24711 | - cf_save_LIBS="$LIBS" | |
24712 | - cf_term_lib="" | |
24713 | - cf_curs_lib="" | |
24714 | - | |
24715 | - # Check for library containing tgoto. Do this before curses library | |
24716 | - # because it may be needed to link the test-case for initscr. | |
24717 | - echo "$as_me:$LINENO: checking for tgoto" >&5 | |
24718 | -echo $ECHO_N "checking for tgoto... $ECHO_C" >&6 | |
24719 | -if test "${ac_cv_func_tgoto+set}" = set; then | |
24720 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24721 | -else | |
24722 | - cat >conftest.$ac_ext <<_ACEOF | |
24723 | -/* confdefs.h. */ | |
24724 | -_ACEOF | |
24725 | -cat confdefs.h >>conftest.$ac_ext | |
24726 | -cat >>conftest.$ac_ext <<_ACEOF | |
24727 | -/* end confdefs.h. */ | |
24728 | -/* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto. | |
24729 | - For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24730 | -#define tgoto innocuous_tgoto | |
24731 | - | |
24732 | -/* System header to define __stub macros and hopefully few prototypes, | |
24733 | - which can conflict with char tgoto (); below. | |
24734 | - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24735 | - <limits.h> exists even on freestanding compilers. */ | |
24736 | - | |
24737 | -#ifdef __STDC__ | |
24738 | -# include <limits.h> | |
24739 | -#else | |
24740 | -# include <assert.h> | |
24741 | -#endif | |
24742 | - | |
24743 | -#undef tgoto | |
24744 | - | |
24745 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
24746 | #ifdef __cplusplus | |
24747 | extern "C" | |
24748 | -{ | |
24749 | -#endif | |
24750 | -/* We use char because int might match the return type of a gcc2 | |
24751 | - builtin and then its argument prototype would still apply. */ | |
24752 | -char tgoto (); | |
24753 | -/* The GNU C library defines this for functions which it implements | |
24754 | - to always fail with ENOSYS. Some functions are actually named | |
24755 | - something starting with __ and the normal name is an alias. */ | |
24756 | -#if defined (__stub_tgoto) || defined (__stub___tgoto) | |
24757 | -choke me | |
24758 | -#else | |
24759 | -char (*f) () = tgoto; | |
24760 | -#endif | |
24761 | -#ifdef __cplusplus | |
24762 | -} | |
24763 | #endif | |
24764 | - | |
24765 | +char initscr (); | |
24766 | int | |
24767 | main () | |
24768 | { | |
24769 | -return f != tgoto; | |
24770 | +return initscr (); | |
24771 | ; | |
24772 | return 0; | |
24773 | } | |
24774 | _ACEOF | |
24775 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
24776 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24777 | - (eval $ac_link) 2>conftest.er1 | |
24778 | - ac_status=$? | |
24779 | - grep -v '^ *+' conftest.er1 >conftest.err | |
24780 | - rm -f conftest.er1 | |
24781 | - cat conftest.err >&5 | |
24782 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24783 | - (exit $ac_status); } && | |
24784 | - { ac_try='test -z "$ac_c_werror_flag" | |
24785 | - || test ! -s conftest.err' | |
24786 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24787 | - (eval $ac_try) 2>&5 | |
24788 | - ac_status=$? | |
24789 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24790 | - (exit $ac_status); }; } && | |
24791 | - { ac_try='test -s conftest$ac_exeext' | |
24792 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24793 | - (eval $ac_try) 2>&5 | |
24794 | - ac_status=$? | |
24795 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24796 | - (exit $ac_status); }; }; then | |
24797 | - ac_cv_func_tgoto=yes | |
24798 | +if ac_fn_c_try_link "$LINENO"; then : | |
24799 | + ac_cv_lib_Hcurses_initscr=yes | |
24800 | else | |
24801 | - echo "$as_me: failed program was:" >&5 | |
24802 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
24803 | + ac_cv_lib_Hcurses_initscr=no | |
24804 | +fi | |
24805 | +rm -f core conftest.err conftest.$ac_objext \ | |
24806 | + conftest$ac_exeext conftest.$ac_ext | |
24807 | +LIBS=$ac_check_lib_save_LIBS | |
24808 | +fi | |
24809 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5 | |
24810 | +$as_echo "$ac_cv_lib_Hcurses_initscr" >&6; } | |
24811 | +if test "x$ac_cv_lib_Hcurses_initscr" = xyes; then : | |
24812 | + | |
24813 | + # HP's header uses __HP_CURSES, but user claims _HP_CURSES. | |
24814 | + LIBS="-lHcurses $LIBS" | |
24815 | + CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS" | |
24816 | + ac_cv_func_initscr=yes | |
24817 | + | |
24818 | +fi | |
24819 | + | |
24820 | +fi | |
24821 | + | |
24822 | + ;; | |
24823 | +linux*) # Suse Linux does not follow /usr/lib convention | |
24824 | + LIBS="$LIBS -L/lib" | |
24825 | + ;; | |
24826 | +esac | |
24827 | ||
24828 | -ac_cv_func_tgoto=no | |
24829 | +if test ".$With5lib" != ".no" ; then | |
24830 | +if test -d /usr/5lib ; then | |
24831 | + # SunOS 3.x or 4.x | |
24832 | + CPPFLAGS="$CPPFLAGS -I/usr/5include" | |
24833 | + LIBS="$LIBS -L/usr/5lib" | |
24834 | fi | |
24835 | -rm -f conftest.err conftest.$ac_objext \ | |
24836 | - conftest$ac_exeext conftest.$ac_ext | |
24837 | fi | |
24838 | -echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5 | |
24839 | -echo "${ECHO_T}$ac_cv_func_tgoto" >&6 | |
24840 | -if test $ac_cv_func_tgoto = yes; then | |
24841 | + | |
24842 | +if test ".$ac_cv_func_initscr" != .yes ; then | |
24843 | + cf_save_LIBS="$LIBS" | |
24844 | + cf_term_lib="" | |
24845 | + cf_curs_lib="" | |
24846 | + | |
24847 | + # Check for library containing tgoto. Do this before curses library | |
24848 | + # because it may be needed to link the test-case for initscr. | |
24849 | + ac_fn_c_check_func "$LINENO" "tgoto" "ac_cv_func_tgoto" | |
24850 | +if test "x$ac_cv_func_tgoto" = xyes; then : | |
24851 | cf_term_lib=predefined | |
24852 | else | |
24853 | ||
24854 | for cf_term_lib in termcap termlib unknown | |
24855 | do | |
24856 | - as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh` | |
24857 | -echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5 | |
24858 | -echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6 | |
24859 | -if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
24860 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24861 | + as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh` | |
24862 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5 | |
24863 | +$as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; } | |
24864 | +if eval \${$as_ac_Lib+:} false; then : | |
24865 | + $as_echo_n "(cached) " >&6 | |
24866 | else | |
24867 | ac_check_lib_save_LIBS=$LIBS | |
24868 | LIBS="-l$cf_term_lib $LIBS" | |
24869 | -cat >conftest.$ac_ext <<_ACEOF | |
24870 | -/* confdefs.h. */ | |
24871 | -_ACEOF | |
24872 | -cat confdefs.h >>conftest.$ac_ext | |
24873 | -cat >>conftest.$ac_ext <<_ACEOF | |
24874 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24875 | /* end confdefs.h. */ | |
24876 | ||
24877 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
24878 | +/* Override any GCC internal prototype to avoid an error. | |
24879 | + Use char because int might match the return type of a GCC | |
24880 | + builtin and then its argument prototype would still apply. */ | |
24881 | #ifdef __cplusplus | |
24882 | extern "C" | |
24883 | #endif | |
24884 | -/* We use char because int might match the return type of a gcc2 | |
24885 | - builtin and then its argument prototype would still apply. */ | |
24886 | char tgoto (); | |
24887 | int | |
24888 | main () | |
24889 | { | |
24890 | -tgoto (); | |
24891 | +return tgoto (); | |
24892 | ; | |
24893 | return 0; | |
24894 | } | |
24895 | _ACEOF | |
24896 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
24897 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24898 | - (eval $ac_link) 2>conftest.er1 | |
24899 | - ac_status=$? | |
24900 | - grep -v '^ *+' conftest.er1 >conftest.err | |
24901 | - rm -f conftest.er1 | |
24902 | - cat conftest.err >&5 | |
24903 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24904 | - (exit $ac_status); } && | |
24905 | - { ac_try='test -z "$ac_c_werror_flag" | |
24906 | - || test ! -s conftest.err' | |
24907 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24908 | - (eval $ac_try) 2>&5 | |
24909 | - ac_status=$? | |
24910 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24911 | - (exit $ac_status); }; } && | |
24912 | - { ac_try='test -s conftest$ac_exeext' | |
24913 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24914 | - (eval $ac_try) 2>&5 | |
24915 | - ac_status=$? | |
24916 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24917 | - (exit $ac_status); }; }; then | |
24918 | +if ac_fn_c_try_link "$LINENO"; then : | |
24919 | eval "$as_ac_Lib=yes" | |
24920 | else | |
24921 | - echo "$as_me: failed program was:" >&5 | |
24922 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
24923 | - | |
24924 | -eval "$as_ac_Lib=no" | |
24925 | + eval "$as_ac_Lib=no" | |
24926 | fi | |
24927 | -rm -f conftest.err conftest.$ac_objext \ | |
24928 | - conftest$ac_exeext conftest.$ac_ext | |
24929 | +rm -f core conftest.err conftest.$ac_objext \ | |
24930 | + conftest$ac_exeext conftest.$ac_ext | |
24931 | LIBS=$ac_check_lib_save_LIBS | |
24932 | fi | |
24933 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
24934 | -echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
24935 | -if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
24936 | +eval ac_res=\$$as_ac_Lib | |
24937 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
24938 | +$as_echo "$ac_res" >&6; } | |
24939 | +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
24940 | break | |
24941 | fi | |
24942 | ||
24943 | @@ -13523,89 +7757,56 @@ | |
24944 | test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS" | |
24945 | for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown | |
24946 | do | |
24947 | - as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh` | |
24948 | -echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5 | |
24949 | -echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6 | |
24950 | -if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
24951 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24952 | + as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh` | |
24953 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5 | |
24954 | +$as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; } | |
24955 | +if eval \${$as_ac_Lib+:} false; then : | |
24956 | + $as_echo_n "(cached) " >&6 | |
24957 | else | |
24958 | ac_check_lib_save_LIBS=$LIBS | |
24959 | LIBS="-l$cf_curs_lib $LIBS" | |
24960 | -cat >conftest.$ac_ext <<_ACEOF | |
24961 | -/* confdefs.h. */ | |
24962 | -_ACEOF | |
24963 | -cat confdefs.h >>conftest.$ac_ext | |
24964 | -cat >>conftest.$ac_ext <<_ACEOF | |
24965 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24966 | /* end confdefs.h. */ | |
24967 | ||
24968 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
24969 | +/* Override any GCC internal prototype to avoid an error. | |
24970 | + Use char because int might match the return type of a GCC | |
24971 | + builtin and then its argument prototype would still apply. */ | |
24972 | #ifdef __cplusplus | |
24973 | extern "C" | |
24974 | #endif | |
24975 | -/* We use char because int might match the return type of a gcc2 | |
24976 | - builtin and then its argument prototype would still apply. */ | |
24977 | char initscr (); | |
24978 | int | |
24979 | main () | |
24980 | { | |
24981 | -initscr (); | |
24982 | +return initscr (); | |
24983 | ; | |
24984 | return 0; | |
24985 | } | |
24986 | _ACEOF | |
24987 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
24988 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24989 | - (eval $ac_link) 2>conftest.er1 | |
24990 | - ac_status=$? | |
24991 | - grep -v '^ *+' conftest.er1 >conftest.err | |
24992 | - rm -f conftest.er1 | |
24993 | - cat conftest.err >&5 | |
24994 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24995 | - (exit $ac_status); } && | |
24996 | - { ac_try='test -z "$ac_c_werror_flag" | |
24997 | - || test ! -s conftest.err' | |
24998 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24999 | - (eval $ac_try) 2>&5 | |
25000 | - ac_status=$? | |
25001 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25002 | - (exit $ac_status); }; } && | |
25003 | - { ac_try='test -s conftest$ac_exeext' | |
25004 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25005 | - (eval $ac_try) 2>&5 | |
25006 | - ac_status=$? | |
25007 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25008 | - (exit $ac_status); }; }; then | |
25009 | +if ac_fn_c_try_link "$LINENO"; then : | |
25010 | eval "$as_ac_Lib=yes" | |
25011 | else | |
25012 | - echo "$as_me: failed program was:" >&5 | |
25013 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
25014 | - | |
25015 | -eval "$as_ac_Lib=no" | |
25016 | + eval "$as_ac_Lib=no" | |
25017 | fi | |
25018 | -rm -f conftest.err conftest.$ac_objext \ | |
25019 | - conftest$ac_exeext conftest.$ac_ext | |
25020 | +rm -f core conftest.err conftest.$ac_objext \ | |
25021 | + conftest$ac_exeext conftest.$ac_ext | |
25022 | LIBS=$ac_check_lib_save_LIBS | |
25023 | fi | |
25024 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
25025 | -echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
25026 | -if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
25027 | +eval ac_res=\$$as_ac_Lib | |
25028 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
25029 | +$as_echo "$ac_res" >&6; } | |
25030 | +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
25031 | break | |
25032 | fi | |
25033 | ||
25034 | done | |
25035 | - test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5 | |
25036 | -echo "$as_me: error: no curses library found" >&2;} | |
25037 | - { (exit 1); exit 1; }; } | |
25038 | + test $cf_curs_lib = unknown && as_fn_error $? "no curses library found" "$LINENO" 5 | |
25039 | ||
25040 | LIBS="-l$cf_curs_lib $cf_save_LIBS" | |
25041 | if test "$cf_term_lib" = unknown ; then | |
25042 | - echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5 | |
25043 | -echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6 | |
25044 | - cat >conftest.$ac_ext <<_ACEOF | |
25045 | -/* confdefs.h. */ | |
25046 | -_ACEOF | |
25047 | -cat confdefs.h >>conftest.$ac_ext | |
25048 | -cat >>conftest.$ac_ext <<_ACEOF | |
25049 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5 | |
25050 | +$as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; } | |
25051 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25052 | /* end confdefs.h. */ | |
25053 | #include <${cf_cv_ncurses_header-curses.h}> | |
25054 | int | |
25055 | @@ -13616,50 +7817,20 @@ | |
25056 | return 0; | |
25057 | } | |
25058 | _ACEOF | |
25059 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
25060 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25061 | - (eval $ac_link) 2>conftest.er1 | |
25062 | - ac_status=$? | |
25063 | - grep -v '^ *+' conftest.er1 >conftest.err | |
25064 | - rm -f conftest.er1 | |
25065 | - cat conftest.err >&5 | |
25066 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25067 | - (exit $ac_status); } && | |
25068 | - { ac_try='test -z "$ac_c_werror_flag" | |
25069 | - || test ! -s conftest.err' | |
25070 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25071 | - (eval $ac_try) 2>&5 | |
25072 | - ac_status=$? | |
25073 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25074 | - (exit $ac_status); }; } && | |
25075 | - { ac_try='test -s conftest$ac_exeext' | |
25076 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25077 | - (eval $ac_try) 2>&5 | |
25078 | - ac_status=$? | |
25079 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25080 | - (exit $ac_status); }; }; then | |
25081 | +if ac_fn_c_try_link "$LINENO"; then : | |
25082 | cf_result=yes | |
25083 | else | |
25084 | - echo "$as_me: failed program was:" >&5 | |
25085 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
25086 | - | |
25087 | -cf_result=no | |
25088 | + cf_result=no | |
25089 | fi | |
25090 | -rm -f conftest.err conftest.$ac_objext \ | |
25091 | - conftest$ac_exeext conftest.$ac_ext | |
25092 | - echo "$as_me:$LINENO: result: $cf_result" >&5 | |
25093 | -echo "${ECHO_T}$cf_result" >&6 | |
25094 | - test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5 | |
25095 | -echo "$as_me: error: Cannot link curses library" >&2;} | |
25096 | - { (exit 1); exit 1; }; } | |
25097 | +rm -f core conftest.err conftest.$ac_objext \ | |
25098 | + conftest$ac_exeext conftest.$ac_ext | |
25099 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5 | |
25100 | +$as_echo "$cf_result" >&6; } | |
25101 | + test $cf_result = no && as_fn_error $? "Cannot link curses library" "$LINENO" 5 | |
25102 | elif test "$cf_term_lib" != predefined ; then | |
25103 | - echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5 | |
25104 | -echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6 | |
25105 | - cat >conftest.$ac_ext <<_ACEOF | |
25106 | -/* confdefs.h. */ | |
25107 | -_ACEOF | |
25108 | -cat confdefs.h >>conftest.$ac_ext | |
25109 | -cat >>conftest.$ac_ext <<_ACEOF | |
25110 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5 | |
25111 | +$as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; } | |
25112 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25113 | /* end confdefs.h. */ | |
25114 | #include <${cf_cv_ncurses_header-curses.h}> | |
25115 | int | |
25116 | @@ -13670,40 +7841,12 @@ | |
25117 | return 0; | |
25118 | } | |
25119 | _ACEOF | |
25120 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
25121 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25122 | - (eval $ac_link) 2>conftest.er1 | |
25123 | - ac_status=$? | |
25124 | - grep -v '^ *+' conftest.er1 >conftest.err | |
25125 | - rm -f conftest.er1 | |
25126 | - cat conftest.err >&5 | |
25127 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25128 | - (exit $ac_status); } && | |
25129 | - { ac_try='test -z "$ac_c_werror_flag" | |
25130 | - || test ! -s conftest.err' | |
25131 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25132 | - (eval $ac_try) 2>&5 | |
25133 | - ac_status=$? | |
25134 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25135 | - (exit $ac_status); }; } && | |
25136 | - { ac_try='test -s conftest$ac_exeext' | |
25137 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25138 | - (eval $ac_try) 2>&5 | |
25139 | - ac_status=$? | |
25140 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25141 | - (exit $ac_status); }; }; then | |
25142 | +if ac_fn_c_try_link "$LINENO"; then : | |
25143 | cf_result=no | |
25144 | else | |
25145 | - echo "$as_me: failed program was:" >&5 | |
25146 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
25147 | - | |
25148 | ||
25149 | LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS" | |
25150 | - cat >conftest.$ac_ext <<_ACEOF | |
25151 | -/* confdefs.h. */ | |
25152 | -_ACEOF | |
25153 | -cat confdefs.h >>conftest.$ac_ext | |
25154 | -cat >>conftest.$ac_ext <<_ACEOF | |
25155 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25156 | /* end confdefs.h. */ | |
25157 | #include <${cf_cv_ncurses_header-curses.h}> | |
25158 | int | |
25159 | @@ -13714,43 +7857,19 @@ | |
25160 | return 0; | |
25161 | } | |
25162 | _ACEOF | |
25163 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
25164 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25165 | - (eval $ac_link) 2>conftest.er1 | |
25166 | - ac_status=$? | |
25167 | - grep -v '^ *+' conftest.er1 >conftest.err | |
25168 | - rm -f conftest.er1 | |
25169 | - cat conftest.err >&5 | |
25170 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25171 | - (exit $ac_status); } && | |
25172 | - { ac_try='test -z "$ac_c_werror_flag" | |
25173 | - || test ! -s conftest.err' | |
25174 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25175 | - (eval $ac_try) 2>&5 | |
25176 | - ac_status=$? | |
25177 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25178 | - (exit $ac_status); }; } && | |
25179 | - { ac_try='test -s conftest$ac_exeext' | |
25180 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25181 | - (eval $ac_try) 2>&5 | |
25182 | - ac_status=$? | |
25183 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25184 | - (exit $ac_status); }; }; then | |
25185 | +if ac_fn_c_try_link "$LINENO"; then : | |
25186 | cf_result=yes | |
25187 | else | |
25188 | - echo "$as_me: failed program was:" >&5 | |
25189 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
25190 | - | |
25191 | -cf_result=error | |
25192 | + cf_result=error | |
25193 | fi | |
25194 | -rm -f conftest.err conftest.$ac_objext \ | |
25195 | - conftest$ac_exeext conftest.$ac_ext | |
25196 | +rm -f core conftest.err conftest.$ac_objext \ | |
25197 | + conftest$ac_exeext conftest.$ac_ext | |
25198 | ||
25199 | fi | |
25200 | -rm -f conftest.err conftest.$ac_objext \ | |
25201 | - conftest$ac_exeext conftest.$ac_ext | |
25202 | - echo "$as_me:$LINENO: result: $cf_result" >&5 | |
25203 | -echo "${ECHO_T}$cf_result" >&6 | |
25204 | +rm -f core conftest.err conftest.$ac_objext \ | |
25205 | + conftest$ac_exeext conftest.$ac_ext | |
25206 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5 | |
25207 | +$as_echo "$cf_result" >&6; } | |
25208 | fi | |
25209 | fi | |
25210 | ||
25211 | @@ -13767,23 +7886,23 @@ | |
25212 | ||
25213 | abook_cv_readline=/usr | |
25214 | ||
25215 | -# Check whether --with-readline or --without-readline was given. | |
25216 | -if test "${with_readline+set}" = set; then | |
25217 | - withval="$with_readline" | |
25218 | - if test $withval != yes; then | |
25219 | +# Check whether --with-readline was given. | |
25220 | +if test "${with_readline+set}" = set; then : | |
25221 | + withval=$with_readline; if test $withval != yes; then | |
25222 | abook_cv_readline=$withval | |
25223 | fi | |
25224 | if test x$abook_cv_readline != x/usr; then | |
25225 | LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS" | |
25226 | CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include" | |
25227 | fi | |
25228 | -fi; | |
25229 | +fi | |
25230 | ||
25231 | ||
25232 | - echo "$as_me:$LINENO: checking for a readline compatible library" >&5 | |
25233 | -echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6 | |
25234 | -if test "${ac_cv_lib_readline+set}" = set; then | |
25235 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25236 | + | |
25237 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 | |
25238 | +$as_echo_n "checking for a readline compatible library... " >&6; } | |
25239 | +if ${ac_cv_lib_readline+:} false; then : | |
25240 | + $as_echo_n "(cached) " >&6 | |
25241 | else | |
25242 | ||
25243 | ORIG_LIBS="$LIBS" | |
25244 | @@ -13795,58 +7914,29 @@ | |
25245 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
25246 | fi | |
25247 | LIBS="$ORIG_LIBS $TRY_LIB" | |
25248 | - cat >conftest.$ac_ext <<_ACEOF | |
25249 | -/* confdefs.h. */ | |
25250 | -_ACEOF | |
25251 | -cat confdefs.h >>conftest.$ac_ext | |
25252 | -cat >>conftest.$ac_ext <<_ACEOF | |
25253 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25254 | /* end confdefs.h. */ | |
25255 | ||
25256 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
25257 | +/* Override any GCC internal prototype to avoid an error. | |
25258 | + Use char because int might match the return type of a GCC | |
25259 | + builtin and then its argument prototype would still apply. */ | |
25260 | #ifdef __cplusplus | |
25261 | extern "C" | |
25262 | #endif | |
25263 | -/* We use char because int might match the return type of a gcc2 | |
25264 | - builtin and then its argument prototype would still apply. */ | |
25265 | char readline (); | |
25266 | int | |
25267 | main () | |
25268 | { | |
25269 | -readline (); | |
25270 | +return readline (); | |
25271 | ; | |
25272 | return 0; | |
25273 | } | |
25274 | _ACEOF | |
25275 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
25276 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25277 | - (eval $ac_link) 2>conftest.er1 | |
25278 | - ac_status=$? | |
25279 | - grep -v '^ *+' conftest.er1 >conftest.err | |
25280 | - rm -f conftest.er1 | |
25281 | - cat conftest.err >&5 | |
25282 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25283 | - (exit $ac_status); } && | |
25284 | - { ac_try='test -z "$ac_c_werror_flag" | |
25285 | - || test ! -s conftest.err' | |
25286 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25287 | - (eval $ac_try) 2>&5 | |
25288 | - ac_status=$? | |
25289 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25290 | - (exit $ac_status); }; } && | |
25291 | - { ac_try='test -s conftest$ac_exeext' | |
25292 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25293 | - (eval $ac_try) 2>&5 | |
25294 | - ac_status=$? | |
25295 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25296 | - (exit $ac_status); }; }; then | |
25297 | +if ac_fn_c_try_link "$LINENO"; then : | |
25298 | ac_cv_lib_readline="$TRY_LIB" | |
25299 | -else | |
25300 | - echo "$as_me: failed program was:" >&5 | |
25301 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
25302 | - | |
25303 | fi | |
25304 | -rm -f conftest.err conftest.$ac_objext \ | |
25305 | - conftest$ac_exeext conftest.$ac_ext | |
25306 | +rm -f core conftest.err conftest.$ac_objext \ | |
25307 | + conftest$ac_exeext conftest.$ac_ext | |
25308 | if test -n "$ac_cv_lib_readline"; then | |
25309 | break | |
25310 | fi | |
25311 | @@ -13861,627 +7951,221 @@ | |
25312 | LIBS="$ORIG_LIBS" | |
25313 | ||
25314 | fi | |
25315 | -echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5 | |
25316 | -echo "${ECHO_T}$ac_cv_lib_readline" >&6 | |
25317 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5 | |
25318 | +$as_echo "$ac_cv_lib_readline" >&6; } | |
25319 | ||
25320 | if test "$ac_cv_lib_readline" != "no"; then | |
25321 | LIBS="$LIBS $ac_cv_lib_readline" | |
25322 | ||
25323 | -cat >>confdefs.h <<\_ACEOF | |
25324 | -#define HAVE_LIBREADLINE 1 | |
25325 | -_ACEOF | |
25326 | - | |
25327 | - | |
25328 | - | |
25329 | -for ac_header in readline.h readline/readline.h | |
25330 | -do | |
25331 | -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25332 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25333 | - echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25334 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25335 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25336 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25337 | -fi | |
25338 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25339 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25340 | -else | |
25341 | - # Is the header compilable? | |
25342 | -echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
25343 | -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
25344 | -cat >conftest.$ac_ext <<_ACEOF | |
25345 | -/* confdefs.h. */ | |
25346 | -_ACEOF | |
25347 | -cat confdefs.h >>conftest.$ac_ext | |
25348 | -cat >>conftest.$ac_ext <<_ACEOF | |
25349 | -/* end confdefs.h. */ | |
25350 | -$ac_includes_default | |
25351 | -#include <$ac_header> | |
25352 | -_ACEOF | |
25353 | -rm -f conftest.$ac_objext | |
25354 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25355 | - (eval $ac_compile) 2>conftest.er1 | |
25356 | - ac_status=$? | |
25357 | - grep -v '^ *+' conftest.er1 >conftest.err | |
25358 | - rm -f conftest.er1 | |
25359 | - cat conftest.err >&5 | |
25360 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25361 | - (exit $ac_status); } && | |
25362 | - { ac_try='test -z "$ac_c_werror_flag" | |
25363 | - || test ! -s conftest.err' | |
25364 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25365 | - (eval $ac_try) 2>&5 | |
25366 | - ac_status=$? | |
25367 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25368 | - (exit $ac_status); }; } && | |
25369 | - { ac_try='test -s conftest.$ac_objext' | |
25370 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25371 | - (eval $ac_try) 2>&5 | |
25372 | - ac_status=$? | |
25373 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25374 | - (exit $ac_status); }; }; then | |
25375 | - ac_header_compiler=yes | |
25376 | -else | |
25377 | - echo "$as_me: failed program was:" >&5 | |
25378 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
25379 | - | |
25380 | -ac_header_compiler=no | |
25381 | -fi | |
25382 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25383 | -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
25384 | -echo "${ECHO_T}$ac_header_compiler" >&6 | |
25385 | - | |
25386 | -# Is the header present? | |
25387 | -echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
25388 | -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
25389 | -cat >conftest.$ac_ext <<_ACEOF | |
25390 | -/* confdefs.h. */ | |
25391 | -_ACEOF | |
25392 | -cat confdefs.h >>conftest.$ac_ext | |
25393 | -cat >>conftest.$ac_ext <<_ACEOF | |
25394 | -/* end confdefs.h. */ | |
25395 | -#include <$ac_header> | |
25396 | -_ACEOF | |
25397 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25398 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25399 | - ac_status=$? | |
25400 | - grep -v '^ *+' conftest.er1 >conftest.err | |
25401 | - rm -f conftest.er1 | |
25402 | - cat conftest.err >&5 | |
25403 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25404 | - (exit $ac_status); } >/dev/null; then | |
25405 | - if test -s conftest.err; then | |
25406 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
25407 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
25408 | - else | |
25409 | - ac_cpp_err= | |
25410 | - fi | |
25411 | -else | |
25412 | - ac_cpp_err=yes | |
25413 | -fi | |
25414 | -if test -z "$ac_cpp_err"; then | |
25415 | - ac_header_preproc=yes | |
25416 | -else | |
25417 | - echo "$as_me: failed program was:" >&5 | |
25418 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
25419 | - | |
25420 | - ac_header_preproc=no | |
25421 | -fi | |
25422 | -rm -f conftest.err conftest.$ac_ext | |
25423 | -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25424 | -echo "${ECHO_T}$ac_header_preproc" >&6 | |
25425 | - | |
25426 | -# So? What about this header? | |
25427 | -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
25428 | - yes:no: ) | |
25429 | - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
25430 | -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
25431 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
25432 | -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
25433 | - ac_header_preproc=yes | |
25434 | - ;; | |
25435 | - no:yes:* ) | |
25436 | - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
25437 | -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
25438 | - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
25439 | -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
25440 | - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
25441 | -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
25442 | - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
25443 | -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
25444 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
25445 | -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
25446 | - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
25447 | -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
25448 | - ( | |
25449 | - cat <<\_ASBOX | |
25450 | -## ------------------------------------------ ## | |
25451 | -## Report this to the AC_PACKAGE_NAME lists. ## | |
25452 | -## ------------------------------------------ ## | |
25453 | -_ASBOX | |
25454 | - ) | | |
25455 | - sed "s/^/$as_me: WARNING: /" >&2 | |
25456 | - ;; | |
25457 | -esac | |
25458 | -echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25459 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25460 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25461 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25462 | -else | |
25463 | - eval "$as_ac_Header=\$ac_header_preproc" | |
25464 | -fi | |
25465 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25466 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25467 | +$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | |
25468 | ||
25469 | -fi | |
25470 | -if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
25471 | + for ac_header in readline.h readline/readline.h | |
25472 | +do : | |
25473 | + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25474 | +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
25475 | +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
25476 | cat >>confdefs.h <<_ACEOF | |
25477 | -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25478 | +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25479 | _ACEOF | |
25480 | ||
25481 | fi | |
25482 | ||
25483 | done | |
25484 | ||
25485 | - echo "$as_me:$LINENO: checking whether readline supports history" >&5 | |
25486 | -echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6 | |
25487 | -if test "${ac_cv_lib_readline_history+set}" = set; then | |
25488 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25489 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 | |
25490 | +$as_echo_n "checking whether readline supports history... " >&6; } | |
25491 | +if ${ac_cv_lib_readline_history+:} false; then : | |
25492 | + $as_echo_n "(cached) " >&6 | |
25493 | else | |
25494 | ||
25495 | ac_cv_lib_readline_history="no" | |
25496 | - cat >conftest.$ac_ext <<_ACEOF | |
25497 | -/* confdefs.h. */ | |
25498 | -_ACEOF | |
25499 | -cat confdefs.h >>conftest.$ac_ext | |
25500 | -cat >>conftest.$ac_ext <<_ACEOF | |
25501 | -/* end confdefs.h. */ | |
25502 | - | |
25503 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
25504 | -#ifdef __cplusplus | |
25505 | -extern "C" | |
25506 | -#endif | |
25507 | -/* We use char because int might match the return type of a gcc2 | |
25508 | - builtin and then its argument prototype would still apply. */ | |
25509 | -char add_history (); | |
25510 | -int | |
25511 | -main () | |
25512 | -{ | |
25513 | -add_history (); | |
25514 | - ; | |
25515 | - return 0; | |
25516 | -} | |
25517 | -_ACEOF | |
25518 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
25519 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25520 | - (eval $ac_link) 2>conftest.er1 | |
25521 | - ac_status=$? | |
25522 | - grep -v '^ *+' conftest.er1 >conftest.err | |
25523 | - rm -f conftest.er1 | |
25524 | - cat conftest.err >&5 | |
25525 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25526 | - (exit $ac_status); } && | |
25527 | - { ac_try='test -z "$ac_c_werror_flag" | |
25528 | - || test ! -s conftest.err' | |
25529 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25530 | - (eval $ac_try) 2>&5 | |
25531 | - ac_status=$? | |
25532 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25533 | - (exit $ac_status); }; } && | |
25534 | - { ac_try='test -s conftest$ac_exeext' | |
25535 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25536 | - (eval $ac_try) 2>&5 | |
25537 | - ac_status=$? | |
25538 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25539 | - (exit $ac_status); }; }; then | |
25540 | - ac_cv_lib_readline_history="yes" | |
25541 | -else | |
25542 | - echo "$as_me: failed program was:" >&5 | |
25543 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
25544 | - | |
25545 | -fi | |
25546 | -rm -f conftest.err conftest.$ac_objext \ | |
25547 | - conftest$ac_exeext conftest.$ac_ext | |
25548 | - | |
25549 | -fi | |
25550 | -echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5 | |
25551 | -echo "${ECHO_T}$ac_cv_lib_readline_history" >&6 | |
25552 | - if test "$ac_cv_lib_readline_history" = "yes"; then | |
25553 | - | |
25554 | -cat >>confdefs.h <<\_ACEOF | |
25555 | -#define HAVE_READLINE_HISTORY 1 | |
25556 | -_ACEOF | |
25557 | - | |
25558 | - | |
25559 | - | |
25560 | -for ac_header in history.h readline/history.h | |
25561 | -do | |
25562 | -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25563 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25564 | - echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25565 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25566 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25567 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25568 | -fi | |
25569 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25570 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25571 | -else | |
25572 | - # Is the header compilable? | |
25573 | -echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
25574 | -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
25575 | -cat >conftest.$ac_ext <<_ACEOF | |
25576 | -/* confdefs.h. */ | |
25577 | -_ACEOF | |
25578 | -cat confdefs.h >>conftest.$ac_ext | |
25579 | -cat >>conftest.$ac_ext <<_ACEOF | |
25580 | -/* end confdefs.h. */ | |
25581 | -$ac_includes_default | |
25582 | -#include <$ac_header> | |
25583 | -_ACEOF | |
25584 | -rm -f conftest.$ac_objext | |
25585 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25586 | - (eval $ac_compile) 2>conftest.er1 | |
25587 | - ac_status=$? | |
25588 | - grep -v '^ *+' conftest.er1 >conftest.err | |
25589 | - rm -f conftest.er1 | |
25590 | - cat conftest.err >&5 | |
25591 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25592 | - (exit $ac_status); } && | |
25593 | - { ac_try='test -z "$ac_c_werror_flag" | |
25594 | - || test ! -s conftest.err' | |
25595 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25596 | - (eval $ac_try) 2>&5 | |
25597 | - ac_status=$? | |
25598 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25599 | - (exit $ac_status); }; } && | |
25600 | - { ac_try='test -s conftest.$ac_objext' | |
25601 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25602 | - (eval $ac_try) 2>&5 | |
25603 | - ac_status=$? | |
25604 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25605 | - (exit $ac_status); }; }; then | |
25606 | - ac_header_compiler=yes | |
25607 | -else | |
25608 | - echo "$as_me: failed program was:" >&5 | |
25609 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
25610 | - | |
25611 | -ac_header_compiler=no | |
25612 | -fi | |
25613 | -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25614 | -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
25615 | -echo "${ECHO_T}$ac_header_compiler" >&6 | |
25616 | - | |
25617 | -# Is the header present? | |
25618 | -echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
25619 | -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
25620 | -cat >conftest.$ac_ext <<_ACEOF | |
25621 | -/* confdefs.h. */ | |
25622 | -_ACEOF | |
25623 | -cat confdefs.h >>conftest.$ac_ext | |
25624 | -cat >>conftest.$ac_ext <<_ACEOF | |
25625 | -/* end confdefs.h. */ | |
25626 | -#include <$ac_header> | |
25627 | -_ACEOF | |
25628 | -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25629 | - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25630 | - ac_status=$? | |
25631 | - grep -v '^ *+' conftest.er1 >conftest.err | |
25632 | - rm -f conftest.er1 | |
25633 | - cat conftest.err >&5 | |
25634 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25635 | - (exit $ac_status); } >/dev/null; then | |
25636 | - if test -s conftest.err; then | |
25637 | - ac_cpp_err=$ac_c_preproc_warn_flag | |
25638 | - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
25639 | - else | |
25640 | - ac_cpp_err= | |
25641 | - fi | |
25642 | -else | |
25643 | - ac_cpp_err=yes | |
25644 | -fi | |
25645 | -if test -z "$ac_cpp_err"; then | |
25646 | - ac_header_preproc=yes | |
25647 | -else | |
25648 | - echo "$as_me: failed program was:" >&5 | |
25649 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
25650 | - | |
25651 | - ac_header_preproc=no | |
25652 | -fi | |
25653 | -rm -f conftest.err conftest.$ac_ext | |
25654 | -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25655 | -echo "${ECHO_T}$ac_header_preproc" >&6 | |
25656 | - | |
25657 | -# So? What about this header? | |
25658 | -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
25659 | - yes:no: ) | |
25660 | - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
25661 | -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
25662 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
25663 | -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
25664 | - ac_header_preproc=yes | |
25665 | - ;; | |
25666 | - no:yes:* ) | |
25667 | - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
25668 | -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
25669 | - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
25670 | -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
25671 | - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
25672 | -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
25673 | - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
25674 | -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
25675 | - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
25676 | -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
25677 | - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
25678 | -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
25679 | - ( | |
25680 | - cat <<\_ASBOX | |
25681 | -## ------------------------------------------ ## | |
25682 | -## Report this to the AC_PACKAGE_NAME lists. ## | |
25683 | -## ------------------------------------------ ## | |
25684 | -_ASBOX | |
25685 | - ) | | |
25686 | - sed "s/^/$as_me: WARNING: /" >&2 | |
25687 | - ;; | |
25688 | -esac | |
25689 | -echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25690 | -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25691 | -if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25692 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25693 | -else | |
25694 | - eval "$as_ac_Header=\$ac_header_preproc" | |
25695 | -fi | |
25696 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25697 | -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25698 | - | |
25699 | -fi | |
25700 | -if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
25701 | - cat >>confdefs.h <<_ACEOF | |
25702 | -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25703 | -_ACEOF | |
25704 | - | |
25705 | -fi | |
25706 | - | |
25707 | -done | |
25708 | - | |
25709 | - fi | |
25710 | - fi | |
25711 | - | |
25712 | - | |
25713 | - | |
25714 | -if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then | |
25715 | - { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5 | |
25716 | -echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;} | |
25717 | - { (exit 1); exit 1; }; } | |
25718 | -fi | |
25719 | - | |
25720 | - | |
25721 | -if test x$ac_widec_possible = xyes; then | |
25722 | - | |
25723 | -cat >>confdefs.h <<\_ACEOF | |
25724 | -#define HANDLE_MULTIBYTE 1 | |
25725 | -_ACEOF | |
25726 | - | |
25727 | -fi | |
25728 | - | |
25729 | - | |
25730 | -for ac_func in resizeterm | |
25731 | -do | |
25732 | -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25733 | -echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25734 | -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25735 | -if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25736 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25737 | -else | |
25738 | - cat >conftest.$ac_ext <<_ACEOF | |
25739 | -/* confdefs.h. */ | |
25740 | -_ACEOF | |
25741 | -cat confdefs.h >>conftest.$ac_ext | |
25742 | -cat >>conftest.$ac_ext <<_ACEOF | |
25743 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25744 | /* end confdefs.h. */ | |
25745 | -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25746 | - For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25747 | -#define $ac_func innocuous_$ac_func | |
25748 | - | |
25749 | -/* System header to define __stub macros and hopefully few prototypes, | |
25750 | - which can conflict with char $ac_func (); below. | |
25751 | - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25752 | - <limits.h> exists even on freestanding compilers. */ | |
25753 | - | |
25754 | -#ifdef __STDC__ | |
25755 | -# include <limits.h> | |
25756 | -#else | |
25757 | -# include <assert.h> | |
25758 | -#endif | |
25759 | ||
25760 | -#undef $ac_func | |
25761 | - | |
25762 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
25763 | -#ifdef __cplusplus | |
25764 | -extern "C" | |
25765 | -{ | |
25766 | -#endif | |
25767 | -/* We use char because int might match the return type of a gcc2 | |
25768 | - builtin and then its argument prototype would still apply. */ | |
25769 | -char $ac_func (); | |
25770 | -/* The GNU C library defines this for functions which it implements | |
25771 | - to always fail with ENOSYS. Some functions are actually named | |
25772 | - something starting with __ and the normal name is an alias. */ | |
25773 | -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25774 | -choke me | |
25775 | -#else | |
25776 | -char (*f) () = $ac_func; | |
25777 | -#endif | |
25778 | +/* Override any GCC internal prototype to avoid an error. | |
25779 | + Use char because int might match the return type of a GCC | |
25780 | + builtin and then its argument prototype would still apply. */ | |
25781 | #ifdef __cplusplus | |
25782 | -} | |
25783 | +extern "C" | |
25784 | #endif | |
25785 | - | |
25786 | +char add_history (); | |
25787 | int | |
25788 | main () | |
25789 | { | |
25790 | -return f != $ac_func; | |
25791 | +return add_history (); | |
25792 | ; | |
25793 | return 0; | |
25794 | } | |
25795 | _ACEOF | |
25796 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
25797 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25798 | - (eval $ac_link) 2>conftest.er1 | |
25799 | - ac_status=$? | |
25800 | - grep -v '^ *+' conftest.er1 >conftest.err | |
25801 | - rm -f conftest.er1 | |
25802 | - cat conftest.err >&5 | |
25803 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25804 | - (exit $ac_status); } && | |
25805 | - { ac_try='test -z "$ac_c_werror_flag" | |
25806 | - || test ! -s conftest.err' | |
25807 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25808 | - (eval $ac_try) 2>&5 | |
25809 | - ac_status=$? | |
25810 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25811 | - (exit $ac_status); }; } && | |
25812 | - { ac_try='test -s conftest$ac_exeext' | |
25813 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25814 | - (eval $ac_try) 2>&5 | |
25815 | - ac_status=$? | |
25816 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25817 | - (exit $ac_status); }; }; then | |
25818 | - eval "$as_ac_var=yes" | |
25819 | -else | |
25820 | - echo "$as_me: failed program was:" >&5 | |
25821 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
25822 | - | |
25823 | -eval "$as_ac_var=no" | |
25824 | +if ac_fn_c_try_link "$LINENO"; then : | |
25825 | + ac_cv_lib_readline_history="yes" | |
25826 | fi | |
25827 | -rm -f conftest.err conftest.$ac_objext \ | |
25828 | - conftest$ac_exeext conftest.$ac_ext | |
25829 | +rm -f core conftest.err conftest.$ac_objext \ | |
25830 | + conftest$ac_exeext conftest.$ac_ext | |
25831 | + | |
25832 | fi | |
25833 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25834 | -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25835 | -if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25836 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5 | |
25837 | +$as_echo "$ac_cv_lib_readline_history" >&6; } | |
25838 | + if test "$ac_cv_lib_readline_history" = "yes"; then | |
25839 | + | |
25840 | +$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h | |
25841 | + | |
25842 | + for ac_header in history.h readline/history.h | |
25843 | +do : | |
25844 | + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25845 | +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
25846 | +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
25847 | cat >>confdefs.h <<_ACEOF | |
25848 | -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25849 | +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25850 | _ACEOF | |
25851 | ||
25852 | fi | |
25853 | + | |
25854 | done | |
25855 | ||
25856 | + fi | |
25857 | + fi | |
25858 | ||
25859 | ||
25860 | ||
25861 | -for ac_func in snprintf vsnprintf | |
25862 | -do | |
25863 | -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25864 | -echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25865 | -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25866 | -if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25867 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25868 | -else | |
25869 | - cat >conftest.$ac_ext <<_ACEOF | |
25870 | -/* confdefs.h. */ | |
25871 | -_ACEOF | |
25872 | -cat confdefs.h >>conftest.$ac_ext | |
25873 | -cat >>conftest.$ac_ext <<_ACEOF | |
25874 | -/* end confdefs.h. */ | |
25875 | -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25876 | - For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25877 | -#define $ac_func innocuous_$ac_func | |
25878 | +if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then | |
25879 | + as_fn_error $? "*** readline library not found or it doesn't support history ***" "$LINENO" 5 | |
25880 | +fi | |
25881 | ||
25882 | -/* System header to define __stub macros and hopefully few prototypes, | |
25883 | - which can conflict with char $ac_func (); below. | |
25884 | - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25885 | - <limits.h> exists even on freestanding compilers. */ | |
25886 | ||
25887 | -#ifdef __STDC__ | |
25888 | -# include <limits.h> | |
25889 | -#else | |
25890 | -# include <assert.h> | |
25891 | -#endif | |
25892 | ||
25893 | -#undef $ac_func | |
25894 | +# Check whether --enable-vformat was given. | |
25895 | +if test "${enable_vformat+set}" = set; then : | |
25896 | + enableval=$enable_vformat; case "${enableval}" in | |
25897 | + yes) vformat=true ;; | |
25898 | + no) vformat=false ;; | |
25899 | + *) as_fn_error $? "bad value ${enableval} for --enable-vformat" "$LINENO" 5 ;; | |
25900 | + esac | |
25901 | +else | |
25902 | + vformat=false | |
25903 | +fi | |
25904 | ||
25905 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
25906 | -#ifdef __cplusplus | |
25907 | -extern "C" | |
25908 | -{ | |
25909 | -#endif | |
25910 | -/* We use char because int might match the return type of a gcc2 | |
25911 | +if test x$vformat = xtrue; then | |
25912 | + ac_fn_c_check_header_mongrel "$LINENO" "vf_iface.h" "ac_cv_header_vf_iface_h" "$ac_includes_default" | |
25913 | +if test "x$ac_cv_header_vf_iface_h" = xyes; then : | |
25914 | + | |
25915 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vf_read_file in -lvformat" >&5 | |
25916 | +$as_echo_n "checking for vf_read_file in -lvformat... " >&6; } | |
25917 | +if ${ac_cv_lib_vformat_vf_read_file+:} false; then : | |
25918 | + $as_echo_n "(cached) " >&6 | |
25919 | +else | |
25920 | + ac_check_lib_save_LIBS=$LIBS | |
25921 | +LIBS="-lvformat $LIBS" | |
25922 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25923 | +/* end confdefs.h. */ | |
25924 | + | |
25925 | +/* Override any GCC internal prototype to avoid an error. | |
25926 | + Use char because int might match the return type of a GCC | |
25927 | builtin and then its argument prototype would still apply. */ | |
25928 | -char $ac_func (); | |
25929 | -/* The GNU C library defines this for functions which it implements | |
25930 | - to always fail with ENOSYS. Some functions are actually named | |
25931 | - something starting with __ and the normal name is an alias. */ | |
25932 | -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25933 | -choke me | |
25934 | -#else | |
25935 | -char (*f) () = $ac_func; | |
25936 | -#endif | |
25937 | #ifdef __cplusplus | |
25938 | -} | |
25939 | +extern "C" | |
25940 | #endif | |
25941 | - | |
25942 | +char vf_read_file (); | |
25943 | int | |
25944 | main () | |
25945 | { | |
25946 | -return f != $ac_func; | |
25947 | +return vf_read_file (); | |
25948 | ; | |
25949 | return 0; | |
25950 | } | |
25951 | _ACEOF | |
25952 | -rm -f conftest.$ac_objext conftest$ac_exeext | |
25953 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25954 | - (eval $ac_link) 2>conftest.er1 | |
25955 | - ac_status=$? | |
25956 | - grep -v '^ *+' conftest.er1 >conftest.err | |
25957 | - rm -f conftest.er1 | |
25958 | - cat conftest.err >&5 | |
25959 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25960 | - (exit $ac_status); } && | |
25961 | - { ac_try='test -z "$ac_c_werror_flag" | |
25962 | - || test ! -s conftest.err' | |
25963 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25964 | - (eval $ac_try) 2>&5 | |
25965 | - ac_status=$? | |
25966 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25967 | - (exit $ac_status); }; } && | |
25968 | - { ac_try='test -s conftest$ac_exeext' | |
25969 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25970 | - (eval $ac_try) 2>&5 | |
25971 | - ac_status=$? | |
25972 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25973 | - (exit $ac_status); }; }; then | |
25974 | - eval "$as_ac_var=yes" | |
25975 | +if ac_fn_c_try_link "$LINENO"; then : | |
25976 | + ac_cv_lib_vformat_vf_read_file=yes | |
25977 | else | |
25978 | - echo "$as_me: failed program was:" >&5 | |
25979 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
25980 | + ac_cv_lib_vformat_vf_read_file=no | |
25981 | +fi | |
25982 | +rm -f core conftest.err conftest.$ac_objext \ | |
25983 | + conftest$ac_exeext conftest.$ac_ext | |
25984 | +LIBS=$ac_check_lib_save_LIBS | |
25985 | +fi | |
25986 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vformat_vf_read_file" >&5 | |
25987 | +$as_echo "$ac_cv_lib_vformat_vf_read_file" >&6; } | |
25988 | +if test "x$ac_cv_lib_vformat_vf_read_file" = xyes; then : | |
25989 | + | |
25990 | + MODULES="$MODULES m_vcf" | |
25991 | + | |
25992 | +$as_echo "#define HAVE_VFORMAT 1" >>confdefs.h | |
25993 | + | |
25994 | + have_vformat=yes | |
25995 | + | |
25996 | +fi | |
25997 | + | |
25998 | + | |
25999 | +fi | |
26000 | + | |
26001 | + | |
26002 | +fi | |
26003 | + if test x"$have_vformat" = "xyes"; then | |
26004 | + ENABLE_VFORMAT_SUPPORT_TRUE= | |
26005 | + ENABLE_VFORMAT_SUPPORT_FALSE='#' | |
26006 | +else | |
26007 | + ENABLE_VFORMAT_SUPPORT_TRUE='#' | |
26008 | + ENABLE_VFORMAT_SUPPORT_FALSE= | |
26009 | +fi | |
26010 | + | |
26011 | + | |
26012 | + | |
26013 | + | |
26014 | +if test x$ac_widec_possible = xyes; then | |
26015 | + | |
26016 | +$as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h | |
26017 | + | |
26018 | +fi | |
26019 | + | |
26020 | +for ac_func in resizeterm | |
26021 | +do : | |
26022 | + ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm" | |
26023 | +if test "x$ac_cv_func_resizeterm" = xyes; then : | |
26024 | + cat >>confdefs.h <<_ACEOF | |
26025 | +#define HAVE_RESIZETERM 1 | |
26026 | +_ACEOF | |
26027 | ||
26028 | -eval "$as_ac_var=no" | |
26029 | fi | |
26030 | -rm -f conftest.err conftest.$ac_objext \ | |
26031 | - conftest$ac_exeext conftest.$ac_ext | |
26032 | +done | |
26033 | + | |
26034 | + | |
26035 | +for ac_func in snprintf vsnprintf | |
26036 | +do : | |
26037 | + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
26038 | +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
26039 | +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
26040 | + cat >>confdefs.h <<_ACEOF | |
26041 | +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26042 | +_ACEOF | |
26043 | + | |
26044 | fi | |
26045 | -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26046 | -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26047 | -if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26048 | +done | |
26049 | + | |
26050 | + | |
26051 | +for ac_func in strcasestr | |
26052 | +do : | |
26053 | + ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" | |
26054 | +if test "x$ac_cv_func_strcasestr" = xyes; then : | |
26055 | cat >>confdefs.h <<_ACEOF | |
26056 | -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26057 | +#define HAVE_STRCASESTR 1 | |
26058 | _ACEOF | |
26059 | + $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h | |
26060 | ||
26061 | fi | |
26062 | done | |
26063 | ||
26064 | ||
26065 | -# Check whether --enable-debug or --disable-debug was given. | |
26066 | -if test "${enable_debug+set}" = set; then | |
26067 | - enableval="$enable_debug" | |
26068 | - case "${enableval}" in | |
26069 | +# Check whether --enable-debug was given. | |
26070 | +if test "${enable_debug+set}" = set; then : | |
26071 | + enableval=$enable_debug; case "${enableval}" in | |
26072 | yes) debug=true ;; | |
26073 | no) debug=false ;; | |
26074 | - *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 | |
26075 | -echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} | |
26076 | - { (exit 1); exit 1; }; } ;; | |
26077 | + *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; | |
26078 | esac | |
26079 | else | |
26080 | debug=false | |
26081 | -fi; | |
26082 | +fi | |
26083 | + | |
26084 | ||
26085 | if test x$debug = xtrue; then | |
26086 | CPPFLAGS="-DDEBUG=1 $CPPFLAGS" | |
26087 | @@ -14492,7 +8176,8 @@ | |
26088 | CFLAGS="-Wall $CFLAGS" | |
26089 | fi | |
26090 | ||
26091 | - ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in" | |
26092 | +ac_config_files="$ac_config_files Makefile abook.spec po/Makefile.in" | |
26093 | + | |
26094 | cat >confcache <<\_ACEOF | |
26095 | # This file is a shell script that caches the results of configure | |
26096 | # tests run on this system so they can be shared between configure | |
26097 | @@ -14511,39 +8196,70 @@ | |
26098 | ||
26099 | # The following way of writing the cache mishandles newlines in values, | |
26100 | # but we know of no workaround that is simple, portable, and efficient. | |
26101 | -# So, don't put newlines in cache variables' values. | |
26102 | +# So, we kill variables containing newlines. | |
26103 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
26104 | # and sets the high bit in the cache file unless we assign to the vars. | |
26105 | -{ | |
26106 | +( | |
26107 | + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
26108 | + eval ac_val=\$$ac_var | |
26109 | + case $ac_val in #( | |
26110 | + *${as_nl}*) | |
26111 | + case $ac_var in #( | |
26112 | + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
26113 | +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26114 | + esac | |
26115 | + case $ac_var in #( | |
26116 | + _ | IFS | as_nl) ;; #( | |
26117 | + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
26118 | + *) { eval $ac_var=; unset $ac_var;} ;; | |
26119 | + esac ;; | |
26120 | + esac | |
26121 | + done | |
26122 | + | |
26123 | (set) 2>&1 | | |
26124 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
26125 | - *ac_space=\ *) | |
26126 | - # `set' does not quote correctly, so add quotes (double-quote | |
26127 | - # substitution turns \\\\ into \\, and sed turns \\ into \). | |
26128 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
26129 | + *${as_nl}ac_space=\ *) | |
26130 | + # `set' does not quote correctly, so add quotes: double-quote | |
26131 | + # substitution turns \\\\ into \\, and sed turns \\ into \. | |
26132 | sed -n \ | |
26133 | "s/'/'\\\\''/g; | |
26134 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
26135 | - ;; | |
26136 | + ;; #( | |
26137 | *) | |
26138 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
26139 | - sed -n \ | |
26140 | - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
26141 | + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
26142 | ;; | |
26143 | - esac; | |
26144 | -} | | |
26145 | + esac | | |
26146 | + sort | |
26147 | +) | | |
26148 | sed ' | |
26149 | + /^ac_cv_env_/b end | |
26150 | t clear | |
26151 | - : clear | |
26152 | + :clear | |
26153 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
26154 | t end | |
26155 | - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
26156 | - : end' >>confcache | |
26157 | -if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
26158 | - if test -w $cache_file; then | |
26159 | - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
26160 | - cat confcache >$cache_file | |
26161 | + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
26162 | + :end' >>confcache | |
26163 | +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
26164 | + if test -w "$cache_file"; then | |
26165 | + if test "x$cache_file" != "x/dev/null"; then | |
26166 | + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
26167 | +$as_echo "$as_me: updating cache $cache_file" >&6;} | |
26168 | + if test ! -f "$cache_file" || test -h "$cache_file"; then | |
26169 | + cat confcache >"$cache_file" | |
26170 | + else | |
26171 | + case $cache_file in #( | |
26172 | + */* | ?:*) | |
26173 | + mv -f confcache "$cache_file"$$ && | |
26174 | + mv -f "$cache_file"$$ "$cache_file" ;; #( | |
26175 | + *) | |
26176 | + mv -f confcache "$cache_file" ;; | |
26177 | + esac | |
26178 | + fi | |
26179 | + fi | |
26180 | else | |
26181 | - echo "not updating unwritable cache $cache_file" | |
26182 | + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
26183 | +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
26184 | fi | |
26185 | fi | |
26186 | rm -f confcache | |
26187 | @@ -14552,73 +8268,61 @@ | |
26188 | # Let make expand exec_prefix. | |
26189 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
26190 | ||
26191 | -# VPATH may cause trouble with some makes, so we remove $(srcdir), | |
26192 | -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
26193 | -# trailing colons and then remove the whole line if VPATH becomes empty | |
26194 | -# (actually we leave an empty line to preserve line numbers). | |
26195 | -if test "x$srcdir" = x.; then | |
26196 | - ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
26197 | -s/:*\$(srcdir):*/:/; | |
26198 | -s/:*\${srcdir}:*/:/; | |
26199 | -s/:*@srcdir@:*/:/; | |
26200 | -s/^\([^=]*=[ ]*\):*/\1/; | |
26201 | -s/:*$//; | |
26202 | -s/^[^=]*=[ ]*$//; | |
26203 | -}' | |
26204 | -fi | |
26205 | - | |
26206 | DEFS=-DHAVE_CONFIG_H | |
26207 | ||
26208 | ac_libobjs= | |
26209 | ac_ltlibobjs= | |
26210 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
26211 | # 1. Remove the extension, and $U if already installed. | |
26212 | - ac_i=`echo "$ac_i" | | |
26213 | - sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
26214 | - # 2. Add them. | |
26215 | - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
26216 | - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
26217 | + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
26218 | + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
26219 | + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
26220 | + # will be set to the directory where LIBOBJS objects are built. | |
26221 | + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
26222 | + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
26223 | done | |
26224 | LIBOBJS=$ac_libobjs | |
26225 | ||
26226 | LTLIBOBJS=$ac_ltlibobjs | |
26227 | ||
26228 | ||
26229 | + if test -n "$EXEEXT"; then | |
26230 | + am__EXEEXT_TRUE= | |
26231 | + am__EXEEXT_FALSE='#' | |
26232 | +else | |
26233 | + am__EXEEXT_TRUE='#' | |
26234 | + am__EXEEXT_FALSE= | |
26235 | +fi | |
26236 | + | |
26237 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
26238 | - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
26239 | -Usually this means the macro was only invoked conditionally." >&5 | |
26240 | -echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
26241 | -Usually this means the macro was only invoked conditionally." >&2;} | |
26242 | - { (exit 1); exit 1; }; } | |
26243 | + as_fn_error $? "conditional \"AMDEP\" was never defined. | |
26244 | +Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26245 | fi | |
26246 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
26247 | - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
26248 | -Usually this means the macro was only invoked conditionally." >&5 | |
26249 | -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
26250 | -Usually this means the macro was only invoked conditionally." >&2;} | |
26251 | - { (exit 1); exit 1; }; } | |
26252 | + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
26253 | +Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26254 | fi | |
26255 | if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then | |
26256 | - { { echo "$as_me:$LINENO: error: conditional \"USE_INCLUDED_INTL_H\" was never defined. | |
26257 | -Usually this means the macro was only invoked conditionally." >&5 | |
26258 | -echo "$as_me: error: conditional \"USE_INCLUDED_INTL_H\" was never defined. | |
26259 | -Usually this means the macro was only invoked conditionally." >&2;} | |
26260 | - { (exit 1); exit 1; }; } | |
26261 | + as_fn_error $? "conditional \"USE_INCLUDED_INTL_H\" was never defined. | |
26262 | +Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26263 | fi | |
26264 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
26265 | - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
26266 | -Usually this means the macro was only invoked conditionally." >&5 | |
26267 | -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
26268 | -Usually this means the macro was only invoked conditionally." >&2;} | |
26269 | - { (exit 1); exit 1; }; } | |
26270 | + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
26271 | +Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26272 | +fi | |
26273 | +if test -z "${ENABLE_VFORMAT_SUPPORT_TRUE}" && test -z "${ENABLE_VFORMAT_SUPPORT_FALSE}"; then | |
26274 | + as_fn_error $? "conditional \"ENABLE_VFORMAT_SUPPORT\" was never defined. | |
26275 | +Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26276 | fi | |
26277 | ||
26278 | -: ${CONFIG_STATUS=./config.status} | |
26279 | +: "${CONFIG_STATUS=./config.status}" | |
26280 | +ac_write_fail=0 | |
26281 | ac_clean_files_save=$ac_clean_files | |
26282 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
26283 | -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
26284 | -echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
26285 | -cat >$CONFIG_STATUS <<_ACEOF | |
26286 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
26287 | +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
26288 | +as_write_fail=0 | |
26289 | +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
26290 | #! $SHELL | |
26291 | # Generated by $as_me. | |
26292 | # Run this file to recreate the current configuration. | |
26293 | @@ -14628,81 +8332,253 @@ | |
26294 | debug=false | |
26295 | ac_cs_recheck=false | |
26296 | ac_cs_silent=false | |
26297 | -SHELL=\${CONFIG_SHELL-$SHELL} | |
26298 | -_ACEOF | |
26299 | ||
26300 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
26301 | -## --------------------- ## | |
26302 | -## M4sh Initialization. ## | |
26303 | -## --------------------- ## | |
26304 | +SHELL=\${CONFIG_SHELL-$SHELL} | |
26305 | +export SHELL | |
26306 | +_ASEOF | |
26307 | +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
26308 | +## -------------------- ## | |
26309 | +## M4sh Initialization. ## | |
26310 | +## -------------------- ## | |
26311 | ||
26312 | -# Be Bourne compatible | |
26313 | -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
26314 | +# Be more Bourne compatible | |
26315 | +DUALCASE=1; export DUALCASE # for MKS sh | |
26316 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
26317 | emulate sh | |
26318 | NULLCMD=: | |
26319 | - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
26320 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
26321 | # is contrary to our usage. Disable this feature. | |
26322 | alias -g '${1+"$@"}'='"$@"' | |
26323 | -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
26324 | - set -o posix | |
26325 | + setopt NO_GLOB_SUBST | |
26326 | +else | |
26327 | + case `(set -o) 2>/dev/null` in #( | |
26328 | + *posix*) : | |
26329 | + set -o posix ;; #( | |
26330 | + *) : | |
26331 | + ;; | |
26332 | +esac | |
26333 | fi | |
26334 | -DUALCASE=1; export DUALCASE # for MKS sh | |
26335 | ||
26336 | -# Support unset when possible. | |
26337 | -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26338 | - as_unset=unset | |
26339 | -else | |
26340 | - as_unset=false | |
26341 | + | |
26342 | +as_nl=' | |
26343 | +' | |
26344 | +export as_nl | |
26345 | +# Printing a long string crashes Solaris 7 /usr/bin/printf. | |
26346 | +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
26347 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
26348 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
26349 | +# Prefer a ksh shell builtin over an external printf program on Solaris, | |
26350 | +# but without wasting forks for bash or zsh. | |
26351 | +if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
26352 | + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
26353 | + as_echo='print -r --' | |
26354 | + as_echo_n='print -rn --' | |
26355 | +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
26356 | + as_echo='printf %s\n' | |
26357 | + as_echo_n='printf %s' | |
26358 | +else | |
26359 | + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
26360 | + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
26361 | + as_echo_n='/usr/ucb/echo -n' | |
26362 | + else | |
26363 | + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
26364 | + as_echo_n_body='eval | |
26365 | + arg=$1; | |
26366 | + case $arg in #( | |
26367 | + *"$as_nl"*) | |
26368 | + expr "X$arg" : "X\\(.*\\)$as_nl"; | |
26369 | + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
26370 | + esac; | |
26371 | + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
26372 | + ' | |
26373 | + export as_echo_n_body | |
26374 | + as_echo_n='sh -c $as_echo_n_body as_echo' | |
26375 | + fi | |
26376 | + export as_echo_body | |
26377 | + as_echo='sh -c $as_echo_body as_echo' | |
26378 | +fi | |
26379 | + | |
26380 | +# The user is always right. | |
26381 | +if test "${PATH_SEPARATOR+set}" != set; then | |
26382 | + PATH_SEPARATOR=: | |
26383 | + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
26384 | + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
26385 | + PATH_SEPARATOR=';' | |
26386 | + } | |
26387 | fi | |
26388 | ||
26389 | ||
26390 | -# Work around bugs in pre-3.0 UWIN ksh. | |
26391 | -$as_unset ENV MAIL MAILPATH | |
26392 | +# IFS | |
26393 | +# We need space, tab and new line, in precisely that order. Quoting is | |
26394 | +# there to prevent editors from complaining about space-tab. | |
26395 | +# (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
26396 | +# splitting by setting IFS to empty value.) | |
26397 | +IFS=" "" $as_nl" | |
26398 | + | |
26399 | +# Find who we are. Look in the path if we contain no directory separator. | |
26400 | +as_myself= | |
26401 | +case $0 in #(( | |
26402 | + *[\\/]* ) as_myself=$0 ;; | |
26403 | + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26404 | +for as_dir in $PATH | |
26405 | +do | |
26406 | + IFS=$as_save_IFS | |
26407 | + test -z "$as_dir" && as_dir=. | |
26408 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
26409 | + done | |
26410 | +IFS=$as_save_IFS | |
26411 | + | |
26412 | + ;; | |
26413 | +esac | |
26414 | +# We did not find ourselves, most probably we were run as `sh COMMAND' | |
26415 | +# in which case we are not to be found in the path. | |
26416 | +if test "x$as_myself" = x; then | |
26417 | + as_myself=$0 | |
26418 | +fi | |
26419 | +if test ! -f "$as_myself"; then | |
26420 | + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
26421 | + exit 1 | |
26422 | +fi | |
26423 | + | |
26424 | +# Unset variables that we do not need and which cause bugs (e.g. in | |
26425 | +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
26426 | +# suppresses any "Segmentation fault" message there. '((' could | |
26427 | +# trigger a bug in pdksh 5.2.14. | |
26428 | +for as_var in BASH_ENV ENV MAIL MAILPATH | |
26429 | +do eval test x\${$as_var+set} = xset \ | |
26430 | + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
26431 | +done | |
26432 | PS1='$ ' | |
26433 | PS2='> ' | |
26434 | PS4='+ ' | |
26435 | ||
26436 | # NLS nuisances. | |
26437 | -for as_var in \ | |
26438 | - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
26439 | - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
26440 | - LC_TELEPHONE LC_TIME | |
26441 | -do | |
26442 | - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
26443 | - eval $as_var=C; export $as_var | |
26444 | - else | |
26445 | - $as_unset $as_var | |
26446 | - fi | |
26447 | -done | |
26448 | +LC_ALL=C | |
26449 | +export LC_ALL | |
26450 | +LANGUAGE=C | |
26451 | +export LANGUAGE | |
26452 | + | |
26453 | +# CDPATH. | |
26454 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
26455 | + | |
26456 | + | |
26457 | +# as_fn_error STATUS ERROR [LINENO LOG_FD] | |
26458 | +# ---------------------------------------- | |
26459 | +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
26460 | +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
26461 | +# script with STATUS, using 1 if that was 0. | |
26462 | +as_fn_error () | |
26463 | +{ | |
26464 | + as_status=$1; test $as_status -eq 0 && as_status=1 | |
26465 | + if test "$4"; then | |
26466 | + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
26467 | + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
26468 | + fi | |
26469 | + $as_echo "$as_me: error: $2" >&2 | |
26470 | + as_fn_exit $as_status | |
26471 | +} # as_fn_error | |
26472 | + | |
26473 | + | |
26474 | +# as_fn_set_status STATUS | |
26475 | +# ----------------------- | |
26476 | +# Set $? to STATUS, without forking. | |
26477 | +as_fn_set_status () | |
26478 | +{ | |
26479 | + return $1 | |
26480 | +} # as_fn_set_status | |
26481 | + | |
26482 | +# as_fn_exit STATUS | |
26483 | +# ----------------- | |
26484 | +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
26485 | +as_fn_exit () | |
26486 | +{ | |
26487 | + set +e | |
26488 | + as_fn_set_status $1 | |
26489 | + exit $1 | |
26490 | +} # as_fn_exit | |
26491 | + | |
26492 | +# as_fn_unset VAR | |
26493 | +# --------------- | |
26494 | +# Portably unset VAR. | |
26495 | +as_fn_unset () | |
26496 | +{ | |
26497 | + { eval $1=; unset $1;} | |
26498 | +} | |
26499 | +as_unset=as_fn_unset | |
26500 | +# as_fn_append VAR VALUE | |
26501 | +# ---------------------- | |
26502 | +# Append the text in VALUE to the end of the definition contained in VAR. Take | |
26503 | +# advantage of any shell optimizations that allow amortized linear growth over | |
26504 | +# repeated appends, instead of the typical quadratic growth present in naive | |
26505 | +# implementations. | |
26506 | +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
26507 | + eval 'as_fn_append () | |
26508 | + { | |
26509 | + eval $1+=\$2 | |
26510 | + }' | |
26511 | +else | |
26512 | + as_fn_append () | |
26513 | + { | |
26514 | + eval $1=\$$1\$2 | |
26515 | + } | |
26516 | +fi # as_fn_append | |
26517 | + | |
26518 | +# as_fn_arith ARG... | |
26519 | +# ------------------ | |
26520 | +# Perform arithmetic evaluation on the ARGs, and store the result in the | |
26521 | +# global $as_val. Take advantage of shells that can avoid forks. The arguments | |
26522 | +# must be portable across $(()) and expr. | |
26523 | +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
26524 | + eval 'as_fn_arith () | |
26525 | + { | |
26526 | + as_val=$(( $* )) | |
26527 | + }' | |
26528 | +else | |
26529 | + as_fn_arith () | |
26530 | + { | |
26531 | + as_val=`expr "$@" || test $? -eq 1` | |
26532 | + } | |
26533 | +fi # as_fn_arith | |
26534 | ||
26535 | -# Required to use basename. | |
26536 | -if expr a : '\(a\)' >/dev/null 2>&1; then | |
26537 | + | |
26538 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
26539 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
26540 | as_expr=expr | |
26541 | else | |
26542 | as_expr=false | |
26543 | fi | |
26544 | ||
26545 | -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
26546 | +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
26547 | as_basename=basename | |
26548 | else | |
26549 | as_basename=false | |
26550 | fi | |
26551 | ||
26552 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
26553 | + as_dirname=dirname | |
26554 | +else | |
26555 | + as_dirname=false | |
26556 | +fi | |
26557 | ||
26558 | -# Name of the executable. | |
26559 | -as_me=`$as_basename "$0" || | |
26560 | +as_me=`$as_basename -- "$0" || | |
26561 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
26562 | X"$0" : 'X\(//\)$' \| \ | |
26563 | - X"$0" : 'X\(/\)$' \| \ | |
26564 | - . : '\(.\)' 2>/dev/null || | |
26565 | -echo X/"$0" | | |
26566 | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
26567 | - /^X\/\(\/\/\)$/{ s//\1/; q; } | |
26568 | - /^X\/\(\/\).*/{ s//\1/; q; } | |
26569 | - s/.*/./; q'` | |
26570 | - | |
26571 | + X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
26572 | +$as_echo X/"$0" | | |
26573 | + sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
26574 | + s//\1/ | |
26575 | + q | |
26576 | + } | |
26577 | + /^X\/\(\/\/\)$/{ | |
26578 | + s//\1/ | |
26579 | + q | |
26580 | + } | |
26581 | + /^X\/\(\/\).*/{ | |
26582 | + s//\1/ | |
26583 | + q | |
26584 | + } | |
26585 | + s/.*/./; q'` | |
26586 | ||
26587 | -# PATH needs CR, and LINENO needs CR and PATH. | |
26588 | # Avoid depending upon Character Ranges. | |
26589 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
26590 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
26591 | @@ -14710,181 +8586,133 @@ | |
26592 | as_cr_digits='0123456789' | |
26593 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
26594 | ||
26595 | -# The user is always right. | |
26596 | -if test "${PATH_SEPARATOR+set}" != set; then | |
26597 | - echo "#! /bin/sh" >conf$$.sh | |
26598 | - echo "exit 0" >>conf$$.sh | |
26599 | - chmod +x conf$$.sh | |
26600 | - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
26601 | - PATH_SEPARATOR=';' | |
26602 | - else | |
26603 | - PATH_SEPARATOR=: | |
26604 | - fi | |
26605 | - rm -f conf$$.sh | |
26606 | -fi | |
26607 | - | |
26608 | - | |
26609 | - as_lineno_1=$LINENO | |
26610 | - as_lineno_2=$LINENO | |
26611 | - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
26612 | - test "x$as_lineno_1" != "x$as_lineno_2" && | |
26613 | - test "x$as_lineno_3" = "x$as_lineno_2" || { | |
26614 | - # Find who we are. Look in the path if we contain no path at all | |
26615 | - # relative or not. | |
26616 | - case $0 in | |
26617 | - *[\\/]* ) as_myself=$0 ;; | |
26618 | - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26619 | -for as_dir in $PATH | |
26620 | -do | |
26621 | - IFS=$as_save_IFS | |
26622 | - test -z "$as_dir" && as_dir=. | |
26623 | - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
26624 | -done | |
26625 | - | |
26626 | - ;; | |
26627 | - esac | |
26628 | - # We did not find ourselves, most probably we were run as `sh COMMAND' | |
26629 | - # in which case we are not to be found in the path. | |
26630 | - if test "x$as_myself" = x; then | |
26631 | - as_myself=$0 | |
26632 | - fi | |
26633 | - if test ! -f "$as_myself"; then | |
26634 | - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
26635 | -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
26636 | - { (exit 1); exit 1; }; } | |
26637 | - fi | |
26638 | - case $CONFIG_SHELL in | |
26639 | - '') | |
26640 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26641 | -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
26642 | -do | |
26643 | - IFS=$as_save_IFS | |
26644 | - test -z "$as_dir" && as_dir=. | |
26645 | - for as_base in sh bash ksh sh5; do | |
26646 | - case $as_dir in | |
26647 | - /*) | |
26648 | - if ("$as_dir/$as_base" -c ' | |
26649 | - as_lineno_1=$LINENO | |
26650 | - as_lineno_2=$LINENO | |
26651 | - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
26652 | - test "x$as_lineno_1" != "x$as_lineno_2" && | |
26653 | - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
26654 | - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
26655 | - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
26656 | - CONFIG_SHELL=$as_dir/$as_base | |
26657 | - export CONFIG_SHELL | |
26658 | - exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
26659 | - fi;; | |
26660 | - esac | |
26661 | - done | |
26662 | -done | |
26663 | -;; | |
26664 | - esac | |
26665 | - | |
26666 | - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
26667 | - # uniformly replaced by the line number. The first 'sed' inserts a | |
26668 | - # line-number line before each line; the second 'sed' does the real | |
26669 | - # work. The second script uses 'N' to pair each line-number line | |
26670 | - # with the numbered line, and appends trailing '-' during | |
26671 | - # substitution so that $LINENO is not a special case at line end. | |
26672 | - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
26673 | - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
26674 | - sed '=' <$as_myself | | |
26675 | - sed ' | |
26676 | - N | |
26677 | - s,$,-, | |
26678 | - : loop | |
26679 | - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
26680 | - t loop | |
26681 | - s,-$,, | |
26682 | - s,^['$as_cr_digits']*\n,, | |
26683 | - ' >$as_me.lineno && | |
26684 | - chmod +x $as_me.lineno || | |
26685 | - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
26686 | -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
26687 | - { (exit 1); exit 1; }; } | |
26688 | - | |
26689 | - # Don't try to exec as it changes $[0], causing all sort of problems | |
26690 | - # (the dirname of $[0] is not the place where we might find the | |
26691 | - # original and so on. Autoconf is especially sensible to this). | |
26692 | - . ./$as_me.lineno | |
26693 | - # Exit status is that of the last command. | |
26694 | - exit | |
26695 | -} | |
26696 | - | |
26697 | - | |
26698 | -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
26699 | - *c*,-n*) ECHO_N= ECHO_C=' | |
26700 | -' ECHO_T=' ' ;; | |
26701 | - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
26702 | - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
26703 | +ECHO_C= ECHO_N= ECHO_T= | |
26704 | +case `echo -n x` in #((((( | |
26705 | +-n*) | |
26706 | + case `echo 'xy\c'` in | |
26707 | + *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
26708 | + xy) ECHO_C='\c';; | |
26709 | + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
26710 | + ECHO_T=' ';; | |
26711 | + esac;; | |
26712 | +*) | |
26713 | + ECHO_N='-n';; | |
26714 | esac | |
26715 | ||
26716 | -if expr a : '\(a\)' >/dev/null 2>&1; then | |
26717 | - as_expr=expr | |
26718 | +rm -f conf$$ conf$$.exe conf$$.file | |
26719 | +if test -d conf$$.dir; then | |
26720 | + rm -f conf$$.dir/conf$$.file | |
26721 | else | |
26722 | - as_expr=false | |
26723 | + rm -f conf$$.dir | |
26724 | + mkdir conf$$.dir 2>/dev/null | |
26725 | fi | |
26726 | - | |
26727 | -rm -f conf$$ conf$$.exe conf$$.file | |
26728 | -echo >conf$$.file | |
26729 | -if ln -s conf$$.file conf$$ 2>/dev/null; then | |
26730 | - # We could just check for DJGPP; but this test a) works b) is more generic | |
26731 | - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
26732 | - if test -f conf$$.exe; then | |
26733 | - # Don't use ln at all; we don't have any links | |
26734 | - as_ln_s='cp -p' | |
26735 | - else | |
26736 | +if (echo >conf$$.file) 2>/dev/null; then | |
26737 | + if ln -s conf$$.file conf$$ 2>/dev/null; then | |
26738 | as_ln_s='ln -s' | |
26739 | + # ... but there are two gotchas: | |
26740 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
26741 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
26742 | + # In both cases, we have to default to `cp -pR'. | |
26743 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
26744 | + as_ln_s='cp -pR' | |
26745 | + elif ln conf$$.file conf$$ 2>/dev/null; then | |
26746 | + as_ln_s=ln | |
26747 | + else | |
26748 | + as_ln_s='cp -pR' | |
26749 | fi | |
26750 | -elif ln conf$$.file conf$$ 2>/dev/null; then | |
26751 | - as_ln_s=ln | |
26752 | else | |
26753 | - as_ln_s='cp -p' | |
26754 | + as_ln_s='cp -pR' | |
26755 | fi | |
26756 | -rm -f conf$$ conf$$.exe conf$$.file | |
26757 | +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
26758 | +rmdir conf$$.dir 2>/dev/null | |
26759 | ||
26760 | + | |
26761 | +# as_fn_mkdir_p | |
26762 | +# ------------- | |
26763 | +# Create "$as_dir" as a directory, including parents if necessary. | |
26764 | +as_fn_mkdir_p () | |
26765 | +{ | |
26766 | + | |
26767 | + case $as_dir in #( | |
26768 | + -*) as_dir=./$as_dir;; | |
26769 | + esac | |
26770 | + test -d "$as_dir" || eval $as_mkdir_p || { | |
26771 | + as_dirs= | |
26772 | + while :; do | |
26773 | + case $as_dir in #( | |
26774 | + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
26775 | + *) as_qdir=$as_dir;; | |
26776 | + esac | |
26777 | + as_dirs="'$as_qdir' $as_dirs" | |
26778 | + as_dir=`$as_dirname -- "$as_dir" || | |
26779 | +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26780 | + X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26781 | + X"$as_dir" : 'X\(//\)$' \| \ | |
26782 | + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
26783 | +$as_echo X"$as_dir" | | |
26784 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
26785 | + s//\1/ | |
26786 | + q | |
26787 | + } | |
26788 | + /^X\(\/\/\)[^/].*/{ | |
26789 | + s//\1/ | |
26790 | + q | |
26791 | + } | |
26792 | + /^X\(\/\/\)$/{ | |
26793 | + s//\1/ | |
26794 | + q | |
26795 | + } | |
26796 | + /^X\(\/\).*/{ | |
26797 | + s//\1/ | |
26798 | + q | |
26799 | + } | |
26800 | + s/.*/./; q'` | |
26801 | + test -d "$as_dir" && break | |
26802 | + done | |
26803 | + test -z "$as_dirs" || eval "mkdir $as_dirs" | |
26804 | + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
26805 | + | |
26806 | + | |
26807 | +} # as_fn_mkdir_p | |
26808 | if mkdir -p . 2>/dev/null; then | |
26809 | - as_mkdir_p=: | |
26810 | + as_mkdir_p='mkdir -p "$as_dir"' | |
26811 | else | |
26812 | test -d ./-p && rmdir ./-p | |
26813 | as_mkdir_p=false | |
26814 | fi | |
26815 | ||
26816 | -as_executable_p="test -f" | |
26817 | + | |
26818 | +# as_fn_executable_p FILE | |
26819 | +# ----------------------- | |
26820 | +# Test if FILE is an executable regular file. | |
26821 | +as_fn_executable_p () | |
26822 | +{ | |
26823 | + test -f "$1" && test -x "$1" | |
26824 | +} # as_fn_executable_p | |
26825 | +as_test_x='test -x' | |
26826 | +as_executable_p=as_fn_executable_p | |
26827 | ||
26828 | # Sed expression to map a string onto a valid CPP name. | |
26829 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
26830 | ||
26831 | # Sed expression to map a string onto a valid variable name. | |
26832 | -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
26833 | - | |
26834 | - | |
26835 | -# IFS | |
26836 | -# We need space, tab and new line, in precisely that order. | |
26837 | -as_nl=' | |
26838 | -' | |
26839 | -IFS=" $as_nl" | |
26840 | - | |
26841 | -# CDPATH. | |
26842 | -$as_unset CDPATH | |
26843 | - | |
26844 | -exec 6>&1 | |
26845 | - | |
26846 | -# Open the log real soon, to keep \$[0] and so on meaningful, and to | |
26847 | -# report actual input values of CONFIG_FILES etc. instead of their | |
26848 | -# values after options handling. Logging --version etc. is OK. | |
26849 | -exec 5>>config.log | |
26850 | -{ | |
26851 | - echo | |
26852 | - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
26853 | -## Running $as_me. ## | |
26854 | -_ASBOX | |
26855 | -} >&5 | |
26856 | -cat >&5 <<_CSEOF | |
26857 | +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
26858 | + | |
26859 | + | |
26860 | +exec 6>&1 | |
26861 | +## ----------------------------------- ## | |
26862 | +## Main body of $CONFIG_STATUS script. ## | |
26863 | +## ----------------------------------- ## | |
26864 | +_ASEOF | |
26865 | +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
26866 | ||
26867 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
26868 | +# Save the log message, to keep $0 and so on meaningful, and to | |
26869 | +# report actual input values of CONFIG_FILES etc. instead of their | |
26870 | +# values after options handling. | |
26871 | +ac_log=" | |
26872 | This file was extended by $as_me, which was | |
26873 | -generated by GNU Autoconf 2.59. Invocation command line was | |
26874 | +generated by GNU Autoconf 2.69. Invocation command line was | |
26875 | ||
26876 | CONFIG_FILES = $CONFIG_FILES | |
26877 | CONFIG_HEADERS = $CONFIG_HEADERS | |
26878 | @@ -14892,45 +8720,47 @@ | |
26879 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
26880 | $ $0 $@ | |
26881 | ||
26882 | -_CSEOF | |
26883 | -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
26884 | -echo >&5 | |
26885 | +on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
26886 | +" | |
26887 | + | |
26888 | _ACEOF | |
26889 | ||
26890 | -# Files that config.status was made for. | |
26891 | -if test -n "$ac_config_files"; then | |
26892 | - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
26893 | -fi | |
26894 | +case $ac_config_files in *" | |
26895 | +"*) set x $ac_config_files; shift; ac_config_files=$*;; | |
26896 | +esac | |
26897 | ||
26898 | -if test -n "$ac_config_headers"; then | |
26899 | - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
26900 | -fi | |
26901 | +case $ac_config_headers in *" | |
26902 | +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
26903 | +esac | |
26904 | ||
26905 | -if test -n "$ac_config_links"; then | |
26906 | - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
26907 | -fi | |
26908 | ||
26909 | -if test -n "$ac_config_commands"; then | |
26910 | - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
26911 | -fi | |
26912 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
26913 | +# Files that config.status was made for. | |
26914 | +config_files="$ac_config_files" | |
26915 | +config_headers="$ac_config_headers" | |
26916 | +config_commands="$ac_config_commands" | |
26917 | ||
26918 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
26919 | +_ACEOF | |
26920 | ||
26921 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
26922 | ac_cs_usage="\ | |
26923 | -\`$as_me' instantiates files from templates according to the | |
26924 | -current configuration. | |
26925 | +\`$as_me' instantiates files and other configuration actions | |
26926 | +from templates according to the current configuration. Unless the files | |
26927 | +and actions are specified as TAGs, all are instantiated by default. | |
26928 | ||
26929 | -Usage: $0 [OPTIONS] [FILE]... | |
26930 | +Usage: $0 [OPTION]... [TAG]... | |
26931 | ||
26932 | -h, --help print this help, then exit | |
26933 | - -V, --version print version number, then exit | |
26934 | - -q, --quiet do not print progress messages | |
26935 | + -V, --version print version number and configuration settings, then exit | |
26936 | + --config print configuration, then exit | |
26937 | + -q, --quiet, --silent | |
26938 | + do not print progress messages | |
26939 | -d, --debug don't remove temporary files | |
26940 | --recheck update $as_me by reconfiguring in the same conditions | |
26941 | - --file=FILE[:TEMPLATE] | |
26942 | - instantiate the configuration file FILE | |
26943 | - --header=FILE[:TEMPLATE] | |
26944 | - instantiate the configuration header FILE | |
26945 | + --file=FILE[:TEMPLATE] | |
26946 | + instantiate the configuration file FILE | |
26947 | + --header=FILE[:TEMPLATE] | |
26948 | + instantiate the configuration header FILE | |
26949 | ||
26950 | Configuration files: | |
26951 | $config_files | |
26952 | @@ -14941,84 +8771,92 @@ | |
26953 | Configuration commands: | |
26954 | $config_commands | |
26955 | ||
26956 | -Report bugs to <bug-autoconf@gnu.org>." | |
26957 | -_ACEOF | |
26958 | +Report bugs to the package provider." | |
26959 | ||
26960 | -cat >>$CONFIG_STATUS <<_ACEOF | |
26961 | +_ACEOF | |
26962 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
26963 | +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
26964 | ac_cs_version="\\ | |
26965 | config.status | |
26966 | -configured by $0, generated by GNU Autoconf 2.59, | |
26967 | - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
26968 | +configured by $0, generated by GNU Autoconf 2.69, | |
26969 | + with options \\"\$ac_cs_config\\" | |
26970 | ||
26971 | -Copyright (C) 2003 Free Software Foundation, Inc. | |
26972 | +Copyright (C) 2012 Free Software Foundation, Inc. | |
26973 | This config.status script is free software; the Free Software Foundation | |
26974 | gives unlimited permission to copy, distribute and modify it." | |
26975 | -srcdir=$srcdir | |
26976 | -INSTALL="$INSTALL" | |
26977 | + | |
26978 | +ac_pwd='$ac_pwd' | |
26979 | +srcdir='$srcdir' | |
26980 | +INSTALL='$INSTALL' | |
26981 | +MKDIR_P='$MKDIR_P' | |
26982 | +AWK='$AWK' | |
26983 | +test -n "\$AWK" || AWK=awk | |
26984 | _ACEOF | |
26985 | ||
26986 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
26987 | -# If no file are specified by the user, then we need to provide default | |
26988 | -# value. By we need to know if files were specified by the user. | |
26989 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
26990 | +# The default lists apply if the user does not specify any file. | |
26991 | ac_need_defaults=: | |
26992 | while test $# != 0 | |
26993 | do | |
26994 | case $1 in | |
26995 | - --*=*) | |
26996 | - ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
26997 | - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
26998 | + --*=?*) | |
26999 | + ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
27000 | + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
27001 | + ac_shift=: | |
27002 | + ;; | |
27003 | + --*=) | |
27004 | + ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
27005 | + ac_optarg= | |
27006 | ac_shift=: | |
27007 | ;; | |
27008 | - -*) | |
27009 | + *) | |
27010 | ac_option=$1 | |
27011 | ac_optarg=$2 | |
27012 | ac_shift=shift | |
27013 | ;; | |
27014 | - *) # This is not an option, so the user has probably given explicit | |
27015 | - # arguments. | |
27016 | - ac_option=$1 | |
27017 | - ac_need_defaults=false;; | |
27018 | esac | |
27019 | ||
27020 | case $ac_option in | |
27021 | # Handling of the options. | |
27022 | -_ACEOF | |
27023 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
27024 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
27025 | ac_cs_recheck=: ;; | |
27026 | - --version | --vers* | -V ) | |
27027 | - echo "$ac_cs_version"; exit 0 ;; | |
27028 | - --he | --h) | |
27029 | - # Conflict between --help and --header | |
27030 | - { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
27031 | -Try \`$0 --help' for more information." >&5 | |
27032 | -echo "$as_me: error: ambiguous option: $1 | |
27033 | -Try \`$0 --help' for more information." >&2;} | |
27034 | - { (exit 1); exit 1; }; };; | |
27035 | - --help | --hel | -h ) | |
27036 | - echo "$ac_cs_usage"; exit 0 ;; | |
27037 | - --debug | --d* | -d ) | |
27038 | + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
27039 | + $as_echo "$ac_cs_version"; exit ;; | |
27040 | + --config | --confi | --conf | --con | --co | --c ) | |
27041 | + $as_echo "$ac_cs_config"; exit ;; | |
27042 | + --debug | --debu | --deb | --de | --d | -d ) | |
27043 | debug=: ;; | |
27044 | --file | --fil | --fi | --f ) | |
27045 | $ac_shift | |
27046 | - CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
27047 | + case $ac_optarg in | |
27048 | + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
27049 | + '') as_fn_error $? "missing file argument" ;; | |
27050 | + esac | |
27051 | + as_fn_append CONFIG_FILES " '$ac_optarg'" | |
27052 | ac_need_defaults=false;; | |
27053 | --header | --heade | --head | --hea ) | |
27054 | $ac_shift | |
27055 | - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
27056 | + case $ac_optarg in | |
27057 | + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
27058 | + esac | |
27059 | + as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
27060 | ac_need_defaults=false;; | |
27061 | + --he | --h) | |
27062 | + # Conflict between --help and --header | |
27063 | + as_fn_error $? "ambiguous option: \`$1' | |
27064 | +Try \`$0 --help' for more information.";; | |
27065 | + --help | --hel | -h ) | |
27066 | + $as_echo "$ac_cs_usage"; exit ;; | |
27067 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
27068 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
27069 | ac_cs_silent=: ;; | |
27070 | ||
27071 | # This is an error. | |
27072 | - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
27073 | -Try \`$0 --help' for more information." >&5 | |
27074 | -echo "$as_me: error: unrecognized option: $1 | |
27075 | -Try \`$0 --help' for more information." >&2;} | |
27076 | - { (exit 1); exit 1; }; } ;; | |
27077 | + -*) as_fn_error $? "unrecognized option: \`$1' | |
27078 | +Try \`$0 --help' for more information." ;; | |
27079 | ||
27080 | - *) ac_config_targets="$ac_config_targets $1" ;; | |
27081 | + *) as_fn_append ac_config_targets " $1" | |
27082 | + ac_need_defaults=false ;; | |
27083 | ||
27084 | esac | |
27085 | shift | |
27086 | @@ -15032,50 +8870,61 @@ | |
27087 | fi | |
27088 | ||
27089 | _ACEOF | |
27090 | -cat >>$CONFIG_STATUS <<_ACEOF | |
27091 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27092 | if \$ac_cs_recheck; then | |
27093 | - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
27094 | - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
27095 | + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
27096 | + shift | |
27097 | + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
27098 | + CONFIG_SHELL='$SHELL' | |
27099 | + export CONFIG_SHELL | |
27100 | + exec "\$@" | |
27101 | fi | |
27102 | ||
27103 | _ACEOF | |
27104 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
27105 | +exec 5>>config.log | |
27106 | +{ | |
27107 | + echo | |
27108 | + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
27109 | +## Running $as_me. ## | |
27110 | +_ASBOX | |
27111 | + $as_echo "$ac_log" | |
27112 | +} >&5 | |
27113 | ||
27114 | -cat >>$CONFIG_STATUS <<_ACEOF | |
27115 | +_ACEOF | |
27116 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27117 | # | |
27118 | -# INIT-COMMANDS section. | |
27119 | +# INIT-COMMANDS | |
27120 | # | |
27121 | - | |
27122 | +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
27123 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | |
27124 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | |
27125 | - # from automake. | |
27126 | + # from automake < 1.5. | |
27127 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
27128 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
27129 | LINGUAS="${LINGUAS-%UNSET%}" | |
27130 | ||
27131 | -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
27132 | ||
27133 | _ACEOF | |
27134 | ||
27135 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
27136 | ||
27137 | - | |
27138 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
27139 | +# Handling of arguments. | |
27140 | for ac_config_target in $ac_config_targets | |
27141 | do | |
27142 | - case "$ac_config_target" in | |
27143 | - # Handling of arguments. | |
27144 | - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
27145 | - "abook.spec" ) CONFIG_FILES="$CONFIG_FILES abook.spec" ;; | |
27146 | - "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; | |
27147 | - "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; | |
27148 | - "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
27149 | - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
27150 | - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
27151 | - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
27152 | -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
27153 | - { (exit 1); exit 1; }; };; | |
27154 | + case $ac_config_target in | |
27155 | + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
27156 | + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
27157 | + "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; | |
27158 | + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
27159 | + "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;; | |
27160 | + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; | |
27161 | + | |
27162 | + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
27163 | esac | |
27164 | done | |
27165 | ||
27166 | + | |
27167 | # If the user did not use the arguments to specify the items to instantiate, | |
27168 | # then the envvar interface is used. Set only those that are not. | |
27169 | # We use the long form for the default assignment because of an extremely | |
27170 | @@ -15087,758 +8936,680 @@ | |
27171 | fi | |
27172 | ||
27173 | # Have a temporary directory for convenience. Make it in the build tree | |
27174 | -# simply because there is no reason to put it here, and in addition, | |
27175 | +# simply because there is no reason against having it here, and in addition, | |
27176 | # creating and moving files from /tmp can sometimes cause problems. | |
27177 | -# Create a temporary directory, and hook for its removal unless debugging. | |
27178 | +# Hook for its removal unless debugging. | |
27179 | +# Note that there is a small window in which the directory will not be cleaned: | |
27180 | +# after its creation but before its name has been assigned to `$tmp'. | |
27181 | $debug || | |
27182 | { | |
27183 | - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
27184 | - trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
27185 | + tmp= ac_tmp= | |
27186 | + trap 'exit_status=$? | |
27187 | + : "${ac_tmp:=$tmp}" | |
27188 | + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
27189 | +' 0 | |
27190 | + trap 'as_fn_exit 1' 1 2 13 15 | |
27191 | } | |
27192 | - | |
27193 | # Create a (secure) tmp directory for tmp files. | |
27194 | ||
27195 | { | |
27196 | - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
27197 | - test -n "$tmp" && test -d "$tmp" | |
27198 | + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
27199 | + test -d "$tmp" | |
27200 | } || | |
27201 | { | |
27202 | - tmp=./confstat$$-$RANDOM | |
27203 | - (umask 077 && mkdir $tmp) | |
27204 | -} || | |
27205 | + tmp=./conf$$-$RANDOM | |
27206 | + (umask 077 && mkdir "$tmp") | |
27207 | +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
27208 | +ac_tmp=$tmp | |
27209 | + | |
27210 | +# Set up the scripts for CONFIG_FILES section. | |
27211 | +# No need to generate them if there are no CONFIG_FILES. | |
27212 | +# This happens for instance with `./config.status config.h'. | |
27213 | +if test -n "$CONFIG_FILES"; then | |
27214 | + | |
27215 | + | |
27216 | +ac_cr=`echo X | tr X '\015'` | |
27217 | +# On cygwin, bash can eat \r inside `` if the user requested igncr. | |
27218 | +# But we know of no other shell where ac_cr would be empty at this | |
27219 | +# point, so we can use a bashism as a fallback. | |
27220 | +if test "x$ac_cr" = x; then | |
27221 | + eval ac_cr=\$\'\\r\' | |
27222 | +fi | |
27223 | +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
27224 | +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
27225 | + ac_cs_awk_cr='\\r' | |
27226 | +else | |
27227 | + ac_cs_awk_cr=$ac_cr | |
27228 | +fi | |
27229 | + | |
27230 | +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
27231 | +_ACEOF | |
27232 | + | |
27233 | + | |
27234 | { | |
27235 | - echo "$me: cannot create a temporary directory in ." >&2 | |
27236 | - { (exit 1); exit 1; } | |
27237 | + echo "cat >conf$$subs.awk <<_ACEOF" && | |
27238 | + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
27239 | + echo "_ACEOF" | |
27240 | +} >conf$$subs.sh || | |
27241 | + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
27242 | +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
27243 | +ac_delim='%!_!# ' | |
27244 | +for ac_last_try in false false false false false :; do | |
27245 | + . ./conf$$subs.sh || | |
27246 | + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
27247 | + | |
27248 | + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
27249 | + if test $ac_delim_n = $ac_delim_num; then | |
27250 | + break | |
27251 | + elif $ac_last_try; then | |
27252 | + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
27253 | + else | |
27254 | + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
27255 | + fi | |
27256 | +done | |
27257 | +rm -f conf$$subs.sh | |
27258 | + | |
27259 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27260 | +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
27261 | +_ACEOF | |
27262 | +sed -n ' | |
27263 | +h | |
27264 | +s/^/S["/; s/!.*/"]=/ | |
27265 | +p | |
27266 | +g | |
27267 | +s/^[^!]*!// | |
27268 | +:repl | |
27269 | +t repl | |
27270 | +s/'"$ac_delim"'$// | |
27271 | +t delim | |
27272 | +:nl | |
27273 | +h | |
27274 | +s/\(.\{148\}\)..*/\1/ | |
27275 | +t more1 | |
27276 | +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
27277 | +p | |
27278 | +n | |
27279 | +b repl | |
27280 | +:more1 | |
27281 | +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
27282 | +p | |
27283 | +g | |
27284 | +s/.\{148\}// | |
27285 | +t nl | |
27286 | +:delim | |
27287 | +h | |
27288 | +s/\(.\{148\}\)..*/\1/ | |
27289 | +t more2 | |
27290 | +s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
27291 | +p | |
27292 | +b | |
27293 | +:more2 | |
27294 | +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
27295 | +p | |
27296 | +g | |
27297 | +s/.\{148\}// | |
27298 | +t delim | |
27299 | +' <conf$$subs.awk | sed ' | |
27300 | +/^[^""]/{ | |
27301 | + N | |
27302 | + s/\n// | |
27303 | +} | |
27304 | +' >>$CONFIG_STATUS || ac_write_fail=1 | |
27305 | +rm -f conf$$subs.awk | |
27306 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27307 | +_ACAWK | |
27308 | +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
27309 | + for (key in S) S_is_set[key] = 1 | |
27310 | + FS = "\a" | |
27311 | + | |
27312 | +} | |
27313 | +{ | |
27314 | + line = $ 0 | |
27315 | + nfields = split(line, field, "@") | |
27316 | + substed = 0 | |
27317 | + len = length(field[1]) | |
27318 | + for (i = 2; i < nfields; i++) { | |
27319 | + key = field[i] | |
27320 | + keylen = length(key) | |
27321 | + if (S_is_set[key]) { | |
27322 | + value = S[key] | |
27323 | + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
27324 | + len += length(value) + length(field[++i]) | |
27325 | + substed = 1 | |
27326 | + } else | |
27327 | + len += 1 + keylen | |
27328 | + } | |
27329 | + | |
27330 | + print line | |
27331 | } | |
27332 | ||
27333 | +_ACAWK | |
27334 | +_ACEOF | |
27335 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
27336 | +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
27337 | + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
27338 | +else | |
27339 | + cat | |
27340 | +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
27341 | + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
27342 | _ACEOF | |
27343 | ||
27344 | -cat >>$CONFIG_STATUS <<_ACEOF | |
27345 | +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
27346 | +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
27347 | +# trailing colons and then remove the whole line if VPATH becomes empty | |
27348 | +# (actually we leave an empty line to preserve line numbers). | |
27349 | +if test "x$srcdir" = x.; then | |
27350 | + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
27351 | +h | |
27352 | +s/// | |
27353 | +s/^/:/ | |
27354 | +s/[ ]*$/:/ | |
27355 | +s/:\$(srcdir):/:/g | |
27356 | +s/:\${srcdir}:/:/g | |
27357 | +s/:@srcdir@:/:/g | |
27358 | +s/^:*// | |
27359 | +s/:*$// | |
27360 | +x | |
27361 | +s/\(=[ ]*\).*/\1/ | |
27362 | +G | |
27363 | +s/\n// | |
27364 | +s/^[^=]*=[ ]*$// | |
27365 | +}' | |
27366 | +fi | |
27367 | ||
27368 | -# | |
27369 | -# CONFIG_FILES section. | |
27370 | -# | |
27371 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
27372 | +fi # test -n "$CONFIG_FILES" | |
27373 | ||
27374 | -# No need to generate the scripts if there are no CONFIG_FILES. | |
27375 | -# This happens for instance when ./config.status config.h | |
27376 | -if test -n "\$CONFIG_FILES"; then | |
27377 | - # Protect against being on the right side of a sed subst in config.status. | |
27378 | - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
27379 | - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
27380 | -s,@SHELL@,$SHELL,;t t | |
27381 | -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
27382 | -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
27383 | -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
27384 | -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
27385 | -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
27386 | -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
27387 | -s,@exec_prefix@,$exec_prefix,;t t | |
27388 | -s,@prefix@,$prefix,;t t | |
27389 | -s,@program_transform_name@,$program_transform_name,;t t | |
27390 | -s,@bindir@,$bindir,;t t | |
27391 | -s,@sbindir@,$sbindir,;t t | |
27392 | -s,@libexecdir@,$libexecdir,;t t | |
27393 | -s,@datadir@,$datadir,;t t | |
27394 | -s,@sysconfdir@,$sysconfdir,;t t | |
27395 | -s,@sharedstatedir@,$sharedstatedir,;t t | |
27396 | -s,@localstatedir@,$localstatedir,;t t | |
27397 | -s,@libdir@,$libdir,;t t | |
27398 | -s,@includedir@,$includedir,;t t | |
27399 | -s,@oldincludedir@,$oldincludedir,;t t | |
27400 | -s,@infodir@,$infodir,;t t | |
27401 | -s,@mandir@,$mandir,;t t | |
27402 | -s,@build_alias@,$build_alias,;t t | |
27403 | -s,@host_alias@,$host_alias,;t t | |
27404 | -s,@target_alias@,$target_alias,;t t | |
27405 | -s,@DEFS@,$DEFS,;t t | |
27406 | -s,@ECHO_C@,$ECHO_C,;t t | |
27407 | -s,@ECHO_N@,$ECHO_N,;t t | |
27408 | -s,@ECHO_T@,$ECHO_T,;t t | |
27409 | -s,@LIBS@,$LIBS,;t t | |
27410 | -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
27411 | -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
27412 | -s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
27413 | -s,@CYGPATH_W@,$CYGPATH_W,;t t | |
27414 | -s,@PACKAGE@,$PACKAGE,;t t | |
27415 | -s,@VERSION@,$VERSION,;t t | |
27416 | -s,@ACLOCAL@,$ACLOCAL,;t t | |
27417 | -s,@AUTOCONF@,$AUTOCONF,;t t | |
27418 | -s,@AUTOMAKE@,$AUTOMAKE,;t t | |
27419 | -s,@AUTOHEADER@,$AUTOHEADER,;t t | |
27420 | -s,@MAKEINFO@,$MAKEINFO,;t t | |
27421 | -s,@install_sh@,$install_sh,;t t | |
27422 | -s,@STRIP@,$STRIP,;t t | |
27423 | -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
27424 | -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
27425 | -s,@mkdir_p@,$mkdir_p,;t t | |
27426 | -s,@AWK@,$AWK,;t t | |
27427 | -s,@SET_MAKE@,$SET_MAKE,;t t | |
27428 | -s,@am__leading_dot@,$am__leading_dot,;t t | |
27429 | -s,@AMTAR@,$AMTAR,;t t | |
27430 | -s,@am__tar@,$am__tar,;t t | |
27431 | -s,@am__untar@,$am__untar,;t t | |
27432 | -s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
27433 | -s,@USE_NLS@,$USE_NLS,;t t | |
27434 | -s,@MSGFMT@,$MSGFMT,;t t | |
27435 | -s,@GMSGFMT@,$GMSGFMT,;t t | |
27436 | -s,@XGETTEXT@,$XGETTEXT,;t t | |
27437 | -s,@MSGMERGE@,$MSGMERGE,;t t | |
27438 | -s,@CC@,$CC,;t t | |
27439 | -s,@CFLAGS@,$CFLAGS,;t t | |
27440 | -s,@LDFLAGS@,$LDFLAGS,;t t | |
27441 | -s,@CPPFLAGS@,$CPPFLAGS,;t t | |
27442 | -s,@ac_ct_CC@,$ac_ct_CC,;t t | |
27443 | -s,@EXEEXT@,$EXEEXT,;t t | |
27444 | -s,@OBJEXT@,$OBJEXT,;t t | |
27445 | -s,@DEPDIR@,$DEPDIR,;t t | |
27446 | -s,@am__include@,$am__include,;t t | |
27447 | -s,@am__quote@,$am__quote,;t t | |
27448 | -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
27449 | -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
27450 | -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
27451 | -s,@CCDEPMODE@,$CCDEPMODE,;t t | |
27452 | -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
27453 | -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
27454 | -s,@build@,$build,;t t | |
27455 | -s,@build_cpu@,$build_cpu,;t t | |
27456 | -s,@build_vendor@,$build_vendor,;t t | |
27457 | -s,@build_os@,$build_os,;t t | |
27458 | -s,@host@,$host,;t t | |
27459 | -s,@host_cpu@,$host_cpu,;t t | |
27460 | -s,@host_vendor@,$host_vendor,;t t | |
27461 | -s,@host_os@,$host_os,;t t | |
27462 | -s,@CPP@,$CPP,;t t | |
27463 | -s,@EGREP@,$EGREP,;t t | |
27464 | -s,@GLIBC2@,$GLIBC2,;t t | |
27465 | -s,@RANLIB@,$RANLIB,;t t | |
27466 | -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
27467 | -s,@ALLOCA@,$ALLOCA,;t t | |
27468 | -s,@GLIBC21@,$GLIBC21,;t t | |
27469 | -s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t | |
27470 | -s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t | |
27471 | -s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t | |
27472 | -s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t | |
27473 | -s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t | |
27474 | -s,@LIBICONV@,$LIBICONV,;t t | |
27475 | -s,@LTLIBICONV@,$LTLIBICONV,;t t | |
27476 | -s,@INTLBISON@,$INTLBISON,;t t | |
27477 | -s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t | |
27478 | -s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
27479 | -s,@CATOBJEXT@,$CATOBJEXT,;t t | |
27480 | -s,@DATADIRNAME@,$DATADIRNAME,;t t | |
27481 | -s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
27482 | -s,@GENCAT@,$GENCAT,;t t | |
27483 | -s,@INTLOBJS@,$INTLOBJS,;t t | |
27484 | -s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t | |
27485 | -s,@INTLLIBS@,$INTLLIBS,;t t | |
27486 | -s,@LIBINTL@,$LIBINTL,;t t | |
27487 | -s,@LTLIBINTL@,$LTLIBINTL,;t t | |
27488 | -s,@POSUB@,$POSUB,;t t | |
27489 | -s,@localedir@,$localedir,;t t | |
27490 | -s,@USE_INCLUDED_INTL_H_TRUE@,$USE_INCLUDED_INTL_H_TRUE,;t t | |
27491 | -s,@USE_INCLUDED_INTL_H_FALSE@,$USE_INCLUDED_INTL_H_FALSE,;t t | |
27492 | -s,@U@,$U,;t t | |
27493 | -s,@ANSI2KNR@,$ANSI2KNR,;t t | |
27494 | -s,@LIBOBJS@,$LIBOBJS,;t t | |
27495 | -s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
27496 | -CEOF | |
27497 | - | |
27498 | -_ACEOF | |
27499 | - | |
27500 | - cat >>$CONFIG_STATUS <<\_ACEOF | |
27501 | - # Split the substitutions into bite-sized pieces for seds with | |
27502 | - # small command number limits, like on Digital OSF/1 and HP-UX. | |
27503 | - ac_max_sed_lines=48 | |
27504 | - ac_sed_frag=1 # Number of current file. | |
27505 | - ac_beg=1 # First line for current file. | |
27506 | - ac_end=$ac_max_sed_lines # Line after last line for current file. | |
27507 | - ac_more_lines=: | |
27508 | - ac_sed_cmds= | |
27509 | - while $ac_more_lines; do | |
27510 | - if test $ac_beg -gt 1; then | |
27511 | - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
27512 | - else | |
27513 | - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
27514 | - fi | |
27515 | - if test ! -s $tmp/subs.frag; then | |
27516 | - ac_more_lines=false | |
27517 | - else | |
27518 | - # The purpose of the label and of the branching condition is to | |
27519 | - # speed up the sed processing (if there are no `@' at all, there | |
27520 | - # is no need to browse any of the substitutions). | |
27521 | - # These are the two extra sed commands mentioned above. | |
27522 | - (echo ':t | |
27523 | - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
27524 | - if test -z "$ac_sed_cmds"; then | |
27525 | - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
27526 | - else | |
27527 | - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
27528 | - fi | |
27529 | - ac_sed_frag=`expr $ac_sed_frag + 1` | |
27530 | - ac_beg=$ac_end | |
27531 | - ac_end=`expr $ac_end + $ac_max_sed_lines` | |
27532 | - fi | |
27533 | - done | |
27534 | - if test -z "$ac_sed_cmds"; then | |
27535 | - ac_sed_cmds=cat | |
27536 | +# Set up the scripts for CONFIG_HEADERS section. | |
27537 | +# No need to generate them if there are no CONFIG_HEADERS. | |
27538 | +# This happens for instance with `./config.status Makefile'. | |
27539 | +if test -n "$CONFIG_HEADERS"; then | |
27540 | +cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
27541 | +BEGIN { | |
27542 | +_ACEOF | |
27543 | + | |
27544 | +# Transform confdefs.h into an awk script `defines.awk', embedded as | |
27545 | +# here-document in config.status, that substitutes the proper values into | |
27546 | +# config.h.in to produce config.h. | |
27547 | + | |
27548 | +# Create a delimiter string that does not exist in confdefs.h, to ease | |
27549 | +# handling of long lines. | |
27550 | +ac_delim='%!_!# ' | |
27551 | +for ac_last_try in false false :; do | |
27552 | + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
27553 | + if test -z "$ac_tt"; then | |
27554 | + break | |
27555 | + elif $ac_last_try; then | |
27556 | + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
27557 | + else | |
27558 | + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
27559 | fi | |
27560 | -fi # test -n "$CONFIG_FILES" | |
27561 | +done | |
27562 | ||
27563 | +# For the awk script, D is an array of macro values keyed by name, | |
27564 | +# likewise P contains macro parameters if any. Preserve backslash | |
27565 | +# newline sequences. | |
27566 | + | |
27567 | +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
27568 | +sed -n ' | |
27569 | +s/.\{148\}/&'"$ac_delim"'/g | |
27570 | +t rset | |
27571 | +:rset | |
27572 | +s/^[ ]*#[ ]*define[ ][ ]*/ / | |
27573 | +t def | |
27574 | +d | |
27575 | +:def | |
27576 | +s/\\$// | |
27577 | +t bsnl | |
27578 | +s/["\\]/\\&/g | |
27579 | +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
27580 | +D["\1"]=" \3"/p | |
27581 | +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
27582 | +d | |
27583 | +:bsnl | |
27584 | +s/["\\]/\\&/g | |
27585 | +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
27586 | +D["\1"]=" \3\\\\\\n"\\/p | |
27587 | +t cont | |
27588 | +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
27589 | +t cont | |
27590 | +d | |
27591 | +:cont | |
27592 | +n | |
27593 | +s/.\{148\}/&'"$ac_delim"'/g | |
27594 | +t clear | |
27595 | +:clear | |
27596 | +s/\\$// | |
27597 | +t bsnlc | |
27598 | +s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
27599 | +d | |
27600 | +:bsnlc | |
27601 | +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
27602 | +b cont | |
27603 | +' <confdefs.h | sed ' | |
27604 | +s/'"$ac_delim"'/"\\\ | |
27605 | +"/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
27606 | + | |
27607 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27608 | + for (key in D) D_is_set[key] = 1 | |
27609 | + FS = "\a" | |
27610 | +} | |
27611 | +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
27612 | + line = \$ 0 | |
27613 | + split(line, arg, " ") | |
27614 | + if (arg[1] == "#") { | |
27615 | + defundef = arg[2] | |
27616 | + mac1 = arg[3] | |
27617 | + } else { | |
27618 | + defundef = substr(arg[1], 2) | |
27619 | + mac1 = arg[2] | |
27620 | + } | |
27621 | + split(mac1, mac2, "(") #) | |
27622 | + macro = mac2[1] | |
27623 | + prefix = substr(line, 1, index(line, defundef) - 1) | |
27624 | + if (D_is_set[macro]) { | |
27625 | + # Preserve the white space surrounding the "#". | |
27626 | + print prefix "define", macro P[macro] D[macro] | |
27627 | + next | |
27628 | + } else { | |
27629 | + # Replace #undef with comments. This is necessary, for example, | |
27630 | + # in the case of _POSIX_SOURCE, which is predefined and required | |
27631 | + # on some systems where configure will not decide to define it. | |
27632 | + if (defundef == "undef") { | |
27633 | + print "/*", prefix defundef, macro, "*/" | |
27634 | + next | |
27635 | + } | |
27636 | + } | |
27637 | +} | |
27638 | +{ print } | |
27639 | +_ACAWK | |
27640 | _ACEOF | |
27641 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
27642 | -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
27643 | - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
27644 | - case $ac_file in | |
27645 | - - | *:- | *:-:* ) # input from stdin | |
27646 | - cat >$tmp/stdin | |
27647 | - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
27648 | - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
27649 | - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
27650 | - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
27651 | - * ) ac_file_in=$ac_file.in ;; | |
27652 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
27653 | + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
27654 | +fi # test -n "$CONFIG_HEADERS" | |
27655 | + | |
27656 | + | |
27657 | +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
27658 | +shift | |
27659 | +for ac_tag | |
27660 | +do | |
27661 | + case $ac_tag in | |
27662 | + :[FHLC]) ac_mode=$ac_tag; continue;; | |
27663 | + esac | |
27664 | + case $ac_mode$ac_tag in | |
27665 | + :[FHL]*:*);; | |
27666 | + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
27667 | + :[FH]-) ac_tag=-:-;; | |
27668 | + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
27669 | + esac | |
27670 | + ac_save_IFS=$IFS | |
27671 | + IFS=: | |
27672 | + set x $ac_tag | |
27673 | + IFS=$ac_save_IFS | |
27674 | + shift | |
27675 | + ac_file=$1 | |
27676 | + shift | |
27677 | + | |
27678 | + case $ac_mode in | |
27679 | + :L) ac_source=$1;; | |
27680 | + :[FH]) | |
27681 | + ac_file_inputs= | |
27682 | + for ac_f | |
27683 | + do | |
27684 | + case $ac_f in | |
27685 | + -) ac_f="$ac_tmp/stdin";; | |
27686 | + *) # Look for the file first in the build tree, then in the source tree | |
27687 | + # (if the path is not absolute). The absolute path cannot be DOS-style, | |
27688 | + # because $ac_f cannot contain `:'. | |
27689 | + test -f "$ac_f" || | |
27690 | + case $ac_f in | |
27691 | + [\\/$]*) false;; | |
27692 | + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
27693 | + esac || | |
27694 | + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
27695 | + esac | |
27696 | + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
27697 | + as_fn_append ac_file_inputs " '$ac_f'" | |
27698 | + done | |
27699 | + | |
27700 | + # Let's still pretend it is `configure' which instantiates (i.e., don't | |
27701 | + # use $as_me), people would be surprised to read: | |
27702 | + # /* config.h. Generated by config.status. */ | |
27703 | + configure_input='Generated from '` | |
27704 | + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
27705 | + `' by configure.' | |
27706 | + if test x"$ac_file" != x-; then | |
27707 | + configure_input="$ac_file. $configure_input" | |
27708 | + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
27709 | +$as_echo "$as_me: creating $ac_file" >&6;} | |
27710 | + fi | |
27711 | + # Neutralize special characters interpreted by sed in replacement strings. | |
27712 | + case $configure_input in #( | |
27713 | + *\&* | *\|* | *\\* ) | |
27714 | + ac_sed_conf_input=`$as_echo "$configure_input" | | |
27715 | + sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
27716 | + *) ac_sed_conf_input=$configure_input;; | |
27717 | + esac | |
27718 | + | |
27719 | + case $ac_tag in | |
27720 | + *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
27721 | + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
27722 | + esac | |
27723 | + ;; | |
27724 | esac | |
27725 | ||
27726 | - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
27727 | - ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
27728 | + ac_dir=`$as_dirname -- "$ac_file" || | |
27729 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27730 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
27731 | X"$ac_file" : 'X\(//\)$' \| \ | |
27732 | - X"$ac_file" : 'X\(/\)' \| \ | |
27733 | - . : '\(.\)' 2>/dev/null || | |
27734 | -echo X"$ac_file" | | |
27735 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
27736 | - /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
27737 | - /^X\(\/\/\)$/{ s//\1/; q; } | |
27738 | - /^X\(\/\).*/{ s//\1/; q; } | |
27739 | - s/.*/./; q'` | |
27740 | - { if $as_mkdir_p; then | |
27741 | - mkdir -p "$ac_dir" | |
27742 | - else | |
27743 | - as_dir="$ac_dir" | |
27744 | - as_dirs= | |
27745 | - while test ! -d "$as_dir"; do | |
27746 | - as_dirs="$as_dir $as_dirs" | |
27747 | - as_dir=`(dirname "$as_dir") 2>/dev/null || | |
27748 | -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27749 | - X"$as_dir" : 'X\(//\)[^/]' \| \ | |
27750 | - X"$as_dir" : 'X\(//\)$' \| \ | |
27751 | - X"$as_dir" : 'X\(/\)' \| \ | |
27752 | - . : '\(.\)' 2>/dev/null || | |
27753 | -echo X"$as_dir" | | |
27754 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
27755 | - /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
27756 | - /^X\(\/\/\)$/{ s//\1/; q; } | |
27757 | - /^X\(\/\).*/{ s//\1/; q; } | |
27758 | - s/.*/./; q'` | |
27759 | - done | |
27760 | - test ! -n "$as_dirs" || mkdir $as_dirs | |
27761 | - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
27762 | -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
27763 | - { (exit 1); exit 1; }; }; } | |
27764 | - | |
27765 | + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
27766 | +$as_echo X"$ac_file" | | |
27767 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
27768 | + s//\1/ | |
27769 | + q | |
27770 | + } | |
27771 | + /^X\(\/\/\)[^/].*/{ | |
27772 | + s//\1/ | |
27773 | + q | |
27774 | + } | |
27775 | + /^X\(\/\/\)$/{ | |
27776 | + s//\1/ | |
27777 | + q | |
27778 | + } | |
27779 | + /^X\(\/\).*/{ | |
27780 | + s//\1/ | |
27781 | + q | |
27782 | + } | |
27783 | + s/.*/./; q'` | |
27784 | + as_dir="$ac_dir"; as_fn_mkdir_p | |
27785 | ac_builddir=. | |
27786 | ||
27787 | -if test "$ac_dir" != .; then | |
27788 | - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
27789 | - # A "../" for each directory in $ac_dir_suffix. | |
27790 | - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
27791 | -else | |
27792 | - ac_dir_suffix= ac_top_builddir= | |
27793 | -fi | |
27794 | +case "$ac_dir" in | |
27795 | +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
27796 | +*) | |
27797 | + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
27798 | + # A ".." for each directory in $ac_dir_suffix. | |
27799 | + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
27800 | + case $ac_top_builddir_sub in | |
27801 | + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
27802 | + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
27803 | + esac ;; | |
27804 | +esac | |
27805 | +ac_abs_top_builddir=$ac_pwd | |
27806 | +ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
27807 | +# for backward compatibility: | |
27808 | +ac_top_builddir=$ac_top_build_prefix | |
27809 | ||
27810 | case $srcdir in | |
27811 | - .) # No --srcdir option. We are building in place. | |
27812 | + .) # We are building in place. | |
27813 | ac_srcdir=. | |
27814 | - if test -z "$ac_top_builddir"; then | |
27815 | - ac_top_srcdir=. | |
27816 | - else | |
27817 | - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
27818 | - fi ;; | |
27819 | - [\\/]* | ?:[\\/]* ) # Absolute path. | |
27820 | + ac_top_srcdir=$ac_top_builddir_sub | |
27821 | + ac_abs_top_srcdir=$ac_pwd ;; | |
27822 | + [\\/]* | ?:[\\/]* ) # Absolute name. | |
27823 | ac_srcdir=$srcdir$ac_dir_suffix; | |
27824 | - ac_top_srcdir=$srcdir ;; | |
27825 | - *) # Relative path. | |
27826 | - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
27827 | - ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
27828 | -esac | |
27829 | + ac_top_srcdir=$srcdir | |
27830 | + ac_abs_top_srcdir=$srcdir ;; | |
27831 | + *) # Relative name. | |
27832 | + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
27833 | + ac_top_srcdir=$ac_top_build_prefix$srcdir | |
27834 | + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
27835 | +esac | |
27836 | +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
27837 | ||
27838 | -# Do not use `cd foo && pwd` to compute absolute paths, because | |
27839 | -# the directories may not exist. | |
27840 | -case `pwd` in | |
27841 | -.) ac_abs_builddir="$ac_dir";; | |
27842 | -*) | |
27843 | - case "$ac_dir" in | |
27844 | - .) ac_abs_builddir=`pwd`;; | |
27845 | - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
27846 | - *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
27847 | - esac;; | |
27848 | -esac | |
27849 | -case $ac_abs_builddir in | |
27850 | -.) ac_abs_top_builddir=${ac_top_builddir}.;; | |
27851 | -*) | |
27852 | - case ${ac_top_builddir}. in | |
27853 | - .) ac_abs_top_builddir=$ac_abs_builddir;; | |
27854 | - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
27855 | - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
27856 | - esac;; | |
27857 | -esac | |
27858 | -case $ac_abs_builddir in | |
27859 | -.) ac_abs_srcdir=$ac_srcdir;; | |
27860 | -*) | |
27861 | - case $ac_srcdir in | |
27862 | - .) ac_abs_srcdir=$ac_abs_builddir;; | |
27863 | - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
27864 | - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
27865 | - esac;; | |
27866 | -esac | |
27867 | -case $ac_abs_builddir in | |
27868 | -.) ac_abs_top_srcdir=$ac_top_srcdir;; | |
27869 | -*) | |
27870 | - case $ac_top_srcdir in | |
27871 | - .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
27872 | - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
27873 | - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
27874 | - esac;; | |
27875 | -esac | |
27876 | ||
27877 | + case $ac_mode in | |
27878 | + :F) | |
27879 | + # | |
27880 | + # CONFIG_FILE | |
27881 | + # | |
27882 | ||
27883 | case $INSTALL in | |
27884 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
27885 | - *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
27886 | + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
27887 | esac | |
27888 | + ac_MKDIR_P=$MKDIR_P | |
27889 | + case $MKDIR_P in | |
27890 | + [\\/$]* | ?:[\\/]* ) ;; | |
27891 | + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
27892 | + esac | |
27893 | +_ACEOF | |
27894 | ||
27895 | - if test x"$ac_file" != x-; then | |
27896 | - { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
27897 | -echo "$as_me: creating $ac_file" >&6;} | |
27898 | - rm -f "$ac_file" | |
27899 | - fi | |
27900 | - # Let's still pretend it is `configure' which instantiates (i.e., don't | |
27901 | - # use $as_me), people would be surprised to read: | |
27902 | - # /* config.h. Generated by config.status. */ | |
27903 | - if test x"$ac_file" = x-; then | |
27904 | - configure_input= | |
27905 | - else | |
27906 | - configure_input="$ac_file. " | |
27907 | - fi | |
27908 | - configure_input=$configure_input"Generated from `echo $ac_file_in | | |
27909 | - sed 's,.*/,,'` by configure." | |
27910 | - | |
27911 | - # First look for the input files in the build tree, otherwise in the | |
27912 | - # src tree. | |
27913 | - ac_file_inputs=`IFS=: | |
27914 | - for f in $ac_file_in; do | |
27915 | - case $f in | |
27916 | - -) echo $tmp/stdin ;; | |
27917 | - [\\/$]*) | |
27918 | - # Absolute (can't be DOS-style, as IFS=:) | |
27919 | - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
27920 | -echo "$as_me: error: cannot find input file: $f" >&2;} | |
27921 | - { (exit 1); exit 1; }; } | |
27922 | - echo "$f";; | |
27923 | - *) # Relative | |
27924 | - if test -f "$f"; then | |
27925 | - # Build tree | |
27926 | - echo "$f" | |
27927 | - elif test -f "$srcdir/$f"; then | |
27928 | - # Source tree | |
27929 | - echo "$srcdir/$f" | |
27930 | - else | |
27931 | - # /dev/null tree | |
27932 | - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
27933 | -echo "$as_me: error: cannot find input file: $f" >&2;} | |
27934 | - { (exit 1); exit 1; }; } | |
27935 | - fi;; | |
27936 | - esac | |
27937 | - done` || { (exit 1); exit 1; } | |
27938 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
27939 | +# If the template does not know about datarootdir, expand it. | |
27940 | +# FIXME: This hack should be removed a few years after 2.60. | |
27941 | +ac_datarootdir_hack=; ac_datarootdir_seen= | |
27942 | +ac_sed_dataroot=' | |
27943 | +/datarootdir/ { | |
27944 | + p | |
27945 | + q | |
27946 | +} | |
27947 | +/@datadir@/p | |
27948 | +/@docdir@/p | |
27949 | +/@infodir@/p | |
27950 | +/@localedir@/p | |
27951 | +/@mandir@/p' | |
27952 | +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
27953 | +*datarootdir*) ac_datarootdir_seen=yes;; | |
27954 | +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
27955 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
27956 | +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
27957 | +_ACEOF | |
27958 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27959 | + ac_datarootdir_hack=' | |
27960 | + s&@datadir@&$datadir&g | |
27961 | + s&@docdir@&$docdir&g | |
27962 | + s&@infodir@&$infodir&g | |
27963 | + s&@localedir@&$localedir&g | |
27964 | + s&@mandir@&$mandir&g | |
27965 | + s&\\\${datarootdir}&$datarootdir&g' ;; | |
27966 | +esac | |
27967 | _ACEOF | |
27968 | -cat >>$CONFIG_STATUS <<_ACEOF | |
27969 | - sed "$ac_vpsub | |
27970 | + | |
27971 | +# Neutralize VPATH when `$srcdir' = `.'. | |
27972 | +# Shell code in configure.ac might set extrasub. | |
27973 | +# FIXME: do we really want to maintain this feature? | |
27974 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27975 | +ac_sed_extra="$ac_vpsub | |
27976 | $extrasub | |
27977 | _ACEOF | |
27978 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
27979 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
27980 | :t | |
27981 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
27982 | -s,@configure_input@,$configure_input,;t t | |
27983 | -s,@srcdir@,$ac_srcdir,;t t | |
27984 | -s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
27985 | -s,@top_srcdir@,$ac_top_srcdir,;t t | |
27986 | -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
27987 | -s,@builddir@,$ac_builddir,;t t | |
27988 | -s,@abs_builddir@,$ac_abs_builddir,;t t | |
27989 | -s,@top_builddir@,$ac_top_builddir,;t t | |
27990 | -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
27991 | -s,@INSTALL@,$ac_INSTALL,;t t | |
27992 | -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
27993 | - rm -f $tmp/stdin | |
27994 | - if test x"$ac_file" != x-; then | |
27995 | - mv $tmp/out $ac_file | |
27996 | - else | |
27997 | - cat $tmp/out | |
27998 | - rm -f $tmp/out | |
27999 | - fi | |
28000 | - | |
28001 | -done | |
28002 | -_ACEOF | |
28003 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
28004 | - | |
28005 | -# | |
28006 | -# CONFIG_HEADER section. | |
28007 | -# | |
28008 | +s|@configure_input@|$ac_sed_conf_input|;t t | |
28009 | +s&@top_builddir@&$ac_top_builddir_sub&;t t | |
28010 | +s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
28011 | +s&@srcdir@&$ac_srcdir&;t t | |
28012 | +s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
28013 | +s&@top_srcdir@&$ac_top_srcdir&;t t | |
28014 | +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
28015 | +s&@builddir@&$ac_builddir&;t t | |
28016 | +s&@abs_builddir@&$ac_abs_builddir&;t t | |
28017 | +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
28018 | +s&@INSTALL@&$ac_INSTALL&;t t | |
28019 | +s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
28020 | +$ac_datarootdir_hack | |
28021 | +" | |
28022 | +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
28023 | + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
28024 | + | |
28025 | +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
28026 | + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
28027 | + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
28028 | + "$ac_tmp/out"`; test -z "$ac_out"; } && | |
28029 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
28030 | +which seems to be undefined. Please make sure it is defined" >&5 | |
28031 | +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
28032 | +which seems to be undefined. Please make sure it is defined" >&2;} | |
28033 | ||
28034 | -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
28035 | -# NAME is the cpp macro being defined and VALUE is the value it is being given. | |
28036 | -# | |
28037 | -# ac_d sets the value in "#define NAME VALUE" lines. | |
28038 | -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
28039 | -ac_dB='[ ].*$,\1#\2' | |
28040 | -ac_dC=' ' | |
28041 | -ac_dD=',;t' | |
28042 | -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
28043 | -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
28044 | -ac_uB='$,\1#\2define\3' | |
28045 | -ac_uC=' ' | |
28046 | -ac_uD=',;t' | |
28047 | - | |
28048 | -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
28049 | - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
28050 | + rm -f "$ac_tmp/stdin" | |
28051 | case $ac_file in | |
28052 | - - | *:- | *:-:* ) # input from stdin | |
28053 | - cat >$tmp/stdin | |
28054 | - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
28055 | - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
28056 | - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
28057 | - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
28058 | - * ) ac_file_in=$ac_file.in ;; | |
28059 | - esac | |
28060 | - | |
28061 | - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
28062 | -echo "$as_me: creating $ac_file" >&6;} | |
28063 | - | |
28064 | - # First look for the input files in the build tree, otherwise in the | |
28065 | - # src tree. | |
28066 | - ac_file_inputs=`IFS=: | |
28067 | - for f in $ac_file_in; do | |
28068 | - case $f in | |
28069 | - -) echo $tmp/stdin ;; | |
28070 | - [\\/$]*) | |
28071 | - # Absolute (can't be DOS-style, as IFS=:) | |
28072 | - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
28073 | -echo "$as_me: error: cannot find input file: $f" >&2;} | |
28074 | - { (exit 1); exit 1; }; } | |
28075 | - # Do quote $f, to prevent DOS paths from being IFS'd. | |
28076 | - echo "$f";; | |
28077 | - *) # Relative | |
28078 | - if test -f "$f"; then | |
28079 | - # Build tree | |
28080 | - echo "$f" | |
28081 | - elif test -f "$srcdir/$f"; then | |
28082 | - # Source tree | |
28083 | - echo "$srcdir/$f" | |
28084 | - else | |
28085 | - # /dev/null tree | |
28086 | - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
28087 | -echo "$as_me: error: cannot find input file: $f" >&2;} | |
28088 | - { (exit 1); exit 1; }; } | |
28089 | - fi;; | |
28090 | - esac | |
28091 | - done` || { (exit 1); exit 1; } | |
28092 | - # Remove the trailing spaces. | |
28093 | - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
28094 | - | |
28095 | -_ACEOF | |
28096 | - | |
28097 | -# Transform confdefs.h into two sed scripts, `conftest.defines' and | |
28098 | -# `conftest.undefs', that substitutes the proper values into | |
28099 | -# config.h.in to produce config.h. The first handles `#define' | |
28100 | -# templates, and the second `#undef' templates. | |
28101 | -# And first: Protect against being on the right side of a sed subst in | |
28102 | -# config.status. Protect against being in an unquoted here document | |
28103 | -# in config.status. | |
28104 | -rm -f conftest.defines conftest.undefs | |
28105 | -# Using a here document instead of a string reduces the quoting nightmare. | |
28106 | -# Putting comments in sed scripts is not portable. | |
28107 | -# | |
28108 | -# `end' is used to avoid that the second main sed command (meant for | |
28109 | -# 0-ary CPP macros) applies to n-ary macro definitions. | |
28110 | -# See the Autoconf documentation for `clear'. | |
28111 | -cat >confdef2sed.sed <<\_ACEOF | |
28112 | -s/[\\&,]/\\&/g | |
28113 | -s,[\\$`],\\&,g | |
28114 | -t clear | |
28115 | -: clear | |
28116 | -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
28117 | -t end | |
28118 | -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
28119 | -: end | |
28120 | -_ACEOF | |
28121 | -# If some macros were called several times there might be several times | |
28122 | -# the same #defines, which is useless. Nevertheless, we may not want to | |
28123 | -# sort them, since we want the *last* AC-DEFINE to be honored. | |
28124 | -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
28125 | -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
28126 | -rm -f confdef2sed.sed | |
28127 | - | |
28128 | -# This sed command replaces #undef with comments. This is necessary, for | |
28129 | -# example, in the case of _POSIX_SOURCE, which is predefined and required | |
28130 | -# on some systems where configure will not decide to define it. | |
28131 | -cat >>conftest.undefs <<\_ACEOF | |
28132 | -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
28133 | -_ACEOF | |
28134 | - | |
28135 | -# Break up conftest.defines because some shells have a limit on the size | |
28136 | -# of here documents, and old seds have small limits too (100 cmds). | |
28137 | -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
28138 | -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
28139 | -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
28140 | -echo ' :' >>$CONFIG_STATUS | |
28141 | -rm -f conftest.tail | |
28142 | -while grep . conftest.defines >/dev/null | |
28143 | -do | |
28144 | - # Write a limited-size here document to $tmp/defines.sed. | |
28145 | - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
28146 | - # Speed up: don't consider the non `#define' lines. | |
28147 | - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
28148 | - # Work around the forget-to-reset-the-flag bug. | |
28149 | - echo 't clr' >>$CONFIG_STATUS | |
28150 | - echo ': clr' >>$CONFIG_STATUS | |
28151 | - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
28152 | - echo 'CEOF | |
28153 | - sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
28154 | - rm -f $tmp/in | |
28155 | - mv $tmp/out $tmp/in | |
28156 | -' >>$CONFIG_STATUS | |
28157 | - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
28158 | - rm -f conftest.defines | |
28159 | - mv conftest.tail conftest.defines | |
28160 | -done | |
28161 | -rm -f conftest.defines | |
28162 | -echo ' fi # grep' >>$CONFIG_STATUS | |
28163 | -echo >>$CONFIG_STATUS | |
28164 | - | |
28165 | -# Break up conftest.undefs because some shells have a limit on the size | |
28166 | -# of here documents, and old seds have small limits too (100 cmds). | |
28167 | -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
28168 | -rm -f conftest.tail | |
28169 | -while grep . conftest.undefs >/dev/null | |
28170 | -do | |
28171 | - # Write a limited-size here document to $tmp/undefs.sed. | |
28172 | - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
28173 | - # Speed up: don't consider the non `#undef' | |
28174 | - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
28175 | - # Work around the forget-to-reset-the-flag bug. | |
28176 | - echo 't clr' >>$CONFIG_STATUS | |
28177 | - echo ': clr' >>$CONFIG_STATUS | |
28178 | - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
28179 | - echo 'CEOF | |
28180 | - sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
28181 | - rm -f $tmp/in | |
28182 | - mv $tmp/out $tmp/in | |
28183 | -' >>$CONFIG_STATUS | |
28184 | - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
28185 | - rm -f conftest.undefs | |
28186 | - mv conftest.tail conftest.undefs | |
28187 | -done | |
28188 | -rm -f conftest.undefs | |
28189 | - | |
28190 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
28191 | - # Let's still pretend it is `configure' which instantiates (i.e., don't | |
28192 | - # use $as_me), people would be surprised to read: | |
28193 | - # /* config.h. Generated by config.status. */ | |
28194 | - if test x"$ac_file" = x-; then | |
28195 | - echo "/* Generated by configure. */" >$tmp/config.h | |
28196 | - else | |
28197 | - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
28198 | - fi | |
28199 | - cat $tmp/in >>$tmp/config.h | |
28200 | - rm -f $tmp/in | |
28201 | + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
28202 | + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
28203 | + esac \ | |
28204 | + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
28205 | + ;; | |
28206 | + :H) | |
28207 | + # | |
28208 | + # CONFIG_HEADER | |
28209 | + # | |
28210 | if test x"$ac_file" != x-; then | |
28211 | - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
28212 | - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
28213 | -echo "$as_me: $ac_file is unchanged" >&6;} | |
28214 | + { | |
28215 | + $as_echo "/* $configure_input */" \ | |
28216 | + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
28217 | + } >"$ac_tmp/config.h" \ | |
28218 | + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
28219 | + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
28220 | + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
28221 | +$as_echo "$as_me: $ac_file is unchanged" >&6;} | |
28222 | else | |
28223 | - ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
28224 | -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28225 | - X"$ac_file" : 'X\(//\)[^/]' \| \ | |
28226 | - X"$ac_file" : 'X\(//\)$' \| \ | |
28227 | - X"$ac_file" : 'X\(/\)' \| \ | |
28228 | - . : '\(.\)' 2>/dev/null || | |
28229 | -echo X"$ac_file" | | |
28230 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
28231 | - /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
28232 | - /^X\(\/\/\)$/{ s//\1/; q; } | |
28233 | - /^X\(\/\).*/{ s//\1/; q; } | |
28234 | - s/.*/./; q'` | |
28235 | - { if $as_mkdir_p; then | |
28236 | - mkdir -p "$ac_dir" | |
28237 | - else | |
28238 | - as_dir="$ac_dir" | |
28239 | - as_dirs= | |
28240 | - while test ! -d "$as_dir"; do | |
28241 | - as_dirs="$as_dir $as_dirs" | |
28242 | - as_dir=`(dirname "$as_dir") 2>/dev/null || | |
28243 | -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28244 | - X"$as_dir" : 'X\(//\)[^/]' \| \ | |
28245 | - X"$as_dir" : 'X\(//\)$' \| \ | |
28246 | - X"$as_dir" : 'X\(/\)' \| \ | |
28247 | - . : '\(.\)' 2>/dev/null || | |
28248 | -echo X"$as_dir" | | |
28249 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
28250 | - /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
28251 | - /^X\(\/\/\)$/{ s//\1/; q; } | |
28252 | - /^X\(\/\).*/{ s//\1/; q; } | |
28253 | - s/.*/./; q'` | |
28254 | - done | |
28255 | - test ! -n "$as_dirs" || mkdir $as_dirs | |
28256 | - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
28257 | -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
28258 | - { (exit 1); exit 1; }; }; } | |
28259 | - | |
28260 | - rm -f $ac_file | |
28261 | - mv $tmp/config.h $ac_file | |
28262 | + rm -f "$ac_file" | |
28263 | + mv "$ac_tmp/config.h" "$ac_file" \ | |
28264 | + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
28265 | fi | |
28266 | else | |
28267 | - cat $tmp/config.h | |
28268 | - rm -f $tmp/config.h | |
28269 | + $as_echo "/* $configure_input */" \ | |
28270 | + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
28271 | + || as_fn_error $? "could not create -" "$LINENO" 5 | |
28272 | fi | |
28273 | -# Compute $ac_file's index in $config_headers. | |
28274 | +# Compute "$ac_file"'s index in $config_headers. | |
28275 | +_am_arg="$ac_file" | |
28276 | _am_stamp_count=1 | |
28277 | for _am_header in $config_headers :; do | |
28278 | case $_am_header in | |
28279 | - $ac_file | $ac_file:* ) | |
28280 | + $_am_arg | $_am_arg:* ) | |
28281 | break ;; | |
28282 | * ) | |
28283 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
28284 | esac | |
28285 | done | |
28286 | -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
28287 | -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28288 | - X$ac_file : 'X\(//\)[^/]' \| \ | |
28289 | - X$ac_file : 'X\(//\)$' \| \ | |
28290 | - X$ac_file : 'X\(/\)' \| \ | |
28291 | - . : '\(.\)' 2>/dev/null || | |
28292 | -echo X$ac_file | | |
28293 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
28294 | - /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
28295 | - /^X\(\/\/\)$/{ s//\1/; q; } | |
28296 | - /^X\(\/\).*/{ s//\1/; q; } | |
28297 | - s/.*/./; q'`/stamp-h$_am_stamp_count | |
28298 | -done | |
28299 | -_ACEOF | |
28300 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
28301 | - | |
28302 | -# | |
28303 | -# CONFIG_COMMANDS section. | |
28304 | -# | |
28305 | -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
28306 | - ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
28307 | - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
28308 | - ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
28309 | -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28310 | - X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
28311 | - X"$ac_dest" : 'X\(//\)$' \| \ | |
28312 | - X"$ac_dest" : 'X\(/\)' \| \ | |
28313 | - . : '\(.\)' 2>/dev/null || | |
28314 | -echo X"$ac_dest" | | |
28315 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
28316 | - /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
28317 | - /^X\(\/\/\)$/{ s//\1/; q; } | |
28318 | - /^X\(\/\).*/{ s//\1/; q; } | |
28319 | - s/.*/./; q'` | |
28320 | - { if $as_mkdir_p; then | |
28321 | - mkdir -p "$ac_dir" | |
28322 | - else | |
28323 | - as_dir="$ac_dir" | |
28324 | - as_dirs= | |
28325 | - while test ! -d "$as_dir"; do | |
28326 | - as_dirs="$as_dir $as_dirs" | |
28327 | - as_dir=`(dirname "$as_dir") 2>/dev/null || | |
28328 | -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28329 | - X"$as_dir" : 'X\(//\)[^/]' \| \ | |
28330 | - X"$as_dir" : 'X\(//\)$' \| \ | |
28331 | - X"$as_dir" : 'X\(/\)' \| \ | |
28332 | - . : '\(.\)' 2>/dev/null || | |
28333 | -echo X"$as_dir" | | |
28334 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
28335 | - /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
28336 | - /^X\(\/\/\)$/{ s//\1/; q; } | |
28337 | - /^X\(\/\).*/{ s//\1/; q; } | |
28338 | - s/.*/./; q'` | |
28339 | - done | |
28340 | - test ! -n "$as_dirs" || mkdir $as_dirs | |
28341 | - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
28342 | -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
28343 | - { (exit 1); exit 1; }; }; } | |
28344 | +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
28345 | +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28346 | + X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
28347 | + X"$_am_arg" : 'X\(//\)$' \| \ | |
28348 | + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
28349 | +$as_echo X"$_am_arg" | | |
28350 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28351 | + s//\1/ | |
28352 | + q | |
28353 | + } | |
28354 | + /^X\(\/\/\)[^/].*/{ | |
28355 | + s//\1/ | |
28356 | + q | |
28357 | + } | |
28358 | + /^X\(\/\/\)$/{ | |
28359 | + s//\1/ | |
28360 | + q | |
28361 | + } | |
28362 | + /^X\(\/\).*/{ | |
28363 | + s//\1/ | |
28364 | + q | |
28365 | + } | |
28366 | + s/.*/./; q'`/stamp-h$_am_stamp_count | |
28367 | + ;; | |
28368 | ||
28369 | - ac_builddir=. | |
28370 | + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
28371 | +$as_echo "$as_me: executing $ac_file commands" >&6;} | |
28372 | + ;; | |
28373 | + esac | |
28374 | ||
28375 | -if test "$ac_dir" != .; then | |
28376 | - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
28377 | - # A "../" for each directory in $ac_dir_suffix. | |
28378 | - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
28379 | -else | |
28380 | - ac_dir_suffix= ac_top_builddir= | |
28381 | -fi | |
28382 | ||
28383 | -case $srcdir in | |
28384 | - .) # No --srcdir option. We are building in place. | |
28385 | - ac_srcdir=. | |
28386 | - if test -z "$ac_top_builddir"; then | |
28387 | - ac_top_srcdir=. | |
28388 | + case $ac_file$ac_mode in | |
28389 | + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
28390 | + # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
28391 | + # are listed without --file. Let's play safe and only enable the eval | |
28392 | + # if we detect the quoting. | |
28393 | + case $CONFIG_FILES in | |
28394 | + *\'*) eval set x "$CONFIG_FILES" ;; | |
28395 | + *) set x $CONFIG_FILES ;; | |
28396 | + esac | |
28397 | + shift | |
28398 | + for mf | |
28399 | + do | |
28400 | + # Strip MF so we end up with the name of the file. | |
28401 | + mf=`echo "$mf" | sed -e 's/:.*$//'` | |
28402 | + # Check whether this is an Automake generated Makefile or not. | |
28403 | + # We used to match only the files named `Makefile.in', but | |
28404 | + # some people rename them; so instead we look at the file content. | |
28405 | + # Grep'ing the first line is not enough: some people post-process | |
28406 | + # each Makefile.in and add a new line on top of each file to say so. | |
28407 | + # Grep'ing the whole file is not good either: AIX grep has a line | |
28408 | + # limit of 2048, but all sed's we know have understand at least 4000. | |
28409 | + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
28410 | + dirpart=`$as_dirname -- "$mf" || | |
28411 | +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28412 | + X"$mf" : 'X\(//\)[^/]' \| \ | |
28413 | + X"$mf" : 'X\(//\)$' \| \ | |
28414 | + X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
28415 | +$as_echo X"$mf" | | |
28416 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28417 | + s//\1/ | |
28418 | + q | |
28419 | + } | |
28420 | + /^X\(\/\/\)[^/].*/{ | |
28421 | + s//\1/ | |
28422 | + q | |
28423 | + } | |
28424 | + /^X\(\/\/\)$/{ | |
28425 | + s//\1/ | |
28426 | + q | |
28427 | + } | |
28428 | + /^X\(\/\).*/{ | |
28429 | + s//\1/ | |
28430 | + q | |
28431 | + } | |
28432 | + s/.*/./; q'` | |
28433 | else | |
28434 | - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
28435 | - fi ;; | |
28436 | - [\\/]* | ?:[\\/]* ) # Absolute path. | |
28437 | - ac_srcdir=$srcdir$ac_dir_suffix; | |
28438 | - ac_top_srcdir=$srcdir ;; | |
28439 | - *) # Relative path. | |
28440 | - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
28441 | - ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
28442 | -esac | |
28443 | - | |
28444 | -# Do not use `cd foo && pwd` to compute absolute paths, because | |
28445 | -# the directories may not exist. | |
28446 | -case `pwd` in | |
28447 | -.) ac_abs_builddir="$ac_dir";; | |
28448 | -*) | |
28449 | - case "$ac_dir" in | |
28450 | - .) ac_abs_builddir=`pwd`;; | |
28451 | - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
28452 | - *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
28453 | - esac;; | |
28454 | -esac | |
28455 | -case $ac_abs_builddir in | |
28456 | -.) ac_abs_top_builddir=${ac_top_builddir}.;; | |
28457 | -*) | |
28458 | - case ${ac_top_builddir}. in | |
28459 | - .) ac_abs_top_builddir=$ac_abs_builddir;; | |
28460 | - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
28461 | - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
28462 | - esac;; | |
28463 | -esac | |
28464 | -case $ac_abs_builddir in | |
28465 | -.) ac_abs_srcdir=$ac_srcdir;; | |
28466 | -*) | |
28467 | - case $ac_srcdir in | |
28468 | - .) ac_abs_srcdir=$ac_abs_builddir;; | |
28469 | - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
28470 | - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
28471 | - esac;; | |
28472 | -esac | |
28473 | -case $ac_abs_builddir in | |
28474 | -.) ac_abs_top_srcdir=$ac_top_srcdir;; | |
28475 | -*) | |
28476 | - case $ac_top_srcdir in | |
28477 | - .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
28478 | - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
28479 | - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
28480 | - esac;; | |
28481 | -esac | |
28482 | - | |
28483 | - | |
28484 | - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
28485 | -echo "$as_me: executing $ac_dest commands" >&6;} | |
28486 | - case $ac_dest in | |
28487 | - default-1 ) | |
28488 | + continue | |
28489 | + fi | |
28490 | + # Extract the definition of DEPDIR, am__include, and am__quote | |
28491 | + # from the Makefile without running `make'. | |
28492 | + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
28493 | + test -z "$DEPDIR" && continue | |
28494 | + am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
28495 | + test -z "am__include" && continue | |
28496 | + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
28497 | + # When using ansi2knr, U may be empty or an underscore; expand it | |
28498 | + U=`sed -n 's/^U = //p' < "$mf"` | |
28499 | + # Find all dependency output files, they are included files with | |
28500 | + # $(DEPDIR) in their names. We invoke sed twice because it is the | |
28501 | + # simplest approach to changing $(DEPDIR) to its actual value in the | |
28502 | + # expansion. | |
28503 | + for file in `sed -n " | |
28504 | + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
28505 | + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
28506 | + # Make sure the directory exists. | |
28507 | + test -f "$dirpart/$file" && continue | |
28508 | + fdir=`$as_dirname -- "$file" || | |
28509 | +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28510 | + X"$file" : 'X\(//\)[^/]' \| \ | |
28511 | + X"$file" : 'X\(//\)$' \| \ | |
28512 | + X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
28513 | +$as_echo X"$file" | | |
28514 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28515 | + s//\1/ | |
28516 | + q | |
28517 | + } | |
28518 | + /^X\(\/\/\)[^/].*/{ | |
28519 | + s//\1/ | |
28520 | + q | |
28521 | + } | |
28522 | + /^X\(\/\/\)$/{ | |
28523 | + s//\1/ | |
28524 | + q | |
28525 | + } | |
28526 | + /^X\(\/\).*/{ | |
28527 | + s//\1/ | |
28528 | + q | |
28529 | + } | |
28530 | + s/.*/./; q'` | |
28531 | + as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
28532 | + # echo "creating $dirpart/$file" | |
28533 | + echo '# dummy' > "$dirpart/$file" | |
28534 | + done | |
28535 | + done | |
28536 | +} | |
28537 | + ;; | |
28538 | + "po-directories":C) | |
28539 | for ac_file in $CONFIG_FILES; do | |
28540 | # Support "outfile[:infile[:infile...]]" | |
28541 | case "$ac_file" in | |
28542 | @@ -15875,11 +9646,12 @@ | |
28543 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
28544 | fi | |
28545 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
28546 | - # Hide the ALL_LINGUAS assigment from automake. | |
28547 | + # Hide the ALL_LINGUAS assigment from automake < 1.5. | |
28548 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
28549 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
28550 | else | |
28551 | # The set of available languages was given in configure.in. | |
28552 | + # Hide the ALL_LINGUAS assigment from automake < 1.5. | |
28553 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
28554 | fi | |
28555 | # Compute POFILES | |
28556 | @@ -15938,106 +9710,30 @@ | |
28557 | fi | |
28558 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
28559 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
28560 | + for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
28561 | + if test -f "$f"; then | |
28562 | + case "$f" in | |
28563 | + *.orig | *.bak | *~) ;; | |
28564 | + *) cat "$f" >> "$ac_dir/Makefile" ;; | |
28565 | + esac | |
28566 | + fi | |
28567 | + done | |
28568 | fi | |
28569 | ;; | |
28570 | esac | |
28571 | done ;; | |
28572 | - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
28573 | - # Strip MF so we end up with the name of the file. | |
28574 | - mf=`echo "$mf" | sed -e 's/:.*$//'` | |
28575 | - # Check whether this is an Automake generated Makefile or not. | |
28576 | - # We used to match only the files named `Makefile.in', but | |
28577 | - # some people rename them; so instead we look at the file content. | |
28578 | - # Grep'ing the first line is not enough: some people post-process | |
28579 | - # each Makefile.in and add a new line on top of each file to say so. | |
28580 | - # So let's grep whole file. | |
28581 | - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
28582 | - dirpart=`(dirname "$mf") 2>/dev/null || | |
28583 | -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28584 | - X"$mf" : 'X\(//\)[^/]' \| \ | |
28585 | - X"$mf" : 'X\(//\)$' \| \ | |
28586 | - X"$mf" : 'X\(/\)' \| \ | |
28587 | - . : '\(.\)' 2>/dev/null || | |
28588 | -echo X"$mf" | | |
28589 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
28590 | - /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
28591 | - /^X\(\/\/\)$/{ s//\1/; q; } | |
28592 | - /^X\(\/\).*/{ s//\1/; q; } | |
28593 | - s/.*/./; q'` | |
28594 | - else | |
28595 | - continue | |
28596 | - fi | |
28597 | - # Extract the definition of DEPDIR, am__include, and am__quote | |
28598 | - # from the Makefile without running `make'. | |
28599 | - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
28600 | - test -z "$DEPDIR" && continue | |
28601 | - am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
28602 | - test -z "am__include" && continue | |
28603 | - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
28604 | - # When using ansi2knr, U may be empty or an underscore; expand it | |
28605 | - U=`sed -n 's/^U = //p' < "$mf"` | |
28606 | - # Find all dependency output files, they are included files with | |
28607 | - # $(DEPDIR) in their names. We invoke sed twice because it is the | |
28608 | - # simplest approach to changing $(DEPDIR) to its actual value in the | |
28609 | - # expansion. | |
28610 | - for file in `sed -n " | |
28611 | - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
28612 | - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
28613 | - # Make sure the directory exists. | |
28614 | - test -f "$dirpart/$file" && continue | |
28615 | - fdir=`(dirname "$file") 2>/dev/null || | |
28616 | -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28617 | - X"$file" : 'X\(//\)[^/]' \| \ | |
28618 | - X"$file" : 'X\(//\)$' \| \ | |
28619 | - X"$file" : 'X\(/\)' \| \ | |
28620 | - . : '\(.\)' 2>/dev/null || | |
28621 | -echo X"$file" | | |
28622 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
28623 | - /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
28624 | - /^X\(\/\/\)$/{ s//\1/; q; } | |
28625 | - /^X\(\/\).*/{ s//\1/; q; } | |
28626 | - s/.*/./; q'` | |
28627 | - { if $as_mkdir_p; then | |
28628 | - mkdir -p $dirpart/$fdir | |
28629 | - else | |
28630 | - as_dir=$dirpart/$fdir | |
28631 | - as_dirs= | |
28632 | - while test ! -d "$as_dir"; do | |
28633 | - as_dirs="$as_dir $as_dirs" | |
28634 | - as_dir=`(dirname "$as_dir") 2>/dev/null || | |
28635 | -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28636 | - X"$as_dir" : 'X\(//\)[^/]' \| \ | |
28637 | - X"$as_dir" : 'X\(//\)$' \| \ | |
28638 | - X"$as_dir" : 'X\(/\)' \| \ | |
28639 | - . : '\(.\)' 2>/dev/null || | |
28640 | -echo X"$as_dir" | | |
28641 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
28642 | - /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
28643 | - /^X\(\/\/\)$/{ s//\1/; q; } | |
28644 | - /^X\(\/\).*/{ s//\1/; q; } | |
28645 | - s/.*/./; q'` | |
28646 | - done | |
28647 | - test ! -n "$as_dirs" || mkdir $as_dirs | |
28648 | - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
28649 | -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
28650 | - { (exit 1); exit 1; }; }; } | |
28651 | ||
28652 | - # echo "creating $dirpart/$file" | |
28653 | - echo '# dummy' > "$dirpart/$file" | |
28654 | - done | |
28655 | -done | |
28656 | - ;; | |
28657 | esac | |
28658 | -done | |
28659 | -_ACEOF | |
28660 | +done # for ac_tag | |
28661 | ||
28662 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
28663 | ||
28664 | -{ (exit 0); exit 0; } | |
28665 | +as_fn_exit 0 | |
28666 | _ACEOF | |
28667 | -chmod +x $CONFIG_STATUS | |
28668 | ac_clean_files=$ac_clean_files_save | |
28669 | ||
28670 | +test $ac_write_fail = 0 || | |
28671 | + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
28672 | + | |
28673 | ||
28674 | # configure is writing to config.log, and then calls config.status. | |
28675 | # config.status does its own redirection, appending to config.log. | |
28676 | @@ -16057,7 +9753,10 @@ | |
28677 | exec 5>>config.log | |
28678 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
28679 | # would make configure fail if this is the last instruction. | |
28680 | - $ac_cs_success || { (exit 1); exit 1; } | |
28681 | + $ac_cs_success || as_fn_exit 1 | |
28682 | +fi | |
28683 | +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
28684 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
28685 | +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
28686 | fi | |
28687 | - | |
28688 | ||
28689 | diff -urN BUILD/abook-0.6.0pre2/configure.ac abook/configure.ac | |
28690 | --- BUILD/abook-0.6.0pre2/configure.ac 1970-01-01 01:00:00.000000000 +0100 | |
28691 | +++ abook/configure.ac 2013-03-13 15:07:45.000000000 +0100 | |
28692 | @@ -0,0 +1,183 @@ | |
28693 | +dnl abook configure.in | |
28694 | + | |
28695 | +AC_INIT | |
28696 | +AC_CONFIG_SRCDIR([abook.c]) | |
28697 | +AM_INIT_AUTOMAKE(abook, 0.6.0pre2) | |
28698 | +AC_CONFIG_HEADER(config.h) | |
28699 | + | |
28700 | +dnl --------------- | |
28701 | +dnl gettext support | |
28702 | +dnl --------------- | |
28703 | + | |
28704 | +AC_USE_SYSTEM_EXTENSIONS | |
28705 | +AM_GNU_GETTEXT([external]) | |
28706 | +AM_GNU_GETTEXT_VERSION([0.18.1]) | |
28707 | + | |
28708 | +AC_DEFUN([ABOOK_EXPAND_PREFIX], [ | |
28709 | + $1=$2 | |
28710 | + dnl expanding twice, since from autoconf 2.60 on, $datadir refers to | |
28711 | + dnl $datarootdir which in turn refers to $prefix | |
28712 | + $1=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
28713 | + eval tmp_abook_prefix=\""[$]$1"\" | |
28714 | + eval echo $tmp_abook_prefix | |
28715 | + )` | |
28716 | +]) | |
28717 | + | |
28718 | +ABOOK_EXPAND_PREFIX(abook_localedir, "$datadir/locale") | |
28719 | +localedir="\$(datadir)/locale" | |
28720 | + | |
28721 | +AC_ARG_WITH(localedir, | |
28722 | + [ --with-localedir=PATH Where the locale files are installed ]) | |
28723 | +if test "x$with_localedir" != "x"; then | |
28724 | + abook_localedir="$with_localedir" | |
28725 | + localedir="$with_localedir" | |
28726 | +fi | |
28727 | + | |
28728 | +AC_DEFINE_UNQUOTED(LOCALEDIR, "$abook_localedir", [locale directory]) | |
28729 | +AC_SUBST(localedir) | |
28730 | + | |
28731 | +AM_CONDITIONAL(USE_INCLUDED_INTL_H, test x$USE_INCLUDED_LIBINTL = xyes) | |
28732 | + | |
28733 | +dnl ---------------------- | |
28734 | +dnl end of gettext support | |
28735 | +dnl ---------------------- | |
28736 | + | |
28737 | +AC_PROG_CC | |
28738 | +AC_SEARCH_LIBS([strerror],[cposix]) | |
28739 | +AM_C_PROTOTYPES | |
28740 | +if test "x$U" != "x"; then | |
28741 | + AC_MSG_ERROR(Compiler not ANSI compliant) | |
28742 | +fi | |
28743 | +AC_C_INLINE | |
28744 | +AC_PROG_INSTALL | |
28745 | +AC_HEADER_STDC | |
28746 | +AC_CHECK_HEADERS(unistd.h locale.h sys/ioctl.h iconv.h) | |
28747 | +AC_CHECK_HEADER(stdarg.h,AC_DEFINE(HAVE_STDARG_H, 1, [Define if you have the <stdarg.h> header file.]),AC_MSG_ERROR([*** stdarg.h is missing on your system ***])) | |
28748 | +AC_FUNC_STRCOLL | |
28749 | +AC_CHECK_FUNCS(setlocale) | |
28750 | + | |
28751 | +ac_widec_funcs=yes | |
28752 | +AC_CHECK_HEADER(wchar.h,[ | |
28753 | + ac_have_wchar_h=yes | |
28754 | + AC_DEFINE(HAVE_WCHAR_H, 1, [Define if you have the <wchar.h> header file.])], | |
28755 | + [ac_have_wchar_h=no]) | |
28756 | +AC_CHECK_FUNCS(mbtowc wcwidth mbrtowc mbsinit,,ac_widec_funcs=no) | |
28757 | +AC_CHECK_DECLS(wcwidth) | |
28758 | +AC_CHECK_TYPE(wchar_t,,ac_widec_funcs=no) | |
28759 | + | |
28760 | +if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then | |
28761 | + ac_widec_possible=yes | |
28762 | +else | |
28763 | + ac_widec_possible=no | |
28764 | +fi | |
28765 | + | |
28766 | +dnl ------------------- | |
28767 | +dnl (n)curses detection | |
28768 | +dnl ------------------- | |
28769 | + | |
28770 | +abook_cv_curses=/usr | |
28771 | +AC_ARG_WITH(curses, [ --with-curses=DIR Where ncurses is installed ], | |
28772 | + [if test $withval != yes; then | |
28773 | + abook_cv_curses=$withval | |
28774 | + fi | |
28775 | + if test x$abook_cv_curses != x/usr; then | |
28776 | + LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS" | |
28777 | + CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include" | |
28778 | + fi]) | |
28779 | + | |
28780 | +AC_CHECK_LIB(ncursesw, initscr, | |
28781 | + [LIBS="$LIBS -lncursesw" | |
28782 | + if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then | |
28783 | + CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | |
28784 | + fi | |
28785 | + AC_CHECK_HEADERS(ncurses.h)],[ | |
28786 | + ac_widec_possible=no | |
28787 | + AC_CHECK_LIB(ncurses, initscr, | |
28788 | + [LIBS="$LIBS -lncurses" | |
28789 | + if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then | |
28790 | + CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses" | |
28791 | + fi | |
28792 | + AC_CHECK_HEADERS(ncurses.h)], | |
28793 | + [CF_CURSES_LIBS]) | |
28794 | + ]) | |
28795 | + | |
28796 | +dnl -------------------------- | |
28797 | +dnl end of (n)curses detection | |
28798 | +dnl -------------------------- | |
28799 | + | |
28800 | +dnl ------------------ | |
28801 | +dnl readline detection | |
28802 | +dnl ------------------ | |
28803 | + | |
28804 | +abook_cv_readline=/usr | |
28805 | +AC_ARG_WITH(readline, [ --with-readline=DIR Where readline is installed ], | |
28806 | + [if test $withval != yes; then | |
28807 | + abook_cv_readline=$withval | |
28808 | + fi | |
28809 | + if test x$abook_cv_readline != x/usr; then | |
28810 | + LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS" | |
28811 | + CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include" | |
28812 | + fi]) | |
28813 | + | |
28814 | +AC_LIB_READLINE | |
28815 | + | |
28816 | +if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then | |
28817 | + AC_MSG_ERROR([*** readline library not found or it doesn't support history ***]) | |
28818 | +fi | |
28819 | + | |
28820 | +dnl ------------------------- | |
28821 | +dnl end of readline detection | |
28822 | +dnl ------------------------- | |
28823 | + | |
28824 | +dnl ------------------ | |
28825 | +dnl vformat detection | |
28826 | +dnl ------------------ | |
28827 | + | |
28828 | +AC_ARG_ENABLE(vformat, [ --enable-vformat Use libvformat is available ], [case "${enableval}" in | |
28829 | + yes) vformat=true ;; | |
28830 | + no) vformat=false ;; | |
28831 | + *) AC_MSG_ERROR(bad value ${enableval} for --enable-vformat) ;; | |
28832 | + esac], [vformat=false]) | |
28833 | +if test x$vformat = xtrue; then | |
28834 | + AC_CHECK_HEADER([vf_iface.h], [ | |
28835 | + AC_CHECK_LIB([vformat], [vf_read_file], [ | |
28836 | + MODULES="$MODULES m_vcf" | |
28837 | + AC_DEFINE(HAVE_VFORMAT,1,[Defined if the vformat library is available]) | |
28838 | + have_vformat=yes | |
28839 | + ]) | |
28840 | +]) | |
28841 | +fi | |
28842 | +AM_CONDITIONAL(ENABLE_VFORMAT_SUPPORT,test x"$have_vformat" = "xyes") | |
28843 | + | |
28844 | +dnl ------------------------- | |
28845 | +dnl end of vformat detection | |
28846 | +dnl ------------------------- | |
28847 | + | |
28848 | + | |
28849 | +if test x$ac_widec_possible = xyes; then | |
28850 | + AC_DEFINE(HANDLE_MULTIBYTE, 1, [Handle multibyte characters]) | |
28851 | +fi | |
28852 | + | |
28853 | +AC_CHECK_FUNCS(resizeterm) | |
28854 | + | |
28855 | +AC_CHECK_FUNCS(snprintf vsnprintf) | |
28856 | + | |
28857 | +AC_CHECK_FUNCS(strcasestr, AC_DEFINE(HAVE_STRCASESTR)) | |
28858 | + | |
28859 | +AC_ARG_ENABLE(debug, [ --enable-debug Enable debugging support ], [case "${enableval}" in | |
28860 | + yes) debug=true ;; | |
28861 | + no) debug=false ;; | |
28862 | + *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;; | |
28863 | + esac], [debug=false]) | |
28864 | + | |
28865 | +if test x$debug = xtrue; then | |
28866 | + CPPFLAGS="-DDEBUG=1 $CPPFLAGS" | |
28867 | + CFLAGS="-g $CFLAGS" | |
28868 | +fi | |
28869 | + | |
28870 | +if test x$GCC = xyes; then | |
28871 | + CFLAGS="-Wall $CFLAGS" | |
28872 | +fi | |
28873 | + | |
28874 | +AC_CONFIG_FILES([Makefile abook.spec po/Makefile.in]) | |
28875 | +AC_OUTPUT | |
28876 | diff -urN BUILD/abook-0.6.0pre2/configure.in abook/configure.in | |
28877 | --- BUILD/abook-0.6.0pre2/configure.in 2013-03-14 10:42:00.097531458 +0100 | |
28878 | +++ abook/configure.in 1970-01-01 01:00:00.000000000 +0100 | |
28879 | @@ -1,154 +0,0 @@ | |
28880 | -dnl abook configure.in | |
28881 | - | |
28882 | -AC_INIT(abook.c) | |
28883 | -AM_INIT_AUTOMAKE(abook, 0.6.0pre2) | |
28884 | -AM_CONFIG_HEADER(config.h) | |
28885 | - | |
28886 | -dnl --------------- | |
28887 | -dnl gettext support | |
28888 | -dnl --------------- | |
28889 | - | |
28890 | -AM_GNU_GETTEXT | |
28891 | -AM_GNU_GETTEXT_VERSION(0.14.1) | |
28892 | - | |
28893 | -AC_DEFUN([ABOOK_EXPAND_PREFIX], [ | |
28894 | - $1=$2 | |
28895 | - dnl expanding twice, since from autoconf 2.60 on, $datadir refers to | |
28896 | - dnl $datarootdir which in turn refers to $prefix | |
28897 | - $1=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
28898 | - eval tmp_abook_prefix=\""[$]$1"\" | |
28899 | - eval echo $tmp_abook_prefix | |
28900 | - )` | |
28901 | -]) | |
28902 | - | |
28903 | -ABOOK_EXPAND_PREFIX(abook_localedir, "$datadir/locale") | |
28904 | -localedir="\$(datadir)/locale" | |
28905 | - | |
28906 | -AC_ARG_WITH(localedir, | |
28907 | - [ --with-localedir=PATH Where the locale files are installed ]) | |
28908 | -if test "x$with_localedir" != "x"; then | |
28909 | - abook_localedir="$with_localedir" | |
28910 | - localedir="$with_localedir" | |
28911 | -fi | |
28912 | - | |
28913 | -AC_DEFINE_UNQUOTED(LOCALEDIR, "$abook_localedir", [locale directory]) | |
28914 | -AC_SUBST(localedir) | |
28915 | - | |
28916 | -AM_CONDITIONAL(USE_INCLUDED_INTL_H, test x$USE_INCLUDED_LIBINTL = xyes) | |
28917 | - | |
28918 | -dnl ---------------------- | |
28919 | -dnl end of gettext support | |
28920 | -dnl ---------------------- | |
28921 | - | |
28922 | -AC_PROG_CC | |
28923 | -AC_ISC_POSIX | |
28924 | -AM_C_PROTOTYPES | |
28925 | -if test "x$U" != "x"; then | |
28926 | - AC_MSG_ERROR(Compiler not ANSI compliant) | |
28927 | -fi | |
28928 | -AC_C_INLINE | |
28929 | -AC_PROG_INSTALL | |
28930 | -AC_HEADER_STDC | |
28931 | -AC_CHECK_HEADERS(unistd.h locale.h sys/ioctl.h iconv.h) | |
28932 | -AC_CHECK_HEADER(stdarg.h,AC_DEFINE(HAVE_STDARG_H, 1, [Define if you have the <stdarg.h> header file.]),AC_MSG_ERROR([*** stdarg.h is missing on your system ***])) | |
28933 | -AC_FUNC_STRCOLL | |
28934 | -AC_CHECK_FUNCS(setlocale) | |
28935 | - | |
28936 | -ac_widec_funcs=yes | |
28937 | -AC_CHECK_HEADER(wchar.h,[ | |
28938 | - ac_have_wchar_h=yes | |
28939 | - AC_DEFINE(HAVE_WCHAR_H, 1, [Define if you have the <wchar.h> header file.])], | |
28940 | - [ac_have_wchar_h=no]) | |
28941 | -AC_CHECK_FUNCS(mbtowc wcwidth mbrtowc mbsinit,,ac_widec_funcs=no) | |
28942 | -AC_CHECK_DECLS(wcwidth) | |
28943 | -AC_CHECK_TYPE(wchar_t,,ac_widec_funcs=no) | |
28944 | - | |
28945 | -if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then | |
28946 | - ac_widec_possible=yes | |
28947 | -else | |
28948 | - ac_widec_possible=no | |
28949 | -fi | |
28950 | - | |
28951 | -dnl ------------------- | |
28952 | -dnl (n)curses detection | |
28953 | -dnl ------------------- | |
28954 | - | |
28955 | -abook_cv_curses=/usr | |
28956 | -AC_ARG_WITH(curses, [ --with-curses=DIR Where ncurses is installed ], | |
28957 | - [if test $withval != yes; then | |
28958 | - abook_cv_curses=$withval | |
28959 | - fi | |
28960 | - if test x$abook_cv_curses != x/usr; then | |
28961 | - LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS" | |
28962 | - CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include" | |
28963 | - fi]) | |
28964 | - | |
28965 | -AC_CHECK_LIB(ncursesw, initscr, | |
28966 | - [LIBS="$LIBS -lncursesw -ltinfow" | |
28967 | - if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then | |
28968 | - CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | |
28969 | - fi | |
28970 | - AC_CHECK_HEADERS(ncurses.h)],[ | |
28971 | - ac_widec_possible=no | |
28972 | - AC_CHECK_LIB(ncurses, initscr, | |
28973 | - [LIBS="$LIBS -lncurses -ltinfo" | |
28974 | - if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then | |
28975 | - CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses" | |
28976 | - fi | |
28977 | - AC_CHECK_HEADERS(ncurses.h)], | |
28978 | - [CF_CURSES_LIBS]) | |
28979 | - ]) | |
28980 | - | |
28981 | -dnl -------------------------- | |
28982 | -dnl end of (n)curses detection | |
28983 | -dnl -------------------------- | |
28984 | - | |
28985 | -dnl ------------------ | |
28986 | -dnl readline detection | |
28987 | -dnl ------------------ | |
28988 | - | |
28989 | -abook_cv_readline=/usr | |
28990 | -AC_ARG_WITH(readline, [ --with-readline=DIR Where readline is installed ], | |
28991 | - [if test $withval != yes; then | |
28992 | - abook_cv_readline=$withval | |
28993 | - fi | |
28994 | - if test x$abook_cv_readline != x/usr; then | |
28995 | - LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS" | |
28996 | - CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include" | |
28997 | - fi]) | |
28998 | - | |
28999 | -AC_LIB_READLINE | |
29000 | - | |
29001 | -if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then | |
29002 | - AC_MSG_ERROR([*** readline library not found or it doesn't support history ***]) | |
29003 | -fi | |
29004 | - | |
29005 | -dnl ------------------------- | |
29006 | -dnl end of readline detection | |
29007 | -dnl ------------------------- | |
29008 | - | |
29009 | -if test x$ac_widec_possible = xyes; then | |
29010 | - AC_DEFINE(HANDLE_MULTIBYTE, 1, [Handle multibyte characters]) | |
29011 | -fi | |
29012 | - | |
29013 | -AC_CHECK_FUNCS(resizeterm) | |
29014 | - | |
29015 | -AC_CHECK_FUNCS(snprintf vsnprintf) | |
29016 | - | |
29017 | -AC_ARG_ENABLE(debug, [ --enable-debug Enable debugging support ], [case "${enableval}" in | |
29018 | - yes) debug=true ;; | |
29019 | - no) debug=false ;; | |
29020 | - *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;; | |
29021 | - esac], [debug=false]) | |
29022 | - | |
29023 | -if test x$debug = xtrue; then | |
29024 | - CPPFLAGS="-DDEBUG=1 $CPPFLAGS" | |
29025 | - CFLAGS="-g $CFLAGS" | |
29026 | -fi | |
29027 | - | |
29028 | -if test x$GCC = xyes; then | |
29029 | - CFLAGS="-Wall $CFLAGS" | |
29030 | -fi | |
29031 | - | |
29032 | -AC_OUTPUT(Makefile abook.spec intl/Makefile po/Makefile.in) | |
29033 | - | |
29034 | diff -urN BUILD/abook-0.6.0pre2/contrib/abook+vim/mail.vim abook/contrib/abook+vim/mail.vim | |
29035 | --- BUILD/abook-0.6.0pre2/contrib/abook+vim/mail.vim 2005-10-26 13:58:45.000000000 +0200 | |
29036 | +++ abook/contrib/abook+vim/mail.vim 1970-01-01 01:00:00.000000000 +0100 | |
29037 | @@ -1,530 +0,0 @@ | |
29038 | -" mail FTplugin | |
29039 | -" | |
29040 | -" Requires vim 6.x. | |
29041 | -" To install place in ~/.vim/after/ftplugin/mail.vim | |
29042 | -" | |
29043 | -" Author: Brian Medley | |
29044 | -" Email: freesoftware@4321.tv | |
29045 | -" | |
29046 | -" This file was modified from Cedric Duval's version. | |
29047 | -" http://cedricduval.free.fr/download/vimrc/mail | |
29048 | - | |
29049 | -" Only do this when not done yet for this buffer | |
29050 | -if exists("b:did_mail_after_ftplugin") | |
29051 | - finish | |
29052 | -endif | |
29053 | -let b:did_mail_after_ftplugin = 1 | |
29054 | - | |
29055 | -if !exists ("mail_alias_program") | |
29056 | - let mail_alias_program="Abook" | |
29057 | -endif | |
29058 | - | |
29059 | -" ==================================================================== | |
29060 | -" Globals | |
29061 | -" ==================================================================== | |
29062 | - | |
29063 | -if !exists ("mail_quote_chars") | |
29064 | - let s:quote_chars = ':!|>' | |
29065 | -else | |
29066 | - let s:quote_chars = mail_quote_chars | |
29067 | -endif | |
29068 | - | |
29069 | -" This re defines a 'quote' | |
29070 | -let s:quote_re = '\(\s\?\w*[' . s:quote_chars . ']\)' | |
29071 | -" \s\? => 0 or one whitespace char | |
29072 | -" (b/c some ppl put | |
29073 | -" spaces in the quote, | |
29074 | -" and others don't) | |
29075 | -" | |
29076 | -" \w* => maybe word chars (b/c | |
29077 | -" some ppl put initals in | |
29078 | -" the quotes) | |
29079 | -" the rest => actual quote chars | |
29080 | -" \( \) => this is a quote "level" | |
29081 | - | |
29082 | -" This re defines the quoting level at the *beginning* of a line | |
29083 | -let s:quote_start = '^' . s:quote_re . s:quote_re . '*' | |
29084 | -" ^s:quote_re => quote at beginning of | |
29085 | -" line | |
29086 | -" s:quote_re* => perhaps followed by | |
29087 | -" more quotes | |
29088 | - | |
29089 | -" For debugging: | |
29090 | -" let b:quote_chars = s:quote_chars | |
29091 | -" let b:quote_re = s:quote_re | |
29092 | -" let b:quote_start = s:quote_start | |
29093 | - | |
29094 | -" ==================================================================== | |
29095 | -" Mappings | |
29096 | -" ==================================================================== | |
29097 | - | |
29098 | -if !exists("no_plugin_maps") && !exists("no_mail_maps") | |
29099 | - | |
29100 | - " | |
29101 | - " get alias list mappings | |
29102 | - " | |
29103 | - if !hasmapto('<Plug>MailAliasList', 'n') | |
29104 | - nmap <buffer> <unique> <LocalLeader>al <Plug>MailAliasList | |
29105 | - endif | |
29106 | - if !hasmapto('<Plug>MailAliasList', 'i') | |
29107 | - imap <buffer> <unique> <LocalLeader>al <Plug>MailAliasList | |
29108 | - endif | |
29109 | - | |
29110 | - nnoremap <buffer> <unique> <script> <Plug>MailAliasList <SID>AliasList | |
29111 | - inoremap <buffer> <unique> <script> <Plug>MailAliasList <SID>AliasList | |
29112 | - | |
29113 | - " Redraw is there b/c my screen was messed up after abook finished. | |
29114 | - " The 'set paste' is in the function b/c I couldn't figure out how to put it in | |
29115 | - " the mapping. | |
29116 | - " The 'set nopaste' is in the mapping b/c it didn't work for me in the script. | |
29117 | - nnoremap <buffer> <SID>AliasList A<c-r>=<SID>AliasList{mail_alias_program}()<cr><c-o>:set nopaste<cr><c-o>:redraw!<cr><c-o>:echo b:AliasListMsg<cr><esc> | |
29118 | - inoremap <buffer> <SID>AliasList <c-r>=<SID>AliasList{mail_alias_program}()<cr><c-o>:set nopaste<cr><c-o>:redraw!<cr><c-o>:echo b:AliasListMsg<cr> | |
29119 | - | |
29120 | - " | |
29121 | - " get alias query mappings | |
29122 | - " | |
29123 | - if !hasmapto('<Plug>MailAliasQuery', 'n') | |
29124 | - nmap <buffer> <unique> <LocalLeader>aq <Plug>MailAliasQuery | |
29125 | - endif | |
29126 | - if !hasmapto('<Plug>MailAliasQuery', 'i') | |
29127 | - imap <buffer> <unique> <LocalLeader>aq <Plug>MailAliasQuery | |
29128 | - endif | |
29129 | - | |
29130 | - nnoremap <buffer> <unique> <script> <Plug>MailAliasQuery <SID>AliasQuery | |
29131 | - inoremap <buffer> <unique> <script> <Plug>MailAliasQuery <SID>AliasQuery | |
29132 | - | |
29133 | - nnoremap <buffer> <SID>AliasQuery :call <SID>AliasQuery{mail_alias_program}()<cr>:echo b:AliasQueryMsg<cr> | |
29134 | - inoremap <buffer> <SID>AliasQuery <c-o>:call <SID>AliasQuery{mail_alias_program}()<cr><c-o>:echo b:AliasQueryMsg<cr><right> | |
29135 | - | |
29136 | - " | |
29137 | - " mail formatting mappings | |
29138 | - " | |
29139 | - | |
29140 | - " * <F1> to re-format a quotelvl | |
29141 | - " * <F2> to format a line which is too long, and go to the next line | |
29142 | - " * <F3> to merge the previous line with the current one, with a correct | |
29143 | - " formatting (sometimes useful associated with <F2>) | |
29144 | - " * <F4> to re-format the current paragraph correctly | |
29145 | - | |
29146 | - if !hasmapto('<Plug>MailFormatQuoteLvl', 'n') | |
29147 | - nmap <buffer> <unique> <F1> <Plug>MailFormatQuoteLvl | |
29148 | - endif | |
29149 | - if !hasmapto('<Plug>MailFormatLine', 'n') | |
29150 | - nmap <buffer> <unique> <F2> <Plug>MailFormatLine | |
29151 | - endif | |
29152 | - if !hasmapto('<Plug>MailFormatMerge', 'n') | |
29153 | - nmap <buffer> <unique> <F3> <Plug>MailFormatMerge | |
29154 | - endif | |
29155 | - if !hasmapto('<Plug>MailFormatParagraph', 'n') | |
29156 | - nmap <buffer> <unique> <F4> <Plug>MailFormatParagraph | |
29157 | - endif | |
29158 | - | |
29159 | - if !hasmapto('<Plug>MailFormatQuoteLvl', 'i') | |
29160 | - imap <buffer> <unique> <F1> <Plug>MailFormatQuoteLvl | |
29161 | - endif | |
29162 | - if !hasmapto('<Plug>MailFormatLine', 'i') | |
29163 | - imap <buffer> <unique> <F2> <Plug>MailFormatLine | |
29164 | - endif | |
29165 | - if !hasmapto('<Plug>MailFormatMerge', 'i') | |
29166 | - imap <buffer> <unique> <F3> <Plug>MailFormatMerge | |
29167 | - endif | |
29168 | - if !hasmapto('<Plug>MailFormatParagraph', 'i') | |
29169 | - imap <buffer> <unique> <F4> <Plug>MailFormatParagraph | |
29170 | - endif | |
29171 | - | |
29172 | - nnoremap <buffer> <unique> <script> <Plug>MailFormatQuoteLvl <SID>FormatQuoteLvl | |
29173 | - nnoremap <buffer> <unique> <script> <Plug>MailFormatLine <SID>FormatLine | |
29174 | - nnoremap <buffer> <unique> <script> <Plug>MailFormatMerge <SID>FormatMerge | |
29175 | - nnoremap <buffer> <unique> <script> <Plug>MailFormatParagraph <SID>FormatParagraph | |
29176 | - inoremap <buffer> <unique> <script> <Plug>MailFormatQuoteLvl <SID>FormatQuoteLvl | |
29177 | - inoremap <buffer> <unique> <script> <Plug>MailFormatLine <SID>FormatLine | |
29178 | - inoremap <buffer> <unique> <script> <Plug>MailFormatMerge <SID>FormatMerge | |
29179 | - inoremap <buffer> <unique> <script> <Plug>MailFormatParagraph <SID>FormatParagraph | |
29180 | - | |
29181 | - nnoremap <buffer> <script> <SID>FormatQuoteLvl gq<SID>QuoteLvlMotion | |
29182 | - nnoremap <buffer> <SID>FormatLine gqqj | |
29183 | - nnoremap <buffer> <SID>FormatMerge kgqj | |
29184 | - nnoremap <buffer> <SID>FormatParagraph gqap | |
29185 | - inoremap <buffer> <script> <SID>FormatQuoteLvl <ESC>gq<SID>QuoteLvlMotioni | |
29186 | - inoremap <buffer> <SID>FormatLine <ESC>gqqji | |
29187 | - inoremap <buffer> <SID>FormatMerge <ESC>kgqji | |
29188 | - inoremap <buffer> <SID>FormatParagraph <ESC>gqapi | |
29189 | - | |
29190 | - " | |
29191 | - " sig removal mappings | |
29192 | - " | |
29193 | - if !hasmapto('<Plug>MailEraseQuotedSig', 'n') | |
29194 | - nmap <silent> <buffer> <unique> <LocalLeader>eqs <Plug>MailEraseQuotedSig | |
29195 | - endif | |
29196 | - nnoremap <buffer> <unique> <script> <Plug>MailEraseQuotedSig <SID>EraseQuotedSig | |
29197 | - nnoremap <buffer> <SID>EraseQuotedSig :call<SID>EraseQuotedSig()<CR> | |
29198 | - | |
29199 | - " | |
29200 | - " Provide a motion operator for commands (so you can delete a quote | |
29201 | - " segment, or format quoted segment) | |
29202 | - " | |
29203 | - if !hasmapto('<Plug>MailQuoteLvlMotion', 'o') | |
29204 | - omap <silent> <buffer> <unique> q <Plug>MailQuoteLvlMotion | |
29205 | - endif | |
29206 | - onoremap <buffer> <unique> <script> <Plug>MailQuoteLvlMotion <SID>QuoteLvlMotion | |
29207 | - onoremap <buffer> <script> <SID>QuoteLvlMotion :execute "normal!" . <SID>QuoteLvlMotion(line("."))<cr> | |
29208 | - | |
29209 | -endif | |
29210 | - | |
29211 | -" ==================================================================== | |
29212 | -" Mail Manipulation Functions | |
29213 | -" ==================================================================== | |
29214 | - | |
29215 | -" -------------------------------------------------------------------- | |
29216 | -" Manipulate Quotes | |
29217 | -" -------------------------------------------------------------------- | |
29218 | - | |
29219 | -" | |
29220 | -" Description: | |
29221 | -" This function will try and remove 'quoted' signatures. | |
29222 | -" | |
29223 | -" If someone responds with an email that doesn't use '>' as the | |
29224 | -" quote character this will try and take care of that: | |
29225 | -" | Yeah, I agree vim is cool. | |
29226 | -" | | |
29227 | -" | -- | |
29228 | -" | Some power user | |
29229 | -" | |
29230 | -" If there is a signature inside a 'multi-quoted' email this will try and get | |
29231 | -" rid of it: | |
29232 | -" > | No, I don't agree with you. | |
29233 | -" > | |
29234 | -" > Nonsense. You are wrong. Grow up. | |
29235 | -" > | |
29236 | -" > | I can't believe I'm even replying to this. | |
29237 | -" > | -- | |
29238 | -" > | Some power user | |
29239 | -" > | |
29240 | -" > Yeah, believe it, brother. | |
29241 | -" | |
29242 | -if !exists("*s:EraseQuotedSig") | |
29243 | -function s:EraseQuotedSig() | |
29244 | - while 0 != search((s:quote_start . '\s*--\s*$'), 'w') | |
29245 | - let motion = s:QuoteLvlMotion(line(".")) | |
29246 | - exe "normal! d" . motion | |
29247 | - endwhile | |
29248 | -endfunction | |
29249 | -endif | |
29250 | - | |
29251 | -" | |
29252 | -" Description: | |
29253 | -" Replacing empty quoted lines (i.e. "> $") with empty lines | |
29254 | -" (convenient to automatically reformat one paragraph) | |
29255 | -" | |
29256 | -if !exists("*s:DelEmptyQuoted") | |
29257 | -function s:DelEmptyQuoted() | |
29258 | - let empty_quote = s:quote_start . '\s*$' | |
29259 | - | |
29260 | - " goto start of email and jump passed headers | |
29261 | - normal gg | |
29262 | - if 0 == search('^$', 'W') | |
29263 | - return | |
29264 | - endif | |
29265 | - | |
29266 | - while 0 != search (empty_quote, 'W') | |
29267 | - let newline = substitute(getline("."), empty_quote, '', '') | |
29268 | - call setline(line("."), newline) | |
29269 | - endwhile | |
29270 | -endfunction | |
29271 | -endif | |
29272 | - | |
29273 | -" | |
29274 | -" Description: | |
29275 | -" This function will output a motion command that operatates over a "quote | |
29276 | -" level" segment. This makes it possible to perform vi commands on quotes. | |
29277 | -" E.g: | |
29278 | -" dq => delete an entire quote section | |
29279 | -" gqq => format an entire quote section | |
29280 | -" | |
29281 | -if !exists("*s:QuoteLvlMotion") | |
29282 | -function s:QuoteLvlMotion(line) | |
29283 | - let quote = matchstr(getline(a:line), s:quote_start) | |
29284 | - " abort command if no quote | |
29285 | - if "" == quote | |
29286 | - return "\<esc>" | |
29287 | - endif | |
29288 | - | |
29289 | - let len = s:LenQuoteLvl(a:line, quote) | |
29290 | - | |
29291 | - " the 'V' makes the motion linewise | |
29292 | - if 1 == len | |
29293 | - return "V" . line(".") . "G" | |
29294 | - else | |
29295 | - return "V" . (len - 1) . "j" | |
29296 | - endif | |
29297 | -endfunction | |
29298 | -endif | |
29299 | - | |
29300 | -" | |
29301 | -" Description: | |
29302 | -" This tries to figure out when the quoting level changes | |
29303 | -" | |
29304 | -if !exists("s:LenQuoteLvl") | |
29305 | -function s:LenQuoteLvl(start, quote) | |
29306 | - let i = a:start + 1 | |
29307 | - let len = 1 | |
29308 | - let quote = '^' . a:quote | |
29309 | - | |
29310 | - " find end of quote | |
29311 | - while i <= line('$') | |
29312 | - " check if quote level decreased | |
29313 | - if -1 == match(getline(i), quote) | |
29314 | - break | |
29315 | - endif | |
29316 | - | |
29317 | - " check if quote level increased | |
29318 | - if -1 != match(getline(i), (quote . s:quote_re)) | |
29319 | - break | |
29320 | - endif | |
29321 | - | |
29322 | - let i = i + 1 | |
29323 | - let len = len + 1 | |
29324 | - endwhile | |
29325 | - | |
29326 | - return len | |
29327 | -endfunction | |
29328 | -endif | |
29329 | - | |
29330 | -" -------------------------------------------------------------------- | |
29331 | -" Location Manipulator Functions | |
29332 | -" -------------------------------------------------------------------- | |
29333 | - | |
29334 | -" | |
29335 | -" Description: | |
29336 | -" Moves the cursor to a 'sensible' position. | |
29337 | -" | |
29338 | -if !exists("*s:CursorStart") | |
29339 | -function s:CursorStart() | |
29340 | - " put cursor in known position | |
29341 | - silent normal gg | |
29342 | - | |
29343 | - if search('^From: $', 'W') | |
29344 | - silent startinsert! | |
29345 | - elseif search('^To: $', 'W') | |
29346 | - silent startinsert! | |
29347 | - elseif search('^Subject: $', 'W') | |
29348 | - silent startinsert! | |
29349 | - | |
29350 | - " check if we are editing a reply | |
29351 | - elseif search('^On.*wrote:', 'W') | |
29352 | - normal 2j | |
29353 | - | |
29354 | - elseif search('^$', 'W') | |
29355 | - normal j | |
29356 | - silent startinsert! | |
29357 | - endif | |
29358 | -endfunction | |
29359 | -endif | |
29360 | - | |
29361 | -" ================================================ | |
29362 | -" Process Mutt Aliases | |
29363 | -" ================================================ | |
29364 | - | |
29365 | -" ------------------------------------------------ | |
29366 | -" Get Email List | |
29367 | -" ------------------------------------------------ | |
29368 | - | |
29369 | -" | |
29370 | -" Description: | |
29371 | -" This function will launch abook and spit out what the user selected from the | |
29372 | -" application (by pressing 'Q'). It's always called from 'insert' mode, so | |
29373 | -" the text will be inserted like it was typed. | |
29374 | -" | |
29375 | -" That's why 'paste' is set and reset. So that the text that we insert won't | |
29376 | -" be 'mangled' by the user's settings. | |
29377 | -" | |
29378 | -if !exists("*s:AliasListAbook") | |
29379 | -function s:AliasListAbook() | |
29380 | - let b:AliasListMsg = "" | |
29381 | - let f = tempname() | |
29382 | - | |
29383 | - set paste | |
29384 | - silent exe '!abook 2> ' . f | |
29385 | - exe 'let addresses=system("cat ' . f . '")' | |
29386 | - if "" == addresses | |
29387 | - let b:AliasListMsg = "Nothing found to lookup" | |
29388 | - return "" | |
29389 | - endif | |
29390 | - | |
29391 | - " - parses the output from abook | |
29392 | - let addresses=s:ParseMuttQuery(addresses) | |
29393 | - if "" == addresses | |
29394 | - let b:AliasListMsg = b:ParseMuttQueryErr | |
29395 | - return "" | |
29396 | - endif | |
29397 | - | |
29398 | - " so that they will be aligned under the 'to' or 'cc' line | |
29399 | - let addresses=substitute(addresses, "\n", ",\n ", "g") | |
29400 | - | |
29401 | - return addresses | |
29402 | -endfunction | |
29403 | -endif | |
29404 | - | |
29405 | -" ------------------------------------------------ | |
29406 | -" Get Email Query | |
29407 | -" ------------------------------------------------ | |
29408 | - | |
29409 | -" | |
29410 | -" Description: | |
29411 | -" This function assumes that user has the cursor on an alias to lookup. Based | |
29412 | -" on this it: | |
29413 | -" - retrieves the alias(es) from abook | |
29414 | -" - parses the output from abook | |
29415 | -" - actually replaces the alias with the parsed output | |
29416 | -" | |
29417 | -if !exists("*s:AliasQueryAbook") | |
29418 | -function s:AliasQueryAbook() | |
29419 | - let b:AliasQueryMsg = "" | |
29420 | - | |
29421 | - " - retrieves the alias(es) from abook | |
29422 | - let lookup=expand("<cword>") | |
29423 | - if "" == lookup | |
29424 | - let b:AliasQueryMsg = "Nothing found to lookup" | |
29425 | - return | |
29426 | - endif | |
29427 | - | |
29428 | - silent exe 'let output=system("abook --mutt-query ' . lookup . '")' | |
29429 | - if v:shell_error | |
29430 | - let b:AliasQueryMsg = output | |
29431 | - return | |
29432 | - endif | |
29433 | - | |
29434 | - " - parses the output from abook | |
29435 | - let replacement=s:ParseMuttQuery(output) | |
29436 | - if "" == replacement | |
29437 | - let b:AliasQueryMsg = b:ParseMuttQueryErr | |
29438 | - return | |
29439 | - endif | |
29440 | - | |
29441 | - " so that they will be aligned under the 'to' or 'cc' line | |
29442 | - let replacement=substitute(replacement, "\n", ",\n ", "g") | |
29443 | - | |
29444 | - " - actually replaces the alias with the parsed output | |
29445 | - " paste is set/unset so that the email addresses aren't "mangled" by the | |
29446 | - " user's formating options | |
29447 | - set paste | |
29448 | - exe "normal! ciw" . replacement . "\<Esc>" | |
29449 | - set nopaste | |
29450 | -endfunction | |
29451 | -endif | |
29452 | - | |
29453 | -" -------------------------------------------------------------------- | |
29454 | -" Utility Functions | |
29455 | -" -------------------------------------------------------------------- | |
29456 | - | |
29457 | -" | |
29458 | -" Description: | |
29459 | -" This function will take the output of a "mutt query" (as defined by the mutt | |
29460 | -" documenation) and parses it. | |
29461 | -" | |
29462 | -" It returns the email addresses formatted as follows: | |
29463 | -" - each address is on a line | |
29464 | -" | |
29465 | -if !exists("*s:ParseMuttQuery") | |
29466 | -function s:ParseMuttQuery(aliases) | |
29467 | - " remove first informational line | |
29468 | - let aliases = substitute (a:aliases, "\n", "", "") | |
29469 | - let expansion = "" | |
29470 | - | |
29471 | - while 1 | |
29472 | - " whip off the name and address | |
29473 | - let line = matchstr(aliases, ".\\{-}\n") | |
29474 | - let address = matchstr(line, ".\\{-}\t") | |
29475 | - let address = substitute(address, "\t", "", "g") | |
29476 | - if "" == address | |
29477 | - let b:ParseMuttQueryErr = "Unable to parse address from ouput" | |
29478 | - return "" | |
29479 | - endif | |
29480 | - | |
29481 | - let name = matchstr(line, "\t.*\t") | |
29482 | - let name = substitute(name, "\t", "", "g") | |
29483 | - if "" == name | |
29484 | - let b:ParseMuttQueryErr = "Unable to parse name from ouput" | |
29485 | - return "" | |
29486 | - endif | |
29487 | - | |
29488 | - " debugging: | |
29489 | - " echo "line: " . line . "|" | |
29490 | - " echo "address: " . address . "|" | |
29491 | - " echo "name: " . name . "|" | |
29492 | - " let a=input("hit enter") | |
29493 | - | |
29494 | - " make into valid email address | |
29495 | - let needquote = match (name, '"') | |
29496 | - if (-1 == needquote) | |
29497 | - let name = '"' . name . '" ' | |
29498 | - endif | |
29499 | - | |
29500 | - let needquote = match (address, '<') | |
29501 | - if (-1 == needquote) | |
29502 | - let address = '<' . address . '>' | |
29503 | - endif | |
29504 | - | |
29505 | - " add email address to list | |
29506 | - let expansion = expansion . name | |
29507 | - let expansion = expansion . address | |
29508 | - | |
29509 | - " debugging: | |
29510 | - " echo "address: " . address . "|" | |
29511 | - " echo "name: " . name . "|" | |
29512 | - " let a=input("hit enter") | |
29513 | - | |
29514 | - " process next line (if there is one) | |
29515 | - let aliases = substitute(aliases, ".\\{-}\n", "", "") | |
29516 | - if "" == aliases | |
29517 | - let b:ParseMuttQueryErr = "" | |
29518 | - return expansion | |
29519 | - endif | |
29520 | - | |
29521 | - let expansion = expansion . "\n" | |
29522 | - endwhile | |
29523 | -endfunction | |
29524 | -endif | |
29525 | - | |
29526 | -" ==================================================================== | |
29527 | -" Abbreviation Manipulation | |
29528 | -" ==================================================================== | |
29529 | - | |
29530 | -" | |
29531 | -" Description: | |
29532 | -" This will generate vi abbreviations from your mutt alias file. | |
29533 | -" | |
29534 | -" Note: | |
29535 | -" However, remember that the abbreviation will be replaced *everywhere*. For | |
29536 | -" example, if you have the alias 'Mary', then if you try and type "Hi, Mary | |
29537 | -" vim is cool", then it won't work. This is because the 'Mary' will be | |
29538 | -" expanded as an alias. | |
29539 | -" | |
29540 | -if !exists("*s:MakeAliasAbbrev") | |
29541 | -function s:MakeAliasAbbrev() | |
29542 | - let aliasfile = tempname() | |
29543 | - silent exe "!sed -e 's/alias/iab/' ~/.mutt/aliases > " . aliasfile | |
29544 | - exe "source " . aliasfile | |
29545 | -endfunction | |
29546 | -endif | |
29547 | - | |
29548 | - | |
29549 | -" ==================================================================== | |
29550 | -" Initializations | |
29551 | -" ==================================================================== | |
29552 | - | |
29553 | -if exists ("mail_erase_quoted_sig") | |
29554 | - call s:EraseQuotedSig() | |
29555 | -endif | |
29556 | - | |
29557 | -if exists ("mail_delete_empty_quoted") | |
29558 | - call s:DelEmptyQuoted() | |
29559 | -endif | |
29560 | - | |
29561 | -if exists ("mail_generate_abbrev") | |
29562 | - call s:MakeAliasAbbrev() | |
29563 | -endif | |
29564 | - | |
29565 | -if exists ("mail_cursor_start") | |
29566 | - call s:CursorStart() | |
29567 | -endif | |
29568 | diff -urN BUILD/abook-0.6.0pre2/contrib/abook+vim/README abook/contrib/abook+vim/README | |
29569 | --- BUILD/abook-0.6.0pre2/contrib/abook+vim/README 2005-10-26 13:58:45.000000000 +0200 | |
29570 | +++ abook/contrib/abook+vim/README 1970-01-01 01:00:00.000000000 +0100 | |
29571 | @@ -1,57 +0,0 @@ | |
29572 | -NOTE: There's no need to patch abook version 0.4.14 or later. | |
29573 | -NOTE2: The command in abook is 'Q' not 'P'. | |
29574 | - | |
29575 | ---- Original message from Brian Medley <brian.medley@verizon.net> --- | |
29576 | -Hi, | |
29577 | - | |
29578 | -I am trying to make abook work better (for me) within vim. I am doing | |
29579 | -this because I have 'autoedit' and 'edit_headers' set in mutt. This | |
29580 | -means I would like to have easy access to my abook addressbook (from | |
29581 | -within the editor). | |
29582 | - | |
29583 | -To accomplish this I have written a vim plugin (it will need vim 6.0) | |
29584 | -and have patched abook. Both are included. The patch is against abook | |
29585 | -0.4.13. | |
29586 | - | |
29587 | -Amongst other things, they allow me to obtain an address listing from | |
29588 | -abook and perform a mutt query using abook. Below is an example. | |
29589 | - | |
29590 | -Suppose I have the following line (the cursor is at the caret): | |
29591 | - To: | |
29592 | - ^ | |
29593 | -I can now hit '\al' to lauch abook. Once inside, I can highlight the | |
29594 | -people I want to email. Then I hit 'P'. Their email addresses now | |
29595 | -appear. Next, suppose I have: | |
29596 | - To: john | |
29597 | - ^ | |
29598 | -My plugin allows the command '\aq' to perform an alias mutt query using | |
29599 | -abook. It uses the word under the cursor, so "john" will be looked up | |
29600 | -inside of abook. Next, his email address will appear. | |
29601 | - | |
29602 | -Summary: | |
29603 | - \aq => alias query | |
29604 | - \al => alias list | |
29605 | - | |
29606 | -Note: | |
29607 | - - \ is actually LocalLeader | |
29608 | - - I am aware that abook can do these things from within *mutt*, but | |
29609 | - I want to do them from within vim. | |
29610 | - - This plugin does other stuff, as well (like deleting signatures, | |
29611 | - and positioning the cursor when you start) because I stole code | |
29612 | - from Cedric Duval's mail vimrc. | |
29613 | - - Improvements / comments are welcome. | |
29614 | - | |
29615 | -Todo: | |
29616 | - - Documentation :) | |
29617 | - - I tried to write this so that another alias query program could be | |
29618 | - used (e.g. ldap), but I have not implemented this. | |
29619 | - | |
29620 | -Bugs: | |
29621 | - - I had trouble getting this to work in gvim. I used vim in a | |
29622 | - console. | |
29623 | - | |
29624 | -Basic Installation: | |
29625 | - - patch and install abook | |
29626 | - - place the mail.vim plugin in ~/.vim/after/ftplugin | |
29627 | - | |
29628 | ---- --- | |
29629 | diff -urN BUILD/abook-0.6.0pre2/contrib/bbdb2xx.cc abook/contrib/bbdb2xx.cc | |
29630 | --- BUILD/abook-0.6.0pre2/contrib/bbdb2xx.cc 2005-10-26 13:58:45.000000000 +0200 | |
29631 | +++ abook/contrib/bbdb2xx.cc 1970-01-01 01:00:00.000000000 +0100 | |
29632 | @@ -1,1158 +0,0 @@ | |
29633 | -// ---------------------------------------------------------- -*- c++ -*- | |
29634 | -// bbdb parser and converter | |
29635 | -// supported output format: vcards abook gnokii csv | |
29636 | -// | |
29637 | -// Copyright (C) 1994-2003: Pierre Aubert pierre.aubert@free.fr | |
29638 | -// Code below is dirty. Don't take model on it. | |
29639 | -// | |
29640 | -// V1.21 add abook format | |
29641 | -// V1.20 adapt for g++-3 | |
29642 | -// ---------------------------------------------------------------------- | |
29643 | -// | |
29644 | -// This library is free software; you can redistribute it and/or | |
29645 | -// modify it under the terms of the GNU Library General Public | |
29646 | -// License as published by the Free Software Foundation; either | |
29647 | -// version 2 of the License, or (at your option) any later version. | |
29648 | -// | |
29649 | -// This library is distributed in the hope that it will be useful, | |
29650 | -// but WITHOUT ANY WARRANTY; without even the implied warranty of | |
29651 | -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
29652 | -// Library General Public License for more details. | |
29653 | -// | |
29654 | -// You should have received a copy of the GNU Library General Public | |
29655 | -// License along with this library; if not, write to the | |
29656 | -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
29657 | -// Boston, MA 02111-1307, USA. | |
29658 | -// | |
29659 | -// ---------------------------------------------------------------------- | |
29660 | - | |
29661 | -#include <iostream> | |
29662 | -#include <map> | |
29663 | -#include <algorithm> | |
29664 | -#include <fstream> | |
29665 | -#include <vector> | |
29666 | -#include <string> | |
29667 | - | |
29668 | -// horrible global variable | |
29669 | -size_t counter = 0; | |
29670 | - | |
29671 | -// hold datas from a bbdb record | |
29672 | -struct Id { | |
29673 | - enum { NAME, FORNAME, AKA, COMPANY, PHONES, ADRESSES, NET, NOTES }; | |
29674 | - // brute force | |
29675 | - typedef std::vector<std::string> storage_t; | |
29676 | - storage_t my_d; | |
29677 | -}; | |
29678 | - | |
29679 | - | |
29680 | -namespace trace | |
29681 | -{ | |
29682 | - enum { | |
29683 | - NONE = 0, | |
29684 | - SOME = 1 , | |
29685 | - VERBOSE = 2 | |
29686 | - }; | |
29687 | - | |
29688 | - void | |
29689 | - print( std::string const& l, int jb, int je ) { | |
29690 | - char wl[5] = { 27, '[' , '5' , 'm', 0 }; | |
29691 | - char wr[5] = { 27, '[' , '0' , 'm', 0 }; | |
29692 | - int i; | |
29693 | - for( i=0 ; i<jb ; ++i ) | |
29694 | - std::cerr << l[i]; | |
29695 | - std::cerr << wl; | |
29696 | - for( i=jb ; i<je ; ++i ) | |
29697 | - std::cerr << l[i]; | |
29698 | - std::cerr << wr; | |
29699 | - for( i=je ; i<l.size() ; ++i ) | |
29700 | - std::cerr << l[i]; | |
29701 | - | |
29702 | - std::cerr << std::endl; | |
29703 | - } | |
29704 | -} | |
29705 | - | |
29706 | -// used for translation between format | |
29707 | -struct two_strings { | |
29708 | - const char * const my_val; | |
29709 | - const char * const my_trans; | |
29710 | -}; | |
29711 | - | |
29712 | -// parse 1 line of bbdb format, of course it is easier in elisp :) | |
29713 | -Id * | |
29714 | -parse( int const debug, int const tokmax, char const first_char, std::string const& line ) { | |
29715 | - | |
29716 | - Id * id = new Id; | |
29717 | - | |
29718 | - int jb=0; | |
29719 | - int je=0; | |
29720 | - int l=line.size(); | |
29721 | - int toknb=0; | |
29722 | - | |
29723 | - // sanity check | |
29724 | - if( line[jb] == first_char ) | |
29725 | - ++jb; | |
29726 | - | |
29727 | - // loop over line | |
29728 | - // invariant | |
29729 | - // jb pointe sur le premier caractere du token | |
29730 | - // je pointe sur le premier caractere apres la fin du token | |
29731 | - while( jb < l ) { | |
29732 | - // look for beginning of token | |
29733 | - char c = line[jb]; | |
29734 | - while( jb < l && c != '(' && c != '[' && c != '"' && c != ' ' && !isalpha(c) ) | |
29735 | - ++jb; | |
29736 | - if( jb == l ) | |
29737 | - break; | |
29738 | - // current state | |
29739 | - char state = line[jb]; | |
29740 | - // look for end of token | |
29741 | - switch( state ) { | |
29742 | - case '(': | |
29743 | - { | |
29744 | - int cnt_lpar = 1; | |
29745 | - je = jb+1; | |
29746 | - for( ; je < l ; ++je ) { | |
29747 | - if( debug >= 2 ) | |
29748 | - trace::print(line,jb,je); | |
29749 | - if( line[je] == ')' ) { | |
29750 | - --cnt_lpar; | |
29751 | - if( cnt_lpar == 0 ) { | |
29752 | - ++je; | |
29753 | - break; | |
29754 | - } | |
29755 | - } | |
29756 | - if( line[je] == '(' ) | |
29757 | - ++cnt_lpar; | |
29758 | - } | |
29759 | - break; | |
29760 | - } | |
29761 | - case '[': | |
29762 | - { | |
29763 | - int cnt_lbra = 1; | |
29764 | - je = jb+1; | |
29765 | - for( ; je < l ; ++je ) { | |
29766 | - if( debug >= 2 ) | |
29767 | - trace::print(line,jb,je); | |
29768 | - if( line[je] == ']' ) { | |
29769 | - --cnt_lbra; | |
29770 | - if( cnt_lbra == 0 ) { | |
29771 | - ++je; | |
29772 | - break; | |
29773 | - } | |
29774 | - } | |
29775 | - if( line[je] == '[' ) | |
29776 | - ++cnt_lbra; | |
29777 | - } | |
29778 | - break; | |
29779 | - } | |
29780 | - case '"': | |
29781 | - { | |
29782 | - je = jb+1; | |
29783 | - while( je < l && line[je] != state ) | |
29784 | - ++je; | |
29785 | - ++je; | |
29786 | - break; | |
29787 | - } | |
29788 | - case ' ': | |
29789 | - { | |
29790 | - je = jb+1; | |
29791 | - while( je < l && line[je] != state ) | |
29792 | - ++je; | |
29793 | - ++je; | |
29794 | - break; | |
29795 | - } | |
29796 | - case 'n': // nil && notes | |
29797 | - { | |
29798 | - je = jb; | |
29799 | - ++je; | |
29800 | - if( line[je] == 'i' ) | |
29801 | - while( je < l && line[je] != ' ' ) | |
29802 | - ++je; | |
29803 | - else { | |
29804 | - while( je < l && line[je] != '.' ) | |
29805 | - ++je; | |
29806 | - ++je; | |
29807 | - } | |
29808 | - break; | |
29809 | - } | |
29810 | - case 'c': // creation-date | |
29811 | - case 't': // timestamp | |
29812 | - case 'h': // http | |
29813 | - default: | |
29814 | - { | |
29815 | - je = jb; | |
29816 | - while( je < l && line[je] != '.' ) | |
29817 | - ++je; | |
29818 | - ++je; | |
29819 | - break; | |
29820 | - } | |
29821 | - } // end case | |
29822 | - if( debug >= 1 ) | |
29823 | - trace::print(line,jb,je); | |
29824 | - // fill structure | |
29825 | - if( line[jb] == '"' ) | |
29826 | - id->my_d.push_back( line.substr(jb+1,je-jb-2) ); | |
29827 | - else | |
29828 | - id->my_d.push_back( line.substr(jb,je-jb) ); | |
29829 | - // loop | |
29830 | - ++toknb; | |
29831 | - jb = je + 1; | |
29832 | - } | |
29833 | - | |
29834 | - if( toknb < tokmax ) | |
29835 | - { | |
29836 | - delete id; | |
29837 | - return NULL; | |
29838 | - } | |
29839 | - | |
29840 | - return id; | |
29841 | -} | |
29842 | - | |
29843 | -// ---------------------------------------------------------------------- | |
29844 | -// GNOKII | |
29845 | -// ---------------------------------------------------------------------- | |
29846 | -void tognokii( std::string const& l ) | |
29847 | -{ | |
29848 | - Id * id = parse( trace::NONE, 9, '[', l); | |
29849 | - if( id == NULL ) { | |
29850 | - if( l.size() > 2 ) | |
29851 | - std::cerr << "Broken line ==>" << l << "<==" << std::endl; | |
29852 | - return; | |
29853 | - } | |
29854 | - | |
29855 | - Id::storage_t const& s = id->my_d; | |
29856 | - | |
29857 | - // check phone(s) | |
29858 | - if( s[Id::PHONES].compare( "nil" ) != 0 ) { | |
29859 | - Id * phones = new Id; | |
29860 | - phones = parse( trace::NONE, 1, '(', s[Id::PHONES] ); | |
29861 | - if( phones == NULL ) { | |
29862 | - std::cerr << "can't parse phones ==>" << s[Id::PHONES] << "<==" << std::endl; | |
29863 | - delete id; | |
29864 | - return; | |
29865 | - } | |
29866 | - | |
29867 | - std::cout << s[Id::NAME] << '\t' << s[Id::FORNAME] << '\t'; | |
29868 | - | |
29869 | - Id * phone = new Id; | |
29870 | - for( int cur_phone = 0 ; cur_phone < phones->my_d.size() ; ++cur_phone ) { | |
29871 | - phone = parse( trace::NONE, 1, '[', phones->my_d[cur_phone] ); | |
29872 | - | |
29873 | - if( phone != NULL ) { | |
29874 | - std::cout << phone->my_d[1]; | |
29875 | - std::cout << '\t'; | |
29876 | - } | |
29877 | - } | |
29878 | - std::cout << std::endl; | |
29879 | - delete phone; | |
29880 | - delete phones; | |
29881 | - } | |
29882 | - | |
29883 | - delete id; | |
29884 | -} | |
29885 | - | |
29886 | - | |
29887 | - | |
29888 | -// ---------------------------------------------------------------------- | |
29889 | -// VCARD | |
29890 | -// ---------------------------------------------------------------------- | |
29891 | -static two_strings VCARDPhoneTypes [] = | |
29892 | -{ | |
29893 | - // PERSONAL VCARD | |
29894 | - { "home", "home" }, | |
29895 | - { "tel", "home" }, | |
29896 | - { "perso", "home" }, | |
29897 | - { "personnel", "home" }, | |
29898 | - { "personel", "home" }, | |
29899 | - { "monchat", "home" }, | |
29900 | - { "msg", "msg" }, | |
29901 | - { "mesg", "msg" }, | |
29902 | - { "work", "work" }, | |
29903 | - { "travail", "work" }, | |
29904 | - { "paris", "work" }, | |
29905 | - { "lyon", "work" }, | |
29906 | - { "issy", "work" }, | |
29907 | - { "insa", "work" }, | |
29908 | - { "woo", "work" }, | |
29909 | - { "fac", "work" }, | |
29910 | - { "voice", "voice" }, | |
29911 | - { "voie", "voice" }, | |
29912 | - { "fax", "fax" }, | |
29913 | - { "cell", "cell" }, | |
29914 | - { "portable", "cell" }, | |
29915 | - { "gsm", "cell" }, | |
29916 | - { "video", "video" }, | |
29917 | - { "pager", "pager" }, | |
29918 | - { "tatoo", "pager" }, | |
29919 | - { "voiture", "car" }, | |
29920 | - { "modem", "modem" }, | |
29921 | - { "isdn", "isdn" }, | |
29922 | - { "pcs", "pcs" }, | |
29923 | - { 0, 0 } | |
29924 | -}; | |
29925 | - | |
29926 | -struct VCARDPhoneTypesMap { | |
29927 | - static two_strings const my_default []; | |
29928 | - struct ltstr { | |
29929 | - inline bool | |
29930 | - operator()(const char* s1, const char* s2) const { | |
29931 | - return strcmp(s1, s2) < 0; | |
29932 | - } | |
29933 | - }; | |
29934 | - | |
29935 | - VCARDPhoneTypesMap() { | |
29936 | - unsigned short i = 0; | |
29937 | - while( VCARDPhoneTypes[i].my_val != 0 ) { | |
29938 | - my_h[ VCARDPhoneTypes[i].my_val ] = VCARDPhoneTypes[i].my_trans; | |
29939 | - ++i; | |
29940 | - } | |
29941 | - } | |
29942 | - | |
29943 | - typedef std::map<const char*,const char*,ltstr> hash_t; | |
29944 | - hash_t my_h; | |
29945 | -}; | |
29946 | - | |
29947 | -two_strings const VCARDPhoneTypesMap::my_default [] = | |
29948 | - { | |
29949 | - { "work", "work" }, | |
29950 | - { "fax", "fax" }, | |
29951 | - { "cell", "cell" }, | |
29952 | - { 0, 0 } | |
29953 | - }; | |
29954 | - | |
29955 | -static VCARDPhoneTypesMap vcard_phone_types_map; | |
29956 | - | |
29957 | -void tovcard( std::string const& l ) | |
29958 | -{ | |
29959 | - Id * id = parse( trace::NONE, 9,'[',l); | |
29960 | - if( id == NULL ) { | |
29961 | - if( l.size() > 2 ) | |
29962 | - std::cerr << "Broken line ==>" << l << "<==" << std::endl; | |
29963 | - return; | |
29964 | - } | |
29965 | - | |
29966 | - Id::storage_t const& s = id->my_d; | |
29967 | - | |
29968 | - // std::string filename( s[Id::FORNAME] + "_" + s[Id::NAME] + ".vcf" ); | |
29969 | - // std::ofstream os( filename.c_str() ); | |
29970 | - | |
29971 | - std::cout << "BEGIN:VCARD" << std::endl; | |
29972 | - | |
29973 | - std::cout << "FN:" << s[Id::NAME] << ' ' << s[Id::FORNAME] << std::endl; | |
29974 | - std::cout << "N:" << s[Id::FORNAME] << ';' << s[Id::NAME] << std::endl; | |
29975 | - | |
29976 | - if( s[Id::PHONES].compare( "nil" ) != 0 ) { | |
29977 | - Id * phones = new Id; | |
29978 | - phones = parse( trace::NONE, 1, '(', s[Id::PHONES] ); | |
29979 | - if( phones == NULL ) { | |
29980 | - std::cerr << "can't parse phones ==>" << s[Id::PHONES] << "<==" << std::endl; | |
29981 | - delete id; | |
29982 | - return; | |
29983 | - } | |
29984 | - | |
29985 | - Id * phone = new Id; | |
29986 | - for( int cur_phone = 0 ; cur_phone < phones->my_d.size() ; ++cur_phone ) { | |
29987 | - phone = parse( trace::NONE, 1, '[', phones->my_d[cur_phone] ); | |
29988 | - if( phone != NULL ) { | |
29989 | - std::cout << "TEL"; | |
29990 | - if( phone->my_d[0].find_first_of( "0123456789 _-:;," ) == phone->my_d[0].npos ) { | |
29991 | - VCARDPhoneTypesMap::hash_t::iterator it; | |
29992 | - if( (it=vcard_phone_types_map.my_h.find( const_cast<char*>(phone->my_d[0].c_str()))) != vcard_phone_types_map.my_h.end() ) { | |
29993 | - std::cout << ";" << it->second; | |
29994 | - } else { | |
29995 | - std::cout << ";" << vcard_phone_types_map.my_default[0].my_trans; | |
29996 | - } | |
29997 | - } | |
29998 | - if( phone->my_d.size() > 1 ) | |
29999 | - std::cout << ':' << phone->my_d[1] << std::endl; | |
30000 | - else | |
30001 | - std::cerr << "phone size is less than 2" << std::endl; | |
30002 | - } | |
30003 | - } | |
30004 | - delete phone; | |
30005 | - delete phones; | |
30006 | - } | |
30007 | - | |
30008 | - if( s[Id::ADRESSES].compare( "nil" ) != 0 ) { | |
30009 | - Id * adresses = new Id; | |
30010 | - adresses = parse( trace::NONE, 1, '(', s[Id::ADRESSES] ); | |
30011 | - if( adresses == NULL ) { | |
30012 | - std::cerr << "can't parse adresses ==>" << s[Id::ADRESSES] << "<==" << std::endl; | |
30013 | - delete id; | |
30014 | - return; | |
30015 | - } | |
30016 | - | |
30017 | - Id * adresse = new Id; | |
30018 | - for( int cur_adresse = 0 ; cur_adresse < adresses->my_d.size() ; ++cur_adresse ) { | |
30019 | - adresse = parse( trace::NONE, 1, '[', adresses->my_d[cur_adresse] ); | |
30020 | - if( adresse != NULL ) { | |
30021 | - // split again | |
30022 | - Id * fields = new Id; | |
30023 | - fields = parse( trace::NONE, 1, '(' , adresse->my_d[1] ); | |
30024 | - if( fields != NULL ) { | |
30025 | - std::string const& town = adresse->my_d[2]; | |
30026 | - std::string const& state = adresse->my_d[3]; | |
30027 | - std::string const& postal = adresse->my_d[4]; | |
30028 | - std::string const& country = adresse->my_d[5]; | |
30029 | - std::cout << "ADR"; | |
30030 | - if( adresse->my_d[0].size() > 0 ) | |
30031 | - if( adresse->my_d[0].find_first_of( "0123456789 _-:;," ) == adresse->my_d[0].npos ) | |
30032 | - std::cout << ";TYPE=" << adresse->my_d[0]; | |
30033 | - std::cout << ':' << ';' << ';' << fields->my_d[0]; | |
30034 | - for( int i=1 ; i<fields->my_d.size() ; ++i ) | |
30035 | - std::cout << ',' << fields->my_d[i] ; | |
30036 | - std::cout << ';' << town << ';' << state << ';' << postal << ';' << country << ';' << std::endl; | |
30037 | - } | |
30038 | - else | |
30039 | - std::cerr << "unknown adresse format for ==>" << adresse->my_d[1] << "<<=" << std::endl; | |
30040 | - | |
30041 | - delete fields; | |
30042 | - } | |
30043 | - } | |
30044 | - delete adresse; | |
30045 | - delete adresses; | |
30046 | - } | |
30047 | - | |
30048 | - if( s[Id::NET].compare("nil") != 0 ) { | |
30049 | - Id * nets = new Id; | |
30050 | - nets = parse( trace::NONE, 1, '(', s[Id::NET] ); | |
30051 | - if( nets == NULL ) { | |
30052 | - std::cerr << "can't parse nets ==>" << s[Id::NET] << "<==" << std::endl; | |
30053 | - delete id; | |
30054 | - return; | |
30055 | - } | |
30056 | - | |
30057 | - std::cout << "EMAIL;INTERNET;PREF:" << nets->my_d[0] << std::endl; | |
30058 | - for( int cur_net = 1 ; cur_net < nets->my_d.size() ; ++cur_net ) | |
30059 | - std::cout << "EMAIL;INTERNET:" << nets->my_d[cur_net] << std::endl; | |
30060 | - | |
30061 | - delete nets; | |
30062 | - } | |
30063 | - | |
30064 | - if( s[Id::COMPANY].compare("nil") != 0 ) | |
30065 | - std::cout << "ORG:" << s[Id::COMPANY] << std::endl; | |
30066 | - | |
30067 | - if( s[Id::AKA].compare("nil") != 0 ) { | |
30068 | - Id * akas = new Id; | |
30069 | - if( s[Id::AKA].find('(') == s[Id::AKA].npos ) | |
30070 | - std::cout << "NICKNAME:" << s[Id::AKA] << std::endl; | |
30071 | - else | |
30072 | - { | |
30073 | - akas = parse( trace::NONE, 1, '(', s[Id::AKA] ); | |
30074 | - if( akas == NULL ) { | |
30075 | - std::cerr << "can't parse akas ==>" << s[Id::AKA] << "<==" << std::endl; | |
30076 | - delete id; | |
30077 | - return; | |
30078 | - } | |
30079 | - | |
30080 | - Id * aka = new Id; | |
30081 | - for( int cur_aka = 0 ; cur_aka < akas->my_d.size() ; ++cur_aka ) { | |
30082 | - aka = parse( trace::NONE, 1, '(', akas->my_d[cur_aka] ); | |
30083 | - if( aka != NULL ) | |
30084 | - std::cout << "NICKNAME:" << aka->my_d[0] << std::endl; | |
30085 | - } | |
30086 | - delete aka; | |
30087 | - } | |
30088 | - delete akas; | |
30089 | - } | |
30090 | - | |
30091 | - if( s[Id::NOTES].compare("nil") != 0 ) { | |
30092 | - Id * notes = new Id; | |
30093 | - if( s[Id::NOTES].find('(') == s[Id::NOTES].npos ) | |
30094 | - std::cout << "NOTE:" << s[Id::NOTES] << std::endl; | |
30095 | - else { | |
30096 | - notes = parse( trace::NONE, 1, '(', s[Id::NOTES] ); | |
30097 | - if( notes == NULL ) { | |
30098 | - std::cerr << "can't parse notes ==>" << s[Id::NOTES] << "<==" << std::endl; | |
30099 | - delete id; | |
30100 | - return; | |
30101 | - } | |
30102 | - | |
30103 | - Id * note = new Id; | |
30104 | - for( int cur_note = 0 ; cur_note < notes->my_d.size() ; ++cur_note ) { | |
30105 | - note = parse( trace::NONE, 1, '(', notes->my_d[cur_note] ); | |
30106 | - if( note != NULL ) { | |
30107 | - std::string const& t = note->my_d[0]; | |
30108 | - std::string const& r = note->my_d[1]; | |
30109 | - | |
30110 | - if( t.find("creation-date") != t.npos || t.find("timestamp") != t.npos ) { | |
30111 | - ; // drop | |
30112 | - } else if( t.find("www") != t.npos || t.find("http") != t.npos ) { | |
30113 | - std::cout << "URL:" << r << std::endl; | |
30114 | - } else if( t.find("notes") != t.npos ) { | |
30115 | - std::cout << "NOTE:" << r << std::endl; | |
30116 | - } else if( t.find("icq") != t.npos ) { | |
30117 | - std::cout << "NOTE: ICQ #" << r << std::endl; | |
30118 | - } else if( t.find("msn") != t.npos ) { | |
30119 | - std::cout << "NOTE: MSN " << r << std::endl; | |
30120 | - } else { | |
30121 | - std::cerr << "drop notes: " << t << " for " << s[Id::NAME] << std::endl; | |
30122 | - } | |
30123 | - } | |
30124 | - } | |
30125 | - delete note; | |
30126 | - } | |
30127 | - delete notes; | |
30128 | - } | |
30129 | - | |
30130 | - std::cout << "END:VCARD" << std::endl << std::endl; | |
30131 | - delete id; | |
30132 | - // os.close(); | |
30133 | -} | |
30134 | - | |
30135 | - | |
30136 | -// ---------------------------------------------------------------------- | |
30137 | -// ABOOK | |
30138 | -// ---------------------------------------------------------------------- | |
30139 | - | |
30140 | -static two_strings ABOOKPhoneTypes [] = | |
30141 | -{ | |
30142 | - { "home", "phone" }, | |
30143 | - { "tel", "phone" }, | |
30144 | - { "perso", "phone" }, | |
30145 | - { "personnel", "phone" }, | |
30146 | - { "personel", "phone" }, | |
30147 | - { "monchat", "phone" }, | |
30148 | - { "msg", "phone" }, | |
30149 | - { "mesg", "phone" }, | |
30150 | - { "work", "workphone" }, | |
30151 | - { "travail", "workphone" }, | |
30152 | - { "paris", "workphone" }, | |
30153 | - { "lyon", "workphone" }, | |
30154 | - { "issy", "workphone" }, | |
30155 | - { "insa", "workphone" }, | |
30156 | - { "woo", "workphone" }, | |
30157 | - { "fac", "workphone" }, | |
30158 | - { "voice", "phone" }, | |
30159 | - { "voie", "phone" }, | |
30160 | - { "fax", "fax" }, | |
30161 | - { "cell", "mobile" }, | |
30162 | - { "portable", "mobile" }, | |
30163 | - { "gsm", "mobile" }, | |
30164 | - { "video", "phone" }, | |
30165 | - { "pager", "phone" }, | |
30166 | - { "tatoo", "phone" }, | |
30167 | - { "voiture", "phone" }, | |
30168 | - { "modem", "phone" }, | |
30169 | - { "isdn", "phone" }, | |
30170 | - { "pcs", "phone" }, | |
30171 | - { 0, 0 } | |
30172 | -}; | |
30173 | - | |
30174 | -struct ABOOKPhoneTypesMap { | |
30175 | - static two_strings const my_default []; | |
30176 | - struct ltstr { | |
30177 | - inline bool | |
30178 | - operator()(const char* s1, const char* s2) const { | |
30179 | - return strcmp(s1, s2) < 0; | |
30180 | - } | |
30181 | - }; | |
30182 | - | |
30183 | - ABOOKPhoneTypesMap() { | |
30184 | - unsigned short i = 0; | |
30185 | - while( ABOOKPhoneTypes[i].my_val != 0 ) { | |
30186 | - my_h[ ABOOKPhoneTypes[i].my_val ] = ABOOKPhoneTypes[i].my_trans; | |
30187 | - ++i; | |
30188 | - } | |
30189 | - } | |
30190 | - | |
30191 | - typedef std::map<const char*,const char*,ltstr> hash_t; | |
30192 | - hash_t my_h; | |
30193 | -}; | |
30194 | - | |
30195 | -two_strings const ABOOKPhoneTypesMap::my_default [] = { | |
30196 | - // VCARD ABOOK | |
30197 | - { "*", "phone" }, | |
30198 | - { 0, 0 } | |
30199 | -}; | |
30200 | - | |
30201 | -static ABOOKPhoneTypesMap abook_phone_types_map; | |
30202 | - | |
30203 | -void toabook( std::string const& l ) { | |
30204 | - Id * id = parse( trace::NONE, 9,'[',l); | |
30205 | - if( id == NULL ) { | |
30206 | - if( l.size() > 2 ) | |
30207 | - std::cerr << "Broken line ==>" << l << "<==" << std::endl; | |
30208 | - return; | |
30209 | - } | |
30210 | - | |
30211 | - Id::storage_t const& s = id->my_d; | |
30212 | - | |
30213 | - std::cout << '[' << counter << ']' << std::endl; | |
30214 | - ++counter; | |
30215 | - | |
30216 | - std::cout << "name=" << s[Id::FORNAME] << ' ' << s[Id::NAME] << std::endl; | |
30217 | - | |
30218 | - if( s[Id::NET].compare("nil") != 0 ) { | |
30219 | - Id * nets = new Id; | |
30220 | - nets = parse( trace::NONE, 1, '(', s[Id::NET] ); | |
30221 | - if( nets == NULL ) { | |
30222 | - std::cerr << "can't parse nets ==>" << s[Id::NET] << "<==" << std::endl; | |
30223 | - delete id; | |
30224 | - return; | |
30225 | - } | |
30226 | - | |
30227 | - std::cout << "email=" << nets->my_d[0]; | |
30228 | - for( int cur_net = 1 ; cur_net < nets->my_d.size() ; ++cur_net ) { | |
30229 | - std::cout << "," << nets->my_d[cur_net]; | |
30230 | - } | |
30231 | - std::cout << std::endl; | |
30232 | - | |
30233 | - delete nets; | |
30234 | - } | |
30235 | - | |
30236 | - if( s[Id::PHONES].compare( "nil" ) != 0 ) { | |
30237 | - Id * phones = new Id; | |
30238 | - phones = parse( trace::NONE, 1, '(', s[Id::PHONES] ); | |
30239 | - if( phones == NULL ) { | |
30240 | - std::cerr << "can't parse phones ==>" << s[Id::PHONES] << "<==" << std::endl; | |
30241 | - delete id; | |
30242 | - return; | |
30243 | - } | |
30244 | - | |
30245 | - Id * phone = new Id; | |
30246 | - for( int cur_phone = 0 ; cur_phone < phones->my_d.size() ; ++cur_phone ) { | |
30247 | - phone = parse( trace::NONE, 1, '[', phones->my_d[cur_phone] ); | |
30248 | - if( phone != NULL ) { | |
30249 | - if( phone->my_d[0].find_first_of( "0123456789 _-:;," ) == phone->my_d[0].npos ) { | |
30250 | - ABOOKPhoneTypesMap::hash_t::iterator it; | |
30251 | - if( (it=abook_phone_types_map.my_h.find( const_cast<char*>(phone->my_d[0].c_str()))) | |
30252 | - != abook_phone_types_map.my_h.end() ) { | |
30253 | - std::cout << it->second; | |
30254 | - } else { | |
30255 | - std::cout << abook_phone_types_map.my_default[0].my_trans; | |
30256 | - } | |
30257 | - } | |
30258 | - if( phone->my_d.size() > 1 ) | |
30259 | - std::cout << '=' << phone->my_d[1] << std::endl; | |
30260 | - else | |
30261 | - std::cerr << "phone size is less than 2" << std::endl; | |
30262 | - } | |
30263 | - } | |
30264 | - delete phone; | |
30265 | - delete phones; | |
30266 | - } | |
30267 | - | |
30268 | - if( s[Id::ADRESSES].compare( "nil" ) != 0 ) { | |
30269 | - Id * adresses = new Id; | |
30270 | - adresses = parse( trace::NONE, 1, '(', s[Id::ADRESSES] ); | |
30271 | - if( adresses == NULL ) { | |
30272 | - std::cerr << "can't parse adresses ==>" << s[Id::ADRESSES] << "<==" << std::endl; | |
30273 | - delete id; | |
30274 | - return; | |
30275 | - } | |
30276 | - | |
30277 | - Id * adresse = new Id; | |
30278 | - for( int cur_adresse = 0 ; cur_adresse < adresses->my_d.size() ; ++cur_adresse ) { | |
30279 | - adresse = parse( trace::NONE, 1, '[', adresses->my_d[cur_adresse] ); | |
30280 | - if( adresse != NULL ) { | |
30281 | - // split again | |
30282 | - Id * fields = new Id; | |
30283 | - fields = parse( trace::NONE, 1, '(' , adresse->my_d[1] ); | |
30284 | - if( fields != NULL ) { | |
30285 | - std::string const& town = adresse->my_d[2]; | |
30286 | - std::string const& state = adresse->my_d[3]; | |
30287 | - std::string const& postal = adresse->my_d[4]; | |
30288 | - std::string const& country = adresse->my_d[5]; | |
30289 | - | |
30290 | - std::cout << "address="; | |
30291 | - for( int i=0 ; i<fields->my_d.size() ; ++i ) | |
30292 | - std::cout << fields->my_d[i] << ' '; | |
30293 | - std::cout << std::endl; | |
30294 | - | |
30295 | - std::cout << "city=" << town << std::endl; | |
30296 | - std::cout << "state=" << state << std::endl; | |
30297 | - std::cout << "zip=" << postal << std::endl; | |
30298 | - std::cout << "country=" << country << std::endl; | |
30299 | - } else { | |
30300 | - std::cerr << "unknown adresse format for ==>" << adresse->my_d[1] << "<<=" << std::endl; | |
30301 | - } | |
30302 | - delete fields; | |
30303 | - } | |
30304 | - } | |
30305 | - delete adresse; | |
30306 | - delete adresses; | |
30307 | - } | |
30308 | - | |
30309 | - if( s[Id::AKA].compare("nil") != 0 ) | |
30310 | - { | |
30311 | - Id * akas = new Id; | |
30312 | - if( s[Id::AKA].find('(') == s[Id::AKA].npos ) | |
30313 | - { | |
30314 | - std::cout << "nick=" << s[Id::AKA] << std::endl; | |
30315 | - } | |
30316 | - delete akas; | |
30317 | - } | |
30318 | - | |
30319 | - if( s[Id::NOTES].compare("nil") != 0 ) { | |
30320 | - Id * notes = new Id; | |
30321 | - if( s[Id::NOTES].find('(') == s[Id::NOTES].npos ) { | |
30322 | - std::cout << "notes=" << s[Id::NOTES] << std::endl; | |
30323 | - } else { | |
30324 | - notes = parse( trace::NONE, 1, '(', s[Id::NOTES] ); | |
30325 | - if( notes == NULL ) { | |
30326 | - std::cerr << "can't parse notes ==>" << s[Id::NOTES] << "<==" << std::endl; | |
30327 | - delete id; | |
30328 | - return; | |
30329 | - } | |
30330 | - | |
30331 | - Id * note = new Id; | |
30332 | - for( int cur_note = 0 ; cur_note < notes->my_d.size() ; ++cur_note ) { | |
30333 | - note = parse( trace::NONE, 1, '(', notes->my_d[cur_note] ); | |
30334 | - | |
30335 | - if( note != NULL ) { | |
30336 | - std::string const& t = note->my_d[0]; | |
30337 | - std::string const& r = note->my_d[1]; | |
30338 | - | |
30339 | - if( t.find("creation-date") != t.npos || t.find("timestamp") != t.npos ) { | |
30340 | - ; // drop | |
30341 | - } else if( t.find("www") != t.npos || t.find("http") != t.npos ) { | |
30342 | - std::cout << "url=" << r << std::endl; | |
30343 | - } else if( t.find("notes") != t.npos ) { | |
30344 | - std::cout << "note=" << r << std::endl; | |
30345 | - } else if( t.find("icq") != t.npos ) { | |
30346 | - std::cout << "note=icq #" << r << std::endl; | |
30347 | - } else if( t.find("msn") != t.npos ) { | |
30348 | - std::cout << "note=msn" << r << std::endl; | |
30349 | - } else { | |
30350 | - std::cerr << "drop notes: " << t << " for " << s[Id::NAME] << std::endl; | |
30351 | - } | |
30352 | - } | |
30353 | - } | |
30354 | - delete note; | |
30355 | - delete notes; | |
30356 | - } | |
30357 | - } | |
30358 | - | |
30359 | - std::cout << std::endl; | |
30360 | - delete id; | |
30361 | -} | |
30362 | - | |
30363 | -// ---------------------------------------------------------------------- | |
30364 | -// CSV | |
30365 | -// ---------------------------------------------------------------------- | |
30366 | -void tocsv( std::string const& l ) | |
30367 | -{ | |
30368 | - char const sep = ','; | |
30369 | - char const quo = '"'; | |
30370 | - | |
30371 | - Id * id = parse( trace::NONE, 9,'[',l); | |
30372 | - if( id == NULL ) | |
30373 | - { | |
30374 | - if( l.size() > 2 ) | |
30375 | - std::cerr << "Broken line ==>" << l << "<==" << std::endl; | |
30376 | - return; | |
30377 | - } | |
30378 | - | |
30379 | - Id::storage_t const& s = id->my_d; | |
30380 | - | |
30381 | - // "First Name","Last Name","Display Name" | |
30382 | - std::cout << quo << s[Id::NAME] << quo << sep; | |
30383 | - std::cout << quo << s[Id::FORNAME] << quo << sep; | |
30384 | - std::cout << quo << s[Id::FORNAME] << ' ' << s[Id::NAME] << quo << sep; | |
30385 | - | |
30386 | - // "Nickname Name" | |
30387 | - std::string s_aka; | |
30388 | - if( s[Id::AKA].compare("nil") != 0 ) | |
30389 | - { | |
30390 | - Id * akas = new Id; | |
30391 | - if( s[Id::AKA].find('(') == s[Id::AKA].npos ) | |
30392 | - { | |
30393 | - std::cout << quo << s[Id::AKA] << quo << sep ; | |
30394 | - } | |
30395 | - else | |
30396 | - { | |
30397 | - akas = parse( trace::NONE, 1, '(', s[Id::AKA] ); | |
30398 | - if( akas == NULL ) | |
30399 | - { | |
30400 | - std::cerr << "can't parse akas ==>" << s[Id::AKA] << "<==" << std::endl; | |
30401 | - delete id; | |
30402 | - return; | |
30403 | - } | |
30404 | - | |
30405 | - Id * aka = new Id; | |
30406 | - aka = parse( trace::NONE, 1, '(', akas->my_d[0] ); | |
30407 | - if( aka != NULL ) | |
30408 | - { | |
30409 | - s_aka = quo + aka->my_d[0] + quo; | |
30410 | - } | |
30411 | - delete aka; | |
30412 | - delete akas; | |
30413 | - } | |
30414 | - } | |
30415 | - std::cout << s_aka << sep; | |
30416 | - | |
30417 | - // "E-mail","Secondary E-mail" | |
30418 | - std::string s_email1; | |
30419 | - std::string s_email2; | |
30420 | - if( s[Id::NET].compare("nil") != 0 ) | |
30421 | - { | |
30422 | - Id * nets = new Id; | |
30423 | - nets = parse( trace::NONE, 1, '(', s[Id::NET] ); | |
30424 | - if( nets == NULL ) | |
30425 | - { | |
30426 | - std::cerr << "can't parse nets ==>" << s[Id::NET] << "<==" << std::endl; | |
30427 | - delete id; | |
30428 | - return; | |
30429 | - } | |
30430 | - | |
30431 | - s_email1 = quo + nets->my_d[0] + quo; | |
30432 | - if( nets->my_d.size() > 1 ) | |
30433 | - { | |
30434 | - s_email2 = quo + nets->my_d[1] + quo; | |
30435 | - } | |
30436 | - delete nets; | |
30437 | - } | |
30438 | - std::cout << s_email1 << sep << s_email2 << sep; | |
30439 | - | |
30440 | - // "Business Phone","Home Phone","Fax Phone","Pager","Mobile Phone" | |
30441 | - std::string p_business; | |
30442 | - std::string p_home; | |
30443 | - std::string p_fax; | |
30444 | - std::string p_pager; | |
30445 | - std::string p_mobile; | |
30446 | - | |
30447 | - if( s[Id::PHONES].compare( "nil" ) != 0 ) | |
30448 | - { | |
30449 | - Id * phones = new Id; | |
30450 | - phones = parse( trace::NONE, 1, '(', s[Id::PHONES] ); | |
30451 | - if( phones == NULL ) | |
30452 | - { | |
30453 | - std::cerr << "can't parse phones ==>" << s[Id::PHONES] << "<==" << std::endl; | |
30454 | - delete id; | |
30455 | - return; | |
30456 | - } | |
30457 | - | |
30458 | - Id * phone = new Id; | |
30459 | - int cur_phone; | |
30460 | - for( cur_phone = 0 ; cur_phone < std::min(size_t(5),phones->my_d.size()) ; ++cur_phone ) | |
30461 | - { | |
30462 | - phone = parse( trace::NONE, 1, '[', phones->my_d[cur_phone] ); | |
30463 | - | |
30464 | - if( phone != NULL ) | |
30465 | - { | |
30466 | - std::string trans; | |
30467 | - if( phone->my_d[0].find_first_of( "0123456789 _-:;," ) == phone->my_d[0].npos ) | |
30468 | - { | |
30469 | - ABOOKPhoneTypesMap::hash_t::iterator it; | |
30470 | - if( (it=abook_phone_types_map.my_h.find( const_cast<char*>(phone->my_d[0].c_str()))) | |
30471 | - != abook_phone_types_map.my_h.end() ) | |
30472 | - { | |
30473 | - trans = it->second; | |
30474 | - } | |
30475 | - else | |
30476 | - { | |
30477 | - trans = abook_phone_types_map.my_default[0].my_trans; | |
30478 | - } | |
30479 | - } | |
30480 | - if( trans.find("home") != trans.npos ) | |
30481 | - { | |
30482 | - p_home = quo + phone->my_d[1] + quo ; | |
30483 | - } | |
30484 | - else if( trans.find("work") != trans.npos ) | |
30485 | - { | |
30486 | - p_business = quo + phone->my_d[1] + quo ; | |
30487 | - } | |
30488 | - else if( trans.find("cell") != trans.npos ) | |
30489 | - { | |
30490 | - p_mobile = quo + phone->my_d[1] + quo ; | |
30491 | - } | |
30492 | - else if( trans.find("fax") != trans.npos ) | |
30493 | - { | |
30494 | - p_fax = quo + phone->my_d[1] + quo ; | |
30495 | - } | |
30496 | - else if( trans.find("pager") != trans.npos ) | |
30497 | - { | |
30498 | - p_pager = quo + phone->my_d[1] + quo ; | |
30499 | - } | |
30500 | - else | |
30501 | - { | |
30502 | - if( p_home.size() == 0 ) | |
30503 | - { | |
30504 | - p_home = quo + phone->my_d[1] + quo ; | |
30505 | - } | |
30506 | - } | |
30507 | - } | |
30508 | - } | |
30509 | - delete phone; | |
30510 | - delete phones; | |
30511 | - } | |
30512 | - std::cout << p_business << sep | |
30513 | - << p_home << sep | |
30514 | - << p_fax << sep | |
30515 | - << p_pager << sep | |
30516 | - << p_mobile << sep; | |
30517 | - | |
30518 | - // "Home Street 1","Home Street 2","Home City","Home State","Home Postal Code","Home Country", | |
30519 | - // "Business Street 1","Business Street 2","Business City","Business State","Business Postal Code","Business Country" | |
30520 | - if( s[Id::ADRESSES].compare( "nil" ) != 0 ) | |
30521 | - { | |
30522 | - Id * adresses = new Id; | |
30523 | - adresses = parse( trace::NONE, 1, '(', s[Id::ADRESSES] ); | |
30524 | - if( adresses == NULL ) | |
30525 | - { | |
30526 | - std::cerr << "can't parse adresses ==>" << s[Id::ADRESSES] << "<==" << std::endl; | |
30527 | - delete id; | |
30528 | - return; | |
30529 | - } | |
30530 | - | |
30531 | - Id * adresse = new Id; | |
30532 | - int cur_adresse; | |
30533 | - for( cur_adresse = 0 ; cur_adresse < std::min(size_t(2),adresses->my_d.size()) ; ++cur_adresse ) | |
30534 | - { | |
30535 | - adresse = parse( trace::NONE, 1, '[', adresses->my_d[cur_adresse] ); | |
30536 | - | |
30537 | - if( adresse != NULL ) | |
30538 | - { | |
30539 | - // split again | |
30540 | - Id * fields = new Id; | |
30541 | - fields = parse( trace::NONE, 1, '(' , adresse->my_d[1] ); | |
30542 | - if( fields != NULL ) | |
30543 | - { | |
30544 | - std::string const& town = adresse->my_d[2]; | |
30545 | - std::string const& state = adresse->my_d[3]; | |
30546 | - std::string const& postal = adresse->my_d[4]; | |
30547 | - std::string const& country = adresse->my_d[5]; | |
30548 | - | |
30549 | -// if( adresse->my_d[0].size() > 0 ) | |
30550 | -// { | |
30551 | -// if( adresse->my_d[0].find_first_of( "0123456789 _-:;," ) == | |
30552 | -// adresse->my_d[0].npos ) | |
30553 | -// { | |
30554 | -// std::cout << ";TYPE=" << adresse->my_d[0]; | |
30555 | -// } | |
30556 | -// } | |
30557 | - int i; | |
30558 | - for( i=0 ; i<std::min(size_t(2),fields->my_d.size()) ; ++i ) | |
30559 | - std::cout << quo << fields->my_d[i] << quo << sep; | |
30560 | - for( i=std::min(size_t(2),fields->my_d.size()) ; i<2; ++i ) | |
30561 | - std::cout << sep; | |
30562 | - std::cout << quo << town << quo << sep | |
30563 | - << quo << state << quo << sep | |
30564 | - << quo << postal << quo << sep | |
30565 | - << quo << country << quo << sep; | |
30566 | - } | |
30567 | - else | |
30568 | - { | |
30569 | - std::cerr << "unknown adresse format for ==>" << adresse->my_d[1] | |
30570 | - << "<<=" << std::endl; | |
30571 | - } | |
30572 | - delete fields; | |
30573 | - } | |
30574 | - } | |
30575 | - for( cur_adresse = std::min(size_t(2),adresses->my_d.size()) ; cur_adresse<2; ++cur_adresse ) | |
30576 | - { | |
30577 | - std::cout << sep << sep << sep << sep << sep << sep; | |
30578 | - } | |
30579 | - delete adresse; | |
30580 | - delete adresses; | |
30581 | - } | |
30582 | - else | |
30583 | - { | |
30584 | - std::cout << sep << sep << sep << sep << sep << sep | |
30585 | - << sep << sep << sep << sep << sep << sep; | |
30586 | - } | |
30587 | - | |
30588 | - // "Job Title","Department","Company" | |
30589 | - std::string s_title; | |
30590 | - std::string s_departement; | |
30591 | - std::string s_company; | |
30592 | - if( s[Id::COMPANY].compare("nil") != 0 ) | |
30593 | - { | |
30594 | - s_company = quo + s[Id::COMPANY] + quo; | |
30595 | - } | |
30596 | - std::cout << s_title << sep | |
30597 | - << s_departement << sep | |
30598 | - << s_company << sep; | |
30599 | - | |
30600 | - // "Web Page 1","Web Page 2","Birth Year","Birth Month","Birth Day","User Field 1","User Field 2","User Field 3","User Field 4","Notes" | |
30601 | - std::string n_web1; | |
30602 | - std::string n_web2; | |
30603 | - std::string n_byear; | |
30604 | - std::string n_bmonth; | |
30605 | - std::string n_bday; | |
30606 | - std::string n_user1; // icq | |
30607 | - std::string n_user2; // im | |
30608 | - std::string n_user3; | |
30609 | - std::string n_user4; | |
30610 | - std::string n_note; | |
30611 | - | |
30612 | - if( s[Id::NOTES].compare("nil") != 0 ) | |
30613 | - { | |
30614 | - Id * notes = new Id; | |
30615 | - if( s[Id::NOTES].find('(') == s[Id::NOTES].npos ) | |
30616 | - { | |
30617 | - n_note = quo + s[Id::NOTES] + quo; | |
30618 | - } | |
30619 | - else | |
30620 | - { | |
30621 | - notes = parse( trace::NONE, 1, '(', s[Id::NOTES] ); | |
30622 | - if( notes == NULL ) | |
30623 | - { | |
30624 | - std::cerr << "can't parse notes ==>" << s[Id::NOTES] << "<==" ; | |
30625 | - delete id; | |
30626 | - return; | |
30627 | - } | |
30628 | - | |
30629 | - Id * note = new Id; | |
30630 | - int cur_note; | |
30631 | - for( cur_note = 0 ; cur_note < std::min(size_t(10),notes->my_d.size()) ; ++cur_note ) | |
30632 | - { | |
30633 | - note = parse( trace::NONE, 1, '(', notes->my_d[cur_note] ); | |
30634 | - | |
30635 | - if( note != NULL ) | |
30636 | - { | |
30637 | - std::string const& t = note->my_d[0]; | |
30638 | - std::string const& r = note->my_d[1]; | |
30639 | - | |
30640 | - if( t.find("www") != t.npos || t.find("http") != t.npos ) | |
30641 | - { | |
30642 | - if( n_web1.size() == 0 ) | |
30643 | - { | |
30644 | - n_web1 = quo + r + quo; | |
30645 | - } | |
30646 | - else | |
30647 | - { | |
30648 | - n_web2 = quo + r + quo; | |
30649 | - } | |
30650 | - } | |
30651 | - else if( t.find("icq") != t.npos ) | |
30652 | - { | |
30653 | - n_user1 = quo + r + quo; | |
30654 | - } | |
30655 | - else if( t.find("notes") != t.npos ) | |
30656 | - { | |
30657 | - n_note = quo + r + quo; | |
30658 | - } | |
30659 | - } | |
30660 | - } | |
30661 | - delete note; | |
30662 | - delete notes; | |
30663 | - } | |
30664 | - } | |
30665 | - | |
30666 | - std::cout << n_web1 << sep << n_web2 << sep | |
30667 | - << n_byear << sep << n_bmonth << sep << n_bday << sep | |
30668 | - << n_user1 << sep << n_user2 << sep << n_user3 << sep << n_user4 << sep | |
30669 | - << n_note; | |
30670 | - | |
30671 | - std::cout << std::endl; | |
30672 | - delete id; | |
30673 | -} | |
30674 | - | |
30675 | - | |
30676 | -// ---------------------------------------------------------------------- | |
30677 | -// USAGE | |
30678 | -// ---------------------------------------------------------------------- | |
30679 | -int | |
30680 | -usage(int argc, char * argv[] ) | |
30681 | -{ | |
30682 | - std::cerr << argv[0] << " -t (vcard|gnokii|csv|abook) -l (fr|en) bbdb.txt" << std::endl; | |
30683 | - std::cerr << "argc=" << argc << std::endl; | |
30684 | - | |
30685 | - return 1; | |
30686 | -} | |
30687 | - | |
30688 | - | |
30689 | -// ---------------------------------------------------------------------- | |
30690 | -// main | |
30691 | -// ---------------------------------------------------------------------- | |
30692 | -int | |
30693 | -main( int argc, char * argv[] ) | |
30694 | -{ | |
30695 | - if( argc < 4 ) | |
30696 | - { | |
30697 | - return usage(argc,argv); | |
30698 | - } | |
30699 | - | |
30700 | - char t; | |
30701 | - char * lg = "en"; | |
30702 | - if( argc == 4 && !strcmp(argv[1],"-t") ) | |
30703 | - { | |
30704 | - if( !strcmp(argv[2],"vcard") ) | |
30705 | - { | |
30706 | - t = 'v'; | |
30707 | - } | |
30708 | - else if( !strcmp(argv[2],"csv") ) | |
30709 | - { | |
30710 | - t = 'c'; | |
30711 | - } | |
30712 | - else if( !strcmp(argv[2],"gnokii") ) | |
30713 | - { | |
30714 | - t = 'g'; | |
30715 | - } | |
30716 | - else if( !strcmp(argv[2],"abook") ) | |
30717 | - { | |
30718 | - t = 'a'; | |
30719 | - } | |
30720 | - else | |
30721 | - { | |
30722 | - return usage(argc,argv); | |
30723 | - } | |
30724 | - } | |
30725 | - else if( argc == 6 && !strcmp(argv[3],"-l") ) | |
30726 | - { | |
30727 | - lg = argv[4]; | |
30728 | - if( strcmp(lg,"fr") && strcmp(argv[4],"en") ) | |
30729 | - { | |
30730 | - return usage(argc,argv); | |
30731 | - } | |
30732 | - } | |
30733 | - else | |
30734 | - { | |
30735 | - return usage(argc,argv); | |
30736 | - } | |
30737 | - | |
30738 | - std::vector<std::string> v; | |
30739 | - | |
30740 | - // open file | |
30741 | - std::ifstream fs; | |
30742 | - fs.open( argv[argc-1], std::ios::in ); | |
30743 | - if( ! fs.is_open() ) | |
30744 | - { | |
30745 | - std::cerr << "can't open " << argv[argc-1] << std::endl; | |
30746 | - return 1; | |
30747 | - } | |
30748 | - while( ! fs.eof() ) | |
30749 | - { | |
30750 | - char data[1024]; | |
30751 | - fs.getline(data,1024); | |
30752 | - if( data[0] != ';' ) | |
30753 | - { | |
30754 | - v.push_back( data ); | |
30755 | - } | |
30756 | - } | |
30757 | - fs.close(); | |
30758 | - | |
30759 | - // parse v | |
30760 | - switch( t ) | |
30761 | - { | |
30762 | - case 'g': | |
30763 | - std::for_each( v.begin(), v.end(), tognokii ); | |
30764 | - break; | |
30765 | - case 'v': | |
30766 | - std::for_each( v.begin(), v.end(), tovcard ); | |
30767 | - break; | |
30768 | - case 'a': | |
30769 | - std::for_each( v.begin(), v.end(), toabook ); | |
30770 | - break; | |
30771 | - case 'c': { | |
30772 | - if( !strcmp( lg, "en" )) | |
30773 | - { | |
30774 | - std::cout << "\"First Name\",\"Last Name\",\"Display Name\",\"Nickname Name\",\"E-mail\",\"Secondary E-mail\",\"Business Phone\",\"Home Phone\",\"Fax Phone\",\"Pager\",\"Mobile Phone\",\"Home Street 1\",\"Home Street 2\",\"Home City\",\"Home State\",\"Home Postal Code\",\"Home Country\",\"Business Street 1\",\"Business Street 2\",\"Business City\",\"Business State\",\"Business Postal Code\",\"Business Country\",\"Job Title\",\"Department\",\"Company\",\"Web Page 1\",\"Web Page 2\",\"Birth Year\",\"Birth Month\",\"Birth Day\",\"User Field 1\",\"User Field 2\",\"User Field 3\",\"User Field 4\",\"Notes\"" << std::endl; | |
30775 | - } | |
30776 | - else | |
30777 | - { | |
30778 |