mfiler4のgitリポジトリ
Revisão | ce5d56bba20716607dc648a4e8676bcf82abace6 (tree) |
---|---|
Hora | 2012-12-13 17:54:16 |
Autor | Minato Daisuke <ab25cq@wond...> |
Commiter | Minato Daisuke |
1.0.4d
@@ -1,5 +1,9 @@ | ||
1 | 1 | |
2 | -2012 12月8日 version 1.0.4c | |
2 | +2012 12月13日 version 1.0.4d | |
3 | + | |
4 | + 1. Linuxで動作確認 | |
5 | + | |
6 | +2012 12月13日 version 1.0.4c | |
3 | 7 | |
4 | 8 | 1. cursesを独自ライブラリからcurses(w)に変更 |
5 | 9 |
@@ -0,0 +1,6509 @@ | ||
1 | +@%:@! /bin/sh | |
2 | +@%:@ Guess values for system-dependent variables and create Makefiles. | |
3 | +@%:@ Generated by GNU Autoconf 2.63. | |
4 | +@%:@ | |
5 | +@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | +@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
7 | +@%:@ This configure script is free software; the Free Software Foundation | |
8 | +@%:@ gives unlimited permission to copy, distribute and modify it. | |
9 | +## --------------------- ## | |
10 | +## M4sh Initialization. ## | |
11 | +## --------------------- ## | |
12 | + | |
13 | +# Be more Bourne compatible | |
14 | +DUALCASE=1; export DUALCASE # for MKS sh | |
15 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
16 | + emulate sh | |
17 | + NULLCMD=: | |
18 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
19 | + # is contrary to our usage. Disable this feature. | |
20 | + alias -g '${1+"$@"}'='"$@"' | |
21 | + setopt NO_GLOB_SUBST | |
22 | +else | |
23 | + case `(set -o) 2>/dev/null` in | |
24 | + *posix*) set -o posix ;; | |
25 | +esac | |
26 | + | |
27 | +fi | |
28 | + | |
29 | + | |
30 | + | |
31 | + | |
32 | +# PATH needs CR | |
33 | +# Avoid depending upon Character Ranges. | |
34 | +as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | +as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | +as_cr_digits='0123456789' | |
38 | +as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | + | |
40 | +as_nl=' | |
41 | +' | |
42 | +export as_nl | |
43 | +# Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | + as_echo='printf %s\n' | |
49 | + as_echo_n='printf %s' | |
50 | +else | |
51 | + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | + as_echo_n='/usr/ucb/echo -n' | |
54 | + else | |
55 | + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | + as_echo_n_body='eval | |
57 | + arg=$1; | |
58 | + case $arg in | |
59 | + *"$as_nl"*) | |
60 | + expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | + esac; | |
63 | + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | + ' | |
65 | + export as_echo_n_body | |
66 | + as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | + fi | |
68 | + export as_echo_body | |
69 | + as_echo='sh -c $as_echo_body as_echo' | |
70 | +fi | |
71 | + | |
72 | +# The user is always right. | |
73 | +if test "${PATH_SEPARATOR+set}" != set; then | |
74 | + PATH_SEPARATOR=: | |
75 | + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | + PATH_SEPARATOR=';' | |
78 | + } | |
79 | +fi | |
80 | + | |
81 | +# Support unset when possible. | |
82 | +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
83 | + as_unset=unset | |
84 | +else | |
85 | + as_unset=false | |
86 | +fi | |
87 | + | |
88 | + | |
89 | +# IFS | |
90 | +# We need space, tab and new line, in precisely that order. Quoting is | |
91 | +# there to prevent editors from complaining about space-tab. | |
92 | +# (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | +# splitting by setting IFS to empty value.) | |
94 | +IFS=" "" $as_nl" | |
95 | + | |
96 | +# Find who we are. Look in the path if we contain no directory separator. | |
97 | +case $0 in | |
98 | + *[\\/]* ) as_myself=$0 ;; | |
99 | + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | +for as_dir in $PATH | |
101 | +do | |
102 | + IFS=$as_save_IFS | |
103 | + test -z "$as_dir" && as_dir=. | |
104 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | +done | |
106 | +IFS=$as_save_IFS | |
107 | + | |
108 | + ;; | |
109 | +esac | |
110 | +# We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | +# in which case we are not to be found in the path. | |
112 | +if test "x$as_myself" = x; then | |
113 | + as_myself=$0 | |
114 | +fi | |
115 | +if test ! -f "$as_myself"; then | |
116 | + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
117 | + { (exit 1); exit 1; } | |
118 | +fi | |
119 | + | |
120 | +# Work around bugs in pre-3.0 UWIN ksh. | |
121 | +for as_var in ENV MAIL MAILPATH | |
122 | +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | +done | |
124 | +PS1='$ ' | |
125 | +PS2='> ' | |
126 | +PS4='+ ' | |
127 | + | |
128 | +# NLS nuisances. | |
129 | +LC_ALL=C | |
130 | +export LC_ALL | |
131 | +LANGUAGE=C | |
132 | +export LANGUAGE | |
133 | + | |
134 | +# Required to use basename. | |
135 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
136 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
137 | + as_expr=expr | |
138 | +else | |
139 | + as_expr=false | |
140 | +fi | |
141 | + | |
142 | +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
143 | + as_basename=basename | |
144 | +else | |
145 | + as_basename=false | |
146 | +fi | |
147 | + | |
148 | + | |
149 | +# Name of the executable. | |
150 | +as_me=`$as_basename -- "$0" || | |
151 | +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
152 | + X"$0" : 'X\(//\)$' \| \ | |
153 | + X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
154 | +$as_echo X/"$0" | | |
155 | + sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
156 | + s//\1/ | |
157 | + q | |
158 | + } | |
159 | + /^X\/\(\/\/\)$/{ | |
160 | + s//\1/ | |
161 | + q | |
162 | + } | |
163 | + /^X\/\(\/\).*/{ | |
164 | + s//\1/ | |
165 | + q | |
166 | + } | |
167 | + s/.*/./; q'` | |
168 | + | |
169 | +# CDPATH. | |
170 | +$as_unset CDPATH | |
171 | + | |
172 | + | |
173 | +if test "x$CONFIG_SHELL" = x; then | |
174 | + if (eval ":") 2>/dev/null; then | |
175 | + as_have_required=yes | |
176 | +else | |
177 | + as_have_required=no | |
178 | +fi | |
179 | + | |
180 | + if test $as_have_required = yes && (eval ": | |
181 | +(as_func_return () { | |
182 | + (exit \$1) | |
183 | +} | |
184 | +as_func_success () { | |
185 | + as_func_return 0 | |
186 | +} | |
187 | +as_func_failure () { | |
188 | + as_func_return 1 | |
189 | +} | |
190 | +as_func_ret_success () { | |
191 | + return 0 | |
192 | +} | |
193 | +as_func_ret_failure () { | |
194 | + return 1 | |
195 | +} | |
196 | + | |
197 | +exitcode=0 | |
198 | +if as_func_success; then | |
199 | + : | |
200 | +else | |
201 | + exitcode=1 | |
202 | + echo as_func_success failed. | |
203 | +fi | |
204 | + | |
205 | +if as_func_failure; then | |
206 | + exitcode=1 | |
207 | + echo as_func_failure succeeded. | |
208 | +fi | |
209 | + | |
210 | +if as_func_ret_success; then | |
211 | + : | |
212 | +else | |
213 | + exitcode=1 | |
214 | + echo as_func_ret_success failed. | |
215 | +fi | |
216 | + | |
217 | +if as_func_ret_failure; then | |
218 | + exitcode=1 | |
219 | + echo as_func_ret_failure succeeded. | |
220 | +fi | |
221 | + | |
222 | +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | + : | |
224 | +else | |
225 | + exitcode=1 | |
226 | + echo positional parameters were not saved. | |
227 | +fi | |
228 | + | |
229 | +test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | + | |
231 | +( | |
232 | + as_lineno_1=\$LINENO | |
233 | + as_lineno_2=\$LINENO | |
234 | + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | +") 2> /dev/null; then | |
237 | + : | |
238 | +else | |
239 | + as_candidate_shells= | |
240 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
241 | +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
242 | +do | |
243 | + IFS=$as_save_IFS | |
244 | + test -z "$as_dir" && as_dir=. | |
245 | + case $as_dir in | |
246 | + /*) | |
247 | + for as_base in sh bash ksh sh5; do | |
248 | + as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | + done;; | |
250 | + esac | |
251 | +done | |
252 | +IFS=$as_save_IFS | |
253 | + | |
254 | + | |
255 | + for as_shell in $as_candidate_shells $SHELL; do | |
256 | + # Try only shells that exist, to save several forks. | |
257 | + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | + { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | + emulate sh | |
261 | + NULLCMD=: | |
262 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
263 | + # is contrary to our usage. Disable this feature. | |
264 | + alias -g '${1+"$@"}'='"$@"' | |
265 | + setopt NO_GLOB_SUBST | |
266 | +else | |
267 | + case `(set -o) 2>/dev/null` in | |
268 | + *posix*) set -o posix ;; | |
269 | +esac | |
270 | + | |
271 | +fi | |
272 | + | |
273 | + | |
274 | +: | |
275 | +_ASEOF | |
276 | +}; then | |
277 | + CONFIG_SHELL=$as_shell | |
278 | + as_have_required=yes | |
279 | + if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | + emulate sh | |
282 | + NULLCMD=: | |
283 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
284 | + # is contrary to our usage. Disable this feature. | |
285 | + alias -g '${1+"$@"}'='"$@"' | |
286 | + setopt NO_GLOB_SUBST | |
287 | +else | |
288 | + case `(set -o) 2>/dev/null` in | |
289 | + *posix*) set -o posix ;; | |
290 | +esac | |
291 | + | |
292 | +fi | |
293 | + | |
294 | + | |
295 | +: | |
296 | +(as_func_return () { | |
297 | + (exit $1) | |
298 | +} | |
299 | +as_func_success () { | |
300 | + as_func_return 0 | |
301 | +} | |
302 | +as_func_failure () { | |
303 | + as_func_return 1 | |
304 | +} | |
305 | +as_func_ret_success () { | |
306 | + return 0 | |
307 | +} | |
308 | +as_func_ret_failure () { | |
309 | + return 1 | |
310 | +} | |
311 | + | |
312 | +exitcode=0 | |
313 | +if as_func_success; then | |
314 | + : | |
315 | +else | |
316 | + exitcode=1 | |
317 | + echo as_func_success failed. | |
318 | +fi | |
319 | + | |
320 | +if as_func_failure; then | |
321 | + exitcode=1 | |
322 | + echo as_func_failure succeeded. | |
323 | +fi | |
324 | + | |
325 | +if as_func_ret_success; then | |
326 | + : | |
327 | +else | |
328 | + exitcode=1 | |
329 | + echo as_func_ret_success failed. | |
330 | +fi | |
331 | + | |
332 | +if as_func_ret_failure; then | |
333 | + exitcode=1 | |
334 | + echo as_func_ret_failure succeeded. | |
335 | +fi | |
336 | + | |
337 | +if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | + : | |
339 | +else | |
340 | + exitcode=1 | |
341 | + echo positional parameters were not saved. | |
342 | +fi | |
343 | + | |
344 | +test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | + | |
346 | +( | |
347 | + as_lineno_1=$LINENO | |
348 | + as_lineno_2=$LINENO | |
349 | + test "x$as_lineno_1" != "x$as_lineno_2" && | |
350 | + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
351 | + | |
352 | +_ASEOF | |
353 | +}; then | |
354 | + break | |
355 | +fi | |
356 | + | |
357 | +fi | |
358 | + | |
359 | + done | |
360 | + | |
361 | + if test "x$CONFIG_SHELL" != x; then | |
362 | + for as_var in BASH_ENV ENV | |
363 | + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
364 | + done | |
365 | + export CONFIG_SHELL | |
366 | + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
367 | +fi | |
368 | + | |
369 | + | |
370 | + if test $as_have_required = no; then | |
371 | + echo This script requires a shell more modern than all the | |
372 | + echo shells that I found on your system. Please install a | |
373 | + echo modern shell, or manually run the script under such a | |
374 | + echo shell if you do have one. | |
375 | + { (exit 1); exit 1; } | |
376 | +fi | |
377 | + | |
378 | + | |
379 | +fi | |
380 | + | |
381 | +fi | |
382 | + | |
383 | + | |
384 | + | |
385 | +(eval "as_func_return () { | |
386 | + (exit \$1) | |
387 | +} | |
388 | +as_func_success () { | |
389 | + as_func_return 0 | |
390 | +} | |
391 | +as_func_failure () { | |
392 | + as_func_return 1 | |
393 | +} | |
394 | +as_func_ret_success () { | |
395 | + return 0 | |
396 | +} | |
397 | +as_func_ret_failure () { | |
398 | + return 1 | |
399 | +} | |
400 | + | |
401 | +exitcode=0 | |
402 | +if as_func_success; then | |
403 | + : | |
404 | +else | |
405 | + exitcode=1 | |
406 | + echo as_func_success failed. | |
407 | +fi | |
408 | + | |
409 | +if as_func_failure; then | |
410 | + exitcode=1 | |
411 | + echo as_func_failure succeeded. | |
412 | +fi | |
413 | + | |
414 | +if as_func_ret_success; then | |
415 | + : | |
416 | +else | |
417 | + exitcode=1 | |
418 | + echo as_func_ret_success failed. | |
419 | +fi | |
420 | + | |
421 | +if as_func_ret_failure; then | |
422 | + exitcode=1 | |
423 | + echo as_func_ret_failure succeeded. | |
424 | +fi | |
425 | + | |
426 | +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | + : | |
428 | +else | |
429 | + exitcode=1 | |
430 | + echo positional parameters were not saved. | |
431 | +fi | |
432 | + | |
433 | +test \$exitcode = 0") || { | |
434 | + echo No shell found that supports shell functions. | |
435 | + echo Please tell bug-autoconf@gnu.org about your system, | |
436 | + echo including any error possibly output before this message. | |
437 | + echo This can help us improve future autoconf versions. | |
438 | + echo Configuration will now proceed without shell functions. | |
439 | +} | |
440 | + | |
441 | + | |
442 | + | |
443 | + as_lineno_1=$LINENO | |
444 | + as_lineno_2=$LINENO | |
445 | + test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
447 | + | |
448 | + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | + # uniformly replaced by the line number. The first 'sed' inserts a | |
450 | + # line-number line after each line using $LINENO; the second 'sed' | |
451 | + # does the real work. The second script uses 'N' to pair each | |
452 | + # line-number line with the line containing $LINENO, and appends | |
453 | + # trailing '-' during substitution so that $LINENO is not a special | |
454 | + # case at line end. | |
455 | + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
456 | + # scripts with optimization help from Paolo Bonzini. Blame Lee | |
457 | + # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | + sed -n ' | |
459 | + p | |
460 | + /[$]LINENO/= | |
461 | + ' <$as_myself | | |
462 | + sed ' | |
463 | + s/[$]LINENO.*/&-/ | |
464 | + t lineno | |
465 | + b | |
466 | + :lineno | |
467 | + N | |
468 | + :loop | |
469 | + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
470 | + t loop | |
471 | + s/-\n.*// | |
472 | + ' >$as_me.lineno && | |
473 | + chmod +x "$as_me.lineno" || | |
474 | + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
475 | + { (exit 1); exit 1; }; } | |
476 | + | |
477 | + # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | + # (the dirname of $[0] is not the place where we might find the | |
479 | + # original and so on. Autoconf is especially sensitive to this). | |
480 | + . "./$as_me.lineno" | |
481 | + # Exit status is that of the last command. | |
482 | + exit | |
483 | +} | |
484 | + | |
485 | + | |
486 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
487 | + as_dirname=dirname | |
488 | +else | |
489 | + as_dirname=false | |
490 | +fi | |
491 | + | |
492 | +ECHO_C= ECHO_N= ECHO_T= | |
493 | +case `echo -n x` in | |
494 | +-n*) | |
495 | + case `echo 'x\c'` in | |
496 | + *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | + *) ECHO_C='\c';; | |
498 | + esac;; | |
499 | +*) | |
500 | + ECHO_N='-n';; | |
501 | +esac | |
502 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
503 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
504 | + as_expr=expr | |
505 | +else | |
506 | + as_expr=false | |
507 | +fi | |
508 | + | |
509 | +rm -f conf$$ conf$$.exe conf$$.file | |
510 | +if test -d conf$$.dir; then | |
511 | + rm -f conf$$.dir/conf$$.file | |
512 | +else | |
513 | + rm -f conf$$.dir | |
514 | + mkdir conf$$.dir 2>/dev/null | |
515 | +fi | |
516 | +if (echo >conf$$.file) 2>/dev/null; then | |
517 | + if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | + as_ln_s='ln -s' | |
519 | + # ... but there are two gotchas: | |
520 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | + # In both cases, we have to default to `cp -p'. | |
523 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | + as_ln_s='cp -p' | |
525 | + elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | + as_ln_s=ln | |
527 | + else | |
528 | + as_ln_s='cp -p' | |
529 | + fi | |
530 | +else | |
531 | + as_ln_s='cp -p' | |
532 | +fi | |
533 | +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
534 | +rmdir conf$$.dir 2>/dev/null | |
535 | + | |
536 | +if mkdir -p . 2>/dev/null; then | |
537 | + as_mkdir_p=: | |
538 | +else | |
539 | + test -d ./-p && rmdir ./-p | |
540 | + as_mkdir_p=false | |
541 | +fi | |
542 | + | |
543 | +if test -x / >/dev/null 2>&1; then | |
544 | + as_test_x='test -x' | |
545 | +else | |
546 | + if ls -dL / >/dev/null 2>&1; then | |
547 | + as_ls_L_option=L | |
548 | + else | |
549 | + as_ls_L_option= | |
550 | + fi | |
551 | + as_test_x=' | |
552 | + eval sh -c '\'' | |
553 | + if test -d "$1"; then | |
554 | + test -d "$1/."; | |
555 | + else | |
556 | + case $1 in | |
557 | + -*)set "./$1";; | |
558 | + esac; | |
559 | + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | + ???[sx]*):;;*)false;;esac;fi | |
561 | + '\'' sh | |
562 | + ' | |
563 | +fi | |
564 | +as_executable_p=$as_test_x | |
565 | + | |
566 | +# Sed expression to map a string onto a valid CPP name. | |
567 | +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
568 | + | |
569 | +# Sed expression to map a string onto a valid variable name. | |
570 | +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
571 | + | |
572 | + | |
573 | + | |
574 | +exec 7<&0 </dev/null 6>&1 | |
575 | + | |
576 | +# Name of the host. | |
577 | +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
578 | +# so uname gets run too. | |
579 | +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
580 | + | |
581 | +# | |
582 | +# Initializations. | |
583 | +# | |
584 | +ac_default_prefix=/usr/local | |
585 | +ac_clean_files= | |
586 | +ac_config_libobj_dir=. | |
587 | +LIB@&t@OBJS= | |
588 | +cross_compiling=no | |
589 | +subdirs= | |
590 | +MFLAGS= | |
591 | +MAKEFLAGS= | |
592 | +SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | + | |
594 | +# Identity of this package. | |
595 | +PACKAGE_NAME= | |
596 | +PACKAGE_TARNAME= | |
597 | +PACKAGE_VERSION= | |
598 | +PACKAGE_STRING= | |
599 | +PACKAGE_BUGREPORT= | |
600 | + | |
601 | +ac_unique_file="src/main.c" | |
602 | +# Factoring default headers for most tests. | |
603 | +ac_includes_default="\ | |
604 | +#include <stdio.h> | |
605 | +#ifdef HAVE_SYS_TYPES_H | |
606 | +# include <sys/types.h> | |
607 | +#endif | |
608 | +#ifdef HAVE_SYS_STAT_H | |
609 | +# include <sys/stat.h> | |
610 | +#endif | |
611 | +#ifdef STDC_HEADERS | |
612 | +# include <stdlib.h> | |
613 | +# include <stddef.h> | |
614 | +#else | |
615 | +# ifdef HAVE_STDLIB_H | |
616 | +# include <stdlib.h> | |
617 | +# endif | |
618 | +#endif | |
619 | +#ifdef HAVE_STRING_H | |
620 | +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
621 | +# include <memory.h> | |
622 | +# endif | |
623 | +# include <string.h> | |
624 | +#endif | |
625 | +#ifdef HAVE_STRINGS_H | |
626 | +# include <strings.h> | |
627 | +#endif | |
628 | +#ifdef HAVE_INTTYPES_H | |
629 | +# include <inttypes.h> | |
630 | +#endif | |
631 | +#ifdef HAVE_STDINT_H | |
632 | +# include <stdint.h> | |
633 | +#endif | |
634 | +#ifdef HAVE_UNISTD_H | |
635 | +# include <unistd.h> | |
636 | +#endif" | |
637 | + | |
638 | +ac_subst_vars='LTLIBOBJS | |
639 | +LIB@&t@OBJS | |
640 | +EGREP | |
641 | +GREP | |
642 | +CPP | |
643 | +SYSTEM_MIGEMODIR | |
644 | +INSTALL_DATA | |
645 | +INSTALL_SCRIPT | |
646 | +INSTALL_PROGRAM | |
647 | +OBJEXT | |
648 | +EXEEXT | |
649 | +ac_ct_CC | |
650 | +CPPFLAGS | |
651 | +LDFLAGS | |
652 | +CFLAGS | |
653 | +CC | |
654 | +target_alias | |
655 | +host_alias | |
656 | +build_alias | |
657 | +LIBS | |
658 | +ECHO_T | |
659 | +ECHO_N | |
660 | +ECHO_C | |
661 | +DEFS | |
662 | +mandir | |
663 | +localedir | |
664 | +libdir | |
665 | +psdir | |
666 | +pdfdir | |
667 | +dvidir | |
668 | +htmldir | |
669 | +infodir | |
670 | +docdir | |
671 | +oldincludedir | |
672 | +includedir | |
673 | +localstatedir | |
674 | +sharedstatedir | |
675 | +sysconfdir | |
676 | +datadir | |
677 | +datarootdir | |
678 | +libexecdir | |
679 | +sbindir | |
680 | +bindir | |
681 | +program_transform_name | |
682 | +prefix | |
683 | +exec_prefix | |
684 | +PACKAGE_BUGREPORT | |
685 | +PACKAGE_STRING | |
686 | +PACKAGE_VERSION | |
687 | +PACKAGE_TARNAME | |
688 | +PACKAGE_NAME | |
689 | +PATH_SEPARATOR | |
690 | +SHELL' | |
691 | +ac_subst_files='' | |
692 | +ac_user_opts=' | |
693 | +enable_option_checking | |
694 | +with_debug | |
695 | +with_gprof_debug | |
696 | +with_optimize | |
697 | +with_migemo | |
698 | +with_migemo_dir | |
699 | +with_onig_dir | |
700 | +with_xyzsh_dir | |
701 | +with_system_migemodir | |
702 | +' | |
703 | + ac_precious_vars='build_alias | |
704 | +host_alias | |
705 | +target_alias | |
706 | +CC | |
707 | +CFLAGS | |
708 | +LDFLAGS | |
709 | +LIBS | |
710 | +CPPFLAGS | |
711 | +CPP' | |
712 | + | |
713 | + | |
714 | +# Initialize some variables set by options. | |
715 | +ac_init_help= | |
716 | +ac_init_version=false | |
717 | +ac_unrecognized_opts= | |
718 | +ac_unrecognized_sep= | |
719 | +# The variables have the same names as the options, with | |
720 | +# dashes changed to underlines. | |
721 | +cache_file=/dev/null | |
722 | +exec_prefix=NONE | |
723 | +no_create= | |
724 | +no_recursion= | |
725 | +prefix=NONE | |
726 | +program_prefix=NONE | |
727 | +program_suffix=NONE | |
728 | +program_transform_name=s,x,x, | |
729 | +silent= | |
730 | +site= | |
731 | +srcdir= | |
732 | +verbose= | |
733 | +x_includes=NONE | |
734 | +x_libraries=NONE | |
735 | + | |
736 | +# Installation directory options. | |
737 | +# These are left unexpanded so users can "make install exec_prefix=/foo" | |
738 | +# and all the variables that are supposed to be based on exec_prefix | |
739 | +# by default will actually change. | |
740 | +# Use braces instead of parens because sh, perl, etc. also accept them. | |
741 | +# (The list follows the same order as the GNU Coding Standards.) | |
742 | +bindir='${exec_prefix}/bin' | |
743 | +sbindir='${exec_prefix}/sbin' | |
744 | +libexecdir='${exec_prefix}/libexec' | |
745 | +datarootdir='${prefix}/share' | |
746 | +datadir='${datarootdir}' | |
747 | +sysconfdir='${prefix}/etc' | |
748 | +sharedstatedir='${prefix}/com' | |
749 | +localstatedir='${prefix}/var' | |
750 | +includedir='${prefix}/include' | |
751 | +oldincludedir='/usr/include' | |
752 | +docdir='${datarootdir}/doc/${PACKAGE}' | |
753 | +infodir='${datarootdir}/info' | |
754 | +htmldir='${docdir}' | |
755 | +dvidir='${docdir}' | |
756 | +pdfdir='${docdir}' | |
757 | +psdir='${docdir}' | |
758 | +libdir='${exec_prefix}/lib' | |
759 | +localedir='${datarootdir}/locale' | |
760 | +mandir='${datarootdir}/man' | |
761 | + | |
762 | +ac_prev= | |
763 | +ac_dashdash= | |
764 | +for ac_option | |
765 | +do | |
766 | + # If the previous option needs an argument, assign it. | |
767 | + if test -n "$ac_prev"; then | |
768 | + eval $ac_prev=\$ac_option | |
769 | + ac_prev= | |
770 | + continue | |
771 | + fi | |
772 | + | |
773 | + case $ac_option in | |
774 | + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
775 | + *) ac_optarg=yes ;; | |
776 | + esac | |
777 | + | |
778 | + # Accept the important Cygnus configure options, so we can diagnose typos. | |
779 | + | |
780 | + case $ac_dashdash$ac_option in | |
781 | + --) | |
782 | + ac_dashdash=yes ;; | |
783 | + | |
784 | + -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
785 | + ac_prev=bindir ;; | |
786 | + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
787 | + bindir=$ac_optarg ;; | |
788 | + | |
789 | + -build | --build | --buil | --bui | --bu) | |
790 | + ac_prev=build_alias ;; | |
791 | + -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
792 | + build_alias=$ac_optarg ;; | |
793 | + | |
794 | + -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
795 | + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
796 | + ac_prev=cache_file ;; | |
797 | + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
798 | + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
799 | + cache_file=$ac_optarg ;; | |
800 | + | |
801 | + --config-cache | -C) | |
802 | + cache_file=config.cache ;; | |
803 | + | |
804 | + -datadir | --datadir | --datadi | --datad) | |
805 | + ac_prev=datadir ;; | |
806 | + -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
807 | + datadir=$ac_optarg ;; | |
808 | + | |
809 | + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
810 | + | --dataroo | --dataro | --datar) | |
811 | + ac_prev=datarootdir ;; | |
812 | + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
813 | + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
814 | + datarootdir=$ac_optarg ;; | |
815 | + | |
816 | + -disable-* | --disable-*) | |
817 | + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
818 | + # Reject names that are not valid shell variable names. | |
819 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
820 | + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
821 | + { (exit 1); exit 1; }; } | |
822 | + ac_useropt_orig=$ac_useropt | |
823 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
824 | + case $ac_user_opts in | |
825 | + *" | |
826 | +"enable_$ac_useropt" | |
827 | +"*) ;; | |
828 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
829 | + ac_unrecognized_sep=', ';; | |
830 | + esac | |
831 | + eval enable_$ac_useropt=no ;; | |
832 | + | |
833 | + -docdir | --docdir | --docdi | --doc | --do) | |
834 | + ac_prev=docdir ;; | |
835 | + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
836 | + docdir=$ac_optarg ;; | |
837 | + | |
838 | + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
839 | + ac_prev=dvidir ;; | |
840 | + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
841 | + dvidir=$ac_optarg ;; | |
842 | + | |
843 | + -enable-* | --enable-*) | |
844 | + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
845 | + # Reject names that are not valid shell variable names. | |
846 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
847 | + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
848 | + { (exit 1); exit 1; }; } | |
849 | + ac_useropt_orig=$ac_useropt | |
850 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
851 | + case $ac_user_opts in | |
852 | + *" | |
853 | +"enable_$ac_useropt" | |
854 | +"*) ;; | |
855 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
856 | + ac_unrecognized_sep=', ';; | |
857 | + esac | |
858 | + eval enable_$ac_useropt=\$ac_optarg ;; | |
859 | + | |
860 | + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
861 | + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
862 | + | --exec | --exe | --ex) | |
863 | + ac_prev=exec_prefix ;; | |
864 | + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
865 | + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
866 | + | --exec=* | --exe=* | --ex=*) | |
867 | + exec_prefix=$ac_optarg ;; | |
868 | + | |
869 | + -gas | --gas | --ga | --g) | |
870 | + # Obsolete; use --with-gas. | |
871 | + with_gas=yes ;; | |
872 | + | |
873 | + -help | --help | --hel | --he | -h) | |
874 | + ac_init_help=long ;; | |
875 | + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
876 | + ac_init_help=recursive ;; | |
877 | + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
878 | + ac_init_help=short ;; | |
879 | + | |
880 | + -host | --host | --hos | --ho) | |
881 | + ac_prev=host_alias ;; | |
882 | + -host=* | --host=* | --hos=* | --ho=*) | |
883 | + host_alias=$ac_optarg ;; | |
884 | + | |
885 | + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
886 | + ac_prev=htmldir ;; | |
887 | + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
888 | + | --ht=*) | |
889 | + htmldir=$ac_optarg ;; | |
890 | + | |
891 | + -includedir | --includedir | --includedi | --included | --include \ | |
892 | + | --includ | --inclu | --incl | --inc) | |
893 | + ac_prev=includedir ;; | |
894 | + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
895 | + | --includ=* | --inclu=* | --incl=* | --inc=*) | |
896 | + includedir=$ac_optarg ;; | |
897 | + | |
898 | + -infodir | --infodir | --infodi | --infod | --info | --inf) | |
899 | + ac_prev=infodir ;; | |
900 | + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
901 | + infodir=$ac_optarg ;; | |
902 | + | |
903 | + -libdir | --libdir | --libdi | --libd) | |
904 | + ac_prev=libdir ;; | |
905 | + -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
906 | + libdir=$ac_optarg ;; | |
907 | + | |
908 | + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
909 | + | --libexe | --libex | --libe) | |
910 | + ac_prev=libexecdir ;; | |
911 | + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
912 | + | --libexe=* | --libex=* | --libe=*) | |
913 | + libexecdir=$ac_optarg ;; | |
914 | + | |
915 | + -localedir | --localedir | --localedi | --localed | --locale) | |
916 | + ac_prev=localedir ;; | |
917 | + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
918 | + localedir=$ac_optarg ;; | |
919 | + | |
920 | + -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
921 | + | --localstate | --localstat | --localsta | --localst | --locals) | |
922 | + ac_prev=localstatedir ;; | |
923 | + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
924 | + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
925 | + localstatedir=$ac_optarg ;; | |
926 | + | |
927 | + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
928 | + ac_prev=mandir ;; | |
929 | + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
930 | + mandir=$ac_optarg ;; | |
931 | + | |
932 | + -nfp | --nfp | --nf) | |
933 | + # Obsolete; use --without-fp. | |
934 | + with_fp=no ;; | |
935 | + | |
936 | + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
937 | + | --no-cr | --no-c | -n) | |
938 | + no_create=yes ;; | |
939 | + | |
940 | + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
941 | + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
942 | + no_recursion=yes ;; | |
943 | + | |
944 | + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
945 | + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
946 | + | --oldin | --oldi | --old | --ol | --o) | |
947 | + ac_prev=oldincludedir ;; | |
948 | + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
949 | + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
950 | + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
951 | + oldincludedir=$ac_optarg ;; | |
952 | + | |
953 | + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
954 | + ac_prev=prefix ;; | |
955 | + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
956 | + prefix=$ac_optarg ;; | |
957 | + | |
958 | + -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
959 | + | --program-pre | --program-pr | --program-p) | |
960 | + ac_prev=program_prefix ;; | |
961 | + -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
962 | + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
963 | + program_prefix=$ac_optarg ;; | |
964 | + | |
965 | + -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
966 | + | --program-suf | --program-su | --program-s) | |
967 | + ac_prev=program_suffix ;; | |
968 | + -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
969 | + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
970 | + program_suffix=$ac_optarg ;; | |
971 | + | |
972 | + -program-transform-name | --program-transform-name \ | |
973 | + | --program-transform-nam | --program-transform-na \ | |
974 | + | --program-transform-n | --program-transform- \ | |
975 | + | --program-transform | --program-transfor \ | |
976 | + | --program-transfo | --program-transf \ | |
977 | + | --program-trans | --program-tran \ | |
978 | + | --progr-tra | --program-tr | --program-t) | |
979 | + ac_prev=program_transform_name ;; | |
980 | + -program-transform-name=* | --program-transform-name=* \ | |
981 | + | --program-transform-nam=* | --program-transform-na=* \ | |
982 | + | --program-transform-n=* | --program-transform-=* \ | |
983 | + | --program-transform=* | --program-transfor=* \ | |
984 | + | --program-transfo=* | --program-transf=* \ | |
985 | + | --program-trans=* | --program-tran=* \ | |
986 | + | --progr-tra=* | --program-tr=* | --program-t=*) | |
987 | + program_transform_name=$ac_optarg ;; | |
988 | + | |
989 | + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
990 | + ac_prev=pdfdir ;; | |
991 | + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
992 | + pdfdir=$ac_optarg ;; | |
993 | + | |
994 | + -psdir | --psdir | --psdi | --psd | --ps) | |
995 | + ac_prev=psdir ;; | |
996 | + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
997 | + psdir=$ac_optarg ;; | |
998 | + | |
999 | + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1000 | + | -silent | --silent | --silen | --sile | --sil) | |
1001 | + silent=yes ;; | |
1002 | + | |
1003 | + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1004 | + ac_prev=sbindir ;; | |
1005 | + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1006 | + | --sbi=* | --sb=*) | |
1007 | + sbindir=$ac_optarg ;; | |
1008 | + | |
1009 | + -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1010 | + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1011 | + | --sharedst | --shareds | --shared | --share | --shar \ | |
1012 | + | --sha | --sh) | |
1013 | + ac_prev=sharedstatedir ;; | |
1014 | + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1015 | + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1016 | + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1017 | + | --sha=* | --sh=*) | |
1018 | + sharedstatedir=$ac_optarg ;; | |
1019 | + | |
1020 | + -site | --site | --sit) | |
1021 | + ac_prev=site ;; | |
1022 | + -site=* | --site=* | --sit=*) | |
1023 | + site=$ac_optarg ;; | |
1024 | + | |
1025 | + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1026 | + ac_prev=srcdir ;; | |
1027 | + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1028 | + srcdir=$ac_optarg ;; | |
1029 | + | |
1030 | + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1031 | + | --syscon | --sysco | --sysc | --sys | --sy) | |
1032 | + ac_prev=sysconfdir ;; | |
1033 | + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1034 | + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1035 | + sysconfdir=$ac_optarg ;; | |
1036 | + | |
1037 | + -target | --target | --targe | --targ | --tar | --ta | --t) | |
1038 | + ac_prev=target_alias ;; | |
1039 | + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1040 | + target_alias=$ac_optarg ;; | |
1041 | + | |
1042 | + -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1043 | + verbose=yes ;; | |
1044 | + | |
1045 | + -version | --version | --versio | --versi | --vers | -V) | |
1046 | + ac_init_version=: ;; | |
1047 | + | |
1048 | + -with-* | --with-*) | |
1049 | + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1050 | + # Reject names that are not valid shell variable names. | |
1051 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1052 | + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1053 | + { (exit 1); exit 1; }; } | |
1054 | + ac_useropt_orig=$ac_useropt | |
1055 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1056 | + case $ac_user_opts in | |
1057 | + *" | |
1058 | +"with_$ac_useropt" | |
1059 | +"*) ;; | |
1060 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1061 | + ac_unrecognized_sep=', ';; | |
1062 | + esac | |
1063 | + eval with_$ac_useropt=\$ac_optarg ;; | |
1064 | + | |
1065 | + -without-* | --without-*) | |
1066 | + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1067 | + # Reject names that are not valid shell variable names. | |
1068 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1069 | + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1070 | + { (exit 1); exit 1; }; } | |
1071 | + ac_useropt_orig=$ac_useropt | |
1072 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1073 | + case $ac_user_opts in | |
1074 | + *" | |
1075 | +"with_$ac_useropt" | |
1076 | +"*) ;; | |
1077 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1078 | + ac_unrecognized_sep=', ';; | |
1079 | + esac | |
1080 | + eval with_$ac_useropt=no ;; | |
1081 | + | |
1082 | + --x) | |
1083 | + # Obsolete; use --with-x. | |
1084 | + with_x=yes ;; | |
1085 | + | |
1086 | + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1087 | + | --x-incl | --x-inc | --x-in | --x-i) | |
1088 | + ac_prev=x_includes ;; | |
1089 | + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1090 | + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1091 | + x_includes=$ac_optarg ;; | |
1092 | + | |
1093 | + -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1094 | + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1095 | + ac_prev=x_libraries ;; | |
1096 | + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1097 | + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1098 | + x_libraries=$ac_optarg ;; | |
1099 | + | |
1100 | + -*) { $as_echo "$as_me: error: unrecognized option: $ac_option | |
1101 | +Try \`$0 --help' for more information." >&2 | |
1102 | + { (exit 1); exit 1; }; } | |
1103 | + ;; | |
1104 | + | |
1105 | + *=*) | |
1106 | + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1107 | + # Reject names that are not valid shell variable names. | |
1108 | + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1109 | + { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1110 | + { (exit 1); exit 1; }; } | |
1111 | + eval $ac_envvar=\$ac_optarg | |
1112 | + export $ac_envvar ;; | |
1113 | + | |
1114 | + *) | |
1115 | + # FIXME: should be removed in autoconf 3.0. | |
1116 | + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1117 | + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1118 | + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1119 | + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1120 | + ;; | |
1121 | + | |
1122 | + esac | |
1123 | +done | |
1124 | + | |
1125 | +if test -n "$ac_prev"; then | |
1126 | + ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1127 | + { $as_echo "$as_me: error: missing argument to $ac_option" >&2 | |
1128 | + { (exit 1); exit 1; }; } | |
1129 | +fi | |
1130 | + | |
1131 | +if test -n "$ac_unrecognized_opts"; then | |
1132 | + case $enable_option_checking in | |
1133 | + no) ;; | |
1134 | + fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1135 | + { (exit 1); exit 1; }; } ;; | |
1136 | + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1137 | + esac | |
1138 | +fi | |
1139 | + | |
1140 | +# Check all directory arguments for consistency. | |
1141 | +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1142 | + datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1143 | + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1144 | + libdir localedir mandir | |
1145 | +do | |
1146 | + eval ac_val=\$$ac_var | |
1147 | + # Remove trailing slashes. | |
1148 | + case $ac_val in | |
1149 | + */ ) | |
1150 | + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1151 | + eval $ac_var=\$ac_val;; | |
1152 | + esac | |
1153 | + # Be sure to have absolute directory names. | |
1154 | + case $ac_val in | |
1155 | + [\\/$]* | ?:[\\/]* ) continue;; | |
1156 | + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1157 | + esac | |
1158 | + { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1159 | + { (exit 1); exit 1; }; } | |
1160 | +done | |
1161 | + | |
1162 | +# There might be people who depend on the old broken behavior: `$host' | |
1163 | +# used to hold the argument of --host etc. | |
1164 | +# FIXME: To remove some day. | |
1165 | +build=$build_alias | |
1166 | +host=$host_alias | |
1167 | +target=$target_alias | |
1168 | + | |
1169 | +# FIXME: To remove some day. | |
1170 | +if test "x$host_alias" != x; then | |
1171 | + if test "x$build_alias" = x; then | |
1172 | + cross_compiling=maybe | |
1173 | + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1174 | + If a cross compiler is detected then cross compile mode will be used." >&2 | |
1175 | + elif test "x$build_alias" != "x$host_alias"; then | |
1176 | + cross_compiling=yes | |
1177 | + fi | |
1178 | +fi | |
1179 | + | |
1180 | +ac_tool_prefix= | |
1181 | +test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1182 | + | |
1183 | +test "$silent" = yes && exec 6>/dev/null | |
1184 | + | |
1185 | + | |
1186 | +ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1187 | +ac_ls_di=`ls -di .` && | |
1188 | +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1189 | + { $as_echo "$as_me: error: working directory cannot be determined" >&2 | |
1190 | + { (exit 1); exit 1; }; } | |
1191 | +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1192 | + { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1193 | + { (exit 1); exit 1; }; } | |
1194 | + | |
1195 | + | |
1196 | +# Find the source files, if location was not specified. | |
1197 | +if test -z "$srcdir"; then | |
1198 | + ac_srcdir_defaulted=yes | |
1199 | + # Try the directory containing this script, then the parent directory. | |
1200 | + ac_confdir=`$as_dirname -- "$as_myself" || | |
1201 | +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1202 | + X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1203 | + X"$as_myself" : 'X\(//\)$' \| \ | |
1204 | + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1205 | +$as_echo X"$as_myself" | | |
1206 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1207 | + s//\1/ | |
1208 | + q | |
1209 | + } | |
1210 | + /^X\(\/\/\)[^/].*/{ | |
1211 | + s//\1/ | |
1212 | + q | |
1213 | + } | |
1214 | + /^X\(\/\/\)$/{ | |
1215 | + s//\1/ | |
1216 | + q | |
1217 | + } | |
1218 | + /^X\(\/\).*/{ | |
1219 | + s//\1/ | |
1220 | + q | |
1221 | + } | |
1222 | + s/.*/./; q'` | |
1223 | + srcdir=$ac_confdir | |
1224 | + if test ! -r "$srcdir/$ac_unique_file"; then | |
1225 | + srcdir=.. | |
1226 | + fi | |
1227 | +else | |
1228 | + ac_srcdir_defaulted=no | |
1229 | +fi | |
1230 | +if test ! -r "$srcdir/$ac_unique_file"; then | |
1231 | + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1232 | + { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1233 | + { (exit 1); exit 1; }; } | |
1234 | +fi | |
1235 | +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1236 | +ac_abs_confdir=`( | |
1237 | + cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 | |
1238 | + { (exit 1); exit 1; }; } | |
1239 | + pwd)` | |
1240 | +# When building in place, set srcdir=. | |
1241 | +if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1242 | + srcdir=. | |
1243 | +fi | |
1244 | +# Remove unnecessary trailing slashes from srcdir. | |
1245 | +# Double slashes in file names in object file debugging info | |
1246 | +# mess up M-x gdb in Emacs. | |
1247 | +case $srcdir in | |
1248 | +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1249 | +esac | |
1250 | +for ac_var in $ac_precious_vars; do | |
1251 | + eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1252 | + eval ac_env_${ac_var}_value=\$${ac_var} | |
1253 | + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1254 | + eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1255 | +done | |
1256 | + | |
1257 | +# | |
1258 | +# Report the --help message. | |
1259 | +# | |
1260 | +if test "$ac_init_help" = "long"; then | |
1261 | + # Omit some internal or obsolete options to make the list less imposing. | |
1262 | + # This message is too long to be a string in the A/UX 3.1 sh. | |
1263 | + cat <<_ACEOF | |
1264 | +\`configure' configures this package to adapt to many kinds of systems. | |
1265 | + | |
1266 | +Usage: $0 [OPTION]... [VAR=VALUE]... | |
1267 | + | |
1268 | +To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1269 | +VAR=VALUE. See below for descriptions of some of the useful variables. | |
1270 | + | |
1271 | +Defaults for the options are specified in brackets. | |
1272 | + | |
1273 | +Configuration: | |
1274 | + -h, --help display this help and exit | |
1275 | + --help=short display options specific to this package | |
1276 | + --help=recursive display the short help of all the included packages | |
1277 | + -V, --version display version information and exit | |
1278 | + -q, --quiet, --silent do not print \`checking...' messages | |
1279 | + --cache-file=FILE cache test results in FILE [disabled] | |
1280 | + -C, --config-cache alias for \`--cache-file=config.cache' | |
1281 | + -n, --no-create do not create output files | |
1282 | + --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1283 | + | |
1284 | +Installation directories: | |
1285 | + --prefix=PREFIX install architecture-independent files in PREFIX | |
1286 | + [$ac_default_prefix] | |
1287 | + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1288 | + [PREFIX] | |
1289 | + | |
1290 | +By default, \`make install' will install all the files in | |
1291 | +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1292 | +an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1293 | +for instance \`--prefix=\$HOME'. | |
1294 | + | |
1295 | +For better control, use the options below. | |
1296 | + | |
1297 | +Fine tuning of the installation directories: | |
1298 | + --bindir=DIR user executables [EPREFIX/bin] | |
1299 | + --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1300 | + --libexecdir=DIR program executables [EPREFIX/libexec] | |
1301 | + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1302 | + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1303 | + --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1304 | + --libdir=DIR object code libraries [EPREFIX/lib] | |
1305 | + --includedir=DIR C header files [PREFIX/include] | |
1306 | + --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1307 | + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1308 | + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1309 | + --infodir=DIR info documentation [DATAROOTDIR/info] | |
1310 | + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1311 | + --mandir=DIR man documentation [DATAROOTDIR/man] | |
1312 | + --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@ | |
1313 | + --htmldir=DIR html documentation [DOCDIR] | |
1314 | + --dvidir=DIR dvi documentation [DOCDIR] | |
1315 | + --pdfdir=DIR pdf documentation [DOCDIR] | |
1316 | + --psdir=DIR ps documentation [DOCDIR] | |
1317 | +_ACEOF | |
1318 | + | |
1319 | + cat <<\_ACEOF | |
1320 | +_ACEOF | |
1321 | +fi | |
1322 | + | |
1323 | +if test -n "$ac_init_help"; then | |
1324 | + | |
1325 | + cat <<\_ACEOF | |
1326 | + | |
1327 | +Optional Packages: | |
1328 | + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1329 | + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1330 | + --with-debug include debug info | |
1331 | + --with-gprof-debug include debug info | |
1332 | + --with-optimize with optimize flag(-O2) CFLAGS | |
1333 | + --with-migemo enable migemo | |
1334 | + --with-migemo-dir=DIR set migemo directory | |
1335 | + --with-onig-dir=DIR set oniguruma directory | |
1336 | + --with-xyzsh-dir=DIR set xyzsh directory | |
1337 | + --with-system-migemodir specify the directory of system migemo dictionary. /usr/share/migemo, for example | |
1338 | + | |
1339 | +Some influential environment variables: | |
1340 | + CC C compiler command | |
1341 | + CFLAGS C compiler flags | |
1342 | + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1343 | + nonstandard directory <lib dir> | |
1344 | + LIBS libraries to pass to the linker, e.g. -l<library> | |
1345 | + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1346 | + you have headers in a nonstandard directory <include dir> | |
1347 | + CPP C preprocessor | |
1348 | + | |
1349 | +Use these variables to override the choices made by `configure' or to help | |
1350 | +it to find libraries and programs with nonstandard names/locations. | |
1351 | + | |
1352 | +_ACEOF | |
1353 | +ac_status=$? | |
1354 | +fi | |
1355 | + | |
1356 | +if test "$ac_init_help" = "recursive"; then | |
1357 | + # If there are subdirs, report their specific --help. | |
1358 | + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1359 | + test -d "$ac_dir" || | |
1360 | + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1361 | + continue | |
1362 | + ac_builddir=. | |
1363 | + | |
1364 | +case "$ac_dir" in | |
1365 | +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1366 | +*) | |
1367 | + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1368 | + # A ".." for each directory in $ac_dir_suffix. | |
1369 | + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1370 | + case $ac_top_builddir_sub in | |
1371 | + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1372 | + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1373 | + esac ;; | |
1374 | +esac | |
1375 | +ac_abs_top_builddir=$ac_pwd | |
1376 | +ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1377 | +# for backward compatibility: | |
1378 | +ac_top_builddir=$ac_top_build_prefix | |
1379 | + | |
1380 | +case $srcdir in | |
1381 | + .) # We are building in place. | |
1382 | + ac_srcdir=. | |
1383 | + ac_top_srcdir=$ac_top_builddir_sub | |
1384 | + ac_abs_top_srcdir=$ac_pwd ;; | |
1385 | + [\\/]* | ?:[\\/]* ) # Absolute name. | |
1386 | + ac_srcdir=$srcdir$ac_dir_suffix; | |
1387 | + ac_top_srcdir=$srcdir | |
1388 | + ac_abs_top_srcdir=$srcdir ;; | |
1389 | + *) # Relative name. | |
1390 | + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1391 | + ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1392 | + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1393 | +esac | |
1394 | +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1395 | + | |
1396 | + cd "$ac_dir" || { ac_status=$?; continue; } | |
1397 | + # Check for guested configure. | |
1398 | + if test -f "$ac_srcdir/configure.gnu"; then | |
1399 | + echo && | |
1400 | + $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1401 | + elif test -f "$ac_srcdir/configure"; then | |
1402 | + echo && | |
1403 | + $SHELL "$ac_srcdir/configure" --help=recursive | |
1404 | + else | |
1405 | + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1406 | + fi || ac_status=$? | |
1407 | + cd "$ac_pwd" || { ac_status=$?; break; } | |
1408 | + done | |
1409 | +fi | |
1410 | + | |
1411 | +test -n "$ac_init_help" && exit $ac_status | |
1412 | +if $ac_init_version; then | |
1413 | + cat <<\_ACEOF | |
1414 | +configure | |
1415 | +generated by GNU Autoconf 2.63 | |
1416 | + | |
1417 | +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1418 | +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
1419 | +This configure script is free software; the Free Software Foundation | |
1420 | +gives unlimited permission to copy, distribute and modify it. | |
1421 | +_ACEOF | |
1422 | + exit | |
1423 | +fi | |
1424 | +cat >config.log <<_ACEOF | |
1425 | +This file contains any messages produced by compilers while | |
1426 | +running configure, to aid debugging if configure makes a mistake. | |
1427 | + | |
1428 | +It was created by $as_me, which was | |
1429 | +generated by GNU Autoconf 2.63. Invocation command line was | |
1430 | + | |
1431 | + $ $0 $@ | |
1432 | + | |
1433 | +_ACEOF | |
1434 | +exec 5>>config.log | |
1435 | +{ | |
1436 | +cat <<_ASUNAME | |
1437 | +@%:@@%:@ --------- @%:@@%:@ | |
1438 | +@%:@@%:@ Platform. @%:@@%:@ | |
1439 | +@%:@@%:@ --------- @%:@@%:@ | |
1440 | + | |
1441 | +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1442 | +uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1443 | +uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1444 | +uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1445 | +uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1446 | + | |
1447 | +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1448 | +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1449 | + | |
1450 | +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1451 | +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1452 | +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1453 | +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1454 | +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1455 | +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1456 | +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1457 | + | |
1458 | +_ASUNAME | |
1459 | + | |
1460 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1461 | +for as_dir in $PATH | |
1462 | +do | |
1463 | + IFS=$as_save_IFS | |
1464 | + test -z "$as_dir" && as_dir=. | |
1465 | + $as_echo "PATH: $as_dir" | |
1466 | +done | |
1467 | +IFS=$as_save_IFS | |
1468 | + | |
1469 | +} >&5 | |
1470 | + | |
1471 | +cat >&5 <<_ACEOF | |
1472 | + | |
1473 | + | |
1474 | +@%:@@%:@ ----------- @%:@@%:@ | |
1475 | +@%:@@%:@ Core tests. @%:@@%:@ | |
1476 | +@%:@@%:@ ----------- @%:@@%:@ | |
1477 | + | |
1478 | +_ACEOF | |
1479 | + | |
1480 | + | |
1481 | +# Keep a trace of the command line. | |
1482 | +# Strip out --no-create and --no-recursion so they do not pile up. | |
1483 | +# Strip out --silent because we don't want to record it for future runs. | |
1484 | +# Also quote any args containing shell meta-characters. | |
1485 | +# Make two passes to allow for proper duplicate-argument suppression. | |
1486 | +ac_configure_args= | |
1487 | +ac_configure_args0= | |
1488 | +ac_configure_args1= | |
1489 | +ac_must_keep_next=false | |
1490 | +for ac_pass in 1 2 | |
1491 | +do | |
1492 | + for ac_arg | |
1493 | + do | |
1494 | + case $ac_arg in | |
1495 | + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1496 | + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1497 | + | -silent | --silent | --silen | --sile | --sil) | |
1498 | + continue ;; | |
1499 | + *\'*) | |
1500 | + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1501 | + esac | |
1502 | + case $ac_pass in | |
1503 | + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1504 | + 2) | |
1505 | + ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1506 | + if test $ac_must_keep_next = true; then | |
1507 | + ac_must_keep_next=false # Got value, back to normal. | |
1508 | + else | |
1509 | + case $ac_arg in | |
1510 | + *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1511 | + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1512 | + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1513 | + | -with-* | --with-* | -without-* | --without-* | --x) | |
1514 | + case "$ac_configure_args0 " in | |
1515 | + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1516 | + esac | |
1517 | + ;; | |
1518 | + -* ) ac_must_keep_next=true ;; | |
1519 | + esac | |
1520 | + fi | |
1521 | + ac_configure_args="$ac_configure_args '$ac_arg'" | |
1522 | + ;; | |
1523 | + esac | |
1524 | + done | |
1525 | +done | |
1526 | +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1527 | +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1528 | + | |
1529 | +# When interrupted or exit'd, cleanup temporary files, and complete | |
1530 | +# config.log. We remove comments because anyway the quotes in there | |
1531 | +# would cause problems or look ugly. | |
1532 | +# WARNING: Use '\'' to represent an apostrophe within the trap. | |
1533 | +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1534 | +trap 'exit_status=$? | |
1535 | + # Save into config.log some information that might help in debugging. | |
1536 | + { | |
1537 | + echo | |
1538 | + | |
1539 | + cat <<\_ASBOX | |
1540 | +@%:@@%:@ ---------------- @%:@@%:@ | |
1541 | +@%:@@%:@ Cache variables. @%:@@%:@ | |
1542 | +@%:@@%:@ ---------------- @%:@@%:@ | |
1543 | +_ASBOX | |
1544 | + echo | |
1545 | + # The following way of writing the cache mishandles newlines in values, | |
1546 | +( | |
1547 | + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1548 | + eval ac_val=\$$ac_var | |
1549 | + case $ac_val in #( | |
1550 | + *${as_nl}*) | |
1551 | + case $ac_var in #( | |
1552 | + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
1553 | +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1554 | + esac | |
1555 | + case $ac_var in #( | |
1556 | + _ | IFS | as_nl) ;; #( | |
1557 | + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1558 | + *) $as_unset $ac_var ;; | |
1559 | + esac ;; | |
1560 | + esac | |
1561 | + done | |
1562 | + (set) 2>&1 | | |
1563 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1564 | + *${as_nl}ac_space=\ *) | |
1565 | + sed -n \ | |
1566 | + "s/'\''/'\''\\\\'\'''\''/g; | |
1567 | + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1568 | + ;; #( | |
1569 | + *) | |
1570 | + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1571 | + ;; | |
1572 | + esac | | |
1573 | + sort | |
1574 | +) | |
1575 | + echo | |
1576 | + | |
1577 | + cat <<\_ASBOX | |
1578 | +@%:@@%:@ ----------------- @%:@@%:@ | |
1579 | +@%:@@%:@ Output variables. @%:@@%:@ | |
1580 | +@%:@@%:@ ----------------- @%:@@%:@ | |
1581 | +_ASBOX | |
1582 | + echo | |
1583 | + for ac_var in $ac_subst_vars | |
1584 | + do | |
1585 | + eval ac_val=\$$ac_var | |
1586 | + case $ac_val in | |
1587 | + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1588 | + esac | |
1589 | + $as_echo "$ac_var='\''$ac_val'\''" | |
1590 | + done | sort | |
1591 | + echo | |
1592 | + | |
1593 | + if test -n "$ac_subst_files"; then | |
1594 | + cat <<\_ASBOX | |
1595 | +@%:@@%:@ ------------------- @%:@@%:@ | |
1596 | +@%:@@%:@ File substitutions. @%:@@%:@ | |
1597 | +@%:@@%:@ ------------------- @%:@@%:@ | |
1598 | +_ASBOX | |
1599 | + echo | |
1600 | + for ac_var in $ac_subst_files | |
1601 | + do | |
1602 | + eval ac_val=\$$ac_var | |
1603 | + case $ac_val in | |
1604 | + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1605 | + esac | |
1606 | + $as_echo "$ac_var='\''$ac_val'\''" | |
1607 | + done | sort | |
1608 | + echo | |
1609 | + fi | |
1610 | + | |
1611 | + if test -s confdefs.h; then | |
1612 | + cat <<\_ASBOX | |
1613 | +@%:@@%:@ ----------- @%:@@%:@ | |
1614 | +@%:@@%:@ confdefs.h. @%:@@%:@ | |
1615 | +@%:@@%:@ ----------- @%:@@%:@ | |
1616 | +_ASBOX | |
1617 | + echo | |
1618 | + cat confdefs.h | |
1619 | + echo | |
1620 | + fi | |
1621 | + test "$ac_signal" != 0 && | |
1622 | + $as_echo "$as_me: caught signal $ac_signal" | |
1623 | + $as_echo "$as_me: exit $exit_status" | |
1624 | + } >&5 | |
1625 | + rm -f core *.core core.conftest.* && | |
1626 | + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1627 | + exit $exit_status | |
1628 | +' 0 | |
1629 | +for ac_signal in 1 2 13 15; do | |
1630 | + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1631 | +done | |
1632 | +ac_signal=0 | |
1633 | + | |
1634 | +# confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1635 | +rm -f -r conftest* confdefs.h | |
1636 | + | |
1637 | +# Predefined preprocessor variables. | |
1638 | + | |
1639 | +cat >>confdefs.h <<_ACEOF | |
1640 | +@%:@define PACKAGE_NAME "$PACKAGE_NAME" | |
1641 | +_ACEOF | |
1642 | + | |
1643 | + | |
1644 | +cat >>confdefs.h <<_ACEOF | |
1645 | +@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1646 | +_ACEOF | |
1647 | + | |
1648 | + | |
1649 | +cat >>confdefs.h <<_ACEOF | |
1650 | +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1651 | +_ACEOF | |
1652 | + | |
1653 | + | |
1654 | +cat >>confdefs.h <<_ACEOF | |
1655 | +@%:@define PACKAGE_STRING "$PACKAGE_STRING" | |
1656 | +_ACEOF | |
1657 | + | |
1658 | + | |
1659 | +cat >>confdefs.h <<_ACEOF | |
1660 | +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1661 | +_ACEOF | |
1662 | + | |
1663 | + | |
1664 | +# Let the site file select an alternate cache file if it wants to. | |
1665 | +# Prefer an explicitly selected file to automatically selected ones. | |
1666 | +ac_site_file1=NONE | |
1667 | +ac_site_file2=NONE | |
1668 | +if test -n "$CONFIG_SITE"; then | |
1669 | + ac_site_file1=$CONFIG_SITE | |
1670 | +elif test "x$prefix" != xNONE; then | |
1671 | + ac_site_file1=$prefix/share/config.site | |
1672 | + ac_site_file2=$prefix/etc/config.site | |
1673 | +else | |
1674 | + ac_site_file1=$ac_default_prefix/share/config.site | |
1675 | + ac_site_file2=$ac_default_prefix/etc/config.site | |
1676 | +fi | |
1677 | +for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1678 | +do | |
1679 | + test "x$ac_site_file" = xNONE && continue | |
1680 | + if test -r "$ac_site_file"; then | |
1681 | + { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1682 | +$as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1683 | + sed 's/^/| /' "$ac_site_file" >&5 | |
1684 | + . "$ac_site_file" | |
1685 | + fi | |
1686 | +done | |
1687 | + | |
1688 | +if test -r "$cache_file"; then | |
1689 | + # Some versions of bash will fail to source /dev/null (special | |
1690 | + # files actually), so we avoid doing that. | |
1691 | + if test -f "$cache_file"; then | |
1692 | + { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1693 | +$as_echo "$as_me: loading cache $cache_file" >&6;} | |
1694 | + case $cache_file in | |
1695 | + [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1696 | + *) . "./$cache_file";; | |
1697 | + esac | |
1698 | + fi | |
1699 | +else | |
1700 | + { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1701 | +$as_echo "$as_me: creating cache $cache_file" >&6;} | |
1702 | + >$cache_file | |
1703 | +fi | |
1704 | + | |
1705 | +# Check that the precious variables saved in the cache have kept the same | |
1706 | +# value. | |
1707 | +ac_cache_corrupted=false | |
1708 | +for ac_var in $ac_precious_vars; do | |
1709 | + eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1710 | + eval ac_new_set=\$ac_env_${ac_var}_set | |
1711 | + eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1712 | + eval ac_new_val=\$ac_env_${ac_var}_value | |
1713 | + case $ac_old_set,$ac_new_set in | |
1714 | + set,) | |
1715 | + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1716 | +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1717 | + ac_cache_corrupted=: ;; | |
1718 | + ,set) | |
1719 | + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1720 | +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1721 | + ac_cache_corrupted=: ;; | |
1722 | + ,);; | |
1723 | + *) | |
1724 | + if test "x$ac_old_val" != "x$ac_new_val"; then | |
1725 | + # differences in whitespace do not lead to failure. | |
1726 | + ac_old_val_w=`echo x $ac_old_val` | |
1727 | + ac_new_val_w=`echo x $ac_new_val` | |
1728 | + if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1729 | + { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1730 | +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1731 | + ac_cache_corrupted=: | |
1732 | + else | |
1733 | + { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1734 | +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1735 | + eval $ac_var=\$ac_old_val | |
1736 | + fi | |
1737 | + { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1738 | +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1739 | + { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1740 | +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1741 | + fi;; | |
1742 | + esac | |
1743 | + # Pass precious variables to config.status. | |
1744 | + if test "$ac_new_set" = set; then | |
1745 | + case $ac_new_val in | |
1746 | + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1747 | + *) ac_arg=$ac_var=$ac_new_val ;; | |
1748 | + esac | |
1749 | + case " $ac_configure_args " in | |
1750 | + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1751 | + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1752 | + esac | |
1753 | + fi | |
1754 | +done | |
1755 | +if $ac_cache_corrupted; then | |
1756 | + { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
1757 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1758 | + { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1759 | +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1760 | + { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1761 | +$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1762 | + { (exit 1); exit 1; }; } | |
1763 | +fi | |
1764 | + | |
1765 | + | |
1766 | + | |
1767 | + | |
1768 | + | |
1769 | + | |
1770 | + | |
1771 | + | |
1772 | + | |
1773 | + | |
1774 | + | |
1775 | + | |
1776 | + | |
1777 | + | |
1778 | + | |
1779 | + | |
1780 | + | |
1781 | +ac_ext=c | |
1782 | +ac_cpp='$CPP $CPPFLAGS' | |
1783 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1784 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1785 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1786 | + | |
1787 | + | |
1788 | + | |
1789 | +ac_config_headers="$ac_config_headers src/config.h" | |
1790 | + | |
1791 | + | |
1792 | +ac_ext=c | |
1793 | +ac_cpp='$CPP $CPPFLAGS' | |
1794 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1795 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1796 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1797 | +if test -n "$ac_tool_prefix"; then | |
1798 | + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1799 | +set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1800 | +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1801 | +$as_echo_n "checking for $ac_word... " >&6; } | |
1802 | +if test "${ac_cv_prog_CC+set}" = set; then | |
1803 | + $as_echo_n "(cached) " >&6 | |
1804 | +else | |
1805 | + if test -n "$CC"; then | |
1806 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
1807 | +else | |
1808 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1809 | +for as_dir in $PATH | |
1810 | +do | |
1811 | + IFS=$as_save_IFS | |
1812 | + test -z "$as_dir" && as_dir=. | |
1813 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
1814 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1815 | + ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1816 | + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1817 | + break 2 | |
1818 | + fi | |
1819 | +done | |
1820 | +done | |
1821 | +IFS=$as_save_IFS | |
1822 | + | |
1823 | +fi | |
1824 | +fi | |
1825 | +CC=$ac_cv_prog_CC | |
1826 | +if test -n "$CC"; then | |
1827 | + { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
1828 | +$as_echo "$CC" >&6; } | |
1829 | +else | |
1830 | + { $as_echo "$as_me:$LINENO: result: no" >&5 | |
1831 | +$as_echo "no" >&6; } | |
1832 | +fi | |
1833 | + | |
1834 | + | |
1835 | +fi | |
1836 | +if test -z "$ac_cv_prog_CC"; then | |
1837 | + ac_ct_CC=$CC | |
1838 | + # Extract the first word of "gcc", so it can be a program name with args. | |
1839 | +set dummy gcc; ac_word=$2 | |
1840 | +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1841 | +$as_echo_n "checking for $ac_word... " >&6; } | |
1842 | +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1843 | + $as_echo_n "(cached) " >&6 | |
1844 | +else | |
1845 | + if test -n "$ac_ct_CC"; then | |
1846 | + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1847 | +else | |
1848 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1849 | +for as_dir in $PATH | |
1850 | +do | |
1851 | + IFS=$as_save_IFS | |
1852 | + test -z "$as_dir" && as_dir=. | |
1853 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
1854 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1855 | + ac_cv_prog_ac_ct_CC="gcc" | |
1856 | + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1857 | + break 2 | |
1858 | + fi | |
1859 | +done | |
1860 | +done | |
1861 | +IFS=$as_save_IFS | |
1862 | + | |
1863 | +fi | |
1864 | +fi | |
1865 | +ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1866 | +if test -n "$ac_ct_CC"; then | |
1867 | + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1868 | +$as_echo "$ac_ct_CC" >&6; } | |
1869 | +else | |
1870 | + { $as_echo "$as_me:$LINENO: result: no" >&5 | |
1871 | +$as_echo "no" >&6; } | |
1872 | +fi | |
1873 | + | |
1874 | + if test "x$ac_ct_CC" = x; then | |
1875 | + CC="" | |
1876 | + else | |
1877 | + case $cross_compiling:$ac_tool_warned in | |
1878 | +yes:) | |
1879 | +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
1880 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
1881 | +ac_tool_warned=yes ;; | |
1882 | +esac | |
1883 | + CC=$ac_ct_CC | |
1884 | + fi | |
1885 | +else | |
1886 | + CC="$ac_cv_prog_CC" | |
1887 | +fi | |
1888 | + | |
1889 | +if test -z "$CC"; then | |
1890 | + if test -n "$ac_tool_prefix"; then | |
1891 | + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1892 | +set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1893 | +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1894 | +$as_echo_n "checking for $ac_word... " >&6; } | |
1895 | +if test "${ac_cv_prog_CC+set}" = set; then | |
1896 | + $as_echo_n "(cached) " >&6 | |
1897 | +else | |
1898 | + if test -n "$CC"; then | |
1899 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
1900 | +else | |
1901 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1902 | +for as_dir in $PATH | |
1903 | +do | |
1904 | + IFS=$as_save_IFS | |
1905 | + test -z "$as_dir" && as_dir=. | |
1906 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
1907 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1908 | + ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1909 | + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1910 | + break 2 | |
1911 | + fi | |
1912 | +done | |
1913 | +done | |
1914 | +IFS=$as_save_IFS | |
1915 | + | |
1916 | +fi | |
1917 | +fi | |
1918 | +CC=$ac_cv_prog_CC | |
1919 | +if test -n "$CC"; then | |
1920 | + { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
1921 | +$as_echo "$CC" >&6; } | |
1922 | +else | |
1923 | + { $as_echo "$as_me:$LINENO: result: no" >&5 | |
1924 | +$as_echo "no" >&6; } | |
1925 | +fi | |
1926 | + | |
1927 | + | |
1928 | + fi | |
1929 | +fi | |
1930 | +if test -z "$CC"; then | |
1931 | + # Extract the first word of "cc", so it can be a program name with args. | |
1932 | +set dummy cc; ac_word=$2 | |
1933 | +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1934 | +$as_echo_n "checking for $ac_word... " >&6; } | |
1935 | +if test "${ac_cv_prog_CC+set}" = set; then | |
1936 | + $as_echo_n "(cached) " >&6 | |
1937 | +else | |
1938 | + if test -n "$CC"; then | |
1939 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
1940 | +else | |
1941 | + ac_prog_rejected=no | |
1942 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1943 | +for as_dir in $PATH | |
1944 | +do | |
1945 | + IFS=$as_save_IFS | |
1946 | + test -z "$as_dir" && as_dir=. | |
1947 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
1948 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1949 | + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1950 | + ac_prog_rejected=yes | |
1951 | + continue | |
1952 | + fi | |
1953 | + ac_cv_prog_CC="cc" | |
1954 | + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1955 | + break 2 | |
1956 | + fi | |
1957 | +done | |
1958 | +done | |
1959 | +IFS=$as_save_IFS | |
1960 | + | |
1961 | +if test $ac_prog_rejected = yes; then | |
1962 | + # We found a bogon in the path, so make sure we never use it. | |
1963 | + set dummy $ac_cv_prog_CC | |
1964 | + shift | |
1965 | + if test $@%:@ != 0; then | |
1966 | + # We chose a different compiler from the bogus one. | |
1967 | + # However, it has the same basename, so the bogon will be chosen | |
1968 | + # first if we set CC to just the basename; use the full file name. | |
1969 | + shift | |
1970 | + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1971 | + fi | |
1972 | +fi | |
1973 | +fi | |
1974 | +fi | |
1975 | +CC=$ac_cv_prog_CC | |
1976 | +if test -n "$CC"; then | |
1977 | + { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
1978 | +$as_echo "$CC" >&6; } | |
1979 | +else | |
1980 | + { $as_echo "$as_me:$LINENO: result: no" >&5 | |
1981 | +$as_echo "no" >&6; } | |
1982 | +fi | |
1983 | + | |
1984 | + | |
1985 | +fi | |
1986 | +if test -z "$CC"; then | |
1987 | + if test -n "$ac_tool_prefix"; then | |
1988 | + for ac_prog in cl.exe | |
1989 | + do | |
1990 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1991 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1992 | +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1993 | +$as_echo_n "checking for $ac_word... " >&6; } | |
1994 | +if test "${ac_cv_prog_CC+set}" = set; then | |
1995 | + $as_echo_n "(cached) " >&6 | |
1996 | +else | |
1997 | + if test -n "$CC"; then | |
1998 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
1999 | +else | |
2000 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2001 | +for as_dir in $PATH | |
2002 | +do | |
2003 | + IFS=$as_save_IFS | |
2004 | + test -z "$as_dir" && as_dir=. | |
2005 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2006 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2007 | + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2008 | + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2009 | + break 2 | |
2010 | + fi | |
2011 | +done | |
2012 | +done | |
2013 | +IFS=$as_save_IFS | |
2014 | + | |
2015 | +fi | |
2016 | +fi | |
2017 | +CC=$ac_cv_prog_CC | |
2018 | +if test -n "$CC"; then | |
2019 | + { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2020 | +$as_echo "$CC" >&6; } | |
2021 | +else | |
2022 | + { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2023 | +$as_echo "no" >&6; } | |
2024 | +fi | |
2025 | + | |
2026 | + | |
2027 | + test -n "$CC" && break | |
2028 | + done | |
2029 | +fi | |
2030 | +if test -z "$CC"; then | |
2031 | + ac_ct_CC=$CC | |
2032 | + for ac_prog in cl.exe | |
2033 | +do | |
2034 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2035 | +set dummy $ac_prog; ac_word=$2 | |
2036 | +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2037 | +$as_echo_n "checking for $ac_word... " >&6; } | |
2038 | +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2039 | + $as_echo_n "(cached) " >&6 | |
2040 | +else | |
2041 | + if test -n "$ac_ct_CC"; then | |
2042 | + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2043 | +else | |
2044 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2045 | +for as_dir in $PATH | |
2046 | +do | |
2047 | + IFS=$as_save_IFS | |
2048 | + test -z "$as_dir" && as_dir=. | |
2049 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2050 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2051 | + ac_cv_prog_ac_ct_CC="$ac_prog" | |
2052 | + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2053 | + break 2 | |
2054 | + fi | |
2055 | +done | |
2056 | +done | |
2057 | +IFS=$as_save_IFS | |
2058 | + | |
2059 | +fi | |
2060 | +fi | |
2061 | +ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2062 | +if test -n "$ac_ct_CC"; then | |
2063 | + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2064 | +$as_echo "$ac_ct_CC" >&6; } | |
2065 | +else | |
2066 | + { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2067 | +$as_echo "no" >&6; } | |
2068 | +fi | |
2069 | + | |
2070 | + | |
2071 | + test -n "$ac_ct_CC" && break | |
2072 | +done | |
2073 | + | |
2074 | + if test "x$ac_ct_CC" = x; then | |
2075 | + CC="" | |
2076 | + else | |
2077 | + case $cross_compiling:$ac_tool_warned in | |
2078 | +yes:) | |
2079 | +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2080 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2081 | +ac_tool_warned=yes ;; | |
2082 | +esac | |
2083 | + CC=$ac_ct_CC | |
2084 | + fi | |
2085 | +fi | |
2086 | + | |
2087 | +fi | |
2088 | + | |
2089 | + | |
2090 | +test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2091 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2092 | +{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2093 | +See \`config.log' for more details." >&5 | |
2094 | +$as_echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2095 | +See \`config.log' for more details." >&2;} | |
2096 | + { (exit 1); exit 1; }; }; } | |
2097 | + | |
2098 | +# Provide some information about the compiler. | |
2099 | +$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2100 | +set X $ac_compile | |
2101 | +ac_compiler=$2 | |
2102 | +{ (ac_try="$ac_compiler --version >&5" | |
2103 | +case "(($ac_try" in | |
2104 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2105 | + *) ac_try_echo=$ac_try;; | |
2106 | +esac | |
2107 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2108 | +$as_echo "$ac_try_echo") >&5 | |
2109 | + (eval "$ac_compiler --version >&5") 2>&5 | |
2110 | + ac_status=$? | |
2111 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2112 | + (exit $ac_status); } | |
2113 | +{ (ac_try="$ac_compiler -v >&5" | |
2114 | +case "(($ac_try" in | |
2115 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2116 | + *) ac_try_echo=$ac_try;; | |
2117 | +esac | |
2118 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2119 | +$as_echo "$ac_try_echo") >&5 | |
2120 | + (eval "$ac_compiler -v >&5") 2>&5 | |
2121 | + ac_status=$? | |
2122 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2123 | + (exit $ac_status); } | |
2124 | +{ (ac_try="$ac_compiler -V >&5" | |
2125 | +case "(($ac_try" in | |
2126 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2127 | + *) ac_try_echo=$ac_try;; | |
2128 | +esac | |
2129 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2130 | +$as_echo "$ac_try_echo") >&5 | |
2131 | + (eval "$ac_compiler -V >&5") 2>&5 | |
2132 | + ac_status=$? | |
2133 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2134 | + (exit $ac_status); } | |
2135 | + | |
2136 | +cat >conftest.$ac_ext <<_ACEOF | |
2137 | +/* confdefs.h. */ | |
2138 | +_ACEOF | |
2139 | +cat confdefs.h >>conftest.$ac_ext | |
2140 | +cat >>conftest.$ac_ext <<_ACEOF | |
2141 | +/* end confdefs.h. */ | |
2142 | + | |
2143 | +int | |
2144 | +main () | |
2145 | +{ | |
2146 | + | |
2147 | + ; | |
2148 | + return 0; | |
2149 | +} | |
2150 | +_ACEOF | |
2151 | +ac_clean_files_save=$ac_clean_files | |
2152 | +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2153 | +# Try to create an executable without -o first, disregard a.out. | |
2154 | +# It will help us diagnose broken compilers, and finding out an intuition | |
2155 | +# of exeext. | |
2156 | +{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2157 | +$as_echo_n "checking for C compiler default output file name... " >&6; } | |
2158 | +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2159 | + | |
2160 | +# The possible output files: | |
2161 | +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2162 | + | |
2163 | +ac_rmfiles= | |
2164 | +for ac_file in $ac_files | |
2165 | +do | |
2166 | + case $ac_file in | |
2167 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2168 | + * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2169 | + esac | |
2170 | +done | |
2171 | +rm -f $ac_rmfiles | |
2172 | + | |
2173 | +if { (ac_try="$ac_link_default" | |
2174 | +case "(($ac_try" in | |
2175 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2176 | + *) ac_try_echo=$ac_try;; | |
2177 | +esac | |
2178 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2179 | +$as_echo "$ac_try_echo") >&5 | |
2180 | + (eval "$ac_link_default") 2>&5 | |
2181 | + ac_status=$? | |
2182 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2183 | + (exit $ac_status); }; then | |
2184 | + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2185 | +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2186 | +# in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2187 | +# so that the user can short-circuit this test for compilers unknown to | |
2188 | +# Autoconf. | |
2189 | +for ac_file in $ac_files '' | |
2190 | +do | |
2191 | + test -f "$ac_file" || continue | |
2192 | + case $ac_file in | |
2193 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2194 | + ;; | |
2195 | + [ab].out ) | |
2196 | + # We found the default executable, but exeext='' is most | |
2197 | + # certainly right. | |
2198 | + break;; | |
2199 | + *.* ) | |
2200 | + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2201 | + then :; else | |
2202 | + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2203 | + fi | |
2204 | + # We set ac_cv_exeext here because the later test for it is not | |
2205 | + # safe: cross compilers may not add the suffix if given an `-o' | |
2206 | + # argument, so we may need to know it at that point already. | |
2207 | + # Even if this section looks crufty: it has the advantage of | |
2208 | + # actually working. | |
2209 | + break;; | |
2210 | + * ) | |
2211 | + break;; | |
2212 | + esac | |
2213 | +done | |
2214 | +test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2215 | + | |
2216 | +else | |
2217 | + ac_file='' | |
2218 | +fi | |
2219 | + | |
2220 | +{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2221 | +$as_echo "$ac_file" >&6; } | |
2222 | +if test -z "$ac_file"; then | |
2223 | + $as_echo "$as_me: failed program was:" >&5 | |
2224 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
2225 | + | |
2226 | +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2227 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2228 | +{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2229 | +See \`config.log' for more details." >&5 | |
2230 | +$as_echo "$as_me: error: C compiler cannot create executables | |
2231 | +See \`config.log' for more details." >&2;} | |
2232 | + { (exit 77); exit 77; }; }; } | |
2233 | +fi | |
2234 | + | |
2235 | +ac_exeext=$ac_cv_exeext | |
2236 | + | |
2237 | +# Check that the compiler produces executables we can run. If not, either | |
2238 | +# the compiler is broken, or we cross compile. | |
2239 | +{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2240 | +$as_echo_n "checking whether the C compiler works... " >&6; } | |
2241 | +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2242 | +# If not cross compiling, check that we can run a simple program. | |
2243 | +if test "$cross_compiling" != yes; then | |
2244 | + if { ac_try='./$ac_file' | |
2245 | + { (case "(($ac_try" in | |
2246 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2247 | + *) ac_try_echo=$ac_try;; | |
2248 | +esac | |
2249 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2250 | +$as_echo "$ac_try_echo") >&5 | |
2251 | + (eval "$ac_try") 2>&5 | |
2252 | + ac_status=$? | |
2253 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2254 | + (exit $ac_status); }; }; then | |
2255 | + cross_compiling=no | |
2256 | + else | |
2257 | + if test "$cross_compiling" = maybe; then | |
2258 | + cross_compiling=yes | |
2259 | + else | |
2260 | + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2261 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2262 | +{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2263 | +If you meant to cross compile, use \`--host'. | |
2264 | +See \`config.log' for more details." >&5 | |
2265 | +$as_echo "$as_me: error: cannot run C compiled programs. | |
2266 | +If you meant to cross compile, use \`--host'. | |
2267 | +See \`config.log' for more details." >&2;} | |
2268 | + { (exit 1); exit 1; }; }; } | |
2269 | + fi | |
2270 | + fi | |
2271 | +fi | |
2272 | +{ $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2273 | +$as_echo "yes" >&6; } | |
2274 | + | |
2275 | +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2276 | +ac_clean_files=$ac_clean_files_save | |
2277 | +# Check that the compiler produces executables we can run. If not, either | |
2278 | +# the compiler is broken, or we cross compile. | |
2279 | +{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2280 | +$as_echo_n "checking whether we are cross compiling... " >&6; } | |
2281 | +{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2282 | +$as_echo "$cross_compiling" >&6; } | |
2283 | + | |
2284 | +{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2285 | +$as_echo_n "checking for suffix of executables... " >&6; } | |
2286 | +if { (ac_try="$ac_link" | |
2287 | +case "(($ac_try" in | |
2288 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2289 | + *) ac_try_echo=$ac_try;; | |
2290 | +esac | |
2291 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2292 | +$as_echo "$ac_try_echo") >&5 | |
2293 | + (eval "$ac_link") 2>&5 | |
2294 | + ac_status=$? | |
2295 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2296 | + (exit $ac_status); }; then | |
2297 | + # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2298 | +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2299 | +# work properly (i.e., refer to `conftest.exe'), while it won't with | |
2300 | +# `rm'. | |
2301 | +for ac_file in conftest.exe conftest conftest.*; do | |
2302 | + test -f "$ac_file" || continue | |
2303 | + case $ac_file in | |
2304 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2305 | + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2306 | + break;; | |
2307 | + * ) break;; | |
2308 | + esac | |
2309 | +done | |
2310 | +else | |
2311 | + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2312 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2313 | +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2314 | +See \`config.log' for more details." >&5 | |
2315 | +$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2316 | +See \`config.log' for more details." >&2;} | |
2317 | + { (exit 1); exit 1; }; }; } | |
2318 | +fi | |
2319 | + | |
2320 | +rm -f conftest$ac_cv_exeext | |
2321 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2322 | +$as_echo "$ac_cv_exeext" >&6; } | |
2323 | + | |
2324 | +rm -f conftest.$ac_ext | |
2325 | +EXEEXT=$ac_cv_exeext | |
2326 | +ac_exeext=$EXEEXT | |
2327 | +{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2328 | +$as_echo_n "checking for suffix of object files... " >&6; } | |
2329 | +if test "${ac_cv_objext+set}" = set; then | |
2330 | + $as_echo_n "(cached) " >&6 | |
2331 | +else | |
2332 | + cat >conftest.$ac_ext <<_ACEOF | |
2333 | +/* confdefs.h. */ | |
2334 | +_ACEOF | |
2335 | +cat confdefs.h >>conftest.$ac_ext | |
2336 | +cat >>conftest.$ac_ext <<_ACEOF | |
2337 | +/* end confdefs.h. */ | |
2338 | + | |
2339 | +int | |
2340 | +main () | |
2341 | +{ | |
2342 | + | |
2343 | + ; | |
2344 | + return 0; | |
2345 | +} | |
2346 | +_ACEOF | |
2347 | +rm -f conftest.o conftest.obj | |
2348 | +if { (ac_try="$ac_compile" | |
2349 | +case "(($ac_try" in | |
2350 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2351 | + *) ac_try_echo=$ac_try;; | |
2352 | +esac | |
2353 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2354 | +$as_echo "$ac_try_echo") >&5 | |
2355 | + (eval "$ac_compile") 2>&5 | |
2356 | + ac_status=$? | |
2357 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2358 | + (exit $ac_status); }; then | |
2359 | + for ac_file in conftest.o conftest.obj conftest.*; do | |
2360 | + test -f "$ac_file" || continue; | |
2361 | + case $ac_file in | |
2362 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2363 | + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2364 | + break;; | |
2365 | + esac | |
2366 | +done | |
2367 | +else | |
2368 | + $as_echo "$as_me: failed program was:" >&5 | |
2369 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
2370 | + | |
2371 | +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2372 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2373 | +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2374 | +See \`config.log' for more details." >&5 | |
2375 | +$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2376 | +See \`config.log' for more details." >&2;} | |
2377 | + { (exit 1); exit 1; }; }; } | |
2378 | +fi | |
2379 | + | |
2380 | +rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2381 | +fi | |
2382 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2383 | +$as_echo "$ac_cv_objext" >&6; } | |
2384 | +OBJEXT=$ac_cv_objext | |
2385 | +ac_objext=$OBJEXT | |
2386 | +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2387 | +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2388 | +if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2389 | + $as_echo_n "(cached) " >&6 | |
2390 | +else | |
2391 | + cat >conftest.$ac_ext <<_ACEOF | |
2392 | +/* confdefs.h. */ | |
2393 | +_ACEOF | |
2394 | +cat confdefs.h >>conftest.$ac_ext | |
2395 | +cat >>conftest.$ac_ext <<_ACEOF | |
2396 | +/* end confdefs.h. */ | |
2397 | + | |
2398 | +int | |
2399 | +main () | |
2400 | +{ | |
2401 | +#ifndef __GNUC__ | |
2402 | + choke me | |
2403 | +#endif | |
2404 | + | |
2405 | + ; | |
2406 | + return 0; | |
2407 | +} | |
2408 | +_ACEOF | |
2409 | +rm -f conftest.$ac_objext | |
2410 | +if { (ac_try="$ac_compile" | |
2411 | +case "(($ac_try" in | |
2412 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2413 | + *) ac_try_echo=$ac_try;; | |
2414 | +esac | |
2415 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2416 | +$as_echo "$ac_try_echo") >&5 | |
2417 | + (eval "$ac_compile") 2>conftest.er1 | |
2418 | + ac_status=$? | |
2419 | + grep -v '^ *+' conftest.er1 >conftest.err | |
2420 | + rm -f conftest.er1 | |
2421 | + cat conftest.err >&5 | |
2422 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2423 | + (exit $ac_status); } && { | |
2424 | + test -z "$ac_c_werror_flag" || | |
2425 | + test ! -s conftest.err | |
2426 | + } && test -s conftest.$ac_objext; then | |
2427 | + ac_compiler_gnu=yes | |
2428 | +else | |
2429 | + $as_echo "$as_me: failed program was:" >&5 | |
2430 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
2431 | + | |
2432 | + ac_compiler_gnu=no | |
2433 | +fi | |
2434 | + | |
2435 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2436 | +ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2437 | + | |
2438 | +fi | |
2439 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2440 | +$as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2441 | +if test $ac_compiler_gnu = yes; then | |
2442 | + GCC=yes | |
2443 | +else | |
2444 | + GCC= | |
2445 | +fi | |
2446 | +ac_test_CFLAGS=${CFLAGS+set} | |
2447 | +ac_save_CFLAGS=$CFLAGS | |
2448 | +{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2449 | +$as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2450 | +if test "${ac_cv_prog_cc_g+set}" = set; then | |
2451 | + $as_echo_n "(cached) " >&6 | |
2452 | +else | |
2453 | + ac_save_c_werror_flag=$ac_c_werror_flag | |
2454 | + ac_c_werror_flag=yes | |
2455 | + ac_cv_prog_cc_g=no | |
2456 | + CFLAGS="-g" | |
2457 | + cat >conftest.$ac_ext <<_ACEOF | |
2458 | +/* confdefs.h. */ | |
2459 | +_ACEOF | |
2460 | +cat confdefs.h >>conftest.$ac_ext | |
2461 | +cat >>conftest.$ac_ext <<_ACEOF | |
2462 | +/* end confdefs.h. */ | |
2463 | + | |
2464 | +int | |
2465 | +main () | |
2466 | +{ | |
2467 | + | |
2468 | + ; | |
2469 | + return 0; | |
2470 | +} | |
2471 | +_ACEOF | |
2472 | +rm -f conftest.$ac_objext | |
2473 | +if { (ac_try="$ac_compile" | |
2474 | +case "(($ac_try" in | |
2475 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2476 | + *) ac_try_echo=$ac_try;; | |
2477 | +esac | |
2478 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2479 | +$as_echo "$ac_try_echo") >&5 | |
2480 | + (eval "$ac_compile") 2>conftest.er1 | |
2481 | + ac_status=$? | |
2482 | + grep -v '^ *+' conftest.er1 >conftest.err | |
2483 | + rm -f conftest.er1 | |
2484 | + cat conftest.err >&5 | |
2485 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2486 | + (exit $ac_status); } && { | |
2487 | + test -z "$ac_c_werror_flag" || | |
2488 | + test ! -s conftest.err | |
2489 | + } && test -s conftest.$ac_objext; then | |
2490 | + ac_cv_prog_cc_g=yes | |
2491 | +else | |
2492 | + $as_echo "$as_me: failed program was:" >&5 | |
2493 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
2494 | + | |
2495 | + CFLAGS="" | |
2496 | + cat >conftest.$ac_ext <<_ACEOF | |
2497 | +/* confdefs.h. */ | |
2498 | +_ACEOF | |
2499 | +cat confdefs.h >>conftest.$ac_ext | |
2500 | +cat >>conftest.$ac_ext <<_ACEOF | |
2501 | +/* end confdefs.h. */ | |
2502 | + | |
2503 | +int | |
2504 | +main () | |
2505 | +{ | |
2506 | + | |
2507 | + ; | |
2508 | + return 0; | |
2509 | +} | |
2510 | +_ACEOF | |
2511 | +rm -f conftest.$ac_objext | |
2512 | +if { (ac_try="$ac_compile" | |
2513 | +case "(($ac_try" in | |
2514 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2515 | + *) ac_try_echo=$ac_try;; | |
2516 | +esac | |
2517 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2518 | +$as_echo "$ac_try_echo") >&5 | |
2519 | + (eval "$ac_compile") 2>conftest.er1 | |
2520 | + ac_status=$? | |
2521 | + grep -v '^ *+' conftest.er1 >conftest.err | |
2522 | + rm -f conftest.er1 | |
2523 | + cat conftest.err >&5 | |
2524 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2525 | + (exit $ac_status); } && { | |
2526 | + test -z "$ac_c_werror_flag" || | |
2527 | + test ! -s conftest.err | |
2528 | + } && test -s conftest.$ac_objext; then | |
2529 | + : | |
2530 | +else | |
2531 | + $as_echo "$as_me: failed program was:" >&5 | |
2532 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
2533 | + | |
2534 | + ac_c_werror_flag=$ac_save_c_werror_flag | |
2535 | + CFLAGS="-g" | |
2536 | + cat >conftest.$ac_ext <<_ACEOF | |
2537 | +/* confdefs.h. */ | |
2538 | +_ACEOF | |
2539 | +cat confdefs.h >>conftest.$ac_ext | |
2540 | +cat >>conftest.$ac_ext <<_ACEOF | |
2541 | +/* end confdefs.h. */ | |
2542 | + | |
2543 | +int | |
2544 | +main () | |
2545 | +{ | |
2546 | + | |
2547 | + ; | |
2548 | + return 0; | |
2549 | +} | |
2550 | +_ACEOF | |
2551 | +rm -f conftest.$ac_objext | |
2552 | +if { (ac_try="$ac_compile" | |
2553 | +case "(($ac_try" in | |
2554 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2555 | + *) ac_try_echo=$ac_try;; | |
2556 | +esac | |
2557 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2558 | +$as_echo "$ac_try_echo") >&5 | |
2559 | + (eval "$ac_compile") 2>conftest.er1 | |
2560 | + ac_status=$? | |
2561 | + grep -v '^ *+' conftest.er1 >conftest.err | |
2562 | + rm -f conftest.er1 | |
2563 | + cat conftest.err >&5 | |
2564 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2565 | + (exit $ac_status); } && { | |
2566 | + test -z "$ac_c_werror_flag" || | |
2567 | + test ! -s conftest.err | |
2568 | + } && test -s conftest.$ac_objext; then | |
2569 | + ac_cv_prog_cc_g=yes | |
2570 | +else | |
2571 | + $as_echo "$as_me: failed program was:" >&5 | |
2572 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
2573 | + | |
2574 | + | |
2575 | +fi | |
2576 | + | |
2577 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2578 | +fi | |
2579 | + | |
2580 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2581 | +fi | |
2582 | + | |
2583 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2584 | + ac_c_werror_flag=$ac_save_c_werror_flag | |
2585 | +fi | |
2586 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2587 | +$as_echo "$ac_cv_prog_cc_g" >&6; } | |
2588 | +if test "$ac_test_CFLAGS" = set; then | |
2589 | + CFLAGS=$ac_save_CFLAGS | |
2590 | +elif test $ac_cv_prog_cc_g = yes; then | |
2591 | + if test "$GCC" = yes; then | |
2592 | + CFLAGS="-g -O2" | |
2593 | + else | |
2594 | + CFLAGS="-g" | |
2595 | + fi | |
2596 | +else | |
2597 | + if test "$GCC" = yes; then | |
2598 | + CFLAGS="-O2" | |
2599 | + else | |
2600 | + CFLAGS= | |
2601 | + fi | |
2602 | +fi | |
2603 | +{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
2604 | +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
2605 | +if test "${ac_cv_prog_cc_c89+set}" = set; then | |
2606 | + $as_echo_n "(cached) " >&6 | |
2607 | +else | |
2608 | + ac_cv_prog_cc_c89=no | |
2609 | +ac_save_CC=$CC | |
2610 | +cat >conftest.$ac_ext <<_ACEOF | |
2611 | +/* confdefs.h. */ | |
2612 | +_ACEOF | |
2613 | +cat confdefs.h >>conftest.$ac_ext | |
2614 | +cat >>conftest.$ac_ext <<_ACEOF | |
2615 | +/* end confdefs.h. */ | |
2616 | +#include <stdarg.h> | |
2617 | +#include <stdio.h> | |
2618 | +#include <sys/types.h> | |
2619 | +#include <sys/stat.h> | |
2620 | +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2621 | +struct buf { int x; }; | |
2622 | +FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2623 | +static char *e (p, i) | |
2624 | + char **p; | |
2625 | + int i; | |
2626 | +{ | |
2627 | + return p[i]; | |
2628 | +} | |
2629 | +static char *f (char * (*g) (char **, int), char **p, ...) | |
2630 | +{ | |
2631 | + char *s; | |
2632 | + va_list v; | |
2633 | + va_start (v,p); | |
2634 | + s = g (p, va_arg (v,int)); | |
2635 | + va_end (v); | |
2636 | + return s; | |
2637 | +} | |
2638 | + | |
2639 | +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2640 | + function prototypes and stuff, but not '\xHH' hex character constants. | |
2641 | + These don't provoke an error unfortunately, instead are silently treated | |
2642 | + as 'x'. The following induces an error, until -std is added to get | |
2643 | + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2644 | + array size at least. It's necessary to write '\x00'==0 to get something | |
2645 | + that's true only with -std. */ | |
2646 | +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2647 | + | |
2648 | +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2649 | + inside strings and character constants. */ | |
2650 | +#define FOO(x) 'x' | |
2651 | +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2652 | + | |
2653 | +int test (int i, double x); | |
2654 | +struct s1 {int (*f) (int a);}; | |
2655 | +struct s2 {int (*f) (double a);}; | |
2656 | +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2657 | +int argc; | |
2658 | +char **argv; | |
2659 | +int | |
2660 | +main () | |
2661 | +{ | |
2662 | +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2663 | + ; | |
2664 | + return 0; | |
2665 | +} | |
2666 | +_ACEOF | |
2667 | +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
2668 | + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2669 | +do | |
2670 | + CC="$ac_save_CC $ac_arg" | |
2671 | + rm -f conftest.$ac_objext | |
2672 | +if { (ac_try="$ac_compile" | |
2673 | +case "(($ac_try" in | |
2674 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2675 | + *) ac_try_echo=$ac_try;; | |
2676 | +esac | |
2677 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2678 | +$as_echo "$ac_try_echo") >&5 | |
2679 | + (eval "$ac_compile") 2>conftest.er1 | |
2680 | + ac_status=$? | |
2681 | + grep -v '^ *+' conftest.er1 >conftest.err | |
2682 | + rm -f conftest.er1 | |
2683 | + cat conftest.err >&5 | |
2684 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2685 | + (exit $ac_status); } && { | |
2686 | + test -z "$ac_c_werror_flag" || | |
2687 | + test ! -s conftest.err | |
2688 | + } && test -s conftest.$ac_objext; then | |
2689 | + ac_cv_prog_cc_c89=$ac_arg | |
2690 | +else | |
2691 | + $as_echo "$as_me: failed program was:" >&5 | |
2692 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
2693 | + | |
2694 | + | |
2695 | +fi | |
2696 | + | |
2697 | +rm -f core conftest.err conftest.$ac_objext | |
2698 | + test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2699 | +done | |
2700 | +rm -f conftest.$ac_ext | |
2701 | +CC=$ac_save_CC | |
2702 | + | |
2703 | +fi | |
2704 | +# AC_CACHE_VAL | |
2705 | +case "x$ac_cv_prog_cc_c89" in | |
2706 | + x) | |
2707 | + { $as_echo "$as_me:$LINENO: result: none needed" >&5 | |
2708 | +$as_echo "none needed" >&6; } ;; | |
2709 | + xno) | |
2710 | + { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | |
2711 | +$as_echo "unsupported" >&6; } ;; | |
2712 | + *) | |
2713 | + CC="$CC $ac_cv_prog_cc_c89" | |
2714 | + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
2715 | +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
2716 | +esac | |
2717 | + | |
2718 | + | |
2719 | +ac_ext=c | |
2720 | +ac_cpp='$CPP $CPPFLAGS' | |
2721 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2722 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2723 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2724 | + | |
2725 | +ac_aux_dir= | |
2726 | +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2727 | + if test -f "$ac_dir/install-sh"; then | |
2728 | + ac_aux_dir=$ac_dir | |
2729 | + ac_install_sh="$ac_aux_dir/install-sh -c" | |
2730 | + break | |
2731 | + elif test -f "$ac_dir/install.sh"; then | |
2732 | + ac_aux_dir=$ac_dir | |
2733 | + ac_install_sh="$ac_aux_dir/install.sh -c" | |
2734 | + break | |
2735 | + elif test -f "$ac_dir/shtool"; then | |
2736 | + ac_aux_dir=$ac_dir | |
2737 | + ac_install_sh="$ac_aux_dir/shtool install -c" | |
2738 | + break | |
2739 | + fi | |
2740 | +done | |
2741 | +if test -z "$ac_aux_dir"; then | |
2742 | + { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
2743 | +$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2744 | + { (exit 1); exit 1; }; } | |
2745 | +fi | |
2746 | + | |
2747 | +# These three variables are undocumented and unsupported, | |
2748 | +# and are intended to be withdrawn in a future Autoconf release. | |
2749 | +# They can cause serious problems if a builder's source tree is in a directory | |
2750 | +# whose full name contains unusual characters. | |
2751 | +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2752 | +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2753 | +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2754 | + | |
2755 | + | |
2756 | +# Find a good install program. We prefer a C program (faster), | |
2757 | +# so one script is as good as another. But avoid the broken or | |
2758 | +# incompatible versions: | |
2759 | +# SysV /etc/install, /usr/sbin/install | |
2760 | +# SunOS /usr/etc/install | |
2761 | +# IRIX /sbin/install | |
2762 | +# AIX /bin/install | |
2763 | +# AmigaOS /C/install, which installs bootblocks on floppy discs | |
2764 | +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2765 | +# AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2766 | +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2767 | +# OS/2's system install, which has a completely different semantic | |
2768 | +# ./install, which can be erroneously created by make from ./install.sh. | |
2769 | +# Reject install programs that cannot install multiple files. | |
2770 | +{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2771 | +$as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2772 | +if test -z "$INSTALL"; then | |
2773 | +if test "${ac_cv_path_install+set}" = set; then | |
2774 | + $as_echo_n "(cached) " >&6 | |
2775 | +else | |
2776 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2777 | +for as_dir in $PATH | |
2778 | +do | |
2779 | + IFS=$as_save_IFS | |
2780 | + test -z "$as_dir" && as_dir=. | |
2781 | + # Account for people who put trailing slashes in PATH elements. | |
2782 | +case $as_dir/ in | |
2783 | + ./ | .// | /cC/* | \ | |
2784 | + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2785 | + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2786 | + /usr/ucb/* ) ;; | |
2787 | + *) | |
2788 | + # OSF1 and SCO ODT 3.0 have their own names for install. | |
2789 | + # Don't use installbsd from OSF since it installs stuff as root | |
2790 | + # by default. | |
2791 | + for ac_prog in ginstall scoinst install; do | |
2792 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2793 | + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2794 | + if test $ac_prog = install && | |
2795 | + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2796 | + # AIX install. It has an incompatible calling convention. | |
2797 | + : | |
2798 | + elif test $ac_prog = install && | |
2799 | + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2800 | + # program-specific install script used by HP pwplus--don't use. | |
2801 | + : | |
2802 | + else | |
2803 | + rm -rf conftest.one conftest.two conftest.dir | |
2804 | + echo one > conftest.one | |
2805 | + echo two > conftest.two | |
2806 | + mkdir conftest.dir | |
2807 | + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2808 | + test -s conftest.one && test -s conftest.two && | |
2809 | + test -s conftest.dir/conftest.one && | |
2810 | + test -s conftest.dir/conftest.two | |
2811 | + then | |
2812 | + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2813 | + break 3 | |
2814 | + fi | |
2815 | + fi | |
2816 | + fi | |
2817 | + done | |
2818 | + done | |
2819 | + ;; | |
2820 | +esac | |
2821 | + | |
2822 | +done | |
2823 | +IFS=$as_save_IFS | |
2824 | + | |
2825 | +rm -rf conftest.one conftest.two conftest.dir | |
2826 | + | |
2827 | +fi | |
2828 | + if test "${ac_cv_path_install+set}" = set; then | |
2829 | + INSTALL=$ac_cv_path_install | |
2830 | + else | |
2831 | + # As a last resort, use the slow shell script. Don't cache a | |
2832 | + # value for INSTALL within a source directory, because that will | |
2833 | + # break other packages using the cache if that directory is | |
2834 | + # removed, or if the value is a relative name. | |
2835 | + INSTALL=$ac_install_sh | |
2836 | + fi | |
2837 | +fi | |
2838 | +{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2839 | +$as_echo "$INSTALL" >&6; } | |
2840 | + | |
2841 | +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2842 | +# It thinks the first close brace ends the variable substitution. | |
2843 | +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2844 | + | |
2845 | +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2846 | + | |
2847 | +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2848 | + | |
2849 | + | |
2850 | +if test $prefix = NONE | |
2851 | +then | |
2852 | + myprefix=/usr/local | |
2853 | +else | |
2854 | + myprefix=$prefix | |
2855 | +fi | |
2856 | + | |
2857 | +########################################################################## | |
2858 | +# 引数 | |
2859 | +########################################################################## | |
2860 | +DEBUGGING=0 | |
2861 | + | |
2862 | + | |
2863 | +@%:@ Check whether --with-debug was given. | |
2864 | +if test "${with_debug+set}" = set; then | |
2865 | + withval=$with_debug; DEBUGGING=1; | |
2866 | +fi | |
2867 | + | |
2868 | + | |
2869 | +@%:@ Check whether --with-gprof-debug was given. | |
2870 | +if test "${with_gprof_debug+set}" = set; then | |
2871 | + withval=$with_gprof_debug; DEBUGGING=2; | |
2872 | +fi | |
2873 | + | |
2874 | + | |
2875 | +@%:@ Check whether --with-optimize was given. | |
2876 | +if test "${with_optimize+set}" = set; then | |
2877 | + withval=$with_optimize; ENABLE_OPTIMIZE=1 | |
2878 | +else | |
2879 | + ENABLE_OPTIMIZE=0 | |
2880 | +fi | |
2881 | + | |
2882 | + | |
2883 | +@%:@ Check whether --with-migemo was given. | |
2884 | +if test "${with_migemo+set}" = set; then | |
2885 | + withval=$with_migemo; ENABLE_MIGEMO=1 | |
2886 | +else | |
2887 | + ENABLE_MIGEMO=0 | |
2888 | +fi | |
2889 | + | |
2890 | + | |
2891 | +@%:@ Check whether --with-migemo-dir was given. | |
2892 | +if test "${with_migemo_dir+set}" = set; then | |
2893 | + withval=$with_migemo_dir; MIGEMO_DIR="$with_val" | |
2894 | +else | |
2895 | + MIGEMO_DIR= | |
2896 | +fi | |
2897 | + | |
2898 | + | |
2899 | +@%:@ Check whether --with-onig-dir was given. | |
2900 | +if test "${with_onig_dir+set}" = set; then | |
2901 | + withval=$with_onig_dir; ONIG_DIR="$with_val" | |
2902 | +else | |
2903 | + ONIG_DIR= | |
2904 | +fi | |
2905 | + | |
2906 | + | |
2907 | +@%:@ Check whether --with-xyzsh-dir was given. | |
2908 | +if test "${with_xyzsh_dir+set}" = set; then | |
2909 | + withval=$with_xyzsh_dir; XYZSH_DIR="$with_val" | |
2910 | +else | |
2911 | + XYZSH_DIR= | |
2912 | +fi | |
2913 | + | |
2914 | + | |
2915 | +@%:@ Check whether --with-system-migemodir was given. | |
2916 | +if test "${with_system_migemodir+set}" = set; then | |
2917 | + withval=$with_system_migemodir; if test -n "$withval" && test -n $LIBMIGEMO ; then echo "system-migemodir = $withval" ; SYSTEM_MIGEMODIR="$withval" ; { cat >>confdefs.h <<_ACEOF | |
2918 | +@%:@define SYSTEM_MIGEMODIR "$withval" | |
2919 | +_ACEOF | |
2920 | + } ; fi | |
2921 | +else | |
2922 | + if test -e /usr/local/share/migemo; then SYSTEM_MIGEMODIR=/usr/local/share/migemo; else SYSTEM_MIGEMODIR=/usr/share/cmigemo; fi | |
2923 | +fi | |
2924 | + | |
2925 | + | |
2926 | +if test $DEBUGGING = 1 | |
2927 | +then | |
2928 | + CFLAGS="-Isrc/ -I$myprefix/include -L$myprefix/lib -I . -g -DMDEBUG -Werror" | |
2929 | +elif test $DEBUGGING = 2 | |
2930 | +then | |
2931 | + CFLAGS="-Isrc/ -I$myprefix/include -L$myprefix/lib -I . -g -pg -DMDEBUG -Werror" | |
2932 | +else | |
2933 | + CFLAGS="-Isrc/ -I$myprefix/include -L$myprefix/lib -I ." | |
2934 | +fi | |
2935 | + | |
2936 | +if test -d /usr/local/include | |
2937 | +then | |
2938 | + CFLAGS="$CFLAGS -I/usr/local/include" | |
2939 | +fi | |
2940 | + | |
2941 | +if test -d /usr/local/lib | |
2942 | +then | |
2943 | + CFLAGS="$CFLAGS -L/usr/local/lib" | |
2944 | +fi | |
2945 | + | |
2946 | +if test -d /opt/local/include | |
2947 | +then | |
2948 | + CFLAGS="$CFLAGS -I/opt/local/include" | |
2949 | +fi | |
2950 | + | |
2951 | +if test -d /opt/local/lib | |
2952 | +then | |
2953 | + CFLAGS="$CFLAGS -L/opt/local/lib" | |
2954 | +fi | |
2955 | + | |
2956 | + | |
2957 | +if test -n "$ONIG_DIR" | |
2958 | +then | |
2959 | + if test -e "$ONIG_DIR/include/oniguruma.h" && test -e "$ONIG_DIR/lib/libonig.a" | |
2960 | + then | |
2961 | + CFLAGS="$CFLAGS -I$ONIG_DIR/include -L$ONIG_DIR/lib" | |
2962 | + else | |
2963 | + echo "can't found oniguruma.h in $ONIG_DIR/include or libonig.a in $ONIG_DIR/lib" | |
2964 | + fi | |
2965 | +fi | |
2966 | + | |
2967 | +if test -n "$MIGEMO_DIR" | |
2968 | +then | |
2969 | + if test -e "$MIGEMO_DIR/include/migemo.h" && test -e "$MIGEMO_DIR/lib/libmigemo.so" | |
2970 | + then | |
2971 | + CFLAGS="$CFLAGS -I$MIGEMO_DIR/include -L$MIGEMO_DIR/lib" | |
2972 | + else | |
2973 | + echo "can't found migemo.h in $MIGEMO_DIR/include or libmigemo.so in $MIGEMO_DIR/lib" | |
2974 | + fi | |
2975 | +fi | |
2976 | + | |
2977 | +if test -n "$XYZSH_DIR" | |
2978 | +then | |
2979 | + if test -e "$XYZSH_DIR/include/xyzsh/xyzsh.h" && test -e "$XYZSH_DIR/lib/libxyzsh.so" | |
2980 | + then | |
2981 | + CFLAGS="$CFLAGS -I$XYZSH_DIR/include -L$XYZSH_DIR/lib" | |
2982 | + else | |
2983 | + echo "can't found xyzsh/xyzsh.h in $XYZSH_DIR/include or libxyzsh.a in $XYZSH_DIR/lib" | |
2984 | + fi | |
2985 | +fi | |
2986 | + | |
2987 | +if test $ENABLE_OPTIMIZE = 1 | |
2988 | +then | |
2989 | + CFLAGS="$CFLAGS -O3" | |
2990 | +fi | |
2991 | + | |
2992 | +CFLAGS="-DSYSCONFDIR=\"\\\"$sysconfdir/mfiler4/\\\"\" -DDATAROOTDIR=\"\\\"$datarootdir/doc/mfiler4/\\\"\" -DSYSTEM_MIGEMODIR=\"\\\"$SYSTEM_MIGEMODIR\\\"\" $CFLAGS" | |
2993 | + | |
2994 | + | |
2995 | + | |
2996 | + | |
2997 | +##################################################################### | |
2998 | +# Operating System | |
2999 | +##################################################################### | |
3000 | +{ $as_echo "$as_me:$LINENO: checking Operating System" >&5 | |
3001 | +$as_echo_n "checking Operating System... " >&6; } | |
3002 | + | |
3003 | +if uname -s | grep -q CYGWIN; then | |
3004 | + echo "CYGWIN" | |
3005 | + cat >>confdefs.h <<\_ACEOF | |
3006 | +@%:@define __CYGWIN__ 1 | |
3007 | +_ACEOF | |
3008 | + | |
3009 | + OS=CYGWIN | |
3010 | +elif test `uname -s` = "Darwin"; then | |
3011 | + echo "Darwin" | |
3012 | + | |
3013 | + cat >>confdefs.h <<\_ACEOF | |
3014 | +@%:@define __DARWIN__ 1 | |
3015 | +_ACEOF | |
3016 | + | |
3017 | + OS=DARWIN | |
3018 | +elif test `uname -s` = "FreeBSD"; then | |
3019 | + echo "FreeBSD" | |
3020 | + | |
3021 | + cat >>confdefs.h <<\_ACEOF | |
3022 | +@%:@define __FREEBSD__ 1 | |
3023 | +_ACEOF | |
3024 | + | |
3025 | + OS=FREEBSD | |
3026 | +else | |
3027 | + echo "Linux" | |
3028 | + | |
3029 | + cat >>confdefs.h <<\_ACEOF | |
3030 | +@%:@define __LINUX__ 1 | |
3031 | +_ACEOF | |
3032 | + | |
3033 | + OS=LINUX | |
3034 | +fi | |
3035 | + | |
3036 | +########################################################################## | |
3037 | +# libxyzsh | |
3038 | +########################################################################### | |
3039 | + | |
3040 | +ac_ext=c | |
3041 | +ac_cpp='$CPP $CPPFLAGS' | |
3042 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3043 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3044 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3045 | +{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3046 | +$as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3047 | +# On Suns, sometimes $CPP names a directory. | |
3048 | +if test -n "$CPP" && test -d "$CPP"; then | |
3049 | + CPP= | |
3050 | +fi | |
3051 | +if test -z "$CPP"; then | |
3052 | + if test "${ac_cv_prog_CPP+set}" = set; then | |
3053 | + $as_echo_n "(cached) " >&6 | |
3054 | +else | |
3055 | + # Double quotes because CPP needs to be expanded | |
3056 | + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3057 | + do | |
3058 | + ac_preproc_ok=false | |
3059 | +for ac_c_preproc_warn_flag in '' yes | |
3060 | +do | |
3061 | + # Use a header file that comes with gcc, so configuring glibc | |
3062 | + # with a fresh cross-compiler works. | |
3063 | + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3064 | + # <limits.h> exists even on freestanding compilers. | |
3065 | + # On the NeXT, cc -E runs the code through the compiler's parser, | |
3066 | + # not just through cpp. "Syntax error" is here to catch this case. | |
3067 | + cat >conftest.$ac_ext <<_ACEOF | |
3068 | +/* confdefs.h. */ | |
3069 | +_ACEOF | |
3070 | +cat confdefs.h >>conftest.$ac_ext | |
3071 | +cat >>conftest.$ac_ext <<_ACEOF | |
3072 | +/* end confdefs.h. */ | |
3073 | +@%:@ifdef __STDC__ | |
3074 | +@%:@ include <limits.h> | |
3075 | +@%:@else | |
3076 | +@%:@ include <assert.h> | |
3077 | +@%:@endif | |
3078 | + Syntax error | |
3079 | +_ACEOF | |
3080 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3081 | +case "(($ac_try" in | |
3082 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3083 | + *) ac_try_echo=$ac_try;; | |
3084 | +esac | |
3085 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3086 | +$as_echo "$ac_try_echo") >&5 | |
3087 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3088 | + ac_status=$? | |
3089 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3090 | + rm -f conftest.er1 | |
3091 | + cat conftest.err >&5 | |
3092 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3093 | + (exit $ac_status); } >/dev/null && { | |
3094 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3095 | + test ! -s conftest.err | |
3096 | + }; then | |
3097 | + : | |
3098 | +else | |
3099 | + $as_echo "$as_me: failed program was:" >&5 | |
3100 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3101 | + | |
3102 | + # Broken: fails on valid input. | |
3103 | +continue | |
3104 | +fi | |
3105 | + | |
3106 | +rm -f conftest.err conftest.$ac_ext | |
3107 | + | |
3108 | + # OK, works on sane cases. Now check whether nonexistent headers | |
3109 | + # can be detected and how. | |
3110 | + cat >conftest.$ac_ext <<_ACEOF | |
3111 | +/* confdefs.h. */ | |
3112 | +_ACEOF | |
3113 | +cat confdefs.h >>conftest.$ac_ext | |
3114 | +cat >>conftest.$ac_ext <<_ACEOF | |
3115 | +/* end confdefs.h. */ | |
3116 | +@%:@include <ac_nonexistent.h> | |
3117 | +_ACEOF | |
3118 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3119 | +case "(($ac_try" in | |
3120 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3121 | + *) ac_try_echo=$ac_try;; | |
3122 | +esac | |
3123 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3124 | +$as_echo "$ac_try_echo") >&5 | |
3125 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3126 | + ac_status=$? | |
3127 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3128 | + rm -f conftest.er1 | |
3129 | + cat conftest.err >&5 | |
3130 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3131 | + (exit $ac_status); } >/dev/null && { | |
3132 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3133 | + test ! -s conftest.err | |
3134 | + }; then | |
3135 | + # Broken: success on invalid input. | |
3136 | +continue | |
3137 | +else | |
3138 | + $as_echo "$as_me: failed program was:" >&5 | |
3139 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3140 | + | |
3141 | + # Passes both tests. | |
3142 | +ac_preproc_ok=: | |
3143 | +break | |
3144 | +fi | |
3145 | + | |
3146 | +rm -f conftest.err conftest.$ac_ext | |
3147 | + | |
3148 | +done | |
3149 | +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3150 | +rm -f conftest.err conftest.$ac_ext | |
3151 | +if $ac_preproc_ok; then | |
3152 | + break | |
3153 | +fi | |
3154 | + | |
3155 | + done | |
3156 | + ac_cv_prog_CPP=$CPP | |
3157 | + | |
3158 | +fi | |
3159 | + CPP=$ac_cv_prog_CPP | |
3160 | +else | |
3161 | + ac_cv_prog_CPP=$CPP | |
3162 | +fi | |
3163 | +{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 | |
3164 | +$as_echo "$CPP" >&6; } | |
3165 | +ac_preproc_ok=false | |
3166 | +for ac_c_preproc_warn_flag in '' yes | |
3167 | +do | |
3168 | + # Use a header file that comes with gcc, so configuring glibc | |
3169 | + # with a fresh cross-compiler works. | |
3170 | + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3171 | + # <limits.h> exists even on freestanding compilers. | |
3172 | + # On the NeXT, cc -E runs the code through the compiler's parser, | |
3173 | + # not just through cpp. "Syntax error" is here to catch this case. | |
3174 | + cat >conftest.$ac_ext <<_ACEOF | |
3175 | +/* confdefs.h. */ | |
3176 | +_ACEOF | |
3177 | +cat confdefs.h >>conftest.$ac_ext | |
3178 | +cat >>conftest.$ac_ext <<_ACEOF | |
3179 | +/* end confdefs.h. */ | |
3180 | +@%:@ifdef __STDC__ | |
3181 | +@%:@ include <limits.h> | |
3182 | +@%:@else | |
3183 | +@%:@ include <assert.h> | |
3184 | +@%:@endif | |
3185 | + Syntax error | |
3186 | +_ACEOF | |
3187 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3188 | +case "(($ac_try" in | |
3189 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3190 | + *) ac_try_echo=$ac_try;; | |
3191 | +esac | |
3192 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3193 | +$as_echo "$ac_try_echo") >&5 | |
3194 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3195 | + ac_status=$? | |
3196 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3197 | + rm -f conftest.er1 | |
3198 | + cat conftest.err >&5 | |
3199 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3200 | + (exit $ac_status); } >/dev/null && { | |
3201 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3202 | + test ! -s conftest.err | |
3203 | + }; then | |
3204 | + : | |
3205 | +else | |
3206 | + $as_echo "$as_me: failed program was:" >&5 | |
3207 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3208 | + | |
3209 | + # Broken: fails on valid input. | |
3210 | +continue | |
3211 | +fi | |
3212 | + | |
3213 | +rm -f conftest.err conftest.$ac_ext | |
3214 | + | |
3215 | + # OK, works on sane cases. Now check whether nonexistent headers | |
3216 | + # can be detected and how. | |
3217 | + cat >conftest.$ac_ext <<_ACEOF | |
3218 | +/* confdefs.h. */ | |
3219 | +_ACEOF | |
3220 | +cat confdefs.h >>conftest.$ac_ext | |
3221 | +cat >>conftest.$ac_ext <<_ACEOF | |
3222 | +/* end confdefs.h. */ | |
3223 | +@%:@include <ac_nonexistent.h> | |
3224 | +_ACEOF | |
3225 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3226 | +case "(($ac_try" in | |
3227 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3228 | + *) ac_try_echo=$ac_try;; | |
3229 | +esac | |
3230 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3231 | +$as_echo "$ac_try_echo") >&5 | |
3232 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3233 | + ac_status=$? | |
3234 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3235 | + rm -f conftest.er1 | |
3236 | + cat conftest.err >&5 | |
3237 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3238 | + (exit $ac_status); } >/dev/null && { | |
3239 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3240 | + test ! -s conftest.err | |
3241 | + }; then | |
3242 | + # Broken: success on invalid input. | |
3243 | +continue | |
3244 | +else | |
3245 | + $as_echo "$as_me: failed program was:" >&5 | |
3246 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3247 | + | |
3248 | + # Passes both tests. | |
3249 | +ac_preproc_ok=: | |
3250 | +break | |
3251 | +fi | |
3252 | + | |
3253 | +rm -f conftest.err conftest.$ac_ext | |
3254 | + | |
3255 | +done | |
3256 | +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3257 | +rm -f conftest.err conftest.$ac_ext | |
3258 | +if $ac_preproc_ok; then | |
3259 | + : | |
3260 | +else | |
3261 | + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3262 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3263 | +{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3264 | +See \`config.log' for more details." >&5 | |
3265 | +$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3266 | +See \`config.log' for more details." >&2;} | |
3267 | + { (exit 1); exit 1; }; }; } | |
3268 | +fi | |
3269 | + | |
3270 | +ac_ext=c | |
3271 | +ac_cpp='$CPP $CPPFLAGS' | |
3272 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3273 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3274 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3275 | + | |
3276 | + | |
3277 | +{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
3278 | +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3279 | +if test "${ac_cv_path_GREP+set}" = set; then | |
3280 | + $as_echo_n "(cached) " >&6 | |
3281 | +else | |
3282 | + if test -z "$GREP"; then | |
3283 | + ac_path_GREP_found=false | |
3284 | + # Loop through the user's path and test for each of PROGNAME-LIST | |
3285 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3286 | +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3287 | +do | |
3288 | + IFS=$as_save_IFS | |
3289 | + test -z "$as_dir" && as_dir=. | |
3290 | + for ac_prog in grep ggrep; do | |
3291 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
3292 | + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3293 | + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3294 | +# Check for GNU ac_path_GREP and select it if it is found. | |
3295 | + # Check for GNU $ac_path_GREP | |
3296 | +case `"$ac_path_GREP" --version 2>&1` in | |
3297 | +*GNU*) | |
3298 | + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3299 | +*) | |
3300 | + ac_count=0 | |
3301 | + $as_echo_n 0123456789 >"conftest.in" | |
3302 | + while : | |
3303 | + do | |
3304 | + cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3305 | + mv "conftest.tmp" "conftest.in" | |
3306 | + cp "conftest.in" "conftest.nl" | |
3307 | + $as_echo 'GREP' >> "conftest.nl" | |
3308 | + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3309 | + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3310 | + ac_count=`expr $ac_count + 1` | |
3311 | + if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3312 | + # Best one so far, save it but keep looking for a better one | |
3313 | + ac_cv_path_GREP="$ac_path_GREP" | |
3314 | + ac_path_GREP_max=$ac_count | |
3315 | + fi | |
3316 | + # 10*(2^10) chars as input seems more than enough | |
3317 | + test $ac_count -gt 10 && break | |
3318 | + done | |
3319 | + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3320 | +esac | |
3321 | + | |
3322 | + $ac_path_GREP_found && break 3 | |
3323 | + done | |
3324 | + done | |
3325 | +done | |
3326 | +IFS=$as_save_IFS | |
3327 | + if test -z "$ac_cv_path_GREP"; then | |
3328 | + { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3329 | +$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3330 | + { (exit 1); exit 1; }; } | |
3331 | + fi | |
3332 | +else | |
3333 | + ac_cv_path_GREP=$GREP | |
3334 | +fi | |
3335 | + | |
3336 | +fi | |
3337 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3338 | +$as_echo "$ac_cv_path_GREP" >&6; } | |
3339 | + GREP="$ac_cv_path_GREP" | |
3340 | + | |
3341 | + | |
3342 | +{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 | |
3343 | +$as_echo_n "checking for egrep... " >&6; } | |
3344 | +if test "${ac_cv_path_EGREP+set}" = set; then | |
3345 | + $as_echo_n "(cached) " >&6 | |
3346 | +else | |
3347 | + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3348 | + then ac_cv_path_EGREP="$GREP -E" | |
3349 | + else | |
3350 | + if test -z "$EGREP"; then | |
3351 | + ac_path_EGREP_found=false | |
3352 | + # Loop through the user's path and test for each of PROGNAME-LIST | |
3353 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3354 | +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3355 | +do | |
3356 | + IFS=$as_save_IFS | |
3357 | + test -z "$as_dir" && as_dir=. | |
3358 | + for ac_prog in egrep; do | |
3359 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
3360 | + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3361 | + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3362 | +# Check for GNU ac_path_EGREP and select it if it is found. | |
3363 | + # Check for GNU $ac_path_EGREP | |
3364 | +case `"$ac_path_EGREP" --version 2>&1` in | |
3365 | +*GNU*) | |
3366 | + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3367 | +*) | |
3368 | + ac_count=0 | |
3369 | + $as_echo_n 0123456789 >"conftest.in" | |
3370 | + while : | |
3371 | + do | |
3372 | + cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3373 | + mv "conftest.tmp" "conftest.in" | |
3374 | + cp "conftest.in" "conftest.nl" | |
3375 | + $as_echo 'EGREP' >> "conftest.nl" | |
3376 | + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3377 | + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3378 | + ac_count=`expr $ac_count + 1` | |
3379 | + if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3380 | + # Best one so far, save it but keep looking for a better one | |
3381 | + ac_cv_path_EGREP="$ac_path_EGREP" | |
3382 | + ac_path_EGREP_max=$ac_count | |
3383 | + fi | |
3384 | + # 10*(2^10) chars as input seems more than enough | |
3385 | + test $ac_count -gt 10 && break | |
3386 | + done | |
3387 | + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3388 | +esac | |
3389 | + | |
3390 | + $ac_path_EGREP_found && break 3 | |
3391 | + done | |
3392 | + done | |
3393 | +done | |
3394 | +IFS=$as_save_IFS | |
3395 | + if test -z "$ac_cv_path_EGREP"; then | |
3396 | + { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3397 | +$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3398 | + { (exit 1); exit 1; }; } | |
3399 | + fi | |
3400 | +else | |
3401 | + ac_cv_path_EGREP=$EGREP | |
3402 | +fi | |
3403 | + | |
3404 | + fi | |
3405 | +fi | |
3406 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3407 | +$as_echo "$ac_cv_path_EGREP" >&6; } | |
3408 | + EGREP="$ac_cv_path_EGREP" | |
3409 | + | |
3410 | + | |
3411 | +{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3412 | +$as_echo_n "checking for ANSI C header files... " >&6; } | |
3413 | +if test "${ac_cv_header_stdc+set}" = set; then | |
3414 | + $as_echo_n "(cached) " >&6 | |
3415 | +else | |
3416 | + cat >conftest.$ac_ext <<_ACEOF | |
3417 | +/* confdefs.h. */ | |
3418 | +_ACEOF | |
3419 | +cat confdefs.h >>conftest.$ac_ext | |
3420 | +cat >>conftest.$ac_ext <<_ACEOF | |
3421 | +/* end confdefs.h. */ | |
3422 | +#include <stdlib.h> | |
3423 | +#include <stdarg.h> | |
3424 | +#include <string.h> | |
3425 | +#include <float.h> | |
3426 | + | |
3427 | +int | |
3428 | +main () | |
3429 | +{ | |
3430 | + | |
3431 | + ; | |
3432 | + return 0; | |
3433 | +} | |
3434 | +_ACEOF | |
3435 | +rm -f conftest.$ac_objext | |
3436 | +if { (ac_try="$ac_compile" | |
3437 | +case "(($ac_try" in | |
3438 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3439 | + *) ac_try_echo=$ac_try;; | |
3440 | +esac | |
3441 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3442 | +$as_echo "$ac_try_echo") >&5 | |
3443 | + (eval "$ac_compile") 2>conftest.er1 | |
3444 | + ac_status=$? | |
3445 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3446 | + rm -f conftest.er1 | |
3447 | + cat conftest.err >&5 | |
3448 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3449 | + (exit $ac_status); } && { | |
3450 | + test -z "$ac_c_werror_flag" || | |
3451 | + test ! -s conftest.err | |
3452 | + } && test -s conftest.$ac_objext; then | |
3453 | + ac_cv_header_stdc=yes | |
3454 | +else | |
3455 | + $as_echo "$as_me: failed program was:" >&5 | |
3456 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3457 | + | |
3458 | + ac_cv_header_stdc=no | |
3459 | +fi | |
3460 | + | |
3461 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3462 | + | |
3463 | +if test $ac_cv_header_stdc = yes; then | |
3464 | + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3465 | + cat >conftest.$ac_ext <<_ACEOF | |
3466 | +/* confdefs.h. */ | |
3467 | +_ACEOF | |
3468 | +cat confdefs.h >>conftest.$ac_ext | |
3469 | +cat >>conftest.$ac_ext <<_ACEOF | |
3470 | +/* end confdefs.h. */ | |
3471 | +#include <string.h> | |
3472 | + | |
3473 | +_ACEOF | |
3474 | +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3475 | + $EGREP "memchr" >/dev/null 2>&1; then | |
3476 | + : | |
3477 | +else | |
3478 | + ac_cv_header_stdc=no | |
3479 | +fi | |
3480 | +rm -f conftest* | |
3481 | + | |
3482 | +fi | |
3483 | + | |
3484 | +if test $ac_cv_header_stdc = yes; then | |
3485 | + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3486 | + cat >conftest.$ac_ext <<_ACEOF | |
3487 | +/* confdefs.h. */ | |
3488 | +_ACEOF | |
3489 | +cat confdefs.h >>conftest.$ac_ext | |
3490 | +cat >>conftest.$ac_ext <<_ACEOF | |
3491 | +/* end confdefs.h. */ | |
3492 | +#include <stdlib.h> | |
3493 | + | |
3494 | +_ACEOF | |
3495 | +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3496 | + $EGREP "free" >/dev/null 2>&1; then | |
3497 | + : | |
3498 | +else | |
3499 | + ac_cv_header_stdc=no | |
3500 | +fi | |
3501 | +rm -f conftest* | |
3502 | + | |
3503 | +fi | |
3504 | + | |
3505 | +if test $ac_cv_header_stdc = yes; then | |
3506 | + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3507 | + if test "$cross_compiling" = yes; then | |
3508 | + : | |
3509 | +else | |
3510 | + cat >conftest.$ac_ext <<_ACEOF | |
3511 | +/* confdefs.h. */ | |
3512 | +_ACEOF | |
3513 | +cat confdefs.h >>conftest.$ac_ext | |
3514 | +cat >>conftest.$ac_ext <<_ACEOF | |
3515 | +/* end confdefs.h. */ | |
3516 | +#include <ctype.h> | |
3517 | +#include <stdlib.h> | |
3518 | +#if ((' ' & 0x0FF) == 0x020) | |
3519 | +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3520 | +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3521 | +#else | |
3522 | +# define ISLOWER(c) \ | |
3523 | + (('a' <= (c) && (c) <= 'i') \ | |
3524 | + || ('j' <= (c) && (c) <= 'r') \ | |
3525 | + || ('s' <= (c) && (c) <= 'z')) | |
3526 | +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3527 | +#endif | |
3528 | + | |
3529 | +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3530 | +int | |
3531 | +main () | |
3532 | +{ | |
3533 | + int i; | |
3534 | + for (i = 0; i < 256; i++) | |
3535 | + if (XOR (islower (i), ISLOWER (i)) | |
3536 | + || toupper (i) != TOUPPER (i)) | |
3537 | + return 2; | |
3538 | + return 0; | |
3539 | +} | |
3540 | +_ACEOF | |
3541 | +rm -f conftest$ac_exeext | |
3542 | +if { (ac_try="$ac_link" | |
3543 | +case "(($ac_try" in | |
3544 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3545 | + *) ac_try_echo=$ac_try;; | |
3546 | +esac | |
3547 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3548 | +$as_echo "$ac_try_echo") >&5 | |
3549 | + (eval "$ac_link") 2>&5 | |
3550 | + ac_status=$? | |
3551 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3552 | + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3553 | + { (case "(($ac_try" in | |
3554 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3555 | + *) ac_try_echo=$ac_try;; | |
3556 | +esac | |
3557 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3558 | +$as_echo "$ac_try_echo") >&5 | |
3559 | + (eval "$ac_try") 2>&5 | |
3560 | + ac_status=$? | |
3561 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3562 | + (exit $ac_status); }; }; then | |
3563 | + : | |
3564 | +else | |
3565 | + $as_echo "$as_me: program exited with status $ac_status" >&5 | |
3566 | +$as_echo "$as_me: failed program was:" >&5 | |
3567 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3568 | + | |
3569 | +( exit $ac_status ) | |
3570 | +ac_cv_header_stdc=no | |
3571 | +fi | |
3572 | +rm -rf conftest.dSYM | |
3573 | +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3574 | +fi | |
3575 | + | |
3576 | + | |
3577 | +fi | |
3578 | +fi | |
3579 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3580 | +$as_echo "$ac_cv_header_stdc" >&6; } | |
3581 | +if test $ac_cv_header_stdc = yes; then | |
3582 | + | |
3583 | +cat >>confdefs.h <<\_ACEOF | |
3584 | +@%:@define STDC_HEADERS 1 | |
3585 | +_ACEOF | |
3586 | + | |
3587 | +fi | |
3588 | + | |
3589 | +# On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3590 | + | |
3591 | + | |
3592 | + | |
3593 | + | |
3594 | + | |
3595 | + | |
3596 | + | |
3597 | + | |
3598 | + | |
3599 | +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3600 | + inttypes.h stdint.h unistd.h | |
3601 | +do | |
3602 | +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3603 | +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3604 | +$as_echo_n "checking for $ac_header... " >&6; } | |
3605 | +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
3606 | + $as_echo_n "(cached) " >&6 | |
3607 | +else | |
3608 | + cat >conftest.$ac_ext <<_ACEOF | |
3609 | +/* confdefs.h. */ | |
3610 | +_ACEOF | |
3611 | +cat confdefs.h >>conftest.$ac_ext | |
3612 | +cat >>conftest.$ac_ext <<_ACEOF | |
3613 | +/* end confdefs.h. */ | |
3614 | +$ac_includes_default | |
3615 | + | |
3616 | +@%:@include <$ac_header> | |
3617 | +_ACEOF | |
3618 | +rm -f conftest.$ac_objext | |
3619 | +if { (ac_try="$ac_compile" | |
3620 | +case "(($ac_try" in | |
3621 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3622 | + *) ac_try_echo=$ac_try;; | |
3623 | +esac | |
3624 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3625 | +$as_echo "$ac_try_echo") >&5 | |
3626 | + (eval "$ac_compile") 2>conftest.er1 | |
3627 | + ac_status=$? | |
3628 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3629 | + rm -f conftest.er1 | |
3630 | + cat conftest.err >&5 | |
3631 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3632 | + (exit $ac_status); } && { | |
3633 | + test -z "$ac_c_werror_flag" || | |
3634 | + test ! -s conftest.err | |
3635 | + } && test -s conftest.$ac_objext; then | |
3636 | + eval "$as_ac_Header=yes" | |
3637 | +else | |
3638 | + $as_echo "$as_me: failed program was:" >&5 | |
3639 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3640 | + | |
3641 | + eval "$as_ac_Header=no" | |
3642 | +fi | |
3643 | + | |
3644 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3645 | +fi | |
3646 | +ac_res=`eval 'as_val=${'$as_ac_Header'} | |
3647 | + $as_echo "$as_val"'` | |
3648 | + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3649 | +$as_echo "$ac_res" >&6; } | |
3650 | +as_val=`eval 'as_val=${'$as_ac_Header'} | |
3651 | + $as_echo "$as_val"'` | |
3652 | + if test "x$as_val" = x""yes; then | |
3653 | + cat >>confdefs.h <<_ACEOF | |
3654 | +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3655 | +_ACEOF | |
3656 | + | |
3657 | +fi | |
3658 | + | |
3659 | +done | |
3660 | + | |
3661 | + | |
3662 | +if test "${ac_cv_header_xyzsh_xyzsh_h+set}" = set; then | |
3663 | + { $as_echo "$as_me:$LINENO: checking for xyzsh/xyzsh.h" >&5 | |
3664 | +$as_echo_n "checking for xyzsh/xyzsh.h... " >&6; } | |
3665 | +if test "${ac_cv_header_xyzsh_xyzsh_h+set}" = set; then | |
3666 | + $as_echo_n "(cached) " >&6 | |
3667 | +fi | |
3668 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xyzsh_xyzsh_h" >&5 | |
3669 | +$as_echo "$ac_cv_header_xyzsh_xyzsh_h" >&6; } | |
3670 | +else | |
3671 | + # Is the header compilable? | |
3672 | +{ $as_echo "$as_me:$LINENO: checking xyzsh/xyzsh.h usability" >&5 | |
3673 | +$as_echo_n "checking xyzsh/xyzsh.h usability... " >&6; } | |
3674 | +cat >conftest.$ac_ext <<_ACEOF | |
3675 | +/* confdefs.h. */ | |
3676 | +_ACEOF | |
3677 | +cat confdefs.h >>conftest.$ac_ext | |
3678 | +cat >>conftest.$ac_ext <<_ACEOF | |
3679 | +/* end confdefs.h. */ | |
3680 | +$ac_includes_default | |
3681 | +@%:@include <xyzsh/xyzsh.h> | |
3682 | +_ACEOF | |
3683 | +rm -f conftest.$ac_objext | |
3684 | +if { (ac_try="$ac_compile" | |
3685 | +case "(($ac_try" in | |
3686 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3687 | + *) ac_try_echo=$ac_try;; | |
3688 | +esac | |
3689 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3690 | +$as_echo "$ac_try_echo") >&5 | |
3691 | + (eval "$ac_compile") 2>conftest.er1 | |
3692 | + ac_status=$? | |
3693 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3694 | + rm -f conftest.er1 | |
3695 | + cat conftest.err >&5 | |
3696 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3697 | + (exit $ac_status); } && { | |
3698 | + test -z "$ac_c_werror_flag" || | |
3699 | + test ! -s conftest.err | |
3700 | + } && test -s conftest.$ac_objext; then | |
3701 | + ac_header_compiler=yes | |
3702 | +else | |
3703 | + $as_echo "$as_me: failed program was:" >&5 | |
3704 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3705 | + | |
3706 | + ac_header_compiler=no | |
3707 | +fi | |
3708 | + | |
3709 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3710 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3711 | +$as_echo "$ac_header_compiler" >&6; } | |
3712 | + | |
3713 | +# Is the header present? | |
3714 | +{ $as_echo "$as_me:$LINENO: checking xyzsh/xyzsh.h presence" >&5 | |
3715 | +$as_echo_n "checking xyzsh/xyzsh.h presence... " >&6; } | |
3716 | +cat >conftest.$ac_ext <<_ACEOF | |
3717 | +/* confdefs.h. */ | |
3718 | +_ACEOF | |
3719 | +cat confdefs.h >>conftest.$ac_ext | |
3720 | +cat >>conftest.$ac_ext <<_ACEOF | |
3721 | +/* end confdefs.h. */ | |
3722 | +@%:@include <xyzsh/xyzsh.h> | |
3723 | +_ACEOF | |
3724 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3725 | +case "(($ac_try" in | |
3726 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3727 | + *) ac_try_echo=$ac_try;; | |
3728 | +esac | |
3729 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3730 | +$as_echo "$ac_try_echo") >&5 | |
3731 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3732 | + ac_status=$? | |
3733 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3734 | + rm -f conftest.er1 | |
3735 | + cat conftest.err >&5 | |
3736 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3737 | + (exit $ac_status); } >/dev/null && { | |
3738 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3739 | + test ! -s conftest.err | |
3740 | + }; then | |
3741 | + ac_header_preproc=yes | |
3742 | +else | |
3743 | + $as_echo "$as_me: failed program was:" >&5 | |
3744 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3745 | + | |
3746 | + ac_header_preproc=no | |
3747 | +fi | |
3748 | + | |
3749 | +rm -f conftest.err conftest.$ac_ext | |
3750 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3751 | +$as_echo "$ac_header_preproc" >&6; } | |
3752 | + | |
3753 | +# So? What about this header? | |
3754 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3755 | + yes:no: ) | |
3756 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3757 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3758 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: proceeding with the compiler's result" >&5 | |
3759 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: proceeding with the compiler's result" >&2;} | |
3760 | + ac_header_preproc=yes | |
3761 | + ;; | |
3762 | + no:yes:* ) | |
3763 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: present but cannot be compiled" >&5 | |
3764 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: present but cannot be compiled" >&2;} | |
3765 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: check for missing prerequisite headers?" >&5 | |
3766 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: check for missing prerequisite headers?" >&2;} | |
3767 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: see the Autoconf documentation" >&5 | |
3768 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: see the Autoconf documentation" >&2;} | |
3769 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3770 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3771 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: proceeding with the preprocessor's result" >&5 | |
3772 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: proceeding with the preprocessor's result" >&2;} | |
3773 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: in the future, the compiler will take precedence" >&5 | |
3774 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: in the future, the compiler will take precedence" >&2;} | |
3775 | + | |
3776 | + ;; | |
3777 | +esac | |
3778 | +{ $as_echo "$as_me:$LINENO: checking for xyzsh/xyzsh.h" >&5 | |
3779 | +$as_echo_n "checking for xyzsh/xyzsh.h... " >&6; } | |
3780 | +if test "${ac_cv_header_xyzsh_xyzsh_h+set}" = set; then | |
3781 | + $as_echo_n "(cached) " >&6 | |
3782 | +else | |
3783 | + ac_cv_header_xyzsh_xyzsh_h=$ac_header_preproc | |
3784 | +fi | |
3785 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xyzsh_xyzsh_h" >&5 | |
3786 | +$as_echo "$ac_cv_header_xyzsh_xyzsh_h" >&6; } | |
3787 | + | |
3788 | +fi | |
3789 | +if test "x$ac_cv_header_xyzsh_xyzsh_h" = x""yes; then | |
3790 | + LIBS="$LIBS -lxyzsh"; cat >>confdefs.h <<\_ACEOF | |
3791 | +@%:@define HAVE_XYZSH_H 1 | |
3792 | +_ACEOF | |
3793 | + | |
3794 | +else | |
3795 | + exit | |
3796 | +fi | |
3797 | + | |
3798 | + | |
3799 | + | |
3800 | +###################################################################### | |
3801 | +# readline settings | |
3802 | +###################################################################### | |
3803 | +if test "${ac_cv_header_readline_readline_h+set}" = set; then | |
3804 | + { $as_echo "$as_me:$LINENO: checking for readline/readline.h" >&5 | |
3805 | +$as_echo_n "checking for readline/readline.h... " >&6; } | |
3806 | +if test "${ac_cv_header_readline_readline_h+set}" = set; then | |
3807 | + $as_echo_n "(cached) " >&6 | |
3808 | +fi | |
3809 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5 | |
3810 | +$as_echo "$ac_cv_header_readline_readline_h" >&6; } | |
3811 | +else | |
3812 | + # Is the header compilable? | |
3813 | +{ $as_echo "$as_me:$LINENO: checking readline/readline.h usability" >&5 | |
3814 | +$as_echo_n "checking readline/readline.h usability... " >&6; } | |
3815 | +cat >conftest.$ac_ext <<_ACEOF | |
3816 | +/* confdefs.h. */ | |
3817 | +_ACEOF | |
3818 | +cat confdefs.h >>conftest.$ac_ext | |
3819 | +cat >>conftest.$ac_ext <<_ACEOF | |
3820 | +/* end confdefs.h. */ | |
3821 | +$ac_includes_default | |
3822 | +@%:@include <readline/readline.h> | |
3823 | +_ACEOF | |
3824 | +rm -f conftest.$ac_objext | |
3825 | +if { (ac_try="$ac_compile" | |
3826 | +case "(($ac_try" in | |
3827 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3828 | + *) ac_try_echo=$ac_try;; | |
3829 | +esac | |
3830 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3831 | +$as_echo "$ac_try_echo") >&5 | |
3832 | + (eval "$ac_compile") 2>conftest.er1 | |
3833 | + ac_status=$? | |
3834 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3835 | + rm -f conftest.er1 | |
3836 | + cat conftest.err >&5 | |
3837 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3838 | + (exit $ac_status); } && { | |
3839 | + test -z "$ac_c_werror_flag" || | |
3840 | + test ! -s conftest.err | |
3841 | + } && test -s conftest.$ac_objext; then | |
3842 | + ac_header_compiler=yes | |
3843 | +else | |
3844 | + $as_echo "$as_me: failed program was:" >&5 | |
3845 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3846 | + | |
3847 | + ac_header_compiler=no | |
3848 | +fi | |
3849 | + | |
3850 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3851 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3852 | +$as_echo "$ac_header_compiler" >&6; } | |
3853 | + | |
3854 | +# Is the header present? | |
3855 | +{ $as_echo "$as_me:$LINENO: checking readline/readline.h presence" >&5 | |
3856 | +$as_echo_n "checking readline/readline.h presence... " >&6; } | |
3857 | +cat >conftest.$ac_ext <<_ACEOF | |
3858 | +/* confdefs.h. */ | |
3859 | +_ACEOF | |
3860 | +cat confdefs.h >>conftest.$ac_ext | |
3861 | +cat >>conftest.$ac_ext <<_ACEOF | |
3862 | +/* end confdefs.h. */ | |
3863 | +@%:@include <readline/readline.h> | |
3864 | +_ACEOF | |
3865 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3866 | +case "(($ac_try" in | |
3867 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3868 | + *) ac_try_echo=$ac_try;; | |
3869 | +esac | |
3870 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3871 | +$as_echo "$ac_try_echo") >&5 | |
3872 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3873 | + ac_status=$? | |
3874 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3875 | + rm -f conftest.er1 | |
3876 | + cat conftest.err >&5 | |
3877 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3878 | + (exit $ac_status); } >/dev/null && { | |
3879 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3880 | + test ! -s conftest.err | |
3881 | + }; then | |
3882 | + ac_header_preproc=yes | |
3883 | +else | |
3884 | + $as_echo "$as_me: failed program was:" >&5 | |
3885 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3886 | + | |
3887 | + ac_header_preproc=no | |
3888 | +fi | |
3889 | + | |
3890 | +rm -f conftest.err conftest.$ac_ext | |
3891 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3892 | +$as_echo "$ac_header_preproc" >&6; } | |
3893 | + | |
3894 | +# So? What about this header? | |
3895 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3896 | + yes:no: ) | |
3897 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3898 | +$as_echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3899 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5 | |
3900 | +$as_echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;} | |
3901 | + ac_header_preproc=yes | |
3902 | + ;; | |
3903 | + no:yes:* ) | |
3904 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5 | |
3905 | +$as_echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;} | |
3906 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5 | |
3907 | +$as_echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;} | |
3908 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5 | |
3909 | +$as_echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;} | |
3910 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3911 | +$as_echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3912 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5 | |
3913 | +$as_echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;} | |
3914 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5 | |
3915 | +$as_echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;} | |
3916 | + | |
3917 | + ;; | |
3918 | +esac | |
3919 | +{ $as_echo "$as_me:$LINENO: checking for readline/readline.h" >&5 | |
3920 | +$as_echo_n "checking for readline/readline.h... " >&6; } | |
3921 | +if test "${ac_cv_header_readline_readline_h+set}" = set; then | |
3922 | + $as_echo_n "(cached) " >&6 | |
3923 | +else | |
3924 | + ac_cv_header_readline_readline_h=$ac_header_preproc | |
3925 | +fi | |
3926 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5 | |
3927 | +$as_echo "$ac_cv_header_readline_readline_h" >&6; } | |
3928 | + | |
3929 | +fi | |
3930 | +if test "x$ac_cv_header_readline_readline_h" = x""yes; then | |
3931 | + cat >>confdefs.h <<\_ACEOF | |
3932 | +@%:@define HAVE_READLINE_H 1 | |
3933 | +_ACEOF | |
3934 | + | |
3935 | +else | |
3936 | + exit | |
3937 | +fi | |
3938 | + | |
3939 | + | |
3940 | +if test "${ac_cv_header_readline_history_h+set}" = set; then | |
3941 | + { $as_echo "$as_me:$LINENO: checking for readline/history.h" >&5 | |
3942 | +$as_echo_n "checking for readline/history.h... " >&6; } | |
3943 | +if test "${ac_cv_header_readline_history_h+set}" = set; then | |
3944 | + $as_echo_n "(cached) " >&6 | |
3945 | +fi | |
3946 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5 | |
3947 | +$as_echo "$ac_cv_header_readline_history_h" >&6; } | |
3948 | +else | |
3949 | + # Is the header compilable? | |
3950 | +{ $as_echo "$as_me:$LINENO: checking readline/history.h usability" >&5 | |
3951 | +$as_echo_n "checking readline/history.h usability... " >&6; } | |
3952 | +cat >conftest.$ac_ext <<_ACEOF | |
3953 | +/* confdefs.h. */ | |
3954 | +_ACEOF | |
3955 | +cat confdefs.h >>conftest.$ac_ext | |
3956 | +cat >>conftest.$ac_ext <<_ACEOF | |
3957 | +/* end confdefs.h. */ | |
3958 | +$ac_includes_default | |
3959 | +@%:@include <readline/history.h> | |
3960 | +_ACEOF | |
3961 | +rm -f conftest.$ac_objext | |
3962 | +if { (ac_try="$ac_compile" | |
3963 | +case "(($ac_try" in | |
3964 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3965 | + *) ac_try_echo=$ac_try;; | |
3966 | +esac | |
3967 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3968 | +$as_echo "$ac_try_echo") >&5 | |
3969 | + (eval "$ac_compile") 2>conftest.er1 | |
3970 | + ac_status=$? | |
3971 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3972 | + rm -f conftest.er1 | |
3973 | + cat conftest.err >&5 | |
3974 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3975 | + (exit $ac_status); } && { | |
3976 | + test -z "$ac_c_werror_flag" || | |
3977 | + test ! -s conftest.err | |
3978 | + } && test -s conftest.$ac_objext; then | |
3979 | + ac_header_compiler=yes | |
3980 | +else | |
3981 | + $as_echo "$as_me: failed program was:" >&5 | |
3982 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3983 | + | |
3984 | + ac_header_compiler=no | |
3985 | +fi | |
3986 | + | |
3987 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3988 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3989 | +$as_echo "$ac_header_compiler" >&6; } | |
3990 | + | |
3991 | +# Is the header present? | |
3992 | +{ $as_echo "$as_me:$LINENO: checking readline/history.h presence" >&5 | |
3993 | +$as_echo_n "checking readline/history.h presence... " >&6; } | |
3994 | +cat >conftest.$ac_ext <<_ACEOF | |
3995 | +/* confdefs.h. */ | |
3996 | +_ACEOF | |
3997 | +cat confdefs.h >>conftest.$ac_ext | |
3998 | +cat >>conftest.$ac_ext <<_ACEOF | |
3999 | +/* end confdefs.h. */ | |
4000 | +@%:@include <readline/history.h> | |
4001 | +_ACEOF | |
4002 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4003 | +case "(($ac_try" in | |
4004 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4005 | + *) ac_try_echo=$ac_try;; | |
4006 | +esac | |
4007 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4008 | +$as_echo "$ac_try_echo") >&5 | |
4009 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4010 | + ac_status=$? | |
4011 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4012 | + rm -f conftest.er1 | |
4013 | + cat conftest.err >&5 | |
4014 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4015 | + (exit $ac_status); } >/dev/null && { | |
4016 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4017 | + test ! -s conftest.err | |
4018 | + }; then | |
4019 | + ac_header_preproc=yes | |
4020 | +else | |
4021 | + $as_echo "$as_me: failed program was:" >&5 | |
4022 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4023 | + | |
4024 | + ac_header_preproc=no | |
4025 | +fi | |
4026 | + | |
4027 | +rm -f conftest.err conftest.$ac_ext | |
4028 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4029 | +$as_echo "$ac_header_preproc" >&6; } | |
4030 | + | |
4031 | +# So? What about this header? | |
4032 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4033 | + yes:no: ) | |
4034 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4035 | +$as_echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4036 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5 | |
4037 | +$as_echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;} | |
4038 | + ac_header_preproc=yes | |
4039 | + ;; | |
4040 | + no:yes:* ) | |
4041 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5 | |
4042 | +$as_echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;} | |
4043 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5 | |
4044 | +$as_echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;} | |
4045 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5 | |
4046 | +$as_echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;} | |
4047 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4048 | +$as_echo "$as_me: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4049 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5 | |
4050 | +$as_echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;} | |
4051 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5 | |
4052 | +$as_echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;} | |
4053 | + | |
4054 | + ;; | |
4055 | +esac | |
4056 | +{ $as_echo "$as_me:$LINENO: checking for readline/history.h" >&5 | |
4057 | +$as_echo_n "checking for readline/history.h... " >&6; } | |
4058 | +if test "${ac_cv_header_readline_history_h+set}" = set; then | |
4059 | + $as_echo_n "(cached) " >&6 | |
4060 | +else | |
4061 | + ac_cv_header_readline_history_h=$ac_header_preproc | |
4062 | +fi | |
4063 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5 | |
4064 | +$as_echo "$ac_cv_header_readline_history_h" >&6; } | |
4065 | + | |
4066 | +fi | |
4067 | +if test "x$ac_cv_header_readline_history_h" = x""yes; then | |
4068 | + cat >>confdefs.h <<\_ACEOF | |
4069 | +@%:@define HAVE_READLINE_HISTORY_H 1 | |
4070 | +_ACEOF | |
4071 | + | |
4072 | +else | |
4073 | + exit | |
4074 | +fi | |
4075 | + | |
4076 | + | |
4077 | +{ $as_echo "$as_me:$LINENO: checking for main in -lreadline" >&5 | |
4078 | +$as_echo_n "checking for main in -lreadline... " >&6; } | |
4079 | +if test "${ac_cv_lib_readline_main+set}" = set; then | |
4080 | + $as_echo_n "(cached) " >&6 | |
4081 | +else | |
4082 | + ac_check_lib_save_LIBS=$LIBS | |
4083 | +LIBS="-lreadline $LIBS" | |
4084 | +cat >conftest.$ac_ext <<_ACEOF | |
4085 | +/* confdefs.h. */ | |
4086 | +_ACEOF | |
4087 | +cat confdefs.h >>conftest.$ac_ext | |
4088 | +cat >>conftest.$ac_ext <<_ACEOF | |
4089 | +/* end confdefs.h. */ | |
4090 | + | |
4091 | + | |
4092 | +int | |
4093 | +main () | |
4094 | +{ | |
4095 | +return main (); | |
4096 | + ; | |
4097 | + return 0; | |
4098 | +} | |
4099 | +_ACEOF | |
4100 | +rm -f conftest.$ac_objext conftest$ac_exeext | |
4101 | +if { (ac_try="$ac_link" | |
4102 | +case "(($ac_try" in | |
4103 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4104 | + *) ac_try_echo=$ac_try;; | |
4105 | +esac | |
4106 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4107 | +$as_echo "$ac_try_echo") >&5 | |
4108 | + (eval "$ac_link") 2>conftest.er1 | |
4109 | + ac_status=$? | |
4110 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4111 | + rm -f conftest.er1 | |
4112 | + cat conftest.err >&5 | |
4113 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4114 | + (exit $ac_status); } && { | |
4115 | + test -z "$ac_c_werror_flag" || | |
4116 | + test ! -s conftest.err | |
4117 | + } && test -s conftest$ac_exeext && { | |
4118 | + test "$cross_compiling" = yes || | |
4119 | + $as_test_x conftest$ac_exeext | |
4120 | + }; then | |
4121 | + ac_cv_lib_readline_main=yes | |
4122 | +else | |
4123 | + $as_echo "$as_me: failed program was:" >&5 | |
4124 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4125 | + | |
4126 | + ac_cv_lib_readline_main=no | |
4127 | +fi | |
4128 | + | |
4129 | +rm -rf conftest.dSYM | |
4130 | +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4131 | + conftest$ac_exeext conftest.$ac_ext | |
4132 | +LIBS=$ac_check_lib_save_LIBS | |
4133 | +fi | |
4134 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5 | |
4135 | +$as_echo "$ac_cv_lib_readline_main" >&6; } | |
4136 | +if test "x$ac_cv_lib_readline_main" = x""yes; then | |
4137 | + LIBS="$LIBS -lreadline" | |
4138 | +else | |
4139 | + exit | |
4140 | +fi | |
4141 | +ac_cv_lib_readline=ac_cv_lib_readline_main | |
4142 | + | |
4143 | + | |
4144 | +########################################################################### | |
4145 | +# libcurses | |
4146 | +########################################################################### | |
4147 | +if test "${ac_cv_header_ncurses_h+set}" = set; then | |
4148 | + { $as_echo "$as_me:$LINENO: checking for ncurses.h" >&5 | |
4149 | +$as_echo_n "checking for ncurses.h... " >&6; } | |
4150 | +if test "${ac_cv_header_ncurses_h+set}" = set; then | |
4151 | + $as_echo_n "(cached) " >&6 | |
4152 | +fi | |
4153 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5 | |
4154 | +$as_echo "$ac_cv_header_ncurses_h" >&6; } | |
4155 | +else | |
4156 | + # Is the header compilable? | |
4157 | +{ $as_echo "$as_me:$LINENO: checking ncurses.h usability" >&5 | |
4158 | +$as_echo_n "checking ncurses.h usability... " >&6; } | |
4159 | +cat >conftest.$ac_ext <<_ACEOF | |
4160 | +/* confdefs.h. */ | |
4161 | +_ACEOF | |
4162 | +cat confdefs.h >>conftest.$ac_ext | |
4163 | +cat >>conftest.$ac_ext <<_ACEOF | |
4164 | +/* end confdefs.h. */ | |
4165 | +$ac_includes_default | |
4166 | +@%:@include <ncurses.h> | |
4167 | +_ACEOF | |
4168 | +rm -f conftest.$ac_objext | |
4169 | +if { (ac_try="$ac_compile" | |
4170 | +case "(($ac_try" in | |
4171 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4172 | + *) ac_try_echo=$ac_try;; | |
4173 | +esac | |
4174 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4175 | +$as_echo "$ac_try_echo") >&5 | |
4176 | + (eval "$ac_compile") 2>conftest.er1 | |
4177 | + ac_status=$? | |
4178 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4179 | + rm -f conftest.er1 | |
4180 | + cat conftest.err >&5 | |
4181 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4182 | + (exit $ac_status); } && { | |
4183 | + test -z "$ac_c_werror_flag" || | |
4184 | + test ! -s conftest.err | |
4185 | + } && test -s conftest.$ac_objext; then | |
4186 | + ac_header_compiler=yes | |
4187 | +else | |
4188 | + $as_echo "$as_me: failed program was:" >&5 | |
4189 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4190 | + | |
4191 | + ac_header_compiler=no | |
4192 | +fi | |
4193 | + | |
4194 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4195 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4196 | +$as_echo "$ac_header_compiler" >&6; } | |
4197 | + | |
4198 | +# Is the header present? | |
4199 | +{ $as_echo "$as_me:$LINENO: checking ncurses.h presence" >&5 | |
4200 | +$as_echo_n "checking ncurses.h presence... " >&6; } | |
4201 | +cat >conftest.$ac_ext <<_ACEOF | |
4202 | +/* confdefs.h. */ | |
4203 | +_ACEOF | |
4204 | +cat confdefs.h >>conftest.$ac_ext | |
4205 | +cat >>conftest.$ac_ext <<_ACEOF | |
4206 | +/* end confdefs.h. */ | |
4207 | +@%:@include <ncurses.h> | |
4208 | +_ACEOF | |
4209 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4210 | +case "(($ac_try" in | |
4211 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4212 | + *) ac_try_echo=$ac_try;; | |
4213 | +esac | |
4214 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4215 | +$as_echo "$ac_try_echo") >&5 | |
4216 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4217 | + ac_status=$? | |
4218 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4219 | + rm -f conftest.er1 | |
4220 | + cat conftest.err >&5 | |
4221 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4222 | + (exit $ac_status); } >/dev/null && { | |
4223 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4224 | + test ! -s conftest.err | |
4225 | + }; then | |
4226 | + ac_header_preproc=yes | |
4227 | +else | |
4228 | + $as_echo "$as_me: failed program was:" >&5 | |
4229 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4230 | + | |
4231 | + ac_header_preproc=no | |
4232 | +fi | |
4233 | + | |
4234 | +rm -f conftest.err conftest.$ac_ext | |
4235 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4236 | +$as_echo "$ac_header_preproc" >&6; } | |
4237 | + | |
4238 | +# So? What about this header? | |
4239 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4240 | + yes:no: ) | |
4241 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4242 | +$as_echo "$as_me: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4243 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the compiler's result" >&5 | |
4244 | +$as_echo "$as_me: WARNING: ncurses.h: proceeding with the compiler's result" >&2;} | |
4245 | + ac_header_preproc=yes | |
4246 | + ;; | |
4247 | + no:yes:* ) | |
4248 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: present but cannot be compiled" >&5 | |
4249 | +$as_echo "$as_me: WARNING: ncurses.h: present but cannot be compiled" >&2;} | |
4250 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: check for missing prerequisite headers?" >&5 | |
4251 | +$as_echo "$as_me: WARNING: ncurses.h: check for missing prerequisite headers?" >&2;} | |
4252 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: see the Autoconf documentation" >&5 | |
4253 | +$as_echo "$as_me: WARNING: ncurses.h: see the Autoconf documentation" >&2;} | |
4254 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4255 | +$as_echo "$as_me: WARNING: ncurses.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4256 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the preprocessor's result" >&5 | |
4257 | +$as_echo "$as_me: WARNING: ncurses.h: proceeding with the preprocessor's result" >&2;} | |
4258 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: in the future, the compiler will take precedence" >&5 | |
4259 | +$as_echo "$as_me: WARNING: ncurses.h: in the future, the compiler will take precedence" >&2;} | |
4260 | + | |
4261 | + ;; | |
4262 | +esac | |
4263 | +{ $as_echo "$as_me:$LINENO: checking for ncurses.h" >&5 | |
4264 | +$as_echo_n "checking for ncurses.h... " >&6; } | |
4265 | +if test "${ac_cv_header_ncurses_h+set}" = set; then | |
4266 | + $as_echo_n "(cached) " >&6 | |
4267 | +else | |
4268 | + ac_cv_header_ncurses_h=$ac_header_preproc | |
4269 | +fi | |
4270 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5 | |
4271 | +$as_echo "$ac_cv_header_ncurses_h" >&6; } | |
4272 | + | |
4273 | +fi | |
4274 | +if test "x$ac_cv_header_ncurses_h" = x""yes; then | |
4275 | + NCURSES_OK=1; cat >>confdefs.h <<\_ACEOF | |
4276 | +@%:@define HAVE_NCURSES_H 1 | |
4277 | +_ACEOF | |
4278 | + | |
4279 | +fi | |
4280 | + | |
4281 | + | |
4282 | +if test "${ac_cv_header_ncurses_ncurses_h+set}" = set; then | |
4283 | + { $as_echo "$as_me:$LINENO: checking for ncurses/ncurses.h" >&5 | |
4284 | +$as_echo_n "checking for ncurses/ncurses.h... " >&6; } | |
4285 | +if test "${ac_cv_header_ncurses_ncurses_h+set}" = set; then | |
4286 | + $as_echo_n "(cached) " >&6 | |
4287 | +fi | |
4288 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_ncurses_h" >&5 | |
4289 | +$as_echo "$ac_cv_header_ncurses_ncurses_h" >&6; } | |
4290 | +else | |
4291 | + # Is the header compilable? | |
4292 | +{ $as_echo "$as_me:$LINENO: checking ncurses/ncurses.h usability" >&5 | |
4293 | +$as_echo_n "checking ncurses/ncurses.h usability... " >&6; } | |
4294 | +cat >conftest.$ac_ext <<_ACEOF | |
4295 | +/* confdefs.h. */ | |
4296 | +_ACEOF | |
4297 | +cat confdefs.h >>conftest.$ac_ext | |
4298 | +cat >>conftest.$ac_ext <<_ACEOF | |
4299 | +/* end confdefs.h. */ | |
4300 | +$ac_includes_default | |
4301 | +@%:@include <ncurses/ncurses.h> | |
4302 | +_ACEOF | |
4303 | +rm -f conftest.$ac_objext | |
4304 | +if { (ac_try="$ac_compile" | |
4305 | +case "(($ac_try" in | |
4306 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4307 | + *) ac_try_echo=$ac_try;; | |
4308 | +esac | |
4309 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4310 | +$as_echo "$ac_try_echo") >&5 | |
4311 | + (eval "$ac_compile") 2>conftest.er1 | |
4312 | + ac_status=$? | |
4313 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4314 | + rm -f conftest.er1 | |
4315 | + cat conftest.err >&5 | |
4316 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4317 | + (exit $ac_status); } && { | |
4318 | + test -z "$ac_c_werror_flag" || | |
4319 | + test ! -s conftest.err | |
4320 | + } && test -s conftest.$ac_objext; then | |
4321 | + ac_header_compiler=yes | |
4322 | +else | |
4323 | + $as_echo "$as_me: failed program was:" >&5 | |
4324 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4325 | + | |
4326 | + ac_header_compiler=no | |
4327 | +fi | |
4328 | + | |
4329 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4330 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4331 | +$as_echo "$ac_header_compiler" >&6; } | |
4332 | + | |
4333 | +# Is the header present? | |
4334 | +{ $as_echo "$as_me:$LINENO: checking ncurses/ncurses.h presence" >&5 | |
4335 | +$as_echo_n "checking ncurses/ncurses.h presence... " >&6; } | |
4336 | +cat >conftest.$ac_ext <<_ACEOF | |
4337 | +/* confdefs.h. */ | |
4338 | +_ACEOF | |
4339 | +cat confdefs.h >>conftest.$ac_ext | |
4340 | +cat >>conftest.$ac_ext <<_ACEOF | |
4341 | +/* end confdefs.h. */ | |
4342 | +@%:@include <ncurses/ncurses.h> | |
4343 | +_ACEOF | |
4344 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4345 | +case "(($ac_try" in | |
4346 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4347 | + *) ac_try_echo=$ac_try;; | |
4348 | +esac | |
4349 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4350 | +$as_echo "$ac_try_echo") >&5 | |
4351 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4352 | + ac_status=$? | |
4353 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4354 | + rm -f conftest.er1 | |
4355 | + cat conftest.err >&5 | |
4356 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4357 | + (exit $ac_status); } >/dev/null && { | |
4358 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4359 | + test ! -s conftest.err | |
4360 | + }; then | |
4361 | + ac_header_preproc=yes | |
4362 | +else | |
4363 | + $as_echo "$as_me: failed program was:" >&5 | |
4364 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4365 | + | |
4366 | + ac_header_preproc=no | |
4367 | +fi | |
4368 | + | |
4369 | +rm -f conftest.err conftest.$ac_ext | |
4370 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4371 | +$as_echo "$ac_header_preproc" >&6; } | |
4372 | + | |
4373 | +# So? What about this header? | |
4374 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4375 | + yes:no: ) | |
4376 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4377 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4378 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: proceeding with the compiler's result" >&5 | |
4379 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: proceeding with the compiler's result" >&2;} | |
4380 | + ac_header_preproc=yes | |
4381 | + ;; | |
4382 | + no:yes:* ) | |
4383 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: present but cannot be compiled" >&5 | |
4384 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: present but cannot be compiled" >&2;} | |
4385 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: check for missing prerequisite headers?" >&5 | |
4386 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: check for missing prerequisite headers?" >&2;} | |
4387 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: see the Autoconf documentation" >&5 | |
4388 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: see the Autoconf documentation" >&2;} | |
4389 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4390 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4391 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: proceeding with the preprocessor's result" >&5 | |
4392 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: proceeding with the preprocessor's result" >&2;} | |
4393 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: in the future, the compiler will take precedence" >&5 | |
4394 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: in the future, the compiler will take precedence" >&2;} | |
4395 | + | |
4396 | + ;; | |
4397 | +esac | |
4398 | +{ $as_echo "$as_me:$LINENO: checking for ncurses/ncurses.h" >&5 | |
4399 | +$as_echo_n "checking for ncurses/ncurses.h... " >&6; } | |
4400 | +if test "${ac_cv_header_ncurses_ncurses_h+set}" = set; then | |
4401 | + $as_echo_n "(cached) " >&6 | |
4402 | +else | |
4403 | + ac_cv_header_ncurses_ncurses_h=$ac_header_preproc | |
4404 | +fi | |
4405 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_ncurses_h" >&5 | |
4406 | +$as_echo "$ac_cv_header_ncurses_ncurses_h" >&6; } | |
4407 | + | |
4408 | +fi | |
4409 | +if test "x$ac_cv_header_ncurses_ncurses_h" = x""yes; then | |
4410 | + NCURSES_OK=1; cat >>confdefs.h <<\_ACEOF | |
4411 | +@%:@define HAVE_NCURSES_NCURSES_H 1 | |
4412 | +_ACEOF | |
4413 | + | |
4414 | +fi | |
4415 | + | |
4416 | + | |
4417 | +{ $as_echo "$as_me:$LINENO: checking for main in -lcursesw" >&5 | |
4418 | +$as_echo_n "checking for main in -lcursesw... " >&6; } | |
4419 | +if test "${ac_cv_lib_cursesw_main+set}" = set; then | |
4420 | + $as_echo_n "(cached) " >&6 | |
4421 | +else | |
4422 | + ac_check_lib_save_LIBS=$LIBS | |
4423 | +LIBS="-lcursesw $LIBS" | |
4424 | +cat >conftest.$ac_ext <<_ACEOF | |
4425 | +/* confdefs.h. */ | |
4426 | +_ACEOF | |
4427 | +cat confdefs.h >>conftest.$ac_ext | |
4428 | +cat >>conftest.$ac_ext <<_ACEOF | |
4429 | +/* end confdefs.h. */ | |
4430 | + | |
4431 | + | |
4432 | +int | |
4433 | +main () | |
4434 | +{ | |
4435 | +return main (); | |
4436 | + ; | |
4437 | + return 0; | |
4438 | +} | |
4439 | +_ACEOF | |
4440 | +rm -f conftest.$ac_objext conftest$ac_exeext | |
4441 | +if { (ac_try="$ac_link" | |
4442 | +case "(($ac_try" in | |
4443 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4444 | + *) ac_try_echo=$ac_try;; | |
4445 | +esac | |
4446 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4447 | +$as_echo "$ac_try_echo") >&5 | |
4448 | + (eval "$ac_link") 2>conftest.er1 | |
4449 | + ac_status=$? | |
4450 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4451 | + rm -f conftest.er1 | |
4452 | + cat conftest.err >&5 | |
4453 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4454 | + (exit $ac_status); } && { | |
4455 | + test -z "$ac_c_werror_flag" || | |
4456 | + test ! -s conftest.err | |
4457 | + } && test -s conftest$ac_exeext && { | |
4458 | + test "$cross_compiling" = yes || | |
4459 | + $as_test_x conftest$ac_exeext | |
4460 | + }; then | |
4461 | + ac_cv_lib_cursesw_main=yes | |
4462 | +else | |
4463 | + $as_echo "$as_me: failed program was:" >&5 | |
4464 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4465 | + | |
4466 | + ac_cv_lib_cursesw_main=no | |
4467 | +fi | |
4468 | + | |
4469 | +rm -rf conftest.dSYM | |
4470 | +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4471 | + conftest$ac_exeext conftest.$ac_ext | |
4472 | +LIBS=$ac_check_lib_save_LIBS | |
4473 | +fi | |
4474 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cursesw_main" >&5 | |
4475 | +$as_echo "$ac_cv_lib_cursesw_main" >&6; } | |
4476 | +if test "x$ac_cv_lib_cursesw_main" = x""yes; then | |
4477 | + LIBS="$LIBS -lcursesw"; NCURSES_OK2=1 | |
4478 | +fi | |
4479 | +ac_cv_lib_cursesw=ac_cv_lib_cursesw_main | |
4480 | + | |
4481 | +{ $as_echo "$as_me:$LINENO: checking for main in -lncursesw" >&5 | |
4482 | +$as_echo_n "checking for main in -lncursesw... " >&6; } | |
4483 | +if test "${ac_cv_lib_ncursesw_main+set}" = set; then | |
4484 | + $as_echo_n "(cached) " >&6 | |
4485 | +else | |
4486 | + ac_check_lib_save_LIBS=$LIBS | |
4487 | +LIBS="-lncursesw $LIBS" | |
4488 | +cat >conftest.$ac_ext <<_ACEOF | |
4489 | +/* confdefs.h. */ | |
4490 | +_ACEOF | |
4491 | +cat confdefs.h >>conftest.$ac_ext | |
4492 | +cat >>conftest.$ac_ext <<_ACEOF | |
4493 | +/* end confdefs.h. */ | |
4494 | + | |
4495 | + | |
4496 | +int | |
4497 | +main () | |
4498 | +{ | |
4499 | +return main (); | |
4500 | + ; | |
4501 | + return 0; | |
4502 | +} | |
4503 | +_ACEOF | |
4504 | +rm -f conftest.$ac_objext conftest$ac_exeext | |
4505 | +if { (ac_try="$ac_link" | |
4506 | +case "(($ac_try" in | |
4507 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4508 | + *) ac_try_echo=$ac_try;; | |
4509 | +esac | |
4510 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4511 | +$as_echo "$ac_try_echo") >&5 | |
4512 | + (eval "$ac_link") 2>conftest.er1 | |
4513 | + ac_status=$? | |
4514 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4515 | + rm -f conftest.er1 | |
4516 | + cat conftest.err >&5 | |
4517 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4518 | + (exit $ac_status); } && { | |
4519 | + test -z "$ac_c_werror_flag" || | |
4520 | + test ! -s conftest.err | |
4521 | + } && test -s conftest$ac_exeext && { | |
4522 | + test "$cross_compiling" = yes || | |
4523 | + $as_test_x conftest$ac_exeext | |
4524 | + }; then | |
4525 | + ac_cv_lib_ncursesw_main=yes | |
4526 | +else | |
4527 | + $as_echo "$as_me: failed program was:" >&5 | |
4528 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4529 | + | |
4530 | + ac_cv_lib_ncursesw_main=no | |
4531 | +fi | |
4532 | + | |
4533 | +rm -rf conftest.dSYM | |
4534 | +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4535 | + conftest$ac_exeext conftest.$ac_ext | |
4536 | +LIBS=$ac_check_lib_save_LIBS | |
4537 | +fi | |
4538 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_main" >&5 | |
4539 | +$as_echo "$ac_cv_lib_ncursesw_main" >&6; } | |
4540 | +if test "x$ac_cv_lib_ncursesw_main" = x""yes; then | |
4541 | + LIBS="$LIBS -lncursesw"; NCURSES_OK2=1 | |
4542 | +fi | |
4543 | +ac_cv_lib_ncursesw=ac_cv_lib_ncursesw_main | |
4544 | + | |
4545 | + | |
4546 | +if test -z "$NCURSES_OK2" | |
4547 | +then | |
4548 | + { $as_echo "$as_me:$LINENO: checking for main in -lcurses" >&5 | |
4549 | +$as_echo_n "checking for main in -lcurses... " >&6; } | |
4550 | +if test "${ac_cv_lib_curses_main+set}" = set; then | |
4551 | + $as_echo_n "(cached) " >&6 | |
4552 | +else | |
4553 | + ac_check_lib_save_LIBS=$LIBS | |
4554 | +LIBS="-lcurses $LIBS" | |
4555 | +cat >conftest.$ac_ext <<_ACEOF | |
4556 | +/* confdefs.h. */ | |
4557 | +_ACEOF | |
4558 | +cat confdefs.h >>conftest.$ac_ext | |
4559 | +cat >>conftest.$ac_ext <<_ACEOF | |
4560 | +/* end confdefs.h. */ | |
4561 | + | |
4562 | + | |
4563 | +int | |
4564 | +main () | |
4565 | +{ | |
4566 | +return main (); | |
4567 | + ; | |
4568 | + return 0; | |
4569 | +} | |
4570 | +_ACEOF | |
4571 | +rm -f conftest.$ac_objext conftest$ac_exeext | |
4572 | +if { (ac_try="$ac_link" | |
4573 | +case "(($ac_try" in | |
4574 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4575 | + *) ac_try_echo=$ac_try;; | |
4576 | +esac | |
4577 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4578 | +$as_echo "$ac_try_echo") >&5 | |
4579 | + (eval "$ac_link") 2>conftest.er1 | |
4580 | + ac_status=$? | |
4581 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4582 | + rm -f conftest.er1 | |
4583 | + cat conftest.err >&5 | |
4584 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4585 | + (exit $ac_status); } && { | |
4586 | + test -z "$ac_c_werror_flag" || | |
4587 | + test ! -s conftest.err | |
4588 | + } && test -s conftest$ac_exeext && { | |
4589 | + test "$cross_compiling" = yes || | |
4590 | + $as_test_x conftest$ac_exeext | |
4591 | + }; then | |
4592 | + ac_cv_lib_curses_main=yes | |
4593 | +else | |
4594 | + $as_echo "$as_me: failed program was:" >&5 | |
4595 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4596 | + | |
4597 | + ac_cv_lib_curses_main=no | |
4598 | +fi | |
4599 | + | |
4600 | +rm -rf conftest.dSYM | |
4601 | +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4602 | + conftest$ac_exeext conftest.$ac_ext | |
4603 | +LIBS=$ac_check_lib_save_LIBS | |
4604 | +fi | |
4605 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5 | |
4606 | +$as_echo "$ac_cv_lib_curses_main" >&6; } | |
4607 | +if test "x$ac_cv_lib_curses_main" = x""yes; then | |
4608 | + LIBS="$LIBS -lcurses"; NCURSES_OK2=1 | |
4609 | +fi | |
4610 | +ac_cv_lib_curses=ac_cv_lib_curses_main | |
4611 | + | |
4612 | + { $as_echo "$as_me:$LINENO: checking for main in -lncurses" >&5 | |
4613 | +$as_echo_n "checking for main in -lncurses... " >&6; } | |
4614 | +if test "${ac_cv_lib_ncurses_main+set}" = set; then | |
4615 | + $as_echo_n "(cached) " >&6 | |
4616 | +else | |
4617 | + ac_check_lib_save_LIBS=$LIBS | |
4618 | +LIBS="-lncurses $LIBS" | |
4619 | +cat >conftest.$ac_ext <<_ACEOF | |
4620 | +/* confdefs.h. */ | |
4621 | +_ACEOF | |
4622 | +cat confdefs.h >>conftest.$ac_ext | |
4623 | +cat >>conftest.$ac_ext <<_ACEOF | |
4624 | +/* end confdefs.h. */ | |
4625 | + | |
4626 | + | |
4627 | +int | |
4628 | +main () | |
4629 | +{ | |
4630 | +return main (); | |
4631 | + ; | |
4632 | + return 0; | |
4633 | +} | |
4634 | +_ACEOF | |
4635 | +rm -f conftest.$ac_objext conftest$ac_exeext | |
4636 | +if { (ac_try="$ac_link" | |
4637 | +case "(($ac_try" in | |
4638 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4639 | + *) ac_try_echo=$ac_try;; | |
4640 | +esac | |
4641 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4642 | +$as_echo "$ac_try_echo") >&5 | |
4643 | + (eval "$ac_link") 2>conftest.er1 | |
4644 | + ac_status=$? | |
4645 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4646 | + rm -f conftest.er1 | |
4647 | + cat conftest.err >&5 | |
4648 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4649 | + (exit $ac_status); } && { | |
4650 | + test -z "$ac_c_werror_flag" || | |
4651 | + test ! -s conftest.err | |
4652 | + } && test -s conftest$ac_exeext && { | |
4653 | + test "$cross_compiling" = yes || | |
4654 | + $as_test_x conftest$ac_exeext | |
4655 | + }; then | |
4656 | + ac_cv_lib_ncurses_main=yes | |
4657 | +else | |
4658 | + $as_echo "$as_me: failed program was:" >&5 | |
4659 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4660 | + | |
4661 | + ac_cv_lib_ncurses_main=no | |
4662 | +fi | |
4663 | + | |
4664 | +rm -rf conftest.dSYM | |
4665 | +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4666 | + conftest$ac_exeext conftest.$ac_ext | |
4667 | +LIBS=$ac_check_lib_save_LIBS | |
4668 | +fi | |
4669 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5 | |
4670 | +$as_echo "$ac_cv_lib_ncurses_main" >&6; } | |
4671 | +if test "x$ac_cv_lib_ncurses_main" = x""yes; then | |
4672 | + LIBS="$LIBS -lncurses"; NCURSES_OK2=1 | |
4673 | +fi | |
4674 | +ac_cv_lib_ncurses=ac_cv_lib_ncurses_main | |
4675 | + | |
4676 | +fi | |
4677 | + | |
4678 | +if test -z "$NCURSES_OK" | |
4679 | +then | |
4680 | + exit | |
4681 | +fi | |
4682 | + | |
4683 | +if test -z "$NCURSES_OK2" | |
4684 | +then | |
4685 | + exit | |
4686 | +fi | |
4687 | + | |
4688 | + | |
4689 | +########################################################################### | |
4690 | +# math library | |
4691 | +########################################################################### | |
4692 | +if test "${ac_cv_header_math_h+set}" = set; then | |
4693 | + { $as_echo "$as_me:$LINENO: checking for math.h" >&5 | |
4694 | +$as_echo_n "checking for math.h... " >&6; } | |
4695 | +if test "${ac_cv_header_math_h+set}" = set; then | |
4696 | + $as_echo_n "(cached) " >&6 | |
4697 | +fi | |
4698 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_math_h" >&5 | |
4699 | +$as_echo "$ac_cv_header_math_h" >&6; } | |
4700 | +else | |
4701 | + # Is the header compilable? | |
4702 | +{ $as_echo "$as_me:$LINENO: checking math.h usability" >&5 | |
4703 | +$as_echo_n "checking math.h usability... " >&6; } | |
4704 | +cat >conftest.$ac_ext <<_ACEOF | |
4705 | +/* confdefs.h. */ | |
4706 | +_ACEOF | |
4707 | +cat confdefs.h >>conftest.$ac_ext | |
4708 | +cat >>conftest.$ac_ext <<_ACEOF | |
4709 | +/* end confdefs.h. */ | |
4710 | +$ac_includes_default | |
4711 | +@%:@include <math.h> | |
4712 | +_ACEOF | |
4713 | +rm -f conftest.$ac_objext | |
4714 | +if { (ac_try="$ac_compile" | |
4715 | +case "(($ac_try" in | |
4716 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4717 | + *) ac_try_echo=$ac_try;; | |
4718 | +esac | |
4719 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4720 | +$as_echo "$ac_try_echo") >&5 | |
4721 | + (eval "$ac_compile") 2>conftest.er1 | |
4722 | + ac_status=$? | |
4723 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4724 | + rm -f conftest.er1 | |
4725 | + cat conftest.err >&5 | |
4726 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4727 | + (exit $ac_status); } && { | |
4728 | + test -z "$ac_c_werror_flag" || | |
4729 | + test ! -s conftest.err | |
4730 | + } && test -s conftest.$ac_objext; then | |
4731 | + ac_header_compiler=yes | |
4732 | +else | |
4733 | + $as_echo "$as_me: failed program was:" >&5 | |
4734 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4735 | + | |
4736 | + ac_header_compiler=no | |
4737 | +fi | |
4738 | + | |
4739 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4740 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4741 | +$as_echo "$ac_header_compiler" >&6; } | |
4742 | + | |
4743 | +# Is the header present? | |
4744 | +{ $as_echo "$as_me:$LINENO: checking math.h presence" >&5 | |
4745 | +$as_echo_n "checking math.h presence... " >&6; } | |
4746 | +cat >conftest.$ac_ext <<_ACEOF | |
4747 | +/* confdefs.h. */ | |
4748 | +_ACEOF | |
4749 | +cat confdefs.h >>conftest.$ac_ext | |
4750 | +cat >>conftest.$ac_ext <<_ACEOF | |
4751 | +/* end confdefs.h. */ | |
4752 | +@%:@include <math.h> | |
4753 | +_ACEOF | |
4754 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4755 | +case "(($ac_try" in | |
4756 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4757 | + *) ac_try_echo=$ac_try;; | |
4758 | +esac | |
4759 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4760 | +$as_echo "$ac_try_echo") >&5 | |
4761 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4762 | + ac_status=$? | |
4763 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4764 | + rm -f conftest.er1 | |
4765 | + cat conftest.err >&5 | |
4766 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4767 | + (exit $ac_status); } >/dev/null && { | |
4768 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4769 | + test ! -s conftest.err | |
4770 | + }; then | |
4771 | + ac_header_preproc=yes | |
4772 | +else | |
4773 | + $as_echo "$as_me: failed program was:" >&5 | |
4774 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4775 | + | |
4776 | + ac_header_preproc=no | |
4777 | +fi | |
4778 | + | |
4779 | +rm -f conftest.err conftest.$ac_ext | |
4780 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4781 | +$as_echo "$ac_header_preproc" >&6; } | |
4782 | + | |
4783 | +# So? What about this header? | |
4784 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4785 | + yes:no: ) | |
4786 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4787 | +$as_echo "$as_me: WARNING: math.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4788 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: proceeding with the compiler's result" >&5 | |
4789 | +$as_echo "$as_me: WARNING: math.h: proceeding with the compiler's result" >&2;} | |
4790 | + ac_header_preproc=yes | |
4791 | + ;; | |
4792 | + no:yes:* ) | |
4793 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: present but cannot be compiled" >&5 | |
4794 | +$as_echo "$as_me: WARNING: math.h: present but cannot be compiled" >&2;} | |
4795 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: check for missing prerequisite headers?" >&5 | |
4796 | +$as_echo "$as_me: WARNING: math.h: check for missing prerequisite headers?" >&2;} | |
4797 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: see the Autoconf documentation" >&5 | |
4798 | +$as_echo "$as_me: WARNING: math.h: see the Autoconf documentation" >&2;} | |
4799 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4800 | +$as_echo "$as_me: WARNING: math.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4801 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: proceeding with the preprocessor's result" >&5 | |
4802 | +$as_echo "$as_me: WARNING: math.h: proceeding with the preprocessor's result" >&2;} | |
4803 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: in the future, the compiler will take precedence" >&5 | |
4804 | +$as_echo "$as_me: WARNING: math.h: in the future, the compiler will take precedence" >&2;} | |
4805 | + | |
4806 | + ;; | |
4807 | +esac | |
4808 | +{ $as_echo "$as_me:$LINENO: checking for math.h" >&5 | |
4809 | +$as_echo_n "checking for math.h... " >&6; } | |
4810 | +if test "${ac_cv_header_math_h+set}" = set; then | |
4811 | + $as_echo_n "(cached) " >&6 | |
4812 | +else | |
4813 | + ac_cv_header_math_h=$ac_header_preproc | |
4814 | +fi | |
4815 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_math_h" >&5 | |
4816 | +$as_echo "$ac_cv_header_math_h" >&6; } | |
4817 | + | |
4818 | +fi | |
4819 | +if test "x$ac_cv_header_math_h" = x""yes; then | |
4820 | + LIBS="$LIBS -lm"; cat >>confdefs.h <<\_ACEOF | |
4821 | +@%:@define HAVE_MATH_H 1 | |
4822 | +_ACEOF | |
4823 | + | |
4824 | +else | |
4825 | + exit | |
4826 | +fi | |
4827 | + | |
4828 | + | |
4829 | + | |
4830 | +########################################################################## | |
4831 | +# oniguruma | |
4832 | +########################################################################### | |
4833 | +if test "${ac_cv_header_oniguruma_h+set}" = set; then | |
4834 | + { $as_echo "$as_me:$LINENO: checking for oniguruma.h" >&5 | |
4835 | +$as_echo_n "checking for oniguruma.h... " >&6; } | |
4836 | +if test "${ac_cv_header_oniguruma_h+set}" = set; then | |
4837 | + $as_echo_n "(cached) " >&6 | |
4838 | +fi | |
4839 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_oniguruma_h" >&5 | |
4840 | +$as_echo "$ac_cv_header_oniguruma_h" >&6; } | |
4841 | +else | |
4842 | + # Is the header compilable? | |
4843 | +{ $as_echo "$as_me:$LINENO: checking oniguruma.h usability" >&5 | |
4844 | +$as_echo_n "checking oniguruma.h usability... " >&6; } | |
4845 | +cat >conftest.$ac_ext <<_ACEOF | |
4846 | +/* confdefs.h. */ | |
4847 | +_ACEOF | |
4848 | +cat confdefs.h >>conftest.$ac_ext | |
4849 | +cat >>conftest.$ac_ext <<_ACEOF | |
4850 | +/* end confdefs.h. */ | |
4851 | +$ac_includes_default | |
4852 | +@%:@include <oniguruma.h> | |
4853 | +_ACEOF | |
4854 | +rm -f conftest.$ac_objext | |
4855 | +if { (ac_try="$ac_compile" | |
4856 | +case "(($ac_try" in | |
4857 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4858 | + *) ac_try_echo=$ac_try;; | |
4859 | +esac | |
4860 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4861 | +$as_echo "$ac_try_echo") >&5 | |
4862 | + (eval "$ac_compile") 2>conftest.er1 | |
4863 | + ac_status=$? | |
4864 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4865 | + rm -f conftest.er1 | |
4866 | + cat conftest.err >&5 | |
4867 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4868 | + (exit $ac_status); } && { | |
4869 | + test -z "$ac_c_werror_flag" || | |
4870 | + test ! -s conftest.err | |
4871 | + } && test -s conftest.$ac_objext; then | |
4872 | + ac_header_compiler=yes | |
4873 | +else | |
4874 | + $as_echo "$as_me: failed program was:" >&5 | |
4875 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4876 | + | |
4877 | + ac_header_compiler=no | |
4878 | +fi | |
4879 | + | |
4880 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4881 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4882 | +$as_echo "$ac_header_compiler" >&6; } | |
4883 | + | |
4884 | +# Is the header present? | |
4885 | +{ $as_echo "$as_me:$LINENO: checking oniguruma.h presence" >&5 | |
4886 | +$as_echo_n "checking oniguruma.h presence... " >&6; } | |
4887 | +cat >conftest.$ac_ext <<_ACEOF | |
4888 | +/* confdefs.h. */ | |
4889 | +_ACEOF | |
4890 | +cat confdefs.h >>conftest.$ac_ext | |
4891 | +cat >>conftest.$ac_ext <<_ACEOF | |
4892 | +/* end confdefs.h. */ | |
4893 | +@%:@include <oniguruma.h> | |
4894 | +_ACEOF | |
4895 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4896 | +case "(($ac_try" in | |
4897 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4898 | + *) ac_try_echo=$ac_try;; | |
4899 | +esac | |
4900 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4901 | +$as_echo "$ac_try_echo") >&5 | |
4902 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4903 | + ac_status=$? | |
4904 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4905 | + rm -f conftest.er1 | |
4906 | + cat conftest.err >&5 | |
4907 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4908 | + (exit $ac_status); } >/dev/null && { | |
4909 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4910 | + test ! -s conftest.err | |
4911 | + }; then | |
4912 | + ac_header_preproc=yes | |
4913 | +else | |
4914 | + $as_echo "$as_me: failed program was:" >&5 | |
4915 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4916 | + | |
4917 | + ac_header_preproc=no | |
4918 | +fi | |
4919 | + | |
4920 | +rm -f conftest.err conftest.$ac_ext | |
4921 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4922 | +$as_echo "$ac_header_preproc" >&6; } | |
4923 | + | |
4924 | +# So? What about this header? | |
4925 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4926 | + yes:no: ) | |
4927 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4928 | +$as_echo "$as_me: WARNING: oniguruma.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4929 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: proceeding with the compiler's result" >&5 | |
4930 | +$as_echo "$as_me: WARNING: oniguruma.h: proceeding with the compiler's result" >&2;} | |
4931 | + ac_header_preproc=yes | |
4932 | + ;; | |
4933 | + no:yes:* ) | |
4934 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: present but cannot be compiled" >&5 | |
4935 | +$as_echo "$as_me: WARNING: oniguruma.h: present but cannot be compiled" >&2;} | |
4936 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: check for missing prerequisite headers?" >&5 | |
4937 | +$as_echo "$as_me: WARNING: oniguruma.h: check for missing prerequisite headers?" >&2;} | |
4938 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: see the Autoconf documentation" >&5 | |
4939 | +$as_echo "$as_me: WARNING: oniguruma.h: see the Autoconf documentation" >&2;} | |
4940 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4941 | +$as_echo "$as_me: WARNING: oniguruma.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4942 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: proceeding with the preprocessor's result" >&5 | |
4943 | +$as_echo "$as_me: WARNING: oniguruma.h: proceeding with the preprocessor's result" >&2;} | |
4944 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: in the future, the compiler will take precedence" >&5 | |
4945 | +$as_echo "$as_me: WARNING: oniguruma.h: in the future, the compiler will take precedence" >&2;} | |
4946 | + | |
4947 | + ;; | |
4948 | +esac | |
4949 | +{ $as_echo "$as_me:$LINENO: checking for oniguruma.h" >&5 | |
4950 | +$as_echo_n "checking for oniguruma.h... " >&6; } | |
4951 | +if test "${ac_cv_header_oniguruma_h+set}" = set; then | |
4952 | + $as_echo_n "(cached) " >&6 | |
4953 | +else | |
4954 | + ac_cv_header_oniguruma_h=$ac_header_preproc | |
4955 | +fi | |
4956 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_oniguruma_h" >&5 | |
4957 | +$as_echo "$ac_cv_header_oniguruma_h" >&6; } | |
4958 | + | |
4959 | +fi | |
4960 | +if test "x$ac_cv_header_oniguruma_h" = x""yes; then | |
4961 | + LIBS="$LIBS -lonig"; cat >>confdefs.h <<\_ACEOF | |
4962 | +@%:@define HAVE_ONIGURUMA_H 1 | |
4963 | +_ACEOF | |
4964 | + | |
4965 | +else | |
4966 | + exit | |
4967 | +fi | |
4968 | + | |
4969 | + | |
4970 | + | |
4971 | +#################################################################### | |
4972 | +# iconv settings | |
4973 | +#################################################################### | |
4974 | +if test "${ac_cv_header_iconv_h+set}" = set; then | |
4975 | + { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5 | |
4976 | +$as_echo_n "checking for iconv.h... " >&6; } | |
4977 | +if test "${ac_cv_header_iconv_h+set}" = set; then | |
4978 | + $as_echo_n "(cached) " >&6 | |
4979 | +fi | |
4980 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5 | |
4981 | +$as_echo "$ac_cv_header_iconv_h" >&6; } | |
4982 | +else | |
4983 | + # Is the header compilable? | |
4984 | +{ $as_echo "$as_me:$LINENO: checking iconv.h usability" >&5 | |
4985 | +$as_echo_n "checking iconv.h usability... " >&6; } | |
4986 | +cat >conftest.$ac_ext <<_ACEOF | |
4987 | +/* confdefs.h. */ | |
4988 | +_ACEOF | |
4989 | +cat confdefs.h >>conftest.$ac_ext | |
4990 | +cat >>conftest.$ac_ext <<_ACEOF | |
4991 | +/* end confdefs.h. */ | |
4992 | +$ac_includes_default | |
4993 | +@%:@include <iconv.h> | |
4994 | +_ACEOF | |
4995 | +rm -f conftest.$ac_objext | |
4996 | +if { (ac_try="$ac_compile" | |
4997 | +case "(($ac_try" in | |
4998 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4999 | + *) ac_try_echo=$ac_try;; | |
5000 | +esac | |
5001 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5002 | +$as_echo "$ac_try_echo") >&5 | |
5003 | + (eval "$ac_compile") 2>conftest.er1 | |
5004 | + ac_status=$? | |
5005 | + grep -v '^ *+' conftest.er1 >conftest.err | |
5006 | + rm -f conftest.er1 | |
5007 | + cat conftest.err >&5 | |
5008 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5009 | + (exit $ac_status); } && { | |
5010 | + test -z "$ac_c_werror_flag" || | |
5011 | + test ! -s conftest.err | |
5012 | + } && test -s conftest.$ac_objext; then | |
5013 | + ac_header_compiler=yes | |
5014 | +else | |
5015 | + $as_echo "$as_me: failed program was:" >&5 | |
5016 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
5017 | + | |
5018 | + ac_header_compiler=no | |
5019 | +fi | |
5020 | + | |
5021 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5022 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5023 | +$as_echo "$ac_header_compiler" >&6; } | |
5024 | + | |
5025 | +# Is the header present? | |
5026 | +{ $as_echo "$as_me:$LINENO: checking iconv.h presence" >&5 | |
5027 | +$as_echo_n "checking iconv.h presence... " >&6; } | |
5028 | +cat >conftest.$ac_ext <<_ACEOF | |
5029 | +/* confdefs.h. */ | |
5030 | +_ACEOF | |
5031 | +cat confdefs.h >>conftest.$ac_ext | |
5032 | +cat >>conftest.$ac_ext <<_ACEOF | |
5033 | +/* end confdefs.h. */ | |
5034 | +@%:@include <iconv.h> | |
5035 | +_ACEOF | |
5036 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5037 | +case "(($ac_try" in | |
5038 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5039 | + *) ac_try_echo=$ac_try;; | |
5040 | +esac | |
5041 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5042 | +$as_echo "$ac_try_echo") >&5 | |
5043 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5044 | + ac_status=$? | |
5045 | + grep -v '^ *+' conftest.er1 >conftest.err | |
5046 | + rm -f conftest.er1 | |
5047 | + cat conftest.err >&5 | |
5048 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5049 | + (exit $ac_status); } >/dev/null && { | |
5050 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5051 | + test ! -s conftest.err | |
5052 | + }; then | |
5053 | + ac_header_preproc=yes | |
5054 | +else | |
5055 | + $as_echo "$as_me: failed program was:" >&5 | |
5056 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
5057 | + | |
5058 | + ac_header_preproc=no | |
5059 | +fi | |
5060 | + | |
5061 | +rm -f conftest.err conftest.$ac_ext | |
5062 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5063 | +$as_echo "$ac_header_preproc" >&6; } | |
5064 | + | |
5065 | +# So? What about this header? | |
5066 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5067 | + yes:no: ) | |
5068 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5069 | +$as_echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5070 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5 | |
5071 | +$as_echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;} | |
5072 | + ac_header_preproc=yes | |
5073 | + ;; | |
5074 | + no:yes:* ) | |
5075 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5 | |
5076 | +$as_echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;} | |
5077 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5 | |
5078 | +$as_echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;} | |
5079 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5 | |
5080 | +$as_echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;} | |
5081 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5082 | +$as_echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5083 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5 | |
5084 | +$as_echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;} | |
5085 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5 | |
5086 | +$as_echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;} | |
5087 | + | |
5088 | + ;; | |
5089 | +esac | |
5090 | +{ $as_echo "$as_me:$LINENO: checking for iconv.h" >&5 | |
5091 | +$as_echo_n "checking for iconv.h... " >&6; } | |
5092 | +if test "${ac_cv_header_iconv_h+set}" = set; then | |
5093 | + $as_echo_n "(cached) " >&6 | |
5094 | +else | |
5095 | + ac_cv_header_iconv_h=$ac_header_preproc | |
5096 | +fi | |
5097 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5 | |
5098 | +$as_echo "$ac_cv_header_iconv_h" >&6; } | |
5099 | + | |
5100 | +fi | |
5101 | +if test "x$ac_cv_header_iconv_h" = x""yes; then | |
5102 | + cat >>confdefs.h <<\_ACEOF | |
5103 | +@%:@define HAVE_ICONV_H 1 | |
5104 | +_ACEOF | |
5105 | + | |
5106 | +else | |
5107 | + exit | |
5108 | +fi | |
5109 | + | |
5110 | + | |
5111 | + | |
5112 | +if test "$OS" = CYGWIN|| test "$OS" = DARWIN || test "$OS" = FREEBSD | |
5113 | +then | |
5114 | + LIBS="$LIBS -liconv" | |
5115 | +fi | |
5116 | + | |
5117 | +########################################################################## | |
5118 | +# migemo | |
5119 | +########################################################################### | |
5120 | +if test $ENABLE_MIGEMO = 1 | |
5121 | +then | |
5122 | + if test "${ac_cv_header_migemo_h+set}" = set; then | |
5123 | + { $as_echo "$as_me:$LINENO: checking for migemo.h" >&5 | |
5124 | +$as_echo_n "checking for migemo.h... " >&6; } | |
5125 | +if test "${ac_cv_header_migemo_h+set}" = set; then | |
5126 | + $as_echo_n "(cached) " >&6 | |
5127 | +fi | |
5128 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_migemo_h" >&5 | |
5129 | +$as_echo "$ac_cv_header_migemo_h" >&6; } | |
5130 | +else | |
5131 | + # Is the header compilable? | |
5132 | +{ $as_echo "$as_me:$LINENO: checking migemo.h usability" >&5 | |
5133 | +$as_echo_n "checking migemo.h usability... " >&6; } | |
5134 | +cat >conftest.$ac_ext <<_ACEOF | |
5135 | +/* confdefs.h. */ | |
5136 | +_ACEOF | |
5137 | +cat confdefs.h >>conftest.$ac_ext | |
5138 | +cat >>conftest.$ac_ext <<_ACEOF | |
5139 | +/* end confdefs.h. */ | |
5140 | +$ac_includes_default | |
5141 | +@%:@include <migemo.h> | |
5142 | +_ACEOF | |
5143 | +rm -f conftest.$ac_objext | |
5144 | +if { (ac_try="$ac_compile" | |
5145 | +case "(($ac_try" in | |
5146 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5147 | + *) ac_try_echo=$ac_try;; | |
5148 | +esac | |
5149 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5150 | +$as_echo "$ac_try_echo") >&5 | |
5151 | + (eval "$ac_compile") 2>conftest.er1 | |
5152 | + ac_status=$? | |
5153 | + grep -v '^ *+' conftest.er1 >conftest.err | |
5154 | + rm -f conftest.er1 | |
5155 | + cat conftest.err >&5 | |
5156 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5157 | + (exit $ac_status); } && { | |
5158 | + test -z "$ac_c_werror_flag" || | |
5159 | + test ! -s conftest.err | |
5160 | + } && test -s conftest.$ac_objext; then | |
5161 | + ac_header_compiler=yes | |
5162 | +else | |
5163 | + $as_echo "$as_me: failed program was:" >&5 | |
5164 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
5165 | + | |
5166 | + ac_header_compiler=no | |
5167 | +fi | |
5168 | + | |
5169 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5170 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5171 | +$as_echo "$ac_header_compiler" >&6; } | |
5172 | + | |
5173 | +# Is the header present? | |
5174 | +{ $as_echo "$as_me:$LINENO: checking migemo.h presence" >&5 | |
5175 | +$as_echo_n "checking migemo.h presence... " >&6; } | |
5176 | +cat >conftest.$ac_ext <<_ACEOF | |
5177 | +/* confdefs.h. */ | |
5178 | +_ACEOF | |
5179 | +cat confdefs.h >>conftest.$ac_ext | |
5180 | +cat >>conftest.$ac_ext <<_ACEOF | |
5181 | +/* end confdefs.h. */ | |
5182 | +@%:@include <migemo.h> | |
5183 | +_ACEOF | |
5184 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5185 | +case "(($ac_try" in | |
5186 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5187 | + *) ac_try_echo=$ac_try;; | |
5188 | +esac | |
5189 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5190 | +$as_echo "$ac_try_echo") >&5 | |
5191 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5192 | + ac_status=$? | |
5193 | + grep -v '^ *+' conftest.er1 >conftest.err | |
5194 | + rm -f conftest.er1 | |
5195 | + cat conftest.err >&5 | |
5196 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5197 | + (exit $ac_status); } >/dev/null && { | |
5198 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5199 | + test ! -s conftest.err | |
5200 | + }; then | |
5201 | + ac_header_preproc=yes | |
5202 | +else | |
5203 | + $as_echo "$as_me: failed program was:" >&5 | |
5204 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
5205 | + | |
5206 | + ac_header_preproc=no | |
5207 | +fi | |
5208 | + | |
5209 | +rm -f conftest.err conftest.$ac_ext | |
5210 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5211 | +$as_echo "$ac_header_preproc" >&6; } | |
5212 | + | |
5213 | +# So? What about this header? | |
5214 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5215 | + yes:no: ) | |
5216 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5217 | +$as_echo "$as_me: WARNING: migemo.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5218 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: proceeding with the compiler's result" >&5 | |
5219 | +$as_echo "$as_me: WARNING: migemo.h: proceeding with the compiler's result" >&2;} | |
5220 | + ac_header_preproc=yes | |
5221 | + ;; | |
5222 | + no:yes:* ) | |
5223 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: present but cannot be compiled" >&5 | |
5224 | +$as_echo "$as_me: WARNING: migemo.h: present but cannot be compiled" >&2;} | |
5225 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: check for missing prerequisite headers?" >&5 | |
5226 | +$as_echo "$as_me: WARNING: migemo.h: check for missing prerequisite headers?" >&2;} | |
5227 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: see the Autoconf documentation" >&5 | |
5228 | +$as_echo "$as_me: WARNING: migemo.h: see the Autoconf documentation" >&2;} | |
5229 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5230 | +$as_echo "$as_me: WARNING: migemo.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5231 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: proceeding with the preprocessor's result" >&5 | |
5232 | +$as_echo "$as_me: WARNING: migemo.h: proceeding with the preprocessor's result" >&2;} | |
5233 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: in the future, the compiler will take precedence" >&5 | |
5234 | +$as_echo "$as_me: WARNING: migemo.h: in the future, the compiler will take precedence" >&2;} | |
5235 | + | |
5236 | + ;; | |
5237 | +esac | |
5238 | +{ $as_echo "$as_me:$LINENO: checking for migemo.h" >&5 | |
5239 | +$as_echo_n "checking for migemo.h... " >&6; } | |
5240 | +if test "${ac_cv_header_migemo_h+set}" = set; then | |
5241 | + $as_echo_n "(cached) " >&6 | |
5242 | +else | |
5243 | + ac_cv_header_migemo_h=$ac_header_preproc | |
5244 | +fi | |
5245 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_migemo_h" >&5 | |
5246 | +$as_echo "$ac_cv_header_migemo_h" >&6; } | |
5247 | + | |
5248 | +fi | |
5249 | +if test "x$ac_cv_header_migemo_h" = x""yes; then | |
5250 | + LIBS="$LIBS -lmigemo"; cat >>confdefs.h <<\_ACEOF | |
5251 | +@%:@define HAVE_MIGEMO_H 1 | |
5252 | +_ACEOF | |
5253 | + | |
5254 | +else | |
5255 | + exit | |
5256 | +fi | |
5257 | + | |
5258 | + | |
5259 | +fi | |
5260 | + | |
5261 | + | |
5262 | + | |
5263 | +ac_config_files="$ac_config_files Makefile" | |
5264 | + | |
5265 | +cat >confcache <<\_ACEOF | |
5266 | +# This file is a shell script that caches the results of configure | |
5267 | +# tests run on this system so they can be shared between configure | |
5268 | +# scripts and configure runs, see configure's option --config-cache. | |
5269 | +# It is not useful on other systems. If it contains results you don't | |
5270 | +# want to keep, you may remove or edit it. | |
5271 | +# | |
5272 | +# config.status only pays attention to the cache file if you give it | |
5273 | +# the --recheck option to rerun configure. | |
5274 | +# | |
5275 | +# `ac_cv_env_foo' variables (set or unset) will be overridden when | |
5276 | +# loading this file, other *unset* `ac_cv_foo' will be assigned the | |
5277 | +# following values. | |
5278 | + | |
5279 | +_ACEOF | |
5280 | + | |
5281 | +# The following way of writing the cache mishandles newlines in values, | |
5282 | +# but we know of no workaround that is simple, portable, and efficient. | |
5283 | +# So, we kill variables containing newlines. | |
5284 | +# Ultrix sh set writes to stderr and can't be redirected directly, | |
5285 | +# and sets the high bit in the cache file unless we assign to the vars. | |
5286 | +( | |
5287 | + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
5288 | + eval ac_val=\$$ac_var | |
5289 | + case $ac_val in #( | |
5290 | + *${as_nl}*) | |
5291 | + case $ac_var in #( | |
5292 | + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
5293 | +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
5294 | + esac | |
5295 | + case $ac_var in #( | |
5296 | + _ | IFS | as_nl) ;; #( | |
5297 | + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
5298 | + *) $as_unset $ac_var ;; | |
5299 | + esac ;; | |
5300 | + esac | |
5301 | + done | |
5302 | + | |
5303 | + (set) 2>&1 | | |
5304 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
5305 | + *${as_nl}ac_space=\ *) | |
5306 | + # `set' does not quote correctly, so add quotes (double-quote | |
5307 | + # substitution turns \\\\ into \\, and sed turns \\ into \). | |
5308 | + sed -n \ | |
5309 | + "s/'/'\\\\''/g; | |
5310 | + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5311 | + ;; #( | |
5312 | + *) | |
5313 | + # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5314 | + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
5315 | + ;; | |
5316 | + esac | | |
5317 | + sort | |
5318 | +) | | |
5319 | + sed ' | |
5320 | + /^ac_cv_env_/b end | |
5321 | + t clear | |
5322 | + :clear | |
5323 | + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
5324 | + t end | |
5325 | + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
5326 | + :end' >>confcache | |
5327 | +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
5328 | + if test -w "$cache_file"; then | |
5329 | + test "x$cache_file" != "x/dev/null" && | |
5330 | + { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
5331 | +$as_echo "$as_me: updating cache $cache_file" >&6;} | |
5332 | + cat confcache >$cache_file | |
5333 | + else | |
5334 | + { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
5335 | +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
5336 | + fi | |
5337 | +fi | |
5338 | +rm -f confcache | |
5339 | + | |
5340 | +test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
5341 | +# Let make expand exec_prefix. | |
5342 | +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5343 | + | |
5344 | +DEFS=-DHAVE_CONFIG_H | |
5345 | + | |
5346 | +ac_libobjs= | |
5347 | +ac_ltlibobjs= | |
5348 | +for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue | |
5349 | + # 1. Remove the extension, and $U if already installed. | |
5350 | + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
5351 | + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
5352 | + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
5353 | + # will be set to the directory where LIBOBJS objects are built. | |
5354 | + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
5355 | + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
5356 | +done | |
5357 | +LIB@&t@OBJS=$ac_libobjs | |
5358 | + | |
5359 | +LTLIBOBJS=$ac_ltlibobjs | |
5360 | + | |
5361 | + | |
5362 | + | |
5363 | +: ${CONFIG_STATUS=./config.status} | |
5364 | +ac_write_fail=0 | |
5365 | +ac_clean_files_save=$ac_clean_files | |
5366 | +ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5367 | +{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
5368 | +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
5369 | +cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5370 | +#! $SHELL | |
5371 | +# Generated by $as_me. | |
5372 | +# Run this file to recreate the current configuration. | |
5373 | +# Compiler output produced by configure, useful for debugging | |
5374 | +# configure, is in config.log if it exists. | |
5375 | + | |
5376 | +debug=false | |
5377 | +ac_cs_recheck=false | |
5378 | +ac_cs_silent=false | |
5379 | +SHELL=\${CONFIG_SHELL-$SHELL} | |
5380 | +_ACEOF | |
5381 | + | |
5382 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5383 | +## --------------------- ## | |
5384 | +## M4sh Initialization. ## | |
5385 | +## --------------------- ## | |
5386 | + | |
5387 | +# Be more Bourne compatible | |
5388 | +DUALCASE=1; export DUALCASE # for MKS sh | |
5389 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
5390 | + emulate sh | |
5391 | + NULLCMD=: | |
5392 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
5393 | + # is contrary to our usage. Disable this feature. | |
5394 | + alias -g '${1+"$@"}'='"$@"' | |
5395 | + setopt NO_GLOB_SUBST | |
5396 | +else | |
5397 | + case `(set -o) 2>/dev/null` in | |
5398 | + *posix*) set -o posix ;; | |
5399 | +esac | |
5400 | + | |
5401 | +fi | |
5402 | + | |
5403 | + | |
5404 | + | |
5405 | + | |
5406 | +# PATH needs CR | |
5407 | +# Avoid depending upon Character Ranges. | |
5408 | +as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
5409 | +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
5410 | +as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
5411 | +as_cr_digits='0123456789' | |
5412 | +as_cr_alnum=$as_cr_Letters$as_cr_digits | |
5413 | + | |
5414 | +as_nl=' | |
5415 | +' | |
5416 | +export as_nl | |
5417 | +# Printing a long string crashes Solaris 7 /usr/bin/printf. | |
5418 | +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5419 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
5420 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
5421 | +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
5422 | + as_echo='printf %s\n' | |
5423 | + as_echo_n='printf %s' | |
5424 | +else | |
5425 | + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
5426 | + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
5427 | + as_echo_n='/usr/ucb/echo -n' | |
5428 | + else | |
5429 | + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
5430 | + as_echo_n_body='eval | |
5431 | + arg=$1; | |
5432 | + case $arg in | |
5433 | + *"$as_nl"*) | |
5434 | + expr "X$arg" : "X\\(.*\\)$as_nl"; | |
5435 | + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
5436 | + esac; | |
5437 | + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
5438 | + ' | |
5439 | + export as_echo_n_body | |
5440 | + as_echo_n='sh -c $as_echo_n_body as_echo' | |
5441 | + fi | |
5442 | + export as_echo_body | |
5443 | + as_echo='sh -c $as_echo_body as_echo' | |
5444 | +fi | |
5445 | + | |
5446 | +# The user is always right. | |
5447 | +if test "${PATH_SEPARATOR+set}" != set; then | |
5448 | + PATH_SEPARATOR=: | |
5449 | + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
5450 | + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
5451 | + PATH_SEPARATOR=';' | |
5452 | + } | |
5453 | +fi | |
5454 | + | |
5455 | +# Support unset when possible. | |
5456 | +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5457 | + as_unset=unset | |
5458 | +else | |
5459 | + as_unset=false | |
5460 | +fi | |
5461 | + | |
5462 | + | |
5463 | +# IFS | |
5464 | +# We need space, tab and new line, in precisely that order. Quoting is | |
5465 | +# there to prevent editors from complaining about space-tab. | |
5466 | +# (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
5467 | +# splitting by setting IFS to empty value.) | |
5468 | +IFS=" "" $as_nl" | |
5469 | + | |
5470 | +# Find who we are. Look in the path if we contain no directory separator. | |
5471 | +case $0 in | |
5472 | + *[\\/]* ) as_myself=$0 ;; | |
5473 | + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5474 | +for as_dir in $PATH | |
5475 | +do | |
5476 | + IFS=$as_save_IFS | |
5477 | + test -z "$as_dir" && as_dir=. | |
5478 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
5479 | +done | |
5480 | +IFS=$as_save_IFS | |
5481 | + | |
5482 | + ;; | |
5483 | +esac | |
5484 | +# We did not find ourselves, most probably we were run as `sh COMMAND' | |
5485 | +# in which case we are not to be found in the path. | |
5486 | +if test "x$as_myself" = x; then | |
5487 | + as_myself=$0 | |
5488 | +fi | |
5489 | +if test ! -f "$as_myself"; then | |
5490 | + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
5491 | + { (exit 1); exit 1; } | |
5492 | +fi | |
5493 | + | |
5494 | +# Work around bugs in pre-3.0 UWIN ksh. | |
5495 | +for as_var in ENV MAIL MAILPATH | |
5496 | +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
5497 | +done | |
5498 | +PS1='$ ' | |
5499 | +PS2='> ' | |
5500 | +PS4='+ ' | |
5501 | + | |
5502 | +# NLS nuisances. | |
5503 | +LC_ALL=C | |
5504 | +export LC_ALL | |
5505 | +LANGUAGE=C | |
5506 | +export LANGUAGE | |
5507 | + | |
5508 | +# Required to use basename. | |
5509 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
5510 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
5511 | + as_expr=expr | |
5512 | +else | |
5513 | + as_expr=false | |
5514 | +fi | |
5515 | + | |
5516 | +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
5517 | + as_basename=basename | |
5518 | +else | |
5519 | + as_basename=false | |
5520 | +fi | |
5521 | + | |
5522 | + | |
5523 | +# Name of the executable. | |
5524 | +as_me=`$as_basename -- "$0" || | |
5525 | +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
5526 | + X"$0" : 'X\(//\)$' \| \ | |
5527 | + X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
5528 | +$as_echo X/"$0" | | |
5529 | + sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
5530 | + s//\1/ | |
5531 | + q | |
5532 | + } | |
5533 | + /^X\/\(\/\/\)$/{ | |
5534 | + s//\1/ | |
5535 | + q | |
5536 | + } | |
5537 | + /^X\/\(\/\).*/{ | |
5538 | + s//\1/ | |
5539 | + q | |
5540 | + } | |
5541 | + s/.*/./; q'` | |
5542 | + | |
5543 | +# CDPATH. | |
5544 | +$as_unset CDPATH | |
5545 | + | |
5546 | + | |
5547 | + | |
5548 | + as_lineno_1=$LINENO | |
5549 | + as_lineno_2=$LINENO | |
5550 | + test "x$as_lineno_1" != "x$as_lineno_2" && | |
5551 | + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
5552 | + | |
5553 | + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
5554 | + # uniformly replaced by the line number. The first 'sed' inserts a | |
5555 | + # line-number line after each line using $LINENO; the second 'sed' | |
5556 | + # does the real work. The second script uses 'N' to pair each | |
5557 | + # line-number line with the line containing $LINENO, and appends | |
5558 | + # trailing '-' during substitution so that $LINENO is not a special | |
5559 | + # case at line end. | |
5560 | + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
5561 | + # scripts with optimization help from Paolo Bonzini. Blame Lee | |
5562 | + # E. McMahon (1931-1989) for sed's syntax. :-) | |
5563 | + sed -n ' | |
5564 | + p | |
5565 | + /[$]LINENO/= | |
5566 | + ' <$as_myself | | |
5567 | + sed ' | |
5568 | + s/[$]LINENO.*/&-/ | |
5569 | + t lineno | |
5570 | + b | |
5571 | + :lineno | |
5572 | + N | |
5573 | + :loop | |
5574 | + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
5575 | + t loop | |
5576 | + s/-\n.*// | |
5577 | + ' >$as_me.lineno && | |
5578 | + chmod +x "$as_me.lineno" || | |
5579 | + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
5580 | + { (exit 1); exit 1; }; } | |
5581 | + | |
5582 | + # Don't try to exec as it changes $[0], causing all sort of problems | |
5583 | + # (the dirname of $[0] is not the place where we might find the | |
5584 | + # original and so on. Autoconf is especially sensitive to this). | |
5585 | + . "./$as_me.lineno" | |
5586 | + # Exit status is that of the last command. | |
5587 | + exit | |
5588 | +} | |
5589 | + | |
5590 | + | |
5591 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
5592 | + as_dirname=dirname | |
5593 | +else | |
5594 | + as_dirname=false | |
5595 | +fi | |
5596 | + | |
5597 | +ECHO_C= ECHO_N= ECHO_T= | |
5598 | +case `echo -n x` in | |
5599 | +-n*) | |
5600 | + case `echo 'x\c'` in | |
5601 | + *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
5602 | + *) ECHO_C='\c';; | |
5603 | + esac;; | |
5604 | +*) | |
5605 | + ECHO_N='-n';; | |
5606 | +esac | |
5607 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
5608 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
5609 | + as_expr=expr | |
5610 | +else | |
5611 | + as_expr=false | |
5612 | +fi | |
5613 | + | |
5614 | +rm -f conf$$ conf$$.exe conf$$.file | |
5615 | +if test -d conf$$.dir; then | |
5616 | + rm -f conf$$.dir/conf$$.file | |
5617 | +else | |
5618 | + rm -f conf$$.dir | |
5619 | + mkdir conf$$.dir 2>/dev/null | |
5620 | +fi | |
5621 | +if (echo >conf$$.file) 2>/dev/null; then | |
5622 | + if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5623 | + as_ln_s='ln -s' | |
5624 | + # ... but there are two gotchas: | |
5625 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
5626 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
5627 | + # In both cases, we have to default to `cp -p'. | |
5628 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
5629 | + as_ln_s='cp -p' | |
5630 | + elif ln conf$$.file conf$$ 2>/dev/null; then | |
5631 | + as_ln_s=ln | |
5632 | + else | |
5633 | + as_ln_s='cp -p' | |
5634 | + fi | |
5635 | +else | |
5636 | + as_ln_s='cp -p' | |
5637 | +fi | |
5638 | +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
5639 | +rmdir conf$$.dir 2>/dev/null | |
5640 | + | |
5641 | +if mkdir -p . 2>/dev/null; then | |
5642 | + as_mkdir_p=: | |
5643 | +else | |
5644 | + test -d ./-p && rmdir ./-p | |
5645 | + as_mkdir_p=false | |
5646 | +fi | |
5647 | + | |
5648 | +if test -x / >/dev/null 2>&1; then | |
5649 | + as_test_x='test -x' | |
5650 | +else | |
5651 | + if ls -dL / >/dev/null 2>&1; then | |
5652 | + as_ls_L_option=L | |
5653 | + else | |
5654 | + as_ls_L_option= | |
5655 | + fi | |
5656 | + as_test_x=' | |
5657 | + eval sh -c '\'' | |
5658 | + if test -d "$1"; then | |
5659 | + test -d "$1/."; | |
5660 | + else | |
5661 | + case $1 in | |
5662 | + -*)set "./$1";; | |
5663 | + esac; | |
5664 | + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
5665 | + ???[sx]*):;;*)false;;esac;fi | |
5666 | + '\'' sh | |
5667 | + ' | |
5668 | +fi | |
5669 | +as_executable_p=$as_test_x | |
5670 | + | |
5671 | +# Sed expression to map a string onto a valid CPP name. | |
5672 | +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
5673 | + | |
5674 | +# Sed expression to map a string onto a valid variable name. | |
5675 | +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
5676 | + | |
5677 | + | |
5678 | +exec 6>&1 | |
5679 | + | |
5680 | +# Save the log message, to keep $[0] and so on meaningful, and to | |
5681 | +# report actual input values of CONFIG_FILES etc. instead of their | |
5682 | +# values after options handling. | |
5683 | +ac_log=" | |
5684 | +This file was extended by $as_me, which was | |
5685 | +generated by GNU Autoconf 2.63. Invocation command line was | |
5686 | + | |
5687 | + CONFIG_FILES = $CONFIG_FILES | |
5688 | + CONFIG_HEADERS = $CONFIG_HEADERS | |
5689 | + CONFIG_LINKS = $CONFIG_LINKS | |
5690 | + CONFIG_COMMANDS = $CONFIG_COMMANDS | |
5691 | + $ $0 $@ | |
5692 | + | |
5693 | +on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
5694 | +" | |
5695 | + | |
5696 | +_ACEOF | |
5697 | + | |
5698 | +case $ac_config_files in *" | |
5699 | +"*) set x $ac_config_files; shift; ac_config_files=$*;; | |
5700 | +esac | |
5701 | + | |
5702 | +case $ac_config_headers in *" | |
5703 | +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
5704 | +esac | |
5705 | + | |
5706 | + | |
5707 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5708 | +# Files that config.status was made for. | |
5709 | +config_files="$ac_config_files" | |
5710 | +config_headers="$ac_config_headers" | |
5711 | + | |
5712 | +_ACEOF | |
5713 | + | |
5714 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5715 | +ac_cs_usage="\ | |
5716 | +\`$as_me' instantiates files from templates according to the | |
5717 | +current configuration. | |
5718 | + | |
5719 | +Usage: $0 [OPTION]... [FILE]... | |
5720 | + | |
5721 | + -h, --help print this help, then exit | |
5722 | + -V, --version print version number and configuration settings, then exit | |
5723 | + -q, --quiet, --silent | |
5724 | + do not print progress messages | |
5725 | + -d, --debug don't remove temporary files | |
5726 | + --recheck update $as_me by reconfiguring in the same conditions | |
5727 | + --file=FILE[:TEMPLATE] | |
5728 | + instantiate the configuration file FILE | |
5729 | + --header=FILE[:TEMPLATE] | |
5730 | + instantiate the configuration header FILE | |
5731 | + | |
5732 | +Configuration files: | |
5733 | +$config_files | |
5734 | + | |
5735 | +Configuration headers: | |
5736 | +$config_headers | |
5737 | + | |
5738 | +Report bugs to <bug-autoconf@gnu.org>." | |
5739 | + | |
5740 | +_ACEOF | |
5741 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5742 | +ac_cs_version="\\ | |
5743 | +config.status | |
5744 | +configured by $0, generated by GNU Autoconf 2.63, | |
5745 | + with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
5746 | + | |
5747 | +Copyright (C) 2008 Free Software Foundation, Inc. | |
5748 | +This config.status script is free software; the Free Software Foundation | |
5749 | +gives unlimited permission to copy, distribute and modify it." | |
5750 | + | |
5751 | +ac_pwd='$ac_pwd' | |
5752 | +srcdir='$srcdir' | |
5753 | +INSTALL='$INSTALL' | |
5754 | +test -n "\$AWK" || AWK=awk | |
5755 | +_ACEOF | |
5756 | + | |
5757 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5758 | +# The default lists apply if the user does not specify any file. | |
5759 | +ac_need_defaults=: | |
5760 | +while test $# != 0 | |
5761 | +do | |
5762 | + case $1 in | |
5763 | + --*=*) | |
5764 | + ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
5765 | + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
5766 | + ac_shift=: | |
5767 | + ;; | |
5768 | + *) | |
5769 | + ac_option=$1 | |
5770 | + ac_optarg=$2 | |
5771 | + ac_shift=shift | |
5772 | + ;; | |
5773 | + esac | |
5774 | + | |
5775 | + case $ac_option in | |
5776 | + # Handling of the options. | |
5777 | + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
5778 | + ac_cs_recheck=: ;; | |
5779 | + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
5780 | + $as_echo "$ac_cs_version"; exit ;; | |
5781 | + --debug | --debu | --deb | --de | --d | -d ) | |
5782 | + debug=: ;; | |
5783 | + --file | --fil | --fi | --f ) | |
5784 | + $ac_shift | |
5785 | + case $ac_optarg in | |
5786 | + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
5787 | + esac | |
5788 | + CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
5789 | + ac_need_defaults=false;; | |
5790 | + --header | --heade | --head | --hea ) | |
5791 | + $ac_shift | |
5792 | + case $ac_optarg in | |
5793 | + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
5794 | + esac | |
5795 | + CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
5796 | + ac_need_defaults=false;; | |
5797 | + --he | --h) | |
5798 | + # Conflict between --help and --header | |
5799 | + { $as_echo "$as_me: error: ambiguous option: $1 | |
5800 | +Try \`$0 --help' for more information." >&2 | |
5801 | + { (exit 1); exit 1; }; };; | |
5802 | + --help | --hel | -h ) | |
5803 | + $as_echo "$ac_cs_usage"; exit ;; | |
5804 | + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
5805 | + | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
5806 | + ac_cs_silent=: ;; | |
5807 | + | |
5808 | + # This is an error. | |
5809 | + -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
5810 | +Try \`$0 --help' for more information." >&2 | |
5811 | + { (exit 1); exit 1; }; } ;; | |
5812 | + | |
5813 | + *) ac_config_targets="$ac_config_targets $1" | |
5814 | + ac_need_defaults=false ;; | |
5815 | + | |
5816 | + esac | |
5817 | + shift | |
5818 | +done | |
5819 | + | |
5820 | +ac_configure_extra_args= | |
5821 | + | |
5822 | +if $ac_cs_silent; then | |
5823 | + exec 6>/dev/null | |
5824 | + ac_configure_extra_args="$ac_configure_extra_args --silent" | |
5825 | +fi | |
5826 | + | |
5827 | +_ACEOF | |
5828 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5829 | +if \$ac_cs_recheck; then | |
5830 | + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
5831 | + shift | |
5832 | + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
5833 | + CONFIG_SHELL='$SHELL' | |
5834 | + export CONFIG_SHELL | |
5835 | + exec "\$@" | |
5836 | +fi | |
5837 | + | |
5838 | +_ACEOF | |
5839 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5840 | +exec 5>>config.log | |
5841 | +{ | |
5842 | + echo | |
5843 | + sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX | |
5844 | +@%:@@%:@ Running $as_me. @%:@@%:@ | |
5845 | +_ASBOX | |
5846 | + $as_echo "$ac_log" | |
5847 | +} >&5 | |
5848 | + | |
5849 | +_ACEOF | |
5850 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5851 | +_ACEOF | |
5852 | + | |
5853 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5854 | + | |
5855 | +# Handling of arguments. | |
5856 | +for ac_config_target in $ac_config_targets | |
5857 | +do | |
5858 | + case $ac_config_target in | |
5859 | + "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; | |
5860 | + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
5861 | + | |
5862 | + *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
5863 | +$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
5864 | + { (exit 1); exit 1; }; };; | |
5865 | + esac | |
5866 | +done | |
5867 | + | |
5868 | + | |
5869 | +# If the user did not use the arguments to specify the items to instantiate, | |
5870 | +# then the envvar interface is used. Set only those that are not. | |
5871 | +# We use the long form for the default assignment because of an extremely | |
5872 | +# bizarre bug on SunOS 4.1.3. | |
5873 | +if $ac_need_defaults; then | |
5874 | + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
5875 | + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
5876 | +fi | |
5877 | + | |
5878 | +# Have a temporary directory for convenience. Make it in the build tree | |
5879 | +# simply because there is no reason against having it here, and in addition, | |
5880 | +# creating and moving files from /tmp can sometimes cause problems. | |
5881 | +# Hook for its removal unless debugging. | |
5882 | +# Note that there is a small window in which the directory will not be cleaned: | |
5883 | +# after its creation but before its name has been assigned to `$tmp'. | |
5884 | +$debug || | |
5885 | +{ | |
5886 | + tmp= | |
5887 | + trap 'exit_status=$? | |
5888 | + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
5889 | +' 0 | |
5890 | + trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
5891 | +} | |
5892 | +# Create a (secure) tmp directory for tmp files. | |
5893 | + | |
5894 | +{ | |
5895 | + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
5896 | + test -n "$tmp" && test -d "$tmp" | |
5897 | +} || | |
5898 | +{ | |
5899 | + tmp=./conf$$-$RANDOM | |
5900 | + (umask 077 && mkdir "$tmp") | |
5901 | +} || | |
5902 | +{ | |
5903 | + $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
5904 | + { (exit 1); exit 1; } | |
5905 | +} | |
5906 | + | |
5907 | +# Set up the scripts for CONFIG_FILES section. | |
5908 | +# No need to generate them if there are no CONFIG_FILES. | |
5909 | +# This happens for instance with `./config.status config.h'. | |
5910 | +if test -n "$CONFIG_FILES"; then | |
5911 | + | |
5912 | + | |
5913 | +ac_cr=' ' | |
5914 | +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
5915 | +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
5916 | + ac_cs_awk_cr='\\r' | |
5917 | +else | |
5918 | + ac_cs_awk_cr=$ac_cr | |
5919 | +fi | |
5920 | + | |
5921 | +echo 'BEGIN {' >"$tmp/subs1.awk" && | |
5922 | +_ACEOF | |
5923 | + | |
5924 | + | |
5925 | +{ | |
5926 | + echo "cat >conf$$subs.awk <<_ACEOF" && | |
5927 | + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
5928 | + echo "_ACEOF" | |
5929 | +} >conf$$subs.sh || | |
5930 | + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
5931 | +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
5932 | + { (exit 1); exit 1; }; } | |
5933 | +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
5934 | +ac_delim='%!_!# ' | |
5935 | +for ac_last_try in false false false false false :; do | |
5936 | + . ./conf$$subs.sh || | |
5937 | + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
5938 | +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
5939 | + { (exit 1); exit 1; }; } | |
5940 | + | |
5941 | + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
5942 | + if test $ac_delim_n = $ac_delim_num; then | |
5943 | + break | |
5944 | + elif $ac_last_try; then | |
5945 | + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
5946 | +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
5947 | + { (exit 1); exit 1; }; } | |
5948 | + else | |
5949 | + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
5950 | + fi | |
5951 | +done | |
5952 | +rm -f conf$$subs.sh | |
5953 | + | |
5954 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5955 | +cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
5956 | +_ACEOF | |
5957 | +sed -n ' | |
5958 | +h | |
5959 | +s/^/S["/; s/!.*/"]=/ | |
5960 | +p | |
5961 | +g | |
5962 | +s/^[^!]*!// | |
5963 | +:repl | |
5964 | +t repl | |
5965 | +s/'"$ac_delim"'$// | |
5966 | +t delim | |
5967 | +:nl | |
5968 | +h | |
5969 | +s/\(.\{148\}\).*/\1/ | |
5970 | +t more1 | |
5971 | +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
5972 | +p | |
5973 | +n | |
5974 | +b repl | |
5975 | +:more1 | |
5976 | +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
5977 | +p | |
5978 | +g | |
5979 | +s/.\{148\}// | |
5980 | +t nl | |
5981 | +:delim | |
5982 | +h | |
5983 | +s/\(.\{148\}\).*/\1/ | |
5984 | +t more2 | |
5985 | +s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
5986 | +p | |
5987 | +b | |
5988 | +:more2 | |
5989 | +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
5990 | +p | |
5991 | +g | |
5992 | +s/.\{148\}// | |
5993 | +t delim | |
5994 | +' <conf$$subs.awk | sed ' | |
5995 | +/^[^""]/{ | |
5996 | + N | |
5997 | + s/\n// | |
5998 | +} | |
5999 | +' >>$CONFIG_STATUS || ac_write_fail=1 | |
6000 | +rm -f conf$$subs.awk | |
6001 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6002 | +_ACAWK | |
6003 | +cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
6004 | + for (key in S) S_is_set[key] = 1 | |
6005 | + FS = "" | |
6006 | + | |
6007 | +} | |
6008 | +{ | |
6009 | + line = $ 0 | |
6010 | + nfields = split(line, field, "@") | |
6011 | + substed = 0 | |
6012 | + len = length(field[1]) | |
6013 | + for (i = 2; i < nfields; i++) { | |
6014 | + key = field[i] | |
6015 | + keylen = length(key) | |
6016 | + if (S_is_set[key]) { | |
6017 | + value = S[key] | |
6018 | + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
6019 | + len += length(value) + length(field[++i]) | |
6020 | + substed = 1 | |
6021 | + } else | |
6022 | + len += 1 + keylen | |
6023 | + } | |
6024 | + | |
6025 | + print line | |
6026 | +} | |
6027 | + | |
6028 | +_ACAWK | |
6029 | +_ACEOF | |
6030 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6031 | +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
6032 | + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
6033 | +else | |
6034 | + cat | |
6035 | +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
6036 | + || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
6037 | +$as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
6038 | + { (exit 1); exit 1; }; } | |
6039 | +_ACEOF | |
6040 | + | |
6041 | +# VPATH may cause trouble with some makes, so we remove $(srcdir), | |
6042 | +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
6043 | +# trailing colons and then remove the whole line if VPATH becomes empty | |
6044 | +# (actually we leave an empty line to preserve line numbers). | |
6045 | +if test "x$srcdir" = x.; then | |
6046 | + ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
6047 | +s/:*\$(srcdir):*/:/ | |
6048 | +s/:*\${srcdir}:*/:/ | |
6049 | +s/:*@srcdir@:*/:/ | |
6050 | +s/^\([^=]*=[ ]*\):*/\1/ | |
6051 | +s/:*$// | |
6052 | +s/^[^=]*=[ ]*$// | |
6053 | +}' | |
6054 | +fi | |
6055 | + | |
6056 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6057 | +fi # test -n "$CONFIG_FILES" | |
6058 | + | |
6059 | +# Set up the scripts for CONFIG_HEADERS section. | |
6060 | +# No need to generate them if there are no CONFIG_HEADERS. | |
6061 | +# This happens for instance with `./config.status Makefile'. | |
6062 | +if test -n "$CONFIG_HEADERS"; then | |
6063 | +cat >"$tmp/defines.awk" <<\_ACAWK || | |
6064 | +BEGIN { | |
6065 | +_ACEOF | |
6066 | + | |
6067 | +# Transform confdefs.h into an awk script `defines.awk', embedded as | |
6068 | +# here-document in config.status, that substitutes the proper values into | |
6069 | +# config.h.in to produce config.h. | |
6070 | + | |
6071 | +# Create a delimiter string that does not exist in confdefs.h, to ease | |
6072 | +# handling of long lines. | |
6073 | +ac_delim='%!_!# ' | |
6074 | +for ac_last_try in false false :; do | |
6075 | + ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
6076 | + if test -z "$ac_t"; then | |
6077 | + break | |
6078 | + elif $ac_last_try; then | |
6079 | + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
6080 | +$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
6081 | + { (exit 1); exit 1; }; } | |
6082 | + else | |
6083 | + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
6084 | + fi | |
6085 | +done | |
6086 | + | |
6087 | +# For the awk script, D is an array of macro values keyed by name, | |
6088 | +# likewise P contains macro parameters if any. Preserve backslash | |
6089 | +# newline sequences. | |
6090 | + | |
6091 | +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
6092 | +sed -n ' | |
6093 | +s/.\{148\}/&'"$ac_delim"'/g | |
6094 | +t rset | |
6095 | +:rset | |
6096 | +s/^[ ]*#[ ]*define[ ][ ]*/ / | |
6097 | +t def | |
6098 | +d | |
6099 | +:def | |
6100 | +s/\\$// | |
6101 | +t bsnl | |
6102 | +s/["\\]/\\&/g | |
6103 | +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
6104 | +D["\1"]=" \3"/p | |
6105 | +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
6106 | +d | |
6107 | +:bsnl | |
6108 | +s/["\\]/\\&/g | |
6109 | +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
6110 | +D["\1"]=" \3\\\\\\n"\\/p | |
6111 | +t cont | |
6112 | +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
6113 | +t cont | |
6114 | +d | |
6115 | +:cont | |
6116 | +n | |
6117 | +s/.\{148\}/&'"$ac_delim"'/g | |
6118 | +t clear | |
6119 | +:clear | |
6120 | +s/\\$// | |
6121 | +t bsnlc | |
6122 | +s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
6123 | +d | |
6124 | +:bsnlc | |
6125 | +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
6126 | +b cont | |
6127 | +' <confdefs.h | sed ' | |
6128 | +s/'"$ac_delim"'/"\\\ | |
6129 | +"/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
6130 | + | |
6131 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6132 | + for (key in D) D_is_set[key] = 1 | |
6133 | + FS = "" | |
6134 | +} | |
6135 | +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
6136 | + line = \$ 0 | |
6137 | + split(line, arg, " ") | |
6138 | + if (arg[1] == "#") { | |
6139 | + defundef = arg[2] | |
6140 | + mac1 = arg[3] | |
6141 | + } else { | |
6142 | + defundef = substr(arg[1], 2) | |
6143 | + mac1 = arg[2] | |
6144 | + } | |
6145 | + split(mac1, mac2, "(") #) | |
6146 | + macro = mac2[1] | |
6147 | + prefix = substr(line, 1, index(line, defundef) - 1) | |
6148 | + if (D_is_set[macro]) { | |
6149 | + # Preserve the white space surrounding the "#". | |
6150 | + print prefix "define", macro P[macro] D[macro] | |
6151 | + next | |
6152 | + } else { | |
6153 | + # Replace #undef with comments. This is necessary, for example, | |
6154 | + # in the case of _POSIX_SOURCE, which is predefined and required | |
6155 | + # on some systems where configure will not decide to define it. | |
6156 | + if (defundef == "undef") { | |
6157 | + print "/*", prefix defundef, macro, "*/" | |
6158 | + next | |
6159 | + } | |
6160 | + } | |
6161 | +} | |
6162 | +{ print } | |
6163 | +_ACAWK | |
6164 | +_ACEOF | |
6165 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6166 | + { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
6167 | +$as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
6168 | + { (exit 1); exit 1; }; } | |
6169 | +fi # test -n "$CONFIG_HEADERS" | |
6170 | + | |
6171 | + | |
6172 | +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | |
6173 | +shift | |
6174 | +for ac_tag | |
6175 | +do | |
6176 | + case $ac_tag in | |
6177 | + :[FHLC]) ac_mode=$ac_tag; continue;; | |
6178 | + esac | |
6179 | + case $ac_mode$ac_tag in | |
6180 | + :[FHL]*:*);; | |
6181 | + :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
6182 | +$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
6183 | + { (exit 1); exit 1; }; };; | |
6184 | + :[FH]-) ac_tag=-:-;; | |
6185 | + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
6186 | + esac | |
6187 | + ac_save_IFS=$IFS | |
6188 | + IFS=: | |
6189 | + set x $ac_tag | |
6190 | + IFS=$ac_save_IFS | |
6191 | + shift | |
6192 | + ac_file=$1 | |
6193 | + shift | |
6194 | + | |
6195 | + case $ac_mode in | |
6196 | + :L) ac_source=$1;; | |
6197 | + :[FH]) | |
6198 | + ac_file_inputs= | |
6199 | + for ac_f | |
6200 | + do | |
6201 | + case $ac_f in | |
6202 | + -) ac_f="$tmp/stdin";; | |
6203 | + *) # Look for the file first in the build tree, then in the source tree | |
6204 | + # (if the path is not absolute). The absolute path cannot be DOS-style, | |
6205 | + # because $ac_f cannot contain `:'. | |
6206 | + test -f "$ac_f" || | |
6207 | + case $ac_f in | |
6208 | + [\\/$]*) false;; | |
6209 | + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
6210 | + esac || | |
6211 | + { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
6212 | +$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
6213 | + { (exit 1); exit 1; }; };; | |
6214 | + esac | |
6215 | + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
6216 | + ac_file_inputs="$ac_file_inputs '$ac_f'" | |
6217 | + done | |
6218 | + | |
6219 | + # Let's still pretend it is `configure' which instantiates (i.e., don't | |
6220 | + # use $as_me), people would be surprised to read: | |
6221 | + # /* config.h. Generated by config.status. */ | |
6222 | + configure_input='Generated from '` | |
6223 | + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
6224 | + `' by configure.' | |
6225 | + if test x"$ac_file" != x-; then | |
6226 | + configure_input="$ac_file. $configure_input" | |
6227 | + { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
6228 | +$as_echo "$as_me: creating $ac_file" >&6;} | |
6229 | + fi | |
6230 | + # Neutralize special characters interpreted by sed in replacement strings. | |
6231 | + case $configure_input in #( | |
6232 | + *\&* | *\|* | *\\* ) | |
6233 | + ac_sed_conf_input=`$as_echo "$configure_input" | | |
6234 | + sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
6235 | + *) ac_sed_conf_input=$configure_input;; | |
6236 | + esac | |
6237 | + | |
6238 | + case $ac_tag in | |
6239 | + *:-:* | *:-) cat >"$tmp/stdin" \ | |
6240 | + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
6241 | +$as_echo "$as_me: error: could not create $ac_file" >&2;} | |
6242 | + { (exit 1); exit 1; }; } ;; | |
6243 | + esac | |
6244 | + ;; | |
6245 | + esac | |
6246 | + | |
6247 | + ac_dir=`$as_dirname -- "$ac_file" || | |
6248 | +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6249 | + X"$ac_file" : 'X\(//\)[^/]' \| \ | |
6250 | + X"$ac_file" : 'X\(//\)$' \| \ | |
6251 | + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
6252 | +$as_echo X"$ac_file" | | |
6253 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6254 | + s//\1/ | |
6255 | + q | |
6256 | + } | |
6257 | + /^X\(\/\/\)[^/].*/{ | |
6258 | + s//\1/ | |
6259 | + q | |
6260 | + } | |
6261 | + /^X\(\/\/\)$/{ | |
6262 | + s//\1/ | |
6263 | + q | |
6264 | + } | |
6265 | + /^X\(\/\).*/{ | |
6266 | + s//\1/ | |
6267 | + q | |
6268 | + } | |
6269 | + s/.*/./; q'` | |
6270 | + { as_dir="$ac_dir" | |
6271 | + case $as_dir in #( | |
6272 | + -*) as_dir=./$as_dir;; | |
6273 | + esac | |
6274 | + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
6275 | + as_dirs= | |
6276 | + while :; do | |
6277 | + case $as_dir in #( | |
6278 | + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
6279 | + *) as_qdir=$as_dir;; | |
6280 | + esac | |
6281 | + as_dirs="'$as_qdir' $as_dirs" | |
6282 | + as_dir=`$as_dirname -- "$as_dir" || | |
6283 | +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6284 | + X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6285 | + X"$as_dir" : 'X\(//\)$' \| \ | |
6286 | + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6287 | +$as_echo X"$as_dir" | | |
6288 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6289 | + s//\1/ | |
6290 | + q | |
6291 | + } | |
6292 | + /^X\(\/\/\)[^/].*/{ | |
6293 | + s//\1/ | |
6294 | + q | |
6295 | + } | |
6296 | + /^X\(\/\/\)$/{ | |
6297 | + s//\1/ | |
6298 | + q | |
6299 | + } | |
6300 | + /^X\(\/\).*/{ | |
6301 | + s//\1/ | |
6302 | + q | |
6303 | + } | |
6304 | + s/.*/./; q'` | |
6305 | + test -d "$as_dir" && break | |
6306 | + done | |
6307 | + test -z "$as_dirs" || eval "mkdir $as_dirs" | |
6308 | + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
6309 | +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
6310 | + { (exit 1); exit 1; }; }; } | |
6311 | + ac_builddir=. | |
6312 | + | |
6313 | +case "$ac_dir" in | |
6314 | +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
6315 | +*) | |
6316 | + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
6317 | + # A ".." for each directory in $ac_dir_suffix. | |
6318 | + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
6319 | + case $ac_top_builddir_sub in | |
6320 | + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
6321 | + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
6322 | + esac ;; | |
6323 | +esac | |
6324 | +ac_abs_top_builddir=$ac_pwd | |
6325 | +ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
6326 | +# for backward compatibility: | |
6327 | +ac_top_builddir=$ac_top_build_prefix | |
6328 | + | |
6329 | +case $srcdir in | |
6330 | + .) # We are building in place. | |
6331 | + ac_srcdir=. | |
6332 | + ac_top_srcdir=$ac_top_builddir_sub | |
6333 | + ac_abs_top_srcdir=$ac_pwd ;; | |
6334 | + [\\/]* | ?:[\\/]* ) # Absolute name. | |
6335 | + ac_srcdir=$srcdir$ac_dir_suffix; | |
6336 | + ac_top_srcdir=$srcdir | |
6337 | + ac_abs_top_srcdir=$srcdir ;; | |
6338 | + *) # Relative name. | |
6339 | + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
6340 | + ac_top_srcdir=$ac_top_build_prefix$srcdir | |
6341 | + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
6342 | +esac | |
6343 | +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
6344 | + | |
6345 | + | |
6346 | + case $ac_mode in | |
6347 | + :F) | |
6348 | + # | |
6349 | + # CONFIG_FILE | |
6350 | + # | |
6351 | + | |
6352 | + case $INSTALL in | |
6353 | + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
6354 | + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
6355 | + esac | |
6356 | +_ACEOF | |
6357 | + | |
6358 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6359 | +# If the template does not know about datarootdir, expand it. | |
6360 | +# FIXME: This hack should be removed a few years after 2.60. | |
6361 | +ac_datarootdir_hack=; ac_datarootdir_seen= | |
6362 | + | |
6363 | +ac_sed_dataroot=' | |
6364 | +/datarootdir/ { | |
6365 | + p | |
6366 | + q | |
6367 | +} | |
6368 | +/@datadir@/p | |
6369 | +/@docdir@/p | |
6370 | +/@infodir@/p | |
6371 | +/@localedir@/p | |
6372 | +/@mandir@/p | |
6373 | +' | |
6374 | +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
6375 | +*datarootdir*) ac_datarootdir_seen=yes;; | |
6376 | +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
6377 | + { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
6378 | +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
6379 | +_ACEOF | |
6380 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6381 | + ac_datarootdir_hack=' | |
6382 | + s&@datadir@&$datadir&g | |
6383 | + s&@docdir@&$docdir&g | |
6384 | + s&@infodir@&$infodir&g | |
6385 | + s&@localedir@&$localedir&g | |
6386 | + s&@mandir@&$mandir&g | |
6387 | + s&\\\${datarootdir}&$datarootdir&g' ;; | |
6388 | +esac | |
6389 | +_ACEOF | |
6390 | + | |
6391 | +# Neutralize VPATH when `$srcdir' = `.'. | |
6392 | +# Shell code in configure.ac might set extrasub. | |
6393 | +# FIXME: do we really want to maintain this feature? | |
6394 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6395 | +ac_sed_extra="$ac_vpsub | |
6396 | +$extrasub | |
6397 | +_ACEOF | |
6398 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6399 | +:t | |
6400 | +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
6401 | +s|@configure_input@|$ac_sed_conf_input|;t t | |
6402 | +s&@top_builddir@&$ac_top_builddir_sub&;t t | |
6403 | +s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
6404 | +s&@srcdir@&$ac_srcdir&;t t | |
6405 | +s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
6406 | +s&@top_srcdir@&$ac_top_srcdir&;t t | |
6407 | +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
6408 | +s&@builddir@&$ac_builddir&;t t | |
6409 | +s&@abs_builddir@&$ac_abs_builddir&;t t | |
6410 | +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
6411 | +s&@INSTALL@&$ac_INSTALL&;t t | |
6412 | +$ac_datarootdir_hack | |
6413 | +" | |
6414 | +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
6415 | + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
6416 | +$as_echo "$as_me: error: could not create $ac_file" >&2;} | |
6417 | + { (exit 1); exit 1; }; } | |
6418 | + | |
6419 | +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
6420 | + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
6421 | + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
6422 | + { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
6423 | +which seems to be undefined. Please make sure it is defined." >&5 | |
6424 | +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
6425 | +which seems to be undefined. Please make sure it is defined." >&2;} | |
6426 | + | |
6427 | + rm -f "$tmp/stdin" | |
6428 | + case $ac_file in | |
6429 | + -) cat "$tmp/out" && rm -f "$tmp/out";; | |
6430 | + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
6431 | + esac \ | |
6432 | + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
6433 | +$as_echo "$as_me: error: could not create $ac_file" >&2;} | |
6434 | + { (exit 1); exit 1; }; } | |
6435 | + ;; | |
6436 | + :H) | |
6437 | + # | |
6438 | + # CONFIG_HEADER | |
6439 | + # | |
6440 | + if test x"$ac_file" != x-; then | |
6441 | + { | |
6442 | + $as_echo "/* $configure_input */" \ | |
6443 | + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
6444 | + } >"$tmp/config.h" \ | |
6445 | + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
6446 | +$as_echo "$as_me: error: could not create $ac_file" >&2;} | |
6447 | + { (exit 1); exit 1; }; } | |
6448 | + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
6449 | + { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
6450 | +$as_echo "$as_me: $ac_file is unchanged" >&6;} | |
6451 | + else | |
6452 | + rm -f "$ac_file" | |
6453 | + mv "$tmp/config.h" "$ac_file" \ | |
6454 | + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
6455 | +$as_echo "$as_me: error: could not create $ac_file" >&2;} | |
6456 | + { (exit 1); exit 1; }; } | |
6457 | + fi | |
6458 | + else | |
6459 | + $as_echo "/* $configure_input */" \ | |
6460 | + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
6461 | + || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
6462 | +$as_echo "$as_me: error: could not create -" >&2;} | |
6463 | + { (exit 1); exit 1; }; } | |
6464 | + fi | |
6465 | + ;; | |
6466 | + | |
6467 | + | |
6468 | + esac | |
6469 | + | |
6470 | +done # for ac_tag | |
6471 | + | |
6472 | + | |
6473 | +{ (exit 0); exit 0; } | |
6474 | +_ACEOF | |
6475 | +chmod +x $CONFIG_STATUS | |
6476 | +ac_clean_files=$ac_clean_files_save | |
6477 | + | |
6478 | +test $ac_write_fail = 0 || | |
6479 | + { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
6480 | +$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
6481 | + { (exit 1); exit 1; }; } | |
6482 | + | |
6483 | + | |
6484 | +# configure is writing to config.log, and then calls config.status. | |
6485 | +# config.status does its own redirection, appending to config.log. | |
6486 | +# Unfortunately, on DOS this fails, as config.log is still kept open | |
6487 | +# by configure, so config.status won't be able to write to it; its | |
6488 | +# output is simply discarded. So we exec the FD to /dev/null, | |
6489 | +# effectively closing config.log, so it can be properly (re)opened and | |
6490 | +# appended to by config.status. When coming back to configure, we | |
6491 | +# need to make the FD available again. | |
6492 | +if test "$no_create" != yes; then | |
6493 | + ac_cs_success=: | |
6494 | + ac_config_status_args= | |
6495 | + test "$silent" = yes && | |
6496 | + ac_config_status_args="$ac_config_status_args --quiet" | |
6497 | + exec 5>/dev/null | |
6498 | + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
6499 | + exec 5>>config.log | |
6500 | + # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
6501 | + # would make configure fail if this is the last instruction. | |
6502 | + $ac_cs_success || { (exit 1); exit 1; } | |
6503 | +fi | |
6504 | +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
6505 | + { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
6506 | +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
6507 | +fi | |
6508 | + | |
6509 | + |
@@ -0,0 +1,66 @@ | ||
1 | +# This file was generated. | |
2 | +# It contains the lists of macros which have been traced. | |
3 | +# It can be safely removed. | |
4 | + | |
5 | +@request = ( | |
6 | + bless( [ | |
7 | + '0', | |
8 | + 1, | |
9 | + [ | |
10 | + '/usr/share/autoconf' | |
11 | + ], | |
12 | + [ | |
13 | + '/usr/share/autoconf/autoconf/autoconf.m4f', | |
14 | + 'configure.in' | |
15 | + ], | |
16 | + { | |
17 | + '_LT_AC_TAGCONFIG' => 1, | |
18 | + 'AM_PROG_F77_C_O' => 1, | |
19 | + 'AC_INIT' => 1, | |
20 | + 'm4_pattern_forbid' => 1, | |
21 | + '_AM_COND_IF' => 1, | |
22 | + 'AC_CANONICAL_TARGET' => 1, | |
23 | + 'AC_SUBST' => 1, | |
24 | + 'AC_CONFIG_LIBOBJ_DIR' => 1, | |
25 | + 'AC_FC_SRCEXT' => 1, | |
26 | + 'AC_CANONICAL_HOST' => 1, | |
27 | + 'AC_PROG_LIBTOOL' => 1, | |
28 | + 'AM_INIT_AUTOMAKE' => 1, | |
29 | + 'AC_CONFIG_SUBDIRS' => 1, | |
30 | + 'AM_AUTOMAKE_VERSION' => 1, | |
31 | + 'LT_CONFIG_LTDL_DIR' => 1, | |
32 | + 'AC_REQUIRE_AUX_FILE' => 1, | |
33 | + 'AC_CONFIG_LINKS' => 1, | |
34 | + 'm4_sinclude' => 1, | |
35 | + 'LT_SUPPORTED_TAG' => 1, | |
36 | + 'AM_MAINTAINER_MODE' => 1, | |
37 | + 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, | |
38 | + '_m4_warn' => 1, | |
39 | + 'AM_PROG_CXX_C_O' => 1, | |
40 | + '_AM_COND_ENDIF' => 1, | |
41 | + 'AM_ENABLE_MULTILIB' => 1, | |
42 | + 'AC_CONFIG_FILES' => 1, | |
43 | + 'include' => 1, | |
44 | + 'LT_INIT' => 1, | |
45 | + 'AM_GNU_GETTEXT' => 1, | |
46 | + 'AC_LIBSOURCE' => 1, | |
47 | + 'AM_PROG_FC_C_O' => 1, | |
48 | + 'AC_CANONICAL_BUILD' => 1, | |
49 | + 'AC_FC_FREEFORM' => 1, | |
50 | + 'AH_OUTPUT' => 1, | |
51 | + '_AM_SUBST_NOTMAKE' => 1, | |
52 | + 'AC_CONFIG_AUX_DIR' => 1, | |
53 | + 'sinclude' => 1, | |
54 | + 'm4_pattern_allow' => 1, | |
55 | + 'AM_PROG_CC_C_O' => 1, | |
56 | + 'AC_CANONICAL_SYSTEM' => 1, | |
57 | + 'AM_CONDITIONAL' => 1, | |
58 | + 'AC_CONFIG_HEADERS' => 1, | |
59 | + 'AC_DEFINE_TRACE_LITERAL' => 1, | |
60 | + 'm4_include' => 1, | |
61 | + '_AM_COND_ELSE' => 1, | |
62 | + 'AC_SUBST_TRACE' => 1 | |
63 | + } | |
64 | + ], 'Autom4te::Request' ) | |
65 | + ); | |
66 | + |
@@ -0,0 +1,296 @@ | ||
1 | +m4trace:configure.in:1: -1- AC_INIT([src/main.c]) | |
2 | +m4trace:configure.in:1: -1- m4_pattern_forbid([^_?A[CHUM]_]) | |
3 | +m4trace:configure.in:1: -1- m4_pattern_forbid([_AC_]) | |
4 | +m4trace:configure.in:1: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) | |
5 | +m4trace:configure.in:1: -1- m4_pattern_allow([^AS_FLAGS$]) | |
6 | +m4trace:configure.in:1: -1- m4_pattern_forbid([^_?m4_]) | |
7 | +m4trace:configure.in:1: -1- m4_pattern_forbid([^dnl$]) | |
8 | +m4trace:configure.in:1: -1- m4_pattern_forbid([^_?AS_]) | |
9 | +m4trace:configure.in:1: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}]) | |
10 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([SHELL]) | |
11 | +m4trace:configure.in:1: -1- m4_pattern_allow([^SHELL$]) | |
12 | +m4trace:configure.in:1: -1- AC_SUBST([PATH_SEPARATOR]) | |
13 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([PATH_SEPARATOR]) | |
14 | +m4trace:configure.in:1: -1- m4_pattern_allow([^PATH_SEPARATOR$]) | |
15 | +m4trace:configure.in:1: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])]) | |
16 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([PACKAGE_NAME]) | |
17 | +m4trace:configure.in:1: -1- m4_pattern_allow([^PACKAGE_NAME$]) | |
18 | +m4trace:configure.in:1: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])]) | |
19 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([PACKAGE_TARNAME]) | |
20 | +m4trace:configure.in:1: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) | |
21 | +m4trace:configure.in:1: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])]) | |
22 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([PACKAGE_VERSION]) | |
23 | +m4trace:configure.in:1: -1- m4_pattern_allow([^PACKAGE_VERSION$]) | |
24 | +m4trace:configure.in:1: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])]) | |
25 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([PACKAGE_STRING]) | |
26 | +m4trace:configure.in:1: -1- m4_pattern_allow([^PACKAGE_STRING$]) | |
27 | +m4trace:configure.in:1: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])]) | |
28 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT]) | |
29 | +m4trace:configure.in:1: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) | |
30 | +m4trace:configure.in:1: -1- AC_SUBST([exec_prefix], [NONE]) | |
31 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([exec_prefix]) | |
32 | +m4trace:configure.in:1: -1- m4_pattern_allow([^exec_prefix$]) | |
33 | +m4trace:configure.in:1: -1- AC_SUBST([prefix], [NONE]) | |
34 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([prefix]) | |
35 | +m4trace:configure.in:1: -1- m4_pattern_allow([^prefix$]) | |
36 | +m4trace:configure.in:1: -1- AC_SUBST([program_transform_name], [s,x,x,]) | |
37 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([program_transform_name]) | |
38 | +m4trace:configure.in:1: -1- m4_pattern_allow([^program_transform_name$]) | |
39 | +m4trace:configure.in:1: -1- AC_SUBST([bindir], ['${exec_prefix}/bin']) | |
40 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([bindir]) | |
41 | +m4trace:configure.in:1: -1- m4_pattern_allow([^bindir$]) | |
42 | +m4trace:configure.in:1: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin']) | |
43 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([sbindir]) | |
44 | +m4trace:configure.in:1: -1- m4_pattern_allow([^sbindir$]) | |
45 | +m4trace:configure.in:1: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec']) | |
46 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([libexecdir]) | |
47 | +m4trace:configure.in:1: -1- m4_pattern_allow([^libexecdir$]) | |
48 | +m4trace:configure.in:1: -1- AC_SUBST([datarootdir], ['${prefix}/share']) | |
49 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([datarootdir]) | |
50 | +m4trace:configure.in:1: -1- m4_pattern_allow([^datarootdir$]) | |
51 | +m4trace:configure.in:1: -1- AC_SUBST([datadir], ['${datarootdir}']) | |
52 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([datadir]) | |
53 | +m4trace:configure.in:1: -1- m4_pattern_allow([^datadir$]) | |
54 | +m4trace:configure.in:1: -1- AC_SUBST([sysconfdir], ['${prefix}/etc']) | |
55 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([sysconfdir]) | |
56 | +m4trace:configure.in:1: -1- m4_pattern_allow([^sysconfdir$]) | |
57 | +m4trace:configure.in:1: -1- AC_SUBST([sharedstatedir], ['${prefix}/com']) | |
58 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([sharedstatedir]) | |
59 | +m4trace:configure.in:1: -1- m4_pattern_allow([^sharedstatedir$]) | |
60 | +m4trace:configure.in:1: -1- AC_SUBST([localstatedir], ['${prefix}/var']) | |
61 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([localstatedir]) | |
62 | +m4trace:configure.in:1: -1- m4_pattern_allow([^localstatedir$]) | |
63 | +m4trace:configure.in:1: -1- AC_SUBST([includedir], ['${prefix}/include']) | |
64 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([includedir]) | |
65 | +m4trace:configure.in:1: -1- m4_pattern_allow([^includedir$]) | |
66 | +m4trace:configure.in:1: -1- AC_SUBST([oldincludedir], ['/usr/include']) | |
67 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([oldincludedir]) | |
68 | +m4trace:configure.in:1: -1- m4_pattern_allow([^oldincludedir$]) | |
69 | +m4trace:configure.in:1: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME], | |
70 | + ['${datarootdir}/doc/${PACKAGE_TARNAME}'], | |
71 | + ['${datarootdir}/doc/${PACKAGE}'])]) | |
72 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([docdir]) | |
73 | +m4trace:configure.in:1: -1- m4_pattern_allow([^docdir$]) | |
74 | +m4trace:configure.in:1: -1- AC_SUBST([infodir], ['${datarootdir}/info']) | |
75 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([infodir]) | |
76 | +m4trace:configure.in:1: -1- m4_pattern_allow([^infodir$]) | |
77 | +m4trace:configure.in:1: -1- AC_SUBST([htmldir], ['${docdir}']) | |
78 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([htmldir]) | |
79 | +m4trace:configure.in:1: -1- m4_pattern_allow([^htmldir$]) | |
80 | +m4trace:configure.in:1: -1- AC_SUBST([dvidir], ['${docdir}']) | |
81 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([dvidir]) | |
82 | +m4trace:configure.in:1: -1- m4_pattern_allow([^dvidir$]) | |
83 | +m4trace:configure.in:1: -1- AC_SUBST([pdfdir], ['${docdir}']) | |
84 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([pdfdir]) | |
85 | +m4trace:configure.in:1: -1- m4_pattern_allow([^pdfdir$]) | |
86 | +m4trace:configure.in:1: -1- AC_SUBST([psdir], ['${docdir}']) | |
87 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([psdir]) | |
88 | +m4trace:configure.in:1: -1- m4_pattern_allow([^psdir$]) | |
89 | +m4trace:configure.in:1: -1- AC_SUBST([libdir], ['${exec_prefix}/lib']) | |
90 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([libdir]) | |
91 | +m4trace:configure.in:1: -1- m4_pattern_allow([^libdir$]) | |
92 | +m4trace:configure.in:1: -1- AC_SUBST([localedir], ['${datarootdir}/locale']) | |
93 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([localedir]) | |
94 | +m4trace:configure.in:1: -1- m4_pattern_allow([^localedir$]) | |
95 | +m4trace:configure.in:1: -1- AC_SUBST([mandir], ['${datarootdir}/man']) | |
96 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([mandir]) | |
97 | +m4trace:configure.in:1: -1- m4_pattern_allow([^mandir$]) | |
98 | +m4trace:configure.in:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME]) | |
99 | +m4trace:configure.in:1: -1- m4_pattern_allow([^PACKAGE_NAME$]) | |
100 | +m4trace:configure.in:1: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */ | |
101 | +#undef PACKAGE_NAME]) | |
102 | +m4trace:configure.in:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME]) | |
103 | +m4trace:configure.in:1: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) | |
104 | +m4trace:configure.in:1: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */ | |
105 | +#undef PACKAGE_TARNAME]) | |
106 | +m4trace:configure.in:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION]) | |
107 | +m4trace:configure.in:1: -1- m4_pattern_allow([^PACKAGE_VERSION$]) | |
108 | +m4trace:configure.in:1: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */ | |
109 | +#undef PACKAGE_VERSION]) | |
110 | +m4trace:configure.in:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING]) | |
111 | +m4trace:configure.in:1: -1- m4_pattern_allow([^PACKAGE_STRING$]) | |
112 | +m4trace:configure.in:1: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */ | |
113 | +#undef PACKAGE_STRING]) | |
114 | +m4trace:configure.in:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT]) | |
115 | +m4trace:configure.in:1: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) | |
116 | +m4trace:configure.in:1: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */ | |
117 | +#undef PACKAGE_BUGREPORT]) | |
118 | +m4trace:configure.in:1: -1- AC_SUBST([DEFS]) | |
119 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([DEFS]) | |
120 | +m4trace:configure.in:1: -1- m4_pattern_allow([^DEFS$]) | |
121 | +m4trace:configure.in:1: -1- AC_SUBST([ECHO_C]) | |
122 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([ECHO_C]) | |
123 | +m4trace:configure.in:1: -1- m4_pattern_allow([^ECHO_C$]) | |
124 | +m4trace:configure.in:1: -1- AC_SUBST([ECHO_N]) | |
125 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([ECHO_N]) | |
126 | +m4trace:configure.in:1: -1- m4_pattern_allow([^ECHO_N$]) | |
127 | +m4trace:configure.in:1: -1- AC_SUBST([ECHO_T]) | |
128 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([ECHO_T]) | |
129 | +m4trace:configure.in:1: -1- m4_pattern_allow([^ECHO_T$]) | |
130 | +m4trace:configure.in:1: -1- AC_SUBST([LIBS]) | |
131 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([LIBS]) | |
132 | +m4trace:configure.in:1: -1- m4_pattern_allow([^LIBS$]) | |
133 | +m4trace:configure.in:1: -1- AC_SUBST([build_alias]) | |
134 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([build_alias]) | |
135 | +m4trace:configure.in:1: -1- m4_pattern_allow([^build_alias$]) | |
136 | +m4trace:configure.in:1: -1- AC_SUBST([host_alias]) | |
137 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([host_alias]) | |
138 | +m4trace:configure.in:1: -1- m4_pattern_allow([^host_alias$]) | |
139 | +m4trace:configure.in:1: -1- AC_SUBST([target_alias]) | |
140 | +m4trace:configure.in:1: -1- AC_SUBST_TRACE([target_alias]) | |
141 | +m4trace:configure.in:1: -1- m4_pattern_allow([^target_alias$]) | |
142 | +m4trace:configure.in:3: -1- AC_CONFIG_HEADERS([src/config.h]) | |
143 | +m4trace:configure.in:5: -1- AC_SUBST([CC]) | |
144 | +m4trace:configure.in:5: -1- AC_SUBST_TRACE([CC]) | |
145 | +m4trace:configure.in:5: -1- m4_pattern_allow([^CC$]) | |
146 | +m4trace:configure.in:5: -1- AC_SUBST([CFLAGS]) | |
147 | +m4trace:configure.in:5: -1- AC_SUBST_TRACE([CFLAGS]) | |
148 | +m4trace:configure.in:5: -1- m4_pattern_allow([^CFLAGS$]) | |
149 | +m4trace:configure.in:5: -1- AC_SUBST([LDFLAGS]) | |
150 | +m4trace:configure.in:5: -1- AC_SUBST_TRACE([LDFLAGS]) | |
151 | +m4trace:configure.in:5: -1- m4_pattern_allow([^LDFLAGS$]) | |
152 | +m4trace:configure.in:5: -1- AC_SUBST([LIBS]) | |
153 | +m4trace:configure.in:5: -1- AC_SUBST_TRACE([LIBS]) | |
154 | +m4trace:configure.in:5: -1- m4_pattern_allow([^LIBS$]) | |
155 | +m4trace:configure.in:5: -1- AC_SUBST([CPPFLAGS]) | |
156 | +m4trace:configure.in:5: -1- AC_SUBST_TRACE([CPPFLAGS]) | |
157 | +m4trace:configure.in:5: -1- m4_pattern_allow([^CPPFLAGS$]) | |
158 | +m4trace:configure.in:5: -1- AC_SUBST([CC]) | |
159 | +m4trace:configure.in:5: -1- AC_SUBST_TRACE([CC]) | |
160 | +m4trace:configure.in:5: -1- m4_pattern_allow([^CC$]) | |
161 | +m4trace:configure.in:5: -1- AC_SUBST([CC]) | |
162 | +m4trace:configure.in:5: -1- AC_SUBST_TRACE([CC]) | |
163 | +m4trace:configure.in:5: -1- m4_pattern_allow([^CC$]) | |
164 | +m4trace:configure.in:5: -1- AC_SUBST([CC]) | |
165 | +m4trace:configure.in:5: -1- AC_SUBST_TRACE([CC]) | |
166 | +m4trace:configure.in:5: -1- m4_pattern_allow([^CC$]) | |
167 | +m4trace:configure.in:5: -1- AC_SUBST([CC]) | |
168 | +m4trace:configure.in:5: -1- AC_SUBST_TRACE([CC]) | |
169 | +m4trace:configure.in:5: -1- m4_pattern_allow([^CC$]) | |
170 | +m4trace:configure.in:5: -1- AC_SUBST([ac_ct_CC]) | |
171 | +m4trace:configure.in:5: -1- AC_SUBST_TRACE([ac_ct_CC]) | |
172 | +m4trace:configure.in:5: -1- m4_pattern_allow([^ac_ct_CC$]) | |
173 | +m4trace:configure.in:5: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) | |
174 | +m4trace:configure.in:5: -1- AC_SUBST_TRACE([EXEEXT]) | |
175 | +m4trace:configure.in:5: -1- m4_pattern_allow([^EXEEXT$]) | |
176 | +m4trace:configure.in:5: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) | |
177 | +m4trace:configure.in:5: -1- AC_SUBST_TRACE([OBJEXT]) | |
178 | +m4trace:configure.in:5: -1- m4_pattern_allow([^OBJEXT$]) | |
179 | +m4trace:configure.in:6: -1- AC_REQUIRE_AUX_FILE([install-sh]) | |
180 | +m4trace:configure.in:6: -1- AC_SUBST([INSTALL_PROGRAM]) | |
181 | +m4trace:configure.in:6: -1- AC_SUBST_TRACE([INSTALL_PROGRAM]) | |
182 | +m4trace:configure.in:6: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) | |
183 | +m4trace:configure.in:6: -1- AC_SUBST([INSTALL_SCRIPT]) | |
184 | +m4trace:configure.in:6: -1- AC_SUBST_TRACE([INSTALL_SCRIPT]) | |
185 | +m4trace:configure.in:6: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) | |
186 | +m4trace:configure.in:6: -1- AC_SUBST([INSTALL_DATA]) | |
187 | +m4trace:configure.in:6: -1- AC_SUBST_TRACE([INSTALL_DATA]) | |
188 | +m4trace:configure.in:6: -1- m4_pattern_allow([^INSTALL_DATA$]) | |
189 | +m4trace:configure.in:27: -1- AC_DEFINE_TRACE_LITERAL([SYSTEM_MIGEMODIR]) | |
190 | +m4trace:configure.in:27: -1- m4_pattern_allow([^SYSTEM_MIGEMODIR$]) | |
191 | +m4trace:configure.in:97: -1- AC_SUBST([CFLAGS]) | |
192 | +m4trace:configure.in:97: -1- AC_SUBST_TRACE([CFLAGS]) | |
193 | +m4trace:configure.in:97: -1- m4_pattern_allow([^CFLAGS$]) | |
194 | +m4trace:configure.in:98: -1- AC_SUBST([SYSTEM_MIGEMODIR]) | |
195 | +m4trace:configure.in:98: -1- AC_SUBST_TRACE([SYSTEM_MIGEMODIR]) | |
196 | +m4trace:configure.in:98: -1- m4_pattern_allow([^SYSTEM_MIGEMODIR$]) | |
197 | +m4trace:configure.in:107: -1- AC_DEFINE_TRACE_LITERAL([__CYGWIN__]) | |
198 | +m4trace:configure.in:107: -1- m4_pattern_allow([^__CYGWIN__$]) | |
199 | +m4trace:configure.in:112: -1- AC_DEFINE_TRACE_LITERAL([__DARWIN__]) | |
200 | +m4trace:configure.in:112: -1- m4_pattern_allow([^__DARWIN__$]) | |
201 | +m4trace:configure.in:117: -1- AC_DEFINE_TRACE_LITERAL([__FREEBSD__]) | |
202 | +m4trace:configure.in:117: -1- m4_pattern_allow([^__FREEBSD__$]) | |
203 | +m4trace:configure.in:122: -1- AC_DEFINE_TRACE_LITERAL([__LINUX__]) | |
204 | +m4trace:configure.in:122: -1- m4_pattern_allow([^__LINUX__$]) | |
205 | +m4trace:configure.in:129: -1- AC_SUBST([CPP]) | |
206 | +m4trace:configure.in:129: -1- AC_SUBST_TRACE([CPP]) | |
207 | +m4trace:configure.in:129: -1- m4_pattern_allow([^CPP$]) | |
208 | +m4trace:configure.in:129: -1- AC_SUBST([CPPFLAGS]) | |
209 | +m4trace:configure.in:129: -1- AC_SUBST_TRACE([CPPFLAGS]) | |
210 | +m4trace:configure.in:129: -1- m4_pattern_allow([^CPPFLAGS$]) | |
211 | +m4trace:configure.in:129: -1- AC_SUBST([CPP]) | |
212 | +m4trace:configure.in:129: -1- AC_SUBST_TRACE([CPP]) | |
213 | +m4trace:configure.in:129: -1- m4_pattern_allow([^CPP$]) | |
214 | +m4trace:configure.in:129: -1- AC_SUBST([GREP]) | |
215 | +m4trace:configure.in:129: -1- AC_SUBST_TRACE([GREP]) | |
216 | +m4trace:configure.in:129: -1- m4_pattern_allow([^GREP$]) | |
217 | +m4trace:configure.in:129: -1- AC_SUBST([EGREP]) | |
218 | +m4trace:configure.in:129: -1- AC_SUBST_TRACE([EGREP]) | |
219 | +m4trace:configure.in:129: -1- m4_pattern_allow([^EGREP$]) | |
220 | +m4trace:configure.in:129: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) | |
221 | +m4trace:configure.in:129: -1- m4_pattern_allow([^STDC_HEADERS$]) | |
222 | +m4trace:configure.in:129: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */ | |
223 | +#undef STDC_HEADERS]) | |
224 | +m4trace:configure.in:129: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */ | |
225 | +#undef HAVE_SYS_TYPES_H]) | |
226 | +m4trace:configure.in:129: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */ | |
227 | +#undef HAVE_SYS_STAT_H]) | |
228 | +m4trace:configure.in:129: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */ | |
229 | +#undef HAVE_STDLIB_H]) | |
230 | +m4trace:configure.in:129: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */ | |
231 | +#undef HAVE_STRING_H]) | |
232 | +m4trace:configure.in:129: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */ | |
233 | +#undef HAVE_MEMORY_H]) | |
234 | +m4trace:configure.in:129: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */ | |
235 | +#undef HAVE_STRINGS_H]) | |
236 | +m4trace:configure.in:129: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */ | |
237 | +#undef HAVE_INTTYPES_H]) | |
238 | +m4trace:configure.in:129: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */ | |
239 | +#undef HAVE_STDINT_H]) | |
240 | +m4trace:configure.in:129: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */ | |
241 | +#undef HAVE_UNISTD_H]) | |
242 | +m4trace:configure.in:129: -1- AC_DEFINE_TRACE_LITERAL([HAVE_XYZSH_H]) | |
243 | +m4trace:configure.in:129: -1- m4_pattern_allow([^HAVE_XYZSH_H$]) | |
244 | +m4trace:configure.in:134: -1- AC_DEFINE_TRACE_LITERAL([HAVE_READLINE_H]) | |
245 | +m4trace:configure.in:134: -1- m4_pattern_allow([^HAVE_READLINE_H$]) | |
246 | +m4trace:configure.in:135: -1- AC_DEFINE_TRACE_LITERAL([HAVE_READLINE_HISTORY_H]) | |
247 | +m4trace:configure.in:135: -1- m4_pattern_allow([^HAVE_READLINE_HISTORY_H$]) | |
248 | +m4trace:configure.in:136: -1- _m4_warn([obsolete], [The macro `AC_HAVE_LIBRARY' is obsolete. | |
249 | +You should run autoupdate.], [../../lib/autoconf/libs.m4:159: AC_HAVE_LIBRARY is expanded from... | |
250 | +configure.in:136: the top level]) | |
251 | +m4trace:configure.in:141: -1- AC_DEFINE_TRACE_LITERAL([HAVE_NCURSES_H]) | |
252 | +m4trace:configure.in:141: -1- m4_pattern_allow([^HAVE_NCURSES_H$]) | |
253 | +m4trace:configure.in:142: -1- AC_DEFINE_TRACE_LITERAL([HAVE_NCURSES_NCURSES_H]) | |
254 | +m4trace:configure.in:142: -1- m4_pattern_allow([^HAVE_NCURSES_NCURSES_H$]) | |
255 | +m4trace:configure.in:143: -1- _m4_warn([obsolete], [The macro `AC_HAVE_LIBRARY' is obsolete. | |
256 | +You should run autoupdate.], [../../lib/autoconf/libs.m4:159: AC_HAVE_LIBRARY is expanded from... | |
257 | +configure.in:143: the top level]) | |
258 | +m4trace:configure.in:144: -1- _m4_warn([obsolete], [The macro `AC_HAVE_LIBRARY' is obsolete. | |
259 | +You should run autoupdate.], [../../lib/autoconf/libs.m4:159: AC_HAVE_LIBRARY is expanded from... | |
260 | +configure.in:144: the top level]) | |
261 | +m4trace:configure.in:148: -1- _m4_warn([obsolete], [The macro `AC_HAVE_LIBRARY' is obsolete. | |
262 | +You should run autoupdate.], [../../lib/autoconf/libs.m4:159: AC_HAVE_LIBRARY is expanded from... | |
263 | +configure.in:148: the top level]) | |
264 | +m4trace:configure.in:149: -1- _m4_warn([obsolete], [The macro `AC_HAVE_LIBRARY' is obsolete. | |
265 | +You should run autoupdate.], [../../lib/autoconf/libs.m4:159: AC_HAVE_LIBRARY is expanded from... | |
266 | +configure.in:149: the top level]) | |
267 | +m4trace:configure.in:166: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MATH_H]) | |
268 | +m4trace:configure.in:166: -1- m4_pattern_allow([^HAVE_MATH_H$]) | |
269 | +m4trace:configure.in:171: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ONIGURUMA_H]) | |
270 | +m4trace:configure.in:171: -1- m4_pattern_allow([^HAVE_ONIGURUMA_H$]) | |
271 | +m4trace:configure.in:176: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ICONV_H]) | |
272 | +m4trace:configure.in:176: -1- m4_pattern_allow([^HAVE_ICONV_H$]) | |
273 | +m4trace:configure.in:188: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MIGEMO_H]) | |
274 | +m4trace:configure.in:188: -1- m4_pattern_allow([^HAVE_MIGEMO_H$]) | |
275 | +m4trace:configure.in:191: -1- AC_SUBST([LIBS]) | |
276 | +m4trace:configure.in:191: -1- AC_SUBST_TRACE([LIBS]) | |
277 | +m4trace:configure.in:191: -1- m4_pattern_allow([^LIBS$]) | |
278 | +m4trace:configure.in:193: -1- AC_CONFIG_FILES([Makefile]) | |
279 | +m4trace:configure.in:193: -1- _m4_warn([obsolete], [AC_OUTPUT should be used without arguments. | |
280 | +You should run autoupdate.], []) | |
281 | +m4trace:configure.in:193: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) | |
282 | +m4trace:configure.in:193: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) | |
283 | +m4trace:configure.in:193: -1- m4_pattern_allow([^LIB@&t@OBJS$]) | |
284 | +m4trace:configure.in:193: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) | |
285 | +m4trace:configure.in:193: -1- AC_SUBST_TRACE([LTLIBOBJS]) | |
286 | +m4trace:configure.in:193: -1- m4_pattern_allow([^LTLIBOBJS$]) | |
287 | +m4trace:configure.in:193: -1- AC_SUBST_TRACE([top_builddir]) | |
288 | +m4trace:configure.in:193: -1- AC_SUBST_TRACE([top_build_prefix]) | |
289 | +m4trace:configure.in:193: -1- AC_SUBST_TRACE([srcdir]) | |
290 | +m4trace:configure.in:193: -1- AC_SUBST_TRACE([abs_srcdir]) | |
291 | +m4trace:configure.in:193: -1- AC_SUBST_TRACE([top_srcdir]) | |
292 | +m4trace:configure.in:193: -1- AC_SUBST_TRACE([abs_top_srcdir]) | |
293 | +m4trace:configure.in:193: -1- AC_SUBST_TRACE([builddir]) | |
294 | +m4trace:configure.in:193: -1- AC_SUBST_TRACE([abs_builddir]) | |
295 | +m4trace:configure.in:193: -1- AC_SUBST_TRACE([abs_top_builddir]) | |
296 | +m4trace:configure.in:193: -1- AC_SUBST_TRACE([INSTALL]) |
@@ -1,22 +1,18 @@ | ||
1 | 1 | #! /bin/sh |
2 | 2 | # Guess values for system-dependent variables and create Makefiles. |
3 | -# Generated by GNU Autoconf 2.68. | |
4 | -# | |
3 | +# Generated by GNU Autoconf 2.63. | |
5 | 4 | # |
6 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
7 | -# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
8 | -# Foundation, Inc. | |
9 | -# | |
10 | -# | |
6 | +# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
11 | 7 | # This configure script is free software; the Free Software Foundation |
12 | 8 | # gives unlimited permission to copy, distribute and modify it. |
13 | -## -------------------- ## | |
14 | -## M4sh Initialization. ## | |
15 | -## -------------------- ## | |
9 | +## --------------------- ## | |
10 | +## M4sh Initialization. ## | |
11 | +## --------------------- ## | |
16 | 12 | |
17 | 13 | # Be more Bourne compatible |
18 | 14 | DUALCASE=1; export DUALCASE # for MKS sh |
19 | -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
15 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
20 | 16 | emulate sh |
21 | 17 | NULLCMD=: |
22 | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
@@ -24,15 +20,23 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
24 | 20 | alias -g '${1+"$@"}'='"$@"' |
25 | 21 | setopt NO_GLOB_SUBST |
26 | 22 | else |
27 | - case `(set -o) 2>/dev/null` in #( | |
28 | - *posix*) : | |
29 | - set -o posix ;; #( | |
30 | - *) : | |
31 | - ;; | |
23 | + case `(set -o) 2>/dev/null` in | |
24 | + *posix*) set -o posix ;; | |
32 | 25 | esac |
26 | + | |
33 | 27 | fi |
34 | 28 | |
35 | 29 | |
30 | + | |
31 | + | |
32 | +# PATH needs CR | |
33 | +# Avoid depending upon Character Ranges. | |
34 | +as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | +as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | +as_cr_digits='0123456789' | |
38 | +as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | + | |
36 | 40 | as_nl=' |
37 | 41 | ' |
38 | 42 | export as_nl |
@@ -40,13 +44,7 @@ export as_nl | ||
40 | 44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
41 | 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
42 | 46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
43 | -# Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | -# but without wasting forks for bash or zsh. | |
45 | -if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | - as_echo='print -r --' | |
48 | - as_echo_n='print -rn --' | |
49 | -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | 48 | as_echo='printf %s\n' |
51 | 49 | as_echo_n='printf %s' |
52 | 50 | else |
@@ -57,7 +55,7 @@ else | ||
57 | 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | 56 | as_echo_n_body='eval |
59 | 57 | arg=$1; |
60 | - case $arg in #( | |
58 | + case $arg in | |
61 | 59 | *"$as_nl"*) |
62 | 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
63 | 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
@@ -80,6 +78,13 @@ if test "${PATH_SEPARATOR+set}" != set; then | ||
80 | 78 | } |
81 | 79 | fi |
82 | 80 | |
81 | +# Support unset when possible. | |
82 | +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
83 | + as_unset=unset | |
84 | +else | |
85 | + as_unset=false | |
86 | +fi | |
87 | + | |
83 | 88 | |
84 | 89 | # IFS |
85 | 90 | # We need space, tab and new line, in precisely that order. Quoting is |
@@ -89,16 +94,15 @@ fi | ||
89 | 94 | IFS=" "" $as_nl" |
90 | 95 | |
91 | 96 | # Find who we are. Look in the path if we contain no directory separator. |
92 | -as_myself= | |
93 | -case $0 in #(( | |
97 | +case $0 in | |
94 | 98 | *[\\/]* ) as_myself=$0 ;; |
95 | 99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
96 | 100 | for as_dir in $PATH |
97 | 101 | do |
98 | 102 | IFS=$as_save_IFS |
99 | 103 | test -z "$as_dir" && as_dir=. |
100 | - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | - done | |
104 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | +done | |
102 | 106 | IFS=$as_save_IFS |
103 | 107 | |
104 | 108 | ;; |
@@ -110,16 +114,12 @@ if test "x$as_myself" = x; then | ||
110 | 114 | fi |
111 | 115 | if test ! -f "$as_myself"; then |
112 | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
113 | - exit 1 | |
117 | + { (exit 1); exit 1; } | |
114 | 118 | fi |
115 | 119 | |
116 | -# Unset variables that we do not need and which cause bugs (e.g. in | |
117 | -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | -# suppresses any "Segmentation fault" message there. '((' could | |
119 | -# trigger a bug in pdksh 5.2.14. | |
120 | -for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | -do eval test x\${$as_var+set} = xset \ | |
122 | - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | +# Work around bugs in pre-3.0 UWIN ksh. | |
121 | +for as_var in ENV MAIL MAILPATH | |
122 | +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | 123 | done |
124 | 124 | PS1='$ ' |
125 | 125 | PS2='> ' |
@@ -131,255 +131,7 @@ export LC_ALL | ||
131 | 131 | LANGUAGE=C |
132 | 132 | export LANGUAGE |
133 | 133 | |
134 | -# CDPATH. | |
135 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | - | |
137 | -if test "x$CONFIG_SHELL" = x; then | |
138 | - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
139 | - emulate sh | |
140 | - NULLCMD=: | |
141 | - # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
142 | - # is contrary to our usage. Disable this feature. | |
143 | - alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
144 | - setopt NO_GLOB_SUBST | |
145 | -else | |
146 | - case \`(set -o) 2>/dev/null\` in #( | |
147 | - *posix*) : | |
148 | - set -o posix ;; #( | |
149 | - *) : | |
150 | - ;; | |
151 | -esac | |
152 | -fi | |
153 | -" | |
154 | - as_required="as_fn_return () { (exit \$1); } | |
155 | -as_fn_success () { as_fn_return 0; } | |
156 | -as_fn_failure () { as_fn_return 1; } | |
157 | -as_fn_ret_success () { return 0; } | |
158 | -as_fn_ret_failure () { return 1; } | |
159 | - | |
160 | -exitcode=0 | |
161 | -as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
162 | -as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
163 | -as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
164 | -as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
165 | -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
166 | - | |
167 | -else | |
168 | - exitcode=1; echo positional parameters were not saved. | |
169 | -fi | |
170 | -test x\$exitcode = x0 || exit 1" | |
171 | - as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
172 | - as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
173 | - eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
174 | - test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
175 | -test \$(( 1 + 1 )) = 2 || exit 1" | |
176 | - if (eval "$as_required") 2>/dev/null; then : | |
177 | - as_have_required=yes | |
178 | -else | |
179 | - as_have_required=no | |
180 | -fi | |
181 | - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
182 | - | |
183 | -else | |
184 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
185 | -as_found=false | |
186 | -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
187 | -do | |
188 | - IFS=$as_save_IFS | |
189 | - test -z "$as_dir" && as_dir=. | |
190 | - as_found=: | |
191 | - case $as_dir in #( | |
192 | - /*) | |
193 | - for as_base in sh bash ksh sh5; do | |
194 | - # Try only shells that exist, to save several forks. | |
195 | - as_shell=$as_dir/$as_base | |
196 | - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
197 | - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
198 | - CONFIG_SHELL=$as_shell as_have_required=yes | |
199 | - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
200 | - break 2 | |
201 | -fi | |
202 | -fi | |
203 | - done;; | |
204 | - esac | |
205 | - as_found=false | |
206 | -done | |
207 | -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
208 | - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
209 | - CONFIG_SHELL=$SHELL as_have_required=yes | |
210 | -fi; } | |
211 | -IFS=$as_save_IFS | |
212 | - | |
213 | - | |
214 | - if test "x$CONFIG_SHELL" != x; then : | |
215 | - # We cannot yet assume a decent shell, so we have to provide a | |
216 | - # neutralization value for shells without unset; and this also | |
217 | - # works around shells that cannot unset nonexistent variables. | |
218 | - # Preserve -v and -x to the replacement shell. | |
219 | - BASH_ENV=/dev/null | |
220 | - ENV=/dev/null | |
221 | - (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
222 | - export CONFIG_SHELL | |
223 | - case $- in # (((( | |
224 | - *v*x* | *x*v* ) as_opts=-vx ;; | |
225 | - *v* ) as_opts=-v ;; | |
226 | - *x* ) as_opts=-x ;; | |
227 | - * ) as_opts= ;; | |
228 | - esac | |
229 | - exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
230 | -fi | |
231 | - | |
232 | - if test x$as_have_required = xno; then : | |
233 | - $as_echo "$0: This script requires a shell more modern than all" | |
234 | - $as_echo "$0: the shells that I found on your system." | |
235 | - if test x${ZSH_VERSION+set} = xset ; then | |
236 | - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
237 | - $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
238 | - else | |
239 | - $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
240 | -$0: including any error possibly output before this | |
241 | -$0: message. Then install a modern shell, or manually run | |
242 | -$0: the script under such a shell if you do have one." | |
243 | - fi | |
244 | - exit 1 | |
245 | -fi | |
246 | -fi | |
247 | -fi | |
248 | -SHELL=${CONFIG_SHELL-/bin/sh} | |
249 | -export SHELL | |
250 | -# Unset more variables known to interfere with behavior of common tools. | |
251 | -CLICOLOR_FORCE= GREP_OPTIONS= | |
252 | -unset CLICOLOR_FORCE GREP_OPTIONS | |
253 | - | |
254 | -## --------------------- ## | |
255 | -## M4sh Shell Functions. ## | |
256 | -## --------------------- ## | |
257 | -# as_fn_unset VAR | |
258 | -# --------------- | |
259 | -# Portably unset VAR. | |
260 | -as_fn_unset () | |
261 | -{ | |
262 | - { eval $1=; unset $1;} | |
263 | -} | |
264 | -as_unset=as_fn_unset | |
265 | - | |
266 | -# as_fn_set_status STATUS | |
267 | -# ----------------------- | |
268 | -# Set $? to STATUS, without forking. | |
269 | -as_fn_set_status () | |
270 | -{ | |
271 | - return $1 | |
272 | -} # as_fn_set_status | |
273 | - | |
274 | -# as_fn_exit STATUS | |
275 | -# ----------------- | |
276 | -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
277 | -as_fn_exit () | |
278 | -{ | |
279 | - set +e | |
280 | - as_fn_set_status $1 | |
281 | - exit $1 | |
282 | -} # as_fn_exit | |
283 | - | |
284 | -# as_fn_mkdir_p | |
285 | -# ------------- | |
286 | -# Create "$as_dir" as a directory, including parents if necessary. | |
287 | -as_fn_mkdir_p () | |
288 | -{ | |
289 | - | |
290 | - case $as_dir in #( | |
291 | - -*) as_dir=./$as_dir;; | |
292 | - esac | |
293 | - test -d "$as_dir" || eval $as_mkdir_p || { | |
294 | - as_dirs= | |
295 | - while :; do | |
296 | - case $as_dir in #( | |
297 | - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
298 | - *) as_qdir=$as_dir;; | |
299 | - esac | |
300 | - as_dirs="'$as_qdir' $as_dirs" | |
301 | - as_dir=`$as_dirname -- "$as_dir" || | |
302 | -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
303 | - X"$as_dir" : 'X\(//\)[^/]' \| \ | |
304 | - X"$as_dir" : 'X\(//\)$' \| \ | |
305 | - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
306 | -$as_echo X"$as_dir" | | |
307 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
308 | - s//\1/ | |
309 | - q | |
310 | - } | |
311 | - /^X\(\/\/\)[^/].*/{ | |
312 | - s//\1/ | |
313 | - q | |
314 | - } | |
315 | - /^X\(\/\/\)$/{ | |
316 | - s//\1/ | |
317 | - q | |
318 | - } | |
319 | - /^X\(\/\).*/{ | |
320 | - s//\1/ | |
321 | - q | |
322 | - } | |
323 | - s/.*/./; q'` | |
324 | - test -d "$as_dir" && break | |
325 | - done | |
326 | - test -z "$as_dirs" || eval "mkdir $as_dirs" | |
327 | - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
328 | - | |
329 | - | |
330 | -} # as_fn_mkdir_p | |
331 | -# as_fn_append VAR VALUE | |
332 | -# ---------------------- | |
333 | -# Append the text in VALUE to the end of the definition contained in VAR. Take | |
334 | -# advantage of any shell optimizations that allow amortized linear growth over | |
335 | -# repeated appends, instead of the typical quadratic growth present in naive | |
336 | -# implementations. | |
337 | -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
338 | - eval 'as_fn_append () | |
339 | - { | |
340 | - eval $1+=\$2 | |
341 | - }' | |
342 | -else | |
343 | - as_fn_append () | |
344 | - { | |
345 | - eval $1=\$$1\$2 | |
346 | - } | |
347 | -fi # as_fn_append | |
348 | - | |
349 | -# as_fn_arith ARG... | |
350 | -# ------------------ | |
351 | -# Perform arithmetic evaluation on the ARGs, and store the result in the | |
352 | -# global $as_val. Take advantage of shells that can avoid forks. The arguments | |
353 | -# must be portable across $(()) and expr. | |
354 | -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
355 | - eval 'as_fn_arith () | |
356 | - { | |
357 | - as_val=$(( $* )) | |
358 | - }' | |
359 | -else | |
360 | - as_fn_arith () | |
361 | - { | |
362 | - as_val=`expr "$@" || test $? -eq 1` | |
363 | - } | |
364 | -fi # as_fn_arith | |
365 | - | |
366 | - | |
367 | -# as_fn_error STATUS ERROR [LINENO LOG_FD] | |
368 | -# ---------------------------------------- | |
369 | -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
370 | -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
371 | -# script with STATUS, using 1 if that was 0. | |
372 | -as_fn_error () | |
373 | -{ | |
374 | - as_status=$1; test $as_status -eq 0 && as_status=1 | |
375 | - if test "$4"; then | |
376 | - as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
377 | - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
378 | - fi | |
379 | - $as_echo "$as_me: error: $2" >&2 | |
380 | - as_fn_exit $as_status | |
381 | -} # as_fn_error | |
382 | - | |
134 | +# Required to use basename. | |
383 | 135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
384 | 136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
385 | 137 | as_expr=expr |
@@ -393,12 +145,8 @@ else | ||
393 | 145 | as_basename=false |
394 | 146 | fi |
395 | 147 | |
396 | -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
397 | - as_dirname=dirname | |
398 | -else | |
399 | - as_dirname=false | |
400 | -fi | |
401 | 148 | |
149 | +# Name of the executable. | |
402 | 150 | as_me=`$as_basename -- "$0" || |
403 | 151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
404 | 152 | X"$0" : 'X\(//\)$' \| \ |
@@ -418,127 +166,415 @@ $as_echo X/"$0" | | ||
418 | 166 | } |
419 | 167 | s/.*/./; q'` |
420 | 168 | |
421 | -# Avoid depending upon Character Ranges. | |
422 | -as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
423 | -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
424 | -as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
425 | -as_cr_digits='0123456789' | |
426 | -as_cr_alnum=$as_cr_Letters$as_cr_digits | |
169 | +# CDPATH. | |
170 | +$as_unset CDPATH | |
427 | 171 | |
428 | 172 | |
429 | - as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
430 | - as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
431 | - eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
432 | - test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
433 | - # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
434 | - sed -n ' | |
435 | - p | |
436 | - /[$]LINENO/= | |
437 | - ' <$as_myself | | |
438 | - sed ' | |
439 | - s/[$]LINENO.*/&-/ | |
440 | - t lineno | |
441 | - b | |
442 | - :lineno | |
443 | - N | |
444 | - :loop | |
445 | - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
446 | - t loop | |
447 | - s/-\n.*// | |
448 | - ' >$as_me.lineno && | |
449 | - chmod +x "$as_me.lineno" || | |
450 | - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
173 | +if test "x$CONFIG_SHELL" = x; then | |
174 | + if (eval ":") 2>/dev/null; then | |
175 | + as_have_required=yes | |
176 | +else | |
177 | + as_have_required=no | |
178 | +fi | |
451 | 179 | |
452 | - # Don't try to exec as it changes $[0], causing all sort of problems | |
453 | - # (the dirname of $[0] is not the place where we might find the | |
454 | - # original and so on. Autoconf is especially sensitive to this). | |
455 | - . "./$as_me.lineno" | |
456 | - # Exit status is that of the last command. | |
457 | - exit | |
180 | + if test $as_have_required = yes && (eval ": | |
181 | +(as_func_return () { | |
182 | + (exit \$1) | |
183 | +} | |
184 | +as_func_success () { | |
185 | + as_func_return 0 | |
186 | +} | |
187 | +as_func_failure () { | |
188 | + as_func_return 1 | |
189 | +} | |
190 | +as_func_ret_success () { | |
191 | + return 0 | |
192 | +} | |
193 | +as_func_ret_failure () { | |
194 | + return 1 | |
458 | 195 | } |
459 | 196 | |
460 | -ECHO_C= ECHO_N= ECHO_T= | |
461 | -case `echo -n x` in #((((( | |
462 | --n*) | |
463 | - case `echo 'xy\c'` in | |
464 | - *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
465 | - xy) ECHO_C='\c';; | |
466 | - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
467 | - ECHO_T=' ';; | |
468 | - esac;; | |
469 | -*) | |
470 | - ECHO_N='-n';; | |
471 | -esac | |
472 | - | |
473 | -rm -f conf$$ conf$$.exe conf$$.file | |
474 | -if test -d conf$$.dir; then | |
475 | - rm -f conf$$.dir/conf$$.file | |
197 | +exitcode=0 | |
198 | +if as_func_success; then | |
199 | + : | |
476 | 200 | else |
477 | - rm -f conf$$.dir | |
478 | - mkdir conf$$.dir 2>/dev/null | |
201 | + exitcode=1 | |
202 | + echo as_func_success failed. | |
479 | 203 | fi |
480 | -if (echo >conf$$.file) 2>/dev/null; then | |
481 | - if ln -s conf$$.file conf$$ 2>/dev/null; then | |
482 | - as_ln_s='ln -s' | |
483 | - # ... but there are two gotchas: | |
484 | - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
485 | - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
486 | - # In both cases, we have to default to `cp -p'. | |
487 | - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
488 | - as_ln_s='cp -p' | |
489 | - elif ln conf$$.file conf$$ 2>/dev/null; then | |
490 | - as_ln_s=ln | |
491 | - else | |
492 | - as_ln_s='cp -p' | |
493 | - fi | |
494 | -else | |
495 | - as_ln_s='cp -p' | |
204 | + | |
205 | +if as_func_failure; then | |
206 | + exitcode=1 | |
207 | + echo as_func_failure succeeded. | |
496 | 208 | fi |
497 | -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
498 | -rmdir conf$$.dir 2>/dev/null | |
499 | 209 | |
500 | -if mkdir -p . 2>/dev/null; then | |
501 | - as_mkdir_p='mkdir -p "$as_dir"' | |
210 | +if as_func_ret_success; then | |
211 | + : | |
502 | 212 | else |
503 | - test -d ./-p && rmdir ./-p | |
504 | - as_mkdir_p=false | |
213 | + exitcode=1 | |
214 | + echo as_func_ret_success failed. | |
505 | 215 | fi |
506 | 216 | |
507 | -if test -x / >/dev/null 2>&1; then | |
508 | - as_test_x='test -x' | |
217 | +if as_func_ret_failure; then | |
218 | + exitcode=1 | |
219 | + echo as_func_ret_failure succeeded. | |
220 | +fi | |
221 | + | |
222 | +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | + : | |
509 | 224 | else |
510 | - if ls -dL / >/dev/null 2>&1; then | |
511 | - as_ls_L_option=L | |
512 | - else | |
513 | - as_ls_L_option= | |
514 | - fi | |
515 | - as_test_x=' | |
516 | - eval sh -c '\'' | |
517 | - if test -d "$1"; then | |
518 | - test -d "$1/."; | |
519 | - else | |
520 | - case $1 in #( | |
521 | - -*)set "./$1";; | |
522 | - esac; | |
523 | - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
524 | - ???[sx]*):;;*)false;;esac;fi | |
525 | - '\'' sh | |
526 | - ' | |
225 | + exitcode=1 | |
226 | + echo positional parameters were not saved. | |
527 | 227 | fi |
528 | -as_executable_p=$as_test_x | |
529 | 228 | |
530 | -# Sed expression to map a string onto a valid CPP name. | |
531 | -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | +test \$exitcode = 0) || { (exit 1); exit 1; } | |
532 | 230 | |
533 | -# Sed expression to map a string onto a valid variable name. | |
534 | -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
231 | +( | |
232 | + as_lineno_1=\$LINENO | |
233 | + as_lineno_2=\$LINENO | |
234 | + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | +") 2> /dev/null; then | |
237 | + : | |
238 | +else | |
239 | + as_candidate_shells= | |
240 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
241 | +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
242 | +do | |
243 | + IFS=$as_save_IFS | |
244 | + test -z "$as_dir" && as_dir=. | |
245 | + case $as_dir in | |
246 | + /*) | |
247 | + for as_base in sh bash ksh sh5; do | |
248 | + as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | + done;; | |
250 | + esac | |
251 | +done | |
252 | +IFS=$as_save_IFS | |
535 | 253 | |
536 | 254 | |
537 | -test -n "$DJDIR" || exec 7<&0 </dev/null | |
538 | -exec 6>&1 | |
255 | + for as_shell in $as_candidate_shells $SHELL; do | |
256 | + # Try only shells that exist, to save several forks. | |
257 | + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | + { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | + emulate sh | |
261 | + NULLCMD=: | |
262 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
263 | + # is contrary to our usage. Disable this feature. | |
264 | + alias -g '${1+"$@"}'='"$@"' | |
265 | + setopt NO_GLOB_SUBST | |
266 | +else | |
267 | + case `(set -o) 2>/dev/null` in | |
268 | + *posix*) set -o posix ;; | |
269 | +esac | |
539 | 270 | |
540 | -# Name of the host. | |
541 | -# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
271 | +fi | |
272 | + | |
273 | + | |
274 | +: | |
275 | +_ASEOF | |
276 | +}; then | |
277 | + CONFIG_SHELL=$as_shell | |
278 | + as_have_required=yes | |
279 | + if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | + emulate sh | |
282 | + NULLCMD=: | |
283 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
284 | + # is contrary to our usage. Disable this feature. | |
285 | + alias -g '${1+"$@"}'='"$@"' | |
286 | + setopt NO_GLOB_SUBST | |
287 | +else | |
288 | + case `(set -o) 2>/dev/null` in | |
289 | + *posix*) set -o posix ;; | |
290 | +esac | |
291 | + | |
292 | +fi | |
293 | + | |
294 | + | |
295 | +: | |
296 | +(as_func_return () { | |
297 | + (exit $1) | |
298 | +} | |
299 | +as_func_success () { | |
300 | + as_func_return 0 | |
301 | +} | |
302 | +as_func_failure () { | |
303 | + as_func_return 1 | |
304 | +} | |
305 | +as_func_ret_success () { | |
306 | + return 0 | |
307 | +} | |
308 | +as_func_ret_failure () { | |
309 | + return 1 | |
310 | +} | |
311 | + | |
312 | +exitcode=0 | |
313 | +if as_func_success; then | |
314 | + : | |
315 | +else | |
316 | + exitcode=1 | |
317 | + echo as_func_success failed. | |
318 | +fi | |
319 | + | |
320 | +if as_func_failure; then | |
321 | + exitcode=1 | |
322 | + echo as_func_failure succeeded. | |
323 | +fi | |
324 | + | |
325 | +if as_func_ret_success; then | |
326 | + : | |
327 | +else | |
328 | + exitcode=1 | |
329 | + echo as_func_ret_success failed. | |
330 | +fi | |
331 | + | |
332 | +if as_func_ret_failure; then | |
333 | + exitcode=1 | |
334 | + echo as_func_ret_failure succeeded. | |
335 | +fi | |
336 | + | |
337 | +if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | + : | |
339 | +else | |
340 | + exitcode=1 | |
341 | + echo positional parameters were not saved. | |
342 | +fi | |
343 | + | |
344 | +test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | + | |
346 | +( | |
347 | + as_lineno_1=$LINENO | |
348 | + as_lineno_2=$LINENO | |
349 | + test "x$as_lineno_1" != "x$as_lineno_2" && | |
350 | + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
351 | + | |
352 | +_ASEOF | |
353 | +}; then | |
354 | + break | |
355 | +fi | |
356 | + | |
357 | +fi | |
358 | + | |
359 | + done | |
360 | + | |
361 | + if test "x$CONFIG_SHELL" != x; then | |
362 | + for as_var in BASH_ENV ENV | |
363 | + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
364 | + done | |
365 | + export CONFIG_SHELL | |
366 | + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
367 | +fi | |
368 | + | |
369 | + | |
370 | + if test $as_have_required = no; then | |
371 | + echo This script requires a shell more modern than all the | |
372 | + echo shells that I found on your system. Please install a | |
373 | + echo modern shell, or manually run the script under such a | |
374 | + echo shell if you do have one. | |
375 | + { (exit 1); exit 1; } | |
376 | +fi | |
377 | + | |
378 | + | |
379 | +fi | |
380 | + | |
381 | +fi | |
382 | + | |
383 | + | |
384 | + | |
385 | +(eval "as_func_return () { | |
386 | + (exit \$1) | |
387 | +} | |
388 | +as_func_success () { | |
389 | + as_func_return 0 | |
390 | +} | |
391 | +as_func_failure () { | |
392 | + as_func_return 1 | |
393 | +} | |
394 | +as_func_ret_success () { | |
395 | + return 0 | |
396 | +} | |
397 | +as_func_ret_failure () { | |
398 | + return 1 | |
399 | +} | |
400 | + | |
401 | +exitcode=0 | |
402 | +if as_func_success; then | |
403 | + : | |
404 | +else | |
405 | + exitcode=1 | |
406 | + echo as_func_success failed. | |
407 | +fi | |
408 | + | |
409 | +if as_func_failure; then | |
410 | + exitcode=1 | |
411 | + echo as_func_failure succeeded. | |
412 | +fi | |
413 | + | |
414 | +if as_func_ret_success; then | |
415 | + : | |
416 | +else | |
417 | + exitcode=1 | |
418 | + echo as_func_ret_success failed. | |
419 | +fi | |
420 | + | |
421 | +if as_func_ret_failure; then | |
422 | + exitcode=1 | |
423 | + echo as_func_ret_failure succeeded. | |
424 | +fi | |
425 | + | |
426 | +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | + : | |
428 | +else | |
429 | + exitcode=1 | |
430 | + echo positional parameters were not saved. | |
431 | +fi | |
432 | + | |
433 | +test \$exitcode = 0") || { | |
434 | + echo No shell found that supports shell functions. | |
435 | + echo Please tell bug-autoconf@gnu.org about your system, | |
436 | + echo including any error possibly output before this message. | |
437 | + echo This can help us improve future autoconf versions. | |
438 | + echo Configuration will now proceed without shell functions. | |
439 | +} | |
440 | + | |
441 | + | |
442 | + | |
443 | + as_lineno_1=$LINENO | |
444 | + as_lineno_2=$LINENO | |
445 | + test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
447 | + | |
448 | + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | + # uniformly replaced by the line number. The first 'sed' inserts a | |
450 | + # line-number line after each line using $LINENO; the second 'sed' | |
451 | + # does the real work. The second script uses 'N' to pair each | |
452 | + # line-number line with the line containing $LINENO, and appends | |
453 | + # trailing '-' during substitution so that $LINENO is not a special | |
454 | + # case at line end. | |
455 | + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
456 | + # scripts with optimization help from Paolo Bonzini. Blame Lee | |
457 | + # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | + sed -n ' | |
459 | + p | |
460 | + /[$]LINENO/= | |
461 | + ' <$as_myself | | |
462 | + sed ' | |
463 | + s/[$]LINENO.*/&-/ | |
464 | + t lineno | |
465 | + b | |
466 | + :lineno | |
467 | + N | |
468 | + :loop | |
469 | + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
470 | + t loop | |
471 | + s/-\n.*// | |
472 | + ' >$as_me.lineno && | |
473 | + chmod +x "$as_me.lineno" || | |
474 | + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
475 | + { (exit 1); exit 1; }; } | |
476 | + | |
477 | + # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | + # (the dirname of $[0] is not the place where we might find the | |
479 | + # original and so on. Autoconf is especially sensitive to this). | |
480 | + . "./$as_me.lineno" | |
481 | + # Exit status is that of the last command. | |
482 | + exit | |
483 | +} | |
484 | + | |
485 | + | |
486 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
487 | + as_dirname=dirname | |
488 | +else | |
489 | + as_dirname=false | |
490 | +fi | |
491 | + | |
492 | +ECHO_C= ECHO_N= ECHO_T= | |
493 | +case `echo -n x` in | |
494 | +-n*) | |
495 | + case `echo 'x\c'` in | |
496 | + *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | + *) ECHO_C='\c';; | |
498 | + esac;; | |
499 | +*) | |
500 | + ECHO_N='-n';; | |
501 | +esac | |
502 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
503 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
504 | + as_expr=expr | |
505 | +else | |
506 | + as_expr=false | |
507 | +fi | |
508 | + | |
509 | +rm -f conf$$ conf$$.exe conf$$.file | |
510 | +if test -d conf$$.dir; then | |
511 | + rm -f conf$$.dir/conf$$.file | |
512 | +else | |
513 | + rm -f conf$$.dir | |
514 | + mkdir conf$$.dir 2>/dev/null | |
515 | +fi | |
516 | +if (echo >conf$$.file) 2>/dev/null; then | |
517 | + if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | + as_ln_s='ln -s' | |
519 | + # ... but there are two gotchas: | |
520 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | + # In both cases, we have to default to `cp -p'. | |
523 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | + as_ln_s='cp -p' | |
525 | + elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | + as_ln_s=ln | |
527 | + else | |
528 | + as_ln_s='cp -p' | |
529 | + fi | |
530 | +else | |
531 | + as_ln_s='cp -p' | |
532 | +fi | |
533 | +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
534 | +rmdir conf$$.dir 2>/dev/null | |
535 | + | |
536 | +if mkdir -p . 2>/dev/null; then | |
537 | + as_mkdir_p=: | |
538 | +else | |
539 | + test -d ./-p && rmdir ./-p | |
540 | + as_mkdir_p=false | |
541 | +fi | |
542 | + | |
543 | +if test -x / >/dev/null 2>&1; then | |
544 | + as_test_x='test -x' | |
545 | +else | |
546 | + if ls -dL / >/dev/null 2>&1; then | |
547 | + as_ls_L_option=L | |
548 | + else | |
549 | + as_ls_L_option= | |
550 | + fi | |
551 | + as_test_x=' | |
552 | + eval sh -c '\'' | |
553 | + if test -d "$1"; then | |
554 | + test -d "$1/."; | |
555 | + else | |
556 | + case $1 in | |
557 | + -*)set "./$1";; | |
558 | + esac; | |
559 | + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | + ???[sx]*):;;*)false;;esac;fi | |
561 | + '\'' sh | |
562 | + ' | |
563 | +fi | |
564 | +as_executable_p=$as_test_x | |
565 | + | |
566 | +# Sed expression to map a string onto a valid CPP name. | |
567 | +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
568 | + | |
569 | +# Sed expression to map a string onto a valid variable name. | |
570 | +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
571 | + | |
572 | + | |
573 | + | |
574 | +exec 7<&0 </dev/null 6>&1 | |
575 | + | |
576 | +# Name of the host. | |
577 | +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
542 | 578 | # so uname gets run too. |
543 | 579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
544 | 580 |
@@ -553,6 +589,7 @@ cross_compiling=no | ||
553 | 589 | subdirs= |
554 | 590 | MFLAGS= |
555 | 591 | MAKEFLAGS= |
592 | +SHELL=${CONFIG_SHELL-/bin/sh} | |
556 | 593 | |
557 | 594 | # Identity of this package. |
558 | 595 | PACKAGE_NAME= |
@@ -560,7 +597,6 @@ PACKAGE_TARNAME= | ||
560 | 597 | PACKAGE_VERSION= |
561 | 598 | PACKAGE_STRING= |
562 | 599 | PACKAGE_BUGREPORT= |
563 | -PACKAGE_URL= | |
564 | 600 | |
565 | 601 | ac_unique_file="src/main.c" |
566 | 602 | # Factoring default headers for most tests. |
@@ -645,7 +681,6 @@ bindir | ||
645 | 681 | program_transform_name |
646 | 682 | prefix |
647 | 683 | exec_prefix |
648 | -PACKAGE_URL | |
649 | 684 | PACKAGE_BUGREPORT |
650 | 685 | PACKAGE_STRING |
651 | 686 | PACKAGE_VERSION |
@@ -736,9 +771,8 @@ do | ||
736 | 771 | fi |
737 | 772 | |
738 | 773 | case $ac_option in |
739 | - *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
740 | - *=) ac_optarg= ;; | |
741 | - *) ac_optarg=yes ;; | |
774 | + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
775 | + *) ac_optarg=yes ;; | |
742 | 776 | esac |
743 | 777 | |
744 | 778 | # Accept the important Cygnus configure options, so we can diagnose typos. |
@@ -783,7 +817,8 @@ do | ||
783 | 817 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
784 | 818 | # Reject names that are not valid shell variable names. |
785 | 819 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
786 | - as_fn_error $? "invalid feature name: $ac_useropt" | |
820 | + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
821 | + { (exit 1); exit 1; }; } | |
787 | 822 | ac_useropt_orig=$ac_useropt |
788 | 823 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
789 | 824 | case $ac_user_opts in |
@@ -809,7 +844,8 @@ do | ||
809 | 844 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
810 | 845 | # Reject names that are not valid shell variable names. |
811 | 846 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
812 | - as_fn_error $? "invalid feature name: $ac_useropt" | |
847 | + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
848 | + { (exit 1); exit 1; }; } | |
813 | 849 | ac_useropt_orig=$ac_useropt |
814 | 850 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
815 | 851 | case $ac_user_opts in |
@@ -1013,7 +1049,8 @@ do | ||
1013 | 1049 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1014 | 1050 | # Reject names that are not valid shell variable names. |
1015 | 1051 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1016 | - as_fn_error $? "invalid package name: $ac_useropt" | |
1052 | + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1053 | + { (exit 1); exit 1; }; } | |
1017 | 1054 | ac_useropt_orig=$ac_useropt |
1018 | 1055 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1019 | 1056 | case $ac_user_opts in |
@@ -1029,7 +1066,8 @@ do | ||
1029 | 1066 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1030 | 1067 | # Reject names that are not valid shell variable names. |
1031 | 1068 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1032 | - as_fn_error $? "invalid package name: $ac_useropt" | |
1069 | + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1070 | + { (exit 1); exit 1; }; } | |
1033 | 1071 | ac_useropt_orig=$ac_useropt |
1034 | 1072 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1035 | 1073 | case $ac_user_opts in |
@@ -1059,17 +1097,17 @@ do | ||
1059 | 1097 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1060 | 1098 | x_libraries=$ac_optarg ;; |
1061 | 1099 | |
1062 | - -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1063 | -Try \`$0 --help' for more information" | |
1100 | + -*) { $as_echo "$as_me: error: unrecognized option: $ac_option | |
1101 | +Try \`$0 --help' for more information." >&2 | |
1102 | + { (exit 1); exit 1; }; } | |
1064 | 1103 | ;; |
1065 | 1104 | |
1066 | 1105 | *=*) |
1067 | 1106 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1068 | 1107 | # Reject names that are not valid shell variable names. |
1069 | - case $ac_envvar in #( | |
1070 | - '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1071 | - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1072 | - esac | |
1108 | + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1109 | + { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1110 | + { (exit 1); exit 1; }; } | |
1073 | 1111 | eval $ac_envvar=\$ac_optarg |
1074 | 1112 | export $ac_envvar ;; |
1075 | 1113 |
@@ -1078,7 +1116,7 @@ Try \`$0 --help' for more information" | ||
1078 | 1116 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1079 | 1117 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1080 | 1118 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1081 | - : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1119 | + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1082 | 1120 | ;; |
1083 | 1121 | |
1084 | 1122 | esac |
@@ -1086,13 +1124,15 @@ done | ||
1086 | 1124 | |
1087 | 1125 | if test -n "$ac_prev"; then |
1088 | 1126 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1089 | - as_fn_error $? "missing argument to $ac_option" | |
1127 | + { $as_echo "$as_me: error: missing argument to $ac_option" >&2 | |
1128 | + { (exit 1); exit 1; }; } | |
1090 | 1129 | fi |
1091 | 1130 | |
1092 | 1131 | if test -n "$ac_unrecognized_opts"; then |
1093 | 1132 | case $enable_option_checking in |
1094 | 1133 | no) ;; |
1095 | - fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1134 | + fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1135 | + { (exit 1); exit 1; }; } ;; | |
1096 | 1136 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1097 | 1137 | esac |
1098 | 1138 | fi |
@@ -1115,7 +1155,8 @@ do | ||
1115 | 1155 | [\\/$]* | ?:[\\/]* ) continue;; |
1116 | 1156 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1117 | 1157 | esac |
1118 | - as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1158 | + { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1159 | + { (exit 1); exit 1; }; } | |
1119 | 1160 | done |
1120 | 1161 | |
1121 | 1162 | # There might be people who depend on the old broken behavior: `$host' |
@@ -1129,8 +1170,8 @@ target=$target_alias | ||
1129 | 1170 | if test "x$host_alias" != x; then |
1130 | 1171 | if test "x$build_alias" = x; then |
1131 | 1172 | cross_compiling=maybe |
1132 | - $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | |
1133 | - If a cross compiler is detected then cross compile mode will be used" >&2 | |
1173 | + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1174 | + If a cross compiler is detected then cross compile mode will be used." >&2 | |
1134 | 1175 | elif test "x$build_alias" != "x$host_alias"; then |
1135 | 1176 | cross_compiling=yes |
1136 | 1177 | fi |
@@ -1145,9 +1186,11 @@ test "$silent" = yes && exec 6>/dev/null | ||
1145 | 1186 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1146 | 1187 | ac_ls_di=`ls -di .` && |
1147 | 1188 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1148 | - as_fn_error $? "working directory cannot be determined" | |
1189 | + { $as_echo "$as_me: error: working directory cannot be determined" >&2 | |
1190 | + { (exit 1); exit 1; }; } | |
1149 | 1191 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1150 | - as_fn_error $? "pwd does not report name of working directory" | |
1192 | + { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1193 | + { (exit 1); exit 1; }; } | |
1151 | 1194 | |
1152 | 1195 | |
1153 | 1196 | # Find the source files, if location was not specified. |
@@ -1186,11 +1229,13 @@ else | ||
1186 | 1229 | fi |
1187 | 1230 | if test ! -r "$srcdir/$ac_unique_file"; then |
1188 | 1231 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1189 | - as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1232 | + { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1233 | + { (exit 1); exit 1; }; } | |
1190 | 1234 | fi |
1191 | 1235 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1192 | 1236 | ac_abs_confdir=`( |
1193 | - cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1237 | + cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 | |
1238 | + { (exit 1); exit 1; }; } | |
1194 | 1239 | pwd)` |
1195 | 1240 | # When building in place, set srcdir=. |
1196 | 1241 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
@@ -1230,7 +1275,7 @@ Configuration: | ||
1230 | 1275 | --help=short display options specific to this package |
1231 | 1276 | --help=recursive display the short help of all the included packages |
1232 | 1277 | -V, --version display version information and exit |
1233 | - -q, --quiet, --silent do not print \`checking ...' messages | |
1278 | + -q, --quiet, --silent do not print \`checking...' messages | |
1234 | 1279 | --cache-file=FILE cache test results in FILE [disabled] |
1235 | 1280 | -C, --config-cache alias for \`--cache-file=config.cache' |
1236 | 1281 | -n, --no-create do not create output files |
@@ -1297,14 +1342,13 @@ Some influential environment variables: | ||
1297 | 1342 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1298 | 1343 | nonstandard directory <lib dir> |
1299 | 1344 | LIBS libraries to pass to the linker, e.g. -l<library> |
1300 | - CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1345 | + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1301 | 1346 | you have headers in a nonstandard directory <include dir> |
1302 | 1347 | CPP C preprocessor |
1303 | 1348 | |
1304 | 1349 | Use these variables to override the choices made by `configure' or to help |
1305 | 1350 | it to find libraries and programs with nonstandard names/locations. |
1306 | 1351 | |
1307 | -Report bugs to the package provider. | |
1308 | 1352 | _ACEOF |
1309 | 1353 | ac_status=$? |
1310 | 1354 | fi |
@@ -1368,342 +1412,58 @@ test -n "$ac_init_help" && exit $ac_status | ||
1368 | 1412 | if $ac_init_version; then |
1369 | 1413 | cat <<\_ACEOF |
1370 | 1414 | configure |
1371 | -generated by GNU Autoconf 2.68 | |
1415 | +generated by GNU Autoconf 2.63 | |
1372 | 1416 | |
1373 | -Copyright (C) 2010 Free Software Foundation, Inc. | |
1417 | +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1418 | +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
1374 | 1419 | This configure script is free software; the Free Software Foundation |
1375 | 1420 | gives unlimited permission to copy, distribute and modify it. |
1376 | 1421 | _ACEOF |
1377 | 1422 | exit |
1378 | 1423 | fi |
1424 | +cat >config.log <<_ACEOF | |
1425 | +This file contains any messages produced by compilers while | |
1426 | +running configure, to aid debugging if configure makes a mistake. | |
1427 | + | |
1428 | +It was created by $as_me, which was | |
1429 | +generated by GNU Autoconf 2.63. Invocation command line was | |
1379 | 1430 | |
1380 | -## ------------------------ ## | |
1381 | -## Autoconf initialization. ## | |
1382 | -## ------------------------ ## | |
1431 | + $ $0 $@ | |
1383 | 1432 | |
1384 | -# ac_fn_c_try_compile LINENO | |
1385 | -# -------------------------- | |
1386 | -# Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1387 | -ac_fn_c_try_compile () | |
1433 | +_ACEOF | |
1434 | +exec 5>>config.log | |
1388 | 1435 | { |
1389 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1390 | - rm -f conftest.$ac_objext | |
1391 | - if { { ac_try="$ac_compile" | |
1392 | -case "(($ac_try" in | |
1393 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1394 | - *) ac_try_echo=$ac_try;; | |
1395 | -esac | |
1396 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1397 | -$as_echo "$ac_try_echo"; } >&5 | |
1398 | - (eval "$ac_compile") 2>conftest.err | |
1399 | - ac_status=$? | |
1400 | - if test -s conftest.err; then | |
1401 | - grep -v '^ *+' conftest.err >conftest.er1 | |
1402 | - cat conftest.er1 >&5 | |
1403 | - mv -f conftest.er1 conftest.err | |
1404 | - fi | |
1405 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1406 | - test $ac_status = 0; } && { | |
1407 | - test -z "$ac_c_werror_flag" || | |
1408 | - test ! -s conftest.err | |
1409 | - } && test -s conftest.$ac_objext; then : | |
1410 | - ac_retval=0 | |
1411 | -else | |
1412 | - $as_echo "$as_me: failed program was:" >&5 | |
1413 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
1436 | +cat <<_ASUNAME | |
1437 | +## --------- ## | |
1438 | +## Platform. ## | |
1439 | +## --------- ## | |
1414 | 1440 | |
1415 | - ac_retval=1 | |
1416 | -fi | |
1417 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1418 | - as_fn_set_status $ac_retval | |
1441 | +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1442 | +uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1443 | +uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1444 | +uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1445 | +uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1419 | 1446 | |
1420 | -} # ac_fn_c_try_compile | |
1447 | +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1448 | +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1421 | 1449 | |
1422 | -# ac_fn_c_try_cpp LINENO | |
1423 | -# ---------------------- | |
1424 | -# Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1425 | -ac_fn_c_try_cpp () | |
1426 | -{ | |
1427 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1428 | - if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1429 | -case "(($ac_try" in | |
1430 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1431 | - *) ac_try_echo=$ac_try;; | |
1432 | -esac | |
1433 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1434 | -$as_echo "$ac_try_echo"; } >&5 | |
1435 | - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1436 | - ac_status=$? | |
1437 | - if test -s conftest.err; then | |
1438 | - grep -v '^ *+' conftest.err >conftest.er1 | |
1439 | - cat conftest.er1 >&5 | |
1440 | - mv -f conftest.er1 conftest.err | |
1441 | - fi | |
1442 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1443 | - test $ac_status = 0; } > conftest.i && { | |
1444 | - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1445 | - test ! -s conftest.err | |
1446 | - }; then : | |
1447 | - ac_retval=0 | |
1448 | -else | |
1449 | - $as_echo "$as_me: failed program was:" >&5 | |
1450 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
1450 | +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1451 | +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1452 | +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1453 | +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1454 | +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1455 | +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1456 | +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1451 | 1457 | |
1452 | - ac_retval=1 | |
1453 | -fi | |
1454 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1455 | - as_fn_set_status $ac_retval | |
1456 | - | |
1457 | -} # ac_fn_c_try_cpp | |
1458 | - | |
1459 | -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1460 | -# ------------------------------------------------------- | |
1461 | -# Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1462 | -# the include files in INCLUDES and setting the cache variable VAR | |
1463 | -# accordingly. | |
1464 | -ac_fn_c_check_header_mongrel () | |
1465 | -{ | |
1466 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1467 | - if eval \${$3+:} false; then : | |
1468 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1469 | -$as_echo_n "checking for $2... " >&6; } | |
1470 | -if eval \${$3+:} false; then : | |
1471 | - $as_echo_n "(cached) " >&6 | |
1472 | -fi | |
1473 | -eval ac_res=\$$3 | |
1474 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1475 | -$as_echo "$ac_res" >&6; } | |
1476 | -else | |
1477 | - # Is the header compilable? | |
1478 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1479 | -$as_echo_n "checking $2 usability... " >&6; } | |
1480 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1481 | -/* end confdefs.h. */ | |
1482 | -$4 | |
1483 | -#include <$2> | |
1484 | -_ACEOF | |
1485 | -if ac_fn_c_try_compile "$LINENO"; then : | |
1486 | - ac_header_compiler=yes | |
1487 | -else | |
1488 | - ac_header_compiler=no | |
1489 | -fi | |
1490 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1491 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1492 | -$as_echo "$ac_header_compiler" >&6; } | |
1493 | - | |
1494 | -# Is the header present? | |
1495 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1496 | -$as_echo_n "checking $2 presence... " >&6; } | |
1497 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1498 | -/* end confdefs.h. */ | |
1499 | -#include <$2> | |
1500 | -_ACEOF | |
1501 | -if ac_fn_c_try_cpp "$LINENO"; then : | |
1502 | - ac_header_preproc=yes | |
1503 | -else | |
1504 | - ac_header_preproc=no | |
1505 | -fi | |
1506 | -rm -f conftest.err conftest.i conftest.$ac_ext | |
1507 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1508 | -$as_echo "$ac_header_preproc" >&6; } | |
1509 | - | |
1510 | -# So? What about this header? | |
1511 | -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1512 | - yes:no: ) | |
1513 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1514 | -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1515 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1516 | -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1517 | - ;; | |
1518 | - no:yes:* ) | |
1519 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1520 | -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1521 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1522 | -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1523 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1524 | -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1525 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1526 | -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1527 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1528 | -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1529 | - ;; | |
1530 | -esac | |
1531 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1532 | -$as_echo_n "checking for $2... " >&6; } | |
1533 | -if eval \${$3+:} false; then : | |
1534 | - $as_echo_n "(cached) " >&6 | |
1535 | -else | |
1536 | - eval "$3=\$ac_header_compiler" | |
1537 | -fi | |
1538 | -eval ac_res=\$$3 | |
1539 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1540 | -$as_echo "$ac_res" >&6; } | |
1541 | -fi | |
1542 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1543 | - | |
1544 | -} # ac_fn_c_check_header_mongrel | |
1545 | - | |
1546 | -# ac_fn_c_try_run LINENO | |
1547 | -# ---------------------- | |
1548 | -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1549 | -# that executables *can* be run. | |
1550 | -ac_fn_c_try_run () | |
1551 | -{ | |
1552 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1553 | - if { { ac_try="$ac_link" | |
1554 | -case "(($ac_try" in | |
1555 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1556 | - *) ac_try_echo=$ac_try;; | |
1557 | -esac | |
1558 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1559 | -$as_echo "$ac_try_echo"; } >&5 | |
1560 | - (eval "$ac_link") 2>&5 | |
1561 | - ac_status=$? | |
1562 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1563 | - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1564 | - { { case "(($ac_try" in | |
1565 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1566 | - *) ac_try_echo=$ac_try;; | |
1567 | -esac | |
1568 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1569 | -$as_echo "$ac_try_echo"; } >&5 | |
1570 | - (eval "$ac_try") 2>&5 | |
1571 | - ac_status=$? | |
1572 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1573 | - test $ac_status = 0; }; }; then : | |
1574 | - ac_retval=0 | |
1575 | -else | |
1576 | - $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1577 | - $as_echo "$as_me: failed program was:" >&5 | |
1578 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
1579 | - | |
1580 | - ac_retval=$ac_status | |
1581 | -fi | |
1582 | - rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1583 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1584 | - as_fn_set_status $ac_retval | |
1585 | - | |
1586 | -} # ac_fn_c_try_run | |
1587 | - | |
1588 | -# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1589 | -# ------------------------------------------------------- | |
1590 | -# Tests whether HEADER exists and can be compiled using the include files in | |
1591 | -# INCLUDES, setting the cache variable VAR accordingly. | |
1592 | -ac_fn_c_check_header_compile () | |
1593 | -{ | |
1594 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1595 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1596 | -$as_echo_n "checking for $2... " >&6; } | |
1597 | -if eval \${$3+:} false; then : | |
1598 | - $as_echo_n "(cached) " >&6 | |
1599 | -else | |
1600 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1601 | -/* end confdefs.h. */ | |
1602 | -$4 | |
1603 | -#include <$2> | |
1604 | -_ACEOF | |
1605 | -if ac_fn_c_try_compile "$LINENO"; then : | |
1606 | - eval "$3=yes" | |
1607 | -else | |
1608 | - eval "$3=no" | |
1609 | -fi | |
1610 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1611 | -fi | |
1612 | -eval ac_res=\$$3 | |
1613 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1614 | -$as_echo "$ac_res" >&6; } | |
1615 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1616 | - | |
1617 | -} # ac_fn_c_check_header_compile | |
1618 | - | |
1619 | -# ac_fn_c_try_link LINENO | |
1620 | -# ----------------------- | |
1621 | -# Try to link conftest.$ac_ext, and return whether this succeeded. | |
1622 | -ac_fn_c_try_link () | |
1623 | -{ | |
1624 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1625 | - rm -f conftest.$ac_objext conftest$ac_exeext | |
1626 | - if { { ac_try="$ac_link" | |
1627 | -case "(($ac_try" in | |
1628 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1629 | - *) ac_try_echo=$ac_try;; | |
1630 | -esac | |
1631 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1632 | -$as_echo "$ac_try_echo"; } >&5 | |
1633 | - (eval "$ac_link") 2>conftest.err | |
1634 | - ac_status=$? | |
1635 | - if test -s conftest.err; then | |
1636 | - grep -v '^ *+' conftest.err >conftest.er1 | |
1637 | - cat conftest.er1 >&5 | |
1638 | - mv -f conftest.er1 conftest.err | |
1639 | - fi | |
1640 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1641 | - test $ac_status = 0; } && { | |
1642 | - test -z "$ac_c_werror_flag" || | |
1643 | - test ! -s conftest.err | |
1644 | - } && test -s conftest$ac_exeext && { | |
1645 | - test "$cross_compiling" = yes || | |
1646 | - $as_test_x conftest$ac_exeext | |
1647 | - }; then : | |
1648 | - ac_retval=0 | |
1649 | -else | |
1650 | - $as_echo "$as_me: failed program was:" >&5 | |
1651 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
1652 | - | |
1653 | - ac_retval=1 | |
1654 | -fi | |
1655 | - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1656 | - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1657 | - # interfere with the next link command; also delete a directory that is | |
1658 | - # left behind by Apple's compiler. We do this before executing the actions. | |
1659 | - rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1660 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1661 | - as_fn_set_status $ac_retval | |
1662 | - | |
1663 | -} # ac_fn_c_try_link | |
1664 | -cat >config.log <<_ACEOF | |
1665 | -This file contains any messages produced by compilers while | |
1666 | -running configure, to aid debugging if configure makes a mistake. | |
1667 | - | |
1668 | -It was created by $as_me, which was | |
1669 | -generated by GNU Autoconf 2.68. Invocation command line was | |
1670 | - | |
1671 | - $ $0 $@ | |
1672 | - | |
1673 | -_ACEOF | |
1674 | -exec 5>>config.log | |
1675 | -{ | |
1676 | -cat <<_ASUNAME | |
1677 | -## --------- ## | |
1678 | -## Platform. ## | |
1679 | -## --------- ## | |
1680 | - | |
1681 | -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1682 | -uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1683 | -uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1684 | -uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1685 | -uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1686 | - | |
1687 | -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1688 | -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1689 | - | |
1690 | -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1691 | -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1692 | -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1693 | -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1694 | -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1695 | -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1696 | -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1697 | - | |
1698 | -_ASUNAME | |
1458 | +_ASUNAME | |
1699 | 1459 | |
1700 | 1460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1701 | 1461 | for as_dir in $PATH |
1702 | 1462 | do |
1703 | 1463 | IFS=$as_save_IFS |
1704 | 1464 | test -z "$as_dir" && as_dir=. |
1705 | - $as_echo "PATH: $as_dir" | |
1706 | - done | |
1465 | + $as_echo "PATH: $as_dir" | |
1466 | +done | |
1707 | 1467 | IFS=$as_save_IFS |
1708 | 1468 | |
1709 | 1469 | } >&5 |
@@ -1740,9 +1500,9 @@ do | ||
1740 | 1500 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1741 | 1501 | esac |
1742 | 1502 | case $ac_pass in |
1743 | - 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1503 | + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1744 | 1504 | 2) |
1745 | - as_fn_append ac_configure_args1 " '$ac_arg'" | |
1505 | + ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1746 | 1506 | if test $ac_must_keep_next = true; then |
1747 | 1507 | ac_must_keep_next=false # Got value, back to normal. |
1748 | 1508 | else |
@@ -1758,13 +1518,13 @@ do | ||
1758 | 1518 | -* ) ac_must_keep_next=true ;; |
1759 | 1519 | esac |
1760 | 1520 | fi |
1761 | - as_fn_append ac_configure_args " '$ac_arg'" | |
1521 | + ac_configure_args="$ac_configure_args '$ac_arg'" | |
1762 | 1522 | ;; |
1763 | 1523 | esac |
1764 | 1524 | done |
1765 | 1525 | done |
1766 | -{ ac_configure_args0=; unset ac_configure_args0;} | |
1767 | -{ ac_configure_args1=; unset ac_configure_args1;} | |
1526 | +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1527 | +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1768 | 1528 | |
1769 | 1529 | # When interrupted or exit'd, cleanup temporary files, and complete |
1770 | 1530 | # config.log. We remove comments because anyway the quotes in there |
@@ -1776,9 +1536,11 @@ trap 'exit_status=$? | ||
1776 | 1536 | { |
1777 | 1537 | echo |
1778 | 1538 | |
1779 | - $as_echo "## ---------------- ## | |
1539 | + cat <<\_ASBOX | |
1540 | +## ---------------- ## | |
1780 | 1541 | ## Cache variables. ## |
1781 | -## ---------------- ##" | |
1542 | +## ---------------- ## | |
1543 | +_ASBOX | |
1782 | 1544 | echo |
1783 | 1545 | # The following way of writing the cache mishandles newlines in values, |
1784 | 1546 | ( |
@@ -1787,13 +1549,13 @@ trap 'exit_status=$? | ||
1787 | 1549 | case $ac_val in #( |
1788 | 1550 | *${as_nl}*) |
1789 | 1551 | case $ac_var in #( |
1790 | - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1552 | + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
1791 | 1553 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1792 | 1554 | esac |
1793 | 1555 | case $ac_var in #( |
1794 | 1556 | _ | IFS | as_nl) ;; #( |
1795 | 1557 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1796 | - *) { eval $ac_var=; unset $ac_var;} ;; | |
1558 | + *) $as_unset $ac_var ;; | |
1797 | 1559 | esac ;; |
1798 | 1560 | esac |
1799 | 1561 | done |
@@ -1812,9 +1574,11 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
1812 | 1574 | ) |
1813 | 1575 | echo |
1814 | 1576 | |
1815 | - $as_echo "## ----------------- ## | |
1577 | + cat <<\_ASBOX | |
1578 | +## ----------------- ## | |
1816 | 1579 | ## Output variables. ## |
1817 | -## ----------------- ##" | |
1580 | +## ----------------- ## | |
1581 | +_ASBOX | |
1818 | 1582 | echo |
1819 | 1583 | for ac_var in $ac_subst_vars |
1820 | 1584 | do |
@@ -1827,9 +1591,11 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
1827 | 1591 | echo |
1828 | 1592 | |
1829 | 1593 | if test -n "$ac_subst_files"; then |
1830 | - $as_echo "## ------------------- ## | |
1594 | + cat <<\_ASBOX | |
1595 | +## ------------------- ## | |
1831 | 1596 | ## File substitutions. ## |
1832 | -## ------------------- ##" | |
1597 | +## ------------------- ## | |
1598 | +_ASBOX | |
1833 | 1599 | echo |
1834 | 1600 | for ac_var in $ac_subst_files |
1835 | 1601 | do |
@@ -1843,9 +1609,11 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
1843 | 1609 | fi |
1844 | 1610 | |
1845 | 1611 | if test -s confdefs.h; then |
1846 | - $as_echo "## ----------- ## | |
1612 | + cat <<\_ASBOX | |
1613 | +## ----------- ## | |
1847 | 1614 | ## confdefs.h. ## |
1848 | -## ----------- ##" | |
1615 | +## ----------- ## | |
1616 | +_ASBOX | |
1849 | 1617 | echo |
1850 | 1618 | cat confdefs.h |
1851 | 1619 | echo |
@@ -1859,39 +1627,37 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
1859 | 1627 | exit $exit_status |
1860 | 1628 | ' 0 |
1861 | 1629 | for ac_signal in 1 2 13 15; do |
1862 | - trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
1630 | + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1863 | 1631 | done |
1864 | 1632 | ac_signal=0 |
1865 | 1633 | |
1866 | 1634 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1867 | 1635 | rm -f -r conftest* confdefs.h |
1868 | 1636 | |
1869 | -$as_echo "/* confdefs.h */" > confdefs.h | |
1870 | - | |
1871 | 1637 | # Predefined preprocessor variables. |
1872 | 1638 | |
1873 | 1639 | cat >>confdefs.h <<_ACEOF |
1874 | 1640 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1875 | 1641 | _ACEOF |
1876 | 1642 | |
1643 | + | |
1877 | 1644 | cat >>confdefs.h <<_ACEOF |
1878 | 1645 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1879 | 1646 | _ACEOF |
1880 | 1647 | |
1648 | + | |
1881 | 1649 | cat >>confdefs.h <<_ACEOF |
1882 | 1650 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1883 | 1651 | _ACEOF |
1884 | 1652 | |
1653 | + | |
1885 | 1654 | cat >>confdefs.h <<_ACEOF |
1886 | 1655 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1887 | 1656 | _ACEOF |
1888 | 1657 | |
1889 | -cat >>confdefs.h <<_ACEOF | |
1890 | -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1891 | -_ACEOF | |
1892 | 1658 | |
1893 | 1659 | cat >>confdefs.h <<_ACEOF |
1894 | -#define PACKAGE_URL "$PACKAGE_URL" | |
1660 | +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1895 | 1661 | _ACEOF |
1896 | 1662 | |
1897 | 1663 |
@@ -1900,12 +1666,7 @@ _ACEOF | ||
1900 | 1666 | ac_site_file1=NONE |
1901 | 1667 | ac_site_file2=NONE |
1902 | 1668 | if test -n "$CONFIG_SITE"; then |
1903 | - # We do not want a PATH search for config.site. | |
1904 | - case $CONFIG_SITE in #(( | |
1905 | - -*) ac_site_file1=./$CONFIG_SITE;; | |
1906 | - */*) ac_site_file1=$CONFIG_SITE;; | |
1907 | - *) ac_site_file1=./$CONFIG_SITE;; | |
1908 | - esac | |
1669 | + ac_site_file1=$CONFIG_SITE | |
1909 | 1670 | elif test "x$prefix" != xNONE; then |
1910 | 1671 | ac_site_file1=$prefix/share/config.site |
1911 | 1672 | ac_site_file2=$prefix/etc/config.site |
@@ -1916,23 +1677,19 @@ fi | ||
1916 | 1677 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
1917 | 1678 | do |
1918 | 1679 | test "x$ac_site_file" = xNONE && continue |
1919 | - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
1920 | - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
1680 | + if test -r "$ac_site_file"; then | |
1681 | + { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1921 | 1682 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
1922 | 1683 | sed 's/^/| /' "$ac_site_file" >&5 |
1923 | - . "$ac_site_file" \ | |
1924 | - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1925 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1926 | -as_fn_error $? "failed to load site script $ac_site_file | |
1927 | -See \`config.log' for more details" "$LINENO" 5 ; } | |
1684 | + . "$ac_site_file" | |
1928 | 1685 | fi |
1929 | 1686 | done |
1930 | 1687 | |
1931 | 1688 | if test -r "$cache_file"; then |
1932 | - # Some versions of bash will fail to source /dev/null (special files | |
1933 | - # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
1934 | - if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
1935 | - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
1689 | + # Some versions of bash will fail to source /dev/null (special | |
1690 | + # files actually), so we avoid doing that. | |
1691 | + if test -f "$cache_file"; then | |
1692 | + { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1936 | 1693 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
1937 | 1694 | case $cache_file in |
1938 | 1695 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
@@ -1940,7 +1697,7 @@ $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
1940 | 1697 | esac |
1941 | 1698 | fi |
1942 | 1699 | else |
1943 | - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
1700 | + { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1944 | 1701 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
1945 | 1702 | >$cache_file |
1946 | 1703 | fi |
@@ -1955,11 +1712,11 @@ for ac_var in $ac_precious_vars; do | ||
1955 | 1712 | eval ac_new_val=\$ac_env_${ac_var}_value |
1956 | 1713 | case $ac_old_set,$ac_new_set in |
1957 | 1714 | set,) |
1958 | - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1715 | + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1959 | 1716 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1960 | 1717 | ac_cache_corrupted=: ;; |
1961 | 1718 | ,set) |
1962 | - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
1719 | + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1963 | 1720 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1964 | 1721 | ac_cache_corrupted=: ;; |
1965 | 1722 | ,);; |
@@ -1969,17 +1726,17 @@ $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1969 | 1726 | ac_old_val_w=`echo x $ac_old_val` |
1970 | 1727 | ac_new_val_w=`echo x $ac_new_val` |
1971 | 1728 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
1972 | - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1729 | + { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1973 | 1730 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1974 | 1731 | ac_cache_corrupted=: |
1975 | 1732 | else |
1976 | - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1733 | + { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1977 | 1734 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
1978 | 1735 | eval $ac_var=\$ac_old_val |
1979 | 1736 | fi |
1980 | - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
1737 | + { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1981 | 1738 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
1982 | - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
1739 | + { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1983 | 1740 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
1984 | 1741 | fi;; |
1985 | 1742 | esac |
@@ -1991,20 +1748,35 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
1991 | 1748 | esac |
1992 | 1749 | case " $ac_configure_args " in |
1993 | 1750 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1994 | - *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
1751 | + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1995 | 1752 | esac |
1996 | 1753 | fi |
1997 | 1754 | done |
1998 | 1755 | if $ac_cache_corrupted; then |
1999 | - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1756 | + { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2000 | 1757 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2001 | - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
1758 | + { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2002 | 1759 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2003 | - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
1760 | + { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1761 | +$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1762 | + { (exit 1); exit 1; }; } | |
2004 | 1763 | fi |
2005 | -## -------------------- ## | |
2006 | -## Main body of script. ## | |
2007 | -## -------------------- ## | |
1764 | + | |
1765 | + | |
1766 | + | |
1767 | + | |
1768 | + | |
1769 | + | |
1770 | + | |
1771 | + | |
1772 | + | |
1773 | + | |
1774 | + | |
1775 | + | |
1776 | + | |
1777 | + | |
1778 | + | |
1779 | + | |
2008 | 1780 | |
2009 | 1781 | ac_ext=c |
2010 | 1782 | ac_cpp='$CPP $CPPFLAGS' |
@@ -2025,9 +1797,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2025 | 1797 | if test -n "$ac_tool_prefix"; then |
2026 | 1798 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2027 | 1799 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2028 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1800 | +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2029 | 1801 | $as_echo_n "checking for $ac_word... " >&6; } |
2030 | -if ${ac_cv_prog_CC+:} false; then : | |
1802 | +if test "${ac_cv_prog_CC+set}" = set; then | |
2031 | 1803 | $as_echo_n "(cached) " >&6 |
2032 | 1804 | else |
2033 | 1805 | if test -n "$CC"; then |
@@ -2038,24 +1810,24 @@ for as_dir in $PATH | ||
2038 | 1810 | do |
2039 | 1811 | IFS=$as_save_IFS |
2040 | 1812 | test -z "$as_dir" && as_dir=. |
2041 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
1813 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2042 | 1814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2043 | 1815 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2044 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1816 | + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2045 | 1817 | break 2 |
2046 | 1818 | fi |
2047 | 1819 | done |
2048 | - done | |
1820 | +done | |
2049 | 1821 | IFS=$as_save_IFS |
2050 | 1822 | |
2051 | 1823 | fi |
2052 | 1824 | fi |
2053 | 1825 | CC=$ac_cv_prog_CC |
2054 | 1826 | if test -n "$CC"; then |
2055 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
1827 | + { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2056 | 1828 | $as_echo "$CC" >&6; } |
2057 | 1829 | else |
2058 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1830 | + { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2059 | 1831 | $as_echo "no" >&6; } |
2060 | 1832 | fi |
2061 | 1833 |
@@ -2065,9 +1837,9 @@ if test -z "$ac_cv_prog_CC"; then | ||
2065 | 1837 | ac_ct_CC=$CC |
2066 | 1838 | # Extract the first word of "gcc", so it can be a program name with args. |
2067 | 1839 | set dummy gcc; ac_word=$2 |
2068 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1840 | +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2069 | 1841 | $as_echo_n "checking for $ac_word... " >&6; } |
2070 | -if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
1842 | +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2071 | 1843 | $as_echo_n "(cached) " >&6 |
2072 | 1844 | else |
2073 | 1845 | if test -n "$ac_ct_CC"; then |
@@ -2078,24 +1850,24 @@ for as_dir in $PATH | ||
2078 | 1850 | do |
2079 | 1851 | IFS=$as_save_IFS |
2080 | 1852 | test -z "$as_dir" && as_dir=. |
2081 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
1853 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2082 | 1854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2083 | 1855 | ac_cv_prog_ac_ct_CC="gcc" |
2084 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1856 | + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2085 | 1857 | break 2 |
2086 | 1858 | fi |
2087 | 1859 | done |
2088 | - done | |
1860 | +done | |
2089 | 1861 | IFS=$as_save_IFS |
2090 | 1862 | |
2091 | 1863 | fi |
2092 | 1864 | fi |
2093 | 1865 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2094 | 1866 | if test -n "$ac_ct_CC"; then |
2095 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
1867 | + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2096 | 1868 | $as_echo "$ac_ct_CC" >&6; } |
2097 | 1869 | else |
2098 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1870 | + { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2099 | 1871 | $as_echo "no" >&6; } |
2100 | 1872 | fi |
2101 | 1873 |
@@ -2104,7 +1876,7 @@ fi | ||
2104 | 1876 | else |
2105 | 1877 | case $cross_compiling:$ac_tool_warned in |
2106 | 1878 | yes:) |
2107 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
1879 | +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2108 | 1880 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2109 | 1881 | ac_tool_warned=yes ;; |
2110 | 1882 | esac |
@@ -2118,9 +1890,9 @@ if test -z "$CC"; then | ||
2118 | 1890 | if test -n "$ac_tool_prefix"; then |
2119 | 1891 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2120 | 1892 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2121 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1893 | +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2122 | 1894 | $as_echo_n "checking for $ac_word... " >&6; } |
2123 | -if ${ac_cv_prog_CC+:} false; then : | |
1895 | +if test "${ac_cv_prog_CC+set}" = set; then | |
2124 | 1896 | $as_echo_n "(cached) " >&6 |
2125 | 1897 | else |
2126 | 1898 | if test -n "$CC"; then |
@@ -2131,24 +1903,24 @@ for as_dir in $PATH | ||
2131 | 1903 | do |
2132 | 1904 | IFS=$as_save_IFS |
2133 | 1905 | test -z "$as_dir" && as_dir=. |
2134 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
1906 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2135 | 1907 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2136 | 1908 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2137 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1909 | + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2138 | 1910 | break 2 |
2139 | 1911 | fi |
2140 | 1912 | done |
2141 | - done | |
1913 | +done | |
2142 | 1914 | IFS=$as_save_IFS |
2143 | 1915 | |
2144 | 1916 | fi |
2145 | 1917 | fi |
2146 | 1918 | CC=$ac_cv_prog_CC |
2147 | 1919 | if test -n "$CC"; then |
2148 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
1920 | + { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2149 | 1921 | $as_echo "$CC" >&6; } |
2150 | 1922 | else |
2151 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1923 | + { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2152 | 1924 | $as_echo "no" >&6; } |
2153 | 1925 | fi |
2154 | 1926 |
@@ -2158,9 +1930,9 @@ fi | ||
2158 | 1930 | if test -z "$CC"; then |
2159 | 1931 | # Extract the first word of "cc", so it can be a program name with args. |
2160 | 1932 | set dummy cc; ac_word=$2 |
2161 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1933 | +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2162 | 1934 | $as_echo_n "checking for $ac_word... " >&6; } |
2163 | -if ${ac_cv_prog_CC+:} false; then : | |
1935 | +if test "${ac_cv_prog_CC+set}" = set; then | |
2164 | 1936 | $as_echo_n "(cached) " >&6 |
2165 | 1937 | else |
2166 | 1938 | if test -n "$CC"; then |
@@ -2172,18 +1944,18 @@ for as_dir in $PATH | ||
2172 | 1944 | do |
2173 | 1945 | IFS=$as_save_IFS |
2174 | 1946 | test -z "$as_dir" && as_dir=. |
2175 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
1947 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2176 | 1948 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2177 | 1949 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2178 | 1950 | ac_prog_rejected=yes |
2179 | 1951 | continue |
2180 | 1952 | fi |
2181 | 1953 | ac_cv_prog_CC="cc" |
2182 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1954 | + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2183 | 1955 | break 2 |
2184 | 1956 | fi |
2185 | 1957 | done |
2186 | - done | |
1958 | +done | |
2187 | 1959 | IFS=$as_save_IFS |
2188 | 1960 | |
2189 | 1961 | if test $ac_prog_rejected = yes; then |
@@ -2202,10 +1974,10 @@ fi | ||
2202 | 1974 | fi |
2203 | 1975 | CC=$ac_cv_prog_CC |
2204 | 1976 | if test -n "$CC"; then |
2205 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
1977 | + { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2206 | 1978 | $as_echo "$CC" >&6; } |
2207 | 1979 | else |
2208 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1980 | + { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2209 | 1981 | $as_echo "no" >&6; } |
2210 | 1982 | fi |
2211 | 1983 |
@@ -2217,9 +1989,9 @@ if test -z "$CC"; then | ||
2217 | 1989 | do |
2218 | 1990 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2219 | 1991 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2220 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1992 | +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2221 | 1993 | $as_echo_n "checking for $ac_word... " >&6; } |
2222 | -if ${ac_cv_prog_CC+:} false; then : | |
1994 | +if test "${ac_cv_prog_CC+set}" = set; then | |
2223 | 1995 | $as_echo_n "(cached) " >&6 |
2224 | 1996 | else |
2225 | 1997 | if test -n "$CC"; then |
@@ -2230,24 +2002,24 @@ for as_dir in $PATH | ||
2230 | 2002 | do |
2231 | 2003 | IFS=$as_save_IFS |
2232 | 2004 | test -z "$as_dir" && as_dir=. |
2233 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
2005 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2234 | 2006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2235 | 2007 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2236 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2008 | + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2237 | 2009 | break 2 |
2238 | 2010 | fi |
2239 | 2011 | done |
2240 | - done | |
2012 | +done | |
2241 | 2013 | IFS=$as_save_IFS |
2242 | 2014 | |
2243 | 2015 | fi |
2244 | 2016 | fi |
2245 | 2017 | CC=$ac_cv_prog_CC |
2246 | 2018 | if test -n "$CC"; then |
2247 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2019 | + { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2248 | 2020 | $as_echo "$CC" >&6; } |
2249 | 2021 | else |
2250 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2022 | + { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2251 | 2023 | $as_echo "no" >&6; } |
2252 | 2024 | fi |
2253 | 2025 |
@@ -2261,9 +2033,9 @@ if test -z "$CC"; then | ||
2261 | 2033 | do |
2262 | 2034 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2263 | 2035 | set dummy $ac_prog; ac_word=$2 |
2264 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2036 | +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2265 | 2037 | $as_echo_n "checking for $ac_word... " >&6; } |
2266 | -if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2038 | +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2267 | 2039 | $as_echo_n "(cached) " >&6 |
2268 | 2040 | else |
2269 | 2041 | if test -n "$ac_ct_CC"; then |
@@ -2274,24 +2046,24 @@ for as_dir in $PATH | ||
2274 | 2046 | do |
2275 | 2047 | IFS=$as_save_IFS |
2276 | 2048 | test -z "$as_dir" && as_dir=. |
2277 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
2049 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2278 | 2050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2279 | 2051 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2280 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2052 | + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2281 | 2053 | break 2 |
2282 | 2054 | fi |
2283 | 2055 | done |
2284 | - done | |
2056 | +done | |
2285 | 2057 | IFS=$as_save_IFS |
2286 | 2058 | |
2287 | 2059 | fi |
2288 | 2060 | fi |
2289 | 2061 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2290 | 2062 | if test -n "$ac_ct_CC"; then |
2291 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2063 | + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2292 | 2064 | $as_echo "$ac_ct_CC" >&6; } |
2293 | 2065 | else |
2294 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2066 | + { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2295 | 2067 | $as_echo "no" >&6; } |
2296 | 2068 | fi |
2297 | 2069 |
@@ -2304,7 +2076,7 @@ done | ||
2304 | 2076 | else |
2305 | 2077 | case $cross_compiling:$ac_tool_warned in |
2306 | 2078 | yes:) |
2307 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2079 | +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2308 | 2080 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2309 | 2081 | ac_tool_warned=yes ;; |
2310 | 2082 | esac |
@@ -2315,37 +2087,57 @@ fi | ||
2315 | 2087 | fi |
2316 | 2088 | |
2317 | 2089 | |
2318 | -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2090 | +test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2319 | 2091 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2320 | -as_fn_error $? "no acceptable C compiler found in \$PATH | |
2321 | -See \`config.log' for more details" "$LINENO" 5 ; } | |
2092 | +{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2093 | +See \`config.log' for more details." >&5 | |
2094 | +$as_echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2095 | +See \`config.log' for more details." >&2;} | |
2096 | + { (exit 1); exit 1; }; }; } | |
2322 | 2097 | |
2323 | 2098 | # Provide some information about the compiler. |
2324 | -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2099 | +$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2325 | 2100 | set X $ac_compile |
2326 | 2101 | ac_compiler=$2 |
2327 | -for ac_option in --version -v -V -qversion; do | |
2328 | - { { ac_try="$ac_compiler $ac_option >&5" | |
2102 | +{ (ac_try="$ac_compiler --version >&5" | |
2329 | 2103 | case "(($ac_try" in |
2330 | 2104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2331 | 2105 | *) ac_try_echo=$ac_try;; |
2332 | 2106 | esac |
2333 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2334 | -$as_echo "$ac_try_echo"; } >&5 | |
2335 | - (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2107 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2108 | +$as_echo "$ac_try_echo") >&5 | |
2109 | + (eval "$ac_compiler --version >&5") 2>&5 | |
2336 | 2110 | ac_status=$? |
2337 | - if test -s conftest.err; then | |
2338 | - sed '10a\ | |
2339 | -... rest of stderr output deleted ... | |
2340 | - 10q' conftest.err >conftest.er1 | |
2341 | - cat conftest.er1 >&5 | |
2342 | - fi | |
2343 | - rm -f conftest.er1 conftest.err | |
2344 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2345 | - test $ac_status = 0; } | |
2346 | -done | |
2111 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2112 | + (exit $ac_status); } | |
2113 | +{ (ac_try="$ac_compiler -v >&5" | |
2114 | +case "(($ac_try" in | |
2115 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2116 | + *) ac_try_echo=$ac_try;; | |
2117 | +esac | |
2118 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2119 | +$as_echo "$ac_try_echo") >&5 | |
2120 | + (eval "$ac_compiler -v >&5") 2>&5 | |
2121 | + ac_status=$? | |
2122 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2123 | + (exit $ac_status); } | |
2124 | +{ (ac_try="$ac_compiler -V >&5" | |
2125 | +case "(($ac_try" in | |
2126 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2127 | + *) ac_try_echo=$ac_try;; | |
2128 | +esac | |
2129 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2130 | +$as_echo "$ac_try_echo") >&5 | |
2131 | + (eval "$ac_compiler -V >&5") 2>&5 | |
2132 | + ac_status=$? | |
2133 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2134 | + (exit $ac_status); } | |
2347 | 2135 | |
2348 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2136 | +cat >conftest.$ac_ext <<_ACEOF | |
2137 | +/* confdefs.h. */ | |
2138 | +_ACEOF | |
2139 | +cat confdefs.h >>conftest.$ac_ext | |
2140 | +cat >>conftest.$ac_ext <<_ACEOF | |
2349 | 2141 | /* end confdefs.h. */ |
2350 | 2142 | |
2351 | 2143 | int |
@@ -2361,8 +2153,8 @@ ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
2361 | 2153 | # Try to create an executable without -o first, disregard a.out. |
2362 | 2154 | # It will help us diagnose broken compilers, and finding out an intuition |
2363 | 2155 | # of exeext. |
2364 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2365 | -$as_echo_n "checking whether the C compiler works... " >&6; } | |
2156 | +{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2157 | +$as_echo_n "checking for C compiler default output file name... " >&6; } | |
2366 | 2158 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2367 | 2159 | |
2368 | 2160 | # The possible output files: |
@@ -2378,17 +2170,17 @@ do | ||
2378 | 2170 | done |
2379 | 2171 | rm -f $ac_rmfiles |
2380 | 2172 | |
2381 | -if { { ac_try="$ac_link_default" | |
2173 | +if { (ac_try="$ac_link_default" | |
2382 | 2174 | case "(($ac_try" in |
2383 | 2175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2384 | 2176 | *) ac_try_echo=$ac_try;; |
2385 | 2177 | esac |
2386 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2387 | -$as_echo "$ac_try_echo"; } >&5 | |
2178 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2179 | +$as_echo "$ac_try_echo") >&5 | |
2388 | 2180 | (eval "$ac_link_default") 2>&5 |
2389 | 2181 | ac_status=$? |
2390 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2391 | - test $ac_status = 0; }; then : | |
2182 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2183 | + (exit $ac_status); }; then | |
2392 | 2184 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2393 | 2185 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2394 | 2186 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
@@ -2405,7 +2197,7 @@ do | ||
2405 | 2197 | # certainly right. |
2406 | 2198 | break;; |
2407 | 2199 | *.* ) |
2408 | - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2200 | + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2409 | 2201 | then :; else |
2410 | 2202 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2411 | 2203 | fi |
@@ -2424,41 +2216,84 @@ test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2424 | 2216 | else |
2425 | 2217 | ac_file='' |
2426 | 2218 | fi |
2427 | -if test -z "$ac_file"; then : | |
2428 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2429 | -$as_echo "no" >&6; } | |
2430 | -$as_echo "$as_me: failed program was:" >&5 | |
2219 | + | |
2220 | +{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2221 | +$as_echo "$ac_file" >&6; } | |
2222 | +if test -z "$ac_file"; then | |
2223 | + $as_echo "$as_me: failed program was:" >&5 | |
2431 | 2224 | sed 's/^/| /' conftest.$ac_ext >&5 |
2432 | 2225 | |
2433 | -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2226 | +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2434 | 2227 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2435 | -as_fn_error 77 "C compiler cannot create executables | |
2436 | -See \`config.log' for more details" "$LINENO" 5 ; } | |
2437 | -else | |
2438 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2439 | -$as_echo "yes" >&6; } | |
2228 | +{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2229 | +See \`config.log' for more details." >&5 | |
2230 | +$as_echo "$as_me: error: C compiler cannot create executables | |
2231 | +See \`config.log' for more details." >&2;} | |
2232 | + { (exit 77); exit 77; }; }; } | |
2440 | 2233 | fi |
2441 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2442 | -$as_echo_n "checking for C compiler default output file name... " >&6; } | |
2443 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2444 | -$as_echo "$ac_file" >&6; } | |
2234 | + | |
2445 | 2235 | ac_exeext=$ac_cv_exeext |
2446 | 2236 | |
2237 | +# Check that the compiler produces executables we can run. If not, either | |
2238 | +# the compiler is broken, or we cross compile. | |
2239 | +{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2240 | +$as_echo_n "checking whether the C compiler works... " >&6; } | |
2241 | +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2242 | +# If not cross compiling, check that we can run a simple program. | |
2243 | +if test "$cross_compiling" != yes; then | |
2244 | + if { ac_try='./$ac_file' | |
2245 | + { (case "(($ac_try" in | |
2246 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2247 | + *) ac_try_echo=$ac_try;; | |
2248 | +esac | |
2249 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2250 | +$as_echo "$ac_try_echo") >&5 | |
2251 | + (eval "$ac_try") 2>&5 | |
2252 | + ac_status=$? | |
2253 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2254 | + (exit $ac_status); }; }; then | |
2255 | + cross_compiling=no | |
2256 | + else | |
2257 | + if test "$cross_compiling" = maybe; then | |
2258 | + cross_compiling=yes | |
2259 | + else | |
2260 | + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2261 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2262 | +{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2263 | +If you meant to cross compile, use \`--host'. | |
2264 | +See \`config.log' for more details." >&5 | |
2265 | +$as_echo "$as_me: error: cannot run C compiled programs. | |
2266 | +If you meant to cross compile, use \`--host'. | |
2267 | +See \`config.log' for more details." >&2;} | |
2268 | + { (exit 1); exit 1; }; }; } | |
2269 | + fi | |
2270 | + fi | |
2271 | +fi | |
2272 | +{ $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2273 | +$as_echo "yes" >&6; } | |
2274 | + | |
2447 | 2275 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2448 | 2276 | ac_clean_files=$ac_clean_files_save |
2449 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2277 | +# Check that the compiler produces executables we can run. If not, either | |
2278 | +# the compiler is broken, or we cross compile. | |
2279 | +{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2280 | +$as_echo_n "checking whether we are cross compiling... " >&6; } | |
2281 | +{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2282 | +$as_echo "$cross_compiling" >&6; } | |
2283 | + | |
2284 | +{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2450 | 2285 | $as_echo_n "checking for suffix of executables... " >&6; } |
2451 | -if { { ac_try="$ac_link" | |
2286 | +if { (ac_try="$ac_link" | |
2452 | 2287 | case "(($ac_try" in |
2453 | 2288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2454 | 2289 | *) ac_try_echo=$ac_try;; |
2455 | 2290 | esac |
2456 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2457 | -$as_echo "$ac_try_echo"; } >&5 | |
2291 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2292 | +$as_echo "$ac_try_echo") >&5 | |
2458 | 2293 | (eval "$ac_link") 2>&5 |
2459 | 2294 | ac_status=$? |
2460 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2461 | - test $ac_status = 0; }; then : | |
2295 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2296 | + (exit $ac_status); }; then | |
2462 | 2297 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2463 | 2298 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2464 | 2299 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
@@ -2473,105 +2308,54 @@ for ac_file in conftest.exe conftest conftest.*; do | ||
2473 | 2308 | esac |
2474 | 2309 | done |
2475 | 2310 | else |
2476 | - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2311 | + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2477 | 2312 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2478 | -as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
2479 | -See \`config.log' for more details" "$LINENO" 5 ; } | |
2313 | +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2314 | +See \`config.log' for more details." >&5 | |
2315 | +$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2316 | +See \`config.log' for more details." >&2;} | |
2317 | + { (exit 1); exit 1; }; }; } | |
2480 | 2318 | fi |
2481 | -rm -f conftest conftest$ac_cv_exeext | |
2482 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2319 | + | |
2320 | +rm -f conftest$ac_cv_exeext | |
2321 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2483 | 2322 | $as_echo "$ac_cv_exeext" >&6; } |
2484 | 2323 | |
2485 | 2324 | rm -f conftest.$ac_ext |
2486 | 2325 | EXEEXT=$ac_cv_exeext |
2487 | 2326 | ac_exeext=$EXEEXT |
2488 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2327 | +{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2328 | +$as_echo_n "checking for suffix of object files... " >&6; } | |
2329 | +if test "${ac_cv_objext+set}" = set; then | |
2330 | + $as_echo_n "(cached) " >&6 | |
2331 | +else | |
2332 | + cat >conftest.$ac_ext <<_ACEOF | |
2333 | +/* confdefs.h. */ | |
2334 | +_ACEOF | |
2335 | +cat confdefs.h >>conftest.$ac_ext | |
2336 | +cat >>conftest.$ac_ext <<_ACEOF | |
2489 | 2337 | /* end confdefs.h. */ |
2490 | -#include <stdio.h> | |
2338 | + | |
2491 | 2339 | int |
2492 | 2340 | main () |
2493 | 2341 | { |
2494 | -FILE *f = fopen ("conftest.out", "w"); | |
2495 | - return ferror (f) || fclose (f) != 0; | |
2496 | 2342 | |
2497 | 2343 | ; |
2498 | 2344 | return 0; |
2499 | 2345 | } |
2500 | 2346 | _ACEOF |
2501 | -ac_clean_files="$ac_clean_files conftest.out" | |
2502 | -# Check that the compiler produces executables we can run. If not, either | |
2503 | -# the compiler is broken, or we cross compile. | |
2504 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2505 | -$as_echo_n "checking whether we are cross compiling... " >&6; } | |
2506 | -if test "$cross_compiling" != yes; then | |
2507 | - { { ac_try="$ac_link" | |
2347 | +rm -f conftest.o conftest.obj | |
2348 | +if { (ac_try="$ac_compile" | |
2508 | 2349 | case "(($ac_try" in |
2509 | 2350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2510 | 2351 | *) ac_try_echo=$ac_try;; |
2511 | 2352 | esac |
2512 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2513 | -$as_echo "$ac_try_echo"; } >&5 | |
2514 | - (eval "$ac_link") 2>&5 | |
2515 | - ac_status=$? | |
2516 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2517 | - test $ac_status = 0; } | |
2518 | - if { ac_try='./conftest$ac_cv_exeext' | |
2519 | - { { case "(($ac_try" in | |
2520 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2521 | - *) ac_try_echo=$ac_try;; | |
2522 | -esac | |
2523 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2524 | -$as_echo "$ac_try_echo"; } >&5 | |
2525 | - (eval "$ac_try") 2>&5 | |
2353 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2354 | +$as_echo "$ac_try_echo") >&5 | |
2355 | + (eval "$ac_compile") 2>&5 | |
2526 | 2356 | ac_status=$? |
2527 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2528 | - test $ac_status = 0; }; }; then | |
2529 | - cross_compiling=no | |
2530 | - else | |
2531 | - if test "$cross_compiling" = maybe; then | |
2532 | - cross_compiling=yes | |
2533 | - else | |
2534 | - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2535 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2536 | -as_fn_error $? "cannot run C compiled programs. | |
2537 | -If you meant to cross compile, use \`--host'. | |
2538 | -See \`config.log' for more details" "$LINENO" 5 ; } | |
2539 | - fi | |
2540 | - fi | |
2541 | -fi | |
2542 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2543 | -$as_echo "$cross_compiling" >&6; } | |
2544 | - | |
2545 | -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2546 | -ac_clean_files=$ac_clean_files_save | |
2547 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
2548 | -$as_echo_n "checking for suffix of object files... " >&6; } | |
2549 | -if ${ac_cv_objext+:} false; then : | |
2550 | - $as_echo_n "(cached) " >&6 | |
2551 | -else | |
2552 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2553 | -/* end confdefs.h. */ | |
2554 | - | |
2555 | -int | |
2556 | -main () | |
2557 | -{ | |
2558 | - | |
2559 | - ; | |
2560 | - return 0; | |
2561 | -} | |
2562 | -_ACEOF | |
2563 | -rm -f conftest.o conftest.obj | |
2564 | -if { { ac_try="$ac_compile" | |
2565 | -case "(($ac_try" in | |
2566 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2567 | - *) ac_try_echo=$ac_try;; | |
2568 | -esac | |
2569 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2570 | -$as_echo "$ac_try_echo"; } >&5 | |
2571 | - (eval "$ac_compile") 2>&5 | |
2572 | - ac_status=$? | |
2573 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2574 | - test $ac_status = 0; }; then : | |
2357 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2358 | + (exit $ac_status); }; then | |
2575 | 2359 | for ac_file in conftest.o conftest.obj conftest.*; do |
2576 | 2360 | test -f "$ac_file" || continue; |
2577 | 2361 | case $ac_file in |
@@ -2584,23 +2368,31 @@ else | ||
2584 | 2368 | $as_echo "$as_me: failed program was:" >&5 |
2585 | 2369 | sed 's/^/| /' conftest.$ac_ext >&5 |
2586 | 2370 | |
2587 | -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2371 | +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2588 | 2372 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2589 | -as_fn_error $? "cannot compute suffix of object files: cannot compile | |
2590 | -See \`config.log' for more details" "$LINENO" 5 ; } | |
2373 | +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2374 | +See \`config.log' for more details." >&5 | |
2375 | +$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2376 | +See \`config.log' for more details." >&2;} | |
2377 | + { (exit 1); exit 1; }; }; } | |
2591 | 2378 | fi |
2379 | + | |
2592 | 2380 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2593 | 2381 | fi |
2594 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2382 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2595 | 2383 | $as_echo "$ac_cv_objext" >&6; } |
2596 | 2384 | OBJEXT=$ac_cv_objext |
2597 | 2385 | ac_objext=$OBJEXT |
2598 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2386 | +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2599 | 2387 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
2600 | -if ${ac_cv_c_compiler_gnu+:} false; then : | |
2388 | +if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2601 | 2389 | $as_echo_n "(cached) " >&6 |
2602 | 2390 | else |
2603 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2391 | + cat >conftest.$ac_ext <<_ACEOF | |
2392 | +/* confdefs.h. */ | |
2393 | +_ACEOF | |
2394 | +cat confdefs.h >>conftest.$ac_ext | |
2395 | +cat >>conftest.$ac_ext <<_ACEOF | |
2604 | 2396 | /* end confdefs.h. */ |
2605 | 2397 | |
2606 | 2398 | int |
@@ -2614,16 +2406,37 @@ main () | ||
2614 | 2406 | return 0; |
2615 | 2407 | } |
2616 | 2408 | _ACEOF |
2617 | -if ac_fn_c_try_compile "$LINENO"; then : | |
2409 | +rm -f conftest.$ac_objext | |
2410 | +if { (ac_try="$ac_compile" | |
2411 | +case "(($ac_try" in | |
2412 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2413 | + *) ac_try_echo=$ac_try;; | |
2414 | +esac | |
2415 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2416 | +$as_echo "$ac_try_echo") >&5 | |
2417 | + (eval "$ac_compile") 2>conftest.er1 | |
2418 | + ac_status=$? | |
2419 | + grep -v '^ *+' conftest.er1 >conftest.err | |
2420 | + rm -f conftest.er1 | |
2421 | + cat conftest.err >&5 | |
2422 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2423 | + (exit $ac_status); } && { | |
2424 | + test -z "$ac_c_werror_flag" || | |
2425 | + test ! -s conftest.err | |
2426 | + } && test -s conftest.$ac_objext; then | |
2618 | 2427 | ac_compiler_gnu=yes |
2619 | 2428 | else |
2620 | - ac_compiler_gnu=no | |
2429 | + $as_echo "$as_me: failed program was:" >&5 | |
2430 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
2431 | + | |
2432 | + ac_compiler_gnu=no | |
2621 | 2433 | fi |
2434 | + | |
2622 | 2435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2623 | 2436 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2624 | 2437 | |
2625 | 2438 | fi |
2626 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
2439 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2627 | 2440 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
2628 | 2441 | if test $ac_compiler_gnu = yes; then |
2629 | 2442 | GCC=yes |
@@ -2632,16 +2445,20 @@ else | ||
2632 | 2445 | fi |
2633 | 2446 | ac_test_CFLAGS=${CFLAGS+set} |
2634 | 2447 | ac_save_CFLAGS=$CFLAGS |
2635 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
2448 | +{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2636 | 2449 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
2637 | -if ${ac_cv_prog_cc_g+:} false; then : | |
2450 | +if test "${ac_cv_prog_cc_g+set}" = set; then | |
2638 | 2451 | $as_echo_n "(cached) " >&6 |
2639 | 2452 | else |
2640 | 2453 | ac_save_c_werror_flag=$ac_c_werror_flag |
2641 | 2454 | ac_c_werror_flag=yes |
2642 | 2455 | ac_cv_prog_cc_g=no |
2643 | 2456 | CFLAGS="-g" |
2644 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2457 | + cat >conftest.$ac_ext <<_ACEOF | |
2458 | +/* confdefs.h. */ | |
2459 | +_ACEOF | |
2460 | +cat confdefs.h >>conftest.$ac_ext | |
2461 | +cat >>conftest.$ac_ext <<_ACEOF | |
2645 | 2462 | /* end confdefs.h. */ |
2646 | 2463 | |
2647 | 2464 | int |
@@ -2652,11 +2469,35 @@ main () | ||
2652 | 2469 | return 0; |
2653 | 2470 | } |
2654 | 2471 | _ACEOF |
2655 | -if ac_fn_c_try_compile "$LINENO"; then : | |
2472 | +rm -f conftest.$ac_objext | |
2473 | +if { (ac_try="$ac_compile" | |
2474 | +case "(($ac_try" in | |
2475 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2476 | + *) ac_try_echo=$ac_try;; | |
2477 | +esac | |
2478 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2479 | +$as_echo "$ac_try_echo") >&5 | |
2480 | + (eval "$ac_compile") 2>conftest.er1 | |
2481 | + ac_status=$? | |
2482 | + grep -v '^ *+' conftest.er1 >conftest.err | |
2483 | + rm -f conftest.er1 | |
2484 | + cat conftest.err >&5 | |
2485 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2486 | + (exit $ac_status); } && { | |
2487 | + test -z "$ac_c_werror_flag" || | |
2488 | + test ! -s conftest.err | |
2489 | + } && test -s conftest.$ac_objext; then | |
2656 | 2490 | ac_cv_prog_cc_g=yes |
2657 | 2491 | else |
2658 | - CFLAGS="" | |
2659 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2492 | + $as_echo "$as_me: failed program was:" >&5 | |
2493 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
2494 | + | |
2495 | + CFLAGS="" | |
2496 | + cat >conftest.$ac_ext <<_ACEOF | |
2497 | +/* confdefs.h. */ | |
2498 | +_ACEOF | |
2499 | +cat confdefs.h >>conftest.$ac_ext | |
2500 | +cat >>conftest.$ac_ext <<_ACEOF | |
2660 | 2501 | /* end confdefs.h. */ |
2661 | 2502 | |
2662 | 2503 | int |
@@ -2667,12 +2508,36 @@ main () | ||
2667 | 2508 | return 0; |
2668 | 2509 | } |
2669 | 2510 | _ACEOF |
2670 | -if ac_fn_c_try_compile "$LINENO"; then : | |
2671 | - | |
2511 | +rm -f conftest.$ac_objext | |
2512 | +if { (ac_try="$ac_compile" | |
2513 | +case "(($ac_try" in | |
2514 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2515 | + *) ac_try_echo=$ac_try;; | |
2516 | +esac | |
2517 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2518 | +$as_echo "$ac_try_echo") >&5 | |
2519 | + (eval "$ac_compile") 2>conftest.er1 | |
2520 | + ac_status=$? | |
2521 | + grep -v '^ *+' conftest.er1 >conftest.err | |
2522 | + rm -f conftest.er1 | |
2523 | + cat conftest.err >&5 | |
2524 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2525 | + (exit $ac_status); } && { | |
2526 | + test -z "$ac_c_werror_flag" || | |
2527 | + test ! -s conftest.err | |
2528 | + } && test -s conftest.$ac_objext; then | |
2529 | + : | |
2672 | 2530 | else |
2673 | - ac_c_werror_flag=$ac_save_c_werror_flag | |
2531 | + $as_echo "$as_me: failed program was:" >&5 | |
2532 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
2533 | + | |
2534 | + ac_c_werror_flag=$ac_save_c_werror_flag | |
2674 | 2535 | CFLAGS="-g" |
2675 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2536 | + cat >conftest.$ac_ext <<_ACEOF | |
2537 | +/* confdefs.h. */ | |
2538 | +_ACEOF | |
2539 | +cat confdefs.h >>conftest.$ac_ext | |
2540 | +cat >>conftest.$ac_ext <<_ACEOF | |
2676 | 2541 | /* end confdefs.h. */ |
2677 | 2542 | |
2678 | 2543 | int |
@@ -2683,17 +2548,42 @@ main () | ||
2683 | 2548 | return 0; |
2684 | 2549 | } |
2685 | 2550 | _ACEOF |
2686 | -if ac_fn_c_try_compile "$LINENO"; then : | |
2551 | +rm -f conftest.$ac_objext | |
2552 | +if { (ac_try="$ac_compile" | |
2553 | +case "(($ac_try" in | |
2554 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2555 | + *) ac_try_echo=$ac_try;; | |
2556 | +esac | |
2557 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2558 | +$as_echo "$ac_try_echo") >&5 | |
2559 | + (eval "$ac_compile") 2>conftest.er1 | |
2560 | + ac_status=$? | |
2561 | + grep -v '^ *+' conftest.er1 >conftest.err | |
2562 | + rm -f conftest.er1 | |
2563 | + cat conftest.err >&5 | |
2564 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2565 | + (exit $ac_status); } && { | |
2566 | + test -z "$ac_c_werror_flag" || | |
2567 | + test ! -s conftest.err | |
2568 | + } && test -s conftest.$ac_objext; then | |
2687 | 2569 | ac_cv_prog_cc_g=yes |
2570 | +else | |
2571 | + $as_echo "$as_me: failed program was:" >&5 | |
2572 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
2573 | + | |
2574 | + | |
2688 | 2575 | fi |
2576 | + | |
2689 | 2577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2690 | 2578 | fi |
2579 | + | |
2691 | 2580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2692 | 2581 | fi |
2582 | + | |
2693 | 2583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2694 | 2584 | ac_c_werror_flag=$ac_save_c_werror_flag |
2695 | 2585 | fi |
2696 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2586 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2697 | 2587 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
2698 | 2588 | if test "$ac_test_CFLAGS" = set; then |
2699 | 2589 | CFLAGS=$ac_save_CFLAGS |
@@ -2710,14 +2600,18 @@ else | ||
2710 | 2600 | CFLAGS= |
2711 | 2601 | fi |
2712 | 2602 | fi |
2713 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
2603 | +{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
2714 | 2604 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
2715 | -if ${ac_cv_prog_cc_c89+:} false; then : | |
2605 | +if test "${ac_cv_prog_cc_c89+set}" = set; then | |
2716 | 2606 | $as_echo_n "(cached) " >&6 |
2717 | 2607 | else |
2718 | 2608 | ac_cv_prog_cc_c89=no |
2719 | 2609 | ac_save_CC=$CC |
2720 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2610 | +cat >conftest.$ac_ext <<_ACEOF | |
2611 | +/* confdefs.h. */ | |
2612 | +_ACEOF | |
2613 | +cat confdefs.h >>conftest.$ac_ext | |
2614 | +cat >>conftest.$ac_ext <<_ACEOF | |
2721 | 2615 | /* end confdefs.h. */ |
2722 | 2616 | #include <stdarg.h> |
2723 | 2617 | #include <stdio.h> |
@@ -2774,9 +2668,32 @@ for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
2774 | 2668 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2775 | 2669 | do |
2776 | 2670 | CC="$ac_save_CC $ac_arg" |
2777 | - if ac_fn_c_try_compile "$LINENO"; then : | |
2671 | + rm -f conftest.$ac_objext | |
2672 | +if { (ac_try="$ac_compile" | |
2673 | +case "(($ac_try" in | |
2674 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2675 | + *) ac_try_echo=$ac_try;; | |
2676 | +esac | |
2677 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2678 | +$as_echo "$ac_try_echo") >&5 | |
2679 | + (eval "$ac_compile") 2>conftest.er1 | |
2680 | + ac_status=$? | |
2681 | + grep -v '^ *+' conftest.er1 >conftest.err | |
2682 | + rm -f conftest.er1 | |
2683 | + cat conftest.err >&5 | |
2684 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2685 | + (exit $ac_status); } && { | |
2686 | + test -z "$ac_c_werror_flag" || | |
2687 | + test ! -s conftest.err | |
2688 | + } && test -s conftest.$ac_objext; then | |
2778 | 2689 | ac_cv_prog_cc_c89=$ac_arg |
2690 | +else | |
2691 | + $as_echo "$as_me: failed program was:" >&5 | |
2692 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
2693 | + | |
2694 | + | |
2779 | 2695 | fi |
2696 | + | |
2780 | 2697 | rm -f core conftest.err conftest.$ac_objext |
2781 | 2698 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
2782 | 2699 | done |
@@ -2787,19 +2704,17 @@ fi | ||
2787 | 2704 | # AC_CACHE_VAL |
2788 | 2705 | case "x$ac_cv_prog_cc_c89" in |
2789 | 2706 | x) |
2790 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
2707 | + { $as_echo "$as_me:$LINENO: result: none needed" >&5 | |
2791 | 2708 | $as_echo "none needed" >&6; } ;; |
2792 | 2709 | xno) |
2793 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
2710 | + { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | |
2794 | 2711 | $as_echo "unsupported" >&6; } ;; |
2795 | 2712 | *) |
2796 | 2713 | CC="$CC $ac_cv_prog_cc_c89" |
2797 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
2714 | + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
2798 | 2715 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
2799 | 2716 | esac |
2800 | -if test "x$ac_cv_prog_cc_c89" != xno; then : | |
2801 | 2717 | |
2802 | -fi | |
2803 | 2718 | |
2804 | 2719 | ac_ext=c |
2805 | 2720 | ac_cpp='$CPP $CPPFLAGS' |
@@ -2824,7 +2739,9 @@ for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2824 | 2739 | fi |
2825 | 2740 | done |
2826 | 2741 | if test -z "$ac_aux_dir"; then |
2827 | - as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2742 | + { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
2743 | +$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2744 | + { (exit 1); exit 1; }; } | |
2828 | 2745 | fi |
2829 | 2746 | |
2830 | 2747 | # These three variables are undocumented and unsupported, |
@@ -2850,10 +2767,10 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2850 | 2767 | # OS/2's system install, which has a completely different semantic |
2851 | 2768 | # ./install, which can be erroneously created by make from ./install.sh. |
2852 | 2769 | # Reject install programs that cannot install multiple files. |
2853 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2770 | +{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2854 | 2771 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
2855 | 2772 | if test -z "$INSTALL"; then |
2856 | -if ${ac_cv_path_install+:} false; then : | |
2773 | +if test "${ac_cv_path_install+set}" = set; then | |
2857 | 2774 | $as_echo_n "(cached) " >&6 |
2858 | 2775 | else |
2859 | 2776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
@@ -2861,11 +2778,11 @@ for as_dir in $PATH | ||
2861 | 2778 | do |
2862 | 2779 | IFS=$as_save_IFS |
2863 | 2780 | test -z "$as_dir" && as_dir=. |
2864 | - # Account for people who put trailing slashes in PATH elements. | |
2865 | -case $as_dir/ in #(( | |
2866 | - ./ | .// | /[cC]/* | \ | |
2781 | + # Account for people who put trailing slashes in PATH elements. | |
2782 | +case $as_dir/ in | |
2783 | + ./ | .// | /cC/* | \ | |
2867 | 2784 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2868 | - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2785 | + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2869 | 2786 | /usr/ucb/* ) ;; |
2870 | 2787 | *) |
2871 | 2788 | # OSF1 and SCO ODT 3.0 have their own names for install. |
@@ -2902,7 +2819,7 @@ case $as_dir/ in #(( | ||
2902 | 2819 | ;; |
2903 | 2820 | esac |
2904 | 2821 | |
2905 | - done | |
2822 | +done | |
2906 | 2823 | IFS=$as_save_IFS |
2907 | 2824 | |
2908 | 2825 | rm -rf conftest.one conftest.two conftest.dir |
@@ -2918,7 +2835,7 @@ fi | ||
2918 | 2835 | INSTALL=$ac_install_sh |
2919 | 2836 | fi |
2920 | 2837 | fi |
2921 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2838 | +{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2922 | 2839 | $as_echo "$INSTALL" >&6; } |
2923 | 2840 | |
2924 | 2841 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
@@ -2944,19 +2861,19 @@ DEBUGGING=0 | ||
2944 | 2861 | |
2945 | 2862 | |
2946 | 2863 | # Check whether --with-debug was given. |
2947 | -if test "${with_debug+set}" = set; then : | |
2864 | +if test "${with_debug+set}" = set; then | |
2948 | 2865 | withval=$with_debug; DEBUGGING=1; |
2949 | 2866 | fi |
2950 | 2867 | |
2951 | 2868 | |
2952 | 2869 | # Check whether --with-gprof-debug was given. |
2953 | -if test "${with_gprof_debug+set}" = set; then : | |
2870 | +if test "${with_gprof_debug+set}" = set; then | |
2954 | 2871 | withval=$with_gprof_debug; DEBUGGING=2; |
2955 | 2872 | fi |
2956 | 2873 | |
2957 | 2874 | |
2958 | 2875 | # Check whether --with-optimize was given. |
2959 | -if test "${with_optimize+set}" = set; then : | |
2876 | +if test "${with_optimize+set}" = set; then | |
2960 | 2877 | withval=$with_optimize; ENABLE_OPTIMIZE=1 |
2961 | 2878 | else |
2962 | 2879 | ENABLE_OPTIMIZE=0 |
@@ -2964,7 +2881,7 @@ fi | ||
2964 | 2881 | |
2965 | 2882 | |
2966 | 2883 | # Check whether --with-migemo was given. |
2967 | -if test "${with_migemo+set}" = set; then : | |
2884 | +if test "${with_migemo+set}" = set; then | |
2968 | 2885 | withval=$with_migemo; ENABLE_MIGEMO=1 |
2969 | 2886 | else |
2970 | 2887 | ENABLE_MIGEMO=0 |
@@ -2972,7 +2889,7 @@ fi | ||
2972 | 2889 | |
2973 | 2890 | |
2974 | 2891 | # Check whether --with-migemo-dir was given. |
2975 | -if test "${with_migemo_dir+set}" = set; then : | |
2892 | +if test "${with_migemo_dir+set}" = set; then | |
2976 | 2893 | withval=$with_migemo_dir; MIGEMO_DIR="$with_val" |
2977 | 2894 | else |
2978 | 2895 | MIGEMO_DIR= |
@@ -2980,7 +2897,7 @@ fi | ||
2980 | 2897 | |
2981 | 2898 | |
2982 | 2899 | # Check whether --with-onig-dir was given. |
2983 | -if test "${with_onig_dir+set}" = set; then : | |
2900 | +if test "${with_onig_dir+set}" = set; then | |
2984 | 2901 | withval=$with_onig_dir; ONIG_DIR="$with_val" |
2985 | 2902 | else |
2986 | 2903 | ONIG_DIR= |
@@ -2988,7 +2905,7 @@ fi | ||
2988 | 2905 | |
2989 | 2906 | |
2990 | 2907 | # Check whether --with-xyzsh-dir was given. |
2991 | -if test "${with_xyzsh_dir+set}" = set; then : | |
2908 | +if test "${with_xyzsh_dir+set}" = set; then | |
2992 | 2909 | withval=$with_xyzsh_dir; XYZSH_DIR="$with_val" |
2993 | 2910 | else |
2994 | 2911 | XYZSH_DIR= |
@@ -2996,7 +2913,7 @@ fi | ||
2996 | 2913 | |
2997 | 2914 | |
2998 | 2915 | # Check whether --with-system-migemodir was given. |
2999 | -if test "${with_system_migemodir+set}" = set; then : | |
2916 | +if test "${with_system_migemodir+set}" = set; then | |
3000 | 2917 | withval=$with_system_migemodir; if test -n "$withval" && test -n $LIBMIGEMO ; then echo "system-migemodir = $withval" ; SYSTEM_MIGEMODIR="$withval" ; { cat >>confdefs.h <<_ACEOF |
3001 | 2918 | #define SYSTEM_MIGEMODIR "$withval" |
3002 | 2919 | _ACEOF |
@@ -3080,30 +2997,38 @@ CFLAGS="-DSYSCONFDIR=\"\\\"$sysconfdir/mfiler4/\\\"\" -DDATAROOTDIR=\"\\\"$datar | ||
3080 | 2997 | ##################################################################### |
3081 | 2998 | # Operating System |
3082 | 2999 | ##################################################################### |
3083 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Operating System" >&5 | |
3000 | +{ $as_echo "$as_me:$LINENO: checking Operating System" >&5 | |
3084 | 3001 | $as_echo_n "checking Operating System... " >&6; } |
3085 | 3002 | |
3086 | 3003 | if uname -s | grep -q CYGWIN; then |
3087 | 3004 | echo "CYGWIN" |
3088 | - $as_echo "#define __CYGWIN__ 1" >>confdefs.h | |
3005 | + cat >>confdefs.h <<\_ACEOF | |
3006 | +#define __CYGWIN__ 1 | |
3007 | +_ACEOF | |
3089 | 3008 | |
3090 | 3009 | OS=CYGWIN |
3091 | 3010 | elif test `uname -s` = "Darwin"; then |
3092 | 3011 | echo "Darwin" |
3093 | 3012 | |
3094 | - $as_echo "#define __DARWIN__ 1" >>confdefs.h | |
3013 | + cat >>confdefs.h <<\_ACEOF | |
3014 | +#define __DARWIN__ 1 | |
3015 | +_ACEOF | |
3095 | 3016 | |
3096 | 3017 | OS=DARWIN |
3097 | 3018 | elif test `uname -s` = "FreeBSD"; then |
3098 | 3019 | echo "FreeBSD" |
3099 | 3020 | |
3100 | - $as_echo "#define __FREEBSD__ 1" >>confdefs.h | |
3021 | + cat >>confdefs.h <<\_ACEOF | |
3022 | +#define __FREEBSD__ 1 | |
3023 | +_ACEOF | |
3101 | 3024 | |
3102 | 3025 | OS=FREEBSD |
3103 | 3026 | else |
3104 | 3027 | echo "Linux" |
3105 | 3028 | |
3106 | - $as_echo "#define __LINUX__ 1" >>confdefs.h | |
3029 | + cat >>confdefs.h <<\_ACEOF | |
3030 | +#define __LINUX__ 1 | |
3031 | +_ACEOF | |
3107 | 3032 | |
3108 | 3033 | OS=LINUX |
3109 | 3034 | fi |
@@ -3117,14 +3042,14 @@ ac_cpp='$CPP $CPPFLAGS' | ||
3117 | 3042 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3118 | 3043 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3119 | 3044 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3120 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3045 | +{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3121 | 3046 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
3122 | 3047 | # On Suns, sometimes $CPP names a directory. |
3123 | 3048 | if test -n "$CPP" && test -d "$CPP"; then |
3124 | 3049 | CPP= |
3125 | 3050 | fi |
3126 | 3051 | if test -z "$CPP"; then |
3127 | - if ${ac_cv_prog_CPP+:} false; then : | |
3052 | + if test "${ac_cv_prog_CPP+set}" = set; then | |
3128 | 3053 | $as_echo_n "(cached) " >&6 |
3129 | 3054 | else |
3130 | 3055 | # Double quotes because CPP needs to be expanded |
@@ -3139,7 +3064,11 @@ do | ||
3139 | 3064 | # <limits.h> exists even on freestanding compilers. |
3140 | 3065 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3141 | 3066 | # not just through cpp. "Syntax error" is here to catch this case. |
3142 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3067 | + cat >conftest.$ac_ext <<_ACEOF | |
3068 | +/* confdefs.h. */ | |
3069 | +_ACEOF | |
3070 | +cat confdefs.h >>conftest.$ac_ext | |
3071 | +cat >>conftest.$ac_ext <<_ACEOF | |
3143 | 3072 | /* end confdefs.h. */ |
3144 | 3073 | #ifdef __STDC__ |
3145 | 3074 | # include <limits.h> |
@@ -3148,34 +3077,78 @@ do | ||
3148 | 3077 | #endif |
3149 | 3078 | Syntax error |
3150 | 3079 | _ACEOF |
3151 | -if ac_fn_c_try_cpp "$LINENO"; then : | |
3152 | - | |
3080 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3081 | +case "(($ac_try" in | |
3082 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3083 | + *) ac_try_echo=$ac_try;; | |
3084 | +esac | |
3085 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3086 | +$as_echo "$ac_try_echo") >&5 | |
3087 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3088 | + ac_status=$? | |
3089 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3090 | + rm -f conftest.er1 | |
3091 | + cat conftest.err >&5 | |
3092 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3093 | + (exit $ac_status); } >/dev/null && { | |
3094 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3095 | + test ! -s conftest.err | |
3096 | + }; then | |
3097 | + : | |
3153 | 3098 | else |
3099 | + $as_echo "$as_me: failed program was:" >&5 | |
3100 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3101 | + | |
3154 | 3102 | # Broken: fails on valid input. |
3155 | 3103 | continue |
3156 | 3104 | fi |
3157 | -rm -f conftest.err conftest.i conftest.$ac_ext | |
3105 | + | |
3106 | +rm -f conftest.err conftest.$ac_ext | |
3158 | 3107 | |
3159 | 3108 | # OK, works on sane cases. Now check whether nonexistent headers |
3160 | 3109 | # can be detected and how. |
3161 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3110 | + cat >conftest.$ac_ext <<_ACEOF | |
3111 | +/* confdefs.h. */ | |
3112 | +_ACEOF | |
3113 | +cat confdefs.h >>conftest.$ac_ext | |
3114 | +cat >>conftest.$ac_ext <<_ACEOF | |
3162 | 3115 | /* end confdefs.h. */ |
3163 | 3116 | #include <ac_nonexistent.h> |
3164 | 3117 | _ACEOF |
3165 | -if ac_fn_c_try_cpp "$LINENO"; then : | |
3118 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3119 | +case "(($ac_try" in | |
3120 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3121 | + *) ac_try_echo=$ac_try;; | |
3122 | +esac | |
3123 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3124 | +$as_echo "$ac_try_echo") >&5 | |
3125 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3126 | + ac_status=$? | |
3127 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3128 | + rm -f conftest.er1 | |
3129 | + cat conftest.err >&5 | |
3130 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3131 | + (exit $ac_status); } >/dev/null && { | |
3132 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3133 | + test ! -s conftest.err | |
3134 | + }; then | |
3166 | 3135 | # Broken: success on invalid input. |
3167 | 3136 | continue |
3168 | 3137 | else |
3138 | + $as_echo "$as_me: failed program was:" >&5 | |
3139 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3140 | + | |
3169 | 3141 | # Passes both tests. |
3170 | 3142 | ac_preproc_ok=: |
3171 | 3143 | break |
3172 | 3144 | fi |
3173 | -rm -f conftest.err conftest.i conftest.$ac_ext | |
3145 | + | |
3146 | +rm -f conftest.err conftest.$ac_ext | |
3174 | 3147 | |
3175 | 3148 | done |
3176 | 3149 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3177 | -rm -f conftest.i conftest.err conftest.$ac_ext | |
3178 | -if $ac_preproc_ok; then : | |
3150 | +rm -f conftest.err conftest.$ac_ext | |
3151 | +if $ac_preproc_ok; then | |
3179 | 3152 | break |
3180 | 3153 | fi |
3181 | 3154 |
@@ -3187,7 +3160,7 @@ fi | ||
3187 | 3160 | else |
3188 | 3161 | ac_cv_prog_CPP=$CPP |
3189 | 3162 | fi |
3190 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3163 | +{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 | |
3191 | 3164 | $as_echo "$CPP" >&6; } |
3192 | 3165 | ac_preproc_ok=false |
3193 | 3166 | for ac_c_preproc_warn_flag in '' yes |
@@ -3198,7 +3171,11 @@ do | ||
3198 | 3171 | # <limits.h> exists even on freestanding compilers. |
3199 | 3172 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3200 | 3173 | # not just through cpp. "Syntax error" is here to catch this case. |
3201 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3174 | + cat >conftest.$ac_ext <<_ACEOF | |
3175 | +/* confdefs.h. */ | |
3176 | +_ACEOF | |
3177 | +cat confdefs.h >>conftest.$ac_ext | |
3178 | +cat >>conftest.$ac_ext <<_ACEOF | |
3202 | 3179 | /* end confdefs.h. */ |
3203 | 3180 | #ifdef __STDC__ |
3204 | 3181 | # include <limits.h> |
@@ -3207,40 +3184,87 @@ do | ||
3207 | 3184 | #endif |
3208 | 3185 | Syntax error |
3209 | 3186 | _ACEOF |
3210 | -if ac_fn_c_try_cpp "$LINENO"; then : | |
3211 | - | |
3187 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3188 | +case "(($ac_try" in | |
3189 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3190 | + *) ac_try_echo=$ac_try;; | |
3191 | +esac | |
3192 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3193 | +$as_echo "$ac_try_echo") >&5 | |
3194 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3195 | + ac_status=$? | |
3196 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3197 | + rm -f conftest.er1 | |
3198 | + cat conftest.err >&5 | |
3199 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3200 | + (exit $ac_status); } >/dev/null && { | |
3201 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3202 | + test ! -s conftest.err | |
3203 | + }; then | |
3204 | + : | |
3212 | 3205 | else |
3206 | + $as_echo "$as_me: failed program was:" >&5 | |
3207 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3208 | + | |
3213 | 3209 | # Broken: fails on valid input. |
3214 | 3210 | continue |
3215 | 3211 | fi |
3216 | -rm -f conftest.err conftest.i conftest.$ac_ext | |
3212 | + | |
3213 | +rm -f conftest.err conftest.$ac_ext | |
3217 | 3214 | |
3218 | 3215 | # OK, works on sane cases. Now check whether nonexistent headers |
3219 | 3216 | # can be detected and how. |
3220 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3217 | + cat >conftest.$ac_ext <<_ACEOF | |
3218 | +/* confdefs.h. */ | |
3219 | +_ACEOF | |
3220 | +cat confdefs.h >>conftest.$ac_ext | |
3221 | +cat >>conftest.$ac_ext <<_ACEOF | |
3221 | 3222 | /* end confdefs.h. */ |
3222 | 3223 | #include <ac_nonexistent.h> |
3223 | 3224 | _ACEOF |
3224 | -if ac_fn_c_try_cpp "$LINENO"; then : | |
3225 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3226 | +case "(($ac_try" in | |
3227 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3228 | + *) ac_try_echo=$ac_try;; | |
3229 | +esac | |
3230 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3231 | +$as_echo "$ac_try_echo") >&5 | |
3232 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3233 | + ac_status=$? | |
3234 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3235 | + rm -f conftest.er1 | |
3236 | + cat conftest.err >&5 | |
3237 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3238 | + (exit $ac_status); } >/dev/null && { | |
3239 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3240 | + test ! -s conftest.err | |
3241 | + }; then | |
3225 | 3242 | # Broken: success on invalid input. |
3226 | 3243 | continue |
3227 | 3244 | else |
3245 | + $as_echo "$as_me: failed program was:" >&5 | |
3246 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3247 | + | |
3228 | 3248 | # Passes both tests. |
3229 | 3249 | ac_preproc_ok=: |
3230 | 3250 | break |
3231 | 3251 | fi |
3232 | -rm -f conftest.err conftest.i conftest.$ac_ext | |
3252 | + | |
3253 | +rm -f conftest.err conftest.$ac_ext | |
3233 | 3254 | |
3234 | 3255 | done |
3235 | 3256 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3236 | -rm -f conftest.i conftest.err conftest.$ac_ext | |
3237 | -if $ac_preproc_ok; then : | |
3238 | - | |
3257 | +rm -f conftest.err conftest.$ac_ext | |
3258 | +if $ac_preproc_ok; then | |
3259 | + : | |
3239 | 3260 | else |
3240 | - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3261 | + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3241 | 3262 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3242 | -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3243 | -See \`config.log' for more details" "$LINENO" 5 ; } | |
3263 | +{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3264 | +See \`config.log' for more details." >&5 | |
3265 | +$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3266 | +See \`config.log' for more details." >&2;} | |
3267 | + { (exit 1); exit 1; }; }; } | |
3244 | 3268 | fi |
3245 | 3269 | |
3246 | 3270 | ac_ext=c |
@@ -3250,9 +3274,9 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
3250 | 3274 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3251 | 3275 | |
3252 | 3276 | |
3253 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3277 | +{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
3254 | 3278 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
3255 | -if ${ac_cv_path_GREP+:} false; then : | |
3279 | +if test "${ac_cv_path_GREP+set}" = set; then | |
3256 | 3280 | $as_echo_n "(cached) " >&6 |
3257 | 3281 | else |
3258 | 3282 | if test -z "$GREP"; then |
@@ -3263,7 +3287,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3263 | 3287 | do |
3264 | 3288 | IFS=$as_save_IFS |
3265 | 3289 | test -z "$as_dir" && as_dir=. |
3266 | - for ac_prog in grep ggrep; do | |
3290 | + for ac_prog in grep ggrep; do | |
3267 | 3291 | for ac_exec_ext in '' $ac_executable_extensions; do |
3268 | 3292 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3269 | 3293 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
@@ -3283,7 +3307,7 @@ case `"$ac_path_GREP" --version 2>&1` in | ||
3283 | 3307 | $as_echo 'GREP' >> "conftest.nl" |
3284 | 3308 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3285 | 3309 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3286 | - as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3310 | + ac_count=`expr $ac_count + 1` | |
3287 | 3311 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3288 | 3312 | # Best one so far, save it but keep looking for a better one |
3289 | 3313 | ac_cv_path_GREP="$ac_path_GREP" |
@@ -3298,24 +3322,26 @@ esac | ||
3298 | 3322 | $ac_path_GREP_found && break 3 |
3299 | 3323 | done |
3300 | 3324 | done |
3301 | - done | |
3325 | +done | |
3302 | 3326 | IFS=$as_save_IFS |
3303 | 3327 | if test -z "$ac_cv_path_GREP"; then |
3304 | - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3328 | + { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3329 | +$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3330 | + { (exit 1); exit 1; }; } | |
3305 | 3331 | fi |
3306 | 3332 | else |
3307 | 3333 | ac_cv_path_GREP=$GREP |
3308 | 3334 | fi |
3309 | 3335 | |
3310 | 3336 | fi |
3311 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3337 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3312 | 3338 | $as_echo "$ac_cv_path_GREP" >&6; } |
3313 | 3339 | GREP="$ac_cv_path_GREP" |
3314 | 3340 | |
3315 | 3341 | |
3316 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3342 | +{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 | |
3317 | 3343 | $as_echo_n "checking for egrep... " >&6; } |
3318 | -if ${ac_cv_path_EGREP+:} false; then : | |
3344 | +if test "${ac_cv_path_EGREP+set}" = set; then | |
3319 | 3345 | $as_echo_n "(cached) " >&6 |
3320 | 3346 | else |
3321 | 3347 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
@@ -3329,7 +3355,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3329 | 3355 | do |
3330 | 3356 | IFS=$as_save_IFS |
3331 | 3357 | test -z "$as_dir" && as_dir=. |
3332 | - for ac_prog in egrep; do | |
3358 | + for ac_prog in egrep; do | |
3333 | 3359 | for ac_exec_ext in '' $ac_executable_extensions; do |
3334 | 3360 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3335 | 3361 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
@@ -3349,7 +3375,7 @@ case `"$ac_path_EGREP" --version 2>&1` in | ||
3349 | 3375 | $as_echo 'EGREP' >> "conftest.nl" |
3350 | 3376 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3351 | 3377 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3352 | - as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3378 | + ac_count=`expr $ac_count + 1` | |
3353 | 3379 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
3354 | 3380 | # Best one so far, save it but keep looking for a better one |
3355 | 3381 | ac_cv_path_EGREP="$ac_path_EGREP" |
@@ -3364,10 +3390,12 @@ esac | ||
3364 | 3390 | $ac_path_EGREP_found && break 3 |
3365 | 3391 | done |
3366 | 3392 | done |
3367 | - done | |
3393 | +done | |
3368 | 3394 | IFS=$as_save_IFS |
3369 | 3395 | if test -z "$ac_cv_path_EGREP"; then |
3370 | - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3396 | + { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3397 | +$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3398 | + { (exit 1); exit 1; }; } | |
3371 | 3399 | fi |
3372 | 3400 | else |
3373 | 3401 | ac_cv_path_EGREP=$EGREP |
@@ -3375,17 +3403,21 @@ fi | ||
3375 | 3403 | |
3376 | 3404 | fi |
3377 | 3405 | fi |
3378 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3406 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3379 | 3407 | $as_echo "$ac_cv_path_EGREP" >&6; } |
3380 | 3408 | EGREP="$ac_cv_path_EGREP" |
3381 | 3409 | |
3382 | 3410 | |
3383 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3411 | +{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3384 | 3412 | $as_echo_n "checking for ANSI C header files... " >&6; } |
3385 | -if ${ac_cv_header_stdc+:} false; then : | |
3413 | +if test "${ac_cv_header_stdc+set}" = set; then | |
3386 | 3414 | $as_echo_n "(cached) " >&6 |
3387 | 3415 | else |
3388 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3416 | + cat >conftest.$ac_ext <<_ACEOF | |
3417 | +/* confdefs.h. */ | |
3418 | +_ACEOF | |
3419 | +cat confdefs.h >>conftest.$ac_ext | |
3420 | +cat >>conftest.$ac_ext <<_ACEOF | |
3389 | 3421 | /* end confdefs.h. */ |
3390 | 3422 | #include <stdlib.h> |
3391 | 3423 | #include <stdarg.h> |
@@ -3400,23 +3432,48 @@ main () | ||
3400 | 3432 | return 0; |
3401 | 3433 | } |
3402 | 3434 | _ACEOF |
3403 | -if ac_fn_c_try_compile "$LINENO"; then : | |
3435 | +rm -f conftest.$ac_objext | |
3436 | +if { (ac_try="$ac_compile" | |
3437 | +case "(($ac_try" in | |
3438 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3439 | + *) ac_try_echo=$ac_try;; | |
3440 | +esac | |
3441 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3442 | +$as_echo "$ac_try_echo") >&5 | |
3443 | + (eval "$ac_compile") 2>conftest.er1 | |
3444 | + ac_status=$? | |
3445 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3446 | + rm -f conftest.er1 | |
3447 | + cat conftest.err >&5 | |
3448 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3449 | + (exit $ac_status); } && { | |
3450 | + test -z "$ac_c_werror_flag" || | |
3451 | + test ! -s conftest.err | |
3452 | + } && test -s conftest.$ac_objext; then | |
3404 | 3453 | ac_cv_header_stdc=yes |
3405 | 3454 | else |
3406 | - ac_cv_header_stdc=no | |
3455 | + $as_echo "$as_me: failed program was:" >&5 | |
3456 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3457 | + | |
3458 | + ac_cv_header_stdc=no | |
3407 | 3459 | fi |
3460 | + | |
3408 | 3461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3409 | 3462 | |
3410 | 3463 | if test $ac_cv_header_stdc = yes; then |
3411 | 3464 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
3412 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3465 | + cat >conftest.$ac_ext <<_ACEOF | |
3466 | +/* confdefs.h. */ | |
3467 | +_ACEOF | |
3468 | +cat confdefs.h >>conftest.$ac_ext | |
3469 | +cat >>conftest.$ac_ext <<_ACEOF | |
3413 | 3470 | /* end confdefs.h. */ |
3414 | 3471 | #include <string.h> |
3415 | 3472 | |
3416 | 3473 | _ACEOF |
3417 | 3474 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3418 | - $EGREP "memchr" >/dev/null 2>&1; then : | |
3419 | - | |
3475 | + $EGREP "memchr" >/dev/null 2>&1; then | |
3476 | + : | |
3420 | 3477 | else |
3421 | 3478 | ac_cv_header_stdc=no |
3422 | 3479 | fi |
@@ -3426,14 +3483,18 @@ fi | ||
3426 | 3483 | |
3427 | 3484 | if test $ac_cv_header_stdc = yes; then |
3428 | 3485 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
3429 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3486 | + cat >conftest.$ac_ext <<_ACEOF | |
3487 | +/* confdefs.h. */ | |
3488 | +_ACEOF | |
3489 | +cat confdefs.h >>conftest.$ac_ext | |
3490 | +cat >>conftest.$ac_ext <<_ACEOF | |
3430 | 3491 | /* end confdefs.h. */ |
3431 | 3492 | #include <stdlib.h> |
3432 | 3493 | |
3433 | 3494 | _ACEOF |
3434 | 3495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3435 | - $EGREP "free" >/dev/null 2>&1; then : | |
3436 | - | |
3496 | + $EGREP "free" >/dev/null 2>&1; then | |
3497 | + : | |
3437 | 3498 | else |
3438 | 3499 | ac_cv_header_stdc=no |
3439 | 3500 | fi |
@@ -3443,10 +3504,14 @@ fi | ||
3443 | 3504 | |
3444 | 3505 | if test $ac_cv_header_stdc = yes; then |
3445 | 3506 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
3446 | - if test "$cross_compiling" = yes; then : | |
3507 | + if test "$cross_compiling" = yes; then | |
3447 | 3508 | : |
3448 | 3509 | else |
3449 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3510 | + cat >conftest.$ac_ext <<_ACEOF | |
3511 | +/* confdefs.h. */ | |
3512 | +_ACEOF | |
3513 | +cat confdefs.h >>conftest.$ac_ext | |
3514 | +cat >>conftest.$ac_ext <<_ACEOF | |
3450 | 3515 | /* end confdefs.h. */ |
3451 | 3516 | #include <ctype.h> |
3452 | 3517 | #include <stdlib.h> |
@@ -3473,140 +3538,1288 @@ main () | ||
3473 | 3538 | return 0; |
3474 | 3539 | } |
3475 | 3540 | _ACEOF |
3476 | -if ac_fn_c_try_run "$LINENO"; then : | |
3477 | - | |
3541 | +rm -f conftest$ac_exeext | |
3542 | +if { (ac_try="$ac_link" | |
3543 | +case "(($ac_try" in | |
3544 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3545 | + *) ac_try_echo=$ac_try;; | |
3546 | +esac | |
3547 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3548 | +$as_echo "$ac_try_echo") >&5 | |
3549 | + (eval "$ac_link") 2>&5 | |
3550 | + ac_status=$? | |
3551 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3552 | + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3553 | + { (case "(($ac_try" in | |
3554 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3555 | + *) ac_try_echo=$ac_try;; | |
3556 | +esac | |
3557 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3558 | +$as_echo "$ac_try_echo") >&5 | |
3559 | + (eval "$ac_try") 2>&5 | |
3560 | + ac_status=$? | |
3561 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3562 | + (exit $ac_status); }; }; then | |
3563 | + : | |
3478 | 3564 | else |
3479 | - ac_cv_header_stdc=no | |
3565 | + $as_echo "$as_me: program exited with status $ac_status" >&5 | |
3566 | +$as_echo "$as_me: failed program was:" >&5 | |
3567 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3568 | + | |
3569 | +( exit $ac_status ) | |
3570 | +ac_cv_header_stdc=no | |
3480 | 3571 | fi |
3481 | -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3482 | - conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3572 | +rm -rf conftest.dSYM | |
3573 | +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3483 | 3574 | fi |
3484 | 3575 | |
3576 | + | |
3485 | 3577 | fi |
3486 | 3578 | fi |
3487 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3579 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3488 | 3580 | $as_echo "$ac_cv_header_stdc" >&6; } |
3489 | 3581 | if test $ac_cv_header_stdc = yes; then |
3490 | 3582 | |
3491 | -$as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3583 | +cat >>confdefs.h <<\_ACEOF | |
3584 | +#define STDC_HEADERS 1 | |
3585 | +_ACEOF | |
3492 | 3586 | |
3493 | 3587 | fi |
3494 | 3588 | |
3495 | 3589 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3496 | -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3497 | - inttypes.h stdint.h unistd.h | |
3498 | -do : | |
3499 | - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3500 | -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3501 | -" | |
3502 | -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3503 | - cat >>confdefs.h <<_ACEOF | |
3504 | -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3505 | -_ACEOF | |
3506 | 3590 | |
3507 | -fi | |
3508 | 3591 | |
3509 | -done | |
3510 | 3592 | |
3511 | 3593 | |
3512 | -ac_fn_c_check_header_mongrel "$LINENO" "xyzsh/xyzsh.h" "ac_cv_header_xyzsh_xyzsh_h" "$ac_includes_default" | |
3513 | -if test "x$ac_cv_header_xyzsh_xyzsh_h" = xyes; then : | |
3514 | - LIBS="$LIBS -lxyzsh"; $as_echo "#define HAVE_XYZSH_H 1" >>confdefs.h | |
3515 | 3594 | |
3516 | -else | |
3517 | - exit | |
3518 | -fi | |
3519 | 3595 | |
3520 | 3596 | |
3521 | 3597 | |
3522 | -###################################################################### | |
3523 | -# readline settings | |
3524 | -###################################################################### | |
3525 | -ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" | |
3526 | -if test "x$ac_cv_header_readline_readline_h" = xyes; then : | |
3527 | - $as_echo "#define HAVE_READLINE_H 1" >>confdefs.h | |
3528 | 3598 | |
3599 | +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3600 | + inttypes.h stdint.h unistd.h | |
3601 | +do | |
3602 | +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3603 | +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3604 | +$as_echo_n "checking for $ac_header... " >&6; } | |
3605 | +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
3606 | + $as_echo_n "(cached) " >&6 | |
3529 | 3607 | else |
3530 | - exit | |
3531 | -fi | |
3608 | + cat >conftest.$ac_ext <<_ACEOF | |
3609 | +/* confdefs.h. */ | |
3610 | +_ACEOF | |
3611 | +cat confdefs.h >>conftest.$ac_ext | |
3612 | +cat >>conftest.$ac_ext <<_ACEOF | |
3613 | +/* end confdefs.h. */ | |
3614 | +$ac_includes_default | |
3615 | + | |
3616 | +#include <$ac_header> | |
3617 | +_ACEOF | |
3618 | +rm -f conftest.$ac_objext | |
3619 | +if { (ac_try="$ac_compile" | |
3620 | +case "(($ac_try" in | |
3621 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3622 | + *) ac_try_echo=$ac_try;; | |
3623 | +esac | |
3624 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3625 | +$as_echo "$ac_try_echo") >&5 | |
3626 | + (eval "$ac_compile") 2>conftest.er1 | |
3627 | + ac_status=$? | |
3628 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3629 | + rm -f conftest.er1 | |
3630 | + cat conftest.err >&5 | |
3631 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3632 | + (exit $ac_status); } && { | |
3633 | + test -z "$ac_c_werror_flag" || | |
3634 | + test ! -s conftest.err | |
3635 | + } && test -s conftest.$ac_objext; then | |
3636 | + eval "$as_ac_Header=yes" | |
3637 | +else | |
3638 | + $as_echo "$as_me: failed program was:" >&5 | |
3639 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3532 | 3640 | |
3641 | + eval "$as_ac_Header=no" | |
3642 | +fi | |
3533 | 3643 | |
3534 | -ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" | |
3535 | -if test "x$ac_cv_header_readline_history_h" = xyes; then : | |
3536 | - $as_echo "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h | |
3644 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3645 | +fi | |
3646 | +ac_res=`eval 'as_val=${'$as_ac_Header'} | |
3647 | + $as_echo "$as_val"'` | |
3648 | + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3649 | +$as_echo "$ac_res" >&6; } | |
3650 | +as_val=`eval 'as_val=${'$as_ac_Header'} | |
3651 | + $as_echo "$as_val"'` | |
3652 | + if test "x$as_val" = x""yes; then | |
3653 | + cat >>confdefs.h <<_ACEOF | |
3654 | +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3655 | +_ACEOF | |
3537 | 3656 | |
3538 | -else | |
3539 | - exit | |
3540 | 3657 | fi |
3541 | 3658 | |
3659 | +done | |
3660 | + | |
3542 | 3661 | |
3543 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5 | |
3544 | -$as_echo_n "checking for main in -lreadline... " >&6; } | |
3545 | -if ${ac_cv_lib_readline_main+:} false; then : | |
3662 | +if test "${ac_cv_header_xyzsh_xyzsh_h+set}" = set; then | |
3663 | + { $as_echo "$as_me:$LINENO: checking for xyzsh/xyzsh.h" >&5 | |
3664 | +$as_echo_n "checking for xyzsh/xyzsh.h... " >&6; } | |
3665 | +if test "${ac_cv_header_xyzsh_xyzsh_h+set}" = set; then | |
3546 | 3666 | $as_echo_n "(cached) " >&6 |
3667 | +fi | |
3668 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xyzsh_xyzsh_h" >&5 | |
3669 | +$as_echo "$ac_cv_header_xyzsh_xyzsh_h" >&6; } | |
3547 | 3670 | else |
3548 | - ac_check_lib_save_LIBS=$LIBS | |
3549 | -LIBS="-lreadline $LIBS" | |
3550 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3671 | + # Is the header compilable? | |
3672 | +{ $as_echo "$as_me:$LINENO: checking xyzsh/xyzsh.h usability" >&5 | |
3673 | +$as_echo_n "checking xyzsh/xyzsh.h usability... " >&6; } | |
3674 | +cat >conftest.$ac_ext <<_ACEOF | |
3675 | +/* confdefs.h. */ | |
3676 | +_ACEOF | |
3677 | +cat confdefs.h >>conftest.$ac_ext | |
3678 | +cat >>conftest.$ac_ext <<_ACEOF | |
3551 | 3679 | /* end confdefs.h. */ |
3552 | - | |
3553 | - | |
3554 | -int | |
3555 | -main () | |
3556 | -{ | |
3557 | -return main (); | |
3558 | - ; | |
3559 | - return 0; | |
3560 | -} | |
3680 | +$ac_includes_default | |
3681 | +#include <xyzsh/xyzsh.h> | |
3561 | 3682 | _ACEOF |
3562 | -if ac_fn_c_try_link "$LINENO"; then : | |
3563 | - ac_cv_lib_readline_main=yes | |
3564 | -else | |
3565 | - ac_cv_lib_readline_main=no | |
3683 | +rm -f conftest.$ac_objext | |
3684 | +if { (ac_try="$ac_compile" | |
3685 | +case "(($ac_try" in | |
3686 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3687 | + *) ac_try_echo=$ac_try;; | |
3688 | +esac | |
3689 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3690 | +$as_echo "$ac_try_echo") >&5 | |
3691 | + (eval "$ac_compile") 2>conftest.er1 | |
3692 | + ac_status=$? | |
3693 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3694 | + rm -f conftest.er1 | |
3695 | + cat conftest.err >&5 | |
3696 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3697 | + (exit $ac_status); } && { | |
3698 | + test -z "$ac_c_werror_flag" || | |
3699 | + test ! -s conftest.err | |
3700 | + } && test -s conftest.$ac_objext; then | |
3701 | + ac_header_compiler=yes | |
3702 | +else | |
3703 | + $as_echo "$as_me: failed program was:" >&5 | |
3704 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3705 | + | |
3706 | + ac_header_compiler=no | |
3707 | +fi | |
3708 | + | |
3709 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3710 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3711 | +$as_echo "$ac_header_compiler" >&6; } | |
3712 | + | |
3713 | +# Is the header present? | |
3714 | +{ $as_echo "$as_me:$LINENO: checking xyzsh/xyzsh.h presence" >&5 | |
3715 | +$as_echo_n "checking xyzsh/xyzsh.h presence... " >&6; } | |
3716 | +cat >conftest.$ac_ext <<_ACEOF | |
3717 | +/* confdefs.h. */ | |
3718 | +_ACEOF | |
3719 | +cat confdefs.h >>conftest.$ac_ext | |
3720 | +cat >>conftest.$ac_ext <<_ACEOF | |
3721 | +/* end confdefs.h. */ | |
3722 | +#include <xyzsh/xyzsh.h> | |
3723 | +_ACEOF | |
3724 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3725 | +case "(($ac_try" in | |
3726 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3727 | + *) ac_try_echo=$ac_try;; | |
3728 | +esac | |
3729 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3730 | +$as_echo "$ac_try_echo") >&5 | |
3731 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3732 | + ac_status=$? | |
3733 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3734 | + rm -f conftest.er1 | |
3735 | + cat conftest.err >&5 | |
3736 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3737 | + (exit $ac_status); } >/dev/null && { | |
3738 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3739 | + test ! -s conftest.err | |
3740 | + }; then | |
3741 | + ac_header_preproc=yes | |
3742 | +else | |
3743 | + $as_echo "$as_me: failed program was:" >&5 | |
3744 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3745 | + | |
3746 | + ac_header_preproc=no | |
3747 | +fi | |
3748 | + | |
3749 | +rm -f conftest.err conftest.$ac_ext | |
3750 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3751 | +$as_echo "$ac_header_preproc" >&6; } | |
3752 | + | |
3753 | +# So? What about this header? | |
3754 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3755 | + yes:no: ) | |
3756 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3757 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3758 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: proceeding with the compiler's result" >&5 | |
3759 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: proceeding with the compiler's result" >&2;} | |
3760 | + ac_header_preproc=yes | |
3761 | + ;; | |
3762 | + no:yes:* ) | |
3763 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: present but cannot be compiled" >&5 | |
3764 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: present but cannot be compiled" >&2;} | |
3765 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: check for missing prerequisite headers?" >&5 | |
3766 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: check for missing prerequisite headers?" >&2;} | |
3767 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: see the Autoconf documentation" >&5 | |
3768 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: see the Autoconf documentation" >&2;} | |
3769 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3770 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3771 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: proceeding with the preprocessor's result" >&5 | |
3772 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: proceeding with the preprocessor's result" >&2;} | |
3773 | + { $as_echo "$as_me:$LINENO: WARNING: xyzsh/xyzsh.h: in the future, the compiler will take precedence" >&5 | |
3774 | +$as_echo "$as_me: WARNING: xyzsh/xyzsh.h: in the future, the compiler will take precedence" >&2;} | |
3775 | + | |
3776 | + ;; | |
3777 | +esac | |
3778 | +{ $as_echo "$as_me:$LINENO: checking for xyzsh/xyzsh.h" >&5 | |
3779 | +$as_echo_n "checking for xyzsh/xyzsh.h... " >&6; } | |
3780 | +if test "${ac_cv_header_xyzsh_xyzsh_h+set}" = set; then | |
3781 | + $as_echo_n "(cached) " >&6 | |
3782 | +else | |
3783 | + ac_cv_header_xyzsh_xyzsh_h=$ac_header_preproc | |
3784 | +fi | |
3785 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xyzsh_xyzsh_h" >&5 | |
3786 | +$as_echo "$ac_cv_header_xyzsh_xyzsh_h" >&6; } | |
3787 | + | |
3788 | +fi | |
3789 | +if test "x$ac_cv_header_xyzsh_xyzsh_h" = x""yes; then | |
3790 | + LIBS="$LIBS -lxyzsh"; cat >>confdefs.h <<\_ACEOF | |
3791 | +#define HAVE_XYZSH_H 1 | |
3792 | +_ACEOF | |
3793 | + | |
3794 | +else | |
3795 | + exit | |
3796 | +fi | |
3797 | + | |
3798 | + | |
3799 | + | |
3800 | +###################################################################### | |
3801 | +# readline settings | |
3802 | +###################################################################### | |
3803 | +if test "${ac_cv_header_readline_readline_h+set}" = set; then | |
3804 | + { $as_echo "$as_me:$LINENO: checking for readline/readline.h" >&5 | |
3805 | +$as_echo_n "checking for readline/readline.h... " >&6; } | |
3806 | +if test "${ac_cv_header_readline_readline_h+set}" = set; then | |
3807 | + $as_echo_n "(cached) " >&6 | |
3808 | +fi | |
3809 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5 | |
3810 | +$as_echo "$ac_cv_header_readline_readline_h" >&6; } | |
3811 | +else | |
3812 | + # Is the header compilable? | |
3813 | +{ $as_echo "$as_me:$LINENO: checking readline/readline.h usability" >&5 | |
3814 | +$as_echo_n "checking readline/readline.h usability... " >&6; } | |
3815 | +cat >conftest.$ac_ext <<_ACEOF | |
3816 | +/* confdefs.h. */ | |
3817 | +_ACEOF | |
3818 | +cat confdefs.h >>conftest.$ac_ext | |
3819 | +cat >>conftest.$ac_ext <<_ACEOF | |
3820 | +/* end confdefs.h. */ | |
3821 | +$ac_includes_default | |
3822 | +#include <readline/readline.h> | |
3823 | +_ACEOF | |
3824 | +rm -f conftest.$ac_objext | |
3825 | +if { (ac_try="$ac_compile" | |
3826 | +case "(($ac_try" in | |
3827 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3828 | + *) ac_try_echo=$ac_try;; | |
3829 | +esac | |
3830 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3831 | +$as_echo "$ac_try_echo") >&5 | |
3832 | + (eval "$ac_compile") 2>conftest.er1 | |
3833 | + ac_status=$? | |
3834 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3835 | + rm -f conftest.er1 | |
3836 | + cat conftest.err >&5 | |
3837 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3838 | + (exit $ac_status); } && { | |
3839 | + test -z "$ac_c_werror_flag" || | |
3840 | + test ! -s conftest.err | |
3841 | + } && test -s conftest.$ac_objext; then | |
3842 | + ac_header_compiler=yes | |
3843 | +else | |
3844 | + $as_echo "$as_me: failed program was:" >&5 | |
3845 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3846 | + | |
3847 | + ac_header_compiler=no | |
3848 | +fi | |
3849 | + | |
3850 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3851 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3852 | +$as_echo "$ac_header_compiler" >&6; } | |
3853 | + | |
3854 | +# Is the header present? | |
3855 | +{ $as_echo "$as_me:$LINENO: checking readline/readline.h presence" >&5 | |
3856 | +$as_echo_n "checking readline/readline.h presence... " >&6; } | |
3857 | +cat >conftest.$ac_ext <<_ACEOF | |
3858 | +/* confdefs.h. */ | |
3859 | +_ACEOF | |
3860 | +cat confdefs.h >>conftest.$ac_ext | |
3861 | +cat >>conftest.$ac_ext <<_ACEOF | |
3862 | +/* end confdefs.h. */ | |
3863 | +#include <readline/readline.h> | |
3864 | +_ACEOF | |
3865 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3866 | +case "(($ac_try" in | |
3867 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3868 | + *) ac_try_echo=$ac_try;; | |
3869 | +esac | |
3870 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3871 | +$as_echo "$ac_try_echo") >&5 | |
3872 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3873 | + ac_status=$? | |
3874 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3875 | + rm -f conftest.er1 | |
3876 | + cat conftest.err >&5 | |
3877 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3878 | + (exit $ac_status); } >/dev/null && { | |
3879 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3880 | + test ! -s conftest.err | |
3881 | + }; then | |
3882 | + ac_header_preproc=yes | |
3883 | +else | |
3884 | + $as_echo "$as_me: failed program was:" >&5 | |
3885 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3886 | + | |
3887 | + ac_header_preproc=no | |
3888 | +fi | |
3889 | + | |
3890 | +rm -f conftest.err conftest.$ac_ext | |
3891 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3892 | +$as_echo "$ac_header_preproc" >&6; } | |
3893 | + | |
3894 | +# So? What about this header? | |
3895 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3896 | + yes:no: ) | |
3897 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3898 | +$as_echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3899 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5 | |
3900 | +$as_echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;} | |
3901 | + ac_header_preproc=yes | |
3902 | + ;; | |
3903 | + no:yes:* ) | |
3904 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5 | |
3905 | +$as_echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;} | |
3906 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5 | |
3907 | +$as_echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;} | |
3908 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5 | |
3909 | +$as_echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;} | |
3910 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3911 | +$as_echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3912 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5 | |
3913 | +$as_echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;} | |
3914 | + { $as_echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5 | |
3915 | +$as_echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;} | |
3916 | + | |
3917 | + ;; | |
3918 | +esac | |
3919 | +{ $as_echo "$as_me:$LINENO: checking for readline/readline.h" >&5 | |
3920 | +$as_echo_n "checking for readline/readline.h... " >&6; } | |
3921 | +if test "${ac_cv_header_readline_readline_h+set}" = set; then | |
3922 | + $as_echo_n "(cached) " >&6 | |
3923 | +else | |
3924 | + ac_cv_header_readline_readline_h=$ac_header_preproc | |
3925 | +fi | |
3926 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5 | |
3927 | +$as_echo "$ac_cv_header_readline_readline_h" >&6; } | |
3928 | + | |
3929 | +fi | |
3930 | +if test "x$ac_cv_header_readline_readline_h" = x""yes; then | |
3931 | + cat >>confdefs.h <<\_ACEOF | |
3932 | +#define HAVE_READLINE_H 1 | |
3933 | +_ACEOF | |
3934 | + | |
3935 | +else | |
3936 | + exit | |
3937 | +fi | |
3938 | + | |
3939 | + | |
3940 | +if test "${ac_cv_header_readline_history_h+set}" = set; then | |
3941 | + { $as_echo "$as_me:$LINENO: checking for readline/history.h" >&5 | |
3942 | +$as_echo_n "checking for readline/history.h... " >&6; } | |
3943 | +if test "${ac_cv_header_readline_history_h+set}" = set; then | |
3944 | + $as_echo_n "(cached) " >&6 | |
3945 | +fi | |
3946 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5 | |
3947 | +$as_echo "$ac_cv_header_readline_history_h" >&6; } | |
3948 | +else | |
3949 | + # Is the header compilable? | |
3950 | +{ $as_echo "$as_me:$LINENO: checking readline/history.h usability" >&5 | |
3951 | +$as_echo_n "checking readline/history.h usability... " >&6; } | |
3952 | +cat >conftest.$ac_ext <<_ACEOF | |
3953 | +/* confdefs.h. */ | |
3954 | +_ACEOF | |
3955 | +cat confdefs.h >>conftest.$ac_ext | |
3956 | +cat >>conftest.$ac_ext <<_ACEOF | |
3957 | +/* end confdefs.h. */ | |
3958 | +$ac_includes_default | |
3959 | +#include <readline/history.h> | |
3960 | +_ACEOF | |
3961 | +rm -f conftest.$ac_objext | |
3962 | +if { (ac_try="$ac_compile" | |
3963 | +case "(($ac_try" in | |
3964 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3965 | + *) ac_try_echo=$ac_try;; | |
3966 | +esac | |
3967 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3968 | +$as_echo "$ac_try_echo") >&5 | |
3969 | + (eval "$ac_compile") 2>conftest.er1 | |
3970 | + ac_status=$? | |
3971 | + grep -v '^ *+' conftest.er1 >conftest.err | |
3972 | + rm -f conftest.er1 | |
3973 | + cat conftest.err >&5 | |
3974 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3975 | + (exit $ac_status); } && { | |
3976 | + test -z "$ac_c_werror_flag" || | |
3977 | + test ! -s conftest.err | |
3978 | + } && test -s conftest.$ac_objext; then | |
3979 | + ac_header_compiler=yes | |
3980 | +else | |
3981 | + $as_echo "$as_me: failed program was:" >&5 | |
3982 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
3983 | + | |
3984 | + ac_header_compiler=no | |
3985 | +fi | |
3986 | + | |
3987 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3988 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3989 | +$as_echo "$ac_header_compiler" >&6; } | |
3990 | + | |
3991 | +# Is the header present? | |
3992 | +{ $as_echo "$as_me:$LINENO: checking readline/history.h presence" >&5 | |
3993 | +$as_echo_n "checking readline/history.h presence... " >&6; } | |
3994 | +cat >conftest.$ac_ext <<_ACEOF | |
3995 | +/* confdefs.h. */ | |
3996 | +_ACEOF | |
3997 | +cat confdefs.h >>conftest.$ac_ext | |
3998 | +cat >>conftest.$ac_ext <<_ACEOF | |
3999 | +/* end confdefs.h. */ | |
4000 | +#include <readline/history.h> | |
4001 | +_ACEOF | |
4002 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4003 | +case "(($ac_try" in | |
4004 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4005 | + *) ac_try_echo=$ac_try;; | |
4006 | +esac | |
4007 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4008 | +$as_echo "$ac_try_echo") >&5 | |
4009 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4010 | + ac_status=$? | |
4011 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4012 | + rm -f conftest.er1 | |
4013 | + cat conftest.err >&5 | |
4014 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4015 | + (exit $ac_status); } >/dev/null && { | |
4016 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4017 | + test ! -s conftest.err | |
4018 | + }; then | |
4019 | + ac_header_preproc=yes | |
4020 | +else | |
4021 | + $as_echo "$as_me: failed program was:" >&5 | |
4022 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4023 | + | |
4024 | + ac_header_preproc=no | |
4025 | +fi | |
4026 | + | |
4027 | +rm -f conftest.err conftest.$ac_ext | |
4028 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4029 | +$as_echo "$ac_header_preproc" >&6; } | |
4030 | + | |
4031 | +# So? What about this header? | |
4032 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4033 | + yes:no: ) | |
4034 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4035 | +$as_echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4036 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5 | |
4037 | +$as_echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;} | |
4038 | + ac_header_preproc=yes | |
4039 | + ;; | |
4040 | + no:yes:* ) | |
4041 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5 | |
4042 | +$as_echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;} | |
4043 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5 | |
4044 | +$as_echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;} | |
4045 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5 | |
4046 | +$as_echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;} | |
4047 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4048 | +$as_echo "$as_me: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4049 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5 | |
4050 | +$as_echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;} | |
4051 | + { $as_echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5 | |
4052 | +$as_echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;} | |
4053 | + | |
4054 | + ;; | |
4055 | +esac | |
4056 | +{ $as_echo "$as_me:$LINENO: checking for readline/history.h" >&5 | |
4057 | +$as_echo_n "checking for readline/history.h... " >&6; } | |
4058 | +if test "${ac_cv_header_readline_history_h+set}" = set; then | |
4059 | + $as_echo_n "(cached) " >&6 | |
4060 | +else | |
4061 | + ac_cv_header_readline_history_h=$ac_header_preproc | |
4062 | +fi | |
4063 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5 | |
4064 | +$as_echo "$ac_cv_header_readline_history_h" >&6; } | |
4065 | + | |
4066 | +fi | |
4067 | +if test "x$ac_cv_header_readline_history_h" = x""yes; then | |
4068 | + cat >>confdefs.h <<\_ACEOF | |
4069 | +#define HAVE_READLINE_HISTORY_H 1 | |
4070 | +_ACEOF | |
4071 | + | |
4072 | +else | |
4073 | + exit | |
4074 | +fi | |
4075 | + | |
4076 | + | |
4077 | +{ $as_echo "$as_me:$LINENO: checking for main in -lreadline" >&5 | |
4078 | +$as_echo_n "checking for main in -lreadline... " >&6; } | |
4079 | +if test "${ac_cv_lib_readline_main+set}" = set; then | |
4080 | + $as_echo_n "(cached) " >&6 | |
4081 | +else | |
4082 | + ac_check_lib_save_LIBS=$LIBS | |
4083 | +LIBS="-lreadline $LIBS" | |
4084 | +cat >conftest.$ac_ext <<_ACEOF | |
4085 | +/* confdefs.h. */ | |
4086 | +_ACEOF | |
4087 | +cat confdefs.h >>conftest.$ac_ext | |
4088 | +cat >>conftest.$ac_ext <<_ACEOF | |
4089 | +/* end confdefs.h. */ | |
4090 | + | |
4091 | + | |
4092 | +int | |
4093 | +main () | |
4094 | +{ | |
4095 | +return main (); | |
4096 | + ; | |
4097 | + return 0; | |
4098 | +} | |
4099 | +_ACEOF | |
4100 | +rm -f conftest.$ac_objext conftest$ac_exeext | |
4101 | +if { (ac_try="$ac_link" | |
4102 | +case "(($ac_try" in | |
4103 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4104 | + *) ac_try_echo=$ac_try;; | |
4105 | +esac | |
4106 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4107 | +$as_echo "$ac_try_echo") >&5 | |
4108 | + (eval "$ac_link") 2>conftest.er1 | |
4109 | + ac_status=$? | |
4110 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4111 | + rm -f conftest.er1 | |
4112 | + cat conftest.err >&5 | |
4113 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4114 | + (exit $ac_status); } && { | |
4115 | + test -z "$ac_c_werror_flag" || | |
4116 | + test ! -s conftest.err | |
4117 | + } && test -s conftest$ac_exeext && { | |
4118 | + test "$cross_compiling" = yes || | |
4119 | + $as_test_x conftest$ac_exeext | |
4120 | + }; then | |
4121 | + ac_cv_lib_readline_main=yes | |
4122 | +else | |
4123 | + $as_echo "$as_me: failed program was:" >&5 | |
4124 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4125 | + | |
4126 | + ac_cv_lib_readline_main=no | |
4127 | +fi | |
4128 | + | |
4129 | +rm -rf conftest.dSYM | |
4130 | +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4131 | + conftest$ac_exeext conftest.$ac_ext | |
4132 | +LIBS=$ac_check_lib_save_LIBS | |
4133 | +fi | |
4134 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5 | |
4135 | +$as_echo "$ac_cv_lib_readline_main" >&6; } | |
4136 | +if test "x$ac_cv_lib_readline_main" = x""yes; then | |
4137 | + LIBS="$LIBS -lreadline" | |
4138 | +else | |
4139 | + exit | |
4140 | +fi | |
4141 | +ac_cv_lib_readline=ac_cv_lib_readline_main | |
4142 | + | |
4143 | + | |
4144 | +########################################################################### | |
4145 | +# libcurses | |
4146 | +########################################################################### | |
4147 | +if test "${ac_cv_header_ncurses_h+set}" = set; then | |
4148 | + { $as_echo "$as_me:$LINENO: checking for ncurses.h" >&5 | |
4149 | +$as_echo_n "checking for ncurses.h... " >&6; } | |
4150 | +if test "${ac_cv_header_ncurses_h+set}" = set; then | |
4151 | + $as_echo_n "(cached) " >&6 | |
4152 | +fi | |
4153 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5 | |
4154 | +$as_echo "$ac_cv_header_ncurses_h" >&6; } | |
4155 | +else | |
4156 | + # Is the header compilable? | |
4157 | +{ $as_echo "$as_me:$LINENO: checking ncurses.h usability" >&5 | |
4158 | +$as_echo_n "checking ncurses.h usability... " >&6; } | |
4159 | +cat >conftest.$ac_ext <<_ACEOF | |
4160 | +/* confdefs.h. */ | |
4161 | +_ACEOF | |
4162 | +cat confdefs.h >>conftest.$ac_ext | |
4163 | +cat >>conftest.$ac_ext <<_ACEOF | |
4164 | +/* end confdefs.h. */ | |
4165 | +$ac_includes_default | |
4166 | +#include <ncurses.h> | |
4167 | +_ACEOF | |
4168 | +rm -f conftest.$ac_objext | |
4169 | +if { (ac_try="$ac_compile" | |
4170 | +case "(($ac_try" in | |
4171 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4172 | + *) ac_try_echo=$ac_try;; | |
4173 | +esac | |
4174 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4175 | +$as_echo "$ac_try_echo") >&5 | |
4176 | + (eval "$ac_compile") 2>conftest.er1 | |
4177 | + ac_status=$? | |
4178 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4179 | + rm -f conftest.er1 | |
4180 | + cat conftest.err >&5 | |
4181 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4182 | + (exit $ac_status); } && { | |
4183 | + test -z "$ac_c_werror_flag" || | |
4184 | + test ! -s conftest.err | |
4185 | + } && test -s conftest.$ac_objext; then | |
4186 | + ac_header_compiler=yes | |
4187 | +else | |
4188 | + $as_echo "$as_me: failed program was:" >&5 | |
4189 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4190 | + | |
4191 | + ac_header_compiler=no | |
4192 | +fi | |
4193 | + | |
4194 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4195 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4196 | +$as_echo "$ac_header_compiler" >&6; } | |
4197 | + | |
4198 | +# Is the header present? | |
4199 | +{ $as_echo "$as_me:$LINENO: checking ncurses.h presence" >&5 | |
4200 | +$as_echo_n "checking ncurses.h presence... " >&6; } | |
4201 | +cat >conftest.$ac_ext <<_ACEOF | |
4202 | +/* confdefs.h. */ | |
4203 | +_ACEOF | |
4204 | +cat confdefs.h >>conftest.$ac_ext | |
4205 | +cat >>conftest.$ac_ext <<_ACEOF | |
4206 | +/* end confdefs.h. */ | |
4207 | +#include <ncurses.h> | |
4208 | +_ACEOF | |
4209 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4210 | +case "(($ac_try" in | |
4211 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4212 | + *) ac_try_echo=$ac_try;; | |
4213 | +esac | |
4214 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4215 | +$as_echo "$ac_try_echo") >&5 | |
4216 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4217 | + ac_status=$? | |
4218 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4219 | + rm -f conftest.er1 | |
4220 | + cat conftest.err >&5 | |
4221 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4222 | + (exit $ac_status); } >/dev/null && { | |
4223 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4224 | + test ! -s conftest.err | |
4225 | + }; then | |
4226 | + ac_header_preproc=yes | |
4227 | +else | |
4228 | + $as_echo "$as_me: failed program was:" >&5 | |
4229 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4230 | + | |
4231 | + ac_header_preproc=no | |
4232 | +fi | |
4233 | + | |
4234 | +rm -f conftest.err conftest.$ac_ext | |
4235 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4236 | +$as_echo "$ac_header_preproc" >&6; } | |
4237 | + | |
4238 | +# So? What about this header? | |
4239 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4240 | + yes:no: ) | |
4241 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4242 | +$as_echo "$as_me: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4243 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the compiler's result" >&5 | |
4244 | +$as_echo "$as_me: WARNING: ncurses.h: proceeding with the compiler's result" >&2;} | |
4245 | + ac_header_preproc=yes | |
4246 | + ;; | |
4247 | + no:yes:* ) | |
4248 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: present but cannot be compiled" >&5 | |
4249 | +$as_echo "$as_me: WARNING: ncurses.h: present but cannot be compiled" >&2;} | |
4250 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: check for missing prerequisite headers?" >&5 | |
4251 | +$as_echo "$as_me: WARNING: ncurses.h: check for missing prerequisite headers?" >&2;} | |
4252 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: see the Autoconf documentation" >&5 | |
4253 | +$as_echo "$as_me: WARNING: ncurses.h: see the Autoconf documentation" >&2;} | |
4254 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4255 | +$as_echo "$as_me: WARNING: ncurses.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4256 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the preprocessor's result" >&5 | |
4257 | +$as_echo "$as_me: WARNING: ncurses.h: proceeding with the preprocessor's result" >&2;} | |
4258 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses.h: in the future, the compiler will take precedence" >&5 | |
4259 | +$as_echo "$as_me: WARNING: ncurses.h: in the future, the compiler will take precedence" >&2;} | |
4260 | + | |
4261 | + ;; | |
4262 | +esac | |
4263 | +{ $as_echo "$as_me:$LINENO: checking for ncurses.h" >&5 | |
4264 | +$as_echo_n "checking for ncurses.h... " >&6; } | |
4265 | +if test "${ac_cv_header_ncurses_h+set}" = set; then | |
4266 | + $as_echo_n "(cached) " >&6 | |
4267 | +else | |
4268 | + ac_cv_header_ncurses_h=$ac_header_preproc | |
4269 | +fi | |
4270 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5 | |
4271 | +$as_echo "$ac_cv_header_ncurses_h" >&6; } | |
4272 | + | |
4273 | +fi | |
4274 | +if test "x$ac_cv_header_ncurses_h" = x""yes; then | |
4275 | + NCURSES_OK=1; cat >>confdefs.h <<\_ACEOF | |
4276 | +#define HAVE_NCURSES_H 1 | |
4277 | +_ACEOF | |
4278 | + | |
4279 | +fi | |
4280 | + | |
4281 | + | |
4282 | +if test "${ac_cv_header_ncurses_ncurses_h+set}" = set; then | |
4283 | + { $as_echo "$as_me:$LINENO: checking for ncurses/ncurses.h" >&5 | |
4284 | +$as_echo_n "checking for ncurses/ncurses.h... " >&6; } | |
4285 | +if test "${ac_cv_header_ncurses_ncurses_h+set}" = set; then | |
4286 | + $as_echo_n "(cached) " >&6 | |
4287 | +fi | |
4288 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_ncurses_h" >&5 | |
4289 | +$as_echo "$ac_cv_header_ncurses_ncurses_h" >&6; } | |
4290 | +else | |
4291 | + # Is the header compilable? | |
4292 | +{ $as_echo "$as_me:$LINENO: checking ncurses/ncurses.h usability" >&5 | |
4293 | +$as_echo_n "checking ncurses/ncurses.h usability... " >&6; } | |
4294 | +cat >conftest.$ac_ext <<_ACEOF | |
4295 | +/* confdefs.h. */ | |
4296 | +_ACEOF | |
4297 | +cat confdefs.h >>conftest.$ac_ext | |
4298 | +cat >>conftest.$ac_ext <<_ACEOF | |
4299 | +/* end confdefs.h. */ | |
4300 | +$ac_includes_default | |
4301 | +#include <ncurses/ncurses.h> | |
4302 | +_ACEOF | |
4303 | +rm -f conftest.$ac_objext | |
4304 | +if { (ac_try="$ac_compile" | |
4305 | +case "(($ac_try" in | |
4306 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4307 | + *) ac_try_echo=$ac_try;; | |
4308 | +esac | |
4309 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4310 | +$as_echo "$ac_try_echo") >&5 | |
4311 | + (eval "$ac_compile") 2>conftest.er1 | |
4312 | + ac_status=$? | |
4313 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4314 | + rm -f conftest.er1 | |
4315 | + cat conftest.err >&5 | |
4316 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4317 | + (exit $ac_status); } && { | |
4318 | + test -z "$ac_c_werror_flag" || | |
4319 | + test ! -s conftest.err | |
4320 | + } && test -s conftest.$ac_objext; then | |
4321 | + ac_header_compiler=yes | |
4322 | +else | |
4323 | + $as_echo "$as_me: failed program was:" >&5 | |
4324 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4325 | + | |
4326 | + ac_header_compiler=no | |
4327 | +fi | |
4328 | + | |
4329 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4330 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4331 | +$as_echo "$ac_header_compiler" >&6; } | |
4332 | + | |
4333 | +# Is the header present? | |
4334 | +{ $as_echo "$as_me:$LINENO: checking ncurses/ncurses.h presence" >&5 | |
4335 | +$as_echo_n "checking ncurses/ncurses.h presence... " >&6; } | |
4336 | +cat >conftest.$ac_ext <<_ACEOF | |
4337 | +/* confdefs.h. */ | |
4338 | +_ACEOF | |
4339 | +cat confdefs.h >>conftest.$ac_ext | |
4340 | +cat >>conftest.$ac_ext <<_ACEOF | |
4341 | +/* end confdefs.h. */ | |
4342 | +#include <ncurses/ncurses.h> | |
4343 | +_ACEOF | |
4344 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4345 | +case "(($ac_try" in | |
4346 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4347 | + *) ac_try_echo=$ac_try;; | |
4348 | +esac | |
4349 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4350 | +$as_echo "$ac_try_echo") >&5 | |
4351 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4352 | + ac_status=$? | |
4353 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4354 | + rm -f conftest.er1 | |
4355 | + cat conftest.err >&5 | |
4356 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4357 | + (exit $ac_status); } >/dev/null && { | |
4358 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4359 | + test ! -s conftest.err | |
4360 | + }; then | |
4361 | + ac_header_preproc=yes | |
4362 | +else | |
4363 | + $as_echo "$as_me: failed program was:" >&5 | |
4364 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4365 | + | |
4366 | + ac_header_preproc=no | |
4367 | +fi | |
4368 | + | |
4369 | +rm -f conftest.err conftest.$ac_ext | |
4370 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4371 | +$as_echo "$ac_header_preproc" >&6; } | |
4372 | + | |
4373 | +# So? What about this header? | |
4374 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4375 | + yes:no: ) | |
4376 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4377 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4378 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: proceeding with the compiler's result" >&5 | |
4379 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: proceeding with the compiler's result" >&2;} | |
4380 | + ac_header_preproc=yes | |
4381 | + ;; | |
4382 | + no:yes:* ) | |
4383 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: present but cannot be compiled" >&5 | |
4384 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: present but cannot be compiled" >&2;} | |
4385 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: check for missing prerequisite headers?" >&5 | |
4386 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: check for missing prerequisite headers?" >&2;} | |
4387 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: see the Autoconf documentation" >&5 | |
4388 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: see the Autoconf documentation" >&2;} | |
4389 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4390 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4391 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: proceeding with the preprocessor's result" >&5 | |
4392 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: proceeding with the preprocessor's result" >&2;} | |
4393 | + { $as_echo "$as_me:$LINENO: WARNING: ncurses/ncurses.h: in the future, the compiler will take precedence" >&5 | |
4394 | +$as_echo "$as_me: WARNING: ncurses/ncurses.h: in the future, the compiler will take precedence" >&2;} | |
4395 | + | |
4396 | + ;; | |
4397 | +esac | |
4398 | +{ $as_echo "$as_me:$LINENO: checking for ncurses/ncurses.h" >&5 | |
4399 | +$as_echo_n "checking for ncurses/ncurses.h... " >&6; } | |
4400 | +if test "${ac_cv_header_ncurses_ncurses_h+set}" = set; then | |
4401 | + $as_echo_n "(cached) " >&6 | |
4402 | +else | |
4403 | + ac_cv_header_ncurses_ncurses_h=$ac_header_preproc | |
4404 | +fi | |
4405 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_ncurses_h" >&5 | |
4406 | +$as_echo "$ac_cv_header_ncurses_ncurses_h" >&6; } | |
4407 | + | |
4408 | +fi | |
4409 | +if test "x$ac_cv_header_ncurses_ncurses_h" = x""yes; then | |
4410 | + NCURSES_OK=1; cat >>confdefs.h <<\_ACEOF | |
4411 | +#define HAVE_NCURSES_NCURSES_H 1 | |
4412 | +_ACEOF | |
4413 | + | |
4414 | +fi | |
4415 | + | |
4416 | + | |
4417 | +{ $as_echo "$as_me:$LINENO: checking for main in -lcursesw" >&5 | |
4418 | +$as_echo_n "checking for main in -lcursesw... " >&6; } | |
4419 | +if test "${ac_cv_lib_cursesw_main+set}" = set; then | |
4420 | + $as_echo_n "(cached) " >&6 | |
4421 | +else | |
4422 | + ac_check_lib_save_LIBS=$LIBS | |
4423 | +LIBS="-lcursesw $LIBS" | |
4424 | +cat >conftest.$ac_ext <<_ACEOF | |
4425 | +/* confdefs.h. */ | |
4426 | +_ACEOF | |
4427 | +cat confdefs.h >>conftest.$ac_ext | |
4428 | +cat >>conftest.$ac_ext <<_ACEOF | |
4429 | +/* end confdefs.h. */ | |
4430 | + | |
4431 | + | |
4432 | +int | |
4433 | +main () | |
4434 | +{ | |
4435 | +return main (); | |
4436 | + ; | |
4437 | + return 0; | |
4438 | +} | |
4439 | +_ACEOF | |
4440 | +rm -f conftest.$ac_objext conftest$ac_exeext | |
4441 | +if { (ac_try="$ac_link" | |
4442 | +case "(($ac_try" in | |
4443 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4444 | + *) ac_try_echo=$ac_try;; | |
4445 | +esac | |
4446 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4447 | +$as_echo "$ac_try_echo") >&5 | |
4448 | + (eval "$ac_link") 2>conftest.er1 | |
4449 | + ac_status=$? | |
4450 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4451 | + rm -f conftest.er1 | |
4452 | + cat conftest.err >&5 | |
4453 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4454 | + (exit $ac_status); } && { | |
4455 | + test -z "$ac_c_werror_flag" || | |
4456 | + test ! -s conftest.err | |
4457 | + } && test -s conftest$ac_exeext && { | |
4458 | + test "$cross_compiling" = yes || | |
4459 | + $as_test_x conftest$ac_exeext | |
4460 | + }; then | |
4461 | + ac_cv_lib_cursesw_main=yes | |
4462 | +else | |
4463 | + $as_echo "$as_me: failed program was:" >&5 | |
4464 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4465 | + | |
4466 | + ac_cv_lib_cursesw_main=no | |
4467 | +fi | |
4468 | + | |
4469 | +rm -rf conftest.dSYM | |
4470 | +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4471 | + conftest$ac_exeext conftest.$ac_ext | |
4472 | +LIBS=$ac_check_lib_save_LIBS | |
4473 | +fi | |
4474 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cursesw_main" >&5 | |
4475 | +$as_echo "$ac_cv_lib_cursesw_main" >&6; } | |
4476 | +if test "x$ac_cv_lib_cursesw_main" = x""yes; then | |
4477 | + LIBS="$LIBS -lcursesw"; NCURSES_OK2=1 | |
4478 | +fi | |
4479 | +ac_cv_lib_cursesw=ac_cv_lib_cursesw_main | |
4480 | + | |
4481 | +{ $as_echo "$as_me:$LINENO: checking for main in -lncursesw" >&5 | |
4482 | +$as_echo_n "checking for main in -lncursesw... " >&6; } | |
4483 | +if test "${ac_cv_lib_ncursesw_main+set}" = set; then | |
4484 | + $as_echo_n "(cached) " >&6 | |
4485 | +else | |
4486 | + ac_check_lib_save_LIBS=$LIBS | |
4487 | +LIBS="-lncursesw $LIBS" | |
4488 | +cat >conftest.$ac_ext <<_ACEOF | |
4489 | +/* confdefs.h. */ | |
4490 | +_ACEOF | |
4491 | +cat confdefs.h >>conftest.$ac_ext | |
4492 | +cat >>conftest.$ac_ext <<_ACEOF | |
4493 | +/* end confdefs.h. */ | |
4494 | + | |
4495 | + | |
4496 | +int | |
4497 | +main () | |
4498 | +{ | |
4499 | +return main (); | |
4500 | + ; | |
4501 | + return 0; | |
4502 | +} | |
4503 | +_ACEOF | |
4504 | +rm -f conftest.$ac_objext conftest$ac_exeext | |
4505 | +if { (ac_try="$ac_link" | |
4506 | +case "(($ac_try" in | |
4507 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4508 | + *) ac_try_echo=$ac_try;; | |
4509 | +esac | |
4510 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4511 | +$as_echo "$ac_try_echo") >&5 | |
4512 | + (eval "$ac_link") 2>conftest.er1 | |
4513 | + ac_status=$? | |
4514 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4515 | + rm -f conftest.er1 | |
4516 | + cat conftest.err >&5 | |
4517 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4518 | + (exit $ac_status); } && { | |
4519 | + test -z "$ac_c_werror_flag" || | |
4520 | + test ! -s conftest.err | |
4521 | + } && test -s conftest$ac_exeext && { | |
4522 | + test "$cross_compiling" = yes || | |
4523 | + $as_test_x conftest$ac_exeext | |
4524 | + }; then | |
4525 | + ac_cv_lib_ncursesw_main=yes | |
4526 | +else | |
4527 | + $as_echo "$as_me: failed program was:" >&5 | |
4528 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4529 | + | |
4530 | + ac_cv_lib_ncursesw_main=no | |
3566 | 4531 | fi |
3567 | -rm -f core conftest.err conftest.$ac_objext \ | |
3568 | - conftest$ac_exeext conftest.$ac_ext | |
4532 | + | |
4533 | +rm -rf conftest.dSYM | |
4534 | +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4535 | + conftest$ac_exeext conftest.$ac_ext | |
3569 | 4536 | LIBS=$ac_check_lib_save_LIBS |
3570 | 4537 | fi |
3571 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5 | |
3572 | -$as_echo "$ac_cv_lib_readline_main" >&6; } | |
3573 | -if test "x$ac_cv_lib_readline_main" = xyes; then : | |
3574 | - LIBS="$LIBS -lreadline" | |
3575 | -else | |
3576 | - exit | |
4538 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_main" >&5 | |
4539 | +$as_echo "$ac_cv_lib_ncursesw_main" >&6; } | |
4540 | +if test "x$ac_cv_lib_ncursesw_main" = x""yes; then | |
4541 | + LIBS="$LIBS -lncursesw"; NCURSES_OK2=1 | |
3577 | 4542 | fi |
3578 | -ac_cv_lib_readline=ac_cv_lib_readline_main | |
4543 | +ac_cv_lib_ncursesw=ac_cv_lib_ncursesw_main | |
3579 | 4544 | |
3580 | 4545 | |
3581 | -########################################################################### | |
3582 | -# libcurses | |
3583 | -########################################################################### | |
3584 | -ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" | |
3585 | -if test "x$ac_cv_header_ncurses_h" = xyes; then : | |
3586 | - NCURSES_OK=1; LIBS="$LIBS -lncurses"; $as_echo "#define HAVE_NCURSES_H 1" >>confdefs.h | |
4546 | +if test -z "$NCURSES_OK2" | |
4547 | +then | |
4548 | + { $as_echo "$as_me:$LINENO: checking for main in -lcurses" >&5 | |
4549 | +$as_echo_n "checking for main in -lcurses... " >&6; } | |
4550 | +if test "${ac_cv_lib_curses_main+set}" = set; then | |
4551 | + $as_echo_n "(cached) " >&6 | |
4552 | +else | |
4553 | + ac_check_lib_save_LIBS=$LIBS | |
4554 | +LIBS="-lcurses $LIBS" | |
4555 | +cat >conftest.$ac_ext <<_ACEOF | |
4556 | +/* confdefs.h. */ | |
4557 | +_ACEOF | |
4558 | +cat confdefs.h >>conftest.$ac_ext | |
4559 | +cat >>conftest.$ac_ext <<_ACEOF | |
4560 | +/* end confdefs.h. */ | |
4561 | + | |
4562 | + | |
4563 | +int | |
4564 | +main () | |
4565 | +{ | |
4566 | +return main (); | |
4567 | + ; | |
4568 | + return 0; | |
4569 | +} | |
4570 | +_ACEOF | |
4571 | +rm -f conftest.$ac_objext conftest$ac_exeext | |
4572 | +if { (ac_try="$ac_link" | |
4573 | +case "(($ac_try" in | |
4574 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4575 | + *) ac_try_echo=$ac_try;; | |
4576 | +esac | |
4577 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4578 | +$as_echo "$ac_try_echo") >&5 | |
4579 | + (eval "$ac_link") 2>conftest.er1 | |
4580 | + ac_status=$? | |
4581 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4582 | + rm -f conftest.er1 | |
4583 | + cat conftest.err >&5 | |
4584 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4585 | + (exit $ac_status); } && { | |
4586 | + test -z "$ac_c_werror_flag" || | |
4587 | + test ! -s conftest.err | |
4588 | + } && test -s conftest$ac_exeext && { | |
4589 | + test "$cross_compiling" = yes || | |
4590 | + $as_test_x conftest$ac_exeext | |
4591 | + }; then | |
4592 | + ac_cv_lib_curses_main=yes | |
4593 | +else | |
4594 | + $as_echo "$as_me: failed program was:" >&5 | |
4595 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4596 | + | |
4597 | + ac_cv_lib_curses_main=no | |
4598 | +fi | |
3587 | 4599 | |
4600 | +rm -rf conftest.dSYM | |
4601 | +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4602 | + conftest$ac_exeext conftest.$ac_ext | |
4603 | +LIBS=$ac_check_lib_save_LIBS | |
4604 | +fi | |
4605 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5 | |
4606 | +$as_echo "$ac_cv_lib_curses_main" >&6; } | |
4607 | +if test "x$ac_cv_lib_curses_main" = x""yes; then | |
4608 | + LIBS="$LIBS -lcurses"; NCURSES_OK2=1 | |
3588 | 4609 | fi |
4610 | +ac_cv_lib_curses=ac_cv_lib_curses_main | |
4611 | + | |
4612 | + { $as_echo "$as_me:$LINENO: checking for main in -lncurses" >&5 | |
4613 | +$as_echo_n "checking for main in -lncurses... " >&6; } | |
4614 | +if test "${ac_cv_lib_ncurses_main+set}" = set; then | |
4615 | + $as_echo_n "(cached) " >&6 | |
4616 | +else | |
4617 | + ac_check_lib_save_LIBS=$LIBS | |
4618 | +LIBS="-lncurses $LIBS" | |
4619 | +cat >conftest.$ac_ext <<_ACEOF | |
4620 | +/* confdefs.h. */ | |
4621 | +_ACEOF | |
4622 | +cat confdefs.h >>conftest.$ac_ext | |
4623 | +cat >>conftest.$ac_ext <<_ACEOF | |
4624 | +/* end confdefs.h. */ | |
3589 | 4625 | |
3590 | 4626 | |
3591 | -ac_fn_c_check_header_mongrel "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default" | |
3592 | -if test "x$ac_cv_header_ncurses_ncurses_h" = xyes; then : | |
3593 | - NCURSES_OK=1; LIBS="$LIBS -lncurses"; $as_echo "#define HAVE_NCURSES_NCURSES_H 1" >>confdefs.h | |
4627 | +int | |
4628 | +main () | |
4629 | +{ | |
4630 | +return main (); | |
4631 | + ; | |
4632 | + return 0; | |
4633 | +} | |
4634 | +_ACEOF | |
4635 | +rm -f conftest.$ac_objext conftest$ac_exeext | |
4636 | +if { (ac_try="$ac_link" | |
4637 | +case "(($ac_try" in | |
4638 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4639 | + *) ac_try_echo=$ac_try;; | |
4640 | +esac | |
4641 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4642 | +$as_echo "$ac_try_echo") >&5 | |
4643 | + (eval "$ac_link") 2>conftest.er1 | |
4644 | + ac_status=$? | |
4645 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4646 | + rm -f conftest.er1 | |
4647 | + cat conftest.err >&5 | |
4648 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4649 | + (exit $ac_status); } && { | |
4650 | + test -z "$ac_c_werror_flag" || | |
4651 | + test ! -s conftest.err | |
4652 | + } && test -s conftest$ac_exeext && { | |
4653 | + test "$cross_compiling" = yes || | |
4654 | + $as_test_x conftest$ac_exeext | |
4655 | + }; then | |
4656 | + ac_cv_lib_ncurses_main=yes | |
4657 | +else | |
4658 | + $as_echo "$as_me: failed program was:" >&5 | |
4659 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4660 | + | |
4661 | + ac_cv_lib_ncurses_main=no | |
4662 | +fi | |
3594 | 4663 | |
4664 | +rm -rf conftest.dSYM | |
4665 | +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4666 | + conftest$ac_exeext conftest.$ac_ext | |
4667 | +LIBS=$ac_check_lib_save_LIBS | |
3595 | 4668 | fi |
4669 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5 | |
4670 | +$as_echo "$ac_cv_lib_ncurses_main" >&6; } | |
4671 | +if test "x$ac_cv_lib_ncurses_main" = x""yes; then | |
4672 | + LIBS="$LIBS -lncurses"; NCURSES_OK2=1 | |
4673 | +fi | |
4674 | +ac_cv_lib_ncurses=ac_cv_lib_ncurses_main | |
3596 | 4675 | |
4676 | +fi | |
3597 | 4677 | |
4678 | +if test -z "$NCURSES_OK" | |
4679 | +then | |
4680 | + exit | |
4681 | +fi | |
3598 | 4682 | |
3599 | -if test -z NCURSES_OK | |
4683 | +if test -z "$NCURSES_OK2" | |
3600 | 4684 | then |
3601 | 4685 | exit |
3602 | 4686 | fi |
3603 | 4687 | |
4688 | + | |
3604 | 4689 | ########################################################################### |
3605 | 4690 | # math library |
3606 | 4691 | ########################################################################### |
3607 | -ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" | |
3608 | -if test "x$ac_cv_header_math_h" = xyes; then : | |
3609 | - LIBS="$LIBS -lm"; $as_echo "#define HAVE_MATH_H 1" >>confdefs.h | |
4692 | +if test "${ac_cv_header_math_h+set}" = set; then | |
4693 | + { $as_echo "$as_me:$LINENO: checking for math.h" >&5 | |
4694 | +$as_echo_n "checking for math.h... " >&6; } | |
4695 | +if test "${ac_cv_header_math_h+set}" = set; then | |
4696 | + $as_echo_n "(cached) " >&6 | |
4697 | +fi | |
4698 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_math_h" >&5 | |
4699 | +$as_echo "$ac_cv_header_math_h" >&6; } | |
4700 | +else | |
4701 | + # Is the header compilable? | |
4702 | +{ $as_echo "$as_me:$LINENO: checking math.h usability" >&5 | |
4703 | +$as_echo_n "checking math.h usability... " >&6; } | |
4704 | +cat >conftest.$ac_ext <<_ACEOF | |
4705 | +/* confdefs.h. */ | |
4706 | +_ACEOF | |
4707 | +cat confdefs.h >>conftest.$ac_ext | |
4708 | +cat >>conftest.$ac_ext <<_ACEOF | |
4709 | +/* end confdefs.h. */ | |
4710 | +$ac_includes_default | |
4711 | +#include <math.h> | |
4712 | +_ACEOF | |
4713 | +rm -f conftest.$ac_objext | |
4714 | +if { (ac_try="$ac_compile" | |
4715 | +case "(($ac_try" in | |
4716 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4717 | + *) ac_try_echo=$ac_try;; | |
4718 | +esac | |
4719 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4720 | +$as_echo "$ac_try_echo") >&5 | |
4721 | + (eval "$ac_compile") 2>conftest.er1 | |
4722 | + ac_status=$? | |
4723 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4724 | + rm -f conftest.er1 | |
4725 | + cat conftest.err >&5 | |
4726 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4727 | + (exit $ac_status); } && { | |
4728 | + test -z "$ac_c_werror_flag" || | |
4729 | + test ! -s conftest.err | |
4730 | + } && test -s conftest.$ac_objext; then | |
4731 | + ac_header_compiler=yes | |
4732 | +else | |
4733 | + $as_echo "$as_me: failed program was:" >&5 | |
4734 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4735 | + | |
4736 | + ac_header_compiler=no | |
4737 | +fi | |
4738 | + | |
4739 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4740 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4741 | +$as_echo "$ac_header_compiler" >&6; } | |
4742 | + | |
4743 | +# Is the header present? | |
4744 | +{ $as_echo "$as_me:$LINENO: checking math.h presence" >&5 | |
4745 | +$as_echo_n "checking math.h presence... " >&6; } | |
4746 | +cat >conftest.$ac_ext <<_ACEOF | |
4747 | +/* confdefs.h. */ | |
4748 | +_ACEOF | |
4749 | +cat confdefs.h >>conftest.$ac_ext | |
4750 | +cat >>conftest.$ac_ext <<_ACEOF | |
4751 | +/* end confdefs.h. */ | |
4752 | +#include <math.h> | |
4753 | +_ACEOF | |
4754 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4755 | +case "(($ac_try" in | |
4756 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4757 | + *) ac_try_echo=$ac_try;; | |
4758 | +esac | |
4759 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4760 | +$as_echo "$ac_try_echo") >&5 | |
4761 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4762 | + ac_status=$? | |
4763 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4764 | + rm -f conftest.er1 | |
4765 | + cat conftest.err >&5 | |
4766 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4767 | + (exit $ac_status); } >/dev/null && { | |
4768 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4769 | + test ! -s conftest.err | |
4770 | + }; then | |
4771 | + ac_header_preproc=yes | |
4772 | +else | |
4773 | + $as_echo "$as_me: failed program was:" >&5 | |
4774 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4775 | + | |
4776 | + ac_header_preproc=no | |
4777 | +fi | |
4778 | + | |
4779 | +rm -f conftest.err conftest.$ac_ext | |
4780 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4781 | +$as_echo "$ac_header_preproc" >&6; } | |
4782 | + | |
4783 | +# So? What about this header? | |
4784 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4785 | + yes:no: ) | |
4786 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4787 | +$as_echo "$as_me: WARNING: math.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4788 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: proceeding with the compiler's result" >&5 | |
4789 | +$as_echo "$as_me: WARNING: math.h: proceeding with the compiler's result" >&2;} | |
4790 | + ac_header_preproc=yes | |
4791 | + ;; | |
4792 | + no:yes:* ) | |
4793 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: present but cannot be compiled" >&5 | |
4794 | +$as_echo "$as_me: WARNING: math.h: present but cannot be compiled" >&2;} | |
4795 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: check for missing prerequisite headers?" >&5 | |
4796 | +$as_echo "$as_me: WARNING: math.h: check for missing prerequisite headers?" >&2;} | |
4797 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: see the Autoconf documentation" >&5 | |
4798 | +$as_echo "$as_me: WARNING: math.h: see the Autoconf documentation" >&2;} | |
4799 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4800 | +$as_echo "$as_me: WARNING: math.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4801 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: proceeding with the preprocessor's result" >&5 | |
4802 | +$as_echo "$as_me: WARNING: math.h: proceeding with the preprocessor's result" >&2;} | |
4803 | + { $as_echo "$as_me:$LINENO: WARNING: math.h: in the future, the compiler will take precedence" >&5 | |
4804 | +$as_echo "$as_me: WARNING: math.h: in the future, the compiler will take precedence" >&2;} | |
4805 | + | |
4806 | + ;; | |
4807 | +esac | |
4808 | +{ $as_echo "$as_me:$LINENO: checking for math.h" >&5 | |
4809 | +$as_echo_n "checking for math.h... " >&6; } | |
4810 | +if test "${ac_cv_header_math_h+set}" = set; then | |
4811 | + $as_echo_n "(cached) " >&6 | |
4812 | +else | |
4813 | + ac_cv_header_math_h=$ac_header_preproc | |
4814 | +fi | |
4815 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_math_h" >&5 | |
4816 | +$as_echo "$ac_cv_header_math_h" >&6; } | |
4817 | + | |
4818 | +fi | |
4819 | +if test "x$ac_cv_header_math_h" = x""yes; then | |
4820 | + LIBS="$LIBS -lm"; cat >>confdefs.h <<\_ACEOF | |
4821 | +#define HAVE_MATH_H 1 | |
4822 | +_ACEOF | |
3610 | 4823 | |
3611 | 4824 | else |
3612 | 4825 | exit |
@@ -3617,22 +4830,278 @@ fi | ||
3617 | 4830 | ########################################################################## |
3618 | 4831 | # oniguruma |
3619 | 4832 | ########################################################################### |
3620 | -ac_fn_c_check_header_mongrel "$LINENO" "oniguruma.h" "ac_cv_header_oniguruma_h" "$ac_includes_default" | |
3621 | -if test "x$ac_cv_header_oniguruma_h" = xyes; then : | |
3622 | - LIBS="$LIBS -lonig"; $as_echo "#define HAVE_ONIGURUMA_H 1" >>confdefs.h | |
4833 | +if test "${ac_cv_header_oniguruma_h+set}" = set; then | |
4834 | + { $as_echo "$as_me:$LINENO: checking for oniguruma.h" >&5 | |
4835 | +$as_echo_n "checking for oniguruma.h... " >&6; } | |
4836 | +if test "${ac_cv_header_oniguruma_h+set}" = set; then | |
4837 | + $as_echo_n "(cached) " >&6 | |
4838 | +fi | |
4839 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_oniguruma_h" >&5 | |
4840 | +$as_echo "$ac_cv_header_oniguruma_h" >&6; } | |
4841 | +else | |
4842 | + # Is the header compilable? | |
4843 | +{ $as_echo "$as_me:$LINENO: checking oniguruma.h usability" >&5 | |
4844 | +$as_echo_n "checking oniguruma.h usability... " >&6; } | |
4845 | +cat >conftest.$ac_ext <<_ACEOF | |
4846 | +/* confdefs.h. */ | |
4847 | +_ACEOF | |
4848 | +cat confdefs.h >>conftest.$ac_ext | |
4849 | +cat >>conftest.$ac_ext <<_ACEOF | |
4850 | +/* end confdefs.h. */ | |
4851 | +$ac_includes_default | |
4852 | +#include <oniguruma.h> | |
4853 | +_ACEOF | |
4854 | +rm -f conftest.$ac_objext | |
4855 | +if { (ac_try="$ac_compile" | |
4856 | +case "(($ac_try" in | |
4857 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4858 | + *) ac_try_echo=$ac_try;; | |
4859 | +esac | |
4860 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4861 | +$as_echo "$ac_try_echo") >&5 | |
4862 | + (eval "$ac_compile") 2>conftest.er1 | |
4863 | + ac_status=$? | |
4864 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4865 | + rm -f conftest.er1 | |
4866 | + cat conftest.err >&5 | |
4867 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4868 | + (exit $ac_status); } && { | |
4869 | + test -z "$ac_c_werror_flag" || | |
4870 | + test ! -s conftest.err | |
4871 | + } && test -s conftest.$ac_objext; then | |
4872 | + ac_header_compiler=yes | |
4873 | +else | |
4874 | + $as_echo "$as_me: failed program was:" >&5 | |
4875 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4876 | + | |
4877 | + ac_header_compiler=no | |
4878 | +fi | |
4879 | + | |
4880 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4881 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4882 | +$as_echo "$ac_header_compiler" >&6; } | |
4883 | + | |
4884 | +# Is the header present? | |
4885 | +{ $as_echo "$as_me:$LINENO: checking oniguruma.h presence" >&5 | |
4886 | +$as_echo_n "checking oniguruma.h presence... " >&6; } | |
4887 | +cat >conftest.$ac_ext <<_ACEOF | |
4888 | +/* confdefs.h. */ | |
4889 | +_ACEOF | |
4890 | +cat confdefs.h >>conftest.$ac_ext | |
4891 | +cat >>conftest.$ac_ext <<_ACEOF | |
4892 | +/* end confdefs.h. */ | |
4893 | +#include <oniguruma.h> | |
4894 | +_ACEOF | |
4895 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4896 | +case "(($ac_try" in | |
4897 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4898 | + *) ac_try_echo=$ac_try;; | |
4899 | +esac | |
4900 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4901 | +$as_echo "$ac_try_echo") >&5 | |
4902 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4903 | + ac_status=$? | |
4904 | + grep -v '^ *+' conftest.er1 >conftest.err | |
4905 | + rm -f conftest.er1 | |
4906 | + cat conftest.err >&5 | |
4907 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4908 | + (exit $ac_status); } >/dev/null && { | |
4909 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4910 | + test ! -s conftest.err | |
4911 | + }; then | |
4912 | + ac_header_preproc=yes | |
4913 | +else | |
4914 | + $as_echo "$as_me: failed program was:" >&5 | |
4915 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
4916 | + | |
4917 | + ac_header_preproc=no | |
4918 | +fi | |
4919 | + | |
4920 | +rm -f conftest.err conftest.$ac_ext | |
4921 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4922 | +$as_echo "$ac_header_preproc" >&6; } | |
4923 | + | |
4924 | +# So? What about this header? | |
4925 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4926 | + yes:no: ) | |
4927 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4928 | +$as_echo "$as_me: WARNING: oniguruma.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4929 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: proceeding with the compiler's result" >&5 | |
4930 | +$as_echo "$as_me: WARNING: oniguruma.h: proceeding with the compiler's result" >&2;} | |
4931 | + ac_header_preproc=yes | |
4932 | + ;; | |
4933 | + no:yes:* ) | |
4934 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: present but cannot be compiled" >&5 | |
4935 | +$as_echo "$as_me: WARNING: oniguruma.h: present but cannot be compiled" >&2;} | |
4936 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: check for missing prerequisite headers?" >&5 | |
4937 | +$as_echo "$as_me: WARNING: oniguruma.h: check for missing prerequisite headers?" >&2;} | |
4938 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: see the Autoconf documentation" >&5 | |
4939 | +$as_echo "$as_me: WARNING: oniguruma.h: see the Autoconf documentation" >&2;} | |
4940 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4941 | +$as_echo "$as_me: WARNING: oniguruma.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4942 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: proceeding with the preprocessor's result" >&5 | |
4943 | +$as_echo "$as_me: WARNING: oniguruma.h: proceeding with the preprocessor's result" >&2;} | |
4944 | + { $as_echo "$as_me:$LINENO: WARNING: oniguruma.h: in the future, the compiler will take precedence" >&5 | |
4945 | +$as_echo "$as_me: WARNING: oniguruma.h: in the future, the compiler will take precedence" >&2;} | |
4946 | + | |
4947 | + ;; | |
4948 | +esac | |
4949 | +{ $as_echo "$as_me:$LINENO: checking for oniguruma.h" >&5 | |
4950 | +$as_echo_n "checking for oniguruma.h... " >&6; } | |
4951 | +if test "${ac_cv_header_oniguruma_h+set}" = set; then | |
4952 | + $as_echo_n "(cached) " >&6 | |
4953 | +else | |
4954 | + ac_cv_header_oniguruma_h=$ac_header_preproc | |
4955 | +fi | |
4956 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_oniguruma_h" >&5 | |
4957 | +$as_echo "$ac_cv_header_oniguruma_h" >&6; } | |
4958 | + | |
4959 | +fi | |
4960 | +if test "x$ac_cv_header_oniguruma_h" = x""yes; then | |
4961 | + LIBS="$LIBS -lonig"; cat >>confdefs.h <<\_ACEOF | |
4962 | +#define HAVE_ONIGURUMA_H 1 | |
4963 | +_ACEOF | |
4964 | + | |
4965 | +else | |
4966 | + exit | |
4967 | +fi | |
4968 | + | |
4969 | + | |
4970 | + | |
4971 | +#################################################################### | |
4972 | +# iconv settings | |
4973 | +#################################################################### | |
4974 | +if test "${ac_cv_header_iconv_h+set}" = set; then | |
4975 | + { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5 | |
4976 | +$as_echo_n "checking for iconv.h... " >&6; } | |
4977 | +if test "${ac_cv_header_iconv_h+set}" = set; then | |
4978 | + $as_echo_n "(cached) " >&6 | |
4979 | +fi | |
4980 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5 | |
4981 | +$as_echo "$ac_cv_header_iconv_h" >&6; } | |
4982 | +else | |
4983 | + # Is the header compilable? | |
4984 | +{ $as_echo "$as_me:$LINENO: checking iconv.h usability" >&5 | |
4985 | +$as_echo_n "checking iconv.h usability... " >&6; } | |
4986 | +cat >conftest.$ac_ext <<_ACEOF | |
4987 | +/* confdefs.h. */ | |
4988 | +_ACEOF | |
4989 | +cat confdefs.h >>conftest.$ac_ext | |
4990 | +cat >>conftest.$ac_ext <<_ACEOF | |
4991 | +/* end confdefs.h. */ | |
4992 | +$ac_includes_default | |
4993 | +#include <iconv.h> | |
4994 | +_ACEOF | |
4995 | +rm -f conftest.$ac_objext | |
4996 | +if { (ac_try="$ac_compile" | |
4997 | +case "(($ac_try" in | |
4998 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4999 | + *) ac_try_echo=$ac_try;; | |
5000 | +esac | |
5001 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5002 | +$as_echo "$ac_try_echo") >&5 | |
5003 | + (eval "$ac_compile") 2>conftest.er1 | |
5004 | + ac_status=$? | |
5005 | + grep -v '^ *+' conftest.er1 >conftest.err | |
5006 | + rm -f conftest.er1 | |
5007 | + cat conftest.err >&5 | |
5008 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5009 | + (exit $ac_status); } && { | |
5010 | + test -z "$ac_c_werror_flag" || | |
5011 | + test ! -s conftest.err | |
5012 | + } && test -s conftest.$ac_objext; then | |
5013 | + ac_header_compiler=yes | |
5014 | +else | |
5015 | + $as_echo "$as_me: failed program was:" >&5 | |
5016 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
5017 | + | |
5018 | + ac_header_compiler=no | |
5019 | +fi | |
3623 | 5020 | |
5021 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5022 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5023 | +$as_echo "$ac_header_compiler" >&6; } | |
5024 | + | |
5025 | +# Is the header present? | |
5026 | +{ $as_echo "$as_me:$LINENO: checking iconv.h presence" >&5 | |
5027 | +$as_echo_n "checking iconv.h presence... " >&6; } | |
5028 | +cat >conftest.$ac_ext <<_ACEOF | |
5029 | +/* confdefs.h. */ | |
5030 | +_ACEOF | |
5031 | +cat confdefs.h >>conftest.$ac_ext | |
5032 | +cat >>conftest.$ac_ext <<_ACEOF | |
5033 | +/* end confdefs.h. */ | |
5034 | +#include <iconv.h> | |
5035 | +_ACEOF | |
5036 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5037 | +case "(($ac_try" in | |
5038 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5039 | + *) ac_try_echo=$ac_try;; | |
5040 | +esac | |
5041 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5042 | +$as_echo "$ac_try_echo") >&5 | |
5043 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5044 | + ac_status=$? | |
5045 | + grep -v '^ *+' conftest.er1 >conftest.err | |
5046 | + rm -f conftest.er1 | |
5047 | + cat conftest.err >&5 | |
5048 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5049 | + (exit $ac_status); } >/dev/null && { | |
5050 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5051 | + test ! -s conftest.err | |
5052 | + }; then | |
5053 | + ac_header_preproc=yes | |
5054 | +else | |
5055 | + $as_echo "$as_me: failed program was:" >&5 | |
5056 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
5057 | + | |
5058 | + ac_header_preproc=no | |
5059 | +fi | |
5060 | + | |
5061 | +rm -f conftest.err conftest.$ac_ext | |
5062 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5063 | +$as_echo "$ac_header_preproc" >&6; } | |
5064 | + | |
5065 | +# So? What about this header? | |
5066 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5067 | + yes:no: ) | |
5068 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5069 | +$as_echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5070 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5 | |
5071 | +$as_echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;} | |
5072 | + ac_header_preproc=yes | |
5073 | + ;; | |
5074 | + no:yes:* ) | |
5075 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5 | |
5076 | +$as_echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;} | |
5077 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5 | |
5078 | +$as_echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;} | |
5079 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5 | |
5080 | +$as_echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;} | |
5081 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5082 | +$as_echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5083 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5 | |
5084 | +$as_echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;} | |
5085 | + { $as_echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5 | |
5086 | +$as_echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;} | |
5087 | + | |
5088 | + ;; | |
5089 | +esac | |
5090 | +{ $as_echo "$as_me:$LINENO: checking for iconv.h" >&5 | |
5091 | +$as_echo_n "checking for iconv.h... " >&6; } | |
5092 | +if test "${ac_cv_header_iconv_h+set}" = set; then | |
5093 | + $as_echo_n "(cached) " >&6 | |
3624 | 5094 | else |
3625 | - exit | |
5095 | + ac_cv_header_iconv_h=$ac_header_preproc | |
3626 | 5096 | fi |
5097 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5 | |
5098 | +$as_echo "$ac_cv_header_iconv_h" >&6; } | |
3627 | 5099 | |
3628 | - | |
3629 | - | |
3630 | -#################################################################### | |
3631 | -# iconv settings | |
3632 | -#################################################################### | |
3633 | -ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" | |
3634 | -if test "x$ac_cv_header_iconv_h" = xyes; then : | |
3635 | - $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h | |
5100 | +fi | |
5101 | +if test "x$ac_cv_header_iconv_h" = x""yes; then | |
5102 | + cat >>confdefs.h <<\_ACEOF | |
5103 | +#define HAVE_ICONV_H 1 | |
5104 | +_ACEOF | |
3636 | 5105 | |
3637 | 5106 | else |
3638 | 5107 | exit |
@@ -3650,9 +5119,137 @@ fi | ||
3650 | 5119 | ########################################################################### |
3651 | 5120 | if test $ENABLE_MIGEMO = 1 |
3652 | 5121 | then |
3653 | - ac_fn_c_check_header_mongrel "$LINENO" "migemo.h" "ac_cv_header_migemo_h" "$ac_includes_default" | |
3654 | -if test "x$ac_cv_header_migemo_h" = xyes; then : | |
3655 | - LIBS="$LIBS -lmigemo"; $as_echo "#define HAVE_MIGEMO_H 1" >>confdefs.h | |
5122 | + if test "${ac_cv_header_migemo_h+set}" = set; then | |
5123 | + { $as_echo "$as_me:$LINENO: checking for migemo.h" >&5 | |
5124 | +$as_echo_n "checking for migemo.h... " >&6; } | |
5125 | +if test "${ac_cv_header_migemo_h+set}" = set; then | |
5126 | + $as_echo_n "(cached) " >&6 | |
5127 | +fi | |
5128 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_migemo_h" >&5 | |
5129 | +$as_echo "$ac_cv_header_migemo_h" >&6; } | |
5130 | +else | |
5131 | + # Is the header compilable? | |
5132 | +{ $as_echo "$as_me:$LINENO: checking migemo.h usability" >&5 | |
5133 | +$as_echo_n "checking migemo.h usability... " >&6; } | |
5134 | +cat >conftest.$ac_ext <<_ACEOF | |
5135 | +/* confdefs.h. */ | |
5136 | +_ACEOF | |
5137 | +cat confdefs.h >>conftest.$ac_ext | |
5138 | +cat >>conftest.$ac_ext <<_ACEOF | |
5139 | +/* end confdefs.h. */ | |
5140 | +$ac_includes_default | |
5141 | +#include <migemo.h> | |
5142 | +_ACEOF | |
5143 | +rm -f conftest.$ac_objext | |
5144 | +if { (ac_try="$ac_compile" | |
5145 | +case "(($ac_try" in | |
5146 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5147 | + *) ac_try_echo=$ac_try;; | |
5148 | +esac | |
5149 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5150 | +$as_echo "$ac_try_echo") >&5 | |
5151 | + (eval "$ac_compile") 2>conftest.er1 | |
5152 | + ac_status=$? | |
5153 | + grep -v '^ *+' conftest.er1 >conftest.err | |
5154 | + rm -f conftest.er1 | |
5155 | + cat conftest.err >&5 | |
5156 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5157 | + (exit $ac_status); } && { | |
5158 | + test -z "$ac_c_werror_flag" || | |
5159 | + test ! -s conftest.err | |
5160 | + } && test -s conftest.$ac_objext; then | |
5161 | + ac_header_compiler=yes | |
5162 | +else | |
5163 | + $as_echo "$as_me: failed program was:" >&5 | |
5164 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
5165 | + | |
5166 | + ac_header_compiler=no | |
5167 | +fi | |
5168 | + | |
5169 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5170 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5171 | +$as_echo "$ac_header_compiler" >&6; } | |
5172 | + | |
5173 | +# Is the header present? | |
5174 | +{ $as_echo "$as_me:$LINENO: checking migemo.h presence" >&5 | |
5175 | +$as_echo_n "checking migemo.h presence... " >&6; } | |
5176 | +cat >conftest.$ac_ext <<_ACEOF | |
5177 | +/* confdefs.h. */ | |
5178 | +_ACEOF | |
5179 | +cat confdefs.h >>conftest.$ac_ext | |
5180 | +cat >>conftest.$ac_ext <<_ACEOF | |
5181 | +/* end confdefs.h. */ | |
5182 | +#include <migemo.h> | |
5183 | +_ACEOF | |
5184 | +if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5185 | +case "(($ac_try" in | |
5186 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5187 | + *) ac_try_echo=$ac_try;; | |
5188 | +esac | |
5189 | +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5190 | +$as_echo "$ac_try_echo") >&5 | |
5191 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5192 | + ac_status=$? | |
5193 | + grep -v '^ *+' conftest.er1 >conftest.err | |
5194 | + rm -f conftest.er1 | |
5195 | + cat conftest.err >&5 | |
5196 | + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5197 | + (exit $ac_status); } >/dev/null && { | |
5198 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5199 | + test ! -s conftest.err | |
5200 | + }; then | |
5201 | + ac_header_preproc=yes | |
5202 | +else | |
5203 | + $as_echo "$as_me: failed program was:" >&5 | |
5204 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
5205 | + | |
5206 | + ac_header_preproc=no | |
5207 | +fi | |
5208 | + | |
5209 | +rm -f conftest.err conftest.$ac_ext | |
5210 | +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5211 | +$as_echo "$ac_header_preproc" >&6; } | |
5212 | + | |
5213 | +# So? What about this header? | |
5214 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5215 | + yes:no: ) | |
5216 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5217 | +$as_echo "$as_me: WARNING: migemo.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5218 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: proceeding with the compiler's result" >&5 | |
5219 | +$as_echo "$as_me: WARNING: migemo.h: proceeding with the compiler's result" >&2;} | |
5220 | + ac_header_preproc=yes | |
5221 | + ;; | |
5222 | + no:yes:* ) | |
5223 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: present but cannot be compiled" >&5 | |
5224 | +$as_echo "$as_me: WARNING: migemo.h: present but cannot be compiled" >&2;} | |
5225 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: check for missing prerequisite headers?" >&5 | |
5226 | +$as_echo "$as_me: WARNING: migemo.h: check for missing prerequisite headers?" >&2;} | |
5227 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: see the Autoconf documentation" >&5 | |
5228 | +$as_echo "$as_me: WARNING: migemo.h: see the Autoconf documentation" >&2;} | |
5229 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5230 | +$as_echo "$as_me: WARNING: migemo.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5231 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: proceeding with the preprocessor's result" >&5 | |
5232 | +$as_echo "$as_me: WARNING: migemo.h: proceeding with the preprocessor's result" >&2;} | |
5233 | + { $as_echo "$as_me:$LINENO: WARNING: migemo.h: in the future, the compiler will take precedence" >&5 | |
5234 | +$as_echo "$as_me: WARNING: migemo.h: in the future, the compiler will take precedence" >&2;} | |
5235 | + | |
5236 | + ;; | |
5237 | +esac | |
5238 | +{ $as_echo "$as_me:$LINENO: checking for migemo.h" >&5 | |
5239 | +$as_echo_n "checking for migemo.h... " >&6; } | |
5240 | +if test "${ac_cv_header_migemo_h+set}" = set; then | |
5241 | + $as_echo_n "(cached) " >&6 | |
5242 | +else | |
5243 | + ac_cv_header_migemo_h=$ac_header_preproc | |
5244 | +fi | |
5245 | +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_migemo_h" >&5 | |
5246 | +$as_echo "$ac_cv_header_migemo_h" >&6; } | |
5247 | + | |
5248 | +fi | |
5249 | +if test "x$ac_cv_header_migemo_h" = x""yes; then | |
5250 | + LIBS="$LIBS -lmigemo"; cat >>confdefs.h <<\_ACEOF | |
5251 | +#define HAVE_MIGEMO_H 1 | |
5252 | +_ACEOF | |
3656 | 5253 | |
3657 | 5254 | else |
3658 | 5255 | exit |
@@ -3692,13 +5289,13 @@ _ACEOF | ||
3692 | 5289 | case $ac_val in #( |
3693 | 5290 | *${as_nl}*) |
3694 | 5291 | case $ac_var in #( |
3695 | - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
5292 | + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
3696 | 5293 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
3697 | 5294 | esac |
3698 | 5295 | case $ac_var in #( |
3699 | 5296 | _ | IFS | as_nl) ;; #( |
3700 | 5297 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
3701 | - *) { eval $ac_var=; unset $ac_var;} ;; | |
5298 | + *) $as_unset $ac_var ;; | |
3702 | 5299 | esac ;; |
3703 | 5300 | esac |
3704 | 5301 | done |
@@ -3706,8 +5303,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
3706 | 5303 | (set) 2>&1 | |
3707 | 5304 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
3708 | 5305 | *${as_nl}ac_space=\ *) |
3709 | - # `set' does not quote correctly, so add quotes: double-quote | |
3710 | - # substitution turns \\\\ into \\, and sed turns \\ into \. | |
5306 | + # `set' does not quote correctly, so add quotes (double-quote | |
5307 | + # substitution turns \\\\ into \\, and sed turns \\ into \). | |
3711 | 5308 | sed -n \ |
3712 | 5309 | "s/'/'\\\\''/g; |
3713 | 5310 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
@@ -3729,23 +5326,12 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
3729 | 5326 | :end' >>confcache |
3730 | 5327 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
3731 | 5328 | if test -w "$cache_file"; then |
3732 | - if test "x$cache_file" != "x/dev/null"; then | |
3733 | - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
5329 | + test "x$cache_file" != "x/dev/null" && | |
5330 | + { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
3734 | 5331 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
3735 | - if test ! -f "$cache_file" || test -h "$cache_file"; then | |
3736 | - cat confcache >"$cache_file" | |
3737 | - else | |
3738 | - case $cache_file in #( | |
3739 | - */* | ?:*) | |
3740 | - mv -f confcache "$cache_file"$$ && | |
3741 | - mv -f "$cache_file"$$ "$cache_file" ;; #( | |
3742 | - *) | |
3743 | - mv -f confcache "$cache_file" ;; | |
3744 | - esac | |
3745 | - fi | |
3746 | - fi | |
5332 | + cat confcache >$cache_file | |
3747 | 5333 | else |
3748 | - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
5334 | + { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
3749 | 5335 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
3750 | 5336 | fi |
3751 | 5337 | fi |
@@ -3759,15 +5345,14 @@ DEFS=-DHAVE_CONFIG_H | ||
3759 | 5345 | |
3760 | 5346 | ac_libobjs= |
3761 | 5347 | ac_ltlibobjs= |
3762 | -U= | |
3763 | 5348 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
3764 | 5349 | # 1. Remove the extension, and $U if already installed. |
3765 | 5350 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
3766 | 5351 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
3767 | 5352 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
3768 | 5353 | # will be set to the directory where LIBOBJS objects are built. |
3769 | - as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
3770 | - as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
5354 | + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
5355 | + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
3771 | 5356 | done |
3772 | 5357 | LIBOBJS=$ac_libobjs |
3773 | 5358 |
@@ -3775,14 +5360,13 @@ LTLIBOBJS=$ac_ltlibobjs | ||
3775 | 5360 | |
3776 | 5361 | |
3777 | 5362 | |
3778 | -: "${CONFIG_STATUS=./config.status}" | |
5363 | +: ${CONFIG_STATUS=./config.status} | |
3779 | 5364 | ac_write_fail=0 |
3780 | 5365 | ac_clean_files_save=$ac_clean_files |
3781 | 5366 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
3782 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
5367 | +{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
3783 | 5368 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
3784 | -as_write_fail=0 | |
3785 | -cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
5369 | +cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3786 | 5370 | #! $SHELL |
3787 | 5371 | # Generated by $as_me. |
3788 | 5372 | # Run this file to recreate the current configuration. |
@@ -3792,18 +5376,17 @@ cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
3792 | 5376 | debug=false |
3793 | 5377 | ac_cs_recheck=false |
3794 | 5378 | ac_cs_silent=false |
3795 | - | |
3796 | 5379 | SHELL=\${CONFIG_SHELL-$SHELL} |
3797 | -export SHELL | |
3798 | -_ASEOF | |
3799 | -cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
3800 | -## -------------------- ## | |
3801 | -## M4sh Initialization. ## | |
3802 | -## -------------------- ## | |
5380 | +_ACEOF | |
5381 | + | |
5382 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5383 | +## --------------------- ## | |
5384 | +## M4sh Initialization. ## | |
5385 | +## --------------------- ## | |
3803 | 5386 | |
3804 | 5387 | # Be more Bourne compatible |
3805 | 5388 | DUALCASE=1; export DUALCASE # for MKS sh |
3806 | -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
5389 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
3807 | 5390 | emulate sh |
3808 | 5391 | NULLCMD=: |
3809 | 5392 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
@@ -3811,15 +5394,23 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
3811 | 5394 | alias -g '${1+"$@"}'='"$@"' |
3812 | 5395 | setopt NO_GLOB_SUBST |
3813 | 5396 | else |
3814 | - case `(set -o) 2>/dev/null` in #( | |
3815 | - *posix*) : | |
3816 | - set -o posix ;; #( | |
3817 | - *) : | |
3818 | - ;; | |
5397 | + case `(set -o) 2>/dev/null` in | |
5398 | + *posix*) set -o posix ;; | |
3819 | 5399 | esac |
5400 | + | |
3820 | 5401 | fi |
3821 | 5402 | |
3822 | 5403 | |
5404 | + | |
5405 | + | |
5406 | +# PATH needs CR | |
5407 | +# Avoid depending upon Character Ranges. | |
5408 | +as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
5409 | +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
5410 | +as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
5411 | +as_cr_digits='0123456789' | |
5412 | +as_cr_alnum=$as_cr_Letters$as_cr_digits | |
5413 | + | |
3823 | 5414 | as_nl=' |
3824 | 5415 | ' |
3825 | 5416 | export as_nl |
@@ -3827,13 +5418,7 @@ export as_nl | ||
3827 | 5418 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
3828 | 5419 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
3829 | 5420 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
3830 | -# Prefer a ksh shell builtin over an external printf program on Solaris, | |
3831 | -# but without wasting forks for bash or zsh. | |
3832 | -if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
3833 | - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
3834 | - as_echo='print -r --' | |
3835 | - as_echo_n='print -rn --' | |
3836 | -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
5421 | +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
3837 | 5422 | as_echo='printf %s\n' |
3838 | 5423 | as_echo_n='printf %s' |
3839 | 5424 | else |
@@ -3844,7 +5429,7 @@ else | ||
3844 | 5429 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
3845 | 5430 | as_echo_n_body='eval |
3846 | 5431 | arg=$1; |
3847 | - case $arg in #( | |
5432 | + case $arg in | |
3848 | 5433 | *"$as_nl"*) |
3849 | 5434 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
3850 | 5435 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
@@ -3867,6 +5452,13 @@ if test "${PATH_SEPARATOR+set}" != set; then | ||
3867 | 5452 | } |
3868 | 5453 | fi |
3869 | 5454 | |
5455 | +# Support unset when possible. | |
5456 | +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5457 | + as_unset=unset | |
5458 | +else | |
5459 | + as_unset=false | |
5460 | +fi | |
5461 | + | |
3870 | 5462 | |
3871 | 5463 | # IFS |
3872 | 5464 | # We need space, tab and new line, in precisely that order. Quoting is |
@@ -3876,16 +5468,15 @@ fi | ||
3876 | 5468 | IFS=" "" $as_nl" |
3877 | 5469 | |
3878 | 5470 | # Find who we are. Look in the path if we contain no directory separator. |
3879 | -as_myself= | |
3880 | -case $0 in #(( | |
5471 | +case $0 in | |
3881 | 5472 | *[\\/]* ) as_myself=$0 ;; |
3882 | 5473 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3883 | 5474 | for as_dir in $PATH |
3884 | 5475 | do |
3885 | 5476 | IFS=$as_save_IFS |
3886 | 5477 | test -z "$as_dir" && as_dir=. |
3887 | - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3888 | - done | |
5478 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
5479 | +done | |
3889 | 5480 | IFS=$as_save_IFS |
3890 | 5481 | |
3891 | 5482 | ;; |
@@ -3897,16 +5488,12 @@ if test "x$as_myself" = x; then | ||
3897 | 5488 | fi |
3898 | 5489 | if test ! -f "$as_myself"; then |
3899 | 5490 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
3900 | - exit 1 | |
5491 | + { (exit 1); exit 1; } | |
3901 | 5492 | fi |
3902 | 5493 | |
3903 | -# Unset variables that we do not need and which cause bugs (e.g. in | |
3904 | -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
3905 | -# suppresses any "Segmentation fault" message there. '((' could | |
3906 | -# trigger a bug in pdksh 5.2.14. | |
3907 | -for as_var in BASH_ENV ENV MAIL MAILPATH | |
3908 | -do eval test x\${$as_var+set} = xset \ | |
3909 | - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
5494 | +# Work around bugs in pre-3.0 UWIN ksh. | |
5495 | +for as_var in ENV MAIL MAILPATH | |
5496 | +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
3910 | 5497 | done |
3911 | 5498 | PS1='$ ' |
3912 | 5499 | PS2='> ' |
@@ -3918,89 +5505,7 @@ export LC_ALL | ||
3918 | 5505 | LANGUAGE=C |
3919 | 5506 | export LANGUAGE |
3920 | 5507 | |
3921 | -# CDPATH. | |
3922 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
3923 | - | |
3924 | - | |
3925 | -# as_fn_error STATUS ERROR [LINENO LOG_FD] | |
3926 | -# ---------------------------------------- | |
3927 | -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
3928 | -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
3929 | -# script with STATUS, using 1 if that was 0. | |
3930 | -as_fn_error () | |
3931 | -{ | |
3932 | - as_status=$1; test $as_status -eq 0 && as_status=1 | |
3933 | - if test "$4"; then | |
3934 | - as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
3935 | - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
3936 | - fi | |
3937 | - $as_echo "$as_me: error: $2" >&2 | |
3938 | - as_fn_exit $as_status | |
3939 | -} # as_fn_error | |
3940 | - | |
3941 | - | |
3942 | -# as_fn_set_status STATUS | |
3943 | -# ----------------------- | |
3944 | -# Set $? to STATUS, without forking. | |
3945 | -as_fn_set_status () | |
3946 | -{ | |
3947 | - return $1 | |
3948 | -} # as_fn_set_status | |
3949 | - | |
3950 | -# as_fn_exit STATUS | |
3951 | -# ----------------- | |
3952 | -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
3953 | -as_fn_exit () | |
3954 | -{ | |
3955 | - set +e | |
3956 | - as_fn_set_status $1 | |
3957 | - exit $1 | |
3958 | -} # as_fn_exit | |
3959 | - | |
3960 | -# as_fn_unset VAR | |
3961 | -# --------------- | |
3962 | -# Portably unset VAR. | |
3963 | -as_fn_unset () | |
3964 | -{ | |
3965 | - { eval $1=; unset $1;} | |
3966 | -} | |
3967 | -as_unset=as_fn_unset | |
3968 | -# as_fn_append VAR VALUE | |
3969 | -# ---------------------- | |
3970 | -# Append the text in VALUE to the end of the definition contained in VAR. Take | |
3971 | -# advantage of any shell optimizations that allow amortized linear growth over | |
3972 | -# repeated appends, instead of the typical quadratic growth present in naive | |
3973 | -# implementations. | |
3974 | -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
3975 | - eval 'as_fn_append () | |
3976 | - { | |
3977 | - eval $1+=\$2 | |
3978 | - }' | |
3979 | -else | |
3980 | - as_fn_append () | |
3981 | - { | |
3982 | - eval $1=\$$1\$2 | |
3983 | - } | |
3984 | -fi # as_fn_append | |
3985 | - | |
3986 | -# as_fn_arith ARG... | |
3987 | -# ------------------ | |
3988 | -# Perform arithmetic evaluation on the ARGs, and store the result in the | |
3989 | -# global $as_val. Take advantage of shells that can avoid forks. The arguments | |
3990 | -# must be portable across $(()) and expr. | |
3991 | -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
3992 | - eval 'as_fn_arith () | |
3993 | - { | |
3994 | - as_val=$(( $* )) | |
3995 | - }' | |
3996 | -else | |
3997 | - as_fn_arith () | |
3998 | - { | |
3999 | - as_val=`expr "$@" || test $? -eq 1` | |
4000 | - } | |
4001 | -fi # as_fn_arith | |
4002 | - | |
4003 | - | |
5508 | +# Required to use basename. | |
4004 | 5509 | if expr a : '\(a\)' >/dev/null 2>&1 && |
4005 | 5510 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
4006 | 5511 | as_expr=expr |
@@ -4014,12 +5519,8 @@ else | ||
4014 | 5519 | as_basename=false |
4015 | 5520 | fi |
4016 | 5521 | |
4017 | -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
4018 | - as_dirname=dirname | |
4019 | -else | |
4020 | - as_dirname=false | |
4021 | -fi | |
4022 | 5522 | |
5523 | +# Name of the executable. | |
4023 | 5524 | as_me=`$as_basename -- "$0" || |
4024 | 5525 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
4025 | 5526 | X"$0" : 'X\(//\)$' \| \ |
@@ -4039,25 +5540,76 @@ $as_echo X/"$0" | | ||
4039 | 5540 | } |
4040 | 5541 | s/.*/./; q'` |
4041 | 5542 | |
4042 | -# Avoid depending upon Character Ranges. | |
4043 | -as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
4044 | -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
4045 | -as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
4046 | -as_cr_digits='0123456789' | |
4047 | -as_cr_alnum=$as_cr_Letters$as_cr_digits | |
5543 | +# CDPATH. | |
5544 | +$as_unset CDPATH | |
5545 | + | |
5546 | + | |
5547 | + | |
5548 | + as_lineno_1=$LINENO | |
5549 | + as_lineno_2=$LINENO | |
5550 | + test "x$as_lineno_1" != "x$as_lineno_2" && | |
5551 | + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
5552 | + | |
5553 | + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
5554 | + # uniformly replaced by the line number. The first 'sed' inserts a | |
5555 | + # line-number line after each line using $LINENO; the second 'sed' | |
5556 | + # does the real work. The second script uses 'N' to pair each | |
5557 | + # line-number line with the line containing $LINENO, and appends | |
5558 | + # trailing '-' during substitution so that $LINENO is not a special | |
5559 | + # case at line end. | |
5560 | + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
5561 | + # scripts with optimization help from Paolo Bonzini. Blame Lee | |
5562 | + # E. McMahon (1931-1989) for sed's syntax. :-) | |
5563 | + sed -n ' | |
5564 | + p | |
5565 | + /[$]LINENO/= | |
5566 | + ' <$as_myself | | |
5567 | + sed ' | |
5568 | + s/[$]LINENO.*/&-/ | |
5569 | + t lineno | |
5570 | + b | |
5571 | + :lineno | |
5572 | + N | |
5573 | + :loop | |
5574 | + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
5575 | + t loop | |
5576 | + s/-\n.*// | |
5577 | + ' >$as_me.lineno && | |
5578 | + chmod +x "$as_me.lineno" || | |
5579 | + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
5580 | + { (exit 1); exit 1; }; } | |
5581 | + | |
5582 | + # Don't try to exec as it changes $[0], causing all sort of problems | |
5583 | + # (the dirname of $[0] is not the place where we might find the | |
5584 | + # original and so on. Autoconf is especially sensitive to this). | |
5585 | + . "./$as_me.lineno" | |
5586 | + # Exit status is that of the last command. | |
5587 | + exit | |
5588 | +} | |
5589 | + | |
5590 | + | |
5591 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
5592 | + as_dirname=dirname | |
5593 | +else | |
5594 | + as_dirname=false | |
5595 | +fi | |
4048 | 5596 | |
4049 | 5597 | ECHO_C= ECHO_N= ECHO_T= |
4050 | -case `echo -n x` in #((((( | |
5598 | +case `echo -n x` in | |
4051 | 5599 | -n*) |
4052 | - case `echo 'xy\c'` in | |
5600 | + case `echo 'x\c'` in | |
4053 | 5601 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
4054 | - xy) ECHO_C='\c';; | |
4055 | - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
4056 | - ECHO_T=' ';; | |
5602 | + *) ECHO_C='\c';; | |
4057 | 5603 | esac;; |
4058 | 5604 | *) |
4059 | 5605 | ECHO_N='-n';; |
4060 | 5606 | esac |
5607 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
5608 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
5609 | + as_expr=expr | |
5610 | +else | |
5611 | + as_expr=false | |
5612 | +fi | |
4061 | 5613 | |
4062 | 5614 | rm -f conf$$ conf$$.exe conf$$.file |
4063 | 5615 | if test -d conf$$.dir; then |
@@ -4086,56 +5638,8 @@ fi | ||
4086 | 5638 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
4087 | 5639 | rmdir conf$$.dir 2>/dev/null |
4088 | 5640 | |
4089 | - | |
4090 | -# as_fn_mkdir_p | |
4091 | -# ------------- | |
4092 | -# Create "$as_dir" as a directory, including parents if necessary. | |
4093 | -as_fn_mkdir_p () | |
4094 | -{ | |
4095 | - | |
4096 | - case $as_dir in #( | |
4097 | - -*) as_dir=./$as_dir;; | |
4098 | - esac | |
4099 | - test -d "$as_dir" || eval $as_mkdir_p || { | |
4100 | - as_dirs= | |
4101 | - while :; do | |
4102 | - case $as_dir in #( | |
4103 | - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
4104 | - *) as_qdir=$as_dir;; | |
4105 | - esac | |
4106 | - as_dirs="'$as_qdir' $as_dirs" | |
4107 | - as_dir=`$as_dirname -- "$as_dir" || | |
4108 | -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4109 | - X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4110 | - X"$as_dir" : 'X\(//\)$' \| \ | |
4111 | - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
4112 | -$as_echo X"$as_dir" | | |
4113 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4114 | - s//\1/ | |
4115 | - q | |
4116 | - } | |
4117 | - /^X\(\/\/\)[^/].*/{ | |
4118 | - s//\1/ | |
4119 | - q | |
4120 | - } | |
4121 | - /^X\(\/\/\)$/{ | |
4122 | - s//\1/ | |
4123 | - q | |
4124 | - } | |
4125 | - /^X\(\/\).*/{ | |
4126 | - s//\1/ | |
4127 | - q | |
4128 | - } | |
4129 | - s/.*/./; q'` | |
4130 | - test -d "$as_dir" && break | |
4131 | - done | |
4132 | - test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4133 | - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
4134 | - | |
4135 | - | |
4136 | -} # as_fn_mkdir_p | |
4137 | 5641 | if mkdir -p . 2>/dev/null; then |
4138 | - as_mkdir_p='mkdir -p "$as_dir"' | |
5642 | + as_mkdir_p=: | |
4139 | 5643 | else |
4140 | 5644 | test -d ./-p && rmdir ./-p |
4141 | 5645 | as_mkdir_p=false |
@@ -4154,10 +5658,10 @@ else | ||
4154 | 5658 | if test -d "$1"; then |
4155 | 5659 | test -d "$1/."; |
4156 | 5660 | else |
4157 | - case $1 in #( | |
5661 | + case $1 in | |
4158 | 5662 | -*)set "./$1";; |
4159 | 5663 | esac; |
4160 | - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
5664 | + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
4161 | 5665 | ???[sx]*):;;*)false;;esac;fi |
4162 | 5666 | '\'' sh |
4163 | 5667 | ' |
@@ -4172,19 +5676,13 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
4172 | 5676 | |
4173 | 5677 | |
4174 | 5678 | exec 6>&1 |
4175 | -## ----------------------------------- ## | |
4176 | -## Main body of $CONFIG_STATUS script. ## | |
4177 | -## ----------------------------------- ## | |
4178 | -_ASEOF | |
4179 | -test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
4180 | 5679 | |
4181 | -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4182 | -# Save the log message, to keep $0 and so on meaningful, and to | |
5680 | +# Save the log message, to keep $[0] and so on meaningful, and to | |
4183 | 5681 | # report actual input values of CONFIG_FILES etc. instead of their |
4184 | 5682 | # values after options handling. |
4185 | 5683 | ac_log=" |
4186 | 5684 | This file was extended by $as_me, which was |
4187 | -generated by GNU Autoconf 2.68. Invocation command line was | |
5685 | +generated by GNU Autoconf 2.63. Invocation command line was | |
4188 | 5686 | |
4189 | 5687 | CONFIG_FILES = $CONFIG_FILES |
4190 | 5688 | CONFIG_HEADERS = $CONFIG_HEADERS |
@@ -4215,15 +5713,13 @@ _ACEOF | ||
4215 | 5713 | |
4216 | 5714 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4217 | 5715 | ac_cs_usage="\ |
4218 | -\`$as_me' instantiates files and other configuration actions | |
4219 | -from templates according to the current configuration. Unless the files | |
4220 | -and actions are specified as TAGs, all are instantiated by default. | |
5716 | +\`$as_me' instantiates files from templates according to the | |
5717 | +current configuration. | |
4221 | 5718 | |
4222 | -Usage: $0 [OPTION]... [TAG]... | |
5719 | +Usage: $0 [OPTION]... [FILE]... | |
4223 | 5720 | |
4224 | 5721 | -h, --help print this help, then exit |
4225 | 5722 | -V, --version print version number and configuration settings, then exit |
4226 | - --config print configuration, then exit | |
4227 | 5723 | -q, --quiet, --silent |
4228 | 5724 | do not print progress messages |
4229 | 5725 | -d, --debug don't remove temporary files |
@@ -4239,17 +5735,16 @@ $config_files | ||
4239 | 5735 | Configuration headers: |
4240 | 5736 | $config_headers |
4241 | 5737 | |
4242 | -Report bugs to the package provider." | |
5738 | +Report bugs to <bug-autoconf@gnu.org>." | |
4243 | 5739 | |
4244 | 5740 | _ACEOF |
4245 | 5741 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4246 | -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
4247 | 5742 | ac_cs_version="\\ |
4248 | 5743 | config.status |
4249 | -configured by $0, generated by GNU Autoconf 2.68, | |
4250 | - with options \\"\$ac_cs_config\\" | |
5744 | +configured by $0, generated by GNU Autoconf 2.63, | |
5745 | + with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
4251 | 5746 | |
4252 | -Copyright (C) 2010 Free Software Foundation, Inc. | |
5747 | +Copyright (C) 2008 Free Software Foundation, Inc. | |
4253 | 5748 | This config.status script is free software; the Free Software Foundation |
4254 | 5749 | gives unlimited permission to copy, distribute and modify it." |
4255 | 5750 |
@@ -4265,16 +5760,11 @@ ac_need_defaults=: | ||
4265 | 5760 | while test $# != 0 |
4266 | 5761 | do |
4267 | 5762 | case $1 in |
4268 | - --*=?*) | |
5763 | + --*=*) | |
4269 | 5764 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
4270 | 5765 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
4271 | 5766 | ac_shift=: |
4272 | 5767 | ;; |
4273 | - --*=) | |
4274 | - ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
4275 | - ac_optarg= | |
4276 | - ac_shift=: | |
4277 | - ;; | |
4278 | 5768 | *) |
4279 | 5769 | ac_option=$1 |
4280 | 5770 | ac_optarg=$2 |
@@ -4288,29 +5778,27 @@ do | ||
4288 | 5778 | ac_cs_recheck=: ;; |
4289 | 5779 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
4290 | 5780 | $as_echo "$ac_cs_version"; exit ;; |
4291 | - --config | --confi | --conf | --con | --co | --c ) | |
4292 | - $as_echo "$ac_cs_config"; exit ;; | |
4293 | 5781 | --debug | --debu | --deb | --de | --d | -d ) |
4294 | 5782 | debug=: ;; |
4295 | 5783 | --file | --fil | --fi | --f ) |
4296 | 5784 | $ac_shift |
4297 | 5785 | case $ac_optarg in |
4298 | 5786 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
4299 | - '') as_fn_error $? "missing file argument" ;; | |
4300 | 5787 | esac |
4301 | - as_fn_append CONFIG_FILES " '$ac_optarg'" | |
5788 | + CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
4302 | 5789 | ac_need_defaults=false;; |
4303 | 5790 | --header | --heade | --head | --hea ) |
4304 | 5791 | $ac_shift |
4305 | 5792 | case $ac_optarg in |
4306 | 5793 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
4307 | 5794 | esac |
4308 | - as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
5795 | + CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
4309 | 5796 | ac_need_defaults=false;; |
4310 | 5797 | --he | --h) |
4311 | 5798 | # Conflict between --help and --header |
4312 | - as_fn_error $? "ambiguous option: \`$1' | |
4313 | -Try \`$0 --help' for more information.";; | |
5799 | + { $as_echo "$as_me: error: ambiguous option: $1 | |
5800 | +Try \`$0 --help' for more information." >&2 | |
5801 | + { (exit 1); exit 1; }; };; | |
4314 | 5802 | --help | --hel | -h ) |
4315 | 5803 | $as_echo "$ac_cs_usage"; exit ;; |
4316 | 5804 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
@@ -4318,10 +5806,11 @@ Try \`$0 --help' for more information.";; | ||
4318 | 5806 | ac_cs_silent=: ;; |
4319 | 5807 | |
4320 | 5808 | # This is an error. |
4321 | - -*) as_fn_error $? "unrecognized option: \`$1' | |
4322 | -Try \`$0 --help' for more information." ;; | |
5809 | + -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
5810 | +Try \`$0 --help' for more information." >&2 | |
5811 | + { (exit 1); exit 1; }; } ;; | |
4323 | 5812 | |
4324 | - *) as_fn_append ac_config_targets " $1" | |
5813 | + *) ac_config_targets="$ac_config_targets $1" | |
4325 | 5814 | ac_need_defaults=false ;; |
4326 | 5815 | |
4327 | 5816 | esac |
@@ -4370,7 +5859,9 @@ do | ||
4370 | 5859 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
4371 | 5860 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
4372 | 5861 | |
4373 | - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | |
5862 | + *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
5863 | +$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
5864 | + { (exit 1); exit 1; }; };; | |
4374 | 5865 | esac |
4375 | 5866 | done |
4376 | 5867 |
@@ -4392,24 +5883,26 @@ fi | ||
4392 | 5883 | # after its creation but before its name has been assigned to `$tmp'. |
4393 | 5884 | $debug || |
4394 | 5885 | { |
4395 | - tmp= ac_tmp= | |
5886 | + tmp= | |
4396 | 5887 | trap 'exit_status=$? |
4397 | - : "${ac_tmp:=$tmp}" | |
4398 | - { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5888 | + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
4399 | 5889 | ' 0 |
4400 | - trap 'as_fn_exit 1' 1 2 13 15 | |
5890 | + trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
4401 | 5891 | } |
4402 | 5892 | # Create a (secure) tmp directory for tmp files. |
4403 | 5893 | |
4404 | 5894 | { |
4405 | 5895 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
4406 | - test -d "$tmp" | |
5896 | + test -n "$tmp" && test -d "$tmp" | |
4407 | 5897 | } || |
4408 | 5898 | { |
4409 | 5899 | tmp=./conf$$-$RANDOM |
4410 | 5900 | (umask 077 && mkdir "$tmp") |
4411 | -} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
4412 | -ac_tmp=$tmp | |
5901 | +} || | |
5902 | +{ | |
5903 | + $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
5904 | + { (exit 1); exit 1; } | |
5905 | +} | |
4413 | 5906 | |
4414 | 5907 | # Set up the scripts for CONFIG_FILES section. |
4415 | 5908 | # No need to generate them if there are no CONFIG_FILES. |
@@ -4417,13 +5910,7 @@ ac_tmp=$tmp | ||
4417 | 5910 | if test -n "$CONFIG_FILES"; then |
4418 | 5911 | |
4419 | 5912 | |
4420 | -ac_cr=`echo X | tr X '\015'` | |
4421 | -# On cygwin, bash can eat \r inside `` if the user requested igncr. | |
4422 | -# But we know of no other shell where ac_cr would be empty at this | |
4423 | -# point, so we can use a bashism as a fallback. | |
4424 | -if test "x$ac_cr" = x; then | |
4425 | - eval ac_cr=\$\'\\r\' | |
4426 | -fi | |
5913 | +ac_cr=' ' | |
4427 | 5914 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
4428 | 5915 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
4429 | 5916 | ac_cs_awk_cr='\\r' |
@@ -4431,7 +5918,7 @@ else | ||
4431 | 5918 | ac_cs_awk_cr=$ac_cr |
4432 | 5919 | fi |
4433 | 5920 | |
4434 | -echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
5921 | +echo 'BEGIN {' >"$tmp/subs1.awk" && | |
4435 | 5922 | _ACEOF |
4436 | 5923 | |
4437 | 5924 |
@@ -4440,18 +5927,24 @@ _ACEOF | ||
4440 | 5927 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
4441 | 5928 | echo "_ACEOF" |
4442 | 5929 | } >conf$$subs.sh || |
4443 | - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4444 | -ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5930 | + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
5931 | +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
5932 | + { (exit 1); exit 1; }; } | |
5933 | +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
4445 | 5934 | ac_delim='%!_!# ' |
4446 | 5935 | for ac_last_try in false false false false false :; do |
4447 | 5936 | . ./conf$$subs.sh || |
4448 | - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
5937 | + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
5938 | +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
5939 | + { (exit 1); exit 1; }; } | |
4449 | 5940 | |
4450 | 5941 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
4451 | 5942 | if test $ac_delim_n = $ac_delim_num; then |
4452 | 5943 | break |
4453 | 5944 | elif $ac_last_try; then |
4454 | - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
5945 | + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
5946 | +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
5947 | + { (exit 1); exit 1; }; } | |
4455 | 5948 | else |
4456 | 5949 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
4457 | 5950 | fi |
@@ -4459,7 +5952,7 @@ done | ||
4459 | 5952 | rm -f conf$$subs.sh |
4460 | 5953 | |
4461 | 5954 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4462 | -cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
5955 | +cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
4463 | 5956 | _ACEOF |
4464 | 5957 | sed -n ' |
4465 | 5958 | h |
@@ -4473,7 +5966,7 @@ s/'"$ac_delim"'$// | ||
4473 | 5966 | t delim |
4474 | 5967 | :nl |
4475 | 5968 | h |
4476 | -s/\(.\{148\}\)..*/\1/ | |
5969 | +s/\(.\{148\}\).*/\1/ | |
4477 | 5970 | t more1 |
4478 | 5971 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
4479 | 5972 | p |
@@ -4487,7 +5980,7 @@ s/.\{148\}// | ||
4487 | 5980 | t nl |
4488 | 5981 | :delim |
4489 | 5982 | h |
4490 | -s/\(.\{148\}\)..*/\1/ | |
5983 | +s/\(.\{148\}\).*/\1/ | |
4491 | 5984 | t more2 |
4492 | 5985 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
4493 | 5986 | p |
@@ -4507,7 +6000,7 @@ t delim | ||
4507 | 6000 | rm -f conf$$subs.awk |
4508 | 6001 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4509 | 6002 | _ACAWK |
4510 | -cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
6003 | +cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
4511 | 6004 | for (key in S) S_is_set[key] = 1 |
4512 | 6005 | FS = "" |
4513 | 6006 |
@@ -4539,29 +6032,23 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
4539 | 6032 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
4540 | 6033 | else |
4541 | 6034 | cat |
4542 | -fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
4543 | - || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
6035 | +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
6036 | + || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
6037 | +$as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
6038 | + { (exit 1); exit 1; }; } | |
4544 | 6039 | _ACEOF |
4545 | 6040 | |
4546 | -# VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
4547 | -# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
6041 | +# VPATH may cause trouble with some makes, so we remove $(srcdir), | |
6042 | +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
4548 | 6043 | # trailing colons and then remove the whole line if VPATH becomes empty |
4549 | 6044 | # (actually we leave an empty line to preserve line numbers). |
4550 | 6045 | if test "x$srcdir" = x.; then |
4551 | - ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
4552 | -h | |
4553 | -s/// | |
4554 | -s/^/:/ | |
4555 | -s/[ ]*$/:/ | |
4556 | -s/:\$(srcdir):/:/g | |
4557 | -s/:\${srcdir}:/:/g | |
4558 | -s/:@srcdir@:/:/g | |
4559 | -s/^:*// | |
6046 | + ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
6047 | +s/:*\$(srcdir):*/:/ | |
6048 | +s/:*\${srcdir}:*/:/ | |
6049 | +s/:*@srcdir@:*/:/ | |
6050 | +s/^\([^=]*=[ ]*\):*/\1/ | |
4560 | 6051 | s/:*$// |
4561 | -x | |
4562 | -s/\(=[ ]*\).*/\1/ | |
4563 | -G | |
4564 | -s/\n// | |
4565 | 6052 | s/^[^=]*=[ ]*$// |
4566 | 6053 | }' |
4567 | 6054 | fi |
@@ -4573,7 +6060,7 @@ fi # test -n "$CONFIG_FILES" | ||
4573 | 6060 | # No need to generate them if there are no CONFIG_HEADERS. |
4574 | 6061 | # This happens for instance with `./config.status Makefile'. |
4575 | 6062 | if test -n "$CONFIG_HEADERS"; then |
4576 | -cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
6063 | +cat >"$tmp/defines.awk" <<\_ACAWK || | |
4577 | 6064 | BEGIN { |
4578 | 6065 | _ACEOF |
4579 | 6066 |
@@ -4585,11 +6072,13 @@ _ACEOF | ||
4585 | 6072 | # handling of long lines. |
4586 | 6073 | ac_delim='%!_!# ' |
4587 | 6074 | for ac_last_try in false false :; do |
4588 | - ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
4589 | - if test -z "$ac_tt"; then | |
6075 | + ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
6076 | + if test -z "$ac_t"; then | |
4590 | 6077 | break |
4591 | 6078 | elif $ac_last_try; then |
4592 | - as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
6079 | + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
6080 | +$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
6081 | + { (exit 1); exit 1; }; } | |
4593 | 6082 | else |
4594 | 6083 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
4595 | 6084 | fi |
@@ -4674,7 +6163,9 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
4674 | 6163 | _ACAWK |
4675 | 6164 | _ACEOF |
4676 | 6165 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4677 | - as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
6166 | + { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
6167 | +$as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
6168 | + { (exit 1); exit 1; }; } | |
4678 | 6169 | fi # test -n "$CONFIG_HEADERS" |
4679 | 6170 | |
4680 | 6171 |
@@ -4687,7 +6178,9 @@ do | ||
4687 | 6178 | esac |
4688 | 6179 | case $ac_mode$ac_tag in |
4689 | 6180 | :[FHL]*:*);; |
4690 | - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | |
6181 | + :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
6182 | +$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
6183 | + { (exit 1); exit 1; }; };; | |
4691 | 6184 | :[FH]-) ac_tag=-:-;; |
4692 | 6185 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
4693 | 6186 | esac |
@@ -4706,7 +6199,7 @@ do | ||
4706 | 6199 | for ac_f |
4707 | 6200 | do |
4708 | 6201 | case $ac_f in |
4709 | - -) ac_f="$ac_tmp/stdin";; | |
6202 | + -) ac_f="$tmp/stdin";; | |
4710 | 6203 | *) # Look for the file first in the build tree, then in the source tree |
4711 | 6204 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
4712 | 6205 | # because $ac_f cannot contain `:'. |
@@ -4715,10 +6208,12 @@ do | ||
4715 | 6208 | [\\/$]*) false;; |
4716 | 6209 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
4717 | 6210 | esac || |
4718 | - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | |
6211 | + { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
6212 | +$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
6213 | + { (exit 1); exit 1; }; };; | |
4719 | 6214 | esac |
4720 | 6215 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
4721 | - as_fn_append ac_file_inputs " '$ac_f'" | |
6216 | + ac_file_inputs="$ac_file_inputs '$ac_f'" | |
4722 | 6217 | done |
4723 | 6218 | |
4724 | 6219 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
@@ -4729,7 +6224,7 @@ do | ||
4729 | 6224 | `' by configure.' |
4730 | 6225 | if test x"$ac_file" != x-; then |
4731 | 6226 | configure_input="$ac_file. $configure_input" |
4732 | - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
6227 | + { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
4733 | 6228 | $as_echo "$as_me: creating $ac_file" >&6;} |
4734 | 6229 | fi |
4735 | 6230 | # Neutralize special characters interpreted by sed in replacement strings. |
@@ -4741,8 +6236,10 @@ $as_echo "$as_me: creating $ac_file" >&6;} | ||
4741 | 6236 | esac |
4742 | 6237 | |
4743 | 6238 | case $ac_tag in |
4744 | - *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
4745 | - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
6239 | + *:-:* | *:-) cat >"$tmp/stdin" \ | |
6240 | + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
6241 | +$as_echo "$as_me: error: could not create $ac_file" >&2;} | |
6242 | + { (exit 1); exit 1; }; } ;; | |
4746 | 6243 | esac |
4747 | 6244 | ;; |
4748 | 6245 | esac |
@@ -4770,7 +6267,47 @@ $as_echo X"$ac_file" | | ||
4770 | 6267 | q |
4771 | 6268 | } |
4772 | 6269 | s/.*/./; q'` |
4773 | - as_dir="$ac_dir"; as_fn_mkdir_p | |
6270 | + { as_dir="$ac_dir" | |
6271 | + case $as_dir in #( | |
6272 | + -*) as_dir=./$as_dir;; | |
6273 | + esac | |
6274 | + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
6275 | + as_dirs= | |
6276 | + while :; do | |
6277 | + case $as_dir in #( | |
6278 | + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
6279 | + *) as_qdir=$as_dir;; | |
6280 | + esac | |
6281 | + as_dirs="'$as_qdir' $as_dirs" | |
6282 | + as_dir=`$as_dirname -- "$as_dir" || | |
6283 | +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6284 | + X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6285 | + X"$as_dir" : 'X\(//\)$' \| \ | |
6286 | + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6287 | +$as_echo X"$as_dir" | | |
6288 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6289 | + s//\1/ | |
6290 | + q | |
6291 | + } | |
6292 | + /^X\(\/\/\)[^/].*/{ | |
6293 | + s//\1/ | |
6294 | + q | |
6295 | + } | |
6296 | + /^X\(\/\/\)$/{ | |
6297 | + s//\1/ | |
6298 | + q | |
6299 | + } | |
6300 | + /^X\(\/\).*/{ | |
6301 | + s//\1/ | |
6302 | + q | |
6303 | + } | |
6304 | + s/.*/./; q'` | |
6305 | + test -d "$as_dir" && break | |
6306 | + done | |
6307 | + test -z "$as_dirs" || eval "mkdir $as_dirs" | |
6308 | + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
6309 | +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
6310 | + { (exit 1); exit 1; }; }; } | |
4774 | 6311 | ac_builddir=. |
4775 | 6312 | |
4776 | 6313 | case "$ac_dir" in |
@@ -4822,6 +6359,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
4822 | 6359 | # If the template does not know about datarootdir, expand it. |
4823 | 6360 | # FIXME: This hack should be removed a few years after 2.60. |
4824 | 6361 | ac_datarootdir_hack=; ac_datarootdir_seen= |
6362 | + | |
4825 | 6363 | ac_sed_dataroot=' |
4826 | 6364 | /datarootdir/ { |
4827 | 6365 | p |
@@ -4831,11 +6369,12 @@ ac_sed_dataroot=' | ||
4831 | 6369 | /@docdir@/p |
4832 | 6370 | /@infodir@/p |
4833 | 6371 | /@localedir@/p |
4834 | -/@mandir@/p' | |
6372 | +/@mandir@/p | |
6373 | +' | |
4835 | 6374 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
4836 | 6375 | *datarootdir*) ac_datarootdir_seen=yes;; |
4837 | 6376 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
4838 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
6377 | + { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
4839 | 6378 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
4840 | 6379 | _ACEOF |
4841 | 6380 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
@@ -4845,7 +6384,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
4845 | 6384 | s&@infodir@&$infodir&g |
4846 | 6385 | s&@localedir@&$localedir&g |
4847 | 6386 | s&@mandir@&$mandir&g |
4848 | - s&\\\${datarootdir}&$datarootdir&g' ;; | |
6387 | + s&\\\${datarootdir}&$datarootdir&g' ;; | |
4849 | 6388 | esac |
4850 | 6389 | _ACEOF |
4851 | 6390 |
@@ -4872,24 +6411,27 @@ s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
4872 | 6411 | s&@INSTALL@&$ac_INSTALL&;t t |
4873 | 6412 | $ac_datarootdir_hack |
4874 | 6413 | " |
4875 | -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
4876 | - >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6414 | +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
6415 | + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
6416 | +$as_echo "$as_me: error: could not create $ac_file" >&2;} | |
6417 | + { (exit 1); exit 1; }; } | |
4877 | 6418 | |
4878 | 6419 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
4879 | - { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
4880 | - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
4881 | - "$ac_tmp/out"`; test -z "$ac_out"; } && | |
4882 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
4883 | -which seems to be undefined. Please make sure it is defined" >&5 | |
6420 | + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
6421 | + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
6422 | + { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
6423 | +which seems to be undefined. Please make sure it is defined." >&5 | |
4884 | 6424 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
4885 | -which seems to be undefined. Please make sure it is defined" >&2;} | |
6425 | +which seems to be undefined. Please make sure it is defined." >&2;} | |
4886 | 6426 | |
4887 | - rm -f "$ac_tmp/stdin" | |
6427 | + rm -f "$tmp/stdin" | |
4888 | 6428 | case $ac_file in |
4889 | - -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
4890 | - *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
6429 | + -) cat "$tmp/out" && rm -f "$tmp/out";; | |
6430 | + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
4891 | 6431 | esac \ |
4892 | - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6432 | + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
6433 | +$as_echo "$as_me: error: could not create $ac_file" >&2;} | |
6434 | + { (exit 1); exit 1; }; } | |
4893 | 6435 | ;; |
4894 | 6436 | :H) |
4895 | 6437 | # |
@@ -4898,21 +6440,27 @@ which seems to be undefined. Please make sure it is defined" >&2;} | ||
4898 | 6440 | if test x"$ac_file" != x-; then |
4899 | 6441 | { |
4900 | 6442 | $as_echo "/* $configure_input */" \ |
4901 | - && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
4902 | - } >"$ac_tmp/config.h" \ | |
4903 | - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
4904 | - if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
4905 | - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
6443 | + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
6444 | + } >"$tmp/config.h" \ | |
6445 | + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
6446 | +$as_echo "$as_me: error: could not create $ac_file" >&2;} | |
6447 | + { (exit 1); exit 1; }; } | |
6448 | + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
6449 | + { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
4906 | 6450 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
4907 | 6451 | else |
4908 | 6452 | rm -f "$ac_file" |
4909 | - mv "$ac_tmp/config.h" "$ac_file" \ | |
4910 | - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6453 | + mv "$tmp/config.h" "$ac_file" \ | |
6454 | + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
6455 | +$as_echo "$as_me: error: could not create $ac_file" >&2;} | |
6456 | + { (exit 1); exit 1; }; } | |
4911 | 6457 | fi |
4912 | 6458 | else |
4913 | 6459 | $as_echo "/* $configure_input */" \ |
4914 | - && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
4915 | - || as_fn_error $? "could not create -" "$LINENO" 5 | |
6460 | + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
6461 | + || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
6462 | +$as_echo "$as_me: error: could not create -" >&2;} | |
6463 | + { (exit 1); exit 1; }; } | |
4916 | 6464 | fi |
4917 | 6465 | ;; |
4918 | 6466 |
@@ -4922,12 +6470,15 @@ $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
4922 | 6470 | done # for ac_tag |
4923 | 6471 | |
4924 | 6472 | |
4925 | -as_fn_exit 0 | |
6473 | +{ (exit 0); exit 0; } | |
4926 | 6474 | _ACEOF |
6475 | +chmod +x $CONFIG_STATUS | |
4927 | 6476 | ac_clean_files=$ac_clean_files_save |
4928 | 6477 | |
4929 | 6478 | test $ac_write_fail = 0 || |
4930 | - as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
6479 | + { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
6480 | +$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
6481 | + { (exit 1); exit 1; }; } | |
4931 | 6482 | |
4932 | 6483 | |
4933 | 6484 | # configure is writing to config.log, and then calls config.status. |
@@ -4948,10 +6499,10 @@ if test "$no_create" != yes; then | ||
4948 | 6499 | exec 5>>config.log |
4949 | 6500 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
4950 | 6501 | # would make configure fail if this is the last instruction. |
4951 | - $ac_cs_success || as_fn_exit 1 | |
6502 | + $ac_cs_success || { (exit 1); exit 1; } | |
4952 | 6503 | fi |
4953 | 6504 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
4954 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
6505 | + { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
4955 | 6506 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
4956 | 6507 | fi |
4957 | 6508 |
@@ -138,14 +138,28 @@ AC_HAVE_LIBRARY(readline, [ LIBS="$LIBS -lreadline" ], [ exit ]) | ||
138 | 138 | ########################################################################### |
139 | 139 | # libcurses |
140 | 140 | ########################################################################### |
141 | -AC_CHECK_HEADER(ncurses.h, [NCURSES_OK=1; LIBS="$LIBS -lncurses"; AC_DEFINE(HAVE_NCURSES_H, 1)]) | |
142 | -AC_CHECK_HEADER(ncurses/ncurses.h, [NCURSES_OK=1; LIBS="$LIBS -lncurses"; AC_DEFINE(HAVE_NCURSES_NCURSES_H, 1)]) | |
141 | +AC_CHECK_HEADER(ncurses.h, [NCURSES_OK=1; AC_DEFINE(HAVE_NCURSES_H, 1)]) | |
142 | +AC_CHECK_HEADER(ncurses/ncurses.h, [NCURSES_OK=1; AC_DEFINE(HAVE_NCURSES_NCURSES_H, 1)]) | |
143 | +AC_HAVE_LIBRARY(cursesw, [ LIBS="$LIBS -lcursesw"; NCURSES_OK2=1 ]) | |
144 | +AC_HAVE_LIBRARY(ncursesw, [ LIBS="$LIBS -lncursesw"; NCURSES_OK2=1 ]) | |
143 | 145 | |
144 | -if test -z NCURSES_OK | |
146 | +if test -z "$NCURSES_OK2" | |
147 | +then | |
148 | + AC_HAVE_LIBRARY(curses, [ LIBS="$LIBS -lcurses"; NCURSES_OK2=1 ]) | |
149 | + AC_HAVE_LIBRARY(ncurses, [ LIBS="$LIBS -lncurses"; NCURSES_OK2=1 ]) | |
150 | +fi | |
151 | + | |
152 | +if test -z "$NCURSES_OK" | |
153 | +then | |
154 | + exit | |
155 | +fi | |
156 | + | |
157 | +if test -z "$NCURSES_OK2" | |
145 | 158 | then |
146 | 159 | exit |
147 | 160 | fi |
148 | 161 | |
162 | + | |
149 | 163 | ########################################################################### |
150 | 164 | # math library |
151 | 165 | ########################################################################### |
@@ -30,7 +30,6 @@ | ||
30 | 30 | #include <stdarg.h> |
31 | 31 | #include <time.h> |
32 | 32 | #include <ctype.h> |
33 | -#include <locale.h> | |
34 | 33 | #include <sys/types.h> |
35 | 34 | #include <pwd.h> |
36 | 35 | #include <dirent.h> |
@@ -908,7 +908,7 @@ int main(int argc, char* argv[]) | ||
908 | 908 | CHECKML_BEGIN(FALSE); |
909 | 909 | |
910 | 910 | /// ファイラでもスクリプトでも共通の環境変数を初期化 /// |
911 | - setenv("VERSION", "1.0.4c", 1); | |
911 | + setenv("VERSION", "1.0.4d", 1); | |
912 | 912 | setenv("MFILER4_DATAROOTDIR", DATAROOTDIR, 1); |
913 | 913 | |
914 | 914 | /// mfiler4のホームディレクトリを保存しておく /// |
@@ -1008,7 +1008,7 @@ int main(int argc, char* argv[]) | ||
1008 | 1008 | set_signal_mfiler(); |
1009 | 1009 | |
1010 | 1010 | /// localeの設定 /// |
1011 | - if(gTerminalKanjiCode == kTKUtf8) setlocale(LC_CTYPE, "ja_JP.UTF-8"); | |
1011 | + //if(gTerminalKanjiCode == kTKUtf8) setlocale(LC_CTYPE, "ja_JP.UTF-8"); | |
1012 | 1012 | |
1013 | 1013 | /// atexit登録 /// |
1014 | 1014 | atexit(atexit_fun); |