]>
Commit | Line | Data |
---|---|---|
50e1e10f | 1 | #! /bin/sh |
50e1e10f | 2 | # Guess values for system-dependent variables and create Makefiles. |
39fd3d4f | 3 | # Generated by GNU Autoconf 2.63. |
50e1e10f | 4 | # |
e1052144 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
39fd3d4f | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
50e1e10f TT |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
b0cacab0 TT |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
29a5deed TT |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0cacab0 TT |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
39fd3d4f | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b0cacab0 TT |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
e1052144 TT |
21 | setopt NO_GLOB_SUBST |
22 | else | |
29a5deed TT |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
b0cacab0 | 27 | fi |
29a5deed TT |
28 | |
29 | ||
b0cacab0 | 30 | |
e1052144 TT |
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 | ||
39fd3d4f SJR |
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' | |
e1052144 | 54 | else |
39fd3d4f SJR |
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' | |
e1052144 | 67 | fi |
39fd3d4f SJR |
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 | } | |
e1052144 TT |
79 | fi |
80 | ||
b0cacab0 TT |
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 | ||
e1052144 TT |
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.) | |
e1052144 TT |
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 | |
39fd3d4f | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
e1052144 TT |
117 | { (exit 1); exit 1; } |
118 | fi | |
119 | ||
b0cacab0 | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
e1052144 TT |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
b0cacab0 TT |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
39fd3d4f SJR |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
b0cacab0 TT |
133 | |
134 | # Required to use basename. | |
e1052144 TT |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
e1052144 | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b0cacab0 TT |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
e1052144 | 150 | as_me=`$as_basename -- "$0" || |
b0cacab0 TT |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
e1052144 | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
39fd3d4f | 154 | $as_echo X/"$0" | |
e1052144 TT |
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'` | |
b0cacab0 | 168 | |
e1052144 TT |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
b0cacab0 | 171 | |
b0cacab0 | 172 | |
e1052144 TT |
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 | ||
39fd3d4f | 180 | if test $as_have_required = yes && (eval ": |
e1052144 TT |
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. | |
b0cacab0 TT |
203 | fi |
204 | ||
e1052144 TT |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
b0cacab0 | 209 | |
e1052144 TT |
210 | if as_func_ret_success; then |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
b0cacab0 | 216 | |
e1052144 TT |
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= | |
b0cacab0 | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
29a5deed | 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
b0cacab0 TT |
242 | do |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
e1052144 | 245 | case $as_dir in |
b0cacab0 | 246 | /*) |
e1052144 TT |
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 | |
e1052144 TT |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
260 | emulate sh | |
261 | NULLCMD=: | |
39fd3d4f | 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
e1052144 TT |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
29a5deed TT |
267 | case `(set -o) 2>/dev/null` in |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
e1052144 | 271 | fi |
29a5deed | 272 | |
e1052144 TT |
273 | |
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
e1052144 TT |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
281 | emulate sh | |
282 | NULLCMD=: | |
39fd3d4f | 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
e1052144 TT |
284 | # is contrary to our usage. Disable this feature. |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
29a5deed TT |
288 | case `(set -o) 2>/dev/null` in |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
e1052144 | 292 | fi |
29a5deed | 293 | |
e1052144 TT |
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 | ( | |
b0cacab0 TT |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
b0cacab0 | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
e1052144 TT |
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 | |
39fd3d4f SJR |
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+"$@"} | |
e1052144 TT |
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. | |
39fd3d4f SJR |
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. | |
e1052144 TT |
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" || { | |
b0cacab0 TT |
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 | |
e1052144 TT |
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. | |
b0cacab0 | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
e1052144 TT |
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 | | |
b0cacab0 | 462 | sed ' |
e1052144 TT |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
b0cacab0 | 467 | N |
e1052144 TT |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b0cacab0 | 470 | t loop |
e1052144 | 471 | s/-\n.*// |
b0cacab0 | 472 | ' >$as_me.lineno && |
e1052144 | 473 | chmod +x "$as_me.lineno" || |
39fd3d4f | 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
b0cacab0 TT |
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 | |
e1052144 TT |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
b0cacab0 TT |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
484 | ||
485 | ||
e1052144 TT |
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';; | |
b0cacab0 | 501 | esac |
e1052144 TT |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
e1052144 TT |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
39fd3d4f SJR |
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 | |
b0cacab0 | 528 | as_ln_s='cp -p' |
39fd3d4f | 529 | fi |
b0cacab0 TT |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
e1052144 TT |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
b0cacab0 TT |
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 | ||
29a5deed TT |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
e1052144 | 545 | else |
29a5deed TT |
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 | |
39fd3d4f | 554 | test -d "$1/."; |
29a5deed TT |
555 | else |
556 | case $1 in | |
39fd3d4f | 557 | -*)set "./$1";; |
29a5deed TT |
558 | esac; |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
e1052144 | 563 | fi |
29a5deed | 564 | as_executable_p=$as_test_x |
b0cacab0 TT |
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 | ||
b0cacab0 | 573 | |
e1052144 | 574 | exec 7<&0 </dev/null 6>&1 |
b0cacab0 TT |
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` | |
50e1e10f | 580 | |
b0cacab0 TT |
581 | # |
582 | # Initializations. | |
583 | # | |
50e1e10f | 584 | ac_default_prefix=/usr/local |
e1052144 | 585 | ac_clean_files= |
b0cacab0 | 586 | ac_config_libobj_dir=. |
e1052144 | 587 | LIBOBJS= |
b0cacab0 TT |
588 | cross_compiling=no |
589 | subdirs= | |
590 | MFLAGS= | |
591 | MAKEFLAGS= | |
592 | SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | ||
b0cacab0 TT |
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="version.h" | |
602 | # Factoring default headers for most tests. | |
603 | ac_includes_default="\ | |
604 | #include <stdio.h> | |
29a5deed | 605 | #ifdef HAVE_SYS_TYPES_H |
b0cacab0 TT |
606 | # include <sys/types.h> |
607 | #endif | |
29a5deed | 608 | #ifdef HAVE_SYS_STAT_H |
b0cacab0 TT |
609 | # include <sys/stat.h> |
610 | #endif | |
29a5deed | 611 | #ifdef STDC_HEADERS |
b0cacab0 TT |
612 | # include <stdlib.h> |
613 | # include <stddef.h> | |
614 | #else | |
29a5deed | 615 | # ifdef HAVE_STDLIB_H |
b0cacab0 TT |
616 | # include <stdlib.h> |
617 | # endif | |
618 | #endif | |
29a5deed TT |
619 | #ifdef HAVE_STRING_H |
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
b0cacab0 TT |
621 | # include <memory.h> |
622 | # endif | |
623 | # include <string.h> | |
624 | #endif | |
29a5deed | 625 | #ifdef HAVE_STRINGS_H |
b0cacab0 TT |
626 | # include <strings.h> |
627 | #endif | |
29a5deed | 628 | #ifdef HAVE_INTTYPES_H |
b0cacab0 | 629 | # include <inttypes.h> |
e1052144 | 630 | #endif |
29a5deed | 631 | #ifdef HAVE_STDINT_H |
e1052144 | 632 | # include <stdint.h> |
b0cacab0 | 633 | #endif |
29a5deed | 634 | #ifdef HAVE_UNISTD_H |
b0cacab0 TT |
635 | # include <unistd.h> |
636 | #endif" | |
637 | ||
39fd3d4f | 638 | ac_subst_vars='LTLIBOBJS |
e1052144 | 639 | LIBOBJS |
39fd3d4f SJR |
640 | BUILD_LDFLAGS |
641 | BUILD_CFLAGS | |
642 | INTL_FLAGS | |
643 | DO_TEST_SUITE | |
644 | ET_DIR | |
645 | SS_DIR | |
646 | LDFLAG_STATIC | |
647 | root_sysconfdir | |
648 | root_libdir | |
649 | root_sbindir | |
650 | root_bindir | |
651 | root_prefix | |
652 | UNIX_CMT | |
653 | CYGWIN_CMT | |
654 | LINUX_CMT | |
655 | UNI_DIFF_OPTS | |
656 | SEM_INIT_LIB | |
657 | DLOPEN_LIB | |
658 | SOCKET_LIB | |
659 | SIZEOF_LONG_LONG | |
660 | SIZEOF_LONG | |
661 | SIZEOF_INT | |
662 | SIZEOF_SHORT | |
663 | BUILD_CC | |
664 | MAKEINFO | |
665 | STRIP | |
666 | AR | |
667 | LDCONFIG | |
668 | PERL | |
669 | SED | |
670 | AWK | |
671 | CHMOD | |
672 | RM | |
673 | CP | |
674 | MV | |
675 | LN_S | |
676 | LN | |
bcb915b0 TT |
677 | ifNotGNUmake |
678 | ifGNUmake | |
39fd3d4f SJR |
679 | BINARY_TYPE |
680 | POSUB | |
681 | LTLIBINTL | |
682 | LIBINTL | |
683 | INTLLIBS | |
684 | INTL_LIBTOOL_SUFFIX_PREFIX | |
685 | INTLOBJS | |
686 | GENCAT | |
687 | INSTOBJEXT | |
688 | DATADIRNAME | |
689 | CATOBJEXT | |
690 | USE_INCLUDED_LIBINTL | |
691 | BUILD_INCLUDED_LIBINTL | |
692 | INTLBISON | |
693 | LTLIBICONV | |
694 | LIBICONV | |
695 | HAVE_WPRINTF | |
696 | HAVE_SNPRINTF | |
697 | HAVE_ASPRINTF | |
698 | HAVE_POSIX_PRINTF | |
699 | GLIBC21 | |
700 | ALLOCA | |
701 | RANLIB | |
702 | MSGMERGE | |
703 | XGETTEXT | |
704 | GMSGFMT | |
705 | MSGFMT | |
706 | USE_NLS | |
707 | MKINSTALLDIRS | |
708 | INSTALL_DATA | |
709 | INSTALL_SCRIPT | |
710 | INSTALL_PROGRAM | |
711 | SET_MAKE | |
712 | VERSION | |
713 | PACKAGE | |
714 | GETTEXT_PACKAGE | |
715 | UUIDD_CMT | |
716 | E2INITRD_MAN | |
717 | E2INITRD_PROG | |
718 | FSCK_MAN | |
719 | FSCK_PROG | |
720 | RESIZER_CMT | |
721 | IMAGER_CMT | |
722 | DEBUGFS_CMT | |
723 | BLKID_CMT | |
724 | DEPPROFILED_LIBBLKID | |
725 | PROFILED_LIBBLKID | |
726 | DEPSTATIC_LIBBLKID | |
727 | STATIC_LIBBLKID | |
728 | DEPLIBBLKID | |
729 | LIBBLKID | |
730 | UUID_CMT | |
731 | DEPPROFILED_LIBUUID | |
732 | PROFILED_LIBUUID | |
733 | DEPSTATIC_LIBUUID | |
734 | STATIC_LIBUUID | |
735 | DEPLIBUUID | |
736 | LIBUUID | |
737 | PKG_CONFIG | |
738 | TEST_IO_CMT | |
739 | PRIVATE_LIBS_CMT | |
740 | LDFLAG_DYNAMIC | |
741 | PROFILED_LIB_EXT | |
742 | STATIC_LIB_EXT | |
743 | LIB_EXT | |
744 | CHECKER_CMT | |
745 | PROFILE_CMT | |
746 | BSDLIB_CMT | |
747 | ELF_CMT | |
748 | HTREE_CMT | |
c13351f6 TT |
749 | Q |
750 | E | |
39fd3d4f SJR |
751 | MAINTAINER_CMT |
752 | LINUX_INCLUDE | |
753 | EGREP | |
754 | GREP | |
755 | LD | |
756 | CPP | |
757 | OBJEXT | |
758 | EXEEXT | |
759 | ac_ct_CC | |
760 | CPPFLAGS | |
761 | LDFLAGS | |
762 | CFLAGS | |
763 | CC | |
764 | host_os | |
765 | host_vendor | |
766 | host_cpu | |
767 | host | |
768 | build_os | |
769 | build_vendor | |
770 | build_cpu | |
771 | build | |
772 | E2FSPROGS_PKGVER | |
773 | E2FSPROGS_VERSION | |
774 | E2FSPROGS_DAY | |
775 | E2FSPROGS_MONTH | |
776 | E2FSPROGS_YEAR | |
777 | target_alias | |
778 | host_alias | |
779 | build_alias | |
780 | LIBS | |
781 | ECHO_T | |
782 | ECHO_N | |
783 | ECHO_C | |
784 | DEFS | |
785 | mandir | |
786 | localedir | |
787 | libdir | |
788 | psdir | |
789 | pdfdir | |
790 | dvidir | |
791 | htmldir | |
792 | infodir | |
793 | docdir | |
794 | oldincludedir | |
795 | includedir | |
796 | localstatedir | |
797 | sharedstatedir | |
798 | sysconfdir | |
799 | datadir | |
800 | datarootdir | |
801 | libexecdir | |
802 | sbindir | |
803 | bindir | |
804 | program_transform_name | |
805 | prefix | |
806 | exec_prefix | |
807 | PACKAGE_BUGREPORT | |
808 | PACKAGE_STRING | |
809 | PACKAGE_VERSION | |
810 | PACKAGE_TARNAME | |
811 | PACKAGE_NAME | |
812 | PATH_SEPARATOR | |
813 | SHELL' | |
e1052144 TT |
814 | ac_subst_files='MCONFIG |
815 | MAKEFILE_ELF | |
816 | MAKEFILE_BSDLIB | |
817 | MAKEFILE_PROFILE | |
818 | MAKEFILE_CHECKER | |
819 | MAKEFILE_LIBRARY | |
488c75a6 TT |
820 | ASM_TYPES_HEADER |
821 | PUBLIC_CONFIG_HEADER' | |
39fd3d4f SJR |
822 | ac_user_opts=' |
823 | enable_option_checking | |
824 | with_diet_libc | |
825 | with_cc | |
826 | with_linker | |
827 | with_ccopts | |
828 | with_ldopts | |
829 | with_root_prefix | |
830 | enable_maintainer_mode | |
c13351f6 | 831 | enable_verbose_makecmds |
39fd3d4f SJR |
832 | enable_compression |
833 | enable_htree | |
834 | enable_elf_shlibs | |
835 | enable_bsd_shlibs | |
836 | enable_profile | |
837 | enable_checker | |
838 | enable_jbd_debug | |
839 | enable_blkid_debug | |
840 | enable_testio_debug | |
841 | enable_libuuid | |
842 | enable_libblkid | |
843 | enable_debugfs | |
844 | enable_imager | |
845 | enable_resizer | |
846 | enable_fsck | |
847 | enable_e2initrd_helper | |
848 | enable_tls | |
849 | enable_uuidd | |
850 | enable_nls | |
851 | with_gnu_ld | |
852 | enable_rpath | |
853 | with_libiconv_prefix | |
854 | with_included_gettext | |
855 | with_libintl_prefix | |
856 | ' | |
e1052144 TT |
857 | ac_precious_vars='build_alias |
858 | host_alias | |
859 | target_alias | |
860 | CC | |
861 | CFLAGS | |
862 | LDFLAGS | |
29a5deed | 863 | LIBS |
e1052144 | 864 | CPPFLAGS |
14b596d4 TT |
865 | CPP |
866 | PKG_CONFIG' | |
e1052144 | 867 | |
50e1e10f TT |
868 | |
869 | # Initialize some variables set by options. | |
b0cacab0 TT |
870 | ac_init_help= |
871 | ac_init_version=false | |
39fd3d4f SJR |
872 | ac_unrecognized_opts= |
873 | ac_unrecognized_sep= | |
50e1e10f TT |
874 | # The variables have the same names as the options, with |
875 | # dashes changed to underlines. | |
b0cacab0 | 876 | cache_file=/dev/null |
50e1e10f | 877 | exec_prefix=NONE |
50e1e10f | 878 | no_create= |
50e1e10f TT |
879 | no_recursion= |
880 | prefix=NONE | |
881 | program_prefix=NONE | |
882 | program_suffix=NONE | |
883 | program_transform_name=s,x,x, | |
884 | silent= | |
885 | site= | |
886 | srcdir= | |
50e1e10f TT |
887 | verbose= |
888 | x_includes=NONE | |
889 | x_libraries=NONE | |
b0cacab0 TT |
890 | |
891 | # Installation directory options. | |
892 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
893 | # and all the variables that are supposed to be based on exec_prefix | |
894 | # by default will actually change. | |
895 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
e1052144 | 896 | # (The list follows the same order as the GNU Coding Standards.) |
21c84b71 TT |
897 | bindir='${exec_prefix}/bin' |
898 | sbindir='${exec_prefix}/sbin' | |
899 | libexecdir='${exec_prefix}/libexec' | |
e1052144 TT |
900 | datarootdir='${prefix}/share' |
901 | datadir='${datarootdir}' | |
21c84b71 TT |
902 | sysconfdir='${prefix}/etc' |
903 | sharedstatedir='${prefix}/com' | |
904 | localstatedir='${prefix}/var' | |
21c84b71 TT |
905 | includedir='${prefix}/include' |
906 | oldincludedir='/usr/include' | |
e1052144 TT |
907 | docdir='${datarootdir}/doc/${PACKAGE}' |
908 | infodir='${datarootdir}/info' | |
909 | htmldir='${docdir}' | |
910 | dvidir='${docdir}' | |
911 | pdfdir='${docdir}' | |
912 | psdir='${docdir}' | |
913 | libdir='${exec_prefix}/lib' | |
914 | localedir='${datarootdir}/locale' | |
915 | mandir='${datarootdir}/man' | |
50e1e10f | 916 | |
50e1e10f | 917 | ac_prev= |
e1052144 | 918 | ac_dashdash= |
50e1e10f TT |
919 | for ac_option |
920 | do | |
50e1e10f TT |
921 | # If the previous option needs an argument, assign it. |
922 | if test -n "$ac_prev"; then | |
e1052144 | 923 | eval $ac_prev=\$ac_option |
50e1e10f TT |
924 | ac_prev= |
925 | continue | |
926 | fi | |
927 | ||
e1052144 TT |
928 | case $ac_option in |
929 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
930 | *) ac_optarg=yes ;; | |
931 | esac | |
50e1e10f TT |
932 | |
933 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
934 | ||
e1052144 TT |
935 | case $ac_dashdash$ac_option in |
936 | --) | |
937 | ac_dashdash=yes ;; | |
50e1e10f | 938 | |
21c84b71 TT |
939 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
940 | ac_prev=bindir ;; | |
941 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b0cacab0 | 942 | bindir=$ac_optarg ;; |
21c84b71 TT |
943 | |
944 | -build | --build | --buil | --bui | --bu) | |
b0cacab0 | 945 | ac_prev=build_alias ;; |
21c84b71 | 946 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b0cacab0 | 947 | build_alias=$ac_optarg ;; |
50e1e10f TT |
948 | |
949 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
950 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
951 | ac_prev=cache_file ;; | |
952 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
953 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b0cacab0 TT |
954 | cache_file=$ac_optarg ;; |
955 | ||
956 | --config-cache | -C) | |
957 | cache_file=config.cache ;; | |
50e1e10f | 958 | |
e1052144 | 959 | -datadir | --datadir | --datadi | --datad) |
21c84b71 | 960 | ac_prev=datadir ;; |
e1052144 | 961 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b0cacab0 | 962 | datadir=$ac_optarg ;; |
21c84b71 | 963 | |
e1052144 TT |
964 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
965 | | --dataroo | --dataro | --datar) | |
966 | ac_prev=datarootdir ;; | |
967 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
968 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
969 | datarootdir=$ac_optarg ;; | |
970 | ||
50e1e10f | 971 | -disable-* | --disable-*) |
39fd3d4f | 972 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
50e1e10f | 973 | # Reject names that are not valid shell variable names. |
39fd3d4f SJR |
974 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
975 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
b0cacab0 | 976 | { (exit 1); exit 1; }; } |
39fd3d4f SJR |
977 | ac_useropt_orig=$ac_useropt |
978 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
979 | case $ac_user_opts in | |
980 | *" | |
981 | "enable_$ac_useropt" | |
982 | "*) ;; | |
983 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
984 | ac_unrecognized_sep=', ';; | |
985 | esac | |
986 | eval enable_$ac_useropt=no ;; | |
e1052144 TT |
987 | |
988 | -docdir | --docdir | --docdi | --doc | --do) | |
989 | ac_prev=docdir ;; | |
990 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
991 | docdir=$ac_optarg ;; | |
992 | ||
993 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
994 | ac_prev=dvidir ;; | |
995 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
996 | dvidir=$ac_optarg ;; | |
50e1e10f TT |
997 | |
998 | -enable-* | --enable-*) | |
39fd3d4f | 999 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
50e1e10f | 1000 | # Reject names that are not valid shell variable names. |
39fd3d4f SJR |
1001 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1002 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
b0cacab0 | 1003 | { (exit 1); exit 1; }; } |
39fd3d4f SJR |
1004 | ac_useropt_orig=$ac_useropt |
1005 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1006 | case $ac_user_opts in | |
1007 | *" | |
1008 | "enable_$ac_useropt" | |
1009 | "*) ;; | |
1010 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1011 | ac_unrecognized_sep=', ';; | |
1012 | esac | |
1013 | eval enable_$ac_useropt=\$ac_optarg ;; | |
50e1e10f TT |
1014 | |
1015 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1016 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1017 | | --exec | --exe | --ex) | |
1018 | ac_prev=exec_prefix ;; | |
1019 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1020 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1021 | | --exec=* | --exe=* | --ex=*) | |
b0cacab0 | 1022 | exec_prefix=$ac_optarg ;; |
50e1e10f TT |
1023 | |
1024 | -gas | --gas | --ga | --g) | |
1025 | # Obsolete; use --with-gas. | |
1026 | with_gas=yes ;; | |
1027 | ||
b0cacab0 TT |
1028 | -help | --help | --hel | --he | -h) |
1029 | ac_init_help=long ;; | |
1030 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1031 | ac_init_help=recursive ;; | |
1032 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1033 | ac_init_help=short ;; | |
50e1e10f TT |
1034 | |
1035 | -host | --host | --hos | --ho) | |
b0cacab0 | 1036 | ac_prev=host_alias ;; |
50e1e10f | 1037 | -host=* | --host=* | --hos=* | --ho=*) |
b0cacab0 | 1038 | host_alias=$ac_optarg ;; |
50e1e10f | 1039 | |
e1052144 TT |
1040 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1041 | ac_prev=htmldir ;; | |
1042 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1043 | | --ht=*) | |
1044 | htmldir=$ac_optarg ;; | |
1045 | ||
21c84b71 TT |
1046 | -includedir | --includedir | --includedi | --included | --include \ |
1047 | | --includ | --inclu | --incl | --inc) | |
1048 | ac_prev=includedir ;; | |
1049 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1050 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b0cacab0 | 1051 | includedir=$ac_optarg ;; |
21c84b71 TT |
1052 | |
1053 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1054 | ac_prev=infodir ;; | |
1055 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b0cacab0 | 1056 | infodir=$ac_optarg ;; |
21c84b71 TT |
1057 | |
1058 | -libdir | --libdir | --libdi | --libd) | |
1059 | ac_prev=libdir ;; | |
1060 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b0cacab0 | 1061 | libdir=$ac_optarg ;; |
21c84b71 TT |
1062 | |
1063 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1064 | | --libexe | --libex | --libe) | |
1065 | ac_prev=libexecdir ;; | |
1066 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1067 | | --libexe=* | --libex=* | --libe=*) | |
b0cacab0 | 1068 | libexecdir=$ac_optarg ;; |
21c84b71 | 1069 | |
e1052144 TT |
1070 | -localedir | --localedir | --localedi | --localed | --locale) |
1071 | ac_prev=localedir ;; | |
1072 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1073 | localedir=$ac_optarg ;; | |
1074 | ||
21c84b71 | 1075 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
e1052144 | 1076 | | --localstate | --localstat | --localsta | --localst | --locals) |
21c84b71 TT |
1077 | ac_prev=localstatedir ;; |
1078 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
e1052144 | 1079 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b0cacab0 | 1080 | localstatedir=$ac_optarg ;; |
21c84b71 TT |
1081 | |
1082 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1083 | ac_prev=mandir ;; | |
1084 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b0cacab0 | 1085 | mandir=$ac_optarg ;; |
21c84b71 | 1086 | |
50e1e10f TT |
1087 | -nfp | --nfp | --nf) |
1088 | # Obsolete; use --without-fp. | |
1089 | with_fp=no ;; | |
1090 | ||
1091 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b0cacab0 | 1092 | | --no-cr | --no-c | -n) |
50e1e10f TT |
1093 | no_create=yes ;; |
1094 | ||
1095 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1096 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1097 | no_recursion=yes ;; | |
1098 | ||
21c84b71 TT |
1099 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1100 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1101 | | --oldin | --oldi | --old | --ol | --o) | |
1102 | ac_prev=oldincludedir ;; | |
1103 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1104 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1105 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b0cacab0 | 1106 | oldincludedir=$ac_optarg ;; |
21c84b71 | 1107 | |
50e1e10f TT |
1108 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1109 | ac_prev=prefix ;; | |
1110 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b0cacab0 | 1111 | prefix=$ac_optarg ;; |
50e1e10f TT |
1112 | |
1113 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1114 | | --program-pre | --program-pr | --program-p) | |
1115 | ac_prev=program_prefix ;; | |
1116 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1117 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b0cacab0 | 1118 | program_prefix=$ac_optarg ;; |
50e1e10f TT |
1119 | |
1120 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1121 | | --program-suf | --program-su | --program-s) | |
1122 | ac_prev=program_suffix ;; | |
1123 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1124 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b0cacab0 | 1125 | program_suffix=$ac_optarg ;; |
50e1e10f TT |
1126 | |
1127 | -program-transform-name | --program-transform-name \ | |
1128 | | --program-transform-nam | --program-transform-na \ | |
1129 | | --program-transform-n | --program-transform- \ | |
1130 | | --program-transform | --program-transfor \ | |
1131 | | --program-transfo | --program-transf \ | |
1132 | | --program-trans | --program-tran \ | |
1133 | | --progr-tra | --program-tr | --program-t) | |
1134 | ac_prev=program_transform_name ;; | |
1135 | -program-transform-name=* | --program-transform-name=* \ | |
1136 | | --program-transform-nam=* | --program-transform-na=* \ | |
1137 | | --program-transform-n=* | --program-transform-=* \ | |
1138 | | --program-transform=* | --program-transfor=* \ | |
1139 | | --program-transfo=* | --program-transf=* \ | |
1140 | | --program-trans=* | --program-tran=* \ | |
1141 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b0cacab0 | 1142 | program_transform_name=$ac_optarg ;; |
50e1e10f | 1143 | |
e1052144 TT |
1144 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1145 | ac_prev=pdfdir ;; | |
1146 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1147 | pdfdir=$ac_optarg ;; | |
1148 | ||
1149 | -psdir | --psdir | --psdi | --psd | --ps) | |
1150 | ac_prev=psdir ;; | |
1151 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1152 | psdir=$ac_optarg ;; | |
1153 | ||
50e1e10f TT |
1154 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1155 | | -silent | --silent | --silen | --sile | --sil) | |
1156 | silent=yes ;; | |
1157 | ||
21c84b71 TT |
1158 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1159 | ac_prev=sbindir ;; | |
1160 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1161 | | --sbi=* | --sb=*) | |
b0cacab0 | 1162 | sbindir=$ac_optarg ;; |
21c84b71 TT |
1163 | |
1164 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1165 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1166 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1167 | | --sha | --sh) | |
1168 | ac_prev=sharedstatedir ;; | |
1169 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1170 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1171 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1172 | | --sha=* | --sh=*) | |
b0cacab0 | 1173 | sharedstatedir=$ac_optarg ;; |
21c84b71 | 1174 | |
50e1e10f TT |
1175 | -site | --site | --sit) |
1176 | ac_prev=site ;; | |
1177 | -site=* | --site=* | --sit=*) | |
b0cacab0 | 1178 | site=$ac_optarg ;; |
50e1e10f TT |
1179 | |
1180 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1181 | ac_prev=srcdir ;; | |
1182 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b0cacab0 | 1183 | srcdir=$ac_optarg ;; |
50e1e10f | 1184 | |
21c84b71 TT |
1185 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1186 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1187 | ac_prev=sysconfdir ;; | |
1188 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1189 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b0cacab0 | 1190 | sysconfdir=$ac_optarg ;; |
21c84b71 | 1191 | |
50e1e10f | 1192 | -target | --target | --targe | --targ | --tar | --ta | --t) |
b0cacab0 | 1193 | ac_prev=target_alias ;; |
50e1e10f | 1194 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b0cacab0 | 1195 | target_alias=$ac_optarg ;; |
50e1e10f TT |
1196 | |
1197 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1198 | verbose=yes ;; | |
1199 | ||
b0cacab0 TT |
1200 | -version | --version | --versio | --versi | --vers | -V) |
1201 | ac_init_version=: ;; | |
50e1e10f TT |
1202 | |
1203 | -with-* | --with-*) | |
39fd3d4f | 1204 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
50e1e10f | 1205 | # Reject names that are not valid shell variable names. |
39fd3d4f SJR |
1206 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1207 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
b0cacab0 | 1208 | { (exit 1); exit 1; }; } |
39fd3d4f SJR |
1209 | ac_useropt_orig=$ac_useropt |
1210 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1211 | case $ac_user_opts in | |
1212 | *" | |
1213 | "with_$ac_useropt" | |
1214 | "*) ;; | |
1215 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1216 | ac_unrecognized_sep=', ';; | |
1217 | esac | |
1218 | eval with_$ac_useropt=\$ac_optarg ;; | |
50e1e10f TT |
1219 | |
1220 | -without-* | --without-*) | |
39fd3d4f | 1221 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
50e1e10f | 1222 | # Reject names that are not valid shell variable names. |
39fd3d4f SJR |
1223 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1224 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
b0cacab0 | 1225 | { (exit 1); exit 1; }; } |
39fd3d4f SJR |
1226 | ac_useropt_orig=$ac_useropt |
1227 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1228 | case $ac_user_opts in | |
1229 | *" | |
1230 | "with_$ac_useropt" | |
1231 | "*) ;; | |
1232 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1233 | ac_unrecognized_sep=', ';; | |
1234 | esac | |
1235 | eval with_$ac_useropt=no ;; | |
50e1e10f TT |
1236 | |
1237 | --x) | |
1238 | # Obsolete; use --with-x. | |
1239 | with_x=yes ;; | |
1240 | ||
1241 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1242 | | --x-incl | --x-inc | --x-in | --x-i) | |
1243 | ac_prev=x_includes ;; | |
1244 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1245 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b0cacab0 | 1246 | x_includes=$ac_optarg ;; |
50e1e10f TT |
1247 | |
1248 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1249 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1250 | ac_prev=x_libraries ;; | |
1251 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1252 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b0cacab0 | 1253 | x_libraries=$ac_optarg ;; |
50e1e10f | 1254 | |
39fd3d4f | 1255 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
b0cacab0 TT |
1256 | Try \`$0 --help' for more information." >&2 |
1257 | { (exit 1); exit 1; }; } | |
50e1e10f TT |
1258 | ;; |
1259 | ||
b0cacab0 TT |
1260 | *=*) |
1261 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1262 | # Reject names that are not valid shell variable names. | |
1263 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
39fd3d4f | 1264 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
b0cacab0 | 1265 | { (exit 1); exit 1; }; } |
e1052144 | 1266 | eval $ac_envvar=\$ac_optarg |
b0cacab0 TT |
1267 | export $ac_envvar ;; |
1268 | ||
21c84b71 | 1269 | *) |
b0cacab0 | 1270 | # FIXME: should be removed in autoconf 3.0. |
39fd3d4f | 1271 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b0cacab0 | 1272 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
39fd3d4f | 1273 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b0cacab0 | 1274 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
50e1e10f TT |
1275 | ;; |
1276 | ||
1277 | esac | |
1278 | done | |
1279 | ||
1280 | if test -n "$ac_prev"; then | |
b0cacab0 | 1281 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
39fd3d4f | 1282 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
b0cacab0 | 1283 | { (exit 1); exit 1; }; } |
50e1e10f | 1284 | fi |
50e1e10f | 1285 | |
39fd3d4f SJR |
1286 | if test -n "$ac_unrecognized_opts"; then |
1287 | case $enable_option_checking in | |
1288 | no) ;; | |
1289 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1290 | { (exit 1); exit 1; }; } ;; | |
1291 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1292 | esac | |
1293 | fi | |
1294 | ||
1295 | # Check all directory arguments for consistency. | |
e1052144 TT |
1296 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1297 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1298 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1299 | libdir localedir mandir | |
50e1e10f | 1300 | do |
e1052144 | 1301 | eval ac_val=\$$ac_var |
39fd3d4f SJR |
1302 | # Remove trailing slashes. |
1303 | case $ac_val in | |
1304 | */ ) | |
1305 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1306 | eval $ac_var=\$ac_val;; | |
1307 | esac | |
1308 | # Be sure to have absolute directory names. | |
b0cacab0 | 1309 | case $ac_val in |
e1052144 TT |
1310 | [\\/$]* | ?:[\\/]* ) continue;; |
1311 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
50e1e10f | 1312 | esac |
39fd3d4f | 1313 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
e1052144 | 1314 | { (exit 1); exit 1; }; } |
50e1e10f TT |
1315 | done |
1316 | ||
b0cacab0 TT |
1317 | # There might be people who depend on the old broken behavior: `$host' |
1318 | # used to hold the argument of --host etc. | |
1319 | # FIXME: To remove some day. | |
1320 | build=$build_alias | |
1321 | host=$host_alias | |
1322 | target=$target_alias | |
1323 | ||
1324 | # FIXME: To remove some day. | |
1325 | if test "x$host_alias" != x; then | |
1326 | if test "x$build_alias" = x; then | |
1327 | cross_compiling=maybe | |
39fd3d4f | 1328 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
b0cacab0 TT |
1329 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1330 | elif test "x$build_alias" != "x$host_alias"; then | |
1331 | cross_compiling=yes | |
1332 | fi | |
1333 | fi | |
50e1e10f | 1334 | |
b0cacab0 TT |
1335 | ac_tool_prefix= |
1336 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1337 | ||
1338 | test "$silent" = yes && exec 6>/dev/null | |
50e1e10f | 1339 | |
50e1e10f | 1340 | |
e1052144 TT |
1341 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1342 | ac_ls_di=`ls -di .` && | |
1343 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
39fd3d4f | 1344 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
e1052144 TT |
1345 | { (exit 1); exit 1; }; } |
1346 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
39fd3d4f | 1347 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
e1052144 TT |
1348 | { (exit 1); exit 1; }; } |
1349 | ||
1350 | ||
50e1e10f TT |
1351 | # Find the source files, if location was not specified. |
1352 | if test -z "$srcdir"; then | |
1353 | ac_srcdir_defaulted=yes | |
e1052144 | 1354 | # Try the directory containing this script, then the parent directory. |
39fd3d4f SJR |
1355 | ac_confdir=`$as_dirname -- "$as_myself" || |
1356 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1357 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1358 | X"$as_myself" : 'X\(//\)$' \| \ | |
1359 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1360 | $as_echo X"$as_myself" | | |
e1052144 TT |
1361 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1362 | s//\1/ | |
1363 | q | |
1364 | } | |
1365 | /^X\(\/\/\)[^/].*/{ | |
1366 | s//\1/ | |
1367 | q | |
1368 | } | |
1369 | /^X\(\/\/\)$/{ | |
1370 | s//\1/ | |
1371 | q | |
1372 | } | |
1373 | /^X\(\/\).*/{ | |
1374 | s//\1/ | |
1375 | q | |
1376 | } | |
1377 | s/.*/./; q'` | |
50e1e10f | 1378 | srcdir=$ac_confdir |
e1052144 | 1379 | if test ! -r "$srcdir/$ac_unique_file"; then |
50e1e10f TT |
1380 | srcdir=.. |
1381 | fi | |
1382 | else | |
1383 | ac_srcdir_defaulted=no | |
1384 | fi | |
e1052144 TT |
1385 | if test ! -r "$srcdir/$ac_unique_file"; then |
1386 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
39fd3d4f | 1387 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
b0cacab0 | 1388 | { (exit 1); exit 1; }; } |
50e1e10f | 1389 | fi |
e1052144 TT |
1390 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1391 | ac_abs_confdir=`( | |
39fd3d4f | 1392 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
b0cacab0 | 1393 | { (exit 1); exit 1; }; } |
e1052144 TT |
1394 | pwd)` |
1395 | # When building in place, set srcdir=. | |
1396 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1397 | srcdir=. | |
1398 | fi | |
1399 | # Remove unnecessary trailing slashes from srcdir. | |
1400 | # Double slashes in file names in object file debugging info | |
1401 | # mess up M-x gdb in Emacs. | |
1402 | case $srcdir in | |
1403 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1404 | esac | |
1405 | for ac_var in $ac_precious_vars; do | |
1406 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1407 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1408 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1409 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1410 | done | |
b0cacab0 TT |
1411 | |
1412 | # | |
1413 | # Report the --help message. | |
1414 | # | |
1415 | if test "$ac_init_help" = "long"; then | |
1416 | # Omit some internal or obsolete options to make the list less imposing. | |
1417 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1418 | cat <<_ACEOF | |
1419 | \`configure' configures this package to adapt to many kinds of systems. | |
1420 | ||
1421 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1422 | ||
1423 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1424 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1425 | ||
1426 | Defaults for the options are specified in brackets. | |
1427 | ||
1428 | Configuration: | |
1429 | -h, --help display this help and exit | |
1430 | --help=short display options specific to this package | |
1431 | --help=recursive display the short help of all the included packages | |
1432 | -V, --version display version information and exit | |
1433 | -q, --quiet, --silent do not print \`checking...' messages | |
1434 | --cache-file=FILE cache test results in FILE [disabled] | |
1435 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1436 | -n, --no-create do not create output files | |
1437 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1438 | ||
b0cacab0 TT |
1439 | Installation directories: |
1440 | --prefix=PREFIX install architecture-independent files in PREFIX | |
39fd3d4f | 1441 | [$ac_default_prefix] |
b0cacab0 | 1442 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
39fd3d4f | 1443 | [PREFIX] |
b0cacab0 TT |
1444 | |
1445 | By default, \`make install' will install all the files in | |
1446 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1447 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1448 | for instance \`--prefix=\$HOME'. | |
1449 | ||
1450 | For better control, use the options below. | |
1451 | ||
1452 | Fine tuning of the installation directories: | |
39fd3d4f SJR |
1453 | --bindir=DIR user executables [EPREFIX/bin] |
1454 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1455 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1456 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1457 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1458 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1459 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1460 | --includedir=DIR C header files [PREFIX/include] | |
1461 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1462 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1463 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1464 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1465 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1466 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1467 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1468 | --htmldir=DIR html documentation [DOCDIR] | |
1469 | --dvidir=DIR dvi documentation [DOCDIR] | |
1470 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1471 | --psdir=DIR ps documentation [DOCDIR] | |
b0cacab0 TT |
1472 | _ACEOF |
1473 | ||
1474 | cat <<\_ACEOF | |
1475 | ||
1476 | System types: | |
1477 | --build=BUILD configure for building on BUILD [guessed] | |
1478 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1479 | _ACEOF | |
1480 | fi | |
1481 | ||
1482 | if test -n "$ac_init_help"; then | |
1483 | ||
1484 | cat <<\_ACEOF | |
1485 | ||
1486 | Optional Features: | |
39fd3d4f | 1487 | --disable-option-checking ignore unrecognized --enable/--with options |
b0cacab0 TT |
1488 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1489 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
98919bdb | 1490 | --enable-maintainer-mode enable makefile rules useful for maintainers |
c13351f6 | 1491 | --enable-verbose-makecmds enable verbose make command output |
b0cacab0 TT |
1492 | --enable-compression enable EXPERIMENTAL compression support |
1493 | --enable-htree enable EXPERIMENTAL htree directory support | |
b0cacab0 TT |
1494 | --enable-elf-shlibs select ELF shared libraries |
1495 | --enable-bsd-shlibs select BSD shared libraries | |
1496 | --enable-profile build profiling libraries | |
1497 | --enable-checker build checker libraries | |
1498 | --enable-jbd-debug enable journal debugging | |
1499 | --enable-blkid-debug enable blkid debugging | |
af773654 | 1500 | --disable-testio-debug disable the use of the test I/O manager for debugging |
39fd3d4f | 1501 | --disable-libuuid do not build private uuid library |
14b596d4 | 1502 | --disable-libblkid do not build private blkid library |
b0cacab0 TT |
1503 | --disable-debugfs disable support of debugfs program |
1504 | --disable-imager disable support of e2image program | |
1505 | --disable-resizer disable support of e2resize program | |
b0cacab0 TT |
1506 | --enable-fsck build fsck wrapper program |
1507 | --enable-e2initrd-helper build e2initrd-helper program | |
3249394d | 1508 | --disable-tls disable use of thread local support |
5610f992 | 1509 | --disable-uuidd disable building the uuid daemon |
b0cacab0 TT |
1510 | --disable-nls do not use Native Language Support |
1511 | --disable-rpath do not hardcode runtime library paths | |
1512 | ||
1513 | Optional Packages: | |
1514 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1515 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
3249394d | 1516 | --with-diet-libc use diet libc |
b0cacab0 TT |
1517 | --with-cc=COMPILER select compiler to use |
1518 | --with-linker=LINKER select linker to use | |
1519 | --with-ccopts=CCOPTS select compiler command line options | |
1520 | --with-ldopts=LDOPTS select linker command line options | |
1521 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root | |
1522 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
1523 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1524 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1525 | --with-included-gettext use the GNU gettext library included here | |
1526 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1527 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
1528 | ||
1529 | Some influential environment variables: | |
1530 | CC C compiler command | |
1531 | CFLAGS C compiler flags | |
1532 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1533 | nonstandard directory <lib dir> | |
29a5deed | 1534 | LIBS libraries to pass to the linker, e.g. -l<library> |
e1052144 TT |
1535 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1536 | you have headers in a nonstandard directory <include dir> | |
b0cacab0 | 1537 | CPP C preprocessor |
14b596d4 | 1538 | PKG_CONFIG path to pkg-config utility |
b0cacab0 TT |
1539 | |
1540 | Use these variables to override the choices made by `configure' or to help | |
1541 | it to find libraries and programs with nonstandard names/locations. | |
1542 | ||
1543 | _ACEOF | |
e1052144 | 1544 | ac_status=$? |
b0cacab0 TT |
1545 | fi |
1546 | ||
1547 | if test "$ac_init_help" = "recursive"; then | |
1548 | # If there are subdirs, report their specific --help. | |
b0cacab0 | 1549 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
39fd3d4f SJR |
1550 | test -d "$ac_dir" || |
1551 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1552 | continue | |
b0cacab0 TT |
1553 | ac_builddir=. |
1554 | ||
e1052144 TT |
1555 | case "$ac_dir" in |
1556 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1557 | *) | |
39fd3d4f | 1558 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
e1052144 | 1559 | # A ".." for each directory in $ac_dir_suffix. |
39fd3d4f | 1560 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
e1052144 TT |
1561 | case $ac_top_builddir_sub in |
1562 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1563 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1564 | esac ;; | |
1565 | esac | |
1566 | ac_abs_top_builddir=$ac_pwd | |
1567 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1568 | # for backward compatibility: | |
1569 | ac_top_builddir=$ac_top_build_prefix | |
b0cacab0 TT |
1570 | |
1571 | case $srcdir in | |
e1052144 | 1572 | .) # We are building in place. |
b0cacab0 | 1573 | ac_srcdir=. |
e1052144 TT |
1574 | ac_top_srcdir=$ac_top_builddir_sub |
1575 | ac_abs_top_srcdir=$ac_pwd ;; | |
1576 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b0cacab0 | 1577 | ac_srcdir=$srcdir$ac_dir_suffix; |
e1052144 TT |
1578 | ac_top_srcdir=$srcdir |
1579 | ac_abs_top_srcdir=$srcdir ;; | |
1580 | *) # Relative name. | |
1581 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1582 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1583 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b0cacab0 | 1584 | esac |
e1052144 TT |
1585 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1586 | ||
1587 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1588 | # Check for guested configure. | |
1589 | if test -f "$ac_srcdir/configure.gnu"; then | |
1590 | echo && | |
1591 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1592 | elif test -f "$ac_srcdir/configure"; then | |
1593 | echo && | |
1594 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b0cacab0 | 1595 | else |
39fd3d4f | 1596 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
e1052144 TT |
1597 | fi || ac_status=$? |
1598 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b0cacab0 TT |
1599 | done |
1600 | fi | |
1601 | ||
e1052144 | 1602 | test -n "$ac_init_help" && exit $ac_status |
b0cacab0 TT |
1603 | if $ac_init_version; then |
1604 | cat <<\_ACEOF | |
e1052144 | 1605 | configure |
39fd3d4f | 1606 | generated by GNU Autoconf 2.63 |
b0cacab0 | 1607 | |
e1052144 | 1608 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
39fd3d4f | 1609 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
b0cacab0 TT |
1610 | This configure script is free software; the Free Software Foundation |
1611 | gives unlimited permission to copy, distribute and modify it. | |
1612 | _ACEOF | |
e1052144 | 1613 | exit |
b0cacab0 | 1614 | fi |
e1052144 | 1615 | cat >config.log <<_ACEOF |
b0cacab0 TT |
1616 | This file contains any messages produced by compilers while |
1617 | running configure, to aid debugging if configure makes a mistake. | |
1618 | ||
1619 | It was created by $as_me, which was | |
39fd3d4f | 1620 | generated by GNU Autoconf 2.63. Invocation command line was |
b0cacab0 TT |
1621 | |
1622 | $ $0 $@ | |
1623 | ||
1624 | _ACEOF | |
e1052144 | 1625 | exec 5>>config.log |
b0cacab0 TT |
1626 | { |
1627 | cat <<_ASUNAME | |
1628 | ## --------- ## | |
1629 | ## Platform. ## | |
1630 | ## --------- ## | |
1631 | ||
1632 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1633 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1634 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1635 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1636 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1637 | ||
1638 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1639 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1640 | ||
1641 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1642 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1643 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
e1052144 | 1644 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b0cacab0 TT |
1645 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1646 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1647 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1648 | ||
1649 | _ASUNAME | |
1650 | ||
1651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1652 | for as_dir in $PATH | |
1653 | do | |
1654 | IFS=$as_save_IFS | |
1655 | test -z "$as_dir" && as_dir=. | |
39fd3d4f | 1656 | $as_echo "PATH: $as_dir" |
b0cacab0 | 1657 | done |
e1052144 | 1658 | IFS=$as_save_IFS |
50e1e10f | 1659 | |
b0cacab0 TT |
1660 | } >&5 |
1661 | ||
1662 | cat >&5 <<_ACEOF | |
1663 | ||
1664 | ||
1665 | ## ----------- ## | |
1666 | ## Core tests. ## | |
1667 | ## ----------- ## | |
1668 | ||
1669 | _ACEOF | |
1670 | ||
1671 | ||
1672 | # Keep a trace of the command line. | |
1673 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1674 | # Strip out --silent because we don't want to record it for future runs. | |
1675 | # Also quote any args containing shell meta-characters. | |
1676 | # Make two passes to allow for proper duplicate-argument suppression. | |
1677 | ac_configure_args= | |
1678 | ac_configure_args0= | |
1679 | ac_configure_args1= | |
b0cacab0 TT |
1680 | ac_must_keep_next=false |
1681 | for ac_pass in 1 2 | |
1682 | do | |
1683 | for ac_arg | |
1684 | do | |
1685 | case $ac_arg in | |
1686 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1687 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1688 | | -silent | --silent | --silen | --sile | --sil) | |
1689 | continue ;; | |
e1052144 | 1690 | *\'*) |
39fd3d4f | 1691 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
b0cacab0 TT |
1692 | esac |
1693 | case $ac_pass in | |
1694 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1695 | 2) | |
1696 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1697 | if test $ac_must_keep_next = true; then | |
1698 | ac_must_keep_next=false # Got value, back to normal. | |
1699 | else | |
1700 | case $ac_arg in | |
1701 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1702 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1703 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1704 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1705 | case "$ac_configure_args0 " in | |
1706 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1707 | esac | |
1708 | ;; | |
1709 | -* ) ac_must_keep_next=true ;; | |
1710 | esac | |
1711 | fi | |
e1052144 | 1712 | ac_configure_args="$ac_configure_args '$ac_arg'" |
b0cacab0 TT |
1713 | ;; |
1714 | esac | |
1715 | done | |
1716 | done | |
1717 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1718 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1719 | ||
1720 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1721 | # config.log. We remove comments because anyway the quotes in there | |
1722 | # would cause problems or look ugly. | |
e1052144 TT |
1723 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1724 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b0cacab0 TT |
1725 | trap 'exit_status=$? |
1726 | # Save into config.log some information that might help in debugging. | |
1727 | { | |
1728 | echo | |
1729 | ||
1730 | cat <<\_ASBOX | |
1731 | ## ---------------- ## | |
1732 | ## Cache variables. ## | |
1733 | ## ---------------- ## | |
1734 | _ASBOX | |
1735 | echo | |
1736 | # The following way of writing the cache mishandles newlines in values, | |
e1052144 TT |
1737 | ( |
1738 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1739 | eval ac_val=\$$ac_var | |
1740 | case $ac_val in #( | |
1741 | *${as_nl}*) | |
1742 | case $ac_var in #( | |
39fd3d4f SJR |
1743 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1744 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
e1052144 TT |
1745 | esac |
1746 | case $ac_var in #( | |
1747 | _ | IFS | as_nl) ;; #( | |
39fd3d4f | 1748 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
e1052144 TT |
1749 | *) $as_unset $ac_var ;; |
1750 | esac ;; | |
1751 | esac | |
1752 | done | |
b0cacab0 | 1753 | (set) 2>&1 | |
e1052144 TT |
1754 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1755 | *${as_nl}ac_space=\ *) | |
b0cacab0 | 1756 | sed -n \ |
e1052144 TT |
1757 | "s/'\''/'\''\\\\'\'''\''/g; |
1758 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1759 | ;; #( | |
b0cacab0 | 1760 | *) |
e1052144 | 1761 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b0cacab0 | 1762 | ;; |
e1052144 TT |
1763 | esac | |
1764 | sort | |
1765 | ) | |
b0cacab0 TT |
1766 | echo |
1767 | ||
1768 | cat <<\_ASBOX | |
1769 | ## ----------------- ## | |
1770 | ## Output variables. ## | |
1771 | ## ----------------- ## | |
1772 | _ASBOX | |
1773 | echo | |
1774 | for ac_var in $ac_subst_vars | |
1775 | do | |
e1052144 TT |
1776 | eval ac_val=\$$ac_var |
1777 | case $ac_val in | |
39fd3d4f | 1778 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
e1052144 | 1779 | esac |
39fd3d4f | 1780 | $as_echo "$ac_var='\''$ac_val'\''" |
b0cacab0 TT |
1781 | done | sort |
1782 | echo | |
1783 | ||
1784 | if test -n "$ac_subst_files"; then | |
1785 | cat <<\_ASBOX | |
e1052144 TT |
1786 | ## ------------------- ## |
1787 | ## File substitutions. ## | |
1788 | ## ------------------- ## | |
b0cacab0 TT |
1789 | _ASBOX |
1790 | echo | |
1791 | for ac_var in $ac_subst_files | |
1792 | do | |
e1052144 TT |
1793 | eval ac_val=\$$ac_var |
1794 | case $ac_val in | |
39fd3d4f | 1795 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
e1052144 | 1796 | esac |
39fd3d4f | 1797 | $as_echo "$ac_var='\''$ac_val'\''" |
b0cacab0 TT |
1798 | done | sort |
1799 | echo | |
1800 | fi | |
1801 | ||
1802 | if test -s confdefs.h; then | |
1803 | cat <<\_ASBOX | |
1804 | ## ----------- ## | |
1805 | ## confdefs.h. ## | |
1806 | ## ----------- ## | |
1807 | _ASBOX | |
1808 | echo | |
e1052144 | 1809 | cat confdefs.h |
b0cacab0 TT |
1810 | echo |
1811 | fi | |
1812 | test "$ac_signal" != 0 && | |
39fd3d4f SJR |
1813 | $as_echo "$as_me: caught signal $ac_signal" |
1814 | $as_echo "$as_me: exit $exit_status" | |
b0cacab0 | 1815 | } >&5 |
e1052144 TT |
1816 | rm -f core *.core core.conftest.* && |
1817 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b0cacab0 | 1818 | exit $exit_status |
e1052144 | 1819 | ' 0 |
b0cacab0 TT |
1820 | for ac_signal in 1 2 13 15; do |
1821 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1822 | done | |
1823 | ac_signal=0 | |
1824 | ||
1825 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
e1052144 | 1826 | rm -f -r conftest* confdefs.h |
b0cacab0 TT |
1827 | |
1828 | # Predefined preprocessor variables. | |
1829 | ||
1830 | cat >>confdefs.h <<_ACEOF | |
1831 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1832 | _ACEOF | |
1833 | ||
1834 | ||
1835 | cat >>confdefs.h <<_ACEOF | |
1836 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1837 | _ACEOF | |
1838 | ||
1839 | ||
1840 | cat >>confdefs.h <<_ACEOF | |
1841 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1842 | _ACEOF | |
1843 | ||
1844 | ||
1845 | cat >>confdefs.h <<_ACEOF | |
1846 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1847 | _ACEOF | |
1848 | ||
1849 | ||
1850 | cat >>confdefs.h <<_ACEOF | |
1851 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1852 | _ACEOF | |
1853 | ||
1854 | ||
1855 | # Let the site file select an alternate cache file if it wants to. | |
39fd3d4f SJR |
1856 | # Prefer an explicitly selected file to automatically selected ones. |
1857 | ac_site_file1=NONE | |
1858 | ac_site_file2=NONE | |
e1052144 | 1859 | if test -n "$CONFIG_SITE"; then |
39fd3d4f | 1860 | ac_site_file1=$CONFIG_SITE |
e1052144 | 1861 | elif test "x$prefix" != xNONE; then |
39fd3d4f SJR |
1862 | ac_site_file1=$prefix/share/config.site |
1863 | ac_site_file2=$prefix/etc/config.site | |
e1052144 | 1864 | else |
39fd3d4f SJR |
1865 | ac_site_file1=$ac_default_prefix/share/config.site |
1866 | ac_site_file2=$ac_default_prefix/etc/config.site | |
50e1e10f | 1867 | fi |
39fd3d4f | 1868 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
e1052144 | 1869 | do |
39fd3d4f | 1870 | test "x$ac_site_file" = xNONE && continue |
50e1e10f | 1871 | if test -r "$ac_site_file"; then |
39fd3d4f SJR |
1872 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1873 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b0cacab0 | 1874 | sed 's/^/| /' "$ac_site_file" >&5 |
50e1e10f TT |
1875 | . "$ac_site_file" |
1876 | fi | |
1877 | done | |
1878 | ||
1879 | if test -r "$cache_file"; then | |
b0cacab0 TT |
1880 | # Some versions of bash will fail to source /dev/null (special |
1881 | # files actually), so we avoid doing that. | |
1882 | if test -f "$cache_file"; then | |
39fd3d4f SJR |
1883 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1884 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b0cacab0 | 1885 | case $cache_file in |
e1052144 TT |
1886 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1887 | *) . "./$cache_file";; | |
b0cacab0 TT |
1888 | esac |
1889 | fi | |
50e1e10f | 1890 | else |
39fd3d4f SJR |
1891 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1892 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b0cacab0 TT |
1893 | >$cache_file |
1894 | fi | |
1895 | ||
1896 | # Check that the precious variables saved in the cache have kept the same | |
1897 | # value. | |
1898 | ac_cache_corrupted=false | |
e1052144 | 1899 | for ac_var in $ac_precious_vars; do |
b0cacab0 TT |
1900 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1901 | eval ac_new_set=\$ac_env_${ac_var}_set | |
e1052144 TT |
1902 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1903 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b0cacab0 TT |
1904 | case $ac_old_set,$ac_new_set in |
1905 | set,) | |
39fd3d4f SJR |
1906 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1907 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b0cacab0 TT |
1908 | ac_cache_corrupted=: ;; |
1909 | ,set) | |
39fd3d4f SJR |
1910 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1911 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b0cacab0 TT |
1912 | ac_cache_corrupted=: ;; |
1913 | ,);; | |
1914 | *) | |
1915 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
39fd3d4f SJR |
1916 | # differences in whitespace do not lead to failure. |
1917 | ac_old_val_w=`echo x $ac_old_val` | |
1918 | ac_new_val_w=`echo x $ac_new_val` | |
1919 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1920 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1921 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1922 | ac_cache_corrupted=: | |
1923 | else | |
1924 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1925 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1926 | eval $ac_var=\$ac_old_val | |
1927 | fi | |
1928 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1929 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1930 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1931 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b0cacab0 TT |
1932 | fi;; |
1933 | esac | |
1934 | # Pass precious variables to config.status. | |
1935 | if test "$ac_new_set" = set; then | |
1936 | case $ac_new_val in | |
39fd3d4f | 1937 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b0cacab0 TT |
1938 | *) ac_arg=$ac_var=$ac_new_val ;; |
1939 | esac | |
1940 | case " $ac_configure_args " in | |
1941 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1942 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1943 | esac | |
1944 | fi | |
1945 | done | |
1946 | if $ac_cache_corrupted; then | |
39fd3d4f SJR |
1947 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1948 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1949 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1950 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1951 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1952 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
b0cacab0 | 1953 | { (exit 1); exit 1; }; } |
50e1e10f TT |
1954 | fi |
1955 | ||
b0cacab0 TT |
1956 | |
1957 | ||
1958 | ||
a04eba3f | 1959 | |
07a0db15 | 1960 | |
74becf3c | 1961 | |
93636bde | 1962 | |
93636bde TT |
1963 | |
1964 | ||
1965 | ||
1966 | ||
b0cacab0 TT |
1967 | |
1968 | ||
1969 | ||
1970 | ||
1971 | ||
e1052144 TT |
1972 | ac_ext=c |
1973 | ac_cpp='$CPP $CPPFLAGS' | |
1974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1975 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1976 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b0cacab0 TT |
1977 | |
1978 | ||
1979 | ||
1980 | ac_aux_dir= | |
e1052144 TT |
1981 | for ac_dir in config "$srcdir"/config; do |
1982 | if test -f "$ac_dir/install-sh"; then | |
b0cacab0 TT |
1983 | ac_aux_dir=$ac_dir |
1984 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1985 | break | |
e1052144 | 1986 | elif test -f "$ac_dir/install.sh"; then |
b0cacab0 TT |
1987 | ac_aux_dir=$ac_dir |
1988 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1989 | break | |
e1052144 | 1990 | elif test -f "$ac_dir/shtool"; then |
b0cacab0 TT |
1991 | ac_aux_dir=$ac_dir |
1992 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1993 | break | |
1994 | fi | |
1995 | done | |
1996 | if test -z "$ac_aux_dir"; then | |
39fd3d4f SJR |
1997 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
1998 | $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} | |
b0cacab0 TT |
1999 | { (exit 1); exit 1; }; } |
2000 | fi | |
e1052144 TT |
2001 | |
2002 | # These three variables are undocumented and unsupported, | |
2003 | # and are intended to be withdrawn in a future Autoconf release. | |
2004 | # They can cause serious problems if a builder's source tree is in a directory | |
2005 | # whose full name contains unusual characters. | |
2006 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2007 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2008 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2009 | ||
b0cacab0 | 2010 | |
93636bde TT |
2011 | MCONFIG=./MCONFIG |
2012 | ||
2013 | BINARY_TYPE=bin | |
2014 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ | |
2015 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` | |
2016 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ | |
2017 | | tr \" " "` | |
2018 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` | |
2019 | MONTH=`echo $DATE | awk -F- '{print $2}'` | |
2020 | YEAR=`echo $DATE | awk -F- '{print $3}'` | |
2021 | ||
2022 | if expr $YEAR ">" 1900 > /dev/null ; then | |
2023 | E2FSPROGS_YEAR=$YEAR | |
2024 | elif expr $YEAR ">" 90 >/dev/null ; then | |
2025 | E2FSPROGS_YEAR=19$YEAR | |
2026 | else | |
2027 | E2FSPROGS_YEAR=20$YEAR | |
2028 | fi | |
2029 | ||
2030 | case $MONTH in | |
927566a3 AD |
2031 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
2032 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; | |
2033 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; | |
2034 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; | |
2035 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; | |
2036 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; | |
2037 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; | |
2038 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; | |
2039 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; | |
2040 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; | |
2041 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; | |
2042 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; | |
39fd3d4f SJR |
2043 | *) { $as_echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5 |
2044 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; | |
74becf3c TT |
2045 | esac |
2046 | ||
927566a3 AD |
2047 | base_ver=`echo $E2FSPROGS_VERSION | \ |
2048 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` | |
927566a3 AD |
2049 | |
2050 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} | |
2051 | ||
2052 | case $E2FSPROGS_VERSION in | |
2053 | *-WIP|pre-*) | |
ab06396f | 2054 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
927566a3 AD |
2055 | ;; |
2056 | *) | |
2057 | E2FSPROGS_PKGVER="$base_ver" | |
2058 | ;; | |
2059 | esac | |
2060 | ||
2061 | unset DATE MONTH YEAR base_ver pre_vers date_spec | |
39fd3d4f SJR |
2062 | { $as_echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 |
2063 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } | |
2064 | { $as_echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 | |
2065 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } | |
74becf3c | 2066 | |
93636bde TT |
2067 | |
2068 | ||
2069 | ||
927566a3 | 2070 | |
fc6d9d51 | 2071 | # Make sure we can run config.sub. |
e1052144 | 2072 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
39fd3d4f SJR |
2073 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2074 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
b0cacab0 TT |
2075 | { (exit 1); exit 1; }; } |
2076 | ||
39fd3d4f SJR |
2077 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2078 | $as_echo_n "checking build system type... " >&6; } | |
b0cacab0 | 2079 | if test "${ac_cv_build+set}" = set; then |
39fd3d4f | 2080 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 2081 | else |
e1052144 TT |
2082 | ac_build_alias=$build_alias |
2083 | test "x$ac_build_alias" = x && | |
2084 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2085 | test "x$ac_build_alias" = x && | |
39fd3d4f SJR |
2086 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2087 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
b0cacab0 | 2088 | { (exit 1); exit 1; }; } |
e1052144 | 2089 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
39fd3d4f SJR |
2090 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2091 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
b0cacab0 TT |
2092 | { (exit 1); exit 1; }; } |
2093 | ||
2094 | fi | |
39fd3d4f SJR |
2095 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2096 | $as_echo "$ac_cv_build" >&6; } | |
e1052144 TT |
2097 | case $ac_cv_build in |
2098 | *-*-*) ;; | |
39fd3d4f SJR |
2099 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2100 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
e1052144 TT |
2101 | { (exit 1); exit 1; }; };; |
2102 | esac | |
b0cacab0 | 2103 | build=$ac_cv_build |
e1052144 TT |
2104 | ac_save_IFS=$IFS; IFS='-' |
2105 | set x $ac_cv_build | |
2106 | shift | |
2107 | build_cpu=$1 | |
2108 | build_vendor=$2 | |
2109 | shift; shift | |
2110 | # Remember, the first character of IFS is used to create $*, | |
2111 | # except with old shells: | |
2112 | build_os=$* | |
2113 | IFS=$ac_save_IFS | |
2114 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2115 | ||
2116 | ||
39fd3d4f SJR |
2117 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2118 | $as_echo_n "checking host system type... " >&6; } | |
b0cacab0 | 2119 | if test "${ac_cv_host+set}" = set; then |
39fd3d4f | 2120 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 2121 | else |
e1052144 TT |
2122 | if test "x$host_alias" = x; then |
2123 | ac_cv_host=$ac_cv_build | |
2124 | else | |
2125 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
39fd3d4f SJR |
2126 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2127 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
b0cacab0 | 2128 | { (exit 1); exit 1; }; } |
e1052144 | 2129 | fi |
b0cacab0 TT |
2130 | |
2131 | fi | |
39fd3d4f SJR |
2132 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2133 | $as_echo "$ac_cv_host" >&6; } | |
e1052144 TT |
2134 | case $ac_cv_host in |
2135 | *-*-*) ;; | |
39fd3d4f SJR |
2136 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2137 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
e1052144 TT |
2138 | { (exit 1); exit 1; }; };; |
2139 | esac | |
b0cacab0 | 2140 | host=$ac_cv_host |
e1052144 TT |
2141 | ac_save_IFS=$IFS; IFS='-' |
2142 | set x $ac_cv_host | |
2143 | shift | |
2144 | host_cpu=$1 | |
2145 | host_vendor=$2 | |
2146 | shift; shift | |
2147 | # Remember, the first character of IFS is used to create $*, | |
2148 | # except with old shells: | |
2149 | host_os=$* | |
2150 | IFS=$ac_save_IFS | |
2151 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
93636bde | 2152 | |
93636bde | 2153 | |
eafba6c3 | 2154 | WITH_DIET_LIBC= |
07a0db15 | 2155 | |
e1052144 | 2156 | # Check whether --with-diet-libc was given. |
d21ae6c5 | 2157 | if test "${with_diet_libc+set}" = set; then |
e1052144 | 2158 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
eafba6c3 | 2159 | WITH_DIET_LIBC=yes |
39fd3d4f SJR |
2160 | { $as_echo "$as_me:$LINENO: result: CC=$CC" >&5 |
2161 | $as_echo "CC=$CC" >&6; } | |
e1052144 TT |
2162 | fi |
2163 | ||
2164 | # Check whether --with-cc was given. | |
21c84b71 | 2165 | if test "${with_cc+set}" = set; then |
39fd3d4f SJR |
2166 | withval=$with_cc; { $as_echo "$as_me:$LINENO: result: CC=$withval" >&5 |
2167 | $as_echo "CC=$withval" >&6; } | |
74becf3c TT |
2168 | CC=$withval |
2169 | else | |
2170 | if test -z "$CC" ; then CC=cc; fi | |
39fd3d4f SJR |
2171 | { $as_echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
2172 | $as_echo "CC defaults to $CC" >&6; } | |
e1052144 TT |
2173 | fi |
2174 | export CC | |
b0cacab0 TT |
2175 | |
2176 | ac_ext=c | |
2177 | ac_cpp='$CPP $CPPFLAGS' | |
2178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2181 | if test -n "$ac_tool_prefix"; then | |
2182 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2183 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
39fd3d4f SJR |
2184 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2185 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 2186 | if test "${ac_cv_prog_CC+set}" = set; then |
39fd3d4f | 2187 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
2188 | else |
2189 | if test -n "$CC"; then | |
2190 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2191 | else | |
2192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2193 | for as_dir in $PATH | |
2194 | do | |
2195 | IFS=$as_save_IFS | |
2196 | test -z "$as_dir" && as_dir=. | |
2197 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 2198 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 2199 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
39fd3d4f | 2200 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
2201 | break 2 |
2202 | fi | |
2203 | done | |
2204 | done | |
e1052144 | 2205 | IFS=$as_save_IFS |
b0cacab0 TT |
2206 | |
2207 | fi | |
2208 | fi | |
2209 | CC=$ac_cv_prog_CC | |
2210 | if test -n "$CC"; then | |
39fd3d4f SJR |
2211 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2212 | $as_echo "$CC" >&6; } | |
b0cacab0 | 2213 | else |
39fd3d4f SJR |
2214 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2215 | $as_echo "no" >&6; } | |
74becf3c | 2216 | fi |
74becf3c | 2217 | |
e1052144 | 2218 | |
b0cacab0 TT |
2219 | fi |
2220 | if test -z "$ac_cv_prog_CC"; then | |
2221 | ac_ct_CC=$CC | |
2222 | # Extract the first word of "gcc", so it can be a program name with args. | |
73ae2d4a | 2223 | set dummy gcc; ac_word=$2 |
39fd3d4f SJR |
2224 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2225 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 2226 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
39fd3d4f | 2227 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
2228 | else |
2229 | if test -n "$ac_ct_CC"; then | |
2230 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2231 | else | |
2232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2233 | for as_dir in $PATH | |
2234 | do | |
2235 | IFS=$as_save_IFS | |
2236 | test -z "$as_dir" && as_dir=. | |
2237 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 2238 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 2239 | ac_cv_prog_ac_ct_CC="gcc" |
39fd3d4f | 2240 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
2241 | break 2 |
2242 | fi | |
2243 | done | |
2244 | done | |
e1052144 | 2245 | IFS=$as_save_IFS |
b0cacab0 TT |
2246 | |
2247 | fi | |
2248 | fi | |
2249 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2250 | if test -n "$ac_ct_CC"; then | |
39fd3d4f SJR |
2251 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2252 | $as_echo "$ac_ct_CC" >&6; } | |
b0cacab0 | 2253 | else |
39fd3d4f SJR |
2254 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2255 | $as_echo "no" >&6; } | |
b0cacab0 TT |
2256 | fi |
2257 | ||
e1052144 TT |
2258 | if test "x$ac_ct_CC" = x; then |
2259 | CC="" | |
2260 | else | |
2261 | case $cross_compiling:$ac_tool_warned in | |
2262 | yes:) | |
39fd3d4f SJR |
2263 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2264 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
e1052144 TT |
2265 | ac_tool_warned=yes ;; |
2266 | esac | |
2267 | CC=$ac_ct_CC | |
2268 | fi | |
b0cacab0 TT |
2269 | else |
2270 | CC="$ac_cv_prog_CC" | |
2271 | fi | |
2272 | ||
2273 | if test -z "$CC"; then | |
e1052144 TT |
2274 | if test -n "$ac_tool_prefix"; then |
2275 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b0cacab0 | 2276 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
39fd3d4f SJR |
2277 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2278 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 2279 | if test "${ac_cv_prog_CC+set}" = set; then |
39fd3d4f | 2280 | $as_echo_n "(cached) " >&6 |
73ae2d4a TT |
2281 | else |
2282 | if test -n "$CC"; then | |
2283 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2284 | else | |
b0cacab0 TT |
2285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2286 | for as_dir in $PATH | |
2287 | do | |
2288 | IFS=$as_save_IFS | |
2289 | test -z "$as_dir" && as_dir=. | |
2290 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 2291 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 2292 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
39fd3d4f | 2293 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
2294 | break 2 |
2295 | fi | |
2296 | done | |
2297 | done | |
e1052144 | 2298 | IFS=$as_save_IFS |
b0cacab0 | 2299 | |
73ae2d4a TT |
2300 | fi |
2301 | fi | |
b0cacab0 | 2302 | CC=$ac_cv_prog_CC |
73ae2d4a | 2303 | if test -n "$CC"; then |
39fd3d4f SJR |
2304 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2305 | $as_echo "$CC" >&6; } | |
b0cacab0 | 2306 | else |
39fd3d4f SJR |
2307 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2308 | $as_echo "no" >&6; } | |
b0cacab0 TT |
2309 | fi |
2310 | ||
73ae2d4a | 2311 | |
e1052144 | 2312 | fi |
b0cacab0 | 2313 | fi |
73ae2d4a TT |
2314 | if test -z "$CC"; then |
2315 | # Extract the first word of "cc", so it can be a program name with args. | |
2316 | set dummy cc; ac_word=$2 | |
39fd3d4f SJR |
2317 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2318 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 2319 | if test "${ac_cv_prog_CC+set}" = set; then |
39fd3d4f | 2320 | $as_echo_n "(cached) " >&6 |
73ae2d4a TT |
2321 | else |
2322 | if test -n "$CC"; then | |
2323 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2324 | else | |
73ae2d4a | 2325 | ac_prog_rejected=no |
b0cacab0 TT |
2326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2327 | for as_dir in $PATH | |
2328 | do | |
2329 | IFS=$as_save_IFS | |
2330 | test -z "$as_dir" && as_dir=. | |
2331 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 2332 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
2333 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2334 | ac_prog_rejected=yes | |
2335 | continue | |
2336 | fi | |
2337 | ac_cv_prog_CC="cc" | |
39fd3d4f | 2338 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
2339 | break 2 |
2340 | fi | |
2341 | done | |
2342 | done | |
e1052144 | 2343 | IFS=$as_save_IFS |
b0cacab0 | 2344 | |
73ae2d4a TT |
2345 | if test $ac_prog_rejected = yes; then |
2346 | # We found a bogon in the path, so make sure we never use it. | |
2347 | set dummy $ac_cv_prog_CC | |
2348 | shift | |
b0cacab0 | 2349 | if test $# != 0; then |
73ae2d4a TT |
2350 | # We chose a different compiler from the bogus one. |
2351 | # However, it has the same basename, so the bogon will be chosen | |
2352 | # first if we set CC to just the basename; use the full file name. | |
2353 | shift | |
b0cacab0 | 2354 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
73ae2d4a TT |
2355 | fi |
2356 | fi | |
2357 | fi | |
2358 | fi | |
b0cacab0 | 2359 | CC=$ac_cv_prog_CC |
73ae2d4a | 2360 | if test -n "$CC"; then |
39fd3d4f SJR |
2361 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2362 | $as_echo "$CC" >&6; } | |
73ae2d4a | 2363 | else |
39fd3d4f SJR |
2364 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2365 | $as_echo "no" >&6; } | |
73ae2d4a TT |
2366 | fi |
2367 | ||
e1052144 | 2368 | |
b0cacab0 TT |
2369 | fi |
2370 | if test -z "$CC"; then | |
2371 | if test -n "$ac_tool_prefix"; then | |
e1052144 | 2372 | for ac_prog in cl.exe |
b0cacab0 TT |
2373 | do |
2374 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2375 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
39fd3d4f SJR |
2376 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2377 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 2378 | if test "${ac_cv_prog_CC+set}" = set; then |
39fd3d4f | 2379 | $as_echo_n "(cached) " >&6 |
73ae2d4a TT |
2380 | else |
2381 | if test -n "$CC"; then | |
2382 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2383 | else | |
b0cacab0 TT |
2384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2385 | for as_dir in $PATH | |
2386 | do | |
2387 | IFS=$as_save_IFS | |
2388 | test -z "$as_dir" && as_dir=. | |
2389 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 2390 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 2391 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
39fd3d4f | 2392 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
2393 | break 2 |
2394 | fi | |
2395 | done | |
2396 | done | |
e1052144 | 2397 | IFS=$as_save_IFS |
b0cacab0 | 2398 | |
73ae2d4a TT |
2399 | fi |
2400 | fi | |
b0cacab0 | 2401 | CC=$ac_cv_prog_CC |
73ae2d4a | 2402 | if test -n "$CC"; then |
39fd3d4f SJR |
2403 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2404 | $as_echo "$CC" >&6; } | |
73ae2d4a | 2405 | else |
39fd3d4f SJR |
2406 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2407 | $as_echo "no" >&6; } | |
73ae2d4a | 2408 | fi |
b0cacab0 | 2409 | |
e1052144 | 2410 | |
b0cacab0 TT |
2411 | test -n "$CC" && break |
2412 | done | |
2413 | fi | |
2414 | if test -z "$CC"; then | |
2415 | ac_ct_CC=$CC | |
e1052144 | 2416 | for ac_prog in cl.exe |
b0cacab0 TT |
2417 | do |
2418 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2419 | set dummy $ac_prog; ac_word=$2 | |
39fd3d4f SJR |
2420 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2421 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 2422 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
39fd3d4f | 2423 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
2424 | else |
2425 | if test -n "$ac_ct_CC"; then | |
2426 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2427 | else | |
2428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2429 | for as_dir in $PATH | |
2430 | do | |
2431 | IFS=$as_save_IFS | |
2432 | test -z "$as_dir" && as_dir=. | |
2433 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 2434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 2435 | ac_cv_prog_ac_ct_CC="$ac_prog" |
39fd3d4f | 2436 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 | 2437 | break 2 |
93636bde | 2438 | fi |
b0cacab0 TT |
2439 | done |
2440 | done | |
e1052144 | 2441 | IFS=$as_save_IFS |
b0cacab0 TT |
2442 | |
2443 | fi | |
2444 | fi | |
2445 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2446 | if test -n "$ac_ct_CC"; then | |
39fd3d4f SJR |
2447 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2448 | $as_echo "$ac_ct_CC" >&6; } | |
b0cacab0 | 2449 | else |
39fd3d4f SJR |
2450 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2451 | $as_echo "no" >&6; } | |
07a0db15 | 2452 | fi |
73ae2d4a | 2453 | |
e1052144 | 2454 | |
b0cacab0 TT |
2455 | test -n "$ac_ct_CC" && break |
2456 | done | |
73ae2d4a | 2457 | |
e1052144 TT |
2458 | if test "x$ac_ct_CC" = x; then |
2459 | CC="" | |
2460 | else | |
2461 | case $cross_compiling:$ac_tool_warned in | |
2462 | yes:) | |
39fd3d4f SJR |
2463 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2464 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
e1052144 TT |
2465 | ac_tool_warned=yes ;; |
2466 | esac | |
2467 | CC=$ac_ct_CC | |
2468 | fi | |
b0cacab0 TT |
2469 | fi |
2470 | ||
2471 | fi | |
2472 | ||
2473 | ||
39fd3d4f SJR |
2474 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2475 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2476 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
b0cacab0 | 2477 | See \`config.log' for more details." >&5 |
39fd3d4f | 2478 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
b0cacab0 | 2479 | See \`config.log' for more details." >&2;} |
39fd3d4f | 2480 | { (exit 1); exit 1; }; }; } |
b0cacab0 TT |
2481 | |
2482 | # Provide some information about the compiler. | |
39fd3d4f SJR |
2483 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2484 | set X $ac_compile | |
2485 | ac_compiler=$2 | |
e1052144 TT |
2486 | { (ac_try="$ac_compiler --version >&5" |
2487 | case "(($ac_try" in | |
2488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2489 | *) ac_try_echo=$ac_try;; | |
2490 | esac | |
39fd3d4f SJR |
2491 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2492 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 2493 | (eval "$ac_compiler --version >&5") 2>&5 |
b0cacab0 | 2494 | ac_status=$? |
39fd3d4f | 2495 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 2496 | (exit $ac_status); } |
e1052144 TT |
2497 | { (ac_try="$ac_compiler -v >&5" |
2498 | case "(($ac_try" in | |
2499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2500 | *) ac_try_echo=$ac_try;; | |
2501 | esac | |
39fd3d4f SJR |
2502 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2503 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 2504 | (eval "$ac_compiler -v >&5") 2>&5 |
b0cacab0 | 2505 | ac_status=$? |
39fd3d4f | 2506 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 2507 | (exit $ac_status); } |
e1052144 TT |
2508 | { (ac_try="$ac_compiler -V >&5" |
2509 | case "(($ac_try" in | |
2510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2511 | *) ac_try_echo=$ac_try;; | |
2512 | esac | |
39fd3d4f SJR |
2513 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2514 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 2515 | (eval "$ac_compiler -V >&5") 2>&5 |
b0cacab0 | 2516 | ac_status=$? |
39fd3d4f | 2517 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 TT |
2518 | (exit $ac_status); } |
2519 | ||
2520 | cat >conftest.$ac_ext <<_ACEOF | |
2521 | /* confdefs.h. */ | |
2522 | _ACEOF | |
2523 | cat confdefs.h >>conftest.$ac_ext | |
2524 | cat >>conftest.$ac_ext <<_ACEOF | |
2525 | /* end confdefs.h. */ | |
2526 | ||
2527 | int | |
2528 | main () | |
2529 | { | |
2530 | ||
2531 | ; | |
2532 | return 0; | |
2533 | } | |
2534 | _ACEOF | |
2535 | ac_clean_files_save=$ac_clean_files | |
39fd3d4f | 2536 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
b0cacab0 TT |
2537 | # Try to create an executable without -o first, disregard a.out. |
2538 | # It will help us diagnose broken compilers, and finding out an intuition | |
2539 | # of exeext. | |
39fd3d4f SJR |
2540 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2541 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2542 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2543 | ||
2544 | # The possible output files: | |
2545 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2546 | ||
e1052144 TT |
2547 | ac_rmfiles= |
2548 | for ac_file in $ac_files | |
2549 | do | |
2550 | case $ac_file in | |
39fd3d4f | 2551 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
e1052144 TT |
2552 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2553 | esac | |
2554 | done | |
2555 | rm -f $ac_rmfiles | |
2556 | ||
2557 | if { (ac_try="$ac_link_default" | |
2558 | case "(($ac_try" in | |
2559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2560 | *) ac_try_echo=$ac_try;; | |
2561 | esac | |
39fd3d4f SJR |
2562 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2563 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 2564 | (eval "$ac_link_default") 2>&5 |
b0cacab0 | 2565 | ac_status=$? |
39fd3d4f | 2566 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 2567 | (exit $ac_status); }; then |
e1052144 TT |
2568 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2569 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2570 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2571 | # so that the user can short-circuit this test for compilers unknown to | |
2572 | # Autoconf. | |
29a5deed | 2573 | for ac_file in $ac_files '' |
b0cacab0 TT |
2574 | do |
2575 | test -f "$ac_file" || continue | |
2576 | case $ac_file in | |
39fd3d4f | 2577 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b0cacab0 TT |
2578 | ;; |
2579 | [ab].out ) | |
2580 | # We found the default executable, but exeext='' is most | |
2581 | # certainly right. | |
2582 | break;; | |
2583 | *.* ) | |
e1052144 TT |
2584 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2585 | then :; else | |
2586 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2587 | fi | |
2588 | # We set ac_cv_exeext here because the later test for it is not | |
2589 | # safe: cross compilers may not add the suffix if given an `-o' | |
2590 | # argument, so we may need to know it at that point already. | |
2591 | # Even if this section looks crufty: it has the advantage of | |
2592 | # actually working. | |
b0cacab0 TT |
2593 | break;; |
2594 | * ) | |
2595 | break;; | |
2596 | esac | |
2597 | done | |
e1052144 TT |
2598 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2599 | ||
b0cacab0 | 2600 | else |
29a5deed TT |
2601 | ac_file='' |
2602 | fi | |
2603 | ||
39fd3d4f SJR |
2604 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2605 | $as_echo "$ac_file" >&6; } | |
29a5deed | 2606 | if test -z "$ac_file"; then |
39fd3d4f | 2607 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
2608 | sed 's/^/| /' conftest.$ac_ext >&5 |
2609 | ||
39fd3d4f SJR |
2610 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2611 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2612 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
b0cacab0 | 2613 | See \`config.log' for more details." >&5 |
39fd3d4f | 2614 | $as_echo "$as_me: error: C compiler cannot create executables |
b0cacab0 | 2615 | See \`config.log' for more details." >&2;} |
39fd3d4f | 2616 | { (exit 77); exit 77; }; }; } |
b0cacab0 TT |
2617 | fi |
2618 | ||
2619 | ac_exeext=$ac_cv_exeext | |
b0cacab0 | 2620 | |
e1052144 | 2621 | # Check that the compiler produces executables we can run. If not, either |
b0cacab0 | 2622 | # the compiler is broken, or we cross compile. |
39fd3d4f SJR |
2623 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2624 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
b0cacab0 TT |
2625 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2626 | # If not cross compiling, check that we can run a simple program. | |
2627 | if test "$cross_compiling" != yes; then | |
2628 | if { ac_try='./$ac_file' | |
e1052144 TT |
2629 | { (case "(($ac_try" in |
2630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2631 | *) ac_try_echo=$ac_try;; | |
2632 | esac | |
39fd3d4f SJR |
2633 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2634 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 2635 | (eval "$ac_try") 2>&5 |
b0cacab0 | 2636 | ac_status=$? |
39fd3d4f | 2637 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 TT |
2638 | (exit $ac_status); }; }; then |
2639 | cross_compiling=no | |
73ae2d4a | 2640 | else |
b0cacab0 TT |
2641 | if test "$cross_compiling" = maybe; then |
2642 | cross_compiling=yes | |
2643 | else | |
39fd3d4f SJR |
2644 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2645 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2646 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
b0cacab0 TT |
2647 | If you meant to cross compile, use \`--host'. |
2648 | See \`config.log' for more details." >&5 | |
39fd3d4f | 2649 | $as_echo "$as_me: error: cannot run C compiled programs. |
b0cacab0 TT |
2650 | If you meant to cross compile, use \`--host'. |
2651 | See \`config.log' for more details." >&2;} | |
39fd3d4f | 2652 | { (exit 1); exit 1; }; }; } |
b0cacab0 | 2653 | fi |
73ae2d4a | 2654 | fi |
b0cacab0 | 2655 | fi |
39fd3d4f SJR |
2656 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2657 | $as_echo "yes" >&6; } | |
b0cacab0 | 2658 | |
39fd3d4f | 2659 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b0cacab0 | 2660 | ac_clean_files=$ac_clean_files_save |
e1052144 | 2661 | # Check that the compiler produces executables we can run. If not, either |
b0cacab0 | 2662 | # the compiler is broken, or we cross compile. |
39fd3d4f SJR |
2663 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2664 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2665 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2666 | $as_echo "$cross_compiling" >&6; } | |
e1052144 | 2667 | |
39fd3d4f SJR |
2668 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2669 | $as_echo_n "checking for suffix of executables... " >&6; } | |
e1052144 TT |
2670 | if { (ac_try="$ac_link" |
2671 | case "(($ac_try" in | |
2672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2673 | *) ac_try_echo=$ac_try;; | |
2674 | esac | |
39fd3d4f SJR |
2675 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2676 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 2677 | (eval "$ac_link") 2>&5 |
b0cacab0 | 2678 | ac_status=$? |
39fd3d4f | 2679 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 TT |
2680 | (exit $ac_status); }; then |
2681 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2682 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2683 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2684 | # `rm'. | |
2685 | for ac_file in conftest.exe conftest conftest.*; do | |
2686 | test -f "$ac_file" || continue | |
2687 | case $ac_file in | |
39fd3d4f | 2688 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b0cacab0 | 2689 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b0cacab0 TT |
2690 | break;; |
2691 | * ) break;; | |
2692 | esac | |
2693 | done | |
73ae2d4a | 2694 | else |
39fd3d4f SJR |
2695 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2696 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2697 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
b0cacab0 | 2698 | See \`config.log' for more details." >&5 |
39fd3d4f | 2699 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
b0cacab0 | 2700 | See \`config.log' for more details." >&2;} |
39fd3d4f | 2701 | { (exit 1); exit 1; }; }; } |
73ae2d4a | 2702 | fi |
73ae2d4a | 2703 | |
b0cacab0 | 2704 | rm -f conftest$ac_cv_exeext |
39fd3d4f SJR |
2705 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2706 | $as_echo "$ac_cv_exeext" >&6; } | |
73ae2d4a | 2707 | |
b0cacab0 TT |
2708 | rm -f conftest.$ac_ext |
2709 | EXEEXT=$ac_cv_exeext | |
2710 | ac_exeext=$EXEEXT | |
39fd3d4f SJR |
2711 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2712 | $as_echo_n "checking for suffix of object files... " >&6; } | |
b0cacab0 | 2713 | if test "${ac_cv_objext+set}" = set; then |
39fd3d4f | 2714 | $as_echo_n "(cached) " >&6 |
73ae2d4a | 2715 | else |
b0cacab0 TT |
2716 | cat >conftest.$ac_ext <<_ACEOF |
2717 | /* confdefs.h. */ | |
2718 | _ACEOF | |
2719 | cat confdefs.h >>conftest.$ac_ext | |
2720 | cat >>conftest.$ac_ext <<_ACEOF | |
2721 | /* end confdefs.h. */ | |
07a0db15 | 2722 | |
b0cacab0 TT |
2723 | int |
2724 | main () | |
2725 | { | |
07a0db15 | 2726 | |
b0cacab0 TT |
2727 | ; |
2728 | return 0; | |
2729 | } | |
2730 | _ACEOF | |
2731 | rm -f conftest.o conftest.obj | |
e1052144 TT |
2732 | if { (ac_try="$ac_compile" |
2733 | case "(($ac_try" in | |
2734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2735 | *) ac_try_echo=$ac_try;; | |
2736 | esac | |
39fd3d4f SJR |
2737 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2738 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 2739 | (eval "$ac_compile") 2>&5 |
b0cacab0 | 2740 | ac_status=$? |
39fd3d4f | 2741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 2742 | (exit $ac_status); }; then |
e1052144 TT |
2743 | for ac_file in conftest.o conftest.obj conftest.*; do |
2744 | test -f "$ac_file" || continue; | |
b0cacab0 | 2745 | case $ac_file in |
39fd3d4f | 2746 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b0cacab0 TT |
2747 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2748 | break;; | |
2749 | esac | |
2750 | done | |
93636bde | 2751 | else |
39fd3d4f | 2752 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 | 2753 | sed 's/^/| /' conftest.$ac_ext >&5 |
07a0db15 | 2754 | |
39fd3d4f SJR |
2755 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2756 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2757 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
b0cacab0 | 2758 | See \`config.log' for more details." >&5 |
39fd3d4f | 2759 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
b0cacab0 | 2760 | See \`config.log' for more details." >&2;} |
39fd3d4f | 2761 | { (exit 1); exit 1; }; }; } |
73ae2d4a | 2762 | fi |
93636bde | 2763 | |
b0cacab0 | 2764 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
73ae2d4a | 2765 | fi |
39fd3d4f SJR |
2766 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2767 | $as_echo "$ac_cv_objext" >&6; } | |
b0cacab0 TT |
2768 | OBJEXT=$ac_cv_objext |
2769 | ac_objext=$OBJEXT | |
39fd3d4f SJR |
2770 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2771 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
b0cacab0 | 2772 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
39fd3d4f | 2773 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
2774 | else |
2775 | cat >conftest.$ac_ext <<_ACEOF | |
2776 | /* confdefs.h. */ | |
2777 | _ACEOF | |
2778 | cat confdefs.h >>conftest.$ac_ext | |
2779 | cat >>conftest.$ac_ext <<_ACEOF | |
2780 | /* end confdefs.h. */ | |
2781 | ||
2782 | int | |
2783 | main () | |
2784 | { | |
2785 | #ifndef __GNUC__ | |
2786 | choke me | |
2787 | #endif | |
2788 | ||
2789 | ; | |
2790 | return 0; | |
2791 | } | |
2792 | _ACEOF | |
2793 | rm -f conftest.$ac_objext | |
e1052144 TT |
2794 | if { (ac_try="$ac_compile" |
2795 | case "(($ac_try" in | |
2796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2797 | *) ac_try_echo=$ac_try;; | |
2798 | esac | |
39fd3d4f SJR |
2799 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2800 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 2801 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
2802 | ac_status=$? |
2803 | grep -v '^ *+' conftest.er1 >conftest.err | |
2804 | rm -f conftest.er1 | |
2805 | cat conftest.err >&5 | |
39fd3d4f | 2806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
2807 | (exit $ac_status); } && { |
2808 | test -z "$ac_c_werror_flag" || | |
2809 | test ! -s conftest.err | |
2810 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
2811 | ac_compiler_gnu=yes |
2812 | else | |
39fd3d4f | 2813 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
2814 | sed 's/^/| /' conftest.$ac_ext >&5 |
2815 | ||
e1052144 | 2816 | ac_compiler_gnu=no |
b0cacab0 | 2817 | fi |
e1052144 TT |
2818 | |
2819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
2820 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2821 | ||
2822 | fi | |
39fd3d4f SJR |
2823 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2824 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2825 | if test $ac_compiler_gnu = yes; then | |
2826 | GCC=yes | |
2827 | else | |
2828 | GCC= | |
2829 | fi | |
b0cacab0 TT |
2830 | ac_test_CFLAGS=${CFLAGS+set} |
2831 | ac_save_CFLAGS=$CFLAGS | |
39fd3d4f SJR |
2832 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2833 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
b0cacab0 | 2834 | if test "${ac_cv_prog_cc_g+set}" = set; then |
39fd3d4f | 2835 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 2836 | else |
e1052144 TT |
2837 | ac_save_c_werror_flag=$ac_c_werror_flag |
2838 | ac_c_werror_flag=yes | |
2839 | ac_cv_prog_cc_g=no | |
2840 | CFLAGS="-g" | |
2841 | cat >conftest.$ac_ext <<_ACEOF | |
2842 | /* confdefs.h. */ | |
2843 | _ACEOF | |
2844 | cat confdefs.h >>conftest.$ac_ext | |
2845 | cat >>conftest.$ac_ext <<_ACEOF | |
2846 | /* end confdefs.h. */ | |
2847 | ||
2848 | int | |
2849 | main () | |
2850 | { | |
2851 | ||
2852 | ; | |
2853 | return 0; | |
2854 | } | |
2855 | _ACEOF | |
2856 | rm -f conftest.$ac_objext | |
2857 | if { (ac_try="$ac_compile" | |
2858 | case "(($ac_try" in | |
2859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2860 | *) ac_try_echo=$ac_try;; | |
2861 | esac | |
39fd3d4f SJR |
2862 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2863 | $as_echo "$ac_try_echo") >&5 | |
e1052144 TT |
2864 | (eval "$ac_compile") 2>conftest.er1 |
2865 | ac_status=$? | |
2866 | grep -v '^ *+' conftest.er1 >conftest.err | |
2867 | rm -f conftest.er1 | |
2868 | cat conftest.err >&5 | |
39fd3d4f | 2869 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
2870 | (exit $ac_status); } && { |
2871 | test -z "$ac_c_werror_flag" || | |
2872 | test ! -s conftest.err | |
2873 | } && test -s conftest.$ac_objext; then | |
e1052144 TT |
2874 | ac_cv_prog_cc_g=yes |
2875 | else | |
39fd3d4f | 2876 | $as_echo "$as_me: failed program was:" >&5 |
e1052144 TT |
2877 | sed 's/^/| /' conftest.$ac_ext >&5 |
2878 | ||
2879 | CFLAGS="" | |
2880 | cat >conftest.$ac_ext <<_ACEOF | |
2881 | /* confdefs.h. */ | |
2882 | _ACEOF | |
2883 | cat confdefs.h >>conftest.$ac_ext | |
2884 | cat >>conftest.$ac_ext <<_ACEOF | |
2885 | /* end confdefs.h. */ | |
2886 | ||
2887 | int | |
2888 | main () | |
2889 | { | |
2890 | ||
2891 | ; | |
2892 | return 0; | |
2893 | } | |
2894 | _ACEOF | |
2895 | rm -f conftest.$ac_objext | |
2896 | if { (ac_try="$ac_compile" | |
2897 | case "(($ac_try" in | |
2898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2899 | *) ac_try_echo=$ac_try;; | |
2900 | esac | |
39fd3d4f SJR |
2901 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2902 | $as_echo "$ac_try_echo") >&5 | |
e1052144 TT |
2903 | (eval "$ac_compile") 2>conftest.er1 |
2904 | ac_status=$? | |
2905 | grep -v '^ *+' conftest.er1 >conftest.err | |
2906 | rm -f conftest.er1 | |
2907 | cat conftest.err >&5 | |
39fd3d4f | 2908 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
2909 | (exit $ac_status); } && { |
2910 | test -z "$ac_c_werror_flag" || | |
2911 | test ! -s conftest.err | |
2912 | } && test -s conftest.$ac_objext; then | |
e1052144 TT |
2913 | : |
2914 | else | |
39fd3d4f | 2915 | $as_echo "$as_me: failed program was:" >&5 |
e1052144 TT |
2916 | sed 's/^/| /' conftest.$ac_ext >&5 |
2917 | ||
2918 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2919 | CFLAGS="-g" | |
2920 | cat >conftest.$ac_ext <<_ACEOF | |
b0cacab0 TT |
2921 | /* confdefs.h. */ |
2922 | _ACEOF | |
2923 | cat confdefs.h >>conftest.$ac_ext | |
2924 | cat >>conftest.$ac_ext <<_ACEOF | |
2925 | /* end confdefs.h. */ | |
2926 | ||
2927 | int | |
2928 | main () | |
2929 | { | |
2930 | ||
2931 | ; | |
2932 | return 0; | |
2933 | } | |
2934 | _ACEOF | |
2935 | rm -f conftest.$ac_objext | |
e1052144 TT |
2936 | if { (ac_try="$ac_compile" |
2937 | case "(($ac_try" in | |
2938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2939 | *) ac_try_echo=$ac_try;; | |
2940 | esac | |
39fd3d4f SJR |
2941 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2942 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 2943 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
2944 | ac_status=$? |
2945 | grep -v '^ *+' conftest.er1 >conftest.err | |
2946 | rm -f conftest.er1 | |
2947 | cat conftest.err >&5 | |
39fd3d4f | 2948 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
2949 | (exit $ac_status); } && { |
2950 | test -z "$ac_c_werror_flag" || | |
2951 | test ! -s conftest.err | |
2952 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
2953 | ac_cv_prog_cc_g=yes |
2954 | else | |
39fd3d4f | 2955 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
2956 | sed 's/^/| /' conftest.$ac_ext >&5 |
2957 | ||
e1052144 TT |
2958 | |
2959 | fi | |
2960 | ||
2961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2962 | fi | |
2963 | ||
2964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 2965 | fi |
e1052144 TT |
2966 | |
2967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2968 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b0cacab0 | 2969 | fi |
39fd3d4f SJR |
2970 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2971 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
b0cacab0 TT |
2972 | if test "$ac_test_CFLAGS" = set; then |
2973 | CFLAGS=$ac_save_CFLAGS | |
2974 | elif test $ac_cv_prog_cc_g = yes; then | |
2975 | if test "$GCC" = yes; then | |
2976 | CFLAGS="-g -O2" | |
2977 | else | |
2978 | CFLAGS="-g" | |
2979 | fi | |
73ae2d4a TT |
2980 | else |
2981 | if test "$GCC" = yes; then | |
2982 | CFLAGS="-O2" | |
2983 | else | |
2984 | CFLAGS= | |
2985 | fi | |
2986 | fi | |
39fd3d4f SJR |
2987 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2988 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
e1052144 | 2989 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
39fd3d4f | 2990 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 2991 | else |
e1052144 | 2992 | ac_cv_prog_cc_c89=no |
b0cacab0 TT |
2993 | ac_save_CC=$CC |
2994 | cat >conftest.$ac_ext <<_ACEOF | |
2995 | /* confdefs.h. */ | |
2996 | _ACEOF | |
2997 | cat confdefs.h >>conftest.$ac_ext | |
2998 | cat >>conftest.$ac_ext <<_ACEOF | |
2999 | /* end confdefs.h. */ | |
3000 | #include <stdarg.h> | |
3001 | #include <stdio.h> | |
3002 | #include <sys/types.h> | |
3003 | #include <sys/stat.h> | |
3004 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3005 | struct buf { int x; }; | |
3006 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3007 | static char *e (p, i) | |
3008 | char **p; | |
3009 | int i; | |
3010 | { | |
3011 | return p[i]; | |
3012 | } | |
3013 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3014 | { | |
3015 | char *s; | |
3016 | va_list v; | |
3017 | va_start (v,p); | |
3018 | s = g (p, va_arg (v,int)); | |
3019 | va_end (v); | |
3020 | return s; | |
3021 | } | |
3022 | ||
3023 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3024 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3025 | These don't provoke an error unfortunately, instead are silently treated | |
e1052144 | 3026 | as 'x'. The following induces an error, until -std is added to get |
b0cacab0 TT |
3027 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3028 | array size at least. It's necessary to write '\x00'==0 to get something | |
e1052144 | 3029 | that's true only with -std. */ |
b0cacab0 TT |
3030 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3031 | ||
e1052144 TT |
3032 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3033 | inside strings and character constants. */ | |
3034 | #define FOO(x) 'x' | |
3035 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3036 | ||
b0cacab0 TT |
3037 | int test (int i, double x); |
3038 | struct s1 {int (*f) (int a);}; | |
3039 | struct s2 {int (*f) (double a);}; | |
3040 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3041 | int argc; | |
3042 | char **argv; | |
3043 | int | |
3044 | main () | |
3045 | { | |
3046 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3047 | ; | |
3048 | return 0; | |
3049 | } | |
3050 | _ACEOF | |
e1052144 TT |
3051 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3052 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b0cacab0 TT |
3053 | do |
3054 | CC="$ac_save_CC $ac_arg" | |
3055 | rm -f conftest.$ac_objext | |
e1052144 TT |
3056 | if { (ac_try="$ac_compile" |
3057 | case "(($ac_try" in | |
3058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3059 | *) ac_try_echo=$ac_try;; | |
3060 | esac | |
39fd3d4f SJR |
3061 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3062 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 3063 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
3064 | ac_status=$? |
3065 | grep -v '^ *+' conftest.er1 >conftest.err | |
3066 | rm -f conftest.er1 | |
3067 | cat conftest.err >&5 | |
39fd3d4f | 3068 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
3069 | (exit $ac_status); } && { |
3070 | test -z "$ac_c_werror_flag" || | |
3071 | test ! -s conftest.err | |
3072 | } && test -s conftest.$ac_objext; then | |
e1052144 | 3073 | ac_cv_prog_cc_c89=$ac_arg |
b0cacab0 | 3074 | else |
39fd3d4f | 3075 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
3076 | sed 's/^/| /' conftest.$ac_ext >&5 |
3077 | ||
e1052144 | 3078 | |
b0cacab0 | 3079 | fi |
e1052144 TT |
3080 | |
3081 | rm -f core conftest.err conftest.$ac_objext | |
3082 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b0cacab0 | 3083 | done |
e1052144 | 3084 | rm -f conftest.$ac_ext |
b0cacab0 TT |
3085 | CC=$ac_save_CC |
3086 | ||
3087 | fi | |
e1052144 TT |
3088 | # AC_CACHE_VAL |
3089 | case "x$ac_cv_prog_cc_c89" in | |
3090 | x) | |
39fd3d4f SJR |
3091 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3092 | $as_echo "none needed" >&6; } ;; | |
e1052144 | 3093 | xno) |
39fd3d4f SJR |
3094 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3095 | $as_echo "unsupported" >&6; } ;; | |
b0cacab0 | 3096 | *) |
e1052144 | 3097 | CC="$CC $ac_cv_prog_cc_c89" |
39fd3d4f SJR |
3098 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3099 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b0cacab0 TT |
3100 | esac |
3101 | ||
b0cacab0 | 3102 | |
b0cacab0 TT |
3103 | ac_ext=c |
3104 | ac_cpp='$CPP $CPPFLAGS' | |
3105 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3106 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3107 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3108 | ||
b0cacab0 TT |
3109 | ac_ext=c |
3110 | ac_cpp='$CPP $CPPFLAGS' | |
3111 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3112 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3113 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39fd3d4f SJR |
3114 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3115 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
a64c9c13 TT |
3116 | # On Suns, sometimes $CPP names a directory. |
3117 | if test -n "$CPP" && test -d "$CPP"; then | |
3118 | CPP= | |
3119 | fi | |
3120 | if test -z "$CPP"; then | |
b0cacab0 | 3121 | if test "${ac_cv_prog_CPP+set}" = set; then |
39fd3d4f | 3122 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
3123 | else |
3124 | # Double quotes because CPP needs to be expanded | |
3125 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3126 | do | |
3127 | ac_preproc_ok=false | |
3128 | for ac_c_preproc_warn_flag in '' yes | |
3129 | do | |
3130 | # Use a header file that comes with gcc, so configuring glibc | |
3131 | # with a fresh cross-compiler works. | |
3132 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3133 | # <limits.h> exists even on freestanding compilers. | |
3134 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3135 | # not just through cpp. "Syntax error" is here to catch this case. | |
3136 | cat >conftest.$ac_ext <<_ACEOF | |
3137 | /* confdefs.h. */ | |
3138 | _ACEOF | |
3139 | cat confdefs.h >>conftest.$ac_ext | |
3140 | cat >>conftest.$ac_ext <<_ACEOF | |
3141 | /* end confdefs.h. */ | |
3142 | #ifdef __STDC__ | |
3143 | # include <limits.h> | |
3144 | #else | |
3145 | # include <assert.h> | |
3146 | #endif | |
3147 | Syntax error | |
3148 | _ACEOF | |
e1052144 TT |
3149 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3150 | case "(($ac_try" in | |
3151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3152 | *) ac_try_echo=$ac_try;; | |
3153 | esac | |
39fd3d4f SJR |
3154 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3155 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 3156 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
b0cacab0 TT |
3157 | ac_status=$? |
3158 | grep -v '^ *+' conftest.er1 >conftest.err | |
3159 | rm -f conftest.er1 | |
3160 | cat conftest.err >&5 | |
39fd3d4f | 3161 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
3162 | (exit $ac_status); } >/dev/null && { |
3163 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3164 | test ! -s conftest.err | |
3165 | }; then | |
b0cacab0 TT |
3166 | : |
3167 | else | |
39fd3d4f | 3168 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
3169 | sed 's/^/| /' conftest.$ac_ext >&5 |
3170 | ||
3171 | # Broken: fails on valid input. | |
3172 | continue | |
3173 | fi | |
e1052144 | 3174 | |
b0cacab0 TT |
3175 | rm -f conftest.err conftest.$ac_ext |
3176 | ||
e1052144 | 3177 | # OK, works on sane cases. Now check whether nonexistent headers |
b0cacab0 TT |
3178 | # can be detected and how. |
3179 | cat >conftest.$ac_ext <<_ACEOF | |
3180 | /* confdefs.h. */ | |
3181 | _ACEOF | |
3182 | cat confdefs.h >>conftest.$ac_ext | |
3183 | cat >>conftest.$ac_ext <<_ACEOF | |
3184 | /* end confdefs.h. */ | |
3185 | #include <ac_nonexistent.h> | |
3186 | _ACEOF | |
e1052144 TT |
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 | |
39fd3d4f SJR |
3192 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3193 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 3194 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
b0cacab0 TT |
3195 | ac_status=$? |
3196 | grep -v '^ *+' conftest.er1 >conftest.err | |
3197 | rm -f conftest.er1 | |
3198 | cat conftest.err >&5 | |
39fd3d4f | 3199 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
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 | |
b0cacab0 TT |
3204 | # Broken: success on invalid input. |
3205 | continue | |
3206 | else | |
39fd3d4f | 3207 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
3208 | sed 's/^/| /' conftest.$ac_ext >&5 |
3209 | ||
3210 | # Passes both tests. | |
3211 | ac_preproc_ok=: | |
3212 | break | |
3213 | fi | |
e1052144 | 3214 | |
b0cacab0 TT |
3215 | rm -f conftest.err conftest.$ac_ext |
3216 | ||
3217 | done | |
3218 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3219 | rm -f conftest.err conftest.$ac_ext | |
3220 | if $ac_preproc_ok; then | |
3221 | break | |
3222 | fi | |
3223 | ||
3224 | done | |
3225 | ac_cv_prog_CPP=$CPP | |
3226 | ||
3227 | fi | |
3228 | CPP=$ac_cv_prog_CPP | |
93636bde | 3229 | else |
b0cacab0 TT |
3230 | ac_cv_prog_CPP=$CPP |
3231 | fi | |
39fd3d4f SJR |
3232 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3233 | $as_echo "$CPP" >&6; } | |
b0cacab0 TT |
3234 | ac_preproc_ok=false |
3235 | for ac_c_preproc_warn_flag in '' yes | |
3236 | do | |
3237 | # Use a header file that comes with gcc, so configuring glibc | |
3238 | # with a fresh cross-compiler works. | |
3239 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3240 | # <limits.h> exists even on freestanding compilers. | |
a64c9c13 | 3241 | # On the NeXT, cc -E runs the code through the compiler's parser, |
b0cacab0 TT |
3242 | # not just through cpp. "Syntax error" is here to catch this case. |
3243 | cat >conftest.$ac_ext <<_ACEOF | |
3244 | /* confdefs.h. */ | |
3245 | _ACEOF | |
3246 | cat confdefs.h >>conftest.$ac_ext | |
3247 | cat >>conftest.$ac_ext <<_ACEOF | |
3248 | /* end confdefs.h. */ | |
3249 | #ifdef __STDC__ | |
3250 | # include <limits.h> | |
3251 | #else | |
3252 | # include <assert.h> | |
3253 | #endif | |
3254 | Syntax error | |
3255 | _ACEOF | |
e1052144 TT |
3256 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3257 | case "(($ac_try" in | |
3258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3259 | *) ac_try_echo=$ac_try;; | |
3260 | esac | |
39fd3d4f SJR |
3261 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3262 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 3263 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
b0cacab0 TT |
3264 | ac_status=$? |
3265 | grep -v '^ *+' conftest.er1 >conftest.err | |
3266 | rm -f conftest.er1 | |
3267 | cat conftest.err >&5 | |
39fd3d4f | 3268 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
3269 | (exit $ac_status); } >/dev/null && { |
3270 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3271 | test ! -s conftest.err | |
3272 | }; then | |
a64c9c13 TT |
3273 | : |
3274 | else | |
39fd3d4f | 3275 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
3276 | sed 's/^/| /' conftest.$ac_ext >&5 |
3277 | ||
3278 | # Broken: fails on valid input. | |
3279 | continue | |
3280 | fi | |
e1052144 | 3281 | |
b0cacab0 TT |
3282 | rm -f conftest.err conftest.$ac_ext |
3283 | ||
e1052144 | 3284 | # OK, works on sane cases. Now check whether nonexistent headers |
b0cacab0 TT |
3285 | # can be detected and how. |
3286 | cat >conftest.$ac_ext <<_ACEOF | |
3287 | /* confdefs.h. */ | |
3288 | _ACEOF | |
3289 | cat confdefs.h >>conftest.$ac_ext | |
3290 | cat >>conftest.$ac_ext <<_ACEOF | |
3291 | /* end confdefs.h. */ | |
3292 | #include <ac_nonexistent.h> | |
3293 | _ACEOF | |
e1052144 TT |
3294 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3295 | case "(($ac_try" in | |
3296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3297 | *) ac_try_echo=$ac_try;; | |
3298 | esac | |
39fd3d4f SJR |
3299 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3300 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 3301 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
b0cacab0 TT |
3302 | ac_status=$? |
3303 | grep -v '^ *+' conftest.er1 >conftest.err | |
3304 | rm -f conftest.er1 | |
3305 | cat conftest.err >&5 | |
39fd3d4f | 3306 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
3307 | (exit $ac_status); } >/dev/null && { |
3308 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3309 | test ! -s conftest.err | |
3310 | }; then | |
b0cacab0 TT |
3311 | # Broken: success on invalid input. |
3312 | continue | |
3313 | else | |
39fd3d4f | 3314 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
3315 | sed 's/^/| /' conftest.$ac_ext >&5 |
3316 | ||
3317 | # Passes both tests. | |
3318 | ac_preproc_ok=: | |
3319 | break | |
3320 | fi | |
e1052144 | 3321 | |
b0cacab0 TT |
3322 | rm -f conftest.err conftest.$ac_ext |
3323 | ||
3324 | done | |
3325 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3326 | rm -f conftest.err conftest.$ac_ext | |
3327 | if $ac_preproc_ok; then | |
93636bde | 3328 | : |
07a0db15 | 3329 | else |
39fd3d4f SJR |
3330 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3331 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3332 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
b0cacab0 | 3333 | See \`config.log' for more details." >&5 |
39fd3d4f | 3334 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
b0cacab0 | 3335 | See \`config.log' for more details." >&2;} |
39fd3d4f | 3336 | { (exit 1); exit 1; }; }; } |
b0cacab0 TT |
3337 | fi |
3338 | ||
3339 | ac_ext=c | |
3340 | ac_cpp='$CPP $CPPFLAGS' | |
3341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3344 | ||
3345 | ||
29a5deed TT |
3346 | # Check whether --with-linker was given. |
3347 | if test "${with_linker+set}" = set; then | |
39fd3d4f SJR |
3348 | withval=$with_linker; { $as_echo "$as_me:$LINENO: result: LD=$withval" >&5 |
3349 | $as_echo "LD=$withval" >&6; } | |
29a5deed TT |
3350 | LD=$withval |
3351 | else | |
3352 | if test -z "$LD" ; then LD=$CC; fi | |
39fd3d4f SJR |
3353 | { $as_echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
3354 | $as_echo "LD defaults to $LD" >&6; } | |
29a5deed TT |
3355 | fi |
3356 | export LD | |
3357 | ||
3358 | ||
3359 | # Check whether --with-ccopts was given. | |
3360 | if test "${with_ccopts+set}" = set; then | |
39fd3d4f SJR |
3361 | withval=$with_ccopts; { $as_echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
3362 | $as_echo "CCOPTS is $withval" >&6; } | |
29a5deed TT |
3363 | CFLAGS=$withval |
3364 | fi | |
3365 | ||
3366 | ||
39fd3d4f SJR |
3367 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3368 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
e1052144 | 3369 | if test "${ac_cv_path_GREP+set}" = set; then |
39fd3d4f | 3370 | $as_echo_n "(cached) " >&6 |
e1052144 | 3371 | else |
39fd3d4f | 3372 | if test -z "$GREP"; then |
e1052144 | 3373 | ac_path_GREP_found=false |
39fd3d4f SJR |
3374 | # Loop through the user's path and test for each of PROGNAME-LIST |
3375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e1052144 TT |
3376 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3377 | do | |
3378 | IFS=$as_save_IFS | |
3379 | test -z "$as_dir" && as_dir=. | |
3380 | for ac_prog in grep ggrep; do | |
39fd3d4f SJR |
3381 | for ac_exec_ext in '' $ac_executable_extensions; do |
3382 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3383 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3384 | # Check for GNU ac_path_GREP and select it if it is found. | |
e1052144 TT |
3385 | # Check for GNU $ac_path_GREP |
3386 | case `"$ac_path_GREP" --version 2>&1` in | |
3387 | *GNU*) | |
3388 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3389 | *) | |
3390 | ac_count=0 | |
39fd3d4f | 3391 | $as_echo_n 0123456789 >"conftest.in" |
e1052144 TT |
3392 | while : |
3393 | do | |
3394 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3395 | mv "conftest.tmp" "conftest.in" | |
3396 | cp "conftest.in" "conftest.nl" | |
39fd3d4f | 3397 | $as_echo 'GREP' >> "conftest.nl" |
e1052144 TT |
3398 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3399 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3400 | ac_count=`expr $ac_count + 1` | |
3401 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3402 | # Best one so far, save it but keep looking for a better one | |
3403 | ac_cv_path_GREP="$ac_path_GREP" | |
3404 | ac_path_GREP_max=$ac_count | |
3405 | fi | |
3406 | # 10*(2^10) chars as input seems more than enough | |
3407 | test $ac_count -gt 10 && break | |
3408 | done | |
3409 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3410 | esac | |
3411 | ||
39fd3d4f SJR |
3412 | $ac_path_GREP_found && break 3 |
3413 | done | |
e1052144 TT |
3414 | done |
3415 | done | |
e1052144 | 3416 | IFS=$as_save_IFS |
39fd3d4f SJR |
3417 | if test -z "$ac_cv_path_GREP"; then |
3418 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3419 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
e1052144 | 3420 | { (exit 1); exit 1; }; } |
39fd3d4f | 3421 | fi |
e1052144 TT |
3422 | else |
3423 | ac_cv_path_GREP=$GREP | |
3424 | fi | |
3425 | ||
e1052144 | 3426 | fi |
39fd3d4f SJR |
3427 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3428 | $as_echo "$ac_cv_path_GREP" >&6; } | |
e1052144 TT |
3429 | GREP="$ac_cv_path_GREP" |
3430 | ||
3431 | ||
39fd3d4f SJR |
3432 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3433 | $as_echo_n "checking for egrep... " >&6; } | |
e1052144 | 3434 | if test "${ac_cv_path_EGREP+set}" = set; then |
39fd3d4f | 3435 | $as_echo_n "(cached) " >&6 |
e1052144 TT |
3436 | else |
3437 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3438 | then ac_cv_path_EGREP="$GREP -E" | |
3439 | else | |
39fd3d4f | 3440 | if test -z "$EGREP"; then |
e1052144 | 3441 | ac_path_EGREP_found=false |
39fd3d4f SJR |
3442 | # Loop through the user's path and test for each of PROGNAME-LIST |
3443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e1052144 TT |
3444 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3445 | do | |
3446 | IFS=$as_save_IFS | |
3447 | test -z "$as_dir" && as_dir=. | |
3448 | for ac_prog in egrep; do | |
39fd3d4f SJR |
3449 | for ac_exec_ext in '' $ac_executable_extensions; do |
3450 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3451 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3452 | # Check for GNU ac_path_EGREP and select it if it is found. | |
e1052144 TT |
3453 | # Check for GNU $ac_path_EGREP |
3454 | case `"$ac_path_EGREP" --version 2>&1` in | |
3455 | *GNU*) | |
3456 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3457 | *) | |
3458 | ac_count=0 | |
39fd3d4f | 3459 | $as_echo_n 0123456789 >"conftest.in" |
e1052144 TT |
3460 | while : |
3461 | do | |
3462 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3463 | mv "conftest.tmp" "conftest.in" | |
3464 | cp "conftest.in" "conftest.nl" | |
39fd3d4f | 3465 | $as_echo 'EGREP' >> "conftest.nl" |
e1052144 TT |
3466 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3467 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3468 | ac_count=`expr $ac_count + 1` | |
3469 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3470 | # Best one so far, save it but keep looking for a better one | |
3471 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3472 | ac_path_EGREP_max=$ac_count | |
b0cacab0 | 3473 | fi |
e1052144 TT |
3474 | # 10*(2^10) chars as input seems more than enough |
3475 | test $ac_count -gt 10 && break | |
3476 | done | |
3477 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3478 | esac | |
3479 | ||
39fd3d4f SJR |
3480 | $ac_path_EGREP_found && break 3 |
3481 | done | |
e1052144 TT |
3482 | done |
3483 | done | |
e1052144 | 3484 | IFS=$as_save_IFS |
39fd3d4f SJR |
3485 | if test -z "$ac_cv_path_EGREP"; then |
3486 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3487 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
e1052144 | 3488 | { (exit 1); exit 1; }; } |
39fd3d4f | 3489 | fi |
e1052144 TT |
3490 | else |
3491 | ac_cv_path_EGREP=$EGREP | |
b0cacab0 | 3492 | fi |
b0cacab0 | 3493 | |
e1052144 TT |
3494 | fi |
3495 | fi | |
39fd3d4f SJR |
3496 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3497 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
e1052144 TT |
3498 | EGREP="$ac_cv_path_EGREP" |
3499 | ||
3500 | ||
39fd3d4f SJR |
3501 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3502 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b0cacab0 | 3503 | if test "${ac_cv_header_stdc+set}" = set; then |
39fd3d4f | 3504 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
3505 | else |
3506 | cat >conftest.$ac_ext <<_ACEOF | |
3507 | /* confdefs.h. */ | |
3508 | _ACEOF | |
3509 | cat confdefs.h >>conftest.$ac_ext | |
3510 | cat >>conftest.$ac_ext <<_ACEOF | |
3511 | /* end confdefs.h. */ | |
3512 | #include <stdlib.h> | |
3513 | #include <stdarg.h> | |
3514 | #include <string.h> | |
3515 | #include <float.h> | |
3516 | ||
3517 | int | |
3518 | main () | |
3519 | { | |
3520 | ||
3521 | ; | |
3522 | return 0; | |
3523 | } | |
3524 | _ACEOF | |
3525 | rm -f conftest.$ac_objext | |
e1052144 TT |
3526 | if { (ac_try="$ac_compile" |
3527 | case "(($ac_try" in | |
3528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3529 | *) ac_try_echo=$ac_try;; | |
3530 | esac | |
39fd3d4f SJR |
3531 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3532 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 3533 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
3534 | ac_status=$? |
3535 | grep -v '^ *+' conftest.er1 >conftest.err | |
3536 | rm -f conftest.er1 | |
3537 | cat conftest.err >&5 | |
39fd3d4f | 3538 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
3539 | (exit $ac_status); } && { |
3540 | test -z "$ac_c_werror_flag" || | |
3541 | test ! -s conftest.err | |
3542 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
3543 | ac_cv_header_stdc=yes |
3544 | else | |
39fd3d4f | 3545 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
3546 | sed 's/^/| /' conftest.$ac_ext >&5 |
3547 | ||
e1052144 | 3548 | ac_cv_header_stdc=no |
b0cacab0 | 3549 | fi |
e1052144 TT |
3550 | |
3551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
3552 | |
3553 | if test $ac_cv_header_stdc = yes; then | |
3554 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3555 | cat >conftest.$ac_ext <<_ACEOF | |
3556 | /* confdefs.h. */ | |
3557 | _ACEOF | |
3558 | cat confdefs.h >>conftest.$ac_ext | |
3559 | cat >>conftest.$ac_ext <<_ACEOF | |
3560 | /* end confdefs.h. */ | |
3561 | #include <string.h> | |
3562 | ||
3563 | _ACEOF | |
3564 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3565 | $EGREP "memchr" >/dev/null 2>&1; then | |
93636bde | 3566 | : |
a64c9c13 | 3567 | else |
b0cacab0 | 3568 | ac_cv_header_stdc=no |
a64c9c13 | 3569 | fi |
93636bde | 3570 | rm -f conftest* |
b0cacab0 | 3571 | |
a64c9c13 | 3572 | fi |
b0cacab0 TT |
3573 | |
3574 | if test $ac_cv_header_stdc = yes; then | |
3575 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3576 | cat >conftest.$ac_ext <<_ACEOF | |
3577 | /* confdefs.h. */ | |
3578 | _ACEOF | |
3579 | cat confdefs.h >>conftest.$ac_ext | |
3580 | cat >>conftest.$ac_ext <<_ACEOF | |
3581 | /* end confdefs.h. */ | |
3582 | #include <stdlib.h> | |
3583 | ||
3584 | _ACEOF | |
3585 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3586 | $EGREP "free" >/dev/null 2>&1; then | |
3587 | : | |
3588 | else | |
3589 | ac_cv_header_stdc=no | |
a64c9c13 | 3590 | fi |
93636bde | 3591 | rm -f conftest* |
b0cacab0 | 3592 | |
a64c9c13 | 3593 | fi |
b0cacab0 TT |
3594 | |
3595 | if test $ac_cv_header_stdc = yes; then | |
3596 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3597 | if test "$cross_compiling" = yes; then | |
3598 | : | |
a64c9c13 | 3599 | else |
b0cacab0 TT |
3600 | cat >conftest.$ac_ext <<_ACEOF |
3601 | /* confdefs.h. */ | |
3602 | _ACEOF | |
3603 | cat confdefs.h >>conftest.$ac_ext | |
3604 | cat >>conftest.$ac_ext <<_ACEOF | |
3605 | /* end confdefs.h. */ | |
3606 | #include <ctype.h> | |
e1052144 | 3607 | #include <stdlib.h> |
b0cacab0 TT |
3608 | #if ((' ' & 0x0FF) == 0x020) |
3609 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3610 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3611 | #else | |
3612 | # define ISLOWER(c) \ | |
3613 | (('a' <= (c) && (c) <= 'i') \ | |
3614 | || ('j' <= (c) && (c) <= 'r') \ | |
3615 | || ('s' <= (c) && (c) <= 'z')) | |
3616 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3617 | #endif | |
93636bde | 3618 | |
b0cacab0 TT |
3619 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3620 | int | |
3621 | main () | |
3622 | { | |
3623 | int i; | |
3624 | for (i = 0; i < 256; i++) | |
3625 | if (XOR (islower (i), ISLOWER (i)) | |
3626 | || toupper (i) != TOUPPER (i)) | |
e1052144 TT |
3627 | return 2; |
3628 | return 0; | |
b0cacab0 TT |
3629 | } |
3630 | _ACEOF | |
3631 | rm -f conftest$ac_exeext | |
e1052144 TT |
3632 | if { (ac_try="$ac_link" |
3633 | case "(($ac_try" in | |
3634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3635 | *) ac_try_echo=$ac_try;; | |
3636 | esac | |
39fd3d4f SJR |
3637 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3638 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 3639 | (eval "$ac_link") 2>&5 |
b0cacab0 | 3640 | ac_status=$? |
39fd3d4f | 3641 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 3642 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
e1052144 TT |
3643 | { (case "(($ac_try" in |
3644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3645 | *) ac_try_echo=$ac_try;; | |
3646 | esac | |
39fd3d4f SJR |
3647 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3648 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 3649 | (eval "$ac_try") 2>&5 |
b0cacab0 | 3650 | ac_status=$? |
39fd3d4f | 3651 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 TT |
3652 | (exit $ac_status); }; }; then |
3653 | : | |
a64c9c13 | 3654 | else |
39fd3d4f SJR |
3655 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
3656 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
3657 | sed 's/^/| /' conftest.$ac_ext >&5 |
3658 | ||
3659 | ( exit $ac_status ) | |
3660 | ac_cv_header_stdc=no | |
3661 | fi | |
39fd3d4f | 3662 | rm -rf conftest.dSYM |
e1052144 | 3663 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 | 3664 | fi |
e1052144 TT |
3665 | |
3666 | ||
b0cacab0 TT |
3667 | fi |
3668 | fi | |
39fd3d4f SJR |
3669 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3670 | $as_echo "$ac_cv_header_stdc" >&6; } | |
b0cacab0 TT |
3671 | if test $ac_cv_header_stdc = yes; then |
3672 | ||
3673 | cat >>confdefs.h <<\_ACEOF | |
3674 | #define STDC_HEADERS 1 | |
3675 | _ACEOF | |
3676 | ||
3677 | fi | |
3678 | ||
3679 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3680 | ||
3681 | ||
3682 | ||
3683 | ||
3684 | ||
3685 | ||
3686 | ||
3687 | ||
3688 | ||
3689 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3690 | inttypes.h stdint.h unistd.h | |
3691 | do | |
39fd3d4f SJR |
3692 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3693 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3694 | $as_echo_n "checking for $ac_header... " >&6; } | |
e1052144 | 3695 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 3696 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
3697 | else |
3698 | cat >conftest.$ac_ext <<_ACEOF | |
3699 | /* confdefs.h. */ | |
3700 | _ACEOF | |
3701 | cat confdefs.h >>conftest.$ac_ext | |
3702 | cat >>conftest.$ac_ext <<_ACEOF | |
3703 | /* end confdefs.h. */ | |
3704 | $ac_includes_default | |
3705 | ||
3706 | #include <$ac_header> | |
3707 | _ACEOF | |
3708 | rm -f conftest.$ac_objext | |
e1052144 TT |
3709 | if { (ac_try="$ac_compile" |
3710 | case "(($ac_try" in | |
3711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3712 | *) ac_try_echo=$ac_try;; | |
3713 | esac | |
39fd3d4f SJR |
3714 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3715 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 3716 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
3717 | ac_status=$? |
3718 | grep -v '^ *+' conftest.er1 >conftest.err | |
3719 | rm -f conftest.er1 | |
3720 | cat conftest.err >&5 | |
39fd3d4f | 3721 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
3722 | (exit $ac_status); } && { |
3723 | test -z "$ac_c_werror_flag" || | |
3724 | test ! -s conftest.err | |
3725 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
3726 | eval "$as_ac_Header=yes" |
3727 | else | |
39fd3d4f | 3728 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
3729 | sed 's/^/| /' conftest.$ac_ext >&5 |
3730 | ||
e1052144 | 3731 | eval "$as_ac_Header=no" |
b0cacab0 | 3732 | fi |
e1052144 TT |
3733 | |
3734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 3735 | fi |
39fd3d4f SJR |
3736 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
3737 | $as_echo "$as_val"'` | |
3738 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3739 | $as_echo "$ac_res" >&6; } | |
3740 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
3741 | $as_echo "$as_val"'` | |
3742 | if test "x$as_val" = x""yes; then | |
b0cacab0 | 3743 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 3744 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b0cacab0 TT |
3745 | _ACEOF |
3746 | ||
3747 | fi | |
3748 | ||
3749 | done | |
3750 | ||
3751 | ||
3752 | if test "${ac_cv_header_linux_fs_h+set}" = set; then | |
39fd3d4f SJR |
3753 | { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
3754 | $as_echo_n "checking for linux/fs.h... " >&6; } | |
b0cacab0 | 3755 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
39fd3d4f | 3756 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 3757 | fi |
39fd3d4f SJR |
3758 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
3759 | $as_echo "$ac_cv_header_linux_fs_h" >&6; } | |
b0cacab0 TT |
3760 | else |
3761 | # Is the header compilable? | |
39fd3d4f SJR |
3762 | { $as_echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 |
3763 | $as_echo_n "checking linux/fs.h usability... " >&6; } | |
b0cacab0 TT |
3764 | cat >conftest.$ac_ext <<_ACEOF |
3765 | /* confdefs.h. */ | |
3766 | _ACEOF | |
3767 | cat confdefs.h >>conftest.$ac_ext | |
3768 | cat >>conftest.$ac_ext <<_ACEOF | |
3769 | /* end confdefs.h. */ | |
3770 | $ac_includes_default | |
93636bde | 3771 | #include <linux/fs.h> |
b0cacab0 TT |
3772 | _ACEOF |
3773 | rm -f conftest.$ac_objext | |
e1052144 TT |
3774 | if { (ac_try="$ac_compile" |
3775 | case "(($ac_try" in | |
3776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3777 | *) ac_try_echo=$ac_try;; | |
3778 | esac | |
39fd3d4f SJR |
3779 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3780 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 3781 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
3782 | ac_status=$? |
3783 | grep -v '^ *+' conftest.er1 >conftest.err | |
3784 | rm -f conftest.er1 | |
3785 | cat conftest.err >&5 | |
39fd3d4f | 3786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
3787 | (exit $ac_status); } && { |
3788 | test -z "$ac_c_werror_flag" || | |
3789 | test ! -s conftest.err | |
3790 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
3791 | ac_header_compiler=yes |
3792 | else | |
39fd3d4f | 3793 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
3794 | sed 's/^/| /' conftest.$ac_ext >&5 |
3795 | ||
e1052144 | 3796 | ac_header_compiler=no |
b0cacab0 | 3797 | fi |
e1052144 TT |
3798 | |
3799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
39fd3d4f SJR |
3800 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3801 | $as_echo "$ac_header_compiler" >&6; } | |
b0cacab0 TT |
3802 | |
3803 | # Is the header present? | |
39fd3d4f SJR |
3804 | { $as_echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 |
3805 | $as_echo_n "checking linux/fs.h presence... " >&6; } | |
b0cacab0 TT |
3806 | cat >conftest.$ac_ext <<_ACEOF |
3807 | /* confdefs.h. */ | |
3808 | _ACEOF | |
3809 | cat confdefs.h >>conftest.$ac_ext | |
3810 | cat >>conftest.$ac_ext <<_ACEOF | |
3811 | /* end confdefs.h. */ | |
3812 | #include <linux/fs.h> | |
3813 | _ACEOF | |
e1052144 TT |
3814 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3815 | case "(($ac_try" in | |
3816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3817 | *) ac_try_echo=$ac_try;; | |
3818 | esac | |
39fd3d4f SJR |
3819 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3820 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 3821 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
b0cacab0 TT |
3822 | ac_status=$? |
3823 | grep -v '^ *+' conftest.er1 >conftest.err | |
3824 | rm -f conftest.er1 | |
3825 | cat conftest.err >&5 | |
39fd3d4f | 3826 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
3827 | (exit $ac_status); } >/dev/null && { |
3828 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3829 | test ! -s conftest.err | |
3830 | }; then | |
b0cacab0 TT |
3831 | ac_header_preproc=yes |
3832 | else | |
39fd3d4f | 3833 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
3834 | sed 's/^/| /' conftest.$ac_ext >&5 |
3835 | ||
3836 | ac_header_preproc=no | |
3837 | fi | |
e1052144 | 3838 | |
b0cacab0 | 3839 | rm -f conftest.err conftest.$ac_ext |
39fd3d4f SJR |
3840 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3841 | $as_echo "$ac_header_preproc" >&6; } | |
b0cacab0 TT |
3842 | |
3843 | # So? What about this header? | |
3844 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3845 | yes:no: ) | |
39fd3d4f SJR |
3846 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
3847 | $as_echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3848 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 | |
3849 | $as_echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} | |
b0cacab0 TT |
3850 | ac_header_preproc=yes |
3851 | ;; | |
3852 | no:yes:* ) | |
39fd3d4f SJR |
3853 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 |
3854 | $as_echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} | |
3855 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 | |
3856 | $as_echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} | |
3857 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 | |
3858 | $as_echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} | |
3859 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3860 | $as_echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3861 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 | |
3862 | $as_echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} | |
3863 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 | |
3864 | $as_echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;} | |
e1052144 | 3865 | |
b0cacab0 TT |
3866 | ;; |
3867 | esac | |
39fd3d4f SJR |
3868 | { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
3869 | $as_echo_n "checking for linux/fs.h... " >&6; } | |
b0cacab0 | 3870 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
39fd3d4f | 3871 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
3872 | else |
3873 | ac_cv_header_linux_fs_h=$ac_header_preproc | |
3874 | fi | |
39fd3d4f SJR |
3875 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
3876 | $as_echo "$ac_cv_header_linux_fs_h" >&6; } | |
b0cacab0 | 3877 | |
07a0db15 | 3878 | fi |
39fd3d4f | 3879 | if test "x$ac_cv_header_linux_fs_h" = x""yes; then |
07a0db15 TT |
3880 | linux_headers=yes |
3881 | else | |
b0cacab0 | 3882 | linux_headers=no |
a64c9c13 TT |
3883 | fi |
3884 | ||
b0cacab0 | 3885 | |
a64c9c13 TT |
3886 | if test "$linux_headers" != yes; then |
3887 | LINUX_INCLUDE='-I$(top_builddir)/include' | |
3888 | fi | |
3889 | ||
39fd3d4f SJR |
3890 | { $as_echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
3891 | $as_echo_n "checking for additional special compiler flags... " >&6; } | |
b1c92f91 MA |
3892 | if test "$GCC" = yes |
3893 | then | |
3894 | case "$host_cpu" in | |
3895 | alpha) addcflags="-mieee" ;; | |
3896 | esac | |
3897 | fi | |
3898 | if test "x$addcflags" != x | |
3899 | then | |
39fd3d4f SJR |
3900 | { $as_echo "$as_me:$LINENO: result: $addcflags" >&5 |
3901 | $as_echo "$addcflags" >&6; } | |
b1c92f91 MA |
3902 | CFLAGS="$addcflags $CFLAGS" |
3903 | else | |
39fd3d4f SJR |
3904 | { $as_echo "$as_me:$LINENO: result: (none)" >&5 |
3905 | $as_echo "(none)" >&6; } | |
b1c92f91 | 3906 | fi |
a64c9c13 TT |
3907 | LIB_EXT=.a |
3908 | STATIC_LIB_EXT=.a | |
14b596d4 | 3909 | PROFILED_LIB_EXT=.a |
b0cacab0 | 3910 | |
e1052144 | 3911 | # Check whether --with-ldopts was given. |
a64c9c13 | 3912 | if test "${with_ldopts+set}" = set; then |
39fd3d4f SJR |
3913 | withval=$with_ldopts; { $as_echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
3914 | $as_echo "LDFLAGS is $withval" >&6; } | |
a64c9c13 | 3915 | LDFLAGS=$withval |
e1052144 | 3916 | fi |
a64c9c13 | 3917 | |
e1052144 TT |
3918 | |
3919 | # Check whether --with-root-prefix was given. | |
a64c9c13 | 3920 | if test "${with_root_prefix+set}" = set; then |
e1052144 | 3921 | withval=$with_root_prefix; root_prefix=$withval |
a64c9c13 TT |
3922 | else |
3923 | root_prefix=NONE | |
e1052144 TT |
3924 | fi |
3925 | # Check whether --enable-maintainer-mode was given. | |
98919bdb | 3926 | if test "${enable_maintainer_mode+set}" = set; then |
e1052144 | 3927 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
98919bdb TT |
3928 | then |
3929 | MAINTAINER_CMT=# | |
39fd3d4f SJR |
3930 | { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5 |
3931 | $as_echo "Disabling maintainer mode" >&6; } | |
98919bdb TT |
3932 | else |
3933 | MAINTAINER_CMT= | |
39fd3d4f SJR |
3934 | { $as_echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5 |
3935 | $as_echo "Enabling maintainer mode" >&6; } | |
98919bdb TT |
3936 | fi |
3937 | ||
3938 | else | |
3939 | MAINTAINER_CMT=# | |
39fd3d4f SJR |
3940 | { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5 |
3941 | $as_echo "Disabling maintainer mode by default" >&6; } | |
98919bdb | 3942 | |
e1052144 TT |
3943 | fi |
3944 | ||
98919bdb | 3945 | |
c13351f6 TT |
3946 | # Check whether --enable-verbose-makecmds was given. |
3947 | if test "${enable_verbose_makecmds+set}" = set; then | |
3948 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" | |
3949 | then | |
3950 | { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5 | |
3951 | $as_echo "Disabling verbose make commands" >&6; } | |
3952 | E=@echo | |
3953 | Q=@ | |
3954 | else | |
3955 | { $as_echo "$as_me:$LINENO: result: Enabling verbose make commands" >&5 | |
3956 | $as_echo "Enabling verbose make commands" >&6; } | |
3957 | E=@\\# | |
3958 | Q= | |
3959 | fi | |
3960 | ||
3961 | else | |
3962 | { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5 | |
3963 | $as_echo "Disabling verbose make commands" >&6; } | |
3964 | E=@echo | |
3965 | Q=@ | |
3966 | ||
3967 | fi | |
3968 | ||
3969 | ||
3970 | ||
e1052144 | 3971 | # Check whether --enable-compression was given. |
1917875f | 3972 | if test "${enable_compression+set}" = set; then |
e1052144 | 3973 | enableval=$enable_compression; if test "$enableval" = "no" |
1917875f | 3974 | then |
39fd3d4f SJR |
3975 | { $as_echo "$as_me:$LINENO: result: Disabling compression support" >&5 |
3976 | $as_echo "Disabling compression support" >&6; } | |
1917875f | 3977 | else |
b0cacab0 | 3978 | cat >>confdefs.h <<\_ACEOF |
1917875f | 3979 | #define ENABLE_COMPRESSION 1 |
b0cacab0 | 3980 | _ACEOF |
1917875f | 3981 | |
39fd3d4f SJR |
3982 | { $as_echo "$as_me:$LINENO: result: Enabling compression support" >&5 |
3983 | $as_echo "Enabling compression support" >&6; } | |
3984 | { $as_echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5 | |
3985 | $as_echo "$as_me: WARNING: Compression support is experimental" >&2;} | |
1917875f TT |
3986 | fi |
3987 | ||
3988 | else | |
39fd3d4f SJR |
3989 | { $as_echo "$as_me:$LINENO: result: Disabling compression support by default" >&5 |
3990 | $as_echo "Disabling compression support by default" >&6; } | |
1917875f | 3991 | |
e1052144 TT |
3992 | fi |
3993 | ||
3994 | # Check whether --enable-htree was given. | |
8fdc9985 | 3995 | if test "${enable_htree+set}" = set; then |
e1052144 | 3996 | enableval=$enable_htree; if test "$enableval" = "no" |
8fdc9985 TT |
3997 | then |
3998 | HTREE_CMT=# | |
39fd3d4f SJR |
3999 | { $as_echo "$as_me:$LINENO: result: Disabling htree directory support" >&5 |
4000 | $as_echo "Disabling htree directory support" >&6; } | |
8fdc9985 TT |
4001 | else |
4002 | HTREE_CMT= | |
b0cacab0 | 4003 | cat >>confdefs.h <<\_ACEOF |
8fdc9985 | 4004 | #define ENABLE_HTREE 1 |
b0cacab0 | 4005 | _ACEOF |
8fdc9985 | 4006 | |
39fd3d4f SJR |
4007 | { $as_echo "$as_me:$LINENO: result: Enabling htree directory support" >&5 |
4008 | $as_echo "Enabling htree directory support" >&6; } | |
8fdc9985 TT |
4009 | fi |
4010 | ||
4011 | else | |
559ca6cb | 4012 | HTREE_CMT= |
b0cacab0 | 4013 | cat >>confdefs.h <<\_ACEOF |
559ca6cb | 4014 | #define ENABLE_HTREE 1 |
b0cacab0 | 4015 | _ACEOF |
559ca6cb | 4016 | |
39fd3d4f SJR |
4017 | { $as_echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5 |
4018 | $as_echo "Enabling htree directory support by default" >&6; } | |
8fdc9985 | 4019 | |
e1052144 TT |
4020 | fi |
4021 | ||
8fdc9985 | 4022 | |
a4ece359 | 4023 | E2_PKG_CONFIG_STATIC=--static |
55da9876 TT |
4024 | LDFLAG_DYNAMIC= |
4025 | PRIVATE_LIBS_CMT= | |
e1052144 | 4026 | # Check whether --enable-elf-shlibs was given. |
a64c9c13 | 4027 | if test "${enable_elf_shlibs+set}" = set; then |
e1052144 | 4028 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
a64c9c13 TT |
4029 | then |
4030 | ELF_CMT=# | |
4031 | MAKEFILE_ELF=/dev/null | |
39fd3d4f SJR |
4032 | { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5 |
4033 | $as_echo "Disabling ELF shared libraries" >&6; } | |
a64c9c13 | 4034 | else |
a4ece359 | 4035 | E2_PKG_CONFIG_STATIC= |
a64c9c13 TT |
4036 | ELF_CMT= |
4037 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib | |
f5955dda TT |
4038 | case "$host_os" in |
4039 | solaris2.*) | |
4040 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib | |
4041 | ;; | |
4042 | esac | |
a64c9c13 TT |
4043 | BINARY_TYPE=elfbin |
4044 | LIB_EXT=.so | |
55da9876 TT |
4045 | PRIVATE_LIBS_CMT=# |
4046 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' | |
39fd3d4f SJR |
4047 | { $as_echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5 |
4048 | $as_echo "Enabling ELF shared libraries" >&6; } | |
a64c9c13 TT |
4049 | fi |
4050 | ||
4051 | else | |
4052 | MAKEFILE_ELF=/dev/null | |
4053 | ELF_CMT=# | |
39fd3d4f SJR |
4054 | { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5 |
4055 | $as_echo "Disabling ELF shared libraries by default" >&6; } | |
a64c9c13 | 4056 | |
e1052144 TT |
4057 | fi |
4058 | ||
93636bde | 4059 | |
a64c9c13 | 4060 | |
e1052144 | 4061 | # Check whether --enable-bsd-shlibs was given. |
a64c9c13 | 4062 | if test "${enable_bsd_shlibs+set}" = set; then |
e1052144 | 4063 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
a64c9c13 TT |
4064 | then |
4065 | BSDLIB_CMT=# | |
4066 | MAKEFILE_BSDLIB=/dev/null | |
39fd3d4f SJR |
4067 | { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5 |
4068 | $as_echo "Disabling BSD shared libraries" >&6; } | |
a64c9c13 | 4069 | else |
a4ece359 | 4070 | E2_PKG_CONFIG_STATIC= |
a64c9c13 TT |
4071 | BSDLIB_CMT= |
4072 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib | |
4073 | LIB_EXT=.so | |
e1f07228 | 4074 | case "$host_os" in |
aa75eccc | 4075 | darwin*) |
e1f07228 TT |
4076 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
4077 | LIB_EXT=.dylib | |
4078 | ;; | |
4079 | esac | |
39fd3d4f SJR |
4080 | { $as_echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5 |
4081 | $as_echo "Enabling BSD shared libraries" >&6; } | |
a64c9c13 TT |
4082 | fi |
4083 | ||
4084 | else | |
4085 | MAKEFILE_BSDLIB=/dev/null | |
4086 | BSDLIB_CMT=# | |
39fd3d4f SJR |
4087 | { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5 |
4088 | $as_echo "Disabling BSD shared libraries by default" >&6; } | |
a64c9c13 | 4089 | |
e1052144 TT |
4090 | fi |
4091 | ||
93636bde | 4092 | |
a64c9c13 | 4093 | |
e1052144 | 4094 | # Check whether --enable-profile was given. |
cdf186e4 | 4095 | if test "${enable_profile+set}" = set; then |
e1052144 | 4096 | enableval=$enable_profile; if test "$enableval" = "no" |
cdf186e4 TT |
4097 | then |
4098 | PROFILE_CMT=# | |
4099 | MAKEFILE_PROFILE=/dev/null | |
39fd3d4f SJR |
4100 | { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5 |
4101 | $as_echo "Disabling profiling libraries" >&6; } | |
cdf186e4 TT |
4102 | else |
4103 | PROFILE_CMT= | |
4104 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile | |
4105 | PROFILED_LIB_EXT=_p.a | |
39fd3d4f SJR |
4106 | { $as_echo "$as_me:$LINENO: result: Building profiling libraries" >&5 |
4107 | $as_echo "Building profiling libraries" >&6; } | |
cdf186e4 TT |
4108 | fi |
4109 | ||
4110 | else | |
4111 | PROFILE_CMT=# | |
4112 | MAKEFILE_PROFILE=/dev/null | |
39fd3d4f SJR |
4113 | { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5 |
4114 | $as_echo "Disabling profiling libraries by default" >&6; } | |
cdf186e4 | 4115 | |
e1052144 TT |
4116 | fi |
4117 | ||
93636bde | 4118 | |
cdf186e4 | 4119 | |
e1052144 | 4120 | # Check whether --enable-checker was given. |
cdf186e4 | 4121 | if test "${enable_checker+set}" = set; then |
e1052144 | 4122 | enableval=$enable_checker; if test "$enableval" = "no" |
cdf186e4 TT |
4123 | then |
4124 | CHECKER_CMT=# | |
4125 | MAKEFILE_CHECKER=/dev/null | |
39fd3d4f SJR |
4126 | { $as_echo "$as_me:$LINENO: result: Disabling checker libraries" >&5 |
4127 | $as_echo "Disabling checker libraries" >&6; } | |
cdf186e4 TT |
4128 | else |
4129 | CHECKER_CMT= | |
4130 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker | |
39fd3d4f SJR |
4131 | { $as_echo "$as_me:$LINENO: result: Building checker libraries" >&5 |
4132 | $as_echo "Building checker libraries" >&6; } | |
cdf186e4 TT |
4133 | fi |
4134 | ||
4135 | else | |
4136 | CHECKER_CMT=# | |
4137 | MAKEFILE_CHECKER=/dev/null | |
39fd3d4f SJR |
4138 | { $as_echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5 |
4139 | $as_echo "Disabling checker libraries by default" >&6; } | |
cdf186e4 | 4140 | |
e1052144 TT |
4141 | fi |
4142 | ||
93636bde TT |
4143 | |
4144 | ||
4145 | ||
4146 | ||
cdf186e4 | 4147 | |
55da9876 TT |
4148 | |
4149 | ||
e1052144 | 4150 | # Check whether --enable-jbd-debug was given. |
782bebfd | 4151 | if test "${enable_jbd_debug+set}" = set; then |
e1052144 | 4152 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
80bfaa3e | 4153 | then |
39fd3d4f SJR |
4154 | { $as_echo "$as_me:$LINENO: result: Disabling journal debugging" >&5 |
4155 | $as_echo "Disabling journal debugging" >&6; } | |
80bfaa3e | 4156 | else |
b0cacab0 | 4157 | cat >>confdefs.h <<\_ACEOF |
8cf93332 | 4158 | #define CONFIG_JBD_DEBUG 1 |
b0cacab0 | 4159 | _ACEOF |
80bfaa3e | 4160 | |
39fd3d4f SJR |
4161 | { $as_echo "$as_me:$LINENO: result: Enabling journal debugging" >&5 |
4162 | $as_echo "Enabling journal debugging" >&6; } | |
80bfaa3e TT |
4163 | fi |
4164 | ||
4165 | else | |
39fd3d4f SJR |
4166 | { $as_echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5 |
4167 | $as_echo "Disabling journal debugging by default" >&6; } | |
80bfaa3e | 4168 | |
e1052144 TT |
4169 | fi |
4170 | ||
4171 | # Check whether --enable-blkid-debug was given. | |
f0a22d0f | 4172 | if test "${enable_blkid_debug+set}" = set; then |
e1052144 | 4173 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
f0a22d0f | 4174 | then |
39fd3d4f SJR |
4175 | { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5 |
4176 | $as_echo "Disabling blkid debugging" >&6; } | |
f0a22d0f | 4177 | else |
b0cacab0 | 4178 | cat >>confdefs.h <<\_ACEOF |
f0a22d0f | 4179 | #define CONFIG_BLKID_DEBUG 1 |
b0cacab0 | 4180 | _ACEOF |
f0a22d0f | 4181 | |
39fd3d4f SJR |
4182 | { $as_echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5 |
4183 | $as_echo "Enabling blkid debugging" >&6; } | |
f0a22d0f TT |
4184 | fi |
4185 | ||
4186 | else | |
39fd3d4f SJR |
4187 | { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5 |
4188 | $as_echo "Disabling blkid debugging by default" >&6; } | |
f0a22d0f | 4189 | |
e1052144 TT |
4190 | fi |
4191 | ||
4192 | # Check whether --enable-testio-debug was given. | |
2a29f135 | 4193 | if test "${enable_testio_debug+set}" = set; then |
e1052144 | 4194 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
2a29f135 | 4195 | then |
39fd3d4f SJR |
4196 | { $as_echo "$as_me:$LINENO: result: Disabling testio debugging" >&5 |
4197 | $as_echo "Disabling testio debugging" >&6; } | |
af773654 | 4198 | TEST_IO_CMT="#" |
2a29f135 | 4199 | else |
af773654 | 4200 | TEST_IO_CMT= |
b0cacab0 | 4201 | cat >>confdefs.h <<\_ACEOF |
2a29f135 | 4202 | #define CONFIG_TESTIO_DEBUG 1 |
b0cacab0 | 4203 | _ACEOF |
2a29f135 | 4204 | |
39fd3d4f SJR |
4205 | { $as_echo "$as_me:$LINENO: result: Enabling testio debugging" >&5 |
4206 | $as_echo "Enabling testio debugging" >&6; } | |
2a29f135 TT |
4207 | fi |
4208 | ||
4209 | else | |
39fd3d4f SJR |
4210 | { $as_echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5 |
4211 | $as_echo "Enabling testio debugging by default" >&6; } | |
af773654 TT |
4212 | cat >>confdefs.h <<\_ACEOF |
4213 | #define CONFIG_TESTIO_DEBUG 1 | |
4214 | _ACEOF | |
4215 | ||
4216 | TEST_IO_CMT= | |
2a29f135 | 4217 | |
e1052144 TT |
4218 | fi |
4219 | ||
af773654 | 4220 | |
14b596d4 TT |
4221 | |
4222 | ||
4223 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
4224 | if test -n "$ac_tool_prefix"; then | |
4225 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
4226 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
39fd3d4f SJR |
4227 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4228 | $as_echo_n "checking for $ac_word... " >&6; } | |
4229 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
4230 | $as_echo_n "(cached) " >&6 | |
4231 | else | |
4232 | case $PKG_CONFIG in | |
4233 | [\\/]* | ?:[\\/]*) | |
4234 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
4235 | ;; | |
4236 | *) | |
4237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4238 | for as_dir in $PATH | |
4239 | do | |
4240 | IFS=$as_save_IFS | |
4241 | test -z "$as_dir" && as_dir=. | |
4242 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4243 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4244 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4245 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4246 | break 2 | |
4247 | fi | |
4248 | done | |
4249 | done | |
4250 | IFS=$as_save_IFS | |
4251 | ||
4252 | ;; | |
4253 | esac | |
4254 | fi | |
4255 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
4256 | if test -n "$PKG_CONFIG"; then | |
4257 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
4258 | $as_echo "$PKG_CONFIG" >&6; } | |
4259 | else | |
4260 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4261 | $as_echo "no" >&6; } | |
4262 | fi | |
4263 | ||
4264 | ||
4265 | fi | |
4266 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
4267 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
4268 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
4269 | set dummy pkg-config; ac_word=$2 | |
4270 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4271 | $as_echo_n "checking for $ac_word... " >&6; } | |
4272 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
4273 | $as_echo_n "(cached) " >&6 | |
4274 | else | |
4275 | case $ac_pt_PKG_CONFIG in | |
4276 | [\\/]* | ?:[\\/]*) | |
4277 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
4278 | ;; | |
4279 | *) | |
4280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4281 | for as_dir in $PATH | |
4282 | do | |
4283 | IFS=$as_save_IFS | |
4284 | test -z "$as_dir" && as_dir=. | |
4285 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4287 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4288 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4289 | break 2 | |
4290 | fi | |
4291 | done | |
4292 | done | |
4293 | IFS=$as_save_IFS | |
4294 | ||
4295 | ;; | |
4296 | esac | |
4297 | fi | |
4298 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
4299 | if test -n "$ac_pt_PKG_CONFIG"; then | |
4300 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
4301 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
4302 | else | |
4303 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4304 | $as_echo "no" >&6; } | |
4305 | fi | |
4306 | ||
4307 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
4308 | PKG_CONFIG="" | |
4309 | else | |
4310 | case $cross_compiling:$ac_tool_warned in | |
4311 | yes:) | |
4312 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4313 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4314 | ac_tool_warned=yes ;; | |
4315 | esac | |
4316 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
4317 | fi | |
4318 | else | |
4319 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
4320 | fi | |
4321 | ||
4322 | fi | |
4323 | if test -n "$PKG_CONFIG"; then | |
4324 | _pkg_min_version=0.9.0 | |
4325 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
4326 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
4327 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
4328 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
4329 | $as_echo "yes" >&6; } | |
4330 | else | |
4331 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4332 | $as_echo "no" >&6; } | |
4333 | PKG_CONFIG="" | |
4334 | fi | |
4335 | ||
4336 | fi | |
4337 | LIBUUID= | |
4338 | DEPLIBUUID= | |
4339 | STATIC_LIBUUID= | |
4340 | DEPSTATIC_LIBUUID= | |
4341 | PROFILED_LIBUUID= | |
4342 | DEPPROFILED_LIBUUID= | |
4343 | UUID_CMT= | |
4344 | # Check whether --enable-libuuid was given. | |
4345 | if test "${enable_libuuid+set}" = set; then | |
4346 | enableval=$enable_libuuid; if test "$enableval" = "no" | |
4347 | then | |
4348 | if test -z "$PKG_CONFIG"; then | |
4349 | { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5 | |
4350 | $as_echo "$as_me: error: pkg-config not installed; please install it." >&2;} | |
4351 | { (exit 1); exit 1; }; } | |
4352 | fi | |
4353 | ||
4354 | { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 | |
4355 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
4356 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then | |
4357 | $as_echo_n "(cached) " >&6 | |
4358 | else | |
4359 | ac_check_lib_save_LIBS=$LIBS | |
4360 | LIBS="-luuid $LIBUUID $LIBS" | |
4361 | cat >conftest.$ac_ext <<_ACEOF | |
4362 | /* confdefs.h. */ | |
4363 | _ACEOF | |
4364 | cat confdefs.h >>conftest.$ac_ext | |
4365 | cat >>conftest.$ac_ext <<_ACEOF | |
4366 | /* end confdefs.h. */ | |
4367 | ||
4368 | /* Override any GCC internal prototype to avoid an error. | |
4369 | Use char because int might match the return type of a GCC | |
4370 | builtin and then its argument prototype would still apply. */ | |
4371 | #ifdef __cplusplus | |
4372 | extern "C" | |
4373 | #endif | |
4374 | char uuid_generate (); | |
4375 | int | |
4376 | main () | |
4377 | { | |
4378 | return uuid_generate (); | |
4379 | ; | |
4380 | return 0; | |
4381 | } | |
4382 | _ACEOF | |
4383 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4384 | if { (ac_try="$ac_link" | |
4385 | case "(($ac_try" in | |
4386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4387 | *) ac_try_echo=$ac_try;; | |
4388 | esac | |
4389 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4390 | $as_echo "$ac_try_echo") >&5 | |
4391 | (eval "$ac_link") 2>conftest.er1 | |
4392 | ac_status=$? | |
4393 | grep -v '^ *+' conftest.er1 >conftest.err | |
4394 | rm -f conftest.er1 | |
4395 | cat conftest.err >&5 | |
4396 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4397 | (exit $ac_status); } && { | |
4398 | test -z "$ac_c_werror_flag" || | |
4399 | test ! -s conftest.err | |
4400 | } && test -s conftest$ac_exeext && { | |
4401 | test "$cross_compiling" = yes || | |
4402 | $as_test_x conftest$ac_exeext | |
4403 | }; then | |
4404 | ac_cv_lib_uuid_uuid_generate=yes | |
4405 | else | |
4406 | $as_echo "$as_me: failed program was:" >&5 | |
4407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4408 | ||
4409 | ac_cv_lib_uuid_uuid_generate=no | |
4410 | fi | |
4411 | ||
4412 | rm -rf conftest.dSYM | |
4413 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4414 | conftest$ac_exeext conftest.$ac_ext | |
4415 | LIBS=$ac_check_lib_save_LIBS | |
4416 | fi | |
4417 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
4418 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
4419 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then | |
4420 | LIBUUID=`$PKG_CONFIG --libs uuid`; | |
4421 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` | |
4422 | else | |
4423 | { { $as_echo "$as_me:$LINENO: error: external uuid library not found" >&5 | |
4424 | $as_echo "$as_me: error: external uuid library not found" >&2;} | |
4425 | { (exit 1); exit 1; }; } | |
4426 | fi | |
4427 | ||
4428 | UUID_CMT=# | |
4429 | { $as_echo "$as_me:$LINENO: result: Disabling private uuid library" >&5 | |
4430 | $as_echo "Disabling private uuid library" >&6; } | |
4431 | else | |
4432 | LIBUUID='$(LIB)/libuuid'$LIB_EXT | |
4433 | DEPLIBUUID=$LIBUUID | |
4434 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT | |
4435 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID | |
4436 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT | |
4437 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID | |
4438 | { $as_echo "$as_me:$LINENO: result: Enabling private uuid library" >&5 | |
4439 | $as_echo "Enabling private uuid library" >&6; } | |
4440 | fi | |
4441 | ||
4442 | else | |
4443 | LIBUUID='$(LIB)/libuuid'$LIB_EXT | |
4444 | DEPLIBUUID=$LIBUUID | |
4445 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT | |
4446 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID | |
4447 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT | |
4448 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID | |
4449 | { $as_echo "$as_me:$LINENO: result: Enabling private uuid library by default" >&5 | |
4450 | $as_echo "Enabling private uuid library by default" >&6; } | |
4451 | ||
4452 | fi | |
4453 | ||
4454 | ||
4455 | ||
4456 | ||
4457 | ||
4458 | ||
4459 | ||
4460 | ||
4461 | ||
4462 | ||
4463 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
4464 | if test -n "$ac_tool_prefix"; then | |
4465 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
4466 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
4467 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4468 | $as_echo_n "checking for $ac_word... " >&6; } | |
14b596d4 | 4469 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
39fd3d4f | 4470 | $as_echo_n "(cached) " >&6 |
14b596d4 TT |
4471 | else |
4472 | case $PKG_CONFIG in | |
4473 | [\\/]* | ?:[\\/]*) | |
4474 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
4475 | ;; | |
4476 | *) | |
4477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4478 | for as_dir in $PATH | |
4479 | do | |
4480 | IFS=$as_save_IFS | |
4481 | test -z "$as_dir" && as_dir=. | |
4482 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4484 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
39fd3d4f | 4485 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14b596d4 TT |
4486 | break 2 |
4487 | fi | |
4488 | done | |
4489 | done | |
4490 | IFS=$as_save_IFS | |
4491 | ||
4492 | ;; | |
4493 | esac | |
4494 | fi | |
4495 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
4496 | if test -n "$PKG_CONFIG"; then | |
39fd3d4f SJR |
4497 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
4498 | $as_echo "$PKG_CONFIG" >&6; } | |
14b596d4 | 4499 | else |
39fd3d4f SJR |
4500 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4501 | $as_echo "no" >&6; } | |
14b596d4 TT |
4502 | fi |
4503 | ||
4504 | ||
4505 | fi | |
4506 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
4507 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
4508 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
4509 | set dummy pkg-config; ac_word=$2 | |
39fd3d4f SJR |
4510 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4511 | $as_echo_n "checking for $ac_word... " >&6; } | |
14b596d4 | 4512 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
39fd3d4f | 4513 | $as_echo_n "(cached) " >&6 |
14b596d4 TT |
4514 | else |
4515 | case $ac_pt_PKG_CONFIG in | |
4516 | [\\/]* | ?:[\\/]*) | |
4517 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
4518 | ;; | |
4519 | *) | |
4520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4521 | for as_dir in $PATH | |
4522 | do | |
4523 | IFS=$as_save_IFS | |
4524 | test -z "$as_dir" && as_dir=. | |
4525 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4527 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
39fd3d4f | 4528 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14b596d4 TT |
4529 | break 2 |
4530 | fi | |
4531 | done | |
4532 | done | |
4533 | IFS=$as_save_IFS | |
4534 | ||
4535 | ;; | |
4536 | esac | |
4537 | fi | |
4538 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
4539 | if test -n "$ac_pt_PKG_CONFIG"; then | |
39fd3d4f SJR |
4540 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
4541 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
14b596d4 | 4542 | else |
39fd3d4f SJR |
4543 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4544 | $as_echo "no" >&6; } | |
14b596d4 TT |
4545 | fi |
4546 | ||
4547 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
4548 | PKG_CONFIG="" | |
4549 | else | |
4550 | case $cross_compiling:$ac_tool_warned in | |
4551 | yes:) | |
39fd3d4f SJR |
4552 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4553 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
14b596d4 TT |
4554 | ac_tool_warned=yes ;; |
4555 | esac | |
4556 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
4557 | fi | |
4558 | else | |
4559 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
4560 | fi | |
4561 | ||
4562 | fi | |
4563 | if test -n "$PKG_CONFIG"; then | |
4564 | _pkg_min_version=0.9.0 | |
39fd3d4f SJR |
4565 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
4566 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
14b596d4 | 4567 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
39fd3d4f SJR |
4568 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
4569 | $as_echo "yes" >&6; } | |
14b596d4 | 4570 | else |
39fd3d4f SJR |
4571 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4572 | $as_echo "no" >&6; } | |
14b596d4 TT |
4573 | PKG_CONFIG="" |
4574 | fi | |
4575 | ||
4576 | fi | |
4577 | LIBBLKID= | |
4578 | DEPLIBBLKID= | |
4579 | STATIC_LIBBLKID= | |
4580 | DEPSTATIC_LIBBLKID= | |
4581 | PROFILED_LIBBLKID= | |
4582 | DEPPROFILED_LIBBLKID= | |
4583 | BLKID_CMT= | |
4584 | # Check whether --enable-libblkid was given. | |
4585 | if test "${enable_libblkid+set}" = set; then | |
4586 | enableval=$enable_libblkid; if test "$enableval" = "no" | |
4587 | then | |
4588 | if test -z "$PKG_CONFIG"; then | |
39fd3d4f SJR |
4589 | { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5 |
4590 | $as_echo "$as_me: error: pkg-config not installed; please install it." >&2;} | |
14b596d4 TT |
4591 | { (exit 1); exit 1; }; } |
4592 | fi | |
4593 | ||
39fd3d4f SJR |
4594 | { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5 |
4595 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
14b596d4 | 4596 | if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then |
39fd3d4f | 4597 | $as_echo_n "(cached) " >&6 |
14b596d4 TT |
4598 | else |
4599 | ac_check_lib_save_LIBS=$LIBS | |
4600 | LIBS="-lblkid $LIBBLKID $LIBS" | |
4601 | cat >conftest.$ac_ext <<_ACEOF | |
4602 | /* confdefs.h. */ | |
4603 | _ACEOF | |
4604 | cat confdefs.h >>conftest.$ac_ext | |
4605 | cat >>conftest.$ac_ext <<_ACEOF | |
4606 | /* end confdefs.h. */ | |
4607 | ||
4608 | /* Override any GCC internal prototype to avoid an error. | |
4609 | Use char because int might match the return type of a GCC | |
4610 | builtin and then its argument prototype would still apply. */ | |
4611 | #ifdef __cplusplus | |
4612 | extern "C" | |
4613 | #endif | |
4614 | char blkid_get_cache (); | |
4615 | int | |
4616 | main () | |
4617 | { | |
4618 | return blkid_get_cache (); | |
4619 | ; | |
4620 | return 0; | |
4621 | } | |
4622 | _ACEOF | |
4623 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4624 | if { (ac_try="$ac_link" | |
4625 | case "(($ac_try" in | |
4626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4627 | *) ac_try_echo=$ac_try;; | |
4628 | esac | |
39fd3d4f SJR |
4629 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4630 | $as_echo "$ac_try_echo") >&5 | |
14b596d4 TT |
4631 | (eval "$ac_link") 2>conftest.er1 |
4632 | ac_status=$? | |
4633 | grep -v '^ *+' conftest.er1 >conftest.err | |
4634 | rm -f conftest.er1 | |
4635 | cat conftest.err >&5 | |
39fd3d4f | 4636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14b596d4 TT |
4637 | (exit $ac_status); } && { |
4638 | test -z "$ac_c_werror_flag" || | |
4639 | test ! -s conftest.err | |
39fd3d4f SJR |
4640 | } && test -s conftest$ac_exeext && { |
4641 | test "$cross_compiling" = yes || | |
4642 | $as_test_x conftest$ac_exeext | |
4643 | }; then | |
14b596d4 TT |
4644 | ac_cv_lib_blkid_blkid_get_cache=yes |
4645 | else | |
39fd3d4f | 4646 | $as_echo "$as_me: failed program was:" >&5 |
14b596d4 TT |
4647 | sed 's/^/| /' conftest.$ac_ext >&5 |
4648 | ||
4649 | ac_cv_lib_blkid_blkid_get_cache=no | |
4650 | fi | |
4651 | ||
39fd3d4f | 4652 | rm -rf conftest.dSYM |
14b596d4 TT |
4653 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4654 | conftest$ac_exeext conftest.$ac_ext | |
4655 | LIBS=$ac_check_lib_save_LIBS | |
4656 | fi | |
39fd3d4f SJR |
4657 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
4658 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
4659 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then | |
14b596d4 TT |
4660 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
4661 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` | |
4662 | else | |
39fd3d4f SJR |
4663 | { { $as_echo "$as_me:$LINENO: error: external blkid library not found" >&5 |
4664 | $as_echo "$as_me: error: external blkid library not found" >&2;} | |
14b596d4 TT |
4665 | { (exit 1); exit 1; }; } |
4666 | fi | |
4667 | ||
4668 | BLKID_CMT=# | |
39fd3d4f SJR |
4669 | { $as_echo "$as_me:$LINENO: result: Disabling private blkid library" >&5 |
4670 | $as_echo "Disabling private blkid library" >&6; } | |
14b596d4 TT |
4671 | else |
4672 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT | |
4673 | DEPLIBBLKID=$LIBBLKID | |
4674 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT | |
4675 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID | |
4676 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT | |
4677 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID | |
4678 | cat >>confdefs.h <<\_ACEOF | |
4679 | #define CONFIG_BUILD_FINDFS 1 | |
4680 | _ACEOF | |
4681 | ||
39fd3d4f SJR |
4682 | { $as_echo "$as_me:$LINENO: result: Enabling private blkid library" >&5 |
4683 | $as_echo "Enabling private blkid library" >&6; } | |
14b596d4 TT |
4684 | fi |
4685 | ||
4686 | else | |
4687 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT | |
4688 | DEPLIBBLKID=$LIBBLKID | |
4689 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT | |
4690 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID | |
4691 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT | |
4692 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID | |
4693 | cat >>confdefs.h <<\_ACEOF | |
4694 | #define CONFIG_BUILD_FINDFS 1 | |
4695 | _ACEOF | |
4696 | ||
39fd3d4f SJR |
4697 | { $as_echo "$as_me:$LINENO: result: Enabling private blkid library by default" >&5 |
4698 | $as_echo "Enabling private blkid library by default" >&6; } | |
14b596d4 TT |
4699 | |
4700 | fi | |
4701 | ||
4702 | ||
4703 | ||
4704 | ||
4705 | ||
4706 | ||
4707 | ||
4708 | ||
e1052144 | 4709 | # Check whether --enable-debugfs was given. |
cdf186e4 | 4710 | if test "${enable_debugfs+set}" = set; then |
e1052144 | 4711 | enableval=$enable_debugfs; if test "$enableval" = "no" |
cdf186e4 | 4712 | then |
39fd3d4f SJR |
4713 | { $as_echo "$as_me:$LINENO: result: Disabling debugfs support" >&5 |
4714 | $as_echo "Disabling debugfs support" >&6; } | |
cdf186e4 TT |
4715 | DEBUGFS_CMT="#" |
4716 | else | |
cdf186e4 | 4717 | DEBUGFS_CMT= |
39fd3d4f SJR |
4718 | { $as_echo "$as_me:$LINENO: result: Enabling debugfs support" >&5 |
4719 | $as_echo "Enabling debugfs support" >&6; } | |
cdf186e4 TT |
4720 | fi |
4721 | ||
4722 | else | |
39fd3d4f SJR |
4723 | { $as_echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5 |
4724 | $as_echo "Enabling debugfs support by default" >&6; } | |
cdf186e4 TT |
4725 | DEBUGFS_CMT= |
4726 | ||
e1052144 TT |
4727 | fi |
4728 | ||
cdf186e4 | 4729 | |
e1052144 | 4730 | # Check whether --enable-imager was given. |
cdf186e4 | 4731 | if test "${enable_imager+set}" = set; then |
e1052144 | 4732 | enableval=$enable_imager; if test "$enableval" = "no" |
cdf186e4 | 4733 | then |
39fd3d4f SJR |
4734 | { $as_echo "$as_me:$LINENO: result: Disabling e2image support" >&5 |
4735 | $as_echo "Disabling e2image support" >&6; } | |
cdf186e4 TT |
4736 | IMAGER_CMT="#" |
4737 | else | |
cdf186e4 | 4738 | IMAGER_CMT= |
39fd3d4f SJR |
4739 | { $as_echo "$as_me:$LINENO: result: Enabling e2image support" >&5 |
4740 | $as_echo "Enabling e2image support" >&6; } | |
cdf186e4 TT |
4741 | fi |
4742 | ||
4743 | else | |
39fd3d4f SJR |
4744 | { $as_echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5 |
4745 | $as_echo "Enabling e2image support by default" >&6; } | |
cdf186e4 TT |
4746 | IMAGER_CMT= |
4747 | ||
e1052144 TT |
4748 | fi |
4749 | ||
cdf186e4 | 4750 | |
e1052144 | 4751 | # Check whether --enable-resizer was given. |
cdf186e4 | 4752 | if test "${enable_resizer+set}" = set; then |
e1052144 | 4753 | enableval=$enable_resizer; if test "$enableval" = "no" |
cdf186e4 | 4754 | then |
39fd3d4f SJR |
4755 | { $as_echo "$as_me:$LINENO: result: Disabling e2resize support" >&5 |
4756 | $as_echo "Disabling e2resize support" >&6; } | |
cdf186e4 TT |
4757 | RESIZER_CMT="#" |
4758 | else | |
cdf186e4 | 4759 | RESIZER_CMT= |
39fd3d4f SJR |
4760 | { $as_echo "$as_me:$LINENO: result: Enabling e2resize support" >&5 |
4761 | $as_echo "Enabling e2resize support" >&6; } | |
cdf186e4 TT |
4762 | fi |
4763 | ||
4764 | else | |
39fd3d4f SJR |
4765 | { $as_echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5 |
4766 | $as_echo "Enabling e2resize support by default" >&6; } | |
cdf186e4 TT |
4767 | RESIZER_CMT= |
4768 | ||
e1052144 TT |
4769 | fi |
4770 | ||
cdf186e4 | 4771 | |
e1052144 | 4772 | # Check whether --enable-fsck was given. |
cdf186e4 | 4773 | if test "${enable_fsck+set}" = set; then |
e1052144 | 4774 | enableval=$enable_fsck; if test "$enableval" = "no" |
cdf186e4 TT |
4775 | then |
4776 | FSCK_PROG='' FSCK_MAN='' | |
39fd3d4f SJR |
4777 | { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5 |
4778 | $as_echo "Not building fsck wrapper" >&6; } | |
cdf186e4 TT |
4779 | else |
4780 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
39fd3d4f SJR |
4781 | { $as_echo "$as_me:$LINENO: result: Building fsck wrapper" >&5 |
4782 | $as_echo "Building fsck wrapper" >&6; } | |
cdf186e4 TT |
4783 | fi |
4784 | ||
4785 | else | |
4786 | case "$host_os" in | |
e363240d | 4787 | gnu*) |
cdf186e4 | 4788 | FSCK_PROG='' FSCK_MAN='' |
39fd3d4f SJR |
4789 | { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5 |
4790 | $as_echo "Not building fsck wrapper by default" >&6; } | |
cdf186e4 TT |
4791 | ;; |
4792 | *) | |
4793 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
39fd3d4f SJR |
4794 | { $as_echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5 |
4795 | $as_echo "Building fsck wrapper by default" >&6; } | |
cdf186e4 TT |
4796 | esac |
4797 | ||
e1052144 TT |
4798 | fi |
4799 | ||
93636bde | 4800 | |
cdf186e4 | 4801 | |
e1052144 | 4802 | # Check whether --enable-e2initrd-helper was given. |
5d40773b | 4803 | if test "${enable_e2initrd_helper+set}" = set; then |
e1052144 | 4804 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
5d40773b TT |
4805 | then |
4806 | E2INITRD_PROG='' E2INITRD_MAN='' | |
39fd3d4f SJR |
4807 | { $as_echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5 |
4808 | $as_echo "Not building e2initrd helper" >&6; } | |
5d40773b TT |
4809 | else |
4810 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 | |
39fd3d4f SJR |
4811 | { $as_echo "$as_me:$LINENO: result: Building e2initrd helper" >&5 |
4812 | $as_echo "Building e2initrd helper" >&6; } | |
5d40773b TT |
4813 | fi |
4814 | ||
4815 | else | |
4816 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 | |
39fd3d4f SJR |
4817 | { $as_echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5 |
4818 | $as_echo "Building e2initrd helper by default" >&6; } | |
5d40773b | 4819 | |
e1052144 TT |
4820 | fi |
4821 | ||
5d40773b TT |
4822 | |
4823 | ||
3249394d TT |
4824 | # Check whether --enable-tls was given. |
4825 | if test "${enable_tls+set}" = set; then | |
4826 | enableval=$enable_tls; if test "$enableval" = "no" | |
4827 | then | |
4828 | try_tls="" | |
39fd3d4f SJR |
4829 | { $as_echo "$as_me:$LINENO: result: Disabling thread local support" >&5 |
4830 | $as_echo "Disabling thread local support" >&6; } | |
3249394d TT |
4831 | else |
4832 | try_tls="yes" | |
39fd3d4f SJR |
4833 | { $as_echo "$as_me:$LINENO: result: Enabling thread local support" >&5 |
4834 | $as_echo "Enabling thread local support" >&6; } | |
3249394d TT |
4835 | fi |
4836 | ||
4837 | else | |
eafba6c3 TT |
4838 | if test -n "$WITH_DIET_LIBC" |
4839 | then | |
4840 | try_tls="" | |
39fd3d4f SJR |
4841 | { $as_echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5 |
4842 | $as_echo "Diet libc does not support thread local support" >&6; } | |
eafba6c3 TT |
4843 | else |
4844 | try_tls="yes" | |
39fd3d4f SJR |
4845 | { $as_echo "$as_me:$LINENO: result: Try using thread local support by default" >&5 |
4846 | $as_echo "Try using thread local support by default" >&6; } | |
eafba6c3 | 4847 | fi |
3249394d TT |
4848 | |
4849 | fi | |
4850 | ||
4851 | if test "$try_tls" = "yes" | |
4852 | then | |
4853 | ||
39fd3d4f SJR |
4854 | { $as_echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5 |
4855 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } | |
3249394d | 4856 | if test "${ac_cv_tls+set}" = set; then |
39fd3d4f | 4857 | $as_echo_n "(cached) " >&6 |
3249394d TT |
4858 | else |
4859 | ||
4860 | ax_tls_keywords="__thread __declspec(thread) none" | |
4861 | for ax_tls_keyword in $ax_tls_keywords; do | |
4862 | case $ax_tls_keyword in | |
4863 | none) ac_cv_tls=none ; break ;; | |
4864 | *) | |
4865 | cat >conftest.$ac_ext <<_ACEOF | |
4866 | /* confdefs.h. */ | |
4867 | _ACEOF | |
4868 | cat confdefs.h >>conftest.$ac_ext | |
4869 | cat >>conftest.$ac_ext <<_ACEOF | |
4870 | /* end confdefs.h. */ | |
4871 | #include <stdlib.h> | |
4872 | static void | |
4873 | foo(void) { | |
4874 | static $ax_tls_keyword int bar; | |
4875 | exit(1); | |
4876 | } | |
4877 | int | |
4878 | main () | |
4879 | { | |
4880 | ||
4881 | ; | |
4882 | return 0; | |
4883 | } | |
4884 | _ACEOF | |
4885 | rm -f conftest.$ac_objext | |
4886 | if { (ac_try="$ac_compile" | |
4887 | case "(($ac_try" in | |
4888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4889 | *) ac_try_echo=$ac_try;; | |
4890 | esac | |
39fd3d4f SJR |
4891 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4892 | $as_echo "$ac_try_echo") >&5 | |
3249394d TT |
4893 | (eval "$ac_compile") 2>conftest.er1 |
4894 | ac_status=$? | |
4895 | grep -v '^ *+' conftest.er1 >conftest.err | |
4896 | rm -f conftest.er1 | |
4897 | cat conftest.err >&5 | |
39fd3d4f | 4898 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3249394d TT |
4899 | (exit $ac_status); } && { |
4900 | test -z "$ac_c_werror_flag" || | |
4901 | test ! -s conftest.err | |
4902 | } && test -s conftest.$ac_objext; then | |
4903 | ac_cv_tls=$ax_tls_keyword ; break | |
4904 | else | |
39fd3d4f | 4905 | $as_echo "$as_me: failed program was:" >&5 |
3249394d TT |
4906 | sed 's/^/| /' conftest.$ac_ext >&5 |
4907 | ||
4908 | ac_cv_tls=none | |
4909 | ||
4910 | fi | |
4911 | ||
4912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4913 | esac | |
4914 | done | |
4915 | ||
4916 | fi | |
4917 | ||
4918 | ||
4919 | if test "$ac_cv_tls" != "none"; then | |
4920 | ||
4921 | cat >>confdefs.h <<_ACEOF | |
4922 | #define TLS $ac_cv_tls | |
4923 | _ACEOF | |
4924 | ||
4925 | fi | |
39fd3d4f SJR |
4926 | { $as_echo "$as_me:$LINENO: result: $ac_cv_tls" >&5 |
4927 | $as_echo "$ac_cv_tls" >&6; } | |
3249394d TT |
4928 | |
4929 | fi | |
5610f992 TT |
4930 | # Check whether --enable-uuidd was given. |
4931 | if test "${enable_uuidd+set}" = set; then | |
4932 | enableval=$enable_uuidd; if test "$enableval" = "no" | |
4933 | then | |
39fd3d4f SJR |
4934 | { $as_echo "$as_me:$LINENO: result: Not building uuidd" >&5 |
4935 | $as_echo "Not building uuidd" >&6; } | |
5610f992 TT |
4936 | UUIDD_CMT="#" |
4937 | else | |
4938 | cat >>confdefs.h <<\_ACEOF | |
4939 | #define USE_UUIDD 1 | |
4940 | _ACEOF | |
4941 | ||
4942 | UUIDD_CMT="" | |
39fd3d4f SJR |
4943 | { $as_echo "$as_me:$LINENO: result: Building uuidd" >&5 |
4944 | $as_echo "Building uuidd" >&6; } | |
5610f992 TT |
4945 | fi |
4946 | ||
4947 | else | |
4948 | cat >>confdefs.h <<\_ACEOF | |
4949 | #define USE_UUIDD 1 | |
4950 | _ACEOF | |
4951 | ||
4952 | UUIDD_CMT="" | |
39fd3d4f SJR |
4953 | { $as_echo "$as_me:$LINENO: result: Building uuidd by default" >&5 |
4954 | $as_echo "Building uuidd by default" >&6; } | |
5610f992 TT |
4955 | |
4956 | fi | |
4957 | ||
4958 | ||
cdf186e4 TT |
4959 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
4960 | ||
b0cacab0 | 4961 | GETTEXT_PACKAGE=e2fsprogs |
a64c9c13 TT |
4962 | PACKAGE=e2fsprogs |
4963 | VERSION="$E2FSPROGS_VERSION" | |
b0cacab0 TT |
4964 | VERSION=0.14.1 |
4965 | cat >>confdefs.h <<_ACEOF | |
a64c9c13 | 4966 | #define PACKAGE "$PACKAGE" |
b0cacab0 | 4967 | _ACEOF |
a64c9c13 | 4968 | |
b0cacab0 | 4969 | cat >>confdefs.h <<_ACEOF |
a64c9c13 | 4970 | #define VERSION "$VERSION" |
b0cacab0 | 4971 | _ACEOF |
93636bde TT |
4972 | |
4973 | ||
93636bde | 4974 | |
93636bde TT |
4975 | |
4976 | ||
39fd3d4f SJR |
4977 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4978 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4979 | set x ${MAKE-make} | |
4980 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
e1052144 | 4981 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 4982 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 4983 | else |
b0cacab0 | 4984 | cat >conftest.make <<\_ACEOF |
e1052144 | 4985 | SHELL = /bin/sh |
a64c9c13 | 4986 | all: |
e1052144 | 4987 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
b0cacab0 | 4988 | _ACEOF |
a64c9c13 | 4989 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e1052144 TT |
4990 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4991 | *@@@%%%=?*=@@@%%%*) | |
4992 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4993 | *) | |
4994 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4995 | esac | |
b0cacab0 | 4996 | rm -f conftest.make |
a64c9c13 | 4997 | fi |
e1052144 | 4998 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
39fd3d4f SJR |
4999 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
5000 | $as_echo "yes" >&6; } | |
a64c9c13 TT |
5001 | SET_MAKE= |
5002 | else | |
39fd3d4f SJR |
5003 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5004 | $as_echo "no" >&6; } | |
a64c9c13 TT |
5005 | SET_MAKE="MAKE=${MAKE-make}" |
5006 | fi | |
5007 | ||
a04eba3f TT |
5008 | # Find a good install program. We prefer a C program (faster), |
5009 | # so one script is as good as another. But avoid the broken or | |
5010 | # incompatible versions: | |
5011 | # SysV /etc/install, /usr/sbin/install | |
5012 | # SunOS /usr/etc/install | |
5013 | # IRIX /sbin/install | |
5014 | # AIX /bin/install | |
b0cacab0 | 5015 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
a04eba3f TT |
5016 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
5017 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5018 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b0cacab0 | 5019 | # OS/2's system install, which has a completely different semantic |
a04eba3f | 5020 | # ./install, which can be erroneously created by make from ./install.sh. |
39fd3d4f SJR |
5021 | # Reject install programs that cannot install multiple files. |
5022 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
5023 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
a04eba3f | 5024 | if test -z "$INSTALL"; then |
b0cacab0 | 5025 | if test "${ac_cv_path_install+set}" = set; then |
39fd3d4f | 5026 | $as_echo_n "(cached) " >&6 |
a04eba3f | 5027 | else |
b0cacab0 TT |
5028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5029 | for as_dir in $PATH | |
5030 | do | |
5031 | IFS=$as_save_IFS | |
5032 | test -z "$as_dir" && as_dir=. | |
5033 | # Account for people who put trailing slashes in PATH elements. | |
5034 | case $as_dir/ in | |
5035 | ./ | .// | /cC/* | \ | |
5036 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5037 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
5038 | /usr/ucb/* ) ;; | |
5039 | *) | |
5040 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5041 | # Don't use installbsd from OSF since it installs stuff as root | |
5042 | # by default. | |
5043 | for ac_prog in ginstall scoinst install; do | |
5044 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 5045 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
a04eba3f | 5046 | if test $ac_prog = install && |
b0cacab0 | 5047 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
a04eba3f TT |
5048 | # AIX install. It has an incompatible calling convention. |
5049 | : | |
b0cacab0 TT |
5050 | elif test $ac_prog = install && |
5051 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5052 | # program-specific install script used by HP pwplus--don't use. | |
5053 | : | |
a04eba3f | 5054 | else |
39fd3d4f SJR |
5055 | rm -rf conftest.one conftest.two conftest.dir |
5056 | echo one > conftest.one | |
5057 | echo two > conftest.two | |
5058 | mkdir conftest.dir | |
5059 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
5060 | test -s conftest.one && test -s conftest.two && | |
5061 | test -s conftest.dir/conftest.one && | |
5062 | test -s conftest.dir/conftest.two | |
5063 | then | |
5064 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5065 | break 3 | |
5066 | fi | |
a04eba3f TT |
5067 | fi |
5068 | fi | |
5069 | done | |
b0cacab0 TT |
5070 | done |
5071 | ;; | |
5072 | esac | |
39fd3d4f | 5073 | |
b0cacab0 | 5074 | done |
e1052144 | 5075 | IFS=$as_save_IFS |
b0cacab0 | 5076 | |
39fd3d4f | 5077 | rm -rf conftest.one conftest.two conftest.dir |
a04eba3f TT |
5078 | |
5079 | fi | |
5080 | if test "${ac_cv_path_install+set}" = set; then | |
b0cacab0 | 5081 | INSTALL=$ac_cv_path_install |
a04eba3f | 5082 | else |
e1052144 TT |
5083 | # As a last resort, use the slow shell script. Don't cache a |
5084 | # value for INSTALL within a source directory, because that will | |
a04eba3f | 5085 | # break other packages using the cache if that directory is |
e1052144 | 5086 | # removed, or if the value is a relative name. |
b0cacab0 | 5087 | INSTALL=$ac_install_sh |
a04eba3f TT |
5088 | fi |
5089 | fi | |
39fd3d4f SJR |
5090 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5091 | $as_echo "$INSTALL" >&6; } | |
a04eba3f TT |
5092 | |
5093 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5094 | # It thinks the first close brace ends the variable substitution. | |
5095 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5096 | ||
b0cacab0 | 5097 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
a04eba3f TT |
5098 | |
5099 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
5100 | ||
93636bde | 5101 | |
a04eba3f TT |
5102 | MKINSTALLDIRS= |
5103 | if test -n "$ac_aux_dir"; then | |
b0cacab0 TT |
5104 | case "$ac_aux_dir" in |
5105 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
5106 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
5107 | esac | |
a04eba3f TT |
5108 | fi |
5109 | if test -z "$MKINSTALLDIRS"; then | |
5110 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5111 | fi | |
a04eba3f | 5112 | |
a64c9c13 | 5113 | |
93636bde | 5114 | |
39fd3d4f SJR |
5115 | { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
5116 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
e1052144 | 5117 | # Check whether --enable-nls was given. |
b0cacab0 | 5118 | if test "${enable_nls+set}" = set; then |
e1052144 | 5119 | enableval=$enable_nls; USE_NLS=$enableval |
a04eba3f | 5120 | else |
b0cacab0 | 5121 | USE_NLS=yes |
e1052144 TT |
5122 | fi |
5123 | ||
39fd3d4f SJR |
5124 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
5125 | $as_echo "$USE_NLS" >&6; } | |
b0cacab0 TT |
5126 | |
5127 | ||
a64c9c13 | 5128 | |
b0cacab0 TT |
5129 | |
5130 | ||
5131 | ||
5132 | # Prepare PATH_SEPARATOR. | |
5133 | # The user is always right. | |
5134 | if test "${PATH_SEPARATOR+set}" != set; then | |
5135 | echo "#! /bin/sh" >conf$$.sh | |
5136 | echo "exit 0" >>conf$$.sh | |
5137 | chmod +x conf$$.sh | |
5138 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5139 | PATH_SEPARATOR=';' | |
5140 | else | |
5141 | PATH_SEPARATOR=: | |
5142 | fi | |
5143 | rm -f conf$$.sh | |
93636bde | 5144 | fi |
b0cacab0 TT |
5145 | |
5146 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5147 | # as systems may use methods other than mode bits to determine executability. | |
5148 | cat >conf$$.file <<_ASEOF | |
5149 | #! /bin/sh | |
5150 | exit 0 | |
5151 | _ASEOF | |
5152 | chmod +x conf$$.file | |
5153 | if test -x conf$$.file >/dev/null 2>&1; then | |
5154 | ac_executable_p="test -x" | |
a64c9c13 | 5155 | else |
b0cacab0 | 5156 | ac_executable_p="test -f" |
a64c9c13 | 5157 | fi |
b0cacab0 | 5158 | rm -f conf$$.file |
a64c9c13 | 5159 | |
b0cacab0 TT |
5160 | # Extract the first word of "msgfmt", so it can be a program name with args. |
5161 | set dummy msgfmt; ac_word=$2 | |
39fd3d4f SJR |
5162 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5163 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 5164 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
39fd3d4f | 5165 | $as_echo_n "(cached) " >&6 |
07a0db15 | 5166 | else |
b0cacab0 TT |
5167 | case "$MSGFMT" in |
5168 | [\\/]* | ?:[\\/]*) | |
5169 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5170 | ;; | |
5171 | *) | |
5172 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5173 | for ac_dir in $PATH; do | |
5174 | IFS="$ac_save_IFS" | |
5175 | test -z "$ac_dir" && ac_dir=. | |
5176 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5177 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5178 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
5179 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5180 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
5181 | break 2 | |
5182 | fi | |
5183 | fi | |
5184 | done | |
5185 | done | |
5186 | IFS="$ac_save_IFS" | |
5187 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
5188 | ;; | |
5189 | esac | |
5190 | fi | |
5191 | MSGFMT="$ac_cv_path_MSGFMT" | |
5192 | if test "$MSGFMT" != ":"; then | |
39fd3d4f SJR |
5193 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5194 | $as_echo "$MSGFMT" >&6; } | |
07a0db15 | 5195 | else |
39fd3d4f SJR |
5196 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5197 | $as_echo "no" >&6; } | |
07a0db15 | 5198 | fi |
07a0db15 | 5199 | |
b0cacab0 TT |
5200 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
5201 | set dummy gmsgfmt; ac_word=$2 | |
39fd3d4f SJR |
5202 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5203 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 5204 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
39fd3d4f | 5205 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 5206 | else |
b0cacab0 TT |
5207 | case $GMSGFMT in |
5208 | [\\/]* | ?:[\\/]*) | |
5209 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5210 | ;; | |
5211 | *) | |
5212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5213 | for as_dir in $PATH | |
5214 | do | |
5215 | IFS=$as_save_IFS | |
5216 | test -z "$as_dir" && as_dir=. | |
5217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 5218 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 5219 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
39fd3d4f | 5220 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
5221 | break 2 |
5222 | fi | |
5223 | done | |
5224 | done | |
e1052144 | 5225 | IFS=$as_save_IFS |
a64c9c13 | 5226 | |
b0cacab0 TT |
5227 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5228 | ;; | |
5229 | esac | |
a64c9c13 | 5230 | fi |
b0cacab0 | 5231 | GMSGFMT=$ac_cv_path_GMSGFMT |
b0cacab0 | 5232 | if test -n "$GMSGFMT"; then |
39fd3d4f SJR |
5233 | { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
5234 | $as_echo "$GMSGFMT" >&6; } | |
a64c9c13 | 5235 | else |
39fd3d4f SJR |
5236 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5237 | $as_echo "no" >&6; } | |
a64c9c13 | 5238 | fi |
a64c9c13 | 5239 | |
a64c9c13 | 5240 | |
93636bde | 5241 | |
e1052144 | 5242 | |
b0cacab0 TT |
5243 | # Prepare PATH_SEPARATOR. |
5244 | # The user is always right. | |
5245 | if test "${PATH_SEPARATOR+set}" != set; then | |
5246 | echo "#! /bin/sh" >conf$$.sh | |
5247 | echo "exit 0" >>conf$$.sh | |
5248 | chmod +x conf$$.sh | |
5249 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5250 | PATH_SEPARATOR=';' | |
5251 | else | |
5252 | PATH_SEPARATOR=: | |
5253 | fi | |
5254 | rm -f conf$$.sh | |
a64c9c13 | 5255 | fi |
93636bde | 5256 | |
b0cacab0 TT |
5257 | # Find out how to test for executable files. Don't use a zero-byte file, |
5258 | # as systems may use methods other than mode bits to determine executability. | |
5259 | cat >conf$$.file <<_ASEOF | |
5260 | #! /bin/sh | |
5261 | exit 0 | |
5262 | _ASEOF | |
5263 | chmod +x conf$$.file | |
5264 | if test -x conf$$.file >/dev/null 2>&1; then | |
5265 | ac_executable_p="test -x" | |
5266 | else | |
5267 | ac_executable_p="test -f" | |
a64c9c13 | 5268 | fi |
b0cacab0 | 5269 | rm -f conf$$.file |
93636bde | 5270 | |
b0cacab0 TT |
5271 | # Extract the first word of "xgettext", so it can be a program name with args. |
5272 | set dummy xgettext; ac_word=$2 | |
39fd3d4f SJR |
5273 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5274 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 5275 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
39fd3d4f | 5276 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 5277 | else |
b0cacab0 TT |
5278 | case "$XGETTEXT" in |
5279 | [\\/]* | ?:[\\/]*) | |
5280 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5281 | ;; | |
5282 | *) | |
5283 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5284 | for ac_dir in $PATH; do | |
5285 | IFS="$ac_save_IFS" | |
5286 | test -z "$ac_dir" && ac_dir=. | |
5287 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5288 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5289 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5290 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5291 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
5292 | break 2 | |
5293 | fi | |
5294 | fi | |
5295 | done | |
5296 | done | |
5297 | IFS="$ac_save_IFS" | |
5298 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5299 | ;; | |
5300 | esac | |
a64c9c13 | 5301 | fi |
b0cacab0 TT |
5302 | XGETTEXT="$ac_cv_path_XGETTEXT" |
5303 | if test "$XGETTEXT" != ":"; then | |
39fd3d4f SJR |
5304 | { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
5305 | $as_echo "$XGETTEXT" >&6; } | |
b0cacab0 | 5306 | else |
39fd3d4f SJR |
5307 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5308 | $as_echo "no" >&6; } | |
a64c9c13 | 5309 | fi |
07a0db15 | 5310 | |
b0cacab0 | 5311 | rm -f messages.po |
a64c9c13 | 5312 | |
a64c9c13 | 5313 | |
b0cacab0 TT |
5314 | # Prepare PATH_SEPARATOR. |
5315 | # The user is always right. | |
5316 | if test "${PATH_SEPARATOR+set}" != set; then | |
5317 | echo "#! /bin/sh" >conf$$.sh | |
5318 | echo "exit 0" >>conf$$.sh | |
5319 | chmod +x conf$$.sh | |
5320 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5321 | PATH_SEPARATOR=';' | |
5322 | else | |
5323 | PATH_SEPARATOR=: | |
5324 | fi | |
5325 | rm -f conf$$.sh | |
a64c9c13 | 5326 | fi |
a64c9c13 | 5327 | |
b0cacab0 TT |
5328 | # Find out how to test for executable files. Don't use a zero-byte file, |
5329 | # as systems may use methods other than mode bits to determine executability. | |
5330 | cat >conf$$.file <<_ASEOF | |
5331 | #! /bin/sh | |
5332 | exit 0 | |
5333 | _ASEOF | |
5334 | chmod +x conf$$.file | |
5335 | if test -x conf$$.file >/dev/null 2>&1; then | |
5336 | ac_executable_p="test -x" | |
5337 | else | |
5338 | ac_executable_p="test -f" | |
a64c9c13 | 5339 | fi |
b0cacab0 | 5340 | rm -f conf$$.file |
93636bde | 5341 | |
b0cacab0 TT |
5342 | # Extract the first word of "msgmerge", so it can be a program name with args. |
5343 | set dummy msgmerge; ac_word=$2 | |
39fd3d4f SJR |
5344 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5345 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 5346 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
39fd3d4f | 5347 | $as_echo_n "(cached) " >&6 |
07a0db15 | 5348 | else |
b0cacab0 TT |
5349 | case "$MSGMERGE" in |
5350 | [\\/]* | ?:[\\/]*) | |
5351 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
5352 | ;; | |
5353 | *) | |
5354 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5355 | for ac_dir in $PATH; do | |
5356 | IFS="$ac_save_IFS" | |
5357 | test -z "$ac_dir" && ac_dir=. | |
5358 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5359 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5360 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
5361 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
5362 | break 2 | |
5363 | fi | |
5364 | fi | |
5365 | done | |
5366 | done | |
5367 | IFS="$ac_save_IFS" | |
5368 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
5369 | ;; | |
5370 | esac | |
5371 | fi | |
5372 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
5373 | if test "$MSGMERGE" != ":"; then | |
39fd3d4f SJR |
5374 | { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
5375 | $as_echo "$MSGMERGE" >&6; } | |
a64c9c13 | 5376 | else |
39fd3d4f SJR |
5377 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5378 | $as_echo "no" >&6; } | |
a64c9c13 | 5379 | fi |
07a0db15 | 5380 | |
a64c9c13 | 5381 | |
b0cacab0 TT |
5382 | if test "$GMSGFMT" != ":"; then |
5383 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
5384 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5385 | : ; | |
5386 | else | |
5387 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
39fd3d4f SJR |
5388 | { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
5389 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
b0cacab0 TT |
5390 | GMSGFMT=":" |
5391 | fi | |
5392 | fi | |
5393 | ||
5394 | if test "$XGETTEXT" != ":"; then | |
5395 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5396 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5397 | : ; | |
5398 | else | |
39fd3d4f SJR |
5399 | { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
5400 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
b0cacab0 TT |
5401 | XGETTEXT=":" |
5402 | fi | |
5403 | rm -f messages.po | |
5404 | fi | |
5405 | ||
e1052144 | 5406 | ac_config_commands="$ac_config_commands default-1" |
a64c9c13 | 5407 | |
b0cacab0 TT |
5408 | |
5409 | if test -n "$ac_tool_prefix"; then | |
5410 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5411 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
39fd3d4f SJR |
5412 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5413 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 5414 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
39fd3d4f | 5415 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 5416 | else |
b0cacab0 TT |
5417 | if test -n "$RANLIB"; then |
5418 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
a64c9c13 | 5419 | else |
b0cacab0 TT |
5420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5421 | for as_dir in $PATH | |
5422 | do | |
5423 | IFS=$as_save_IFS | |
5424 | test -z "$as_dir" && as_dir=. | |
5425 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 5426 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 5427 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
39fd3d4f | 5428 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
5429 | break 2 |
5430 | fi | |
5431 | done | |
5432 | done | |
e1052144 | 5433 | IFS=$as_save_IFS |
07a0db15 | 5434 | |
93636bde | 5435 | fi |
b0cacab0 TT |
5436 | fi |
5437 | RANLIB=$ac_cv_prog_RANLIB | |
5438 | if test -n "$RANLIB"; then | |
39fd3d4f SJR |
5439 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5440 | $as_echo "$RANLIB" >&6; } | |
b0cacab0 | 5441 | else |
39fd3d4f SJR |
5442 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5443 | $as_echo "no" >&6; } | |
b0cacab0 | 5444 | fi |
a64c9c13 | 5445 | |
e1052144 | 5446 | |
a64c9c13 | 5447 | fi |
b0cacab0 TT |
5448 | if test -z "$ac_cv_prog_RANLIB"; then |
5449 | ac_ct_RANLIB=$RANLIB | |
5450 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5451 | set dummy ranlib; ac_word=$2 | |
39fd3d4f SJR |
5452 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5453 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 5454 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
39fd3d4f | 5455 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
5456 | else |
5457 | if test -n "$ac_ct_RANLIB"; then | |
5458 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5459 | else | |
5460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5461 | for as_dir in $PATH | |
5462 | do | |
5463 | IFS=$as_save_IFS | |
5464 | test -z "$as_dir" && as_dir=. | |
5465 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 5466 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 5467 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
39fd3d4f | 5468 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
5469 | break 2 |
5470 | fi | |
5471 | done | |
5472 | done | |
e1052144 | 5473 | IFS=$as_save_IFS |
a64c9c13 | 5474 | |
93636bde | 5475 | fi |
b0cacab0 TT |
5476 | fi |
5477 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5478 | if test -n "$ac_ct_RANLIB"; then | |
39fd3d4f SJR |
5479 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5480 | $as_echo "$ac_ct_RANLIB" >&6; } | |
b0cacab0 | 5481 | else |
39fd3d4f SJR |
5482 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5483 | $as_echo "no" >&6; } | |
b0cacab0 TT |
5484 | fi |
5485 | ||
e1052144 TT |
5486 | if test "x$ac_ct_RANLIB" = x; then |
5487 | RANLIB=":" | |
5488 | else | |
5489 | case $cross_compiling:$ac_tool_warned in | |
5490 | yes:) | |
39fd3d4f SJR |
5491 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
5492 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
e1052144 TT |
5493 | ac_tool_warned=yes ;; |
5494 | esac | |
5495 | RANLIB=$ac_ct_RANLIB | |
5496 | fi | |
b0cacab0 TT |
5497 | else |
5498 | RANLIB="$ac_cv_prog_RANLIB" | |
93636bde TT |
5499 | fi |
5500 | ||
a64c9c13 | 5501 | |
39fd3d4f SJR |
5502 | { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
5503 | $as_echo_n "checking for strerror in -lcposix... " >&6; } | |
b0cacab0 | 5504 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
39fd3d4f | 5505 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
5506 | else |
5507 | ac_check_lib_save_LIBS=$LIBS | |
5508 | LIBS="-lcposix $LIBS" | |
5509 | cat >conftest.$ac_ext <<_ACEOF | |
5510 | /* confdefs.h. */ | |
5511 | _ACEOF | |
5512 | cat confdefs.h >>conftest.$ac_ext | |
5513 | cat >>conftest.$ac_ext <<_ACEOF | |
5514 | /* end confdefs.h. */ | |
5515 | ||
e1052144 TT |
5516 | /* Override any GCC internal prototype to avoid an error. |
5517 | Use char because int might match the return type of a GCC | |
5518 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
5519 | #ifdef __cplusplus |
5520 | extern "C" | |
5521 | #endif | |
b0cacab0 TT |
5522 | char strerror (); |
5523 | int | |
5524 | main () | |
5525 | { | |
e1052144 | 5526 | return strerror (); |
b0cacab0 TT |
5527 | ; |
5528 | return 0; | |
5529 | } | |
5530 | _ACEOF | |
5531 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
5532 | if { (ac_try="$ac_link" |
5533 | case "(($ac_try" in | |
5534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5535 | *) ac_try_echo=$ac_try;; | |
5536 | esac | |
39fd3d4f SJR |
5537 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5538 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 5539 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
5540 | ac_status=$? |
5541 | grep -v '^ *+' conftest.er1 >conftest.err | |
5542 | rm -f conftest.er1 | |
5543 | cat conftest.err >&5 | |
39fd3d4f | 5544 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
5545 | (exit $ac_status); } && { |
5546 | test -z "$ac_c_werror_flag" || | |
5547 | test ! -s conftest.err | |
39fd3d4f SJR |
5548 | } && test -s conftest$ac_exeext && { |
5549 | test "$cross_compiling" = yes || | |
5550 | $as_test_x conftest$ac_exeext | |
5551 | }; then | |
b0cacab0 TT |
5552 | ac_cv_lib_cposix_strerror=yes |
5553 | else | |
39fd3d4f | 5554 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
5555 | sed 's/^/| /' conftest.$ac_ext >&5 |
5556 | ||
e1052144 | 5557 | ac_cv_lib_cposix_strerror=no |
b0cacab0 | 5558 | fi |
e1052144 | 5559 | |
39fd3d4f | 5560 | rm -rf conftest.dSYM |
29a5deed | 5561 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
5562 | conftest$ac_exeext conftest.$ac_ext |
5563 | LIBS=$ac_check_lib_save_LIBS | |
5564 | fi | |
39fd3d4f SJR |
5565 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
5566 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } | |
5567 | if test "x$ac_cv_lib_cposix_strerror" = x""yes; then | |
b0cacab0 | 5568 | LIBS="$LIBS -lcposix" |
a64c9c13 TT |
5569 | fi |
5570 | ||
b0cacab0 TT |
5571 | |
5572 | ||
39fd3d4f SJR |
5573 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5574 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
b0cacab0 | 5575 | if test "${ac_cv_c_const+set}" = set; then |
39fd3d4f | 5576 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 5577 | else |
b0cacab0 TT |
5578 | cat >conftest.$ac_ext <<_ACEOF |
5579 | /* confdefs.h. */ | |
5580 | _ACEOF | |
5581 | cat confdefs.h >>conftest.$ac_ext | |
5582 | cat >>conftest.$ac_ext <<_ACEOF | |
5583 | /* end confdefs.h. */ | |
93636bde | 5584 | |
b0cacab0 TT |
5585 | int |
5586 | main () | |
5587 | { | |
5588 | /* FIXME: Include the comments suggested by Paul. */ | |
5589 | #ifndef __cplusplus | |
5590 | /* Ultrix mips cc rejects this. */ | |
5591 | typedef int charset[2]; | |
29a5deed | 5592 | const charset cs; |
b0cacab0 | 5593 | /* SunOS 4.1.1 cc rejects this. */ |
29a5deed TT |
5594 | char const *const *pcpcc; |
5595 | char **ppc; | |
b0cacab0 TT |
5596 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5597 | struct point {int x, y;}; | |
5598 | static struct point const zero = {0,0}; | |
5599 | /* AIX XL C 1.02.0.0 rejects this. | |
5600 | It does not let you subtract one const X* pointer from another in | |
5601 | an arm of an if-expression whose if-part is not a constant | |
5602 | expression */ | |
5603 | const char *g = "string"; | |
29a5deed | 5604 | pcpcc = &g + (g ? g-g : 0); |
b0cacab0 | 5605 | /* HPUX 7.0 cc rejects these. */ |
29a5deed TT |
5606 | ++pcpcc; |
5607 | ppc = (char**) pcpcc; | |
5608 | pcpcc = (char const *const *) ppc; | |
b0cacab0 TT |
5609 | { /* SCO 3.2v4 cc rejects this. */ |
5610 | char *t; | |
5611 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5612 | ||
5613 | *t++ = 0; | |
e1052144 | 5614 | if (s) return 0; |
b0cacab0 TT |
5615 | } |
5616 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5617 | int x[] = {25, 17}; | |
5618 | const int *foo = &x[0]; | |
5619 | ++foo; | |
5620 | } | |
5621 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5622 | typedef const int *iptr; | |
5623 | iptr p = 0; | |
5624 | ++p; | |
5625 | } | |
5626 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5627 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5628 | struct s { int j; const int *ap[3]; }; | |
5629 | struct s *b; b->j = 5; | |
5630 | } | |
5631 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5632 | const int foo = 10; | |
e1052144 | 5633 | if (!foo) return 0; |
b0cacab0 | 5634 | } |
29a5deed | 5635 | return !cs[0] && !zero.x; |
a64c9c13 TT |
5636 | #endif |
5637 | ||
b0cacab0 TT |
5638 | ; |
5639 | return 0; | |
5640 | } | |
5641 | _ACEOF | |
5642 | rm -f conftest.$ac_objext | |
e1052144 TT |
5643 | if { (ac_try="$ac_compile" |
5644 | case "(($ac_try" in | |
5645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5646 | *) ac_try_echo=$ac_try;; | |
5647 | esac | |
39fd3d4f SJR |
5648 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5649 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 5650 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
5651 | ac_status=$? |
5652 | grep -v '^ *+' conftest.er1 >conftest.err | |
5653 | rm -f conftest.er1 | |
5654 | cat conftest.err >&5 | |
39fd3d4f | 5655 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
5656 | (exit $ac_status); } && { |
5657 | test -z "$ac_c_werror_flag" || | |
5658 | test ! -s conftest.err | |
5659 | } && test -s conftest.$ac_objext; then | |
b0cacab0 | 5660 | ac_cv_c_const=yes |
a64c9c13 | 5661 | else |
39fd3d4f | 5662 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
5663 | sed 's/^/| /' conftest.$ac_ext >&5 |
5664 | ||
e1052144 | 5665 | ac_cv_c_const=no |
a64c9c13 | 5666 | fi |
e1052144 TT |
5667 | |
5668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a64c9c13 | 5669 | fi |
39fd3d4f SJR |
5670 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5671 | $as_echo "$ac_cv_c_const" >&6; } | |
b0cacab0 | 5672 | if test $ac_cv_c_const = no; then |
a64c9c13 | 5673 | |
b0cacab0 | 5674 | cat >>confdefs.h <<\_ACEOF |
39fd3d4f | 5675 | #define const /**/ |
b0cacab0 | 5676 | _ACEOF |
a64c9c13 | 5677 | |
93636bde | 5678 | fi |
07a0db15 | 5679 | |
a64c9c13 | 5680 | |
39fd3d4f SJR |
5681 | { $as_echo "$as_me:$LINENO: checking for signed" >&5 |
5682 | $as_echo_n "checking for signed... " >&6; } | |
b0cacab0 | 5683 | if test "${bh_cv_c_signed+set}" = set; then |
39fd3d4f | 5684 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
5685 | else |
5686 | cat >conftest.$ac_ext <<_ACEOF | |
5687 | /* confdefs.h. */ | |
5688 | _ACEOF | |
5689 | cat confdefs.h >>conftest.$ac_ext | |
5690 | cat >>conftest.$ac_ext <<_ACEOF | |
5691 | /* end confdefs.h. */ | |
5692 | ||
5693 | int | |
5694 | main () | |
5695 | { | |
5696 | signed char x; | |
5697 | ; | |
5698 | return 0; | |
5699 | } | |
5700 | _ACEOF | |
5701 | rm -f conftest.$ac_objext | |
e1052144 TT |
5702 | if { (ac_try="$ac_compile" |
5703 | case "(($ac_try" in | |
5704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5705 | *) ac_try_echo=$ac_try;; | |
5706 | esac | |
39fd3d4f SJR |
5707 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5708 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 5709 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
5710 | ac_status=$? |
5711 | grep -v '^ *+' conftest.er1 >conftest.err | |
5712 | rm -f conftest.er1 | |
5713 | cat conftest.err >&5 | |
39fd3d4f | 5714 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
5715 | (exit $ac_status); } && { |
5716 | test -z "$ac_c_werror_flag" || | |
5717 | test ! -s conftest.err | |
5718 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
5719 | bh_cv_c_signed=yes |
5720 | else | |
39fd3d4f | 5721 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
5722 | sed 's/^/| /' conftest.$ac_ext >&5 |
5723 | ||
e1052144 | 5724 | bh_cv_c_signed=no |
b0cacab0 | 5725 | fi |
e1052144 TT |
5726 | |
5727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 5728 | fi |
39fd3d4f SJR |
5729 | { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
5730 | $as_echo "$bh_cv_c_signed" >&6; } | |
b0cacab0 TT |
5731 | if test $bh_cv_c_signed = no; then |
5732 | ||
5733 | cat >>confdefs.h <<\_ACEOF | |
39fd3d4f | 5734 | #define signed /**/ |
b0cacab0 | 5735 | _ACEOF |
93636bde | 5736 | |
b0cacab0 TT |
5737 | fi |
5738 | ||
39fd3d4f SJR |
5739 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5740 | $as_echo_n "checking for inline... " >&6; } | |
b0cacab0 | 5741 | if test "${ac_cv_c_inline+set}" = set; then |
39fd3d4f | 5742 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 5743 | else |
b0cacab0 TT |
5744 | ac_cv_c_inline=no |
5745 | for ac_kw in inline __inline__ __inline; do | |
5746 | cat >conftest.$ac_ext <<_ACEOF | |
5747 | /* confdefs.h. */ | |
5748 | _ACEOF | |
5749 | cat confdefs.h >>conftest.$ac_ext | |
5750 | cat >>conftest.$ac_ext <<_ACEOF | |
5751 | /* end confdefs.h. */ | |
5752 | #ifndef __cplusplus | |
5753 | typedef int foo_t; | |
5754 | static $ac_kw foo_t static_foo () {return 0; } | |
5755 | $ac_kw foo_t foo () {return 0; } | |
a64c9c13 TT |
5756 | #endif |
5757 | ||
b0cacab0 TT |
5758 | _ACEOF |
5759 | rm -f conftest.$ac_objext | |
e1052144 TT |
5760 | if { (ac_try="$ac_compile" |
5761 | case "(($ac_try" in | |
5762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5763 | *) ac_try_echo=$ac_try;; | |
5764 | esac | |
39fd3d4f SJR |
5765 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5766 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 5767 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
5768 | ac_status=$? |
5769 | grep -v '^ *+' conftest.er1 >conftest.err | |
5770 | rm -f conftest.er1 | |
5771 | cat conftest.err >&5 | |
39fd3d4f | 5772 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
5773 | (exit $ac_status); } && { |
5774 | test -z "$ac_c_werror_flag" || | |
5775 | test ! -s conftest.err | |
5776 | } && test -s conftest.$ac_objext; then | |
e1052144 | 5777 | ac_cv_c_inline=$ac_kw |
a64c9c13 | 5778 | else |
39fd3d4f | 5779 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 | 5780 | sed 's/^/| /' conftest.$ac_ext >&5 |
a64c9c13 | 5781 | |
e1052144 | 5782 | |
a64c9c13 | 5783 | fi |
e1052144 TT |
5784 | |
5785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5786 | test "$ac_cv_c_inline" != no && break | |
b0cacab0 | 5787 | done |
93636bde | 5788 | |
b0cacab0 | 5789 | fi |
39fd3d4f SJR |
5790 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5791 | $as_echo "$ac_cv_c_inline" >&6; } | |
93636bde | 5792 | |
a64c9c13 | 5793 | |
b0cacab0 TT |
5794 | case $ac_cv_c_inline in |
5795 | inline | yes) ;; | |
5796 | *) | |
5797 | case $ac_cv_c_inline in | |
5798 | no) ac_val=;; | |
5799 | *) ac_val=$ac_cv_c_inline;; | |
5800 | esac | |
5801 | cat >>confdefs.h <<_ACEOF | |
5802 | #ifndef __cplusplus | |
5803 | #define inline $ac_val | |
a64c9c13 | 5804 | #endif |
b0cacab0 TT |
5805 | _ACEOF |
5806 | ;; | |
5807 | esac | |
a64c9c13 | 5808 | |
39fd3d4f SJR |
5809 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
5810 | $as_echo_n "checking for off_t... " >&6; } | |
b0cacab0 | 5811 | if test "${ac_cv_type_off_t+set}" = set; then |
39fd3d4f | 5812 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 5813 | else |
39fd3d4f SJR |
5814 | ac_cv_type_off_t=no |
5815 | cat >conftest.$ac_ext <<_ACEOF | |
b0cacab0 TT |
5816 | /* confdefs.h. */ |
5817 | _ACEOF | |
5818 | cat confdefs.h >>conftest.$ac_ext | |
5819 | cat >>conftest.$ac_ext <<_ACEOF | |
5820 | /* end confdefs.h. */ | |
5821 | $ac_includes_default | |
5822 | int | |
5823 | main () | |
5824 | { | |
39fd3d4f SJR |
5825 | if (sizeof (off_t)) |
5826 | return 0; | |
5827 | ; | |
b0cacab0 | 5828 | return 0; |
39fd3d4f SJR |
5829 | } |
5830 | _ACEOF | |
5831 | rm -f conftest.$ac_objext | |
5832 | if { (ac_try="$ac_compile" | |
5833 | case "(($ac_try" in | |
5834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5835 | *) ac_try_echo=$ac_try;; | |
5836 | esac | |
5837 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5838 | $as_echo "$ac_try_echo") >&5 | |
5839 | (eval "$ac_compile") 2>conftest.er1 | |
5840 | ac_status=$? | |
5841 | grep -v '^ *+' conftest.er1 >conftest.err | |
5842 | rm -f conftest.er1 | |
5843 | cat conftest.err >&5 | |
5844 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5845 | (exit $ac_status); } && { | |
5846 | test -z "$ac_c_werror_flag" || | |
5847 | test ! -s conftest.err | |
5848 | } && test -s conftest.$ac_objext; then | |
5849 | cat >conftest.$ac_ext <<_ACEOF | |
5850 | /* confdefs.h. */ | |
5851 | _ACEOF | |
5852 | cat confdefs.h >>conftest.$ac_ext | |
5853 | cat >>conftest.$ac_ext <<_ACEOF | |
5854 | /* end confdefs.h. */ | |
5855 | $ac_includes_default | |
5856 | int | |
5857 | main () | |
5858 | { | |
5859 | if (sizeof ((off_t))) | |
5860 | return 0; | |
b0cacab0 TT |
5861 | ; |
5862 | return 0; | |
5863 | } | |
5864 | _ACEOF | |
5865 | rm -f conftest.$ac_objext | |
e1052144 TT |
5866 | if { (ac_try="$ac_compile" |
5867 | case "(($ac_try" in | |
5868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5869 | *) ac_try_echo=$ac_try;; | |
5870 | esac | |
39fd3d4f SJR |
5871 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5872 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 5873 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
5874 | ac_status=$? |
5875 | grep -v '^ *+' conftest.er1 >conftest.err | |
5876 | rm -f conftest.er1 | |
5877 | cat conftest.err >&5 | |
39fd3d4f | 5878 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
5879 | (exit $ac_status); } && { |
5880 | test -z "$ac_c_werror_flag" || | |
5881 | test ! -s conftest.err | |
5882 | } && test -s conftest.$ac_objext; then | |
39fd3d4f SJR |
5883 | : |
5884 | else | |
5885 | $as_echo "$as_me: failed program was:" >&5 | |
5886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5887 | ||
5888 | ac_cv_type_off_t=yes | |
5889 | fi | |
5890 | ||
5891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
93636bde | 5892 | else |
39fd3d4f | 5893 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
5894 | sed 's/^/| /' conftest.$ac_ext >&5 |
5895 | ||
39fd3d4f | 5896 | |
93636bde | 5897 | fi |
e1052144 TT |
5898 | |
5899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
93636bde | 5900 | fi |
39fd3d4f SJR |
5901 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5902 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5903 | if test "x$ac_cv_type_off_t" = x""yes; then | |
b0cacab0 | 5904 | : |
93636bde | 5905 | else |
a64c9c13 | 5906 | |
b0cacab0 | 5907 | cat >>confdefs.h <<_ACEOF |
e1052144 | 5908 | #define off_t long int |
b0cacab0 TT |
5909 | _ACEOF |
5910 | ||
a64c9c13 TT |
5911 | fi |
5912 | ||
39fd3d4f SJR |
5913 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
5914 | $as_echo_n "checking for size_t... " >&6; } | |
b0cacab0 | 5915 | if test "${ac_cv_type_size_t+set}" = set; then |
39fd3d4f | 5916 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 5917 | else |
39fd3d4f SJR |
5918 | ac_cv_type_size_t=no |
5919 | cat >conftest.$ac_ext <<_ACEOF | |
b0cacab0 TT |
5920 | /* confdefs.h. */ |
5921 | _ACEOF | |
5922 | cat confdefs.h >>conftest.$ac_ext | |
5923 | cat >>conftest.$ac_ext <<_ACEOF | |
5924 | /* end confdefs.h. */ | |
5925 | $ac_includes_default | |
5926 | int | |
a64c9c13 TT |
5927 | main () |
5928 | { | |
39fd3d4f SJR |
5929 | if (sizeof (size_t)) |
5930 | return 0; | |
5931 | ; | |
b0cacab0 | 5932 | return 0; |
39fd3d4f SJR |
5933 | } |
5934 | _ACEOF | |
5935 | rm -f conftest.$ac_objext | |
5936 | if { (ac_try="$ac_compile" | |
5937 | case "(($ac_try" in | |
5938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5939 | *) ac_try_echo=$ac_try;; | |
5940 | esac | |
5941 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5942 | $as_echo "$ac_try_echo") >&5 | |
5943 | (eval "$ac_compile") 2>conftest.er1 | |
5944 | ac_status=$? | |
5945 | grep -v '^ *+' conftest.er1 >conftest.err | |
5946 | rm -f conftest.er1 | |
5947 | cat conftest.err >&5 | |
5948 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5949 | (exit $ac_status); } && { | |
5950 | test -z "$ac_c_werror_flag" || | |
5951 | test ! -s conftest.err | |
5952 | } && test -s conftest.$ac_objext; then | |
5953 | cat >conftest.$ac_ext <<_ACEOF | |
5954 | /* confdefs.h. */ | |
5955 | _ACEOF | |
5956 | cat confdefs.h >>conftest.$ac_ext | |
5957 | cat >>conftest.$ac_ext <<_ACEOF | |
5958 | /* end confdefs.h. */ | |
5959 | $ac_includes_default | |
5960 | int | |
5961 | main () | |
5962 | { | |
5963 | if (sizeof ((size_t))) | |
5964 | return 0; | |
b0cacab0 TT |
5965 | ; |
5966 | return 0; | |
a64c9c13 | 5967 | } |
b0cacab0 TT |
5968 | _ACEOF |
5969 | rm -f conftest.$ac_objext | |
e1052144 TT |
5970 | if { (ac_try="$ac_compile" |
5971 | case "(($ac_try" in | |
5972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5973 | *) ac_try_echo=$ac_try;; | |
5974 | esac | |
39fd3d4f SJR |
5975 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5976 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 5977 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
5978 | ac_status=$? |
5979 | grep -v '^ *+' conftest.er1 >conftest.err | |
5980 | rm -f conftest.er1 | |
5981 | cat conftest.err >&5 | |
39fd3d4f | 5982 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
5983 | (exit $ac_status); } && { |
5984 | test -z "$ac_c_werror_flag" || | |
5985 | test ! -s conftest.err | |
5986 | } && test -s conftest.$ac_objext; then | |
39fd3d4f SJR |
5987 | : |
5988 | else | |
5989 | $as_echo "$as_me: failed program was:" >&5 | |
5990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5991 | ||
5992 | ac_cv_type_size_t=yes | |
5993 | fi | |
5994 | ||
5995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a64c9c13 | 5996 | else |
39fd3d4f | 5997 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
5998 | sed 's/^/| /' conftest.$ac_ext >&5 |
5999 | ||
39fd3d4f | 6000 | |
a64c9c13 | 6001 | fi |
e1052144 TT |
6002 | |
6003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a64c9c13 | 6004 | fi |
39fd3d4f SJR |
6005 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6006 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6007 | if test "x$ac_cv_type_size_t" = x""yes; then | |
b0cacab0 TT |
6008 | : |
6009 | else | |
6010 | ||
6011 | cat >>confdefs.h <<_ACEOF | |
e1052144 | 6012 | #define size_t unsigned int |
b0cacab0 | 6013 | _ACEOF |
93636bde | 6014 | |
a64c9c13 TT |
6015 | fi |
6016 | ||
a64c9c13 | 6017 | |
39fd3d4f SJR |
6018 | { $as_echo "$as_me:$LINENO: checking for long long" >&5 |
6019 | $as_echo_n "checking for long long... " >&6; } | |
b0cacab0 | 6020 | if test "${ac_cv_type_long_long+set}" = set; then |
39fd3d4f | 6021 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
6022 | else |
6023 | cat >conftest.$ac_ext <<_ACEOF | |
6024 | /* confdefs.h. */ | |
6025 | _ACEOF | |
6026 | cat confdefs.h >>conftest.$ac_ext | |
6027 | cat >>conftest.$ac_ext <<_ACEOF | |
6028 | /* end confdefs.h. */ | |
6029 | long long ll = 1LL; int i = 63; | |
6030 | int | |
6031 | main () | |
6032 | { | |
6033 | long long llmax = (long long) -1; | |
6034 | return ll << i | ll >> i | llmax / ll | llmax % ll; | |
6035 | ; | |
6036 | return 0; | |
6037 | } | |
6038 | _ACEOF | |
6039 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
6040 | if { (ac_try="$ac_link" |
6041 | case "(($ac_try" in | |
6042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6043 | *) ac_try_echo=$ac_try;; | |
6044 | esac | |
39fd3d4f SJR |
6045 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6046 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 6047 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
6048 | ac_status=$? |
6049 | grep -v '^ *+' conftest.er1 >conftest.err | |
6050 | rm -f conftest.er1 | |
6051 | cat conftest.err >&5 | |
39fd3d4f | 6052 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
6053 | (exit $ac_status); } && { |
6054 | test -z "$ac_c_werror_flag" || | |
6055 | test ! -s conftest.err | |
39fd3d4f SJR |
6056 | } && test -s conftest$ac_exeext && { |
6057 | test "$cross_compiling" = yes || | |
6058 | $as_test_x conftest$ac_exeext | |
6059 | }; then | |
b0cacab0 TT |
6060 | ac_cv_type_long_long=yes |
6061 | else | |
39fd3d4f | 6062 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
6063 | sed 's/^/| /' conftest.$ac_ext >&5 |
6064 | ||
e1052144 | 6065 | ac_cv_type_long_long=no |
b0cacab0 | 6066 | fi |
e1052144 | 6067 | |
39fd3d4f | 6068 | rm -rf conftest.dSYM |
29a5deed | 6069 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
6070 | conftest$ac_exeext conftest.$ac_ext |
6071 | fi | |
39fd3d4f SJR |
6072 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
6073 | $as_echo "$ac_cv_type_long_long" >&6; } | |
b0cacab0 TT |
6074 | if test $ac_cv_type_long_long = yes; then |
6075 | ||
6076 | cat >>confdefs.h <<\_ACEOF | |
6077 | #define HAVE_LONG_LONG 1 | |
6078 | _ACEOF | |
a64c9c13 | 6079 | |
b0cacab0 TT |
6080 | fi |
6081 | ||
6082 | ||
39fd3d4f SJR |
6083 | { $as_echo "$as_me:$LINENO: checking for long double" >&5 |
6084 | $as_echo_n "checking for long double... " >&6; } | |
b0cacab0 | 6085 | if test "${gt_cv_c_long_double+set}" = set; then |
39fd3d4f | 6086 | $as_echo_n "(cached) " >&6 |
93636bde | 6087 | else |
b0cacab0 TT |
6088 | if test "$GCC" = yes; then |
6089 | gt_cv_c_long_double=yes | |
6090 | else | |
6091 | cat >conftest.$ac_ext <<_ACEOF | |
6092 | /* confdefs.h. */ | |
6093 | _ACEOF | |
6094 | cat confdefs.h >>conftest.$ac_ext | |
6095 | cat >>conftest.$ac_ext <<_ACEOF | |
6096 | /* end confdefs.h. */ | |
6097 | ||
6098 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ | |
6099 | long double foo = 0.0; | |
6100 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ | |
6101 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; | |
a64c9c13 | 6102 | |
b0cacab0 TT |
6103 | int |
6104 | main () | |
6105 | { | |
93636bde | 6106 | |
b0cacab0 TT |
6107 | ; |
6108 | return 0; | |
6109 | } | |
6110 | _ACEOF | |
6111 | rm -f conftest.$ac_objext | |
e1052144 TT |
6112 | if { (ac_try="$ac_compile" |
6113 | case "(($ac_try" in | |
6114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6115 | *) ac_try_echo=$ac_try;; | |
6116 | esac | |
39fd3d4f SJR |
6117 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6118 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 6119 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
6120 | ac_status=$? |
6121 | grep -v '^ *+' conftest.er1 >conftest.err | |
6122 | rm -f conftest.er1 | |
6123 | cat conftest.err >&5 | |
39fd3d4f | 6124 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
6125 | (exit $ac_status); } && { |
6126 | test -z "$ac_c_werror_flag" || | |
6127 | test ! -s conftest.err | |
6128 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
6129 | gt_cv_c_long_double=yes |
6130 | else | |
39fd3d4f | 6131 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
6132 | sed 's/^/| /' conftest.$ac_ext >&5 |
6133 | ||
e1052144 | 6134 | gt_cv_c_long_double=no |
b0cacab0 | 6135 | fi |
e1052144 TT |
6136 | |
6137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
6138 | fi |
6139 | fi | |
39fd3d4f SJR |
6140 | { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
6141 | $as_echo "$gt_cv_c_long_double" >&6; } | |
b0cacab0 TT |
6142 | if test $gt_cv_c_long_double = yes; then |
6143 | ||
6144 | cat >>confdefs.h <<\_ACEOF | |
6145 | #define HAVE_LONG_DOUBLE 1 | |
6146 | _ACEOF | |
a64c9c13 | 6147 | |
b0cacab0 | 6148 | fi |
a64c9c13 | 6149 | |
a64c9c13 | 6150 | |
39fd3d4f SJR |
6151 | { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5 |
6152 | $as_echo_n "checking for wchar_t... " >&6; } | |
b0cacab0 | 6153 | if test "${gt_cv_c_wchar_t+set}" = set; then |
39fd3d4f | 6154 | $as_echo_n "(cached) " >&6 |
93636bde | 6155 | else |
b0cacab0 TT |
6156 | cat >conftest.$ac_ext <<_ACEOF |
6157 | /* confdefs.h. */ | |
6158 | _ACEOF | |
6159 | cat confdefs.h >>conftest.$ac_ext | |
6160 | cat >>conftest.$ac_ext <<_ACEOF | |
6161 | /* end confdefs.h. */ | |
6162 | #include <stddef.h> | |
6163 | wchar_t foo = (wchar_t)'\0'; | |
6164 | int | |
6165 | main () | |
6166 | { | |
a64c9c13 | 6167 | |
b0cacab0 TT |
6168 | ; |
6169 | return 0; | |
6170 | } | |
6171 | _ACEOF | |
6172 | rm -f conftest.$ac_objext | |
e1052144 TT |
6173 | if { (ac_try="$ac_compile" |
6174 | case "(($ac_try" in | |
6175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6176 | *) ac_try_echo=$ac_try;; | |
6177 | esac | |
39fd3d4f SJR |
6178 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6179 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 6180 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
6181 | ac_status=$? |
6182 | grep -v '^ *+' conftest.er1 >conftest.err | |
6183 | rm -f conftest.er1 | |
6184 | cat conftest.err >&5 | |
39fd3d4f | 6185 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
6186 | (exit $ac_status); } && { |
6187 | test -z "$ac_c_werror_flag" || | |
6188 | test ! -s conftest.err | |
6189 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
6190 | gt_cv_c_wchar_t=yes |
6191 | else | |
39fd3d4f | 6192 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
6193 | sed 's/^/| /' conftest.$ac_ext >&5 |
6194 | ||
e1052144 | 6195 | gt_cv_c_wchar_t=no |
b0cacab0 | 6196 | fi |
e1052144 TT |
6197 | |
6198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 6199 | fi |
39fd3d4f SJR |
6200 | { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
6201 | $as_echo "$gt_cv_c_wchar_t" >&6; } | |
b0cacab0 TT |
6202 | if test $gt_cv_c_wchar_t = yes; then |
6203 | ||
6204 | cat >>confdefs.h <<\_ACEOF | |
6205 | #define HAVE_WCHAR_T 1 | |
6206 | _ACEOF | |
6207 | ||
6208 | fi | |
6209 | ||
6210 | ||
39fd3d4f SJR |
6211 | { $as_echo "$as_me:$LINENO: checking for wint_t" >&5 |
6212 | $as_echo_n "checking for wint_t... " >&6; } | |
b0cacab0 | 6213 | if test "${gt_cv_c_wint_t+set}" = set; then |
39fd3d4f | 6214 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 6215 | else |
b0cacab0 TT |
6216 | cat >conftest.$ac_ext <<_ACEOF |
6217 | /* confdefs.h. */ | |
6218 | _ACEOF | |
6219 | cat confdefs.h >>conftest.$ac_ext | |
6220 | cat >>conftest.$ac_ext <<_ACEOF | |
6221 | /* end confdefs.h. */ | |
6222 | #include <wchar.h> | |
6223 | wint_t foo = (wchar_t)'\0'; | |
6224 | int | |
6225 | main () | |
6226 | { | |
93636bde | 6227 | |
b0cacab0 TT |
6228 | ; |
6229 | return 0; | |
6230 | } | |
6231 | _ACEOF | |
6232 | rm -f conftest.$ac_objext | |
e1052144 TT |
6233 | if { (ac_try="$ac_compile" |
6234 | case "(($ac_try" in | |
6235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6236 | *) ac_try_echo=$ac_try;; | |
6237 | esac | |
39fd3d4f SJR |
6238 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6239 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 6240 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
6241 | ac_status=$? |
6242 | grep -v '^ *+' conftest.er1 >conftest.err | |
6243 | rm -f conftest.er1 | |
6244 | cat conftest.err >&5 | |
39fd3d4f | 6245 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
6246 | (exit $ac_status); } && { |
6247 | test -z "$ac_c_werror_flag" || | |
6248 | test ! -s conftest.err | |
6249 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
6250 | gt_cv_c_wint_t=yes |
6251 | else | |
39fd3d4f | 6252 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
6253 | sed 's/^/| /' conftest.$ac_ext >&5 |
6254 | ||
e1052144 | 6255 | gt_cv_c_wint_t=no |
b0cacab0 | 6256 | fi |
e1052144 TT |
6257 | |
6258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 6259 | fi |
39fd3d4f SJR |
6260 | { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
6261 | $as_echo "$gt_cv_c_wint_t" >&6; } | |
b0cacab0 TT |
6262 | if test $gt_cv_c_wint_t = yes; then |
6263 | ||
6264 | cat >>confdefs.h <<\_ACEOF | |
6265 | #define HAVE_WINT_T 1 | |
6266 | _ACEOF | |
a64c9c13 | 6267 | |
b0cacab0 TT |
6268 | fi |
6269 | ||
6270 | ||
39fd3d4f SJR |
6271 | { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
6272 | $as_echo_n "checking for inttypes.h... " >&6; } | |
b0cacab0 | 6273 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
39fd3d4f | 6274 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
6275 | else |
6276 | cat >conftest.$ac_ext <<_ACEOF | |
6277 | /* confdefs.h. */ | |
6278 | _ACEOF | |
6279 | cat confdefs.h >>conftest.$ac_ext | |
6280 | cat >>conftest.$ac_ext <<_ACEOF | |
6281 | /* end confdefs.h. */ | |
93636bde | 6282 | #include <sys/types.h> |
b0cacab0 TT |
6283 | #include <inttypes.h> |
6284 | int | |
6285 | main () | |
6286 | { | |
6287 | uintmax_t i = (uintmax_t) -1; | |
6288 | ; | |
6289 | return 0; | |
6290 | } | |
6291 | _ACEOF | |
6292 | rm -f conftest.$ac_objext | |
e1052144 TT |
6293 | if { (ac_try="$ac_compile" |
6294 | case "(($ac_try" in | |
6295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6296 | *) ac_try_echo=$ac_try;; | |
6297 | esac | |
39fd3d4f SJR |
6298 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6299 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 6300 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
6301 | ac_status=$? |
6302 | grep -v '^ *+' conftest.er1 >conftest.err | |
6303 | rm -f conftest.er1 | |
6304 | cat conftest.err >&5 | |
39fd3d4f | 6305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
6306 | (exit $ac_status); } && { |
6307 | test -z "$ac_c_werror_flag" || | |
6308 | test ! -s conftest.err | |
6309 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
6310 | jm_ac_cv_header_inttypes_h=yes |
6311 | else | |
39fd3d4f | 6312 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 | 6313 | sed 's/^/| /' conftest.$ac_ext >&5 |
a64c9c13 | 6314 | |
e1052144 | 6315 | jm_ac_cv_header_inttypes_h=no |
b0cacab0 | 6316 | fi |
e1052144 TT |
6317 | |
6318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 6319 | fi |
39fd3d4f SJR |
6320 | { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
6321 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } | |
b0cacab0 | 6322 | if test $jm_ac_cv_header_inttypes_h = yes; then |
93636bde | 6323 | |
b0cacab0 TT |
6324 | cat >>confdefs.h <<_ACEOF |
6325 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
6326 | _ACEOF | |
a64c9c13 | 6327 | |
b0cacab0 | 6328 | fi |
a64c9c13 | 6329 | |
a64c9c13 | 6330 | |
39fd3d4f SJR |
6331 | { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5 |
6332 | $as_echo_n "checking for stdint.h... " >&6; } | |
b0cacab0 | 6333 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
39fd3d4f | 6334 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
6335 | else |
6336 | cat >conftest.$ac_ext <<_ACEOF | |
6337 | /* confdefs.h. */ | |
6338 | _ACEOF | |
6339 | cat confdefs.h >>conftest.$ac_ext | |
6340 | cat >>conftest.$ac_ext <<_ACEOF | |
6341 | /* end confdefs.h. */ | |
6342 | #include <sys/types.h> | |
6343 | #include <stdint.h> | |
6344 | int | |
6345 | main () | |
6346 | { | |
6347 | uintmax_t i = (uintmax_t) -1; | |
6348 | ; | |
6349 | return 0; | |
6350 | } | |
6351 | _ACEOF | |
6352 | rm -f conftest.$ac_objext | |
e1052144 TT |
6353 | if { (ac_try="$ac_compile" |
6354 | case "(($ac_try" in | |
6355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6356 | *) ac_try_echo=$ac_try;; | |
6357 | esac | |
39fd3d4f SJR |
6358 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6359 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 6360 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
6361 | ac_status=$? |
6362 | grep -v '^ *+' conftest.er1 >conftest.err | |
6363 | rm -f conftest.er1 | |
6364 | cat conftest.err >&5 | |
39fd3d4f | 6365 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
6366 | (exit $ac_status); } && { |
6367 | test -z "$ac_c_werror_flag" || | |
6368 | test ! -s conftest.err | |
6369 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
6370 | jm_ac_cv_header_stdint_h=yes |
6371 | else | |
39fd3d4f | 6372 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
6373 | sed 's/^/| /' conftest.$ac_ext >&5 |
6374 | ||
e1052144 | 6375 | jm_ac_cv_header_stdint_h=no |
b0cacab0 | 6376 | fi |
e1052144 TT |
6377 | |
6378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 6379 | fi |
39fd3d4f SJR |
6380 | { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
6381 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } | |
b0cacab0 TT |
6382 | if test $jm_ac_cv_header_stdint_h = yes; then |
6383 | ||
6384 | cat >>confdefs.h <<_ACEOF | |
6385 | #define HAVE_STDINT_H_WITH_UINTMAX 1 | |
6386 | _ACEOF | |
6387 | ||
6388 | fi | |
6389 | ||
6390 | ||
6391 | ||
6392 | ||
39fd3d4f SJR |
6393 | { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5 |
6394 | $as_echo_n "checking for intmax_t... " >&6; } | |
b0cacab0 | 6395 | if test "${gt_cv_c_intmax_t+set}" = set; then |
39fd3d4f | 6396 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
6397 | else |
6398 | cat >conftest.$ac_ext <<_ACEOF | |
6399 | /* confdefs.h. */ | |
6400 | _ACEOF | |
6401 | cat confdefs.h >>conftest.$ac_ext | |
6402 | cat >>conftest.$ac_ext <<_ACEOF | |
6403 | /* end confdefs.h. */ | |
6404 | ||
6405 | #include <stddef.h> | |
6406 | #include <stdlib.h> | |
6407 | #if HAVE_STDINT_H_WITH_UINTMAX | |
6408 | #include <stdint.h> | |
6409 | #endif | |
6410 | #if HAVE_INTTYPES_H_WITH_UINTMAX | |
6411 | #include <inttypes.h> | |
93636bde TT |
6412 | #endif |
6413 | ||
a64c9c13 | 6414 | int |
b0cacab0 TT |
6415 | main () |
6416 | { | |
6417 | intmax_t x = -1; | |
6418 | ; | |
6419 | return 0; | |
a64c9c13 | 6420 | } |
b0cacab0 TT |
6421 | _ACEOF |
6422 | rm -f conftest.$ac_objext | |
e1052144 TT |
6423 | if { (ac_try="$ac_compile" |
6424 | case "(($ac_try" in | |
6425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6426 | *) ac_try_echo=$ac_try;; | |
6427 | esac | |
39fd3d4f SJR |
6428 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6429 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 6430 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
6431 | ac_status=$? |
6432 | grep -v '^ *+' conftest.er1 >conftest.err | |
6433 | rm -f conftest.er1 | |
6434 | cat conftest.err >&5 | |
39fd3d4f | 6435 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
6436 | (exit $ac_status); } && { |
6437 | test -z "$ac_c_werror_flag" || | |
6438 | test ! -s conftest.err | |
6439 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
6440 | gt_cv_c_intmax_t=yes |
6441 | else | |
39fd3d4f | 6442 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
6443 | sed 's/^/| /' conftest.$ac_ext >&5 |
6444 | ||
e1052144 | 6445 | gt_cv_c_intmax_t=no |
b0cacab0 | 6446 | fi |
e1052144 TT |
6447 | |
6448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 6449 | fi |
39fd3d4f SJR |
6450 | { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
6451 | $as_echo "$gt_cv_c_intmax_t" >&6; } | |
b0cacab0 TT |
6452 | if test $gt_cv_c_intmax_t = yes; then |
6453 | ||
6454 | cat >>confdefs.h <<\_ACEOF | |
6455 | #define HAVE_INTMAX_T 1 | |
6456 | _ACEOF | |
93636bde | 6457 | |
b0cacab0 TT |
6458 | fi |
6459 | ||
6460 | ||
6461 | ||
39fd3d4f SJR |
6462 | { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
6463 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } | |
b0cacab0 | 6464 | if test "${gt_cv_func_printf_posix+set}" = set; then |
39fd3d4f | 6465 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 6466 | else |
b0cacab0 TT |
6467 | |
6468 | if test "$cross_compiling" = yes; then | |
6469 | ||
6470 | cat >conftest.$ac_ext <<_ACEOF | |
6471 | /* confdefs.h. */ | |
6472 | _ACEOF | |
6473 | cat confdefs.h >>conftest.$ac_ext | |
6474 | cat >>conftest.$ac_ext <<_ACEOF | |
6475 | /* end confdefs.h. */ | |
6476 | ||
6477 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ | |
6478 | notposix | |
6479 | #endif | |
6480 | ||
6481 | _ACEOF | |
6482 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6483 | $EGREP "notposix" >/dev/null 2>&1; then | |
6484 | gt_cv_func_printf_posix="guessing no" | |
6485 | else | |
6486 | gt_cv_func_printf_posix="guessing yes" | |
a64c9c13 | 6487 | fi |
b0cacab0 TT |
6488 | rm -f conftest* |
6489 | ||
6490 | ||
6491 | else | |
6492 | cat >conftest.$ac_ext <<_ACEOF | |
6493 | /* confdefs.h. */ | |
6494 | _ACEOF | |
6495 | cat confdefs.h >>conftest.$ac_ext | |
6496 | cat >>conftest.$ac_ext <<_ACEOF | |
6497 | /* end confdefs.h. */ | |
6498 | ||
6499 | #include <stdio.h> | |
6500 | #include <string.h> | |
6501 | /* The string "%2$d %1$d", with dollar characters protected from the shell's | |
6502 | dollar expansion (possibly an autoconf bug). */ | |
6503 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; | |
6504 | static char buf[100]; | |
6505 | int main () | |
6506 | { | |
6507 | sprintf (buf, format, 33, 55); | |
6508 | return (strcmp (buf, "55 33") != 0); | |
6509 | } | |
6510 | _ACEOF | |
6511 | rm -f conftest$ac_exeext | |
e1052144 TT |
6512 | if { (ac_try="$ac_link" |
6513 | case "(($ac_try" in | |
6514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6515 | *) ac_try_echo=$ac_try;; | |
6516 | esac | |
39fd3d4f SJR |
6517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6518 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 6519 | (eval "$ac_link") 2>&5 |
b0cacab0 | 6520 | ac_status=$? |
39fd3d4f | 6521 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 6522 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
e1052144 TT |
6523 | { (case "(($ac_try" in |
6524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6525 | *) ac_try_echo=$ac_try;; | |
6526 | esac | |
39fd3d4f SJR |
6527 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6528 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 6529 | (eval "$ac_try") 2>&5 |
b0cacab0 | 6530 | ac_status=$? |
39fd3d4f | 6531 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 TT |
6532 | (exit $ac_status); }; }; then |
6533 | gt_cv_func_printf_posix=yes | |
6534 | else | |
39fd3d4f SJR |
6535 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6536 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
6537 | sed 's/^/| /' conftest.$ac_ext >&5 |
6538 | ||
6539 | ( exit $ac_status ) | |
6540 | gt_cv_func_printf_posix=no | |
6541 | fi | |
39fd3d4f | 6542 | rm -rf conftest.dSYM |
e1052144 | 6543 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a64c9c13 | 6544 | fi |
93636bde | 6545 | |
e1052144 TT |
6546 | |
6547 | ||
a64c9c13 | 6548 | fi |
39fd3d4f SJR |
6549 | { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
6550 | $as_echo "$gt_cv_func_printf_posix" >&6; } | |
b0cacab0 TT |
6551 | case $gt_cv_func_printf_posix in |
6552 | *yes) | |
07a0db15 | 6553 | |
b0cacab0 TT |
6554 | cat >>confdefs.h <<\_ACEOF |
6555 | #define HAVE_POSIX_PRINTF 1 | |
6556 | _ACEOF | |
6557 | ||
6558 | ;; | |
6559 | esac | |
6560 | ||
6561 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6562 | # for constant arguments. Useless! | |
39fd3d4f SJR |
6563 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6564 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b0cacab0 | 6565 | if test "${ac_cv_working_alloca_h+set}" = set; then |
39fd3d4f | 6566 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
6567 | else |
6568 | cat >conftest.$ac_ext <<_ACEOF | |
6569 | /* confdefs.h. */ | |
6570 | _ACEOF | |
6571 | cat confdefs.h >>conftest.$ac_ext | |
6572 | cat >>conftest.$ac_ext <<_ACEOF | |
6573 | /* end confdefs.h. */ | |
6574 | #include <alloca.h> | |
6575 | int | |
6576 | main () | |
6577 | { | |
6578 | char *p = (char *) alloca (2 * sizeof (int)); | |
e1052144 | 6579 | if (p) return 0; |
b0cacab0 TT |
6580 | ; |
6581 | return 0; | |
6582 | } | |
6583 | _ACEOF | |
6584 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
6585 | if { (ac_try="$ac_link" |
6586 | case "(($ac_try" in | |
6587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6588 | *) ac_try_echo=$ac_try;; | |
6589 | esac | |
39fd3d4f SJR |
6590 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6591 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 6592 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
6593 | ac_status=$? |
6594 | grep -v '^ *+' conftest.er1 >conftest.err | |
6595 | rm -f conftest.er1 | |
6596 | cat conftest.err >&5 | |
39fd3d4f | 6597 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
6598 | (exit $ac_status); } && { |
6599 | test -z "$ac_c_werror_flag" || | |
6600 | test ! -s conftest.err | |
39fd3d4f SJR |
6601 | } && test -s conftest$ac_exeext && { |
6602 | test "$cross_compiling" = yes || | |
6603 | $as_test_x conftest$ac_exeext | |
6604 | }; then | |
b0cacab0 TT |
6605 | ac_cv_working_alloca_h=yes |
6606 | else | |
39fd3d4f | 6607 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
6608 | sed 's/^/| /' conftest.$ac_ext >&5 |
6609 | ||
e1052144 | 6610 | ac_cv_working_alloca_h=no |
b0cacab0 | 6611 | fi |
e1052144 | 6612 | |
39fd3d4f | 6613 | rm -rf conftest.dSYM |
29a5deed | 6614 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
6615 | conftest$ac_exeext conftest.$ac_ext |
6616 | fi | |
39fd3d4f SJR |
6617 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6618 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
b0cacab0 TT |
6619 | if test $ac_cv_working_alloca_h = yes; then |
6620 | ||
6621 | cat >>confdefs.h <<\_ACEOF | |
6622 | #define HAVE_ALLOCA_H 1 | |
6623 | _ACEOF | |
a64c9c13 TT |
6624 | |
6625 | fi | |
6626 | ||
39fd3d4f SJR |
6627 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6628 | $as_echo_n "checking for alloca... " >&6; } | |
b0cacab0 | 6629 | if test "${ac_cv_func_alloca_works+set}" = set; then |
39fd3d4f | 6630 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
6631 | else |
6632 | cat >conftest.$ac_ext <<_ACEOF | |
6633 | /* confdefs.h. */ | |
6634 | _ACEOF | |
6635 | cat confdefs.h >>conftest.$ac_ext | |
6636 | cat >>conftest.$ac_ext <<_ACEOF | |
6637 | /* end confdefs.h. */ | |
6638 | #ifdef __GNUC__ | |
6639 | # define alloca __builtin_alloca | |
6640 | #else | |
6641 | # ifdef _MSC_VER | |
6642 | # include <malloc.h> | |
6643 | # define alloca _alloca | |
6644 | # else | |
29a5deed | 6645 | # ifdef HAVE_ALLOCA_H |
b0cacab0 TT |
6646 | # include <alloca.h> |
6647 | # else | |
6648 | # ifdef _AIX | |
6649 | #pragma alloca | |
6650 | # else | |
6651 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6652 | char *alloca (); | |
6653 | # endif | |
6654 | # endif | |
6655 | # endif | |
6656 | # endif | |
6657 | #endif | |
93636bde | 6658 | |
b0cacab0 TT |
6659 | int |
6660 | main () | |
6661 | { | |
6662 | char *p = (char *) alloca (1); | |
e1052144 | 6663 | if (p) return 0; |
b0cacab0 TT |
6664 | ; |
6665 | return 0; | |
6666 | } | |
6667 | _ACEOF | |
6668 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
6669 | if { (ac_try="$ac_link" |
6670 | case "(($ac_try" in | |
6671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6672 | *) ac_try_echo=$ac_try;; | |
6673 | esac | |
39fd3d4f SJR |
6674 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6675 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 6676 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
6677 | ac_status=$? |
6678 | grep -v '^ *+' conftest.er1 >conftest.err | |
6679 | rm -f conftest.er1 | |
6680 | cat conftest.err >&5 | |
39fd3d4f | 6681 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
6682 | (exit $ac_status); } && { |
6683 | test -z "$ac_c_werror_flag" || | |
6684 | test ! -s conftest.err | |
39fd3d4f SJR |
6685 | } && test -s conftest$ac_exeext && { |
6686 | test "$cross_compiling" = yes || | |
6687 | $as_test_x conftest$ac_exeext | |
6688 | }; then | |
b0cacab0 | 6689 | ac_cv_func_alloca_works=yes |
a64c9c13 | 6690 | else |
39fd3d4f | 6691 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 | 6692 | sed 's/^/| /' conftest.$ac_ext >&5 |
a04eba3f | 6693 | |
e1052144 | 6694 | ac_cv_func_alloca_works=no |
b0cacab0 | 6695 | fi |
e1052144 | 6696 | |
39fd3d4f | 6697 | rm -rf conftest.dSYM |
29a5deed | 6698 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
6699 | conftest$ac_exeext conftest.$ac_ext |
6700 | fi | |
39fd3d4f SJR |
6701 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6702 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
b0cacab0 TT |
6703 | |
6704 | if test $ac_cv_func_alloca_works = yes; then | |
6705 | ||
6706 | cat >>confdefs.h <<\_ACEOF | |
6707 | #define HAVE_ALLOCA 1 | |
6708 | _ACEOF | |
6709 | ||
6710 | else | |
6711 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6712 | # that cause trouble. Some versions do not even contain alloca or | |
6713 | # contain a buggy version. If you still want to use their alloca, | |
6714 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6715 | ||
e1052144 | 6716 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
b0cacab0 TT |
6717 | |
6718 | cat >>confdefs.h <<\_ACEOF | |
6719 | #define C_ALLOCA 1 | |
6720 | _ACEOF | |
6721 | ||
6722 | ||
39fd3d4f SJR |
6723 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6724 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
b0cacab0 | 6725 | if test "${ac_cv_os_cray+set}" = set; then |
39fd3d4f | 6726 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
6727 | else |
6728 | cat >conftest.$ac_ext <<_ACEOF | |
6729 | /* confdefs.h. */ | |
6730 | _ACEOF | |
6731 | cat confdefs.h >>conftest.$ac_ext | |
6732 | cat >>conftest.$ac_ext <<_ACEOF | |
6733 | /* end confdefs.h. */ | |
e1052144 | 6734 | #if defined CRAY && ! defined CRAY2 |
b0cacab0 TT |
6735 | webecray |
6736 | #else | |
6737 | wenotbecray | |
a04eba3f | 6738 | #endif |
b0cacab0 TT |
6739 | |
6740 | _ACEOF | |
a04eba3f | 6741 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b0cacab0 TT |
6742 | $EGREP "webecray" >/dev/null 2>&1; then |
6743 | ac_cv_os_cray=yes | |
a64c9c13 | 6744 | else |
b0cacab0 | 6745 | ac_cv_os_cray=no |
a64c9c13 TT |
6746 | fi |
6747 | rm -f conftest* | |
a04eba3f | 6748 | |
a64c9c13 | 6749 | fi |
39fd3d4f SJR |
6750 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6751 | $as_echo "$ac_cv_os_cray" >&6; } | |
b0cacab0 TT |
6752 | if test $ac_cv_os_cray = yes; then |
6753 | for ac_func in _getb67 GETB67 getb67; do | |
39fd3d4f SJR |
6754 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6755 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6756 | $as_echo_n "checking for $ac_func... " >&6; } | |
e1052144 | 6757 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 6758 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
6759 | else |
6760 | cat >conftest.$ac_ext <<_ACEOF | |
6761 | /* confdefs.h. */ | |
6762 | _ACEOF | |
6763 | cat confdefs.h >>conftest.$ac_ext | |
6764 | cat >>conftest.$ac_ext <<_ACEOF | |
6765 | /* end confdefs.h. */ | |
6766 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6767 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6768 | #define $ac_func innocuous_$ac_func | |
a64c9c13 | 6769 | |
b0cacab0 TT |
6770 | /* System header to define __stub macros and hopefully few prototypes, |
6771 | which can conflict with char $ac_func (); below. | |
6772 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6773 | <limits.h> exists even on freestanding compilers. */ | |
07a0db15 | 6774 | |
b0cacab0 TT |
6775 | #ifdef __STDC__ |
6776 | # include <limits.h> | |
6777 | #else | |
6778 | # include <assert.h> | |
6779 | #endif | |
a64c9c13 | 6780 | |
b0cacab0 | 6781 | #undef $ac_func |
a64c9c13 | 6782 | |
e1052144 TT |
6783 | /* Override any GCC internal prototype to avoid an error. |
6784 | Use char because int might match the return type of a GCC | |
6785 | builtin and then its argument prototype would still apply. */ | |
a04eba3f | 6786 | #ifdef __cplusplus |
b0cacab0 | 6787 | extern "C" |
b0cacab0 | 6788 | #endif |
b0cacab0 TT |
6789 | char $ac_func (); |
6790 | /* The GNU C library defines this for functions which it implements | |
6791 | to always fail with ENOSYS. Some functions are actually named | |
6792 | something starting with __ and the normal name is an alias. */ | |
e1052144 | 6793 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b0cacab0 | 6794 | choke me |
b0cacab0 TT |
6795 | #endif |
6796 | ||
6797 | int | |
6798 | main () | |
a04eba3f | 6799 | { |
e1052144 | 6800 | return $ac_func (); |
b0cacab0 TT |
6801 | ; |
6802 | return 0; | |
a04eba3f | 6803 | } |
b0cacab0 TT |
6804 | _ACEOF |
6805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
6806 | if { (ac_try="$ac_link" |
6807 | case "(($ac_try" in | |
6808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6809 | *) ac_try_echo=$ac_try;; | |
6810 | esac | |
39fd3d4f SJR |
6811 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6812 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 6813 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
6814 | ac_status=$? |
6815 | grep -v '^ *+' conftest.er1 >conftest.err | |
6816 | rm -f conftest.er1 | |
6817 | cat conftest.err >&5 | |
39fd3d4f | 6818 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
6819 | (exit $ac_status); } && { |
6820 | test -z "$ac_c_werror_flag" || | |
6821 | test ! -s conftest.err | |
39fd3d4f SJR |
6822 | } && test -s conftest$ac_exeext && { |
6823 | test "$cross_compiling" = yes || | |
6824 | $as_test_x conftest$ac_exeext | |
6825 | }; then | |
b0cacab0 TT |
6826 | eval "$as_ac_var=yes" |
6827 | else | |
39fd3d4f | 6828 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
6829 | sed 's/^/| /' conftest.$ac_ext >&5 |
6830 | ||
e1052144 | 6831 | eval "$as_ac_var=no" |
b0cacab0 | 6832 | fi |
e1052144 | 6833 | |
39fd3d4f | 6834 | rm -rf conftest.dSYM |
29a5deed | 6835 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
6836 | conftest$ac_exeext conftest.$ac_ext |
6837 | fi | |
39fd3d4f SJR |
6838 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6839 | $as_echo "$as_val"'` | |
6840 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6841 | $as_echo "$ac_res" >&6; } | |
6842 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6843 | $as_echo "$as_val"'` | |
6844 | if test "x$as_val" = x""yes; then | |
b0cacab0 TT |
6845 | |
6846 | cat >>confdefs.h <<_ACEOF | |
6847 | #define CRAY_STACKSEG_END $ac_func | |
6848 | _ACEOF | |
a04eba3f | 6849 | |
b0cacab0 TT |
6850 | break |
6851 | fi | |
a04eba3f | 6852 | |
b0cacab0 TT |
6853 | done |
6854 | fi | |
6855 | ||
39fd3d4f SJR |
6856 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6857 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
b0cacab0 | 6858 | if test "${ac_cv_c_stack_direction+set}" = set; then |
39fd3d4f | 6859 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
6860 | else |
6861 | if test "$cross_compiling" = yes; then | |
6862 | ac_cv_c_stack_direction=0 | |
6863 | else | |
6864 | cat >conftest.$ac_ext <<_ACEOF | |
6865 | /* confdefs.h. */ | |
6866 | _ACEOF | |
6867 | cat confdefs.h >>conftest.$ac_ext | |
6868 | cat >>conftest.$ac_ext <<_ACEOF | |
6869 | /* end confdefs.h. */ | |
e1052144 | 6870 | $ac_includes_default |
b0cacab0 TT |
6871 | int |
6872 | find_stack_direction () | |
6873 | { | |
6874 | static char *addr = 0; | |
6875 | auto char dummy; | |
6876 | if (addr == 0) | |
6877 | { | |
6878 | addr = &dummy; | |
6879 | return find_stack_direction (); | |
6880 | } | |
6881 | else | |
6882 | return (&dummy > addr) ? 1 : -1; | |
6883 | } | |
6884 | ||
6885 | int | |
6886 | main () | |
6887 | { | |
e1052144 | 6888 | return find_stack_direction () < 0; |
b0cacab0 TT |
6889 | } |
6890 | _ACEOF | |
6891 | rm -f conftest$ac_exeext | |
e1052144 TT |
6892 | if { (ac_try="$ac_link" |
6893 | case "(($ac_try" in | |
6894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6895 | *) ac_try_echo=$ac_try;; | |
6896 | esac | |
39fd3d4f SJR |
6897 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6898 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 6899 | (eval "$ac_link") 2>&5 |
b0cacab0 | 6900 | ac_status=$? |
39fd3d4f | 6901 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 6902 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
e1052144 TT |
6903 | { (case "(($ac_try" in |
6904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6905 | *) ac_try_echo=$ac_try;; | |
6906 | esac | |
39fd3d4f SJR |
6907 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6908 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 6909 | (eval "$ac_try") 2>&5 |
b0cacab0 | 6910 | ac_status=$? |
39fd3d4f | 6911 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 TT |
6912 | (exit $ac_status); }; }; then |
6913 | ac_cv_c_stack_direction=1 | |
6914 | else | |
39fd3d4f SJR |
6915 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6916 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
6917 | sed 's/^/| /' conftest.$ac_ext >&5 |
6918 | ||
6919 | ( exit $ac_status ) | |
6920 | ac_cv_c_stack_direction=-1 | |
6921 | fi | |
39fd3d4f | 6922 | rm -rf conftest.dSYM |
e1052144 | 6923 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 | 6924 | fi |
e1052144 TT |
6925 | |
6926 | ||
b0cacab0 | 6927 | fi |
39fd3d4f SJR |
6928 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6929 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
b0cacab0 TT |
6930 | |
6931 | cat >>confdefs.h <<_ACEOF | |
6932 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6933 | _ACEOF | |
6934 | ||
6935 | ||
6936 | fi | |
6937 | ||
6938 | ||
6939 | ||
6940 | for ac_header in stdlib.h unistd.h | |
6941 | do | |
39fd3d4f | 6942 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
e1052144 | 6943 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f SJR |
6944 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6945 | $as_echo_n "checking for $ac_header... " >&6; } | |
e1052144 | 6946 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 6947 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 6948 | fi |
39fd3d4f SJR |
6949 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6950 | $as_echo "$as_val"'` | |
6951 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6952 | $as_echo "$ac_res" >&6; } | |
b0cacab0 TT |
6953 | else |
6954 | # Is the header compilable? | |
39fd3d4f SJR |
6955 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6956 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b0cacab0 TT |
6957 | cat >conftest.$ac_ext <<_ACEOF |
6958 | /* confdefs.h. */ | |
6959 | _ACEOF | |
6960 | cat confdefs.h >>conftest.$ac_ext | |
6961 | cat >>conftest.$ac_ext <<_ACEOF | |
6962 | /* end confdefs.h. */ | |
6963 | $ac_includes_default | |
6964 | #include <$ac_header> | |
6965 | _ACEOF | |
6966 | rm -f conftest.$ac_objext | |
e1052144 TT |
6967 | if { (ac_try="$ac_compile" |
6968 | case "(($ac_try" in | |
6969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6970 | *) ac_try_echo=$ac_try;; | |
6971 | esac | |
39fd3d4f SJR |
6972 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6973 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 6974 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
6975 | ac_status=$? |
6976 | grep -v '^ *+' conftest.er1 >conftest.err | |
6977 | rm -f conftest.er1 | |
6978 | cat conftest.err >&5 | |
39fd3d4f | 6979 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
6980 | (exit $ac_status); } && { |
6981 | test -z "$ac_c_werror_flag" || | |
6982 | test ! -s conftest.err | |
6983 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
6984 | ac_header_compiler=yes |
6985 | else | |
39fd3d4f | 6986 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
6987 | sed 's/^/| /' conftest.$ac_ext >&5 |
6988 | ||
e1052144 | 6989 | ac_header_compiler=no |
b0cacab0 | 6990 | fi |
e1052144 TT |
6991 | |
6992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
39fd3d4f SJR |
6993 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6994 | $as_echo "$ac_header_compiler" >&6; } | |
b0cacab0 TT |
6995 | |
6996 | # Is the header present? | |
39fd3d4f SJR |
6997 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6998 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b0cacab0 TT |
6999 | cat >conftest.$ac_ext <<_ACEOF |
7000 | /* confdefs.h. */ | |
7001 | _ACEOF | |
7002 | cat confdefs.h >>conftest.$ac_ext | |
7003 | cat >>conftest.$ac_ext <<_ACEOF | |
7004 | /* end confdefs.h. */ | |
7005 | #include <$ac_header> | |
7006 | _ACEOF | |
e1052144 TT |
7007 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7008 | case "(($ac_try" in | |
7009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7010 | *) ac_try_echo=$ac_try;; | |
7011 | esac | |
39fd3d4f SJR |
7012 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7013 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 7014 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
b0cacab0 TT |
7015 | ac_status=$? |
7016 | grep -v '^ *+' conftest.er1 >conftest.err | |
7017 | rm -f conftest.er1 | |
7018 | cat conftest.err >&5 | |
39fd3d4f | 7019 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
7020 | (exit $ac_status); } >/dev/null && { |
7021 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7022 | test ! -s conftest.err | |
7023 | }; then | |
b0cacab0 TT |
7024 | ac_header_preproc=yes |
7025 | else | |
39fd3d4f | 7026 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
7027 | sed 's/^/| /' conftest.$ac_ext >&5 |
7028 | ||
7029 | ac_header_preproc=no | |
7030 | fi | |
e1052144 | 7031 | |
b0cacab0 | 7032 | rm -f conftest.err conftest.$ac_ext |
39fd3d4f SJR |
7033 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7034 | $as_echo "$ac_header_preproc" >&6; } | |
b0cacab0 TT |
7035 | |
7036 | # So? What about this header? | |
7037 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7038 | yes:no: ) | |
39fd3d4f SJR |
7039 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7040 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7041 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7042 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
b0cacab0 TT |
7043 | ac_header_preproc=yes |
7044 | ;; | |
7045 | no:yes:* ) | |
39fd3d4f SJR |
7046 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7047 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7048 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7049 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7050 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7051 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7052 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7053 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7054 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7055 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7056 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7057 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e1052144 | 7058 | |
b0cacab0 TT |
7059 | ;; |
7060 | esac | |
39fd3d4f SJR |
7061 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7062 | $as_echo_n "checking for $ac_header... " >&6; } | |
e1052144 | 7063 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 7064 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
7065 | else |
7066 | eval "$as_ac_Header=\$ac_header_preproc" | |
7067 | fi | |
39fd3d4f SJR |
7068 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7069 | $as_echo "$as_val"'` | |
7070 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7071 | $as_echo "$ac_res" >&6; } | |
b0cacab0 TT |
7072 | |
7073 | fi | |
39fd3d4f SJR |
7074 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7075 | $as_echo "$as_val"'` | |
7076 | if test "x$as_val" = x""yes; then | |
b0cacab0 | 7077 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 7078 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b0cacab0 TT |
7079 | _ACEOF |
7080 | ||
7081 | fi | |
7082 | ||
7083 | done | |
7084 | ||
7085 | ||
7086 | for ac_func in getpagesize | |
7087 | do | |
39fd3d4f SJR |
7088 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7089 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7090 | $as_echo_n "checking for $ac_func... " >&6; } | |
e1052144 | 7091 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 7092 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
7093 | else |
7094 | cat >conftest.$ac_ext <<_ACEOF | |
7095 | /* confdefs.h. */ | |
7096 | _ACEOF | |
7097 | cat confdefs.h >>conftest.$ac_ext | |
7098 | cat >>conftest.$ac_ext <<_ACEOF | |
7099 | /* end confdefs.h. */ | |
7100 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7101 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7102 | #define $ac_func innocuous_$ac_func | |
7103 | ||
7104 | /* System header to define __stub macros and hopefully few prototypes, | |
7105 | which can conflict with char $ac_func (); below. | |
7106 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7107 | <limits.h> exists even on freestanding compilers. */ | |
7108 | ||
7109 | #ifdef __STDC__ | |
7110 | # include <limits.h> | |
7111 | #else | |
7112 | # include <assert.h> | |
7113 | #endif | |
7114 | ||
7115 | #undef $ac_func | |
7116 | ||
e1052144 TT |
7117 | /* Override any GCC internal prototype to avoid an error. |
7118 | Use char because int might match the return type of a GCC | |
7119 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
7120 | #ifdef __cplusplus |
7121 | extern "C" | |
b0cacab0 | 7122 | #endif |
b0cacab0 TT |
7123 | char $ac_func (); |
7124 | /* The GNU C library defines this for functions which it implements | |
7125 | to always fail with ENOSYS. Some functions are actually named | |
7126 | something starting with __ and the normal name is an alias. */ | |
e1052144 | 7127 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b0cacab0 | 7128 | choke me |
b0cacab0 TT |
7129 | #endif |
7130 | ||
7131 | int | |
7132 | main () | |
7133 | { | |
e1052144 | 7134 | return $ac_func (); |
b0cacab0 TT |
7135 | ; |
7136 | return 0; | |
7137 | } | |
7138 | _ACEOF | |
7139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
7140 | if { (ac_try="$ac_link" |
7141 | case "(($ac_try" in | |
7142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7143 | *) ac_try_echo=$ac_try;; | |
7144 | esac | |
39fd3d4f SJR |
7145 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7146 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 7147 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
7148 | ac_status=$? |
7149 | grep -v '^ *+' conftest.er1 >conftest.err | |
7150 | rm -f conftest.er1 | |
7151 | cat conftest.err >&5 | |
39fd3d4f | 7152 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
7153 | (exit $ac_status); } && { |
7154 | test -z "$ac_c_werror_flag" || | |
7155 | test ! -s conftest.err | |
39fd3d4f SJR |
7156 | } && test -s conftest$ac_exeext && { |
7157 | test "$cross_compiling" = yes || | |
7158 | $as_test_x conftest$ac_exeext | |
7159 | }; then | |
b0cacab0 TT |
7160 | eval "$as_ac_var=yes" |
7161 | else | |
39fd3d4f | 7162 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
7163 | sed 's/^/| /' conftest.$ac_ext >&5 |
7164 | ||
e1052144 | 7165 | eval "$as_ac_var=no" |
b0cacab0 | 7166 | fi |
e1052144 | 7167 | |
39fd3d4f | 7168 | rm -rf conftest.dSYM |
29a5deed | 7169 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
7170 | conftest$ac_exeext conftest.$ac_ext |
7171 | fi | |
39fd3d4f SJR |
7172 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7173 | $as_echo "$as_val"'` | |
7174 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7175 | $as_echo "$ac_res" >&6; } | |
7176 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7177 | $as_echo "$as_val"'` | |
7178 | if test "x$as_val" = x""yes; then | |
b0cacab0 | 7179 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 7180 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b0cacab0 TT |
7181 | _ACEOF |
7182 | ||
7183 | fi | |
7184 | done | |
7185 | ||
39fd3d4f SJR |
7186 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
7187 | $as_echo_n "checking for working mmap... " >&6; } | |
b0cacab0 | 7188 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
39fd3d4f | 7189 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
7190 | else |
7191 | if test "$cross_compiling" = yes; then | |
7192 | ac_cv_func_mmap_fixed_mapped=no | |
7193 | else | |
7194 | cat >conftest.$ac_ext <<_ACEOF | |
7195 | /* confdefs.h. */ | |
7196 | _ACEOF | |
7197 | cat confdefs.h >>conftest.$ac_ext | |
7198 | cat >>conftest.$ac_ext <<_ACEOF | |
7199 | /* end confdefs.h. */ | |
7200 | $ac_includes_default | |
7201 | /* malloc might have been renamed as rpl_malloc. */ | |
7202 | #undef malloc | |
7203 | ||
7204 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7205 | Here is a matrix of mmap possibilities: | |
7206 | mmap private not fixed | |
7207 | mmap private fixed at somewhere currently unmapped | |
7208 | mmap private fixed at somewhere already mapped | |
7209 | mmap shared not fixed | |
7210 | mmap shared fixed at somewhere currently unmapped | |
7211 | mmap shared fixed at somewhere already mapped | |
7212 | For private mappings, we should verify that changes cannot be read() | |
7213 | back from the file, nor mmap's back from the file at a different | |
7214 | address. (There have been systems where private was not correctly | |
7215 | implemented like the infamous i386 svr4.0, and systems where the | |
7216 | VM page cache was not coherent with the file system buffer cache | |
7217 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7218 | For shared mappings, we should conversely verify that changes get | |
7219 | propagated back to all the places they're supposed to be. | |
7220 | ||
7221 | Grep wants private fixed already mapped. | |
7222 | The main things grep needs to know about mmap are: | |
7223 | * does it exist and is it safe to write into the mmap'd area | |
7224 | * how to use it (BSD variants) */ | |
7225 | ||
7226 | #include <fcntl.h> | |
7227 | #include <sys/mman.h> | |
7228 | ||
29a5deed | 7229 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
b0cacab0 TT |
7230 | char *malloc (); |
7231 | #endif | |
7232 | ||
7233 | /* This mess was copied from the GNU getpagesize.h. */ | |
29a5deed | 7234 | #ifndef HAVE_GETPAGESIZE |
b0cacab0 | 7235 | /* Assume that all systems that can run configure have sys/param.h. */ |
29a5deed | 7236 | # ifndef HAVE_SYS_PARAM_H |
b0cacab0 TT |
7237 | # define HAVE_SYS_PARAM_H 1 |
7238 | # endif | |
7239 | ||
7240 | # ifdef _SC_PAGESIZE | |
7241 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7242 | # else /* no _SC_PAGESIZE */ | |
29a5deed | 7243 | # ifdef HAVE_SYS_PARAM_H |
b0cacab0 TT |
7244 | # include <sys/param.h> |
7245 | # ifdef EXEC_PAGESIZE | |
7246 | # define getpagesize() EXEC_PAGESIZE | |
7247 | # else /* no EXEC_PAGESIZE */ | |
7248 | # ifdef NBPG | |
7249 | # define getpagesize() NBPG * CLSIZE | |
7250 | # ifndef CLSIZE | |
7251 | # define CLSIZE 1 | |
7252 | # endif /* no CLSIZE */ | |
7253 | # else /* no NBPG */ | |
7254 | # ifdef NBPC | |
7255 | # define getpagesize() NBPC | |
7256 | # else /* no NBPC */ | |
7257 | # ifdef PAGESIZE | |
7258 | # define getpagesize() PAGESIZE | |
7259 | # endif /* PAGESIZE */ | |
7260 | # endif /* no NBPC */ | |
7261 | # endif /* no NBPG */ | |
7262 | # endif /* no EXEC_PAGESIZE */ | |
7263 | # else /* no HAVE_SYS_PARAM_H */ | |
7264 | # define getpagesize() 8192 /* punt totally */ | |
7265 | # endif /* no HAVE_SYS_PARAM_H */ | |
7266 | # endif /* no _SC_PAGESIZE */ | |
7267 | ||
7268 | #endif /* no HAVE_GETPAGESIZE */ | |
7269 | ||
7270 | int | |
7271 | main () | |
7272 | { | |
7273 | char *data, *data2, *data3; | |
7274 | int i, pagesize; | |
7275 | int fd; | |
7276 | ||
7277 | pagesize = getpagesize (); | |
7278 | ||
7279 | /* First, make a file with some known garbage in it. */ | |
7280 | data = (char *) malloc (pagesize); | |
7281 | if (!data) | |
e1052144 | 7282 | return 1; |
b0cacab0 TT |
7283 | for (i = 0; i < pagesize; ++i) |
7284 | *(data + i) = rand (); | |
7285 | umask (0); | |
7286 | fd = creat ("conftest.mmap", 0600); | |
7287 | if (fd < 0) | |
e1052144 | 7288 | return 1; |
b0cacab0 | 7289 | if (write (fd, data, pagesize) != pagesize) |
e1052144 | 7290 | return 1; |
b0cacab0 TT |
7291 | close (fd); |
7292 | ||
7293 | /* Next, try to mmap the file at a fixed address which already has | |
7294 | something else allocated at it. If we can, also make sure that | |
7295 | we see the same garbage. */ | |
7296 | fd = open ("conftest.mmap", O_RDWR); | |
7297 | if (fd < 0) | |
e1052144 | 7298 | return 1; |
b0cacab0 TT |
7299 | data2 = (char *) malloc (2 * pagesize); |
7300 | if (!data2) | |
e1052144 TT |
7301 | return 1; |
7302 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
b0cacab0 TT |
7303 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
7304 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
e1052144 | 7305 | return 1; |
b0cacab0 TT |
7306 | for (i = 0; i < pagesize; ++i) |
7307 | if (*(data + i) != *(data2 + i)) | |
e1052144 | 7308 | return 1; |
b0cacab0 TT |
7309 | |
7310 | /* Finally, make sure that changes to the mapped area do not | |
7311 | percolate back to the file as seen by read(). (This is a bug on | |
7312 | some variants of i386 svr4.0.) */ | |
7313 | for (i = 0; i < pagesize; ++i) | |
7314 | *(data2 + i) = *(data2 + i) + 1; | |
7315 | data3 = (char *) malloc (pagesize); | |
7316 | if (!data3) | |
e1052144 | 7317 | return 1; |
b0cacab0 | 7318 | if (read (fd, data3, pagesize) != pagesize) |
e1052144 | 7319 | return 1; |
b0cacab0 TT |
7320 | for (i = 0; i < pagesize; ++i) |
7321 | if (*(data + i) != *(data3 + i)) | |
e1052144 | 7322 | return 1; |
b0cacab0 | 7323 | close (fd); |
e1052144 | 7324 | return 0; |
b0cacab0 TT |
7325 | } |
7326 | _ACEOF | |
7327 | rm -f conftest$ac_exeext | |
e1052144 TT |
7328 | if { (ac_try="$ac_link" |
7329 | case "(($ac_try" in | |
7330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7331 | *) ac_try_echo=$ac_try;; | |
7332 | esac | |
39fd3d4f SJR |
7333 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7334 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 7335 | (eval "$ac_link") 2>&5 |
b0cacab0 | 7336 | ac_status=$? |
39fd3d4f | 7337 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 7338 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
e1052144 TT |
7339 | { (case "(($ac_try" in |
7340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7341 | *) ac_try_echo=$ac_try;; | |
7342 | esac | |
39fd3d4f SJR |
7343 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7344 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 7345 | (eval "$ac_try") 2>&5 |
b0cacab0 | 7346 | ac_status=$? |
39fd3d4f | 7347 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 TT |
7348 | (exit $ac_status); }; }; then |
7349 | ac_cv_func_mmap_fixed_mapped=yes | |
7350 | else | |
39fd3d4f SJR |
7351 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7352 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
7353 | sed 's/^/| /' conftest.$ac_ext >&5 |
7354 | ||
7355 | ( exit $ac_status ) | |
7356 | ac_cv_func_mmap_fixed_mapped=no | |
7357 | fi | |
39fd3d4f | 7358 | rm -rf conftest.dSYM |
e1052144 | 7359 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 | 7360 | fi |
e1052144 TT |
7361 | |
7362 | ||
b0cacab0 | 7363 | fi |
39fd3d4f SJR |
7364 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
7365 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
b0cacab0 TT |
7366 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
7367 | ||
7368 | cat >>confdefs.h <<\_ACEOF | |
7369 | #define HAVE_MMAP 1 | |
7370 | _ACEOF | |
7371 | ||
7372 | fi | |
7373 | rm -f conftest.mmap | |
7374 | ||
7375 | ||
39fd3d4f SJR |
7376 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
7377 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } | |
b0cacab0 | 7378 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
39fd3d4f | 7379 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
7380 | else |
7381 | cat >conftest.$ac_ext <<_ACEOF | |
7382 | /* confdefs.h. */ | |
7383 | _ACEOF | |
7384 | cat confdefs.h >>conftest.$ac_ext | |
7385 | cat >>conftest.$ac_ext <<_ACEOF | |
7386 | /* end confdefs.h. */ | |
7387 | ||
7388 | #include <features.h> | |
7389 | #ifdef __GNU_LIBRARY__ | |
7390 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
7391 | Lucky GNU user | |
7392 | #endif | |
7393 | #endif | |
7394 | ||
7395 | _ACEOF | |
7396 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7397 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then | |
7398 | ac_cv_gnu_library_2_1=yes | |
7399 | else | |
7400 | ac_cv_gnu_library_2_1=no | |
7401 | fi | |
7402 | rm -f conftest* | |
7403 | ||
7404 | ||
7405 | ||
7406 | fi | |
39fd3d4f SJR |
7407 | { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
7408 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } | |
b0cacab0 TT |
7409 | |
7410 | GLIBC21="$ac_cv_gnu_library_2_1" | |
7411 | ||
7412 | ||
7413 | ||
7414 | ||
39fd3d4f SJR |
7415 | { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
7416 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } | |
b0cacab0 | 7417 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
39fd3d4f | 7418 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
7419 | else |
7420 | ||
7421 | if test "$cross_compiling" = yes; then | |
7422 | ||
7423 | # Guess based on the CPU. | |
7424 | case "$host_cpu" in | |
7425 | alpha* | i3456786 | m68k | s390*) | |
7426 | gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
7427 | *) | |
7428 | gt_cv_int_divbyzero_sigfpe="guessing no";; | |
7429 | esac | |
7430 | ||
7431 | else | |
7432 | cat >conftest.$ac_ext <<_ACEOF | |
7433 | /* confdefs.h. */ | |
7434 | _ACEOF | |
7435 | cat confdefs.h >>conftest.$ac_ext | |
7436 | cat >>conftest.$ac_ext <<_ACEOF | |
7437 | /* end confdefs.h. */ | |
7438 | ||
7439 | #include <stdlib.h> | |
7440 | #include <signal.h> | |
7441 | ||
7442 | static void | |
7443 | #ifdef __cplusplus | |
7444 | sigfpe_handler (int sig) | |
7445 | #else | |
7446 | sigfpe_handler (sig) int sig; | |
7447 | #endif | |
7448 | { | |
7449 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ | |
7450 | exit (sig != SIGFPE); | |
7451 | } | |
7452 | ||
7453 | int x = 1; | |
7454 | int y = 0; | |
7455 | int z; | |
7456 | int nan; | |
7457 | ||
7458 | int main () | |
a04eba3f TT |
7459 | { |
7460 | signal (SIGFPE, sigfpe_handler); | |
7461 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
7462 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
7463 | signal (SIGTRAP, sigfpe_handler); | |
7464 | #endif | |
7465 | /* Linux/SPARC yields signal SIGILL. */ | |
7466 | #if defined (__sparc__) && defined (__linux__) | |
7467 | signal (SIGILL, sigfpe_handler); | |
7468 | #endif | |
7469 | ||
7470 | z = x / y; | |
7471 | nan = y / y; | |
7472 | exit (1); | |
7473 | } | |
a64c9c13 | 7474 | |
b0cacab0 TT |
7475 | _ACEOF |
7476 | rm -f conftest$ac_exeext | |
e1052144 TT |
7477 | if { (ac_try="$ac_link" |
7478 | case "(($ac_try" in | |
7479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7480 | *) ac_try_echo=$ac_try;; | |
7481 | esac | |
39fd3d4f SJR |
7482 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7483 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 7484 | (eval "$ac_link") 2>&5 |
b0cacab0 | 7485 | ac_status=$? |
39fd3d4f | 7486 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 7487 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
e1052144 TT |
7488 | { (case "(($ac_try" in |
7489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7490 | *) ac_try_echo=$ac_try;; | |
7491 | esac | |
39fd3d4f SJR |
7492 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7493 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 7494 | (eval "$ac_try") 2>&5 |
b0cacab0 | 7495 | ac_status=$? |
39fd3d4f | 7496 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 7497 | (exit $ac_status); }; }; then |
a04eba3f | 7498 | gt_cv_int_divbyzero_sigfpe=yes |
a64c9c13 | 7499 | else |
39fd3d4f SJR |
7500 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7501 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
7502 | sed 's/^/| /' conftest.$ac_ext >&5 |
7503 | ||
7504 | ( exit $ac_status ) | |
7505 | gt_cv_int_divbyzero_sigfpe=no | |
7506 | fi | |
39fd3d4f | 7507 | rm -rf conftest.dSYM |
e1052144 | 7508 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
7509 | fi |
7510 | ||
e1052144 TT |
7511 | |
7512 | ||
b0cacab0 | 7513 | fi |
39fd3d4f SJR |
7514 | { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
7515 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } | |
b0cacab0 TT |
7516 | case "$gt_cv_int_divbyzero_sigfpe" in |
7517 | *yes) value=1;; | |
7518 | *) value=0;; | |
7519 | esac | |
7520 | ||
7521 | cat >>confdefs.h <<_ACEOF | |
7522 | #define INTDIV0_RAISES_SIGFPE $value | |
7523 | _ACEOF | |
7524 | ||
7525 | ||
7526 | ||
39fd3d4f SJR |
7527 | { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
7528 | $as_echo_n "checking for unsigned long long... " >&6; } | |
b0cacab0 | 7529 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
39fd3d4f | 7530 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
7531 | else |
7532 | cat >conftest.$ac_ext <<_ACEOF | |
7533 | /* confdefs.h. */ | |
7534 | _ACEOF | |
7535 | cat confdefs.h >>conftest.$ac_ext | |
7536 | cat >>conftest.$ac_ext <<_ACEOF | |
7537 | /* end confdefs.h. */ | |
7538 | unsigned long long ull = 1ULL; int i = 63; | |
7539 | int | |
7540 | main () | |
7541 | { | |
7542 | unsigned long long ullmax = (unsigned long long) -1; | |
7543 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
7544 | ; | |
7545 | return 0; | |
7546 | } | |
7547 | _ACEOF | |
7548 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
7549 | if { (ac_try="$ac_link" |
7550 | case "(($ac_try" in | |
7551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7552 | *) ac_try_echo=$ac_try;; | |
7553 | esac | |
39fd3d4f SJR |
7554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7555 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 7556 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
7557 | ac_status=$? |
7558 | grep -v '^ *+' conftest.er1 >conftest.err | |
7559 | rm -f conftest.er1 | |
7560 | cat conftest.err >&5 | |
39fd3d4f | 7561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
7562 | (exit $ac_status); } && { |
7563 | test -z "$ac_c_werror_flag" || | |
7564 | test ! -s conftest.err | |
39fd3d4f SJR |
7565 | } && test -s conftest$ac_exeext && { |
7566 | test "$cross_compiling" = yes || | |
7567 | $as_test_x conftest$ac_exeext | |
7568 | }; then | |
b0cacab0 TT |
7569 | ac_cv_type_unsigned_long_long=yes |
7570 | else | |
39fd3d4f | 7571 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
7572 | sed 's/^/| /' conftest.$ac_ext >&5 |
7573 | ||
e1052144 | 7574 | ac_cv_type_unsigned_long_long=no |
b0cacab0 | 7575 | fi |
e1052144 | 7576 | |
39fd3d4f | 7577 | rm -rf conftest.dSYM |
29a5deed | 7578 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
7579 | conftest$ac_exeext conftest.$ac_ext |
7580 | fi | |
39fd3d4f SJR |
7581 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
7582 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } | |
b0cacab0 TT |
7583 | if test $ac_cv_type_unsigned_long_long = yes; then |
7584 | ||
7585 | cat >>confdefs.h <<\_ACEOF | |
7586 | #define HAVE_UNSIGNED_LONG_LONG 1 | |
7587 | _ACEOF | |
7588 | ||
7589 | fi | |
7590 | ||
7591 | ||
7592 | ||
7593 | ||
7594 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then | |
7595 | ||
7596 | test $ac_cv_type_unsigned_long_long = yes \ | |
7597 | && ac_type='unsigned long long' \ | |
7598 | || ac_type='unsigned long' | |
7599 | ||
7600 | cat >>confdefs.h <<_ACEOF | |
7601 | #define uintmax_t $ac_type | |
7602 | _ACEOF | |
7603 | ||
7604 | else | |
7605 | ||
7606 | cat >>confdefs.h <<\_ACEOF | |
7607 | #define HAVE_UINTMAX_T 1 | |
7608 | _ACEOF | |
7609 | ||
7610 | fi | |
7611 | ||
7612 | ||
39fd3d4f SJR |
7613 | { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
7614 | $as_echo_n "checking for inttypes.h... " >&6; } | |
b0cacab0 | 7615 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
39fd3d4f | 7616 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
7617 | else |
7618 | ||
7619 | cat >conftest.$ac_ext <<_ACEOF | |
7620 | /* confdefs.h. */ | |
7621 | _ACEOF | |
7622 | cat confdefs.h >>conftest.$ac_ext | |
7623 | cat >>conftest.$ac_ext <<_ACEOF | |
7624 | /* end confdefs.h. */ | |
7625 | #include <sys/types.h> | |
7626 | #include <inttypes.h> | |
7627 | int | |
7628 | main () | |
7629 | { | |
7630 | ||
7631 | ; | |
7632 | return 0; | |
7633 | } | |
7634 | _ACEOF | |
7635 | rm -f conftest.$ac_objext | |
e1052144 TT |
7636 | if { (ac_try="$ac_compile" |
7637 | case "(($ac_try" in | |
7638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7639 | *) ac_try_echo=$ac_try;; | |
7640 | esac | |
39fd3d4f SJR |
7641 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7642 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 7643 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
7644 | ac_status=$? |
7645 | grep -v '^ *+' conftest.er1 >conftest.err | |
7646 | rm -f conftest.er1 | |
7647 | cat conftest.err >&5 | |
39fd3d4f | 7648 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
7649 | (exit $ac_status); } && { |
7650 | test -z "$ac_c_werror_flag" || | |
7651 | test ! -s conftest.err | |
7652 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7653 | gt_cv_header_inttypes_h=yes |
7654 | else | |
39fd3d4f | 7655 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
7656 | sed 's/^/| /' conftest.$ac_ext >&5 |
7657 | ||
e1052144 | 7658 | gt_cv_header_inttypes_h=no |
b0cacab0 | 7659 | fi |
e1052144 TT |
7660 | |
7661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
7662 | |
7663 | fi | |
39fd3d4f SJR |
7664 | { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
7665 | $as_echo "$gt_cv_header_inttypes_h" >&6; } | |
b0cacab0 TT |
7666 | if test $gt_cv_header_inttypes_h = yes; then |
7667 | ||
7668 | cat >>confdefs.h <<_ACEOF | |
7669 | #define HAVE_INTTYPES_H 1 | |
7670 | _ACEOF | |
7671 | ||
7672 | fi | |
7673 | ||
7674 | ||
7675 | ||
7676 | if test $gt_cv_header_inttypes_h = yes; then | |
39fd3d4f SJR |
7677 | { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
7678 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } | |
b0cacab0 | 7679 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
39fd3d4f | 7680 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
7681 | else |
7682 | ||
7683 | cat >conftest.$ac_ext <<_ACEOF | |
7684 | /* confdefs.h. */ | |
7685 | _ACEOF | |
7686 | cat confdefs.h >>conftest.$ac_ext | |
7687 | cat >>conftest.$ac_ext <<_ACEOF | |
7688 | /* end confdefs.h. */ | |
7689 | #include <inttypes.h> | |
7690 | #ifdef PRId32 | |
7691 | char *p = PRId32; | |
7692 | #endif | |
7693 | ||
7694 | int | |
7695 | main () | |
7696 | { | |
7697 | ||
7698 | ; | |
7699 | return 0; | |
7700 | } | |
7701 | _ACEOF | |
7702 | rm -f conftest.$ac_objext | |
e1052144 TT |
7703 | if { (ac_try="$ac_compile" |
7704 | case "(($ac_try" in | |
7705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7706 | *) ac_try_echo=$ac_try;; | |
7707 | esac | |
39fd3d4f SJR |
7708 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7709 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 7710 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
7711 | ac_status=$? |
7712 | grep -v '^ *+' conftest.er1 >conftest.err | |
7713 | rm -f conftest.er1 | |
7714 | cat conftest.err >&5 | |
39fd3d4f | 7715 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
7716 | (exit $ac_status); } && { |
7717 | test -z "$ac_c_werror_flag" || | |
7718 | test ! -s conftest.err | |
7719 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7720 | gt_cv_inttypes_pri_broken=no |
7721 | else | |
39fd3d4f | 7722 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
7723 | sed 's/^/| /' conftest.$ac_ext >&5 |
7724 | ||
e1052144 | 7725 | gt_cv_inttypes_pri_broken=yes |
b0cacab0 | 7726 | fi |
e1052144 TT |
7727 | |
7728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
7729 | |
7730 | fi | |
39fd3d4f SJR |
7731 | { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
7732 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } | |
b0cacab0 TT |
7733 | fi |
7734 | if test "$gt_cv_inttypes_pri_broken" = yes; then | |
7735 | ||
7736 | cat >>confdefs.h <<_ACEOF | |
7737 | #define PRI_MACROS_BROKEN 1 | |
7738 | _ACEOF | |
7739 | ||
7740 | fi | |
7741 | ||
7742 | ||
7743 | ||
7744 | for ac_header in stdint.h | |
7745 | do | |
39fd3d4f | 7746 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
e1052144 | 7747 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f SJR |
7748 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7749 | $as_echo_n "checking for $ac_header... " >&6; } | |
e1052144 | 7750 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 7751 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7752 | fi |
39fd3d4f SJR |
7753 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7754 | $as_echo "$as_val"'` | |
7755 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7756 | $as_echo "$ac_res" >&6; } | |
b0cacab0 TT |
7757 | else |
7758 | # Is the header compilable? | |
39fd3d4f SJR |
7759 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7760 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b0cacab0 TT |
7761 | cat >conftest.$ac_ext <<_ACEOF |
7762 | /* confdefs.h. */ | |
7763 | _ACEOF | |
7764 | cat confdefs.h >>conftest.$ac_ext | |
7765 | cat >>conftest.$ac_ext <<_ACEOF | |
7766 | /* end confdefs.h. */ | |
7767 | $ac_includes_default | |
7768 | #include <$ac_header> | |
7769 | _ACEOF | |
7770 | rm -f conftest.$ac_objext | |
e1052144 TT |
7771 | if { (ac_try="$ac_compile" |
7772 | case "(($ac_try" in | |
7773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7774 | *) ac_try_echo=$ac_try;; | |
7775 | esac | |
39fd3d4f SJR |
7776 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7777 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 7778 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
7779 | ac_status=$? |
7780 | grep -v '^ *+' conftest.er1 >conftest.err | |
7781 | rm -f conftest.er1 | |
7782 | cat conftest.err >&5 | |
39fd3d4f | 7783 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
7784 | (exit $ac_status); } && { |
7785 | test -z "$ac_c_werror_flag" || | |
7786 | test ! -s conftest.err | |
7787 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7788 | ac_header_compiler=yes |
7789 | else | |
39fd3d4f | 7790 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
7791 | sed 's/^/| /' conftest.$ac_ext >&5 |
7792 | ||
e1052144 | 7793 | ac_header_compiler=no |
b0cacab0 | 7794 | fi |
e1052144 TT |
7795 | |
7796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
39fd3d4f SJR |
7797 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7798 | $as_echo "$ac_header_compiler" >&6; } | |
b0cacab0 TT |
7799 | |
7800 | # Is the header present? | |
39fd3d4f SJR |
7801 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7802 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b0cacab0 TT |
7803 | cat >conftest.$ac_ext <<_ACEOF |
7804 | /* confdefs.h. */ | |
7805 | _ACEOF | |
7806 | cat confdefs.h >>conftest.$ac_ext | |
7807 | cat >>conftest.$ac_ext <<_ACEOF | |
7808 | /* end confdefs.h. */ | |
7809 | #include <$ac_header> | |
7810 | _ACEOF | |
e1052144 TT |
7811 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7812 | case "(($ac_try" in | |
7813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7814 | *) ac_try_echo=$ac_try;; | |
7815 | esac | |
39fd3d4f SJR |
7816 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7817 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 7818 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
b0cacab0 TT |
7819 | ac_status=$? |
7820 | grep -v '^ *+' conftest.er1 >conftest.err | |
7821 | rm -f conftest.er1 | |
7822 | cat conftest.err >&5 | |
39fd3d4f | 7823 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
7824 | (exit $ac_status); } >/dev/null && { |
7825 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7826 | test ! -s conftest.err | |
7827 | }; then | |
b0cacab0 TT |
7828 | ac_header_preproc=yes |
7829 | else | |
39fd3d4f | 7830 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
7831 | sed 's/^/| /' conftest.$ac_ext >&5 |
7832 | ||
7833 | ac_header_preproc=no | |
7834 | fi | |
e1052144 | 7835 | |
b0cacab0 | 7836 | rm -f conftest.err conftest.$ac_ext |
39fd3d4f SJR |
7837 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7838 | $as_echo "$ac_header_preproc" >&6; } | |
b0cacab0 TT |
7839 | |
7840 | # So? What about this header? | |
7841 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7842 | yes:no: ) | |
39fd3d4f SJR |
7843 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7844 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7845 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7846 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
b0cacab0 TT |
7847 | ac_header_preproc=yes |
7848 | ;; | |
7849 | no:yes:* ) | |
39fd3d4f SJR |
7850 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7851 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7852 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7853 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7854 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7855 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7856 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7857 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7858 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7859 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7860 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7861 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e1052144 | 7862 | |
b0cacab0 TT |
7863 | ;; |
7864 | esac | |
39fd3d4f SJR |
7865 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7866 | $as_echo_n "checking for $ac_header... " >&6; } | |
e1052144 | 7867 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 7868 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
7869 | else |
7870 | eval "$as_ac_Header=\$ac_header_preproc" | |
7871 | fi | |
39fd3d4f SJR |
7872 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7873 | $as_echo "$as_val"'` | |
7874 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7875 | $as_echo "$ac_res" >&6; } | |
b0cacab0 TT |
7876 | |
7877 | fi | |
39fd3d4f SJR |
7878 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7879 | $as_echo "$as_val"'` | |
7880 | if test "x$as_val" = x""yes; then | |
b0cacab0 | 7881 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 7882 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b0cacab0 TT |
7883 | _ACEOF |
7884 | ||
7885 | fi | |
7886 | ||
7887 | done | |
7888 | ||
39fd3d4f SJR |
7889 | { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
7890 | $as_echo_n "checking for SIZE_MAX... " >&6; } | |
b0cacab0 TT |
7891 | result= |
7892 | cat >conftest.$ac_ext <<_ACEOF | |
7893 | /* confdefs.h. */ | |
7894 | _ACEOF | |
7895 | cat confdefs.h >>conftest.$ac_ext | |
7896 | cat >>conftest.$ac_ext <<_ACEOF | |
7897 | /* end confdefs.h. */ | |
7898 | ||
7899 | #include <limits.h> | |
7900 | #if HAVE_STDINT_H | |
7901 | #include <stdint.h> | |
7902 | #endif | |
7903 | #ifdef SIZE_MAX | |
7904 | Found it | |
7905 | #endif | |
7906 | ||
7907 | _ACEOF | |
7908 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7909 | $EGREP "Found it" >/dev/null 2>&1; then | |
7910 | result=yes | |
7911 | fi | |
7912 | rm -f conftest* | |
7913 | ||
7914 | if test -z "$result"; then | |
7915 | if test "$cross_compiling" = yes; then | |
7916 | # Depending upon the size, compute the lo and hi bounds. | |
7917 | cat >conftest.$ac_ext <<_ACEOF | |
7918 | /* confdefs.h. */ | |
7919 | _ACEOF | |
7920 | cat confdefs.h >>conftest.$ac_ext | |
7921 | cat >>conftest.$ac_ext <<_ACEOF | |
7922 | /* end confdefs.h. */ | |
7923 | #include <stddef.h> | |
7924 | int | |
7925 | main () | |
7926 | { | |
7927 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; | |
7928 | test_array [0] = 0 | |
7929 | ||
7930 | ; | |
7931 | return 0; | |
7932 | } | |
7933 | _ACEOF | |
7934 | rm -f conftest.$ac_objext | |
e1052144 TT |
7935 | if { (ac_try="$ac_compile" |
7936 | case "(($ac_try" in | |
7937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7938 | *) ac_try_echo=$ac_try;; | |
7939 | esac | |
39fd3d4f SJR |
7940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7941 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 7942 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
7943 | ac_status=$? |
7944 | grep -v '^ *+' conftest.er1 >conftest.err | |
7945 | rm -f conftest.er1 | |
7946 | cat conftest.err >&5 | |
39fd3d4f | 7947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
7948 | (exit $ac_status); } && { |
7949 | test -z "$ac_c_werror_flag" || | |
7950 | test ! -s conftest.err | |
7951 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7952 | ac_lo=0 ac_mid=0 |
7953 | while :; do | |
7954 | cat >conftest.$ac_ext <<_ACEOF | |
7955 | /* confdefs.h. */ | |
7956 | _ACEOF | |
7957 | cat confdefs.h >>conftest.$ac_ext | |
7958 | cat >>conftest.$ac_ext <<_ACEOF | |
7959 | /* end confdefs.h. */ | |
7960 | #include <stddef.h> | |
7961 | int | |
7962 | main () | |
7963 | { | |
7964 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; | |
7965 | test_array [0] = 0 | |
7966 | ||
7967 | ; | |
7968 | return 0; | |
7969 | } | |
7970 | _ACEOF | |
7971 | rm -f conftest.$ac_objext | |
e1052144 TT |
7972 | if { (ac_try="$ac_compile" |
7973 | case "(($ac_try" in | |
7974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7975 | *) ac_try_echo=$ac_try;; | |
7976 | esac | |
39fd3d4f SJR |
7977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7978 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 7979 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
7980 | ac_status=$? |
7981 | grep -v '^ *+' conftest.er1 >conftest.err | |
7982 | rm -f conftest.er1 | |
7983 | cat conftest.err >&5 | |
39fd3d4f | 7984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
7985 | (exit $ac_status); } && { |
7986 | test -z "$ac_c_werror_flag" || | |
7987 | test ! -s conftest.err | |
7988 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7989 | ac_hi=$ac_mid; break |
7990 | else | |
39fd3d4f | 7991 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
7992 | sed 's/^/| /' conftest.$ac_ext >&5 |
7993 | ||
e1052144 TT |
7994 | ac_lo=`expr $ac_mid + 1` |
7995 | if test $ac_lo -le $ac_mid; then | |
7996 | ac_lo= ac_hi= | |
7997 | break | |
7998 | fi | |
7999 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
b0cacab0 | 8000 | fi |
e1052144 TT |
8001 | |
8002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8003 | done |
8004 | else | |
39fd3d4f | 8005 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8006 | sed 's/^/| /' conftest.$ac_ext >&5 |
8007 | ||
e1052144 | 8008 | cat >conftest.$ac_ext <<_ACEOF |
b0cacab0 TT |
8009 | /* confdefs.h. */ |
8010 | _ACEOF | |
8011 | cat confdefs.h >>conftest.$ac_ext | |
8012 | cat >>conftest.$ac_ext <<_ACEOF | |
8013 | /* end confdefs.h. */ | |
8014 | #include <stddef.h> | |
8015 | int | |
8016 | main () | |
8017 | { | |
8018 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; | |
8019 | test_array [0] = 0 | |
8020 | ||
8021 | ; | |
8022 | return 0; | |
8023 | } | |
8024 | _ACEOF | |
8025 | rm -f conftest.$ac_objext | |
e1052144 TT |
8026 | if { (ac_try="$ac_compile" |
8027 | case "(($ac_try" in | |
8028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8029 | *) ac_try_echo=$ac_try;; | |
8030 | esac | |
39fd3d4f SJR |
8031 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8032 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8033 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
8034 | ac_status=$? |
8035 | grep -v '^ *+' conftest.er1 >conftest.err | |
8036 | rm -f conftest.er1 | |
8037 | cat conftest.err >&5 | |
39fd3d4f | 8038 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
8039 | (exit $ac_status); } && { |
8040 | test -z "$ac_c_werror_flag" || | |
8041 | test ! -s conftest.err | |
8042 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8043 | ac_hi=-1 ac_mid=-1 |
8044 | while :; do | |
8045 | cat >conftest.$ac_ext <<_ACEOF | |
8046 | /* confdefs.h. */ | |
8047 | _ACEOF | |
8048 | cat confdefs.h >>conftest.$ac_ext | |
8049 | cat >>conftest.$ac_ext <<_ACEOF | |
8050 | /* end confdefs.h. */ | |
8051 | #include <stddef.h> | |
8052 | int | |
8053 | main () | |
8054 | { | |
8055 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; | |
8056 | test_array [0] = 0 | |
8057 | ||
8058 | ; | |
8059 | return 0; | |
8060 | } | |
8061 | _ACEOF | |
8062 | rm -f conftest.$ac_objext | |
e1052144 TT |
8063 | if { (ac_try="$ac_compile" |
8064 | case "(($ac_try" in | |
8065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8066 | *) ac_try_echo=$ac_try;; | |
8067 | esac | |
39fd3d4f SJR |
8068 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8069 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8070 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
8071 | ac_status=$? |
8072 | grep -v '^ *+' conftest.er1 >conftest.err | |
8073 | rm -f conftest.er1 | |
8074 | cat conftest.err >&5 | |
39fd3d4f | 8075 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
8076 | (exit $ac_status); } && { |
8077 | test -z "$ac_c_werror_flag" || | |
8078 | test ! -s conftest.err | |
8079 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8080 | ac_lo=$ac_mid; break |
8081 | else | |
39fd3d4f | 8082 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8083 | sed 's/^/| /' conftest.$ac_ext >&5 |
8084 | ||
e1052144 TT |
8085 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8086 | if test $ac_mid -le $ac_hi; then | |
8087 | ac_lo= ac_hi= | |
8088 | break | |
8089 | fi | |
8090 | ac_mid=`expr 2 '*' $ac_mid` | |
b0cacab0 | 8091 | fi |
e1052144 TT |
8092 | |
8093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8094 | done |
8095 | else | |
39fd3d4f | 8096 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8097 | sed 's/^/| /' conftest.$ac_ext >&5 |
8098 | ||
e1052144 | 8099 | ac_lo= ac_hi= |
b0cacab0 | 8100 | fi |
e1052144 TT |
8101 | |
8102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 8103 | fi |
e1052144 TT |
8104 | |
8105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8106 | # Binary search between lo and hi bounds. |
8107 | while test "x$ac_lo" != "x$ac_hi"; do | |
8108 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
8109 | cat >conftest.$ac_ext <<_ACEOF | |
8110 | /* confdefs.h. */ | |
8111 | _ACEOF | |
8112 | cat confdefs.h >>conftest.$ac_ext | |
8113 | cat >>conftest.$ac_ext <<_ACEOF | |
8114 | /* end confdefs.h. */ | |
8115 | #include <stddef.h> | |
8116 | int | |
8117 | main () | |
8118 | { | |
8119 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; | |
8120 | test_array [0] = 0 | |
8121 | ||
8122 | ; | |
8123 | return 0; | |
8124 | } | |
8125 | _ACEOF | |
8126 | rm -f conftest.$ac_objext | |
e1052144 TT |
8127 | if { (ac_try="$ac_compile" |
8128 | case "(($ac_try" in | |
8129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8130 | *) ac_try_echo=$ac_try;; | |
8131 | esac | |
39fd3d4f SJR |
8132 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8133 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8134 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
8135 | ac_status=$? |
8136 | grep -v '^ *+' conftest.er1 >conftest.err | |
8137 | rm -f conftest.er1 | |
8138 | cat conftest.err >&5 | |
39fd3d4f | 8139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
8140 | (exit $ac_status); } && { |
8141 | test -z "$ac_c_werror_flag" || | |
8142 | test ! -s conftest.err | |
8143 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8144 | ac_hi=$ac_mid |
8145 | else | |
39fd3d4f | 8146 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8147 | sed 's/^/| /' conftest.$ac_ext >&5 |
8148 | ||
e1052144 | 8149 | ac_lo=`expr '(' $ac_mid ')' + 1` |
b0cacab0 | 8150 | fi |
e1052144 TT |
8151 | |
8152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8153 | done |
8154 | case $ac_lo in | |
8155 | ?*) res_hi=$ac_lo;; | |
8156 | '') result=? ;; | |
8157 | esac | |
b0cacab0 TT |
8158 | else |
8159 | cat >conftest.$ac_ext <<_ACEOF | |
8160 | /* confdefs.h. */ | |
8161 | _ACEOF | |
8162 | cat confdefs.h >>conftest.$ac_ext | |
8163 | cat >>conftest.$ac_ext <<_ACEOF | |
8164 | /* end confdefs.h. */ | |
8165 | #include <stddef.h> | |
e1052144 TT |
8166 | static long int longval () { return ~(size_t)0 / 10; } |
8167 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } | |
b0cacab0 TT |
8168 | #include <stdio.h> |
8169 | #include <stdlib.h> | |
8170 | int | |
8171 | main () | |
8172 | { | |
8173 | ||
8174 | FILE *f = fopen ("conftest.val", "w"); | |
8175 | if (! f) | |
e1052144 | 8176 | return 1; |
b0cacab0 TT |
8177 | if ((~(size_t)0 / 10) < 0) |
8178 | { | |
e1052144 | 8179 | long int i = longval (); |
b0cacab0 | 8180 | if (i != (~(size_t)0 / 10)) |
e1052144 | 8181 | return 1; |
39fd3d4f | 8182 | fprintf (f, "%ld", i); |
b0cacab0 TT |
8183 | } |
8184 | else | |
8185 | { | |
e1052144 | 8186 | unsigned long int i = ulongval (); |
b0cacab0 | 8187 | if (i != (~(size_t)0 / 10)) |
e1052144 | 8188 | return 1; |
39fd3d4f | 8189 | fprintf (f, "%lu", i); |
b0cacab0 | 8190 | } |
39fd3d4f SJR |
8191 | /* Do not output a trailing newline, as this causes \r\n confusion |
8192 | on some platforms. */ | |
e1052144 | 8193 | return ferror (f) || fclose (f) != 0; |
b0cacab0 TT |
8194 | |
8195 | ; | |
8196 | return 0; | |
8197 | } | |
8198 | _ACEOF | |
8199 | rm -f conftest$ac_exeext | |
e1052144 TT |
8200 | if { (ac_try="$ac_link" |
8201 | case "(($ac_try" in | |
8202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8203 | *) ac_try_echo=$ac_try;; | |
8204 | esac | |
39fd3d4f SJR |
8205 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8206 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8207 | (eval "$ac_link") 2>&5 |
b0cacab0 | 8208 | ac_status=$? |
39fd3d4f | 8209 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 8210 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
e1052144 TT |
8211 | { (case "(($ac_try" in |
8212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8213 | *) ac_try_echo=$ac_try;; | |
8214 | esac | |
39fd3d4f SJR |
8215 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8216 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8217 | (eval "$ac_try") 2>&5 |
b0cacab0 | 8218 | ac_status=$? |
39fd3d4f | 8219 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 TT |
8220 | (exit $ac_status); }; }; then |
8221 | res_hi=`cat conftest.val` | |
8222 | else | |
39fd3d4f SJR |
8223 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8224 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
8225 | sed 's/^/| /' conftest.$ac_ext >&5 |
8226 | ||
8227 | ( exit $ac_status ) | |
8228 | result=? | |
8229 | fi | |
39fd3d4f | 8230 | rm -rf conftest.dSYM |
e1052144 | 8231 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
8232 | fi |
8233 | rm -f conftest.val | |
29a5deed | 8234 | |
b0cacab0 TT |
8235 | if test "$cross_compiling" = yes; then |
8236 | # Depending upon the size, compute the lo and hi bounds. | |
8237 | cat >conftest.$ac_ext <<_ACEOF | |
8238 | /* confdefs.h. */ | |
8239 | _ACEOF | |
8240 | cat confdefs.h >>conftest.$ac_ext | |
8241 | cat >>conftest.$ac_ext <<_ACEOF | |
8242 | /* end confdefs.h. */ | |
8243 | #include <stddef.h> | |
8244 | int | |
8245 | main () | |
8246 | { | |
8247 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; | |
8248 | test_array [0] = 0 | |
8249 | ||
8250 | ; | |
8251 | return 0; | |
8252 | } | |
8253 | _ACEOF | |
8254 | rm -f conftest.$ac_objext | |
e1052144 TT |
8255 | if { (ac_try="$ac_compile" |
8256 | case "(($ac_try" in | |
8257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8258 | *) ac_try_echo=$ac_try;; | |
8259 | esac | |
39fd3d4f SJR |
8260 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8261 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8262 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
8263 | ac_status=$? |
8264 | grep -v '^ *+' conftest.er1 >conftest.err | |
8265 | rm -f conftest.er1 | |
8266 | cat conftest.err >&5 | |
39fd3d4f | 8267 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
8268 | (exit $ac_status); } && { |
8269 | test -z "$ac_c_werror_flag" || | |
8270 | test ! -s conftest.err | |
8271 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8272 | ac_lo=0 ac_mid=0 |
8273 | while :; do | |
8274 | cat >conftest.$ac_ext <<_ACEOF | |
8275 | /* confdefs.h. */ | |
8276 | _ACEOF | |
8277 | cat confdefs.h >>conftest.$ac_ext | |
8278 | cat >>conftest.$ac_ext <<_ACEOF | |
8279 | /* end confdefs.h. */ | |
8280 | #include <stddef.h> | |
8281 | int | |
8282 | main () | |
8283 | { | |
8284 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; | |
8285 | test_array [0] = 0 | |
8286 | ||
8287 | ; | |
8288 | return 0; | |
8289 | } | |
8290 | _ACEOF | |
8291 | rm -f conftest.$ac_objext | |
e1052144 TT |
8292 | if { (ac_try="$ac_compile" |
8293 | case "(($ac_try" in | |
8294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8295 | *) ac_try_echo=$ac_try;; | |
8296 | esac | |
39fd3d4f SJR |
8297 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8298 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8299 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
8300 | ac_status=$? |
8301 | grep -v '^ *+' conftest.er1 >conftest.err | |
8302 | rm -f conftest.er1 | |
8303 | cat conftest.err >&5 | |
39fd3d4f | 8304 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
8305 | (exit $ac_status); } && { |
8306 | test -z "$ac_c_werror_flag" || | |
8307 | test ! -s conftest.err | |
8308 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8309 | ac_hi=$ac_mid; break |
8310 | else | |
39fd3d4f | 8311 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8312 | sed 's/^/| /' conftest.$ac_ext >&5 |
8313 | ||
e1052144 TT |
8314 | ac_lo=`expr $ac_mid + 1` |
8315 | if test $ac_lo -le $ac_mid; then | |
8316 | ac_lo= ac_hi= | |
8317 | break | |
8318 | fi | |
8319 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
b0cacab0 | 8320 | fi |
e1052144 TT |
8321 | |
8322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8323 | done |
8324 | else | |
39fd3d4f | 8325 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8326 | sed 's/^/| /' conftest.$ac_ext >&5 |
8327 | ||
e1052144 | 8328 | cat >conftest.$ac_ext <<_ACEOF |
b0cacab0 TT |
8329 | /* confdefs.h. */ |
8330 | _ACEOF | |
8331 | cat confdefs.h >>conftest.$ac_ext | |
8332 | cat >>conftest.$ac_ext <<_ACEOF | |
8333 | /* end confdefs.h. */ | |
8334 | #include <stddef.h> | |
8335 | int | |
8336 | main () | |
8337 | { | |
8338 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; | |
8339 | test_array [0] = 0 | |
8340 | ||
8341 | ; | |
8342 | return 0; | |
8343 | } | |
8344 | _ACEOF | |
8345 | rm -f conftest.$ac_objext | |
e1052144 TT |
8346 | if { (ac_try="$ac_compile" |
8347 | case "(($ac_try" in | |
8348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8349 | *) ac_try_echo=$ac_try;; | |
8350 | esac | |
39fd3d4f SJR |
8351 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8352 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8353 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
8354 | ac_status=$? |
8355 | grep -v '^ *+' conftest.er1 >conftest.err | |
8356 | rm -f conftest.er1 | |
8357 | cat conftest.err >&5 | |
39fd3d4f | 8358 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
8359 | (exit $ac_status); } && { |
8360 | test -z "$ac_c_werror_flag" || | |
8361 | test ! -s conftest.err | |
8362 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8363 | ac_hi=-1 ac_mid=-1 |
8364 | while :; do | |
8365 | cat >conftest.$ac_ext <<_ACEOF | |
8366 | /* confdefs.h. */ | |
8367 | _ACEOF | |
8368 | cat confdefs.h >>conftest.$ac_ext | |
8369 | cat >>conftest.$ac_ext <<_ACEOF | |
8370 | /* end confdefs.h. */ | |
8371 | #include <stddef.h> | |
8372 | int | |
8373 | main () | |
8374 | { | |
8375 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; | |
8376 | test_array [0] = 0 | |
8377 | ||
8378 | ; | |
8379 | return 0; | |
8380 | } | |
8381 | _ACEOF | |
8382 | rm -f conftest.$ac_objext | |
e1052144 TT |
8383 | if { (ac_try="$ac_compile" |
8384 | case "(($ac_try" in | |
8385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8386 | *) ac_try_echo=$ac_try;; | |
8387 | esac | |
39fd3d4f SJR |
8388 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8389 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8390 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
8391 | ac_status=$? |
8392 | grep -v '^ *+' conftest.er1 >conftest.err | |
8393 | rm -f conftest.er1 | |
8394 | cat conftest.err >&5 | |
39fd3d4f | 8395 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
8396 | (exit $ac_status); } && { |
8397 | test -z "$ac_c_werror_flag" || | |
8398 | test ! -s conftest.err | |
8399 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8400 | ac_lo=$ac_mid; break |
8401 | else | |
39fd3d4f | 8402 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8403 | sed 's/^/| /' conftest.$ac_ext >&5 |
8404 | ||
e1052144 TT |
8405 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8406 | if test $ac_mid -le $ac_hi; then | |
8407 | ac_lo= ac_hi= | |
8408 | break | |
8409 | fi | |
8410 | ac_mid=`expr 2 '*' $ac_mid` | |
b0cacab0 | 8411 | fi |
e1052144 TT |
8412 | |
8413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8414 | done |
8415 | else | |
39fd3d4f | 8416 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8417 | sed 's/^/| /' conftest.$ac_ext >&5 |
8418 | ||
e1052144 | 8419 | ac_lo= ac_hi= |
b0cacab0 | 8420 | fi |
e1052144 TT |
8421 | |
8422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 8423 | fi |
e1052144 TT |
8424 | |
8425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8426 | # Binary search between lo and hi bounds. |
8427 | while test "x$ac_lo" != "x$ac_hi"; do | |
8428 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
8429 | cat >conftest.$ac_ext <<_ACEOF | |
8430 | /* confdefs.h. */ | |
8431 | _ACEOF | |
8432 | cat confdefs.h >>conftest.$ac_ext | |
8433 | cat >>conftest.$ac_ext <<_ACEOF | |
8434 | /* end confdefs.h. */ | |
8435 | #include <stddef.h> | |
8436 | int | |
8437 | main () | |
8438 | { | |
8439 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; | |
8440 | test_array [0] = 0 | |
8441 | ||
8442 | ; | |
8443 | return 0; | |
8444 | } | |
8445 | _ACEOF | |
8446 | rm -f conftest.$ac_objext | |
e1052144 TT |
8447 | if { (ac_try="$ac_compile" |
8448 | case "(($ac_try" in | |
8449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8450 | *) ac_try_echo=$ac_try;; | |
8451 | esac | |
39fd3d4f SJR |
8452 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8453 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8454 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
8455 | ac_status=$? |
8456 | grep -v '^ *+' conftest.er1 >conftest.err | |
8457 | rm -f conftest.er1 | |
8458 | cat conftest.err >&5 | |
39fd3d4f | 8459 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
8460 | (exit $ac_status); } && { |
8461 | test -z "$ac_c_werror_flag" || | |
8462 | test ! -s conftest.err | |
8463 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8464 | ac_hi=$ac_mid |
8465 | else | |
39fd3d4f | 8466 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8467 | sed 's/^/| /' conftest.$ac_ext >&5 |
8468 | ||
e1052144 | 8469 | ac_lo=`expr '(' $ac_mid ')' + 1` |
b0cacab0 | 8470 | fi |
e1052144 TT |
8471 | |
8472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8473 | done |
8474 | case $ac_lo in | |
8475 | ?*) res_lo=$ac_lo;; | |
8476 | '') result=? ;; | |
8477 | esac | |
b0cacab0 TT |
8478 | else |
8479 | cat >conftest.$ac_ext <<_ACEOF | |
8480 | /* confdefs.h. */ | |
8481 | _ACEOF | |
8482 | cat confdefs.h >>conftest.$ac_ext | |
8483 | cat >>conftest.$ac_ext <<_ACEOF | |
8484 | /* end confdefs.h. */ | |
8485 | #include <stddef.h> | |
e1052144 TT |
8486 | static long int longval () { return ~(size_t)0 % 10; } |
8487 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } | |
b0cacab0 TT |
8488 | #include <stdio.h> |
8489 | #include <stdlib.h> | |
8490 | int | |
8491 | main () | |
8492 | { | |
8493 | ||
8494 | FILE *f = fopen ("conftest.val", "w"); | |
8495 | if (! f) | |
e1052144 | 8496 | return 1; |
b0cacab0 TT |
8497 | if ((~(size_t)0 % 10) < 0) |
8498 | { | |
e1052144 | 8499 | long int i = longval (); |
b0cacab0 | 8500 | if (i != (~(size_t)0 % 10)) |
e1052144 | 8501 | return 1; |
39fd3d4f | 8502 | fprintf (f, "%ld", i); |
b0cacab0 TT |
8503 | } |
8504 | else | |
8505 | { | |
e1052144 | 8506 | unsigned long int i = ulongval (); |
b0cacab0 | 8507 | if (i != (~(size_t)0 % 10)) |
e1052144 | 8508 | return 1; |
39fd3d4f | 8509 | fprintf (f, "%lu", i); |
b0cacab0 | 8510 | } |
39fd3d4f SJR |
8511 | /* Do not output a trailing newline, as this causes \r\n confusion |
8512 | on some platforms. */ | |
e1052144 | 8513 | return ferror (f) || fclose (f) != 0; |
b0cacab0 TT |
8514 | |
8515 | ; | |
8516 | return 0; | |
8517 | } | |
8518 | _ACEOF | |
8519 | rm -f conftest$ac_exeext | |
e1052144 TT |
8520 | if { (ac_try="$ac_link" |
8521 | case "(($ac_try" in | |
8522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8523 | *) ac_try_echo=$ac_try;; | |
8524 | esac | |
39fd3d4f SJR |
8525 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8526 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8527 | (eval "$ac_link") 2>&5 |
b0cacab0 | 8528 | ac_status=$? |
39fd3d4f | 8529 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 8530 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
e1052144 TT |
8531 | { (case "(($ac_try" in |
8532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8533 | *) ac_try_echo=$ac_try;; | |
8534 | esac | |
39fd3d4f SJR |
8535 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8536 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8537 | (eval "$ac_try") 2>&5 |
b0cacab0 | 8538 | ac_status=$? |
39fd3d4f | 8539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 TT |
8540 | (exit $ac_status); }; }; then |
8541 | res_lo=`cat conftest.val` | |
8542 | else | |
39fd3d4f SJR |
8543 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8544 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
8545 | sed 's/^/| /' conftest.$ac_ext >&5 |
8546 | ||
8547 | ( exit $ac_status ) | |
8548 | result=? | |
8549 | fi | |
39fd3d4f | 8550 | rm -rf conftest.dSYM |
e1052144 | 8551 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
8552 | fi |
8553 | rm -f conftest.val | |
29a5deed | 8554 | |
b0cacab0 TT |
8555 | if test "$cross_compiling" = yes; then |
8556 | # Depending upon the size, compute the lo and hi bounds. | |
8557 | cat >conftest.$ac_ext <<_ACEOF | |
8558 | /* confdefs.h. */ | |
8559 | _ACEOF | |
8560 | cat confdefs.h >>conftest.$ac_ext | |
8561 | cat >>conftest.$ac_ext <<_ACEOF | |
8562 | /* end confdefs.h. */ | |
8563 | #include <stddef.h> | |
8564 | int | |
8565 | main () | |
8566 | { | |
8567 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; | |
8568 | test_array [0] = 0 | |
8569 | ||
8570 | ; | |
8571 | return 0; | |
8572 | } | |
8573 | _ACEOF | |
8574 | rm -f conftest.$ac_objext | |
e1052144 TT |
8575 | if { (ac_try="$ac_compile" |
8576 | case "(($ac_try" in | |
8577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8578 | *) ac_try_echo=$ac_try;; | |
8579 | esac | |
39fd3d4f SJR |
8580 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8581 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8582 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
8583 | ac_status=$? |
8584 | grep -v '^ *+' conftest.er1 >conftest.err | |
8585 | rm -f conftest.er1 | |
8586 | cat conftest.err >&5 | |
39fd3d4f | 8587 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
8588 | (exit $ac_status); } && { |
8589 | test -z "$ac_c_werror_flag" || | |
8590 | test ! -s conftest.err | |
8591 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8592 | ac_lo=0 ac_mid=0 |
8593 | while :; do | |
8594 | cat >conftest.$ac_ext <<_ACEOF | |
8595 | /* confdefs.h. */ | |
8596 | _ACEOF | |
8597 | cat confdefs.h >>conftest.$ac_ext | |
8598 | cat >>conftest.$ac_ext <<_ACEOF | |
8599 | /* end confdefs.h. */ | |
8600 | #include <stddef.h> | |
8601 | int | |
8602 | main () | |
8603 | { | |
8604 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; | |
8605 | test_array [0] = 0 | |
8606 | ||
8607 | ; | |
8608 | return 0; | |
8609 | } | |
8610 | _ACEOF | |
8611 | rm -f conftest.$ac_objext | |
e1052144 TT |
8612 | if { (ac_try="$ac_compile" |
8613 | case "(($ac_try" in | |
8614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8615 | *) ac_try_echo=$ac_try;; | |
8616 | esac | |
39fd3d4f SJR |
8617 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8618 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8619 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
8620 | ac_status=$? |
8621 | grep -v '^ *+' conftest.er1 >conftest.err | |
8622 | rm -f conftest.er1 | |
8623 | cat conftest.err >&5 | |
39fd3d4f | 8624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
8625 | (exit $ac_status); } && { |
8626 | test -z "$ac_c_werror_flag" || | |
8627 | test ! -s conftest.err | |
8628 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8629 | ac_hi=$ac_mid; break |
8630 | else | |
39fd3d4f | 8631 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8632 | sed 's/^/| /' conftest.$ac_ext >&5 |
8633 | ||
e1052144 TT |
8634 | ac_lo=`expr $ac_mid + 1` |
8635 | if test $ac_lo -le $ac_mid; then | |
8636 | ac_lo= ac_hi= | |
8637 | break | |
8638 | fi | |
8639 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
b0cacab0 | 8640 | fi |
e1052144 TT |
8641 | |
8642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8643 | done |
8644 | else | |
39fd3d4f | 8645 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8646 | sed 's/^/| /' conftest.$ac_ext >&5 |
8647 | ||
e1052144 | 8648 | cat >conftest.$ac_ext <<_ACEOF |
b0cacab0 TT |
8649 | /* confdefs.h. */ |
8650 | _ACEOF | |
8651 | cat confdefs.h >>conftest.$ac_ext | |
8652 | cat >>conftest.$ac_ext <<_ACEOF | |
8653 | /* end confdefs.h. */ | |
8654 | #include <stddef.h> | |
8655 | int | |
8656 | main () | |
8657 | { | |
8658 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; | |
8659 | test_array [0] = 0 | |
8660 | ||
8661 | ; | |
8662 | return 0; | |
8663 | } | |
8664 | _ACEOF | |
8665 | rm -f conftest.$ac_objext | |
e1052144 TT |
8666 | if { (ac_try="$ac_compile" |
8667 | case "(($ac_try" in | |
8668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8669 | *) ac_try_echo=$ac_try;; | |
8670 | esac | |
39fd3d4f SJR |
8671 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8672 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8673 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
8674 | ac_status=$? |
8675 | grep -v '^ *+' conftest.er1 >conftest.err | |
8676 | rm -f conftest.er1 | |
8677 | cat conftest.err >&5 | |
39fd3d4f | 8678 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
8679 | (exit $ac_status); } && { |
8680 | test -z "$ac_c_werror_flag" || | |
8681 | test ! -s conftest.err | |
8682 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8683 | ac_hi=-1 ac_mid=-1 |
8684 | while :; do | |
8685 | cat >conftest.$ac_ext <<_ACEOF | |
8686 | /* confdefs.h. */ | |
8687 | _ACEOF | |
8688 | cat confdefs.h >>conftest.$ac_ext | |
8689 | cat >>conftest.$ac_ext <<_ACEOF | |
8690 | /* end confdefs.h. */ | |
8691 | #include <stddef.h> | |
8692 | int | |
8693 | main () | |
8694 | { | |
8695 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; | |
8696 | test_array [0] = 0 | |
8697 | ||
8698 | ; | |
8699 | return 0; | |
8700 | } | |
8701 | _ACEOF | |
8702 | rm -f conftest.$ac_objext | |
e1052144 TT |
8703 | if { (ac_try="$ac_compile" |
8704 | case "(($ac_try" in | |
8705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8706 | *) ac_try_echo=$ac_try;; | |
8707 | esac | |
39fd3d4f SJR |
8708 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8709 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8710 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
8711 | ac_status=$? |
8712 | grep -v '^ *+' conftest.er1 >conftest.err | |
8713 | rm -f conftest.er1 | |
8714 | cat conftest.err >&5 | |
39fd3d4f | 8715 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
8716 | (exit $ac_status); } && { |
8717 | test -z "$ac_c_werror_flag" || | |
8718 | test ! -s conftest.err | |
8719 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8720 | ac_lo=$ac_mid; break |
8721 | else | |
39fd3d4f | 8722 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8723 | sed 's/^/| /' conftest.$ac_ext >&5 |
8724 | ||
e1052144 TT |
8725 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8726 | if test $ac_mid -le $ac_hi; then | |
8727 | ac_lo= ac_hi= | |
8728 | break | |
8729 | fi | |
8730 | ac_mid=`expr 2 '*' $ac_mid` | |
b0cacab0 | 8731 | fi |
e1052144 TT |
8732 | |
8733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8734 | done |
8735 | else | |
39fd3d4f | 8736 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8737 | sed 's/^/| /' conftest.$ac_ext >&5 |
8738 | ||
e1052144 | 8739 | ac_lo= ac_hi= |
b0cacab0 | 8740 | fi |
e1052144 TT |
8741 | |
8742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 8743 | fi |
e1052144 TT |
8744 | |
8745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8746 | # Binary search between lo and hi bounds. |
8747 | while test "x$ac_lo" != "x$ac_hi"; do | |
8748 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
8749 | cat >conftest.$ac_ext <<_ACEOF | |
8750 | /* confdefs.h. */ | |
8751 | _ACEOF | |
8752 | cat confdefs.h >>conftest.$ac_ext | |
8753 | cat >>conftest.$ac_ext <<_ACEOF | |
8754 | /* end confdefs.h. */ | |
8755 | #include <stddef.h> | |
8756 | int | |
8757 | main () | |
8758 | { | |
8759 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; | |
8760 | test_array [0] = 0 | |
8761 | ||
8762 | ; | |
8763 | return 0; | |
8764 | } | |
8765 | _ACEOF | |
8766 | rm -f conftest.$ac_objext | |
e1052144 TT |
8767 | if { (ac_try="$ac_compile" |
8768 | case "(($ac_try" in | |
8769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8770 | *) ac_try_echo=$ac_try;; | |
8771 | esac | |
39fd3d4f SJR |
8772 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8773 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8774 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
8775 | ac_status=$? |
8776 | grep -v '^ *+' conftest.er1 >conftest.err | |
8777 | rm -f conftest.er1 | |
8778 | cat conftest.err >&5 | |
39fd3d4f | 8779 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
8780 | (exit $ac_status); } && { |
8781 | test -z "$ac_c_werror_flag" || | |
8782 | test ! -s conftest.err | |
8783 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8784 | ac_hi=$ac_mid |
8785 | else | |
39fd3d4f | 8786 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8787 | sed 's/^/| /' conftest.$ac_ext >&5 |
8788 | ||
e1052144 | 8789 | ac_lo=`expr '(' $ac_mid ')' + 1` |
b0cacab0 | 8790 | fi |
e1052144 TT |
8791 | |
8792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8793 | done |
8794 | case $ac_lo in | |
8795 | ?*) fits_in_uint=$ac_lo;; | |
8796 | '') result=? ;; | |
8797 | esac | |
b0cacab0 TT |
8798 | else |
8799 | cat >conftest.$ac_ext <<_ACEOF | |
8800 | /* confdefs.h. */ | |
8801 | _ACEOF | |
8802 | cat confdefs.h >>conftest.$ac_ext | |
8803 | cat >>conftest.$ac_ext <<_ACEOF | |
8804 | /* end confdefs.h. */ | |
8805 | #include <stddef.h> | |
e1052144 TT |
8806 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
8807 | static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } | |
b0cacab0 TT |
8808 | #include <stdio.h> |
8809 | #include <stdlib.h> | |
8810 | int | |
8811 | main () | |
8812 | { | |
8813 | ||
8814 | FILE *f = fopen ("conftest.val", "w"); | |
8815 | if (! f) | |
e1052144 | 8816 | return 1; |
b0cacab0 TT |
8817 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
8818 | { | |
e1052144 | 8819 | long int i = longval (); |
b0cacab0 | 8820 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
e1052144 | 8821 | return 1; |
39fd3d4f | 8822 | fprintf (f, "%ld", i); |
b0cacab0 TT |
8823 | } |
8824 | else | |
8825 | { | |
e1052144 | 8826 | unsigned long int i = ulongval (); |
b0cacab0 | 8827 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
e1052144 | 8828 | return 1; |
39fd3d4f | 8829 | fprintf (f, "%lu", i); |
b0cacab0 | 8830 | } |
39fd3d4f SJR |
8831 | /* Do not output a trailing newline, as this causes \r\n confusion |
8832 | on some platforms. */ | |
e1052144 | 8833 | return ferror (f) || fclose (f) != 0; |
b0cacab0 TT |
8834 | |
8835 | ; | |
8836 | return 0; | |
8837 | } | |
8838 | _ACEOF | |
8839 | rm -f conftest$ac_exeext | |
e1052144 TT |
8840 | if { (ac_try="$ac_link" |
8841 | case "(($ac_try" in | |
8842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8843 | *) ac_try_echo=$ac_try;; | |
8844 | esac | |
39fd3d4f SJR |
8845 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8846 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8847 | (eval "$ac_link") 2>&5 |
b0cacab0 | 8848 | ac_status=$? |
39fd3d4f | 8849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 8850 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
e1052144 TT |
8851 | { (case "(($ac_try" in |
8852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8853 | *) ac_try_echo=$ac_try;; | |
8854 | esac | |
39fd3d4f SJR |
8855 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8856 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8857 | (eval "$ac_try") 2>&5 |
b0cacab0 | 8858 | ac_status=$? |
39fd3d4f | 8859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 TT |
8860 | (exit $ac_status); }; }; then |
8861 | fits_in_uint=`cat conftest.val` | |
8862 | else | |
39fd3d4f SJR |
8863 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8864 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
8865 | sed 's/^/| /' conftest.$ac_ext >&5 |
8866 | ||
8867 | ( exit $ac_status ) | |
8868 | result=? | |
8869 | fi | |
39fd3d4f | 8870 | rm -rf conftest.dSYM |
e1052144 | 8871 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
8872 | fi |
8873 | rm -f conftest.val | |
29a5deed | 8874 | |
b0cacab0 TT |
8875 | if test "$fits_in_uint" = 1; then |
8876 | cat >conftest.$ac_ext <<_ACEOF | |
8877 | /* confdefs.h. */ | |
8878 | _ACEOF | |
8879 | cat confdefs.h >>conftest.$ac_ext | |
8880 | cat >>conftest.$ac_ext <<_ACEOF | |
8881 | /* end confdefs.h. */ | |
8882 | #include <stddef.h> | |
8883 | extern size_t foo; | |
8884 | extern unsigned long foo; | |
8885 | ||
8886 | int | |
8887 | main () | |
8888 | { | |
8889 | ||
8890 | ; | |
8891 | return 0; | |
8892 | } | |
8893 | _ACEOF | |
8894 | rm -f conftest.$ac_objext | |
e1052144 TT |
8895 | if { (ac_try="$ac_compile" |
8896 | case "(($ac_try" in | |
8897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8898 | *) ac_try_echo=$ac_try;; | |
8899 | esac | |
39fd3d4f SJR |
8900 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8901 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8902 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
8903 | ac_status=$? |
8904 | grep -v '^ *+' conftest.er1 >conftest.err | |
8905 | rm -f conftest.er1 | |
8906 | cat conftest.err >&5 | |
39fd3d4f | 8907 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
8908 | (exit $ac_status); } && { |
8909 | test -z "$ac_c_werror_flag" || | |
8910 | test ! -s conftest.err | |
8911 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8912 | fits_in_uint=0 |
8913 | else | |
39fd3d4f | 8914 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8915 | sed 's/^/| /' conftest.$ac_ext >&5 |
8916 | ||
e1052144 | 8917 | |
b0cacab0 | 8918 | fi |
e1052144 TT |
8919 | |
8920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8921 | fi |
8922 | if test -z "$result"; then | |
8923 | if test "$fits_in_uint" = 1; then | |
8924 | result="$res_hi$res_lo"U | |
8925 | else | |
8926 | result="$res_hi$res_lo"UL | |
8927 | fi | |
8928 | else | |
8929 | result='~(size_t)0' | |
8930 | fi | |
8931 | fi | |
39fd3d4f SJR |
8932 | { $as_echo "$as_me:$LINENO: result: $result" >&5 |
8933 | $as_echo "$result" >&6; } | |
b0cacab0 TT |
8934 | if test "$result" != yes; then |
8935 | ||
8936 | cat >>confdefs.h <<_ACEOF | |
8937 | #define SIZE_MAX $result | |
8938 | _ACEOF | |
8939 | ||
8940 | fi | |
8941 | ||
8942 | ||
8943 | ||
8944 | ||
8945 | for ac_header in stdint.h | |
8946 | do | |
39fd3d4f | 8947 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
e1052144 | 8948 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f SJR |
8949 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8950 | $as_echo_n "checking for $ac_header... " >&6; } | |
e1052144 | 8951 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 8952 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 8953 | fi |
39fd3d4f SJR |
8954 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8955 | $as_echo "$as_val"'` | |
8956 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8957 | $as_echo "$ac_res" >&6; } | |
b0cacab0 TT |
8958 | else |
8959 | # Is the header compilable? | |
39fd3d4f SJR |
8960 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8961 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b0cacab0 TT |
8962 | cat >conftest.$ac_ext <<_ACEOF |
8963 | /* confdefs.h. */ | |
8964 | _ACEOF | |
8965 | cat confdefs.h >>conftest.$ac_ext | |
8966 | cat >>conftest.$ac_ext <<_ACEOF | |
8967 | /* end confdefs.h. */ | |
8968 | $ac_includes_default | |
8969 | #include <$ac_header> | |
8970 | _ACEOF | |
8971 | rm -f conftest.$ac_objext | |
e1052144 TT |
8972 | if { (ac_try="$ac_compile" |
8973 | case "(($ac_try" in | |
8974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8975 | *) ac_try_echo=$ac_try;; | |
8976 | esac | |
39fd3d4f SJR |
8977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8978 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 8979 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
8980 | ac_status=$? |
8981 | grep -v '^ *+' conftest.er1 >conftest.err | |
8982 | rm -f conftest.er1 | |
8983 | cat conftest.err >&5 | |
39fd3d4f | 8984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
8985 | (exit $ac_status); } && { |
8986 | test -z "$ac_c_werror_flag" || | |
8987 | test ! -s conftest.err | |
8988 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8989 | ac_header_compiler=yes |
8990 | else | |
39fd3d4f | 8991 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
8992 | sed 's/^/| /' conftest.$ac_ext >&5 |
8993 | ||
e1052144 | 8994 | ac_header_compiler=no |
b0cacab0 | 8995 | fi |
e1052144 TT |
8996 | |
8997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
39fd3d4f SJR |
8998 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8999 | $as_echo "$ac_header_compiler" >&6; } | |
b0cacab0 TT |
9000 | |
9001 | # Is the header present? | |
39fd3d4f SJR |
9002 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9003 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b0cacab0 TT |
9004 | cat >conftest.$ac_ext <<_ACEOF |
9005 | /* confdefs.h. */ | |
9006 | _ACEOF | |
9007 | cat confdefs.h >>conftest.$ac_ext | |
9008 | cat >>conftest.$ac_ext <<_ACEOF | |
9009 | /* end confdefs.h. */ | |
9010 | #include <$ac_header> | |
9011 | _ACEOF | |
e1052144 TT |
9012 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9013 | case "(($ac_try" in | |
9014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9015 | *) ac_try_echo=$ac_try;; | |
9016 | esac | |
39fd3d4f SJR |
9017 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9018 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 9019 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
b0cacab0 TT |
9020 | ac_status=$? |
9021 | grep -v '^ *+' conftest.er1 >conftest.err | |
9022 | rm -f conftest.er1 | |
9023 | cat conftest.err >&5 | |
39fd3d4f | 9024 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
9025 | (exit $ac_status); } >/dev/null && { |
9026 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9027 | test ! -s conftest.err | |
9028 | }; then | |
b0cacab0 TT |
9029 | ac_header_preproc=yes |
9030 | else | |
39fd3d4f | 9031 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
9032 | sed 's/^/| /' conftest.$ac_ext >&5 |
9033 | ||
9034 | ac_header_preproc=no | |
9035 | fi | |
e1052144 | 9036 | |
b0cacab0 | 9037 | rm -f conftest.err conftest.$ac_ext |
39fd3d4f SJR |
9038 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9039 | $as_echo "$ac_header_preproc" >&6; } | |
b0cacab0 TT |
9040 | |
9041 | # So? What about this header? | |
9042 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9043 | yes:no: ) | |
39fd3d4f SJR |
9044 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9045 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9046 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9047 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
b0cacab0 TT |
9048 | ac_header_preproc=yes |
9049 | ;; | |
9050 | no:yes:* ) | |
39fd3d4f SJR |
9051 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9052 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9053 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9054 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9055 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9056 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9057 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9058 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9059 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9060 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9061 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9062 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e1052144 | 9063 | |
b0cacab0 TT |
9064 | ;; |
9065 | esac | |
39fd3d4f SJR |
9066 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9067 | $as_echo_n "checking for $ac_header... " >&6; } | |
e1052144 | 9068 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 9069 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
9070 | else |
9071 | eval "$as_ac_Header=\$ac_header_preproc" | |
9072 | fi | |
39fd3d4f SJR |
9073 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9074 | $as_echo "$as_val"'` | |
9075 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9076 | $as_echo "$ac_res" >&6; } | |
b0cacab0 TT |
9077 | |
9078 | fi | |
39fd3d4f SJR |
9079 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9080 | $as_echo "$as_val"'` | |
9081 | if test "x$as_val" = x""yes; then | |
b0cacab0 | 9082 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 9083 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b0cacab0 TT |
9084 | _ACEOF |
9085 | ||
9086 | fi | |
9087 | ||
9088 | done | |
9089 | ||
9090 | ||
9091 | ||
9092 | if test "X$prefix" = "XNONE"; then | |
9093 | acl_final_prefix="$ac_default_prefix" | |
9094 | else | |
9095 | acl_final_prefix="$prefix" | |
9096 | fi | |
9097 | if test "X$exec_prefix" = "XNONE"; then | |
9098 | acl_final_exec_prefix='${prefix}' | |
9099 | else | |
9100 | acl_final_exec_prefix="$exec_prefix" | |
9101 | fi | |
9102 | acl_save_prefix="$prefix" | |
9103 | prefix="$acl_final_prefix" | |
9104 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
9105 | prefix="$acl_save_prefix" | |
9106 | ||
9107 | ||
e1052144 | 9108 | # Check whether --with-gnu-ld was given. |
b0cacab0 | 9109 | if test "${with_gnu_ld+set}" = set; then |
e1052144 | 9110 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
b0cacab0 TT |
9111 | else |
9112 | with_gnu_ld=no | |
e1052144 TT |
9113 | fi |
9114 | ||
b0cacab0 TT |
9115 | # Prepare PATH_SEPARATOR. |
9116 | # The user is always right. | |
9117 | if test "${PATH_SEPARATOR+set}" != set; then | |
9118 | echo "#! /bin/sh" >conf$$.sh | |
9119 | echo "exit 0" >>conf$$.sh | |
9120 | chmod +x conf$$.sh | |
9121 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9122 | PATH_SEPARATOR=';' | |
9123 | else | |
9124 | PATH_SEPARATOR=: | |
9125 | fi | |
9126 | rm -f conf$$.sh | |
9127 | fi | |
9128 | ac_prog=ld | |
9129 | if test "$GCC" = yes; then | |
9130 | # Check if gcc -print-prog-name=ld gives a path. | |
39fd3d4f SJR |
9131 | { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
9132 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
b0cacab0 TT |
9133 | case $host in |
9134 | *-*-mingw*) | |
9135 | # gcc leaves a trailing carriage return which upsets mingw | |
9136 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
9137 | *) | |
9138 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
9139 | esac | |
9140 | case $ac_prog in | |
9141 | # Accept absolute paths. | |
9142 | [\\/]* | [A-Za-z]:[\\/]*) | |
9143 | re_direlt='/[^/][^/]*/\.\./' | |
9144 | # Canonicalize the path of ld | |
9145 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
9146 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
9147 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
9148 | done | |
9149 | test -z "$LD" && LD="$ac_prog" | |
9150 | ;; | |
9151 | "") | |
9152 | # If it fails, then pretend we aren't using GCC. | |
9153 | ac_prog=ld | |
9154 | ;; | |
9155 | *) | |
9156 | # If it is relative, then search for the first ld in PATH. | |
9157 | with_gnu_ld=unknown | |
9158 | ;; | |
9159 | esac | |
9160 | elif test "$with_gnu_ld" = yes; then | |
39fd3d4f SJR |
9161 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
9162 | $as_echo_n "checking for GNU ld... " >&6; } | |
b0cacab0 | 9163 | else |
39fd3d4f SJR |
9164 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
9165 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
a64c9c13 | 9166 | fi |
b0cacab0 | 9167 | if test "${acl_cv_path_LD+set}" = set; then |
39fd3d4f | 9168 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
9169 | else |
9170 | if test -z "$LD"; then | |
9171 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
9172 | for ac_dir in $PATH; do | |
9173 | test -z "$ac_dir" && ac_dir=. | |
9174 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
9175 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
9176 | # Check to see if the program is GNU ld. I'd rather use --version, | |
9177 | # but apparently some GNU ld's only accept -v. | |
9178 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
9179 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
9180 | *GNU* | *'with BFD'*) | |
9181 | test "$with_gnu_ld" != no && break ;; | |
9182 | *) | |
9183 | test "$with_gnu_ld" != yes && break ;; | |
9184 | esac | |
9185 | fi | |
9186 | done | |
9187 | IFS="$ac_save_ifs" | |
9188 | else | |
9189 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
a64c9c13 | 9190 | fi |
a04eba3f | 9191 | fi |
93636bde | 9192 | |
b0cacab0 TT |
9193 | LD="$acl_cv_path_LD" |
9194 | if test -n "$LD"; then | |
39fd3d4f SJR |
9195 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
9196 | $as_echo "$LD" >&6; } | |
a64c9c13 | 9197 | else |
39fd3d4f SJR |
9198 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9199 | $as_echo "no" >&6; } | |
a64c9c13 | 9200 | fi |
39fd3d4f SJR |
9201 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
9202 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
b0cacab0 | 9203 | { (exit 1); exit 1; }; } |
39fd3d4f SJR |
9204 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
9205 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
b0cacab0 | 9206 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
39fd3d4f | 9207 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
9208 | else |
9209 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
9210 | case `$LD -v 2>&1 </dev/null` in | |
9211 | *GNU* | *'with BFD'*) | |
9212 | acl_cv_prog_gnu_ld=yes ;; | |
9213 | *) | |
9214 | acl_cv_prog_gnu_ld=no ;; | |
9215 | esac | |
07a0db15 | 9216 | fi |
39fd3d4f SJR |
9217 | { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
9218 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
b0cacab0 | 9219 | with_gnu_ld=$acl_cv_prog_gnu_ld |
07a0db15 | 9220 | |
a64c9c13 | 9221 | |
07a0db15 | 9222 | |
39fd3d4f SJR |
9223 | { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
9224 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
b0cacab0 | 9225 | if test "${acl_cv_rpath+set}" = set; then |
39fd3d4f | 9226 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 9227 | else |
a04eba3f | 9228 | |
b0cacab0 TT |
9229 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
9230 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
9231 | . ./conftest.sh | |
9232 | rm -f ./conftest.sh | |
9233 | acl_cv_rpath=done | |
a04eba3f | 9234 | |
07a0db15 | 9235 | fi |
39fd3d4f SJR |
9236 | { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
9237 | $as_echo "$acl_cv_rpath" >&6; } | |
b0cacab0 TT |
9238 | wl="$acl_cv_wl" |
9239 | libext="$acl_cv_libext" | |
9240 | shlibext="$acl_cv_shlibext" | |
9241 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
9242 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
9243 | hardcode_direct="$acl_cv_hardcode_direct" | |
9244 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
e1052144 | 9245 | # Check whether --enable-rpath was given. |
b0cacab0 | 9246 | if test "${enable_rpath+set}" = set; then |
e1052144 | 9247 | enableval=$enable_rpath; : |
b0cacab0 TT |
9248 | else |
9249 | enable_rpath=yes | |
e1052144 TT |
9250 | fi |
9251 | ||
b0cacab0 TT |
9252 | |
9253 | ||
93636bde | 9254 | |
a64c9c13 | 9255 | |
a64c9c13 | 9256 | |
93636bde | 9257 | |
93636bde | 9258 | |
93636bde | 9259 | use_additional=yes |
b0cacab0 | 9260 | |
07a0db15 TT |
9261 | acl_save_prefix="$prefix" |
9262 | prefix="$acl_final_prefix" | |
93636bde TT |
9263 | acl_save_exec_prefix="$exec_prefix" |
9264 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 9265 | |
93636bde TT |
9266 | eval additional_includedir=\"$includedir\" |
9267 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 9268 | |
93636bde TT |
9269 | exec_prefix="$acl_save_exec_prefix" |
9270 | prefix="$acl_save_prefix" | |
9271 | ||
b0cacab0 | 9272 | |
e1052144 | 9273 | # Check whether --with-libiconv-prefix was given. |
93636bde | 9274 | if test "${with_libiconv_prefix+set}" = set; then |
e1052144 | 9275 | withval=$with_libiconv_prefix; |
93636bde TT |
9276 | if test "X$withval" = "Xno"; then |
9277 | use_additional=no | |
9278 | else | |
9279 | if test "X$withval" = "X"; then | |
b0cacab0 | 9280 | |
93636bde TT |
9281 | acl_save_prefix="$prefix" |
9282 | prefix="$acl_final_prefix" | |
9283 | acl_save_exec_prefix="$exec_prefix" | |
9284 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 9285 | |
93636bde TT |
9286 | eval additional_includedir=\"$includedir\" |
9287 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 9288 | |
93636bde | 9289 | exec_prefix="$acl_save_exec_prefix" |
07a0db15 TT |
9290 | prefix="$acl_save_prefix" |
9291 | ||
07a0db15 | 9292 | else |
93636bde TT |
9293 | additional_includedir="$withval/include" |
9294 | additional_libdir="$withval/lib" | |
07a0db15 TT |
9295 | fi |
9296 | fi | |
07a0db15 | 9297 | |
e1052144 TT |
9298 | fi |
9299 | ||
a04eba3f TT |
9300 | LIBICONV= |
9301 | LTLIBICONV= | |
9302 | INCICONV= | |
9303 | rpathdirs= | |
9304 | ltrpathdirs= | |
9305 | names_already_handled= | |
9306 | names_next_round='iconv ' | |
9307 | while test -n "$names_next_round"; do | |
9308 | names_this_round="$names_next_round" | |
9309 | names_next_round= | |
9310 | for name in $names_this_round; do | |
9311 | already_handled= | |
9312 | for n in $names_already_handled; do | |
9313 | if test "$n" = "$name"; then | |
9314 | already_handled=yes | |
9315 | break | |
9316 | fi | |
9317 | done | |
9318 | if test -z "$already_handled"; then | |
9319 | names_already_handled="$names_already_handled $name" | |
9320 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
9321 | eval value=\"\$HAVE_LIB$uppername\" | |
9322 | if test -n "$value"; then | |
9323 | if test "$value" = yes; then | |
9324 | eval value=\"\$LIB$uppername\" | |
9325 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
9326 | eval value=\"\$LTLIB$uppername\" | |
9327 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
9328 | else | |
9329 | : | |
9330 | fi | |
9331 | else | |
9332 | found_dir= | |
9333 | found_la= | |
9334 | found_so= | |
9335 | found_a= | |
9336 | if test $use_additional = yes; then | |
9337 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
9338 | found_dir="$additional_libdir" | |
9339 | found_so="$additional_libdir/lib$name.$shlibext" | |
9340 | if test -f "$additional_libdir/lib$name.la"; then | |
9341 | found_la="$additional_libdir/lib$name.la" | |
9342 | fi | |
9343 | else | |
9344 | if test -f "$additional_libdir/lib$name.$libext"; then | |
9345 | found_dir="$additional_libdir" | |
9346 | found_a="$additional_libdir/lib$name.$libext" | |
9347 | if test -f "$additional_libdir/lib$name.la"; then | |
9348 | found_la="$additional_libdir/lib$name.la" | |
9349 | fi | |
9350 | fi | |
9351 | fi | |
9352 | fi | |
9353 | if test "X$found_dir" = "X"; then | |
9354 | for x in $LDFLAGS $LTLIBICONV; do | |
b0cacab0 | 9355 | |
a04eba3f TT |
9356 | acl_save_prefix="$prefix" |
9357 | prefix="$acl_final_prefix" | |
9358 | acl_save_exec_prefix="$exec_prefix" | |
9359 | exec_prefix="$acl_final_exec_prefix" | |
9360 | eval x=\"$x\" | |
9361 | exec_prefix="$acl_save_exec_prefix" | |
9362 | prefix="$acl_save_prefix" | |
9363 | ||
9364 | case "$x" in | |
9365 | -L*) | |
9366 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
9367 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
9368 | found_dir="$dir" | |
9369 | found_so="$dir/lib$name.$shlibext" | |
9370 | if test -f "$dir/lib$name.la"; then | |
9371 | found_la="$dir/lib$name.la" | |
9372 | fi | |
9373 | else | |
9374 | if test -f "$dir/lib$name.$libext"; then | |
9375 | found_dir="$dir" | |
9376 | found_a="$dir/lib$name.$libext" | |
9377 | if test -f "$dir/lib$name.la"; then | |
9378 | found_la="$dir/lib$name.la" | |
9379 | fi | |
9380 | fi | |
9381 | fi | |
9382 | ;; | |
9383 | esac | |
9384 | if test "X$found_dir" != "X"; then | |
9385 | break | |
9386 | fi | |
9387 | done | |
9388 | fi | |
9389 | if test "X$found_dir" != "X"; then | |
9390 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
9391 | if test "X$found_so" != "X"; then | |
9392 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
9393 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9394 | else | |
9395 | haveit= | |
9396 | for x in $ltrpathdirs; do | |
9397 | if test "X$x" = "X$found_dir"; then | |
9398 | haveit=yes | |
9399 | break | |
9400 | fi | |
9401 | done | |
9402 | if test -z "$haveit"; then | |
9403 | ltrpathdirs="$ltrpathdirs $found_dir" | |
9404 | fi | |
9405 | if test "$hardcode_direct" = yes; then | |
9406 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9407 | else | |
9408 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
9409 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9410 | haveit= | |
9411 | for x in $rpathdirs; do | |
9412 | if test "X$x" = "X$found_dir"; then | |
9413 | haveit=yes | |
9414 | break | |
9415 | fi | |
9416 | done | |
9417 | if test -z "$haveit"; then | |
9418 | rpathdirs="$rpathdirs $found_dir" | |
9419 | fi | |
9420 | else | |
9421 | haveit= | |
9422 | for x in $LDFLAGS $LIBICONV; do | |
b0cacab0 | 9423 | |
a04eba3f TT |
9424 | acl_save_prefix="$prefix" |
9425 | prefix="$acl_final_prefix" | |
9426 | acl_save_exec_prefix="$exec_prefix" | |
9427 | exec_prefix="$acl_final_exec_prefix" | |
9428 | eval x=\"$x\" | |
9429 | exec_prefix="$acl_save_exec_prefix" | |
9430 | prefix="$acl_save_prefix" | |
9431 | ||
9432 | if test "X$x" = "X-L$found_dir"; then | |
9433 | haveit=yes | |
9434 | break | |
9435 | fi | |
9436 | done | |
9437 | if test -z "$haveit"; then | |
9438 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
9439 | fi | |
9440 | if test "$hardcode_minus_L" != no; then | |
9441 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9442 | else | |
9443 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9444 | fi | |
9445 | fi | |
9446 | fi | |
9447 | fi | |
9448 | else | |
9449 | if test "X$found_a" != "X"; then | |
9450 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
9451 | else | |
9452 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
9453 | fi | |
9454 | fi | |
9455 | additional_includedir= | |
9456 | case "$found_dir" in | |
9457 | */lib | */lib/) | |
9458 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
9459 | additional_includedir="$basedir/include" | |
9460 | ;; | |
9461 | esac | |
9462 | if test "X$additional_includedir" != "X"; then | |
9463 | if test "X$additional_includedir" != "X/usr/include"; then | |
9464 | haveit= | |
9465 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
9466 | if test -n "$GCC"; then | |
9467 | case $host_os in | |
9468 | linux*) haveit=yes;; | |
9469 | esac | |
9470 | fi | |
9471 | fi | |
9472 | if test -z "$haveit"; then | |
9473 | for x in $CPPFLAGS $INCICONV; do | |
b0cacab0 | 9474 | |
a04eba3f TT |
9475 | acl_save_prefix="$prefix" |
9476 | prefix="$acl_final_prefix" | |
9477 | acl_save_exec_prefix="$exec_prefix" | |
9478 | exec_prefix="$acl_final_exec_prefix" | |
9479 | eval x=\"$x\" | |
9480 | exec_prefix="$acl_save_exec_prefix" | |
9481 | prefix="$acl_save_prefix" | |
9482 | ||
9483 | if test "X$x" = "X-I$additional_includedir"; then | |
9484 | haveit=yes | |
9485 | break | |
9486 | fi | |
9487 | done | |
9488 | if test -z "$haveit"; then | |
9489 | if test -d "$additional_includedir"; then | |
9490 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
9491 | fi | |
9492 | fi | |
9493 | fi | |
9494 | fi | |
9495 | fi | |
9496 | if test -n "$found_la"; then | |
9497 | save_libdir="$libdir" | |
9498 | case "$found_la" in | |
9499 | */* | *\\*) . "$found_la" ;; | |
9500 | *) . "./$found_la" ;; | |
9501 | esac | |
9502 | libdir="$save_libdir" | |
9503 | for dep in $dependency_libs; do | |
9504 | case "$dep" in | |
9505 | -L*) | |
9506 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
9507 | if test "X$additional_libdir" != "X/usr/lib"; then | |
9508 | haveit= | |
9509 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
9510 | if test -n "$GCC"; then | |
9511 | case $host_os in | |
9512 | linux*) haveit=yes;; | |
9513 | esac | |
9514 | fi | |
9515 | fi | |
9516 | if test -z "$haveit"; then | |
9517 | haveit= | |
9518 | for x in $LDFLAGS $LIBICONV; do | |
b0cacab0 | 9519 | |
a04eba3f TT |
9520 | acl_save_prefix="$prefix" |
9521 | prefix="$acl_final_prefix" | |
9522 | acl_save_exec_prefix="$exec_prefix" | |
9523 | exec_prefix="$acl_final_exec_prefix" | |
9524 | eval x=\"$x\" | |
9525 | exec_prefix="$acl_save_exec_prefix" | |
9526 | prefix="$acl_save_prefix" | |
9527 | ||
9528 | if test "X$x" = "X-L$additional_libdir"; then | |
9529 | haveit=yes | |
9530 | break | |
9531 | fi | |
9532 | done | |
9533 | if test -z "$haveit"; then | |
9534 | if test -d "$additional_libdir"; then | |
9535 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
9536 | fi | |
9537 | fi | |
9538 | haveit= | |
9539 | for x in $LDFLAGS $LTLIBICONV; do | |
b0cacab0 | 9540 | |
a04eba3f TT |
9541 | acl_save_prefix="$prefix" |
9542 | prefix="$acl_final_prefix" | |
9543 | acl_save_exec_prefix="$exec_prefix" | |
9544 | exec_prefix="$acl_final_exec_prefix" | |
9545 | eval x=\"$x\" | |
9546 | exec_prefix="$acl_save_exec_prefix" | |
9547 | prefix="$acl_save_prefix" | |
9548 | ||
9549 | if test "X$x" = "X-L$additional_libdir"; then | |
9550 | haveit=yes | |
9551 | break | |
9552 | fi | |
9553 | done | |
9554 | if test -z "$haveit"; then | |
9555 | if test -d "$additional_libdir"; then | |
9556 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
9557 | fi | |
9558 | fi | |
9559 | fi | |
9560 | fi | |
9561 | ;; | |
9562 | -R*) | |
9563 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
9564 | if test "$enable_rpath" != no; then | |
9565 | haveit= | |
9566 | for x in $rpathdirs; do | |
9567 | if test "X$x" = "X$dir"; then | |
9568 | haveit=yes | |
9569 | break | |
9570 | fi | |
9571 | done | |
9572 | if test -z "$haveit"; then | |
9573 | rpathdirs="$rpathdirs $dir" | |
9574 | fi | |
9575 | haveit= | |
9576 | for x in $ltrpathdirs; do | |
9577 | if test "X$x" = "X$dir"; then | |
9578 | haveit=yes | |
9579 | break | |
9580 | fi | |
9581 | done | |
9582 | if test -z "$haveit"; then | |
9583 | ltrpathdirs="$ltrpathdirs $dir" | |
9584 | fi | |
9585 | fi | |
9586 | ;; | |
9587 | -l*) | |
9588 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
9589 | ;; | |
9590 | *.la) | |
9591 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
9592 | ;; | |
9593 | *) | |
9594 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
9595 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
9596 | ;; | |
9597 | esac | |
9598 | done | |
9599 | fi | |
9600 | else | |
9601 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9602 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
9603 | fi | |
9604 | fi | |
9605 | fi | |
9606 | done | |
9607 | done | |
9608 | if test "X$rpathdirs" != "X"; then | |
9609 | if test -n "$hardcode_libdir_separator"; then | |
9610 | alldirs= | |
9611 | for found_dir in $rpathdirs; do | |
9612 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
9613 | done | |
9614 | acl_save_libdir="$libdir" | |
9615 | libdir="$alldirs" | |
9616 | eval flag=\"$hardcode_libdir_flag_spec\" | |
9617 | libdir="$acl_save_libdir" | |
9618 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9619 | else | |
9620 | for found_dir in $rpathdirs; do | |
9621 | acl_save_libdir="$libdir" | |
9622 | libdir="$found_dir" | |
9623 | eval flag=\"$hardcode_libdir_flag_spec\" | |
9624 | libdir="$acl_save_libdir" | |
9625 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9626 | done | |
9627 | fi | |
9628 | fi | |
9629 | if test "X$ltrpathdirs" != "X"; then | |
9630 | for found_dir in $ltrpathdirs; do | |
9631 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
9632 | done | |
9633 | fi | |
a64c9c13 | 9634 | |
93636bde TT |
9635 | |
9636 | ||
93636bde | 9637 | |
b0cacab0 TT |
9638 | |
9639 | ||
9640 | ||
9641 | ||
39fd3d4f SJR |
9642 | { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
9643 | $as_echo_n "checking for ptrdiff_t... " >&6; } | |
b0cacab0 | 9644 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
39fd3d4f | 9645 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 9646 | else |
39fd3d4f SJR |
9647 | ac_cv_type_ptrdiff_t=no |
9648 | cat >conftest.$ac_ext <<_ACEOF | |
b0cacab0 TT |
9649 | /* confdefs.h. */ |
9650 | _ACEOF | |
9651 | cat confdefs.h >>conftest.$ac_ext | |
9652 | cat >>conftest.$ac_ext <<_ACEOF | |
9653 | /* end confdefs.h. */ | |
9654 | $ac_includes_default | |
9655 | int | |
9656 | main () | |
9657 | { | |
39fd3d4f SJR |
9658 | if (sizeof (ptrdiff_t)) |
9659 | return 0; | |
9660 | ; | |
b0cacab0 | 9661 | return 0; |
39fd3d4f SJR |
9662 | } |
9663 | _ACEOF | |
9664 | rm -f conftest.$ac_objext | |
9665 | if { (ac_try="$ac_compile" | |
9666 | case "(($ac_try" in | |
9667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9668 | *) ac_try_echo=$ac_try;; | |
9669 | esac | |
9670 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9671 | $as_echo "$ac_try_echo") >&5 | |
9672 | (eval "$ac_compile") 2>conftest.er1 | |
9673 | ac_status=$? | |
9674 | grep -v '^ *+' conftest.er1 >conftest.err | |
9675 | rm -f conftest.er1 | |
9676 | cat conftest.err >&5 | |
9677 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9678 | (exit $ac_status); } && { | |
9679 | test -z "$ac_c_werror_flag" || | |
9680 | test ! -s conftest.err | |
9681 | } && test -s conftest.$ac_objext; then | |
9682 | cat >conftest.$ac_ext <<_ACEOF | |
9683 | /* confdefs.h. */ | |
9684 | _ACEOF | |
9685 | cat confdefs.h >>conftest.$ac_ext | |
9686 | cat >>conftest.$ac_ext <<_ACEOF | |
9687 | /* end confdefs.h. */ | |
9688 | $ac_includes_default | |
9689 | int | |
9690 | main () | |
9691 | { | |
9692 | if (sizeof ((ptrdiff_t))) | |
9693 | return 0; | |
b0cacab0 TT |
9694 | ; |
9695 | return 0; | |
9696 | } | |
9697 | _ACEOF | |
9698 | rm -f conftest.$ac_objext | |
e1052144 TT |
9699 | if { (ac_try="$ac_compile" |
9700 | case "(($ac_try" in | |
9701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9702 | *) ac_try_echo=$ac_try;; | |
9703 | esac | |
39fd3d4f SJR |
9704 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9705 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 9706 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
9707 | ac_status=$? |
9708 | grep -v '^ *+' conftest.er1 >conftest.err | |
9709 | rm -f conftest.er1 | |
9710 | cat conftest.err >&5 | |
39fd3d4f | 9711 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
9712 | (exit $ac_status); } && { |
9713 | test -z "$ac_c_werror_flag" || | |
9714 | test ! -s conftest.err | |
9715 | } && test -s conftest.$ac_objext; then | |
39fd3d4f SJR |
9716 | : |
9717 | else | |
9718 | $as_echo "$as_me: failed program was:" >&5 | |
9719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9720 | ||
9721 | ac_cv_type_ptrdiff_t=yes | |
9722 | fi | |
9723 | ||
9724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 9725 | else |
39fd3d4f | 9726 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
9727 | sed 's/^/| /' conftest.$ac_ext >&5 |
9728 | ||
39fd3d4f | 9729 | |
b0cacab0 | 9730 | fi |
e1052144 TT |
9731 | |
9732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 9733 | fi |
39fd3d4f SJR |
9734 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
9735 | $as_echo "$ac_cv_type_ptrdiff_t" >&6; } | |
9736 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then | |
b0cacab0 TT |
9737 | : |
9738 | else | |
9739 | ||
9740 | cat >>confdefs.h <<\_ACEOF | |
9741 | #define ptrdiff_t long | |
9742 | _ACEOF | |
9743 | ||
9744 | ||
9745 | fi | |
9746 | ||
9747 | ||
9748 | ||
9749 | ||
9750 | ||
9751 | ||
9752 | ||
9753 | ||
9754 | ||
9755 | ||
9756 | ||
9757 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | |
9758 | stdlib.h string.h unistd.h sys/param.h | |
9759 | do | |
39fd3d4f | 9760 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
e1052144 | 9761 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f SJR |
9762 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9763 | $as_echo_n "checking for $ac_header... " >&6; } | |
e1052144 | 9764 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 9765 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 9766 | fi |
39fd3d4f SJR |
9767 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9768 | $as_echo "$as_val"'` | |
9769 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9770 | $as_echo "$ac_res" >&6; } | |
b0cacab0 TT |
9771 | else |
9772 | # Is the header compilable? | |
39fd3d4f SJR |
9773 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9774 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b0cacab0 TT |
9775 | cat >conftest.$ac_ext <<_ACEOF |
9776 | /* confdefs.h. */ | |
9777 | _ACEOF | |
9778 | cat confdefs.h >>conftest.$ac_ext | |
9779 | cat >>conftest.$ac_ext <<_ACEOF | |
9780 | /* end confdefs.h. */ | |
9781 | $ac_includes_default | |
9782 | #include <$ac_header> | |
9783 | _ACEOF | |
9784 | rm -f conftest.$ac_objext | |
e1052144 TT |
9785 | if { (ac_try="$ac_compile" |
9786 | case "(($ac_try" in | |
9787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9788 | *) ac_try_echo=$ac_try;; | |
9789 | esac | |
39fd3d4f SJR |
9790 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9791 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 9792 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
9793 | ac_status=$? |
9794 | grep -v '^ *+' conftest.er1 >conftest.err | |
9795 | rm -f conftest.er1 | |
9796 | cat conftest.err >&5 | |
39fd3d4f | 9797 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
9798 | (exit $ac_status); } && { |
9799 | test -z "$ac_c_werror_flag" || | |
9800 | test ! -s conftest.err | |
9801 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
9802 | ac_header_compiler=yes |
9803 | else | |
39fd3d4f | 9804 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
9805 | sed 's/^/| /' conftest.$ac_ext >&5 |
9806 | ||
e1052144 | 9807 | ac_header_compiler=no |
b0cacab0 | 9808 | fi |
e1052144 TT |
9809 | |
9810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
39fd3d4f SJR |
9811 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9812 | $as_echo "$ac_header_compiler" >&6; } | |
b0cacab0 TT |
9813 | |
9814 | # Is the header present? | |
39fd3d4f SJR |
9815 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9816 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b0cacab0 TT |
9817 | cat >conftest.$ac_ext <<_ACEOF |
9818 | /* confdefs.h. */ | |
9819 | _ACEOF | |
9820 | cat confdefs.h >>conftest.$ac_ext | |
9821 | cat >>conftest.$ac_ext <<_ACEOF | |
9822 | /* end confdefs.h. */ | |
9823 | #include <$ac_header> | |
9824 | _ACEOF | |
e1052144 TT |
9825 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9826 | case "(($ac_try" in | |
9827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9828 | *) ac_try_echo=$ac_try;; | |
9829 | esac | |
39fd3d4f SJR |
9830 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9831 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 9832 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
b0cacab0 TT |
9833 | ac_status=$? |
9834 | grep -v '^ *+' conftest.er1 >conftest.err | |
9835 | rm -f conftest.er1 | |
9836 | cat conftest.err >&5 | |
39fd3d4f | 9837 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
9838 | (exit $ac_status); } >/dev/null && { |
9839 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9840 | test ! -s conftest.err | |
9841 | }; then | |
b0cacab0 TT |
9842 | ac_header_preproc=yes |
9843 | else | |
39fd3d4f | 9844 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
9845 | sed 's/^/| /' conftest.$ac_ext >&5 |
9846 | ||
9847 | ac_header_preproc=no | |
9848 | fi | |
e1052144 | 9849 | |
b0cacab0 | 9850 | rm -f conftest.err conftest.$ac_ext |
39fd3d4f SJR |
9851 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9852 | $as_echo "$ac_header_preproc" >&6; } | |
b0cacab0 TT |
9853 | |
9854 | # So? What about this header? | |
9855 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9856 | yes:no: ) | |
39fd3d4f SJR |
9857 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9858 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9859 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9860 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
b0cacab0 TT |
9861 | ac_header_preproc=yes |
9862 | ;; | |
9863 | no:yes:* ) | |
39fd3d4f SJR |
9864 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9865 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9866 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9867 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9868 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9869 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9870 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9871 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9872 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9873 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9874 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9875 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e1052144 | 9876 | |
b0cacab0 TT |
9877 | ;; |
9878 | esac | |
39fd3d4f SJR |
9879 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9880 | $as_echo_n "checking for $ac_header... " >&6; } | |
e1052144 | 9881 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 9882 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
9883 | else |
9884 | eval "$as_ac_Header=\$ac_header_preproc" | |
9885 | fi | |
39fd3d4f SJR |
9886 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9887 | $as_echo "$as_val"'` | |
9888 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9889 | $as_echo "$ac_res" >&6; } | |
b0cacab0 TT |
9890 | |
9891 | fi | |
39fd3d4f SJR |
9892 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9893 | $as_echo "$as_val"'` | |
9894 | if test "x$as_val" = x""yes; then | |
b0cacab0 | 9895 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 9896 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b0cacab0 TT |
9897 | _ACEOF |
9898 | ||
9899 | fi | |
9900 | ||
9901 | done | |
9902 | ||
9903 | ||
9904 | ||
9905 | ||
9906 | ||
9907 | ||
9908 | ||
9909 | ||
9910 | ||
9911 | ||
9912 | ||
9913 | ||
9914 | ||
9915 | ||
9916 | ||
9917 | ||
9918 | ||
9919 | ||
9920 | ||
9921 | ||
9922 | ||
9923 | ||
9924 | ||
9925 | ||
9926 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ | |
9927 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ | |
9928 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ | |
9929 | __fsetlocking | |
9930 | do | |
39fd3d4f SJR |
9931 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9932 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9933 | $as_echo_n "checking for $ac_func... " >&6; } | |
e1052144 | 9934 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 9935 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
9936 | else |
9937 | cat >conftest.$ac_ext <<_ACEOF | |
9938 | /* confdefs.h. */ | |
9939 | _ACEOF | |
9940 | cat confdefs.h >>conftest.$ac_ext | |
9941 | cat >>conftest.$ac_ext <<_ACEOF | |
9942 | /* end confdefs.h. */ | |
9943 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9944 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9945 | #define $ac_func innocuous_$ac_func | |
9946 | ||
9947 | /* System header to define __stub macros and hopefully few prototypes, | |
9948 | which can conflict with char $ac_func (); below. | |
9949 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9950 | <limits.h> exists even on freestanding compilers. */ | |
9951 | ||
9952 | #ifdef __STDC__ | |
9953 | # include <limits.h> | |
9954 | #else | |
9955 | # include <assert.h> | |
9956 | #endif | |
9957 | ||
9958 | #undef $ac_func | |
9959 | ||
e1052144 TT |
9960 | /* Override any GCC internal prototype to avoid an error. |
9961 | Use char because int might match the return type of a GCC | |
9962 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
9963 | #ifdef __cplusplus |
9964 | extern "C" | |
b0cacab0 | 9965 | #endif |
b0cacab0 TT |
9966 | char $ac_func (); |
9967 | /* The GNU C library defines this for functions which it implements | |
9968 | to always fail with ENOSYS. Some functions are actually named | |
9969 | something starting with __ and the normal name is an alias. */ | |
e1052144 | 9970 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b0cacab0 | 9971 | choke me |
b0cacab0 TT |
9972 | #endif |
9973 | ||
9974 | int | |
9975 | main () | |
9976 | { | |
e1052144 | 9977 | return $ac_func (); |
b0cacab0 TT |
9978 | ; |
9979 | return 0; | |
9980 | } | |
9981 | _ACEOF | |
9982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
9983 | if { (ac_try="$ac_link" |
9984 | case "(($ac_try" in | |
9985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9986 | *) ac_try_echo=$ac_try;; | |
9987 | esac | |
39fd3d4f SJR |
9988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9989 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 9990 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
9991 | ac_status=$? |
9992 | grep -v '^ *+' conftest.er1 >conftest.err | |
9993 | rm -f conftest.er1 | |
9994 | cat conftest.err >&5 | |
39fd3d4f | 9995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
9996 | (exit $ac_status); } && { |
9997 | test -z "$ac_c_werror_flag" || | |
9998 | test ! -s conftest.err | |
39fd3d4f SJR |
9999 | } && test -s conftest$ac_exeext && { |
10000 | test "$cross_compiling" = yes || | |
10001 | $as_test_x conftest$ac_exeext | |
10002 | }; then | |
b0cacab0 TT |
10003 | eval "$as_ac_var=yes" |
10004 | else | |
39fd3d4f | 10005 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
10006 | sed 's/^/| /' conftest.$ac_ext >&5 |
10007 | ||
e1052144 | 10008 | eval "$as_ac_var=no" |
b0cacab0 | 10009 | fi |
e1052144 | 10010 | |
39fd3d4f | 10011 | rm -rf conftest.dSYM |
29a5deed | 10012 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
10013 | conftest$ac_exeext conftest.$ac_ext |
10014 | fi | |
39fd3d4f SJR |
10015 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10016 | $as_echo "$as_val"'` | |
10017 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10018 | $as_echo "$ac_res" >&6; } | |
10019 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10020 | $as_echo "$as_val"'` | |
10021 | if test "x$as_val" = x""yes; then | |
b0cacab0 | 10022 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 10023 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b0cacab0 TT |
10024 | _ACEOF |
10025 | ||
10026 | fi | |
10027 | done | |
10028 | ||
10029 | ||
10030 | ||
39fd3d4f SJR |
10031 | { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
10032 | $as_echo_n "checking whether _snprintf is declared... " >&6; } | |
b0cacab0 | 10033 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
39fd3d4f | 10034 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
10035 | else |
10036 | cat >conftest.$ac_ext <<_ACEOF | |
10037 | /* confdefs.h. */ | |
10038 | _ACEOF | |
10039 | cat confdefs.h >>conftest.$ac_ext | |
10040 | cat >>conftest.$ac_ext <<_ACEOF | |
10041 | /* end confdefs.h. */ | |
10042 | #include <stdio.h> | |
10043 | int | |
10044 | main () | |
10045 | { | |
10046 | ||
10047 | #ifndef _snprintf | |
10048 | char *p = (char *) _snprintf; | |
10049 | #endif | |
10050 | ||
10051 | ; | |
10052 | return 0; | |
10053 | } | |
10054 | _ACEOF | |
10055 | rm -f conftest.$ac_objext | |
e1052144 TT |
10056 | if { (ac_try="$ac_compile" |
10057 | case "(($ac_try" in | |
10058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10059 | *) ac_try_echo=$ac_try;; | |
10060 | esac | |
39fd3d4f SJR |
10061 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10062 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 10063 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
10064 | ac_status=$? |
10065 | grep -v '^ *+' conftest.er1 >conftest.err | |
10066 | rm -f conftest.er1 | |
10067 | cat conftest.err >&5 | |
39fd3d4f | 10068 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
10069 | (exit $ac_status); } && { |
10070 | test -z "$ac_c_werror_flag" || | |
10071 | test ! -s conftest.err | |
10072 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
10073 | ac_cv_have_decl__snprintf=yes |
10074 | else | |
39fd3d4f | 10075 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
10076 | sed 's/^/| /' conftest.$ac_ext >&5 |
10077 | ||
e1052144 | 10078 | ac_cv_have_decl__snprintf=no |
b0cacab0 | 10079 | fi |
e1052144 TT |
10080 | |
10081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 10082 | fi |
39fd3d4f SJR |
10083 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
10084 | $as_echo "$ac_cv_have_decl__snprintf" >&6; } | |
b0cacab0 TT |
10085 | if test $ac_cv_have_decl__snprintf = yes; then |
10086 | gt_value=1 | |
10087 | else | |
10088 | gt_value=0 | |
10089 | fi | |
10090 | ||
10091 | cat >>confdefs.h <<_ACEOF | |
10092 | #define HAVE_DECL__SNPRINTF $gt_value | |
10093 | _ACEOF | |
10094 | ||
10095 | ||
10096 | ||
39fd3d4f SJR |
10097 | { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
10098 | $as_echo_n "checking whether _snwprintf is declared... " >&6; } | |
b0cacab0 | 10099 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
39fd3d4f | 10100 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
10101 | else |
10102 | cat >conftest.$ac_ext <<_ACEOF | |
10103 | /* confdefs.h. */ | |
10104 | _ACEOF | |
10105 | cat confdefs.h >>conftest.$ac_ext | |
10106 | cat >>conftest.$ac_ext <<_ACEOF | |
10107 | /* end confdefs.h. */ | |
10108 | #include <stdio.h> | |
10109 | int | |
10110 | main () | |
10111 | { | |
10112 | ||
10113 | #ifndef _snwprintf | |
10114 | char *p = (char *) _snwprintf; | |
10115 | #endif | |
10116 | ||
10117 | ; | |
10118 | return 0; | |
10119 | } | |
10120 | _ACEOF | |
10121 | rm -f conftest.$ac_objext | |
e1052144 TT |
10122 | if { (ac_try="$ac_compile" |
10123 | case "(($ac_try" in | |
10124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10125 | *) ac_try_echo=$ac_try;; | |
10126 | esac | |
39fd3d4f SJR |
10127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10128 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 10129 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
10130 | ac_status=$? |
10131 | grep -v '^ *+' conftest.er1 >conftest.err | |
10132 | rm -f conftest.er1 | |
10133 | cat conftest.err >&5 | |
39fd3d4f | 10134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
10135 | (exit $ac_status); } && { |
10136 | test -z "$ac_c_werror_flag" || | |
10137 | test ! -s conftest.err | |
10138 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
10139 | ac_cv_have_decl__snwprintf=yes |
10140 | else | |
39fd3d4f | 10141 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
10142 | sed 's/^/| /' conftest.$ac_ext >&5 |
10143 | ||
e1052144 | 10144 | ac_cv_have_decl__snwprintf=no |
b0cacab0 | 10145 | fi |
e1052144 TT |
10146 | |
10147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 10148 | fi |
39fd3d4f SJR |
10149 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
10150 | $as_echo "$ac_cv_have_decl__snwprintf" >&6; } | |
b0cacab0 TT |
10151 | if test $ac_cv_have_decl__snwprintf = yes; then |
10152 | gt_value=1 | |
10153 | else | |
10154 | gt_value=0 | |
10155 | fi | |
10156 | ||
10157 | cat >>confdefs.h <<_ACEOF | |
10158 | #define HAVE_DECL__SNWPRINTF $gt_value | |
10159 | _ACEOF | |
10160 | ||
10161 | ||
10162 | ||
10163 | ||
39fd3d4f SJR |
10164 | { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
10165 | $as_echo_n "checking whether feof_unlocked is declared... " >&6; } | |
b0cacab0 | 10166 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
39fd3d4f | 10167 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
10168 | else |
10169 | cat >conftest.$ac_ext <<_ACEOF | |
10170 | /* confdefs.h. */ | |
10171 | _ACEOF | |
10172 | cat confdefs.h >>conftest.$ac_ext | |
10173 | cat >>conftest.$ac_ext <<_ACEOF | |
10174 | /* end confdefs.h. */ | |
10175 | #include <stdio.h> | |
10176 | int | |
10177 | main () | |
10178 | { | |
10179 | ||
10180 | #ifndef feof_unlocked | |
10181 | char *p = (char *) feof_unlocked; | |
10182 | #endif | |
10183 | ||
10184 | ; | |
10185 | return 0; | |
10186 | } | |
10187 | _ACEOF | |
10188 | rm -f conftest.$ac_objext | |
e1052144 TT |
10189 | if { (ac_try="$ac_compile" |
10190 | case "(($ac_try" in | |
10191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10192 | *) ac_try_echo=$ac_try;; | |
10193 | esac | |
39fd3d4f SJR |
10194 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10195 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 10196 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
10197 | ac_status=$? |
10198 | grep -v '^ *+' conftest.er1 >conftest.err | |
10199 | rm -f conftest.er1 | |
10200 | cat conftest.err >&5 | |
39fd3d4f | 10201 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
10202 | (exit $ac_status); } && { |
10203 | test -z "$ac_c_werror_flag" || | |
10204 | test ! -s conftest.err | |
10205 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
10206 | ac_cv_have_decl_feof_unlocked=yes |
10207 | else | |
39fd3d4f | 10208 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
10209 | sed 's/^/| /' conftest.$ac_ext >&5 |
10210 | ||
e1052144 | 10211 | ac_cv_have_decl_feof_unlocked=no |
b0cacab0 | 10212 | fi |
e1052144 TT |
10213 | |
10214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 10215 | fi |
39fd3d4f SJR |
10216 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
10217 | $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } | |
b0cacab0 TT |
10218 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
10219 | gt_value=1 | |
10220 | else | |
10221 | gt_value=0 | |
10222 | fi | |
10223 | ||
10224 | cat >>confdefs.h <<_ACEOF | |
10225 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value | |
10226 | _ACEOF | |
10227 | ||
10228 | ||
10229 | ||
39fd3d4f SJR |
10230 | { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
10231 | $as_echo_n "checking whether fgets_unlocked is declared... " >&6; } | |
b0cacab0 | 10232 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
39fd3d4f | 10233 | $as_echo_n "(cached) " >&6 |
93636bde | 10234 | else |
b0cacab0 TT |
10235 | cat >conftest.$ac_ext <<_ACEOF |
10236 | /* confdefs.h. */ | |
10237 | _ACEOF | |
10238 | cat confdefs.h >>conftest.$ac_ext | |
10239 | cat >>conftest.$ac_ext <<_ACEOF | |
10240 | /* end confdefs.h. */ | |
10241 | #include <stdio.h> | |
10242 | int | |
10243 | main () | |
10244 | { | |
93636bde | 10245 | |
b0cacab0 TT |
10246 | #ifndef fgets_unlocked |
10247 | char *p = (char *) fgets_unlocked; | |
10248 | #endif | |
93636bde | 10249 | |
b0cacab0 TT |
10250 | ; |
10251 | return 0; | |
10252 | } | |
10253 | _ACEOF | |
10254 | rm -f conftest.$ac_objext | |
e1052144 TT |
10255 | if { (ac_try="$ac_compile" |
10256 | case "(($ac_try" in | |
10257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10258 | *) ac_try_echo=$ac_try;; | |
10259 | esac | |
39fd3d4f SJR |
10260 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10261 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 10262 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
10263 | ac_status=$? |
10264 | grep -v '^ *+' conftest.er1 >conftest.err | |
10265 | rm -f conftest.er1 | |
10266 | cat conftest.err >&5 | |
39fd3d4f | 10267 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
10268 | (exit $ac_status); } && { |
10269 | test -z "$ac_c_werror_flag" || | |
10270 | test ! -s conftest.err | |
10271 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
10272 | ac_cv_have_decl_fgets_unlocked=yes |
10273 | else | |
39fd3d4f | 10274 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
10275 | sed 's/^/| /' conftest.$ac_ext >&5 |
10276 | ||
e1052144 | 10277 | ac_cv_have_decl_fgets_unlocked=no |
b0cacab0 | 10278 | fi |
e1052144 TT |
10279 | |
10280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 10281 | fi |
39fd3d4f SJR |
10282 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
10283 | $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } | |
b0cacab0 TT |
10284 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
10285 | gt_value=1 | |
10286 | else | |
10287 | gt_value=0 | |
10288 | fi | |
93636bde | 10289 | |
b0cacab0 TT |
10290 | cat >>confdefs.h <<_ACEOF |
10291 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value | |
10292 | _ACEOF | |
93636bde | 10293 | |
b0cacab0 TT |
10294 | |
10295 | ||
39fd3d4f SJR |
10296 | { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
10297 | $as_echo_n "checking whether getc_unlocked is declared... " >&6; } | |
b0cacab0 | 10298 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
39fd3d4f | 10299 | $as_echo_n "(cached) " >&6 |
07a0db15 | 10300 | else |
b0cacab0 TT |
10301 | cat >conftest.$ac_ext <<_ACEOF |
10302 | /* confdefs.h. */ | |
10303 | _ACEOF | |
10304 | cat confdefs.h >>conftest.$ac_ext | |
10305 | cat >>conftest.$ac_ext <<_ACEOF | |
10306 | /* end confdefs.h. */ | |
10307 | #include <stdio.h> | |
10308 | int | |
10309 | main () | |
10310 | { | |
93636bde | 10311 | |
b0cacab0 TT |
10312 | #ifndef getc_unlocked |
10313 | char *p = (char *) getc_unlocked; | |
10314 | #endif | |
93636bde | 10315 | |
b0cacab0 TT |
10316 | ; |
10317 | return 0; | |
10318 | } | |
10319 | _ACEOF | |
10320 | rm -f conftest.$ac_objext | |
e1052144 TT |
10321 | if { (ac_try="$ac_compile" |
10322 | case "(($ac_try" in | |
10323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10324 | *) ac_try_echo=$ac_try;; | |
10325 | esac | |
39fd3d4f SJR |
10326 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10327 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 10328 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
10329 | ac_status=$? |
10330 | grep -v '^ *+' conftest.er1 >conftest.err | |
10331 | rm -f conftest.er1 | |
10332 | cat conftest.err >&5 | |
39fd3d4f | 10333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
10334 | (exit $ac_status); } && { |
10335 | test -z "$ac_c_werror_flag" || | |
10336 | test ! -s conftest.err | |
10337 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
10338 | ac_cv_have_decl_getc_unlocked=yes |
10339 | else | |
39fd3d4f | 10340 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
10341 | sed 's/^/| /' conftest.$ac_ext >&5 |
10342 | ||
e1052144 | 10343 | ac_cv_have_decl_getc_unlocked=no |
b0cacab0 | 10344 | fi |
e1052144 TT |
10345 | |
10346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 10347 | fi |
39fd3d4f SJR |
10348 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
10349 | $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } | |
b0cacab0 TT |
10350 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
10351 | gt_value=1 | |
10352 | else | |
10353 | gt_value=0 | |
93636bde TT |
10354 | fi |
10355 | ||
b0cacab0 TT |
10356 | cat >>confdefs.h <<_ACEOF |
10357 | #define HAVE_DECL_GETC_UNLOCKED $gt_value | |
10358 | _ACEOF | |
93636bde | 10359 | |
93636bde TT |
10360 | |
10361 | ||
b0cacab0 TT |
10362 | case $gt_cv_func_printf_posix in |
10363 | *yes) HAVE_POSIX_PRINTF=1 ;; | |
10364 | *) HAVE_POSIX_PRINTF=0 ;; | |
10365 | esac | |
a04eba3f | 10366 | |
b0cacab0 TT |
10367 | if test "$ac_cv_func_asprintf" = yes; then |
10368 | HAVE_ASPRINTF=1 | |
10369 | else | |
10370 | HAVE_ASPRINTF=0 | |
10371 | fi | |
10372 | ||
10373 | if test "$ac_cv_func_snprintf" = yes; then | |
10374 | HAVE_SNPRINTF=1 | |
10375 | else | |
10376 | HAVE_SNPRINTF=0 | |
10377 | fi | |
10378 | ||
10379 | if test "$ac_cv_func_wprintf" = yes; then | |
10380 | HAVE_WPRINTF=1 | |
10381 | else | |
10382 | HAVE_WPRINTF=0 | |
10383 | fi | |
93636bde | 10384 | |
a64c9c13 | 10385 | |
a64c9c13 | 10386 | |
a64c9c13 | 10387 | |
a64c9c13 | 10388 | |
07a0db15 | 10389 | |
93636bde TT |
10390 | |
10391 | am_save_CPPFLAGS="$CPPFLAGS" | |
b0cacab0 | 10392 | |
a04eba3f TT |
10393 | for element in $INCICONV; do |
10394 | haveit= | |
10395 | for x in $CPPFLAGS; do | |
b0cacab0 | 10396 | |
a04eba3f TT |
10397 | acl_save_prefix="$prefix" |
10398 | prefix="$acl_final_prefix" | |
10399 | acl_save_exec_prefix="$exec_prefix" | |
10400 | exec_prefix="$acl_final_exec_prefix" | |
10401 | eval x=\"$x\" | |
10402 | exec_prefix="$acl_save_exec_prefix" | |
10403 | prefix="$acl_save_prefix" | |
10404 | ||
10405 | if test "X$x" = "X$element"; then | |
10406 | haveit=yes | |
10407 | break | |
10408 | fi | |
10409 | done | |
10410 | if test -z "$haveit"; then | |
10411 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
a64c9c13 TT |
10412 | fi |
10413 | done | |
a64c9c13 | 10414 | |
07a0db15 | 10415 | |
39fd3d4f SJR |
10416 | { $as_echo "$as_me:$LINENO: checking for iconv" >&5 |
10417 | $as_echo_n "checking for iconv... " >&6; } | |
b0cacab0 | 10418 | if test "${am_cv_func_iconv+set}" = set; then |
39fd3d4f | 10419 | $as_echo_n "(cached) " >&6 |
93636bde | 10420 | else |
b0cacab0 | 10421 | |
a04eba3f TT |
10422 | am_cv_func_iconv="no, consider installing GNU libiconv" |
10423 | am_cv_lib_iconv=no | |
b0cacab0 TT |
10424 | cat >conftest.$ac_ext <<_ACEOF |
10425 | /* confdefs.h. */ | |
10426 | _ACEOF | |
10427 | cat confdefs.h >>conftest.$ac_ext | |
10428 | cat >>conftest.$ac_ext <<_ACEOF | |
10429 | /* end confdefs.h. */ | |
a04eba3f TT |
10430 | #include <stdlib.h> |
10431 | #include <iconv.h> | |
b0cacab0 TT |
10432 | int |
10433 | main () | |
10434 | { | |
a04eba3f TT |
10435 | iconv_t cd = iconv_open("",""); |
10436 | iconv(cd,NULL,NULL,NULL,NULL); | |
10437 | iconv_close(cd); | |
b0cacab0 TT |
10438 | ; |
10439 | return 0; | |
10440 | } | |
10441 | _ACEOF | |
10442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
10443 | if { (ac_try="$ac_link" |
10444 | case "(($ac_try" in | |
10445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10446 | *) ac_try_echo=$ac_try;; | |
10447 | esac | |
39fd3d4f SJR |
10448 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10449 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 10450 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
10451 | ac_status=$? |
10452 | grep -v '^ *+' conftest.er1 >conftest.err | |
10453 | rm -f conftest.er1 | |
10454 | cat conftest.err >&5 | |
39fd3d4f | 10455 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
10456 | (exit $ac_status); } && { |
10457 | test -z "$ac_c_werror_flag" || | |
10458 | test ! -s conftest.err | |
39fd3d4f SJR |
10459 | } && test -s conftest$ac_exeext && { |
10460 | test "$cross_compiling" = yes || | |
10461 | $as_test_x conftest$ac_exeext | |
10462 | }; then | |
a04eba3f | 10463 | am_cv_func_iconv=yes |
a64c9c13 | 10464 | else |
39fd3d4f | 10465 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
10466 | sed 's/^/| /' conftest.$ac_ext >&5 |
10467 | ||
e1052144 | 10468 | |
a64c9c13 | 10469 | fi |
e1052144 | 10470 | |
39fd3d4f | 10471 | rm -rf conftest.dSYM |
29a5deed | 10472 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 10473 | conftest$ac_exeext conftest.$ac_ext |
a04eba3f TT |
10474 | if test "$am_cv_func_iconv" != yes; then |
10475 | am_save_LIBS="$LIBS" | |
10476 | LIBS="$LIBS $LIBICONV" | |
b0cacab0 TT |
10477 | cat >conftest.$ac_ext <<_ACEOF |
10478 | /* confdefs.h. */ | |
10479 | _ACEOF | |
10480 | cat confdefs.h >>conftest.$ac_ext | |
10481 | cat >>conftest.$ac_ext <<_ACEOF | |
10482 | /* end confdefs.h. */ | |
a04eba3f TT |
10483 | #include <stdlib.h> |
10484 | #include <iconv.h> | |
b0cacab0 TT |
10485 | int |
10486 | main () | |
10487 | { | |
a04eba3f TT |
10488 | iconv_t cd = iconv_open("",""); |
10489 | iconv(cd,NULL,NULL,NULL,NULL); | |
10490 | iconv_close(cd); | |
b0cacab0 TT |
10491 | ; |
10492 | return 0; | |
10493 | } | |
10494 | _ACEOF | |
10495 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
10496 | if { (ac_try="$ac_link" |
10497 | case "(($ac_try" in | |
10498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10499 | *) ac_try_echo=$ac_try;; | |
10500 | esac | |
39fd3d4f SJR |
10501 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10502 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 10503 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
10504 | ac_status=$? |
10505 | grep -v '^ *+' conftest.er1 >conftest.err | |
10506 | rm -f conftest.er1 | |
10507 | cat conftest.err >&5 | |
39fd3d4f | 10508 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
10509 | (exit $ac_status); } && { |
10510 | test -z "$ac_c_werror_flag" || | |
10511 | test ! -s conftest.err | |
39fd3d4f SJR |
10512 | } && test -s conftest$ac_exeext && { |
10513 | test "$cross_compiling" = yes || | |
10514 | $as_test_x conftest$ac_exeext | |
10515 | }; then | |
a04eba3f TT |
10516 | am_cv_lib_iconv=yes |
10517 | am_cv_func_iconv=yes | |
a64c9c13 | 10518 | else |
39fd3d4f | 10519 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
10520 | sed 's/^/| /' conftest.$ac_ext >&5 |
10521 | ||
e1052144 | 10522 | |
a64c9c13 | 10523 | fi |
e1052144 | 10524 | |
39fd3d4f | 10525 | rm -rf conftest.dSYM |
29a5deed | 10526 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 10527 | conftest$ac_exeext conftest.$ac_ext |
a04eba3f TT |
10528 | LIBS="$am_save_LIBS" |
10529 | fi | |
07a0db15 | 10530 | |
b0cacab0 | 10531 | fi |
39fd3d4f SJR |
10532 | { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
10533 | $as_echo "$am_cv_func_iconv" >&6; } | |
93636bde | 10534 | if test "$am_cv_func_iconv" = yes; then |
b0cacab0 TT |
10535 | |
10536 | cat >>confdefs.h <<\_ACEOF | |
a04eba3f | 10537 | #define HAVE_ICONV 1 |
b0cacab0 | 10538 | _ACEOF |
a64c9c13 | 10539 | |
a04eba3f TT |
10540 | fi |
10541 | if test "$am_cv_lib_iconv" = yes; then | |
39fd3d4f SJR |
10542 | { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
10543 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
10544 | { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5 | |
10545 | $as_echo "$LIBICONV" >&6; } | |
a04eba3f TT |
10546 | else |
10547 | CPPFLAGS="$am_save_CPPFLAGS" | |
10548 | LIBICONV= | |
10549 | LTLIBICONV= | |
10550 | fi | |
b0cacab0 TT |
10551 | |
10552 | ||
a64c9c13 | 10553 | |
a04eba3f | 10554 | if test "$am_cv_func_iconv" = yes; then |
39fd3d4f SJR |
10555 | { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
10556 | $as_echo_n "checking for iconv declaration... " >&6; } | |
b0cacab0 | 10557 | if test "${am_cv_proto_iconv+set}" = set; then |
39fd3d4f | 10558 | $as_echo_n "(cached) " >&6 |
93636bde | 10559 | else |
b0cacab0 TT |
10560 | |
10561 | cat >conftest.$ac_ext <<_ACEOF | |
10562 | /* confdefs.h. */ | |
10563 | _ACEOF | |
10564 | cat confdefs.h >>conftest.$ac_ext | |
10565 | cat >>conftest.$ac_ext <<_ACEOF | |
10566 | /* end confdefs.h. */ | |
a64c9c13 | 10567 | |
a04eba3f TT |
10568 | #include <stdlib.h> |
10569 | #include <iconv.h> | |
10570 | extern | |
10571 | #ifdef __cplusplus | |
10572 | "C" | |
10573 | #endif | |
10574 | #if defined(__STDC__) || defined(__cplusplus) | |
10575 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
10576 | #else | |
10577 | size_t iconv(); | |
10578 | #endif | |
10579 | ||
b0cacab0 TT |
10580 | int |
10581 | main () | |
10582 | { | |
a04eba3f | 10583 | |
b0cacab0 TT |
10584 | ; |
10585 | return 0; | |
10586 | } | |
10587 | _ACEOF | |
10588 | rm -f conftest.$ac_objext | |
e1052144 TT |
10589 | if { (ac_try="$ac_compile" |
10590 | case "(($ac_try" in | |
10591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10592 | *) ac_try_echo=$ac_try;; | |
10593 | esac | |
39fd3d4f SJR |
10594 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10595 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 10596 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
10597 | ac_status=$? |
10598 | grep -v '^ *+' conftest.er1 >conftest.err | |
10599 | rm -f conftest.er1 | |
10600 | cat conftest.err >&5 | |
39fd3d4f | 10601 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
10602 | (exit $ac_status); } && { |
10603 | test -z "$ac_c_werror_flag" || | |
10604 | test ! -s conftest.err | |
10605 | } && test -s conftest.$ac_objext; then | |
a04eba3f | 10606 | am_cv_proto_iconv_arg1="" |
a64c9c13 | 10607 | else |
39fd3d4f | 10608 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
10609 | sed 's/^/| /' conftest.$ac_ext >&5 |
10610 | ||
e1052144 | 10611 | am_cv_proto_iconv_arg1="const" |
a64c9c13 | 10612 | fi |
e1052144 TT |
10613 | |
10614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a04eba3f | 10615 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
a64c9c13 | 10616 | fi |
a64c9c13 | 10617 | |
a04eba3f | 10618 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
39fd3d4f | 10619 | { $as_echo "$as_me:$LINENO: result: ${ac_t:- |
b0cacab0 | 10620 | }$am_cv_proto_iconv" >&5 |
39fd3d4f | 10621 | $as_echo "${ac_t:- |
e1052144 | 10622 | }$am_cv_proto_iconv" >&6; } |
b0cacab0 TT |
10623 | |
10624 | cat >>confdefs.h <<_ACEOF | |
a04eba3f | 10625 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
b0cacab0 | 10626 | _ACEOF |
a64c9c13 | 10627 | |
a04eba3f | 10628 | fi |
a64c9c13 | 10629 | |
b0cacab0 | 10630 | |
39fd3d4f SJR |
10631 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
10632 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
b0cacab0 | 10633 | if test "${am_cv_langinfo_codeset+set}" = set; then |
39fd3d4f | 10634 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 10635 | else |
b0cacab0 TT |
10636 | cat >conftest.$ac_ext <<_ACEOF |
10637 | /* confdefs.h. */ | |
10638 | _ACEOF | |
10639 | cat confdefs.h >>conftest.$ac_ext | |
10640 | cat >>conftest.$ac_ext <<_ACEOF | |
10641 | /* end confdefs.h. */ | |
a04eba3f | 10642 | #include <langinfo.h> |
b0cacab0 TT |
10643 | int |
10644 | main () | |
10645 | { | |
a04eba3f | 10646 | char* cs = nl_langinfo(CODESET); |
b0cacab0 TT |
10647 | ; |
10648 | return 0; | |
10649 | } | |
10650 | _ACEOF | |
10651 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
10652 | if { (ac_try="$ac_link" |
10653 | case "(($ac_try" in | |
10654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10655 | *) ac_try_echo=$ac_try;; | |
10656 | esac | |
39fd3d4f SJR |
10657 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10658 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 10659 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
10660 | ac_status=$? |
10661 | grep -v '^ *+' conftest.er1 >conftest.err | |
10662 | rm -f conftest.er1 | |
10663 | cat conftest.err >&5 | |
39fd3d4f | 10664 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
10665 | (exit $ac_status); } && { |
10666 | test -z "$ac_c_werror_flag" || | |
10667 | test ! -s conftest.err | |
39fd3d4f SJR |
10668 | } && test -s conftest$ac_exeext && { |
10669 | test "$cross_compiling" = yes || | |
10670 | $as_test_x conftest$ac_exeext | |
10671 | }; then | |
a04eba3f | 10672 | am_cv_langinfo_codeset=yes |
a64c9c13 | 10673 | else |
39fd3d4f | 10674 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
10675 | sed 's/^/| /' conftest.$ac_ext >&5 |
10676 | ||
e1052144 | 10677 | am_cv_langinfo_codeset=no |
07a0db15 | 10678 | fi |
e1052144 | 10679 | |
39fd3d4f | 10680 | rm -rf conftest.dSYM |
29a5deed | 10681 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 10682 | conftest$ac_exeext conftest.$ac_ext |
07a0db15 | 10683 | |
b0cacab0 | 10684 | fi |
39fd3d4f SJR |
10685 | { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
10686 | $as_echo "$am_cv_langinfo_codeset" >&6; } | |
93636bde | 10687 | if test $am_cv_langinfo_codeset = yes; then |
b0cacab0 TT |
10688 | |
10689 | cat >>confdefs.h <<\_ACEOF | |
a04eba3f | 10690 | #define HAVE_LANGINFO_CODESET 1 |
b0cacab0 | 10691 | _ACEOF |
a64c9c13 | 10692 | |
a04eba3f | 10693 | fi |
a64c9c13 | 10694 | |
a04eba3f | 10695 | if test $ac_cv_header_locale_h = yes; then |
b0cacab0 | 10696 | |
39fd3d4f SJR |
10697 | { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
10698 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
b0cacab0 | 10699 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
39fd3d4f | 10700 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
10701 | else |
10702 | cat >conftest.$ac_ext <<_ACEOF | |
10703 | /* confdefs.h. */ | |
10704 | _ACEOF | |
10705 | cat confdefs.h >>conftest.$ac_ext | |
10706 | cat >>conftest.$ac_ext <<_ACEOF | |
10707 | /* end confdefs.h. */ | |
a04eba3f | 10708 | #include <locale.h> |
b0cacab0 TT |
10709 | int |
10710 | main () | |
10711 | { | |
a04eba3f | 10712 | return LC_MESSAGES |
b0cacab0 TT |
10713 | ; |
10714 | return 0; | |
10715 | } | |
10716 | _ACEOF | |
10717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
10718 | if { (ac_try="$ac_link" |
10719 | case "(($ac_try" in | |
10720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10721 | *) ac_try_echo=$ac_try;; | |
10722 | esac | |
39fd3d4f SJR |
10723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10724 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 10725 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
10726 | ac_status=$? |
10727 | grep -v '^ *+' conftest.er1 >conftest.err | |
10728 | rm -f conftest.er1 | |
10729 | cat conftest.err >&5 | |
39fd3d4f | 10730 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
10731 | (exit $ac_status); } && { |
10732 | test -z "$ac_c_werror_flag" || | |
10733 | test ! -s conftest.err | |
39fd3d4f SJR |
10734 | } && test -s conftest$ac_exeext && { |
10735 | test "$cross_compiling" = yes || | |
10736 | $as_test_x conftest$ac_exeext | |
10737 | }; then | |
a04eba3f | 10738 | am_cv_val_LC_MESSAGES=yes |
a64c9c13 | 10739 | else |
39fd3d4f | 10740 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
10741 | sed 's/^/| /' conftest.$ac_ext >&5 |
10742 | ||
e1052144 | 10743 | am_cv_val_LC_MESSAGES=no |
a64c9c13 | 10744 | fi |
e1052144 | 10745 | |
39fd3d4f | 10746 | rm -rf conftest.dSYM |
29a5deed | 10747 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 10748 | conftest$ac_exeext conftest.$ac_ext |
a64c9c13 | 10749 | fi |
39fd3d4f SJR |
10750 | { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
10751 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
93636bde | 10752 | if test $am_cv_val_LC_MESSAGES = yes; then |
b0cacab0 TT |
10753 | |
10754 | cat >>confdefs.h <<\_ACEOF | |
a04eba3f | 10755 | #define HAVE_LC_MESSAGES 1 |
b0cacab0 | 10756 | _ACEOF |
a64c9c13 | 10757 | |
a04eba3f | 10758 | fi |
a64c9c13 | 10759 | |
a04eba3f | 10760 | fi |
a64c9c13 | 10761 | |
a04eba3f TT |
10762 | for ac_prog in bison |
10763 | do | |
b0cacab0 | 10764 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a04eba3f | 10765 | set dummy $ac_prog; ac_word=$2 |
39fd3d4f SJR |
10766 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10767 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 10768 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
39fd3d4f | 10769 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 10770 | else |
a04eba3f TT |
10771 | if test -n "$INTLBISON"; then |
10772 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
f8bd9807 | 10773 | else |
b0cacab0 TT |
10774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10775 | for as_dir in $PATH | |
10776 | do | |
10777 | IFS=$as_save_IFS | |
10778 | test -z "$as_dir" && as_dir=. | |
10779 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 10780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 10781 | ac_cv_prog_INTLBISON="$ac_prog" |
39fd3d4f | 10782 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
10783 | break 2 |
10784 | fi | |
10785 | done | |
10786 | done | |
e1052144 | 10787 | IFS=$as_save_IFS |
b0cacab0 | 10788 | |
f8bd9807 | 10789 | fi |
a04eba3f | 10790 | fi |
b0cacab0 | 10791 | INTLBISON=$ac_cv_prog_INTLBISON |
a04eba3f | 10792 | if test -n "$INTLBISON"; then |
39fd3d4f SJR |
10793 | { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
10794 | $as_echo "$INTLBISON" >&6; } | |
f8bd9807 | 10795 | else |
39fd3d4f SJR |
10796 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10797 | $as_echo "no" >&6; } | |
f8bd9807 | 10798 | fi |
f8bd9807 | 10799 | |
e1052144 | 10800 | |
b0cacab0 | 10801 | test -n "$INTLBISON" && break |
a04eba3f TT |
10802 | done |
10803 | ||
10804 | if test -z "$INTLBISON"; then | |
10805 | ac_verc_fail=yes | |
10806 | else | |
39fd3d4f SJR |
10807 | { $as_echo "$as_me:$LINENO: checking version of bison" >&5 |
10808 | $as_echo_n "checking version of bison... " >&6; } | |
a04eba3f TT |
10809 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
10810 | case $ac_prog_version in | |
10811 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
10812 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
10813 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
10814 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
10815 | esac | |
39fd3d4f SJR |
10816 | { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
10817 | $as_echo "$ac_prog_version" >&6; } | |
a04eba3f TT |
10818 | fi |
10819 | if test $ac_verc_fail = yes; then | |
10820 | INTLBISON=: | |
10821 | fi | |
a64c9c13 | 10822 | |
93636bde | 10823 | |
93636bde | 10824 | |
93636bde | 10825 | |
93636bde | 10826 | |
93636bde | 10827 | |
b0cacab0 TT |
10828 | |
10829 | ||
10830 | ||
10831 | ||
10832 | ||
10833 | ||
10834 | ||
10835 | ||
10836 | ||
10837 | ||
39fd3d4f SJR |
10838 | { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
10839 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
e1052144 | 10840 | # Check whether --enable-nls was given. |
a04eba3f | 10841 | if test "${enable_nls+set}" = set; then |
e1052144 | 10842 | enableval=$enable_nls; USE_NLS=$enableval |
a04eba3f TT |
10843 | else |
10844 | USE_NLS=yes | |
e1052144 TT |
10845 | fi |
10846 | ||
39fd3d4f SJR |
10847 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
10848 | $as_echo "$USE_NLS" >&6; } | |
b0cacab0 TT |
10849 | |
10850 | ||
a64c9c13 | 10851 | |
93636bde | 10852 | |
a04eba3f TT |
10853 | BUILD_INCLUDED_LIBINTL=no |
10854 | USE_INCLUDED_LIBINTL=no | |
b0cacab0 | 10855 | |
a04eba3f TT |
10856 | LIBINTL= |
10857 | LTLIBINTL= | |
10858 | POSUB= | |
a64c9c13 | 10859 | |
a04eba3f TT |
10860 | if test "$USE_NLS" = "yes"; then |
10861 | gt_use_preinstalled_gnugettext=no | |
b0cacab0 | 10862 | |
39fd3d4f SJR |
10863 | { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
10864 | $as_echo_n "checking whether included gettext is requested... " >&6; } | |
b0cacab0 | 10865 | |
e1052144 | 10866 | # Check whether --with-included-gettext was given. |
a04eba3f | 10867 | if test "${with_included_gettext+set}" = set; then |
e1052144 | 10868 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
a04eba3f TT |
10869 | else |
10870 | nls_cv_force_use_gnu_gettext=no | |
e1052144 TT |
10871 | fi |
10872 | ||
39fd3d4f SJR |
10873 | { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
10874 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } | |
a04eba3f TT |
10875 | |
10876 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
10877 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
b0cacab0 TT |
10878 | |
10879 | ||
10880 | ||
10881 | ||
10882 | ||
10883 | ||
39fd3d4f SJR |
10884 | { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
10885 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | |
b0cacab0 | 10886 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
39fd3d4f | 10887 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
10888 | else |
10889 | cat >conftest.$ac_ext <<_ACEOF | |
10890 | /* confdefs.h. */ | |
10891 | _ACEOF | |
10892 | cat confdefs.h >>conftest.$ac_ext | |
10893 | cat >>conftest.$ac_ext <<_ACEOF | |
10894 | /* end confdefs.h. */ | |
a04eba3f TT |
10895 | #include <libintl.h> |
10896 | extern int _nl_msg_cat_cntr; | |
10897 | extern int *_nl_domain_bindings; | |
b0cacab0 TT |
10898 | int |
10899 | main () | |
10900 | { | |
a04eba3f TT |
10901 | bindtextdomain ("", ""); |
10902 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings | |
b0cacab0 TT |
10903 | ; |
10904 | return 0; | |
10905 | } | |
10906 | _ACEOF | |
10907 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
10908 | if { (ac_try="$ac_link" |
10909 | case "(($ac_try" in | |
10910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10911 | *) ac_try_echo=$ac_try;; | |
10912 | esac | |
39fd3d4f SJR |
10913 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10914 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 10915 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
10916 | ac_status=$? |
10917 | grep -v '^ *+' conftest.er1 >conftest.err | |
10918 | rm -f conftest.er1 | |
10919 | cat conftest.err >&5 | |
39fd3d4f | 10920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
10921 | (exit $ac_status); } && { |
10922 | test -z "$ac_c_werror_flag" || | |
10923 | test ! -s conftest.err | |
39fd3d4f SJR |
10924 | } && test -s conftest$ac_exeext && { |
10925 | test "$cross_compiling" = yes || | |
10926 | $as_test_x conftest$ac_exeext | |
10927 | }; then | |
a04eba3f | 10928 | gt_cv_func_gnugettext1_libc=yes |
f8bd9807 | 10929 | else |
39fd3d4f | 10930 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
10931 | sed 's/^/| /' conftest.$ac_ext >&5 |
10932 | ||
e1052144 | 10933 | gt_cv_func_gnugettext1_libc=no |
f8bd9807 | 10934 | fi |
e1052144 | 10935 | |
39fd3d4f | 10936 | rm -rf conftest.dSYM |
29a5deed | 10937 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 10938 | conftest$ac_exeext conftest.$ac_ext |
f8bd9807 | 10939 | fi |
39fd3d4f SJR |
10940 | { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
10941 | $as_echo "$gt_cv_func_gnugettext1_libc" >&6; } | |
07a0db15 | 10942 | |
93636bde | 10943 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
b0cacab0 TT |
10944 | |
10945 | ||
10946 | ||
a04eba3f | 10947 | use_additional=yes |
b0cacab0 | 10948 | |
a04eba3f TT |
10949 | acl_save_prefix="$prefix" |
10950 | prefix="$acl_final_prefix" | |
10951 | acl_save_exec_prefix="$exec_prefix" | |
10952 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 10953 | |
a04eba3f TT |
10954 | eval additional_includedir=\"$includedir\" |
10955 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 10956 | |
a04eba3f TT |
10957 | exec_prefix="$acl_save_exec_prefix" |
10958 | prefix="$acl_save_prefix" | |
10959 | ||
b0cacab0 | 10960 | |
e1052144 | 10961 | # Check whether --with-libintl-prefix was given. |
a04eba3f | 10962 | if test "${with_libintl_prefix+set}" = set; then |
e1052144 | 10963 | withval=$with_libintl_prefix; |
a04eba3f TT |
10964 | if test "X$withval" = "Xno"; then |
10965 | use_additional=no | |
10966 | else | |
10967 | if test "X$withval" = "X"; then | |
b0cacab0 | 10968 | |
a04eba3f TT |
10969 | acl_save_prefix="$prefix" |
10970 | prefix="$acl_final_prefix" | |
10971 | acl_save_exec_prefix="$exec_prefix" | |
10972 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 10973 | |
a04eba3f TT |
10974 | eval additional_includedir=\"$includedir\" |
10975 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 10976 | |
a04eba3f TT |
10977 | exec_prefix="$acl_save_exec_prefix" |
10978 | prefix="$acl_save_prefix" | |
10979 | ||
10980 | else | |
10981 | additional_includedir="$withval/include" | |
10982 | additional_libdir="$withval/lib" | |
10983 | fi | |
10984 | fi | |
10985 | ||
e1052144 TT |
10986 | fi |
10987 | ||
a04eba3f TT |
10988 | LIBINTL= |
10989 | LTLIBINTL= | |
10990 | INCINTL= | |
10991 | rpathdirs= | |
10992 | ltrpathdirs= | |
10993 | names_already_handled= | |
10994 | names_next_round='intl ' | |
10995 | while test -n "$names_next_round"; do | |
10996 | names_this_round="$names_next_round" | |
10997 | names_next_round= | |
10998 | for name in $names_this_round; do | |
10999 | already_handled= | |
11000 | for n in $names_already_handled; do | |
11001 | if test "$n" = "$name"; then | |
11002 | already_handled=yes | |
11003 | break | |
11004 | fi | |
11005 | done | |
11006 | if test -z "$already_handled"; then | |
11007 | names_already_handled="$names_already_handled $name" | |
11008 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
11009 | eval value=\"\$HAVE_LIB$uppername\" | |
11010 | if test -n "$value"; then | |
11011 | if test "$value" = yes; then | |
11012 | eval value=\"\$LIB$uppername\" | |
11013 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
11014 | eval value=\"\$LTLIB$uppername\" | |
11015 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
11016 | else | |
11017 | : | |
11018 | fi | |
11019 | else | |
11020 | found_dir= | |
11021 | found_la= | |
11022 | found_so= | |
11023 | found_a= | |
11024 | if test $use_additional = yes; then | |
11025 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
11026 | found_dir="$additional_libdir" | |
11027 | found_so="$additional_libdir/lib$name.$shlibext" | |
11028 | if test -f "$additional_libdir/lib$name.la"; then | |
11029 | found_la="$additional_libdir/lib$name.la" | |
11030 | fi | |
11031 | else | |
11032 | if test -f "$additional_libdir/lib$name.$libext"; then | |
11033 | found_dir="$additional_libdir" | |
11034 | found_a="$additional_libdir/lib$name.$libext" | |
11035 | if test -f "$additional_libdir/lib$name.la"; then | |
11036 | found_la="$additional_libdir/lib$name.la" | |
11037 | fi | |
11038 | fi | |
11039 | fi | |
11040 | fi | |
11041 | if test "X$found_dir" = "X"; then | |
11042 | for x in $LDFLAGS $LTLIBINTL; do | |
b0cacab0 | 11043 | |
a04eba3f TT |
11044 | acl_save_prefix="$prefix" |
11045 | prefix="$acl_final_prefix" | |
11046 | acl_save_exec_prefix="$exec_prefix" | |
11047 | exec_prefix="$acl_final_exec_prefix" | |
11048 | eval x=\"$x\" | |
11049 | exec_prefix="$acl_save_exec_prefix" | |
11050 | prefix="$acl_save_prefix" | |
11051 | ||
11052 | case "$x" in | |
11053 | -L*) | |
11054 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
11055 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
11056 | found_dir="$dir" | |
11057 | found_so="$dir/lib$name.$shlibext" | |
11058 | if test -f "$dir/lib$name.la"; then | |
11059 | found_la="$dir/lib$name.la" | |
11060 | fi | |
11061 | else | |
11062 | if test -f "$dir/lib$name.$libext"; then | |
11063 | found_dir="$dir" | |
11064 | found_a="$dir/lib$name.$libext" | |
11065 | if test -f "$dir/lib$name.la"; then | |
11066 | found_la="$dir/lib$name.la" | |
11067 | fi | |
11068 | fi | |
11069 | fi | |
11070 | ;; | |
11071 | esac | |
11072 | if test "X$found_dir" != "X"; then | |
11073 | break | |
11074 | fi | |
11075 | done | |
11076 | fi | |
11077 | if test "X$found_dir" != "X"; then | |
11078 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
11079 | if test "X$found_so" != "X"; then | |
11080 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
11081 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
11082 | else | |
11083 | haveit= | |
11084 | for x in $ltrpathdirs; do | |
11085 | if test "X$x" = "X$found_dir"; then | |
11086 | haveit=yes | |
11087 | break | |
11088 | fi | |
11089 | done | |
11090 | if test -z "$haveit"; then | |
11091 | ltrpathdirs="$ltrpathdirs $found_dir" | |
11092 | fi | |
11093 | if test "$hardcode_direct" = yes; then | |
11094 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
11095 | else | |
11096 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
11097 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
11098 | haveit= | |
11099 | for x in $rpathdirs; do | |
11100 | if test "X$x" = "X$found_dir"; then | |
11101 | haveit=yes | |
11102 | break | |
11103 | fi | |
11104 | done | |
11105 | if test -z "$haveit"; then | |
11106 | rpathdirs="$rpathdirs $found_dir" | |
11107 | fi | |
11108 | else | |
11109 | haveit= | |
11110 | for x in $LDFLAGS $LIBINTL; do | |
b0cacab0 | 11111 | |
a04eba3f TT |
11112 | acl_save_prefix="$prefix" |
11113 | prefix="$acl_final_prefix" | |
11114 | acl_save_exec_prefix="$exec_prefix" | |
11115 | exec_prefix="$acl_final_exec_prefix" | |
11116 | eval x=\"$x\" | |
11117 | exec_prefix="$acl_save_exec_prefix" | |
11118 | prefix="$acl_save_prefix" | |
11119 | ||
11120 | if test "X$x" = "X-L$found_dir"; then | |
11121 | haveit=yes | |
11122 | break | |
11123 | fi | |
11124 | done | |
11125 | if test -z "$haveit"; then | |
11126 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
11127 | fi | |
11128 | if test "$hardcode_minus_L" != no; then | |
11129 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
11130 | else | |
11131 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
11132 | fi | |
11133 | fi | |
11134 | fi | |
11135 | fi | |
11136 | else | |
11137 | if test "X$found_a" != "X"; then | |
11138 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
11139 | else | |
11140 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
11141 | fi | |
11142 | fi | |
11143 | additional_includedir= | |
11144 | case "$found_dir" in | |
11145 | */lib | */lib/) | |
11146 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
11147 | additional_includedir="$basedir/include" | |
11148 | ;; | |
11149 | esac | |
11150 | if test "X$additional_includedir" != "X"; then | |
11151 | if test "X$additional_includedir" != "X/usr/include"; then | |
11152 | haveit= | |
11153 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
11154 | if test -n "$GCC"; then | |
11155 | case $host_os in | |
11156 | linux*) haveit=yes;; | |
11157 | esac | |
11158 | fi | |
11159 | fi | |
11160 | if test -z "$haveit"; then | |
11161 | for x in $CPPFLAGS $INCINTL; do | |
b0cacab0 | 11162 | |
a04eba3f TT |
11163 | acl_save_prefix="$prefix" |
11164 | prefix="$acl_final_prefix" | |
11165 | acl_save_exec_prefix="$exec_prefix" | |
11166 | exec_prefix="$acl_final_exec_prefix" | |
11167 | eval x=\"$x\" | |
11168 | exec_prefix="$acl_save_exec_prefix" | |
11169 | prefix="$acl_save_prefix" | |
11170 | ||
11171 | if test "X$x" = "X-I$additional_includedir"; then | |
11172 | haveit=yes | |
11173 | break | |
11174 | fi | |
11175 | done | |
11176 | if test -z "$haveit"; then | |
11177 | if test -d "$additional_includedir"; then | |
11178 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
11179 | fi | |
11180 | fi | |
11181 | fi | |
11182 | fi | |
11183 | fi | |
11184 | if test -n "$found_la"; then | |
11185 | save_libdir="$libdir" | |
11186 | case "$found_la" in | |
11187 | */* | *\\*) . "$found_la" ;; | |
11188 | *) . "./$found_la" ;; | |
11189 | esac | |
11190 | libdir="$save_libdir" | |
11191 | for dep in $dependency_libs; do | |
11192 | case "$dep" in | |
11193 | -L*) | |
11194 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
11195 | if test "X$additional_libdir" != "X/usr/lib"; then | |
11196 | haveit= | |
11197 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
11198 | if test -n "$GCC"; then | |
11199 | case $host_os in | |
11200 | linux*) haveit=yes;; | |
11201 | esac | |
11202 | fi | |
11203 | fi | |
11204 | if test -z "$haveit"; then | |
11205 | haveit= | |
11206 | for x in $LDFLAGS $LIBINTL; do | |
b0cacab0 | 11207 | |
a04eba3f TT |
11208 | acl_save_prefix="$prefix" |
11209 | prefix="$acl_final_prefix" | |
11210 | acl_save_exec_prefix="$exec_prefix" | |
11211 | exec_prefix="$acl_final_exec_prefix" | |
11212 | eval x=\"$x\" | |
11213 | exec_prefix="$acl_save_exec_prefix" | |
11214 | prefix="$acl_save_prefix" | |
11215 | ||
11216 | if test "X$x" = "X-L$additional_libdir"; then | |
11217 | haveit=yes | |
11218 | break | |
11219 | fi | |
11220 | done | |
11221 | if test -z "$haveit"; then | |
11222 | if test -d "$additional_libdir"; then | |
11223 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
11224 | fi | |
11225 | fi | |
11226 | haveit= | |
11227 | for x in $LDFLAGS $LTLIBINTL; do | |
b0cacab0 | 11228 | |
a04eba3f TT |
11229 | acl_save_prefix="$prefix" |
11230 | prefix="$acl_final_prefix" | |
11231 | acl_save_exec_prefix="$exec_prefix" | |
11232 | exec_prefix="$acl_final_exec_prefix" | |
11233 | eval x=\"$x\" | |
11234 | exec_prefix="$acl_save_exec_prefix" | |
11235 | prefix="$acl_save_prefix" | |
11236 | ||
11237 | if test "X$x" = "X-L$additional_libdir"; then | |
11238 | haveit=yes | |
11239 | break | |
11240 | fi | |
11241 | done | |
11242 | if test -z "$haveit"; then | |
11243 | if test -d "$additional_libdir"; then | |
11244 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
11245 | fi | |
11246 | fi | |
11247 | fi | |
11248 | fi | |
11249 | ;; | |
11250 | -R*) | |
11251 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
11252 | if test "$enable_rpath" != no; then | |
11253 | haveit= | |
11254 | for x in $rpathdirs; do | |
11255 | if test "X$x" = "X$dir"; then | |
11256 | haveit=yes | |
11257 | break | |
11258 | fi | |
11259 | done | |
11260 | if test -z "$haveit"; then | |
11261 | rpathdirs="$rpathdirs $dir" | |
11262 | fi | |
11263 | haveit= | |
11264 | for x in $ltrpathdirs; do | |
11265 | if test "X$x" = "X$dir"; then | |
11266 | haveit=yes | |
11267 | break | |
11268 | fi | |
11269 | done | |
11270 | if test -z "$haveit"; then | |
11271 | ltrpathdirs="$ltrpathdirs $dir" | |
11272 | fi | |
11273 | fi | |
11274 | ;; | |
11275 | -l*) | |
11276 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
11277 | ;; | |
11278 | *.la) | |
11279 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
11280 | ;; | |
11281 | *) | |
11282 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
11283 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
11284 | ;; | |
11285 | esac | |
11286 | done | |
11287 | fi | |
11288 | else | |
11289 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
11290 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
11291 | fi | |
11292 | fi | |
11293 | fi | |
11294 | done | |
11295 | done | |
11296 | if test "X$rpathdirs" != "X"; then | |
11297 | if test -n "$hardcode_libdir_separator"; then | |
11298 | alldirs= | |
11299 | for found_dir in $rpathdirs; do | |
11300 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
11301 | done | |
11302 | acl_save_libdir="$libdir" | |
11303 | libdir="$alldirs" | |
11304 | eval flag=\"$hardcode_libdir_flag_spec\" | |
11305 | libdir="$acl_save_libdir" | |
11306 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
11307 | else | |
11308 | for found_dir in $rpathdirs; do | |
11309 | acl_save_libdir="$libdir" | |
11310 | libdir="$found_dir" | |
11311 | eval flag=\"$hardcode_libdir_flag_spec\" | |
11312 | libdir="$acl_save_libdir" | |
11313 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
11314 | done | |
11315 | fi | |
11316 | fi | |
11317 | if test "X$ltrpathdirs" != "X"; then | |
11318 | for found_dir in $ltrpathdirs; do | |
11319 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
11320 | done | |
11321 | fi | |
11322 | ||
39fd3d4f SJR |
11323 | { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
11324 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
b0cacab0 | 11325 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
39fd3d4f | 11326 | $as_echo_n "(cached) " >&6 |
f8bd9807 | 11327 | else |
a04eba3f TT |
11328 | gt_save_CPPFLAGS="$CPPFLAGS" |
11329 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
11330 | gt_save_LIBS="$LIBS" | |
11331 | LIBS="$LIBS $LIBINTL" | |
b0cacab0 TT |
11332 | cat >conftest.$ac_ext <<_ACEOF |
11333 | /* confdefs.h. */ | |
11334 | _ACEOF | |
11335 | cat confdefs.h >>conftest.$ac_ext | |
11336 | cat >>conftest.$ac_ext <<_ACEOF | |
11337 | /* end confdefs.h. */ | |
a04eba3f TT |
11338 | #include <libintl.h> |
11339 | extern int _nl_msg_cat_cntr; | |
11340 | extern | |
11341 | #ifdef __cplusplus | |
11342 | "C" | |
11343 | #endif | |
11344 | const char *_nl_expand_alias (); | |
b0cacab0 TT |
11345 | int |
11346 | main () | |
11347 | { | |
a04eba3f TT |
11348 | bindtextdomain ("", ""); |
11349 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
b0cacab0 TT |
11350 | ; |
11351 | return 0; | |
11352 | } | |
11353 | _ACEOF | |
11354 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
11355 | if { (ac_try="$ac_link" |
11356 | case "(($ac_try" in | |
11357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11358 | *) ac_try_echo=$ac_try;; | |
11359 | esac | |
39fd3d4f SJR |
11360 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11361 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 11362 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
11363 | ac_status=$? |
11364 | grep -v '^ *+' conftest.er1 >conftest.err | |
11365 | rm -f conftest.er1 | |
11366 | cat conftest.err >&5 | |
39fd3d4f | 11367 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
11368 | (exit $ac_status); } && { |
11369 | test -z "$ac_c_werror_flag" || | |
11370 | test ! -s conftest.err | |
39fd3d4f SJR |
11371 | } && test -s conftest$ac_exeext && { |
11372 | test "$cross_compiling" = yes || | |
11373 | $as_test_x conftest$ac_exeext | |
11374 | }; then | |
a04eba3f TT |
11375 | gt_cv_func_gnugettext1_libintl=yes |
11376 | else | |
39fd3d4f | 11377 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
11378 | sed 's/^/| /' conftest.$ac_ext >&5 |
11379 | ||
e1052144 | 11380 | gt_cv_func_gnugettext1_libintl=no |
a04eba3f | 11381 | fi |
e1052144 | 11382 | |
39fd3d4f | 11383 | rm -rf conftest.dSYM |
29a5deed | 11384 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 11385 | conftest$ac_exeext conftest.$ac_ext |
a04eba3f TT |
11386 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
11387 | LIBS="$LIBS $LIBICONV" | |
b0cacab0 TT |
11388 | cat >conftest.$ac_ext <<_ACEOF |
11389 | /* confdefs.h. */ | |
11390 | _ACEOF | |
11391 | cat confdefs.h >>conftest.$ac_ext | |
11392 | cat >>conftest.$ac_ext <<_ACEOF | |
11393 | /* end confdefs.h. */ | |
a04eba3f TT |
11394 | #include <libintl.h> |
11395 | extern int _nl_msg_cat_cntr; | |
11396 | extern | |
11397 | #ifdef __cplusplus | |
11398 | "C" | |
11399 | #endif | |
11400 | const char *_nl_expand_alias (); | |
b0cacab0 TT |
11401 | int |
11402 | main () | |
11403 | { | |
a04eba3f TT |
11404 | bindtextdomain ("", ""); |
11405 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
b0cacab0 TT |
11406 | ; |
11407 | return 0; | |
11408 | } | |
11409 | _ACEOF | |
11410 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
11411 | if { (ac_try="$ac_link" |
11412 | case "(($ac_try" in | |
11413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11414 | *) ac_try_echo=$ac_try;; | |
11415 | esac | |
39fd3d4f SJR |
11416 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11417 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 11418 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
11419 | ac_status=$? |
11420 | grep -v '^ *+' conftest.er1 >conftest.err | |
11421 | rm -f conftest.er1 | |
11422 | cat conftest.err >&5 | |
39fd3d4f | 11423 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
11424 | (exit $ac_status); } && { |
11425 | test -z "$ac_c_werror_flag" || | |
11426 | test ! -s conftest.err | |
39fd3d4f SJR |
11427 | } && test -s conftest$ac_exeext && { |
11428 | test "$cross_compiling" = yes || | |
11429 | $as_test_x conftest$ac_exeext | |
11430 | }; then | |
a04eba3f TT |
11431 | LIBINTL="$LIBINTL $LIBICONV" |
11432 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
11433 | gt_cv_func_gnugettext1_libintl=yes | |
b0cacab0 | 11434 | |
a04eba3f | 11435 | else |
39fd3d4f | 11436 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
11437 | sed 's/^/| /' conftest.$ac_ext >&5 |
11438 | ||
e1052144 | 11439 | |
a04eba3f | 11440 | fi |
e1052144 | 11441 | |
39fd3d4f | 11442 | rm -rf conftest.dSYM |
29a5deed | 11443 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 11444 | conftest$ac_exeext conftest.$ac_ext |
a04eba3f TT |
11445 | fi |
11446 | CPPFLAGS="$gt_save_CPPFLAGS" | |
11447 | LIBS="$gt_save_LIBS" | |
a64c9c13 | 11448 | fi |
39fd3d4f SJR |
11449 | { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
11450 | $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } | |
a04eba3f | 11451 | fi |
a64c9c13 | 11452 | |
a04eba3f TT |
11453 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
11454 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ | |
b0cacab0 TT |
11455 | && test "$PACKAGE" != gettext-runtime \ |
11456 | && test "$PACKAGE" != gettext-tools; }; then | |
a04eba3f TT |
11457 | gt_use_preinstalled_gnugettext=yes |
11458 | else | |
11459 | LIBINTL= | |
11460 | LTLIBINTL= | |
11461 | INCINTL= | |
11462 | fi | |
a64c9c13 | 11463 | |
b0cacab0 | 11464 | |
a04eba3f TT |
11465 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
11466 | nls_cv_use_gnu_gettext=yes | |
11467 | fi | |
11468 | fi | |
a64c9c13 | 11469 | |
a04eba3f | 11470 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
b0cacab0 | 11471 | BUILD_INCLUDED_LIBINTL=yes |
a04eba3f TT |
11472 | USE_INCLUDED_LIBINTL=yes |
11473 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" | |
11474 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" | |
11475 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
11476 | fi | |
a64c9c13 | 11477 | |
a04eba3f TT |
11478 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
11479 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
11480 | CATOBJEXT=.gmo | |
11481 | fi | |
b0cacab0 | 11482 | |
a04eba3f TT |
11483 | |
11484 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
11485 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
b0cacab0 TT |
11486 | |
11487 | cat >>confdefs.h <<\_ACEOF | |
a04eba3f | 11488 | #define ENABLE_NLS 1 |
b0cacab0 | 11489 | _ACEOF |
a04eba3f TT |
11490 | |
11491 | else | |
11492 | USE_NLS=no | |
11493 | fi | |
11494 | fi | |
11495 | ||
39fd3d4f SJR |
11496 | { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
11497 | $as_echo_n "checking whether to use NLS... " >&6; } | |
11498 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
11499 | $as_echo "$USE_NLS" >&6; } | |
b0cacab0 | 11500 | if test "$USE_NLS" = "yes"; then |
39fd3d4f SJR |
11501 | { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
11502 | $as_echo_n "checking where the gettext function comes from... " >&6; } | |
b0cacab0 TT |
11503 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
11504 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then | |
11505 | gt_source="external libintl" | |
11506 | else | |
11507 | gt_source="libc" | |
11508 | fi | |
11509 | else | |
11510 | gt_source="included intl directory" | |
11511 | fi | |
39fd3d4f SJR |
11512 | { $as_echo "$as_me:$LINENO: result: $gt_source" >&5 |
11513 | $as_echo "$gt_source" >&6; } | |
b0cacab0 TT |
11514 | fi |
11515 | ||
a04eba3f TT |
11516 | if test "$USE_NLS" = "yes"; then |
11517 | ||
11518 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
11519 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then | |
39fd3d4f SJR |
11520 | { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
11521 | $as_echo_n "checking how to link with libintl... " >&6; } | |
11522 | { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5 | |
11523 | $as_echo "$LIBINTL" >&6; } | |
b0cacab0 | 11524 | |
a04eba3f TT |
11525 | for element in $INCINTL; do |
11526 | haveit= | |
11527 | for x in $CPPFLAGS; do | |
b0cacab0 | 11528 | |
a04eba3f TT |
11529 | acl_save_prefix="$prefix" |
11530 | prefix="$acl_final_prefix" | |
11531 | acl_save_exec_prefix="$exec_prefix" | |
11532 | exec_prefix="$acl_final_exec_prefix" | |
11533 | eval x=\"$x\" | |
11534 | exec_prefix="$acl_save_exec_prefix" | |
11535 | prefix="$acl_save_prefix" | |
11536 | ||
11537 | if test "X$x" = "X$element"; then | |
11538 | haveit=yes | |
11539 | break | |
11540 | fi | |
11541 | done | |
11542 | if test -z "$haveit"; then | |
11543 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
11544 | fi | |
11545 | done | |
11546 | ||
11547 | fi | |
11548 | ||
b0cacab0 TT |
11549 | |
11550 | cat >>confdefs.h <<\_ACEOF | |
a04eba3f | 11551 | #define HAVE_GETTEXT 1 |
b0cacab0 TT |
11552 | _ACEOF |
11553 | ||
a04eba3f | 11554 | |
b0cacab0 | 11555 | cat >>confdefs.h <<\_ACEOF |
a04eba3f | 11556 | #define HAVE_DCGETTEXT 1 |
b0cacab0 | 11557 | _ACEOF |
a04eba3f TT |
11558 | |
11559 | fi | |
11560 | ||
11561 | POSUB=po | |
11562 | fi | |
11563 | ||
b0cacab0 TT |
11564 | |
11565 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then | |
a04eba3f TT |
11566 | BUILD_INCLUDED_LIBINTL=yes |
11567 | fi | |
11568 | ||
b0cacab0 TT |
11569 | |
11570 | ||
11571 | ||
93636bde | 11572 | |
a04eba3f TT |
11573 | nls_cv_header_intl= |
11574 | nls_cv_header_libgt= | |
11575 | ||
11576 | DATADIRNAME=share | |
b0cacab0 | 11577 | |
a04eba3f TT |
11578 | |
11579 | INSTOBJEXT=.mo | |
b0cacab0 | 11580 | |
a04eba3f TT |
11581 | |
11582 | GENCAT=gencat | |
b0cacab0 TT |
11583 | |
11584 | ||
11585 | if test "$USE_INCLUDED_LIBINTL" = yes; then | |
11586 | INTLOBJS="\$(GETTOBJS)" | |
11587 | fi | |
11588 | ||
a04eba3f TT |
11589 | |
11590 | INTL_LIBTOOL_SUFFIX_PREFIX= | |
b0cacab0 TT |
11591 | |
11592 | ||
a04eba3f TT |
11593 | |
11594 | INTLLIBS="$LIBINTL" | |
93636bde | 11595 | |
a64c9c13 | 11596 | |
93636bde | 11597 | |
b0cacab0 TT |
11598 | |
11599 | ||
11600 | ||
11601 | ||
39fd3d4f SJR |
11602 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
11603 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
11604 | set x ${MAKE-make} | |
11605 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
e1052144 | 11606 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 11607 | $as_echo_n "(cached) " >&6 |
50e1e10f | 11608 | else |
b0cacab0 | 11609 | cat >conftest.make <<\_ACEOF |
e1052144 | 11610 | SHELL = /bin/sh |
50e1e10f | 11611 | all: |
e1052144 | 11612 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
b0cacab0 | 11613 | _ACEOF |
50e1e10f | 11614 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e1052144 TT |
11615 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
11616 | *@@@%%%=?*=@@@%%%*) | |
11617 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
11618 | *) | |
11619 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
11620 | esac | |
b0cacab0 | 11621 | rm -f conftest.make |
50e1e10f | 11622 | fi |
e1052144 | 11623 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
39fd3d4f SJR |
11624 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
11625 | $as_echo "yes" >&6; } | |
50e1e10f TT |
11626 | SET_MAKE= |
11627 | else | |
39fd3d4f SJR |
11628 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11629 | $as_echo "no" >&6; } | |
50e1e10f TT |
11630 | SET_MAKE="MAKE=${MAKE-make}" |
11631 | fi | |
11632 | ||
bcb915b0 TT |
11633 | { $as_echo "$as_me:$LINENO: checking for GNU make" >&5 |
11634 | $as_echo_n "checking for GNU make... " >&6; } | |
11635 | if test "${_cv_gnu_make_command+set}" = set; then | |
11636 | $as_echo_n "(cached) " >&6 | |
11637 | else | |
11638 | _cv_gnu_make_command='' ; | |
11639 | for a in "$MAKE" make gmake gnumake ; do | |
11640 | if test -z "$a" ; then continue ; fi ; | |
11641 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
11642 | _cv_gnu_make_command=$a ; | |
11643 | break; | |
11644 | fi | |
11645 | done ; | |
11646 | ||
11647 | fi | |
11648 | { $as_echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5 | |
11649 | $as_echo "$_cv_gnu_make_command" >&6; } ; | |
11650 | if test "x$_cv_gnu_make_command" != "x" ; then | |
11651 | ifGNUmake='' ; | |
11652 | ifNotGNUmake='#' ; | |
11653 | else | |
11654 | ifGNUmake='#' ; | |
11655 | ifNotGNUmake='' ; | |
11656 | { $as_echo "$as_me:$LINENO: result: \"Not found\"" >&5 | |
11657 | $as_echo "\"Not found\"" >&6; }; | |
11658 | fi | |
11659 | ||
11660 | ||
11661 | ||
50e1e10f TT |
11662 | # Extract the first word of "ln", so it can be a program name with args. |
11663 | set dummy ln; ac_word=$2 | |
39fd3d4f SJR |
11664 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11665 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 11666 | if test "${ac_cv_path_LN+set}" = set; then |
39fd3d4f | 11667 | $as_echo_n "(cached) " >&6 |
50e1e10f | 11668 | else |
b0cacab0 TT |
11669 | case $LN in |
11670 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
11671 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
11672 | ;; | |
11673 | *) | |
b0cacab0 TT |
11674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11675 | for as_dir in $PATH | |
11676 | do | |
11677 | IFS=$as_save_IFS | |
11678 | test -z "$as_dir" && as_dir=. | |
11679 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 11681 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
39fd3d4f | 11682 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
11683 | break 2 |
11684 | fi | |
11685 | done | |
11686 | done | |
e1052144 | 11687 | IFS=$as_save_IFS |
b0cacab0 | 11688 | |
50e1e10f TT |
11689 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
11690 | ;; | |
11691 | esac | |
11692 | fi | |
b0cacab0 | 11693 | LN=$ac_cv_path_LN |
50e1e10f | 11694 | if test -n "$LN"; then |
39fd3d4f SJR |
11695 | { $as_echo "$as_me:$LINENO: result: $LN" >&5 |
11696 | $as_echo "$LN" >&6; } | |
50e1e10f | 11697 | else |
39fd3d4f SJR |
11698 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11699 | $as_echo "no" >&6; } | |
50e1e10f TT |
11700 | fi |
11701 | ||
e1052144 | 11702 | |
39fd3d4f SJR |
11703 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
11704 | $as_echo_n "checking whether ln -s works... " >&6; } | |
b0cacab0 TT |
11705 | LN_S=$as_ln_s |
11706 | if test "$LN_S" = "ln -s"; then | |
39fd3d4f SJR |
11707 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
11708 | $as_echo "yes" >&6; } | |
fc6d9d51 | 11709 | else |
39fd3d4f SJR |
11710 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
11711 | $as_echo "no, using $LN_S" >&6; } | |
fc6d9d51 TT |
11712 | fi |
11713 | ||
50e1e10f TT |
11714 | # Extract the first word of "mv", so it can be a program name with args. |
11715 | set dummy mv; ac_word=$2 | |
39fd3d4f SJR |
11716 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11717 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 11718 | if test "${ac_cv_path_MV+set}" = set; then |
39fd3d4f | 11719 | $as_echo_n "(cached) " >&6 |
50e1e10f | 11720 | else |
b0cacab0 TT |
11721 | case $MV in |
11722 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
11723 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
11724 | ;; | |
11725 | *) | |
b0cacab0 TT |
11726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11727 | for as_dir in $PATH | |
11728 | do | |
11729 | IFS=$as_save_IFS | |
11730 | test -z "$as_dir" && as_dir=. | |
11731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11732 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 11733 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
39fd3d4f | 11734 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
11735 | break 2 |
11736 | fi | |
11737 | done | |
11738 | done | |
e1052144 | 11739 | IFS=$as_save_IFS |
b0cacab0 | 11740 | |
50e1e10f TT |
11741 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
11742 | ;; | |
11743 | esac | |
11744 | fi | |
b0cacab0 | 11745 | MV=$ac_cv_path_MV |
50e1e10f | 11746 | if test -n "$MV"; then |
39fd3d4f SJR |
11747 | { $as_echo "$as_me:$LINENO: result: $MV" >&5 |
11748 | $as_echo "$MV" >&6; } | |
50e1e10f | 11749 | else |
39fd3d4f SJR |
11750 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11751 | $as_echo "no" >&6; } | |
50e1e10f TT |
11752 | fi |
11753 | ||
e1052144 | 11754 | |
50e1e10f TT |
11755 | # Extract the first word of "cp", so it can be a program name with args. |
11756 | set dummy cp; ac_word=$2 | |
39fd3d4f SJR |
11757 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11758 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 11759 | if test "${ac_cv_path_CP+set}" = set; then |
39fd3d4f | 11760 | $as_echo_n "(cached) " >&6 |
50e1e10f | 11761 | else |
b0cacab0 TT |
11762 | case $CP in |
11763 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
11764 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
11765 | ;; | |
11766 | *) | |
b0cacab0 TT |
11767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11768 | for as_dir in $PATH | |
11769 | do | |
11770 | IFS=$as_save_IFS | |
11771 | test -z "$as_dir" && as_dir=. | |
11772 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11773 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 11774 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
39fd3d4f | 11775 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
11776 | break 2 |
11777 | fi | |
11778 | done | |
11779 | done | |
e1052144 | 11780 | IFS=$as_save_IFS |
b0cacab0 | 11781 | |
50e1e10f TT |
11782 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
11783 | ;; | |
11784 | esac | |
11785 | fi | |
b0cacab0 | 11786 | CP=$ac_cv_path_CP |
50e1e10f | 11787 | if test -n "$CP"; then |
39fd3d4f SJR |
11788 | { $as_echo "$as_me:$LINENO: result: $CP" >&5 |
11789 | $as_echo "$CP" >&6; } | |
50e1e10f | 11790 | else |
39fd3d4f SJR |
11791 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11792 | $as_echo "no" >&6; } | |
50e1e10f TT |
11793 | fi |
11794 | ||
e1052144 | 11795 | |
50e1e10f TT |
11796 | # Extract the first word of "rm", so it can be a program name with args. |
11797 | set dummy rm; ac_word=$2 | |
39fd3d4f SJR |
11798 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11799 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 11800 | if test "${ac_cv_path_RM+set}" = set; then |
39fd3d4f | 11801 | $as_echo_n "(cached) " >&6 |
50e1e10f | 11802 | else |
b0cacab0 TT |
11803 | case $RM in |
11804 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
11805 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
11806 | ;; | |
11807 | *) | |
b0cacab0 TT |
11808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11809 | for as_dir in $PATH | |
11810 | do | |
11811 | IFS=$as_save_IFS | |
11812 | test -z "$as_dir" && as_dir=. | |
11813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 11815 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
39fd3d4f | 11816 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
11817 | break 2 |
11818 | fi | |
11819 | done | |
11820 | done | |
e1052144 | 11821 | IFS=$as_save_IFS |
b0cacab0 | 11822 | |
50e1e10f TT |
11823 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
11824 | ;; | |
11825 | esac | |
11826 | fi | |
b0cacab0 | 11827 | RM=$ac_cv_path_RM |
50e1e10f | 11828 | if test -n "$RM"; then |
39fd3d4f SJR |
11829 | { $as_echo "$as_me:$LINENO: result: $RM" >&5 |
11830 | $as_echo "$RM" >&6; } | |
50e1e10f | 11831 | else |
39fd3d4f SJR |
11832 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11833 | $as_echo "no" >&6; } | |
50e1e10f TT |
11834 | fi |
11835 | ||
e1052144 | 11836 | |
50e1e10f TT |
11837 | # Extract the first word of "chmod", so it can be a program name with args. |
11838 | set dummy chmod; ac_word=$2 | |
39fd3d4f SJR |
11839 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11840 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 11841 | if test "${ac_cv_path_CHMOD+set}" = set; then |
39fd3d4f | 11842 | $as_echo_n "(cached) " >&6 |
50e1e10f | 11843 | else |
b0cacab0 TT |
11844 | case $CHMOD in |
11845 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
11846 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
11847 | ;; | |
11848 | *) | |
b0cacab0 TT |
11849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11850 | for as_dir in $PATH | |
11851 | do | |
11852 | IFS=$as_save_IFS | |
11853 | test -z "$as_dir" && as_dir=. | |
11854 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11855 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 11856 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
39fd3d4f | 11857 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
11858 | break 2 |
11859 | fi | |
11860 | done | |
11861 | done | |
e1052144 | 11862 | IFS=$as_save_IFS |
b0cacab0 | 11863 | |
50e1e10f TT |
11864 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
11865 | ;; | |
11866 | esac | |
11867 | fi | |
b0cacab0 | 11868 | CHMOD=$ac_cv_path_CHMOD |
50e1e10f | 11869 | if test -n "$CHMOD"; then |
39fd3d4f SJR |
11870 | { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5 |
11871 | $as_echo "$CHMOD" >&6; } | |
50e1e10f | 11872 | else |
39fd3d4f SJR |
11873 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11874 | $as_echo "no" >&6; } | |
50e1e10f TT |
11875 | fi |
11876 | ||
e1052144 | 11877 | |
32237014 TT |
11878 | for ac_prog in gawk mawk nawk awk |
11879 | do | |
11880 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11881 | set dummy $ac_prog; ac_word=$2 | |
39fd3d4f SJR |
11882 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11883 | $as_echo_n "checking for $ac_word... " >&6; } | |
32237014 | 11884 | if test "${ac_cv_prog_AWK+set}" = set; then |
39fd3d4f | 11885 | $as_echo_n "(cached) " >&6 |
50e1e10f | 11886 | else |
32237014 TT |
11887 | if test -n "$AWK"; then |
11888 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
11889 | else | |
11890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
b0cacab0 TT |
11891 | for as_dir in $PATH |
11892 | do | |
11893 | IFS=$as_save_IFS | |
11894 | test -z "$as_dir" && as_dir=. | |
11895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
32237014 | 11897 | ac_cv_prog_AWK="$ac_prog" |
39fd3d4f | 11898 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
11899 | break 2 |
11900 | fi | |
11901 | done | |
11902 | done | |
e1052144 | 11903 | IFS=$as_save_IFS |
b0cacab0 | 11904 | |
50e1e10f | 11905 | fi |
32237014 TT |
11906 | fi |
11907 | AWK=$ac_cv_prog_AWK | |
50e1e10f | 11908 | if test -n "$AWK"; then |
39fd3d4f SJR |
11909 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
11910 | $as_echo "$AWK" >&6; } | |
50e1e10f | 11911 | else |
39fd3d4f SJR |
11912 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11913 | $as_echo "no" >&6; } | |
50e1e10f TT |
11914 | fi |
11915 | ||
e1052144 | 11916 | |
32237014 TT |
11917 | test -n "$AWK" && break |
11918 | done | |
11919 | ||
39fd3d4f SJR |
11920 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
11921 | $as_echo_n "checking for egrep... " >&6; } | |
e1052144 | 11922 | if test "${ac_cv_path_EGREP+set}" = set; then |
39fd3d4f | 11923 | $as_echo_n "(cached) " >&6 |
32237014 | 11924 | else |
e1052144 TT |
11925 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
11926 | then ac_cv_path_EGREP="$GREP -E" | |
11927 | else | |
39fd3d4f | 11928 | if test -z "$EGREP"; then |
e1052144 | 11929 | ac_path_EGREP_found=false |
39fd3d4f SJR |
11930 | # Loop through the user's path and test for each of PROGNAME-LIST |
11931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e1052144 TT |
11932 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
11933 | do | |
11934 | IFS=$as_save_IFS | |
11935 | test -z "$as_dir" && as_dir=. | |
11936 | for ac_prog in egrep; do | |
39fd3d4f SJR |
11937 | for ac_exec_ext in '' $ac_executable_extensions; do |
11938 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
11939 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
11940 | # Check for GNU ac_path_EGREP and select it if it is found. | |
e1052144 TT |
11941 | # Check for GNU $ac_path_EGREP |
11942 | case `"$ac_path_EGREP" --version 2>&1` in | |
11943 | *GNU*) | |
11944 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
11945 | *) | |
11946 | ac_count=0 | |
39fd3d4f | 11947 | $as_echo_n 0123456789 >"conftest.in" |
e1052144 TT |
11948 | while : |
11949 | do | |
11950 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
11951 | mv "conftest.tmp" "conftest.in" | |
11952 | cp "conftest.in" "conftest.nl" | |
39fd3d4f | 11953 | $as_echo 'EGREP' >> "conftest.nl" |
e1052144 TT |
11954 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
11955 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
11956 | ac_count=`expr $ac_count + 1` | |
11957 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
11958 | # Best one so far, save it but keep looking for a better one | |
11959 | ac_cv_path_EGREP="$ac_path_EGREP" | |
11960 | ac_path_EGREP_max=$ac_count | |
32237014 | 11961 | fi |
e1052144 TT |
11962 | # 10*(2^10) chars as input seems more than enough |
11963 | test $ac_count -gt 10 && break | |
11964 | done | |
11965 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
11966 | esac | |
11967 | ||
39fd3d4f SJR |
11968 | $ac_path_EGREP_found && break 3 |
11969 | done | |
e1052144 TT |
11970 | done |
11971 | done | |
e1052144 | 11972 | IFS=$as_save_IFS |
39fd3d4f SJR |
11973 | if test -z "$ac_cv_path_EGREP"; then |
11974 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
11975 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
e1052144 | 11976 | { (exit 1); exit 1; }; } |
39fd3d4f | 11977 | fi |
e1052144 TT |
11978 | else |
11979 | ac_cv_path_EGREP=$EGREP | |
11980 | fi | |
11981 | ||
e1052144 | 11982 | fi |
32237014 | 11983 | fi |
39fd3d4f SJR |
11984 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
11985 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
e1052144 | 11986 | EGREP="$ac_cv_path_EGREP" |
32237014 TT |
11987 | |
11988 | ||
50e1e10f TT |
11989 | # Extract the first word of "sed", so it can be a program name with args. |
11990 | set dummy sed; ac_word=$2 | |
39fd3d4f SJR |
11991 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11992 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 11993 | if test "${ac_cv_path_SED+set}" = set; then |
39fd3d4f | 11994 | $as_echo_n "(cached) " >&6 |
50e1e10f | 11995 | else |
b0cacab0 TT |
11996 | case $SED in |
11997 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
11998 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
11999 | ;; | |
12000 | *) | |
b0cacab0 TT |
12001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12002 | for as_dir in $PATH | |
12003 | do | |
12004 | IFS=$as_save_IFS | |
12005 | test -z "$as_dir" && as_dir=. | |
12006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 12007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 12008 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
39fd3d4f | 12009 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
12010 | break 2 |
12011 | fi | |
12012 | done | |
12013 | done | |
e1052144 | 12014 | IFS=$as_save_IFS |
b0cacab0 | 12015 | |
50e1e10f TT |
12016 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
12017 | ;; | |
12018 | esac | |
12019 | fi | |
b0cacab0 | 12020 | SED=$ac_cv_path_SED |
50e1e10f | 12021 | if test -n "$SED"; then |
39fd3d4f SJR |
12022 | { $as_echo "$as_me:$LINENO: result: $SED" >&5 |
12023 | $as_echo "$SED" >&6; } | |
50e1e10f | 12024 | else |
39fd3d4f SJR |
12025 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12026 | $as_echo "no" >&6; } | |
50e1e10f TT |
12027 | fi |
12028 | ||
e1052144 | 12029 | |
9d564f73 TT |
12030 | # Extract the first word of "perl", so it can be a program name with args. |
12031 | set dummy perl; ac_word=$2 | |
39fd3d4f SJR |
12032 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12033 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 12034 | if test "${ac_cv_path_PERL+set}" = set; then |
39fd3d4f | 12035 | $as_echo_n "(cached) " >&6 |
9d564f73 | 12036 | else |
b0cacab0 TT |
12037 | case $PERL in |
12038 | [\\/]* | ?:[\\/]*) | |
9d564f73 TT |
12039 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
12040 | ;; | |
9d564f73 | 12041 | *) |
b0cacab0 TT |
12042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12043 | for as_dir in $PATH | |
12044 | do | |
12045 | IFS=$as_save_IFS | |
12046 | test -z "$as_dir" && as_dir=. | |
12047 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 12048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 12049 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
39fd3d4f | 12050 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
12051 | break 2 |
12052 | fi | |
12053 | done | |
12054 | done | |
e1052144 | 12055 | IFS=$as_save_IFS |
b0cacab0 | 12056 | |
9d564f73 TT |
12057 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
12058 | ;; | |
12059 | esac | |
12060 | fi | |
b0cacab0 | 12061 | PERL=$ac_cv_path_PERL |
9d564f73 | 12062 | if test -n "$PERL"; then |
39fd3d4f SJR |
12063 | { $as_echo "$as_me:$LINENO: result: $PERL" >&5 |
12064 | $as_echo "$PERL" >&6; } | |
9d564f73 | 12065 | else |
39fd3d4f SJR |
12066 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12067 | $as_echo "no" >&6; } | |
9d564f73 TT |
12068 | fi |
12069 | ||
e1052144 | 12070 | |
250f79f0 TT |
12071 | # Extract the first word of "ldconfig", so it can be a program name with args. |
12072 | set dummy ldconfig; ac_word=$2 | |
39fd3d4f SJR |
12073 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12074 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 12075 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
39fd3d4f | 12076 | $as_echo_n "(cached) " >&6 |
250f79f0 | 12077 | else |
b0cacab0 TT |
12078 | case $LDCONFIG in |
12079 | [\\/]* | ?:[\\/]*) | |
250f79f0 TT |
12080 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
12081 | ;; | |
250f79f0 | 12082 | *) |
b0cacab0 TT |
12083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12084 | for as_dir in $PATH | |
12085 | do | |
12086 | IFS=$as_save_IFS | |
12087 | test -z "$as_dir" && as_dir=. | |
12088 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 12089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 12090 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
39fd3d4f | 12091 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
12092 | break 2 |
12093 | fi | |
12094 | done | |
12095 | done | |
e1052144 | 12096 | IFS=$as_save_IFS |
b0cacab0 | 12097 | |
250f79f0 TT |
12098 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
12099 | ;; | |
12100 | esac | |
12101 | fi | |
b0cacab0 | 12102 | LDCONFIG=$ac_cv_path_LDCONFIG |
b0cacab0 | 12103 | if test -n "$LDCONFIG"; then |
39fd3d4f SJR |
12104 | { $as_echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
12105 | $as_echo "$LDCONFIG" >&6; } | |
93636bde | 12106 | else |
39fd3d4f SJR |
12107 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12108 | $as_echo "no" >&6; } | |
93636bde TT |
12109 | fi |
12110 | ||
e1052144 | 12111 | |
b0cacab0 TT |
12112 | if test -n "$ac_tool_prefix"; then |
12113 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
50e1e10f | 12114 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
39fd3d4f SJR |
12115 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12116 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 12117 | if test "${ac_cv_prog_AR+set}" = set; then |
39fd3d4f | 12118 | $as_echo_n "(cached) " >&6 |
50e1e10f TT |
12119 | else |
12120 | if test -n "$AR"; then | |
12121 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12122 | else | |
b0cacab0 TT |
12123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12124 | for as_dir in $PATH | |
12125 | do | |
12126 | IFS=$as_save_IFS | |
12127 | test -z "$as_dir" && as_dir=. | |
12128 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 12129 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 12130 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
39fd3d4f | 12131 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
12132 | break 2 |
12133 | fi | |
12134 | done | |
12135 | done | |
e1052144 | 12136 | IFS=$as_save_IFS |
b0cacab0 | 12137 | |
50e1e10f TT |
12138 | fi |
12139 | fi | |
b0cacab0 | 12140 | AR=$ac_cv_prog_AR |
50e1e10f | 12141 | if test -n "$AR"; then |
39fd3d4f SJR |
12142 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
12143 | $as_echo "$AR" >&6; } | |
50e1e10f | 12144 | else |
39fd3d4f SJR |
12145 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12146 | $as_echo "no" >&6; } | |
50e1e10f TT |
12147 | fi |
12148 | ||
e1052144 | 12149 | |
b0cacab0 | 12150 | fi |
50e1e10f | 12151 | if test -z "$ac_cv_prog_AR"; then |
b0cacab0 | 12152 | ac_ct_AR=$AR |
50e1e10f TT |
12153 | # Extract the first word of "ar", so it can be a program name with args. |
12154 | set dummy ar; ac_word=$2 | |
39fd3d4f SJR |
12155 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12156 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 12157 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
39fd3d4f | 12158 | $as_echo_n "(cached) " >&6 |
93636bde | 12159 | else |
b0cacab0 TT |
12160 | if test -n "$ac_ct_AR"; then |
12161 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
93636bde | 12162 | else |
b0cacab0 TT |
12163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12164 | for as_dir in $PATH | |
12165 | do | |
12166 | IFS=$as_save_IFS | |
12167 | test -z "$as_dir" && as_dir=. | |
12168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 12169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 12170 | ac_cv_prog_ac_ct_AR="ar" |
39fd3d4f | 12171 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
12172 | break 2 |
12173 | fi | |
12174 | done | |
12175 | done | |
e1052144 | 12176 | IFS=$as_save_IFS |
b0cacab0 | 12177 | |
50e1e10f TT |
12178 | fi |
12179 | fi | |
b0cacab0 TT |
12180 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
12181 | if test -n "$ac_ct_AR"; then | |
39fd3d4f SJR |
12182 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
12183 | $as_echo "$ac_ct_AR" >&6; } | |
50e1e10f | 12184 | else |
39fd3d4f SJR |
12185 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12186 | $as_echo "no" >&6; } | |
50e1e10f TT |
12187 | fi |
12188 | ||
e1052144 TT |
12189 | if test "x$ac_ct_AR" = x; then |
12190 | AR="ar" | |
12191 | else | |
12192 | case $cross_compiling:$ac_tool_warned in | |
12193 | yes:) | |
39fd3d4f SJR |
12194 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
12195 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
e1052144 TT |
12196 | ac_tool_warned=yes ;; |
12197 | esac | |
12198 | AR=$ac_ct_AR | |
12199 | fi | |
50e1e10f | 12200 | else |
b0cacab0 | 12201 | AR="$ac_cv_prog_AR" |
50e1e10f TT |
12202 | fi |
12203 | ||
b0cacab0 TT |
12204 | if test -n "$ac_tool_prefix"; then |
12205 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
50e1e10f | 12206 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
39fd3d4f SJR |
12207 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12208 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 12209 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
39fd3d4f | 12210 | $as_echo_n "(cached) " >&6 |
50e1e10f TT |
12211 | else |
12212 | if test -n "$RANLIB"; then | |
12213 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12214 | else | |
b0cacab0 TT |
12215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12216 | for as_dir in $PATH | |
12217 | do | |
12218 | IFS=$as_save_IFS | |
12219 | test -z "$as_dir" && as_dir=. | |
12220 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 12221 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 12222 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
39fd3d4f | 12223 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
12224 | break 2 |
12225 | fi | |
12226 | done | |
12227 | done | |
e1052144 | 12228 | IFS=$as_save_IFS |
b0cacab0 | 12229 | |
50e1e10f TT |
12230 | fi |
12231 | fi | |
b0cacab0 | 12232 | RANLIB=$ac_cv_prog_RANLIB |
50e1e10f | 12233 | if test -n "$RANLIB"; then |
39fd3d4f SJR |
12234 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
12235 | $as_echo "$RANLIB" >&6; } | |
50e1e10f | 12236 | else |
39fd3d4f SJR |
12237 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12238 | $as_echo "no" >&6; } | |
50e1e10f TT |
12239 | fi |
12240 | ||
e1052144 | 12241 | |
b0cacab0 | 12242 | fi |
50e1e10f | 12243 | if test -z "$ac_cv_prog_RANLIB"; then |
b0cacab0 | 12244 | ac_ct_RANLIB=$RANLIB |
50e1e10f TT |
12245 | # Extract the first word of "ranlib", so it can be a program name with args. |
12246 | set dummy ranlib; ac_word=$2 | |
39fd3d4f SJR |
12247 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12248 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 12249 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
39fd3d4f | 12250 | $as_echo_n "(cached) " >&6 |
93636bde | 12251 | else |
b0cacab0 TT |
12252 | if test -n "$ac_ct_RANLIB"; then |
12253 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
93636bde | 12254 | else |
b0cacab0 TT |
12255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12256 | for as_dir in $PATH | |
12257 | do | |
12258 | IFS=$as_save_IFS | |
12259 | test -z "$as_dir" && as_dir=. | |
12260 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 12261 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 12262 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
39fd3d4f | 12263 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
12264 | break 2 |
12265 | fi | |
12266 | done | |
12267 | done | |
e1052144 | 12268 | IFS=$as_save_IFS |
b0cacab0 | 12269 | |
50e1e10f TT |
12270 | fi |
12271 | fi | |
b0cacab0 TT |
12272 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
12273 | if test -n "$ac_ct_RANLIB"; then | |
39fd3d4f SJR |
12274 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
12275 | $as_echo "$ac_ct_RANLIB" >&6; } | |
50e1e10f | 12276 | else |
39fd3d4f SJR |
12277 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12278 | $as_echo "no" >&6; } | |
50e1e10f TT |
12279 | fi |
12280 | ||
e1052144 TT |
12281 | if test "x$ac_ct_RANLIB" = x; then |
12282 | RANLIB=":" | |
12283 | else | |
12284 | case $cross_compiling:$ac_tool_warned in | |
12285 | yes:) | |
39fd3d4f SJR |
12286 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
12287 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
e1052144 TT |
12288 | ac_tool_warned=yes ;; |
12289 | esac | |
12290 | RANLIB=$ac_ct_RANLIB | |
12291 | fi | |
50e1e10f | 12292 | else |
b0cacab0 | 12293 | RANLIB="$ac_cv_prog_RANLIB" |
50e1e10f TT |
12294 | fi |
12295 | ||
b0cacab0 TT |
12296 | if test -n "$ac_tool_prefix"; then |
12297 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
50e1e10f | 12298 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
39fd3d4f SJR |
12299 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12300 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 12301 | if test "${ac_cv_prog_STRIP+set}" = set; then |
39fd3d4f | 12302 | $as_echo_n "(cached) " >&6 |
50e1e10f TT |
12303 | else |
12304 | if test -n "$STRIP"; then | |
12305 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12306 | else | |
b0cacab0 TT |
12307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12308 | for as_dir in $PATH | |
12309 | do | |
12310 | IFS=$as_save_IFS | |
12311 | test -z "$as_dir" && as_dir=. | |
12312 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 12313 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 12314 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
39fd3d4f | 12315 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
12316 | break 2 |
12317 | fi | |
12318 | done | |
12319 | done | |
e1052144 | 12320 | IFS=$as_save_IFS |
b0cacab0 | 12321 | |
50e1e10f TT |
12322 | fi |
12323 | fi | |
b0cacab0 | 12324 | STRIP=$ac_cv_prog_STRIP |
50e1e10f | 12325 | if test -n "$STRIP"; then |
39fd3d4f SJR |
12326 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
12327 | $as_echo "$STRIP" >&6; } | |
50e1e10f | 12328 | else |
39fd3d4f SJR |
12329 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12330 | $as_echo "no" >&6; } | |
50e1e10f TT |
12331 | fi |
12332 | ||
e1052144 | 12333 | |
b0cacab0 | 12334 | fi |
50e1e10f | 12335 | if test -z "$ac_cv_prog_STRIP"; then |
b0cacab0 | 12336 | ac_ct_STRIP=$STRIP |
50e1e10f TT |
12337 | # Extract the first word of "strip", so it can be a program name with args. |
12338 | set dummy strip; ac_word=$2 | |
39fd3d4f SJR |
12339 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12340 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 12341 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
39fd3d4f | 12342 | $as_echo_n "(cached) " >&6 |
93636bde | 12343 | else |
b0cacab0 TT |
12344 | if test -n "$ac_ct_STRIP"; then |
12345 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
93636bde | 12346 | else |
b0cacab0 TT |
12347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12348 | for as_dir in $PATH | |
12349 | do | |
12350 | IFS=$as_save_IFS | |
12351 | test -z "$as_dir" && as_dir=. | |
12352 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 12353 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 12354 | ac_cv_prog_ac_ct_STRIP="strip" |
39fd3d4f | 12355 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
12356 | break 2 |
12357 | fi | |
12358 | done | |
12359 | done | |
e1052144 | 12360 | IFS=$as_save_IFS |
b0cacab0 | 12361 | |
50e1e10f TT |
12362 | fi |
12363 | fi | |
b0cacab0 TT |
12364 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
12365 | if test -n "$ac_ct_STRIP"; then | |
39fd3d4f SJR |
12366 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
12367 | $as_echo "$ac_ct_STRIP" >&6; } | |
50e1e10f | 12368 | else |
39fd3d4f SJR |
12369 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12370 | $as_echo "no" >&6; } | |
50e1e10f TT |
12371 | fi |
12372 | ||
e1052144 TT |
12373 | if test "x$ac_ct_STRIP" = x; then |
12374 | STRIP=":" | |
12375 | else | |
12376 | case $cross_compiling:$ac_tool_warned in | |
12377 | yes:) | |
39fd3d4f SJR |
12378 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
12379 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
e1052144 TT |
12380 | ac_tool_warned=yes ;; |
12381 | esac | |
12382 | STRIP=$ac_ct_STRIP | |
12383 | fi | |
50e1e10f | 12384 | else |
b0cacab0 | 12385 | STRIP="$ac_cv_prog_STRIP" |
50e1e10f TT |
12386 | fi |
12387 | ||
7321d94e MK |
12388 | # Extract the first word of "makeinfo", so it can be a program name with args. |
12389 | set dummy makeinfo; ac_word=$2 | |
39fd3d4f SJR |
12390 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12391 | $as_echo_n "checking for $ac_word... " >&6; } | |
7321d94e | 12392 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
39fd3d4f | 12393 | $as_echo_n "(cached) " >&6 |
7321d94e MK |
12394 | else |
12395 | if test -n "$MAKEINFO"; then | |
12396 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
12397 | else | |
12398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12399 | for as_dir in $PATH | |
12400 | do | |
12401 | IFS=$as_save_IFS | |
12402 | test -z "$as_dir" && as_dir=. | |
12403 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12404 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12405 | ac_cv_prog_MAKEINFO="makeinfo" | |
39fd3d4f | 12406 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7321d94e MK |
12407 | break 2 |
12408 | fi | |
12409 | done | |
12410 | done | |
12411 | IFS=$as_save_IFS | |
12412 | ||
12413 | fi | |
12414 | fi | |
12415 | MAKEINFO=$ac_cv_prog_MAKEINFO | |
12416 | if test -n "$MAKEINFO"; then | |
39fd3d4f SJR |
12417 | { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
12418 | $as_echo "$MAKEINFO" >&6; } | |
7321d94e | 12419 | else |
39fd3d4f SJR |
12420 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12421 | $as_echo "no" >&6; } | |
7321d94e MK |
12422 | fi |
12423 | ||
12424 | ||
12425 | if test "_$MAKEINFO" = "_"; then | |
12426 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" | |
12427 | else | |
12428 | case "$MAKEINFO" in | |
12429 | */missing.*) | |
39fd3d4f | 12430 | { $as_echo "$as_me:$LINENO: WARNING: |
7321d94e | 12431 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
39fd3d4f | 12432 | $as_echo "$as_me: WARNING: |
7321d94e MK |
12433 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
12434 | ;; | |
12435 | *) | |
12436 | ;; | |
12437 | esac | |
12438 | fi | |
12439 | ||
50e1e10f TT |
12440 | # Find a good install program. We prefer a C program (faster), |
12441 | # so one script is as good as another. But avoid the broken or | |
12442 | # incompatible versions: | |
12443 | # SysV /etc/install, /usr/sbin/install | |
12444 | # SunOS /usr/etc/install | |
12445 | # IRIX /sbin/install | |
12446 | # AIX /bin/install | |
b0cacab0 | 12447 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
a4bf69d9 | 12448 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
50e1e10f TT |
12449 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
12450 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b0cacab0 | 12451 | # OS/2's system install, which has a completely different semantic |
50e1e10f | 12452 | # ./install, which can be erroneously created by make from ./install.sh. |
39fd3d4f SJR |
12453 | # Reject install programs that cannot install multiple files. |
12454 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12455 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
50e1e10f | 12456 | if test -z "$INSTALL"; then |
b0cacab0 | 12457 | if test "${ac_cv_path_install+set}" = set; then |
39fd3d4f | 12458 | $as_echo_n "(cached) " >&6 |
50e1e10f | 12459 | else |
b0cacab0 TT |
12460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12461 | for as_dir in $PATH | |
12462 | do | |
12463 | IFS=$as_save_IFS | |
12464 | test -z "$as_dir" && as_dir=. | |
12465 | # Account for people who put trailing slashes in PATH elements. | |
12466 | case $as_dir/ in | |
12467 | ./ | .// | /cC/* | \ | |
12468 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
12469 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
12470 | /usr/ucb/* ) ;; | |
12471 | *) | |
12472 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12473 | # Don't use installbsd from OSF since it installs stuff as root | |
12474 | # by default. | |
12475 | for ac_prog in ginstall scoinst install; do | |
12476 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 12477 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
50e1e10f | 12478 | if test $ac_prog = install && |
b0cacab0 | 12479 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
50e1e10f | 12480 | # AIX install. It has an incompatible calling convention. |
50e1e10f | 12481 | : |
b0cacab0 TT |
12482 | elif test $ac_prog = install && |
12483 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12484 | # program-specific install script used by HP pwplus--don't use. | |
12485 | : | |
50e1e10f | 12486 | else |
39fd3d4f SJR |
12487 | rm -rf conftest.one conftest.two conftest.dir |
12488 | echo one > conftest.one | |
12489 | echo two > conftest.two | |
12490 | mkdir conftest.dir | |
12491 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
12492 | test -s conftest.one && test -s conftest.two && | |
12493 | test -s conftest.dir/conftest.one && | |
12494 | test -s conftest.dir/conftest.two | |
12495 | then | |
12496 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12497 | break 3 | |
12498 | fi | |
50e1e10f TT |
12499 | fi |
12500 | fi | |
12501 | done | |
b0cacab0 TT |
12502 | done |
12503 | ;; | |
12504 | esac | |
39fd3d4f | 12505 | |
b0cacab0 | 12506 | done |
e1052144 | 12507 | IFS=$as_save_IFS |
b0cacab0 | 12508 | |
39fd3d4f | 12509 | rm -rf conftest.one conftest.two conftest.dir |
21c84b71 | 12510 | |
50e1e10f | 12511 | fi |
21c84b71 | 12512 | if test "${ac_cv_path_install+set}" = set; then |
b0cacab0 | 12513 | INSTALL=$ac_cv_path_install |
21c84b71 | 12514 | else |
e1052144 TT |
12515 | # As a last resort, use the slow shell script. Don't cache a |
12516 | # value for INSTALL within a source directory, because that will | |
21c84b71 | 12517 | # break other packages using the cache if that directory is |
e1052144 | 12518 | # removed, or if the value is a relative name. |
b0cacab0 | 12519 | INSTALL=$ac_install_sh |
21c84b71 | 12520 | fi |
50e1e10f | 12521 | fi |
39fd3d4f SJR |
12522 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
12523 | $as_echo "$INSTALL" >&6; } | |
50e1e10f TT |
12524 | |
12525 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12526 | # It thinks the first close brace ends the variable substitution. | |
12527 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12528 | ||
b0cacab0 | 12529 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
a4bf69d9 | 12530 | |
50e1e10f TT |
12531 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
12532 | ||
6c133523 TT |
12533 | # See if we need a separate native compiler. |
12534 | if test $cross_compiling = no; then | |
12535 | BUILD_CC="$CC" | |
b0cacab0 | 12536 | |
6c133523 TT |
12537 | else |
12538 | for ac_prog in gcc cc | |
12539 | do | |
b0cacab0 | 12540 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
6c133523 | 12541 | set dummy $ac_prog; ac_word=$2 |
39fd3d4f SJR |
12542 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12543 | $as_echo_n "checking for $ac_word... " >&6; } | |
b0cacab0 | 12544 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
39fd3d4f | 12545 | $as_echo_n "(cached) " >&6 |
6c133523 | 12546 | else |
b0cacab0 TT |
12547 | if test -n "$BUILD_CC"; then |
12548 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
12549 | else | |
12550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12551 | for as_dir in $PATH | |
12552 | do | |
12553 | IFS=$as_save_IFS | |
12554 | test -z "$as_dir" && as_dir=. | |
12555 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 12556 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 | 12557 | ac_cv_prog_BUILD_CC="$ac_prog" |
39fd3d4f | 12558 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
12559 | break 2 |
12560 | fi | |
12561 | done | |
12562 | done | |
e1052144 | 12563 | IFS=$as_save_IFS |
b0cacab0 | 12564 | |
6c133523 TT |
12565 | fi |
12566 | fi | |
b0cacab0 | 12567 | BUILD_CC=$ac_cv_prog_BUILD_CC |
6c133523 | 12568 | if test -n "$BUILD_CC"; then |
39fd3d4f SJR |
12569 | { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
12570 | $as_echo "$BUILD_CC" >&6; } | |
6c133523 | 12571 | else |
39fd3d4f SJR |
12572 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12573 | $as_echo "no" >&6; } | |
6c133523 TT |
12574 | fi |
12575 | ||
e1052144 | 12576 | |
b0cacab0 | 12577 | test -n "$BUILD_CC" && break |
6c133523 TT |
12578 | done |
12579 | ||
12580 | fi | |
b0cacab0 | 12581 | |
740837de | 12582 | |
b0cacab0 TT |
12583 | |
12584 | ||
12585 | ||
12586 | ||
12587 | ||
12588 | ||
12589 | ||
12590 | ||
12591 | ||
12592 | ||
12593 | ||
12594 | ||
12595 | ||
12596 | ||
12597 | ||
12598 | ||
12599 | ||
12600 | ||
12601 | ||
12602 | ||
12603 | ||
12604 | ||
12605 | ||
12606 | ||
12607 | ||
12608 | ||
12609 | ||
12610 | ||
762c7c65 | 12611 | |
106ad96d TT |
12612 | |
12613 | ||
e7cc6f7d CG |
12614 | |
12615 | ||
3d05802f | 12616 | |
6ec9ef18 | 12617 | |
d7f45af8 TT |
12618 | |
12619 | for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h | |
50e1e10f | 12620 | do |
39fd3d4f | 12621 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
e1052144 | 12622 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f SJR |
12623 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12624 | $as_echo_n "checking for $ac_header... " >&6; } | |
e1052144 | 12625 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 12626 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12627 | fi |
39fd3d4f SJR |
12628 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12629 | $as_echo "$as_val"'` | |
12630 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12631 | $as_echo "$ac_res" >&6; } | |
b0cacab0 TT |
12632 | else |
12633 | # Is the header compilable? | |
39fd3d4f SJR |
12634 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12635 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b0cacab0 TT |
12636 | cat >conftest.$ac_ext <<_ACEOF |
12637 | /* confdefs.h. */ | |
12638 | _ACEOF | |
12639 | cat confdefs.h >>conftest.$ac_ext | |
12640 | cat >>conftest.$ac_ext <<_ACEOF | |
12641 | /* end confdefs.h. */ | |
12642 | $ac_includes_default | |
12643 | #include <$ac_header> | |
12644 | _ACEOF | |
12645 | rm -f conftest.$ac_objext | |
e1052144 TT |
12646 | if { (ac_try="$ac_compile" |
12647 | case "(($ac_try" in | |
12648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12649 | *) ac_try_echo=$ac_try;; | |
12650 | esac | |
39fd3d4f SJR |
12651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12652 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 12653 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
12654 | ac_status=$? |
12655 | grep -v '^ *+' conftest.er1 >conftest.err | |
12656 | rm -f conftest.er1 | |
12657 | cat conftest.err >&5 | |
39fd3d4f | 12658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
12659 | (exit $ac_status); } && { |
12660 | test -z "$ac_c_werror_flag" || | |
12661 | test ! -s conftest.err | |
12662 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
12663 | ac_header_compiler=yes |
12664 | else | |
39fd3d4f | 12665 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
12666 | sed 's/^/| /' conftest.$ac_ext >&5 |
12667 | ||
e1052144 | 12668 | ac_header_compiler=no |
b0cacab0 | 12669 | fi |
e1052144 TT |
12670 | |
12671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
39fd3d4f SJR |
12672 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12673 | $as_echo "$ac_header_compiler" >&6; } | |
b0cacab0 TT |
12674 | |
12675 | # Is the header present? | |
39fd3d4f SJR |
12676 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12677 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b0cacab0 TT |
12678 | cat >conftest.$ac_ext <<_ACEOF |
12679 | /* confdefs.h. */ | |
12680 | _ACEOF | |
12681 | cat confdefs.h >>conftest.$ac_ext | |
12682 | cat >>conftest.$ac_ext <<_ACEOF | |
12683 | /* end confdefs.h. */ | |
12684 | #include <$ac_header> | |
12685 | _ACEOF | |
e1052144 TT |
12686 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12687 | case "(($ac_try" in | |
12688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12689 | *) ac_try_echo=$ac_try;; | |
12690 | esac | |
39fd3d4f SJR |
12691 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12692 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 12693 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
b0cacab0 TT |
12694 | ac_status=$? |
12695 | grep -v '^ *+' conftest.er1 >conftest.err | |
12696 | rm -f conftest.er1 | |
12697 | cat conftest.err >&5 | |
39fd3d4f | 12698 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
12699 | (exit $ac_status); } >/dev/null && { |
12700 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12701 | test ! -s conftest.err | |
12702 | }; then | |
b0cacab0 TT |
12703 | ac_header_preproc=yes |
12704 | else | |
39fd3d4f | 12705 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
12706 | sed 's/^/| /' conftest.$ac_ext >&5 |
12707 | ||
12708 | ac_header_preproc=no | |
50e1e10f | 12709 | fi |
e1052144 | 12710 | |
b0cacab0 | 12711 | rm -f conftest.err conftest.$ac_ext |
39fd3d4f SJR |
12712 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12713 | $as_echo "$ac_header_preproc" >&6; } | |
b0cacab0 TT |
12714 | |
12715 | # So? What about this header? | |
12716 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12717 | yes:no: ) | |
39fd3d4f SJR |
12718 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12719 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12720 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12721 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
b0cacab0 TT |
12722 | ac_header_preproc=yes |
12723 | ;; | |
12724 | no:yes:* ) | |
39fd3d4f SJR |
12725 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12726 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12727 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12728 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12729 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12730 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12731 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12732 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12733 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12734 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12735 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12736 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e1052144 | 12737 | |
b0cacab0 TT |
12738 | ;; |
12739 | esac | |
39fd3d4f SJR |
12740 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12741 | $as_echo_n "checking for $ac_header... " >&6; } | |
e1052144 | 12742 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 12743 | $as_echo_n "(cached) " >&6 |
93636bde | 12744 | else |
b0cacab0 TT |
12745 | eval "$as_ac_Header=\$ac_header_preproc" |
12746 | fi | |
39fd3d4f SJR |
12747 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12748 | $as_echo "$as_val"'` | |
12749 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12750 | $as_echo "$ac_res" >&6; } | |
b0cacab0 | 12751 | |
50e1e10f | 12752 | fi |
39fd3d4f SJR |
12753 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12754 | $as_echo "$as_val"'` | |
12755 | if test "x$as_val" = x""yes; then | |
b0cacab0 | 12756 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 12757 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b0cacab0 TT |
12758 | _ACEOF |
12759 | ||
12760 | fi | |
12761 | ||
50e1e10f TT |
12762 | done |
12763 | ||
b0cacab0 | 12764 | |
da76d6b7 TT |
12765 | |
12766 | for ac_header in sys/disk.h sys/mount.h | |
12767 | do | |
39fd3d4f SJR |
12768 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12769 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12770 | $as_echo_n "checking for $ac_header... " >&6; } | |
e1052144 | 12771 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 12772 | $as_echo_n "(cached) " >&6 |
da76d6b7 TT |
12773 | else |
12774 | cat >conftest.$ac_ext <<_ACEOF | |
12775 | /* confdefs.h. */ | |
12776 | _ACEOF | |
12777 | cat confdefs.h >>conftest.$ac_ext | |
12778 | cat >>conftest.$ac_ext <<_ACEOF | |
12779 | /* end confdefs.h. */ | |
12780 | ||
12781 | #if HAVE_SYS_QUEUE_H | |
12782 | #include <sys/queue.h> | |
12783 | #endif | |
12784 | ||
12785 | ||
12786 | #include <$ac_header> | |
12787 | _ACEOF | |
12788 | rm -f conftest.$ac_objext | |
e1052144 TT |
12789 | if { (ac_try="$ac_compile" |
12790 | case "(($ac_try" in | |
12791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12792 | *) ac_try_echo=$ac_try;; | |
12793 | esac | |
39fd3d4f SJR |
12794 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12795 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 12796 | (eval "$ac_compile") 2>conftest.er1 |
da76d6b7 TT |
12797 | ac_status=$? |
12798 | grep -v '^ *+' conftest.er1 >conftest.err | |
12799 | rm -f conftest.er1 | |
12800 | cat conftest.err >&5 | |
39fd3d4f | 12801 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
12802 | (exit $ac_status); } && { |
12803 | test -z "$ac_c_werror_flag" || | |
12804 | test ! -s conftest.err | |
12805 | } && test -s conftest.$ac_objext; then | |
da76d6b7 TT |
12806 | eval "$as_ac_Header=yes" |
12807 | else | |
39fd3d4f | 12808 | $as_echo "$as_me: failed program was:" >&5 |
da76d6b7 TT |
12809 | sed 's/^/| /' conftest.$ac_ext >&5 |
12810 | ||
e1052144 | 12811 | eval "$as_ac_Header=no" |
da76d6b7 | 12812 | fi |
e1052144 TT |
12813 | |
12814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
da76d6b7 | 12815 | fi |
39fd3d4f SJR |
12816 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12817 | $as_echo "$as_val"'` | |
12818 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12819 | $as_echo "$ac_res" >&6; } | |
12820 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12821 | $as_echo "$as_val"'` | |
12822 | if test "x$as_val" = x""yes; then | |
da76d6b7 | 12823 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 12824 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
da76d6b7 TT |
12825 | _ACEOF |
12826 | ||
12827 | fi | |
12828 | ||
12829 | done | |
12830 | ||
12831 | ||
12832 | for ac_header in net/if.h | |
12833 | do | |
39fd3d4f SJR |
12834 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12835 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12836 | $as_echo_n "checking for $ac_header... " >&6; } | |
e1052144 | 12837 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 12838 | $as_echo_n "(cached) " >&6 |
da76d6b7 TT |
12839 | else |
12840 | cat >conftest.$ac_ext <<_ACEOF | |
12841 | /* confdefs.h. */ | |
12842 | _ACEOF | |
12843 | cat confdefs.h >>conftest.$ac_ext | |
12844 | cat >>conftest.$ac_ext <<_ACEOF | |
12845 | /* end confdefs.h. */ | |
12846 | ||
12847 | #if HAVE_SYS_TYPES_H | |
12848 | #include <sys/types.h> | |
12849 | #endif | |
12850 | #if HAVE_SYS_SOCKET | |
12851 | #include <sys/socket.h> | |
12852 | #endif | |
12853 | ||
12854 | ||
12855 | #include <$ac_header> | |
12856 | _ACEOF | |
12857 | rm -f conftest.$ac_objext | |
e1052144 TT |
12858 | if { (ac_try="$ac_compile" |
12859 | case "(($ac_try" in | |
12860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12861 | *) ac_try_echo=$ac_try;; | |
12862 | esac | |
39fd3d4f SJR |
12863 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12864 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 12865 | (eval "$ac_compile") 2>conftest.er1 |
da76d6b7 TT |
12866 | ac_status=$? |
12867 | grep -v '^ *+' conftest.er1 >conftest.err | |
12868 | rm -f conftest.er1 | |
12869 | cat conftest.err >&5 | |
39fd3d4f | 12870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
12871 | (exit $ac_status); } && { |
12872 | test -z "$ac_c_werror_flag" || | |
12873 | test ! -s conftest.err | |
12874 | } && test -s conftest.$ac_objext; then | |
da76d6b7 TT |
12875 | eval "$as_ac_Header=yes" |
12876 | else | |
39fd3d4f | 12877 | $as_echo "$as_me: failed program was:" >&5 |
da76d6b7 TT |
12878 | sed 's/^/| /' conftest.$ac_ext >&5 |
12879 | ||
e1052144 | 12880 | eval "$as_ac_Header=no" |
da76d6b7 | 12881 | fi |
e1052144 TT |
12882 | |
12883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
da76d6b7 | 12884 | fi |
39fd3d4f SJR |
12885 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12886 | $as_echo "$as_val"'` | |
12887 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12888 | $as_echo "$ac_res" >&6; } | |
12889 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12890 | $as_echo "$as_val"'` | |
12891 | if test "x$as_val" = x""yes; then | |
da76d6b7 | 12892 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 12893 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
da76d6b7 TT |
12894 | _ACEOF |
12895 | ||
12896 | fi | |
12897 | ||
12898 | done | |
12899 | ||
12900 | ||
b0cacab0 TT |
12901 | for ac_func in vprintf |
12902 | do | |
39fd3d4f SJR |
12903 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12904 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12905 | $as_echo_n "checking for $ac_func... " >&6; } | |
e1052144 | 12906 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 12907 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
12908 | else |
12909 | cat >conftest.$ac_ext <<_ACEOF | |
12910 | /* confdefs.h. */ | |
12911 | _ACEOF | |
12912 | cat confdefs.h >>conftest.$ac_ext | |
12913 | cat >>conftest.$ac_ext <<_ACEOF | |
12914 | /* end confdefs.h. */ | |
12915 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12916 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12917 | #define $ac_func innocuous_$ac_func | |
12918 | ||
50e1e10f | 12919 | /* System header to define __stub macros and hopefully few prototypes, |
b0cacab0 TT |
12920 | which can conflict with char $ac_func (); below. |
12921 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12922 | <limits.h> exists even on freestanding compilers. */ | |
12923 | ||
12924 | #ifdef __STDC__ | |
12925 | # include <limits.h> | |
12926 | #else | |
12927 | # include <assert.h> | |
12928 | #endif | |
93636bde | 12929 | |
b0cacab0 | 12930 | #undef $ac_func |
50e1e10f | 12931 | |
e1052144 TT |
12932 | /* Override any GCC internal prototype to avoid an error. |
12933 | Use char because int might match the return type of a GCC | |
12934 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
12935 | #ifdef __cplusplus |
12936 | extern "C" | |
b0cacab0 | 12937 | #endif |
b0cacab0 | 12938 | char $ac_func (); |
50e1e10f TT |
12939 | /* The GNU C library defines this for functions which it implements |
12940 | to always fail with ENOSYS. Some functions are actually named | |
07a0db15 | 12941 | something starting with __ and the normal name is an alias. */ |
e1052144 | 12942 | #if defined __stub_$ac_func || defined __stub___$ac_func |
07a0db15 | 12943 | choke me |
07a0db15 | 12944 | #endif |
50e1e10f | 12945 | |
b0cacab0 TT |
12946 | int |
12947 | main () | |
12948 | { | |
e1052144 | 12949 | return $ac_func (); |
b0cacab0 TT |
12950 | ; |
12951 | return 0; | |
12952 | } | |
12953 | _ACEOF | |
12954 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
12955 | if { (ac_try="$ac_link" |
12956 | case "(($ac_try" in | |
12957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12958 | *) ac_try_echo=$ac_try;; | |
12959 | esac | |
39fd3d4f SJR |
12960 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12961 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 12962 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
12963 | ac_status=$? |
12964 | grep -v '^ *+' conftest.er1 >conftest.err | |
12965 | rm -f conftest.er1 | |
12966 | cat conftest.err >&5 | |
39fd3d4f | 12967 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
12968 | (exit $ac_status); } && { |
12969 | test -z "$ac_c_werror_flag" || | |
12970 | test ! -s conftest.err | |
39fd3d4f SJR |
12971 | } && test -s conftest$ac_exeext && { |
12972 | test "$cross_compiling" = yes || | |
12973 | $as_test_x conftest$ac_exeext | |
12974 | }; then | |
b0cacab0 TT |
12975 | eval "$as_ac_var=yes" |
12976 | else | |
39fd3d4f | 12977 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
12978 | sed 's/^/| /' conftest.$ac_ext >&5 |
12979 | ||
e1052144 | 12980 | eval "$as_ac_var=no" |
b0cacab0 | 12981 | fi |
e1052144 | 12982 | |
39fd3d4f | 12983 | rm -rf conftest.dSYM |
29a5deed | 12984 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
12985 | conftest$ac_exeext conftest.$ac_ext |
12986 | fi | |
39fd3d4f SJR |
12987 | ac_res=`eval 'as_val=${'$as_ac_var'} |
12988 | $as_echo "$as_val"'` | |
12989 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12990 | $as_echo "$ac_res" >&6; } | |
12991 | as_val=`eval 'as_val=${'$as_ac_var'} | |
12992 | $as_echo "$as_val"'` | |
12993 | if test "x$as_val" = x""yes; then | |
b0cacab0 | 12994 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 12995 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b0cacab0 TT |
12996 | _ACEOF |
12997 | ||
39fd3d4f SJR |
12998 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
12999 | $as_echo_n "checking for _doprnt... " >&6; } | |
b0cacab0 | 13000 | if test "${ac_cv_func__doprnt+set}" = set; then |
39fd3d4f | 13001 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
13002 | else |
13003 | cat >conftest.$ac_ext <<_ACEOF | |
13004 | /* confdefs.h. */ | |
13005 | _ACEOF | |
13006 | cat confdefs.h >>conftest.$ac_ext | |
13007 | cat >>conftest.$ac_ext <<_ACEOF | |
13008 | /* end confdefs.h. */ | |
13009 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
13010 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13011 | #define _doprnt innocuous__doprnt | |
93636bde | 13012 | |
b0cacab0 TT |
13013 | /* System header to define __stub macros and hopefully few prototypes, |
13014 | which can conflict with char _doprnt (); below. | |
13015 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13016 | <limits.h> exists even on freestanding compilers. */ | |
93636bde | 13017 | |
b0cacab0 TT |
13018 | #ifdef __STDC__ |
13019 | # include <limits.h> | |
13020 | #else | |
13021 | # include <assert.h> | |
13022 | #endif | |
13023 | ||
13024 | #undef _doprnt | |
93636bde | 13025 | |
e1052144 TT |
13026 | /* Override any GCC internal prototype to avoid an error. |
13027 | Use char because int might match the return type of a GCC | |
13028 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
13029 | #ifdef __cplusplus |
13030 | extern "C" | |
b0cacab0 | 13031 | #endif |
b0cacab0 | 13032 | char _doprnt (); |
50e1e10f TT |
13033 | /* The GNU C library defines this for functions which it implements |
13034 | to always fail with ENOSYS. Some functions are actually named | |
13035 | something starting with __ and the normal name is an alias. */ | |
e1052144 | 13036 | #if defined __stub__doprnt || defined __stub____doprnt |
50e1e10f | 13037 | choke me |
50e1e10f TT |
13038 | #endif |
13039 | ||
b0cacab0 TT |
13040 | int |
13041 | main () | |
13042 | { | |
e1052144 | 13043 | return _doprnt (); |
b0cacab0 TT |
13044 | ; |
13045 | return 0; | |
13046 | } | |
13047 | _ACEOF | |
13048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
13049 | if { (ac_try="$ac_link" |
13050 | case "(($ac_try" in | |
13051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13052 | *) ac_try_echo=$ac_try;; | |
13053 | esac | |
39fd3d4f SJR |
13054 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13055 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13056 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
13057 | ac_status=$? |
13058 | grep -v '^ *+' conftest.er1 >conftest.err | |
13059 | rm -f conftest.er1 | |
13060 | cat conftest.err >&5 | |
39fd3d4f | 13061 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13062 | (exit $ac_status); } && { |
13063 | test -z "$ac_c_werror_flag" || | |
13064 | test ! -s conftest.err | |
39fd3d4f SJR |
13065 | } && test -s conftest$ac_exeext && { |
13066 | test "$cross_compiling" = yes || | |
13067 | $as_test_x conftest$ac_exeext | |
13068 | }; then | |
b0cacab0 TT |
13069 | ac_cv_func__doprnt=yes |
13070 | else | |
39fd3d4f | 13071 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
13072 | sed 's/^/| /' conftest.$ac_ext >&5 |
13073 | ||
e1052144 | 13074 | ac_cv_func__doprnt=no |
b0cacab0 | 13075 | fi |
e1052144 | 13076 | |
39fd3d4f | 13077 | rm -rf conftest.dSYM |
29a5deed | 13078 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
13079 | conftest$ac_exeext conftest.$ac_ext |
13080 | fi | |
39fd3d4f SJR |
13081 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
13082 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
13083 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
b0cacab0 TT |
13084 | |
13085 | cat >>confdefs.h <<\_ACEOF | |
50e1e10f | 13086 | #define HAVE_DOPRNT 1 |
b0cacab0 | 13087 | _ACEOF |
50e1e10f | 13088 | |
50e1e10f TT |
13089 | fi |
13090 | ||
13091 | fi | |
b0cacab0 | 13092 | done |
50e1e10f | 13093 | |
b0cacab0 | 13094 | |
39fd3d4f SJR |
13095 | { $as_echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 |
13096 | $as_echo_n "checking for struct dirent.d_reclen... " >&6; } | |
6c65d251 | 13097 | if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then |
39fd3d4f | 13098 | $as_echo_n "(cached) " >&6 |
fff45483 | 13099 | else |
b0cacab0 TT |
13100 | cat >conftest.$ac_ext <<_ACEOF |
13101 | /* confdefs.h. */ | |
13102 | _ACEOF | |
13103 | cat confdefs.h >>conftest.$ac_ext | |
13104 | cat >>conftest.$ac_ext <<_ACEOF | |
13105 | /* end confdefs.h. */ | |
fff45483 | 13106 | #include <dirent.h> |
6c65d251 | 13107 | |
b0cacab0 TT |
13108 | int |
13109 | main () | |
13110 | { | |
6c65d251 TT |
13111 | static struct dirent ac_aggr; |
13112 | if (ac_aggr.d_reclen) | |
13113 | return 0; | |
b0cacab0 TT |
13114 | ; |
13115 | return 0; | |
13116 | } | |
13117 | _ACEOF | |
13118 | rm -f conftest.$ac_objext | |
e1052144 TT |
13119 | if { (ac_try="$ac_compile" |
13120 | case "(($ac_try" in | |
13121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13122 | *) ac_try_echo=$ac_try;; | |
13123 | esac | |
39fd3d4f SJR |
13124 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13125 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13126 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
13127 | ac_status=$? |
13128 | grep -v '^ *+' conftest.er1 >conftest.err | |
13129 | rm -f conftest.er1 | |
13130 | cat conftest.err >&5 | |
39fd3d4f | 13131 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13132 | (exit $ac_status); } && { |
13133 | test -z "$ac_c_werror_flag" || | |
13134 | test ! -s conftest.err | |
13135 | } && test -s conftest.$ac_objext; then | |
6c65d251 | 13136 | ac_cv_member_struct_dirent_d_reclen=yes |
fff45483 | 13137 | else |
39fd3d4f | 13138 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
13139 | sed 's/^/| /' conftest.$ac_ext >&5 |
13140 | ||
e1052144 | 13141 | cat >conftest.$ac_ext <<_ACEOF |
6c65d251 TT |
13142 | /* confdefs.h. */ |
13143 | _ACEOF | |
13144 | cat confdefs.h >>conftest.$ac_ext | |
13145 | cat >>conftest.$ac_ext <<_ACEOF | |
13146 | /* end confdefs.h. */ | |
13147 | #include <dirent.h> | |
13148 | ||
13149 | int | |
13150 | main () | |
13151 | { | |
13152 | static struct dirent ac_aggr; | |
13153 | if (sizeof ac_aggr.d_reclen) | |
13154 | return 0; | |
13155 | ; | |
13156 | return 0; | |
13157 | } | |
13158 | _ACEOF | |
13159 | rm -f conftest.$ac_objext | |
e1052144 TT |
13160 | if { (ac_try="$ac_compile" |
13161 | case "(($ac_try" in | |
13162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13163 | *) ac_try_echo=$ac_try;; | |
13164 | esac | |
39fd3d4f SJR |
13165 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13166 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13167 | (eval "$ac_compile") 2>conftest.er1 |
6c65d251 TT |
13168 | ac_status=$? |
13169 | grep -v '^ *+' conftest.er1 >conftest.err | |
13170 | rm -f conftest.er1 | |
13171 | cat conftest.err >&5 | |
39fd3d4f | 13172 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13173 | (exit $ac_status); } && { |
13174 | test -z "$ac_c_werror_flag" || | |
13175 | test ! -s conftest.err | |
13176 | } && test -s conftest.$ac_objext; then | |
6c65d251 TT |
13177 | ac_cv_member_struct_dirent_d_reclen=yes |
13178 | else | |
39fd3d4f | 13179 | $as_echo "$as_me: failed program was:" >&5 |
6c65d251 TT |
13180 | sed 's/^/| /' conftest.$ac_ext >&5 |
13181 | ||
e1052144 | 13182 | ac_cv_member_struct_dirent_d_reclen=no |
fff45483 | 13183 | fi |
e1052144 TT |
13184 | |
13185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fff45483 | 13186 | fi |
e1052144 TT |
13187 | |
13188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6c65d251 | 13189 | fi |
39fd3d4f SJR |
13190 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 |
13191 | $as_echo "$ac_cv_member_struct_dirent_d_reclen" >&6; } | |
13192 | if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then | |
6c65d251 | 13193 | cat >>confdefs.h <<\_ACEOF |
fff45483 | 13194 | #define HAVE_RECLEN_DIRENT 1 |
b0cacab0 | 13195 | _ACEOF |
fff45483 TT |
13196 | |
13197 | fi | |
6c65d251 | 13198 | |
39fd3d4f SJR |
13199 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
13200 | $as_echo_n "checking for ssize_t... " >&6; } | |
6c65d251 | 13201 | if test "${ac_cv_type_ssize_t+set}" = set; then |
39fd3d4f | 13202 | $as_echo_n "(cached) " >&6 |
fff45483 | 13203 | else |
39fd3d4f SJR |
13204 | ac_cv_type_ssize_t=no |
13205 | cat >conftest.$ac_ext <<_ACEOF | |
b0cacab0 TT |
13206 | /* confdefs.h. */ |
13207 | _ACEOF | |
13208 | cat confdefs.h >>conftest.$ac_ext | |
13209 | cat >>conftest.$ac_ext <<_ACEOF | |
13210 | /* end confdefs.h. */ | |
fff45483 | 13211 | #include <sys/types.h> |
6c65d251 | 13212 | |
b0cacab0 TT |
13213 | int |
13214 | main () | |
13215 | { | |
39fd3d4f SJR |
13216 | if (sizeof (ssize_t)) |
13217 | return 0; | |
b0cacab0 TT |
13218 | ; |
13219 | return 0; | |
13220 | } | |
13221 | _ACEOF | |
13222 | rm -f conftest.$ac_objext | |
e1052144 TT |
13223 | if { (ac_try="$ac_compile" |
13224 | case "(($ac_try" in | |
13225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13226 | *) ac_try_echo=$ac_try;; | |
13227 | esac | |
39fd3d4f SJR |
13228 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13229 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13230 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
13231 | ac_status=$? |
13232 | grep -v '^ *+' conftest.er1 >conftest.err | |
13233 | rm -f conftest.er1 | |
13234 | cat conftest.err >&5 | |
39fd3d4f | 13235 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13236 | (exit $ac_status); } && { |
13237 | test -z "$ac_c_werror_flag" || | |
13238 | test ! -s conftest.err | |
13239 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13240 | cat >conftest.$ac_ext <<_ACEOF |
13241 | /* confdefs.h. */ | |
13242 | _ACEOF | |
13243 | cat confdefs.h >>conftest.$ac_ext | |
13244 | cat >>conftest.$ac_ext <<_ACEOF | |
13245 | /* end confdefs.h. */ | |
39fd3d4f | 13246 | #include <sys/types.h> |
6c65d251 | 13247 | |
b0cacab0 TT |
13248 | int |
13249 | main () | |
13250 | { | |
39fd3d4f SJR |
13251 | if (sizeof ((ssize_t))) |
13252 | return 0; | |
b0cacab0 TT |
13253 | ; |
13254 | return 0; | |
13255 | } | |
13256 | _ACEOF | |
13257 | rm -f conftest.$ac_objext | |
e1052144 TT |
13258 | if { (ac_try="$ac_compile" |
13259 | case "(($ac_try" in | |
13260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13261 | *) ac_try_echo=$ac_try;; | |
13262 | esac | |
39fd3d4f SJR |
13263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13264 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13265 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
13266 | ac_status=$? |
13267 | grep -v '^ *+' conftest.er1 >conftest.err | |
13268 | rm -f conftest.er1 | |
13269 | cat conftest.err >&5 | |
39fd3d4f | 13270 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13271 | (exit $ac_status); } && { |
13272 | test -z "$ac_c_werror_flag" || | |
13273 | test ! -s conftest.err | |
13274 | } && test -s conftest.$ac_objext; then | |
39fd3d4f | 13275 | : |
b0b9c4de | 13276 | else |
39fd3d4f | 13277 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
13278 | sed 's/^/| /' conftest.$ac_ext >&5 |
13279 | ||
39fd3d4f SJR |
13280 | ac_cv_type_ssize_t=yes |
13281 | fi | |
13282 | ||
13283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13284 | else | |
13285 | $as_echo "$as_me: failed program was:" >&5 | |
13286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13287 | ||
13288 | ||
b0b9c4de | 13289 | fi |
e1052144 TT |
13290 | |
13291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0b9c4de | 13292 | fi |
39fd3d4f SJR |
13293 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
13294 | $as_echo "$ac_cv_type_ssize_t" >&6; } | |
13295 | if test "x$ac_cv_type_ssize_t" = x""yes; then | |
6c65d251 | 13296 | cat >>confdefs.h <<\_ACEOF |
39fd3d4f | 13297 | #define HAVE_TYPE_SSIZE_T 1 |
b0cacab0 | 13298 | _ACEOF |
b0b9c4de | 13299 | |
6928adc9 | 13300 | fi |
6c65d251 | 13301 | |
39fd3d4f SJR |
13302 | { $as_echo "$as_me:$LINENO: checking whether llseek is declared" >&5 |
13303 | $as_echo_n "checking whether llseek is declared... " >&6; } | |
13304 | if test "${ac_cv_have_decl_llseek+set}" = set; then | |
13305 | $as_echo_n "(cached) " >&6 | |
6928adc9 | 13306 | else |
b0cacab0 TT |
13307 | cat >conftest.$ac_ext <<_ACEOF |
13308 | /* confdefs.h. */ | |
13309 | _ACEOF | |
13310 | cat confdefs.h >>conftest.$ac_ext | |
13311 | cat >>conftest.$ac_ext <<_ACEOF | |
13312 | /* end confdefs.h. */ | |
39fd3d4f | 13313 | #include <unistd.h> |
6c65d251 | 13314 | |
b0cacab0 TT |
13315 | int |
13316 | main () | |
13317 | { | |
39fd3d4f SJR |
13318 | #ifndef llseek |
13319 | (void) llseek; | |
6c65d251 TT |
13320 | #endif |
13321 | ||
b0cacab0 TT |
13322 | ; |
13323 | return 0; | |
13324 | } | |
13325 | _ACEOF | |
13326 | rm -f conftest.$ac_objext | |
e1052144 TT |
13327 | if { (ac_try="$ac_compile" |
13328 | case "(($ac_try" in | |
13329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13330 | *) ac_try_echo=$ac_try;; | |
13331 | esac | |
39fd3d4f SJR |
13332 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13333 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13334 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
13335 | ac_status=$? |
13336 | grep -v '^ *+' conftest.er1 >conftest.err | |
13337 | rm -f conftest.er1 | |
13338 | cat conftest.err >&5 | |
39fd3d4f | 13339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13340 | (exit $ac_status); } && { |
13341 | test -z "$ac_c_werror_flag" || | |
13342 | test ! -s conftest.err | |
13343 | } && test -s conftest.$ac_objext; then | |
39fd3d4f | 13344 | ac_cv_have_decl_llseek=yes |
6928adc9 | 13345 | else |
39fd3d4f | 13346 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
13347 | sed 's/^/| /' conftest.$ac_ext >&5 |
13348 | ||
39fd3d4f | 13349 | ac_cv_have_decl_llseek=no |
6928adc9 | 13350 | fi |
e1052144 TT |
13351 | |
13352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6928adc9 | 13353 | fi |
39fd3d4f SJR |
13354 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 |
13355 | $as_echo "$ac_cv_have_decl_llseek" >&6; } | |
13356 | if test "x$ac_cv_have_decl_llseek" = x""yes; then | |
6c65d251 | 13357 | cat >>confdefs.h <<\_ACEOF |
39fd3d4f | 13358 | #define HAVE_LLSEEK_PROTOTYPE 1 |
b0cacab0 | 13359 | _ACEOF |
6928adc9 | 13360 | |
50e1e10f | 13361 | fi |
6c65d251 | 13362 | |
39fd3d4f SJR |
13363 | { $as_echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 |
13364 | $as_echo_n "checking whether lseek64 is declared... " >&6; } | |
13365 | if test "${ac_cv_have_decl_lseek64+set}" = set; then | |
13366 | $as_echo_n "(cached) " >&6 | |
b0cacab0 TT |
13367 | else |
13368 | cat >conftest.$ac_ext <<_ACEOF | |
13369 | /* confdefs.h. */ | |
13370 | _ACEOF | |
13371 | cat confdefs.h >>conftest.$ac_ext | |
13372 | cat >>conftest.$ac_ext <<_ACEOF | |
13373 | /* end confdefs.h. */ | |
39fd3d4f SJR |
13374 | #define _LARGEFILE_SOURCE |
13375 | #define _LARGEFILE64_SOURCE | |
13376 | #include <unistd.h> | |
13377 | ||
b0cacab0 TT |
13378 | int |
13379 | main () | |
13380 | { | |
39fd3d4f SJR |
13381 | #ifndef lseek64 |
13382 | (void) lseek64; | |
13383 | #endif | |
13384 | ||
b0cacab0 TT |
13385 | ; |
13386 | return 0; | |
13387 | } | |
13388 | _ACEOF | |
13389 | rm -f conftest.$ac_objext | |
e1052144 TT |
13390 | if { (ac_try="$ac_compile" |
13391 | case "(($ac_try" in | |
13392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13393 | *) ac_try_echo=$ac_try;; | |
13394 | esac | |
39fd3d4f SJR |
13395 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13396 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13397 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
13398 | ac_status=$? |
13399 | grep -v '^ *+' conftest.er1 >conftest.err | |
13400 | rm -f conftest.er1 | |
13401 | cat conftest.err >&5 | |
39fd3d4f | 13402 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13403 | (exit $ac_status); } && { |
13404 | test -z "$ac_c_werror_flag" || | |
13405 | test ! -s conftest.err | |
13406 | } && test -s conftest.$ac_objext; then | |
39fd3d4f | 13407 | ac_cv_have_decl_lseek64=yes |
b0cacab0 | 13408 | else |
39fd3d4f | 13409 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
13410 | sed 's/^/| /' conftest.$ac_ext >&5 |
13411 | ||
39fd3d4f | 13412 | ac_cv_have_decl_lseek64=no |
b0cacab0 | 13413 | fi |
e1052144 TT |
13414 | |
13415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 13416 | fi |
39fd3d4f SJR |
13417 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 |
13418 | $as_echo "$ac_cv_have_decl_lseek64" >&6; } | |
13419 | if test "x$ac_cv_have_decl_lseek64" = x""yes; then | |
13420 | cat >>confdefs.h <<\_ACEOF | |
13421 | #define HAVE_LSEEK64_PROTOTYPE 1 | |
13422 | _ACEOF | |
13423 | ||
13424 | fi | |
b0cacab0 | 13425 | |
29a5deed TT |
13426 | # The cast to long int works around a bug in the HP C Compiler |
13427 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13428 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13429 | # This bug is HP SR number 8606223364. | |
39fd3d4f SJR |
13430 | { $as_echo "$as_me:$LINENO: checking size of short" >&5 |
13431 | $as_echo_n "checking size of short... " >&6; } | |
b0cacab0 | 13432 | if test "${ac_cv_sizeof_short+set}" = set; then |
39fd3d4f | 13433 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 13434 | else |
b0cacab0 TT |
13435 | if test "$cross_compiling" = yes; then |
13436 | # Depending upon the size, compute the lo and hi bounds. | |
13437 | cat >conftest.$ac_ext <<_ACEOF | |
13438 | /* confdefs.h. */ | |
13439 | _ACEOF | |
13440 | cat confdefs.h >>conftest.$ac_ext | |
13441 | cat >>conftest.$ac_ext <<_ACEOF | |
13442 | /* end confdefs.h. */ | |
13443 | $ac_includes_default | |
13444 | int | |
13445 | main () | |
13446 | { | |
39fd3d4f | 13447 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)]; |
b0cacab0 TT |
13448 | test_array [0] = 0 |
13449 | ||
13450 | ; | |
13451 | return 0; | |
13452 | } | |
13453 | _ACEOF | |
13454 | rm -f conftest.$ac_objext | |
e1052144 TT |
13455 | if { (ac_try="$ac_compile" |
13456 | case "(($ac_try" in | |
13457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13458 | *) ac_try_echo=$ac_try;; | |
13459 | esac | |
39fd3d4f SJR |
13460 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13461 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13462 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
13463 | ac_status=$? |
13464 | grep -v '^ *+' conftest.er1 >conftest.err | |
13465 | rm -f conftest.er1 | |
13466 | cat conftest.err >&5 | |
39fd3d4f | 13467 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13468 | (exit $ac_status); } && { |
13469 | test -z "$ac_c_werror_flag" || | |
13470 | test ! -s conftest.err | |
13471 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13472 | ac_lo=0 ac_mid=0 |
13473 | while :; do | |
13474 | cat >conftest.$ac_ext <<_ACEOF | |
13475 | /* confdefs.h. */ | |
13476 | _ACEOF | |
13477 | cat confdefs.h >>conftest.$ac_ext | |
13478 | cat >>conftest.$ac_ext <<_ACEOF | |
13479 | /* end confdefs.h. */ | |
13480 | $ac_includes_default | |
13481 | int | |
13482 | main () | |
13483 | { | |
39fd3d4f | 13484 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; |
b0cacab0 TT |
13485 | test_array [0] = 0 |
13486 | ||
13487 | ; | |
13488 | return 0; | |
13489 | } | |
13490 | _ACEOF | |
13491 | rm -f conftest.$ac_objext | |
e1052144 TT |
13492 | if { (ac_try="$ac_compile" |
13493 | case "(($ac_try" in | |
13494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13495 | *) ac_try_echo=$ac_try;; | |
13496 | esac | |
39fd3d4f SJR |
13497 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13498 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13499 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
13500 | ac_status=$? |
13501 | grep -v '^ *+' conftest.er1 >conftest.err | |
13502 | rm -f conftest.er1 | |
13503 | cat conftest.err >&5 | |
39fd3d4f | 13504 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13505 | (exit $ac_status); } && { |
13506 | test -z "$ac_c_werror_flag" || | |
13507 | test ! -s conftest.err | |
13508 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13509 | ac_hi=$ac_mid; break |
13510 | else | |
39fd3d4f | 13511 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
13512 | sed 's/^/| /' conftest.$ac_ext >&5 |
13513 | ||
e1052144 TT |
13514 | ac_lo=`expr $ac_mid + 1` |
13515 | if test $ac_lo -le $ac_mid; then | |
13516 | ac_lo= ac_hi= | |
13517 | break | |
13518 | fi | |
13519 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
b0cacab0 | 13520 | fi |
e1052144 TT |
13521 | |
13522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
13523 | done |
13524 | else | |
39fd3d4f | 13525 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
13526 | sed 's/^/| /' conftest.$ac_ext >&5 |
13527 | ||
e1052144 | 13528 | cat >conftest.$ac_ext <<_ACEOF |
b0cacab0 TT |
13529 | /* confdefs.h. */ |
13530 | _ACEOF | |
13531 | cat confdefs.h >>conftest.$ac_ext | |
13532 | cat >>conftest.$ac_ext <<_ACEOF | |
13533 | /* end confdefs.h. */ | |
13534 | $ac_includes_default | |
13535 | int | |
13536 | main () | |
13537 | { | |
39fd3d4f | 13538 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)]; |
b0cacab0 TT |
13539 | test_array [0] = 0 |
13540 | ||
13541 | ; | |
13542 | return 0; | |
13543 | } | |
13544 | _ACEOF | |
13545 | rm -f conftest.$ac_objext | |
e1052144 TT |
13546 | if { (ac_try="$ac_compile" |
13547 | case "(($ac_try" in | |
13548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13549 | *) ac_try_echo=$ac_try;; | |
13550 | esac | |
39fd3d4f SJR |
13551 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13552 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13553 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
13554 | ac_status=$? |
13555 | grep -v '^ *+' conftest.er1 >conftest.err | |
13556 | rm -f conftest.er1 | |
13557 | cat conftest.err >&5 | |
39fd3d4f | 13558 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13559 | (exit $ac_status); } && { |
13560 | test -z "$ac_c_werror_flag" || | |
13561 | test ! -s conftest.err | |
13562 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13563 | ac_hi=-1 ac_mid=-1 |
13564 | while :; do | |
13565 | cat >conftest.$ac_ext <<_ACEOF | |
13566 | /* confdefs.h. */ | |
13567 | _ACEOF | |
13568 | cat confdefs.h >>conftest.$ac_ext | |
13569 | cat >>conftest.$ac_ext <<_ACEOF | |
13570 | /* end confdefs.h. */ | |
13571 | $ac_includes_default | |
13572 | int | |
13573 | main () | |
13574 | { | |
39fd3d4f | 13575 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)]; |
b0cacab0 TT |
13576 | test_array [0] = 0 |
13577 | ||
13578 | ; | |
13579 | return 0; | |
13580 | } | |
13581 | _ACEOF | |
13582 | rm -f conftest.$ac_objext | |
e1052144 TT |
13583 | if { (ac_try="$ac_compile" |
13584 | case "(($ac_try" in | |
13585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13586 | *) ac_try_echo=$ac_try;; | |
13587 | esac | |
39fd3d4f SJR |
13588 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13589 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13590 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
13591 | ac_status=$? |
13592 | grep -v '^ *+' conftest.er1 >conftest.err | |
13593 | rm -f conftest.er1 | |
13594 | cat conftest.err >&5 | |
39fd3d4f | 13595 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13596 | (exit $ac_status); } && { |
13597 | test -z "$ac_c_werror_flag" || | |
13598 | test ! -s conftest.err | |
13599 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13600 | ac_lo=$ac_mid; break |
13601 | else | |
39fd3d4f | 13602 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
13603 | sed 's/^/| /' conftest.$ac_ext >&5 |
13604 | ||
e1052144 TT |
13605 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13606 | if test $ac_mid -le $ac_hi; then | |
13607 | ac_lo= ac_hi= | |
13608 | break | |
13609 | fi | |
13610 | ac_mid=`expr 2 '*' $ac_mid` | |
b0cacab0 | 13611 | fi |
e1052144 TT |
13612 | |
13613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
13614 | done |
13615 | else | |
39fd3d4f | 13616 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
13617 | sed 's/^/| /' conftest.$ac_ext >&5 |
13618 | ||
e1052144 | 13619 | ac_lo= ac_hi= |
b0cacab0 | 13620 | fi |
e1052144 TT |
13621 | |
13622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 13623 | fi |
e1052144 TT |
13624 | |
13625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
13626 | # Binary search between lo and hi bounds. |
13627 | while test "x$ac_lo" != "x$ac_hi"; do | |
13628 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13629 | cat >conftest.$ac_ext <<_ACEOF | |
13630 | /* confdefs.h. */ | |
13631 | _ACEOF | |
13632 | cat confdefs.h >>conftest.$ac_ext | |
13633 | cat >>conftest.$ac_ext <<_ACEOF | |
13634 | /* end confdefs.h. */ | |
13635 | $ac_includes_default | |
13636 | int | |
13637 | main () | |
13638 | { | |
39fd3d4f | 13639 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; |
b0cacab0 TT |
13640 | test_array [0] = 0 |
13641 | ||
13642 | ; | |
13643 | return 0; | |
13644 | } | |
13645 | _ACEOF | |
13646 | rm -f conftest.$ac_objext | |
e1052144 TT |
13647 | if { (ac_try="$ac_compile" |
13648 | case "(($ac_try" in | |
13649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13650 | *) ac_try_echo=$ac_try;; | |
13651 | esac | |
39fd3d4f SJR |
13652 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13653 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13654 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
13655 | ac_status=$? |
13656 | grep -v '^ *+' conftest.er1 >conftest.err | |
13657 | rm -f conftest.er1 | |
13658 | cat conftest.err >&5 | |
39fd3d4f | 13659 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13660 | (exit $ac_status); } && { |
13661 | test -z "$ac_c_werror_flag" || | |
13662 | test ! -s conftest.err | |
13663 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13664 | ac_hi=$ac_mid |
13665 | else | |
39fd3d4f | 13666 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
13667 | sed 's/^/| /' conftest.$ac_ext >&5 |
13668 | ||
e1052144 | 13669 | ac_lo=`expr '(' $ac_mid ')' + 1` |
b0cacab0 | 13670 | fi |
e1052144 TT |
13671 | |
13672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
13673 | done |
13674 | case $ac_lo in | |
13675 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
29a5deed | 13676 | '') if test "$ac_cv_type_short" = yes; then |
39fd3d4f SJR |
13677 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
13678 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13679 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
b0cacab0 | 13680 | See \`config.log' for more details." >&5 |
39fd3d4f | 13681 | $as_echo "$as_me: error: cannot compute sizeof (short) |
b0cacab0 | 13682 | See \`config.log' for more details." >&2;} |
39fd3d4f | 13683 | { (exit 77); exit 77; }; }; } |
29a5deed TT |
13684 | else |
13685 | ac_cv_sizeof_short=0 | |
13686 | fi ;; | |
b0cacab0 | 13687 | esac |
b0cacab0 TT |
13688 | else |
13689 | cat >conftest.$ac_ext <<_ACEOF | |
13690 | /* confdefs.h. */ | |
13691 | _ACEOF | |
13692 | cat confdefs.h >>conftest.$ac_ext | |
13693 | cat >>conftest.$ac_ext <<_ACEOF | |
13694 | /* end confdefs.h. */ | |
13695 | $ac_includes_default | |
39fd3d4f SJR |
13696 | static long int longval () { return (long int) (sizeof (short)); } |
13697 | static unsigned long int ulongval () { return (long int) (sizeof (short)); } | |
b0cacab0 TT |
13698 | #include <stdio.h> |
13699 | #include <stdlib.h> | |
13700 | int | |
13701 | main () | |
13702 | { | |
13703 | ||
13704 | FILE *f = fopen ("conftest.val", "w"); | |
13705 | if (! f) | |
e1052144 | 13706 | return 1; |
39fd3d4f | 13707 | if (((long int) (sizeof (short))) < 0) |
b0cacab0 | 13708 | { |
e1052144 | 13709 | long int i = longval (); |
39fd3d4f | 13710 | if (i != ((long int) (sizeof (short)))) |
e1052144 | 13711 | return 1; |
39fd3d4f | 13712 | fprintf (f, "%ld", i); |
b0cacab0 TT |
13713 | } |
13714 | else | |
13715 | { | |
e1052144 | 13716 | unsigned long int i = ulongval (); |
39fd3d4f | 13717 | if (i != ((long int) (sizeof (short)))) |
e1052144 | 13718 | return 1; |
39fd3d4f | 13719 | fprintf (f, "%lu", i); |
b0cacab0 | 13720 | } |
39fd3d4f SJR |
13721 | /* Do not output a trailing newline, as this causes \r\n confusion |
13722 | on some platforms. */ | |
e1052144 | 13723 | return ferror (f) || fclose (f) != 0; |
b0cacab0 TT |
13724 | |
13725 | ; | |
13726 | return 0; | |
13727 | } | |
13728 | _ACEOF | |
13729 | rm -f conftest$ac_exeext | |
e1052144 TT |
13730 | if { (ac_try="$ac_link" |
13731 | case "(($ac_try" in | |
13732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13733 | *) ac_try_echo=$ac_try;; | |
13734 | esac | |
39fd3d4f SJR |
13735 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13736 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13737 | (eval "$ac_link") 2>&5 |
b0cacab0 | 13738 | ac_status=$? |
39fd3d4f | 13739 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 13740 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
39fd3d4f SJR |
13741 | { (case "(($ac_try" in |
13742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13743 | *) ac_try_echo=$ac_try;; | |
13744 | esac | |
13745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13746 | $as_echo "$ac_try_echo") >&5 | |
13747 | (eval "$ac_try") 2>&5 | |
13748 | ac_status=$? | |
13749 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13750 | (exit $ac_status); }; }; then | |
13751 | ac_cv_sizeof_short=`cat conftest.val` | |
b0cacab0 | 13752 | else |
39fd3d4f SJR |
13753 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
13754 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
13755 | sed 's/^/| /' conftest.$ac_ext >&5 |
13756 | ||
39fd3d4f SJR |
13757 | ( exit $ac_status ) |
13758 | if test "$ac_cv_type_short" = yes; then | |
13759 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
13760 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13761 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
13762 | See \`config.log' for more details." >&5 | |
13763 | $as_echo "$as_me: error: cannot compute sizeof (short) | |
13764 | See \`config.log' for more details." >&2;} | |
13765 | { (exit 77); exit 77; }; }; } | |
13766 | else | |
13767 | ac_cv_sizeof_short=0 | |
13768 | fi | |
b0cacab0 | 13769 | fi |
39fd3d4f SJR |
13770 | rm -rf conftest.dSYM |
13771 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
13772 | fi | |
13773 | rm -f conftest.val | |
b0cacab0 | 13774 | fi |
39fd3d4f SJR |
13775 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
13776 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
13777 | ||
13778 | ||
13779 | ||
13780 | cat >>confdefs.h <<_ACEOF | |
13781 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
13782 | _ACEOF | |
13783 | ||
b0cacab0 | 13784 | |
29a5deed TT |
13785 | # The cast to long int works around a bug in the HP C Compiler |
13786 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13787 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13788 | # This bug is HP SR number 8606223364. | |
39fd3d4f SJR |
13789 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 |
13790 | $as_echo_n "checking size of int... " >&6; } | |
b0cacab0 | 13791 | if test "${ac_cv_sizeof_int+set}" = set; then |
39fd3d4f | 13792 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 13793 | else |
b0cacab0 TT |
13794 | if test "$cross_compiling" = yes; then |
13795 | # Depending upon the size, compute the lo and hi bounds. | |
13796 | cat >conftest.$ac_ext <<_ACEOF | |
13797 | /* confdefs.h. */ | |
13798 | _ACEOF | |
13799 | cat confdefs.h >>conftest.$ac_ext | |
13800 | cat >>conftest.$ac_ext <<_ACEOF | |
13801 | /* end confdefs.h. */ | |
13802 | $ac_includes_default | |
13803 | int | |
13804 | main () | |
13805 | { | |
39fd3d4f | 13806 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; |
b0cacab0 TT |
13807 | test_array [0] = 0 |
13808 | ||
13809 | ; | |
13810 | return 0; | |
13811 | } | |
13812 | _ACEOF | |
13813 | rm -f conftest.$ac_objext | |
e1052144 TT |
13814 | if { (ac_try="$ac_compile" |
13815 | case "(($ac_try" in | |
13816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13817 | *) ac_try_echo=$ac_try;; | |
13818 | esac | |
39fd3d4f SJR |
13819 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13820 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13821 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
13822 | ac_status=$? |
13823 | grep -v '^ *+' conftest.er1 >conftest.err | |
13824 | rm -f conftest.er1 | |
13825 | cat conftest.err >&5 | |
39fd3d4f | 13826 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13827 | (exit $ac_status); } && { |
13828 | test -z "$ac_c_werror_flag" || | |
13829 | test ! -s conftest.err | |
13830 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13831 | ac_lo=0 ac_mid=0 |
13832 | while :; do | |
13833 | cat >conftest.$ac_ext <<_ACEOF | |
13834 | /* confdefs.h. */ | |
13835 | _ACEOF | |
13836 | cat confdefs.h >>conftest.$ac_ext | |
13837 | cat >>conftest.$ac_ext <<_ACEOF | |
13838 | /* end confdefs.h. */ | |
13839 | $ac_includes_default | |
13840 | int | |
13841 | main () | |
13842 | { | |
39fd3d4f | 13843 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
b0cacab0 TT |
13844 | test_array [0] = 0 |
13845 | ||
13846 | ; | |
13847 | return 0; | |
13848 | } | |
13849 | _ACEOF | |
13850 | rm -f conftest.$ac_objext | |
e1052144 TT |
13851 | if { (ac_try="$ac_compile" |
13852 | case "(($ac_try" in | |
13853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13854 | *) ac_try_echo=$ac_try;; | |
13855 | esac | |
39fd3d4f SJR |
13856 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13857 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13858 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
13859 | ac_status=$? |
13860 | grep -v '^ *+' conftest.er1 >conftest.err | |
13861 | rm -f conftest.er1 | |
13862 | cat conftest.err >&5 | |
39fd3d4f | 13863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13864 | (exit $ac_status); } && { |
13865 | test -z "$ac_c_werror_flag" || | |
13866 | test ! -s conftest.err | |
13867 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13868 | ac_hi=$ac_mid; break |
13869 | else | |
39fd3d4f | 13870 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
13871 | sed 's/^/| /' conftest.$ac_ext >&5 |
13872 | ||
e1052144 TT |
13873 | ac_lo=`expr $ac_mid + 1` |
13874 | if test $ac_lo -le $ac_mid; then | |
13875 | ac_lo= ac_hi= | |
13876 | break | |
13877 | fi | |
13878 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
b0cacab0 | 13879 | fi |
e1052144 TT |
13880 | |
13881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
13882 | done |
13883 | else | |
39fd3d4f | 13884 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
13885 | sed 's/^/| /' conftest.$ac_ext >&5 |
13886 | ||
e1052144 | 13887 | cat >conftest.$ac_ext <<_ACEOF |
b0cacab0 TT |
13888 | /* confdefs.h. */ |
13889 | _ACEOF | |
13890 | cat confdefs.h >>conftest.$ac_ext | |
13891 | cat >>conftest.$ac_ext <<_ACEOF | |
13892 | /* end confdefs.h. */ | |
13893 | $ac_includes_default | |
13894 | int | |
13895 | main () | |
13896 | { | |
39fd3d4f | 13897 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; |
b0cacab0 TT |
13898 | test_array [0] = 0 |
13899 | ||
13900 | ; | |
13901 | return 0; | |
13902 | } | |
13903 | _ACEOF | |
13904 | rm -f conftest.$ac_objext | |
e1052144 TT |
13905 | if { (ac_try="$ac_compile" |
13906 | case "(($ac_try" in | |
13907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13908 | *) ac_try_echo=$ac_try;; | |
13909 | esac | |
39fd3d4f SJR |
13910 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13911 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 13912 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
13913 | ac_status=$? |
13914 | grep -v '^ *+' conftest.er1 >conftest.err | |
13915 | rm -f conftest.er1 | |
13916 | cat conftest.err >&5 | |
39fd3d4f | 13917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13918 | (exit $ac_status); } && { |
13919 | test -z "$ac_c_werror_flag" || | |
13920 | test ! -s conftest.err | |
13921 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13922 | ac_hi=-1 ac_mid=-1 |
13923 | while :; do | |
13924 | cat >conftest.$ac_ext <<_ACEOF | |
13925 | /* confdefs.h. */ | |
13926 | _ACEOF | |
13927 | cat confdefs.h >>conftest.$ac_ext | |
13928 | cat >>conftest.$ac_ext <<_ACEOF | |
13929 | /* end confdefs.h. */ | |
13930 | $ac_includes_default | |
13931 | int | |
13932 | main () | |
13933 | { | |
39fd3d4f | 13934 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)]; |
29a5deed TT |
13935 | test_array [0] = 0 |
13936 | ||
13937 | ; | |
13938 | return 0; | |
13939 | } | |
13940 | _ACEOF | |
13941 | rm -f conftest.$ac_objext | |
13942 | if { (ac_try="$ac_compile" | |
13943 | case "(($ac_try" in | |
e1052144 TT |
13944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13945 | *) ac_try_echo=$ac_try;; | |
13946 | esac | |
39fd3d4f SJR |
13947 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13948 | $as_echo "$ac_try_echo") >&5 | |
29a5deed | 13949 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 | 13950 | ac_status=$? |
29a5deed TT |
13951 | grep -v '^ *+' conftest.er1 >conftest.err |
13952 | rm -f conftest.er1 | |
13953 | cat conftest.err >&5 | |
39fd3d4f | 13954 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13955 | (exit $ac_status); } && { |
13956 | test -z "$ac_c_werror_flag" || | |
13957 | test ! -s conftest.err | |
13958 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13959 | ac_lo=$ac_mid; break |
13960 | else | |
39fd3d4f | 13961 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
13962 | sed 's/^/| /' conftest.$ac_ext >&5 |
13963 | ||
e1052144 TT |
13964 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13965 | if test $ac_mid -le $ac_hi; then | |
13966 | ac_lo= ac_hi= | |
13967 | break | |
13968 | fi | |
13969 | ac_mid=`expr 2 '*' $ac_mid` | |
b0cacab0 | 13970 | fi |
e1052144 TT |
13971 | |
13972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
13973 | done |
13974 | else | |
39fd3d4f | 13975 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
13976 | sed 's/^/| /' conftest.$ac_ext >&5 |
13977 | ||
e1052144 | 13978 | ac_lo= ac_hi= |
b0cacab0 | 13979 | fi |
e1052144 TT |
13980 | |
13981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 13982 | fi |
e1052144 TT |
13983 | |
13984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
13985 | # Binary search between lo and hi bounds. |
13986 | while test "x$ac_lo" != "x$ac_hi"; do | |
13987 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13988 | cat >conftest.$ac_ext <<_ACEOF | |
13989 | /* confdefs.h. */ | |
13990 | _ACEOF | |
13991 | cat confdefs.h >>conftest.$ac_ext | |
13992 | cat >>conftest.$ac_ext <<_ACEOF | |
13993 | /* end confdefs.h. */ | |
13994 | $ac_includes_default | |
13995 | int | |
13996 | main () | |
13997 | { | |
39fd3d4f | 13998 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
b0cacab0 TT |
13999 | test_array [0] = 0 |
14000 | ||
14001 | ; | |
14002 | return 0; | |
14003 | } | |
14004 | _ACEOF | |
14005 | rm -f conftest.$ac_objext | |
e1052144 TT |
14006 | if { (ac_try="$ac_compile" |
14007 | case "(($ac_try" in | |
14008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14009 | *) ac_try_echo=$ac_try;; | |
14010 | esac | |
39fd3d4f SJR |
14011 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14012 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 14013 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
14014 | ac_status=$? |
14015 | grep -v '^ *+' conftest.er1 >conftest.err | |
14016 | rm -f conftest.er1 | |
14017 | cat conftest.err >&5 | |
39fd3d4f | 14018 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
14019 | (exit $ac_status); } && { |
14020 | test -z "$ac_c_werror_flag" || | |
14021 | test ! -s conftest.err | |
14022 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
14023 | ac_hi=$ac_mid |
14024 | else | |
39fd3d4f | 14025 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
14026 | sed 's/^/| /' conftest.$ac_ext >&5 |
14027 | ||
e1052144 | 14028 | ac_lo=`expr '(' $ac_mid ')' + 1` |
b0cacab0 | 14029 | fi |
e1052144 TT |
14030 | |
14031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
14032 | done |
14033 | case $ac_lo in | |
14034 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
29a5deed | 14035 | '') if test "$ac_cv_type_int" = yes; then |
39fd3d4f SJR |
14036 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14037 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14038 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
b0cacab0 | 14039 | See \`config.log' for more details." >&5 |
39fd3d4f | 14040 | $as_echo "$as_me: error: cannot compute sizeof (int) |
b0cacab0 | 14041 | See \`config.log' for more details." >&2;} |
39fd3d4f | 14042 | { (exit 77); exit 77; }; }; } |
29a5deed TT |
14043 | else |
14044 | ac_cv_sizeof_int=0 | |
14045 | fi ;; | |
b0cacab0 | 14046 | esac |
b0cacab0 TT |
14047 | else |
14048 | cat >conftest.$ac_ext <<_ACEOF | |
14049 | /* confdefs.h. */ | |
14050 | _ACEOF | |
14051 | cat confdefs.h >>conftest.$ac_ext | |
14052 | cat >>conftest.$ac_ext <<_ACEOF | |
14053 | /* end confdefs.h. */ | |
14054 | $ac_includes_default | |
39fd3d4f SJR |
14055 | static long int longval () { return (long int) (sizeof (int)); } |
14056 | static unsigned long int ulongval () { return (long int) (sizeof (int)); } | |
b0cacab0 TT |
14057 | #include <stdio.h> |
14058 | #include <stdlib.h> | |
14059 | int | |
14060 | main () | |
14061 | { | |
14062 | ||
14063 | FILE *f = fopen ("conftest.val", "w"); | |
14064 | if (! f) | |
e1052144 | 14065 | return 1; |
39fd3d4f | 14066 | if (((long int) (sizeof (int))) < 0) |
b0cacab0 | 14067 | { |
e1052144 | 14068 | long int i = longval (); |
39fd3d4f | 14069 | if (i != ((long int) (sizeof (int)))) |
e1052144 | 14070 | return 1; |
39fd3d4f | 14071 | fprintf (f, "%ld", i); |
b0cacab0 TT |
14072 | } |
14073 | else | |
14074 | { | |
e1052144 | 14075 | unsigned long int i = ulongval (); |
39fd3d4f | 14076 | if (i != ((long int) (sizeof (int)))) |
e1052144 | 14077 | return 1; |
39fd3d4f | 14078 | fprintf (f, "%lu", i); |
b0cacab0 | 14079 | } |
39fd3d4f SJR |
14080 | /* Do not output a trailing newline, as this causes \r\n confusion |
14081 | on some platforms. */ | |
e1052144 | 14082 | return ferror (f) || fclose (f) != 0; |
b0cacab0 TT |
14083 | |
14084 | ; | |
14085 | return 0; | |
14086 | } | |
14087 | _ACEOF | |
14088 | rm -f conftest$ac_exeext | |
e1052144 TT |
14089 | if { (ac_try="$ac_link" |
14090 | case "(($ac_try" in | |
14091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14092 | *) ac_try_echo=$ac_try;; | |
14093 | esac | |
39fd3d4f SJR |
14094 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14095 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 14096 | (eval "$ac_link") 2>&5 |
b0cacab0 | 14097 | ac_status=$? |
39fd3d4f | 14098 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 14099 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
e1052144 TT |
14100 | { (case "(($ac_try" in |
14101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14102 | *) ac_try_echo=$ac_try;; | |
14103 | esac | |
39fd3d4f SJR |
14104 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14105 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 14106 | (eval "$ac_try") 2>&5 |
b0cacab0 | 14107 | ac_status=$? |
39fd3d4f | 14108 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 TT |
14109 | (exit $ac_status); }; }; then |
14110 | ac_cv_sizeof_int=`cat conftest.val` | |
14111 | else | |
39fd3d4f SJR |
14112 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
14113 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
14114 | sed 's/^/| /' conftest.$ac_ext >&5 |
14115 | ||
14116 | ( exit $ac_status ) | |
29a5deed | 14117 | if test "$ac_cv_type_int" = yes; then |
39fd3d4f SJR |
14118 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14119 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14120 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
b0cacab0 | 14121 | See \`config.log' for more details." >&5 |
39fd3d4f | 14122 | $as_echo "$as_me: error: cannot compute sizeof (int) |
b0cacab0 | 14123 | See \`config.log' for more details." >&2;} |
39fd3d4f | 14124 | { (exit 77); exit 77; }; }; } |
29a5deed TT |
14125 | else |
14126 | ac_cv_sizeof_int=0 | |
14127 | fi | |
b0cacab0 | 14128 | fi |
39fd3d4f | 14129 | rm -rf conftest.dSYM |
e1052144 | 14130 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
14131 | fi |
14132 | rm -f conftest.val | |
07a0db15 | 14133 | fi |
39fd3d4f SJR |
14134 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
14135 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
29a5deed TT |
14136 | |
14137 | ||
14138 | ||
b0cacab0 TT |
14139 | cat >>confdefs.h <<_ACEOF |
14140 | #define SIZEOF_INT $ac_cv_sizeof_int | |
14141 | _ACEOF | |
14142 | ||
14143 | ||
29a5deed TT |
14144 | # The cast to long int works around a bug in the HP C Compiler |
14145 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14146 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14147 | # This bug is HP SR number 8606223364. | |
39fd3d4f SJR |
14148 | { $as_echo "$as_me:$LINENO: checking size of long" >&5 |
14149 | $as_echo_n "checking size of long... " >&6; } | |
b0cacab0 | 14150 | if test "${ac_cv_sizeof_long+set}" = set; then |
39fd3d4f | 14151 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 14152 | else |
07a0db15 | 14153 | if test "$cross_compiling" = yes; then |
b0cacab0 TT |
14154 | # Depending upon the size, compute the lo and hi bounds. |
14155 | cat >conftest.$ac_ext <<_ACEOF | |
14156 | /* confdefs.h. */ | |
14157 | _ACEOF | |
14158 | cat confdefs.h >>conftest.$ac_ext | |
14159 | cat >>conftest.$ac_ext <<_ACEOF | |
14160 | /* end confdefs.h. */ | |
14161 | $ac_includes_default | |
14162 | int | |
14163 | main () | |
14164 | { | |
39fd3d4f | 14165 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)]; |
b0cacab0 TT |
14166 | test_array [0] = 0 |
14167 | ||
14168 | ; | |
14169 | return 0; | |
14170 | } | |
14171 | _ACEOF | |
14172 | rm -f conftest.$ac_objext | |
e1052144 TT |
14173 | if { (ac_try="$ac_compile" |
14174 | case "(($ac_try" in | |
14175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14176 | *) ac_try_echo=$ac_try;; | |
14177 | esac | |
39fd3d4f SJR |
14178 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14179 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 14180 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
14181 | ac_status=$? |
14182 | grep -v '^ *+' conftest.er1 >conftest.err | |
14183 | rm -f conftest.er1 | |
14184 | cat conftest.err >&5 | |
39fd3d4f | 14185 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
14186 | (exit $ac_status); } && { |
14187 | test -z "$ac_c_werror_flag" || | |
14188 | test ! -s conftest.err | |
14189 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
14190 | ac_lo=0 ac_mid=0 |
14191 | while :; do | |
14192 | cat >conftest.$ac_ext <<_ACEOF | |
14193 | /* confdefs.h. */ | |
14194 | _ACEOF | |
14195 | cat confdefs.h >>conftest.$ac_ext | |
14196 | cat >>conftest.$ac_ext <<_ACEOF | |
14197 | /* end confdefs.h. */ | |
14198 | $ac_includes_default | |
14199 | int | |
14200 | main () | |
14201 | { | |
39fd3d4f | 14202 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
b0cacab0 TT |
14203 | test_array [0] = 0 |
14204 | ||
14205 | ; | |
14206 | return 0; | |
14207 | } | |
14208 | _ACEOF | |
14209 | rm -f conftest.$ac_objext | |
e1052144 TT |
14210 | if { (ac_try="$ac_compile" |
14211 | case "(($ac_try" in | |
14212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14213 | *) ac_try_echo=$ac_try;; | |
14214 | esac | |
39fd3d4f SJR |
14215 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14216 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 14217 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
14218 | ac_status=$? |
14219 | grep -v '^ *+' conftest.er1 >conftest.err | |
14220 | rm -f conftest.er1 | |
14221 | cat conftest.err >&5 | |
39fd3d4f | 14222 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
14223 | (exit $ac_status); } && { |
14224 | test -z "$ac_c_werror_flag" || | |
14225 | test ! -s conftest.err | |
14226 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
14227 | ac_hi=$ac_mid; break |
14228 | else | |
39fd3d4f | 14229 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
14230 | sed 's/^/| /' conftest.$ac_ext >&5 |
14231 | ||
e1052144 TT |
14232 | ac_lo=`expr $ac_mid + 1` |
14233 | if test $ac_lo -le $ac_mid; then | |
14234 | ac_lo= ac_hi= | |
14235 | break | |
14236 | fi | |
14237 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
b0cacab0 | 14238 | fi |
e1052144 TT |
14239 | |
14240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 14241 | done |
07a0db15 | 14242 | else |
39fd3d4f | 14243 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
14244 | sed 's/^/| /' conftest.$ac_ext >&5 |
14245 | ||
e1052144 | 14246 | cat >conftest.$ac_ext <<_ACEOF |
b0cacab0 TT |
14247 | /* confdefs.h. */ |
14248 | _ACEOF | |
14249 | cat confdefs.h >>conftest.$ac_ext | |
14250 | cat >>conftest.$ac_ext <<_ACEOF | |
14251 | /* end confdefs.h. */ | |
14252 | $ac_includes_default | |
14253 | int | |
14254 | main () | |
50e1e10f | 14255 | { |
39fd3d4f | 14256 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)]; |
b0cacab0 TT |
14257 | test_array [0] = 0 |
14258 | ||
14259 | ; | |
14260 | return 0; | |
50e1e10f | 14261 | } |
b0cacab0 TT |
14262 | _ACEOF |
14263 | rm -f conftest.$ac_objext | |
e1052144 TT |
14264 | if { (ac_try="$ac_compile" |
14265 | case "(($ac_try" in | |
14266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14267 | *) ac_try_echo=$ac_try;; | |
14268 | esac | |
39fd3d4f SJR |
14269 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14270 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 14271 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
14272 | ac_status=$? |
14273 | grep -v '^ *+' conftest.er1 >conftest.err | |
14274 | rm -f conftest.er1 | |
14275 | cat conftest.err >&5 | |
39fd3d4f | 14276 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
14277 | (exit $ac_status); } && { |
14278 | test -z "$ac_c_werror_flag" || | |
14279 | test ! -s conftest.err | |
14280 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
14281 | ac_hi=-1 ac_mid=-1 |
14282 | while :; do | |
14283 | cat >conftest.$ac_ext <<_ACEOF | |
14284 | /* confdefs.h. */ | |
14285 | _ACEOF | |
14286 | cat confdefs.h >>conftest.$ac_ext | |
14287 | cat >>conftest.$ac_ext <<_ACEOF | |
14288 | /* end confdefs.h. */ | |
14289 | $ac_includes_default | |
14290 | int | |
14291 | main () | |
14292 | { | |
39fd3d4f | 14293 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)]; |
b0cacab0 TT |
14294 | test_array [0] = 0 |
14295 | ||
14296 | ; | |
14297 | return 0; | |
14298 | } | |
14299 | _ACEOF | |
14300 | rm -f conftest.$ac_objext | |
e1052144 TT |
14301 | if { (ac_try="$ac_compile" |
14302 | case "(($ac_try" in | |
14303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14304 | *) ac_try_echo=$ac_try;; | |
14305 | esac | |
39fd3d4f SJR |
14306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14307 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 14308 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
14309 | ac_status=$? |
14310 | grep -v '^ *+' conftest.er1 >conftest.err | |
14311 | rm -f conftest.er1 | |
14312 | cat conftest.err >&5 | |
39fd3d4f | 14313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
14314 | (exit $ac_status); } && { |
14315 | test -z "$ac_c_werror_flag" || | |
14316 | test ! -s conftest.err | |
14317 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
14318 | ac_lo=$ac_mid; break |
14319 | else | |
39fd3d4f | 14320 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
14321 | sed 's/^/| /' conftest.$ac_ext >&5 |
14322 | ||
e1052144 TT |
14323 | ac_hi=`expr '(' $ac_mid ')' - 1` |
14324 | if test $ac_mid -le $ac_hi; then | |
14325 | ac_lo= ac_hi= | |
14326 | break | |
14327 | fi | |
14328 | ac_mid=`expr 2 '*' $ac_mid` | |
b0cacab0 | 14329 | fi |
e1052144 TT |
14330 | |
14331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 14332 | done |
07a0db15 | 14333 | else |
39fd3d4f | 14334 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 | 14335 | sed 's/^/| /' conftest.$ac_ext >&5 |
93636bde | 14336 | |
e1052144 | 14337 | ac_lo= ac_hi= |
93636bde | 14338 | fi |
e1052144 TT |
14339 | |
14340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 14341 | fi |
e1052144 TT |
14342 | |
14343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
14344 | # Binary search between lo and hi bounds. |
14345 | while test "x$ac_lo" != "x$ac_hi"; do | |
14346 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14347 | cat >conftest.$ac_ext <<_ACEOF | |
14348 | /* confdefs.h. */ | |
14349 | _ACEOF | |
14350 | cat confdefs.h >>conftest.$ac_ext | |
14351 | cat >>conftest.$ac_ext <<_ACEOF | |
14352 | /* end confdefs.h. */ | |
14353 | $ac_includes_default | |
14354 | int | |
14355 | main () | |
14356 | { | |
39fd3d4f | 14357 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
b0cacab0 | 14358 | test_array [0] = 0 |
93636bde | 14359 | |
b0cacab0 TT |
14360 | ; |
14361 | return 0; | |
14362 | } | |
14363 | _ACEOF | |
14364 | rm -f conftest.$ac_objext | |
e1052144 TT |
14365 | if { (ac_try="$ac_compile" |
14366 | case "(($ac_try" in | |
14367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14368 | *) ac_try_echo=$ac_try;; | |
14369 | esac | |
39fd3d4f SJR |
14370 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14371 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 14372 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
14373 | ac_status=$? |
14374 | grep -v '^ *+' conftest.er1 >conftest.err | |
14375 | rm -f conftest.er1 | |
14376 | cat conftest.err >&5 | |
39fd3d4f | 14377 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
14378 | (exit $ac_status); } && { |
14379 | test -z "$ac_c_werror_flag" || | |
14380 | test ! -s conftest.err | |
14381 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
14382 | ac_hi=$ac_mid |
14383 | else | |
39fd3d4f | 14384 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
14385 | sed 's/^/| /' conftest.$ac_ext >&5 |
14386 | ||
e1052144 | 14387 | ac_lo=`expr '(' $ac_mid ')' + 1` |
b0cacab0 | 14388 | fi |
e1052144 TT |
14389 | |
14390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
14391 | done |
14392 | case $ac_lo in | |
14393 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
29a5deed | 14394 | '') if test "$ac_cv_type_long" = yes; then |
39fd3d4f SJR |
14395 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14396 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14397 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
b0cacab0 | 14398 | See \`config.log' for more details." >&5 |
39fd3d4f | 14399 | $as_echo "$as_me: error: cannot compute sizeof (long) |
b0cacab0 | 14400 | See \`config.log' for more details." >&2;} |
39fd3d4f | 14401 | { (exit 77); exit 77; }; }; } |
29a5deed TT |
14402 | else |
14403 | ac_cv_sizeof_long=0 | |
14404 | fi ;; | |
b0cacab0 | 14405 | esac |
b0cacab0 TT |
14406 | else |
14407 | cat >conftest.$ac_ext <<_ACEOF | |
14408 | /* confdefs.h. */ | |
14409 | _ACEOF | |
14410 | cat confdefs.h >>conftest.$ac_ext | |
14411 | cat >>conftest.$ac_ext <<_ACEOF | |
14412 | /* end confdefs.h. */ | |
14413 | $ac_includes_default | |
39fd3d4f SJR |
14414 | static long int longval () { return (long int) (sizeof (long)); } |
14415 | static unsigned long int ulongval () { return (long int) (sizeof (long)); } | |
93636bde | 14416 | #include <stdio.h> |
b0cacab0 TT |
14417 | #include <stdlib.h> |
14418 | int | |
14419 | main () | |
07a0db15 | 14420 | { |
b0cacab0 TT |
14421 | |
14422 | FILE *f = fopen ("conftest.val", "w"); | |
14423 | if (! f) | |
e1052144 | 14424 | return 1; |
39fd3d4f | 14425 | if (((long int) (sizeof (long))) < 0) |
b0cacab0 | 14426 | { |
e1052144 | 14427 | long int i = longval (); |
39fd3d4f | 14428 | if (i != ((long int) (sizeof (long)))) |
e1052144 | 14429 | return 1; |
39fd3d4f | 14430 | fprintf (f, "%ld", i); |
b0cacab0 TT |
14431 | } |
14432 | else | |
14433 | { | |
e1052144 | 14434 | unsigned long int i = ulongval (); |
39fd3d4f | 14435 | if (i != ((long int) (sizeof (long)))) |
e1052144 | 14436 | return 1; |
39fd3d4f | 14437 | fprintf (f, "%lu", i); |
b0cacab0 | 14438 | } |
39fd3d4f SJR |
14439 | /* Do not output a trailing newline, as this causes \r\n confusion |
14440 | on some platforms. */ | |
e1052144 | 14441 | return ferror (f) || fclose (f) != 0; |
b0cacab0 TT |
14442 | |
14443 | ; | |
14444 | return 0; | |
07a0db15 | 14445 | } |
b0cacab0 TT |
14446 | _ACEOF |
14447 | rm -f conftest$ac_exeext | |
e1052144 TT |
14448 | if { (ac_try="$ac_link" |
14449 | case "(($ac_try" in | |
14450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14451 | *) ac_try_echo=$ac_try;; | |
14452 | esac | |
39fd3d4f SJR |
14453 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14454 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 14455 | (eval "$ac_link") 2>&5 |
b0cacab0 | 14456 | ac_status=$? |
39fd3d4f | 14457 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 14458 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
e1052144 TT |
14459 | { (case "(($ac_try" in |
14460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14461 | *) ac_try_echo=$ac_try;; | |
14462 | esac | |
39fd3d4f SJR |
14463 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14464 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 14465 | (eval "$ac_try") 2>&5 |
b0cacab0 | 14466 | ac_status=$? |
39fd3d4f | 14467 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 TT |
14468 | (exit $ac_status); }; }; then |
14469 | ac_cv_sizeof_long=`cat conftest.val` | |
14470 | else | |
39fd3d4f SJR |
14471 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
14472 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
14473 | sed 's/^/| /' conftest.$ac_ext >&5 |
14474 | ||
14475 | ( exit $ac_status ) | |
29a5deed | 14476 | if test "$ac_cv_type_long" = yes; then |
39fd3d4f SJR |
14477 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14478 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14479 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
b0cacab0 | 14480 | See \`config.log' for more details." >&5 |
39fd3d4f | 14481 | $as_echo "$as_me: error: cannot compute sizeof (long) |
b0cacab0 | 14482 | See \`config.log' for more details." >&2;} |
39fd3d4f | 14483 | { (exit 77); exit 77; }; }; } |
29a5deed TT |
14484 | else |
14485 | ac_cv_sizeof_long=0 | |
14486 | fi | |
b0cacab0 | 14487 | fi |
39fd3d4f | 14488 | rm -rf conftest.dSYM |
e1052144 | 14489 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
14490 | fi |
14491 | rm -f conftest.val | |
50e1e10f | 14492 | fi |
39fd3d4f SJR |
14493 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
14494 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
29a5deed TT |
14495 | |
14496 | ||
14497 | ||
b0cacab0 TT |
14498 | cat >>confdefs.h <<_ACEOF |
14499 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
14500 | _ACEOF | |
50e1e10f | 14501 | |
93636bde | 14502 | |
29a5deed TT |
14503 | # The cast to long int works around a bug in the HP C Compiler |
14504 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14505 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14506 | # This bug is HP SR number 8606223364. | |
39fd3d4f SJR |
14507 | { $as_echo "$as_me:$LINENO: checking size of long long" >&5 |
14508 | $as_echo_n "checking size of long long... " >&6; } | |
b0cacab0 | 14509 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
39fd3d4f | 14510 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 14511 | else |
50e1e10f | 14512 | if test "$cross_compiling" = yes; then |
b0cacab0 TT |
14513 | # Depending upon the size, compute the lo and hi bounds. |
14514 | cat >conftest.$ac_ext <<_ACEOF | |
14515 | /* confdefs.h. */ | |
14516 | _ACEOF | |
14517 | cat confdefs.h >>conftest.$ac_ext | |
14518 | cat >>conftest.$ac_ext <<_ACEOF | |
14519 | /* end confdefs.h. */ | |
14520 | $ac_includes_default | |
14521 | int | |
14522 | main () | |
14523 | { | |
39fd3d4f | 14524 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)]; |
b0cacab0 TT |
14525 | test_array [0] = 0 |
14526 | ||
14527 | ; | |
14528 | return 0; | |
14529 | } | |
14530 | _ACEOF | |
14531 | rm -f conftest.$ac_objext | |
e1052144 TT |
14532 | if { (ac_try="$ac_compile" |
14533 | case "(($ac_try" in | |
14534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14535 | *) ac_try_echo=$ac_try;; | |
14536 | esac | |
39fd3d4f SJR |
14537 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14538 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 14539 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
14540 | ac_status=$? |
14541 | grep -v '^ *+' conftest.er1 >conftest.err | |
14542 | rm -f conftest.er1 | |
14543 | cat conftest.err >&5 | |
39fd3d4f | 14544 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
14545 | (exit $ac_status); } && { |
14546 | test -z "$ac_c_werror_flag" || | |
14547 | test ! -s conftest.err | |
14548 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
14549 | ac_lo=0 ac_mid=0 |
14550 | while :; do | |
14551 | cat >conftest.$ac_ext <<_ACEOF | |
14552 | /* confdefs.h. */ | |
14553 | _ACEOF | |
14554 | cat confdefs.h >>conftest.$ac_ext | |
14555 | cat >>conftest.$ac_ext <<_ACEOF | |
14556 | /* end confdefs.h. */ | |
14557 | $ac_includes_default | |
14558 | int | |
14559 | main () | |
14560 | { | |
39fd3d4f | 14561 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; |
b0cacab0 TT |
14562 | test_array [0] = 0 |
14563 | ||
14564 | ; | |
14565 | return 0; | |
14566 | } | |
14567 | _ACEOF | |
14568 | rm -f conftest.$ac_objext | |
e1052144 TT |
14569 | if { (ac_try="$ac_compile" |
14570 | case "(($ac_try" in | |
14571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14572 | *) ac_try_echo=$ac_try;; | |
14573 | esac | |
39fd3d4f SJR |
14574 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14575 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 14576 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
14577 | ac_status=$? |
14578 | grep -v '^ *+' conftest.er1 >conftest.err | |
14579 | rm -f conftest.er1 | |
14580 | cat conftest.err >&5 | |
39fd3d4f | 14581 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
14582 | (exit $ac_status); } && { |
14583 | test -z "$ac_c_werror_flag" || | |
14584 | test ! -s conftest.err | |
14585 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
14586 | ac_hi=$ac_mid; break |
14587 | else | |
39fd3d4f | 14588 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
14589 | sed 's/^/| /' conftest.$ac_ext >&5 |
14590 | ||
e1052144 TT |
14591 | ac_lo=`expr $ac_mid + 1` |
14592 | if test $ac_lo -le $ac_mid; then | |
14593 | ac_lo= ac_hi= | |
14594 | break | |
14595 | fi | |
14596 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
b0cacab0 | 14597 | fi |
e1052144 TT |
14598 | |
14599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 14600 | done |
50e1e10f | 14601 | else |
39fd3d4f | 14602 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
14603 | sed 's/^/| /' conftest.$ac_ext >&5 |
14604 | ||
e1052144 | 14605 | cat >conftest.$ac_ext <<_ACEOF |
b0cacab0 TT |
14606 | /* confdefs.h. */ |
14607 | _ACEOF | |
14608 | cat confdefs.h >>conftest.$ac_ext | |
14609 | cat >>conftest.$ac_ext <<_ACEOF | |
14610 | /* end confdefs.h. */ | |
14611 | $ac_includes_default | |
14612 | int | |
14613 | main () | |
50e1e10f | 14614 | { |
39fd3d4f | 14615 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)]; |
b0cacab0 TT |
14616 | test_array [0] = 0 |
14617 | ||
14618 | ; | |
14619 | return 0; | |
50e1e10f | 14620 | } |
b0cacab0 TT |
14621 | _ACEOF |
14622 | rm -f conftest.$ac_objext | |
e1052144 TT |
14623 | if { (ac_try="$ac_compile" |
14624 | case "(($ac_try" in | |
14625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14626 | *) ac_try_echo=$ac_try;; | |
14627 | esac | |
39fd3d4f SJR |
14628 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14629 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 14630 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
14631 | ac_status=$? |
14632 | grep -v '^ *+' conftest.er1 >conftest.err | |
14633 | rm -f conftest.er1 | |
14634 | cat conftest.err >&5 | |
39fd3d4f | 14635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
14636 | (exit $ac_status); } && { |
14637 | test -z "$ac_c_werror_flag" || | |
14638 | test ! -s conftest.err | |
14639 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
14640 | ac_hi=-1 ac_mid=-1 |
14641 | while :; do | |
14642 | cat >conftest.$ac_ext <<_ACEOF | |
14643 | /* confdefs.h. */ | |
14644 | _ACEOF | |
14645 | cat confdefs.h >>conftest.$ac_ext | |
14646 | cat >>conftest.$ac_ext <<_ACEOF | |
14647 | /* end confdefs.h. */ | |
14648 | $ac_includes_default | |
14649 | int | |
14650 | main () | |
14651 | { | |
39fd3d4f | 14652 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)]; |
b0cacab0 TT |
14653 | test_array [0] = 0 |
14654 | ||
14655 | ; | |
14656 | return 0; | |
14657 | } | |
14658 | _ACEOF | |
14659 | rm -f conftest.$ac_objext | |
e1052144 TT |
14660 | if { (ac_try="$ac_compile" |
14661 | case "(($ac_try" in | |
14662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14663 | *) ac_try_echo=$ac_try;; | |
14664 | esac | |
39fd3d4f SJR |
14665 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14666 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 14667 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
14668 | ac_status=$? |
14669 | grep -v '^ *+' conftest.er1 >conftest.err | |
14670 | rm -f conftest.er1 | |
14671 | cat conftest.err >&5 | |
39fd3d4f | 14672 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
14673 | (exit $ac_status); } && { |
14674 | test -z "$ac_c_werror_flag" || | |
14675 | test ! -s conftest.err | |
14676 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
14677 | ac_lo=$ac_mid; break |
14678 | else | |
39fd3d4f | 14679 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
14680 | sed 's/^/| /' conftest.$ac_ext >&5 |
14681 | ||
e1052144 TT |
14682 | ac_hi=`expr '(' $ac_mid ')' - 1` |
14683 | if test $ac_mid -le $ac_hi; then | |
14684 | ac_lo= ac_hi= | |
14685 | break | |
14686 | fi | |
14687 | ac_mid=`expr 2 '*' $ac_mid` | |
b0cacab0 | 14688 | fi |
e1052144 TT |
14689 | |
14690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 14691 | done |
07a0db15 | 14692 | else |
39fd3d4f | 14693 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 | 14694 | sed 's/^/| /' conftest.$ac_ext >&5 |
93636bde | 14695 | |
e1052144 | 14696 | ac_lo= ac_hi= |
07a0db15 | 14697 | fi |
e1052144 TT |
14698 | |
14699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 14700 | fi |
e1052144 TT |
14701 | |
14702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
14703 | # Binary search between lo and hi bounds. |
14704 | while test "x$ac_lo" != "x$ac_hi"; do | |
14705 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14706 | cat >conftest.$ac_ext <<_ACEOF | |
14707 | /* confdefs.h. */ | |
14708 | _ACEOF | |
14709 | cat confdefs.h >>conftest.$ac_ext | |
14710 | cat >>conftest.$ac_ext <<_ACEOF | |
14711 | /* end confdefs.h. */ | |
14712 | $ac_includes_default | |
14713 | int | |
14714 | main () | |
14715 | { | |
39fd3d4f | 14716 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; |
b0cacab0 | 14717 | test_array [0] = 0 |
93636bde | 14718 | |
b0cacab0 TT |
14719 | ; |
14720 | return 0; | |
14721 | } | |
14722 | _ACEOF | |
14723 | rm -f conftest.$ac_objext | |
e1052144 TT |
14724 | if { (ac_try="$ac_compile" |
14725 | case "(($ac_try" in | |
14726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14727 | *) ac_try_echo=$ac_try;; | |
14728 | esac | |
39fd3d4f SJR |
14729 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14730 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 14731 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 | 14732 | ac_status=$? |
29a5deed TT |
14733 | grep -v '^ *+' conftest.er1 >conftest.err |
14734 | rm -f conftest.er1 | |
14735 | cat conftest.err >&5 | |
39fd3d4f | 14736 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
14737 | (exit $ac_status); } && { |
14738 | test -z "$ac_c_werror_flag" || | |
14739 | test ! -s conftest.err | |
14740 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
14741 | ac_hi=$ac_mid |
14742 | else | |
39fd3d4f | 14743 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
14744 | sed 's/^/| /' conftest.$ac_ext >&5 |
14745 | ||
e1052144 | 14746 | ac_lo=`expr '(' $ac_mid ')' + 1` |
b0cacab0 | 14747 | fi |
e1052144 TT |
14748 | |
14749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
14750 | done |
14751 | case $ac_lo in | |
14752 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
29a5deed | 14753 | '') if test "$ac_cv_type_long_long" = yes; then |
39fd3d4f SJR |
14754 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14755 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14756 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
b0cacab0 | 14757 | See \`config.log' for more details." >&5 |
39fd3d4f | 14758 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
b0cacab0 | 14759 | See \`config.log' for more details." >&2;} |
39fd3d4f | 14760 | { (exit 77); exit 77; }; }; } |
29a5deed TT |
14761 | else |
14762 | ac_cv_sizeof_long_long=0 | |
14763 | fi ;; | |
b0cacab0 | 14764 | esac |
b0cacab0 TT |
14765 | else |
14766 | cat >conftest.$ac_ext <<_ACEOF | |
14767 | /* confdefs.h. */ | |
14768 | _ACEOF | |
14769 | cat confdefs.h >>conftest.$ac_ext | |
14770 | cat >>conftest.$ac_ext <<_ACEOF | |
14771 | /* end confdefs.h. */ | |
39fd3d4f SJR |
14772 | $ac_includes_default |
14773 | static long int longval () { return (long int) (sizeof (long long)); } | |
14774 | static unsigned long int ulongval () { return (long int) (sizeof (long long)); } | |
14775 | #include <stdio.h> | |
14776 | #include <stdlib.h> | |
14777 | int | |
14778 | main () | |
14779 | { | |
14780 | ||
14781 | FILE *f = fopen ("conftest.val", "w"); | |
14782 | if (! f) | |
14783 | return 1; | |
14784 | if (((long int) (sizeof (long long))) < 0) | |
14785 | { | |
14786 | long int i = longval (); | |
14787 | if (i != ((long int) (sizeof (long long)))) | |
14788 | return 1; | |
14789 | fprintf (f, "%ld", i); | |
14790 | } | |
14791 | else | |
14792 | { | |
14793 | unsigned long int i = ulongval (); | |
14794 | if (i != ((long int) (sizeof (long long)))) | |
14795 | return 1; | |
14796 | fprintf (f, "%lu", i); | |
14797 | } | |
14798 | /* Do not output a trailing newline, as this causes \r\n confusion | |
14799 | on some platforms. */ | |
14800 | return ferror (f) || fclose (f) != 0; | |
14801 | ||
14802 | ; | |
14803 | return 0; | |
14804 | } | |
14805 | _ACEOF | |
14806 | rm -f conftest$ac_exeext | |
14807 | if { (ac_try="$ac_link" | |
14808 | case "(($ac_try" in | |
14809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14810 | *) ac_try_echo=$ac_try;; | |
14811 | esac | |
14812 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14813 | $as_echo "$ac_try_echo") >&5 | |
14814 | (eval "$ac_link") 2>&5 | |
14815 | ac_status=$? | |
14816 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14817 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14818 | { (case "(($ac_try" in | |
14819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14820 | *) ac_try_echo=$ac_try;; | |
14821 | esac | |
14822 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14823 | $as_echo "$ac_try_echo") >&5 | |
14824 | (eval "$ac_try") 2>&5 | |
14825 | ac_status=$? | |
14826 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14827 | (exit $ac_status); }; }; then | |
14828 | ac_cv_sizeof_long_long=`cat conftest.val` | |
14829 | else | |
14830 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
14831 | $as_echo "$as_me: failed program was:" >&5 | |
14832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14833 | ||
14834 | ( exit $ac_status ) | |
14835 | if test "$ac_cv_type_long_long" = yes; then | |
14836 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
14837 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14838 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
14839 | See \`config.log' for more details." >&5 | |
14840 | $as_echo "$as_me: error: cannot compute sizeof (long long) | |
14841 | See \`config.log' for more details." >&2;} | |
14842 | { (exit 77); exit 77; }; }; } | |
14843 | else | |
14844 | ac_cv_sizeof_long_long=0 | |
14845 | fi | |
14846 | fi | |
14847 | rm -rf conftest.dSYM | |
14848 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14849 | fi | |
14850 | rm -f conftest.val | |
14851 | fi | |
14852 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
14853 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
14854 | ||
14855 | ||
14856 | ||
14857 | cat >>confdefs.h <<_ACEOF | |
14858 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
14859 | _ACEOF | |
14860 | ||
14861 | ||
14862 | SIZEOF_SHORT=$ac_cv_sizeof_short | |
14863 | SIZEOF_INT=$ac_cv_sizeof_int | |
14864 | SIZEOF_LONG=$ac_cv_sizeof_long | |
14865 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long | |
14866 | ||
14867 | ||
14868 | ||
14869 | ||
14870 | ||
14871 | { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
14872 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
14873 | if test "${ac_cv_c_bigendian+set}" = set; then | |
14874 | $as_echo_n "(cached) " >&6 | |
14875 | else | |
14876 | ac_cv_c_bigendian=unknown | |
14877 | # See if we're dealing with a universal compiler. | |
14878 | cat >conftest.$ac_ext <<_ACEOF | |
14879 | /* confdefs.h. */ | |
14880 | _ACEOF | |
14881 | cat confdefs.h >>conftest.$ac_ext | |
14882 | cat >>conftest.$ac_ext <<_ACEOF | |
14883 | /* end confdefs.h. */ | |
14884 | #ifndef __APPLE_CC__ | |
14885 | not a universal capable compiler | |
14886 | #endif | |
14887 | typedef int dummy; | |
14888 | ||
14889 | _ACEOF | |
14890 | rm -f conftest.$ac_objext | |
14891 | if { (ac_try="$ac_compile" | |
14892 | case "(($ac_try" in | |
14893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14894 | *) ac_try_echo=$ac_try;; | |
14895 | esac | |
14896 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14897 | $as_echo "$ac_try_echo") >&5 | |
14898 | (eval "$ac_compile") 2>conftest.er1 | |
14899 | ac_status=$? | |
14900 | grep -v '^ *+' conftest.er1 >conftest.err | |
14901 | rm -f conftest.er1 | |
14902 | cat conftest.err >&5 | |
14903 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14904 | (exit $ac_status); } && { | |
14905 | test -z "$ac_c_werror_flag" || | |
14906 | test ! -s conftest.err | |
14907 | } && test -s conftest.$ac_objext; then | |
14908 | ||
14909 | # Check for potential -arch flags. It is not universal unless | |
14910 | # there are some -arch flags. Note that *ppc* also matches | |
14911 | # ppc64. This check is also rather less than ideal. | |
14912 | case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( | |
14913 | *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; | |
14914 | esac | |
14915 | else | |
14916 | $as_echo "$as_me: failed program was:" >&5 | |
14917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14918 | ||
14919 | ||
14920 | fi | |
14921 | ||
14922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14923 | if test $ac_cv_c_bigendian = unknown; then | |
14924 | # See if sys/param.h defines the BYTE_ORDER macro. | |
14925 | cat >conftest.$ac_ext <<_ACEOF | |
14926 | /* confdefs.h. */ | |
14927 | _ACEOF | |
14928 | cat confdefs.h >>conftest.$ac_ext | |
14929 | cat >>conftest.$ac_ext <<_ACEOF | |
14930 | /* end confdefs.h. */ | |
14931 | #include <sys/types.h> | |
14932 | #include <sys/param.h> | |
14933 | ||
14934 | int | |
14935 | main () | |
14936 | { | |
14937 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
14938 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
14939 | && LITTLE_ENDIAN) | |
14940 | bogus endian macros | |
14941 | #endif | |
14942 | ||
14943 | ; | |
14944 | return 0; | |
14945 | } | |
14946 | _ACEOF | |
14947 | rm -f conftest.$ac_objext | |
14948 | if { (ac_try="$ac_compile" | |
14949 | case "(($ac_try" in | |
14950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14951 | *) ac_try_echo=$ac_try;; | |
14952 | esac | |
14953 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14954 | $as_echo "$ac_try_echo") >&5 | |
14955 | (eval "$ac_compile") 2>conftest.er1 | |
14956 | ac_status=$? | |
14957 | grep -v '^ *+' conftest.er1 >conftest.err | |
14958 | rm -f conftest.er1 | |
14959 | cat conftest.err >&5 | |
14960 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14961 | (exit $ac_status); } && { | |
14962 | test -z "$ac_c_werror_flag" || | |
14963 | test ! -s conftest.err | |
14964 | } && test -s conftest.$ac_objext; then | |
14965 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
14966 | cat >conftest.$ac_ext <<_ACEOF | |
14967 | /* confdefs.h. */ | |
14968 | _ACEOF | |
14969 | cat confdefs.h >>conftest.$ac_ext | |
14970 | cat >>conftest.$ac_ext <<_ACEOF | |
14971 | /* end confdefs.h. */ | |
14972 | #include <sys/types.h> | |
14973 | #include <sys/param.h> | |
14974 | ||
b0cacab0 TT |
14975 | int |
14976 | main () | |
07a0db15 | 14977 | { |
39fd3d4f SJR |
14978 | #if BYTE_ORDER != BIG_ENDIAN |
14979 | not big endian | |
14980 | #endif | |
b0cacab0 TT |
14981 | |
14982 | ; | |
14983 | return 0; | |
07a0db15 | 14984 | } |
b0cacab0 | 14985 | _ACEOF |
39fd3d4f SJR |
14986 | rm -f conftest.$ac_objext |
14987 | if { (ac_try="$ac_compile" | |
e1052144 TT |
14988 | case "(($ac_try" in |
14989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14990 | *) ac_try_echo=$ac_try;; | |
14991 | esac | |
39fd3d4f SJR |
14992 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14993 | $as_echo "$ac_try_echo") >&5 | |
14994 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 | 14995 | ac_status=$? |
39fd3d4f SJR |
14996 | grep -v '^ *+' conftest.er1 >conftest.err |
14997 | rm -f conftest.er1 | |
14998 | cat conftest.err >&5 | |
14999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15000 | (exit $ac_status); } && { | |
15001 | test -z "$ac_c_werror_flag" || | |
15002 | test ! -s conftest.err | |
15003 | } && test -s conftest.$ac_objext; then | |
15004 | ac_cv_c_bigendian=yes | |
b0cacab0 | 15005 | else |
39fd3d4f | 15006 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
15007 | sed 's/^/| /' conftest.$ac_ext >&5 |
15008 | ||
39fd3d4f | 15009 | ac_cv_c_bigendian=no |
fc6d9d51 | 15010 | fi |
fc6d9d51 | 15011 | |
39fd3d4f SJR |
15012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15013 | else | |
15014 | $as_echo "$as_me: failed program was:" >&5 | |
15015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
93636bde TT |
15016 | |
15017 | ||
39fd3d4f | 15018 | fi |
93636bde | 15019 | |
39fd3d4f SJR |
15020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15021 | fi | |
15022 | if test $ac_cv_c_bigendian = unknown; then | |
15023 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
15024 | cat >conftest.$ac_ext <<_ACEOF | |
b0cacab0 TT |
15025 | /* confdefs.h. */ |
15026 | _ACEOF | |
15027 | cat confdefs.h >>conftest.$ac_ext | |
15028 | cat >>conftest.$ac_ext <<_ACEOF | |
15029 | /* end confdefs.h. */ | |
39fd3d4f | 15030 | #include <limits.h> |
877eb6d9 | 15031 | |
b0cacab0 TT |
15032 | int |
15033 | main () | |
15034 | { | |
39fd3d4f SJR |
15035 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
15036 | bogus endian macros | |
15037 | #endif | |
b0cacab0 TT |
15038 | |
15039 | ; | |
15040 | return 0; | |
15041 | } | |
15042 | _ACEOF | |
15043 | rm -f conftest.$ac_objext | |
e1052144 TT |
15044 | if { (ac_try="$ac_compile" |
15045 | case "(($ac_try" in | |
15046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15047 | *) ac_try_echo=$ac_try;; | |
15048 | esac | |
39fd3d4f SJR |
15049 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15050 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 15051 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
15052 | ac_status=$? |
15053 | grep -v '^ *+' conftest.er1 >conftest.err | |
15054 | rm -f conftest.er1 | |
15055 | cat conftest.err >&5 | |
39fd3d4f | 15056 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
15057 | (exit $ac_status); } && { |
15058 | test -z "$ac_c_werror_flag" || | |
15059 | test ! -s conftest.err | |
15060 | } && test -s conftest.$ac_objext; then | |
39fd3d4f SJR |
15061 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
15062 | cat >conftest.$ac_ext <<_ACEOF | |
b0cacab0 TT |
15063 | /* confdefs.h. */ |
15064 | _ACEOF | |
15065 | cat confdefs.h >>conftest.$ac_ext | |
15066 | cat >>conftest.$ac_ext <<_ACEOF | |
15067 | /* end confdefs.h. */ | |
39fd3d4f | 15068 | #include <limits.h> |
877eb6d9 | 15069 | |
b0cacab0 TT |
15070 | int |
15071 | main () | |
15072 | { | |
39fd3d4f SJR |
15073 | #ifndef _BIG_ENDIAN |
15074 | not big endian | |
15075 | #endif | |
b0cacab0 TT |
15076 | |
15077 | ; | |
15078 | return 0; | |
15079 | } | |
15080 | _ACEOF | |
15081 | rm -f conftest.$ac_objext | |
e1052144 TT |
15082 | if { (ac_try="$ac_compile" |
15083 | case "(($ac_try" in | |
15084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15085 | *) ac_try_echo=$ac_try;; | |
15086 | esac | |
39fd3d4f SJR |
15087 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15088 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 15089 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
15090 | ac_status=$? |
15091 | grep -v '^ *+' conftest.er1 >conftest.err | |
15092 | rm -f conftest.er1 | |
15093 | cat conftest.err >&5 | |
39fd3d4f | 15094 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
15095 | (exit $ac_status); } && { |
15096 | test -z "$ac_c_werror_flag" || | |
15097 | test ! -s conftest.err | |
15098 | } && test -s conftest.$ac_objext; then | |
877eb6d9 TT |
15099 | ac_cv_c_bigendian=yes |
15100 | else | |
39fd3d4f | 15101 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
15102 | sed 's/^/| /' conftest.$ac_ext >&5 |
15103 | ||
e1052144 | 15104 | ac_cv_c_bigendian=no |
877eb6d9 | 15105 | fi |
e1052144 TT |
15106 | |
15107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
877eb6d9 | 15108 | else |
39fd3d4f | 15109 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
15110 | sed 's/^/| /' conftest.$ac_ext >&5 |
15111 | ||
39fd3d4f SJR |
15112 | |
15113 | fi | |
15114 | ||
15115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15116 | fi | |
15117 | if test $ac_cv_c_bigendian = unknown; then | |
15118 | # Compile a test program. | |
15119 | if test "$cross_compiling" = yes; then | |
15120 | # Try to guess by grepping values from an object file. | |
15121 | cat >conftest.$ac_ext <<_ACEOF | |
b0cacab0 TT |
15122 | /* confdefs.h. */ |
15123 | _ACEOF | |
15124 | cat confdefs.h >>conftest.$ac_ext | |
15125 | cat >>conftest.$ac_ext <<_ACEOF | |
15126 | /* end confdefs.h. */ | |
39fd3d4f SJR |
15127 | short int ascii_mm[] = |
15128 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
15129 | short int ascii_ii[] = | |
15130 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
15131 | int use_ascii (int i) { | |
15132 | return ascii_mm[i] + ascii_ii[i]; | |
15133 | } | |
15134 | short int ebcdic_ii[] = | |
15135 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
15136 | short int ebcdic_mm[] = | |
15137 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
15138 | int use_ebcdic (int i) { | |
15139 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
15140 | } | |
15141 | extern int foo; | |
15142 | ||
b0cacab0 TT |
15143 | int |
15144 | main () | |
15145 | { | |
39fd3d4f | 15146 | return use_ascii (foo) == use_ebcdic (foo); |
b0cacab0 TT |
15147 | ; |
15148 | return 0; | |
15149 | } | |
15150 | _ACEOF | |
15151 | rm -f conftest.$ac_objext | |
e1052144 TT |
15152 | if { (ac_try="$ac_compile" |
15153 | case "(($ac_try" in | |
15154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15155 | *) ac_try_echo=$ac_try;; | |
15156 | esac | |
39fd3d4f SJR |
15157 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15158 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 15159 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
15160 | ac_status=$? |
15161 | grep -v '^ *+' conftest.er1 >conftest.err | |
15162 | rm -f conftest.er1 | |
15163 | cat conftest.err >&5 | |
39fd3d4f | 15164 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
15165 | (exit $ac_status); } && { |
15166 | test -z "$ac_c_werror_flag" || | |
15167 | test ! -s conftest.err | |
15168 | } && test -s conftest.$ac_objext; then | |
39fd3d4f SJR |
15169 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
15170 | ac_cv_c_bigendian=yes | |
15171 | fi | |
15172 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
15173 | if test "$ac_cv_c_bigendian" = unknown; then | |
15174 | ac_cv_c_bigendian=no | |
15175 | else | |
15176 | # finding both strings is unlikely to happen, but who knows? | |
15177 | ac_cv_c_bigendian=unknown | |
15178 | fi | |
15179 | fi | |
15180 | else | |
15181 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
15182 | sed 's/^/| /' conftest.$ac_ext >&5 |
15183 | ||
e1052144 | 15184 | |
b0cacab0 | 15185 | fi |
e1052144 TT |
15186 | |
15187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
877eb6d9 | 15188 | else |
b0cacab0 TT |
15189 | cat >conftest.$ac_ext <<_ACEOF |
15190 | /* confdefs.h. */ | |
15191 | _ACEOF | |
15192 | cat confdefs.h >>conftest.$ac_ext | |
15193 | cat >>conftest.$ac_ext <<_ACEOF | |
15194 | /* end confdefs.h. */ | |
e1052144 | 15195 | $ac_includes_default |
b0cacab0 TT |
15196 | int |
15197 | main () | |
15198 | { | |
e1052144 | 15199 | |
39fd3d4f SJR |
15200 | /* Are we little or big endian? From Harbison&Steele. */ |
15201 | union | |
15202 | { | |
15203 | long int l; | |
15204 | char c[sizeof (long int)]; | |
15205 | } u; | |
15206 | u.l = 1; | |
15207 | return u.c[sizeof (long int) - 1] == 1; | |
e1052144 TT |
15208 | |
15209 | ; | |
15210 | return 0; | |
877eb6d9 | 15211 | } |
b0cacab0 TT |
15212 | _ACEOF |
15213 | rm -f conftest$ac_exeext | |
e1052144 TT |
15214 | if { (ac_try="$ac_link" |
15215 | case "(($ac_try" in | |
15216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15217 | *) ac_try_echo=$ac_try;; | |
15218 | esac | |
39fd3d4f SJR |
15219 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15220 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 15221 | (eval "$ac_link") 2>&5 |
b0cacab0 | 15222 | ac_status=$? |
39fd3d4f | 15223 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 15224 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
e1052144 TT |
15225 | { (case "(($ac_try" in |
15226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15227 | *) ac_try_echo=$ac_try;; | |
15228 | esac | |
39fd3d4f SJR |
15229 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15230 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 15231 | (eval "$ac_try") 2>&5 |
b0cacab0 | 15232 | ac_status=$? |
39fd3d4f | 15233 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b0cacab0 | 15234 | (exit $ac_status); }; }; then |
877eb6d9 TT |
15235 | ac_cv_c_bigendian=no |
15236 | else | |
39fd3d4f SJR |
15237 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
15238 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
15239 | sed 's/^/| /' conftest.$ac_ext >&5 |
15240 | ||
15241 | ( exit $ac_status ) | |
15242 | ac_cv_c_bigendian=yes | |
877eb6d9 | 15243 | fi |
39fd3d4f | 15244 | rm -rf conftest.dSYM |
e1052144 | 15245 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
877eb6d9 | 15246 | fi |
e1052144 TT |
15247 | |
15248 | ||
39fd3d4f | 15249 | fi |
877eb6d9 | 15250 | fi |
39fd3d4f SJR |
15251 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
15252 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
15253 | case $ac_cv_c_bigendian in #( | |
15254 | yes) | |
15255 | cat >>confdefs.h <<\_ACEOF | |
15256 | #define WORDS_BIGENDIAN 1 | |
15257 | _ACEOF | |
15258 | ;; #( | |
15259 | no) | |
15260 | ;; #( | |
15261 | universal) | |
07a0db15 | 15262 | |
b0cacab0 | 15263 | cat >>confdefs.h <<\_ACEOF |
39fd3d4f | 15264 | #define AC_APPLE_UNIVERSAL_BUILD 1 |
b0cacab0 | 15265 | _ACEOF |
39fd3d4f SJR |
15266 | |
15267 | ;; #( | |
15268 | *) | |
15269 | { { $as_echo "$as_me:$LINENO: error: unknown endianness | |
15270 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
15271 | $as_echo "$as_me: error: unknown endianness | |
15272 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
b0cacab0 | 15273 | { (exit 1); exit 1; }; } ;; |
39fd3d4f | 15274 | esac |
877eb6d9 | 15275 | |
29a5deed | 15276 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
4ea7ea00 TT |
15277 | ASM_TYPES_HEADER=./asm_types.h |
15278 | ||
488c75a6 TT |
15279 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
15280 | > public_config.h | |
15281 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then | |
15282 | uniq tmp_config.$$ >> public_config.h | |
15283 | else | |
15284 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h | |
15285 | fi | |
15286 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then | |
15287 | uniq tmp_config.$$ >> public_config.h | |
15288 | else | |
15289 | echo "#undef WORDS_BIGENDIAN" >> public_config.h | |
15290 | fi | |
15291 | rm -f tmp_config.$$ | |
15292 | PUBLIC_CONFIG_HEADER=./public_config.h | |
15293 | ||
877eb6d9 | 15294 | |
b0cacab0 | 15295 | for ac_header in inttypes.h |
0c193f82 | 15296 | do |
39fd3d4f | 15297 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
e1052144 | 15298 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f SJR |
15299 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15300 | $as_echo_n "checking for $ac_header... " >&6; } | |
e1052144 | 15301 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 15302 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 15303 | fi |
39fd3d4f SJR |
15304 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15305 | $as_echo "$as_val"'` | |
15306 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15307 | $as_echo "$ac_res" >&6; } | |
b0cacab0 TT |
15308 | else |
15309 | # Is the header compilable? | |
39fd3d4f SJR |
15310 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15311 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b0cacab0 TT |
15312 | cat >conftest.$ac_ext <<_ACEOF |
15313 | /* confdefs.h. */ | |
15314 | _ACEOF | |
15315 | cat confdefs.h >>conftest.$ac_ext | |
15316 | cat >>conftest.$ac_ext <<_ACEOF | |
15317 | /* end confdefs.h. */ | |
15318 | $ac_includes_default | |
15319 | #include <$ac_header> | |
15320 | _ACEOF | |
15321 | rm -f conftest.$ac_objext | |
e1052144 TT |
15322 | if { (ac_try="$ac_compile" |
15323 | case "(($ac_try" in | |
15324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15325 | *) ac_try_echo=$ac_try;; | |
15326 | esac | |
39fd3d4f SJR |
15327 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15328 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 15329 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
15330 | ac_status=$? |
15331 | grep -v '^ *+' conftest.er1 >conftest.err | |
15332 | rm -f conftest.er1 | |
15333 | cat conftest.err >&5 | |
39fd3d4f | 15334 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
15335 | (exit $ac_status); } && { |
15336 | test -z "$ac_c_werror_flag" || | |
15337 | test ! -s conftest.err | |
15338 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
15339 | ac_header_compiler=yes |
15340 | else | |
39fd3d4f | 15341 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
15342 | sed 's/^/| /' conftest.$ac_ext >&5 |
15343 | ||
e1052144 | 15344 | ac_header_compiler=no |
b0cacab0 | 15345 | fi |
e1052144 TT |
15346 | |
15347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
39fd3d4f SJR |
15348 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15349 | $as_echo "$ac_header_compiler" >&6; } | |
b0cacab0 TT |
15350 | |
15351 | # Is the header present? | |
39fd3d4f SJR |
15352 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15353 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b0cacab0 TT |
15354 | cat >conftest.$ac_ext <<_ACEOF |
15355 | /* confdefs.h. */ | |
15356 | _ACEOF | |
15357 | cat confdefs.h >>conftest.$ac_ext | |
15358 | cat >>conftest.$ac_ext <<_ACEOF | |
15359 | /* end confdefs.h. */ | |
15360 | #include <$ac_header> | |
15361 | _ACEOF | |
e1052144 TT |
15362 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15363 | case "(($ac_try" in | |
15364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15365 | *) ac_try_echo=$ac_try;; | |
15366 | esac | |
39fd3d4f SJR |
15367 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15368 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 15369 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
b0cacab0 TT |
15370 | ac_status=$? |
15371 | grep -v '^ *+' conftest.er1 >conftest.err | |
15372 | rm -f conftest.er1 | |
15373 | cat conftest.err >&5 | |
39fd3d4f | 15374 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
15375 | (exit $ac_status); } >/dev/null && { |
15376 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15377 | test ! -s conftest.err | |
15378 | }; then | |
b0cacab0 TT |
15379 | ac_header_preproc=yes |
15380 | else | |
39fd3d4f | 15381 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
15382 | sed 's/^/| /' conftest.$ac_ext >&5 |
15383 | ||
15384 | ac_header_preproc=no | |
0c193f82 | 15385 | fi |
e1052144 | 15386 | |
b0cacab0 | 15387 | rm -f conftest.err conftest.$ac_ext |
39fd3d4f SJR |
15388 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15389 | $as_echo "$ac_header_preproc" >&6; } | |
b0cacab0 TT |
15390 | |
15391 | # So? What about this header? | |
15392 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15393 | yes:no: ) | |
39fd3d4f SJR |
15394 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15395 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15396 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15397 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
b0cacab0 TT |
15398 | ac_header_preproc=yes |
15399 | ;; | |
15400 | no:yes:* ) | |
39fd3d4f SJR |
15401 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15402 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15403 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15404 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15405 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15406 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15407 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15408 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15409 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15410 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15411 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15412 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e1052144 | 15413 | |
b0cacab0 TT |
15414 | ;; |
15415 | esac | |
39fd3d4f SJR |
15416 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15417 | $as_echo_n "checking for $ac_header... " >&6; } | |
e1052144 | 15418 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 15419 | $as_echo_n "(cached) " >&6 |
0c193f82 | 15420 | else |
b0cacab0 TT |
15421 | eval "$as_ac_Header=\$ac_header_preproc" |
15422 | fi | |
39fd3d4f SJR |
15423 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15424 | $as_echo "$as_val"'` | |
15425 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15426 | $as_echo "$ac_res" >&6; } | |
b0cacab0 | 15427 | |
0c193f82 | 15428 | fi |
39fd3d4f SJR |
15429 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15430 | $as_echo "$as_val"'` | |
15431 | if test "x$as_val" = x""yes; then | |
b0cacab0 | 15432 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 15433 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b0cacab0 TT |
15434 | _ACEOF |
15435 | ||
15436 | fi | |
15437 | ||
0c193f82 TT |
15438 | done |
15439 | ||
39fd3d4f SJR |
15440 | { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5 |
15441 | $as_echo_n "checking for intptr_t... " >&6; } | |
b0cacab0 | 15442 | if test "${ac_cv_type_intptr_t+set}" = set; then |
39fd3d4f | 15443 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 15444 | else |
39fd3d4f SJR |
15445 | ac_cv_type_intptr_t=no |
15446 | cat >conftest.$ac_ext <<_ACEOF | |
b0cacab0 TT |
15447 | /* confdefs.h. */ |
15448 | _ACEOF | |
15449 | cat confdefs.h >>conftest.$ac_ext | |
15450 | cat >>conftest.$ac_ext <<_ACEOF | |
15451 | /* end confdefs.h. */ | |
15452 | $ac_includes_default | |
15453 | int | |
15454 | main () | |
15455 | { | |
39fd3d4f SJR |
15456 | if (sizeof (intptr_t)) |
15457 | return 0; | |
15458 | ; | |
b0cacab0 | 15459 | return 0; |
39fd3d4f SJR |
15460 | } |
15461 | _ACEOF | |
15462 | rm -f conftest.$ac_objext | |
15463 | if { (ac_try="$ac_compile" | |
15464 | case "(($ac_try" in | |
15465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15466 | *) ac_try_echo=$ac_try;; | |
15467 | esac | |
15468 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15469 | $as_echo "$ac_try_echo") >&5 | |
15470 | (eval "$ac_compile") 2>conftest.er1 | |
15471 | ac_status=$? | |
15472 | grep -v '^ *+' conftest.er1 >conftest.err | |
15473 | rm -f conftest.er1 | |
15474 | cat conftest.err >&5 | |
15475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15476 | (exit $ac_status); } && { | |
15477 | test -z "$ac_c_werror_flag" || | |
15478 | test ! -s conftest.err | |
15479 | } && test -s conftest.$ac_objext; then | |
15480 | cat >conftest.$ac_ext <<_ACEOF | |
15481 | /* confdefs.h. */ | |
15482 | _ACEOF | |
15483 | cat confdefs.h >>conftest.$ac_ext | |
15484 | cat >>conftest.$ac_ext <<_ACEOF | |
15485 | /* end confdefs.h. */ | |
15486 | $ac_includes_default | |
15487 | int | |
15488 | main () | |
15489 | { | |
15490 | if (sizeof ((intptr_t))) | |
15491 | return 0; | |
b0cacab0 TT |
15492 | ; |
15493 | return 0; | |
15494 | } | |
15495 | _ACEOF | |
15496 | rm -f conftest.$ac_objext | |
e1052144 TT |
15497 | if { (ac_try="$ac_compile" |
15498 | case "(($ac_try" in | |
15499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15500 | *) ac_try_echo=$ac_try;; | |
15501 | esac | |
39fd3d4f SJR |
15502 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15503 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 15504 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
15505 | ac_status=$? |
15506 | grep -v '^ *+' conftest.er1 >conftest.err | |
15507 | rm -f conftest.er1 | |
15508 | cat conftest.err >&5 | |
39fd3d4f | 15509 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
15510 | (exit $ac_status); } && { |
15511 | test -z "$ac_c_werror_flag" || | |
15512 | test ! -s conftest.err | |
15513 | } && test -s conftest.$ac_objext; then | |
39fd3d4f SJR |
15514 | : |
15515 | else | |
15516 | $as_echo "$as_me: failed program was:" >&5 | |
15517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15518 | ||
15519 | ac_cv_type_intptr_t=yes | |
15520 | fi | |
15521 | ||
15522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0c193f82 | 15523 | else |
39fd3d4f | 15524 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 | 15525 | sed 's/^/| /' conftest.$ac_ext >&5 |
0c193f82 | 15526 | |
39fd3d4f | 15527 | |
0c193f82 | 15528 | fi |
e1052144 TT |
15529 | |
15530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 15531 | fi |
39fd3d4f SJR |
15532 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
15533 | $as_echo "$ac_cv_type_intptr_t" >&6; } | |
15534 | if test "x$ac_cv_type_intptr_t" = x""yes; then | |
b0cacab0 TT |
15535 | |
15536 | cat >>confdefs.h <<_ACEOF | |
d2ee56d8 | 15537 | #define HAVE_INTPTR_T 1 |
b0cacab0 | 15538 | _ACEOF |
0c193f82 | 15539 | |
d2ee56d8 | 15540 | |
0c193f82 TT |
15541 | fi |
15542 | ||
39fd3d4f SJR |
15543 | { $as_echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
15544 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } | |
b0cacab0 | 15545 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
39fd3d4f | 15546 | $as_echo_n "(cached) " >&6 |
50e1e10f | 15547 | else |
b0cacab0 TT |
15548 | cat >conftest.$ac_ext <<_ACEOF |
15549 | /* confdefs.h. */ | |
15550 | _ACEOF | |
15551 | cat confdefs.h >>conftest.$ac_ext | |
15552 | cat >>conftest.$ac_ext <<_ACEOF | |
15553 | /* end confdefs.h. */ | |
50e1e10f | 15554 | #include <sys/stat.h> |
b0cacab0 TT |
15555 | int |
15556 | main () | |
15557 | { | |
50e1e10f | 15558 | struct stat stat; stat.st_flags = 0; |
b0cacab0 TT |
15559 | ; |
15560 | return 0; | |
15561 | } | |
15562 | _ACEOF | |
15563 | rm -f conftest.$ac_objext | |
e1052144 TT |
15564 | if { (ac_try="$ac_compile" |
15565 | case "(($ac_try" in | |
15566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15567 | *) ac_try_echo=$ac_try;; | |
15568 | esac | |
39fd3d4f SJR |
15569 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15570 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 15571 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
15572 | ac_status=$? |
15573 | grep -v '^ *+' conftest.er1 >conftest.err | |
15574 | rm -f conftest.er1 | |
15575 | cat conftest.err >&5 | |
39fd3d4f | 15576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
15577 | (exit $ac_status); } && { |
15578 | test -z "$ac_c_werror_flag" || | |
15579 | test ! -s conftest.err | |
15580 | } && test -s conftest.$ac_objext; then | |
50e1e10f TT |
15581 | e2fsprogs_cv_struct_st_flags=yes |
15582 | else | |
39fd3d4f | 15583 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
15584 | sed 's/^/| /' conftest.$ac_ext >&5 |
15585 | ||
e1052144 | 15586 | e2fsprogs_cv_struct_st_flags=no |
50e1e10f | 15587 | fi |
e1052144 TT |
15588 | |
15589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
50e1e10f TT |
15590 | fi |
15591 | ||
39fd3d4f SJR |
15592 | { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
15593 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } | |
50e1e10f | 15594 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
39fd3d4f SJR |
15595 | { $as_echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
15596 | $as_echo_n "checking whether st_flags field is useful... " >&6; } | |
b0cacab0 | 15597 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
39fd3d4f | 15598 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
15599 | else |
15600 | cat >conftest.$ac_ext <<_ACEOF | |
15601 | /* confdefs.h. */ | |
15602 | _ACEOF | |
15603 | cat confdefs.h >>conftest.$ac_ext | |
15604 | cat >>conftest.$ac_ext <<_ACEOF | |
15605 | /* end confdefs.h. */ | |
c03bc4e8 | 15606 | #include <sys/stat.h> |
b0cacab0 TT |
15607 | int |
15608 | main () | |
15609 | { | |
c03bc4e8 | 15610 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
b0cacab0 TT |
15611 | ; |
15612 | return 0; | |
15613 | } | |
15614 | _ACEOF | |
15615 | rm -f conftest.$ac_objext | |
e1052144 TT |
15616 | if { (ac_try="$ac_compile" |
15617 | case "(($ac_try" in | |
15618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15619 | *) ac_try_echo=$ac_try;; | |
15620 | esac | |
39fd3d4f SJR |
15621 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15622 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 15623 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
15624 | ac_status=$? |
15625 | grep -v '^ *+' conftest.er1 >conftest.err | |
15626 | rm -f conftest.er1 | |
15627 | cat conftest.err >&5 | |
39fd3d4f | 15628 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
15629 | (exit $ac_status); } && { |
15630 | test -z "$ac_c_werror_flag" || | |
15631 | test ! -s conftest.err | |
15632 | } && test -s conftest.$ac_objext; then | |
c03bc4e8 TT |
15633 | e2fsprogs_cv_struct_st_flags_immut=yes |
15634 | else | |
39fd3d4f | 15635 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
15636 | sed 's/^/| /' conftest.$ac_ext >&5 |
15637 | ||
e1052144 | 15638 | e2fsprogs_cv_struct_st_flags_immut=no |
c03bc4e8 | 15639 | fi |
e1052144 TT |
15640 | |
15641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c03bc4e8 TT |
15642 | fi |
15643 | ||
39fd3d4f SJR |
15644 | { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
15645 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } | |
c03bc4e8 | 15646 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
b0cacab0 | 15647 | cat >>confdefs.h <<\_ACEOF |
50e1e10f | 15648 | #define HAVE_STAT_FLAGS 1 |
b0cacab0 | 15649 | _ACEOF |
50e1e10f | 15650 | |
c03bc4e8 | 15651 | fi |
84ea6e70 | 15652 | fi |
39fd3d4f SJR |
15653 | { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
15654 | $as_echo_n "checking for struct sockaddr.sa_len... " >&6; } | |
6c65d251 | 15655 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
39fd3d4f | 15656 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
15657 | else |
15658 | cat >conftest.$ac_ext <<_ACEOF | |
15659 | /* confdefs.h. */ | |
15660 | _ACEOF | |
15661 | cat confdefs.h >>conftest.$ac_ext | |
15662 | cat >>conftest.$ac_ext <<_ACEOF | |
15663 | /* end confdefs.h. */ | |
84ea6e70 | 15664 | #include <sys/types.h> |
6c65d251 | 15665 | #include <sys/socket.h> |
84ea6e70 | 15666 | |
b0cacab0 TT |
15667 | int |
15668 | main () | |
15669 | { | |
6c65d251 TT |
15670 | static struct sockaddr ac_aggr; |
15671 | if (ac_aggr.sa_len) | |
15672 | return 0; | |
b0cacab0 TT |
15673 | ; |
15674 | return 0; | |
15675 | } | |
15676 | _ACEOF | |
15677 | rm -f conftest.$ac_objext | |
e1052144 TT |
15678 | if { (ac_try="$ac_compile" |
15679 | case "(($ac_try" in | |
15680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15681 | *) ac_try_echo=$ac_try;; | |
15682 | esac | |
39fd3d4f SJR |
15683 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15684 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 15685 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 TT |
15686 | ac_status=$? |
15687 | grep -v '^ *+' conftest.er1 >conftest.err | |
15688 | rm -f conftest.er1 | |
15689 | cat conftest.err >&5 | |
39fd3d4f | 15690 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
15691 | (exit $ac_status); } && { |
15692 | test -z "$ac_c_werror_flag" || | |
15693 | test ! -s conftest.err | |
15694 | } && test -s conftest.$ac_objext; then | |
6c65d251 | 15695 | ac_cv_member_struct_sockaddr_sa_len=yes |
84ea6e70 | 15696 | else |
39fd3d4f | 15697 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
15698 | sed 's/^/| /' conftest.$ac_ext >&5 |
15699 | ||
e1052144 | 15700 | cat >conftest.$ac_ext <<_ACEOF |
6c65d251 TT |
15701 | /* confdefs.h. */ |
15702 | _ACEOF | |
15703 | cat confdefs.h >>conftest.$ac_ext | |
15704 | cat >>conftest.$ac_ext <<_ACEOF | |
15705 | /* end confdefs.h. */ | |
15706 | #include <sys/types.h> | |
15707 | #include <sys/socket.h> | |
15708 | ||
15709 | int | |
15710 | main () | |
15711 | { | |
15712 | static struct sockaddr ac_aggr; | |
15713 | if (sizeof ac_aggr.sa_len) | |
15714 | return 0; | |
15715 | ; | |
15716 | return 0; | |
15717 | } | |
15718 | _ACEOF | |
15719 | rm -f conftest.$ac_objext | |
e1052144 TT |
15720 | if { (ac_try="$ac_compile" |
15721 | case "(($ac_try" in | |
15722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15723 | *) ac_try_echo=$ac_try;; | |
15724 | esac | |
39fd3d4f SJR |
15725 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15726 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 15727 | (eval "$ac_compile") 2>conftest.er1 |
6c65d251 TT |
15728 | ac_status=$? |
15729 | grep -v '^ *+' conftest.er1 >conftest.err | |
15730 | rm -f conftest.er1 | |
15731 | cat conftest.err >&5 | |
39fd3d4f | 15732 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
15733 | (exit $ac_status); } && { |
15734 | test -z "$ac_c_werror_flag" || | |
15735 | test ! -s conftest.err | |
15736 | } && test -s conftest.$ac_objext; then | |
6c65d251 TT |
15737 | ac_cv_member_struct_sockaddr_sa_len=yes |
15738 | else | |
39fd3d4f | 15739 | $as_echo "$as_me: failed program was:" >&5 |
6c65d251 TT |
15740 | sed 's/^/| /' conftest.$ac_ext >&5 |
15741 | ||
e1052144 | 15742 | ac_cv_member_struct_sockaddr_sa_len=no |
84ea6e70 | 15743 | fi |
e1052144 TT |
15744 | |
15745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ea6e70 | 15746 | fi |
e1052144 TT |
15747 | |
15748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6c65d251 | 15749 | fi |
39fd3d4f SJR |
15750 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
15751 | $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; } | |
15752 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then | |
b0cacab0 TT |
15753 | |
15754 | cat >>confdefs.h <<_ACEOF | |
84ea6e70 | 15755 | #define HAVE_SA_LEN 1 |
b0cacab0 | 15756 | _ACEOF |
84ea6e70 | 15757 | |
50e1e10f | 15758 | fi |
b0cacab0 TT |
15759 | |
15760 | ||
15761 | ||
15762 | ||
15763 | ||
15764 | ||
15765 | ||
15766 | ||
15767 | ||
15768 | ||
15769 | ||
15770 | ||
15771 | ||
15772 | ||
15773 | ||
15774 | ||
15775 | ||
15776 | ||
15777 | ||
6c65d251 | 15778 | |
762c7c65 TT |
15779 | |
15780 | ||
9b7d811d | 15781 | |
ae2868ac | 15782 | |
106ad96d TT |
15783 | |
15784 | ||
15785 | ||
740837de TT |
15786 | |
15787 | ||
261cd396 | 15788 | |
c13ab4fa TT |
15789 | |
15790 | ||
1207e36d TT |
15791 | |
15792 | ||
15793 | for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit | |
50e1e10f | 15794 | do |
39fd3d4f SJR |
15795 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15796 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15797 | $as_echo_n "checking for $ac_func... " >&6; } | |
e1052144 | 15798 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
39fd3d4f | 15799 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
15800 | else |
15801 | cat >conftest.$ac_ext <<_ACEOF | |
15802 | /* confdefs.h. */ | |
15803 | _ACEOF | |
15804 | cat confdefs.h >>conftest.$ac_ext | |
15805 | cat >>conftest.$ac_ext <<_ACEOF | |
15806 | /* end confdefs.h. */ | |
15807 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15808 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15809 | #define $ac_func innocuous_$ac_func | |
15810 | ||
50e1e10f | 15811 | /* System header to define __stub macros and hopefully few prototypes, |
b0cacab0 TT |
15812 | which can conflict with char $ac_func (); below. |
15813 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15814 | <limits.h> exists even on freestanding compilers. */ | |
15815 | ||
15816 | #ifdef __STDC__ | |
15817 | # include <limits.h> | |
15818 | #else | |
15819 | # include <assert.h> | |
15820 | #endif | |
93636bde | 15821 | |
b0cacab0 | 15822 | #undef $ac_func |
50e1e10f | 15823 | |
e1052144 TT |
15824 | /* Override any GCC internal prototype to avoid an error. |
15825 | Use char because int might match the return type of a GCC | |
15826 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
15827 | #ifdef __cplusplus |
15828 | extern "C" | |
b0cacab0 | 15829 | #endif |
b0cacab0 | 15830 | char $ac_func (); |
50e1e10f TT |
15831 | /* The GNU C library defines this for functions which it implements |
15832 | to always fail with ENOSYS. Some functions are actually named | |
15833 | something starting with __ and the normal name is an alias. */ | |
e1052144 | 15834 | #if defined __stub_$ac_func || defined __stub___$ac_func |
50e1e10f | 15835 | choke me |
50e1e10f TT |
15836 | #endif |
15837 | ||
b0cacab0 TT |
15838 | int |
15839 | main () | |
15840 | { | |
e1052144 | 15841 | return $ac_func (); |
b0cacab0 TT |
15842 | ; |
15843 | return 0; | |
15844 | } | |
15845 | _ACEOF | |
15846 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
15847 | if { (ac_try="$ac_link" |
15848 | case "(($ac_try" in | |
15849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15850 | *) ac_try_echo=$ac_try;; | |
15851 | esac | |
39fd3d4f SJR |
15852 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15853 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 15854 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
15855 | ac_status=$? |
15856 | grep -v '^ *+' conftest.er1 >conftest.err | |
15857 | rm -f conftest.er1 | |
15858 | cat conftest.err >&5 | |
39fd3d4f | 15859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
15860 | (exit $ac_status); } && { |
15861 | test -z "$ac_c_werror_flag" || | |
15862 | test ! -s conftest.err | |
39fd3d4f SJR |
15863 | } && test -s conftest$ac_exeext && { |
15864 | test "$cross_compiling" = yes || | |
15865 | $as_test_x conftest$ac_exeext | |
15866 | }; then | |
b0cacab0 TT |
15867 | eval "$as_ac_var=yes" |
15868 | else | |
39fd3d4f | 15869 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
15870 | sed 's/^/| /' conftest.$ac_ext >&5 |
15871 | ||
e1052144 | 15872 | eval "$as_ac_var=no" |
b0cacab0 | 15873 | fi |
e1052144 | 15874 | |
39fd3d4f | 15875 | rm -rf conftest.dSYM |
29a5deed | 15876 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
15877 | conftest$ac_exeext conftest.$ac_ext |
15878 | fi | |
39fd3d4f SJR |
15879 | ac_res=`eval 'as_val=${'$as_ac_var'} |
15880 | $as_echo "$as_val"'` | |
15881 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15882 | $as_echo "$ac_res" >&6; } | |
15883 | as_val=`eval 'as_val=${'$as_ac_var'} | |
15884 | $as_echo "$as_val"'` | |
15885 | if test "x$as_val" = x""yes; then | |
b0cacab0 | 15886 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 15887 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b0cacab0 | 15888 | _ACEOF |
21c84b71 | 15889 | |
50e1e10f TT |
15890 | fi |
15891 | done | |
15892 | ||
fc6d9d51 | 15893 | SOCKET_LIB='' |
39fd3d4f SJR |
15894 | { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
15895 | $as_echo_n "checking for socket in -lsocket... " >&6; } | |
b0cacab0 | 15896 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
39fd3d4f | 15897 | $as_echo_n "(cached) " >&6 |
50e1e10f | 15898 | else |
b0cacab0 | 15899 | ac_check_lib_save_LIBS=$LIBS |
fc6d9d51 | 15900 | LIBS="-lsocket $LIBS" |
b0cacab0 TT |
15901 | cat >conftest.$ac_ext <<_ACEOF |
15902 | /* confdefs.h. */ | |
15903 | _ACEOF | |
15904 | cat confdefs.h >>conftest.$ac_ext | |
15905 | cat >>conftest.$ac_ext <<_ACEOF | |
15906 | /* end confdefs.h. */ | |
93636bde | 15907 | |
e1052144 TT |
15908 | /* Override any GCC internal prototype to avoid an error. |
15909 | Use char because int might match the return type of a GCC | |
15910 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
15911 | #ifdef __cplusplus |
15912 | extern "C" | |
15913 | #endif | |
b0cacab0 TT |
15914 | char socket (); |
15915 | int | |
15916 | main () | |
15917 | { | |
e1052144 | 15918 | return socket (); |
b0cacab0 TT |
15919 | ; |
15920 | return 0; | |
15921 | } | |
15922 | _ACEOF | |
15923 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
15924 | if { (ac_try="$ac_link" |
15925 | case "(($ac_try" in | |
15926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15927 | *) ac_try_echo=$ac_try;; | |
15928 | esac | |
39fd3d4f SJR |
15929 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15930 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 15931 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
15932 | ac_status=$? |
15933 | grep -v '^ *+' conftest.er1 >conftest.err | |
15934 | rm -f conftest.er1 | |
15935 | cat conftest.err >&5 | |
39fd3d4f | 15936 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
15937 | (exit $ac_status); } && { |
15938 | test -z "$ac_c_werror_flag" || | |
15939 | test ! -s conftest.err | |
39fd3d4f SJR |
15940 | } && test -s conftest$ac_exeext && { |
15941 | test "$cross_compiling" = yes || | |
15942 | $as_test_x conftest$ac_exeext | |
15943 | }; then | |
b0cacab0 TT |
15944 | ac_cv_lib_socket_socket=yes |
15945 | else | |
39fd3d4f | 15946 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
15947 | sed 's/^/| /' conftest.$ac_ext >&5 |
15948 | ||
e1052144 | 15949 | ac_cv_lib_socket_socket=no |
b0cacab0 | 15950 | fi |
e1052144 | 15951 | |
39fd3d4f | 15952 | rm -rf conftest.dSYM |
29a5deed | 15953 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
15954 | conftest$ac_exeext conftest.$ac_ext |
15955 | LIBS=$ac_check_lib_save_LIBS | |
15956 | fi | |
39fd3d4f SJR |
15957 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
15958 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | |
15959 | if test "x$ac_cv_lib_socket_socket" = x""yes; then | |
fc6d9d51 | 15960 | SOCKET_LIB=-lsocket |
50e1e10f | 15961 | fi |
fc6d9d51 | 15962 | |
93636bde | 15963 | |
bbac86bb | 15964 | DLOPEN_LIB='' |
39fd3d4f SJR |
15965 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
15966 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
b0cacab0 | 15967 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
39fd3d4f | 15968 | $as_echo_n "(cached) " >&6 |
bbac86bb | 15969 | else |
b0cacab0 | 15970 | ac_check_lib_save_LIBS=$LIBS |
bbac86bb | 15971 | LIBS="-ldl $LIBS" |
b0cacab0 TT |
15972 | cat >conftest.$ac_ext <<_ACEOF |
15973 | /* confdefs.h. */ | |
15974 | _ACEOF | |
15975 | cat confdefs.h >>conftest.$ac_ext | |
15976 | cat >>conftest.$ac_ext <<_ACEOF | |
15977 | /* end confdefs.h. */ | |
15978 | ||
e1052144 TT |
15979 | /* Override any GCC internal prototype to avoid an error. |
15980 | Use char because int might match the return type of a GCC | |
15981 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
15982 | #ifdef __cplusplus |
15983 | extern "C" | |
15984 | #endif | |
b0cacab0 TT |
15985 | char dlopen (); |
15986 | int | |
15987 | main () | |
15988 | { | |
e1052144 | 15989 | return dlopen (); |
b0cacab0 TT |
15990 | ; |
15991 | return 0; | |
15992 | } | |
15993 | _ACEOF | |
15994 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
15995 | if { (ac_try="$ac_link" |
15996 | case "(($ac_try" in | |
15997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15998 | *) ac_try_echo=$ac_try;; | |
15999 | esac | |
39fd3d4f SJR |
16000 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16001 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 16002 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
16003 | ac_status=$? |
16004 | grep -v '^ *+' conftest.er1 >conftest.err | |
16005 | rm -f conftest.er1 | |
16006 | cat conftest.err >&5 | |
39fd3d4f | 16007 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
16008 | (exit $ac_status); } && { |
16009 | test -z "$ac_c_werror_flag" || | |
16010 | test ! -s conftest.err | |
39fd3d4f SJR |
16011 | } && test -s conftest$ac_exeext && { |
16012 | test "$cross_compiling" = yes || | |
16013 | $as_test_x conftest$ac_exeext | |
16014 | }; then | |
b0cacab0 TT |
16015 | ac_cv_lib_dl_dlopen=yes |
16016 | else | |
39fd3d4f | 16017 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
16018 | sed 's/^/| /' conftest.$ac_ext >&5 |
16019 | ||
e1052144 | 16020 | ac_cv_lib_dl_dlopen=no |
b0cacab0 | 16021 | fi |
e1052144 | 16022 | |
39fd3d4f | 16023 | rm -rf conftest.dSYM |
29a5deed | 16024 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
16025 | conftest$ac_exeext conftest.$ac_ext |
16026 | LIBS=$ac_check_lib_save_LIBS | |
16027 | fi | |
39fd3d4f SJR |
16028 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
16029 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
16030 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
bbac86bb | 16031 | DLOPEN_LIB=-ldl |
b0cacab0 | 16032 | cat >>confdefs.h <<\_ACEOF |
bbac86bb | 16033 | #define HAVE_DLOPEN 1 |
b0cacab0 | 16034 | _ACEOF |
bbac86bb | 16035 | |
bbac86bb TT |
16036 | fi |
16037 | ||
93636bde | 16038 | |
39fd3d4f SJR |
16039 | { $as_echo "$as_me:$LINENO: checking for optreset" >&5 |
16040 | $as_echo_n "checking for optreset... " >&6; } | |
b0cacab0 | 16041 | if test "${ac_cv_have_optreset+set}" = set; then |
39fd3d4f | 16042 | $as_echo_n "(cached) " >&6 |
50e1e10f | 16043 | else |
b0cacab0 TT |
16044 | cat >conftest.$ac_ext <<_ACEOF |
16045 | /* confdefs.h. */ | |
16046 | _ACEOF | |
16047 | cat confdefs.h >>conftest.$ac_ext | |
16048 | cat >>conftest.$ac_ext <<_ACEOF | |
16049 | /* end confdefs.h. */ | |
fc6d9d51 | 16050 | #include <unistd.h> |
b0cacab0 TT |
16051 | |
16052 | _ACEOF | |
fc6d9d51 | 16053 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b0cacab0 | 16054 | $EGREP "optreset" >/dev/null 2>&1; then |
fc6d9d51 | 16055 | ac_cv_have_optreset=yes |
50e1e10f | 16056 | else |
fc6d9d51 | 16057 | ac_cv_have_optreset=no |
50e1e10f TT |
16058 | fi |
16059 | rm -f conftest* | |
16060 | ||
16061 | fi | |
39fd3d4f SJR |
16062 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
16063 | $as_echo "$ac_cv_have_optreset" >&6; } | |
fc6d9d51 | 16064 | if test $ac_cv_have_optreset = yes; then |
b0cacab0 | 16065 | cat >>confdefs.h <<\_ACEOF |
fc6d9d51 | 16066 | #define HAVE_OPTRESET 1 |
b0cacab0 | 16067 | _ACEOF |
50e1e10f TT |
16068 | |
16069 | fi | |
d7f45af8 | 16070 | SEM_INIT_LIB='' |
39fd3d4f SJR |
16071 | { $as_echo "$as_me:$LINENO: checking for sem_init" >&5 |
16072 | $as_echo_n "checking for sem_init... " >&6; } | |
d7f45af8 | 16073 | if test "${ac_cv_func_sem_init+set}" = set; then |
39fd3d4f | 16074 | $as_echo_n "(cached) " >&6 |
d7f45af8 TT |
16075 | else |
16076 | cat >conftest.$ac_ext <<_ACEOF | |
16077 | /* confdefs.h. */ | |
16078 | _ACEOF | |
16079 | cat confdefs.h >>conftest.$ac_ext | |
16080 | cat >>conftest.$ac_ext <<_ACEOF | |
16081 | /* end confdefs.h. */ | |
16082 | /* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init. | |
16083 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16084 | #define sem_init innocuous_sem_init | |
16085 | ||
16086 | /* System header to define __stub macros and hopefully few prototypes, | |
16087 | which can conflict with char sem_init (); below. | |
16088 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16089 | <limits.h> exists even on freestanding compilers. */ | |
16090 | ||
16091 | #ifdef __STDC__ | |
16092 | # include <limits.h> | |
16093 | #else | |
16094 | # include <assert.h> | |
16095 | #endif | |
16096 | ||
16097 | #undef sem_init | |
16098 | ||
16099 | /* Override any GCC internal prototype to avoid an error. | |
16100 | Use char because int might match the return type of a GCC | |
16101 | builtin and then its argument prototype would still apply. */ | |
16102 | #ifdef __cplusplus | |
16103 | extern "C" | |
16104 | #endif | |
16105 | char sem_init (); | |
16106 | /* The GNU C library defines this for functions which it implements | |
16107 | to always fail with ENOSYS. Some functions are actually named | |
16108 | something starting with __ and the normal name is an alias. */ | |
16109 | #if defined __stub_sem_init || defined __stub___sem_init | |
16110 | choke me | |
16111 | #endif | |
16112 | ||
16113 | int | |
16114 | main () | |
16115 | { | |
16116 | return sem_init (); | |
16117 | ; | |
16118 | return 0; | |
16119 | } | |
16120 | _ACEOF | |
16121 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16122 | if { (ac_try="$ac_link" | |
16123 | case "(($ac_try" in | |
16124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16125 | *) ac_try_echo=$ac_try;; | |
16126 | esac | |
39fd3d4f SJR |
16127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16128 | $as_echo "$ac_try_echo") >&5 | |
d7f45af8 TT |
16129 | (eval "$ac_link") 2>conftest.er1 |
16130 | ac_status=$? | |
16131 | grep -v '^ *+' conftest.er1 >conftest.err | |
16132 | rm -f conftest.er1 | |
16133 | cat conftest.err >&5 | |
39fd3d4f | 16134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7f45af8 TT |
16135 | (exit $ac_status); } && { |
16136 | test -z "$ac_c_werror_flag" || | |
16137 | test ! -s conftest.err | |
39fd3d4f SJR |
16138 | } && test -s conftest$ac_exeext && { |
16139 | test "$cross_compiling" = yes || | |
16140 | $as_test_x conftest$ac_exeext | |
16141 | }; then | |
d7f45af8 TT |
16142 | ac_cv_func_sem_init=yes |
16143 | else | |
39fd3d4f | 16144 | $as_echo "$as_me: failed program was:" >&5 |
d7f45af8 TT |
16145 | sed 's/^/| /' conftest.$ac_ext >&5 |
16146 | ||
16147 | ac_cv_func_sem_init=no | |
16148 | fi | |
16149 | ||
39fd3d4f | 16150 | rm -rf conftest.dSYM |
d7f45af8 TT |
16151 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16152 | conftest$ac_exeext conftest.$ac_ext | |
16153 | fi | |
39fd3d4f SJR |
16154 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5 |
16155 | $as_echo "$ac_cv_func_sem_init" >&6; } | |
16156 | if test "x$ac_cv_func_sem_init" = x""yes; then | |
d7f45af8 TT |
16157 | : |
16158 | else | |
39fd3d4f SJR |
16159 | { $as_echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5 |
16160 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } | |
d7f45af8 | 16161 | if test "${ac_cv_lib_pthread_sem_init+set}" = set; then |
39fd3d4f | 16162 | $as_echo_n "(cached) " >&6 |
d7f45af8 TT |
16163 | else |
16164 | ac_check_lib_save_LIBS=$LIBS | |
16165 | LIBS="-lpthread $LIBS" | |
16166 | cat >conftest.$ac_ext <<_ACEOF | |
16167 | /* confdefs.h. */ | |
16168 | _ACEOF | |
16169 | cat confdefs.h >>conftest.$ac_ext | |
16170 | cat >>conftest.$ac_ext <<_ACEOF | |
16171 | /* end confdefs.h. */ | |
16172 | ||
16173 | /* Override any GCC internal prototype to avoid an error. | |
16174 | Use char because int might match the return type of a GCC | |
16175 | builtin and then its argument prototype would still apply. */ | |
16176 | #ifdef __cplusplus | |
16177 | extern "C" | |
16178 | #endif | |
16179 | char sem_init (); | |
16180 | int | |
16181 | main () | |
16182 | { | |
16183 | return sem_init (); | |
16184 | ; | |
16185 | return 0; | |
16186 | } | |
16187 | _ACEOF | |
16188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16189 | if { (ac_try="$ac_link" | |
16190 | case "(($ac_try" in | |
16191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16192 | *) ac_try_echo=$ac_try;; | |
16193 | esac | |
39fd3d4f SJR |
16194 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16195 | $as_echo "$ac_try_echo") >&5 | |
d7f45af8 TT |
16196 | (eval "$ac_link") 2>conftest.er1 |
16197 | ac_status=$? | |
16198 | grep -v '^ *+' conftest.er1 >conftest.err | |
16199 | rm -f conftest.er1 | |
16200 | cat conftest.err >&5 | |
39fd3d4f | 16201 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7f45af8 TT |
16202 | (exit $ac_status); } && { |
16203 | test -z "$ac_c_werror_flag" || | |
16204 | test ! -s conftest.err | |
39fd3d4f SJR |
16205 | } && test -s conftest$ac_exeext && { |
16206 | test "$cross_compiling" = yes || | |
16207 | $as_test_x conftest$ac_exeext | |
16208 | }; then | |
d7f45af8 TT |
16209 | ac_cv_lib_pthread_sem_init=yes |
16210 | else | |
39fd3d4f | 16211 | $as_echo "$as_me: failed program was:" >&5 |
d7f45af8 TT |
16212 | sed 's/^/| /' conftest.$ac_ext >&5 |
16213 | ||
16214 | ac_cv_lib_pthread_sem_init=no | |
16215 | fi | |
16216 | ||
39fd3d4f | 16217 | rm -rf conftest.dSYM |
d7f45af8 TT |
16218 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16219 | conftest$ac_exeext conftest.$ac_ext | |
16220 | LIBS=$ac_check_lib_save_LIBS | |
16221 | fi | |
39fd3d4f SJR |
16222 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5 |
16223 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } | |
16224 | if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then | |
d7f45af8 TT |
16225 | cat >>confdefs.h <<\_ACEOF |
16226 | #define HAVE_SEM_INIT 1 | |
16227 | _ACEOF | |
16228 | ||
16229 | SEM_INIT_LIB=-lpthread | |
16230 | else | |
39fd3d4f SJR |
16231 | { $as_echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5 |
16232 | $as_echo_n "checking for sem_init in -lrt... " >&6; } | |
d7f45af8 | 16233 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then |
39fd3d4f | 16234 | $as_echo_n "(cached) " >&6 |
d7f45af8 TT |
16235 | else |
16236 | ac_check_lib_save_LIBS=$LIBS | |
16237 | LIBS="-lrt $LIBS" | |
16238 | cat >conftest.$ac_ext <<_ACEOF | |
16239 | /* confdefs.h. */ | |
16240 | _ACEOF | |
16241 | cat confdefs.h >>conftest.$ac_ext | |
16242 | cat >>conftest.$ac_ext <<_ACEOF | |
16243 | /* end confdefs.h. */ | |
16244 | ||
16245 | /* Override any GCC internal prototype to avoid an error. | |
16246 | Use char because int might match the return type of a GCC | |
16247 | builtin and then its argument prototype would still apply. */ | |
16248 | #ifdef __cplusplus | |
16249 | extern "C" | |
16250 | #endif | |
16251 | char sem_init (); | |
16252 | int | |
16253 | main () | |
16254 | { | |
16255 | return sem_init (); | |
16256 | ; | |
16257 | return 0; | |
16258 | } | |
16259 | _ACEOF | |
16260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16261 | if { (ac_try="$ac_link" | |
16262 | case "(($ac_try" in | |
16263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16264 | *) ac_try_echo=$ac_try;; | |
16265 | esac | |
39fd3d4f SJR |
16266 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16267 | $as_echo "$ac_try_echo") >&5 | |
d7f45af8 TT |
16268 | (eval "$ac_link") 2>conftest.er1 |
16269 | ac_status=$? | |
16270 | grep -v '^ *+' conftest.er1 >conftest.err | |
16271 | rm -f conftest.er1 | |
16272 | cat conftest.err >&5 | |
39fd3d4f | 16273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7f45af8 TT |
16274 | (exit $ac_status); } && { |
16275 | test -z "$ac_c_werror_flag" || | |
16276 | test ! -s conftest.err | |
39fd3d4f SJR |
16277 | } && test -s conftest$ac_exeext && { |
16278 | test "$cross_compiling" = yes || | |
16279 | $as_test_x conftest$ac_exeext | |
16280 | }; then | |
d7f45af8 TT |
16281 | ac_cv_lib_rt_sem_init=yes |
16282 | else | |
39fd3d4f | 16283 | $as_echo "$as_me: failed program was:" >&5 |
d7f45af8 TT |
16284 | sed 's/^/| /' conftest.$ac_ext >&5 |
16285 | ||
16286 | ac_cv_lib_rt_sem_init=no | |
16287 | fi | |
16288 | ||
39fd3d4f | 16289 | rm -rf conftest.dSYM |
d7f45af8 TT |
16290 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16291 | conftest$ac_exeext conftest.$ac_ext | |
16292 | LIBS=$ac_check_lib_save_LIBS | |
16293 | fi | |
39fd3d4f SJR |
16294 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5 |
16295 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } | |
16296 | if test "x$ac_cv_lib_rt_sem_init" = x""yes; then | |
d7f45af8 TT |
16297 | cat >>confdefs.h <<\_ACEOF |
16298 | #define HAVE_SEM_INIT 1 | |
16299 | _ACEOF | |
16300 | ||
16301 | SEM_INIT_LIB=-lrt | |
16302 | else | |
39fd3d4f SJR |
16303 | { $as_echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5 |
16304 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } | |
d7f45af8 | 16305 | if test "${ac_cv_lib_posix4_sem_init+set}" = set; then |
39fd3d4f | 16306 | $as_echo_n "(cached) " >&6 |
d7f45af8 TT |
16307 | else |
16308 | ac_check_lib_save_LIBS=$LIBS | |
16309 | LIBS="-lposix4 $LIBS" | |
16310 | cat >conftest.$ac_ext <<_ACEOF | |
16311 | /* confdefs.h. */ | |
16312 | _ACEOF | |
16313 | cat confdefs.h >>conftest.$ac_ext | |
16314 | cat >>conftest.$ac_ext <<_ACEOF | |
16315 | /* end confdefs.h. */ | |
16316 | ||
16317 | /* Override any GCC internal prototype to avoid an error. | |
16318 | Use char because int might match the return type of a GCC | |
16319 | builtin and then its argument prototype would still apply. */ | |
16320 | #ifdef __cplusplus | |
16321 | extern "C" | |
16322 | #endif | |
16323 | char sem_init (); | |
16324 | int | |
16325 | main () | |
16326 | { | |
16327 | return sem_init (); | |
16328 | ; | |
16329 | return 0; | |
16330 | } | |
16331 | _ACEOF | |
16332 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16333 | if { (ac_try="$ac_link" | |
16334 | case "(($ac_try" in | |
16335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16336 | *) ac_try_echo=$ac_try;; | |
16337 | esac | |
39fd3d4f SJR |
16338 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16339 | $as_echo "$ac_try_echo") >&5 | |
d7f45af8 TT |
16340 | (eval "$ac_link") 2>conftest.er1 |
16341 | ac_status=$? | |
16342 | grep -v '^ *+' conftest.er1 >conftest.err | |
16343 | rm -f conftest.er1 | |
16344 | cat conftest.err >&5 | |
39fd3d4f | 16345 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7f45af8 TT |
16346 | (exit $ac_status); } && { |
16347 | test -z "$ac_c_werror_flag" || | |
16348 | test ! -s conftest.err | |
39fd3d4f SJR |
16349 | } && test -s conftest$ac_exeext && { |
16350 | test "$cross_compiling" = yes || | |
16351 | $as_test_x conftest$ac_exeext | |
16352 | }; then | |
d7f45af8 TT |
16353 | ac_cv_lib_posix4_sem_init=yes |
16354 | else | |
39fd3d4f | 16355 | $as_echo "$as_me: failed program was:" >&5 |
d7f45af8 TT |
16356 | sed 's/^/| /' conftest.$ac_ext >&5 |
16357 | ||
16358 | ac_cv_lib_posix4_sem_init=no | |
16359 | fi | |
16360 | ||
39fd3d4f | 16361 | rm -rf conftest.dSYM |
d7f45af8 TT |
16362 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16363 | conftest$ac_exeext conftest.$ac_ext | |
16364 | LIBS=$ac_check_lib_save_LIBS | |
16365 | fi | |
39fd3d4f SJR |
16366 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5 |
16367 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } | |
16368 | if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then | |
d7f45af8 TT |
16369 | cat >>confdefs.h <<\_ACEOF |
16370 | #define HAVE_SEM_INIT 1 | |
16371 | _ACEOF | |
16372 | ||
16373 | SEM_INIT_LIB=-lposix4 | |
16374 | fi | |
16375 | ||
16376 | fi | |
16377 | ||
16378 | fi | |
16379 | ||
16380 | fi | |
16381 | ||
39fd3d4f SJR |
16382 | { $as_echo "$as_me:$LINENO: checking for unified diff option" >&5 |
16383 | $as_echo_n "checking for unified diff option... " >&6; } | |
27f991b0 | 16384 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
e54635de TT |
16385 | UNI_DIFF_OPTS=-u |
16386 | else | |
16387 | UNI_DIFF_OPTS=-c | |
16388 | fi | |
39fd3d4f SJR |
16389 | { $as_echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 |
16390 | $as_echo "$UNI_DIFF_OPTS" >&6; } | |
e54635de | 16391 | |
8f3f29d3 TT |
16392 | case "$host_os" in |
16393 | linux*) | |
b0cacab0 | 16394 | cat >>confdefs.h <<\_ACEOF |
50e1e10f | 16395 | #define HAVE_EXT2_IOCTLS 1 |
b0cacab0 | 16396 | _ACEOF |
50e1e10f | 16397 | |
8f3f29d3 TT |
16398 | ;; |
16399 | esac | |
e6f2bda3 | 16400 | LINUX_CMT="#" |
fff45483 TT |
16401 | CYGWIN_CMT="#" |
16402 | UNIX_CMT= | |
e6f2bda3 TT |
16403 | case "$host_os" in |
16404 | linux*) | |
16405 | LINUX_CMT= | |
fff45483 TT |
16406 | ;; |
16407 | cygwin) | |
16408 | CYGWIN_CMT= | |
16409 | UNIX_CMT="#" | |
e6f2bda3 TT |
16410 | ;; |
16411 | esac | |
16412 | ||
93636bde TT |
16413 | |
16414 | ||
50e1e10f | 16415 | case "$host_os" in |
93636bde | 16416 | linux* | gnu* | k*bsd*-gnu) |
a4b2d3ce TT |
16417 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
16418 | root_prefix=""; | |
39fd3d4f SJR |
16419 | { $as_echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5 |
16420 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } | |
fc6d9d51 TT |
16421 | fi |
16422 | ;; | |
16423 | esac | |
fc6d9d51 | 16424 | case "$host_os" in |
93636bde | 16425 | linux* | gnu* | k*bsd*-gnu) |
fc6d9d51 | 16426 | if test "$prefix" = NONE ; then |
a4b2d3ce | 16427 | prefix="/usr"; |
39fd3d4f SJR |
16428 | { $as_echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5 |
16429 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } | |
bff61a7a | 16430 | if test "$mandir" = '${prefix}/man' ; then |
39fd3d4f SJR |
16431 | { $as_echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5 |
16432 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } | |
bff61a7a TT |
16433 | mandir=/usr/share/man |
16434 | fi | |
50e1e10f TT |
16435 | fi |
16436 | ;; | |
16437 | esac | |
a4b2d3ce | 16438 | if test "$root_prefix" = NONE ; then |
ffe1991f | 16439 | if test "$prefix" = NONE ; then |
a4b2d3ce TT |
16440 | root_prefix="$ac_default_prefix" |
16441 | else | |
16442 | root_prefix="$prefix" | |
16443 | fi | |
b5ffeade TT |
16444 | root_bindir=$bindir |
16445 | root_sbindir=$sbindir | |
16446 | root_libdir=$libdir | |
16447 | root_sysconfdir=$sysconfdir | |
16448 | else | |
16449 | root_bindir='${root_prefix}/bin' | |
16450 | root_sbindir='${root_prefix}/sbin' | |
16451 | root_libdir='${root_prefix}/lib' | |
16452 | root_sysconfdir='${root_prefix}/etc' | |
a4b2d3ce | 16453 | fi |
c4ef11c5 TT |
16454 | if test "$bindir" != '${exec_prefix}/bin'; then |
16455 | root_bindir=$bindir | |
39fd3d4f SJR |
16456 | { $as_echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5 |
16457 | $as_echo "Setting root_bindir to $root_bindir" >&6; } | |
c4ef11c5 TT |
16458 | fi |
16459 | if test "$sbindir" != '${exec_prefix}/sbin'; then | |
16460 | root_sbindir=$sbindir | |
39fd3d4f SJR |
16461 | { $as_echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5 |
16462 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } | |
c4ef11c5 TT |
16463 | fi |
16464 | if test "$libdir" != '${exec_prefix}/lib'; then | |
16465 | root_libdir=$libdir | |
39fd3d4f SJR |
16466 | { $as_echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5 |
16467 | $as_echo "Setting root_libdir to $root_libdir" >&6; } | |
c4ef11c5 TT |
16468 | fi |
16469 | if test "$sysconfdir" != '${prefix}/etc'; then | |
16470 | root_sysconfdir=$sysconfdir | |
39fd3d4f SJR |
16471 | { $as_echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
16472 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } | |
c4ef11c5 | 16473 | fi |
a4b2d3ce | 16474 | |
93636bde TT |
16475 | |
16476 | ||
16477 | ||
16478 | ||
39fd3d4f SJR |
16479 | { $as_echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
16480 | $as_echo_n "checking whether linker accepts -static... " >&6; } | |
b0cacab0 | 16481 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
39fd3d4f | 16482 | $as_echo_n "(cached) " >&6 |
ae851482 TT |
16483 | else |
16484 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" | |
b0cacab0 TT |
16485 | cat >conftest.$ac_ext <<_ACEOF |
16486 | /* confdefs.h. */ | |
16487 | _ACEOF | |
16488 | cat confdefs.h >>conftest.$ac_ext | |
16489 | cat >>conftest.$ac_ext <<_ACEOF | |
16490 | /* end confdefs.h. */ | |
ae851482 | 16491 | #include <stdio.h> |
b0cacab0 TT |
16492 | int |
16493 | main () | |
16494 | { | |
ae851482 | 16495 | fflush(stdout); |
b0cacab0 TT |
16496 | ; |
16497 | return 0; | |
16498 | } | |
16499 | _ACEOF | |
16500 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
16501 | if { (ac_try="$ac_link" |
16502 | case "(($ac_try" in | |
16503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16504 | *) ac_try_echo=$ac_try;; | |
16505 | esac | |
39fd3d4f SJR |
16506 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16507 | $as_echo "$ac_try_echo") >&5 | |
e1052144 | 16508 | (eval "$ac_link") 2>conftest.er1 |
b0cacab0 TT |
16509 | ac_status=$? |
16510 | grep -v '^ *+' conftest.er1 >conftest.err | |
16511 | rm -f conftest.er1 | |
16512 | cat conftest.err >&5 | |
39fd3d4f | 16513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
16514 | (exit $ac_status); } && { |
16515 | test -z "$ac_c_werror_flag" || | |
16516 | test ! -s conftest.err | |
39fd3d4f SJR |
16517 | } && test -s conftest$ac_exeext && { |
16518 | test "$cross_compiling" = yes || | |
16519 | $as_test_x conftest$ac_exeext | |
16520 | }; then | |
ae851482 TT |
16521 | ac_cv_e2fsprogs_use_static=yes |
16522 | else | |
39fd3d4f | 16523 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 TT |
16524 | sed 's/^/| /' conftest.$ac_ext >&5 |
16525 | ||
e1052144 | 16526 | ac_cv_e2fsprogs_use_static=no |
ae851482 | 16527 | fi |
e1052144 | 16528 | |
39fd3d4f | 16529 | rm -rf conftest.dSYM |
29a5deed | 16530 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 16531 | conftest$ac_exeext conftest.$ac_ext |
ae851482 TT |
16532 | LDFLAGS=$SAVE_LDFLAGS |
16533 | fi | |
50e1e10f | 16534 | |
defde784 TT |
16535 | case "$host_os" in |
16536 | solaris2.*) | |
b0cacab0 | 16537 | ac_cv_e2fsprogs_use_static=no |
defde784 TT |
16538 | ;; |
16539 | esac | |
39fd3d4f SJR |
16540 | { $as_echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
16541 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } | |
74becf3c | 16542 | LDFLAG_STATIC= |
ae851482 | 16543 | if test $ac_cv_e2fsprogs_use_static = yes; then |
50e1e10f | 16544 | LDFLAG_STATIC=-static |
ae851482 | 16545 | fi |
50e1e10f | 16546 | |
07a0db15 TT |
16547 | case "$host_os" in |
16548 | darwin*) | |
39fd3d4f SJR |
16549 | { $as_echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5 |
16550 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } | |
b0cacab0 | 16551 | cat >>confdefs.h <<\_ACEOF |
07a0db15 | 16552 | #define _INTL_REDIRECT_MACROS 1 |
b0cacab0 | 16553 | _ACEOF |
07a0db15 TT |
16554 | |
16555 | ;; | |
16556 | esac | |
50e1e10f TT |
16557 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
16558 | ET_DIR=`cd ${srcdir}/lib/et; pwd` | |
16559 | ||
93636bde | 16560 | |
50e1e10f TT |
16561 | if test "$cross_compiling" = yes ; then |
16562 | DO_TEST_SUITE= | |
16563 | else | |
16564 | DO_TEST_SUITE=check | |
16565 | fi | |
16566 | ||
c6f35b8a TT |
16567 | INTL_FLAGS= |
16568 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then | |
16569 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' | |
16570 | fi | |
16571 | ||
dd947da2 TT |
16572 | if test $cross_compiling = no; then |
16573 | BUILD_CFLAGS="$CFLAGS" | |
16574 | BUILD_LDFLAGS="$LDFLAGS" | |
16575 | else | |
16576 | BUILD_CFLAGS= | |
16577 | BUILD_LDFLAGS= | |
16578 | fi | |
16579 | ||
16580 | ||
50e1e10f TT |
16581 | test -d lib || mkdir lib |
16582 | test -d include || mkdir include | |
16583 | test -d include/linux || mkdir include/linux | |
defde784 | 16584 | test -d include/asm || mkdir include/asm |
bff0cc95 TT |
16585 | for i in MCONFIG Makefile e2fsprogs.spec \ |
16586 | util/Makefile util/subst.conf util/gen-tarball \ | |
4ea7ea00 TT |
16587 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
16588 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ | |
94ba8c75 TT |
16589 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
16590 | lib/blkid/Makefile lib/blkid/blkid_types.h \ | |
e6441865 TT |
16591 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
16592 | lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ | |
921f4ad5 | 16593 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
94ba8c75 | 16594 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
98a5ad61 MA |
16595 | resize/Makefile doc/Makefile intl/Makefile \ |
16596 | intl/libgnuintl.h po/Makefile.in ; do | |
94ba8c75 TT |
16597 | if test -d `dirname ${srcdir}/$i` ; then |
16598 | outlist="$outlist $i" | |
16599 | fi | |
16600 | done | |
e1052144 TT |
16601 | ac_config_files="$ac_config_files $outlist" |
16602 | ||
b0cacab0 | 16603 | cat >confcache <<\_ACEOF |
50e1e10f TT |
16604 | # This file is a shell script that caches the results of configure |
16605 | # tests run on this system so they can be shared between configure | |
b0cacab0 TT |
16606 | # scripts and configure runs, see configure's option --config-cache. |
16607 | # It is not useful on other systems. If it contains results you don't | |
16608 | # want to keep, you may remove or edit it. | |
50e1e10f | 16609 | # |
b0cacab0 TT |
16610 | # config.status only pays attention to the cache file if you give it |
16611 | # the --recheck option to rerun configure. | |
50e1e10f | 16612 | # |
b0cacab0 TT |
16613 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
16614 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16615 | # following values. | |
16616 | ||
16617 | _ACEOF | |
16618 | ||
21c84b71 TT |
16619 | # The following way of writing the cache mishandles newlines in values, |
16620 | # but we know of no workaround that is simple, portable, and efficient. | |
e1052144 | 16621 | # So, we kill variables containing newlines. |
50e1e10f TT |
16622 | # Ultrix sh set writes to stderr and can't be redirected directly, |
16623 | # and sets the high bit in the cache file unless we assign to the vars. | |
e1052144 TT |
16624 | ( |
16625 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16626 | eval ac_val=\$$ac_var | |
16627 | case $ac_val in #( | |
16628 | *${as_nl}*) | |
16629 | case $ac_var in #( | |
39fd3d4f SJR |
16630 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
16631 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
e1052144 TT |
16632 | esac |
16633 | case $ac_var in #( | |
16634 | _ | IFS | as_nl) ;; #( | |
39fd3d4f | 16635 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
e1052144 TT |
16636 | *) $as_unset $ac_var ;; |
16637 | esac ;; | |
16638 | esac | |
16639 | done | |
16640 | ||
b0cacab0 | 16641 | (set) 2>&1 | |
e1052144 TT |
16642 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
16643 | *${as_nl}ac_space=\ *) | |
b0cacab0 TT |
16644 | # `set' does not quote correctly, so add quotes (double-quote |
16645 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
16646 | sed -n \ | |
16647 | "s/'/'\\\\''/g; | |
16648 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e1052144 | 16649 | ;; #( |
b0cacab0 TT |
16650 | *) |
16651 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
e1052144 | 16652 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b0cacab0 | 16653 | ;; |
e1052144 TT |
16654 | esac | |
16655 | sort | |
16656 | ) | | |
b0cacab0 | 16657 | sed ' |
e1052144 | 16658 | /^ac_cv_env_/b end |
b0cacab0 | 16659 | t clear |
e1052144 | 16660 | :clear |
b0cacab0 TT |
16661 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
16662 | t end | |
e1052144 TT |
16663 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
16664 | :end' >>confcache | |
16665 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16666 | if test -w "$cache_file"; then | |
16667 | test "x$cache_file" != "x/dev/null" && | |
39fd3d4f SJR |
16668 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
16669 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b0cacab0 | 16670 | cat confcache >$cache_file |
50e1e10f | 16671 | else |
39fd3d4f SJR |
16672 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
16673 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
50e1e10f TT |
16674 | fi |
16675 | fi | |
16676 | rm -f confcache | |
16677 | ||
50e1e10f TT |
16678 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
16679 | # Let make expand exec_prefix. | |
16680 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16681 | ||
50e1e10f TT |
16682 | # Transform confdefs.h into DEFS. |
16683 | # Protect against shell expansion while executing Makefile rules. | |
16684 | # Protect against Makefile macro expansion. | |
b0cacab0 TT |
16685 | # |
16686 | # If the first sed substitution is executed (which looks for macros that | |
e1052144 | 16687 | # take arguments), then branch to the quote section. Otherwise, |
b0cacab0 | 16688 | # look for a macro that doesn't take arguments. |
e1052144 | 16689 | ac_script=' |
39fd3d4f SJR |
16690 | :mline |
16691 | /\\$/{ | |
16692 | N | |
16693 | s,\\\n,, | |
16694 | b mline | |
16695 | } | |
b0cacab0 | 16696 | t clear |
e1052144 TT |
16697 | :clear |
16698 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
b0cacab0 | 16699 | t quote |
e1052144 | 16700 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
b0cacab0 | 16701 | t quote |
e1052144 TT |
16702 | b any |
16703 | :quote | |
16704 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
16705 | s/\[/\\&/g | |
16706 | s/\]/\\&/g | |
16707 | s/\$/$$/g | |
16708 | H | |
16709 | :any | |
16710 | ${ | |
16711 | g | |
16712 | s/^\n// | |
16713 | s/\n/ /g | |
16714 | p | |
16715 | } | |
16716 | ' | |
16717 | DEFS=`sed -n "$ac_script" confdefs.h` | |
b0cacab0 TT |
16718 | |
16719 | ||
16720 | ac_libobjs= | |
16721 | ac_ltlibobjs= | |
16722 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
16723 | # 1. Remove the extension, and $U if already installed. | |
e1052144 | 16724 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
39fd3d4f | 16725 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
e1052144 TT |
16726 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
16727 | # will be set to the directory where LIBOBJS objects are built. | |
16728 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
16729 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
b0cacab0 TT |
16730 | done |
16731 | LIBOBJS=$ac_libobjs | |
50e1e10f | 16732 | |
b0cacab0 TT |
16733 | LTLIBOBJS=$ac_ltlibobjs |
16734 | ||
16735 | ||
16736 | ||
39fd3d4f | 16737 | |
b0cacab0 | 16738 | : ${CONFIG_STATUS=./config.status} |
39fd3d4f | 16739 | ac_write_fail=0 |
b0cacab0 TT |
16740 | ac_clean_files_save=$ac_clean_files |
16741 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
39fd3d4f SJR |
16742 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
16743 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
16744 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0cacab0 TT |
16745 | #! $SHELL |
16746 | # Generated by $as_me. | |
93636bde | 16747 | # Run this file to recreate the current configuration. |
93636bde | 16748 | # Compiler output produced by configure, useful for debugging |
b0cacab0 | 16749 | # configure, is in config.log if it exists. |
07a0db15 | 16750 | |
b0cacab0 TT |
16751 | debug=false |
16752 | ac_cs_recheck=false | |
16753 | ac_cs_silent=false | |
16754 | SHELL=\${CONFIG_SHELL-$SHELL} | |
16755 | _ACEOF | |
16756 | ||
39fd3d4f | 16757 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0cacab0 TT |
16758 | ## --------------------- ## |
16759 | ## M4sh Initialization. ## | |
16760 | ## --------------------- ## | |
16761 | ||
29a5deed TT |
16762 | # Be more Bourne compatible |
16763 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0cacab0 TT |
16764 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16765 | emulate sh | |
16766 | NULLCMD=: | |
39fd3d4f | 16767 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b0cacab0 TT |
16768 | # is contrary to our usage. Disable this feature. |
16769 | alias -g '${1+"$@"}'='"$@"' | |
e1052144 TT |
16770 | setopt NO_GLOB_SUBST |
16771 | else | |
29a5deed TT |
16772 | case `(set -o) 2>/dev/null` in |
16773 | *posix*) set -o posix ;; | |
16774 | esac | |
16775 | ||
b0cacab0 | 16776 | fi |
29a5deed TT |
16777 | |
16778 | ||
b0cacab0 | 16779 | |
e1052144 TT |
16780 | |
16781 | # PATH needs CR | |
16782 | # Avoid depending upon Character Ranges. | |
16783 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16784 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16785 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16786 | as_cr_digits='0123456789' | |
16787 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16788 | ||
39fd3d4f SJR |
16789 | as_nl=' |
16790 | ' | |
16791 | export as_nl | |
16792 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
16793 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
16794 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
16795 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
16796 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16797 | as_echo='printf %s\n' | |
16798 | as_echo_n='printf %s' | |
16799 | else | |
16800 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
16801 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
16802 | as_echo_n='/usr/ucb/echo -n' | |
e1052144 | 16803 | else |
39fd3d4f SJR |
16804 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
16805 | as_echo_n_body='eval | |
16806 | arg=$1; | |
16807 | case $arg in | |
16808 | *"$as_nl"*) | |
16809 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
16810 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
16811 | esac; | |
16812 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
16813 | ' | |
16814 | export as_echo_n_body | |
16815 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
e1052144 | 16816 | fi |
39fd3d4f SJR |
16817 | export as_echo_body |
16818 | as_echo='sh -c $as_echo_body as_echo' | |
16819 | fi | |
16820 | ||
16821 | # The user is always right. | |
16822 | if test "${PATH_SEPARATOR+set}" != set; then | |
16823 | PATH_SEPARATOR=: | |
16824 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16825 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16826 | PATH_SEPARATOR=';' | |
16827 | } | |
e1052144 TT |
16828 | fi |
16829 | ||
b0cacab0 TT |
16830 | # Support unset when possible. |
16831 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
16832 | as_unset=unset | |
16833 | else | |
16834 | as_unset=false | |
16835 | fi | |
16836 | ||
16837 | ||
e1052144 TT |
16838 | # IFS |
16839 | # We need space, tab and new line, in precisely that order. Quoting is | |
16840 | # there to prevent editors from complaining about space-tab. | |
16841 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
16842 | # splitting by setting IFS to empty value.) | |
e1052144 TT |
16843 | IFS=" "" $as_nl" |
16844 | ||
16845 | # Find who we are. Look in the path if we contain no directory separator. | |
16846 | case $0 in | |
16847 | *[\\/]* ) as_myself=$0 ;; | |
16848 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16849 | for as_dir in $PATH | |
16850 | do | |
16851 | IFS=$as_save_IFS | |
16852 | test -z "$as_dir" && as_dir=. | |
16853 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16854 | done | |
16855 | IFS=$as_save_IFS | |
16856 | ||
16857 | ;; | |
16858 | esac | |
16859 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16860 | # in which case we are not to be found in the path. | |
16861 | if test "x$as_myself" = x; then | |
16862 | as_myself=$0 | |
16863 | fi | |
16864 | if test ! -f "$as_myself"; then | |
39fd3d4f | 16865 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
e1052144 TT |
16866 | { (exit 1); exit 1; } |
16867 | fi | |
16868 | ||
b0cacab0 | 16869 | # Work around bugs in pre-3.0 UWIN ksh. |
e1052144 TT |
16870 | for as_var in ENV MAIL MAILPATH |
16871 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
16872 | done | |
b0cacab0 TT |
16873 | PS1='$ ' |
16874 | PS2='> ' | |
16875 | PS4='+ ' | |
16876 | ||
16877 | # NLS nuisances. | |
39fd3d4f SJR |
16878 | LC_ALL=C |
16879 | export LC_ALL | |
16880 | LANGUAGE=C | |
16881 | export LANGUAGE | |
b0cacab0 TT |
16882 | |
16883 | # Required to use basename. | |
e1052144 TT |
16884 | if expr a : '\(a\)' >/dev/null 2>&1 && |
16885 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
16886 | as_expr=expr |
16887 | else | |
16888 | as_expr=false | |
16889 | fi | |
16890 | ||
e1052144 | 16891 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b0cacab0 TT |
16892 | as_basename=basename |
16893 | else | |
16894 | as_basename=false | |
16895 | fi | |
16896 | ||
16897 | ||
16898 | # Name of the executable. | |
e1052144 | 16899 | as_me=`$as_basename -- "$0" || |
b0cacab0 TT |
16900 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
16901 | X"$0" : 'X\(//\)$' \| \ | |
e1052144 | 16902 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
39fd3d4f | 16903 | $as_echo X/"$0" | |
e1052144 TT |
16904 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
16905 | s//\1/ | |
16906 | q | |
16907 | } | |
16908 | /^X\/\(\/\/\)$/{ | |
16909 | s//\1/ | |
16910 | q | |
16911 | } | |
16912 | /^X\/\(\/\).*/{ | |
16913 | s//\1/ | |
16914 | q | |
16915 | } | |
16916 | s/.*/./; q'` | |
b0cacab0 | 16917 | |
e1052144 TT |
16918 | # CDPATH. |
16919 | $as_unset CDPATH | |
b0cacab0 | 16920 | |
b0cacab0 TT |
16921 | |
16922 | ||
16923 | as_lineno_1=$LINENO | |
16924 | as_lineno_2=$LINENO | |
b0cacab0 | 16925 | test "x$as_lineno_1" != "x$as_lineno_2" && |
e1052144 | 16926 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
b0cacab0 TT |
16927 | |
16928 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
16929 | # uniformly replaced by the line number. The first 'sed' inserts a | |
e1052144 TT |
16930 | # line-number line after each line using $LINENO; the second 'sed' |
16931 | # does the real work. The second script uses 'N' to pair each | |
16932 | # line-number line with the line containing $LINENO, and appends | |
16933 | # trailing '-' during substitution so that $LINENO is not a special | |
16934 | # case at line end. | |
b0cacab0 | 16935 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
e1052144 TT |
16936 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
16937 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
16938 | sed -n ' | |
16939 | p | |
16940 | /[$]LINENO/= | |
16941 | ' <$as_myself | | |
b0cacab0 | 16942 | sed ' |
e1052144 TT |
16943 | s/[$]LINENO.*/&-/ |
16944 | t lineno | |
16945 | b | |
16946 | :lineno | |
b0cacab0 | 16947 | N |
e1052144 TT |
16948 | :loop |
16949 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b0cacab0 | 16950 | t loop |
e1052144 | 16951 | s/-\n.*// |
b0cacab0 | 16952 | ' >$as_me.lineno && |
e1052144 | 16953 | chmod +x "$as_me.lineno" || |
39fd3d4f | 16954 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
b0cacab0 TT |
16955 | { (exit 1); exit 1; }; } |
16956 | ||
16957 | # Don't try to exec as it changes $[0], causing all sort of problems | |
16958 | # (the dirname of $[0] is not the place where we might find the | |
e1052144 TT |
16959 | # original and so on. Autoconf is especially sensitive to this). |
16960 | . "./$as_me.lineno" | |
b0cacab0 TT |
16961 | # Exit status is that of the last command. |
16962 | exit | |
16963 | } | |
16964 | ||
16965 | ||
e1052144 TT |
16966 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
16967 | as_dirname=dirname | |
16968 | else | |
16969 | as_dirname=false | |
16970 | fi | |
16971 | ||
16972 | ECHO_C= ECHO_N= ECHO_T= | |
16973 | case `echo -n x` in | |
16974 | -n*) | |
16975 | case `echo 'x\c'` in | |
16976 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16977 | *) ECHO_C='\c';; | |
16978 | esac;; | |
16979 | *) | |
16980 | ECHO_N='-n';; | |
b0cacab0 | 16981 | esac |
e1052144 TT |
16982 | if expr a : '\(a\)' >/dev/null 2>&1 && |
16983 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
16984 | as_expr=expr |
16985 | else | |
16986 | as_expr=false | |
16987 | fi | |
16988 | ||
16989 | rm -f conf$$ conf$$.exe conf$$.file | |
e1052144 TT |
16990 | if test -d conf$$.dir; then |
16991 | rm -f conf$$.dir/conf$$.file | |
16992 | else | |
16993 | rm -f conf$$.dir | |
39fd3d4f SJR |
16994 | mkdir conf$$.dir 2>/dev/null |
16995 | fi | |
16996 | if (echo >conf$$.file) 2>/dev/null; then | |
16997 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16998 | as_ln_s='ln -s' | |
16999 | # ... but there are two gotchas: | |
17000 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
17001 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
17002 | # In both cases, we have to default to `cp -p'. | |
17003 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
17004 | as_ln_s='cp -p' | |
17005 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
17006 | as_ln_s=ln | |
17007 | else | |
b0cacab0 | 17008 | as_ln_s='cp -p' |
39fd3d4f | 17009 | fi |
b0cacab0 TT |
17010 | else |
17011 | as_ln_s='cp -p' | |
17012 | fi | |
e1052144 TT |
17013 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
17014 | rmdir conf$$.dir 2>/dev/null | |
b0cacab0 TT |
17015 | |
17016 | if mkdir -p . 2>/dev/null; then | |
17017 | as_mkdir_p=: | |
17018 | else | |
17019 | test -d ./-p && rmdir ./-p | |
17020 | as_mkdir_p=false | |
17021 | fi | |
17022 | ||
29a5deed TT |
17023 | if test -x / >/dev/null 2>&1; then |
17024 | as_test_x='test -x' | |
e1052144 | 17025 | else |
29a5deed TT |
17026 | if ls -dL / >/dev/null 2>&1; then |
17027 | as_ls_L_option=L | |
17028 | else | |
17029 | as_ls_L_option= | |
17030 | fi | |
17031 | as_test_x=' | |
17032 | eval sh -c '\'' | |
17033 | if test -d "$1"; then | |
39fd3d4f | 17034 | test -d "$1/."; |
29a5deed TT |
17035 | else |
17036 | case $1 in | |
39fd3d4f | 17037 | -*)set "./$1";; |
29a5deed TT |
17038 | esac; |
17039 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
17040 | ???[sx]*):;;*)false;;esac;fi | |
17041 | '\'' sh | |
17042 | ' | |
e1052144 | 17043 | fi |
29a5deed | 17044 | as_executable_p=$as_test_x |
b0cacab0 TT |
17045 | |
17046 | # Sed expression to map a string onto a valid CPP name. | |
17047 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
17048 | ||
17049 | # Sed expression to map a string onto a valid variable name. | |
17050 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
17051 | ||
17052 | ||
b0cacab0 TT |
17053 | exec 6>&1 |
17054 | ||
e1052144 | 17055 | # Save the log message, to keep $[0] and so on meaningful, and to |
b0cacab0 | 17056 | # report actual input values of CONFIG_FILES etc. instead of their |
e1052144 TT |
17057 | # values after options handling. |
17058 | ac_log=" | |
b0cacab0 | 17059 | This file was extended by $as_me, which was |
39fd3d4f | 17060 | generated by GNU Autoconf 2.63. Invocation command line was |
b0cacab0 TT |
17061 | |
17062 | CONFIG_FILES = $CONFIG_FILES | |
17063 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17064 | CONFIG_LINKS = $CONFIG_LINKS | |
17065 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17066 | $ $0 $@ | |
17067 | ||
e1052144 TT |
17068 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
17069 | " | |
17070 | ||
b0cacab0 TT |
17071 | _ACEOF |
17072 | ||
39fd3d4f SJR |
17073 | case $ac_config_files in *" |
17074 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17075 | esac | |
17076 | ||
17077 | ||
17078 | ||
17079 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0cacab0 | 17080 | # Files that config.status was made for. |
e1052144 TT |
17081 | config_files="$ac_config_files" |
17082 | config_commands="$ac_config_commands" | |
b0cacab0 | 17083 | |
e1052144 | 17084 | _ACEOF |
b0cacab0 | 17085 | |
39fd3d4f | 17086 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0cacab0 TT |
17087 | ac_cs_usage="\ |
17088 | \`$as_me' instantiates files from templates according to the | |
17089 | current configuration. | |
17090 | ||
39fd3d4f | 17091 | Usage: $0 [OPTION]... [FILE]... |
b0cacab0 TT |
17092 | |
17093 | -h, --help print this help, then exit | |
29a5deed | 17094 | -V, --version print version number and configuration settings, then exit |
39fd3d4f SJR |
17095 | -q, --quiet, --silent |
17096 | do not print progress messages | |
b0cacab0 TT |
17097 | -d, --debug don't remove temporary files |
17098 | --recheck update $as_me by reconfiguring in the same conditions | |
39fd3d4f SJR |
17099 | --file=FILE[:TEMPLATE] |
17100 | instantiate the configuration file FILE | |
b0cacab0 TT |
17101 | |
17102 | Configuration files: | |
17103 | $config_files | |
17104 | ||
17105 | Configuration commands: | |
17106 | $config_commands | |
17107 | ||
17108 | Report bugs to <bug-autoconf@gnu.org>." | |
b0cacab0 | 17109 | |
e1052144 | 17110 | _ACEOF |
39fd3d4f | 17111 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0cacab0 TT |
17112 | ac_cs_version="\\ |
17113 | config.status | |
39fd3d4f SJR |
17114 | configured by $0, generated by GNU Autoconf 2.63, |
17115 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
b0cacab0 | 17116 | |
39fd3d4f | 17117 | Copyright (C) 2008 Free Software Foundation, Inc. |
b0cacab0 TT |
17118 | This config.status script is free software; the Free Software Foundation |
17119 | gives unlimited permission to copy, distribute and modify it." | |
e1052144 TT |
17120 | |
17121 | ac_pwd='$ac_pwd' | |
17122 | srcdir='$srcdir' | |
17123 | INSTALL='$INSTALL' | |
39fd3d4f SJR |
17124 | AWK='$AWK' |
17125 | test -n "\$AWK" || AWK=awk | |
b0cacab0 TT |
17126 | _ACEOF |
17127 | ||
39fd3d4f SJR |
17128 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17129 | # The default lists apply if the user does not specify any file. | |
b0cacab0 TT |
17130 | ac_need_defaults=: |
17131 | while test $# != 0 | |
07a0db15 | 17132 | do |
b0cacab0 TT |
17133 | case $1 in |
17134 | --*=*) | |
e1052144 TT |
17135 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
17136 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b0cacab0 TT |
17137 | ac_shift=: |
17138 | ;; | |
e1052144 | 17139 | *) |
b0cacab0 TT |
17140 | ac_option=$1 |
17141 | ac_optarg=$2 | |
17142 | ac_shift=shift | |
17143 | ;; | |
b0cacab0 TT |
17144 | esac |
17145 | ||
17146 | case $ac_option in | |
17147 | # Handling of the options. | |
93636bde | 17148 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b0cacab0 | 17149 | ac_cs_recheck=: ;; |
e1052144 | 17150 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
39fd3d4f | 17151 | $as_echo "$ac_cs_version"; exit ;; |
e1052144 | 17152 | --debug | --debu | --deb | --de | --d | -d ) |
b0cacab0 TT |
17153 | debug=: ;; |
17154 | --file | --fil | --fi | --f ) | |
17155 | $ac_shift | |
39fd3d4f SJR |
17156 | case $ac_optarg in |
17157 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17158 | esac | |
17159 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
b0cacab0 | 17160 | ac_need_defaults=false;; |
e1052144 | 17161 | --he | --h | --help | --hel | -h ) |
39fd3d4f | 17162 | $as_echo "$ac_cs_usage"; exit ;; |
b0cacab0 TT |
17163 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
17164 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17165 | ac_cs_silent=: ;; | |
17166 | ||
17167 | # This is an error. | |
39fd3d4f | 17168 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
e1052144 | 17169 | Try \`$0 --help' for more information." >&2 |
b0cacab0 TT |
17170 | { (exit 1); exit 1; }; } ;; |
17171 | ||
e1052144 TT |
17172 | *) ac_config_targets="$ac_config_targets $1" |
17173 | ac_need_defaults=false ;; | |
b0cacab0 | 17174 | |
07a0db15 | 17175 | esac |
b0cacab0 | 17176 | shift |
07a0db15 TT |
17177 | done |
17178 | ||
b0cacab0 TT |
17179 | ac_configure_extra_args= |
17180 | ||
17181 | if $ac_cs_silent; then | |
17182 | exec 6>/dev/null | |
17183 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17184 | fi | |
17185 | ||
17186 | _ACEOF | |
39fd3d4f | 17187 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0cacab0 | 17188 | if \$ac_cs_recheck; then |
39fd3d4f SJR |
17189 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
17190 | shift | |
17191 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17192 | CONFIG_SHELL='$SHELL' | |
e1052144 | 17193 | export CONFIG_SHELL |
39fd3d4f | 17194 | exec "\$@" |
b0cacab0 | 17195 | fi |
07a0db15 | 17196 | |
b0cacab0 | 17197 | _ACEOF |
39fd3d4f | 17198 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
17199 | exec 5>>config.log |
17200 | { | |
17201 | echo | |
17202 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17203 | ## Running $as_me. ## | |
17204 | _ASBOX | |
39fd3d4f | 17205 | $as_echo "$ac_log" |
e1052144 | 17206 | } >&5 |
07a0db15 | 17207 | |
e1052144 | 17208 | _ACEOF |
39fd3d4f | 17209 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0cacab0 | 17210 | # |
e1052144 | 17211 | # INIT-COMMANDS |
b0cacab0 | 17212 | # |
b0cacab0 TT |
17213 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
17214 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | |
17215 | # from automake. | |
17216 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
17217 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
17218 | LINGUAS="${LINGUAS-%UNSET%}" | |
17219 | ||
17220 | ||
17221 | _ACEOF | |
17222 | ||
39fd3d4f | 17223 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
17224 | |
17225 | # Handling of arguments. | |
b0cacab0 TT |
17226 | for ac_config_target in $ac_config_targets |
17227 | do | |
e1052144 TT |
17228 | case $ac_config_target in |
17229 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
17230 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; | |
17231 | ||
39fd3d4f SJR |
17232 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
17233 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
b0cacab0 TT |
17234 | { (exit 1); exit 1; }; };; |
17235 | esac | |
17236 | done | |
17237 | ||
e1052144 | 17238 | |
b0cacab0 TT |
17239 | # If the user did not use the arguments to specify the items to instantiate, |
17240 | # then the envvar interface is used. Set only those that are not. | |
17241 | # We use the long form for the default assignment because of an extremely | |
17242 | # bizarre bug on SunOS 4.1.3. | |
17243 | if $ac_need_defaults; then | |
17244 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
17245 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
17246 | fi | |
17247 | ||
17248 | # Have a temporary directory for convenience. Make it in the build tree | |
e1052144 | 17249 | # simply because there is no reason against having it here, and in addition, |
b0cacab0 | 17250 | # creating and moving files from /tmp can sometimes cause problems. |
e1052144 TT |
17251 | # Hook for its removal unless debugging. |
17252 | # Note that there is a small window in which the directory will not be cleaned: | |
17253 | # after its creation but before its name has been assigned to `$tmp'. | |
b0cacab0 TT |
17254 | $debug || |
17255 | { | |
e1052144 TT |
17256 | tmp= |
17257 | trap 'exit_status=$? | |
17258 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
17259 | ' 0 | |
b0cacab0 TT |
17260 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
17261 | } | |
b0cacab0 TT |
17262 | # Create a (secure) tmp directory for tmp files. |
17263 | ||
17264 | { | |
e1052144 | 17265 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b0cacab0 TT |
17266 | test -n "$tmp" && test -d "$tmp" |
17267 | } || | |
17268 | { | |
e1052144 TT |
17269 | tmp=./conf$$-$RANDOM |
17270 | (umask 077 && mkdir "$tmp") | |
b0cacab0 TT |
17271 | } || |
17272 | { | |
39fd3d4f | 17273 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
b0cacab0 TT |
17274 | { (exit 1); exit 1; } |
17275 | } | |
17276 | ||
39fd3d4f SJR |
17277 | # Set up the scripts for CONFIG_FILES section. |
17278 | # No need to generate them if there are no CONFIG_FILES. | |
17279 | # This happens for instance with `./config.status config.h'. | |
e1052144 TT |
17280 | if test -n "$CONFIG_FILES"; then |
17281 | ||
39fd3d4f SJR |
17282 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
17283 | ac_cs_awk_getline=: | |
17284 | ac_cs_awk_pipe_init= | |
17285 | ac_cs_awk_read_file=' | |
17286 | while ((getline aline < (F[key])) > 0) | |
17287 | print(aline) | |
17288 | close(F[key])' | |
17289 | ac_cs_awk_pipe_fini= | |
17290 | else | |
17291 | ac_cs_awk_getline=false | |
17292 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
17293 | ac_cs_awk_read_file=' | |
17294 | print "|#_!!_#|" | |
17295 | print "cat " F[key] " &&" | |
17296 | '$ac_cs_awk_pipe_init | |
17297 | # The final `:' finishes the AND list. | |
17298 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
17299 | fi | |
17300 | ac_cr='\r' | |
17301 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
17302 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
17303 | ac_cs_awk_cr='\\r' | |
17304 | else | |
17305 | ac_cs_awk_cr=$ac_cr | |
17306 | fi | |
e1052144 | 17307 | |
39fd3d4f SJR |
17308 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
17309 | _ACEOF | |
e1052144 | 17310 | |
39fd3d4f SJR |
17311 | # Create commands to substitute file output variables. |
17312 | { | |
17313 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && | |
17314 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
17315 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
17316 | echo "_ACAWK" && | |
17317 | echo "_ACEOF" | |
17318 | } >conf$$files.sh && | |
17319 | . ./conf$$files.sh || | |
17320 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
17321 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
17322 | { (exit 1); exit 1; }; } | |
17323 | rm -f conf$$files.sh | |
e1052144 | 17324 | |
39fd3d4f SJR |
17325 | { |
17326 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
17327 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
17328 | echo "_ACEOF" | |
17329 | } >conf$$subs.sh || | |
17330 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
17331 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
17332 | { (exit 1); exit 1; }; } | |
17333 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
e1052144 TT |
17334 | ac_delim='%!_!# ' |
17335 | for ac_last_try in false false false false false :; do | |
39fd3d4f SJR |
17336 | . ./conf$$subs.sh || |
17337 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
17338 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
17339 | { (exit 1); exit 1; }; } | |
17340 | ||
17341 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
17342 | if test $ac_delim_n = $ac_delim_num; then | |
e1052144 TT |
17343 | break |
17344 | elif $ac_last_try; then | |
39fd3d4f SJR |
17345 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
17346 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
e1052144 TT |
17347 | { (exit 1); exit 1; }; } |
17348 | else | |
17349 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21c84b71 | 17350 | fi |
e1052144 | 17351 | done |
39fd3d4f SJR |
17352 | rm -f conf$$subs.sh |
17353 | ||
17354 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17355 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
17356 | _ACEOF | |
17357 | sed -n ' | |
17358 | h | |
17359 | s/^/S["/; s/!.*/"]=/ | |
17360 | p | |
17361 | g | |
17362 | s/^[^!]*!// | |
17363 | :repl | |
17364 | t repl | |
17365 | s/'"$ac_delim"'$// | |
17366 | t delim | |
17367 | :nl | |
17368 | h | |
17369 | s/\(.\{148\}\).*/\1/ | |
17370 | t more1 | |
17371 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
17372 | p | |
17373 | n | |
17374 | b repl | |
17375 | :more1 | |
17376 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17377 | p | |
17378 | g | |
17379 | s/.\{148\}// | |
17380 | t nl | |
17381 | :delim | |
17382 | h | |
17383 | s/\(.\{148\}\).*/\1/ | |
17384 | t more2 | |
17385 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
17386 | p | |
17387 | b | |
17388 | :more2 | |
17389 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17390 | p | |
17391 | g | |
17392 | s/.\{148\}// | |
17393 | t delim | |
17394 | ' <conf$$subs.awk | sed ' | |
17395 | /^[^""]/{ | |
17396 | N | |
17397 | s/\n// | |
e1052144 | 17398 | } |
39fd3d4f SJR |
17399 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
17400 | rm -f conf$$subs.awk | |
17401 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17402 | _ACAWK | |
17403 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
17404 | for (key in S) S_is_set[key] = 1 | |
17405 | FS = "\a" | |
17406 | \$ac_cs_awk_pipe_init | |
e1052144 | 17407 | } |
39fd3d4f SJR |
17408 | { |
17409 | line = $ 0 | |
17410 | nfields = split(line, field, "@") | |
17411 | substed = 0 | |
17412 | len = length(field[1]) | |
17413 | for (i = 2; i < nfields; i++) { | |
17414 | key = field[i] | |
17415 | keylen = length(key) | |
17416 | if (S_is_set[key]) { | |
17417 | value = S[key] | |
17418 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
17419 | len += length(value) + length(field[++i]) | |
17420 | substed = 1 | |
17421 | } else | |
17422 | len += 1 + keylen | |
17423 | } | |
17424 | if (nfields == 3 && !substed) { | |
17425 | key = field[2] | |
17426 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
17427 | \$ac_cs_awk_read_file | |
17428 | next | |
17429 | } | |
17430 | } | |
17431 | print line | |
488c75a6 | 17432 | } |
39fd3d4f SJR |
17433 | \$ac_cs_awk_pipe_fini |
17434 | _ACAWK | |
e1052144 | 17435 | _ACEOF |
39fd3d4f SJR |
17436 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17437 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
17438 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
17439 | else | |
17440 | cat | |
17441 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
17442 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
17443 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
e1052144 | 17444 | { (exit 1); exit 1; }; } |
b0cacab0 | 17445 | _ACEOF |
e1052144 | 17446 | |
e1052144 TT |
17447 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
17448 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
17449 | # trailing colons and then remove the whole line if VPATH becomes empty | |
17450 | # (actually we leave an empty line to preserve line numbers). | |
17451 | if test "x$srcdir" = x.; then | |
17452 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
17453 | s/:*\$(srcdir):*/:/ | |
17454 | s/:*\${srcdir}:*/:/ | |
17455 | s/:*@srcdir@:*/:/ | |
17456 | s/^\([^=]*=[ ]*\):*/\1/ | |
17457 | s/:*$// | |
17458 | s/^[^=]*=[ ]*$// | |
17459 | }' | |
17460 | fi | |
17461 | ||
39fd3d4f | 17462 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
17463 | fi # test -n "$CONFIG_FILES" |
17464 | ||
17465 | ||
39fd3d4f SJR |
17466 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
17467 | shift | |
17468 | for ac_tag | |
e1052144 TT |
17469 | do |
17470 | case $ac_tag in | |
17471 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17472 | esac | |
17473 | case $ac_mode$ac_tag in | |
17474 | :[FHL]*:*);; | |
39fd3d4f SJR |
17475 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
17476 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
e1052144 TT |
17477 | { (exit 1); exit 1; }; };; |
17478 | :[FH]-) ac_tag=-:-;; | |
17479 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17480 | esac | |
17481 | ac_save_IFS=$IFS | |
17482 | IFS=: | |
17483 | set x $ac_tag | |
17484 | IFS=$ac_save_IFS | |
17485 | shift | |
17486 | ac_file=$1 | |
17487 | shift | |
17488 | ||
17489 | case $ac_mode in | |
17490 | :L) ac_source=$1;; | |
17491 | :[FH]) | |
17492 | ac_file_inputs= | |
17493 | for ac_f | |
17494 | do | |
17495 | case $ac_f in | |
17496 | -) ac_f="$tmp/stdin";; | |
17497 | *) # Look for the file first in the build tree, then in the source tree | |
17498 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17499 | # because $ac_f cannot contain `:'. | |
17500 | test -f "$ac_f" || | |
17501 | case $ac_f in | |
17502 | [\\/$]*) false;; | |
17503 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17504 | esac || | |
39fd3d4f SJR |
17505 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
17506 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
e1052144 TT |
17507 | { (exit 1); exit 1; }; };; |
17508 | esac | |
39fd3d4f SJR |
17509 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
17510 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
e1052144 TT |
17511 | done |
17512 | ||
17513 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17514 | # use $as_me), people would be surprised to read: | |
17515 | # /* config.h. Generated by config.status. */ | |
39fd3d4f SJR |
17516 | configure_input='Generated from '` |
17517 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17518 | `' by configure.' | |
e1052144 TT |
17519 | if test x"$ac_file" != x-; then |
17520 | configure_input="$ac_file. $configure_input" | |
39fd3d4f SJR |
17521 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
17522 | $as_echo "$as_me: creating $ac_file" >&6;} | |
e1052144 | 17523 | fi |
39fd3d4f SJR |
17524 | # Neutralize special characters interpreted by sed in replacement strings. |
17525 | case $configure_input in #( | |
17526 | *\&* | *\|* | *\\* ) | |
17527 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
17528 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
17529 | *) ac_sed_conf_input=$configure_input;; | |
17530 | esac | |
e1052144 TT |
17531 | |
17532 | case $ac_tag in | |
39fd3d4f SJR |
17533 | *:-:* | *:-) cat >"$tmp/stdin" \ |
17534 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
17535 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
17536 | { (exit 1); exit 1; }; } ;; | |
e1052144 TT |
17537 | esac |
17538 | ;; | |
b0cacab0 TT |
17539 | esac |
17540 | ||
e1052144 | 17541 | ac_dir=`$as_dirname -- "$ac_file" || |
b0cacab0 TT |
17542 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
17543 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17544 | X"$ac_file" : 'X\(//\)$' \| \ | |
e1052144 | 17545 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
39fd3d4f | 17546 | $as_echo X"$ac_file" | |
e1052144 TT |
17547 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
17548 | s//\1/ | |
17549 | q | |
17550 | } | |
17551 | /^X\(\/\/\)[^/].*/{ | |
17552 | s//\1/ | |
17553 | q | |
17554 | } | |
17555 | /^X\(\/\/\)$/{ | |
17556 | s//\1/ | |
17557 | q | |
17558 | } | |
17559 | /^X\(\/\).*/{ | |
17560 | s//\1/ | |
17561 | q | |
17562 | } | |
17563 | s/.*/./; q'` | |
17564 | { as_dir="$ac_dir" | |
17565 | case $as_dir in #( | |
17566 | -*) as_dir=./$as_dir;; | |
17567 | esac | |
17568 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
b0cacab0 | 17569 | as_dirs= |
e1052144 TT |
17570 | while :; do |
17571 | case $as_dir in #( | |
39fd3d4f | 17572 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
e1052144 TT |
17573 | *) as_qdir=$as_dir;; |
17574 | esac | |
17575 | as_dirs="'$as_qdir' $as_dirs" | |
17576 | as_dir=`$as_dirname -- "$as_dir" || | |
b0cacab0 TT |
17577 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
17578 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17579 | X"$as_dir" : 'X\(//\)$' \| \ | |
e1052144 | 17580 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
39fd3d4f | 17581 | $as_echo X"$as_dir" | |
e1052144 TT |
17582 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
17583 | s//\1/ | |
17584 | q | |
17585 | } | |
17586 | /^X\(\/\/\)[^/].*/{ | |
17587 | s//\1/ | |
17588 | q | |
17589 | } | |
17590 | /^X\(\/\/\)$/{ | |
17591 | s//\1/ | |
17592 | q | |
17593 | } | |
17594 | /^X\(\/\).*/{ | |
17595 | s//\1/ | |
17596 | q | |
17597 | } | |
17598 | s/.*/./; q'` | |
17599 | test -d "$as_dir" && break | |
b0cacab0 | 17600 | done |
e1052144 | 17601 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
39fd3d4f SJR |
17602 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
17603 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
b0cacab0 | 17604 | { (exit 1); exit 1; }; }; } |
b0cacab0 TT |
17605 | ac_builddir=. |
17606 | ||
e1052144 TT |
17607 | case "$ac_dir" in |
17608 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17609 | *) | |
39fd3d4f | 17610 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
e1052144 | 17611 | # A ".." for each directory in $ac_dir_suffix. |
39fd3d4f | 17612 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
e1052144 TT |
17613 | case $ac_top_builddir_sub in |
17614 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17615 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17616 | esac ;; | |
17617 | esac | |
17618 | ac_abs_top_builddir=$ac_pwd | |
17619 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17620 | # for backward compatibility: | |
17621 | ac_top_builddir=$ac_top_build_prefix | |
93636bde | 17622 | |
b0cacab0 | 17623 | case $srcdir in |
e1052144 | 17624 | .) # We are building in place. |
b0cacab0 | 17625 | ac_srcdir=. |
e1052144 TT |
17626 | ac_top_srcdir=$ac_top_builddir_sub |
17627 | ac_abs_top_srcdir=$ac_pwd ;; | |
17628 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b0cacab0 | 17629 | ac_srcdir=$srcdir$ac_dir_suffix; |
e1052144 TT |
17630 | ac_top_srcdir=$srcdir |
17631 | ac_abs_top_srcdir=$srcdir ;; | |
17632 | *) # Relative name. | |
17633 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17634 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17635 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b0cacab0 | 17636 | esac |
e1052144 | 17637 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b0cacab0 | 17638 | |
b0cacab0 | 17639 | |
e1052144 TT |
17640 | case $ac_mode in |
17641 | :F) | |
17642 | # | |
17643 | # CONFIG_FILE | |
17644 | # | |
50e1e10f | 17645 | |
b0cacab0 TT |
17646 | case $INSTALL in |
17647 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
e1052144 | 17648 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
50e1e10f | 17649 | esac |
e1052144 | 17650 | _ACEOF |
50e1e10f | 17651 | |
39fd3d4f | 17652 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
17653 | # If the template does not know about datarootdir, expand it. |
17654 | # FIXME: This hack should be removed a few years after 2.60. | |
17655 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
07a0db15 | 17656 | |
39fd3d4f SJR |
17657 | ac_sed_dataroot=' |
17658 | /datarootdir/ { | |
e1052144 TT |
17659 | p |
17660 | q | |
17661 | } | |
17662 | /@datadir@/p | |
17663 | /@docdir@/p | |
17664 | /@infodir@/p | |
17665 | /@localedir@/p | |
17666 | /@mandir@/p | |
39fd3d4f SJR |
17667 | ' |
17668 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
e1052144 TT |
17669 | *datarootdir*) ac_datarootdir_seen=yes;; |
17670 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
39fd3d4f SJR |
17671 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
17672 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
b0cacab0 | 17673 | _ACEOF |
39fd3d4f | 17674 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
e1052144 TT |
17675 | ac_datarootdir_hack=' |
17676 | s&@datadir@&$datadir&g | |
17677 | s&@docdir@&$docdir&g | |
17678 | s&@infodir@&$infodir&g | |
17679 | s&@localedir@&$localedir&g | |
17680 | s&@mandir@&$mandir&g | |
17681 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
17682 | esac | |
17683 | _ACEOF | |
17684 | ||
17685 | # Neutralize VPATH when `$srcdir' = `.'. | |
17686 | # Shell code in configure.ac might set extrasub. | |
17687 | # FIXME: do we really want to maintain this feature? | |
39fd3d4f SJR |
17688 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17689 | ac_sed_extra="$ac_vpsub | |
b0cacab0 TT |
17690 | $extrasub |
17691 | _ACEOF | |
39fd3d4f | 17692 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0cacab0 TT |
17693 | :t |
17694 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
39fd3d4f | 17695 | s|@configure_input@|$ac_sed_conf_input|;t t |
e1052144 | 17696 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
39fd3d4f | 17697 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
e1052144 TT |
17698 | s&@srcdir@&$ac_srcdir&;t t |
17699 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17700 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17701 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17702 | s&@builddir@&$ac_builddir&;t t | |
17703 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17704 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17705 | s&@INSTALL@&$ac_INSTALL&;t t | |
17706 | $ac_datarootdir_hack | |
39fd3d4f SJR |
17707 | " |
17708 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
17709 | if $ac_cs_awk_getline; then | |
17710 | $AWK -f "$tmp/subs.awk" | |
17711 | else | |
17712 | $AWK -f "$tmp/subs.awk" | $SHELL | |
17713 | fi >$tmp/out \ | |
17714 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
17715 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
17716 | { (exit 1); exit 1; }; } | |
e1052144 TT |
17717 | |
17718 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
17719 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
17720 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
39fd3d4f | 17721 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
e1052144 | 17722 | which seems to be undefined. Please make sure it is defined." >&5 |
39fd3d4f | 17723 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
e1052144 TT |
17724 | which seems to be undefined. Please make sure it is defined." >&2;} |
17725 | ||
17726 | rm -f "$tmp/stdin" | |
17727 | case $ac_file in | |
39fd3d4f SJR |
17728 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
17729 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
17730 | esac \ | |
17731 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
17732 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
17733 | { (exit 1); exit 1; }; } | |
e1052144 | 17734 | ;; |
b0cacab0 | 17735 | |
07a0db15 | 17736 | |
39fd3d4f SJR |
17737 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
17738 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
e1052144 TT |
17739 | ;; |
17740 | esac | |
a04eba3f | 17741 | |
b0cacab0 | 17742 | |
e1052144 TT |
17743 | case $ac_file$ac_mode in |
17744 | "default-1":C) | |
a04eba3f TT |
17745 | for ac_file in $CONFIG_FILES; do |
17746 | # Support "outfile[:infile[:infile...]]" | |
17747 | case "$ac_file" in | |
17748 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17749 | esac | |
17750 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
17751 | case "$ac_file" in */Makefile.in) | |
17752 | # Adjust a relative srcdir. | |
17753 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
17754 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
17755 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
17756 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
17757 | # In autoconf-2.50 it is called $srcdir. | |
17758 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
17759 | case "$ac_given_srcdir" in | |
17760 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
17761 | /*) top_srcdir="$ac_given_srcdir" ;; | |
17762 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
17763 | esac | |
17764 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
17765 | rm -f "$ac_dir/POTFILES" | |
17766 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
17767 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
b0cacab0 TT |
17768 | POMAKEFILEDEPS="POTFILES.in" |
17769 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | |
a04eba3f TT |
17770 | # on $ac_dir but don't depend on user-specified configuration |
17771 | # parameters. | |
17772 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
17773 | # The LINGUAS file contains the set of available languages. | |
b0cacab0 | 17774 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
a04eba3f TT |
17775 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
17776 | fi | |
17777 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
17778 | # Hide the ALL_LINGUAS assigment from automake. | |
17779 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
b0cacab0 TT |
17780 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
17781 | else | |
17782 | # The set of available languages was given in configure.in. | |
17783 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
a04eba3f | 17784 | fi |
b0cacab0 TT |
17785 | # Compute POFILES |
17786 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | |
17787 | # Compute UPDATEPOFILES | |
17788 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | |
17789 | # Compute DUMMYPOFILES | |
17790 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | |
17791 | # Compute GMOFILES | |
17792 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | |
a04eba3f TT |
17793 | case "$ac_given_srcdir" in |
17794 | .) srcdirpre= ;; | |
17795 | *) srcdirpre='$(srcdir)/' ;; | |
17796 | esac | |
17797 | POFILES= | |
a04eba3f TT |
17798 | UPDATEPOFILES= |
17799 | DUMMYPOFILES= | |
b0cacab0 | 17800 | GMOFILES= |
a04eba3f TT |
17801 | for lang in $ALL_LINGUAS; do |
17802 | POFILES="$POFILES $srcdirpre$lang.po" | |
a04eba3f TT |
17803 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
17804 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
b0cacab0 | 17805 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
a04eba3f TT |
17806 | done |
17807 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
17808 | # environment variable. | |
17809 | INST_LINGUAS= | |
17810 | if test -n "$ALL_LINGUAS"; then | |
17811 | for presentlang in $ALL_LINGUAS; do | |
17812 | useit=no | |
17813 | if test "%UNSET%" != "$LINGUAS"; then | |
17814 | desiredlanguages="$LINGUAS" | |
17815 | else | |
17816 | desiredlanguages="$ALL_LINGUAS" | |
17817 | fi | |
17818 | for desiredlang in $desiredlanguages; do | |
17819 | # Use the presentlang catalog if desiredlang is | |
17820 | # a. equal to presentlang, or | |
17821 | # b. a variant of presentlang (because in this case, | |
17822 | # presentlang can be used as a fallback for messages | |
17823 | # which are not translated in the desiredlang catalog). | |
17824 | case "$desiredlang" in | |
17825 | "$presentlang"*) useit=yes;; | |
17826 | esac | |
17827 | done | |
17828 | if test $useit = yes; then | |
17829 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
17830 | fi | |
17831 | done | |
17832 | fi | |
17833 | CATALOGS= | |
17834 | if test -n "$INST_LINGUAS"; then | |
17835 | for lang in $INST_LINGUAS; do | |
17836 | CATALOGS="$CATALOGS $lang.gmo" | |
17837 | done | |
17838 | fi | |
17839 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
b0cacab0 | 17840 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
a04eba3f TT |
17841 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
17842 | if test -f "$f"; then | |
17843 | case "$f" in | |
17844 | *.orig | *.bak | *~) ;; | |
17845 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
17846 | esac | |
17847 | fi | |
17848 | done | |
17849 | fi | |
17850 | ;; | |
a64c9c13 | 17851 | esac |
b0cacab0 | 17852 | done ;; |
e1052144 | 17853 | |
b0cacab0 | 17854 | esac |
e1052144 | 17855 | done # for ac_tag |
07a0db15 | 17856 | |
b0cacab0 TT |
17857 | |
17858 | { (exit 0); exit 0; } | |
17859 | _ACEOF | |
50e1e10f | 17860 | chmod +x $CONFIG_STATUS |
b0cacab0 TT |
17861 | ac_clean_files=$ac_clean_files_save |
17862 | ||
39fd3d4f SJR |
17863 | test $ac_write_fail = 0 || |
17864 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
17865 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
17866 | { (exit 1); exit 1; }; } | |
17867 | ||
b0cacab0 TT |
17868 | |
17869 | # configure is writing to config.log, and then calls config.status. | |
17870 | # config.status does its own redirection, appending to config.log. | |
17871 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17872 | # by configure, so config.status won't be able to write to it; its | |
17873 | # output is simply discarded. So we exec the FD to /dev/null, | |
17874 | # effectively closing config.log, so it can be properly (re)opened and | |
17875 | # appended to by config.status. When coming back to configure, we | |
17876 | # need to make the FD available again. | |
17877 | if test "$no_create" != yes; then | |
17878 | ac_cs_success=: | |
17879 | ac_config_status_args= | |
17880 | test "$silent" = yes && | |
17881 | ac_config_status_args="$ac_config_status_args --quiet" | |
17882 | exec 5>/dev/null | |
17883 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17884 | exec 5>>config.log | |
17885 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17886 | # would make configure fail if this is the last instruction. | |
17887 | $ac_cs_success || { (exit 1); exit 1; } | |
17888 | fi | |
39fd3d4f SJR |
17889 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
17890 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
17891 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
17892 | fi | |
50e1e10f | 17893 | |
ee683a13 | 17894 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |