]>
Commit | Line | Data |
---|---|---|
25697a35 GS |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
0743911c | 3 | # Generated by GNU Autoconf 2.61. |
25697a35 | 4 | # |
0743911c FM |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
25697a35 GS |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ## --------------------- ## | |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
0743911c FM |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
25697a35 GS |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
19 | # is contrary to our usage. Disable this feature. | |
20 | alias -g '${1+"$@"}'='"$@"' | |
0743911c FM |
21 | setopt NO_GLOB_SUBST |
22 | else | |
23 | case `(set -o) 2>/dev/null` in | |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
27 | fi | |
28 | ||
29 | ||
30 | ||
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
40 | # The user is always right. | |
41 | if test "${PATH_SEPARATOR+set}" != set; then | |
42 | echo "#! /bin/sh" >conf$$.sh | |
43 | echo "exit 0" >>conf$$.sh | |
44 | chmod +x conf$$.sh | |
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46 | PATH_SEPARATOR=';' | |
47 | else | |
48 | PATH_SEPARATOR=: | |
49 | fi | |
50 | rm -f conf$$.sh | |
25697a35 | 51 | fi |
25697a35 GS |
52 | |
53 | # Support unset when possible. | |
54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
55 | as_unset=unset | |
56 | else | |
57 | as_unset=false | |
58 | fi | |
59 | ||
60 | ||
0743911c FM |
61 | # IFS |
62 | # We need space, tab and new line, in precisely that order. Quoting is | |
63 | # there to prevent editors from complaining about space-tab. | |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
65 | # splitting by setting IFS to empty value.) | |
66 | as_nl=' | |
67 | ' | |
68 | IFS=" "" $as_nl" | |
69 | ||
70 | # Find who we are. Look in the path if we contain no directory separator. | |
71 | case $0 in | |
72 | *[\\/]* ) as_myself=$0 ;; | |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
74 | for as_dir in $PATH | |
75 | do | |
76 | IFS=$as_save_IFS | |
77 | test -z "$as_dir" && as_dir=. | |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
79 | done | |
80 | IFS=$as_save_IFS | |
81 | ||
82 | ;; | |
83 | esac | |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
85 | # in which case we are not to be found in the path. | |
86 | if test "x$as_myself" = x; then | |
87 | as_myself=$0 | |
88 | fi | |
89 | if test ! -f "$as_myself"; then | |
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
91 | { (exit 1); exit 1; } | |
92 | fi | |
93 | ||
25697a35 | 94 | # Work around bugs in pre-3.0 UWIN ksh. |
0743911c FM |
95 | for as_var in ENV MAIL MAILPATH |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
97 | done | |
25697a35 GS |
98 | PS1='$ ' |
99 | PS2='> ' | |
100 | PS4='+ ' | |
101 | ||
102 | # NLS nuisances. | |
103 | for as_var in \ | |
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
106 | LC_TELEPHONE LC_TIME | |
107 | do | |
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
109 | eval $as_var=C; export $as_var | |
110 | else | |
0743911c | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
25697a35 GS |
112 | fi |
113 | done | |
114 | ||
115 | # Required to use basename. | |
0743911c FM |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25697a35 GS |
118 | as_expr=expr |
119 | else | |
120 | as_expr=false | |
121 | fi | |
122 | ||
0743911c | 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
25697a35 GS |
124 | as_basename=basename |
125 | else | |
126 | as_basename=false | |
127 | fi | |
128 | ||
129 | ||
130 | # Name of the executable. | |
0743911c | 131 | as_me=`$as_basename -- "$0" || |
25697a35 GS |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ | |
0743911c | 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
25697a35 | 135 | echo X/"$0" | |
0743911c FM |
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
137 | s//\1/ | |
138 | q | |
139 | } | |
140 | /^X\/\(\/\/\)$/{ | |
141 | s//\1/ | |
142 | q | |
143 | } | |
144 | /^X\/\(\/\).*/{ | |
145 | s//\1/ | |
146 | q | |
147 | } | |
148 | s/.*/./; q'` | |
25697a35 | 149 | |
0743911c FM |
150 | # CDPATH. |
151 | $as_unset CDPATH | |
25697a35 | 152 | |
25697a35 | 153 | |
0743911c FM |
154 | if test "x$CONFIG_SHELL" = x; then |
155 | if (eval ":") 2>/dev/null; then | |
156 | as_have_required=yes | |
157 | else | |
158 | as_have_required=no | |
25697a35 GS |
159 | fi |
160 | ||
0743911c FM |
161 | if test $as_have_required = yes && (eval ": |
162 | (as_func_return () { | |
163 | (exit \$1) | |
164 | } | |
165 | as_func_success () { | |
166 | as_func_return 0 | |
167 | } | |
168 | as_func_failure () { | |
169 | as_func_return 1 | |
170 | } | |
171 | as_func_ret_success () { | |
172 | return 0 | |
173 | } | |
174 | as_func_ret_failure () { | |
175 | return 1 | |
176 | } | |
25697a35 | 177 | |
0743911c FM |
178 | exitcode=0 |
179 | if as_func_success; then | |
180 | : | |
181 | else | |
182 | exitcode=1 | |
183 | echo as_func_success failed. | |
184 | fi | |
25697a35 | 185 | |
0743911c FM |
186 | if as_func_failure; then |
187 | exitcode=1 | |
188 | echo as_func_failure succeeded. | |
189 | fi | |
190 | ||
191 | if as_func_ret_success; then | |
192 | : | |
193 | else | |
194 | exitcode=1 | |
195 | echo as_func_ret_success failed. | |
196 | fi | |
197 | ||
198 | if as_func_ret_failure; then | |
199 | exitcode=1 | |
200 | echo as_func_ret_failure succeeded. | |
201 | fi | |
202 | ||
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
204 | : | |
205 | else | |
206 | exitcode=1 | |
207 | echo positional parameters were not saved. | |
208 | fi | |
209 | ||
210 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
211 | ||
212 | ( | |
213 | as_lineno_1=\$LINENO | |
214 | as_lineno_2=\$LINENO | |
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
217 | ") 2> /dev/null; then | |
218 | : | |
219 | else | |
220 | as_candidate_shells= | |
25697a35 GS |
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
223 | do | |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
0743911c | 226 | case $as_dir in |
25697a35 | 227 | /*) |
0743911c FM |
228 | for as_base in sh bash ksh sh5; do |
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
230 | done;; | |
231 | esac | |
232 | done | |
233 | IFS=$as_save_IFS | |
234 | ||
235 | ||
236 | for as_shell in $as_candidate_shells $SHELL; do | |
237 | # Try only shells that exist, to save several forks. | |
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
241 | emulate sh | |
242 | NULLCMD=: | |
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
244 | # is contrary to our usage. Disable this feature. | |
245 | alias -g '${1+"$@"}'='"$@"' | |
246 | setopt NO_GLOB_SUBST | |
247 | else | |
248 | case `(set -o) 2>/dev/null` in | |
249 | *posix*) set -o posix ;; | |
250 | esac | |
251 | ||
252 | fi | |
253 | ||
254 | ||
255 | : | |
256 | _ASEOF | |
257 | }; then | |
258 | CONFIG_SHELL=$as_shell | |
259 | as_have_required=yes | |
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 | emulate sh | |
263 | NULLCMD=: | |
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
265 | # is contrary to our usage. Disable this feature. | |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
269 | case `(set -o) 2>/dev/null` in | |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
273 | fi | |
274 | ||
275 | ||
276 | : | |
277 | (as_func_return () { | |
278 | (exit $1) | |
279 | } | |
280 | as_func_success () { | |
281 | as_func_return 0 | |
282 | } | |
283 | as_func_failure () { | |
284 | as_func_return 1 | |
285 | } | |
286 | as_func_ret_success () { | |
287 | return 0 | |
288 | } | |
289 | as_func_ret_failure () { | |
290 | return 1 | |
291 | } | |
292 | ||
293 | exitcode=0 | |
294 | if as_func_success; then | |
295 | : | |
296 | else | |
297 | exitcode=1 | |
298 | echo as_func_success failed. | |
299 | fi | |
300 | ||
301 | if as_func_failure; then | |
302 | exitcode=1 | |
303 | echo as_func_failure succeeded. | |
304 | fi | |
305 | ||
306 | if as_func_ret_success; then | |
307 | : | |
308 | else | |
309 | exitcode=1 | |
310 | echo as_func_ret_success failed. | |
311 | fi | |
312 | ||
313 | if as_func_ret_failure; then | |
314 | exitcode=1 | |
315 | echo as_func_ret_failure succeeded. | |
316 | fi | |
317 | ||
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
319 | : | |
320 | else | |
321 | exitcode=1 | |
322 | echo positional parameters were not saved. | |
323 | fi | |
324 | ||
325 | test $exitcode = 0) || { (exit 1); exit 1; } | |
326 | ||
327 | ( | |
25697a35 GS |
328 | as_lineno_1=$LINENO |
329 | as_lineno_2=$LINENO | |
25697a35 | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
0743911c FM |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
332 | ||
333 | _ASEOF | |
334 | }; then | |
335 | break | |
336 | fi | |
337 | ||
338 | fi | |
339 | ||
340 | done | |
341 | ||
342 | if test "x$CONFIG_SHELL" != x; then | |
343 | for as_var in BASH_ENV ENV | |
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
345 | done | |
346 | export CONFIG_SHELL | |
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
348 | fi | |
349 | ||
350 | ||
351 | if test $as_have_required = no; then | |
352 | echo This script requires a shell more modern than all the | |
353 | echo shells that I found on your system. Please install a | |
354 | echo modern shell, or manually run the script under such a | |
355 | echo shell if you do have one. | |
356 | { (exit 1); exit 1; } | |
357 | fi | |
358 | ||
359 | ||
360 | fi | |
361 | ||
362 | fi | |
363 | ||
364 | ||
365 | ||
366 | (eval "as_func_return () { | |
367 | (exit \$1) | |
368 | } | |
369 | as_func_success () { | |
370 | as_func_return 0 | |
371 | } | |
372 | as_func_failure () { | |
373 | as_func_return 1 | |
374 | } | |
375 | as_func_ret_success () { | |
376 | return 0 | |
377 | } | |
378 | as_func_ret_failure () { | |
379 | return 1 | |
380 | } | |
381 | ||
382 | exitcode=0 | |
383 | if as_func_success; then | |
384 | : | |
385 | else | |
386 | exitcode=1 | |
387 | echo as_func_success failed. | |
388 | fi | |
389 | ||
390 | if as_func_failure; then | |
391 | exitcode=1 | |
392 | echo as_func_failure succeeded. | |
393 | fi | |
394 | ||
395 | if as_func_ret_success; then | |
396 | : | |
397 | else | |
398 | exitcode=1 | |
399 | echo as_func_ret_success failed. | |
400 | fi | |
401 | ||
402 | if as_func_ret_failure; then | |
403 | exitcode=1 | |
404 | echo as_func_ret_failure succeeded. | |
405 | fi | |
406 | ||
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
408 | : | |
409 | else | |
410 | exitcode=1 | |
411 | echo positional parameters were not saved. | |
412 | fi | |
413 | ||
414 | test \$exitcode = 0") || { | |
415 | echo No shell found that supports shell functions. | |
416 | echo Please tell autoconf@gnu.org about your system, | |
417 | echo including any error possibly output before this | |
418 | echo message | |
419 | } | |
420 | ||
421 | ||
422 | ||
423 | as_lineno_1=$LINENO | |
424 | as_lineno_2=$LINENO | |
425 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
25697a35 GS |
427 | |
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
429 | # uniformly replaced by the line number. The first 'sed' inserts a | |
0743911c FM |
430 | # line-number line after each line using $LINENO; the second 'sed' |
431 | # does the real work. The second script uses 'N' to pair each | |
432 | # line-number line with the line containing $LINENO, and appends | |
433 | # trailing '-' during substitution so that $LINENO is not a special | |
434 | # case at line end. | |
25697a35 | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
0743911c FM |
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
437 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
438 | sed -n ' | |
439 | p | |
440 | /[$]LINENO/= | |
441 | ' <$as_myself | | |
25697a35 | 442 | sed ' |
0743911c FM |
443 | s/[$]LINENO.*/&-/ |
444 | t lineno | |
445 | b | |
446 | :lineno | |
25697a35 | 447 | N |
0743911c FM |
448 | :loop |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
25697a35 | 450 | t loop |
0743911c | 451 | s/-\n.*// |
25697a35 | 452 | ' >$as_me.lineno && |
0743911c | 453 | chmod +x "$as_me.lineno" || |
25697a35 GS |
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
455 | { (exit 1); exit 1; }; } | |
456 | ||
457 | # Don't try to exec as it changes $[0], causing all sort of problems | |
458 | # (the dirname of $[0] is not the place where we might find the | |
0743911c FM |
459 | # original and so on. Autoconf is especially sensitive to this). |
460 | . "./$as_me.lineno" | |
25697a35 GS |
461 | # Exit status is that of the last command. |
462 | exit | |
463 | } | |
464 | ||
465 | ||
0743911c FM |
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
467 | as_dirname=dirname | |
468 | else | |
469 | as_dirname=false | |
470 | fi | |
471 | ||
472 | ECHO_C= ECHO_N= ECHO_T= | |
473 | case `echo -n x` in | |
474 | -n*) | |
475 | case `echo 'x\c'` in | |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
477 | *) ECHO_C='\c';; | |
478 | esac;; | |
479 | *) | |
480 | ECHO_N='-n';; | |
25697a35 GS |
481 | esac |
482 | ||
0743911c FM |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25697a35 GS |
485 | as_expr=expr |
486 | else | |
487 | as_expr=false | |
488 | fi | |
489 | ||
490 | rm -f conf$$ conf$$.exe conf$$.file | |
0743911c FM |
491 | if test -d conf$$.dir; then |
492 | rm -f conf$$.dir/conf$$.file | |
493 | else | |
494 | rm -f conf$$.dir | |
495 | mkdir conf$$.dir | |
496 | fi | |
25697a35 GS |
497 | echo >conf$$.file |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
0743911c FM |
499 | as_ln_s='ln -s' |
500 | # ... but there are two gotchas: | |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
503 | # In both cases, we have to default to `cp -p'. | |
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
25697a35 | 505 | as_ln_s='cp -p' |
25697a35 GS |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
507 | as_ln_s=ln | |
508 | else | |
509 | as_ln_s='cp -p' | |
510 | fi | |
0743911c FM |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 | rmdir conf$$.dir 2>/dev/null | |
25697a35 GS |
513 | |
514 | if mkdir -p . 2>/dev/null; then | |
515 | as_mkdir_p=: | |
516 | else | |
517 | test -d ./-p && rmdir ./-p | |
518 | as_mkdir_p=false | |
519 | fi | |
520 | ||
0743911c FM |
521 | if test -x / >/dev/null 2>&1; then |
522 | as_test_x='test -x' | |
523 | else | |
524 | if ls -dL / >/dev/null 2>&1; then | |
525 | as_ls_L_option=L | |
526 | else | |
527 | as_ls_L_option= | |
528 | fi | |
529 | as_test_x=' | |
530 | eval sh -c '\'' | |
531 | if test -d "$1"; then | |
532 | test -d "$1/."; | |
533 | else | |
534 | case $1 in | |
535 | -*)set "./$1";; | |
536 | esac; | |
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
538 | ???[sx]*):;;*)false;;esac;fi | |
539 | '\'' sh | |
540 | ' | |
541 | fi | |
542 | as_executable_p=$as_test_x | |
25697a35 GS |
543 | |
544 | # Sed expression to map a string onto a valid CPP name. | |
545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
546 | ||
547 | # Sed expression to map a string onto a valid variable name. | |
548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
549 | ||
550 | ||
25697a35 | 551 | |
0743911c | 552 | exec 7<&0 </dev/null 6>&1 |
25697a35 GS |
553 | |
554 | # Name of the host. | |
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
556 | # so uname gets run too. | |
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
558 | ||
25697a35 GS |
559 | # |
560 | # Initializations. | |
561 | # | |
562 | ac_default_prefix=/usr/local | |
0743911c | 563 | ac_clean_files= |
25697a35 | 564 | ac_config_libobj_dir=. |
0743911c | 565 | LIBOBJS= |
25697a35 GS |
566 | cross_compiling=no |
567 | subdirs= | |
568 | MFLAGS= | |
569 | MAKEFLAGS= | |
570 | SHELL=${CONFIG_SHELL-/bin/sh} | |
571 | ||
25697a35 GS |
572 | # Identity of this package. |
573 | PACKAGE_NAME= | |
574 | PACKAGE_TARNAME= | |
575 | PACKAGE_VERSION= | |
576 | PACKAGE_STRING= | |
577 | PACKAGE_BUGREPORT= | |
578 | ||
579 | ac_unique_file="log.c" | |
580 | # Factoring default headers for most tests. | |
581 | ac_includes_default="\ | |
582 | #include <stdio.h> | |
0743911c | 583 | #ifdef HAVE_SYS_TYPES_H |
25697a35 GS |
584 | # include <sys/types.h> |
585 | #endif | |
0743911c | 586 | #ifdef HAVE_SYS_STAT_H |
25697a35 GS |
587 | # include <sys/stat.h> |
588 | #endif | |
0743911c | 589 | #ifdef STDC_HEADERS |
25697a35 GS |
590 | # include <stdlib.h> |
591 | # include <stddef.h> | |
592 | #else | |
0743911c | 593 | # ifdef HAVE_STDLIB_H |
25697a35 GS |
594 | # include <stdlib.h> |
595 | # endif | |
596 | #endif | |
0743911c FM |
597 | #ifdef HAVE_STRING_H |
598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
25697a35 GS |
599 | # include <memory.h> |
600 | # endif | |
601 | # include <string.h> | |
602 | #endif | |
0743911c | 603 | #ifdef HAVE_STRINGS_H |
25697a35 GS |
604 | # include <strings.h> |
605 | #endif | |
0743911c | 606 | #ifdef HAVE_INTTYPES_H |
25697a35 | 607 | # include <inttypes.h> |
25697a35 | 608 | #endif |
0743911c FM |
609 | #ifdef HAVE_STDINT_H |
610 | # include <stdint.h> | |
611 | #endif | |
612 | #ifdef HAVE_UNISTD_H | |
25697a35 GS |
613 | # include <unistd.h> |
614 | #endif" | |
615 | ||
0743911c FM |
616 | ac_subst_vars='SHELL |
617 | PATH_SEPARATOR | |
618 | PACKAGE_NAME | |
619 | PACKAGE_TARNAME | |
620 | PACKAGE_VERSION | |
621 | PACKAGE_STRING | |
622 | PACKAGE_BUGREPORT | |
623 | exec_prefix | |
624 | prefix | |
625 | program_transform_name | |
626 | bindir | |
627 | sbindir | |
628 | libexecdir | |
629 | datarootdir | |
630 | datadir | |
631 | sysconfdir | |
632 | sharedstatedir | |
633 | localstatedir | |
634 | includedir | |
635 | oldincludedir | |
636 | docdir | |
637 | infodir | |
638 | htmldir | |
639 | dvidir | |
640 | pdfdir | |
641 | psdir | |
642 | libdir | |
643 | localedir | |
644 | mandir | |
645 | DEFS | |
646 | ECHO_C | |
647 | ECHO_N | |
648 | ECHO_T | |
649 | LIBS | |
650 | build_alias | |
651 | host_alias | |
652 | target_alias | |
653 | build | |
654 | build_cpu | |
655 | build_vendor | |
656 | build_os | |
657 | host | |
658 | host_cpu | |
659 | host_vendor | |
660 | host_os | |
661 | CC | |
662 | CFLAGS | |
663 | LDFLAGS | |
664 | CPPFLAGS | |
665 | ac_ct_CC | |
666 | EXEEXT | |
667 | OBJEXT | |
668 | CPP | |
669 | GREP | |
670 | EGREP | |
671 | LIBICONV | |
672 | LTLIBICONV | |
673 | BINDIR | |
674 | MANDIR | |
675 | SYSCONFDIR | |
676 | HTMLDIR | |
677 | LIBOBJS | |
678 | LTLIBOBJS' | |
25697a35 | 679 | ac_subst_files='' |
0743911c FM |
680 | ac_precious_vars='build_alias |
681 | host_alias | |
682 | target_alias | |
683 | CC | |
684 | CFLAGS | |
685 | LDFLAGS | |
686 | LIBS | |
687 | CPPFLAGS | |
688 | CPP' | |
689 | ||
25697a35 GS |
690 | |
691 | # Initialize some variables set by options. | |
692 | ac_init_help= | |
693 | ac_init_version=false | |
694 | # The variables have the same names as the options, with | |
695 | # dashes changed to underlines. | |
696 | cache_file=/dev/null | |
697 | exec_prefix=NONE | |
698 | no_create= | |
699 | no_recursion= | |
700 | prefix=NONE | |
701 | program_prefix=NONE | |
702 | program_suffix=NONE | |
703 | program_transform_name=s,x,x, | |
704 | silent= | |
705 | site= | |
706 | srcdir= | |
707 | verbose= | |
708 | x_includes=NONE | |
709 | x_libraries=NONE | |
710 | ||
711 | # Installation directory options. | |
712 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
713 | # and all the variables that are supposed to be based on exec_prefix | |
714 | # by default will actually change. | |
715 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
0743911c | 716 | # (The list follows the same order as the GNU Coding Standards.) |
25697a35 GS |
717 | bindir='${exec_prefix}/bin' |
718 | sbindir='${exec_prefix}/sbin' | |
719 | libexecdir='${exec_prefix}/libexec' | |
0743911c FM |
720 | datarootdir='${prefix}/share' |
721 | datadir='${datarootdir}' | |
25697a35 GS |
722 | sysconfdir='${prefix}/etc' |
723 | sharedstatedir='${prefix}/com' | |
724 | localstatedir='${prefix}/var' | |
25697a35 GS |
725 | includedir='${prefix}/include' |
726 | oldincludedir='/usr/include' | |
0743911c FM |
727 | docdir='${datarootdir}/doc/${PACKAGE}' |
728 | infodir='${datarootdir}/info' | |
729 | htmldir='${docdir}' | |
730 | dvidir='${docdir}' | |
731 | pdfdir='${docdir}' | |
732 | psdir='${docdir}' | |
733 | libdir='${exec_prefix}/lib' | |
734 | localedir='${datarootdir}/locale' | |
735 | mandir='${datarootdir}/man' | |
25697a35 GS |
736 | |
737 | ac_prev= | |
0743911c | 738 | ac_dashdash= |
25697a35 GS |
739 | for ac_option |
740 | do | |
741 | # If the previous option needs an argument, assign it. | |
742 | if test -n "$ac_prev"; then | |
0743911c | 743 | eval $ac_prev=\$ac_option |
25697a35 GS |
744 | ac_prev= |
745 | continue | |
746 | fi | |
747 | ||
0743911c FM |
748 | case $ac_option in |
749 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
750 | *) ac_optarg=yes ;; | |
751 | esac | |
25697a35 GS |
752 | |
753 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
754 | ||
0743911c FM |
755 | case $ac_dashdash$ac_option in |
756 | --) | |
757 | ac_dashdash=yes ;; | |
25697a35 GS |
758 | |
759 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
760 | ac_prev=bindir ;; | |
761 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
762 | bindir=$ac_optarg ;; | |
763 | ||
764 | -build | --build | --buil | --bui | --bu) | |
765 | ac_prev=build_alias ;; | |
766 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
767 | build_alias=$ac_optarg ;; | |
768 | ||
769 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
770 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
771 | ac_prev=cache_file ;; | |
772 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
773 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
774 | cache_file=$ac_optarg ;; | |
775 | ||
776 | --config-cache | -C) | |
777 | cache_file=config.cache ;; | |
778 | ||
0743911c | 779 | -datadir | --datadir | --datadi | --datad) |
25697a35 | 780 | ac_prev=datadir ;; |
0743911c | 781 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
25697a35 GS |
782 | datadir=$ac_optarg ;; |
783 | ||
0743911c FM |
784 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
785 | | --dataroo | --dataro | --datar) | |
786 | ac_prev=datarootdir ;; | |
787 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
788 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
789 | datarootdir=$ac_optarg ;; | |
790 | ||
25697a35 GS |
791 | -disable-* | --disable-*) |
792 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
793 | # Reject names that are not valid shell variable names. | |
0743911c | 794 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
25697a35 GS |
795 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
796 | { (exit 1); exit 1; }; } | |
0743911c FM |
797 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
798 | eval enable_$ac_feature=no ;; | |
799 | ||
800 | -docdir | --docdir | --docdi | --doc | --do) | |
801 | ac_prev=docdir ;; | |
802 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
803 | docdir=$ac_optarg ;; | |
804 | ||
805 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
806 | ac_prev=dvidir ;; | |
807 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
808 | dvidir=$ac_optarg ;; | |
25697a35 GS |
809 | |
810 | -enable-* | --enable-*) | |
811 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
812 | # Reject names that are not valid shell variable names. | |
0743911c | 813 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
25697a35 GS |
814 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
815 | { (exit 1); exit 1; }; } | |
0743911c FM |
816 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
817 | eval enable_$ac_feature=\$ac_optarg ;; | |
25697a35 GS |
818 | |
819 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
820 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
821 | | --exec | --exe | --ex) | |
822 | ac_prev=exec_prefix ;; | |
823 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
824 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
825 | | --exec=* | --exe=* | --ex=*) | |
826 | exec_prefix=$ac_optarg ;; | |
827 | ||
828 | -gas | --gas | --ga | --g) | |
829 | # Obsolete; use --with-gas. | |
830 | with_gas=yes ;; | |
831 | ||
832 | -help | --help | --hel | --he | -h) | |
833 | ac_init_help=long ;; | |
834 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
835 | ac_init_help=recursive ;; | |
836 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
837 | ac_init_help=short ;; | |
838 | ||
839 | -host | --host | --hos | --ho) | |
840 | ac_prev=host_alias ;; | |
841 | -host=* | --host=* | --hos=* | --ho=*) | |
842 | host_alias=$ac_optarg ;; | |
843 | ||
0743911c FM |
844 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
845 | ac_prev=htmldir ;; | |
846 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
847 | | --ht=*) | |
848 | htmldir=$ac_optarg ;; | |
849 | ||
25697a35 GS |
850 | -includedir | --includedir | --includedi | --included | --include \ |
851 | | --includ | --inclu | --incl | --inc) | |
852 | ac_prev=includedir ;; | |
853 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
854 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
855 | includedir=$ac_optarg ;; | |
856 | ||
857 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
858 | ac_prev=infodir ;; | |
859 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
860 | infodir=$ac_optarg ;; | |
861 | ||
862 | -libdir | --libdir | --libdi | --libd) | |
863 | ac_prev=libdir ;; | |
864 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
865 | libdir=$ac_optarg ;; | |
866 | ||
867 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
868 | | --libexe | --libex | --libe) | |
869 | ac_prev=libexecdir ;; | |
870 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
871 | | --libexe=* | --libex=* | --libe=*) | |
872 | libexecdir=$ac_optarg ;; | |
873 | ||
0743911c FM |
874 | -localedir | --localedir | --localedi | --localed | --locale) |
875 | ac_prev=localedir ;; | |
876 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
877 | localedir=$ac_optarg ;; | |
878 | ||
25697a35 | 879 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
0743911c | 880 | | --localstate | --localstat | --localsta | --localst | --locals) |
25697a35 GS |
881 | ac_prev=localstatedir ;; |
882 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
0743911c | 883 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
25697a35 GS |
884 | localstatedir=$ac_optarg ;; |
885 | ||
886 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
887 | ac_prev=mandir ;; | |
888 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
889 | mandir=$ac_optarg ;; | |
890 | ||
891 | -nfp | --nfp | --nf) | |
892 | # Obsolete; use --without-fp. | |
893 | with_fp=no ;; | |
894 | ||
895 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
896 | | --no-cr | --no-c | -n) | |
897 | no_create=yes ;; | |
898 | ||
899 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
900 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
901 | no_recursion=yes ;; | |
902 | ||
903 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
904 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
905 | | --oldin | --oldi | --old | --ol | --o) | |
906 | ac_prev=oldincludedir ;; | |
907 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
908 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
909 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
910 | oldincludedir=$ac_optarg ;; | |
911 | ||
912 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
913 | ac_prev=prefix ;; | |
914 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
915 | prefix=$ac_optarg ;; | |
916 | ||
917 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
918 | | --program-pre | --program-pr | --program-p) | |
919 | ac_prev=program_prefix ;; | |
920 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
921 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
922 | program_prefix=$ac_optarg ;; | |
923 | ||
924 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
925 | | --program-suf | --program-su | --program-s) | |
926 | ac_prev=program_suffix ;; | |
927 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
928 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
929 | program_suffix=$ac_optarg ;; | |
930 | ||
931 | -program-transform-name | --program-transform-name \ | |
932 | | --program-transform-nam | --program-transform-na \ | |
933 | | --program-transform-n | --program-transform- \ | |
934 | | --program-transform | --program-transfor \ | |
935 | | --program-transfo | --program-transf \ | |
936 | | --program-trans | --program-tran \ | |
937 | | --progr-tra | --program-tr | --program-t) | |
938 | ac_prev=program_transform_name ;; | |
939 | -program-transform-name=* | --program-transform-name=* \ | |
940 | | --program-transform-nam=* | --program-transform-na=* \ | |
941 | | --program-transform-n=* | --program-transform-=* \ | |
942 | | --program-transform=* | --program-transfor=* \ | |
943 | | --program-transfo=* | --program-transf=* \ | |
944 | | --program-trans=* | --program-tran=* \ | |
945 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
946 | program_transform_name=$ac_optarg ;; | |
947 | ||
0743911c FM |
948 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
949 | ac_prev=pdfdir ;; | |
950 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
951 | pdfdir=$ac_optarg ;; | |
952 | ||
953 | -psdir | --psdir | --psdi | --psd | --ps) | |
954 | ac_prev=psdir ;; | |
955 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
956 | psdir=$ac_optarg ;; | |
957 | ||
25697a35 GS |
958 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
959 | | -silent | --silent | --silen | --sile | --sil) | |
960 | silent=yes ;; | |
961 | ||
962 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
963 | ac_prev=sbindir ;; | |
964 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
965 | | --sbi=* | --sb=*) | |
966 | sbindir=$ac_optarg ;; | |
967 | ||
968 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
969 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
970 | | --sharedst | --shareds | --shared | --share | --shar \ | |
971 | | --sha | --sh) | |
972 | ac_prev=sharedstatedir ;; | |
973 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
974 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
975 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
976 | | --sha=* | --sh=*) | |
977 | sharedstatedir=$ac_optarg ;; | |
978 | ||
979 | -site | --site | --sit) | |
980 | ac_prev=site ;; | |
981 | -site=* | --site=* | --sit=*) | |
982 | site=$ac_optarg ;; | |
983 | ||
984 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
985 | ac_prev=srcdir ;; | |
986 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
987 | srcdir=$ac_optarg ;; | |
988 | ||
989 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
990 | | --syscon | --sysco | --sysc | --sys | --sy) | |
991 | ac_prev=sysconfdir ;; | |
992 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
993 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
994 | sysconfdir=$ac_optarg ;; | |
995 | ||
996 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
997 | ac_prev=target_alias ;; | |
998 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
999 | target_alias=$ac_optarg ;; | |
1000 | ||
1001 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1002 | verbose=yes ;; | |
1003 | ||
1004 | -version | --version | --versio | --versi | --vers | -V) | |
1005 | ac_init_version=: ;; | |
1006 | ||
1007 | -with-* | --with-*) | |
1008 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1009 | # Reject names that are not valid shell variable names. | |
0743911c | 1010 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
25697a35 GS |
1011 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1012 | { (exit 1); exit 1; }; } | |
0743911c FM |
1013 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1014 | eval with_$ac_package=\$ac_optarg ;; | |
25697a35 GS |
1015 | |
1016 | -without-* | --without-*) | |
1017 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1018 | # Reject names that are not valid shell variable names. | |
0743911c | 1019 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
25697a35 GS |
1020 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1021 | { (exit 1); exit 1; }; } | |
0743911c FM |
1022 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1023 | eval with_$ac_package=no ;; | |
25697a35 GS |
1024 | |
1025 | --x) | |
1026 | # Obsolete; use --with-x. | |
1027 | with_x=yes ;; | |
1028 | ||
1029 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1030 | | --x-incl | --x-inc | --x-in | --x-i) | |
1031 | ac_prev=x_includes ;; | |
1032 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1033 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1034 | x_includes=$ac_optarg ;; | |
1035 | ||
1036 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1037 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1038 | ac_prev=x_libraries ;; | |
1039 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1040 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1041 | x_libraries=$ac_optarg ;; | |
1042 | ||
1043 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1044 | Try \`$0 --help' for more information." >&2 | |
1045 | { (exit 1); exit 1; }; } | |
1046 | ;; | |
1047 | ||
1048 | *=*) | |
1049 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1050 | # Reject names that are not valid shell variable names. | |
1051 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1052 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1053 | { (exit 1); exit 1; }; } | |
0743911c | 1054 | eval $ac_envvar=\$ac_optarg |
25697a35 GS |
1055 | export $ac_envvar ;; |
1056 | ||
1057 | *) | |
1058 | # FIXME: should be removed in autoconf 3.0. | |
1059 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1060 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1061 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1062 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1063 | ;; | |
1064 | ||
1065 | esac | |
1066 | done | |
1067 | ||
1068 | if test -n "$ac_prev"; then | |
1069 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1070 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1071 | { (exit 1); exit 1; }; } | |
1072 | fi | |
1073 | ||
0743911c FM |
1074 | # Be sure to have absolute directory names. |
1075 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1076 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1077 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1078 | libdir localedir mandir | |
25697a35 | 1079 | do |
0743911c | 1080 | eval ac_val=\$$ac_var |
25697a35 | 1081 | case $ac_val in |
0743911c FM |
1082 | [\\/$]* | ?:[\\/]* ) continue;; |
1083 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
25697a35 | 1084 | esac |
0743911c FM |
1085 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1086 | { (exit 1); exit 1; }; } | |
25697a35 GS |
1087 | done |
1088 | ||
1089 | # There might be people who depend on the old broken behavior: `$host' | |
1090 | # used to hold the argument of --host etc. | |
1091 | # FIXME: To remove some day. | |
1092 | build=$build_alias | |
1093 | host=$host_alias | |
1094 | target=$target_alias | |
1095 | ||
1096 | # FIXME: To remove some day. | |
1097 | if test "x$host_alias" != x; then | |
1098 | if test "x$build_alias" = x; then | |
1099 | cross_compiling=maybe | |
1100 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1101 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1102 | elif test "x$build_alias" != "x$host_alias"; then | |
1103 | cross_compiling=yes | |
1104 | fi | |
1105 | fi | |
1106 | ||
1107 | ac_tool_prefix= | |
1108 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1109 | ||
1110 | test "$silent" = yes && exec 6>/dev/null | |
1111 | ||
1112 | ||
0743911c FM |
1113 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1114 | ac_ls_di=`ls -di .` && | |
1115 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1116 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1117 | { (exit 1); exit 1; }; } | |
1118 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1119 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1120 | { (exit 1); exit 1; }; } | |
1121 | ||
1122 | ||
25697a35 GS |
1123 | # Find the source files, if location was not specified. |
1124 | if test -z "$srcdir"; then | |
1125 | ac_srcdir_defaulted=yes | |
0743911c FM |
1126 | # Try the directory containing this script, then the parent directory. |
1127 | ac_confdir=`$as_dirname -- "$0" || | |
25697a35 GS |
1128 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1129 | X"$0" : 'X\(//\)[^/]' \| \ | |
1130 | X"$0" : 'X\(//\)$' \| \ | |
0743911c | 1131 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
25697a35 | 1132 | echo X"$0" | |
0743911c FM |
1133 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1134 | s//\1/ | |
1135 | q | |
1136 | } | |
1137 | /^X\(\/\/\)[^/].*/{ | |
1138 | s//\1/ | |
1139 | q | |
1140 | } | |
1141 | /^X\(\/\/\)$/{ | |
1142 | s//\1/ | |
1143 | q | |
1144 | } | |
1145 | /^X\(\/\).*/{ | |
1146 | s//\1/ | |
1147 | q | |
1148 | } | |
1149 | s/.*/./; q'` | |
25697a35 | 1150 | srcdir=$ac_confdir |
0743911c | 1151 | if test ! -r "$srcdir/$ac_unique_file"; then |
25697a35 GS |
1152 | srcdir=.. |
1153 | fi | |
1154 | else | |
1155 | ac_srcdir_defaulted=no | |
1156 | fi | |
0743911c FM |
1157 | if test ! -r "$srcdir/$ac_unique_file"; then |
1158 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1159 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
25697a35 | 1160 | { (exit 1); exit 1; }; } |
25697a35 | 1161 | fi |
0743911c FM |
1162 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1163 | ac_abs_confdir=`( | |
1164 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
25697a35 | 1165 | { (exit 1); exit 1; }; } |
0743911c FM |
1166 | pwd)` |
1167 | # When building in place, set srcdir=. | |
1168 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1169 | srcdir=. | |
1170 | fi | |
1171 | # Remove unnecessary trailing slashes from srcdir. | |
1172 | # Double slashes in file names in object file debugging info | |
1173 | # mess up M-x gdb in Emacs. | |
1174 | case $srcdir in | |
1175 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1176 | esac | |
1177 | for ac_var in $ac_precious_vars; do | |
1178 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1179 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1180 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1181 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1182 | done | |
25697a35 GS |
1183 | |
1184 | # | |
1185 | # Report the --help message. | |
1186 | # | |
1187 | if test "$ac_init_help" = "long"; then | |
1188 | # Omit some internal or obsolete options to make the list less imposing. | |
1189 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1190 | cat <<_ACEOF | |
1191 | \`configure' configures this package to adapt to many kinds of systems. | |
1192 | ||
1193 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1194 | ||
1195 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1196 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1197 | ||
1198 | Defaults for the options are specified in brackets. | |
1199 | ||
1200 | Configuration: | |
1201 | -h, --help display this help and exit | |
1202 | --help=short display options specific to this package | |
1203 | --help=recursive display the short help of all the included packages | |
1204 | -V, --version display version information and exit | |
1205 | -q, --quiet, --silent do not print \`checking...' messages | |
1206 | --cache-file=FILE cache test results in FILE [disabled] | |
1207 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1208 | -n, --no-create do not create output files | |
1209 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1210 | ||
25697a35 GS |
1211 | Installation directories: |
1212 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1213 | [$ac_default_prefix] | |
1214 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1215 | [PREFIX] | |
1216 | ||
1217 | By default, \`make install' will install all the files in | |
1218 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1219 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1220 | for instance \`--prefix=\$HOME'. | |
1221 | ||
1222 | For better control, use the options below. | |
1223 | ||
1224 | Fine tuning of the installation directories: | |
1225 | --bindir=DIR user executables [EPREFIX/bin] | |
1226 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1227 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
25697a35 GS |
1228 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1229 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1230 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1231 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1232 | --includedir=DIR C header files [PREFIX/include] | |
1233 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
0743911c FM |
1234 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1235 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1236 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1237 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1238 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1239 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1240 | --htmldir=DIR html documentation [DOCDIR] | |
1241 | --dvidir=DIR dvi documentation [DOCDIR] | |
1242 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1243 | --psdir=DIR ps documentation [DOCDIR] | |
25697a35 GS |
1244 | _ACEOF |
1245 | ||
1246 | cat <<\_ACEOF | |
1247 | ||
1248 | System types: | |
1249 | --build=BUILD configure for building on BUILD [guessed] | |
1250 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1251 | _ACEOF | |
1252 | fi | |
1253 | ||
1254 | if test -n "$ac_init_help"; then | |
1255 | ||
1256 | cat <<\_ACEOF | |
1257 | ||
1258 | Optional Features: | |
1259 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1260 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
d6e703cc | 1261 | --disable-rpath do not hardcode runtime library paths |
32e71fa4 | 1262 | --disable-largefile omit support for large files |
25697a35 GS |
1263 | --enable-bindir=bindir |
1264 | Select bindir | |
1265 | --enable-mandir=mandir | |
1266 | Select mandir | |
1267 | --enable-sysconfdir=sysconfdir | |
1268 | Select sysconfdir | |
1269 | --enable-htmldir=htmldir | |
1270 | Select htmldir | |
1271 | ||
1272 | Optional Packages: | |
1273 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1274 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1275 | --without-gcc use CC to compile | |
d6e703cc FM |
1276 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1277 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1278 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
25697a35 GS |
1279 | |
1280 | Some influential environment variables: | |
1281 | CC C compiler command | |
1282 | CFLAGS C compiler flags | |
1283 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1284 | nonstandard directory <lib dir> | |
0743911c FM |
1285 | LIBS libraries to pass to the linker, e.g. -l<library> |
1286 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1287 | you have headers in a nonstandard directory <include dir> | |
25697a35 GS |
1288 | CPP C preprocessor |
1289 | ||
1290 | Use these variables to override the choices made by `configure' or to help | |
1291 | it to find libraries and programs with nonstandard names/locations. | |
1292 | ||
1293 | _ACEOF | |
0743911c | 1294 | ac_status=$? |
25697a35 GS |
1295 | fi |
1296 | ||
1297 | if test "$ac_init_help" = "recursive"; then | |
1298 | # If there are subdirs, report their specific --help. | |
25697a35 | 1299 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
0743911c | 1300 | test -d "$ac_dir" || continue |
25697a35 GS |
1301 | ac_builddir=. |
1302 | ||
0743911c FM |
1303 | case "$ac_dir" in |
1304 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1305 | *) | |
25697a35 | 1306 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
0743911c FM |
1307 | # A ".." for each directory in $ac_dir_suffix. |
1308 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1309 | case $ac_top_builddir_sub in | |
1310 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1311 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1312 | esac ;; | |
1313 | esac | |
1314 | ac_abs_top_builddir=$ac_pwd | |
1315 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1316 | # for backward compatibility: | |
1317 | ac_top_builddir=$ac_top_build_prefix | |
25697a35 GS |
1318 | |
1319 | case $srcdir in | |
0743911c | 1320 | .) # We are building in place. |
25697a35 | 1321 | ac_srcdir=. |
0743911c FM |
1322 | ac_top_srcdir=$ac_top_builddir_sub |
1323 | ac_abs_top_srcdir=$ac_pwd ;; | |
1324 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
25697a35 | 1325 | ac_srcdir=$srcdir$ac_dir_suffix; |
0743911c FM |
1326 | ac_top_srcdir=$srcdir |
1327 | ac_abs_top_srcdir=$srcdir ;; | |
1328 | *) # Relative name. | |
1329 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1330 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1331 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
25697a35 | 1332 | esac |
0743911c FM |
1333 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1334 | ||
1335 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1336 | # Check for guested configure. | |
1337 | if test -f "$ac_srcdir/configure.gnu"; then | |
1338 | echo && | |
1339 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1340 | elif test -f "$ac_srcdir/configure"; then | |
1341 | echo && | |
1342 | $SHELL "$ac_srcdir/configure" --help=recursive | |
25697a35 GS |
1343 | else |
1344 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
0743911c FM |
1345 | fi || ac_status=$? |
1346 | cd "$ac_pwd" || { ac_status=$?; break; } | |
25697a35 GS |
1347 | done |
1348 | fi | |
1349 | ||
0743911c | 1350 | test -n "$ac_init_help" && exit $ac_status |
25697a35 GS |
1351 | if $ac_init_version; then |
1352 | cat <<\_ACEOF | |
0743911c FM |
1353 | configure |
1354 | generated by GNU Autoconf 2.61 | |
25697a35 | 1355 | |
0743911c FM |
1356 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1357 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
25697a35 GS |
1358 | This configure script is free software; the Free Software Foundation |
1359 | gives unlimited permission to copy, distribute and modify it. | |
1360 | _ACEOF | |
0743911c | 1361 | exit |
25697a35 | 1362 | fi |
0743911c | 1363 | cat >config.log <<_ACEOF |
25697a35 GS |
1364 | This file contains any messages produced by compilers while |
1365 | running configure, to aid debugging if configure makes a mistake. | |
1366 | ||
1367 | It was created by $as_me, which was | |
0743911c | 1368 | generated by GNU Autoconf 2.61. Invocation command line was |
25697a35 GS |
1369 | |
1370 | $ $0 $@ | |
1371 | ||
1372 | _ACEOF | |
0743911c | 1373 | exec 5>>config.log |
25697a35 GS |
1374 | { |
1375 | cat <<_ASUNAME | |
1376 | ## --------- ## | |
1377 | ## Platform. ## | |
1378 | ## --------- ## | |
1379 | ||
1380 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1381 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1382 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1383 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1384 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1385 | ||
1386 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1387 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1388 | ||
1389 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1390 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1391 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
0743911c | 1392 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
25697a35 GS |
1393 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1394 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1395 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1396 | ||
1397 | _ASUNAME | |
1398 | ||
1399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1400 | for as_dir in $PATH | |
1401 | do | |
1402 | IFS=$as_save_IFS | |
1403 | test -z "$as_dir" && as_dir=. | |
1404 | echo "PATH: $as_dir" | |
1405 | done | |
0743911c | 1406 | IFS=$as_save_IFS |
25697a35 GS |
1407 | |
1408 | } >&5 | |
1409 | ||
1410 | cat >&5 <<_ACEOF | |
1411 | ||
1412 | ||
1413 | ## ----------- ## | |
1414 | ## Core tests. ## | |
1415 | ## ----------- ## | |
1416 | ||
1417 | _ACEOF | |
1418 | ||
1419 | ||
1420 | # Keep a trace of the command line. | |
1421 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1422 | # Strip out --silent because we don't want to record it for future runs. | |
1423 | # Also quote any args containing shell meta-characters. | |
1424 | # Make two passes to allow for proper duplicate-argument suppression. | |
1425 | ac_configure_args= | |
1426 | ac_configure_args0= | |
1427 | ac_configure_args1= | |
25697a35 GS |
1428 | ac_must_keep_next=false |
1429 | for ac_pass in 1 2 | |
1430 | do | |
1431 | for ac_arg | |
1432 | do | |
1433 | case $ac_arg in | |
1434 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1435 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1436 | | -silent | --silent | --silen | --sile | --sil) | |
1437 | continue ;; | |
0743911c | 1438 | *\'*) |
25697a35 GS |
1439 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1440 | esac | |
1441 | case $ac_pass in | |
1442 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1443 | 2) | |
1444 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1445 | if test $ac_must_keep_next = true; then | |
1446 | ac_must_keep_next=false # Got value, back to normal. | |
1447 | else | |
1448 | case $ac_arg in | |
1449 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1450 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1451 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1452 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1453 | case "$ac_configure_args0 " in | |
1454 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1455 | esac | |
1456 | ;; | |
1457 | -* ) ac_must_keep_next=true ;; | |
1458 | esac | |
1459 | fi | |
0743911c | 1460 | ac_configure_args="$ac_configure_args '$ac_arg'" |
25697a35 GS |
1461 | ;; |
1462 | esac | |
1463 | done | |
1464 | done | |
1465 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1466 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1467 | ||
1468 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1469 | # config.log. We remove comments because anyway the quotes in there | |
1470 | # would cause problems or look ugly. | |
0743911c FM |
1471 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1472 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
25697a35 GS |
1473 | trap 'exit_status=$? |
1474 | # Save into config.log some information that might help in debugging. | |
1475 | { | |
1476 | echo | |
1477 | ||
1478 | cat <<\_ASBOX | |
1479 | ## ---------------- ## | |
1480 | ## Cache variables. ## | |
1481 | ## ---------------- ## | |
1482 | _ASBOX | |
1483 | echo | |
1484 | # The following way of writing the cache mishandles newlines in values, | |
0743911c FM |
1485 | ( |
1486 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1487 | eval ac_val=\$$ac_var | |
1488 | case $ac_val in #( | |
1489 | *${as_nl}*) | |
1490 | case $ac_var in #( | |
1491 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1492 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1493 | esac | |
1494 | case $ac_var in #( | |
1495 | _ | IFS | as_nl) ;; #( | |
1496 | *) $as_unset $ac_var ;; | |
1497 | esac ;; | |
1498 | esac | |
1499 | done | |
25697a35 | 1500 | (set) 2>&1 | |
0743911c FM |
1501 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1502 | *${as_nl}ac_space=\ *) | |
25697a35 | 1503 | sed -n \ |
0743911c FM |
1504 | "s/'\''/'\''\\\\'\'''\''/g; |
1505 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1506 | ;; #( | |
25697a35 | 1507 | *) |
0743911c | 1508 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
25697a35 | 1509 | ;; |
0743911c FM |
1510 | esac | |
1511 | sort | |
1512 | ) | |
25697a35 GS |
1513 | echo |
1514 | ||
1515 | cat <<\_ASBOX | |
1516 | ## ----------------- ## | |
1517 | ## Output variables. ## | |
1518 | ## ----------------- ## | |
1519 | _ASBOX | |
1520 | echo | |
1521 | for ac_var in $ac_subst_vars | |
1522 | do | |
0743911c FM |
1523 | eval ac_val=\$$ac_var |
1524 | case $ac_val in | |
1525 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1526 | esac | |
1527 | echo "$ac_var='\''$ac_val'\''" | |
25697a35 GS |
1528 | done | sort |
1529 | echo | |
1530 | ||
1531 | if test -n "$ac_subst_files"; then | |
1532 | cat <<\_ASBOX | |
0743911c FM |
1533 | ## ------------------- ## |
1534 | ## File substitutions. ## | |
1535 | ## ------------------- ## | |
25697a35 GS |
1536 | _ASBOX |
1537 | echo | |
1538 | for ac_var in $ac_subst_files | |
1539 | do | |
0743911c FM |
1540 | eval ac_val=\$$ac_var |
1541 | case $ac_val in | |
1542 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1543 | esac | |
1544 | echo "$ac_var='\''$ac_val'\''" | |
25697a35 GS |
1545 | done | sort |
1546 | echo | |
1547 | fi | |
1548 | ||
1549 | if test -s confdefs.h; then | |
1550 | cat <<\_ASBOX | |
1551 | ## ----------- ## | |
1552 | ## confdefs.h. ## | |
1553 | ## ----------- ## | |
1554 | _ASBOX | |
1555 | echo | |
0743911c | 1556 | cat confdefs.h |
25697a35 GS |
1557 | echo |
1558 | fi | |
1559 | test "$ac_signal" != 0 && | |
1560 | echo "$as_me: caught signal $ac_signal" | |
1561 | echo "$as_me: exit $exit_status" | |
1562 | } >&5 | |
0743911c FM |
1563 | rm -f core *.core core.conftest.* && |
1564 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
25697a35 | 1565 | exit $exit_status |
0743911c | 1566 | ' 0 |
25697a35 GS |
1567 | for ac_signal in 1 2 13 15; do |
1568 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1569 | done | |
1570 | ac_signal=0 | |
1571 | ||
1572 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
0743911c | 1573 | rm -f -r conftest* confdefs.h |
25697a35 GS |
1574 | |
1575 | # Predefined preprocessor variables. | |
1576 | ||
1577 | cat >>confdefs.h <<_ACEOF | |
1578 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1579 | _ACEOF | |
1580 | ||
1581 | ||
1582 | cat >>confdefs.h <<_ACEOF | |
1583 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1584 | _ACEOF | |
1585 | ||
1586 | ||
1587 | cat >>confdefs.h <<_ACEOF | |
1588 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1589 | _ACEOF | |
1590 | ||
1591 | ||
1592 | cat >>confdefs.h <<_ACEOF | |
1593 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1594 | _ACEOF | |
1595 | ||
1596 | ||
1597 | cat >>confdefs.h <<_ACEOF | |
1598 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1599 | _ACEOF | |
1600 | ||
1601 | ||
1602 | # Let the site file select an alternate cache file if it wants to. | |
1603 | # Prefer explicitly selected file to automatically selected ones. | |
0743911c FM |
1604 | if test -n "$CONFIG_SITE"; then |
1605 | set x "$CONFIG_SITE" | |
1606 | elif test "x$prefix" != xNONE; then | |
1607 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1608 | else | |
1609 | set x "$ac_default_prefix/share/config.site" \ | |
1610 | "$ac_default_prefix/etc/config.site" | |
25697a35 | 1611 | fi |
0743911c FM |
1612 | shift |
1613 | for ac_site_file | |
1614 | do | |
25697a35 GS |
1615 | if test -r "$ac_site_file"; then |
1616 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1617 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1618 | sed 's/^/| /' "$ac_site_file" >&5 | |
1619 | . "$ac_site_file" | |
1620 | fi | |
1621 | done | |
1622 | ||
1623 | if test -r "$cache_file"; then | |
1624 | # Some versions of bash will fail to source /dev/null (special | |
1625 | # files actually), so we avoid doing that. | |
1626 | if test -f "$cache_file"; then | |
1627 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1628 | echo "$as_me: loading cache $cache_file" >&6;} | |
1629 | case $cache_file in | |
0743911c FM |
1630 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1631 | *) . "./$cache_file";; | |
25697a35 GS |
1632 | esac |
1633 | fi | |
1634 | else | |
1635 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1636 | echo "$as_me: creating cache $cache_file" >&6;} | |
1637 | >$cache_file | |
1638 | fi | |
1639 | ||
1640 | # Check that the precious variables saved in the cache have kept the same | |
1641 | # value. | |
1642 | ac_cache_corrupted=false | |
0743911c | 1643 | for ac_var in $ac_precious_vars; do |
25697a35 GS |
1644 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1645 | eval ac_new_set=\$ac_env_${ac_var}_set | |
0743911c FM |
1646 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1647 | eval ac_new_val=\$ac_env_${ac_var}_value | |
25697a35 GS |
1648 | case $ac_old_set,$ac_new_set in |
1649 | set,) | |
1650 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1651 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1652 | ac_cache_corrupted=: ;; | |
1653 | ,set) | |
1654 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1655 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1656 | ac_cache_corrupted=: ;; | |
1657 | ,);; | |
1658 | *) | |
1659 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1660 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1661 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1662 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1663 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1664 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1665 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1666 | ac_cache_corrupted=: | |
1667 | fi;; | |
1668 | esac | |
1669 | # Pass precious variables to config.status. | |
1670 | if test "$ac_new_set" = set; then | |
1671 | case $ac_new_val in | |
0743911c | 1672 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
25697a35 GS |
1673 | *) ac_arg=$ac_var=$ac_new_val ;; |
1674 | esac | |
1675 | case " $ac_configure_args " in | |
1676 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1677 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1678 | esac | |
1679 | fi | |
1680 | done | |
1681 | if $ac_cache_corrupted; then | |
1682 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1683 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1684 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1685 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1686 | { (exit 1); exit 1; }; } | |
1687 | fi | |
1688 | ||
25697a35 GS |
1689 | |
1690 | ||
1691 | ||
1692 | ||
1693 | ||
1694 | ||
1695 | ||
1696 | ||
1697 | ||
1698 | ||
1699 | ||
1700 | ||
1701 | ||
1702 | ||
1703 | ||
1704 | ||
0743911c FM |
1705 | ac_ext=c |
1706 | ac_cpp='$CPP $CPPFLAGS' | |
1707 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1708 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1709 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25697a35 GS |
1710 | |
1711 | ||
1712 | ||
1713 | ac_aux_dir= | |
0743911c FM |
1714 | for ac_dir in cfgaux "$srcdir"/cfgaux; do |
1715 | if test -f "$ac_dir/install-sh"; then | |
25697a35 GS |
1716 | ac_aux_dir=$ac_dir |
1717 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1718 | break | |
0743911c | 1719 | elif test -f "$ac_dir/install.sh"; then |
25697a35 GS |
1720 | ac_aux_dir=$ac_dir |
1721 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1722 | break | |
0743911c | 1723 | elif test -f "$ac_dir/shtool"; then |
25697a35 GS |
1724 | ac_aux_dir=$ac_dir |
1725 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1726 | break | |
1727 | fi | |
1728 | done | |
1729 | if test -z "$ac_aux_dir"; then | |
0743911c FM |
1730 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux \"$srcdir\"/cfgaux" >&5 |
1731 | echo "$as_me: error: cannot find install-sh or install.sh in cfgaux \"$srcdir\"/cfgaux" >&2;} | |
25697a35 GS |
1732 | { (exit 1); exit 1; }; } |
1733 | fi | |
0743911c FM |
1734 | |
1735 | # These three variables are undocumented and unsupported, | |
1736 | # and are intended to be withdrawn in a future Autoconf release. | |
1737 | # They can cause serious problems if a builder's source tree is in a directory | |
1738 | # whose full name contains unusual characters. | |
1739 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1740 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1741 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1742 | ||
25697a35 GS |
1743 | |
1744 | ||
1745 | LDFLAGS="-g" | |
1746 | ||
1747 | # Make sure we can run config.sub. | |
0743911c FM |
1748 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1749 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
1750 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
25697a35 GS |
1751 | { (exit 1); exit 1; }; } |
1752 | ||
0743911c FM |
1753 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1754 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
25697a35 GS |
1755 | if test "${ac_cv_build+set}" = set; then |
1756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1757 | else | |
0743911c FM |
1758 | ac_build_alias=$build_alias |
1759 | test "x$ac_build_alias" = x && | |
1760 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1761 | test "x$ac_build_alias" = x && | |
25697a35 GS |
1762 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1763 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1764 | { (exit 1); exit 1; }; } | |
0743911c FM |
1765 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
1766 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
1767 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
25697a35 GS |
1768 | { (exit 1); exit 1; }; } |
1769 | ||
1770 | fi | |
0743911c FM |
1771 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1772 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
1773 | case $ac_cv_build in | |
1774 | *-*-*) ;; | |
1775 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
1776 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
1777 | { (exit 1); exit 1; }; };; | |
1778 | esac | |
25697a35 | 1779 | build=$ac_cv_build |
0743911c FM |
1780 | ac_save_IFS=$IFS; IFS='-' |
1781 | set x $ac_cv_build | |
1782 | shift | |
1783 | build_cpu=$1 | |
1784 | build_vendor=$2 | |
1785 | shift; shift | |
1786 | # Remember, the first character of IFS is used to create $*, | |
1787 | # except with old shells: | |
1788 | build_os=$* | |
1789 | IFS=$ac_save_IFS | |
1790 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
1791 | ||
1792 | ||
1793 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
1794 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
25697a35 GS |
1795 | if test "${ac_cv_host+set}" = set; then |
1796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1797 | else | |
0743911c FM |
1798 | if test "x$host_alias" = x; then |
1799 | ac_cv_host=$ac_cv_build | |
1800 | else | |
1801 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
1802 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
1803 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
25697a35 | 1804 | { (exit 1); exit 1; }; } |
0743911c | 1805 | fi |
25697a35 GS |
1806 | |
1807 | fi | |
0743911c FM |
1808 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1809 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
1810 | case $ac_cv_host in | |
1811 | *-*-*) ;; | |
1812 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
1813 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
1814 | { (exit 1); exit 1; }; };; | |
1815 | esac | |
25697a35 | 1816 | host=$ac_cv_host |
0743911c FM |
1817 | ac_save_IFS=$IFS; IFS='-' |
1818 | set x $ac_cv_host | |
1819 | shift | |
1820 | host_cpu=$1 | |
1821 | host_vendor=$2 | |
1822 | shift; shift | |
1823 | # Remember, the first character of IFS is used to create $*, | |
1824 | # except with old shells: | |
1825 | host_os=$* | |
1826 | IFS=$ac_save_IFS | |
1827 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
25697a35 GS |
1828 | |
1829 | ||
1830 | ||
1831 | ||
0743911c | 1832 | # Check whether --with-gcc was given. |
25697a35 | 1833 | if test "${with_gcc+set}" = set; then |
0743911c FM |
1834 | withval=$with_gcc; |
1835 | fi | |
25697a35 | 1836 | |
25697a35 GS |
1837 | |
1838 | test -n "$CC" && cc_specified=yes | |
1839 | case ${with_gcc} in | |
1840 | yes ) CC=gcc ;; | |
1841 | no ) CC=cc ;; | |
1842 | * ) ac_ext=c | |
1843 | ac_cpp='$CPP $CPPFLAGS' | |
1844 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1845 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1846 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1847 | if test -n "$ac_tool_prefix"; then | |
1848 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1849 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
0743911c FM |
1850 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
25697a35 GS |
1852 | if test "${ac_cv_prog_CC+set}" = set; then |
1853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1854 | else | |
1855 | if test -n "$CC"; then | |
1856 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1857 | else | |
1858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1859 | for as_dir in $PATH | |
1860 | do | |
1861 | IFS=$as_save_IFS | |
1862 | test -z "$as_dir" && as_dir=. | |
1863 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0743911c | 1864 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
25697a35 GS |
1865 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1866 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1867 | break 2 | |
1868 | fi | |
1869 | done | |
1870 | done | |
0743911c | 1871 | IFS=$as_save_IFS |
25697a35 GS |
1872 | |
1873 | fi | |
1874 | fi | |
1875 | CC=$ac_cv_prog_CC | |
1876 | if test -n "$CC"; then | |
0743911c FM |
1877 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1878 | echo "${ECHO_T}$CC" >&6; } | |
25697a35 | 1879 | else |
0743911c FM |
1880 | { echo "$as_me:$LINENO: result: no" >&5 |
1881 | echo "${ECHO_T}no" >&6; } | |
25697a35 GS |
1882 | fi |
1883 | ||
0743911c | 1884 | |
25697a35 GS |
1885 | fi |
1886 | if test -z "$ac_cv_prog_CC"; then | |
1887 | ac_ct_CC=$CC | |
1888 | # Extract the first word of "gcc", so it can be a program name with args. | |
1889 | set dummy gcc; ac_word=$2 | |
0743911c FM |
1890 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
25697a35 GS |
1892 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1894 | else | |
1895 | if test -n "$ac_ct_CC"; then | |
1896 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1897 | else | |
1898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1899 | for as_dir in $PATH | |
1900 | do | |
1901 | IFS=$as_save_IFS | |
1902 | test -z "$as_dir" && as_dir=. | |
1903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0743911c | 1904 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
25697a35 GS |
1905 | ac_cv_prog_ac_ct_CC="gcc" |
1906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1907 | break 2 | |
1908 | fi | |
1909 | done | |
1910 | done | |
0743911c | 1911 | IFS=$as_save_IFS |
25697a35 GS |
1912 | |
1913 | fi | |
1914 | fi | |
1915 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1916 | if test -n "$ac_ct_CC"; then | |
0743911c FM |
1917 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1918 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
25697a35 | 1919 | else |
0743911c FM |
1920 | { echo "$as_me:$LINENO: result: no" >&5 |
1921 | echo "${ECHO_T}no" >&6; } | |
25697a35 GS |
1922 | fi |
1923 | ||
0743911c FM |
1924 | if test "x$ac_ct_CC" = x; then |
1925 | CC="" | |
1926 | else | |
1927 | case $cross_compiling:$ac_tool_warned in | |
1928 | yes:) | |
1929 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
1930 | whose name does not start with the host triplet. If you think this | |
1931 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1932 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
1933 | whose name does not start with the host triplet. If you think this | |
1934 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
1935 | ac_tool_warned=yes ;; | |
1936 | esac | |
1937 | CC=$ac_ct_CC | |
1938 | fi | |
25697a35 GS |
1939 | else |
1940 | CC="$ac_cv_prog_CC" | |
1941 | fi | |
1942 | ||
1943 | if test -z "$CC"; then | |
0743911c FM |
1944 | if test -n "$ac_tool_prefix"; then |
1945 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
25697a35 | 1946 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
0743911c FM |
1947 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
25697a35 GS |
1949 | if test "${ac_cv_prog_CC+set}" = set; then |
1950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1951 | else | |
1952 | if test -n "$CC"; then | |
1953 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1954 | else | |
1955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1956 | for as_dir in $PATH | |
1957 | do | |
1958 | IFS=$as_save_IFS | |
1959 | test -z "$as_dir" && as_dir=. | |
1960 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0743911c | 1961 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
25697a35 GS |
1962 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1964 | break 2 | |
1965 | fi | |
1966 | done | |
1967 | done | |
0743911c | 1968 | IFS=$as_save_IFS |
25697a35 GS |
1969 | |
1970 | fi | |
1971 | fi | |
1972 | CC=$ac_cv_prog_CC | |
1973 | if test -n "$CC"; then | |
0743911c FM |
1974 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1975 | echo "${ECHO_T}$CC" >&6; } | |
25697a35 | 1976 | else |
0743911c FM |
1977 | { echo "$as_me:$LINENO: result: no" >&5 |
1978 | echo "${ECHO_T}no" >&6; } | |
25697a35 GS |
1979 | fi |
1980 | ||
25697a35 | 1981 | |
0743911c | 1982 | fi |
25697a35 GS |
1983 | fi |
1984 | if test -z "$CC"; then | |
1985 | # Extract the first word of "cc", so it can be a program name with args. | |
1986 | set dummy cc; ac_word=$2 | |
0743911c FM |
1987 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
25697a35 GS |
1989 | if test "${ac_cv_prog_CC+set}" = set; then |
1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1991 | else | |
1992 | if test -n "$CC"; then | |
1993 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1994 | else | |
1995 | ac_prog_rejected=no | |
1996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1997 | for as_dir in $PATH | |
1998 | do | |
1999 | IFS=$as_save_IFS | |
2000 | test -z "$as_dir" && as_dir=. | |
2001 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0743911c | 2002 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
25697a35 GS |
2003 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2004 | ac_prog_rejected=yes | |
2005 | continue | |
2006 | fi | |
2007 | ac_cv_prog_CC="cc" | |
2008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2009 | break 2 | |
2010 | fi | |
2011 | done | |
2012 | done | |
0743911c | 2013 | IFS=$as_save_IFS |
25697a35 GS |
2014 | |
2015 | if test $ac_prog_rejected = yes; then | |
2016 | # We found a bogon in the path, so make sure we never use it. | |
2017 | set dummy $ac_cv_prog_CC | |
2018 | shift | |
2019 | if test $# != 0; then | |
2020 | # We chose a different compiler from the bogus one. | |
2021 | # However, it has the same basename, so the bogon will be chosen | |
2022 | # first if we set CC to just the basename; use the full file name. | |
2023 | shift | |
2024 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2025 | fi | |
2026 | fi | |
2027 | fi | |
2028 | fi | |
2029 | CC=$ac_cv_prog_CC | |
2030 | if test -n "$CC"; then | |
0743911c FM |
2031 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2032 | echo "${ECHO_T}$CC" >&6; } | |
25697a35 | 2033 | else |
0743911c FM |
2034 | { echo "$as_me:$LINENO: result: no" >&5 |
2035 | echo "${ECHO_T}no" >&6; } | |
25697a35 GS |
2036 | fi |
2037 | ||
0743911c | 2038 | |
25697a35 GS |
2039 | fi |
2040 | if test -z "$CC"; then | |
2041 | if test -n "$ac_tool_prefix"; then | |
0743911c | 2042 | for ac_prog in cl.exe |
25697a35 GS |
2043 | do |
2044 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2045 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
0743911c FM |
2046 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2047 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
25697a35 GS |
2048 | if test "${ac_cv_prog_CC+set}" = set; then |
2049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2050 | else | |
2051 | if test -n "$CC"; then | |
2052 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2053 | else | |
2054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2055 | for as_dir in $PATH | |
2056 | do | |
2057 | IFS=$as_save_IFS | |
2058 | test -z "$as_dir" && as_dir=. | |
2059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0743911c | 2060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
25697a35 GS |
2061 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2063 | break 2 | |
2064 | fi | |
2065 | done | |
2066 | done | |
0743911c | 2067 | IFS=$as_save_IFS |
25697a35 GS |
2068 | |
2069 | fi | |
2070 | fi | |
2071 | CC=$ac_cv_prog_CC | |
2072 | if test -n "$CC"; then | |
0743911c FM |
2073 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2074 | echo "${ECHO_T}$CC" >&6; } | |
25697a35 | 2075 | else |
0743911c FM |
2076 | { echo "$as_me:$LINENO: result: no" >&5 |
2077 | echo "${ECHO_T}no" >&6; } | |
25697a35 GS |
2078 | fi |
2079 | ||
0743911c | 2080 | |
25697a35 GS |
2081 | test -n "$CC" && break |
2082 | done | |
2083 | fi | |
2084 | if test -z "$CC"; then | |
2085 | ac_ct_CC=$CC | |
0743911c | 2086 | for ac_prog in cl.exe |
25697a35 GS |
2087 | do |
2088 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2089 | set dummy $ac_prog; ac_word=$2 | |
0743911c FM |
2090 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
25697a35 GS |
2092 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2094 | else | |
2095 | if test -n "$ac_ct_CC"; then | |
2096 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2097 | else | |
2098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2099 | for as_dir in $PATH | |
2100 | do | |
2101 | IFS=$as_save_IFS | |
2102 | test -z "$as_dir" && as_dir=. | |
2103 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0743911c | 2104 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
25697a35 GS |
2105 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2106 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2107 | break 2 | |
2108 | fi | |
2109 | done | |
2110 | done | |
0743911c | 2111 | IFS=$as_save_IFS |
25697a35 GS |
2112 | |
2113 | fi | |
2114 | fi | |
2115 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2116 | if test -n "$ac_ct_CC"; then | |
0743911c FM |
2117 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2118 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
25697a35 | 2119 | else |
0743911c FM |
2120 | { echo "$as_me:$LINENO: result: no" >&5 |
2121 | echo "${ECHO_T}no" >&6; } | |
25697a35 GS |
2122 | fi |
2123 | ||
0743911c | 2124 | |
25697a35 GS |
2125 | test -n "$ac_ct_CC" && break |
2126 | done | |
2127 | ||
0743911c FM |
2128 | if test "x$ac_ct_CC" = x; then |
2129 | CC="" | |
2130 | else | |
2131 | case $cross_compiling:$ac_tool_warned in | |
2132 | yes:) | |
2133 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2134 | whose name does not start with the host triplet. If you think this | |
2135 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2136 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2137 | whose name does not start with the host triplet. If you think this | |
2138 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2139 | ac_tool_warned=yes ;; | |
2140 | esac | |
2141 | CC=$ac_ct_CC | |
2142 | fi | |
25697a35 GS |
2143 | fi |
2144 | ||
2145 | fi | |
2146 | ||
2147 | ||
2148 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2149 | See \`config.log' for more details." >&5 | |
2150 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2151 | See \`config.log' for more details." >&2;} | |
2152 | { (exit 1); exit 1; }; } | |
2153 | ||
2154 | # Provide some information about the compiler. | |
0743911c | 2155 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
25697a35 | 2156 | ac_compiler=`set X $ac_compile; echo $2` |
0743911c FM |
2157 | { (ac_try="$ac_compiler --version >&5" |
2158 | case "(($ac_try" in | |
2159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2160 | *) ac_try_echo=$ac_try;; | |
2161 | esac | |
2162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2163 | (eval "$ac_compiler --version >&5") 2>&5 | |
25697a35 GS |
2164 | ac_status=$? |
2165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2166 | (exit $ac_status); } | |
0743911c FM |
2167 | { (ac_try="$ac_compiler -v >&5" |
2168 | case "(($ac_try" in | |
2169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2170 | *) ac_try_echo=$ac_try;; | |
2171 | esac | |
2172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2173 | (eval "$ac_compiler -v >&5") 2>&5 | |
25697a35 GS |
2174 | ac_status=$? |
2175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2176 | (exit $ac_status); } | |
0743911c FM |
2177 | { (ac_try="$ac_compiler -V >&5" |
2178 | case "(($ac_try" in | |
2179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2180 | *) ac_try_echo=$ac_try;; | |
2181 | esac | |
2182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2183 | (eval "$ac_compiler -V >&5") 2>&5 | |
25697a35 GS |
2184 | ac_status=$? |
2185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2186 | (exit $ac_status); } | |
2187 | ||
2188 | cat >conftest.$ac_ext <<_ACEOF | |
2189 | /* confdefs.h. */ | |
2190 | _ACEOF | |
2191 | cat confdefs.h >>conftest.$ac_ext | |
2192 | cat >>conftest.$ac_ext <<_ACEOF | |
2193 | /* end confdefs.h. */ | |
2194 | ||
2195 | int | |
2196 | main () | |
2197 | { | |
2198 | ||
2199 | ; | |
2200 | return 0; | |
2201 | } | |
2202 | _ACEOF | |
2203 | ac_clean_files_save=$ac_clean_files | |
2204 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2205 | # Try to create an executable without -o first, disregard a.out. | |
2206 | # It will help us diagnose broken compilers, and finding out an intuition | |
2207 | # of exeext. | |
0743911c FM |
2208 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2209 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
25697a35 | 2210 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
0743911c FM |
2211 | # |
2212 | # List of possible output files, starting from the most likely. | |
2213 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2214 | # only as a last resort. b.out is created by i960 compilers. | |
2215 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2216 | # | |
2217 | # The IRIX 6 linker writes into existing files which may not be | |
2218 | # executable, retaining their permissions. Remove them first so a | |
2219 | # subsequent execution test works. | |
2220 | ac_rmfiles= | |
2221 | for ac_file in $ac_files | |
2222 | do | |
2223 | case $ac_file in | |
2224 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2225 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2226 | esac | |
2227 | done | |
2228 | rm -f $ac_rmfiles | |
2229 | ||
2230 | if { (ac_try="$ac_link_default" | |
2231 | case "(($ac_try" in | |
2232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2233 | *) ac_try_echo=$ac_try;; | |
2234 | esac | |
2235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2236 | (eval "$ac_link_default") 2>&5 | |
25697a35 GS |
2237 | ac_status=$? |
2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2239 | (exit $ac_status); }; then | |
0743911c FM |
2240 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2241 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2242 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2243 | # so that the user can short-circuit this test for compilers unknown to | |
2244 | # Autoconf. | |
2245 | for ac_file in $ac_files '' | |
25697a35 GS |
2246 | do |
2247 | test -f "$ac_file" || continue | |
2248 | case $ac_file in | |
0743911c | 2249 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
25697a35 GS |
2250 | ;; |
2251 | [ab].out ) | |
2252 | # We found the default executable, but exeext='' is most | |
2253 | # certainly right. | |
2254 | break;; | |
2255 | *.* ) | |
0743911c FM |
2256 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2257 | then :; else | |
2258 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2259 | fi | |
2260 | # We set ac_cv_exeext here because the later test for it is not | |
2261 | # safe: cross compilers may not add the suffix if given an `-o' | |
2262 | # argument, so we may need to know it at that point already. | |
2263 | # Even if this section looks crufty: it has the advantage of | |
2264 | # actually working. | |
25697a35 GS |
2265 | break;; |
2266 | * ) | |
2267 | break;; | |
2268 | esac | |
2269 | done | |
0743911c FM |
2270 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2271 | ||
25697a35 | 2272 | else |
0743911c FM |
2273 | ac_file='' |
2274 | fi | |
2275 | ||
2276 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2277 | echo "${ECHO_T}$ac_file" >&6; } | |
2278 | if test -z "$ac_file"; then | |
25697a35 GS |
2279 | echo "$as_me: failed program was:" >&5 |
2280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2281 | ||
2282 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2283 | See \`config.log' for more details." >&5 | |
2284 | echo "$as_me: error: C compiler cannot create executables | |
2285 | See \`config.log' for more details." >&2;} | |
2286 | { (exit 77); exit 77; }; } | |
2287 | fi | |
2288 | ||
2289 | ac_exeext=$ac_cv_exeext | |
25697a35 | 2290 | |
0743911c | 2291 | # Check that the compiler produces executables we can run. If not, either |
25697a35 | 2292 | # the compiler is broken, or we cross compile. |
0743911c FM |
2293 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2294 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
25697a35 GS |
2295 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2296 | # If not cross compiling, check that we can run a simple program. | |
2297 | if test "$cross_compiling" != yes; then | |
2298 | if { ac_try='./$ac_file' | |
0743911c FM |
2299 | { (case "(($ac_try" in |
2300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2301 | *) ac_try_echo=$ac_try;; | |
2302 | esac | |
2303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2304 | (eval "$ac_try") 2>&5 | |
25697a35 GS |
2305 | ac_status=$? |
2306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2307 | (exit $ac_status); }; }; then | |
2308 | cross_compiling=no | |
2309 | else | |
2310 | if test "$cross_compiling" = maybe; then | |
2311 | cross_compiling=yes | |
2312 | else | |
2313 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2314 | If you meant to cross compile, use \`--host'. | |
2315 | See \`config.log' for more details." >&5 | |
2316 | echo "$as_me: error: cannot run C compiled programs. | |
2317 | If you meant to cross compile, use \`--host'. | |
2318 | See \`config.log' for more details." >&2;} | |
2319 | { (exit 1); exit 1; }; } | |
2320 | fi | |
2321 | fi | |
2322 | fi | |
0743911c FM |
2323 | { echo "$as_me:$LINENO: result: yes" >&5 |
2324 | echo "${ECHO_T}yes" >&6; } | |
25697a35 GS |
2325 | |
2326 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2327 | ac_clean_files=$ac_clean_files_save | |
0743911c | 2328 | # Check that the compiler produces executables we can run. If not, either |
25697a35 | 2329 | # the compiler is broken, or we cross compile. |
0743911c FM |
2330 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2331 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2332 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2333 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2334 | ||
2335 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2336 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2337 | if { (ac_try="$ac_link" | |
2338 | case "(($ac_try" in | |
2339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2340 | *) ac_try_echo=$ac_try;; | |
2341 | esac | |
2342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2343 | (eval "$ac_link") 2>&5 | |
25697a35 GS |
2344 | ac_status=$? |
2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2346 | (exit $ac_status); }; then | |
2347 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2348 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2349 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2350 | # `rm'. | |
2351 | for ac_file in conftest.exe conftest conftest.*; do | |
2352 | test -f "$ac_file" || continue | |
2353 | case $ac_file in | |
0743911c | 2354 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
25697a35 | 2355 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
25697a35 GS |
2356 | break;; |
2357 | * ) break;; | |
2358 | esac | |
2359 | done | |
2360 | else | |
2361 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2362 | See \`config.log' for more details." >&5 | |
2363 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2364 | See \`config.log' for more details." >&2;} | |
2365 | { (exit 1); exit 1; }; } | |
2366 | fi | |
2367 | ||
2368 | rm -f conftest$ac_cv_exeext | |
0743911c FM |
2369 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2370 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
25697a35 GS |
2371 | |
2372 | rm -f conftest.$ac_ext | |
2373 | EXEEXT=$ac_cv_exeext | |
2374 | ac_exeext=$EXEEXT | |
0743911c FM |
2375 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2376 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
25697a35 GS |
2377 | if test "${ac_cv_objext+set}" = set; then |
2378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2379 | else | |
2380 | cat >conftest.$ac_ext <<_ACEOF | |
2381 | /* confdefs.h. */ | |
2382 | _ACEOF | |
2383 | cat confdefs.h >>conftest.$ac_ext | |
2384 | cat >>conftest.$ac_ext <<_ACEOF | |
2385 | /* end confdefs.h. */ | |
2386 | ||
2387 | int | |
2388 | main () | |
2389 | { | |
2390 | ||
2391 | ; | |
2392 | return 0; | |
2393 | } | |
2394 | _ACEOF | |
2395 | rm -f conftest.o conftest.obj | |
0743911c FM |
2396 | if { (ac_try="$ac_compile" |
2397 | case "(($ac_try" in | |
2398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2399 | *) ac_try_echo=$ac_try;; | |
2400 | esac | |
2401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2402 | (eval "$ac_compile") 2>&5 | |
25697a35 GS |
2403 | ac_status=$? |
2404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2405 | (exit $ac_status); }; then | |
0743911c FM |
2406 | for ac_file in conftest.o conftest.obj conftest.*; do |
2407 | test -f "$ac_file" || continue; | |
25697a35 | 2408 | case $ac_file in |
0743911c | 2409 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
25697a35 GS |
2410 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2411 | break;; | |
2412 | esac | |
2413 | done | |
2414 | else | |
2415 | echo "$as_me: failed program was:" >&5 | |
2416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2417 | ||
2418 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2419 | See \`config.log' for more details." >&5 | |
2420 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2421 | See \`config.log' for more details." >&2;} | |
2422 | { (exit 1); exit 1; }; } | |
2423 | fi | |
2424 | ||
2425 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2426 | fi | |
0743911c FM |
2427 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2428 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
25697a35 GS |
2429 | OBJEXT=$ac_cv_objext |
2430 | ac_objext=$OBJEXT | |
0743911c FM |
2431 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2432 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
25697a35 GS |
2433 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2435 | else | |
2436 | cat >conftest.$ac_ext <<_ACEOF | |
2437 | /* confdefs.h. */ | |
2438 | _ACEOF | |
2439 | cat confdefs.h >>conftest.$ac_ext | |
2440 | cat >>conftest.$ac_ext <<_ACEOF | |
2441 | /* end confdefs.h. */ | |
2442 | ||
2443 | int | |
2444 | main () | |
2445 | { | |
2446 | #ifndef __GNUC__ | |
2447 | choke me | |
2448 | #endif | |
2449 | ||
2450 | ; | |
2451 | return 0; | |
2452 | } | |
2453 | _ACEOF | |
2454 | rm -f conftest.$ac_objext | |
0743911c FM |
2455 | if { (ac_try="$ac_compile" |
2456 | case "(($ac_try" in | |
2457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2458 | *) ac_try_echo=$ac_try;; | |
2459 | esac | |
2460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2461 | (eval "$ac_compile") 2>conftest.er1 | |
25697a35 GS |
2462 | ac_status=$? |
2463 | grep -v '^ *+' conftest.er1 >conftest.err | |
2464 | rm -f conftest.er1 | |
2465 | cat conftest.err >&5 | |
2466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
2467 | (exit $ac_status); } && { |
2468 | test -z "$ac_c_werror_flag" || | |
2469 | test ! -s conftest.err | |
2470 | } && test -s conftest.$ac_objext; then | |
25697a35 GS |
2471 | ac_compiler_gnu=yes |
2472 | else | |
2473 | echo "$as_me: failed program was:" >&5 | |
2474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2475 | ||
0743911c | 2476 | ac_compiler_gnu=no |
25697a35 | 2477 | fi |
0743911c FM |
2478 | |
2479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25697a35 GS |
2480 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2481 | ||
2482 | fi | |
0743911c FM |
2483 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2484 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
25697a35 GS |
2485 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2486 | ac_test_CFLAGS=${CFLAGS+set} | |
2487 | ac_save_CFLAGS=$CFLAGS | |
0743911c FM |
2488 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2489 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
25697a35 GS |
2490 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2492 | else | |
0743911c FM |
2493 | ac_save_c_werror_flag=$ac_c_werror_flag |
2494 | ac_c_werror_flag=yes | |
2495 | ac_cv_prog_cc_g=no | |
2496 | CFLAGS="-g" | |
2497 | cat >conftest.$ac_ext <<_ACEOF | |
25697a35 GS |
2498 | /* confdefs.h. */ |
2499 | _ACEOF | |
2500 | cat confdefs.h >>conftest.$ac_ext | |
2501 | cat >>conftest.$ac_ext <<_ACEOF | |
2502 | /* end confdefs.h. */ | |
2503 | ||
2504 | int | |
2505 | main () | |
2506 | { | |
2507 | ||
2508 | ; | |
2509 | return 0; | |
2510 | } | |
2511 | _ACEOF | |
2512 | rm -f conftest.$ac_objext | |
0743911c FM |
2513 | if { (ac_try="$ac_compile" |
2514 | case "(($ac_try" in | |
2515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2516 | *) ac_try_echo=$ac_try;; | |
2517 | esac | |
2518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2519 | (eval "$ac_compile") 2>conftest.er1 | |
25697a35 GS |
2520 | ac_status=$? |
2521 | grep -v '^ *+' conftest.er1 >conftest.err | |
2522 | rm -f conftest.er1 | |
2523 | cat conftest.err >&5 | |
2524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
2525 | (exit $ac_status); } && { |
2526 | test -z "$ac_c_werror_flag" || | |
2527 | test ! -s conftest.err | |
2528 | } && test -s conftest.$ac_objext; then | |
2529 | ac_cv_prog_cc_g=yes | |
2530 | else | |
2531 | echo "$as_me: failed program was:" >&5 | |
2532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2533 | ||
2534 | CFLAGS="" | |
2535 | cat >conftest.$ac_ext <<_ACEOF | |
2536 | /* confdefs.h. */ | |
2537 | _ACEOF | |
2538 | cat confdefs.h >>conftest.$ac_ext | |
2539 | cat >>conftest.$ac_ext <<_ACEOF | |
2540 | /* end confdefs.h. */ | |
2541 | ||
2542 | int | |
2543 | main () | |
2544 | { | |
2545 | ||
2546 | ; | |
2547 | return 0; | |
2548 | } | |
2549 | _ACEOF | |
2550 | rm -f conftest.$ac_objext | |
2551 | if { (ac_try="$ac_compile" | |
2552 | case "(($ac_try" in | |
2553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2554 | *) ac_try_echo=$ac_try;; | |
2555 | esac | |
2556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2557 | (eval "$ac_compile") 2>conftest.er1 | |
25697a35 | 2558 | ac_status=$? |
0743911c FM |
2559 | grep -v '^ *+' conftest.er1 >conftest.err |
2560 | rm -f conftest.er1 | |
2561 | cat conftest.err >&5 | |
25697a35 | 2562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
2563 | (exit $ac_status); } && { |
2564 | test -z "$ac_c_werror_flag" || | |
2565 | test ! -s conftest.err | |
2566 | } && test -s conftest.$ac_objext; then | |
2567 | : | |
2568 | else | |
2569 | echo "$as_me: failed program was:" >&5 | |
2570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2571 | ||
2572 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2573 | CFLAGS="-g" | |
2574 | cat >conftest.$ac_ext <<_ACEOF | |
2575 | /* confdefs.h. */ | |
2576 | _ACEOF | |
2577 | cat confdefs.h >>conftest.$ac_ext | |
2578 | cat >>conftest.$ac_ext <<_ACEOF | |
2579 | /* end confdefs.h. */ | |
2580 | ||
2581 | int | |
2582 | main () | |
2583 | { | |
2584 | ||
2585 | ; | |
2586 | return 0; | |
2587 | } | |
2588 | _ACEOF | |
2589 | rm -f conftest.$ac_objext | |
2590 | if { (ac_try="$ac_compile" | |
2591 | case "(($ac_try" in | |
2592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2593 | *) ac_try_echo=$ac_try;; | |
2594 | esac | |
2595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2596 | (eval "$ac_compile") 2>conftest.er1 | |
25697a35 | 2597 | ac_status=$? |
0743911c FM |
2598 | grep -v '^ *+' conftest.er1 >conftest.err |
2599 | rm -f conftest.er1 | |
2600 | cat conftest.err >&5 | |
25697a35 | 2601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
2602 | (exit $ac_status); } && { |
2603 | test -z "$ac_c_werror_flag" || | |
2604 | test ! -s conftest.err | |
2605 | } && test -s conftest.$ac_objext; then | |
25697a35 GS |
2606 | ac_cv_prog_cc_g=yes |
2607 | else | |
2608 | echo "$as_me: failed program was:" >&5 | |
2609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2610 | ||
0743911c | 2611 | |
25697a35 | 2612 | fi |
0743911c FM |
2613 | |
2614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2615 | fi | |
2616 | ||
2617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2618 | fi | |
2619 | ||
2620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2621 | ac_c_werror_flag=$ac_save_c_werror_flag | |
25697a35 | 2622 | fi |
0743911c FM |
2623 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2624 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
25697a35 GS |
2625 | if test "$ac_test_CFLAGS" = set; then |
2626 | CFLAGS=$ac_save_CFLAGS | |
2627 | elif test $ac_cv_prog_cc_g = yes; then | |
2628 | if test "$GCC" = yes; then | |
2629 | CFLAGS="-g -O2" | |
2630 | else | |
2631 | CFLAGS="-g" | |
2632 | fi | |
2633 | else | |
2634 | if test "$GCC" = yes; then | |
2635 | CFLAGS="-O2" | |
2636 | else | |
2637 | CFLAGS= | |
2638 | fi | |
2639 | fi | |
0743911c FM |
2640 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2641 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2642 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
25697a35 GS |
2643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2644 | else | |
0743911c | 2645 | ac_cv_prog_cc_c89=no |
25697a35 GS |
2646 | ac_save_CC=$CC |
2647 | cat >conftest.$ac_ext <<_ACEOF | |
2648 | /* confdefs.h. */ | |
2649 | _ACEOF | |
2650 | cat confdefs.h >>conftest.$ac_ext | |
2651 | cat >>conftest.$ac_ext <<_ACEOF | |
2652 | /* end confdefs.h. */ | |
2653 | #include <stdarg.h> | |
2654 | #include <stdio.h> | |
2655 | #include <sys/types.h> | |
2656 | #include <sys/stat.h> | |
2657 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2658 | struct buf { int x; }; | |
2659 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2660 | static char *e (p, i) | |
2661 | char **p; | |
2662 | int i; | |
2663 | { | |
2664 | return p[i]; | |
2665 | } | |
2666 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2667 | { | |
2668 | char *s; | |
2669 | va_list v; | |
2670 | va_start (v,p); | |
2671 | s = g (p, va_arg (v,int)); | |
2672 | va_end (v); | |
2673 | return s; | |
2674 | } | |
2675 | ||
2676 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2677 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2678 | These don't provoke an error unfortunately, instead are silently treated | |
0743911c | 2679 | as 'x'. The following induces an error, until -std is added to get |
25697a35 GS |
2680 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2681 | array size at least. It's necessary to write '\x00'==0 to get something | |
0743911c | 2682 | that's true only with -std. */ |
25697a35 GS |
2683 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2684 | ||
0743911c FM |
2685 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2686 | inside strings and character constants. */ | |
2687 | #define FOO(x) 'x' | |
2688 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2689 | ||
25697a35 GS |
2690 | int test (int i, double x); |
2691 | struct s1 {int (*f) (int a);}; | |
2692 | struct s2 {int (*f) (double a);}; | |
2693 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2694 | int argc; | |
2695 | char **argv; | |
2696 | int | |
2697 | main () | |
2698 | { | |
2699 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2700 | ; | |
2701 | return 0; | |
2702 | } | |
2703 | _ACEOF | |
0743911c FM |
2704 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2705 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
25697a35 GS |
2706 | do |
2707 | CC="$ac_save_CC $ac_arg" | |
2708 | rm -f conftest.$ac_objext | |
0743911c FM |
2709 | if { (ac_try="$ac_compile" |
2710 | case "(($ac_try" in | |
2711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2712 | *) ac_try_echo=$ac_try;; | |
2713 | esac | |
2714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2715 | (eval "$ac_compile") 2>conftest.er1 | |
25697a35 GS |
2716 | ac_status=$? |
2717 | grep -v '^ *+' conftest.er1 >conftest.err | |
2718 | rm -f conftest.er1 | |
2719 | cat conftest.err >&5 | |
2720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
2721 | (exit $ac_status); } && { |
2722 | test -z "$ac_c_werror_flag" || | |
2723 | test ! -s conftest.err | |
2724 | } && test -s conftest.$ac_objext; then | |
2725 | ac_cv_prog_cc_c89=$ac_arg | |
25697a35 GS |
2726 | else |
2727 | echo "$as_me: failed program was:" >&5 | |
2728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2729 | ||
0743911c | 2730 | |
25697a35 | 2731 | fi |
0743911c FM |
2732 | |
2733 | rm -f core conftest.err conftest.$ac_objext | |
2734 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
25697a35 | 2735 | done |
0743911c | 2736 | rm -f conftest.$ac_ext |
25697a35 GS |
2737 | CC=$ac_save_CC |
2738 | ||
2739 | fi | |
0743911c FM |
2740 | # AC_CACHE_VAL |
2741 | case "x$ac_cv_prog_cc_c89" in | |
2742 | x) | |
2743 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
2744 | echo "${ECHO_T}none needed" >&6; } ;; | |
2745 | xno) | |
2746 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
2747 | echo "${ECHO_T}unsupported" >&6; } ;; | |
25697a35 | 2748 | *) |
0743911c FM |
2749 | CC="$CC $ac_cv_prog_cc_c89" |
2750 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
2751 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
25697a35 GS |
2752 | esac |
2753 | ||
25697a35 | 2754 | |
25697a35 GS |
2755 | ac_ext=c |
2756 | ac_cpp='$CPP $CPPFLAGS' | |
2757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2760 | ;; | |
2761 | esac | |
2762 | ||
2763 | if test "${CC}" = "cc" ; then | |
c1b9eca2 | 2764 | CFLAGS="${CFLAGS} -Wall -g -O2 -Aa -Werror=implicit-function-declaration" |
25697a35 | 2765 | else |
32e71fa4 | 2766 | CFLAGS="${CFLAGS} -Wall -Werror=implicit-function-declaration" |
25697a35 GS |
2767 | fi |
2768 | ||
2769 | case "$host" in | |
2770 | *-solaris*) | |
2771 | LDFLAGS="${LDFLAGS} -lsocket -lnsl" | |
2772 | CFLAGS="-DSOLARIS ${CFLAGS}" | |
2773 | ;; | |
2774 | esac | |
2775 | ||
2776 | #dnl Checks for programs. | |
2777 | #AC_PROG_CC | |
2778 | ||
2779 | ||
2780 | ||
2781 | ||
2782 | ||
2783 | ||
2784 | ||
2785 | ac_header_dirent=no | |
2786 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
2787 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
0743911c FM |
2788 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
2789 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | |
2790 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
25697a35 GS |
2791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2792 | else | |
2793 | cat >conftest.$ac_ext <<_ACEOF | |
2794 | /* confdefs.h. */ | |
2795 | _ACEOF | |
2796 | cat confdefs.h >>conftest.$ac_ext | |
2797 | cat >>conftest.$ac_ext <<_ACEOF | |
2798 | /* end confdefs.h. */ | |
2799 | #include <sys/types.h> | |
2800 | #include <$ac_hdr> | |
2801 | ||
2802 | int | |
2803 | main () | |
2804 | { | |
2805 | if ((DIR *) 0) | |
2806 | return 0; | |
2807 | ; | |
2808 | return 0; | |
2809 | } | |
2810 | _ACEOF | |
2811 | rm -f conftest.$ac_objext | |
0743911c FM |
2812 | if { (ac_try="$ac_compile" |
2813 | case "(($ac_try" in | |
2814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2815 | *) ac_try_echo=$ac_try;; | |
2816 | esac | |
2817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2818 | (eval "$ac_compile") 2>conftest.er1 | |
25697a35 GS |
2819 | ac_status=$? |
2820 | grep -v '^ *+' conftest.er1 >conftest.err | |
2821 | rm -f conftest.er1 | |
2822 | cat conftest.err >&5 | |
2823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
2824 | (exit $ac_status); } && { |
2825 | test -z "$ac_c_werror_flag" || | |
2826 | test ! -s conftest.err | |
2827 | } && test -s conftest.$ac_objext; then | |
25697a35 GS |
2828 | eval "$as_ac_Header=yes" |
2829 | else | |
2830 | echo "$as_me: failed program was:" >&5 | |
2831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2832 | ||
0743911c | 2833 | eval "$as_ac_Header=no" |
25697a35 | 2834 | fi |
0743911c FM |
2835 | |
2836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25697a35 | 2837 | fi |
0743911c FM |
2838 | ac_res=`eval echo '${'$as_ac_Header'}'` |
2839 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
2840 | echo "${ECHO_T}$ac_res" >&6; } | |
25697a35 GS |
2841 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
2842 | cat >>confdefs.h <<_ACEOF | |
2843 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
2844 | _ACEOF | |
2845 | ||
2846 | ac_header_dirent=$ac_hdr; break | |
2847 | fi | |
2848 | ||
2849 | done | |
2850 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
2851 | if test $ac_header_dirent = dirent.h; then | |
0743911c FM |
2852 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
2853 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
25697a35 GS |
2854 | if test "${ac_cv_search_opendir+set}" = set; then |
2855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2856 | else | |
2857 | ac_func_search_save_LIBS=$LIBS | |
25697a35 GS |
2858 | cat >conftest.$ac_ext <<_ACEOF |
2859 | /* confdefs.h. */ | |
2860 | _ACEOF | |
2861 | cat confdefs.h >>conftest.$ac_ext | |
2862 | cat >>conftest.$ac_ext <<_ACEOF | |
2863 | /* end confdefs.h. */ | |
2864 | ||
0743911c FM |
2865 | /* Override any GCC internal prototype to avoid an error. |
2866 | Use char because int might match the return type of a GCC | |
2867 | builtin and then its argument prototype would still apply. */ | |
25697a35 GS |
2868 | #ifdef __cplusplus |
2869 | extern "C" | |
2870 | #endif | |
25697a35 GS |
2871 | char opendir (); |
2872 | int | |
2873 | main () | |
2874 | { | |
0743911c | 2875 | return opendir (); |
25697a35 GS |
2876 | ; |
2877 | return 0; | |
2878 | } | |
2879 | _ACEOF | |
0743911c FM |
2880 | for ac_lib in '' dir; do |
2881 | if test -z "$ac_lib"; then | |
2882 | ac_res="none required" | |
2883 | else | |
2884 | ac_res=-l$ac_lib | |
2885 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2886 | fi | |
2887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2888 | if { (ac_try="$ac_link" | |
2889 | case "(($ac_try" in | |
2890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2891 | *) ac_try_echo=$ac_try;; | |
2892 | esac | |
2893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2894 | (eval "$ac_link") 2>conftest.er1 | |
25697a35 GS |
2895 | ac_status=$? |
2896 | grep -v '^ *+' conftest.er1 >conftest.err | |
2897 | rm -f conftest.er1 | |
2898 | cat conftest.err >&5 | |
2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
2900 | (exit $ac_status); } && { |
2901 | test -z "$ac_c_werror_flag" || | |
2902 | test ! -s conftest.err | |
2903 | } && test -s conftest$ac_exeext && | |
2904 | $as_test_x conftest$ac_exeext; then | |
2905 | ac_cv_search_opendir=$ac_res | |
25697a35 GS |
2906 | else |
2907 | echo "$as_me: failed program was:" >&5 | |
2908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2909 | ||
25697a35 | 2910 | |
0743911c | 2911 | fi |
25697a35 | 2912 | |
0743911c FM |
2913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
2914 | conftest$ac_exeext | |
2915 | if test "${ac_cv_search_opendir+set}" = set; then | |
2916 | break | |
25697a35 | 2917 | fi |
0743911c FM |
2918 | done |
2919 | if test "${ac_cv_search_opendir+set}" = set; then | |
2920 | : | |
2921 | else | |
2922 | ac_cv_search_opendir=no | |
25697a35 | 2923 | fi |
0743911c | 2924 | rm conftest.$ac_ext |
25697a35 GS |
2925 | LIBS=$ac_func_search_save_LIBS |
2926 | fi | |
0743911c FM |
2927 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
2928 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
2929 | ac_res=$ac_cv_search_opendir | |
2930 | if test "$ac_res" != no; then | |
2931 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
25697a35 GS |
2932 | |
2933 | fi | |
2934 | ||
2935 | else | |
0743911c FM |
2936 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
2937 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
25697a35 GS |
2938 | if test "${ac_cv_search_opendir+set}" = set; then |
2939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2940 | else | |
2941 | ac_func_search_save_LIBS=$LIBS | |
25697a35 GS |
2942 | cat >conftest.$ac_ext <<_ACEOF |
2943 | /* confdefs.h. */ | |
2944 | _ACEOF | |
2945 | cat confdefs.h >>conftest.$ac_ext | |
2946 | cat >>conftest.$ac_ext <<_ACEOF | |
2947 | /* end confdefs.h. */ | |
2948 | ||
0743911c FM |
2949 | /* Override any GCC internal prototype to avoid an error. |
2950 | Use char because int might match the return type of a GCC | |
2951 | builtin and then its argument prototype would still apply. */ | |
25697a35 GS |
2952 | #ifdef __cplusplus |
2953 | extern "C" | |
2954 | #endif | |
25697a35 GS |
2955 | char opendir (); |
2956 | int | |
2957 | main () | |
2958 | { | |
0743911c | 2959 | return opendir (); |
25697a35 GS |
2960 | ; |
2961 | return 0; | |
2962 | } | |
2963 | _ACEOF | |
0743911c FM |
2964 | for ac_lib in '' x; do |
2965 | if test -z "$ac_lib"; then | |
2966 | ac_res="none required" | |
2967 | else | |
2968 | ac_res=-l$ac_lib | |
2969 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2970 | fi | |
2971 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2972 | if { (ac_try="$ac_link" | |
2973 | case "(($ac_try" in | |
2974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2975 | *) ac_try_echo=$ac_try;; | |
2976 | esac | |
2977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2978 | (eval "$ac_link") 2>conftest.er1 | |
25697a35 GS |
2979 | ac_status=$? |
2980 | grep -v '^ *+' conftest.er1 >conftest.err | |
2981 | rm -f conftest.er1 | |
2982 | cat conftest.err >&5 | |
2983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
2984 | (exit $ac_status); } && { |
2985 | test -z "$ac_c_werror_flag" || | |
2986 | test ! -s conftest.err | |
2987 | } && test -s conftest$ac_exeext && | |
2988 | $as_test_x conftest$ac_exeext; then | |
2989 | ac_cv_search_opendir=$ac_res | |
25697a35 GS |
2990 | else |
2991 | echo "$as_me: failed program was:" >&5 | |
2992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2993 | ||
25697a35 | 2994 | |
0743911c | 2995 | fi |
25697a35 | 2996 | |
0743911c FM |
2997 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
2998 | conftest$ac_exeext | |
2999 | if test "${ac_cv_search_opendir+set}" = set; then | |
3000 | break | |
25697a35 | 3001 | fi |
0743911c FM |
3002 | done |
3003 | if test "${ac_cv_search_opendir+set}" = set; then | |
3004 | : | |
3005 | else | |
3006 | ac_cv_search_opendir=no | |
25697a35 | 3007 | fi |
0743911c | 3008 | rm conftest.$ac_ext |
25697a35 GS |
3009 | LIBS=$ac_func_search_save_LIBS |
3010 | fi | |
0743911c FM |
3011 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3012 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
3013 | ac_res=$ac_cv_search_opendir | |
3014 | if test "$ac_res" != no; then | |
3015 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
25697a35 GS |
3016 | |
3017 | fi | |
3018 | ||
3019 | fi | |
3020 | ||
3021 | ac_ext=c | |
3022 | ac_cpp='$CPP $CPPFLAGS' | |
3023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
0743911c FM |
3026 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3027 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
25697a35 GS |
3028 | # On Suns, sometimes $CPP names a directory. |
3029 | if test -n "$CPP" && test -d "$CPP"; then | |
3030 | CPP= | |
3031 | fi | |
3032 | if test -z "$CPP"; then | |
3033 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3035 | else | |
3036 | # Double quotes because CPP needs to be expanded | |
3037 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3038 | do | |
3039 | ac_preproc_ok=false | |
3040 | for ac_c_preproc_warn_flag in '' yes | |
3041 | do | |
3042 | # Use a header file that comes with gcc, so configuring glibc | |
3043 | # with a fresh cross-compiler works. | |
3044 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3045 | # <limits.h> exists even on freestanding compilers. | |
3046 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3047 | # not just through cpp. "Syntax error" is here to catch this case. | |
3048 | cat >conftest.$ac_ext <<_ACEOF | |
3049 | /* confdefs.h. */ | |
3050 | _ACEOF | |
3051 | cat confdefs.h >>conftest.$ac_ext | |
3052 | cat >>conftest.$ac_ext <<_ACEOF | |
3053 | /* end confdefs.h. */ | |
3054 | #ifdef __STDC__ | |
3055 | # include <limits.h> | |
3056 | #else | |
3057 | # include <assert.h> | |
3058 | #endif | |
3059 | Syntax error | |
3060 | _ACEOF | |
0743911c FM |
3061 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3062 | case "(($ac_try" in | |
3063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3064 | *) ac_try_echo=$ac_try;; | |
3065 | esac | |
3066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3067 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
25697a35 GS |
3068 | ac_status=$? |
3069 | grep -v '^ *+' conftest.er1 >conftest.err | |
3070 | rm -f conftest.er1 | |
3071 | cat conftest.err >&5 | |
3072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
3073 | (exit $ac_status); } >/dev/null && { |
3074 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3075 | test ! -s conftest.err | |
3076 | }; then | |
25697a35 GS |
3077 | : |
3078 | else | |
3079 | echo "$as_me: failed program was:" >&5 | |
3080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3081 | ||
3082 | # Broken: fails on valid input. | |
3083 | continue | |
3084 | fi | |
0743911c | 3085 | |
25697a35 GS |
3086 | rm -f conftest.err conftest.$ac_ext |
3087 | ||
0743911c | 3088 | # OK, works on sane cases. Now check whether nonexistent headers |
25697a35 GS |
3089 | # can be detected and how. |
3090 | cat >conftest.$ac_ext <<_ACEOF | |
3091 | /* confdefs.h. */ | |
3092 | _ACEOF | |
3093 | cat confdefs.h >>conftest.$ac_ext | |
3094 | cat >>conftest.$ac_ext <<_ACEOF | |
3095 | /* end confdefs.h. */ | |
3096 | #include <ac_nonexistent.h> | |
3097 | _ACEOF | |
0743911c FM |
3098 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3099 | case "(($ac_try" in | |
3100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3101 | *) ac_try_echo=$ac_try;; | |
3102 | esac | |
3103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3104 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
25697a35 GS |
3105 | ac_status=$? |
3106 | grep -v '^ *+' conftest.er1 >conftest.err | |
3107 | rm -f conftest.er1 | |
3108 | cat conftest.err >&5 | |
3109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
3110 | (exit $ac_status); } >/dev/null && { |
3111 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3112 | test ! -s conftest.err | |
3113 | }; then | |
25697a35 GS |
3114 | # Broken: success on invalid input. |
3115 | continue | |
3116 | else | |
3117 | echo "$as_me: failed program was:" >&5 | |
3118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3119 | ||
3120 | # Passes both tests. | |
3121 | ac_preproc_ok=: | |
3122 | break | |
3123 | fi | |
0743911c | 3124 | |
25697a35 GS |
3125 | rm -f conftest.err conftest.$ac_ext |
3126 | ||
3127 | done | |
3128 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3129 | rm -f conftest.err conftest.$ac_ext | |
3130 | if $ac_preproc_ok; then | |
3131 | break | |
3132 | fi | |
3133 | ||
3134 | done | |
3135 | ac_cv_prog_CPP=$CPP | |
3136 | ||
3137 | fi | |
3138 | CPP=$ac_cv_prog_CPP | |
3139 | else | |
3140 | ac_cv_prog_CPP=$CPP | |
3141 | fi | |
0743911c FM |
3142 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3143 | echo "${ECHO_T}$CPP" >&6; } | |
25697a35 GS |
3144 | ac_preproc_ok=false |
3145 | for ac_c_preproc_warn_flag in '' yes | |
3146 | do | |
3147 | # Use a header file that comes with gcc, so configuring glibc | |
3148 | # with a fresh cross-compiler works. | |
3149 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3150 | # <limits.h> exists even on freestanding compilers. | |
3151 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3152 | # not just through cpp. "Syntax error" is here to catch this case. | |
3153 | cat >conftest.$ac_ext <<_ACEOF | |
3154 | /* confdefs.h. */ | |
3155 | _ACEOF | |
3156 | cat confdefs.h >>conftest.$ac_ext | |
3157 | cat >>conftest.$ac_ext <<_ACEOF | |
3158 | /* end confdefs.h. */ | |
3159 | #ifdef __STDC__ | |
3160 | # include <limits.h> | |
3161 | #else | |
3162 | # include <assert.h> | |
3163 | #endif | |
3164 | Syntax error | |
3165 | _ACEOF | |
0743911c FM |
3166 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3167 | case "(($ac_try" in | |
3168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3169 | *) ac_try_echo=$ac_try;; | |
3170 | esac | |
3171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3172 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
25697a35 GS |
3173 | ac_status=$? |
3174 | grep -v '^ *+' conftest.er1 >conftest.err | |
3175 | rm -f conftest.er1 | |
3176 | cat conftest.err >&5 | |
3177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
3178 | (exit $ac_status); } >/dev/null && { |
3179 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3180 | test ! -s conftest.err | |
3181 | }; then | |
25697a35 GS |
3182 | : |
3183 | else | |
3184 | echo "$as_me: failed program was:" >&5 | |
3185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3186 | ||
3187 | # Broken: fails on valid input. | |
3188 | continue | |
3189 | fi | |
0743911c | 3190 | |
25697a35 GS |
3191 | rm -f conftest.err conftest.$ac_ext |
3192 | ||
0743911c | 3193 | # OK, works on sane cases. Now check whether nonexistent headers |
25697a35 GS |
3194 | # can be detected and how. |
3195 | cat >conftest.$ac_ext <<_ACEOF | |
3196 | /* confdefs.h. */ | |
3197 | _ACEOF | |
3198 | cat confdefs.h >>conftest.$ac_ext | |
3199 | cat >>conftest.$ac_ext <<_ACEOF | |
3200 | /* end confdefs.h. */ | |
3201 | #include <ac_nonexistent.h> | |
3202 | _ACEOF | |
0743911c FM |
3203 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3204 | case "(($ac_try" in | |
3205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3206 | *) ac_try_echo=$ac_try;; | |
3207 | esac | |
3208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3209 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
25697a35 GS |
3210 | ac_status=$? |
3211 | grep -v '^ *+' conftest.er1 >conftest.err | |
3212 | rm -f conftest.er1 | |
3213 | cat conftest.err >&5 | |
3214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
3215 | (exit $ac_status); } >/dev/null && { |
3216 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3217 | test ! -s conftest.err | |
3218 | }; then | |
25697a35 GS |
3219 | # Broken: success on invalid input. |
3220 | continue | |
3221 | else | |
3222 | echo "$as_me: failed program was:" >&5 | |
3223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3224 | ||
3225 | # Passes both tests. | |
3226 | ac_preproc_ok=: | |
3227 | break | |
3228 | fi | |
0743911c | 3229 | |
25697a35 GS |
3230 | rm -f conftest.err conftest.$ac_ext |
3231 | ||
3232 | done | |
3233 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3234 | rm -f conftest.err conftest.$ac_ext | |
3235 | if $ac_preproc_ok; then | |
3236 | : | |
3237 | else | |
3238 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3239 | See \`config.log' for more details." >&5 | |
3240 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3241 | See \`config.log' for more details." >&2;} | |
3242 | { (exit 1); exit 1; }; } | |
3243 | fi | |
3244 | ||
3245 | ac_ext=c | |
3246 | ac_cpp='$CPP $CPPFLAGS' | |
3247 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3248 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3249 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3250 | ||
3251 | ||
0743911c FM |
3252 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3253 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3254 | if test "${ac_cv_path_GREP+set}" = set; then | |
3255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3256 | else | |
3257 | # Extract the first word of "grep ggrep" to use in msg output | |
3258 | if test -z "$GREP"; then | |
3259 | set dummy grep ggrep; ac_prog_name=$2 | |
3260 | if test "${ac_cv_path_GREP+set}" = set; then | |
3261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3262 | else | |
3263 | ac_path_GREP_found=false | |
3264 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3266 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3267 | do | |
3268 | IFS=$as_save_IFS | |
3269 | test -z "$as_dir" && as_dir=. | |
3270 | for ac_prog in grep ggrep; do | |
3271 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3272 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3273 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3274 | # Check for GNU ac_path_GREP and select it if it is found. | |
3275 | # Check for GNU $ac_path_GREP | |
3276 | case `"$ac_path_GREP" --version 2>&1` in | |
3277 | *GNU*) | |
3278 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3279 | *) | |
3280 | ac_count=0 | |
3281 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3282 | while : | |
3283 | do | |
3284 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3285 | mv "conftest.tmp" "conftest.in" | |
3286 | cp "conftest.in" "conftest.nl" | |
3287 | echo 'GREP' >> "conftest.nl" | |
3288 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3289 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3290 | ac_count=`expr $ac_count + 1` | |
3291 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3292 | # Best one so far, save it but keep looking for a better one | |
3293 | ac_cv_path_GREP="$ac_path_GREP" | |
3294 | ac_path_GREP_max=$ac_count | |
3295 | fi | |
3296 | # 10*(2^10) chars as input seems more than enough | |
3297 | test $ac_count -gt 10 && break | |
3298 | done | |
3299 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3300 | esac | |
3301 | ||
3302 | ||
3303 | $ac_path_GREP_found && break 3 | |
3304 | done | |
3305 | done | |
3306 | ||
3307 | done | |
3308 | IFS=$as_save_IFS | |
3309 | ||
3310 | ||
3311 | fi | |
3312 | ||
3313 | GREP="$ac_cv_path_GREP" | |
3314 | if test -z "$GREP"; then | |
3315 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3316 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3317 | { (exit 1); exit 1; }; } | |
3318 | fi | |
3319 | ||
3320 | else | |
3321 | ac_cv_path_GREP=$GREP | |
3322 | fi | |
3323 | ||
3324 | ||
3325 | fi | |
3326 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3327 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3328 | GREP="$ac_cv_path_GREP" | |
3329 | ||
3330 | ||
3331 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3332 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3333 | if test "${ac_cv_path_EGREP+set}" = set; then | |
25697a35 GS |
3334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3335 | else | |
0743911c FM |
3336 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3337 | then ac_cv_path_EGREP="$GREP -E" | |
3338 | else | |
3339 | # Extract the first word of "egrep" to use in msg output | |
3340 | if test -z "$EGREP"; then | |
3341 | set dummy egrep; ac_prog_name=$2 | |
3342 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3344 | else | |
3345 | ac_path_EGREP_found=false | |
3346 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3348 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3349 | do | |
3350 | IFS=$as_save_IFS | |
3351 | test -z "$as_dir" && as_dir=. | |
3352 | for ac_prog in egrep; do | |
3353 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3354 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3355 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3356 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3357 | # Check for GNU $ac_path_EGREP | |
3358 | case `"$ac_path_EGREP" --version 2>&1` in | |
3359 | *GNU*) | |
3360 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3361 | *) | |
3362 | ac_count=0 | |
3363 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3364 | while : | |
3365 | do | |
3366 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3367 | mv "conftest.tmp" "conftest.in" | |
3368 | cp "conftest.in" "conftest.nl" | |
3369 | echo 'EGREP' >> "conftest.nl" | |
3370 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3371 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3372 | ac_count=`expr $ac_count + 1` | |
3373 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3374 | # Best one so far, save it but keep looking for a better one | |
3375 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3376 | ac_path_EGREP_max=$ac_count | |
25697a35 | 3377 | fi |
0743911c FM |
3378 | # 10*(2^10) chars as input seems more than enough |
3379 | test $ac_count -gt 10 && break | |
3380 | done | |
3381 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3382 | esac | |
3383 | ||
3384 | ||
3385 | $ac_path_EGREP_found && break 3 | |
3386 | done | |
3387 | done | |
3388 | ||
3389 | done | |
3390 | IFS=$as_save_IFS | |
3391 | ||
3392 | ||
3393 | fi | |
3394 | ||
3395 | EGREP="$ac_cv_path_EGREP" | |
3396 | if test -z "$EGREP"; then | |
3397 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3398 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3399 | { (exit 1); exit 1; }; } | |
3400 | fi | |
3401 | ||
3402 | else | |
3403 | ac_cv_path_EGREP=$EGREP | |
3404 | fi | |
3405 | ||
3406 | ||
3407 | fi | |
25697a35 | 3408 | fi |
0743911c FM |
3409 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3410 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3411 | EGREP="$ac_cv_path_EGREP" | |
25697a35 GS |
3412 | |
3413 | ||
0743911c FM |
3414 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3415 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
25697a35 GS |
3416 | if test "${ac_cv_header_stdc+set}" = set; then |
3417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3418 | else | |
3419 | cat >conftest.$ac_ext <<_ACEOF | |
3420 | /* confdefs.h. */ | |
3421 | _ACEOF | |
3422 | cat confdefs.h >>conftest.$ac_ext | |
3423 | cat >>conftest.$ac_ext <<_ACEOF | |
3424 | /* end confdefs.h. */ | |
3425 | #include <stdlib.h> | |
3426 | #include <stdarg.h> | |
3427 | #include <string.h> | |
3428 | #include <float.h> | |
3429 | ||
3430 | int | |
3431 | main () | |
3432 | { | |
3433 | ||
3434 | ; | |
3435 | return 0; | |
3436 | } | |
3437 | _ACEOF | |
3438 | rm -f conftest.$ac_objext | |
0743911c FM |
3439 | if { (ac_try="$ac_compile" |
3440 | case "(($ac_try" in | |
3441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3442 | *) ac_try_echo=$ac_try;; | |
3443 | esac | |
3444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3445 | (eval "$ac_compile") 2>conftest.er1 | |
25697a35 GS |
3446 | ac_status=$? |
3447 | grep -v '^ *+' conftest.er1 >conftest.err | |
3448 | rm -f conftest.er1 | |
3449 | cat conftest.err >&5 | |
3450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
3451 | (exit $ac_status); } && { |
3452 | test -z "$ac_c_werror_flag" || | |
3453 | test ! -s conftest.err | |
3454 | } && test -s conftest.$ac_objext; then | |
25697a35 GS |
3455 | ac_cv_header_stdc=yes |
3456 | else | |
3457 | echo "$as_me: failed program was:" >&5 | |
3458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3459 | ||
0743911c | 3460 | ac_cv_header_stdc=no |
25697a35 | 3461 | fi |
0743911c FM |
3462 | |
3463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25697a35 GS |
3464 | |
3465 | if test $ac_cv_header_stdc = yes; then | |
3466 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3467 | cat >conftest.$ac_ext <<_ACEOF | |
3468 | /* confdefs.h. */ | |
3469 | _ACEOF | |
3470 | cat confdefs.h >>conftest.$ac_ext | |
3471 | cat >>conftest.$ac_ext <<_ACEOF | |
3472 | /* end confdefs.h. */ | |
3473 | #include <string.h> | |
3474 | ||
3475 | _ACEOF | |
3476 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3477 | $EGREP "memchr" >/dev/null 2>&1; then | |
3478 | : | |
3479 | else | |
3480 | ac_cv_header_stdc=no | |
3481 | fi | |
3482 | rm -f conftest* | |
3483 | ||
3484 | fi | |
3485 | ||
3486 | if test $ac_cv_header_stdc = yes; then | |
3487 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3488 | cat >conftest.$ac_ext <<_ACEOF | |
3489 | /* confdefs.h. */ | |
3490 | _ACEOF | |
3491 | cat confdefs.h >>conftest.$ac_ext | |
3492 | cat >>conftest.$ac_ext <<_ACEOF | |
3493 | /* end confdefs.h. */ | |
3494 | #include <stdlib.h> | |
3495 | ||
3496 | _ACEOF | |
3497 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3498 | $EGREP "free" >/dev/null 2>&1; then | |
3499 | : | |
3500 | else | |
3501 | ac_cv_header_stdc=no | |
3502 | fi | |
3503 | rm -f conftest* | |
3504 | ||
3505 | fi | |
3506 | ||
3507 | if test $ac_cv_header_stdc = yes; then | |
3508 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3509 | if test "$cross_compiling" = yes; then | |
3510 | : | |
3511 | else | |
3512 | cat >conftest.$ac_ext <<_ACEOF | |
3513 | /* confdefs.h. */ | |
3514 | _ACEOF | |
3515 | cat confdefs.h >>conftest.$ac_ext | |
3516 | cat >>conftest.$ac_ext <<_ACEOF | |
3517 | /* end confdefs.h. */ | |
3518 | #include <ctype.h> | |
0743911c | 3519 | #include <stdlib.h> |
25697a35 GS |
3520 | #if ((' ' & 0x0FF) == 0x020) |
3521 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3522 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3523 | #else | |
3524 | # define ISLOWER(c) \ | |
3525 | (('a' <= (c) && (c) <= 'i') \ | |
3526 | || ('j' <= (c) && (c) <= 'r') \ | |
3527 | || ('s' <= (c) && (c) <= 'z')) | |
3528 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3529 | #endif | |
3530 | ||
3531 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3532 | int | |
3533 | main () | |
3534 | { | |
3535 | int i; | |
3536 | for (i = 0; i < 256; i++) | |
3537 | if (XOR (islower (i), ISLOWER (i)) | |
3538 | || toupper (i) != TOUPPER (i)) | |
0743911c FM |
3539 | return 2; |
3540 | return 0; | |
25697a35 GS |
3541 | } |
3542 | _ACEOF | |
3543 | rm -f conftest$ac_exeext | |
0743911c FM |
3544 | if { (ac_try="$ac_link" |
3545 | case "(($ac_try" in | |
3546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3547 | *) ac_try_echo=$ac_try;; | |
3548 | esac | |
3549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3550 | (eval "$ac_link") 2>&5 | |
25697a35 GS |
3551 | ac_status=$? |
3552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3553 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
0743911c FM |
3554 | { (case "(($ac_try" in |
3555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3556 | *) ac_try_echo=$ac_try;; | |
3557 | esac | |
3558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3559 | (eval "$ac_try") 2>&5 | |
25697a35 GS |
3560 | ac_status=$? |
3561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3562 | (exit $ac_status); }; }; then | |
3563 | : | |
3564 | else | |
3565 | echo "$as_me: program exited with status $ac_status" >&5 | |
3566 | echo "$as_me: failed program was:" >&5 | |
3567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3568 | ||
3569 | ( exit $ac_status ) | |
3570 | ac_cv_header_stdc=no | |
3571 | fi | |
0743911c | 3572 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
25697a35 | 3573 | fi |
0743911c FM |
3574 | |
3575 | ||
25697a35 GS |
3576 | fi |
3577 | fi | |
0743911c FM |
3578 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3579 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
25697a35 GS |
3580 | if test $ac_cv_header_stdc = yes; then |
3581 | ||
3582 | cat >>confdefs.h <<\_ACEOF | |
3583 | #define STDC_HEADERS 1 | |
3584 | _ACEOF | |
3585 | ||
3586 | fi | |
3587 | ||
3588 | ||
d6e703cc FM |
3589 | |
3590 | if test "X$prefix" = "XNONE"; then | |
3591 | acl_final_prefix="$ac_default_prefix" | |
3592 | else | |
3593 | acl_final_prefix="$prefix" | |
3594 | fi | |
3595 | if test "X$exec_prefix" = "XNONE"; then | |
3596 | acl_final_exec_prefix='${prefix}' | |
3597 | else | |
3598 | acl_final_exec_prefix="$exec_prefix" | |
3599 | fi | |
3600 | acl_save_prefix="$prefix" | |
3601 | prefix="$acl_final_prefix" | |
3602 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
3603 | prefix="$acl_save_prefix" | |
3604 | ||
3605 | ||
0743911c | 3606 | # Check whether --with-gnu-ld was given. |
d6e703cc | 3607 | if test "${with_gnu_ld+set}" = set; then |
0743911c | 3608 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d6e703cc FM |
3609 | else |
3610 | with_gnu_ld=no | |
0743911c FM |
3611 | fi |
3612 | ||
d6e703cc FM |
3613 | # Prepare PATH_SEPARATOR. |
3614 | # The user is always right. | |
3615 | if test "${PATH_SEPARATOR+set}" != set; then | |
3616 | echo "#! /bin/sh" >conf$$.sh | |
3617 | echo "exit 0" >>conf$$.sh | |
3618 | chmod +x conf$$.sh | |
3619 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3620 | PATH_SEPARATOR=';' | |
3621 | else | |
3622 | PATH_SEPARATOR=: | |
3623 | fi | |
3624 | rm -f conf$$.sh | |
3625 | fi | |
3626 | ac_prog=ld | |
3627 | if test "$GCC" = yes; then | |
3628 | # Check if gcc -print-prog-name=ld gives a path. | |
0743911c FM |
3629 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3630 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } | |
d6e703cc FM |
3631 | case $host in |
3632 | *-*-mingw*) | |
3633 | # gcc leaves a trailing carriage return which upsets mingw | |
3634 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3635 | *) | |
3636 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3637 | esac | |
3638 | case $ac_prog in | |
3639 | # Accept absolute paths. | |
3640 | [\\/]* | [A-Za-z]:[\\/]*) | |
3641 | re_direlt='/[^/][^/]*/\.\./' | |
3642 | # Canonicalize the path of ld | |
3643 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3644 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3645 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3646 | done | |
3647 | test -z "$LD" && LD="$ac_prog" | |
3648 | ;; | |
3649 | "") | |
3650 | # If it fails, then pretend we aren't using GCC. | |
3651 | ac_prog=ld | |
3652 | ;; | |
3653 | *) | |
3654 | # If it is relative, then search for the first ld in PATH. | |
3655 | with_gnu_ld=unknown | |
3656 | ;; | |
3657 | esac | |
3658 | elif test "$with_gnu_ld" = yes; then | |
0743911c FM |
3659 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3660 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
d6e703cc | 3661 | else |
0743911c FM |
3662 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3663 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
d6e703cc FM |
3664 | fi |
3665 | if test "${acl_cv_path_LD+set}" = set; then | |
3666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3667 | else | |
3668 | if test -z "$LD"; then | |
3669 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3670 | for ac_dir in $PATH; do | |
3671 | test -z "$ac_dir" && ac_dir=. | |
3672 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3673 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
3674 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3675 | # but apparently some GNU ld's only accept -v. | |
3676 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3677 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
3678 | *GNU* | *'with BFD'*) | |
3679 | test "$with_gnu_ld" != no && break ;; | |
3680 | *) | |
3681 | test "$with_gnu_ld" != yes && break ;; | |
3682 | esac | |
3683 | fi | |
3684 | done | |
3685 | IFS="$ac_save_ifs" | |
3686 | else | |
3687 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
3688 | fi | |
3689 | fi | |
3690 | ||
3691 | LD="$acl_cv_path_LD" | |
3692 | if test -n "$LD"; then | |
0743911c FM |
3693 | { echo "$as_me:$LINENO: result: $LD" >&5 |
3694 | echo "${ECHO_T}$LD" >&6; } | |
d6e703cc | 3695 | else |
0743911c FM |
3696 | { echo "$as_me:$LINENO: result: no" >&5 |
3697 | echo "${ECHO_T}no" >&6; } | |
d6e703cc FM |
3698 | fi |
3699 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3700 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3701 | { (exit 1); exit 1; }; } | |
0743911c FM |
3702 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
3703 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
d6e703cc FM |
3704 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
3705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3706 | else | |
3707 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3708 | case `$LD -v 2>&1 </dev/null` in | |
3709 | *GNU* | *'with BFD'*) | |
3710 | acl_cv_prog_gnu_ld=yes ;; | |
3711 | *) | |
3712 | acl_cv_prog_gnu_ld=no ;; | |
3713 | esac | |
3714 | fi | |
0743911c FM |
3715 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
3716 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } | |
d6e703cc FM |
3717 | with_gnu_ld=$acl_cv_prog_gnu_ld |
3718 | ||
3719 | ||
3720 | ||
0743911c FM |
3721 | |
3722 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | |
3723 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } | |
d6e703cc FM |
3724 | if test "${acl_cv_rpath+set}" = set; then |
3725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3726 | else | |
3727 | ||
3728 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
3729 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
3730 | . ./conftest.sh | |
3731 | rm -f ./conftest.sh | |
3732 | acl_cv_rpath=done | |
3733 | ||
3734 | fi | |
0743911c FM |
3735 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
3736 | echo "${ECHO_T}$acl_cv_rpath" >&6; } | |
d6e703cc | 3737 | wl="$acl_cv_wl" |
0743911c FM |
3738 | acl_libext="$acl_cv_libext" |
3739 | acl_shlibext="$acl_cv_shlibext" | |
3740 | acl_libname_spec="$acl_cv_libname_spec" | |
3741 | acl_library_names_spec="$acl_cv_library_names_spec" | |
3742 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
3743 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
3744 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
3745 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
3746 | # Check whether --enable-rpath was given. | |
d6e703cc | 3747 | if test "${enable_rpath+set}" = set; then |
0743911c | 3748 | enableval=$enable_rpath; : |
d6e703cc FM |
3749 | else |
3750 | enable_rpath=yes | |
0743911c FM |
3751 | fi |
3752 | ||
3753 | ||
3754 | ||
3755 | acl_libdirstem=lib | |
3756 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
3757 | if test -n "$searchpath"; then | |
3758 | acl_save_IFS="${IFS= }"; IFS=":" | |
3759 | for searchdir in $searchpath; do | |
3760 | if test -d "$searchdir"; then | |
3761 | case "$searchdir" in | |
3762 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
3763 | *) searchdir=`cd "$searchdir" && pwd` | |
3764 | case "$searchdir" in | |
3765 | */lib64 ) acl_libdirstem=lib64 ;; | |
3766 | esac ;; | |
3767 | esac | |
3768 | fi | |
3769 | done | |
3770 | IFS="$acl_save_IFS" | |
3771 | fi | |
3772 | ||
3773 | ||
d6e703cc FM |
3774 | |
3775 | ||
3776 | ||
3777 | ||
3778 | ||
3779 | ||
3780 | ||
3781 | use_additional=yes | |
3782 | ||
3783 | acl_save_prefix="$prefix" | |
3784 | prefix="$acl_final_prefix" | |
3785 | acl_save_exec_prefix="$exec_prefix" | |
3786 | exec_prefix="$acl_final_exec_prefix" | |
3787 | ||
3788 | eval additional_includedir=\"$includedir\" | |
3789 | eval additional_libdir=\"$libdir\" | |
3790 | ||
3791 | exec_prefix="$acl_save_exec_prefix" | |
3792 | prefix="$acl_save_prefix" | |
3793 | ||
3794 | ||
0743911c | 3795 | # Check whether --with-libiconv-prefix was given. |
d6e703cc | 3796 | if test "${with_libiconv_prefix+set}" = set; then |
0743911c | 3797 | withval=$with_libiconv_prefix; |
d6e703cc FM |
3798 | if test "X$withval" = "Xno"; then |
3799 | use_additional=no | |
3800 | else | |
3801 | if test "X$withval" = "X"; then | |
3802 | ||
3803 | acl_save_prefix="$prefix" | |
3804 | prefix="$acl_final_prefix" | |
3805 | acl_save_exec_prefix="$exec_prefix" | |
3806 | exec_prefix="$acl_final_exec_prefix" | |
3807 | ||
3808 | eval additional_includedir=\"$includedir\" | |
3809 | eval additional_libdir=\"$libdir\" | |
3810 | ||
3811 | exec_prefix="$acl_save_exec_prefix" | |
3812 | prefix="$acl_save_prefix" | |
3813 | ||
3814 | else | |
3815 | additional_includedir="$withval/include" | |
0743911c | 3816 | additional_libdir="$withval/$acl_libdirstem" |
d6e703cc FM |
3817 | fi |
3818 | fi | |
3819 | ||
0743911c FM |
3820 | fi |
3821 | ||
d6e703cc FM |
3822 | LIBICONV= |
3823 | LTLIBICONV= | |
3824 | INCICONV= | |
0743911c | 3825 | LIBICONV_PREFIX= |
d6e703cc FM |
3826 | rpathdirs= |
3827 | ltrpathdirs= | |
3828 | names_already_handled= | |
3829 | names_next_round='iconv ' | |
3830 | while test -n "$names_next_round"; do | |
3831 | names_this_round="$names_next_round" | |
3832 | names_next_round= | |
3833 | for name in $names_this_round; do | |
3834 | already_handled= | |
3835 | for n in $names_already_handled; do | |
3836 | if test "$n" = "$name"; then | |
3837 | already_handled=yes | |
3838 | break | |
3839 | fi | |
3840 | done | |
3841 | if test -z "$already_handled"; then | |
3842 | names_already_handled="$names_already_handled $name" | |
3843 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
3844 | eval value=\"\$HAVE_LIB$uppername\" | |
3845 | if test -n "$value"; then | |
3846 | if test "$value" = yes; then | |
3847 | eval value=\"\$LIB$uppername\" | |
3848 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
3849 | eval value=\"\$LTLIB$uppername\" | |
3850 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
3851 | else | |
3852 | : | |
3853 | fi | |
3854 | else | |
3855 | found_dir= | |
3856 | found_la= | |
3857 | found_so= | |
3858 | found_a= | |
0743911c FM |
3859 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
3860 | if test -n "$acl_shlibext"; then | |
3861 | shrext=".$acl_shlibext" # typically: shrext=.so | |
3862 | else | |
3863 | shrext= | |
3864 | fi | |
d6e703cc | 3865 | if test $use_additional = yes; then |
0743911c FM |
3866 | dir="$additional_libdir" |
3867 | if test -n "$acl_shlibext"; then | |
3868 | if test -f "$dir/$libname$shrext"; then | |
3869 | found_dir="$dir" | |
3870 | found_so="$dir/$libname$shrext" | |
3871 | else | |
3872 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
3873 | ver=`(cd "$dir" && \ | |
3874 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
3875 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
3876 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
3877 | | sed 1q ) 2>/dev/null` | |
3878 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
3879 | found_dir="$dir" | |
3880 | found_so="$dir/$libname$shrext.$ver" | |
3881 | fi | |
3882 | else | |
3883 | eval library_names=\"$acl_library_names_spec\" | |
3884 | for f in $library_names; do | |
3885 | if test -f "$dir/$f"; then | |
3886 | found_dir="$dir" | |
3887 | found_so="$dir/$f" | |
3888 | break | |
3889 | fi | |
3890 | done | |
d6e703cc FM |
3891 | fi |
3892 | fi | |
0743911c FM |
3893 | fi |
3894 | if test "X$found_dir" = "X"; then | |
3895 | if test -f "$dir/$libname.$acl_libext"; then | |
3896 | found_dir="$dir" | |
3897 | found_a="$dir/$libname.$acl_libext" | |
3898 | fi | |
3899 | fi | |
3900 | if test "X$found_dir" != "X"; then | |
3901 | if test -f "$dir/$libname.la"; then | |
3902 | found_la="$dir/$libname.la" | |
3903 | fi | |
d6e703cc FM |
3904 | fi |
3905 | fi | |
3906 | if test "X$found_dir" = "X"; then | |
3907 | for x in $LDFLAGS $LTLIBICONV; do | |
3908 | ||
3909 | acl_save_prefix="$prefix" | |
3910 | prefix="$acl_final_prefix" | |
3911 | acl_save_exec_prefix="$exec_prefix" | |
3912 | exec_prefix="$acl_final_exec_prefix" | |
3913 | eval x=\"$x\" | |
3914 | exec_prefix="$acl_save_exec_prefix" | |
3915 | prefix="$acl_save_prefix" | |
3916 | ||
3917 | case "$x" in | |
3918 | -L*) | |
3919 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
0743911c FM |
3920 | if test -n "$acl_shlibext"; then |
3921 | if test -f "$dir/$libname$shrext"; then | |
d6e703cc | 3922 | found_dir="$dir" |
0743911c FM |
3923 | found_so="$dir/$libname$shrext" |
3924 | else | |
3925 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
3926 | ver=`(cd "$dir" && \ | |
3927 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
3928 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
3929 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
3930 | | sed 1q ) 2>/dev/null` | |
3931 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
3932 | found_dir="$dir" | |
3933 | found_so="$dir/$libname$shrext.$ver" | |
3934 | fi | |
3935 | else | |
3936 | eval library_names=\"$acl_library_names_spec\" | |
3937 | for f in $library_names; do | |
3938 | if test -f "$dir/$f"; then | |
3939 | found_dir="$dir" | |
3940 | found_so="$dir/$f" | |
3941 | break | |
3942 | fi | |
3943 | done | |
d6e703cc FM |
3944 | fi |
3945 | fi | |
0743911c FM |
3946 | fi |
3947 | if test "X$found_dir" = "X"; then | |
3948 | if test -f "$dir/$libname.$acl_libext"; then | |
3949 | found_dir="$dir" | |
3950 | found_a="$dir/$libname.$acl_libext" | |
3951 | fi | |
3952 | fi | |
3953 | if test "X$found_dir" != "X"; then | |
3954 | if test -f "$dir/$libname.la"; then | |
3955 | found_la="$dir/$libname.la" | |
3956 | fi | |
d6e703cc FM |
3957 | fi |
3958 | ;; | |
3959 | esac | |
3960 | if test "X$found_dir" != "X"; then | |
3961 | break | |
3962 | fi | |
3963 | done | |
3964 | fi | |
3965 | if test "X$found_dir" != "X"; then | |
3966 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
3967 | if test "X$found_so" != "X"; then | |
0743911c | 3968 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then |
d6e703cc FM |
3969 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
3970 | else | |
3971 | haveit= | |
3972 | for x in $ltrpathdirs; do | |
3973 | if test "X$x" = "X$found_dir"; then | |
3974 | haveit=yes | |
3975 | break | |
3976 | fi | |
3977 | done | |
3978 | if test -z "$haveit"; then | |
3979 | ltrpathdirs="$ltrpathdirs $found_dir" | |
3980 | fi | |
0743911c | 3981 | if test "$acl_hardcode_direct" = yes; then |
d6e703cc FM |
3982 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
3983 | else | |
0743911c | 3984 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
d6e703cc FM |
3985 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
3986 | haveit= | |
3987 | for x in $rpathdirs; do | |
3988 | if test "X$x" = "X$found_dir"; then | |
3989 | haveit=yes | |
3990 | break | |
3991 | fi | |
3992 | done | |
3993 | if test -z "$haveit"; then | |
3994 | rpathdirs="$rpathdirs $found_dir" | |
3995 | fi | |
3996 | else | |
3997 | haveit= | |
3998 | for x in $LDFLAGS $LIBICONV; do | |
3999 | ||
4000 | acl_save_prefix="$prefix" | |
4001 | prefix="$acl_final_prefix" | |
4002 | acl_save_exec_prefix="$exec_prefix" | |
4003 | exec_prefix="$acl_final_exec_prefix" | |
4004 | eval x=\"$x\" | |
4005 | exec_prefix="$acl_save_exec_prefix" | |
4006 | prefix="$acl_save_prefix" | |
4007 | ||
4008 | if test "X$x" = "X-L$found_dir"; then | |
4009 | haveit=yes | |
4010 | break | |
4011 | fi | |
4012 | done | |
4013 | if test -z "$haveit"; then | |
4014 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
4015 | fi | |
0743911c | 4016 | if test "$acl_hardcode_minus_L" != no; then |
d6e703cc FM |
4017 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
4018 | else | |
4019 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
4020 | fi | |
4021 | fi | |
4022 | fi | |
4023 | fi | |
4024 | else | |
4025 | if test "X$found_a" != "X"; then | |
4026 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
4027 | else | |
4028 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
4029 | fi | |
4030 | fi | |
4031 | additional_includedir= | |
4032 | case "$found_dir" in | |
0743911c FM |
4033 | */$acl_libdirstem | */$acl_libdirstem/) |
4034 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
4035 | LIBICONV_PREFIX="$basedir" | |
d6e703cc FM |
4036 | additional_includedir="$basedir/include" |
4037 | ;; | |
4038 | esac | |
4039 | if test "X$additional_includedir" != "X"; then | |
4040 | if test "X$additional_includedir" != "X/usr/include"; then | |
4041 | haveit= | |
4042 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
4043 | if test -n "$GCC"; then | |
4044 | case $host_os in | |
0743911c | 4045 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
d6e703cc FM |
4046 | esac |
4047 | fi | |
4048 | fi | |
4049 | if test -z "$haveit"; then | |
4050 | for x in $CPPFLAGS $INCICONV; do | |
4051 | ||
4052 | acl_save_prefix="$prefix" | |
4053 | prefix="$acl_final_prefix" | |
4054 | acl_save_exec_prefix="$exec_prefix" | |
4055 | exec_prefix="$acl_final_exec_prefix" | |
4056 | eval x=\"$x\" | |
4057 | exec_prefix="$acl_save_exec_prefix" | |
4058 | prefix="$acl_save_prefix" | |
4059 | ||
4060 | if test "X$x" = "X-I$additional_includedir"; then | |
4061 | haveit=yes | |
4062 | break | |
4063 | fi | |
4064 | done | |
4065 | if test -z "$haveit"; then | |
4066 | if test -d "$additional_includedir"; then | |
4067 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
4068 | fi | |
4069 | fi | |
4070 | fi | |
4071 | fi | |
4072 | fi | |
4073 | if test -n "$found_la"; then | |
4074 | save_libdir="$libdir" | |
4075 | case "$found_la" in | |
4076 | */* | *\\*) . "$found_la" ;; | |
4077 | *) . "./$found_la" ;; | |
4078 | esac | |
4079 | libdir="$save_libdir" | |
4080 | for dep in $dependency_libs; do | |
4081 | case "$dep" in | |
4082 | -L*) | |
4083 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
0743911c | 4084 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then |
d6e703cc | 4085 | haveit= |
0743911c | 4086 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then |
d6e703cc FM |
4087 | if test -n "$GCC"; then |
4088 | case $host_os in | |
0743911c | 4089 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
d6e703cc FM |
4090 | esac |
4091 | fi | |
4092 | fi | |
4093 | if test -z "$haveit"; then | |
4094 | haveit= | |
4095 | for x in $LDFLAGS $LIBICONV; do | |
4096 | ||
4097 | acl_save_prefix="$prefix" | |
4098 | prefix="$acl_final_prefix" | |
4099 | acl_save_exec_prefix="$exec_prefix" | |
4100 | exec_prefix="$acl_final_exec_prefix" | |
4101 | eval x=\"$x\" | |
4102 | exec_prefix="$acl_save_exec_prefix" | |
4103 | prefix="$acl_save_prefix" | |
4104 | ||
4105 | if test "X$x" = "X-L$additional_libdir"; then | |
4106 | haveit=yes | |
4107 | break | |
4108 | fi | |
4109 | done | |
4110 | if test -z "$haveit"; then | |
4111 | if test -d "$additional_libdir"; then | |
4112 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
4113 | fi | |
4114 | fi | |
4115 | haveit= | |
4116 | for x in $LDFLAGS $LTLIBICONV; do | |
4117 | ||
4118 | acl_save_prefix="$prefix" | |
4119 | prefix="$acl_final_prefix" | |
4120 | acl_save_exec_prefix="$exec_prefix" | |
4121 | exec_prefix="$acl_final_exec_prefix" | |
4122 | eval x=\"$x\" | |
4123 | exec_prefix="$acl_save_exec_prefix" | |
4124 | prefix="$acl_save_prefix" | |
4125 | ||
4126 | if test "X$x" = "X-L$additional_libdir"; then | |
4127 | haveit=yes | |
4128 | break | |
4129 | fi | |
4130 | done | |
4131 | if test -z "$haveit"; then | |
4132 | if test -d "$additional_libdir"; then | |
4133 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
4134 | fi | |
4135 | fi | |
4136 | fi | |
4137 | fi | |
4138 | ;; | |
4139 | -R*) | |
4140 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
4141 | if test "$enable_rpath" != no; then | |
4142 | haveit= | |
4143 | for x in $rpathdirs; do | |
4144 | if test "X$x" = "X$dir"; then | |
4145 | haveit=yes | |
4146 | break | |
4147 | fi | |
4148 | done | |
4149 | if test -z "$haveit"; then | |
4150 | rpathdirs="$rpathdirs $dir" | |
4151 | fi | |
4152 | haveit= | |
4153 | for x in $ltrpathdirs; do | |
4154 | if test "X$x" = "X$dir"; then | |
4155 | haveit=yes | |
4156 | break | |
4157 | fi | |
4158 | done | |
4159 | if test -z "$haveit"; then | |
4160 | ltrpathdirs="$ltrpathdirs $dir" | |
4161 | fi | |
4162 | fi | |
4163 | ;; | |
4164 | -l*) | |
4165 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
4166 | ;; | |
4167 | *.la) | |
4168 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
4169 | ;; | |
4170 | *) | |
4171 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
4172 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
4173 | ;; | |
4174 | esac | |
4175 | done | |
4176 | fi | |
4177 | else | |
4178 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
4179 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
4180 | fi | |
4181 | fi | |
4182 | fi | |
4183 | done | |
4184 | done | |
4185 | if test "X$rpathdirs" != "X"; then | |
0743911c | 4186 | if test -n "$acl_hardcode_libdir_separator"; then |
d6e703cc FM |
4187 | alldirs= |
4188 | for found_dir in $rpathdirs; do | |
0743911c | 4189 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
d6e703cc FM |
4190 | done |
4191 | acl_save_libdir="$libdir" | |
4192 | libdir="$alldirs" | |
0743911c | 4193 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
d6e703cc FM |
4194 | libdir="$acl_save_libdir" |
4195 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
4196 | else | |
4197 | for found_dir in $rpathdirs; do | |
4198 | acl_save_libdir="$libdir" | |
4199 | libdir="$found_dir" | |
0743911c | 4200 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
d6e703cc FM |
4201 | libdir="$acl_save_libdir" |
4202 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
4203 | done | |
4204 | fi | |
4205 | fi | |
4206 | if test "X$ltrpathdirs" != "X"; then | |
4207 | for found_dir in $ltrpathdirs; do | |
4208 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
4209 | done | |
4210 | fi | |
4211 | ||
4212 | ||
4213 | ||
4214 | ||
4215 | ||
4216 | ||
4217 | ||
4218 | am_save_CPPFLAGS="$CPPFLAGS" | |
4219 | ||
4220 | for element in $INCICONV; do | |
4221 | haveit= | |
4222 | for x in $CPPFLAGS; do | |
4223 | ||
4224 | acl_save_prefix="$prefix" | |
4225 | prefix="$acl_final_prefix" | |
4226 | acl_save_exec_prefix="$exec_prefix" | |
4227 | exec_prefix="$acl_final_exec_prefix" | |
4228 | eval x=\"$x\" | |
4229 | exec_prefix="$acl_save_exec_prefix" | |
4230 | prefix="$acl_save_prefix" | |
4231 | ||
4232 | if test "X$x" = "X$element"; then | |
4233 | haveit=yes | |
4234 | break | |
4235 | fi | |
4236 | done | |
4237 | if test -z "$haveit"; then | |
4238 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
4239 | fi | |
4240 | done | |
4241 | ||
4242 | ||
0743911c FM |
4243 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
4244 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } | |
d6e703cc FM |
4245 | if test "${am_cv_func_iconv+set}" = set; then |
4246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4247 | else | |
4248 | ||
4249 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
4250 | am_cv_lib_iconv=no | |
4251 | cat >conftest.$ac_ext <<_ACEOF | |
4252 | /* confdefs.h. */ | |
4253 | _ACEOF | |
4254 | cat confdefs.h >>conftest.$ac_ext | |
4255 | cat >>conftest.$ac_ext <<_ACEOF | |
4256 | /* end confdefs.h. */ | |
4257 | #include <stdlib.h> | |
4258 | #include <iconv.h> | |
4259 | int | |
4260 | main () | |
4261 | { | |
4262 | iconv_t cd = iconv_open("",""); | |
4263 | iconv(cd,NULL,NULL,NULL,NULL); | |
4264 | iconv_close(cd); | |
4265 | ; | |
4266 | return 0; | |
4267 | } | |
4268 | _ACEOF | |
4269 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0743911c FM |
4270 | if { (ac_try="$ac_link" |
4271 | case "(($ac_try" in | |
4272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4273 | *) ac_try_echo=$ac_try;; | |
4274 | esac | |
4275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4276 | (eval "$ac_link") 2>conftest.er1 | |
d6e703cc FM |
4277 | ac_status=$? |
4278 | grep -v '^ *+' conftest.er1 >conftest.err | |
4279 | rm -f conftest.er1 | |
4280 | cat conftest.err >&5 | |
4281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
4282 | (exit $ac_status); } && { |
4283 | test -z "$ac_c_werror_flag" || | |
4284 | test ! -s conftest.err | |
4285 | } && test -s conftest$ac_exeext && | |
4286 | $as_test_x conftest$ac_exeext; then | |
d6e703cc FM |
4287 | am_cv_func_iconv=yes |
4288 | else | |
4289 | echo "$as_me: failed program was:" >&5 | |
4290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4291 | ||
0743911c | 4292 | |
d6e703cc | 4293 | fi |
0743911c FM |
4294 | |
4295 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
d6e703cc FM |
4296 | conftest$ac_exeext conftest.$ac_ext |
4297 | if test "$am_cv_func_iconv" != yes; then | |
4298 | am_save_LIBS="$LIBS" | |
4299 | LIBS="$LIBS $LIBICONV" | |
4300 | cat >conftest.$ac_ext <<_ACEOF | |
4301 | /* confdefs.h. */ | |
4302 | _ACEOF | |
4303 | cat confdefs.h >>conftest.$ac_ext | |
4304 | cat >>conftest.$ac_ext <<_ACEOF | |
4305 | /* end confdefs.h. */ | |
4306 | #include <stdlib.h> | |
4307 | #include <iconv.h> | |
4308 | int | |
4309 | main () | |
4310 | { | |
4311 | iconv_t cd = iconv_open("",""); | |
4312 | iconv(cd,NULL,NULL,NULL,NULL); | |
4313 | iconv_close(cd); | |
4314 | ; | |
4315 | return 0; | |
4316 | } | |
4317 | _ACEOF | |
4318 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0743911c FM |
4319 | if { (ac_try="$ac_link" |
4320 | case "(($ac_try" in | |
4321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4322 | *) ac_try_echo=$ac_try;; | |
4323 | esac | |
4324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4325 | (eval "$ac_link") 2>conftest.er1 | |
d6e703cc FM |
4326 | ac_status=$? |
4327 | grep -v '^ *+' conftest.er1 >conftest.err | |
4328 | rm -f conftest.er1 | |
4329 | cat conftest.err >&5 | |
4330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
4331 | (exit $ac_status); } && { |
4332 | test -z "$ac_c_werror_flag" || | |
4333 | test ! -s conftest.err | |
4334 | } && test -s conftest$ac_exeext && | |
4335 | $as_test_x conftest$ac_exeext; then | |
d6e703cc FM |
4336 | am_cv_lib_iconv=yes |
4337 | am_cv_func_iconv=yes | |
4338 | else | |
4339 | echo "$as_me: failed program was:" >&5 | |
4340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4341 | ||
0743911c | 4342 | |
d6e703cc | 4343 | fi |
0743911c FM |
4344 | |
4345 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
d6e703cc FM |
4346 | conftest$ac_exeext conftest.$ac_ext |
4347 | LIBS="$am_save_LIBS" | |
4348 | fi | |
4349 | ||
4350 | fi | |
0743911c FM |
4351 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
4352 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } | |
d6e703cc | 4353 | if test "$am_cv_func_iconv" = yes; then |
0743911c FM |
4354 | { echo "$as_me:$LINENO: checking for working iconv" >&5 |
4355 | echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; } | |
4356 | if test "${am_cv_func_iconv_works+set}" = set; then | |
4357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4358 | else | |
4359 | ||
4360 | am_save_LIBS="$LIBS" | |
4361 | if test $am_cv_lib_iconv = yes; then | |
4362 | LIBS="$LIBS $LIBICONV" | |
4363 | fi | |
4364 | if test "$cross_compiling" = yes; then | |
4365 | case "$host_os" in | |
4366 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
4367 | *) am_cv_func_iconv_works="guessing yes" ;; | |
4368 | esac | |
4369 | else | |
4370 | cat >conftest.$ac_ext <<_ACEOF | |
4371 | /* confdefs.h. */ | |
4372 | _ACEOF | |
4373 | cat confdefs.h >>conftest.$ac_ext | |
4374 | cat >>conftest.$ac_ext <<_ACEOF | |
4375 | /* end confdefs.h. */ | |
4376 | ||
4377 | #include <iconv.h> | |
4378 | #include <string.h> | |
4379 | int main () | |
4380 | { | |
4381 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
4382 | returns. */ | |
4383 | { | |
4384 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
4385 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
4386 | { | |
4387 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
4388 | char buf[10]; | |
4389 | const char *inptr = input; | |
4390 | size_t inbytesleft = strlen (input); | |
4391 | char *outptr = buf; | |
4392 | size_t outbytesleft = sizeof (buf); | |
4393 | size_t res = iconv (cd_utf8_to_88591, | |
4394 | (char **) &inptr, &inbytesleft, | |
4395 | &outptr, &outbytesleft); | |
4396 | if (res == 0) | |
4397 | return 1; | |
4398 | } | |
4399 | } | |
4400 | #if 0 /* This bug could be worked around by the caller. */ | |
4401 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
4402 | { | |
4403 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
4404 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
4405 | { | |
4406 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
4407 | char buf[50]; | |
4408 | const char *inptr = input; | |
4409 | size_t inbytesleft = strlen (input); | |
4410 | char *outptr = buf; | |
4411 | size_t outbytesleft = sizeof (buf); | |
4412 | size_t res = iconv (cd_88591_to_utf8, | |
4413 | (char **) &inptr, &inbytesleft, | |
4414 | &outptr, &outbytesleft); | |
4415 | if ((int)res > 0) | |
4416 | return 1; | |
4417 | } | |
4418 | } | |
4419 | #endif | |
4420 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
4421 | provided. */ | |
4422 | if (/* Try standardized names. */ | |
4423 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
4424 | /* Try IRIX, OSF/1 names. */ | |
4425 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
4426 | /* Try AIX names. */ | |
4427 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
4428 | /* Try HP-UX names. */ | |
4429 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
4430 | return 1; | |
4431 | return 0; | |
4432 | } | |
4433 | _ACEOF | |
4434 | rm -f conftest$ac_exeext | |
4435 | if { (ac_try="$ac_link" | |
4436 | case "(($ac_try" in | |
4437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4438 | *) ac_try_echo=$ac_try;; | |
4439 | esac | |
4440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4441 | (eval "$ac_link") 2>&5 | |
4442 | ac_status=$? | |
4443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4444 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4445 | { (case "(($ac_try" in | |
4446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4447 | *) ac_try_echo=$ac_try;; | |
4448 | esac | |
4449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4450 | (eval "$ac_try") 2>&5 | |
4451 | ac_status=$? | |
4452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4453 | (exit $ac_status); }; }; then | |
4454 | am_cv_func_iconv_works=yes | |
4455 | else | |
4456 | echo "$as_me: program exited with status $ac_status" >&5 | |
4457 | echo "$as_me: failed program was:" >&5 | |
4458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4459 | ||
4460 | ( exit $ac_status ) | |
4461 | am_cv_func_iconv_works=no | |
4462 | fi | |
4463 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4464 | fi | |
4465 | ||
4466 | ||
4467 | LIBS="$am_save_LIBS" | |
4468 | ||
4469 | fi | |
4470 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5 | |
4471 | echo "${ECHO_T}$am_cv_func_iconv_works" >&6; } | |
4472 | case "$am_cv_func_iconv_works" in | |
4473 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
4474 | *) am_func_iconv=yes ;; | |
4475 | esac | |
4476 | else | |
4477 | am_func_iconv=no am_cv_lib_iconv=no | |
4478 | fi | |
4479 | if test "$am_func_iconv" = yes; then | |
d6e703cc FM |
4480 | |
4481 | cat >>confdefs.h <<\_ACEOF | |
4482 | #define HAVE_ICONV 1 | |
4483 | _ACEOF | |
4484 | ||
4485 | fi | |
4486 | if test "$am_cv_lib_iconv" = yes; then | |
0743911c FM |
4487 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
4488 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } | |
4489 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 | |
4490 | echo "${ECHO_T}$LIBICONV" >&6; } | |
d6e703cc FM |
4491 | else |
4492 | CPPFLAGS="$am_save_CPPFLAGS" | |
4493 | LIBICONV= | |
4494 | LTLIBICONV= | |
4495 | fi | |
4496 | ||
4497 | ||
4498 | ||
4499 | if test "$am_cv_func_iconv" = yes; then | |
0743911c FM |
4500 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
4501 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } | |
d6e703cc FM |
4502 | if test "${am_cv_proto_iconv+set}" = set; then |
4503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4504 | else | |
4505 | ||
4506 | cat >conftest.$ac_ext <<_ACEOF | |
4507 | /* confdefs.h. */ | |
4508 | _ACEOF | |
4509 | cat confdefs.h >>conftest.$ac_ext | |
4510 | cat >>conftest.$ac_ext <<_ACEOF | |
4511 | /* end confdefs.h. */ | |
4512 | ||
4513 | #include <stdlib.h> | |
4514 | #include <iconv.h> | |
4515 | extern | |
4516 | #ifdef __cplusplus | |
4517 | "C" | |
4518 | #endif | |
4519 | #if defined(__STDC__) || defined(__cplusplus) | |
4520 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
4521 | #else | |
4522 | size_t iconv(); | |
4523 | #endif | |
4524 | ||
4525 | int | |
4526 | main () | |
4527 | { | |
4528 | ||
4529 | ; | |
4530 | return 0; | |
4531 | } | |
4532 | _ACEOF | |
4533 | rm -f conftest.$ac_objext | |
0743911c FM |
4534 | if { (ac_try="$ac_compile" |
4535 | case "(($ac_try" in | |
4536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4537 | *) ac_try_echo=$ac_try;; | |
4538 | esac | |
4539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4540 | (eval "$ac_compile") 2>conftest.er1 | |
d6e703cc FM |
4541 | ac_status=$? |
4542 | grep -v '^ *+' conftest.er1 >conftest.err | |
4543 | rm -f conftest.er1 | |
4544 | cat conftest.err >&5 | |
4545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
4546 | (exit $ac_status); } && { |
4547 | test -z "$ac_c_werror_flag" || | |
4548 | test ! -s conftest.err | |
4549 | } && test -s conftest.$ac_objext; then | |
d6e703cc FM |
4550 | am_cv_proto_iconv_arg1="" |
4551 | else | |
4552 | echo "$as_me: failed program was:" >&5 | |
4553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4554 | ||
0743911c | 4555 | am_cv_proto_iconv_arg1="const" |
d6e703cc | 4556 | fi |
0743911c FM |
4557 | |
4558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc FM |
4559 | 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);" |
4560 | fi | |
4561 | ||
4562 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
0743911c | 4563 | { echo "$as_me:$LINENO: result: ${ac_t:- |
d6e703cc FM |
4564 | }$am_cv_proto_iconv" >&5 |
4565 | echo "${ECHO_T}${ac_t:- | |
0743911c | 4566 | }$am_cv_proto_iconv" >&6; } |
d6e703cc FM |
4567 | |
4568 | cat >>confdefs.h <<_ACEOF | |
4569 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
4570 | _ACEOF | |
4571 | ||
4572 | fi | |
4573 | ||
4574 | if test -n "$LIBICONV" ; then | |
4575 | LIBS="$LIBS $LIBICONV" | |
4576 | fi | |
4577 | ||
25697a35 GS |
4578 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4579 | ||
4580 | ||
4581 | ||
4582 | ||
4583 | ||
4584 | ||
4585 | ||
4586 | ||
4587 | ||
d6e703cc FM |
4588 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4589 | inttypes.h stdint.h unistd.h | |
4590 | do | |
4591 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
0743911c FM |
4592 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4593 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4594 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
d6e703cc FM |
4595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4596 | else | |
4597 | cat >conftest.$ac_ext <<_ACEOF | |
4598 | /* confdefs.h. */ | |
4599 | _ACEOF | |
4600 | cat confdefs.h >>conftest.$ac_ext | |
4601 | cat >>conftest.$ac_ext <<_ACEOF | |
4602 | /* end confdefs.h. */ | |
4603 | $ac_includes_default | |
4604 | ||
4605 | #include <$ac_header> | |
4606 | _ACEOF | |
4607 | rm -f conftest.$ac_objext | |
0743911c FM |
4608 | if { (ac_try="$ac_compile" |
4609 | case "(($ac_try" in | |
4610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4611 | *) ac_try_echo=$ac_try;; | |
4612 | esac | |
4613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4614 | (eval "$ac_compile") 2>conftest.er1 | |
d6e703cc FM |
4615 | ac_status=$? |
4616 | grep -v '^ *+' conftest.er1 >conftest.err | |
4617 | rm -f conftest.er1 | |
4618 | cat conftest.err >&5 | |
4619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
4620 | (exit $ac_status); } && { |
4621 | test -z "$ac_c_werror_flag" || | |
4622 | test ! -s conftest.err | |
4623 | } && test -s conftest.$ac_objext; then | |
d6e703cc FM |
4624 | eval "$as_ac_Header=yes" |
4625 | else | |
4626 | echo "$as_me: failed program was:" >&5 | |
4627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4628 | ||
0743911c | 4629 | eval "$as_ac_Header=no" |
d6e703cc | 4630 | fi |
0743911c FM |
4631 | |
4632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc | 4633 | fi |
0743911c FM |
4634 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4635 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4636 | echo "${ECHO_T}$ac_res" >&6; } | |
d6e703cc FM |
4637 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4638 | cat >>confdefs.h <<_ACEOF | |
4639 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4640 | _ACEOF | |
4641 | ||
4642 | fi | |
4643 | ||
4644 | done | |
4645 | ||
4646 | ||
4647 | ||
4648 | ||
4649 | ||
4650 | ||
4651 | ||
4652 | ||
4653 | ||
4654 | ||
4655 | ||
4656 | ||
4657 | ||
4658 | ||
4659 | ||
4660 | ||
4661 | ||
4662 | ||
4663 | ||
4664 | ||
4665 | ||
4666 | ||
4667 | ||
4668 | ||
4669 | ||
0743911c | 4670 | |
d2fe0c32 | 4671 | |
d6e703cc FM |
4672 | |
4673 | ||
4674 | for ac_header in stdio.h stdlib.h string.h strings.h sys/time.h time.h unistd.h sys/dirent.h \ | |
4675 | dirent.h sys/socket.h netdb.h arpa/inet.h sys/types.h netinet/in.h sys/stat.h \ | |
4676 | ctype.h gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h iconv.h \ | |
d2fe0c32 | 4677 | errno.h sys/resource.h sys/wait.h stdarg.h |
d6e703cc FM |
4678 | do |
4679 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
0743911c FM |
4680 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4681 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4682 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4683 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
d6e703cc FM |
4684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4685 | fi | |
0743911c FM |
4686 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4687 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4688 | echo "${ECHO_T}$ac_res" >&6; } | |
d6e703cc FM |
4689 | else |
4690 | # Is the header compilable? | |
0743911c FM |
4691 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4692 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
d6e703cc FM |
4693 | cat >conftest.$ac_ext <<_ACEOF |
4694 | /* confdefs.h. */ | |
4695 | _ACEOF | |
4696 | cat confdefs.h >>conftest.$ac_ext | |
4697 | cat >>conftest.$ac_ext <<_ACEOF | |
4698 | /* end confdefs.h. */ | |
4699 | $ac_includes_default | |
4700 | #include <$ac_header> | |
4701 | _ACEOF | |
4702 | rm -f conftest.$ac_objext | |
0743911c FM |
4703 | if { (ac_try="$ac_compile" |
4704 | case "(($ac_try" in | |
4705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4706 | *) ac_try_echo=$ac_try;; | |
4707 | esac | |
4708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4709 | (eval "$ac_compile") 2>conftest.er1 | |
d6e703cc FM |
4710 | ac_status=$? |
4711 | grep -v '^ *+' conftest.er1 >conftest.err | |
4712 | rm -f conftest.er1 | |
4713 | cat conftest.err >&5 | |
4714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
4715 | (exit $ac_status); } && { |
4716 | test -z "$ac_c_werror_flag" || | |
4717 | test ! -s conftest.err | |
4718 | } && test -s conftest.$ac_objext; then | |
d6e703cc FM |
4719 | ac_header_compiler=yes |
4720 | else | |
4721 | echo "$as_me: failed program was:" >&5 | |
4722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4723 | ||
0743911c | 4724 | ac_header_compiler=no |
d6e703cc | 4725 | fi |
0743911c FM |
4726 | |
4727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4728 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4729 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
d6e703cc FM |
4730 | |
4731 | # Is the header present? | |
0743911c FM |
4732 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4733 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
d6e703cc FM |
4734 | cat >conftest.$ac_ext <<_ACEOF |
4735 | /* confdefs.h. */ | |
4736 | _ACEOF | |
4737 | cat confdefs.h >>conftest.$ac_ext | |
4738 | cat >>conftest.$ac_ext <<_ACEOF | |
4739 | /* end confdefs.h. */ | |
4740 | #include <$ac_header> | |
4741 | _ACEOF | |
0743911c FM |
4742 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4743 | case "(($ac_try" in | |
4744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4745 | *) ac_try_echo=$ac_try;; | |
4746 | esac | |
4747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4748 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
d6e703cc FM |
4749 | ac_status=$? |
4750 | grep -v '^ *+' conftest.er1 >conftest.err | |
4751 | rm -f conftest.er1 | |
4752 | cat conftest.err >&5 | |
4753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
4754 | (exit $ac_status); } >/dev/null && { |
4755 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4756 | test ! -s conftest.err | |
4757 | }; then | |
d6e703cc FM |
4758 | ac_header_preproc=yes |
4759 | else | |
4760 | echo "$as_me: failed program was:" >&5 | |
4761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4762 | ||
4763 | ac_header_preproc=no | |
4764 | fi | |
0743911c | 4765 | |
d6e703cc | 4766 | rm -f conftest.err conftest.$ac_ext |
0743911c FM |
4767 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4768 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
d6e703cc FM |
4769 | |
4770 | # So? What about this header? | |
4771 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4772 | yes:no: ) | |
4773 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4774 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4775 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4776 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4777 | ac_header_preproc=yes | |
4778 | ;; | |
4779 | no:yes:* ) | |
4780 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4781 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4782 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4783 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4784 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4785 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4786 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4787 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4788 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4789 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4790 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4791 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
0743911c | 4792 | |
d6e703cc FM |
4793 | ;; |
4794 | esac | |
0743911c FM |
4795 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4796 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4797 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
d6e703cc FM |
4798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4799 | else | |
4800 | eval "$as_ac_Header=\$ac_header_preproc" | |
4801 | fi | |
0743911c FM |
4802 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4803 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4804 | echo "${ECHO_T}$ac_res" >&6; } | |
d6e703cc FM |
4805 | |
4806 | fi | |
4807 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4808 | cat >>confdefs.h <<_ACEOF | |
4809 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4810 | _ACEOF | |
4811 | ||
4812 | fi | |
4813 | ||
4814 | done | |
4815 | ||
4816 | ||
0743911c FM |
4817 | { echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5 |
4818 | echo $ECHO_N "checking for gdImagePng in -lgd... $ECHO_C" >&6; } | |
d6e703cc FM |
4819 | if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then |
4820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4821 | else | |
4822 | ac_check_lib_save_LIBS=$LIBS | |
4823 | LIBS="-lgd $LIBS" | |
4824 | cat >conftest.$ac_ext <<_ACEOF | |
4825 | /* confdefs.h. */ | |
4826 | _ACEOF | |
4827 | cat confdefs.h >>conftest.$ac_ext | |
4828 | cat >>conftest.$ac_ext <<_ACEOF | |
4829 | /* end confdefs.h. */ | |
4830 | ||
0743911c FM |
4831 | /* Override any GCC internal prototype to avoid an error. |
4832 | Use char because int might match the return type of a GCC | |
4833 | builtin and then its argument prototype would still apply. */ | |
d6e703cc FM |
4834 | #ifdef __cplusplus |
4835 | extern "C" | |
4836 | #endif | |
d6e703cc FM |
4837 | char gdImagePng (); |
4838 | int | |
4839 | main () | |
4840 | { | |
0743911c | 4841 | return gdImagePng (); |
d6e703cc FM |
4842 | ; |
4843 | return 0; | |
4844 | } | |
4845 | _ACEOF | |
4846 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0743911c FM |
4847 | if { (ac_try="$ac_link" |
4848 | case "(($ac_try" in | |
4849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4850 | *) ac_try_echo=$ac_try;; | |
4851 | esac | |
4852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4853 | (eval "$ac_link") 2>conftest.er1 | |
d6e703cc FM |
4854 | ac_status=$? |
4855 | grep -v '^ *+' conftest.er1 >conftest.err | |
4856 | rm -f conftest.er1 | |
4857 | cat conftest.err >&5 | |
4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
4859 | (exit $ac_status); } && { |
4860 | test -z "$ac_c_werror_flag" || | |
4861 | test ! -s conftest.err | |
4862 | } && test -s conftest$ac_exeext && | |
4863 | $as_test_x conftest$ac_exeext; then | |
d6e703cc FM |
4864 | ac_cv_lib_gd_gdImagePng=yes |
4865 | else | |
4866 | echo "$as_me: failed program was:" >&5 | |
4867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4868 | ||
0743911c | 4869 | ac_cv_lib_gd_gdImagePng=no |
d6e703cc | 4870 | fi |
0743911c FM |
4871 | |
4872 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
d6e703cc FM |
4873 | conftest$ac_exeext conftest.$ac_ext |
4874 | LIBS=$ac_check_lib_save_LIBS | |
4875 | fi | |
0743911c FM |
4876 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5 |
4877 | echo "${ECHO_T}$ac_cv_lib_gd_gdImagePng" >&6; } | |
d6e703cc FM |
4878 | if test $ac_cv_lib_gd_gdImagePng = yes; then |
4879 | LIBS="-lgd ${LIBS}"; HAVE_GD="yes" | |
4880 | else | |
4881 | HAVE_GD="" | |
4882 | fi | |
4883 | ||
4884 | ||
0743911c FM |
4885 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4886 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
d6e703cc | 4887 | if test "${ac_cv_c_const+set}" = set; then |
25697a35 GS |
4888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4889 | else | |
4890 | cat >conftest.$ac_ext <<_ACEOF | |
4891 | /* confdefs.h. */ | |
4892 | _ACEOF | |
4893 | cat confdefs.h >>conftest.$ac_ext | |
4894 | cat >>conftest.$ac_ext <<_ACEOF | |
4895 | /* end confdefs.h. */ | |
25697a35 | 4896 | |
d6e703cc FM |
4897 | int |
4898 | main () | |
4899 | { | |
4900 | /* FIXME: Include the comments suggested by Paul. */ | |
4901 | #ifndef __cplusplus | |
4902 | /* Ultrix mips cc rejects this. */ | |
4903 | typedef int charset[2]; | |
0743911c | 4904 | const charset cs; |
d6e703cc | 4905 | /* SunOS 4.1.1 cc rejects this. */ |
0743911c FM |
4906 | char const *const *pcpcc; |
4907 | char **ppc; | |
d6e703cc FM |
4908 | /* NEC SVR4.0.2 mips cc rejects this. */ |
4909 | struct point {int x, y;}; | |
4910 | static struct point const zero = {0,0}; | |
4911 | /* AIX XL C 1.02.0.0 rejects this. | |
4912 | It does not let you subtract one const X* pointer from another in | |
4913 | an arm of an if-expression whose if-part is not a constant | |
4914 | expression */ | |
4915 | const char *g = "string"; | |
0743911c | 4916 | pcpcc = &g + (g ? g-g : 0); |
d6e703cc | 4917 | /* HPUX 7.0 cc rejects these. */ |
0743911c FM |
4918 | ++pcpcc; |
4919 | ppc = (char**) pcpcc; | |
4920 | pcpcc = (char const *const *) ppc; | |
d6e703cc FM |
4921 | { /* SCO 3.2v4 cc rejects this. */ |
4922 | char *t; | |
4923 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4924 | ||
4925 | *t++ = 0; | |
0743911c | 4926 | if (s) return 0; |
d6e703cc FM |
4927 | } |
4928 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4929 | int x[] = {25, 17}; | |
4930 | const int *foo = &x[0]; | |
4931 | ++foo; | |
4932 | } | |
4933 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4934 | typedef const int *iptr; | |
4935 | iptr p = 0; | |
4936 | ++p; | |
4937 | } | |
4938 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4939 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4940 | struct s { int j; const int *ap[3]; }; | |
4941 | struct s *b; b->j = 5; | |
4942 | } | |
4943 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4944 | const int foo = 10; | |
0743911c | 4945 | if (!foo) return 0; |
d6e703cc | 4946 | } |
0743911c | 4947 | return !cs[0] && !zero.x; |
d6e703cc FM |
4948 | #endif |
4949 | ||
4950 | ; | |
4951 | return 0; | |
4952 | } | |
25697a35 GS |
4953 | _ACEOF |
4954 | rm -f conftest.$ac_objext | |
0743911c FM |
4955 | if { (ac_try="$ac_compile" |
4956 | case "(($ac_try" in | |
4957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4958 | *) ac_try_echo=$ac_try;; | |
4959 | esac | |
4960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4961 | (eval "$ac_compile") 2>conftest.er1 | |
25697a35 GS |
4962 | ac_status=$? |
4963 | grep -v '^ *+' conftest.er1 >conftest.err | |
4964 | rm -f conftest.er1 | |
4965 | cat conftest.err >&5 | |
4966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
4967 | (exit $ac_status); } && { |
4968 | test -z "$ac_c_werror_flag" || | |
4969 | test ! -s conftest.err | |
4970 | } && test -s conftest.$ac_objext; then | |
d6e703cc | 4971 | ac_cv_c_const=yes |
25697a35 GS |
4972 | else |
4973 | echo "$as_me: failed program was:" >&5 | |
4974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4975 | ||
0743911c | 4976 | ac_cv_c_const=no |
25697a35 | 4977 | fi |
0743911c FM |
4978 | |
4979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25697a35 | 4980 | fi |
0743911c FM |
4981 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4982 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
d6e703cc FM |
4983 | if test $ac_cv_c_const = no; then |
4984 | ||
4985 | cat >>confdefs.h <<\_ACEOF | |
4986 | #define const | |
25697a35 GS |
4987 | _ACEOF |
4988 | ||
4989 | fi | |
4990 | ||
0743911c FM |
4991 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
4992 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
d6e703cc | 4993 | if test "${ac_cv_struct_tm+set}" = set; then |
25697a35 | 4994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25697a35 | 4995 | else |
d6e703cc | 4996 | cat >conftest.$ac_ext <<_ACEOF |
25697a35 GS |
4997 | /* confdefs.h. */ |
4998 | _ACEOF | |
4999 | cat confdefs.h >>conftest.$ac_ext | |
5000 | cat >>conftest.$ac_ext <<_ACEOF | |
5001 | /* end confdefs.h. */ | |
d6e703cc FM |
5002 | #include <sys/types.h> |
5003 | #include <time.h> | |
5004 | ||
5005 | int | |
5006 | main () | |
5007 | { | |
0743911c FM |
5008 | struct tm tm; |
5009 | int *p = &tm.tm_sec; | |
5010 | return !p; | |
d6e703cc FM |
5011 | ; |
5012 | return 0; | |
5013 | } | |
25697a35 GS |
5014 | _ACEOF |
5015 | rm -f conftest.$ac_objext | |
0743911c FM |
5016 | if { (ac_try="$ac_compile" |
5017 | case "(($ac_try" in | |
5018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5019 | *) ac_try_echo=$ac_try;; | |
5020 | esac | |
5021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5022 | (eval "$ac_compile") 2>conftest.er1 | |
25697a35 GS |
5023 | ac_status=$? |
5024 | grep -v '^ *+' conftest.er1 >conftest.err | |
5025 | rm -f conftest.er1 | |
5026 | cat conftest.err >&5 | |
5027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
5028 | (exit $ac_status); } && { |
5029 | test -z "$ac_c_werror_flag" || | |
5030 | test ! -s conftest.err | |
5031 | } && test -s conftest.$ac_objext; then | |
d6e703cc | 5032 | ac_cv_struct_tm=time.h |
25697a35 GS |
5033 | else |
5034 | echo "$as_me: failed program was:" >&5 | |
5035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5036 | ||
0743911c | 5037 | ac_cv_struct_tm=sys/time.h |
25697a35 | 5038 | fi |
0743911c FM |
5039 | |
5040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc | 5041 | fi |
0743911c FM |
5042 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
5043 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
d6e703cc | 5044 | if test $ac_cv_struct_tm = sys/time.h; then |
25697a35 | 5045 | |
d6e703cc FM |
5046 | cat >>confdefs.h <<\_ACEOF |
5047 | #define TM_IN_SYS_TIME 1 | |
5048 | _ACEOF | |
5049 | ||
5050 | fi | |
5051 | ||
5052 | ||
32e71fa4 FM |
5053 | # Check whether --enable-largefile was given. |
5054 | if test "${enable_largefile+set}" = set; then | |
5055 | enableval=$enable_largefile; | |
5056 | fi | |
5057 | ||
5058 | if test "$enable_largefile" != no; then | |
5059 | ||
5060 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
5061 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | |
5062 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
5063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5064 | else | |
5065 | ac_cv_sys_largefile_CC=no | |
5066 | if test "$GCC" != yes; then | |
5067 | ac_save_CC=$CC | |
5068 | while :; do | |
5069 | # IRIX 6.2 and later do not support large files by default, | |
5070 | # so use the C compiler's -n32 option if that helps. | |
5071 | cat >conftest.$ac_ext <<_ACEOF | |
5072 | /* confdefs.h. */ | |
5073 | _ACEOF | |
5074 | cat confdefs.h >>conftest.$ac_ext | |
5075 | cat >>conftest.$ac_ext <<_ACEOF | |
5076 | /* end confdefs.h. */ | |
5077 | #include <sys/types.h> | |
5078 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5079 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5080 | since some C++ compilers masquerading as C compilers | |
5081 | incorrectly reject 9223372036854775807. */ | |
5082 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5083 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5084 | && LARGE_OFF_T % 2147483647 == 1) | |
5085 | ? 1 : -1]; | |
5086 | int | |
5087 | main () | |
5088 | { | |
5089 | ||
5090 | ; | |
5091 | return 0; | |
5092 | } | |
5093 | _ACEOF | |
5094 | rm -f conftest.$ac_objext | |
5095 | if { (ac_try="$ac_compile" | |
5096 | case "(($ac_try" in | |
5097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5098 | *) ac_try_echo=$ac_try;; | |
5099 | esac | |
5100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5101 | (eval "$ac_compile") 2>conftest.er1 | |
5102 | ac_status=$? | |
5103 | grep -v '^ *+' conftest.er1 >conftest.err | |
5104 | rm -f conftest.er1 | |
5105 | cat conftest.err >&5 | |
5106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5107 | (exit $ac_status); } && { | |
5108 | test -z "$ac_c_werror_flag" || | |
5109 | test ! -s conftest.err | |
5110 | } && test -s conftest.$ac_objext; then | |
5111 | break | |
5112 | else | |
5113 | echo "$as_me: failed program was:" >&5 | |
5114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5115 | ||
5116 | ||
5117 | fi | |
5118 | ||
5119 | rm -f core conftest.err conftest.$ac_objext | |
5120 | CC="$CC -n32" | |
5121 | rm -f conftest.$ac_objext | |
5122 | if { (ac_try="$ac_compile" | |
5123 | case "(($ac_try" in | |
5124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5125 | *) ac_try_echo=$ac_try;; | |
5126 | esac | |
5127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5128 | (eval "$ac_compile") 2>conftest.er1 | |
5129 | ac_status=$? | |
5130 | grep -v '^ *+' conftest.er1 >conftest.err | |
5131 | rm -f conftest.er1 | |
5132 | cat conftest.err >&5 | |
5133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5134 | (exit $ac_status); } && { | |
5135 | test -z "$ac_c_werror_flag" || | |
5136 | test ! -s conftest.err | |
5137 | } && test -s conftest.$ac_objext; then | |
5138 | ac_cv_sys_largefile_CC=' -n32'; break | |
5139 | else | |
5140 | echo "$as_me: failed program was:" >&5 | |
5141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5142 | ||
5143 | ||
5144 | fi | |
5145 | ||
5146 | rm -f core conftest.err conftest.$ac_objext | |
5147 | break | |
5148 | done | |
5149 | CC=$ac_save_CC | |
5150 | rm -f conftest.$ac_ext | |
5151 | fi | |
5152 | fi | |
5153 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | |
5154 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | |
5155 | if test "$ac_cv_sys_largefile_CC" != no; then | |
5156 | CC=$CC$ac_cv_sys_largefile_CC | |
5157 | fi | |
5158 | ||
5159 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
5160 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | |
5161 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
5162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5163 | else | |
5164 | while :; do | |
5165 | cat >conftest.$ac_ext <<_ACEOF | |
5166 | /* confdefs.h. */ | |
5167 | _ACEOF | |
5168 | cat confdefs.h >>conftest.$ac_ext | |
5169 | cat >>conftest.$ac_ext <<_ACEOF | |
5170 | /* end confdefs.h. */ | |
5171 | #include <sys/types.h> | |
5172 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5173 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5174 | since some C++ compilers masquerading as C compilers | |
5175 | incorrectly reject 9223372036854775807. */ | |
5176 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5177 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5178 | && LARGE_OFF_T % 2147483647 == 1) | |
5179 | ? 1 : -1]; | |
5180 | int | |
5181 | main () | |
5182 | { | |
5183 | ||
5184 | ; | |
5185 | return 0; | |
5186 | } | |
5187 | _ACEOF | |
5188 | rm -f conftest.$ac_objext | |
5189 | if { (ac_try="$ac_compile" | |
5190 | case "(($ac_try" in | |
5191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5192 | *) ac_try_echo=$ac_try;; | |
5193 | esac | |
5194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5195 | (eval "$ac_compile") 2>conftest.er1 | |
5196 | ac_status=$? | |
5197 | grep -v '^ *+' conftest.er1 >conftest.err | |
5198 | rm -f conftest.er1 | |
5199 | cat conftest.err >&5 | |
5200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5201 | (exit $ac_status); } && { | |
5202 | test -z "$ac_c_werror_flag" || | |
5203 | test ! -s conftest.err | |
5204 | } && test -s conftest.$ac_objext; then | |
5205 | ac_cv_sys_file_offset_bits=no; break | |
5206 | else | |
5207 | echo "$as_me: failed program was:" >&5 | |
5208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5209 | ||
5210 | ||
5211 | fi | |
5212 | ||
5213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5214 | cat >conftest.$ac_ext <<_ACEOF | |
5215 | /* confdefs.h. */ | |
5216 | _ACEOF | |
5217 | cat confdefs.h >>conftest.$ac_ext | |
5218 | cat >>conftest.$ac_ext <<_ACEOF | |
5219 | /* end confdefs.h. */ | |
5220 | #define _FILE_OFFSET_BITS 64 | |
5221 | #include <sys/types.h> | |
5222 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5223 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5224 | since some C++ compilers masquerading as C compilers | |
5225 | incorrectly reject 9223372036854775807. */ | |
5226 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5227 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5228 | && LARGE_OFF_T % 2147483647 == 1) | |
5229 | ? 1 : -1]; | |
5230 | int | |
5231 | main () | |
5232 | { | |
5233 | ||
5234 | ; | |
5235 | return 0; | |
5236 | } | |
5237 | _ACEOF | |
5238 | rm -f conftest.$ac_objext | |
5239 | if { (ac_try="$ac_compile" | |
5240 | case "(($ac_try" in | |
5241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5242 | *) ac_try_echo=$ac_try;; | |
5243 | esac | |
5244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5245 | (eval "$ac_compile") 2>conftest.er1 | |
5246 | ac_status=$? | |
5247 | grep -v '^ *+' conftest.er1 >conftest.err | |
5248 | rm -f conftest.er1 | |
5249 | cat conftest.err >&5 | |
5250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5251 | (exit $ac_status); } && { | |
5252 | test -z "$ac_c_werror_flag" || | |
5253 | test ! -s conftest.err | |
5254 | } && test -s conftest.$ac_objext; then | |
5255 | ac_cv_sys_file_offset_bits=64; break | |
5256 | else | |
5257 | echo "$as_me: failed program was:" >&5 | |
5258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5259 | ||
5260 | ||
5261 | fi | |
5262 | ||
5263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5264 | ac_cv_sys_file_offset_bits=unknown | |
5265 | break | |
5266 | done | |
5267 | fi | |
5268 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
5269 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | |
5270 | case $ac_cv_sys_file_offset_bits in #( | |
5271 | no | unknown) ;; | |
5272 | *) | |
5273 | cat >>confdefs.h <<_ACEOF | |
5274 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
5275 | _ACEOF | |
5276 | ;; | |
5277 | esac | |
5278 | rm -f conftest* | |
5279 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
5280 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
5281 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } | |
5282 | if test "${ac_cv_sys_large_files+set}" = set; then | |
5283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5284 | else | |
5285 | while :; do | |
5286 | cat >conftest.$ac_ext <<_ACEOF | |
5287 | /* confdefs.h. */ | |
5288 | _ACEOF | |
5289 | cat confdefs.h >>conftest.$ac_ext | |
5290 | cat >>conftest.$ac_ext <<_ACEOF | |
5291 | /* end confdefs.h. */ | |
5292 | #include <sys/types.h> | |
5293 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5294 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5295 | since some C++ compilers masquerading as C compilers | |
5296 | incorrectly reject 9223372036854775807. */ | |
5297 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5298 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5299 | && LARGE_OFF_T % 2147483647 == 1) | |
5300 | ? 1 : -1]; | |
5301 | int | |
5302 | main () | |
5303 | { | |
5304 | ||
5305 | ; | |
5306 | return 0; | |
5307 | } | |
5308 | _ACEOF | |
5309 | rm -f conftest.$ac_objext | |
5310 | if { (ac_try="$ac_compile" | |
5311 | case "(($ac_try" in | |
5312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5313 | *) ac_try_echo=$ac_try;; | |
5314 | esac | |
5315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5316 | (eval "$ac_compile") 2>conftest.er1 | |
5317 | ac_status=$? | |
5318 | grep -v '^ *+' conftest.er1 >conftest.err | |
5319 | rm -f conftest.er1 | |
5320 | cat conftest.err >&5 | |
5321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5322 | (exit $ac_status); } && { | |
5323 | test -z "$ac_c_werror_flag" || | |
5324 | test ! -s conftest.err | |
5325 | } && test -s conftest.$ac_objext; then | |
5326 | ac_cv_sys_large_files=no; break | |
5327 | else | |
5328 | echo "$as_me: failed program was:" >&5 | |
5329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5330 | ||
5331 | ||
5332 | fi | |
5333 | ||
5334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5335 | cat >conftest.$ac_ext <<_ACEOF | |
5336 | /* confdefs.h. */ | |
5337 | _ACEOF | |
5338 | cat confdefs.h >>conftest.$ac_ext | |
5339 | cat >>conftest.$ac_ext <<_ACEOF | |
5340 | /* end confdefs.h. */ | |
5341 | #define _LARGE_FILES 1 | |
5342 | #include <sys/types.h> | |
5343 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5344 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5345 | since some C++ compilers masquerading as C compilers | |
5346 | incorrectly reject 9223372036854775807. */ | |
5347 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5348 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5349 | && LARGE_OFF_T % 2147483647 == 1) | |
5350 | ? 1 : -1]; | |
5351 | int | |
5352 | main () | |
5353 | { | |
5354 | ||
5355 | ; | |
5356 | return 0; | |
5357 | } | |
5358 | _ACEOF | |
5359 | rm -f conftest.$ac_objext | |
5360 | if { (ac_try="$ac_compile" | |
5361 | case "(($ac_try" in | |
5362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5363 | *) ac_try_echo=$ac_try;; | |
5364 | esac | |
5365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5366 | (eval "$ac_compile") 2>conftest.er1 | |
5367 | ac_status=$? | |
5368 | grep -v '^ *+' conftest.er1 >conftest.err | |
5369 | rm -f conftest.er1 | |
5370 | cat conftest.err >&5 | |
5371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5372 | (exit $ac_status); } && { | |
5373 | test -z "$ac_c_werror_flag" || | |
5374 | test ! -s conftest.err | |
5375 | } && test -s conftest.$ac_objext; then | |
5376 | ac_cv_sys_large_files=1; break | |
5377 | else | |
5378 | echo "$as_me: failed program was:" >&5 | |
5379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5380 | ||
5381 | ||
5382 | fi | |
5383 | ||
5384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5385 | ac_cv_sys_large_files=unknown | |
5386 | break | |
5387 | done | |
5388 | fi | |
5389 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
5390 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | |
5391 | case $ac_cv_sys_large_files in #( | |
5392 | no | unknown) ;; | |
5393 | *) | |
5394 | cat >>confdefs.h <<_ACEOF | |
5395 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5396 | _ACEOF | |
5397 | ;; | |
5398 | esac | |
5399 | rm -f conftest* | |
5400 | fi | |
5401 | fi | |
5402 | ||
5403 | ||
5404 | # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE | |
5405 | # needs to be defined for it | |
5406 | { echo "$as_me:$LINENO: checking for fopen64" >&5 | |
5407 | echo $ECHO_N "checking for fopen64... $ECHO_C" >&6; } | |
5408 | if test "${bu_cv_have_fopen64+set}" = set; then | |
5409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5410 | else | |
5411 | cat >conftest.$ac_ext <<_ACEOF | |
5412 | /* confdefs.h. */ | |
5413 | _ACEOF | |
5414 | cat confdefs.h >>conftest.$ac_ext | |
5415 | cat >>conftest.$ac_ext <<_ACEOF | |
5416 | /* end confdefs.h. */ | |
5417 | #include <stdio.h> | |
5418 | int | |
5419 | main () | |
5420 | { | |
5421 | FILE *f = fopen64 ("/tmp/foo","r"); | |
5422 | ; | |
5423 | return 0; | |
5424 | } | |
5425 | _ACEOF | |
5426 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5427 | if { (ac_try="$ac_link" | |
5428 | case "(($ac_try" in | |
5429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5430 | *) ac_try_echo=$ac_try;; | |
5431 | esac | |
5432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5433 | (eval "$ac_link") 2>conftest.er1 | |
5434 | ac_status=$? | |
5435 | grep -v '^ *+' conftest.er1 >conftest.err | |
5436 | rm -f conftest.er1 | |
5437 | cat conftest.err >&5 | |
5438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5439 | (exit $ac_status); } && { | |
5440 | test -z "$ac_c_werror_flag" || | |
5441 | test ! -s conftest.err | |
5442 | } && test -s conftest$ac_exeext && | |
5443 | $as_test_x conftest$ac_exeext; then | |
5444 | bu_cv_have_fopen64=yes | |
5445 | else | |
5446 | echo "$as_me: failed program was:" >&5 | |
5447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5448 | ||
c1b9eca2 FM |
5449 | saved_CFLAGS=$CFLAGS |
5450 | CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE" | |
32e71fa4 FM |
5451 | cat >conftest.$ac_ext <<_ACEOF |
5452 | /* confdefs.h. */ | |
5453 | _ACEOF | |
5454 | cat confdefs.h >>conftest.$ac_ext | |
5455 | cat >>conftest.$ac_ext <<_ACEOF | |
5456 | /* end confdefs.h. */ | |
5457 | #include <stdio.h> | |
5458 | int | |
5459 | main () | |
5460 | { | |
5461 | FILE *f = fopen64 ("/tmp/foo","r"); | |
5462 | ; | |
5463 | return 0; | |
5464 | } | |
5465 | _ACEOF | |
5466 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5467 | if { (ac_try="$ac_link" | |
5468 | case "(($ac_try" in | |
5469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5470 | *) ac_try_echo=$ac_try;; | |
5471 | esac | |
5472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5473 | (eval "$ac_link") 2>conftest.er1 | |
5474 | ac_status=$? | |
5475 | grep -v '^ *+' conftest.er1 >conftest.err | |
5476 | rm -f conftest.er1 | |
5477 | cat conftest.err >&5 | |
5478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5479 | (exit $ac_status); } && { | |
5480 | test -z "$ac_c_werror_flag" || | |
5481 | test ! -s conftest.err | |
5482 | } && test -s conftest$ac_exeext && | |
5483 | $as_test_x conftest$ac_exeext; then | |
5484 | bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE" | |
5485 | else | |
5486 | echo "$as_me: failed program was:" >&5 | |
5487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5488 | ||
5489 | bu_cv_have_fopen64=no | |
5490 | fi | |
5491 | ||
5492 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5493 | conftest$ac_exeext conftest.$ac_ext | |
c1b9eca2 | 5494 | CFLAGS=$saved_CFLAGS |
32e71fa4 FM |
5495 | fi |
5496 | ||
5497 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5498 | conftest$ac_exeext conftest.$ac_ext | |
5499 | fi | |
5500 | ||
5501 | { echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5 | |
5502 | echo "${ECHO_T}$bu_cv_have_fopen64" >&6; } | |
5503 | if test "$bu_cv_have_fopen64" != no; then | |
5504 | ||
5505 | cat >>confdefs.h <<\_ACEOF | |
5506 | #define HAVE_FOPEN64 1 | |
5507 | _ACEOF | |
5508 | ||
5509 | if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE"; then | |
5510 | ||
5511 | cat >>confdefs.h <<\_ACEOF | |
5512 | #define _LARGEFILE64_SOURCE 1 | |
5513 | _ACEOF | |
5514 | ||
5515 | fi | |
5516 | fi | |
5517 | ||
5518 | ||
0743911c FM |
5519 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
5520 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
d6e703cc FM |
5521 | if test "${ac_cv_type_off_t+set}" = set; then |
5522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5523 | else | |
5524 | cat >conftest.$ac_ext <<_ACEOF | |
25697a35 GS |
5525 | /* confdefs.h. */ |
5526 | _ACEOF | |
5527 | cat confdefs.h >>conftest.$ac_ext | |
5528 | cat >>conftest.$ac_ext <<_ACEOF | |
5529 | /* end confdefs.h. */ | |
32e71fa4 FM |
5530 | $ac_includes_default |
5531 | typedef off_t ac__type_new_; | |
5532 | int | |
5533 | main () | |
5534 | { | |
5535 | if ((ac__type_new_ *) 0) | |
5536 | return 0; | |
5537 | if (sizeof (ac__type_new_)) | |
5538 | return 0; | |
5539 | ; | |
5540 | return 0; | |
5541 | } | |
5542 | _ACEOF | |
5543 | rm -f conftest.$ac_objext | |
5544 | if { (ac_try="$ac_compile" | |
5545 | case "(($ac_try" in | |
5546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5547 | *) ac_try_echo=$ac_try;; | |
5548 | esac | |
5549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5550 | (eval "$ac_compile") 2>conftest.er1 | |
5551 | ac_status=$? | |
5552 | grep -v '^ *+' conftest.er1 >conftest.err | |
5553 | rm -f conftest.er1 | |
5554 | cat conftest.err >&5 | |
5555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5556 | (exit $ac_status); } && { | |
5557 | test -z "$ac_c_werror_flag" || | |
5558 | test ! -s conftest.err | |
5559 | } && test -s conftest.$ac_objext; then | |
5560 | ac_cv_type_off_t=yes | |
5561 | else | |
5562 | echo "$as_me: failed program was:" >&5 | |
5563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5564 | ||
5565 | ac_cv_type_off_t=no | |
5566 | fi | |
5567 | ||
5568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5569 | fi | |
5570 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5571 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
5572 | ||
5573 | # The cast to long int works around a bug in the HP C Compiler | |
5574 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5575 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5576 | # This bug is HP SR number 8606223364. | |
5577 | { echo "$as_me:$LINENO: checking size of off_t" >&5 | |
5578 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } | |
5579 | if test "${ac_cv_sizeof_off_t+set}" = set; then | |
5580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5581 | else | |
5582 | if test "$cross_compiling" = yes; then | |
5583 | # Depending upon the size, compute the lo and hi bounds. | |
5584 | cat >conftest.$ac_ext <<_ACEOF | |
5585 | /* confdefs.h. */ | |
5586 | _ACEOF | |
5587 | cat confdefs.h >>conftest.$ac_ext | |
5588 | cat >>conftest.$ac_ext <<_ACEOF | |
5589 | /* end confdefs.h. */ | |
5590 | $ac_includes_default | |
5591 | typedef off_t ac__type_sizeof_; | |
5592 | int | |
5593 | main () | |
5594 | { | |
5595 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
5596 | test_array [0] = 0 | |
5597 | ||
5598 | ; | |
5599 | return 0; | |
5600 | } | |
5601 | _ACEOF | |
5602 | rm -f conftest.$ac_objext | |
5603 | if { (ac_try="$ac_compile" | |
5604 | case "(($ac_try" in | |
5605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5606 | *) ac_try_echo=$ac_try;; | |
5607 | esac | |
5608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5609 | (eval "$ac_compile") 2>conftest.er1 | |
5610 | ac_status=$? | |
5611 | grep -v '^ *+' conftest.er1 >conftest.err | |
5612 | rm -f conftest.er1 | |
5613 | cat conftest.err >&5 | |
5614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5615 | (exit $ac_status); } && { | |
5616 | test -z "$ac_c_werror_flag" || | |
5617 | test ! -s conftest.err | |
5618 | } && test -s conftest.$ac_objext; then | |
5619 | ac_lo=0 ac_mid=0 | |
5620 | while :; do | |
5621 | cat >conftest.$ac_ext <<_ACEOF | |
5622 | /* confdefs.h. */ | |
5623 | _ACEOF | |
5624 | cat confdefs.h >>conftest.$ac_ext | |
5625 | cat >>conftest.$ac_ext <<_ACEOF | |
5626 | /* end confdefs.h. */ | |
5627 | $ac_includes_default | |
5628 | typedef off_t ac__type_sizeof_; | |
5629 | int | |
5630 | main () | |
5631 | { | |
5632 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
5633 | test_array [0] = 0 | |
5634 | ||
5635 | ; | |
5636 | return 0; | |
5637 | } | |
5638 | _ACEOF | |
5639 | rm -f conftest.$ac_objext | |
5640 | if { (ac_try="$ac_compile" | |
5641 | case "(($ac_try" in | |
5642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5643 | *) ac_try_echo=$ac_try;; | |
5644 | esac | |
5645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5646 | (eval "$ac_compile") 2>conftest.er1 | |
5647 | ac_status=$? | |
5648 | grep -v '^ *+' conftest.er1 >conftest.err | |
5649 | rm -f conftest.er1 | |
5650 | cat conftest.err >&5 | |
5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5652 | (exit $ac_status); } && { | |
5653 | test -z "$ac_c_werror_flag" || | |
5654 | test ! -s conftest.err | |
5655 | } && test -s conftest.$ac_objext; then | |
5656 | ac_hi=$ac_mid; break | |
5657 | else | |
5658 | echo "$as_me: failed program was:" >&5 | |
5659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5660 | ||
5661 | ac_lo=`expr $ac_mid + 1` | |
5662 | if test $ac_lo -le $ac_mid; then | |
5663 | ac_lo= ac_hi= | |
5664 | break | |
5665 | fi | |
5666 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
5667 | fi | |
5668 | ||
5669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5670 | done | |
5671 | else | |
5672 | echo "$as_me: failed program was:" >&5 | |
5673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5674 | ||
5675 | cat >conftest.$ac_ext <<_ACEOF | |
5676 | /* confdefs.h. */ | |
5677 | _ACEOF | |
5678 | cat confdefs.h >>conftest.$ac_ext | |
5679 | cat >>conftest.$ac_ext <<_ACEOF | |
5680 | /* end confdefs.h. */ | |
5681 | $ac_includes_default | |
5682 | typedef off_t ac__type_sizeof_; | |
5683 | int | |
5684 | main () | |
5685 | { | |
5686 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
5687 | test_array [0] = 0 | |
5688 | ||
5689 | ; | |
5690 | return 0; | |
5691 | } | |
5692 | _ACEOF | |
5693 | rm -f conftest.$ac_objext | |
5694 | if { (ac_try="$ac_compile" | |
5695 | case "(($ac_try" in | |
5696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5697 | *) ac_try_echo=$ac_try;; | |
5698 | esac | |
5699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5700 | (eval "$ac_compile") 2>conftest.er1 | |
5701 | ac_status=$? | |
5702 | grep -v '^ *+' conftest.er1 >conftest.err | |
5703 | rm -f conftest.er1 | |
5704 | cat conftest.err >&5 | |
5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5706 | (exit $ac_status); } && { | |
5707 | test -z "$ac_c_werror_flag" || | |
5708 | test ! -s conftest.err | |
5709 | } && test -s conftest.$ac_objext; then | |
5710 | ac_hi=-1 ac_mid=-1 | |
5711 | while :; do | |
5712 | cat >conftest.$ac_ext <<_ACEOF | |
5713 | /* confdefs.h. */ | |
5714 | _ACEOF | |
5715 | cat confdefs.h >>conftest.$ac_ext | |
5716 | cat >>conftest.$ac_ext <<_ACEOF | |
5717 | /* end confdefs.h. */ | |
5718 | $ac_includes_default | |
5719 | typedef off_t ac__type_sizeof_; | |
5720 | int | |
5721 | main () | |
5722 | { | |
5723 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
5724 | test_array [0] = 0 | |
5725 | ||
5726 | ; | |
5727 | return 0; | |
5728 | } | |
5729 | _ACEOF | |
5730 | rm -f conftest.$ac_objext | |
5731 | if { (ac_try="$ac_compile" | |
5732 | case "(($ac_try" in | |
5733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5734 | *) ac_try_echo=$ac_try;; | |
5735 | esac | |
5736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5737 | (eval "$ac_compile") 2>conftest.er1 | |
5738 | ac_status=$? | |
5739 | grep -v '^ *+' conftest.er1 >conftest.err | |
5740 | rm -f conftest.er1 | |
5741 | cat conftest.err >&5 | |
5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5743 | (exit $ac_status); } && { | |
5744 | test -z "$ac_c_werror_flag" || | |
5745 | test ! -s conftest.err | |
5746 | } && test -s conftest.$ac_objext; then | |
5747 | ac_lo=$ac_mid; break | |
5748 | else | |
5749 | echo "$as_me: failed program was:" >&5 | |
5750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5751 | ||
5752 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
5753 | if test $ac_mid -le $ac_hi; then | |
5754 | ac_lo= ac_hi= | |
5755 | break | |
5756 | fi | |
5757 | ac_mid=`expr 2 '*' $ac_mid` | |
5758 | fi | |
5759 | ||
5760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5761 | done | |
5762 | else | |
5763 | echo "$as_me: failed program was:" >&5 | |
5764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5765 | ||
5766 | ac_lo= ac_hi= | |
5767 | fi | |
5768 | ||
5769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5770 | fi | |
5771 | ||
5772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5773 | # Binary search between lo and hi bounds. | |
5774 | while test "x$ac_lo" != "x$ac_hi"; do | |
5775 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5776 | cat >conftest.$ac_ext <<_ACEOF | |
5777 | /* confdefs.h. */ | |
5778 | _ACEOF | |
5779 | cat confdefs.h >>conftest.$ac_ext | |
5780 | cat >>conftest.$ac_ext <<_ACEOF | |
5781 | /* end confdefs.h. */ | |
5782 | $ac_includes_default | |
5783 | typedef off_t ac__type_sizeof_; | |
5784 | int | |
5785 | main () | |
5786 | { | |
5787 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
5788 | test_array [0] = 0 | |
5789 | ||
5790 | ; | |
5791 | return 0; | |
5792 | } | |
5793 | _ACEOF | |
5794 | rm -f conftest.$ac_objext | |
5795 | if { (ac_try="$ac_compile" | |
5796 | case "(($ac_try" in | |
5797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5798 | *) ac_try_echo=$ac_try;; | |
5799 | esac | |
5800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5801 | (eval "$ac_compile") 2>conftest.er1 | |
5802 | ac_status=$? | |
5803 | grep -v '^ *+' conftest.er1 >conftest.err | |
5804 | rm -f conftest.er1 | |
5805 | cat conftest.err >&5 | |
5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5807 | (exit $ac_status); } && { | |
5808 | test -z "$ac_c_werror_flag" || | |
5809 | test ! -s conftest.err | |
5810 | } && test -s conftest.$ac_objext; then | |
5811 | ac_hi=$ac_mid | |
5812 | else | |
5813 | echo "$as_me: failed program was:" >&5 | |
5814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5815 | ||
5816 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
5817 | fi | |
5818 | ||
5819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5820 | done | |
5821 | case $ac_lo in | |
5822 | ?*) ac_cv_sizeof_off_t=$ac_lo;; | |
5823 | '') if test "$ac_cv_type_off_t" = yes; then | |
5824 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) | |
5825 | See \`config.log' for more details." >&5 | |
5826 | echo "$as_me: error: cannot compute sizeof (off_t) | |
5827 | See \`config.log' for more details." >&2;} | |
5828 | { (exit 77); exit 77; }; } | |
5829 | else | |
5830 | ac_cv_sizeof_off_t=0 | |
5831 | fi ;; | |
5832 | esac | |
5833 | else | |
5834 | cat >conftest.$ac_ext <<_ACEOF | |
5835 | /* confdefs.h. */ | |
5836 | _ACEOF | |
5837 | cat confdefs.h >>conftest.$ac_ext | |
5838 | cat >>conftest.$ac_ext <<_ACEOF | |
5839 | /* end confdefs.h. */ | |
5840 | $ac_includes_default | |
5841 | typedef off_t ac__type_sizeof_; | |
5842 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5843 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5844 | #include <stdio.h> | |
5845 | #include <stdlib.h> | |
5846 | int | |
5847 | main () | |
5848 | { | |
5849 | ||
5850 | FILE *f = fopen ("conftest.val", "w"); | |
5851 | if (! f) | |
5852 | return 1; | |
5853 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
5854 | { | |
5855 | long int i = longval (); | |
5856 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5857 | return 1; | |
5858 | fprintf (f, "%ld\n", i); | |
5859 | } | |
5860 | else | |
5861 | { | |
5862 | unsigned long int i = ulongval (); | |
5863 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5864 | return 1; | |
5865 | fprintf (f, "%lu\n", i); | |
5866 | } | |
5867 | return ferror (f) || fclose (f) != 0; | |
5868 | ||
5869 | ; | |
5870 | return 0; | |
5871 | } | |
5872 | _ACEOF | |
5873 | rm -f conftest$ac_exeext | |
5874 | if { (ac_try="$ac_link" | |
5875 | case "(($ac_try" in | |
5876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5877 | *) ac_try_echo=$ac_try;; | |
5878 | esac | |
5879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5880 | (eval "$ac_link") 2>&5 | |
5881 | ac_status=$? | |
5882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5883 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5884 | { (case "(($ac_try" in | |
5885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5886 | *) ac_try_echo=$ac_try;; | |
5887 | esac | |
5888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5889 | (eval "$ac_try") 2>&5 | |
5890 | ac_status=$? | |
5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5892 | (exit $ac_status); }; }; then | |
5893 | ac_cv_sizeof_off_t=`cat conftest.val` | |
5894 | else | |
5895 | echo "$as_me: program exited with status $ac_status" >&5 | |
5896 | echo "$as_me: failed program was:" >&5 | |
5897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5898 | ||
5899 | ( exit $ac_status ) | |
5900 | if test "$ac_cv_type_off_t" = yes; then | |
5901 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) | |
5902 | See \`config.log' for more details." >&5 | |
5903 | echo "$as_me: error: cannot compute sizeof (off_t) | |
5904 | See \`config.log' for more details." >&2;} | |
5905 | { (exit 77); exit 77; }; } | |
5906 | else | |
5907 | ac_cv_sizeof_off_t=0 | |
5908 | fi | |
5909 | fi | |
5910 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5911 | fi | |
5912 | rm -f conftest.val | |
5913 | fi | |
5914 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 | |
5915 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } | |
5916 | ||
5917 | ||
5918 | ||
5919 | cat >>confdefs.h <<_ACEOF | |
5920 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | |
5921 | _ACEOF | |
5922 | ||
5923 | ||
5924 | if test $ac_cv_sizeof_off_t = "4"; then | |
5925 | ||
5926 | cat >>confdefs.h <<\_ACEOF | |
5927 | #define OFFSET_STRING "%d" | |
5928 | _ACEOF | |
5929 | ||
5930 | elif test $ac_cv_sizeof_off_t = "8"; then | |
5931 | ||
5932 | cat >>confdefs.h <<\_ACEOF | |
5933 | #define OFFSET_STRING "%lli" | |
5934 | _ACEOF | |
5935 | ||
5936 | else | |
5937 | { { echo "$as_me:$LINENO: error: can not detect the size of your system\'s off_t type" >&5 | |
5938 | echo "$as_me: error: can not detect the size of your system\'s off_t type" >&2;} | |
5939 | { (exit 1); exit 1; }; } | |
5940 | fi | |
5941 | ||
5942 | { echo "$as_me:$LINENO: checking for rlim_t" >&5 | |
5943 | echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6; } | |
5944 | if test "${ac_cv_type_rlim_t+set}" = set; then | |
5945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5946 | else | |
5947 | cat >conftest.$ac_ext <<_ACEOF | |
5948 | /* confdefs.h. */ | |
5949 | _ACEOF | |
5950 | cat confdefs.h >>conftest.$ac_ext | |
5951 | cat >>conftest.$ac_ext <<_ACEOF | |
5952 | /* end confdefs.h. */ | |
5953 | #if HAVE_SYS_RESOURCE_H | |
5954 | #include <sys/resource.h> | |
5955 | #endif | |
5956 | ||
5957 | ||
5958 | typedef rlim_t ac__type_new_; | |
d6e703cc FM |
5959 | int |
5960 | main () | |
5961 | { | |
0743911c | 5962 | if ((ac__type_new_ *) 0) |
d6e703cc | 5963 | return 0; |
0743911c | 5964 | if (sizeof (ac__type_new_)) |
d6e703cc FM |
5965 | return 0; |
5966 | ; | |
5967 | return 0; | |
5968 | } | |
25697a35 | 5969 | _ACEOF |
d6e703cc | 5970 | rm -f conftest.$ac_objext |
0743911c FM |
5971 | if { (ac_try="$ac_compile" |
5972 | case "(($ac_try" in | |
5973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5974 | *) ac_try_echo=$ac_try;; | |
5975 | esac | |
5976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5977 | (eval "$ac_compile") 2>conftest.er1 | |
25697a35 GS |
5978 | ac_status=$? |
5979 | grep -v '^ *+' conftest.er1 >conftest.err | |
5980 | rm -f conftest.er1 | |
5981 | cat conftest.err >&5 | |
5982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
5983 | (exit $ac_status); } && { |
5984 | test -z "$ac_c_werror_flag" || | |
5985 | test ! -s conftest.err | |
5986 | } && test -s conftest.$ac_objext; then | |
32e71fa4 | 5987 | ac_cv_type_rlim_t=yes |
25697a35 GS |
5988 | else |
5989 | echo "$as_me: failed program was:" >&5 | |
5990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5991 | ||
32e71fa4 | 5992 | ac_cv_type_rlim_t=no |
25697a35 | 5993 | fi |
0743911c FM |
5994 | |
5995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25697a35 | 5996 | fi |
32e71fa4 FM |
5997 | { echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
5998 | echo "${ECHO_T}$ac_cv_type_rlim_t" >&6; } | |
25697a35 | 5999 | |
0743911c FM |
6000 | # The cast to long int works around a bug in the HP C Compiler |
6001 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6002 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6003 | # This bug is HP SR number 8606223364. | |
32e71fa4 FM |
6004 | { echo "$as_me:$LINENO: checking size of rlim_t" >&5 |
6005 | echo $ECHO_N "checking size of rlim_t... $ECHO_C" >&6; } | |
6006 | if test "${ac_cv_sizeof_rlim_t+set}" = set; then | |
25697a35 GS |
6007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6008 | else | |
d6e703cc FM |
6009 | if test "$cross_compiling" = yes; then |
6010 | # Depending upon the size, compute the lo and hi bounds. | |
25697a35 GS |
6011 | cat >conftest.$ac_ext <<_ACEOF |
6012 | /* confdefs.h. */ | |
6013 | _ACEOF | |
6014 | cat confdefs.h >>conftest.$ac_ext | |
6015 | cat >>conftest.$ac_ext <<_ACEOF | |
6016 | /* end confdefs.h. */ | |
32e71fa4 FM |
6017 | #if HAVE_SYS_RESOURCE_H |
6018 | #include <sys/resource.h> | |
6019 | #endif | |
6020 | ||
6021 | ||
6022 | typedef rlim_t ac__type_sizeof_; | |
d6e703cc FM |
6023 | int |
6024 | main () | |
6025 | { | |
0743911c | 6026 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
d6e703cc FM |
6027 | test_array [0] = 0 |
6028 | ||
6029 | ; | |
6030 | return 0; | |
6031 | } | |
6032 | _ACEOF | |
6033 | rm -f conftest.$ac_objext | |
0743911c FM |
6034 | if { (ac_try="$ac_compile" |
6035 | case "(($ac_try" in | |
6036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6037 | *) ac_try_echo=$ac_try;; | |
6038 | esac | |
6039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6040 | (eval "$ac_compile") 2>conftest.er1 | |
d6e703cc FM |
6041 | ac_status=$? |
6042 | grep -v '^ *+' conftest.er1 >conftest.err | |
6043 | rm -f conftest.er1 | |
6044 | cat conftest.err >&5 | |
6045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
6046 | (exit $ac_status); } && { |
6047 | test -z "$ac_c_werror_flag" || | |
6048 | test ! -s conftest.err | |
6049 | } && test -s conftest.$ac_objext; then | |
d6e703cc FM |
6050 | ac_lo=0 ac_mid=0 |
6051 | while :; do | |
6052 | cat >conftest.$ac_ext <<_ACEOF | |
6053 | /* confdefs.h. */ | |
6054 | _ACEOF | |
6055 | cat confdefs.h >>conftest.$ac_ext | |
6056 | cat >>conftest.$ac_ext <<_ACEOF | |
6057 | /* end confdefs.h. */ | |
32e71fa4 FM |
6058 | #if HAVE_SYS_RESOURCE_H |
6059 | #include <sys/resource.h> | |
6060 | #endif | |
6061 | ||
6062 | ||
6063 | typedef rlim_t ac__type_sizeof_; | |
25697a35 GS |
6064 | int |
6065 | main () | |
6066 | { | |
0743911c | 6067 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
d6e703cc FM |
6068 | test_array [0] = 0 |
6069 | ||
25697a35 GS |
6070 | ; |
6071 | return 0; | |
6072 | } | |
6073 | _ACEOF | |
d6e703cc | 6074 | rm -f conftest.$ac_objext |
0743911c FM |
6075 | if { (ac_try="$ac_compile" |
6076 | case "(($ac_try" in | |
6077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6078 | *) ac_try_echo=$ac_try;; | |
6079 | esac | |
6080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6081 | (eval "$ac_compile") 2>conftest.er1 | |
25697a35 GS |
6082 | ac_status=$? |
6083 | grep -v '^ *+' conftest.er1 >conftest.err | |
6084 | rm -f conftest.er1 | |
6085 | cat conftest.err >&5 | |
6086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
6087 | (exit $ac_status); } && { |
6088 | test -z "$ac_c_werror_flag" || | |
6089 | test ! -s conftest.err | |
6090 | } && test -s conftest.$ac_objext; then | |
d6e703cc | 6091 | ac_hi=$ac_mid; break |
25697a35 GS |
6092 | else |
6093 | echo "$as_me: failed program was:" >&5 | |
6094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6095 | ||
0743911c FM |
6096 | ac_lo=`expr $ac_mid + 1` |
6097 | if test $ac_lo -le $ac_mid; then | |
6098 | ac_lo= ac_hi= | |
6099 | break | |
6100 | fi | |
6101 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
25697a35 | 6102 | fi |
0743911c FM |
6103 | |
6104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc | 6105 | done |
25697a35 | 6106 | else |
d6e703cc FM |
6107 | echo "$as_me: failed program was:" >&5 |
6108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25697a35 | 6109 | |
0743911c | 6110 | cat >conftest.$ac_ext <<_ACEOF |
25697a35 GS |
6111 | /* confdefs.h. */ |
6112 | _ACEOF | |
6113 | cat confdefs.h >>conftest.$ac_ext | |
6114 | cat >>conftest.$ac_ext <<_ACEOF | |
6115 | /* end confdefs.h. */ | |
32e71fa4 FM |
6116 | #if HAVE_SYS_RESOURCE_H |
6117 | #include <sys/resource.h> | |
6118 | #endif | |
6119 | ||
6120 | ||
6121 | typedef rlim_t ac__type_sizeof_; | |
25697a35 GS |
6122 | int |
6123 | main () | |
6124 | { | |
0743911c | 6125 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
d6e703cc | 6126 | test_array [0] = 0 |
25697a35 | 6127 | |
d6e703cc FM |
6128 | ; |
6129 | return 0; | |
6130 | } | |
6131 | _ACEOF | |
6132 | rm -f conftest.$ac_objext | |
0743911c FM |
6133 | if { (ac_try="$ac_compile" |
6134 | case "(($ac_try" in | |
6135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6136 | *) ac_try_echo=$ac_try;; | |
6137 | esac | |
6138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6139 | (eval "$ac_compile") 2>conftest.er1 | |
d6e703cc FM |
6140 | ac_status=$? |
6141 | grep -v '^ *+' conftest.er1 >conftest.err | |
6142 | rm -f conftest.er1 | |
6143 | cat conftest.err >&5 | |
6144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
6145 | (exit $ac_status); } && { |
6146 | test -z "$ac_c_werror_flag" || | |
6147 | test ! -s conftest.err | |
6148 | } && test -s conftest.$ac_objext; then | |
d6e703cc FM |
6149 | ac_hi=-1 ac_mid=-1 |
6150 | while :; do | |
6151 | cat >conftest.$ac_ext <<_ACEOF | |
6152 | /* confdefs.h. */ | |
6153 | _ACEOF | |
6154 | cat confdefs.h >>conftest.$ac_ext | |
6155 | cat >>conftest.$ac_ext <<_ACEOF | |
6156 | /* end confdefs.h. */ | |
32e71fa4 FM |
6157 | #if HAVE_SYS_RESOURCE_H |
6158 | #include <sys/resource.h> | |
6159 | #endif | |
6160 | ||
6161 | ||
6162 | typedef rlim_t ac__type_sizeof_; | |
d6e703cc FM |
6163 | int |
6164 | main () | |
6165 | { | |
0743911c | 6166 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
d6e703cc | 6167 | test_array [0] = 0 |
25697a35 GS |
6168 | |
6169 | ; | |
6170 | return 0; | |
6171 | } | |
6172 | _ACEOF | |
6173 | rm -f conftest.$ac_objext | |
0743911c FM |
6174 | if { (ac_try="$ac_compile" |
6175 | case "(($ac_try" in | |
6176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6177 | *) ac_try_echo=$ac_try;; | |
6178 | esac | |
6179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6180 | (eval "$ac_compile") 2>conftest.er1 | |
25697a35 GS |
6181 | ac_status=$? |
6182 | grep -v '^ *+' conftest.er1 >conftest.err | |
6183 | rm -f conftest.er1 | |
6184 | cat conftest.err >&5 | |
6185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
6186 | (exit $ac_status); } && { |
6187 | test -z "$ac_c_werror_flag" || | |
6188 | test ! -s conftest.err | |
6189 | } && test -s conftest.$ac_objext; then | |
d6e703cc | 6190 | ac_lo=$ac_mid; break |
25697a35 GS |
6191 | else |
6192 | echo "$as_me: failed program was:" >&5 | |
6193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6194 | ||
0743911c FM |
6195 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6196 | if test $ac_mid -le $ac_hi; then | |
6197 | ac_lo= ac_hi= | |
6198 | break | |
6199 | fi | |
6200 | ac_mid=`expr 2 '*' $ac_mid` | |
25697a35 | 6201 | fi |
0743911c FM |
6202 | |
6203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc FM |
6204 | done |
6205 | else | |
6206 | echo "$as_me: failed program was:" >&5 | |
6207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25697a35 | 6208 | |
0743911c | 6209 | ac_lo= ac_hi= |
25697a35 | 6210 | fi |
0743911c FM |
6211 | |
6212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc | 6213 | fi |
0743911c FM |
6214 | |
6215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc FM |
6216 | # Binary search between lo and hi bounds. |
6217 | while test "x$ac_lo" != "x$ac_hi"; do | |
6218 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
25697a35 GS |
6219 | cat >conftest.$ac_ext <<_ACEOF |
6220 | /* confdefs.h. */ | |
6221 | _ACEOF | |
6222 | cat confdefs.h >>conftest.$ac_ext | |
6223 | cat >>conftest.$ac_ext <<_ACEOF | |
6224 | /* end confdefs.h. */ | |
32e71fa4 FM |
6225 | #if HAVE_SYS_RESOURCE_H |
6226 | #include <sys/resource.h> | |
6227 | #endif | |
6228 | ||
6229 | ||
6230 | typedef rlim_t ac__type_sizeof_; | |
25697a35 GS |
6231 | int |
6232 | main () | |
6233 | { | |
0743911c | 6234 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
d6e703cc FM |
6235 | test_array [0] = 0 |
6236 | ||
25697a35 GS |
6237 | ; |
6238 | return 0; | |
6239 | } | |
6240 | _ACEOF | |
6241 | rm -f conftest.$ac_objext | |
0743911c FM |
6242 | if { (ac_try="$ac_compile" |
6243 | case "(($ac_try" in | |
6244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6245 | *) ac_try_echo=$ac_try;; | |
6246 | esac | |
6247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6248 | (eval "$ac_compile") 2>conftest.er1 | |
25697a35 GS |
6249 | ac_status=$? |
6250 | grep -v '^ *+' conftest.er1 >conftest.err | |
6251 | rm -f conftest.er1 | |
6252 | cat conftest.err >&5 | |
6253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0743911c FM |
6254 | (exit $ac_status); } && { |
6255 | test -z "$ac_c_werror_flag" || | |
6256 | test ! -s conftest.err | |
6257 | } && test -s conftest.$ac_objext; then | |
d6e703cc | 6258 | ac_hi=$ac_mid |
25697a35 GS |
6259 | else |
6260 | echo "$as_me: failed program was:" >&5 | |
6261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6262 | ||
0743911c | 6263 | ac_lo=`expr '(' $ac_mid ')' + 1` |
25697a35 | 6264 | fi |
0743911c FM |
6265 | |
6266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc FM |
6267 | done |
6268 | case $ac_lo in | |
32e71fa4 FM |
6269 | ?*) ac_cv_sizeof_rlim_t=$ac_lo;; |
6270 | '') if test "$ac_cv_type_rlim_t" = yes; then | |
6271 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t) | |
d6e703cc | 6272 | See \`config.log' for more details." >&5 |
32e71fa4 | 6273 | echo "$as_me: error: cannot compute sizeof (rlim_t) |
d6e703cc | 6274 | See \`config.log' for more details." >&2;} |
0743911c FM |
6275 | { (exit 77); exit 77; }; } |
6276 | else | |
32e71fa4 | 6277 | ac_cv_sizeof_rlim_t=0 |
0743911c | 6278 | fi ;; |
d6e703cc | 6279 | esac |
d6e703cc FM |
6280 | else |
6281 | cat >conftest.$ac_ext <<_ACEOF | |
6282 | /* confdefs.h. */ | |
6283 | _ACEOF | |
6284 | cat confdefs.h >>conftest.$ac_ext | |
6285 | cat >>conftest.$ac_ext <<_ACEOF | |
6286 | /* end confdefs.h. */ | |
32e71fa4 FM |
6287 | #if HAVE_SYS_RESOURCE_H |
6288 | #include <sys/resource.h> | |
6289 | #endif | |
6290 | ||
6291 | ||
6292 | typedef rlim_t ac__type_sizeof_; | |
0743911c FM |
6293 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
6294 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
d6e703cc FM |
6295 | #include <stdio.h> |
6296 | #include <stdlib.h> | |
6297 | int | |
6298 | main () | |
6299 | { | |
6300 | ||
6301 | FILE *f = fopen ("conftest.val", "w"); | |
6302 | if (! f) | |
0743911c FM |
6303 | return 1; |
6304 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
d6e703cc | 6305 | { |
0743911c FM |
6306 | long int i = longval (); |
6307 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6308 | return 1; | |
d6e703cc FM |
6309 | fprintf (f, "%ld\n", i); |
6310 | } | |
6311 | else | |
6312 | { | |
0743911c FM |
6313 | unsigned long int i = ulongval (); |
6314 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6315 | return 1; | |
d6e703cc FM |
6316 | fprintf (f, "%lu\n", i); |
6317 | } | |
0743911c | 6318 | return ferror (f) || fclose (f) != 0; |
d6e703cc FM |
6319 | |
6320 | ; | |
6321 | return 0; | |
6322 | } | |
6323 | _ACEOF | |
6324 | rm -f conftest$ac_exeext | |
0743911c FM |
6325 | if { (ac_try="$ac_link" |
6326 | case "(($ac_try" in | |
6327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6328 | *) ac_try_echo=$ac_try;; | |
6329 | esac | |
6330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6331 | (eval "$ac_link") 2>&5 | |
d6e703cc FM |
6332 | ac_status=$? |
6333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6334 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
0743911c FM |
6335 | { (case "(($ac_try" in |
6336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6337 | *) ac_try_echo=$ac_try;; | |
6338 | esac | |
6339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6340 | (eval "$ac_try") 2>&5 | |
d6e703cc FM |
6341 | ac_status=$? |
6342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6343 | (exit $ac_status); }; }; then | |
32e71fa4 | 6344 | ac_cv_sizeof_rlim_t=`cat conftest.val` |
d6e703cc FM |
6345 | else |
6346 | echo "$as_me: program exited with status $ac_status" >&5 | |
6347 | echo "$as_me: failed program was:" >&5 | |
6348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6349 | ||
6350 | ( exit $ac_status ) | |
32e71fa4 FM |
6351 | if test "$ac_cv_type_rlim_t" = yes; then |
6352 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t) | |
d6e703cc | 6353 | See \`config.log' for more details." >&5 |
32e71fa4 | 6354 | echo "$as_me: error: cannot compute sizeof (rlim_t) |
d6e703cc | 6355 | See \`config.log' for more details." >&2;} |
0743911c FM |
6356 | { (exit 77); exit 77; }; } |
6357 | else | |
32e71fa4 | 6358 | ac_cv_sizeof_rlim_t=0 |
0743911c | 6359 | fi |
d6e703cc | 6360 | fi |
0743911c | 6361 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d6e703cc FM |
6362 | fi |
6363 | rm -f conftest.val | |
d6e703cc | 6364 | fi |
32e71fa4 FM |
6365 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_rlim_t" >&5 |
6366 | echo "${ECHO_T}$ac_cv_sizeof_rlim_t" >&6; } | |
0743911c FM |
6367 | |
6368 | ||
6369 | ||
d6e703cc | 6370 | cat >>confdefs.h <<_ACEOF |
32e71fa4 | 6371 | #define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t |
d6e703cc FM |
6372 | _ACEOF |
6373 | ||
6374 | ||
32e71fa4 | 6375 | if test $ac_cv_sizeof_rlim_t = "4"; then |
25697a35 GS |
6376 | |
6377 | cat >>confdefs.h <<\_ACEOF | |
32e71fa4 | 6378 | #define RLIM_STRING "%d" |
25697a35 GS |
6379 | _ACEOF |
6380 | ||
32e71fa4 | 6381 | elif test $ac_cv_sizeof_rlim_t = "8"; then |
d6e703cc FM |
6382 | |
6383 | cat >>confdefs.h <<\_ACEOF | |
32e71fa4 | 6384 | #define RLIM_STRING "%lli" |
d6e703cc | 6385 | _ACEOF |
25697a35 | 6386 | |
d6e703cc | 6387 | else |
32e71fa4 FM |
6388 | { { echo "$as_me:$LINENO: error: can not detect the size of your system\'s rlim_t type" >&5 |
6389 | echo "$as_me: error: can not detect the size of your system\'s rlim_t type" >&2;} | |
d6e703cc FM |
6390 | { (exit 1); exit 1; }; } |
6391 | fi | |
25697a35 | 6392 | |
0743911c | 6393 | # Check whether --enable-bindir was given. |
25697a35 | 6394 | if test "${enable_bindir+set}" = set; then |
0743911c | 6395 | enableval=$enable_bindir; |
25697a35 GS |
6396 | if test "$enableval"; then |
6397 | BINDIR=$enableval | |
6398 | fi | |
6399 | ||
6400 | else | |
6401 | BINDIR="/usr/bin" | |
0743911c FM |
6402 | fi |
6403 | ||
25697a35 GS |
6404 | echo "using $BINDIR as the SARG binary" |
6405 | ||
6406 | ||
0743911c | 6407 | # Check whether --enable-mandir was given. |
25697a35 | 6408 | if test "${enable_mandir+set}" = set; then |
0743911c | 6409 | enableval=$enable_mandir; |
25697a35 GS |
6410 | if test "$enableval"; then |
6411 | MANDIR=$enableval | |
6412 | fi | |
6413 | ||
6414 | else | |
6415 | MANDIR="/usr/local/man/man1" | |
0743911c FM |
6416 | fi |
6417 | ||
25697a35 GS |
6418 | echo "using $MANDIR as the SARG man page" |
6419 | ||
6420 | ||
0743911c | 6421 | # Check whether --enable-sysconfdir was given. |
25697a35 | 6422 | if test "${enable_sysconfdir+set}" = set; then |
0743911c | 6423 | enableval=$enable_sysconfdir; |
25697a35 GS |
6424 | if test "$enableval"; then |
6425 | SYSCONFDIR=$enableval | |
6426 | fi | |
6427 | ||
6428 | else | |
6429 | SYSCONFDIR="/usr/local/sarg" | |
0743911c FM |
6430 | fi |
6431 | ||
25697a35 GS |
6432 | echo "using $SYSCONFDIR as the SARG configuration dir" |
6433 | ||
6434 | ||
0743911c | 6435 | # Check whether --enable-htmldir was given. |
25697a35 | 6436 | if test "${enable_htmldir+set}" = set; then |
0743911c | 6437 | enableval=$enable_htmldir; |
25697a35 GS |
6438 | if test "$enableval"; then |
6439 | HTMLDIR=$enableval | |
6440 | fi | |
6441 | ||
6442 | else | |
6443 | HTMLDIR="/var/www/html" | |
0743911c FM |
6444 | fi |
6445 | ||
25697a35 GS |
6446 | echo "using $HTMLDIR as the WWW Document Root dir" |
6447 | ||
6448 | ||
6449 | ||
0743911c FM |
6450 | ac_config_files="$ac_config_files Makefile" |
6451 | ||
25697a35 GS |
6452 | cat >confcache <<\_ACEOF |
6453 | # This file is a shell script that caches the results of configure | |
6454 | # tests run on this system so they can be shared between configure | |
6455 | # scripts and configure runs, see configure's option --config-cache. | |
6456 | # It is not useful on other systems. If it contains results you don't | |
6457 | # want to keep, you may remove or edit it. | |
6458 | # | |
6459 | # config.status only pays attention to the cache file if you give it | |
6460 | # the --recheck option to rerun configure. | |
6461 | # | |
6462 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
6463 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6464 | # following values. | |
6465 | ||
6466 | _ACEOF | |
6467 | ||
6468 | # The following way of writing the cache mishandles newlines in values, | |
6469 | # but we know of no workaround that is simple, portable, and efficient. | |
0743911c | 6470 | # So, we kill variables containing newlines. |
25697a35 GS |
6471 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6472 | # and sets the high bit in the cache file unless we assign to the vars. | |
0743911c FM |
6473 | ( |
6474 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
6475 | eval ac_val=\$$ac_var | |
6476 | case $ac_val in #( | |
6477 | *${as_nl}*) | |
6478 | case $ac_var in #( | |
6479 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
6480 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
6481 | esac | |
6482 | case $ac_var in #( | |
6483 | _ | IFS | as_nl) ;; #( | |
6484 | *) $as_unset $ac_var ;; | |
6485 | esac ;; | |
6486 | esac | |
6487 | done | |
6488 | ||
6489 | (set) 2>&1 | | |
6490 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
6491 | *${as_nl}ac_space=\ *) | |
6492 | # `set' does not quote correctly, so add quotes (double-quote | |
6493 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
25697a35 GS |
6494 | sed -n \ |
6495 | "s/'/'\\\\''/g; | |
6496 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
0743911c | 6497 | ;; #( |
25697a35 GS |
6498 | *) |
6499 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
0743911c | 6500 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
25697a35 | 6501 | ;; |
0743911c FM |
6502 | esac | |
6503 | sort | |
6504 | ) | | |
25697a35 | 6505 | sed ' |
0743911c | 6506 | /^ac_cv_env_/b end |
25697a35 | 6507 | t clear |
0743911c | 6508 | :clear |
25697a35 GS |
6509 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6510 | t end | |
0743911c FM |
6511 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6512 | :end' >>confcache | |
6513 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6514 | if test -w "$cache_file"; then | |
6515 | test "x$cache_file" != "x/dev/null" && | |
6516 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
6517 | echo "$as_me: updating cache $cache_file" >&6;} | |
25697a35 GS |
6518 | cat confcache >$cache_file |
6519 | else | |
0743911c FM |
6520 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
6521 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
25697a35 GS |
6522 | fi |
6523 | fi | |
6524 | rm -f confcache | |
6525 | ||
6526 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6527 | # Let make expand exec_prefix. | |
6528 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6529 | ||
25697a35 GS |
6530 | # Transform confdefs.h into DEFS. |
6531 | # Protect against shell expansion while executing Makefile rules. | |
6532 | # Protect against Makefile macro expansion. | |
6533 | # | |
6534 | # If the first sed substitution is executed (which looks for macros that | |
0743911c | 6535 | # take arguments), then branch to the quote section. Otherwise, |
25697a35 | 6536 | # look for a macro that doesn't take arguments. |
0743911c | 6537 | ac_script=' |
25697a35 | 6538 | t clear |
0743911c FM |
6539 | :clear |
6540 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
25697a35 | 6541 | t quote |
0743911c | 6542 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
25697a35 | 6543 | t quote |
0743911c FM |
6544 | b any |
6545 | :quote | |
6546 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
6547 | s/\[/\\&/g | |
6548 | s/\]/\\&/g | |
6549 | s/\$/$$/g | |
6550 | H | |
6551 | :any | |
6552 | ${ | |
6553 | g | |
6554 | s/^\n// | |
6555 | s/\n/ /g | |
6556 | p | |
6557 | } | |
6558 | ' | |
6559 | DEFS=`sed -n "$ac_script" confdefs.h` | |
25697a35 GS |
6560 | |
6561 | ||
6562 | ac_libobjs= | |
6563 | ac_ltlibobjs= | |
6564 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6565 | # 1. Remove the extension, and $U if already installed. | |
0743911c FM |
6566 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
6567 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
6568 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
6569 | # will be set to the directory where LIBOBJS objects are built. | |
6570 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
6571 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
25697a35 GS |
6572 | done |
6573 | LIBOBJS=$ac_libobjs | |
6574 | ||
6575 | LTLIBOBJS=$ac_ltlibobjs | |
6576 | ||
6577 | ||
6578 | ||
6579 | : ${CONFIG_STATUS=./config.status} | |
6580 | ac_clean_files_save=$ac_clean_files | |
6581 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
6582 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
6583 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6584 | cat >$CONFIG_STATUS <<_ACEOF | |
6585 | #! $SHELL | |
6586 | # Generated by $as_me. | |
6587 | # Run this file to recreate the current configuration. | |
6588 | # Compiler output produced by configure, useful for debugging | |
6589 | # configure, is in config.log if it exists. | |
6590 | ||
6591 | debug=false | |
6592 | ac_cs_recheck=false | |
6593 | ac_cs_silent=false | |
6594 | SHELL=\${CONFIG_SHELL-$SHELL} | |
6595 | _ACEOF | |
6596 | ||
6597 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6598 | ## --------------------- ## | |
6599 | ## M4sh Initialization. ## | |
6600 | ## --------------------- ## | |
6601 | ||
0743911c FM |
6602 | # Be more Bourne compatible |
6603 | DUALCASE=1; export DUALCASE # for MKS sh | |
25697a35 GS |
6604 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
6605 | emulate sh | |
6606 | NULLCMD=: | |
6607 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
6608 | # is contrary to our usage. Disable this feature. | |
6609 | alias -g '${1+"$@"}'='"$@"' | |
0743911c FM |
6610 | setopt NO_GLOB_SUBST |
6611 | else | |
6612 | case `(set -o) 2>/dev/null` in | |
6613 | *posix*) set -o posix ;; | |
6614 | esac | |
6615 | ||
6616 | fi | |
6617 | ||
6618 | ||
6619 | ||
6620 | ||
6621 | # PATH needs CR | |
6622 | # Avoid depending upon Character Ranges. | |
6623 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6624 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6625 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6626 | as_cr_digits='0123456789' | |
6627 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6628 | ||
6629 | # The user is always right. | |
6630 | if test "${PATH_SEPARATOR+set}" != set; then | |
6631 | echo "#! /bin/sh" >conf$$.sh | |
6632 | echo "exit 0" >>conf$$.sh | |
6633 | chmod +x conf$$.sh | |
6634 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6635 | PATH_SEPARATOR=';' | |
6636 | else | |
6637 | PATH_SEPARATOR=: | |
6638 | fi | |
6639 | rm -f conf$$.sh | |
25697a35 | 6640 | fi |
25697a35 GS |
6641 | |
6642 | # Support unset when possible. | |
6643 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6644 | as_unset=unset | |
6645 | else | |
6646 | as_unset=false | |
6647 | fi | |
6648 | ||
6649 | ||
0743911c FM |
6650 | # IFS |
6651 | # We need space, tab and new line, in precisely that order. Quoting is | |
6652 | # there to prevent editors from complaining about space-tab. | |
6653 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6654 | # splitting by setting IFS to empty value.) | |
6655 | as_nl=' | |
6656 | ' | |
6657 | IFS=" "" $as_nl" | |
6658 | ||
6659 | # Find who we are. Look in the path if we contain no directory separator. | |
6660 | case $0 in | |
6661 | *[\\/]* ) as_myself=$0 ;; | |
6662 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6663 | for as_dir in $PATH | |
6664 | do | |
6665 | IFS=$as_save_IFS | |
6666 | test -z "$as_dir" && as_dir=. | |
6667 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6668 | done | |
6669 | IFS=$as_save_IFS | |
6670 | ||
6671 | ;; | |
6672 | esac | |
6673 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6674 | # in which case we are not to be found in the path. | |
6675 | if test "x$as_myself" = x; then | |
6676 | as_myself=$0 | |
6677 | fi | |
6678 | if test ! -f "$as_myself"; then | |
6679 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
6680 | { (exit 1); exit 1; } | |
6681 | fi | |
6682 | ||
25697a35 | 6683 | # Work around bugs in pre-3.0 UWIN ksh. |
0743911c FM |
6684 | for as_var in ENV MAIL MAILPATH |
6685 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
6686 | done | |
25697a35 GS |
6687 | PS1='$ ' |
6688 | PS2='> ' | |
6689 | PS4='+ ' | |
6690 | ||
6691 | # NLS nuisances. | |
6692 | for as_var in \ | |
6693 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
6694 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
6695 | LC_TELEPHONE LC_TIME | |
6696 | do | |
6697 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
6698 | eval $as_var=C; export $as_var | |
6699 | else | |
0743911c | 6700 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
25697a35 GS |
6701 | fi |
6702 | done | |
6703 | ||
6704 | # Required to use basename. | |
0743911c FM |
6705 | if expr a : '\(a\)' >/dev/null 2>&1 && |
6706 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25697a35 GS |
6707 | as_expr=expr |
6708 | else | |
6709 | as_expr=false | |
6710 | fi | |
6711 | ||
0743911c | 6712 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
25697a35 GS |
6713 | as_basename=basename |
6714 | else | |
6715 | as_basename=false | |
6716 | fi | |
6717 | ||
6718 | ||
6719 | # Name of the executable. | |
0743911c | 6720 | as_me=`$as_basename -- "$0" || |
25697a35 GS |
6721 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6722 | X"$0" : 'X\(//\)$' \| \ | |
0743911c | 6723 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
25697a35 | 6724 | echo X/"$0" | |
0743911c FM |
6725 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
6726 | s//\1/ | |
6727 | q | |
6728 | } | |
6729 | /^X\/\(\/\/\)$/{ | |
6730 | s//\1/ | |
6731 | q | |
6732 | } | |
6733 | /^X\/\(\/\).*/{ | |
6734 | s//\1/ | |
6735 | q | |
6736 | } | |
6737 | s/.*/./; q'` | |
25697a35 | 6738 | |
0743911c FM |
6739 | # CDPATH. |
6740 | $as_unset CDPATH | |
25697a35 | 6741 | |
25697a35 GS |
6742 | |
6743 | ||
6744 | as_lineno_1=$LINENO | |
6745 | as_lineno_2=$LINENO | |
25697a35 | 6746 | test "x$as_lineno_1" != "x$as_lineno_2" && |
0743911c | 6747 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
25697a35 GS |
6748 | |
6749 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
6750 | # uniformly replaced by the line number. The first 'sed' inserts a | |
0743911c FM |
6751 | # line-number line after each line using $LINENO; the second 'sed' |
6752 | # does the real work. The second script uses 'N' to pair each | |
6753 | # line-number line with the line containing $LINENO, and appends | |
6754 | # trailing '-' during substitution so that $LINENO is not a special | |
6755 | # case at line end. | |
25697a35 | 6756 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
0743911c FM |
6757 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
6758 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
6759 | sed -n ' | |
6760 | p | |
6761 | /[$]LINENO/= | |
6762 | ' <$as_myself | | |
25697a35 | 6763 | sed ' |
0743911c FM |
6764 | s/[$]LINENO.*/&-/ |
6765 | t lineno | |
6766 | b | |
6767 | :lineno | |
25697a35 | 6768 | N |
0743911c FM |
6769 | :loop |
6770 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
25697a35 | 6771 | t loop |
0743911c | 6772 | s/-\n.*// |
25697a35 | 6773 | ' >$as_me.lineno && |
0743911c FM |
6774 | chmod +x "$as_me.lineno" || |
6775 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
25697a35 GS |
6776 | { (exit 1); exit 1; }; } |
6777 | ||
6778 | # Don't try to exec as it changes $[0], causing all sort of problems | |
6779 | # (the dirname of $[0] is not the place where we might find the | |
0743911c FM |
6780 | # original and so on. Autoconf is especially sensitive to this). |
6781 | . "./$as_me.lineno" | |
25697a35 GS |
6782 | # Exit status is that of the last command. |
6783 | exit | |
6784 | } | |
6785 | ||
6786 | ||
0743911c FM |
6787 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
6788 | as_dirname=dirname | |
6789 | else | |
6790 | as_dirname=false | |
6791 | fi | |
6792 | ||
6793 | ECHO_C= ECHO_N= ECHO_T= | |
6794 | case `echo -n x` in | |
6795 | -n*) | |
6796 | case `echo 'x\c'` in | |
6797 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
6798 | *) ECHO_C='\c';; | |
6799 | esac;; | |
6800 | *) | |
6801 | ECHO_N='-n';; | |
25697a35 GS |
6802 | esac |
6803 | ||
0743911c FM |
6804 | if expr a : '\(a\)' >/dev/null 2>&1 && |
6805 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25697a35 GS |
6806 | as_expr=expr |
6807 | else | |
6808 | as_expr=false | |
6809 | fi | |
6810 | ||
6811 | rm -f conf$$ conf$$.exe conf$$.file | |
0743911c FM |
6812 | if test -d conf$$.dir; then |
6813 | rm -f conf$$.dir/conf$$.file | |
6814 | else | |
6815 | rm -f conf$$.dir | |
6816 | mkdir conf$$.dir | |
6817 | fi | |
25697a35 GS |
6818 | echo >conf$$.file |
6819 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
0743911c FM |
6820 | as_ln_s='ln -s' |
6821 | # ... but there are two gotchas: | |
6822 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
6823 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
6824 | # In both cases, we have to default to `cp -p'. | |
6825 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
25697a35 | 6826 | as_ln_s='cp -p' |
25697a35 GS |
6827 | elif ln conf$$.file conf$$ 2>/dev/null; then |
6828 | as_ln_s=ln | |
6829 | else | |
6830 | as_ln_s='cp -p' | |
6831 | fi | |
0743911c FM |
6832 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
6833 | rmdir conf$$.dir 2>/dev/null | |
25697a35 GS |
6834 | |
6835 | if mkdir -p . 2>/dev/null; then | |
6836 | as_mkdir_p=: | |
6837 | else | |
6838 | test -d ./-p && rmdir ./-p | |
6839 | as_mkdir_p=false | |
6840 | fi | |
6841 | ||
0743911c FM |
6842 | if test -x / >/dev/null 2>&1; then |
6843 | as_test_x='test -x' | |
6844 | else | |
6845 | if ls -dL / >/dev/null 2>&1; then | |
6846 | as_ls_L_option=L | |
6847 | else | |
6848 | as_ls_L_option= | |
6849 | fi | |
6850 | as_test_x=' | |
6851 | eval sh -c '\'' | |
6852 | if test -d "$1"; then | |
6853 | test -d "$1/."; | |
6854 | else | |
6855 | case $1 in | |
6856 | -*)set "./$1";; | |
6857 | esac; | |
6858 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
6859 | ???[sx]*):;;*)false;;esac;fi | |
6860 | '\'' sh | |
6861 | ' | |
6862 | fi | |
6863 | as_executable_p=$as_test_x | |
25697a35 GS |
6864 | |
6865 | # Sed expression to map a string onto a valid CPP name. | |
6866 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
6867 | ||
6868 | # Sed expression to map a string onto a valid variable name. | |
6869 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6870 | ||
6871 | ||
25697a35 GS |
6872 | exec 6>&1 |
6873 | ||
0743911c | 6874 | # Save the log message, to keep $[0] and so on meaningful, and to |
25697a35 | 6875 | # report actual input values of CONFIG_FILES etc. instead of their |
0743911c FM |
6876 | # values after options handling. |
6877 | ac_log=" | |
25697a35 | 6878 | This file was extended by $as_me, which was |
0743911c | 6879 | generated by GNU Autoconf 2.61. Invocation command line was |
25697a35 GS |
6880 | |
6881 | CONFIG_FILES = $CONFIG_FILES | |
6882 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6883 | CONFIG_LINKS = $CONFIG_LINKS | |
6884 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6885 | $ $0 $@ | |
6886 | ||
0743911c FM |
6887 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
6888 | " | |
6889 | ||
25697a35 GS |
6890 | _ACEOF |
6891 | ||
0743911c | 6892 | cat >>$CONFIG_STATUS <<_ACEOF |
25697a35 | 6893 | # Files that config.status was made for. |
0743911c | 6894 | config_files="$ac_config_files" |
25697a35 | 6895 | |
0743911c | 6896 | _ACEOF |
25697a35 GS |
6897 | |
6898 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25697a35 GS |
6899 | ac_cs_usage="\ |
6900 | \`$as_me' instantiates files from templates according to the | |
6901 | current configuration. | |
6902 | ||
6903 | Usage: $0 [OPTIONS] [FILE]... | |
6904 | ||
6905 | -h, --help print this help, then exit | |
0743911c | 6906 | -V, --version print version number and configuration settings, then exit |
25697a35 GS |
6907 | -q, --quiet do not print progress messages |
6908 | -d, --debug don't remove temporary files | |
6909 | --recheck update $as_me by reconfiguring in the same conditions | |
6910 | --file=FILE[:TEMPLATE] | |
6911 | instantiate the configuration file FILE | |
6912 | ||
6913 | Configuration files: | |
6914 | $config_files | |
6915 | ||
6916 | Report bugs to <bug-autoconf@gnu.org>." | |
25697a35 | 6917 | |
0743911c | 6918 | _ACEOF |
25697a35 GS |
6919 | cat >>$CONFIG_STATUS <<_ACEOF |
6920 | ac_cs_version="\\ | |
6921 | config.status | |
0743911c FM |
6922 | configured by $0, generated by GNU Autoconf 2.61, |
6923 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
25697a35 | 6924 | |
0743911c | 6925 | Copyright (C) 2006 Free Software Foundation, Inc. |
25697a35 GS |
6926 | This config.status script is free software; the Free Software Foundation |
6927 | gives unlimited permission to copy, distribute and modify it." | |
0743911c FM |
6928 | |
6929 | ac_pwd='$ac_pwd' | |
6930 | srcdir='$srcdir' | |
25697a35 GS |
6931 | _ACEOF |
6932 | ||
6933 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6934 | # If no file are specified by the user, then we need to provide default | |
6935 | # value. By we need to know if files were specified by the user. | |
6936 | ac_need_defaults=: | |
6937 | while test $# != 0 | |
6938 | do | |
6939 | case $1 in | |
6940 | --*=*) | |
0743911c FM |
6941 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
6942 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
25697a35 GS |
6943 | ac_shift=: |
6944 | ;; | |
0743911c | 6945 | *) |
25697a35 GS |
6946 | ac_option=$1 |
6947 | ac_optarg=$2 | |
6948 | ac_shift=shift | |
6949 | ;; | |
25697a35 GS |
6950 | esac |
6951 | ||
6952 | case $ac_option in | |
6953 | # Handling of the options. | |
25697a35 GS |
6954 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
6955 | ac_cs_recheck=: ;; | |
0743911c FM |
6956 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
6957 | echo "$ac_cs_version"; exit ;; | |
6958 | --debug | --debu | --deb | --de | --d | -d ) | |
25697a35 GS |
6959 | debug=: ;; |
6960 | --file | --fil | --fi | --f ) | |
6961 | $ac_shift | |
6962 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
6963 | ac_need_defaults=false;; | |
0743911c FM |
6964 | --he | --h | --help | --hel | -h ) |
6965 | echo "$ac_cs_usage"; exit ;; | |
25697a35 GS |
6966 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
6967 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6968 | ac_cs_silent=: ;; | |
6969 | ||
6970 | # This is an error. | |
0743911c FM |
6971 | -*) { echo "$as_me: error: unrecognized option: $1 |
6972 | Try \`$0 --help' for more information." >&2 | |
25697a35 GS |
6973 | { (exit 1); exit 1; }; } ;; |
6974 | ||
0743911c FM |
6975 | *) ac_config_targets="$ac_config_targets $1" |
6976 | ac_need_defaults=false ;; | |
25697a35 GS |
6977 | |
6978 | esac | |
6979 | shift | |
6980 | done | |
6981 | ||
6982 | ac_configure_extra_args= | |
6983 | ||
6984 | if $ac_cs_silent; then | |
6985 | exec 6>/dev/null | |
6986 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
6987 | fi | |
6988 | ||
6989 | _ACEOF | |
6990 | cat >>$CONFIG_STATUS <<_ACEOF | |
6991 | if \$ac_cs_recheck; then | |
0743911c FM |
6992 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
6993 | CONFIG_SHELL=$SHELL | |
6994 | export CONFIG_SHELL | |
6995 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
25697a35 GS |
6996 | fi |
6997 | ||
6998 | _ACEOF | |
0743911c FM |
6999 | cat >>$CONFIG_STATUS <<\_ACEOF |
7000 | exec 5>>config.log | |
7001 | { | |
7002 | echo | |
7003 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7004 | ## Running $as_me. ## | |
7005 | _ASBOX | |
7006 | echo "$ac_log" | |
7007 | } >&5 | |
25697a35 | 7008 | |
0743911c FM |
7009 | _ACEOF |
7010 | cat >>$CONFIG_STATUS <<_ACEOF | |
7011 | _ACEOF | |
25697a35 GS |
7012 | |
7013 | cat >>$CONFIG_STATUS <<\_ACEOF | |
0743911c FM |
7014 | |
7015 | # Handling of arguments. | |
25697a35 GS |
7016 | for ac_config_target in $ac_config_targets |
7017 | do | |
0743911c FM |
7018 | case $ac_config_target in |
7019 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7020 | ||
25697a35 GS |
7021 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
7022 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
7023 | { (exit 1); exit 1; }; };; | |
7024 | esac | |
7025 | done | |
7026 | ||
0743911c | 7027 | |
25697a35 GS |
7028 | # If the user did not use the arguments to specify the items to instantiate, |
7029 | # then the envvar interface is used. Set only those that are not. | |
7030 | # We use the long form for the default assignment because of an extremely | |
7031 | # bizarre bug on SunOS 4.1.3. | |
7032 | if $ac_need_defaults; then | |
7033 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7034 | fi | |
7035 | ||
7036 | # Have a temporary directory for convenience. Make it in the build tree | |
0743911c | 7037 | # simply because there is no reason against having it here, and in addition, |
25697a35 | 7038 | # creating and moving files from /tmp can sometimes cause problems. |
0743911c FM |
7039 | # Hook for its removal unless debugging. |
7040 | # Note that there is a small window in which the directory will not be cleaned: | |
7041 | # after its creation but before its name has been assigned to `$tmp'. | |
25697a35 GS |
7042 | $debug || |
7043 | { | |
0743911c FM |
7044 | tmp= |
7045 | trap 'exit_status=$? | |
7046 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
7047 | ' 0 | |
25697a35 GS |
7048 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
7049 | } | |
25697a35 GS |
7050 | # Create a (secure) tmp directory for tmp files. |
7051 | ||
7052 | { | |
0743911c | 7053 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
25697a35 GS |
7054 | test -n "$tmp" && test -d "$tmp" |
7055 | } || | |
7056 | { | |
0743911c FM |
7057 | tmp=./conf$$-$RANDOM |
7058 | (umask 077 && mkdir "$tmp") | |
25697a35 GS |
7059 | } || |
7060 | { | |
7061 | echo "$me: cannot create a temporary directory in ." >&2 | |
7062 | { (exit 1); exit 1; } | |
7063 | } | |
7064 | ||
25697a35 | 7065 | # |
0743911c | 7066 | # Set up the sed scripts for CONFIG_FILES section. |
25697a35 GS |
7067 | # |
7068 | ||
7069 | # No need to generate the scripts if there are no CONFIG_FILES. | |
7070 | # This happens for instance when ./config.status config.h | |
0743911c | 7071 | if test -n "$CONFIG_FILES"; then |
25697a35 GS |
7072 | |
7073 | _ACEOF | |
7074 | ||
0743911c FM |
7075 | |
7076 | ||
7077 | ac_delim='%!_!# ' | |
7078 | for ac_last_try in false false false false false :; do | |
7079 | cat >conf$$subs.sed <<_ACEOF | |
7080 | SHELL!$SHELL$ac_delim | |
7081 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
7082 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
7083 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
7084 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
7085 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
7086 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
7087 | exec_prefix!$exec_prefix$ac_delim | |
7088 | prefix!$prefix$ac_delim | |
7089 | program_transform_name!$program_transform_name$ac_delim | |
7090 | bindir!$bindir$ac_delim | |
7091 | sbindir!$sbindir$ac_delim | |
7092 | libexecdir!$libexecdir$ac_delim | |
7093 | datarootdir!$datarootdir$ac_delim | |
7094 | datadir!$datadir$ac_delim | |
7095 | sysconfdir!$sysconfdir$ac_delim | |
7096 | sharedstatedir!$sharedstatedir$ac_delim | |
7097 | localstatedir!$localstatedir$ac_delim | |
7098 | includedir!$includedir$ac_delim | |
7099 | oldincludedir!$oldincludedir$ac_delim | |
7100 | docdir!$docdir$ac_delim | |
7101 | infodir!$infodir$ac_delim | |
7102 | htmldir!$htmldir$ac_delim | |
7103 | dvidir!$dvidir$ac_delim | |
7104 | pdfdir!$pdfdir$ac_delim | |
7105 | psdir!$psdir$ac_delim | |
7106 | libdir!$libdir$ac_delim | |
7107 | localedir!$localedir$ac_delim | |
7108 | mandir!$mandir$ac_delim | |
7109 | DEFS!$DEFS$ac_delim | |
7110 | ECHO_C!$ECHO_C$ac_delim | |
7111 | ECHO_N!$ECHO_N$ac_delim | |
7112 | ECHO_T!$ECHO_T$ac_delim | |
7113 | LIBS!$LIBS$ac_delim | |
7114 | build_alias!$build_alias$ac_delim | |
7115 | host_alias!$host_alias$ac_delim | |
7116 | target_alias!$target_alias$ac_delim | |
7117 | build!$build$ac_delim | |
7118 | build_cpu!$build_cpu$ac_delim | |
7119 | build_vendor!$build_vendor$ac_delim | |
7120 | build_os!$build_os$ac_delim | |
7121 | host!$host$ac_delim | |
7122 | host_cpu!$host_cpu$ac_delim | |
7123 | host_vendor!$host_vendor$ac_delim | |
7124 | host_os!$host_os$ac_delim | |
7125 | CC!$CC$ac_delim | |
7126 | CFLAGS!$CFLAGS$ac_delim | |
7127 | LDFLAGS!$LDFLAGS$ac_delim | |
7128 | CPPFLAGS!$CPPFLAGS$ac_delim | |
7129 | ac_ct_CC!$ac_ct_CC$ac_delim | |
7130 | EXEEXT!$EXEEXT$ac_delim | |
7131 | OBJEXT!$OBJEXT$ac_delim | |
7132 | CPP!$CPP$ac_delim | |
7133 | GREP!$GREP$ac_delim | |
7134 | EGREP!$EGREP$ac_delim | |
7135 | LIBICONV!$LIBICONV$ac_delim | |
7136 | LTLIBICONV!$LTLIBICONV$ac_delim | |
7137 | BINDIR!$BINDIR$ac_delim | |
7138 | MANDIR!$MANDIR$ac_delim | |
7139 | SYSCONFDIR!$SYSCONFDIR$ac_delim | |
7140 | HTMLDIR!$HTMLDIR$ac_delim | |
7141 | LIBOBJS!$LIBOBJS$ac_delim | |
7142 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
7143 | _ACEOF | |
7144 | ||
7145 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then | |
7146 | break | |
7147 | elif $ac_last_try; then | |
7148 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
7149 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7150 | { (exit 1); exit 1; }; } | |
7151 | else | |
7152 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
25697a35 | 7153 | fi |
0743911c FM |
7154 | done |
7155 | ||
7156 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
7157 | if test -n "$ac_eof"; then | |
7158 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
7159 | ac_eof=`expr $ac_eof + 1` | |
7160 | fi | |
25697a35 | 7161 | |
0743911c FM |
7162 | cat >>$CONFIG_STATUS <<_ACEOF |
7163 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
7164 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
7165 | _ACEOF | |
7166 | sed ' | |
7167 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
7168 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
7169 | :n | |
7170 | t n | |
7171 | s/'"$ac_delim"'$/,g/; t | |
7172 | s/$/\\/; p | |
7173 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
7174 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
7175 | rm -f conf$$subs.sed | |
7176 | cat >>$CONFIG_STATUS <<_ACEOF | |
7177 | :end | |
7178 | s/|#_!!_#|//g | |
7179 | CEOF$ac_eof | |
25697a35 | 7180 | _ACEOF |
0743911c FM |
7181 | |
7182 | ||
7183 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
7184 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7185 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7186 | # (actually we leave an empty line to preserve line numbers). | |
7187 | if test "x$srcdir" = x.; then | |
7188 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
7189 | s/:*\$(srcdir):*/:/ | |
7190 | s/:*\${srcdir}:*/:/ | |
7191 | s/:*@srcdir@:*/:/ | |
7192 | s/^\([^=]*=[ ]*\):*/\1/ | |
7193 | s/:*$// | |
7194 | s/^[^=]*=[ ]*$// | |
7195 | }' | |
7196 | fi | |
7197 | ||
25697a35 | 7198 | cat >>$CONFIG_STATUS <<\_ACEOF |
0743911c FM |
7199 | fi # test -n "$CONFIG_FILES" |
7200 | ||
7201 | ||
7202 | for ac_tag in :F $CONFIG_FILES | |
7203 | do | |
7204 | case $ac_tag in | |
7205 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
7206 | esac | |
7207 | case $ac_mode$ac_tag in | |
7208 | :[FHL]*:*);; | |
7209 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
7210 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
7211 | { (exit 1); exit 1; }; };; | |
7212 | :[FH]-) ac_tag=-:-;; | |
7213 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
25697a35 | 7214 | esac |
0743911c FM |
7215 | ac_save_IFS=$IFS |
7216 | IFS=: | |
7217 | set x $ac_tag | |
7218 | IFS=$ac_save_IFS | |
7219 | shift | |
7220 | ac_file=$1 | |
7221 | shift | |
25697a35 | 7222 | |
0743911c FM |
7223 | case $ac_mode in |
7224 | :L) ac_source=$1;; | |
7225 | :[FH]) | |
7226 | ac_file_inputs= | |
7227 | for ac_f | |
7228 | do | |
7229 | case $ac_f in | |
7230 | -) ac_f="$tmp/stdin";; | |
7231 | *) # Look for the file first in the build tree, then in the source tree | |
7232 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7233 | # because $ac_f cannot contain `:'. | |
7234 | test -f "$ac_f" || | |
7235 | case $ac_f in | |
7236 | [\\/$]*) false;; | |
7237 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7238 | esac || | |
7239 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
7240 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7241 | { (exit 1); exit 1; }; };; | |
7242 | esac | |
7243 | ac_file_inputs="$ac_file_inputs $ac_f" | |
7244 | done | |
7245 | ||
7246 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7247 | # use $as_me), people would be surprised to read: | |
7248 | # /* config.h. Generated by config.status. */ | |
7249 | configure_input="Generated from "`IFS=: | |
7250 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
7251 | if test x"$ac_file" != x-; then | |
7252 | configure_input="$ac_file. $configure_input" | |
7253 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7254 | echo "$as_me: creating $ac_file" >&6;} | |
7255 | fi | |
7256 | ||
7257 | case $ac_tag in | |
7258 | *:-:* | *:-) cat >"$tmp/stdin";; | |
7259 | esac | |
7260 | ;; | |
7261 | esac | |
7262 | ||
7263 | ac_dir=`$as_dirname -- "$ac_file" || | |
25697a35 GS |
7264 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7265 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7266 | X"$ac_file" : 'X\(//\)$' \| \ | |
0743911c | 7267 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
25697a35 | 7268 | echo X"$ac_file" | |
0743911c FM |
7269 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7270 | s//\1/ | |
7271 | q | |
7272 | } | |
7273 | /^X\(\/\/\)[^/].*/{ | |
7274 | s//\1/ | |
7275 | q | |
7276 | } | |
7277 | /^X\(\/\/\)$/{ | |
7278 | s//\1/ | |
7279 | q | |
7280 | } | |
7281 | /^X\(\/\).*/{ | |
7282 | s//\1/ | |
7283 | q | |
7284 | } | |
7285 | s/.*/./; q'` | |
7286 | { as_dir="$ac_dir" | |
7287 | case $as_dir in #( | |
7288 | -*) as_dir=./$as_dir;; | |
7289 | esac | |
7290 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
25697a35 | 7291 | as_dirs= |
0743911c FM |
7292 | while :; do |
7293 | case $as_dir in #( | |
7294 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
7295 | *) as_qdir=$as_dir;; | |
7296 | esac | |
7297 | as_dirs="'$as_qdir' $as_dirs" | |
7298 | as_dir=`$as_dirname -- "$as_dir" || | |
25697a35 GS |
7299 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7300 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7301 | X"$as_dir" : 'X\(//\)$' \| \ | |
0743911c | 7302 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
25697a35 | 7303 | echo X"$as_dir" | |
0743911c FM |
7304 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7305 | s//\1/ | |
7306 | q | |
7307 | } | |
7308 | /^X\(\/\/\)[^/].*/{ | |
7309 | s//\1/ | |
7310 | q | |
7311 | } | |
7312 | /^X\(\/\/\)$/{ | |
7313 | s//\1/ | |
7314 | q | |
7315 | } | |
7316 | /^X\(\/\).*/{ | |
7317 | s//\1/ | |
7318 | q | |
7319 | } | |
7320 | s/.*/./; q'` | |
7321 | test -d "$as_dir" && break | |
25697a35 | 7322 | done |
0743911c FM |
7323 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
7324 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
7325 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
25697a35 | 7326 | { (exit 1); exit 1; }; }; } |
25697a35 GS |
7327 | ac_builddir=. |
7328 | ||
0743911c FM |
7329 | case "$ac_dir" in |
7330 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7331 | *) | |
25697a35 | 7332 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
0743911c FM |
7333 | # A ".." for each directory in $ac_dir_suffix. |
7334 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
7335 | case $ac_top_builddir_sub in | |
7336 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7337 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7338 | esac ;; | |
7339 | esac | |
7340 | ac_abs_top_builddir=$ac_pwd | |
7341 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7342 | # for backward compatibility: | |
7343 | ac_top_builddir=$ac_top_build_prefix | |
25697a35 GS |
7344 | |
7345 | case $srcdir in | |
0743911c | 7346 | .) # We are building in place. |
25697a35 | 7347 | ac_srcdir=. |
0743911c FM |
7348 | ac_top_srcdir=$ac_top_builddir_sub |
7349 | ac_abs_top_srcdir=$ac_pwd ;; | |
7350 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
25697a35 | 7351 | ac_srcdir=$srcdir$ac_dir_suffix; |
0743911c FM |
7352 | ac_top_srcdir=$srcdir |
7353 | ac_abs_top_srcdir=$srcdir ;; | |
7354 | *) # Relative name. | |
7355 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7356 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7357 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
25697a35 | 7358 | esac |
0743911c | 7359 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
25697a35 | 7360 | |
25697a35 | 7361 | |
0743911c FM |
7362 | case $ac_mode in |
7363 | :F) | |
7364 | # | |
7365 | # CONFIG_FILE | |
7366 | # | |
25697a35 | 7367 | |
0743911c | 7368 | _ACEOF |
25697a35 | 7369 | |
0743911c FM |
7370 | cat >>$CONFIG_STATUS <<\_ACEOF |
7371 | # If the template does not know about datarootdir, expand it. | |
7372 | # FIXME: This hack should be removed a few years after 2.60. | |
7373 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7374 | ||
7375 | case `sed -n '/datarootdir/ { | |
7376 | p | |
7377 | q | |
7378 | } | |
7379 | /@datadir@/p | |
7380 | /@docdir@/p | |
7381 | /@infodir@/p | |
7382 | /@localedir@/p | |
7383 | /@mandir@/p | |
7384 | ' $ac_file_inputs` in | |
7385 | *datarootdir*) ac_datarootdir_seen=yes;; | |
7386 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7387 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
7388 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
25697a35 | 7389 | _ACEOF |
0743911c FM |
7390 | cat >>$CONFIG_STATUS <<_ACEOF |
7391 | ac_datarootdir_hack=' | |
7392 | s&@datadir@&$datadir&g | |
7393 | s&@docdir@&$docdir&g | |
7394 | s&@infodir@&$infodir&g | |
7395 | s&@localedir@&$localedir&g | |
7396 | s&@mandir@&$mandir&g | |
7397 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
7398 | esac | |
7399 | _ACEOF | |
7400 | ||
7401 | # Neutralize VPATH when `$srcdir' = `.'. | |
7402 | # Shell code in configure.ac might set extrasub. | |
7403 | # FIXME: do we really want to maintain this feature? | |
25697a35 GS |
7404 | cat >>$CONFIG_STATUS <<_ACEOF |
7405 | sed "$ac_vpsub | |
7406 | $extrasub | |
7407 | _ACEOF | |
7408 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7409 | :t | |
7410 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
0743911c FM |
7411 | s&@configure_input@&$configure_input&;t t |
7412 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
7413 | s&@srcdir@&$ac_srcdir&;t t | |
7414 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
7415 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
7416 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
7417 | s&@builddir@&$ac_builddir&;t t | |
7418 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
7419 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
7420 | $ac_datarootdir_hack | |
7421 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
7422 | ||
7423 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
7424 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
7425 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
7426 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7427 | which seems to be undefined. Please make sure it is defined." >&5 | |
7428 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7429 | which seems to be undefined. Please make sure it is defined." >&2;} | |
7430 | ||
7431 | rm -f "$tmp/stdin" | |
7432 | case $ac_file in | |
7433 | -) cat "$tmp/out"; rm -f "$tmp/out";; | |
7434 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
7435 | esac | |
7436 | ;; | |
25697a35 | 7437 | |
25697a35 | 7438 | |
0743911c FM |
7439 | |
7440 | esac | |
7441 | ||
7442 | done # for ac_tag | |
7443 | ||
25697a35 GS |
7444 | |
7445 | { (exit 0); exit 0; } | |
7446 | _ACEOF | |
7447 | chmod +x $CONFIG_STATUS | |
7448 | ac_clean_files=$ac_clean_files_save | |
7449 | ||
7450 | ||
7451 | # configure is writing to config.log, and then calls config.status. | |
7452 | # config.status does its own redirection, appending to config.log. | |
7453 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7454 | # by configure, so config.status won't be able to write to it; its | |
7455 | # output is simply discarded. So we exec the FD to /dev/null, | |
7456 | # effectively closing config.log, so it can be properly (re)opened and | |
7457 | # appended to by config.status. When coming back to configure, we | |
7458 | # need to make the FD available again. | |
7459 | if test "$no_create" != yes; then | |
7460 | ac_cs_success=: | |
7461 | ac_config_status_args= | |
7462 | test "$silent" = yes && | |
7463 | ac_config_status_args="$ac_config_status_args --quiet" | |
7464 | exec 5>/dev/null | |
7465 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
7466 | exec 5>>config.log | |
7467 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7468 | # would make configure fail if this is the last instruction. | |
7469 | $ac_cs_success || { (exit 1); exit 1; } | |
7470 | fi | |
7471 |