]>
Commit | Line | Data |
---|---|---|
25697a35 GS |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
1164c474 | 3 | # Generated by GNU Autoconf 2.63 for sarg 2.2.7. |
25697a35 | 4 | # |
0743911c | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1164c474 | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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=: | |
1164c474 | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
25697a35 GS |
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 | ||
1164c474 FM |
40 | as_nl=' |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
f8ed23e3 | 54 | else |
1164c474 FM |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
f8ed23e3 | 67 | fi |
1164c474 FM |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
25697a35 | 79 | fi |
25697a35 GS |
80 | |
81 | # Support unset when possible. | |
82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
83 | as_unset=unset | |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
88 | ||
0743911c FM |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
0743911c FM |
94 | IFS=" "" $as_nl" |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
97 | case $0 in | |
98 | *[\\/]* ) as_myself=$0 ;; | |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | done | |
106 | IFS=$as_save_IFS | |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
1164c474 | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
0743911c FM |
117 | { (exit 1); exit 1; } |
118 | fi | |
119 | ||
25697a35 | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
0743911c FM |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
25697a35 GS |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
1164c474 FM |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
25697a35 GS |
133 | |
134 | # Required to use basename. | |
0743911c FM |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25697a35 GS |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
0743911c | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
25697a35 GS |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
0743911c | 150 | as_me=`$as_basename -- "$0" || |
25697a35 GS |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
0743911c | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1164c474 | 154 | $as_echo X/"$0" | |
0743911c FM |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
25697a35 | 168 | |
0743911c FM |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
25697a35 | 171 | |
25697a35 | 172 | |
0743911c FM |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
25697a35 GS |
178 | fi |
179 | ||
1164c474 | 180 | if test $as_have_required = yes && (eval ": |
0743911c FM |
181 | (as_func_return () { |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
195 | } | |
25697a35 | 196 | |
0743911c FM |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
25697a35 | 204 | |
0743911c FM |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
209 | ||
210 | if as_func_ret_success; then | |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
216 | ||
217 | if as_func_ret_failure; then | |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
221 | ||
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
228 | ||
229 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | ||
231 | ( | |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
25697a35 GS |
240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
242 | do | |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
0743911c | 245 | case $as_dir in |
25697a35 | 246 | /*) |
0743911c FM |
247 | for as_base in sh bash ksh sh5; do |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
253 | ||
254 | ||
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
1164c474 | 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
0743911c FM |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
267 | case `(set -o) 2>/dev/null` in | |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
271 | fi | |
272 | ||
273 | ||
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | emulate sh | |
282 | NULLCMD=: | |
1164c474 | 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
0743911c FM |
284 | # is contrary to our usage. Disable this feature. |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
288 | case `(set -o) 2>/dev/null` in | |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
292 | fi | |
293 | ||
294 | ||
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
25697a35 GS |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
25697a35 | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
0743911c FM |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
1164c474 FM |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
0743911c FM |
367 | fi |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
1164c474 FM |
435 | echo Please tell bug-autoconf@gnu.org about your system, |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
0743911c FM |
439 | } |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
25697a35 GS |
447 | |
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
0743911c FM |
450 | # line-number line after each line using $LINENO; the second 'sed' |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
25697a35 | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
0743911c FM |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
25697a35 | 462 | sed ' |
0743911c FM |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
25697a35 | 467 | N |
0743911c FM |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
25697a35 | 470 | t loop |
0743911c | 471 | s/-\n.*// |
25697a35 | 472 | ' >$as_me.lineno && |
0743911c | 473 | chmod +x "$as_me.lineno" || |
1164c474 | 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
25697a35 GS |
475 | { (exit 1); exit 1; }; } |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
0743911c FM |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
25697a35 GS |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
484 | ||
485 | ||
0743911c FM |
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
491 | ||
492 | ECHO_C= ECHO_N= ECHO_T= | |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
25697a35 | 501 | esac |
0743911c FM |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25697a35 GS |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
0743911c FM |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
1164c474 FM |
514 | mkdir conf$$.dir 2>/dev/null |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | as_ln_s='ln -s' | |
519 | # ... but there are two gotchas: | |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
25697a35 | 528 | as_ln_s='cp -p' |
1164c474 | 529 | fi |
25697a35 GS |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
0743911c FM |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
25697a35 GS |
535 | |
536 | if mkdir -p . 2>/dev/null; then | |
537 | as_mkdir_p=: | |
538 | else | |
539 | test -d ./-p && rmdir ./-p | |
540 | as_mkdir_p=false | |
541 | fi | |
542 | ||
0743911c FM |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
545 | else | |
546 | if ls -dL / >/dev/null 2>&1; then | |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
1164c474 | 554 | test -d "$1/."; |
0743911c FM |
555 | else |
556 | case $1 in | |
1164c474 | 557 | -*)set "./$1";; |
0743911c FM |
558 | esac; |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
563 | fi | |
564 | as_executable_p=$as_test_x | |
25697a35 GS |
565 | |
566 | # Sed expression to map a string onto a valid CPP name. | |
567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
568 | ||
569 | # Sed expression to map a string onto a valid variable name. | |
570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
571 | ||
572 | ||
25697a35 | 573 | |
0743911c | 574 | exec 7<&0 </dev/null 6>&1 |
25697a35 GS |
575 | |
576 | # Name of the host. | |
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
578 | # so uname gets run too. | |
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
580 | ||
25697a35 GS |
581 | # |
582 | # Initializations. | |
583 | # | |
584 | ac_default_prefix=/usr/local | |
0743911c | 585 | ac_clean_files= |
25697a35 | 586 | ac_config_libobj_dir=. |
0743911c | 587 | LIBOBJS= |
25697a35 GS |
588 | cross_compiling=no |
589 | subdirs= | |
590 | MFLAGS= | |
591 | MAKEFLAGS= | |
592 | SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | ||
25697a35 | 594 | # Identity of this package. |
2357ef77 FM |
595 | PACKAGE_NAME='sarg' |
596 | PACKAGE_TARNAME='sarg' | |
c814928f FM |
597 | PACKAGE_VERSION='2.2.7' |
598 | PACKAGE_STRING='sarg 2.2.7' | |
2357ef77 | 599 | PACKAGE_BUGREPORT='' |
25697a35 GS |
600 | |
601 | ac_unique_file="log.c" | |
602 | # Factoring default headers for most tests. | |
603 | ac_includes_default="\ | |
604 | #include <stdio.h> | |
0743911c | 605 | #ifdef HAVE_SYS_TYPES_H |
25697a35 GS |
606 | # include <sys/types.h> |
607 | #endif | |
0743911c | 608 | #ifdef HAVE_SYS_STAT_H |
25697a35 GS |
609 | # include <sys/stat.h> |
610 | #endif | |
0743911c | 611 | #ifdef STDC_HEADERS |
25697a35 GS |
612 | # include <stdlib.h> |
613 | # include <stddef.h> | |
614 | #else | |
0743911c | 615 | # ifdef HAVE_STDLIB_H |
25697a35 GS |
616 | # include <stdlib.h> |
617 | # endif | |
618 | #endif | |
0743911c FM |
619 | #ifdef HAVE_STRING_H |
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
25697a35 GS |
621 | # include <memory.h> |
622 | # endif | |
623 | # include <string.h> | |
624 | #endif | |
0743911c | 625 | #ifdef HAVE_STRINGS_H |
25697a35 GS |
626 | # include <strings.h> |
627 | #endif | |
0743911c | 628 | #ifdef HAVE_INTTYPES_H |
25697a35 | 629 | # include <inttypes.h> |
25697a35 | 630 | #endif |
0743911c FM |
631 | #ifdef HAVE_STDINT_H |
632 | # include <stdint.h> | |
633 | #endif | |
634 | #ifdef HAVE_UNISTD_H | |
25697a35 GS |
635 | # include <unistd.h> |
636 | #endif" | |
637 | ||
1164c474 | 638 | ac_subst_vars='LTLIBOBJS |
f8ed23e3 | 639 | LIBOBJS |
1164c474 FM |
640 | IMAGEDIR |
641 | FONTDIR | |
642 | LANGDIR | |
643 | SARGPHPDIR | |
644 | LTLIBICONV | |
645 | LIBICONV | |
646 | EGREP | |
647 | GREP | |
648 | CPP | |
649 | OBJEXT | |
650 | EXEEXT | |
651 | ac_ct_CC | |
652 | CPPFLAGS | |
653 | LDFLAGS | |
654 | CFLAGS | |
655 | CC | |
656 | host_os | |
657 | host_vendor | |
658 | host_cpu | |
659 | host | |
660 | build_os | |
661 | build_vendor | |
662 | build_cpu | |
663 | build | |
664 | target_alias | |
665 | host_alias | |
666 | build_alias | |
667 | LIBS | |
668 | ECHO_T | |
669 | ECHO_N | |
670 | ECHO_C | |
671 | DEFS | |
672 | mandir | |
673 | localedir | |
674 | libdir | |
675 | psdir | |
676 | pdfdir | |
677 | dvidir | |
678 | htmldir | |
679 | infodir | |
680 | docdir | |
681 | oldincludedir | |
682 | includedir | |
683 | localstatedir | |
684 | sharedstatedir | |
685 | sysconfdir | |
686 | datadir | |
687 | datarootdir | |
688 | libexecdir | |
689 | sbindir | |
690 | bindir | |
691 | program_transform_name | |
692 | prefix | |
693 | exec_prefix | |
694 | PACKAGE_BUGREPORT | |
695 | PACKAGE_STRING | |
696 | PACKAGE_VERSION | |
697 | PACKAGE_TARNAME | |
698 | PACKAGE_NAME | |
699 | PATH_SEPARATOR | |
700 | SHELL' | |
25697a35 | 701 | ac_subst_files='' |
1164c474 FM |
702 | ac_user_opts=' |
703 | enable_option_checking | |
704 | with_gcc | |
705 | with_gnu_ld | |
706 | enable_rpath | |
707 | with_libiconv_prefix | |
708 | enable_largefile | |
709 | enable_sargphp | |
710 | enable_languagedir | |
711 | enable_fontdir | |
712 | enable_imagedir | |
713 | enable_extraprotection | |
714 | ' | |
0743911c FM |
715 | ac_precious_vars='build_alias |
716 | host_alias | |
717 | target_alias | |
718 | CC | |
719 | CFLAGS | |
720 | LDFLAGS | |
721 | LIBS | |
722 | CPPFLAGS | |
723 | CPP' | |
724 | ||
25697a35 GS |
725 | |
726 | # Initialize some variables set by options. | |
727 | ac_init_help= | |
728 | ac_init_version=false | |
1164c474 FM |
729 | ac_unrecognized_opts= |
730 | ac_unrecognized_sep= | |
25697a35 GS |
731 | # The variables have the same names as the options, with |
732 | # dashes changed to underlines. | |
733 | cache_file=/dev/null | |
734 | exec_prefix=NONE | |
735 | no_create= | |
736 | no_recursion= | |
737 | prefix=NONE | |
738 | program_prefix=NONE | |
739 | program_suffix=NONE | |
740 | program_transform_name=s,x,x, | |
741 | silent= | |
742 | site= | |
743 | srcdir= | |
744 | verbose= | |
745 | x_includes=NONE | |
746 | x_libraries=NONE | |
747 | ||
748 | # Installation directory options. | |
749 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
750 | # and all the variables that are supposed to be based on exec_prefix | |
751 | # by default will actually change. | |
752 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
0743911c | 753 | # (The list follows the same order as the GNU Coding Standards.) |
25697a35 GS |
754 | bindir='${exec_prefix}/bin' |
755 | sbindir='${exec_prefix}/sbin' | |
756 | libexecdir='${exec_prefix}/libexec' | |
0743911c FM |
757 | datarootdir='${prefix}/share' |
758 | datadir='${datarootdir}' | |
25697a35 GS |
759 | sysconfdir='${prefix}/etc' |
760 | sharedstatedir='${prefix}/com' | |
761 | localstatedir='${prefix}/var' | |
25697a35 GS |
762 | includedir='${prefix}/include' |
763 | oldincludedir='/usr/include' | |
2357ef77 | 764 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
0743911c FM |
765 | infodir='${datarootdir}/info' |
766 | htmldir='${docdir}' | |
767 | dvidir='${docdir}' | |
768 | pdfdir='${docdir}' | |
769 | psdir='${docdir}' | |
770 | libdir='${exec_prefix}/lib' | |
771 | localedir='${datarootdir}/locale' | |
772 | mandir='${datarootdir}/man' | |
25697a35 GS |
773 | |
774 | ac_prev= | |
0743911c | 775 | ac_dashdash= |
25697a35 GS |
776 | for ac_option |
777 | do | |
778 | # If the previous option needs an argument, assign it. | |
779 | if test -n "$ac_prev"; then | |
0743911c | 780 | eval $ac_prev=\$ac_option |
25697a35 GS |
781 | ac_prev= |
782 | continue | |
783 | fi | |
784 | ||
0743911c FM |
785 | case $ac_option in |
786 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
787 | *) ac_optarg=yes ;; | |
788 | esac | |
25697a35 GS |
789 | |
790 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
791 | ||
0743911c FM |
792 | case $ac_dashdash$ac_option in |
793 | --) | |
794 | ac_dashdash=yes ;; | |
25697a35 GS |
795 | |
796 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
797 | ac_prev=bindir ;; | |
798 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
799 | bindir=$ac_optarg ;; | |
800 | ||
801 | -build | --build | --buil | --bui | --bu) | |
802 | ac_prev=build_alias ;; | |
803 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
804 | build_alias=$ac_optarg ;; | |
805 | ||
806 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
807 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
808 | ac_prev=cache_file ;; | |
809 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
810 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
811 | cache_file=$ac_optarg ;; | |
812 | ||
813 | --config-cache | -C) | |
814 | cache_file=config.cache ;; | |
815 | ||
0743911c | 816 | -datadir | --datadir | --datadi | --datad) |
25697a35 | 817 | ac_prev=datadir ;; |
0743911c | 818 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
25697a35 GS |
819 | datadir=$ac_optarg ;; |
820 | ||
0743911c FM |
821 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
822 | | --dataroo | --dataro | --datar) | |
823 | ac_prev=datarootdir ;; | |
824 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
825 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
826 | datarootdir=$ac_optarg ;; | |
827 | ||
25697a35 | 828 | -disable-* | --disable-*) |
1164c474 | 829 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
25697a35 | 830 | # Reject names that are not valid shell variable names. |
1164c474 FM |
831 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
832 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
25697a35 | 833 | { (exit 1); exit 1; }; } |
1164c474 FM |
834 | ac_useropt_orig=$ac_useropt |
835 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
836 | case $ac_user_opts in | |
837 | *" | |
838 | "enable_$ac_useropt" | |
839 | "*) ;; | |
840 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
841 | ac_unrecognized_sep=', ';; | |
842 | esac | |
843 | eval enable_$ac_useropt=no ;; | |
0743911c FM |
844 | |
845 | -docdir | --docdir | --docdi | --doc | --do) | |
846 | ac_prev=docdir ;; | |
847 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
848 | docdir=$ac_optarg ;; | |
849 | ||
850 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
851 | ac_prev=dvidir ;; | |
852 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
853 | dvidir=$ac_optarg ;; | |
25697a35 GS |
854 | |
855 | -enable-* | --enable-*) | |
1164c474 | 856 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
25697a35 | 857 | # Reject names that are not valid shell variable names. |
1164c474 FM |
858 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
859 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
25697a35 | 860 | { (exit 1); exit 1; }; } |
1164c474 FM |
861 | ac_useropt_orig=$ac_useropt |
862 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
863 | case $ac_user_opts in | |
864 | *" | |
865 | "enable_$ac_useropt" | |
866 | "*) ;; | |
867 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
868 | ac_unrecognized_sep=', ';; | |
869 | esac | |
870 | eval enable_$ac_useropt=\$ac_optarg ;; | |
25697a35 GS |
871 | |
872 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
873 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
874 | | --exec | --exe | --ex) | |
875 | ac_prev=exec_prefix ;; | |
876 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
877 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
878 | | --exec=* | --exe=* | --ex=*) | |
879 | exec_prefix=$ac_optarg ;; | |
880 | ||
881 | -gas | --gas | --ga | --g) | |
882 | # Obsolete; use --with-gas. | |
883 | with_gas=yes ;; | |
884 | ||
885 | -help | --help | --hel | --he | -h) | |
886 | ac_init_help=long ;; | |
887 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
888 | ac_init_help=recursive ;; | |
889 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
890 | ac_init_help=short ;; | |
891 | ||
892 | -host | --host | --hos | --ho) | |
893 | ac_prev=host_alias ;; | |
894 | -host=* | --host=* | --hos=* | --ho=*) | |
895 | host_alias=$ac_optarg ;; | |
896 | ||
0743911c FM |
897 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
898 | ac_prev=htmldir ;; | |
899 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
900 | | --ht=*) | |
901 | htmldir=$ac_optarg ;; | |
902 | ||
25697a35 GS |
903 | -includedir | --includedir | --includedi | --included | --include \ |
904 | | --includ | --inclu | --incl | --inc) | |
905 | ac_prev=includedir ;; | |
906 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
907 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
908 | includedir=$ac_optarg ;; | |
909 | ||
910 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
911 | ac_prev=infodir ;; | |
912 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
913 | infodir=$ac_optarg ;; | |
914 | ||
915 | -libdir | --libdir | --libdi | --libd) | |
916 | ac_prev=libdir ;; | |
917 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
918 | libdir=$ac_optarg ;; | |
919 | ||
920 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
921 | | --libexe | --libex | --libe) | |
922 | ac_prev=libexecdir ;; | |
923 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
924 | | --libexe=* | --libex=* | --libe=*) | |
925 | libexecdir=$ac_optarg ;; | |
926 | ||
0743911c FM |
927 | -localedir | --localedir | --localedi | --localed | --locale) |
928 | ac_prev=localedir ;; | |
929 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
930 | localedir=$ac_optarg ;; | |
931 | ||
25697a35 | 932 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
0743911c | 933 | | --localstate | --localstat | --localsta | --localst | --locals) |
25697a35 GS |
934 | ac_prev=localstatedir ;; |
935 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
0743911c | 936 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
25697a35 GS |
937 | localstatedir=$ac_optarg ;; |
938 | ||
939 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
940 | ac_prev=mandir ;; | |
941 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
942 | mandir=$ac_optarg ;; | |
943 | ||
944 | -nfp | --nfp | --nf) | |
945 | # Obsolete; use --without-fp. | |
946 | with_fp=no ;; | |
947 | ||
948 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
949 | | --no-cr | --no-c | -n) | |
950 | no_create=yes ;; | |
951 | ||
952 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
953 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
954 | no_recursion=yes ;; | |
955 | ||
956 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
957 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
958 | | --oldin | --oldi | --old | --ol | --o) | |
959 | ac_prev=oldincludedir ;; | |
960 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
961 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
962 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
963 | oldincludedir=$ac_optarg ;; | |
964 | ||
965 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
966 | ac_prev=prefix ;; | |
967 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
968 | prefix=$ac_optarg ;; | |
969 | ||
970 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
971 | | --program-pre | --program-pr | --program-p) | |
972 | ac_prev=program_prefix ;; | |
973 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
974 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
975 | program_prefix=$ac_optarg ;; | |
976 | ||
977 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
978 | | --program-suf | --program-su | --program-s) | |
979 | ac_prev=program_suffix ;; | |
980 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
981 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
982 | program_suffix=$ac_optarg ;; | |
983 | ||
984 | -program-transform-name | --program-transform-name \ | |
985 | | --program-transform-nam | --program-transform-na \ | |
986 | | --program-transform-n | --program-transform- \ | |
987 | | --program-transform | --program-transfor \ | |
988 | | --program-transfo | --program-transf \ | |
989 | | --program-trans | --program-tran \ | |
990 | | --progr-tra | --program-tr | --program-t) | |
991 | ac_prev=program_transform_name ;; | |
992 | -program-transform-name=* | --program-transform-name=* \ | |
993 | | --program-transform-nam=* | --program-transform-na=* \ | |
994 | | --program-transform-n=* | --program-transform-=* \ | |
995 | | --program-transform=* | --program-transfor=* \ | |
996 | | --program-transfo=* | --program-transf=* \ | |
997 | | --program-trans=* | --program-tran=* \ | |
998 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
999 | program_transform_name=$ac_optarg ;; | |
1000 | ||
0743911c FM |
1001 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1002 | ac_prev=pdfdir ;; | |
1003 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1004 | pdfdir=$ac_optarg ;; | |
1005 | ||
1006 | -psdir | --psdir | --psdi | --psd | --ps) | |
1007 | ac_prev=psdir ;; | |
1008 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1009 | psdir=$ac_optarg ;; | |
1010 | ||
25697a35 GS |
1011 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1012 | | -silent | --silent | --silen | --sile | --sil) | |
1013 | silent=yes ;; | |
1014 | ||
1015 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1016 | ac_prev=sbindir ;; | |
1017 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1018 | | --sbi=* | --sb=*) | |
1019 | sbindir=$ac_optarg ;; | |
1020 | ||
1021 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1022 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1023 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1024 | | --sha | --sh) | |
1025 | ac_prev=sharedstatedir ;; | |
1026 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1027 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1028 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1029 | | --sha=* | --sh=*) | |
1030 | sharedstatedir=$ac_optarg ;; | |
1031 | ||
1032 | -site | --site | --sit) | |
1033 | ac_prev=site ;; | |
1034 | -site=* | --site=* | --sit=*) | |
1035 | site=$ac_optarg ;; | |
1036 | ||
1037 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1038 | ac_prev=srcdir ;; | |
1039 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1040 | srcdir=$ac_optarg ;; | |
1041 | ||
1042 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1043 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1044 | ac_prev=sysconfdir ;; | |
1045 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1046 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1047 | sysconfdir=$ac_optarg ;; | |
1048 | ||
1049 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1050 | ac_prev=target_alias ;; | |
1051 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1052 | target_alias=$ac_optarg ;; | |
1053 | ||
1054 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1055 | verbose=yes ;; | |
1056 | ||
1057 | -version | --version | --versio | --versi | --vers | -V) | |
1058 | ac_init_version=: ;; | |
1059 | ||
1060 | -with-* | --with-*) | |
1164c474 | 1061 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
25697a35 | 1062 | # Reject names that are not valid shell variable names. |
1164c474 FM |
1063 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1064 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
25697a35 | 1065 | { (exit 1); exit 1; }; } |
1164c474 FM |
1066 | ac_useropt_orig=$ac_useropt |
1067 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1068 | case $ac_user_opts in | |
1069 | *" | |
1070 | "with_$ac_useropt" | |
1071 | "*) ;; | |
1072 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1073 | ac_unrecognized_sep=', ';; | |
1074 | esac | |
1075 | eval with_$ac_useropt=\$ac_optarg ;; | |
25697a35 GS |
1076 | |
1077 | -without-* | --without-*) | |
1164c474 | 1078 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
25697a35 | 1079 | # Reject names that are not valid shell variable names. |
1164c474 FM |
1080 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1081 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
25697a35 | 1082 | { (exit 1); exit 1; }; } |
1164c474 FM |
1083 | ac_useropt_orig=$ac_useropt |
1084 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1085 | case $ac_user_opts in | |
1086 | *" | |
1087 | "with_$ac_useropt" | |
1088 | "*) ;; | |
1089 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1090 | ac_unrecognized_sep=', ';; | |
1091 | esac | |
1092 | eval with_$ac_useropt=no ;; | |
25697a35 GS |
1093 | |
1094 | --x) | |
1095 | # Obsolete; use --with-x. | |
1096 | with_x=yes ;; | |
1097 | ||
1098 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1099 | | --x-incl | --x-inc | --x-in | --x-i) | |
1100 | ac_prev=x_includes ;; | |
1101 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1102 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1103 | x_includes=$ac_optarg ;; | |
1104 | ||
1105 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1106 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1107 | ac_prev=x_libraries ;; | |
1108 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1109 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1110 | x_libraries=$ac_optarg ;; | |
1111 | ||
1164c474 | 1112 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
25697a35 GS |
1113 | Try \`$0 --help' for more information." >&2 |
1114 | { (exit 1); exit 1; }; } | |
1115 | ;; | |
1116 | ||
1117 | *=*) | |
1118 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1119 | # Reject names that are not valid shell variable names. | |
1120 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1164c474 | 1121 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
25697a35 | 1122 | { (exit 1); exit 1; }; } |
0743911c | 1123 | eval $ac_envvar=\$ac_optarg |
25697a35 GS |
1124 | export $ac_envvar ;; |
1125 | ||
1126 | *) | |
1127 | # FIXME: should be removed in autoconf 3.0. | |
1164c474 | 1128 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
25697a35 | 1129 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1164c474 | 1130 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
25697a35 GS |
1131 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1132 | ;; | |
1133 | ||
1134 | esac | |
1135 | done | |
1136 | ||
1137 | if test -n "$ac_prev"; then | |
1138 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1164c474 | 1139 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
25697a35 GS |
1140 | { (exit 1); exit 1; }; } |
1141 | fi | |
1142 | ||
1164c474 FM |
1143 | if test -n "$ac_unrecognized_opts"; then |
1144 | case $enable_option_checking in | |
1145 | no) ;; | |
1146 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1147 | { (exit 1); exit 1; }; } ;; | |
1148 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1149 | esac | |
1150 | fi | |
1151 | ||
1152 | # Check all directory arguments for consistency. | |
0743911c FM |
1153 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1154 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1155 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1156 | libdir localedir mandir | |
25697a35 | 1157 | do |
0743911c | 1158 | eval ac_val=\$$ac_var |
1164c474 FM |
1159 | # Remove trailing slashes. |
1160 | case $ac_val in | |
1161 | */ ) | |
1162 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1163 | eval $ac_var=\$ac_val;; | |
1164 | esac | |
1165 | # Be sure to have absolute directory names. | |
25697a35 | 1166 | case $ac_val in |
0743911c FM |
1167 | [\\/$]* | ?:[\\/]* ) continue;; |
1168 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
25697a35 | 1169 | esac |
1164c474 | 1170 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
0743911c | 1171 | { (exit 1); exit 1; }; } |
25697a35 GS |
1172 | done |
1173 | ||
1174 | # There might be people who depend on the old broken behavior: `$host' | |
1175 | # used to hold the argument of --host etc. | |
1176 | # FIXME: To remove some day. | |
1177 | build=$build_alias | |
1178 | host=$host_alias | |
1179 | target=$target_alias | |
1180 | ||
1181 | # FIXME: To remove some day. | |
1182 | if test "x$host_alias" != x; then | |
1183 | if test "x$build_alias" = x; then | |
1184 | cross_compiling=maybe | |
1164c474 | 1185 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
25697a35 GS |
1186 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1187 | elif test "x$build_alias" != "x$host_alias"; then | |
1188 | cross_compiling=yes | |
1189 | fi | |
1190 | fi | |
1191 | ||
1192 | ac_tool_prefix= | |
1193 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1194 | ||
1195 | test "$silent" = yes && exec 6>/dev/null | |
1196 | ||
1197 | ||
0743911c FM |
1198 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1199 | ac_ls_di=`ls -di .` && | |
1200 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1164c474 | 1201 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
0743911c FM |
1202 | { (exit 1); exit 1; }; } |
1203 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1164c474 | 1204 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
0743911c FM |
1205 | { (exit 1); exit 1; }; } |
1206 | ||
1207 | ||
25697a35 GS |
1208 | # Find the source files, if location was not specified. |
1209 | if test -z "$srcdir"; then | |
1210 | ac_srcdir_defaulted=yes | |
0743911c | 1211 | # Try the directory containing this script, then the parent directory. |
1164c474 FM |
1212 | ac_confdir=`$as_dirname -- "$as_myself" || |
1213 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1214 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1215 | X"$as_myself" : 'X\(//\)$' \| \ | |
1216 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1217 | $as_echo X"$as_myself" | | |
0743911c FM |
1218 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1219 | s//\1/ | |
1220 | q | |
1221 | } | |
1222 | /^X\(\/\/\)[^/].*/{ | |
1223 | s//\1/ | |
1224 | q | |
1225 | } | |
1226 | /^X\(\/\/\)$/{ | |
1227 | s//\1/ | |
1228 | q | |
1229 | } | |
1230 | /^X\(\/\).*/{ | |
1231 | s//\1/ | |
1232 | q | |
1233 | } | |
1234 | s/.*/./; q'` | |
25697a35 | 1235 | srcdir=$ac_confdir |
0743911c | 1236 | if test ! -r "$srcdir/$ac_unique_file"; then |
25697a35 GS |
1237 | srcdir=.. |
1238 | fi | |
1239 | else | |
1240 | ac_srcdir_defaulted=no | |
1241 | fi | |
0743911c FM |
1242 | if test ! -r "$srcdir/$ac_unique_file"; then |
1243 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1164c474 | 1244 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
25697a35 | 1245 | { (exit 1); exit 1; }; } |
25697a35 | 1246 | fi |
0743911c FM |
1247 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1248 | ac_abs_confdir=`( | |
1164c474 | 1249 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
25697a35 | 1250 | { (exit 1); exit 1; }; } |
0743911c FM |
1251 | pwd)` |
1252 | # When building in place, set srcdir=. | |
1253 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1254 | srcdir=. | |
1255 | fi | |
1256 | # Remove unnecessary trailing slashes from srcdir. | |
1257 | # Double slashes in file names in object file debugging info | |
1258 | # mess up M-x gdb in Emacs. | |
1259 | case $srcdir in | |
1260 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1261 | esac | |
1262 | for ac_var in $ac_precious_vars; do | |
1263 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1264 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1265 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1266 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1267 | done | |
25697a35 GS |
1268 | |
1269 | # | |
1270 | # Report the --help message. | |
1271 | # | |
1272 | if test "$ac_init_help" = "long"; then | |
1273 | # Omit some internal or obsolete options to make the list less imposing. | |
1274 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1275 | cat <<_ACEOF | |
c814928f | 1276 | \`configure' configures sarg 2.2.7 to adapt to many kinds of systems. |
25697a35 GS |
1277 | |
1278 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1279 | ||
1280 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1281 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1282 | ||
1283 | Defaults for the options are specified in brackets. | |
1284 | ||
1285 | Configuration: | |
1286 | -h, --help display this help and exit | |
1287 | --help=short display options specific to this package | |
1288 | --help=recursive display the short help of all the included packages | |
1289 | -V, --version display version information and exit | |
1290 | -q, --quiet, --silent do not print \`checking...' messages | |
1291 | --cache-file=FILE cache test results in FILE [disabled] | |
1292 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1293 | -n, --no-create do not create output files | |
1294 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1295 | ||
25697a35 GS |
1296 | Installation directories: |
1297 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1164c474 | 1298 | [$ac_default_prefix] |
25697a35 | 1299 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1164c474 | 1300 | [PREFIX] |
25697a35 GS |
1301 | |
1302 | By default, \`make install' will install all the files in | |
1303 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1304 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1305 | for instance \`--prefix=\$HOME'. | |
1306 | ||
1307 | For better control, use the options below. | |
1308 | ||
1309 | Fine tuning of the installation directories: | |
1164c474 FM |
1310 | --bindir=DIR user executables [EPREFIX/bin] |
1311 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1312 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1313 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1314 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1315 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1316 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1317 | --includedir=DIR C header files [PREFIX/include] | |
1318 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1319 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1320 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1321 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1322 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1323 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1324 | --docdir=DIR documentation root [DATAROOTDIR/doc/sarg] | |
1325 | --htmldir=DIR html documentation [DOCDIR] | |
1326 | --dvidir=DIR dvi documentation [DOCDIR] | |
1327 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1328 | --psdir=DIR ps documentation [DOCDIR] | |
25697a35 GS |
1329 | _ACEOF |
1330 | ||
1331 | cat <<\_ACEOF | |
1332 | ||
1333 | System types: | |
1334 | --build=BUILD configure for building on BUILD [guessed] | |
1335 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1336 | _ACEOF | |
1337 | fi | |
1338 | ||
1339 | if test -n "$ac_init_help"; then | |
2357ef77 | 1340 | case $ac_init_help in |
c814928f | 1341 | short | recursive ) echo "Configuration of sarg 2.2.7:";; |
2357ef77 | 1342 | esac |
25697a35 GS |
1343 | cat <<\_ACEOF |
1344 | ||
1345 | Optional Features: | |
1164c474 | 1346 | --disable-option-checking ignore unrecognized --enable/--with options |
25697a35 GS |
1347 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1348 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
d6e703cc | 1349 | --disable-rpath do not hardcode runtime library paths |
32e71fa4 | 1350 | --disable-largefile omit support for large files |
7bbc1de4 FM |
1351 | --enable-sargphp=sargphpdir |
1352 | Select sargphpdir as the directory to install sarg-php into | |
b3695c67 FM |
1353 | --enable-languagedir=languagedir |
1354 | Select languagedir as the directory with the translations of sarg | |
1355 | --enable-fontdir=fontdir | |
1356 | Select fontdir as the directory with the fonts to use in the reports | |
1357 | --enable-imagedir=imagedir | |
1358 | Select imagedir as the directory with the images to use in the reports | |
05b90947 FM |
1359 | --enable-extraprotection |
1360 | Enable compile and runtime extra protections | |
25697a35 GS |
1361 | |
1362 | Optional Packages: | |
1363 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1364 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1365 | --without-gcc use CC to compile | |
d6e703cc FM |
1366 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1367 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1368 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
25697a35 GS |
1369 | |
1370 | Some influential environment variables: | |
1371 | CC C compiler command | |
1372 | CFLAGS C compiler flags | |
1373 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1374 | nonstandard directory <lib dir> | |
0743911c FM |
1375 | LIBS libraries to pass to the linker, e.g. -l<library> |
1376 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1377 | you have headers in a nonstandard directory <include dir> | |
25697a35 GS |
1378 | CPP C preprocessor |
1379 | ||
1380 | Use these variables to override the choices made by `configure' or to help | |
1381 | it to find libraries and programs with nonstandard names/locations. | |
1382 | ||
1383 | _ACEOF | |
0743911c | 1384 | ac_status=$? |
25697a35 GS |
1385 | fi |
1386 | ||
1387 | if test "$ac_init_help" = "recursive"; then | |
1388 | # If there are subdirs, report their specific --help. | |
25697a35 | 1389 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1164c474 FM |
1390 | test -d "$ac_dir" || |
1391 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1392 | continue | |
25697a35 GS |
1393 | ac_builddir=. |
1394 | ||
0743911c FM |
1395 | case "$ac_dir" in |
1396 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1397 | *) | |
1164c474 | 1398 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
0743911c | 1399 | # A ".." for each directory in $ac_dir_suffix. |
1164c474 | 1400 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
0743911c FM |
1401 | case $ac_top_builddir_sub in |
1402 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1403 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1404 | esac ;; | |
1405 | esac | |
1406 | ac_abs_top_builddir=$ac_pwd | |
1407 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1408 | # for backward compatibility: | |
1409 | ac_top_builddir=$ac_top_build_prefix | |
25697a35 GS |
1410 | |
1411 | case $srcdir in | |
0743911c | 1412 | .) # We are building in place. |
25697a35 | 1413 | ac_srcdir=. |
0743911c FM |
1414 | ac_top_srcdir=$ac_top_builddir_sub |
1415 | ac_abs_top_srcdir=$ac_pwd ;; | |
1416 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
25697a35 | 1417 | ac_srcdir=$srcdir$ac_dir_suffix; |
0743911c FM |
1418 | ac_top_srcdir=$srcdir |
1419 | ac_abs_top_srcdir=$srcdir ;; | |
1420 | *) # Relative name. | |
1421 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1422 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1423 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
25697a35 | 1424 | esac |
0743911c FM |
1425 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1426 | ||
1427 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1428 | # Check for guested configure. | |
1429 | if test -f "$ac_srcdir/configure.gnu"; then | |
1430 | echo && | |
1431 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1432 | elif test -f "$ac_srcdir/configure"; then | |
1433 | echo && | |
1434 | $SHELL "$ac_srcdir/configure" --help=recursive | |
25697a35 | 1435 | else |
1164c474 | 1436 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
0743911c FM |
1437 | fi || ac_status=$? |
1438 | cd "$ac_pwd" || { ac_status=$?; break; } | |
25697a35 GS |
1439 | done |
1440 | fi | |
1441 | ||
0743911c | 1442 | test -n "$ac_init_help" && exit $ac_status |
25697a35 GS |
1443 | if $ac_init_version; then |
1444 | cat <<\_ACEOF | |
c814928f | 1445 | sarg configure 2.2.7 |
1164c474 | 1446 | generated by GNU Autoconf 2.63 |
25697a35 | 1447 | |
0743911c | 1448 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1164c474 | 1449 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
25697a35 GS |
1450 | This configure script is free software; the Free Software Foundation |
1451 | gives unlimited permission to copy, distribute and modify it. | |
1452 | _ACEOF | |
0743911c | 1453 | exit |
25697a35 | 1454 | fi |
0743911c | 1455 | cat >config.log <<_ACEOF |
25697a35 GS |
1456 | This file contains any messages produced by compilers while |
1457 | running configure, to aid debugging if configure makes a mistake. | |
1458 | ||
c814928f | 1459 | It was created by sarg $as_me 2.2.7, which was |
1164c474 | 1460 | generated by GNU Autoconf 2.63. Invocation command line was |
25697a35 GS |
1461 | |
1462 | $ $0 $@ | |
1463 | ||
1464 | _ACEOF | |
0743911c | 1465 | exec 5>>config.log |
25697a35 GS |
1466 | { |
1467 | cat <<_ASUNAME | |
1468 | ## --------- ## | |
1469 | ## Platform. ## | |
1470 | ## --------- ## | |
1471 | ||
1472 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1473 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1474 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1475 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1476 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1477 | ||
1478 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1479 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1480 | ||
1481 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1482 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1483 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
0743911c | 1484 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
25697a35 GS |
1485 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1486 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1487 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1488 | ||
1489 | _ASUNAME | |
1490 | ||
1491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1492 | for as_dir in $PATH | |
1493 | do | |
1494 | IFS=$as_save_IFS | |
1495 | test -z "$as_dir" && as_dir=. | |
1164c474 | 1496 | $as_echo "PATH: $as_dir" |
25697a35 | 1497 | done |
0743911c | 1498 | IFS=$as_save_IFS |
25697a35 GS |
1499 | |
1500 | } >&5 | |
1501 | ||
1502 | cat >&5 <<_ACEOF | |
1503 | ||
1504 | ||
1505 | ## ----------- ## | |
1506 | ## Core tests. ## | |
1507 | ## ----------- ## | |
1508 | ||
1509 | _ACEOF | |
1510 | ||
1511 | ||
1512 | # Keep a trace of the command line. | |
1513 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1514 | # Strip out --silent because we don't want to record it for future runs. | |
1515 | # Also quote any args containing shell meta-characters. | |
1516 | # Make two passes to allow for proper duplicate-argument suppression. | |
1517 | ac_configure_args= | |
1518 | ac_configure_args0= | |
1519 | ac_configure_args1= | |
25697a35 GS |
1520 | ac_must_keep_next=false |
1521 | for ac_pass in 1 2 | |
1522 | do | |
1523 | for ac_arg | |
1524 | do | |
1525 | case $ac_arg in | |
1526 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1527 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1528 | | -silent | --silent | --silen | --sile | --sil) | |
1529 | continue ;; | |
0743911c | 1530 | *\'*) |
1164c474 | 1531 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
25697a35 GS |
1532 | esac |
1533 | case $ac_pass in | |
1534 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1535 | 2) | |
1536 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1537 | if test $ac_must_keep_next = true; then | |
1538 | ac_must_keep_next=false # Got value, back to normal. | |
1539 | else | |
1540 | case $ac_arg in | |
1541 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1542 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1543 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1544 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1545 | case "$ac_configure_args0 " in | |
1546 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1547 | esac | |
1548 | ;; | |
1549 | -* ) ac_must_keep_next=true ;; | |
1550 | esac | |
1551 | fi | |
0743911c | 1552 | ac_configure_args="$ac_configure_args '$ac_arg'" |
25697a35 GS |
1553 | ;; |
1554 | esac | |
1555 | done | |
1556 | done | |
1557 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1558 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1559 | ||
1560 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1561 | # config.log. We remove comments because anyway the quotes in there | |
1562 | # would cause problems or look ugly. | |
0743911c FM |
1563 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1564 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
25697a35 GS |
1565 | trap 'exit_status=$? |
1566 | # Save into config.log some information that might help in debugging. | |
1567 | { | |
1568 | echo | |
1569 | ||
1570 | cat <<\_ASBOX | |
1571 | ## ---------------- ## | |
1572 | ## Cache variables. ## | |
1573 | ## ---------------- ## | |
1574 | _ASBOX | |
1575 | echo | |
1576 | # The following way of writing the cache mishandles newlines in values, | |
0743911c FM |
1577 | ( |
1578 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1579 | eval ac_val=\$$ac_var | |
1580 | case $ac_val in #( | |
1581 | *${as_nl}*) | |
1582 | case $ac_var in #( | |
1164c474 FM |
1583 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1584 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
0743911c FM |
1585 | esac |
1586 | case $ac_var in #( | |
1587 | _ | IFS | as_nl) ;; #( | |
1164c474 | 1588 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
0743911c FM |
1589 | *) $as_unset $ac_var ;; |
1590 | esac ;; | |
1591 | esac | |
1592 | done | |
25697a35 | 1593 | (set) 2>&1 | |
0743911c FM |
1594 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1595 | *${as_nl}ac_space=\ *) | |
25697a35 | 1596 | sed -n \ |
0743911c FM |
1597 | "s/'\''/'\''\\\\'\'''\''/g; |
1598 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1599 | ;; #( | |
25697a35 | 1600 | *) |
0743911c | 1601 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
25697a35 | 1602 | ;; |
0743911c FM |
1603 | esac | |
1604 | sort | |
1605 | ) | |
25697a35 GS |
1606 | echo |
1607 | ||
1608 | cat <<\_ASBOX | |
1609 | ## ----------------- ## | |
1610 | ## Output variables. ## | |
1611 | ## ----------------- ## | |
1612 | _ASBOX | |
1613 | echo | |
1614 | for ac_var in $ac_subst_vars | |
1615 | do | |
0743911c FM |
1616 | eval ac_val=\$$ac_var |
1617 | case $ac_val in | |
1164c474 | 1618 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
0743911c | 1619 | esac |
1164c474 | 1620 | $as_echo "$ac_var='\''$ac_val'\''" |
25697a35 GS |
1621 | done | sort |
1622 | echo | |
1623 | ||
1624 | if test -n "$ac_subst_files"; then | |
1625 | cat <<\_ASBOX | |
0743911c FM |
1626 | ## ------------------- ## |
1627 | ## File substitutions. ## | |
1628 | ## ------------------- ## | |
25697a35 GS |
1629 | _ASBOX |
1630 | echo | |
1631 | for ac_var in $ac_subst_files | |
1632 | do | |
0743911c FM |
1633 | eval ac_val=\$$ac_var |
1634 | case $ac_val in | |
1164c474 | 1635 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
0743911c | 1636 | esac |
1164c474 | 1637 | $as_echo "$ac_var='\''$ac_val'\''" |
25697a35 GS |
1638 | done | sort |
1639 | echo | |
1640 | fi | |
1641 | ||
1642 | if test -s confdefs.h; then | |
1643 | cat <<\_ASBOX | |
1644 | ## ----------- ## | |
1645 | ## confdefs.h. ## | |
1646 | ## ----------- ## | |
1647 | _ASBOX | |
1648 | echo | |
0743911c | 1649 | cat confdefs.h |
25697a35 GS |
1650 | echo |
1651 | fi | |
1652 | test "$ac_signal" != 0 && | |
1164c474 FM |
1653 | $as_echo "$as_me: caught signal $ac_signal" |
1654 | $as_echo "$as_me: exit $exit_status" | |
25697a35 | 1655 | } >&5 |
0743911c FM |
1656 | rm -f core *.core core.conftest.* && |
1657 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
25697a35 | 1658 | exit $exit_status |
0743911c | 1659 | ' 0 |
25697a35 GS |
1660 | for ac_signal in 1 2 13 15; do |
1661 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1662 | done | |
1663 | ac_signal=0 | |
1664 | ||
1665 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
0743911c | 1666 | rm -f -r conftest* confdefs.h |
25697a35 GS |
1667 | |
1668 | # Predefined preprocessor variables. | |
1669 | ||
1670 | cat >>confdefs.h <<_ACEOF | |
1671 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1672 | _ACEOF | |
1673 | ||
1674 | ||
1675 | cat >>confdefs.h <<_ACEOF | |
1676 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1677 | _ACEOF | |
1678 | ||
1679 | ||
1680 | cat >>confdefs.h <<_ACEOF | |
1681 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1682 | _ACEOF | |
1683 | ||
1684 | ||
1685 | cat >>confdefs.h <<_ACEOF | |
1686 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1687 | _ACEOF | |
1688 | ||
1689 | ||
1690 | cat >>confdefs.h <<_ACEOF | |
1691 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1692 | _ACEOF | |
1693 | ||
1694 | ||
1695 | # Let the site file select an alternate cache file if it wants to. | |
1164c474 FM |
1696 | # Prefer an explicitly selected file to automatically selected ones. |
1697 | ac_site_file1=NONE | |
1698 | ac_site_file2=NONE | |
0743911c | 1699 | if test -n "$CONFIG_SITE"; then |
1164c474 | 1700 | ac_site_file1=$CONFIG_SITE |
0743911c | 1701 | elif test "x$prefix" != xNONE; then |
1164c474 FM |
1702 | ac_site_file1=$prefix/share/config.site |
1703 | ac_site_file2=$prefix/etc/config.site | |
0743911c | 1704 | else |
1164c474 FM |
1705 | ac_site_file1=$ac_default_prefix/share/config.site |
1706 | ac_site_file2=$ac_default_prefix/etc/config.site | |
25697a35 | 1707 | fi |
1164c474 | 1708 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
0743911c | 1709 | do |
1164c474 | 1710 | test "x$ac_site_file" = xNONE && continue |
25697a35 | 1711 | if test -r "$ac_site_file"; then |
1164c474 FM |
1712 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1713 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
25697a35 GS |
1714 | sed 's/^/| /' "$ac_site_file" >&5 |
1715 | . "$ac_site_file" | |
1716 | fi | |
1717 | done | |
1718 | ||
1719 | if test -r "$cache_file"; then | |
1720 | # Some versions of bash will fail to source /dev/null (special | |
1721 | # files actually), so we avoid doing that. | |
1722 | if test -f "$cache_file"; then | |
1164c474 FM |
1723 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1724 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
25697a35 | 1725 | case $cache_file in |
0743911c FM |
1726 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1727 | *) . "./$cache_file";; | |
25697a35 GS |
1728 | esac |
1729 | fi | |
1730 | else | |
1164c474 FM |
1731 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1732 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
25697a35 GS |
1733 | >$cache_file |
1734 | fi | |
1735 | ||
1736 | # Check that the precious variables saved in the cache have kept the same | |
1737 | # value. | |
1738 | ac_cache_corrupted=false | |
0743911c | 1739 | for ac_var in $ac_precious_vars; do |
25697a35 GS |
1740 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1741 | eval ac_new_set=\$ac_env_${ac_var}_set | |
0743911c FM |
1742 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1743 | eval ac_new_val=\$ac_env_${ac_var}_value | |
25697a35 GS |
1744 | case $ac_old_set,$ac_new_set in |
1745 | set,) | |
1164c474 FM |
1746 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1747 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
25697a35 GS |
1748 | ac_cache_corrupted=: ;; |
1749 | ,set) | |
1164c474 FM |
1750 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1751 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
25697a35 GS |
1752 | ac_cache_corrupted=: ;; |
1753 | ,);; | |
1754 | *) | |
1755 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1164c474 FM |
1756 | # differences in whitespace do not lead to failure. |
1757 | ac_old_val_w=`echo x $ac_old_val` | |
1758 | ac_new_val_w=`echo x $ac_new_val` | |
1759 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1760 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1761 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1762 | ac_cache_corrupted=: | |
1763 | else | |
1764 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1765 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1766 | eval $ac_var=\$ac_old_val | |
1767 | fi | |
1768 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1769 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1770 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1771 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
25697a35 GS |
1772 | fi;; |
1773 | esac | |
1774 | # Pass precious variables to config.status. | |
1775 | if test "$ac_new_set" = set; then | |
1776 | case $ac_new_val in | |
1164c474 | 1777 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
25697a35 GS |
1778 | *) ac_arg=$ac_var=$ac_new_val ;; |
1779 | esac | |
1780 | case " $ac_configure_args " in | |
1781 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1782 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1783 | esac | |
1784 | fi | |
1785 | done | |
1786 | if $ac_cache_corrupted; then | |
1164c474 FM |
1787 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1788 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1789 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1790 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1791 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1792 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
25697a35 GS |
1793 | { (exit 1); exit 1; }; } |
1794 | fi | |
1795 | ||
25697a35 GS |
1796 | |
1797 | ||
1798 | ||
1799 | ||
1800 | ||
1801 | ||
1802 | ||
1803 | ||
1804 | ||
1805 | ||
1806 | ||
2357ef77 FM |
1807 | |
1808 | ||
1809 | ||
1810 | ||
1811 | ||
1812 | ||
1813 | ||
1814 | ||
25697a35 GS |
1815 | |
1816 | ||
1817 | ||
1818 | ||
1819 | ||
0743911c FM |
1820 | ac_ext=c |
1821 | ac_cpp='$CPP $CPPFLAGS' | |
1822 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1823 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1824 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25697a35 GS |
1825 | |
1826 | ||
1827 | ||
1828 | ac_aux_dir= | |
0743911c FM |
1829 | for ac_dir in cfgaux "$srcdir"/cfgaux; do |
1830 | if test -f "$ac_dir/install-sh"; then | |
25697a35 GS |
1831 | ac_aux_dir=$ac_dir |
1832 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1833 | break | |
0743911c | 1834 | elif test -f "$ac_dir/install.sh"; then |
25697a35 GS |
1835 | ac_aux_dir=$ac_dir |
1836 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1837 | break | |
0743911c | 1838 | elif test -f "$ac_dir/shtool"; then |
25697a35 GS |
1839 | ac_aux_dir=$ac_dir |
1840 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1841 | break | |
1842 | fi | |
1843 | done | |
1844 | if test -z "$ac_aux_dir"; then | |
1164c474 FM |
1845 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux \"$srcdir\"/cfgaux" >&5 |
1846 | $as_echo "$as_me: error: cannot find install-sh or install.sh in cfgaux \"$srcdir\"/cfgaux" >&2;} | |
25697a35 GS |
1847 | { (exit 1); exit 1; }; } |
1848 | fi | |
0743911c FM |
1849 | |
1850 | # These three variables are undocumented and unsupported, | |
1851 | # and are intended to be withdrawn in a future Autoconf release. | |
1852 | # They can cause serious problems if a builder's source tree is in a directory | |
1853 | # whose full name contains unusual characters. | |
1854 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1855 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1856 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1857 | ||
25697a35 GS |
1858 | |
1859 | ||
25697a35 | 1860 | # Make sure we can run config.sub. |
0743911c | 1861 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1164c474 FM |
1862 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1863 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
25697a35 GS |
1864 | { (exit 1); exit 1; }; } |
1865 | ||
1164c474 FM |
1866 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
1867 | $as_echo_n "checking build system type... " >&6; } | |
25697a35 | 1868 | if test "${ac_cv_build+set}" = set; then |
1164c474 | 1869 | $as_echo_n "(cached) " >&6 |
25697a35 | 1870 | else |
0743911c FM |
1871 | ac_build_alias=$build_alias |
1872 | test "x$ac_build_alias" = x && | |
1873 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1874 | test "x$ac_build_alias" = x && | |
1164c474 FM |
1875 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1876 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
25697a35 | 1877 | { (exit 1); exit 1; }; } |
0743911c | 1878 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
1164c474 FM |
1879 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
1880 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
25697a35 GS |
1881 | { (exit 1); exit 1; }; } |
1882 | ||
1883 | fi | |
1164c474 FM |
1884 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1885 | $as_echo "$ac_cv_build" >&6; } | |
0743911c FM |
1886 | case $ac_cv_build in |
1887 | *-*-*) ;; | |
1164c474 FM |
1888 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
1889 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
0743911c FM |
1890 | { (exit 1); exit 1; }; };; |
1891 | esac | |
25697a35 | 1892 | build=$ac_cv_build |
0743911c FM |
1893 | ac_save_IFS=$IFS; IFS='-' |
1894 | set x $ac_cv_build | |
1895 | shift | |
1896 | build_cpu=$1 | |
1897 | build_vendor=$2 | |
1898 | shift; shift | |
1899 | # Remember, the first character of IFS is used to create $*, | |
1900 | # except with old shells: | |
1901 | build_os=$* | |
1902 | IFS=$ac_save_IFS | |
1903 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
1904 | ||
1905 | ||
1164c474 FM |
1906 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
1907 | $as_echo_n "checking host system type... " >&6; } | |
25697a35 | 1908 | if test "${ac_cv_host+set}" = set; then |
1164c474 | 1909 | $as_echo_n "(cached) " >&6 |
25697a35 | 1910 | else |
0743911c FM |
1911 | if test "x$host_alias" = x; then |
1912 | ac_cv_host=$ac_cv_build | |
1913 | else | |
1914 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
1164c474 FM |
1915 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
1916 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
25697a35 | 1917 | { (exit 1); exit 1; }; } |
0743911c | 1918 | fi |
25697a35 GS |
1919 | |
1920 | fi | |
1164c474 FM |
1921 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1922 | $as_echo "$ac_cv_host" >&6; } | |
0743911c FM |
1923 | case $ac_cv_host in |
1924 | *-*-*) ;; | |
1164c474 FM |
1925 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
1926 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
0743911c FM |
1927 | { (exit 1); exit 1; }; };; |
1928 | esac | |
25697a35 | 1929 | host=$ac_cv_host |
0743911c FM |
1930 | ac_save_IFS=$IFS; IFS='-' |
1931 | set x $ac_cv_host | |
1932 | shift | |
1933 | host_cpu=$1 | |
1934 | host_vendor=$2 | |
1935 | shift; shift | |
1936 | # Remember, the first character of IFS is used to create $*, | |
1937 | # except with old shells: | |
1938 | host_os=$* | |
1939 | IFS=$ac_save_IFS | |
1940 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
25697a35 GS |
1941 | |
1942 | ||
1943 | ||
1944 | ||
0743911c | 1945 | # Check whether --with-gcc was given. |
25697a35 | 1946 | if test "${with_gcc+set}" = set; then |
0743911c FM |
1947 | withval=$with_gcc; |
1948 | fi | |
25697a35 | 1949 | |
25697a35 GS |
1950 | |
1951 | test -n "$CC" && cc_specified=yes | |
1952 | case ${with_gcc} in | |
1953 | yes ) CC=gcc ;; | |
1954 | no ) CC=cc ;; | |
1955 | * ) ac_ext=c | |
1956 | ac_cpp='$CPP $CPPFLAGS' | |
1957 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1958 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1959 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1960 | if test -n "$ac_tool_prefix"; then | |
1961 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1962 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1164c474 FM |
1963 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1964 | $as_echo_n "checking for $ac_word... " >&6; } | |
25697a35 | 1965 | if test "${ac_cv_prog_CC+set}" = set; then |
1164c474 | 1966 | $as_echo_n "(cached) " >&6 |
25697a35 GS |
1967 | else |
1968 | if test -n "$CC"; then | |
1969 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1970 | else | |
1971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1972 | for as_dir in $PATH | |
1973 | do | |
1974 | IFS=$as_save_IFS | |
1975 | test -z "$as_dir" && as_dir=. | |
1976 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0743911c | 1977 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
25697a35 | 1978 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1164c474 | 1979 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25697a35 GS |
1980 | break 2 |
1981 | fi | |
1982 | done | |
1983 | done | |
0743911c | 1984 | IFS=$as_save_IFS |
25697a35 GS |
1985 | |
1986 | fi | |
1987 | fi | |
1988 | CC=$ac_cv_prog_CC | |
1989 | if test -n "$CC"; then | |
1164c474 FM |
1990 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
1991 | $as_echo "$CC" >&6; } | |
25697a35 | 1992 | else |
1164c474 FM |
1993 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
1994 | $as_echo "no" >&6; } | |
25697a35 GS |
1995 | fi |
1996 | ||
0743911c | 1997 | |
25697a35 GS |
1998 | fi |
1999 | if test -z "$ac_cv_prog_CC"; then | |
2000 | ac_ct_CC=$CC | |
2001 | # Extract the first word of "gcc", so it can be a program name with args. | |
2002 | set dummy gcc; ac_word=$2 | |
1164c474 FM |
2003 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2004 | $as_echo_n "checking for $ac_word... " >&6; } | |
25697a35 | 2005 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1164c474 | 2006 | $as_echo_n "(cached) " >&6 |
25697a35 GS |
2007 | else |
2008 | if test -n "$ac_ct_CC"; then | |
2009 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2010 | else | |
2011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2012 | for as_dir in $PATH | |
2013 | do | |
2014 | IFS=$as_save_IFS | |
2015 | test -z "$as_dir" && as_dir=. | |
2016 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0743911c | 2017 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
25697a35 | 2018 | ac_cv_prog_ac_ct_CC="gcc" |
1164c474 | 2019 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25697a35 GS |
2020 | break 2 |
2021 | fi | |
2022 | done | |
2023 | done | |
0743911c | 2024 | IFS=$as_save_IFS |
25697a35 GS |
2025 | |
2026 | fi | |
2027 | fi | |
2028 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2029 | if test -n "$ac_ct_CC"; then | |
1164c474 FM |
2030 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2031 | $as_echo "$ac_ct_CC" >&6; } | |
25697a35 | 2032 | else |
1164c474 FM |
2033 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2034 | $as_echo "no" >&6; } | |
25697a35 GS |
2035 | fi |
2036 | ||
0743911c FM |
2037 | if test "x$ac_ct_CC" = x; then |
2038 | CC="" | |
2039 | else | |
2040 | case $cross_compiling:$ac_tool_warned in | |
2041 | yes:) | |
1164c474 FM |
2042 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2043 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
0743911c FM |
2044 | ac_tool_warned=yes ;; |
2045 | esac | |
2046 | CC=$ac_ct_CC | |
2047 | fi | |
25697a35 GS |
2048 | else |
2049 | CC="$ac_cv_prog_CC" | |
2050 | fi | |
2051 | ||
2052 | if test -z "$CC"; then | |
0743911c FM |
2053 | if test -n "$ac_tool_prefix"; then |
2054 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
25697a35 | 2055 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1164c474 FM |
2056 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2057 | $as_echo_n "checking for $ac_word... " >&6; } | |
25697a35 | 2058 | if test "${ac_cv_prog_CC+set}" = set; then |
1164c474 | 2059 | $as_echo_n "(cached) " >&6 |
25697a35 GS |
2060 | else |
2061 | if test -n "$CC"; then | |
2062 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2063 | else | |
2064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2065 | for as_dir in $PATH | |
2066 | do | |
2067 | IFS=$as_save_IFS | |
2068 | test -z "$as_dir" && as_dir=. | |
2069 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0743911c | 2070 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
25697a35 | 2071 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1164c474 | 2072 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25697a35 GS |
2073 | break 2 |
2074 | fi | |
2075 | done | |
2076 | done | |
0743911c | 2077 | IFS=$as_save_IFS |
25697a35 GS |
2078 | |
2079 | fi | |
2080 | fi | |
2081 | CC=$ac_cv_prog_CC | |
2082 | if test -n "$CC"; then | |
1164c474 FM |
2083 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2084 | $as_echo "$CC" >&6; } | |
25697a35 | 2085 | else |
1164c474 FM |
2086 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2087 | $as_echo "no" >&6; } | |
25697a35 GS |
2088 | fi |
2089 | ||
25697a35 | 2090 | |
0743911c | 2091 | fi |
25697a35 GS |
2092 | fi |
2093 | if test -z "$CC"; then | |
2094 | # Extract the first word of "cc", so it can be a program name with args. | |
2095 | set dummy cc; ac_word=$2 | |
1164c474 FM |
2096 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2097 | $as_echo_n "checking for $ac_word... " >&6; } | |
25697a35 | 2098 | if test "${ac_cv_prog_CC+set}" = set; then |
1164c474 | 2099 | $as_echo_n "(cached) " >&6 |
25697a35 GS |
2100 | else |
2101 | if test -n "$CC"; then | |
2102 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2103 | else | |
2104 | ac_prog_rejected=no | |
2105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2106 | for as_dir in $PATH | |
2107 | do | |
2108 | IFS=$as_save_IFS | |
2109 | test -z "$as_dir" && as_dir=. | |
2110 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0743911c | 2111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
25697a35 GS |
2112 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2113 | ac_prog_rejected=yes | |
2114 | continue | |
2115 | fi | |
2116 | ac_cv_prog_CC="cc" | |
1164c474 | 2117 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25697a35 GS |
2118 | break 2 |
2119 | fi | |
2120 | done | |
2121 | done | |
0743911c | 2122 | IFS=$as_save_IFS |
25697a35 GS |
2123 | |
2124 | if test $ac_prog_rejected = yes; then | |
2125 | # We found a bogon in the path, so make sure we never use it. | |
2126 | set dummy $ac_cv_prog_CC | |
2127 | shift | |
2128 | if test $# != 0; then | |
2129 | # We chose a different compiler from the bogus one. | |
2130 | # However, it has the same basename, so the bogon will be chosen | |
2131 | # first if we set CC to just the basename; use the full file name. | |
2132 | shift | |
2133 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2134 | fi | |
2135 | fi | |
2136 | fi | |
2137 | fi | |
2138 | CC=$ac_cv_prog_CC | |
2139 | if test -n "$CC"; then | |
1164c474 FM |
2140 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2141 | $as_echo "$CC" >&6; } | |
25697a35 | 2142 | else |
1164c474 FM |
2143 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2144 | $as_echo "no" >&6; } | |
25697a35 GS |
2145 | fi |
2146 | ||
0743911c | 2147 | |
25697a35 GS |
2148 | fi |
2149 | if test -z "$CC"; then | |
2150 | if test -n "$ac_tool_prefix"; then | |
0743911c | 2151 | for ac_prog in cl.exe |
25697a35 GS |
2152 | do |
2153 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2154 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1164c474 FM |
2155 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2156 | $as_echo_n "checking for $ac_word... " >&6; } | |
25697a35 | 2157 | if test "${ac_cv_prog_CC+set}" = set; then |
1164c474 | 2158 | $as_echo_n "(cached) " >&6 |
25697a35 GS |
2159 | else |
2160 | if test -n "$CC"; then | |
2161 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2162 | else | |
2163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2164 | for as_dir in $PATH | |
2165 | do | |
2166 | IFS=$as_save_IFS | |
2167 | test -z "$as_dir" && as_dir=. | |
2168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0743911c | 2169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
25697a35 | 2170 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1164c474 | 2171 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25697a35 GS |
2172 | break 2 |
2173 | fi | |
2174 | done | |
2175 | done | |
0743911c | 2176 | IFS=$as_save_IFS |
25697a35 GS |
2177 | |
2178 | fi | |
2179 | fi | |
2180 | CC=$ac_cv_prog_CC | |
2181 | if test -n "$CC"; then | |
1164c474 FM |
2182 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2183 | $as_echo "$CC" >&6; } | |
25697a35 | 2184 | else |
1164c474 FM |
2185 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2186 | $as_echo "no" >&6; } | |
25697a35 GS |
2187 | fi |
2188 | ||
0743911c | 2189 | |
25697a35 GS |
2190 | test -n "$CC" && break |
2191 | done | |
2192 | fi | |
2193 | if test -z "$CC"; then | |
2194 | ac_ct_CC=$CC | |
0743911c | 2195 | for ac_prog in cl.exe |
25697a35 GS |
2196 | do |
2197 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2198 | set dummy $ac_prog; ac_word=$2 | |
1164c474 FM |
2199 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2200 | $as_echo_n "checking for $ac_word... " >&6; } | |
25697a35 | 2201 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1164c474 | 2202 | $as_echo_n "(cached) " >&6 |
25697a35 GS |
2203 | else |
2204 | if test -n "$ac_ct_CC"; then | |
2205 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2206 | else | |
2207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2208 | for as_dir in $PATH | |
2209 | do | |
2210 | IFS=$as_save_IFS | |
2211 | test -z "$as_dir" && as_dir=. | |
2212 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0743911c | 2213 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
25697a35 | 2214 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1164c474 | 2215 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25697a35 GS |
2216 | break 2 |
2217 | fi | |
2218 | done | |
2219 | done | |
0743911c | 2220 | IFS=$as_save_IFS |
25697a35 GS |
2221 | |
2222 | fi | |
2223 | fi | |
2224 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2225 | if test -n "$ac_ct_CC"; then | |
1164c474 FM |
2226 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2227 | $as_echo "$ac_ct_CC" >&6; } | |
25697a35 | 2228 | else |
1164c474 FM |
2229 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2230 | $as_echo "no" >&6; } | |
25697a35 GS |
2231 | fi |
2232 | ||
0743911c | 2233 | |
25697a35 GS |
2234 | test -n "$ac_ct_CC" && break |
2235 | done | |
2236 | ||
0743911c FM |
2237 | if test "x$ac_ct_CC" = x; then |
2238 | CC="" | |
2239 | else | |
2240 | case $cross_compiling:$ac_tool_warned in | |
2241 | yes:) | |
1164c474 FM |
2242 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2243 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
0743911c FM |
2244 | ac_tool_warned=yes ;; |
2245 | esac | |
2246 | CC=$ac_ct_CC | |
2247 | fi | |
25697a35 GS |
2248 | fi |
2249 | ||
2250 | fi | |
2251 | ||
2252 | ||
1164c474 FM |
2253 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2254 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2255 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
25697a35 | 2256 | See \`config.log' for more details." >&5 |
1164c474 | 2257 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
25697a35 | 2258 | See \`config.log' for more details." >&2;} |
1164c474 | 2259 | { (exit 1); exit 1; }; }; } |
25697a35 GS |
2260 | |
2261 | # Provide some information about the compiler. | |
1164c474 FM |
2262 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2263 | set X $ac_compile | |
2264 | ac_compiler=$2 | |
0743911c FM |
2265 | { (ac_try="$ac_compiler --version >&5" |
2266 | case "(($ac_try" in | |
2267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2268 | *) ac_try_echo=$ac_try;; | |
2269 | esac | |
1164c474 FM |
2270 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2271 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 2272 | (eval "$ac_compiler --version >&5") 2>&5 |
25697a35 | 2273 | ac_status=$? |
1164c474 | 2274 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25697a35 | 2275 | (exit $ac_status); } |
0743911c FM |
2276 | { (ac_try="$ac_compiler -v >&5" |
2277 | case "(($ac_try" in | |
2278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2279 | *) ac_try_echo=$ac_try;; | |
2280 | esac | |
1164c474 FM |
2281 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2282 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 2283 | (eval "$ac_compiler -v >&5") 2>&5 |
25697a35 | 2284 | ac_status=$? |
1164c474 | 2285 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25697a35 | 2286 | (exit $ac_status); } |
0743911c FM |
2287 | { (ac_try="$ac_compiler -V >&5" |
2288 | case "(($ac_try" in | |
2289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2290 | *) ac_try_echo=$ac_try;; | |
2291 | esac | |
1164c474 FM |
2292 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2293 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 2294 | (eval "$ac_compiler -V >&5") 2>&5 |
25697a35 | 2295 | ac_status=$? |
1164c474 | 2296 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25697a35 GS |
2297 | (exit $ac_status); } |
2298 | ||
2299 | cat >conftest.$ac_ext <<_ACEOF | |
2300 | /* confdefs.h. */ | |
2301 | _ACEOF | |
2302 | cat confdefs.h >>conftest.$ac_ext | |
2303 | cat >>conftest.$ac_ext <<_ACEOF | |
2304 | /* end confdefs.h. */ | |
2305 | ||
2306 | int | |
2307 | main () | |
2308 | { | |
2309 | ||
2310 | ; | |
2311 | return 0; | |
2312 | } | |
2313 | _ACEOF | |
2314 | ac_clean_files_save=$ac_clean_files | |
1164c474 | 2315 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
25697a35 GS |
2316 | # Try to create an executable without -o first, disregard a.out. |
2317 | # It will help us diagnose broken compilers, and finding out an intuition | |
2318 | # of exeext. | |
1164c474 FM |
2319 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2320 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2321 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2322 | ||
2323 | # The possible output files: | |
2324 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2325 | ||
0743911c FM |
2326 | ac_rmfiles= |
2327 | for ac_file in $ac_files | |
2328 | do | |
2329 | case $ac_file in | |
1164c474 | 2330 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
0743911c FM |
2331 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2332 | esac | |
2333 | done | |
2334 | rm -f $ac_rmfiles | |
2335 | ||
2336 | if { (ac_try="$ac_link_default" | |
2337 | case "(($ac_try" in | |
2338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2339 | *) ac_try_echo=$ac_try;; | |
2340 | esac | |
1164c474 FM |
2341 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2342 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 2343 | (eval "$ac_link_default") 2>&5 |
25697a35 | 2344 | ac_status=$? |
1164c474 | 2345 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25697a35 | 2346 | (exit $ac_status); }; then |
0743911c FM |
2347 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2348 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2349 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2350 | # so that the user can short-circuit this test for compilers unknown to | |
2351 | # Autoconf. | |
2352 | for ac_file in $ac_files '' | |
25697a35 GS |
2353 | do |
2354 | test -f "$ac_file" || continue | |
2355 | case $ac_file in | |
1164c474 | 2356 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
25697a35 GS |
2357 | ;; |
2358 | [ab].out ) | |
2359 | # We found the default executable, but exeext='' is most | |
2360 | # certainly right. | |
2361 | break;; | |
2362 | *.* ) | |
0743911c FM |
2363 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2364 | then :; else | |
2365 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2366 | fi | |
2367 | # We set ac_cv_exeext here because the later test for it is not | |
2368 | # safe: cross compilers may not add the suffix if given an `-o' | |
2369 | # argument, so we may need to know it at that point already. | |
2370 | # Even if this section looks crufty: it has the advantage of | |
2371 | # actually working. | |
25697a35 GS |
2372 | break;; |
2373 | * ) | |
2374 | break;; | |
2375 | esac | |
2376 | done | |
0743911c FM |
2377 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2378 | ||
25697a35 | 2379 | else |
0743911c FM |
2380 | ac_file='' |
2381 | fi | |
2382 | ||
1164c474 FM |
2383 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2384 | $as_echo "$ac_file" >&6; } | |
0743911c | 2385 | if test -z "$ac_file"; then |
1164c474 | 2386 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
2387 | sed 's/^/| /' conftest.$ac_ext >&5 |
2388 | ||
1164c474 FM |
2389 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2390 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2391 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
25697a35 | 2392 | See \`config.log' for more details." >&5 |
1164c474 | 2393 | $as_echo "$as_me: error: C compiler cannot create executables |
25697a35 | 2394 | See \`config.log' for more details." >&2;} |
1164c474 | 2395 | { (exit 77); exit 77; }; }; } |
25697a35 GS |
2396 | fi |
2397 | ||
2398 | ac_exeext=$ac_cv_exeext | |
25697a35 | 2399 | |
0743911c | 2400 | # Check that the compiler produces executables we can run. If not, either |
25697a35 | 2401 | # the compiler is broken, or we cross compile. |
1164c474 FM |
2402 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2403 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
25697a35 GS |
2404 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2405 | # If not cross compiling, check that we can run a simple program. | |
2406 | if test "$cross_compiling" != yes; then | |
2407 | if { ac_try='./$ac_file' | |
0743911c FM |
2408 | { (case "(($ac_try" in |
2409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2410 | *) ac_try_echo=$ac_try;; | |
2411 | esac | |
1164c474 FM |
2412 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2413 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 2414 | (eval "$ac_try") 2>&5 |
25697a35 | 2415 | ac_status=$? |
1164c474 | 2416 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25697a35 GS |
2417 | (exit $ac_status); }; }; then |
2418 | cross_compiling=no | |
2419 | else | |
2420 | if test "$cross_compiling" = maybe; then | |
2421 | cross_compiling=yes | |
2422 | else | |
1164c474 FM |
2423 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2424 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2425 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
25697a35 GS |
2426 | If you meant to cross compile, use \`--host'. |
2427 | See \`config.log' for more details." >&5 | |
1164c474 | 2428 | $as_echo "$as_me: error: cannot run C compiled programs. |
25697a35 GS |
2429 | If you meant to cross compile, use \`--host'. |
2430 | See \`config.log' for more details." >&2;} | |
1164c474 | 2431 | { (exit 1); exit 1; }; }; } |
25697a35 GS |
2432 | fi |
2433 | fi | |
2434 | fi | |
1164c474 FM |
2435 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2436 | $as_echo "yes" >&6; } | |
25697a35 | 2437 | |
1164c474 | 2438 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
25697a35 | 2439 | ac_clean_files=$ac_clean_files_save |
0743911c | 2440 | # Check that the compiler produces executables we can run. If not, either |
25697a35 | 2441 | # the compiler is broken, or we cross compile. |
1164c474 FM |
2442 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2443 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2444 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2445 | $as_echo "$cross_compiling" >&6; } | |
0743911c | 2446 | |
1164c474 FM |
2447 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2448 | $as_echo_n "checking for suffix of executables... " >&6; } | |
0743911c FM |
2449 | if { (ac_try="$ac_link" |
2450 | case "(($ac_try" in | |
2451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2452 | *) ac_try_echo=$ac_try;; | |
2453 | esac | |
1164c474 FM |
2454 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2455 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 2456 | (eval "$ac_link") 2>&5 |
25697a35 | 2457 | ac_status=$? |
1164c474 | 2458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25697a35 GS |
2459 | (exit $ac_status); }; then |
2460 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2461 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2462 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2463 | # `rm'. | |
2464 | for ac_file in conftest.exe conftest conftest.*; do | |
2465 | test -f "$ac_file" || continue | |
2466 | case $ac_file in | |
1164c474 | 2467 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
25697a35 | 2468 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
25697a35 GS |
2469 | break;; |
2470 | * ) break;; | |
2471 | esac | |
2472 | done | |
2473 | else | |
1164c474 FM |
2474 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2475 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2476 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
25697a35 | 2477 | See \`config.log' for more details." >&5 |
1164c474 | 2478 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
25697a35 | 2479 | See \`config.log' for more details." >&2;} |
1164c474 | 2480 | { (exit 1); exit 1; }; }; } |
25697a35 GS |
2481 | fi |
2482 | ||
2483 | rm -f conftest$ac_cv_exeext | |
1164c474 FM |
2484 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2485 | $as_echo "$ac_cv_exeext" >&6; } | |
25697a35 GS |
2486 | |
2487 | rm -f conftest.$ac_ext | |
2488 | EXEEXT=$ac_cv_exeext | |
2489 | ac_exeext=$EXEEXT | |
1164c474 FM |
2490 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2491 | $as_echo_n "checking for suffix of object files... " >&6; } | |
25697a35 | 2492 | if test "${ac_cv_objext+set}" = set; then |
1164c474 | 2493 | $as_echo_n "(cached) " >&6 |
25697a35 GS |
2494 | else |
2495 | cat >conftest.$ac_ext <<_ACEOF | |
2496 | /* confdefs.h. */ | |
2497 | _ACEOF | |
2498 | cat confdefs.h >>conftest.$ac_ext | |
2499 | cat >>conftest.$ac_ext <<_ACEOF | |
2500 | /* end confdefs.h. */ | |
2501 | ||
2502 | int | |
2503 | main () | |
2504 | { | |
2505 | ||
2506 | ; | |
2507 | return 0; | |
2508 | } | |
2509 | _ACEOF | |
2510 | rm -f conftest.o conftest.obj | |
0743911c FM |
2511 | if { (ac_try="$ac_compile" |
2512 | case "(($ac_try" in | |
2513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2514 | *) ac_try_echo=$ac_try;; | |
2515 | esac | |
1164c474 FM |
2516 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2517 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 2518 | (eval "$ac_compile") 2>&5 |
25697a35 | 2519 | ac_status=$? |
1164c474 | 2520 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25697a35 | 2521 | (exit $ac_status); }; then |
0743911c FM |
2522 | for ac_file in conftest.o conftest.obj conftest.*; do |
2523 | test -f "$ac_file" || continue; | |
25697a35 | 2524 | case $ac_file in |
1164c474 | 2525 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
25697a35 GS |
2526 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2527 | break;; | |
2528 | esac | |
2529 | done | |
2530 | else | |
1164c474 | 2531 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
2532 | sed 's/^/| /' conftest.$ac_ext >&5 |
2533 | ||
1164c474 FM |
2534 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2535 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2536 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
25697a35 | 2537 | See \`config.log' for more details." >&5 |
1164c474 | 2538 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
25697a35 | 2539 | See \`config.log' for more details." >&2;} |
1164c474 | 2540 | { (exit 1); exit 1; }; }; } |
25697a35 GS |
2541 | fi |
2542 | ||
2543 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2544 | fi | |
1164c474 FM |
2545 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2546 | $as_echo "$ac_cv_objext" >&6; } | |
25697a35 GS |
2547 | OBJEXT=$ac_cv_objext |
2548 | ac_objext=$OBJEXT | |
1164c474 FM |
2549 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2550 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
25697a35 | 2551 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1164c474 | 2552 | $as_echo_n "(cached) " >&6 |
25697a35 GS |
2553 | else |
2554 | cat >conftest.$ac_ext <<_ACEOF | |
2555 | /* confdefs.h. */ | |
2556 | _ACEOF | |
2557 | cat confdefs.h >>conftest.$ac_ext | |
2558 | cat >>conftest.$ac_ext <<_ACEOF | |
2559 | /* end confdefs.h. */ | |
2560 | ||
2561 | int | |
2562 | main () | |
2563 | { | |
2564 | #ifndef __GNUC__ | |
2565 | choke me | |
2566 | #endif | |
2567 | ||
2568 | ; | |
2569 | return 0; | |
2570 | } | |
2571 | _ACEOF | |
2572 | rm -f conftest.$ac_objext | |
0743911c FM |
2573 | if { (ac_try="$ac_compile" |
2574 | case "(($ac_try" in | |
2575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2576 | *) ac_try_echo=$ac_try;; | |
2577 | esac | |
1164c474 FM |
2578 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2579 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 2580 | (eval "$ac_compile") 2>conftest.er1 |
25697a35 GS |
2581 | ac_status=$? |
2582 | grep -v '^ *+' conftest.er1 >conftest.err | |
2583 | rm -f conftest.er1 | |
2584 | cat conftest.err >&5 | |
1164c474 | 2585 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
2586 | (exit $ac_status); } && { |
2587 | test -z "$ac_c_werror_flag" || | |
2588 | test ! -s conftest.err | |
2589 | } && test -s conftest.$ac_objext; then | |
25697a35 GS |
2590 | ac_compiler_gnu=yes |
2591 | else | |
1164c474 | 2592 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
2593 | sed 's/^/| /' conftest.$ac_ext >&5 |
2594 | ||
0743911c | 2595 | ac_compiler_gnu=no |
25697a35 | 2596 | fi |
0743911c FM |
2597 | |
2598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25697a35 GS |
2599 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2600 | ||
2601 | fi | |
1164c474 FM |
2602 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2603 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2604 | if test $ac_compiler_gnu = yes; then | |
2605 | GCC=yes | |
2606 | else | |
2607 | GCC= | |
2608 | fi | |
25697a35 GS |
2609 | ac_test_CFLAGS=${CFLAGS+set} |
2610 | ac_save_CFLAGS=$CFLAGS | |
1164c474 FM |
2611 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2612 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
25697a35 | 2613 | if test "${ac_cv_prog_cc_g+set}" = set; then |
1164c474 | 2614 | $as_echo_n "(cached) " >&6 |
25697a35 | 2615 | else |
0743911c FM |
2616 | ac_save_c_werror_flag=$ac_c_werror_flag |
2617 | ac_c_werror_flag=yes | |
2618 | ac_cv_prog_cc_g=no | |
2619 | CFLAGS="-g" | |
2620 | cat >conftest.$ac_ext <<_ACEOF | |
25697a35 GS |
2621 | /* confdefs.h. */ |
2622 | _ACEOF | |
2623 | cat confdefs.h >>conftest.$ac_ext | |
2624 | cat >>conftest.$ac_ext <<_ACEOF | |
2625 | /* end confdefs.h. */ | |
2626 | ||
2627 | int | |
2628 | main () | |
2629 | { | |
2630 | ||
2631 | ; | |
2632 | return 0; | |
2633 | } | |
2634 | _ACEOF | |
2635 | rm -f conftest.$ac_objext | |
0743911c FM |
2636 | if { (ac_try="$ac_compile" |
2637 | case "(($ac_try" in | |
2638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2639 | *) ac_try_echo=$ac_try;; | |
2640 | esac | |
1164c474 FM |
2641 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2642 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 2643 | (eval "$ac_compile") 2>conftest.er1 |
25697a35 GS |
2644 | ac_status=$? |
2645 | grep -v '^ *+' conftest.er1 >conftest.err | |
2646 | rm -f conftest.er1 | |
2647 | cat conftest.err >&5 | |
1164c474 | 2648 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
2649 | (exit $ac_status); } && { |
2650 | test -z "$ac_c_werror_flag" || | |
2651 | test ! -s conftest.err | |
2652 | } && test -s conftest.$ac_objext; then | |
2653 | ac_cv_prog_cc_g=yes | |
2654 | else | |
1164c474 | 2655 | $as_echo "$as_me: failed program was:" >&5 |
0743911c FM |
2656 | sed 's/^/| /' conftest.$ac_ext >&5 |
2657 | ||
2658 | CFLAGS="" | |
2659 | cat >conftest.$ac_ext <<_ACEOF | |
2660 | /* confdefs.h. */ | |
2661 | _ACEOF | |
2662 | cat confdefs.h >>conftest.$ac_ext | |
2663 | cat >>conftest.$ac_ext <<_ACEOF | |
2664 | /* end confdefs.h. */ | |
2665 | ||
2666 | int | |
2667 | main () | |
2668 | { | |
2669 | ||
2670 | ; | |
2671 | return 0; | |
2672 | } | |
2673 | _ACEOF | |
2674 | rm -f conftest.$ac_objext | |
2675 | if { (ac_try="$ac_compile" | |
2676 | case "(($ac_try" in | |
2677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2678 | *) ac_try_echo=$ac_try;; | |
2679 | esac | |
1164c474 FM |
2680 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2681 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 2682 | (eval "$ac_compile") 2>conftest.er1 |
25697a35 | 2683 | ac_status=$? |
0743911c FM |
2684 | grep -v '^ *+' conftest.er1 >conftest.err |
2685 | rm -f conftest.er1 | |
2686 | cat conftest.err >&5 | |
1164c474 | 2687 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
2688 | (exit $ac_status); } && { |
2689 | test -z "$ac_c_werror_flag" || | |
2690 | test ! -s conftest.err | |
2691 | } && test -s conftest.$ac_objext; then | |
2692 | : | |
2693 | else | |
1164c474 | 2694 | $as_echo "$as_me: failed program was:" >&5 |
0743911c FM |
2695 | sed 's/^/| /' conftest.$ac_ext >&5 |
2696 | ||
2697 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2698 | CFLAGS="-g" | |
2699 | cat >conftest.$ac_ext <<_ACEOF | |
2700 | /* confdefs.h. */ | |
2701 | _ACEOF | |
2702 | cat confdefs.h >>conftest.$ac_ext | |
2703 | cat >>conftest.$ac_ext <<_ACEOF | |
2704 | /* end confdefs.h. */ | |
2705 | ||
2706 | int | |
2707 | main () | |
2708 | { | |
2709 | ||
2710 | ; | |
2711 | return 0; | |
2712 | } | |
2713 | _ACEOF | |
2714 | rm -f conftest.$ac_objext | |
2715 | if { (ac_try="$ac_compile" | |
2716 | case "(($ac_try" in | |
2717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2718 | *) ac_try_echo=$ac_try;; | |
2719 | esac | |
1164c474 FM |
2720 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2721 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 2722 | (eval "$ac_compile") 2>conftest.er1 |
25697a35 | 2723 | ac_status=$? |
0743911c FM |
2724 | grep -v '^ *+' conftest.er1 >conftest.err |
2725 | rm -f conftest.er1 | |
2726 | cat conftest.err >&5 | |
1164c474 | 2727 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
2728 | (exit $ac_status); } && { |
2729 | test -z "$ac_c_werror_flag" || | |
2730 | test ! -s conftest.err | |
2731 | } && test -s conftest.$ac_objext; then | |
25697a35 GS |
2732 | ac_cv_prog_cc_g=yes |
2733 | else | |
1164c474 | 2734 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
2735 | sed 's/^/| /' conftest.$ac_ext >&5 |
2736 | ||
0743911c | 2737 | |
25697a35 | 2738 | fi |
0743911c FM |
2739 | |
2740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2741 | fi | |
2742 | ||
2743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2744 | fi | |
2745 | ||
2746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2747 | ac_c_werror_flag=$ac_save_c_werror_flag | |
25697a35 | 2748 | fi |
1164c474 FM |
2749 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2750 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
25697a35 GS |
2751 | if test "$ac_test_CFLAGS" = set; then |
2752 | CFLAGS=$ac_save_CFLAGS | |
2753 | elif test $ac_cv_prog_cc_g = yes; then | |
2754 | if test "$GCC" = yes; then | |
2755 | CFLAGS="-g -O2" | |
2756 | else | |
2757 | CFLAGS="-g" | |
2758 | fi | |
2759 | else | |
2760 | if test "$GCC" = yes; then | |
2761 | CFLAGS="-O2" | |
2762 | else | |
2763 | CFLAGS= | |
2764 | fi | |
2765 | fi | |
1164c474 FM |
2766 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2767 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
0743911c | 2768 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
1164c474 | 2769 | $as_echo_n "(cached) " >&6 |
25697a35 | 2770 | else |
0743911c | 2771 | ac_cv_prog_cc_c89=no |
25697a35 GS |
2772 | ac_save_CC=$CC |
2773 | cat >conftest.$ac_ext <<_ACEOF | |
2774 | /* confdefs.h. */ | |
2775 | _ACEOF | |
2776 | cat confdefs.h >>conftest.$ac_ext | |
2777 | cat >>conftest.$ac_ext <<_ACEOF | |
2778 | /* end confdefs.h. */ | |
2779 | #include <stdarg.h> | |
2780 | #include <stdio.h> | |
2781 | #include <sys/types.h> | |
2782 | #include <sys/stat.h> | |
2783 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2784 | struct buf { int x; }; | |
2785 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2786 | static char *e (p, i) | |
2787 | char **p; | |
2788 | int i; | |
2789 | { | |
2790 | return p[i]; | |
2791 | } | |
2792 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2793 | { | |
2794 | char *s; | |
2795 | va_list v; | |
2796 | va_start (v,p); | |
2797 | s = g (p, va_arg (v,int)); | |
2798 | va_end (v); | |
2799 | return s; | |
2800 | } | |
2801 | ||
2802 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2803 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2804 | These don't provoke an error unfortunately, instead are silently treated | |
0743911c | 2805 | as 'x'. The following induces an error, until -std is added to get |
25697a35 GS |
2806 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2807 | array size at least. It's necessary to write '\x00'==0 to get something | |
0743911c | 2808 | that's true only with -std. */ |
25697a35 GS |
2809 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2810 | ||
0743911c FM |
2811 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2812 | inside strings and character constants. */ | |
2813 | #define FOO(x) 'x' | |
2814 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2815 | ||
25697a35 GS |
2816 | int test (int i, double x); |
2817 | struct s1 {int (*f) (int a);}; | |
2818 | struct s2 {int (*f) (double a);}; | |
2819 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2820 | int argc; | |
2821 | char **argv; | |
2822 | int | |
2823 | main () | |
2824 | { | |
2825 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2826 | ; | |
2827 | return 0; | |
2828 | } | |
2829 | _ACEOF | |
0743911c FM |
2830 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2831 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
25697a35 GS |
2832 | do |
2833 | CC="$ac_save_CC $ac_arg" | |
2834 | rm -f conftest.$ac_objext | |
0743911c FM |
2835 | if { (ac_try="$ac_compile" |
2836 | case "(($ac_try" in | |
2837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2838 | *) ac_try_echo=$ac_try;; | |
2839 | esac | |
1164c474 FM |
2840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2841 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 2842 | (eval "$ac_compile") 2>conftest.er1 |
25697a35 GS |
2843 | ac_status=$? |
2844 | grep -v '^ *+' conftest.er1 >conftest.err | |
2845 | rm -f conftest.er1 | |
2846 | cat conftest.err >&5 | |
1164c474 | 2847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
2848 | (exit $ac_status); } && { |
2849 | test -z "$ac_c_werror_flag" || | |
2850 | test ! -s conftest.err | |
2851 | } && test -s conftest.$ac_objext; then | |
2852 | ac_cv_prog_cc_c89=$ac_arg | |
25697a35 | 2853 | else |
1164c474 | 2854 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
2855 | sed 's/^/| /' conftest.$ac_ext >&5 |
2856 | ||
0743911c | 2857 | |
25697a35 | 2858 | fi |
0743911c FM |
2859 | |
2860 | rm -f core conftest.err conftest.$ac_objext | |
2861 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
25697a35 | 2862 | done |
0743911c | 2863 | rm -f conftest.$ac_ext |
25697a35 GS |
2864 | CC=$ac_save_CC |
2865 | ||
2866 | fi | |
0743911c FM |
2867 | # AC_CACHE_VAL |
2868 | case "x$ac_cv_prog_cc_c89" in | |
2869 | x) | |
1164c474 FM |
2870 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
2871 | $as_echo "none needed" >&6; } ;; | |
0743911c | 2872 | xno) |
1164c474 FM |
2873 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
2874 | $as_echo "unsupported" >&6; } ;; | |
25697a35 | 2875 | *) |
0743911c | 2876 | CC="$CC $ac_cv_prog_cc_c89" |
1164c474 FM |
2877 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
2878 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
25697a35 GS |
2879 | esac |
2880 | ||
25697a35 | 2881 | |
25697a35 GS |
2882 | ac_ext=c |
2883 | ac_cpp='$CPP $CPPFLAGS' | |
2884 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2885 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2886 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2887 | ;; | |
2888 | esac | |
2889 | ||
2890 | if test "${CC}" = "cc" ; then | |
05b90947 | 2891 | CFLAGS="${CFLAGS} -g -O2 -Aa" |
25697a35 | 2892 | fi |
4782357f | 2893 | CFLAGS="${CFLAGS} -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter" |
05b90947 | 2894 | |
25697a35 | 2895 | |
1164c474 FM |
2896 | { $as_echo "$as_me:$LINENO: checking for implicit-function-declaration error flag in gcc" >&5 |
2897 | $as_echo_n "checking for implicit-function-declaration error flag in gcc... " >&6; } | |
4782357f FM |
2898 | saved_CFLAGS="${CFLAGS}" |
2899 | CFLAGS="${CFLAGS} -Werror=implicit-function-declaration" | |
2900 | ||
2901 | cat >conftest.$ac_ext <<_ACEOF | |
2902 | /* confdefs.h. */ | |
2903 | _ACEOF | |
2904 | cat confdefs.h >>conftest.$ac_ext | |
2905 | cat >>conftest.$ac_ext <<_ACEOF | |
2906 | /* end confdefs.h. */ | |
2907 | ||
2908 | _ACEOF | |
2909 | rm -f conftest.$ac_objext | |
2910 | if { (ac_try="$ac_compile" | |
2911 | case "(($ac_try" in | |
2912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2913 | *) ac_try_echo=$ac_try;; | |
2914 | esac | |
1164c474 FM |
2915 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2916 | $as_echo "$ac_try_echo") >&5 | |
4782357f FM |
2917 | (eval "$ac_compile") 2>conftest.er1 |
2918 | ac_status=$? | |
2919 | grep -v '^ *+' conftest.er1 >conftest.err | |
2920 | rm -f conftest.er1 | |
2921 | cat conftest.err >&5 | |
1164c474 | 2922 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4782357f FM |
2923 | (exit $ac_status); } && { |
2924 | test -z "$ac_c_werror_flag" || | |
2925 | test ! -s conftest.err | |
2926 | } && test -s conftest.$ac_objext; then | |
2927 | have_implicit_function_declaration="yes" | |
2928 | else | |
1164c474 | 2929 | $as_echo "$as_me: failed program was:" >&5 |
4782357f FM |
2930 | sed 's/^/| /' conftest.$ac_ext >&5 |
2931 | ||
2932 | have_implicit_function_declaration="no" | |
2933 | fi | |
2934 | ||
2935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1164c474 FM |
2936 | { $as_echo "$as_me:$LINENO: result: $have_implicit_function_declaration" >&5 |
2937 | $as_echo "$have_implicit_function_declaration" >&6; } | |
4782357f FM |
2938 | if test "$have_implicit_function_declaration" == "no" ; then |
2939 | CFLAGS="${saved_CFLAGS}" | |
2940 | fi | |
2941 | ||
1164c474 FM |
2942 | { $as_echo "$as_me:$LINENO: checking for format error flag in gcc" >&5 |
2943 | $as_echo_n "checking for format error flag in gcc... " >&6; } | |
4782357f FM |
2944 | saved_CFLAGS="${CFLAGS}" |
2945 | CFLAGS="${CFLAGS} -Werror=format" | |
2946 | cat >conftest.$ac_ext <<_ACEOF | |
2947 | /* confdefs.h. */ | |
2948 | _ACEOF | |
2949 | cat confdefs.h >>conftest.$ac_ext | |
2950 | cat >>conftest.$ac_ext <<_ACEOF | |
2951 | /* end confdefs.h. */ | |
2952 | ||
2953 | _ACEOF | |
2954 | rm -f conftest.$ac_objext | |
2955 | if { (ac_try="$ac_compile" | |
2956 | case "(($ac_try" in | |
2957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2958 | *) ac_try_echo=$ac_try;; | |
2959 | esac | |
1164c474 FM |
2960 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2961 | $as_echo "$ac_try_echo") >&5 | |
4782357f FM |
2962 | (eval "$ac_compile") 2>conftest.er1 |
2963 | ac_status=$? | |
2964 | grep -v '^ *+' conftest.er1 >conftest.err | |
2965 | rm -f conftest.er1 | |
2966 | cat conftest.err >&5 | |
1164c474 | 2967 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4782357f FM |
2968 | (exit $ac_status); } && { |
2969 | test -z "$ac_c_werror_flag" || | |
2970 | test ! -s conftest.err | |
2971 | } && test -s conftest.$ac_objext; then | |
2972 | have_error_format="yes" | |
2973 | else | |
1164c474 | 2974 | $as_echo "$as_me: failed program was:" >&5 |
4782357f FM |
2975 | sed 's/^/| /' conftest.$ac_ext >&5 |
2976 | ||
2977 | have_error_format="no" | |
2978 | fi | |
2979 | ||
2980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1164c474 FM |
2981 | { $as_echo "$as_me:$LINENO: result: $have_error_format" >&5 |
2982 | $as_echo "$have_error_format" >&6; } | |
4782357f FM |
2983 | if test "$have_implicit_function_declaration" == "no" ; then |
2984 | CFLAGS="${saved_CFLAGS}" | |
2985 | fi | |
2986 | ||
25697a35 GS |
2987 | case "$host" in |
2988 | *-solaris*) | |
2989 | LDFLAGS="${LDFLAGS} -lsocket -lnsl" | |
2990 | CFLAGS="-DSOLARIS ${CFLAGS}" | |
2991 | ;; | |
2992 | esac | |
2993 | ||
2994 | #dnl Checks for programs. | |
2995 | #AC_PROG_CC | |
2996 | ||
2997 | ||
2998 | ||
2999 | ||
3000 | ||
3001 | ||
25697a35 GS |
3002 | ac_header_dirent=no |
3003 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
1164c474 FM |
3004 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3005 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3006 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
0743911c | 3007 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1164c474 | 3008 | $as_echo_n "(cached) " >&6 |
25697a35 GS |
3009 | else |
3010 | cat >conftest.$ac_ext <<_ACEOF | |
3011 | /* confdefs.h. */ | |
3012 | _ACEOF | |
3013 | cat confdefs.h >>conftest.$ac_ext | |
3014 | cat >>conftest.$ac_ext <<_ACEOF | |
3015 | /* end confdefs.h. */ | |
3016 | #include <sys/types.h> | |
3017 | #include <$ac_hdr> | |
3018 | ||
3019 | int | |
3020 | main () | |
3021 | { | |
3022 | if ((DIR *) 0) | |
3023 | return 0; | |
3024 | ; | |
3025 | return 0; | |
3026 | } | |
3027 | _ACEOF | |
3028 | rm -f conftest.$ac_objext | |
0743911c FM |
3029 | if { (ac_try="$ac_compile" |
3030 | case "(($ac_try" in | |
3031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3032 | *) ac_try_echo=$ac_try;; | |
3033 | esac | |
1164c474 FM |
3034 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3035 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 3036 | (eval "$ac_compile") 2>conftest.er1 |
25697a35 GS |
3037 | ac_status=$? |
3038 | grep -v '^ *+' conftest.er1 >conftest.err | |
3039 | rm -f conftest.er1 | |
3040 | cat conftest.err >&5 | |
1164c474 | 3041 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
3042 | (exit $ac_status); } && { |
3043 | test -z "$ac_c_werror_flag" || | |
3044 | test ! -s conftest.err | |
3045 | } && test -s conftest.$ac_objext; then | |
25697a35 GS |
3046 | eval "$as_ac_Header=yes" |
3047 | else | |
1164c474 | 3048 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
3049 | sed 's/^/| /' conftest.$ac_ext >&5 |
3050 | ||
0743911c | 3051 | eval "$as_ac_Header=no" |
25697a35 | 3052 | fi |
0743911c FM |
3053 | |
3054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25697a35 | 3055 | fi |
1164c474 FM |
3056 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
3057 | $as_echo "$as_val"'` | |
3058 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3059 | $as_echo "$ac_res" >&6; } | |
3060 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
3061 | $as_echo "$as_val"'` | |
3062 | if test "x$as_val" = x""yes; then | |
25697a35 | 3063 | cat >>confdefs.h <<_ACEOF |
1164c474 | 3064 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
25697a35 GS |
3065 | _ACEOF |
3066 | ||
3067 | ac_header_dirent=$ac_hdr; break | |
3068 | fi | |
3069 | ||
3070 | done | |
3071 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3072 | if test $ac_header_dirent = dirent.h; then | |
1164c474 FM |
3073 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3074 | $as_echo_n "checking for library containing opendir... " >&6; } | |
25697a35 | 3075 | if test "${ac_cv_search_opendir+set}" = set; then |
1164c474 | 3076 | $as_echo_n "(cached) " >&6 |
25697a35 GS |
3077 | else |
3078 | ac_func_search_save_LIBS=$LIBS | |
25697a35 GS |
3079 | cat >conftest.$ac_ext <<_ACEOF |
3080 | /* confdefs.h. */ | |
3081 | _ACEOF | |
3082 | cat confdefs.h >>conftest.$ac_ext | |
3083 | cat >>conftest.$ac_ext <<_ACEOF | |
3084 | /* end confdefs.h. */ | |
3085 | ||
0743911c FM |
3086 | /* Override any GCC internal prototype to avoid an error. |
3087 | Use char because int might match the return type of a GCC | |
3088 | builtin and then its argument prototype would still apply. */ | |
25697a35 GS |
3089 | #ifdef __cplusplus |
3090 | extern "C" | |
3091 | #endif | |
25697a35 GS |
3092 | char opendir (); |
3093 | int | |
3094 | main () | |
3095 | { | |
0743911c | 3096 | return opendir (); |
25697a35 GS |
3097 | ; |
3098 | return 0; | |
3099 | } | |
3100 | _ACEOF | |
0743911c FM |
3101 | for ac_lib in '' dir; do |
3102 | if test -z "$ac_lib"; then | |
3103 | ac_res="none required" | |
3104 | else | |
3105 | ac_res=-l$ac_lib | |
3106 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3107 | fi | |
3108 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3109 | if { (ac_try="$ac_link" | |
3110 | case "(($ac_try" in | |
3111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3112 | *) ac_try_echo=$ac_try;; | |
3113 | esac | |
1164c474 FM |
3114 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3115 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 3116 | (eval "$ac_link") 2>conftest.er1 |
25697a35 GS |
3117 | ac_status=$? |
3118 | grep -v '^ *+' conftest.er1 >conftest.err | |
3119 | rm -f conftest.er1 | |
3120 | cat conftest.err >&5 | |
1164c474 | 3121 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
3122 | (exit $ac_status); } && { |
3123 | test -z "$ac_c_werror_flag" || | |
3124 | test ! -s conftest.err | |
1164c474 FM |
3125 | } && test -s conftest$ac_exeext && { |
3126 | test "$cross_compiling" = yes || | |
3127 | $as_test_x conftest$ac_exeext | |
3128 | }; then | |
0743911c | 3129 | ac_cv_search_opendir=$ac_res |
25697a35 | 3130 | else |
1164c474 | 3131 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
3132 | sed 's/^/| /' conftest.$ac_ext >&5 |
3133 | ||
25697a35 | 3134 | |
0743911c | 3135 | fi |
25697a35 | 3136 | |
1164c474 | 3137 | rm -rf conftest.dSYM |
0743911c FM |
3138 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3139 | conftest$ac_exeext | |
3140 | if test "${ac_cv_search_opendir+set}" = set; then | |
3141 | break | |
25697a35 | 3142 | fi |
0743911c FM |
3143 | done |
3144 | if test "${ac_cv_search_opendir+set}" = set; then | |
3145 | : | |
3146 | else | |
3147 | ac_cv_search_opendir=no | |
25697a35 | 3148 | fi |
0743911c | 3149 | rm conftest.$ac_ext |
25697a35 GS |
3150 | LIBS=$ac_func_search_save_LIBS |
3151 | fi | |
1164c474 FM |
3152 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3153 | $as_echo "$ac_cv_search_opendir" >&6; } | |
0743911c FM |
3154 | ac_res=$ac_cv_search_opendir |
3155 | if test "$ac_res" != no; then | |
3156 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
25697a35 GS |
3157 | |
3158 | fi | |
3159 | ||
3160 | else | |
1164c474 FM |
3161 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3162 | $as_echo_n "checking for library containing opendir... " >&6; } | |
25697a35 | 3163 | if test "${ac_cv_search_opendir+set}" = set; then |
1164c474 | 3164 | $as_echo_n "(cached) " >&6 |
25697a35 GS |
3165 | else |
3166 | ac_func_search_save_LIBS=$LIBS | |
25697a35 GS |
3167 | cat >conftest.$ac_ext <<_ACEOF |
3168 | /* confdefs.h. */ | |
3169 | _ACEOF | |
3170 | cat confdefs.h >>conftest.$ac_ext | |
3171 | cat >>conftest.$ac_ext <<_ACEOF | |
3172 | /* end confdefs.h. */ | |
3173 | ||
0743911c FM |
3174 | /* Override any GCC internal prototype to avoid an error. |
3175 | Use char because int might match the return type of a GCC | |
3176 | builtin and then its argument prototype would still apply. */ | |
25697a35 GS |
3177 | #ifdef __cplusplus |
3178 | extern "C" | |
3179 | #endif | |
25697a35 GS |
3180 | char opendir (); |
3181 | int | |
3182 | main () | |
3183 | { | |
0743911c | 3184 | return opendir (); |
25697a35 GS |
3185 | ; |
3186 | return 0; | |
3187 | } | |
3188 | _ACEOF | |
0743911c FM |
3189 | for ac_lib in '' x; do |
3190 | if test -z "$ac_lib"; then | |
3191 | ac_res="none required" | |
3192 | else | |
3193 | ac_res=-l$ac_lib | |
3194 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3195 | fi | |
3196 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3197 | if { (ac_try="$ac_link" | |
3198 | case "(($ac_try" in | |
3199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3200 | *) ac_try_echo=$ac_try;; | |
3201 | esac | |
1164c474 FM |
3202 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3203 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 3204 | (eval "$ac_link") 2>conftest.er1 |
25697a35 GS |
3205 | ac_status=$? |
3206 | grep -v '^ *+' conftest.er1 >conftest.err | |
3207 | rm -f conftest.er1 | |
3208 | cat conftest.err >&5 | |
1164c474 | 3209 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
3210 | (exit $ac_status); } && { |
3211 | test -z "$ac_c_werror_flag" || | |
3212 | test ! -s conftest.err | |
1164c474 FM |
3213 | } && test -s conftest$ac_exeext && { |
3214 | test "$cross_compiling" = yes || | |
3215 | $as_test_x conftest$ac_exeext | |
3216 | }; then | |
0743911c | 3217 | ac_cv_search_opendir=$ac_res |
25697a35 | 3218 | else |
1164c474 | 3219 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
3220 | sed 's/^/| /' conftest.$ac_ext >&5 |
3221 | ||
25697a35 | 3222 | |
0743911c | 3223 | fi |
25697a35 | 3224 | |
1164c474 | 3225 | rm -rf conftest.dSYM |
0743911c FM |
3226 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3227 | conftest$ac_exeext | |
3228 | if test "${ac_cv_search_opendir+set}" = set; then | |
3229 | break | |
25697a35 | 3230 | fi |
0743911c FM |
3231 | done |
3232 | if test "${ac_cv_search_opendir+set}" = set; then | |
3233 | : | |
3234 | else | |
3235 | ac_cv_search_opendir=no | |
25697a35 | 3236 | fi |
0743911c | 3237 | rm conftest.$ac_ext |
25697a35 GS |
3238 | LIBS=$ac_func_search_save_LIBS |
3239 | fi | |
1164c474 FM |
3240 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3241 | $as_echo "$ac_cv_search_opendir" >&6; } | |
0743911c FM |
3242 | ac_res=$ac_cv_search_opendir |
3243 | if test "$ac_res" != no; then | |
3244 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
25697a35 GS |
3245 | |
3246 | fi | |
3247 | ||
3248 | fi | |
3249 | ||
3250 | ac_ext=c | |
3251 | ac_cpp='$CPP $CPPFLAGS' | |
3252 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3253 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3254 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1164c474 FM |
3255 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3256 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
25697a35 GS |
3257 | # On Suns, sometimes $CPP names a directory. |
3258 | if test -n "$CPP" && test -d "$CPP"; then | |
3259 | CPP= | |
3260 | fi | |
3261 | if test -z "$CPP"; then | |
3262 | if test "${ac_cv_prog_CPP+set}" = set; then | |
1164c474 | 3263 | $as_echo_n "(cached) " >&6 |
25697a35 GS |
3264 | else |
3265 | # Double quotes because CPP needs to be expanded | |
3266 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3267 | do | |
3268 | ac_preproc_ok=false | |
3269 | for ac_c_preproc_warn_flag in '' yes | |
3270 | do | |
3271 | # Use a header file that comes with gcc, so configuring glibc | |
3272 | # with a fresh cross-compiler works. | |
3273 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3274 | # <limits.h> exists even on freestanding compilers. | |
3275 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3276 | # not just through cpp. "Syntax error" is here to catch this case. | |
3277 | cat >conftest.$ac_ext <<_ACEOF | |
3278 | /* confdefs.h. */ | |
3279 | _ACEOF | |
3280 | cat confdefs.h >>conftest.$ac_ext | |
3281 | cat >>conftest.$ac_ext <<_ACEOF | |
3282 | /* end confdefs.h. */ | |
3283 | #ifdef __STDC__ | |
3284 | # include <limits.h> | |
3285 | #else | |
3286 | # include <assert.h> | |
3287 | #endif | |
3288 | Syntax error | |
3289 | _ACEOF | |
0743911c FM |
3290 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3291 | case "(($ac_try" in | |
3292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3293 | *) ac_try_echo=$ac_try;; | |
3294 | esac | |
1164c474 FM |
3295 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3296 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 3297 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
25697a35 GS |
3298 | ac_status=$? |
3299 | grep -v '^ *+' conftest.er1 >conftest.err | |
3300 | rm -f conftest.er1 | |
3301 | cat conftest.err >&5 | |
1164c474 | 3302 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
3303 | (exit $ac_status); } >/dev/null && { |
3304 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3305 | test ! -s conftest.err | |
3306 | }; then | |
25697a35 GS |
3307 | : |
3308 | else | |
1164c474 | 3309 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
3310 | sed 's/^/| /' conftest.$ac_ext >&5 |
3311 | ||
3312 | # Broken: fails on valid input. | |
3313 | continue | |
3314 | fi | |
0743911c | 3315 | |
25697a35 GS |
3316 | rm -f conftest.err conftest.$ac_ext |
3317 | ||
0743911c | 3318 | # OK, works on sane cases. Now check whether nonexistent headers |
25697a35 GS |
3319 | # can be detected and how. |
3320 | cat >conftest.$ac_ext <<_ACEOF | |
3321 | /* confdefs.h. */ | |
3322 | _ACEOF | |
3323 | cat confdefs.h >>conftest.$ac_ext | |
3324 | cat >>conftest.$ac_ext <<_ACEOF | |
3325 | /* end confdefs.h. */ | |
3326 | #include <ac_nonexistent.h> | |
3327 | _ACEOF | |
0743911c FM |
3328 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3329 | case "(($ac_try" in | |
3330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3331 | *) ac_try_echo=$ac_try;; | |
3332 | esac | |
1164c474 FM |
3333 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3334 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 3335 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
25697a35 GS |
3336 | ac_status=$? |
3337 | grep -v '^ *+' conftest.er1 >conftest.err | |
3338 | rm -f conftest.er1 | |
3339 | cat conftest.err >&5 | |
1164c474 | 3340 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
3341 | (exit $ac_status); } >/dev/null && { |
3342 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3343 | test ! -s conftest.err | |
3344 | }; then | |
25697a35 GS |
3345 | # Broken: success on invalid input. |
3346 | continue | |
3347 | else | |
1164c474 | 3348 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
3349 | sed 's/^/| /' conftest.$ac_ext >&5 |
3350 | ||
3351 | # Passes both tests. | |
3352 | ac_preproc_ok=: | |
3353 | break | |
3354 | fi | |
0743911c | 3355 | |
25697a35 GS |
3356 | rm -f conftest.err conftest.$ac_ext |
3357 | ||
3358 | done | |
3359 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3360 | rm -f conftest.err conftest.$ac_ext | |
3361 | if $ac_preproc_ok; then | |
3362 | break | |
3363 | fi | |
3364 | ||
3365 | done | |
3366 | ac_cv_prog_CPP=$CPP | |
3367 | ||
3368 | fi | |
3369 | CPP=$ac_cv_prog_CPP | |
3370 | else | |
3371 | ac_cv_prog_CPP=$CPP | |
3372 | fi | |
1164c474 FM |
3373 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3374 | $as_echo "$CPP" >&6; } | |
25697a35 GS |
3375 | ac_preproc_ok=false |
3376 | for ac_c_preproc_warn_flag in '' yes | |
3377 | do | |
3378 | # Use a header file that comes with gcc, so configuring glibc | |
3379 | # with a fresh cross-compiler works. | |
3380 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3381 | # <limits.h> exists even on freestanding compilers. | |
3382 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3383 | # not just through cpp. "Syntax error" is here to catch this case. | |
3384 | cat >conftest.$ac_ext <<_ACEOF | |
3385 | /* confdefs.h. */ | |
3386 | _ACEOF | |
3387 | cat confdefs.h >>conftest.$ac_ext | |
3388 | cat >>conftest.$ac_ext <<_ACEOF | |
3389 | /* end confdefs.h. */ | |
3390 | #ifdef __STDC__ | |
3391 | # include <limits.h> | |
3392 | #else | |
3393 | # include <assert.h> | |
3394 | #endif | |
3395 | Syntax error | |
3396 | _ACEOF | |
0743911c FM |
3397 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3398 | case "(($ac_try" in | |
3399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3400 | *) ac_try_echo=$ac_try;; | |
3401 | esac | |
1164c474 FM |
3402 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3403 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 3404 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
25697a35 GS |
3405 | ac_status=$? |
3406 | grep -v '^ *+' conftest.er1 >conftest.err | |
3407 | rm -f conftest.er1 | |
3408 | cat conftest.err >&5 | |
1164c474 | 3409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
3410 | (exit $ac_status); } >/dev/null && { |
3411 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3412 | test ! -s conftest.err | |
3413 | }; then | |
25697a35 GS |
3414 | : |
3415 | else | |
1164c474 | 3416 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
3417 | sed 's/^/| /' conftest.$ac_ext >&5 |
3418 | ||
3419 | # Broken: fails on valid input. | |
3420 | continue | |
3421 | fi | |
0743911c | 3422 | |
25697a35 GS |
3423 | rm -f conftest.err conftest.$ac_ext |
3424 | ||
0743911c | 3425 | # OK, works on sane cases. Now check whether nonexistent headers |
25697a35 GS |
3426 | # can be detected and how. |
3427 | cat >conftest.$ac_ext <<_ACEOF | |
3428 | /* confdefs.h. */ | |
3429 | _ACEOF | |
3430 | cat confdefs.h >>conftest.$ac_ext | |
3431 | cat >>conftest.$ac_ext <<_ACEOF | |
3432 | /* end confdefs.h. */ | |
3433 | #include <ac_nonexistent.h> | |
3434 | _ACEOF | |
0743911c FM |
3435 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3436 | case "(($ac_try" in | |
3437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3438 | *) ac_try_echo=$ac_try;; | |
3439 | esac | |
1164c474 FM |
3440 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3441 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 3442 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
25697a35 GS |
3443 | ac_status=$? |
3444 | grep -v '^ *+' conftest.er1 >conftest.err | |
3445 | rm -f conftest.er1 | |
3446 | cat conftest.err >&5 | |
1164c474 | 3447 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
3448 | (exit $ac_status); } >/dev/null && { |
3449 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3450 | test ! -s conftest.err | |
3451 | }; then | |
25697a35 GS |
3452 | # Broken: success on invalid input. |
3453 | continue | |
3454 | else | |
1164c474 | 3455 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
3456 | sed 's/^/| /' conftest.$ac_ext >&5 |
3457 | ||
3458 | # Passes both tests. | |
3459 | ac_preproc_ok=: | |
3460 | break | |
3461 | fi | |
0743911c | 3462 | |
25697a35 GS |
3463 | rm -f conftest.err conftest.$ac_ext |
3464 | ||
3465 | done | |
3466 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3467 | rm -f conftest.err conftest.$ac_ext | |
3468 | if $ac_preproc_ok; then | |
3469 | : | |
3470 | else | |
1164c474 FM |
3471 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3472 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3473 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
25697a35 | 3474 | See \`config.log' for more details." >&5 |
1164c474 | 3475 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
25697a35 | 3476 | See \`config.log' for more details." >&2;} |
1164c474 | 3477 | { (exit 1); exit 1; }; }; } |
25697a35 GS |
3478 | fi |
3479 | ||
3480 | ac_ext=c | |
3481 | ac_cpp='$CPP $CPPFLAGS' | |
3482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3485 | ||
3486 | ||
1164c474 FM |
3487 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3488 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
c4dd8d9c | 3489 | if test "${ac_cv_path_GREP+set}" = set; then |
1164c474 | 3490 | $as_echo_n "(cached) " >&6 |
0743911c | 3491 | else |
1164c474 | 3492 | if test -z "$GREP"; then |
0743911c | 3493 | ac_path_GREP_found=false |
1164c474 FM |
3494 | # Loop through the user's path and test for each of PROGNAME-LIST |
3495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
0743911c FM |
3496 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3497 | do | |
3498 | IFS=$as_save_IFS | |
3499 | test -z "$as_dir" && as_dir=. | |
3500 | for ac_prog in grep ggrep; do | |
1164c474 FM |
3501 | for ac_exec_ext in '' $ac_executable_extensions; do |
3502 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3503 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3504 | # Check for GNU ac_path_GREP and select it if it is found. | |
0743911c FM |
3505 | # Check for GNU $ac_path_GREP |
3506 | case `"$ac_path_GREP" --version 2>&1` in | |
3507 | *GNU*) | |
3508 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3509 | *) | |
3510 | ac_count=0 | |
1164c474 | 3511 | $as_echo_n 0123456789 >"conftest.in" |
0743911c FM |
3512 | while : |
3513 | do | |
3514 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3515 | mv "conftest.tmp" "conftest.in" | |
3516 | cp "conftest.in" "conftest.nl" | |
1164c474 | 3517 | $as_echo 'GREP' >> "conftest.nl" |
0743911c FM |
3518 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3519 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3520 | ac_count=`expr $ac_count + 1` | |
3521 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3522 | # Best one so far, save it but keep looking for a better one | |
3523 | ac_cv_path_GREP="$ac_path_GREP" | |
3524 | ac_path_GREP_max=$ac_count | |
3525 | fi | |
3526 | # 10*(2^10) chars as input seems more than enough | |
3527 | test $ac_count -gt 10 && break | |
3528 | done | |
3529 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3530 | esac | |
3531 | ||
1164c474 FM |
3532 | $ac_path_GREP_found && break 3 |
3533 | done | |
0743911c FM |
3534 | done |
3535 | done | |
0743911c | 3536 | IFS=$as_save_IFS |
1164c474 FM |
3537 | if test -z "$ac_cv_path_GREP"; then |
3538 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3539 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
0743911c | 3540 | { (exit 1); exit 1; }; } |
1164c474 | 3541 | fi |
0743911c FM |
3542 | else |
3543 | ac_cv_path_GREP=$GREP | |
3544 | fi | |
3545 | ||
0743911c | 3546 | fi |
1164c474 FM |
3547 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3548 | $as_echo "$ac_cv_path_GREP" >&6; } | |
0743911c FM |
3549 | GREP="$ac_cv_path_GREP" |
3550 | ||
3551 | ||
1164c474 FM |
3552 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3553 | $as_echo_n "checking for egrep... " >&6; } | |
0743911c | 3554 | if test "${ac_cv_path_EGREP+set}" = set; then |
1164c474 | 3555 | $as_echo_n "(cached) " >&6 |
25697a35 | 3556 | else |
0743911c FM |
3557 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3558 | then ac_cv_path_EGREP="$GREP -E" | |
3559 | else | |
1164c474 | 3560 | if test -z "$EGREP"; then |
0743911c | 3561 | ac_path_EGREP_found=false |
1164c474 FM |
3562 | # Loop through the user's path and test for each of PROGNAME-LIST |
3563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
0743911c FM |
3564 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3565 | do | |
3566 | IFS=$as_save_IFS | |
3567 | test -z "$as_dir" && as_dir=. | |
3568 | for ac_prog in egrep; do | |
1164c474 FM |
3569 | for ac_exec_ext in '' $ac_executable_extensions; do |
3570 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3571 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3572 | # Check for GNU ac_path_EGREP and select it if it is found. | |
0743911c FM |
3573 | # Check for GNU $ac_path_EGREP |
3574 | case `"$ac_path_EGREP" --version 2>&1` in | |
3575 | *GNU*) | |
3576 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3577 | *) | |
3578 | ac_count=0 | |
1164c474 | 3579 | $as_echo_n 0123456789 >"conftest.in" |
0743911c FM |
3580 | while : |
3581 | do | |
3582 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3583 | mv "conftest.tmp" "conftest.in" | |
3584 | cp "conftest.in" "conftest.nl" | |
1164c474 | 3585 | $as_echo 'EGREP' >> "conftest.nl" |
0743911c FM |
3586 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3587 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3588 | ac_count=`expr $ac_count + 1` | |
3589 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3590 | # Best one so far, save it but keep looking for a better one | |
3591 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3592 | ac_path_EGREP_max=$ac_count | |
25697a35 | 3593 | fi |
0743911c FM |
3594 | # 10*(2^10) chars as input seems more than enough |
3595 | test $ac_count -gt 10 && break | |
3596 | done | |
3597 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3598 | esac | |
3599 | ||
1164c474 FM |
3600 | $ac_path_EGREP_found && break 3 |
3601 | done | |
0743911c FM |
3602 | done |
3603 | done | |
0743911c | 3604 | IFS=$as_save_IFS |
1164c474 FM |
3605 | if test -z "$ac_cv_path_EGREP"; then |
3606 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3607 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
0743911c | 3608 | { (exit 1); exit 1; }; } |
1164c474 | 3609 | fi |
0743911c FM |
3610 | else |
3611 | ac_cv_path_EGREP=$EGREP | |
3612 | fi | |
3613 | ||
0743911c | 3614 | fi |
25697a35 | 3615 | fi |
1164c474 FM |
3616 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3617 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
0743911c | 3618 | EGREP="$ac_cv_path_EGREP" |
25697a35 GS |
3619 | |
3620 | ||
1164c474 FM |
3621 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3622 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
25697a35 | 3623 | if test "${ac_cv_header_stdc+set}" = set; then |
1164c474 | 3624 | $as_echo_n "(cached) " >&6 |
25697a35 GS |
3625 | else |
3626 | cat >conftest.$ac_ext <<_ACEOF | |
3627 | /* confdefs.h. */ | |
3628 | _ACEOF | |
3629 | cat confdefs.h >>conftest.$ac_ext | |
3630 | cat >>conftest.$ac_ext <<_ACEOF | |
3631 | /* end confdefs.h. */ | |
3632 | #include <stdlib.h> | |
3633 | #include <stdarg.h> | |
3634 | #include <string.h> | |
3635 | #include <float.h> | |
3636 | ||
3637 | int | |
3638 | main () | |
3639 | { | |
3640 | ||
3641 | ; | |
3642 | return 0; | |
3643 | } | |
3644 | _ACEOF | |
3645 | rm -f conftest.$ac_objext | |
0743911c FM |
3646 | if { (ac_try="$ac_compile" |
3647 | case "(($ac_try" in | |
3648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3649 | *) ac_try_echo=$ac_try;; | |
3650 | esac | |
1164c474 FM |
3651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3652 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 3653 | (eval "$ac_compile") 2>conftest.er1 |
25697a35 GS |
3654 | ac_status=$? |
3655 | grep -v '^ *+' conftest.er1 >conftest.err | |
3656 | rm -f conftest.er1 | |
3657 | cat conftest.err >&5 | |
1164c474 | 3658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
3659 | (exit $ac_status); } && { |
3660 | test -z "$ac_c_werror_flag" || | |
3661 | test ! -s conftest.err | |
3662 | } && test -s conftest.$ac_objext; then | |
25697a35 GS |
3663 | ac_cv_header_stdc=yes |
3664 | else | |
1164c474 | 3665 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
3666 | sed 's/^/| /' conftest.$ac_ext >&5 |
3667 | ||
0743911c | 3668 | ac_cv_header_stdc=no |
25697a35 | 3669 | fi |
0743911c FM |
3670 | |
3671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25697a35 GS |
3672 | |
3673 | if test $ac_cv_header_stdc = yes; then | |
3674 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3675 | cat >conftest.$ac_ext <<_ACEOF | |
3676 | /* confdefs.h. */ | |
3677 | _ACEOF | |
3678 | cat confdefs.h >>conftest.$ac_ext | |
3679 | cat >>conftest.$ac_ext <<_ACEOF | |
3680 | /* end confdefs.h. */ | |
3681 | #include <string.h> | |
3682 | ||
3683 | _ACEOF | |
3684 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3685 | $EGREP "memchr" >/dev/null 2>&1; then | |
3686 | : | |
3687 | else | |
3688 | ac_cv_header_stdc=no | |
3689 | fi | |
3690 | rm -f conftest* | |
3691 | ||
3692 | fi | |
3693 | ||
3694 | if test $ac_cv_header_stdc = yes; then | |
3695 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3696 | cat >conftest.$ac_ext <<_ACEOF | |
3697 | /* confdefs.h. */ | |
3698 | _ACEOF | |
3699 | cat confdefs.h >>conftest.$ac_ext | |
3700 | cat >>conftest.$ac_ext <<_ACEOF | |
3701 | /* end confdefs.h. */ | |
3702 | #include <stdlib.h> | |
3703 | ||
3704 | _ACEOF | |
3705 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3706 | $EGREP "free" >/dev/null 2>&1; then | |
3707 | : | |
3708 | else | |
3709 | ac_cv_header_stdc=no | |
3710 | fi | |
3711 | rm -f conftest* | |
3712 | ||
3713 | fi | |
3714 | ||
3715 | if test $ac_cv_header_stdc = yes; then | |
3716 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3717 | if test "$cross_compiling" = yes; then | |
3718 | : | |
3719 | else | |
3720 | cat >conftest.$ac_ext <<_ACEOF | |
3721 | /* confdefs.h. */ | |
3722 | _ACEOF | |
3723 | cat confdefs.h >>conftest.$ac_ext | |
3724 | cat >>conftest.$ac_ext <<_ACEOF | |
3725 | /* end confdefs.h. */ | |
3726 | #include <ctype.h> | |
0743911c | 3727 | #include <stdlib.h> |
25697a35 GS |
3728 | #if ((' ' & 0x0FF) == 0x020) |
3729 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3730 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3731 | #else | |
3732 | # define ISLOWER(c) \ | |
3733 | (('a' <= (c) && (c) <= 'i') \ | |
3734 | || ('j' <= (c) && (c) <= 'r') \ | |
3735 | || ('s' <= (c) && (c) <= 'z')) | |
3736 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3737 | #endif | |
3738 | ||
3739 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3740 | int | |
3741 | main () | |
3742 | { | |
3743 | int i; | |
3744 | for (i = 0; i < 256; i++) | |
3745 | if (XOR (islower (i), ISLOWER (i)) | |
3746 | || toupper (i) != TOUPPER (i)) | |
0743911c FM |
3747 | return 2; |
3748 | return 0; | |
25697a35 GS |
3749 | } |
3750 | _ACEOF | |
3751 | rm -f conftest$ac_exeext | |
0743911c FM |
3752 | if { (ac_try="$ac_link" |
3753 | case "(($ac_try" in | |
3754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3755 | *) ac_try_echo=$ac_try;; | |
3756 | esac | |
1164c474 FM |
3757 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3758 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 3759 | (eval "$ac_link") 2>&5 |
25697a35 | 3760 | ac_status=$? |
1164c474 | 3761 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25697a35 | 3762 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
0743911c FM |
3763 | { (case "(($ac_try" in |
3764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3765 | *) ac_try_echo=$ac_try;; | |
3766 | esac | |
1164c474 FM |
3767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3768 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 3769 | (eval "$ac_try") 2>&5 |
25697a35 | 3770 | ac_status=$? |
1164c474 | 3771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25697a35 GS |
3772 | (exit $ac_status); }; }; then |
3773 | : | |
3774 | else | |
1164c474 FM |
3775 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
3776 | $as_echo "$as_me: failed program was:" >&5 | |
25697a35 GS |
3777 | sed 's/^/| /' conftest.$ac_ext >&5 |
3778 | ||
3779 | ( exit $ac_status ) | |
3780 | ac_cv_header_stdc=no | |
3781 | fi | |
1164c474 | 3782 | rm -rf conftest.dSYM |
0743911c | 3783 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
25697a35 | 3784 | fi |
0743911c FM |
3785 | |
3786 | ||
25697a35 GS |
3787 | fi |
3788 | fi | |
1164c474 FM |
3789 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3790 | $as_echo "$ac_cv_header_stdc" >&6; } | |
25697a35 GS |
3791 | if test $ac_cv_header_stdc = yes; then |
3792 | ||
3793 | cat >>confdefs.h <<\_ACEOF | |
3794 | #define STDC_HEADERS 1 | |
3795 | _ACEOF | |
3796 | ||
3797 | fi | |
3798 | ||
3799 | ||
d6e703cc FM |
3800 | |
3801 | if test "X$prefix" = "XNONE"; then | |
3802 | acl_final_prefix="$ac_default_prefix" | |
3803 | else | |
3804 | acl_final_prefix="$prefix" | |
3805 | fi | |
3806 | if test "X$exec_prefix" = "XNONE"; then | |
3807 | acl_final_exec_prefix='${prefix}' | |
3808 | else | |
3809 | acl_final_exec_prefix="$exec_prefix" | |
3810 | fi | |
3811 | acl_save_prefix="$prefix" | |
3812 | prefix="$acl_final_prefix" | |
3813 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
3814 | prefix="$acl_save_prefix" | |
3815 | ||
3816 | ||
0743911c | 3817 | # Check whether --with-gnu-ld was given. |
d6e703cc | 3818 | if test "${with_gnu_ld+set}" = set; then |
0743911c | 3819 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d6e703cc FM |
3820 | else |
3821 | with_gnu_ld=no | |
0743911c FM |
3822 | fi |
3823 | ||
d6e703cc FM |
3824 | # Prepare PATH_SEPARATOR. |
3825 | # The user is always right. | |
3826 | if test "${PATH_SEPARATOR+set}" != set; then | |
3827 | echo "#! /bin/sh" >conf$$.sh | |
3828 | echo "exit 0" >>conf$$.sh | |
3829 | chmod +x conf$$.sh | |
3830 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3831 | PATH_SEPARATOR=';' | |
3832 | else | |
3833 | PATH_SEPARATOR=: | |
3834 | fi | |
3835 | rm -f conf$$.sh | |
3836 | fi | |
3837 | ac_prog=ld | |
3838 | if test "$GCC" = yes; then | |
3839 | # Check if gcc -print-prog-name=ld gives a path. | |
1164c474 FM |
3840 | { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3841 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
d6e703cc FM |
3842 | case $host in |
3843 | *-*-mingw*) | |
3844 | # gcc leaves a trailing carriage return which upsets mingw | |
3845 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3846 | *) | |
3847 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3848 | esac | |
3849 | case $ac_prog in | |
3850 | # Accept absolute paths. | |
3851 | [\\/]* | [A-Za-z]:[\\/]*) | |
3852 | re_direlt='/[^/][^/]*/\.\./' | |
3853 | # Canonicalize the path of ld | |
3854 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3855 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3856 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3857 | done | |
3858 | test -z "$LD" && LD="$ac_prog" | |
3859 | ;; | |
3860 | "") | |
3861 | # If it fails, then pretend we aren't using GCC. | |
3862 | ac_prog=ld | |
3863 | ;; | |
3864 | *) | |
3865 | # If it is relative, then search for the first ld in PATH. | |
3866 | with_gnu_ld=unknown | |
3867 | ;; | |
3868 | esac | |
3869 | elif test "$with_gnu_ld" = yes; then | |
1164c474 FM |
3870 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3871 | $as_echo_n "checking for GNU ld... " >&6; } | |
d6e703cc | 3872 | else |
1164c474 FM |
3873 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3874 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
d6e703cc FM |
3875 | fi |
3876 | if test "${acl_cv_path_LD+set}" = set; then | |
1164c474 | 3877 | $as_echo_n "(cached) " >&6 |
d6e703cc FM |
3878 | else |
3879 | if test -z "$LD"; then | |
3880 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3881 | for ac_dir in $PATH; do | |
3882 | test -z "$ac_dir" && ac_dir=. | |
3883 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3884 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
3885 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3886 | # but apparently some GNU ld's only accept -v. | |
3887 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3888 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
3889 | *GNU* | *'with BFD'*) | |
3890 | test "$with_gnu_ld" != no && break ;; | |
3891 | *) | |
3892 | test "$with_gnu_ld" != yes && break ;; | |
3893 | esac | |
3894 | fi | |
3895 | done | |
3896 | IFS="$ac_save_ifs" | |
3897 | else | |
3898 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
3899 | fi | |
3900 | fi | |
3901 | ||
3902 | LD="$acl_cv_path_LD" | |
3903 | if test -n "$LD"; then | |
1164c474 FM |
3904 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
3905 | $as_echo "$LD" >&6; } | |
d6e703cc | 3906 | else |
1164c474 FM |
3907 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3908 | $as_echo "no" >&6; } | |
d6e703cc | 3909 | fi |
1164c474 FM |
3910 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3911 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
d6e703cc | 3912 | { (exit 1); exit 1; }; } |
1164c474 FM |
3913 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
3914 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d6e703cc | 3915 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
1164c474 | 3916 | $as_echo_n "(cached) " >&6 |
d6e703cc FM |
3917 | else |
3918 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3919 | case `$LD -v 2>&1 </dev/null` in | |
3920 | *GNU* | *'with BFD'*) | |
3921 | acl_cv_prog_gnu_ld=yes ;; | |
3922 | *) | |
3923 | acl_cv_prog_gnu_ld=no ;; | |
3924 | esac | |
3925 | fi | |
1164c474 FM |
3926 | { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
3927 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
d6e703cc FM |
3928 | with_gnu_ld=$acl_cv_prog_gnu_ld |
3929 | ||
3930 | ||
3931 | ||
0743911c | 3932 | |
1164c474 FM |
3933 | { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
3934 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
d6e703cc | 3935 | if test "${acl_cv_rpath+set}" = set; then |
1164c474 | 3936 | $as_echo_n "(cached) " >&6 |
d6e703cc FM |
3937 | else |
3938 | ||
3939 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
3940 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
3941 | . ./conftest.sh | |
3942 | rm -f ./conftest.sh | |
3943 | acl_cv_rpath=done | |
3944 | ||
3945 | fi | |
1164c474 FM |
3946 | { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
3947 | $as_echo "$acl_cv_rpath" >&6; } | |
d6e703cc | 3948 | wl="$acl_cv_wl" |
0743911c FM |
3949 | acl_libext="$acl_cv_libext" |
3950 | acl_shlibext="$acl_cv_shlibext" | |
3951 | acl_libname_spec="$acl_cv_libname_spec" | |
3952 | acl_library_names_spec="$acl_cv_library_names_spec" | |
3953 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
3954 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
3955 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
3956 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
3957 | # Check whether --enable-rpath was given. | |
d6e703cc | 3958 | if test "${enable_rpath+set}" = set; then |
0743911c | 3959 | enableval=$enable_rpath; : |
d6e703cc FM |
3960 | else |
3961 | enable_rpath=yes | |
0743911c FM |
3962 | fi |
3963 | ||
3964 | ||
3965 | ||
3966 | acl_libdirstem=lib | |
3967 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
3968 | if test -n "$searchpath"; then | |
3969 | acl_save_IFS="${IFS= }"; IFS=":" | |
3970 | for searchdir in $searchpath; do | |
3971 | if test -d "$searchdir"; then | |
3972 | case "$searchdir" in | |
3973 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
3974 | *) searchdir=`cd "$searchdir" && pwd` | |
3975 | case "$searchdir" in | |
3976 | */lib64 ) acl_libdirstem=lib64 ;; | |
3977 | esac ;; | |
3978 | esac | |
3979 | fi | |
3980 | done | |
3981 | IFS="$acl_save_IFS" | |
3982 | fi | |
3983 | ||
3984 | ||
d6e703cc FM |
3985 | |
3986 | ||
3987 | ||
3988 | ||
3989 | ||
3990 | ||
3991 | ||
3992 | use_additional=yes | |
3993 | ||
3994 | acl_save_prefix="$prefix" | |
3995 | prefix="$acl_final_prefix" | |
3996 | acl_save_exec_prefix="$exec_prefix" | |
3997 | exec_prefix="$acl_final_exec_prefix" | |
3998 | ||
3999 | eval additional_includedir=\"$includedir\" | |
4000 | eval additional_libdir=\"$libdir\" | |
4001 | ||
4002 | exec_prefix="$acl_save_exec_prefix" | |
4003 | prefix="$acl_save_prefix" | |
4004 | ||
4005 | ||
0743911c | 4006 | # Check whether --with-libiconv-prefix was given. |
d6e703cc | 4007 | if test "${with_libiconv_prefix+set}" = set; then |
0743911c | 4008 | withval=$with_libiconv_prefix; |
d6e703cc FM |
4009 | if test "X$withval" = "Xno"; then |
4010 | use_additional=no | |
4011 | else | |
4012 | if test "X$withval" = "X"; then | |
4013 | ||
4014 | acl_save_prefix="$prefix" | |
4015 | prefix="$acl_final_prefix" | |
4016 | acl_save_exec_prefix="$exec_prefix" | |
4017 | exec_prefix="$acl_final_exec_prefix" | |
4018 | ||
4019 | eval additional_includedir=\"$includedir\" | |
4020 | eval additional_libdir=\"$libdir\" | |
4021 | ||
4022 | exec_prefix="$acl_save_exec_prefix" | |
4023 | prefix="$acl_save_prefix" | |
4024 | ||
4025 | else | |
4026 | additional_includedir="$withval/include" | |
0743911c | 4027 | additional_libdir="$withval/$acl_libdirstem" |
d6e703cc FM |
4028 | fi |
4029 | fi | |
4030 | ||
0743911c FM |
4031 | fi |
4032 | ||
d6e703cc FM |
4033 | LIBICONV= |
4034 | LTLIBICONV= | |
4035 | INCICONV= | |
0743911c | 4036 | LIBICONV_PREFIX= |
d6e703cc FM |
4037 | rpathdirs= |
4038 | ltrpathdirs= | |
4039 | names_already_handled= | |
4040 | names_next_round='iconv ' | |
4041 | while test -n "$names_next_round"; do | |
4042 | names_this_round="$names_next_round" | |
4043 | names_next_round= | |
4044 | for name in $names_this_round; do | |
4045 | already_handled= | |
4046 | for n in $names_already_handled; do | |
4047 | if test "$n" = "$name"; then | |
4048 | already_handled=yes | |
4049 | break | |
4050 | fi | |
4051 | done | |
4052 | if test -z "$already_handled"; then | |
4053 | names_already_handled="$names_already_handled $name" | |
4054 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
4055 | eval value=\"\$HAVE_LIB$uppername\" | |
4056 | if test -n "$value"; then | |
4057 | if test "$value" = yes; then | |
4058 | eval value=\"\$LIB$uppername\" | |
4059 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
4060 | eval value=\"\$LTLIB$uppername\" | |
4061 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
4062 | else | |
4063 | : | |
4064 | fi | |
4065 | else | |
4066 | found_dir= | |
4067 | found_la= | |
4068 | found_so= | |
4069 | found_a= | |
0743911c FM |
4070 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
4071 | if test -n "$acl_shlibext"; then | |
4072 | shrext=".$acl_shlibext" # typically: shrext=.so | |
4073 | else | |
4074 | shrext= | |
4075 | fi | |
d6e703cc | 4076 | if test $use_additional = yes; then |
0743911c FM |
4077 | dir="$additional_libdir" |
4078 | if test -n "$acl_shlibext"; then | |
4079 | if test -f "$dir/$libname$shrext"; then | |
4080 | found_dir="$dir" | |
4081 | found_so="$dir/$libname$shrext" | |
4082 | else | |
4083 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
4084 | ver=`(cd "$dir" && \ | |
4085 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
4086 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
4087 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
4088 | | sed 1q ) 2>/dev/null` | |
4089 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
4090 | found_dir="$dir" | |
4091 | found_so="$dir/$libname$shrext.$ver" | |
4092 | fi | |
4093 | else | |
4094 | eval library_names=\"$acl_library_names_spec\" | |
4095 | for f in $library_names; do | |
4096 | if test -f "$dir/$f"; then | |
4097 | found_dir="$dir" | |
4098 | found_so="$dir/$f" | |
4099 | break | |
4100 | fi | |
4101 | done | |
d6e703cc FM |
4102 | fi |
4103 | fi | |
0743911c FM |
4104 | fi |
4105 | if test "X$found_dir" = "X"; then | |
4106 | if test -f "$dir/$libname.$acl_libext"; then | |
4107 | found_dir="$dir" | |
4108 | found_a="$dir/$libname.$acl_libext" | |
4109 | fi | |
4110 | fi | |
4111 | if test "X$found_dir" != "X"; then | |
4112 | if test -f "$dir/$libname.la"; then | |
4113 | found_la="$dir/$libname.la" | |
4114 | fi | |
d6e703cc FM |
4115 | fi |
4116 | fi | |
4117 | if test "X$found_dir" = "X"; then | |
4118 | for x in $LDFLAGS $LTLIBICONV; do | |
4119 | ||
4120 | acl_save_prefix="$prefix" | |
4121 | prefix="$acl_final_prefix" | |
4122 | acl_save_exec_prefix="$exec_prefix" | |
4123 | exec_prefix="$acl_final_exec_prefix" | |
4124 | eval x=\"$x\" | |
4125 | exec_prefix="$acl_save_exec_prefix" | |
4126 | prefix="$acl_save_prefix" | |
4127 | ||
4128 | case "$x" in | |
4129 | -L*) | |
4130 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
0743911c FM |
4131 | if test -n "$acl_shlibext"; then |
4132 | if test -f "$dir/$libname$shrext"; then | |
d6e703cc | 4133 | found_dir="$dir" |
0743911c FM |
4134 | found_so="$dir/$libname$shrext" |
4135 | else | |
4136 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
4137 | ver=`(cd "$dir" && \ | |
4138 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
4139 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
4140 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
4141 | | sed 1q ) 2>/dev/null` | |
4142 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
4143 | found_dir="$dir" | |
4144 | found_so="$dir/$libname$shrext.$ver" | |
4145 | fi | |
4146 | else | |
4147 | eval library_names=\"$acl_library_names_spec\" | |
4148 | for f in $library_names; do | |
4149 | if test -f "$dir/$f"; then | |
4150 | found_dir="$dir" | |
4151 | found_so="$dir/$f" | |
4152 | break | |
4153 | fi | |
4154 | done | |
d6e703cc FM |
4155 | fi |
4156 | fi | |
0743911c FM |
4157 | fi |
4158 | if test "X$found_dir" = "X"; then | |
4159 | if test -f "$dir/$libname.$acl_libext"; then | |
4160 | found_dir="$dir" | |
4161 | found_a="$dir/$libname.$acl_libext" | |
4162 | fi | |
4163 | fi | |
4164 | if test "X$found_dir" != "X"; then | |
4165 | if test -f "$dir/$libname.la"; then | |
4166 | found_la="$dir/$libname.la" | |
4167 | fi | |
d6e703cc FM |
4168 | fi |
4169 | ;; | |
4170 | esac | |
4171 | if test "X$found_dir" != "X"; then | |
4172 | break | |
4173 | fi | |
4174 | done | |
4175 | fi | |
4176 | if test "X$found_dir" != "X"; then | |
4177 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
4178 | if test "X$found_so" != "X"; then | |
0743911c | 4179 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then |
d6e703cc FM |
4180 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
4181 | else | |
4182 | haveit= | |
4183 | for x in $ltrpathdirs; do | |
4184 | if test "X$x" = "X$found_dir"; then | |
4185 | haveit=yes | |
4186 | break | |
4187 | fi | |
4188 | done | |
4189 | if test -z "$haveit"; then | |
4190 | ltrpathdirs="$ltrpathdirs $found_dir" | |
4191 | fi | |
0743911c | 4192 | if test "$acl_hardcode_direct" = yes; then |
d6e703cc FM |
4193 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
4194 | else | |
0743911c | 4195 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
d6e703cc FM |
4196 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
4197 | haveit= | |
4198 | for x in $rpathdirs; do | |
4199 | if test "X$x" = "X$found_dir"; then | |
4200 | haveit=yes | |
4201 | break | |
4202 | fi | |
4203 | done | |
4204 | if test -z "$haveit"; then | |
4205 | rpathdirs="$rpathdirs $found_dir" | |
4206 | fi | |
4207 | else | |
4208 | haveit= | |
4209 | for x in $LDFLAGS $LIBICONV; do | |
4210 | ||
4211 | acl_save_prefix="$prefix" | |
4212 | prefix="$acl_final_prefix" | |
4213 | acl_save_exec_prefix="$exec_prefix" | |
4214 | exec_prefix="$acl_final_exec_prefix" | |
4215 | eval x=\"$x\" | |
4216 | exec_prefix="$acl_save_exec_prefix" | |
4217 | prefix="$acl_save_prefix" | |
4218 | ||
4219 | if test "X$x" = "X-L$found_dir"; then | |
4220 | haveit=yes | |
4221 | break | |
4222 | fi | |
4223 | done | |
4224 | if test -z "$haveit"; then | |
4225 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
4226 | fi | |
0743911c | 4227 | if test "$acl_hardcode_minus_L" != no; then |
d6e703cc FM |
4228 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
4229 | else | |
4230 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
4231 | fi | |
4232 | fi | |
4233 | fi | |
4234 | fi | |
4235 | else | |
4236 | if test "X$found_a" != "X"; then | |
4237 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
4238 | else | |
4239 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
4240 | fi | |
4241 | fi | |
4242 | additional_includedir= | |
4243 | case "$found_dir" in | |
0743911c FM |
4244 | */$acl_libdirstem | */$acl_libdirstem/) |
4245 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
4246 | LIBICONV_PREFIX="$basedir" | |
d6e703cc FM |
4247 | additional_includedir="$basedir/include" |
4248 | ;; | |
4249 | esac | |
4250 | if test "X$additional_includedir" != "X"; then | |
4251 | if test "X$additional_includedir" != "X/usr/include"; then | |
4252 | haveit= | |
4253 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
4254 | if test -n "$GCC"; then | |
4255 | case $host_os in | |
0743911c | 4256 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
d6e703cc FM |
4257 | esac |
4258 | fi | |
4259 | fi | |
4260 | if test -z "$haveit"; then | |
4261 | for x in $CPPFLAGS $INCICONV; do | |
4262 | ||
4263 | acl_save_prefix="$prefix" | |
4264 | prefix="$acl_final_prefix" | |
4265 | acl_save_exec_prefix="$exec_prefix" | |
4266 | exec_prefix="$acl_final_exec_prefix" | |
4267 | eval x=\"$x\" | |
4268 | exec_prefix="$acl_save_exec_prefix" | |
4269 | prefix="$acl_save_prefix" | |
4270 | ||
4271 | if test "X$x" = "X-I$additional_includedir"; then | |
4272 | haveit=yes | |
4273 | break | |
4274 | fi | |
4275 | done | |
4276 | if test -z "$haveit"; then | |
4277 | if test -d "$additional_includedir"; then | |
4278 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
4279 | fi | |
4280 | fi | |
4281 | fi | |
4282 | fi | |
4283 | fi | |
4284 | if test -n "$found_la"; then | |
4285 | save_libdir="$libdir" | |
4286 | case "$found_la" in | |
4287 | */* | *\\*) . "$found_la" ;; | |
4288 | *) . "./$found_la" ;; | |
4289 | esac | |
4290 | libdir="$save_libdir" | |
4291 | for dep in $dependency_libs; do | |
4292 | case "$dep" in | |
4293 | -L*) | |
4294 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
0743911c | 4295 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then |
d6e703cc | 4296 | haveit= |
0743911c | 4297 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then |
d6e703cc FM |
4298 | if test -n "$GCC"; then |
4299 | case $host_os in | |
0743911c | 4300 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
d6e703cc FM |
4301 | esac |
4302 | fi | |
4303 | fi | |
4304 | if test -z "$haveit"; then | |
4305 | haveit= | |
4306 | for x in $LDFLAGS $LIBICONV; do | |
4307 | ||
4308 | acl_save_prefix="$prefix" | |
4309 | prefix="$acl_final_prefix" | |
4310 | acl_save_exec_prefix="$exec_prefix" | |
4311 | exec_prefix="$acl_final_exec_prefix" | |
4312 | eval x=\"$x\" | |
4313 | exec_prefix="$acl_save_exec_prefix" | |
4314 | prefix="$acl_save_prefix" | |
4315 | ||
4316 | if test "X$x" = "X-L$additional_libdir"; then | |
4317 | haveit=yes | |
4318 | break | |
4319 | fi | |
4320 | done | |
4321 | if test -z "$haveit"; then | |
4322 | if test -d "$additional_libdir"; then | |
4323 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
4324 | fi | |
4325 | fi | |
4326 | haveit= | |
4327 | for x in $LDFLAGS $LTLIBICONV; do | |
4328 | ||
4329 | acl_save_prefix="$prefix" | |
4330 | prefix="$acl_final_prefix" | |
4331 | acl_save_exec_prefix="$exec_prefix" | |
4332 | exec_prefix="$acl_final_exec_prefix" | |
4333 | eval x=\"$x\" | |
4334 | exec_prefix="$acl_save_exec_prefix" | |
4335 | prefix="$acl_save_prefix" | |
4336 | ||
4337 | if test "X$x" = "X-L$additional_libdir"; then | |
4338 | haveit=yes | |
4339 | break | |
4340 | fi | |
4341 | done | |
4342 | if test -z "$haveit"; then | |
4343 | if test -d "$additional_libdir"; then | |
4344 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
4345 | fi | |
4346 | fi | |
4347 | fi | |
4348 | fi | |
4349 | ;; | |
4350 | -R*) | |
4351 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
4352 | if test "$enable_rpath" != no; then | |
4353 | haveit= | |
4354 | for x in $rpathdirs; do | |
4355 | if test "X$x" = "X$dir"; then | |
4356 | haveit=yes | |
4357 | break | |
4358 | fi | |
4359 | done | |
4360 | if test -z "$haveit"; then | |
4361 | rpathdirs="$rpathdirs $dir" | |
4362 | fi | |
4363 | haveit= | |
4364 | for x in $ltrpathdirs; do | |
4365 | if test "X$x" = "X$dir"; then | |
4366 | haveit=yes | |
4367 | break | |
4368 | fi | |
4369 | done | |
4370 | if test -z "$haveit"; then | |
4371 | ltrpathdirs="$ltrpathdirs $dir" | |
4372 | fi | |
4373 | fi | |
4374 | ;; | |
4375 | -l*) | |
4376 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
4377 | ;; | |
4378 | *.la) | |
4379 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
4380 | ;; | |
4381 | *) | |
4382 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
4383 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
4384 | ;; | |
4385 | esac | |
4386 | done | |
4387 | fi | |
4388 | else | |
4389 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
4390 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
4391 | fi | |
4392 | fi | |
4393 | fi | |
4394 | done | |
4395 | done | |
4396 | if test "X$rpathdirs" != "X"; then | |
0743911c | 4397 | if test -n "$acl_hardcode_libdir_separator"; then |
d6e703cc FM |
4398 | alldirs= |
4399 | for found_dir in $rpathdirs; do | |
0743911c | 4400 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
d6e703cc FM |
4401 | done |
4402 | acl_save_libdir="$libdir" | |
4403 | libdir="$alldirs" | |
0743911c | 4404 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
d6e703cc FM |
4405 | libdir="$acl_save_libdir" |
4406 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
4407 | else | |
4408 | for found_dir in $rpathdirs; do | |
4409 | acl_save_libdir="$libdir" | |
4410 | libdir="$found_dir" | |
0743911c | 4411 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
d6e703cc FM |
4412 | libdir="$acl_save_libdir" |
4413 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
4414 | done | |
4415 | fi | |
4416 | fi | |
4417 | if test "X$ltrpathdirs" != "X"; then | |
4418 | for found_dir in $ltrpathdirs; do | |
4419 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
4420 | done | |
4421 | fi | |
4422 | ||
4423 | ||
4424 | ||
4425 | ||
4426 | ||
4427 | ||
4428 | ||
4429 | am_save_CPPFLAGS="$CPPFLAGS" | |
4430 | ||
4431 | for element in $INCICONV; do | |
4432 | haveit= | |
4433 | for x in $CPPFLAGS; do | |
4434 | ||
4435 | acl_save_prefix="$prefix" | |
4436 | prefix="$acl_final_prefix" | |
4437 | acl_save_exec_prefix="$exec_prefix" | |
4438 | exec_prefix="$acl_final_exec_prefix" | |
4439 | eval x=\"$x\" | |
4440 | exec_prefix="$acl_save_exec_prefix" | |
4441 | prefix="$acl_save_prefix" | |
4442 | ||
4443 | if test "X$x" = "X$element"; then | |
4444 | haveit=yes | |
4445 | break | |
4446 | fi | |
4447 | done | |
4448 | if test -z "$haveit"; then | |
4449 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
4450 | fi | |
4451 | done | |
4452 | ||
4453 | ||
1164c474 FM |
4454 | { $as_echo "$as_me:$LINENO: checking for iconv" >&5 |
4455 | $as_echo_n "checking for iconv... " >&6; } | |
d6e703cc | 4456 | if test "${am_cv_func_iconv+set}" = set; then |
1164c474 | 4457 | $as_echo_n "(cached) " >&6 |
d6e703cc FM |
4458 | else |
4459 | ||
4460 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
4461 | am_cv_lib_iconv=no | |
4462 | cat >conftest.$ac_ext <<_ACEOF | |
4463 | /* confdefs.h. */ | |
4464 | _ACEOF | |
4465 | cat confdefs.h >>conftest.$ac_ext | |
4466 | cat >>conftest.$ac_ext <<_ACEOF | |
4467 | /* end confdefs.h. */ | |
4468 | #include <stdlib.h> | |
4469 | #include <iconv.h> | |
4470 | int | |
4471 | main () | |
4472 | { | |
4473 | iconv_t cd = iconv_open("",""); | |
4474 | iconv(cd,NULL,NULL,NULL,NULL); | |
4475 | iconv_close(cd); | |
4476 | ; | |
4477 | return 0; | |
4478 | } | |
4479 | _ACEOF | |
4480 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0743911c FM |
4481 | if { (ac_try="$ac_link" |
4482 | case "(($ac_try" in | |
4483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4484 | *) ac_try_echo=$ac_try;; | |
4485 | esac | |
1164c474 FM |
4486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4487 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 4488 | (eval "$ac_link") 2>conftest.er1 |
d6e703cc FM |
4489 | ac_status=$? |
4490 | grep -v '^ *+' conftest.er1 >conftest.err | |
4491 | rm -f conftest.er1 | |
4492 | cat conftest.err >&5 | |
1164c474 | 4493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
4494 | (exit $ac_status); } && { |
4495 | test -z "$ac_c_werror_flag" || | |
4496 | test ! -s conftest.err | |
1164c474 FM |
4497 | } && test -s conftest$ac_exeext && { |
4498 | test "$cross_compiling" = yes || | |
4499 | $as_test_x conftest$ac_exeext | |
4500 | }; then | |
d6e703cc FM |
4501 | am_cv_func_iconv=yes |
4502 | else | |
1164c474 | 4503 | $as_echo "$as_me: failed program was:" >&5 |
d6e703cc FM |
4504 | sed 's/^/| /' conftest.$ac_ext >&5 |
4505 | ||
0743911c | 4506 | |
d6e703cc | 4507 | fi |
0743911c | 4508 | |
1164c474 | 4509 | rm -rf conftest.dSYM |
0743911c | 4510 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d6e703cc FM |
4511 | conftest$ac_exeext conftest.$ac_ext |
4512 | if test "$am_cv_func_iconv" != yes; then | |
4513 | am_save_LIBS="$LIBS" | |
4514 | LIBS="$LIBS $LIBICONV" | |
4515 | cat >conftest.$ac_ext <<_ACEOF | |
4516 | /* confdefs.h. */ | |
4517 | _ACEOF | |
4518 | cat confdefs.h >>conftest.$ac_ext | |
4519 | cat >>conftest.$ac_ext <<_ACEOF | |
4520 | /* end confdefs.h. */ | |
4521 | #include <stdlib.h> | |
4522 | #include <iconv.h> | |
4523 | int | |
4524 | main () | |
4525 | { | |
4526 | iconv_t cd = iconv_open("",""); | |
4527 | iconv(cd,NULL,NULL,NULL,NULL); | |
4528 | iconv_close(cd); | |
4529 | ; | |
4530 | return 0; | |
4531 | } | |
4532 | _ACEOF | |
4533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0743911c FM |
4534 | if { (ac_try="$ac_link" |
4535 | case "(($ac_try" in | |
4536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4537 | *) ac_try_echo=$ac_try;; | |
4538 | esac | |
1164c474 FM |
4539 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4540 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 4541 | (eval "$ac_link") 2>conftest.er1 |
d6e703cc FM |
4542 | ac_status=$? |
4543 | grep -v '^ *+' conftest.er1 >conftest.err | |
4544 | rm -f conftest.er1 | |
4545 | cat conftest.err >&5 | |
1164c474 | 4546 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
4547 | (exit $ac_status); } && { |
4548 | test -z "$ac_c_werror_flag" || | |
4549 | test ! -s conftest.err | |
1164c474 FM |
4550 | } && test -s conftest$ac_exeext && { |
4551 | test "$cross_compiling" = yes || | |
4552 | $as_test_x conftest$ac_exeext | |
4553 | }; then | |
d6e703cc FM |
4554 | am_cv_lib_iconv=yes |
4555 | am_cv_func_iconv=yes | |
4556 | else | |
1164c474 | 4557 | $as_echo "$as_me: failed program was:" >&5 |
d6e703cc FM |
4558 | sed 's/^/| /' conftest.$ac_ext >&5 |
4559 | ||
0743911c | 4560 | |
d6e703cc | 4561 | fi |
0743911c | 4562 | |
1164c474 | 4563 | rm -rf conftest.dSYM |
0743911c | 4564 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d6e703cc FM |
4565 | conftest$ac_exeext conftest.$ac_ext |
4566 | LIBS="$am_save_LIBS" | |
4567 | fi | |
4568 | ||
4569 | fi | |
1164c474 FM |
4570 | { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
4571 | $as_echo "$am_cv_func_iconv" >&6; } | |
d6e703cc | 4572 | if test "$am_cv_func_iconv" = yes; then |
1164c474 FM |
4573 | { $as_echo "$as_me:$LINENO: checking for working iconv" >&5 |
4574 | $as_echo_n "checking for working iconv... " >&6; } | |
0743911c | 4575 | if test "${am_cv_func_iconv_works+set}" = set; then |
1164c474 | 4576 | $as_echo_n "(cached) " >&6 |
0743911c FM |
4577 | else |
4578 | ||
4579 | am_save_LIBS="$LIBS" | |
4580 | if test $am_cv_lib_iconv = yes; then | |
4581 | LIBS="$LIBS $LIBICONV" | |
4582 | fi | |
4583 | if test "$cross_compiling" = yes; then | |
4584 | case "$host_os" in | |
4585 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
4586 | *) am_cv_func_iconv_works="guessing yes" ;; | |
4587 | esac | |
4588 | else | |
4589 | cat >conftest.$ac_ext <<_ACEOF | |
4590 | /* confdefs.h. */ | |
4591 | _ACEOF | |
4592 | cat confdefs.h >>conftest.$ac_ext | |
4593 | cat >>conftest.$ac_ext <<_ACEOF | |
4594 | /* end confdefs.h. */ | |
4595 | ||
4596 | #include <iconv.h> | |
4597 | #include <string.h> | |
4598 | int main () | |
4599 | { | |
4600 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
4601 | returns. */ | |
4602 | { | |
4603 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
4604 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
4605 | { | |
4606 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
4607 | char buf[10]; | |
4608 | const char *inptr = input; | |
4609 | size_t inbytesleft = strlen (input); | |
4610 | char *outptr = buf; | |
4611 | size_t outbytesleft = sizeof (buf); | |
4612 | size_t res = iconv (cd_utf8_to_88591, | |
4613 | (char **) &inptr, &inbytesleft, | |
4614 | &outptr, &outbytesleft); | |
4615 | if (res == 0) | |
4616 | return 1; | |
4617 | } | |
4618 | } | |
4619 | #if 0 /* This bug could be worked around by the caller. */ | |
4620 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
4621 | { | |
4622 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
4623 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
4624 | { | |
4625 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
4626 | char buf[50]; | |
4627 | const char *inptr = input; | |
4628 | size_t inbytesleft = strlen (input); | |
4629 | char *outptr = buf; | |
4630 | size_t outbytesleft = sizeof (buf); | |
4631 | size_t res = iconv (cd_88591_to_utf8, | |
4632 | (char **) &inptr, &inbytesleft, | |
4633 | &outptr, &outbytesleft); | |
4634 | if ((int)res > 0) | |
4635 | return 1; | |
4636 | } | |
4637 | } | |
4638 | #endif | |
4639 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
4640 | provided. */ | |
4641 | if (/* Try standardized names. */ | |
4642 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
4643 | /* Try IRIX, OSF/1 names. */ | |
4644 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
4645 | /* Try AIX names. */ | |
4646 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
4647 | /* Try HP-UX names. */ | |
4648 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
4649 | return 1; | |
4650 | return 0; | |
4651 | } | |
4652 | _ACEOF | |
4653 | rm -f conftest$ac_exeext | |
4654 | if { (ac_try="$ac_link" | |
4655 | case "(($ac_try" in | |
4656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4657 | *) ac_try_echo=$ac_try;; | |
4658 | esac | |
1164c474 FM |
4659 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4660 | $as_echo "$ac_try_echo") >&5 | |
0743911c FM |
4661 | (eval "$ac_link") 2>&5 |
4662 | ac_status=$? | |
1164c474 | 4663 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
4664 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4665 | { (case "(($ac_try" in | |
4666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4667 | *) ac_try_echo=$ac_try;; | |
4668 | esac | |
1164c474 FM |
4669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4670 | $as_echo "$ac_try_echo") >&5 | |
0743911c FM |
4671 | (eval "$ac_try") 2>&5 |
4672 | ac_status=$? | |
1164c474 | 4673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
4674 | (exit $ac_status); }; }; then |
4675 | am_cv_func_iconv_works=yes | |
4676 | else | |
1164c474 FM |
4677 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4678 | $as_echo "$as_me: failed program was:" >&5 | |
0743911c FM |
4679 | sed 's/^/| /' conftest.$ac_ext >&5 |
4680 | ||
4681 | ( exit $ac_status ) | |
4682 | am_cv_func_iconv_works=no | |
4683 | fi | |
1164c474 | 4684 | rm -rf conftest.dSYM |
0743911c FM |
4685 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4686 | fi | |
4687 | ||
4688 | ||
4689 | LIBS="$am_save_LIBS" | |
4690 | ||
4691 | fi | |
1164c474 FM |
4692 | { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5 |
4693 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
0743911c FM |
4694 | case "$am_cv_func_iconv_works" in |
4695 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
4696 | *) am_func_iconv=yes ;; | |
4697 | esac | |
4698 | else | |
4699 | am_func_iconv=no am_cv_lib_iconv=no | |
4700 | fi | |
4701 | if test "$am_func_iconv" = yes; then | |
d6e703cc FM |
4702 | |
4703 | cat >>confdefs.h <<\_ACEOF | |
4704 | #define HAVE_ICONV 1 | |
4705 | _ACEOF | |
4706 | ||
4707 | fi | |
4708 | if test "$am_cv_lib_iconv" = yes; then | |
1164c474 FM |
4709 | { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
4710 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
4711 | { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5 | |
4712 | $as_echo "$LIBICONV" >&6; } | |
d6e703cc FM |
4713 | else |
4714 | CPPFLAGS="$am_save_CPPFLAGS" | |
4715 | LIBICONV= | |
4716 | LTLIBICONV= | |
4717 | fi | |
4718 | ||
4719 | ||
4720 | ||
4721 | if test "$am_cv_func_iconv" = yes; then | |
1164c474 FM |
4722 | { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
4723 | $as_echo_n "checking for iconv declaration... " >&6; } | |
d6e703cc | 4724 | if test "${am_cv_proto_iconv+set}" = set; then |
1164c474 | 4725 | $as_echo_n "(cached) " >&6 |
d6e703cc FM |
4726 | else |
4727 | ||
4728 | cat >conftest.$ac_ext <<_ACEOF | |
4729 | /* confdefs.h. */ | |
4730 | _ACEOF | |
4731 | cat confdefs.h >>conftest.$ac_ext | |
4732 | cat >>conftest.$ac_ext <<_ACEOF | |
4733 | /* end confdefs.h. */ | |
4734 | ||
4735 | #include <stdlib.h> | |
4736 | #include <iconv.h> | |
4737 | extern | |
4738 | #ifdef __cplusplus | |
4739 | "C" | |
4740 | #endif | |
4741 | #if defined(__STDC__) || defined(__cplusplus) | |
4742 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
4743 | #else | |
4744 | size_t iconv(); | |
4745 | #endif | |
4746 | ||
4747 | int | |
4748 | main () | |
4749 | { | |
4750 | ||
4751 | ; | |
4752 | return 0; | |
4753 | } | |
4754 | _ACEOF | |
4755 | rm -f conftest.$ac_objext | |
0743911c FM |
4756 | if { (ac_try="$ac_compile" |
4757 | case "(($ac_try" in | |
4758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4759 | *) ac_try_echo=$ac_try;; | |
4760 | esac | |
1164c474 FM |
4761 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4762 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 4763 | (eval "$ac_compile") 2>conftest.er1 |
d6e703cc FM |
4764 | ac_status=$? |
4765 | grep -v '^ *+' conftest.er1 >conftest.err | |
4766 | rm -f conftest.er1 | |
4767 | cat conftest.err >&5 | |
1164c474 | 4768 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
4769 | (exit $ac_status); } && { |
4770 | test -z "$ac_c_werror_flag" || | |
4771 | test ! -s conftest.err | |
4772 | } && test -s conftest.$ac_objext; then | |
d6e703cc FM |
4773 | am_cv_proto_iconv_arg1="" |
4774 | else | |
1164c474 | 4775 | $as_echo "$as_me: failed program was:" >&5 |
d6e703cc FM |
4776 | sed 's/^/| /' conftest.$ac_ext >&5 |
4777 | ||
0743911c | 4778 | am_cv_proto_iconv_arg1="const" |
d6e703cc | 4779 | fi |
0743911c FM |
4780 | |
4781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc FM |
4782 | 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);" |
4783 | fi | |
4784 | ||
4785 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
1164c474 | 4786 | { $as_echo "$as_me:$LINENO: result: ${ac_t:- |
d6e703cc | 4787 | }$am_cv_proto_iconv" >&5 |
1164c474 | 4788 | $as_echo "${ac_t:- |
0743911c | 4789 | }$am_cv_proto_iconv" >&6; } |
d6e703cc FM |
4790 | |
4791 | cat >>confdefs.h <<_ACEOF | |
4792 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
4793 | _ACEOF | |
4794 | ||
4795 | fi | |
4796 | ||
4797 | if test -n "$LIBICONV" ; then | |
4798 | LIBS="$LIBS $LIBICONV" | |
4799 | fi | |
4800 | ||
25697a35 GS |
4801 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4802 | ||
4803 | ||
4804 | ||
4805 | ||
4806 | ||
4807 | ||
4808 | ||
4809 | ||
4810 | ||
d6e703cc FM |
4811 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4812 | inttypes.h stdint.h unistd.h | |
4813 | do | |
1164c474 FM |
4814 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4815 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4816 | $as_echo_n "checking for $ac_header... " >&6; } | |
0743911c | 4817 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1164c474 | 4818 | $as_echo_n "(cached) " >&6 |
d6e703cc FM |
4819 | else |
4820 | cat >conftest.$ac_ext <<_ACEOF | |
4821 | /* confdefs.h. */ | |
4822 | _ACEOF | |
4823 | cat confdefs.h >>conftest.$ac_ext | |
4824 | cat >>conftest.$ac_ext <<_ACEOF | |
4825 | /* end confdefs.h. */ | |
4826 | $ac_includes_default | |
4827 | ||
4828 | #include <$ac_header> | |
4829 | _ACEOF | |
4830 | rm -f conftest.$ac_objext | |
0743911c FM |
4831 | if { (ac_try="$ac_compile" |
4832 | case "(($ac_try" in | |
4833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4834 | *) ac_try_echo=$ac_try;; | |
4835 | esac | |
1164c474 FM |
4836 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4837 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 4838 | (eval "$ac_compile") 2>conftest.er1 |
d6e703cc FM |
4839 | ac_status=$? |
4840 | grep -v '^ *+' conftest.er1 >conftest.err | |
4841 | rm -f conftest.er1 | |
4842 | cat conftest.err >&5 | |
1164c474 | 4843 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
4844 | (exit $ac_status); } && { |
4845 | test -z "$ac_c_werror_flag" || | |
4846 | test ! -s conftest.err | |
4847 | } && test -s conftest.$ac_objext; then | |
d6e703cc FM |
4848 | eval "$as_ac_Header=yes" |
4849 | else | |
1164c474 | 4850 | $as_echo "$as_me: failed program was:" >&5 |
d6e703cc FM |
4851 | sed 's/^/| /' conftest.$ac_ext >&5 |
4852 | ||
0743911c | 4853 | eval "$as_ac_Header=no" |
d6e703cc | 4854 | fi |
0743911c FM |
4855 | |
4856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc | 4857 | fi |
1164c474 FM |
4858 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4859 | $as_echo "$as_val"'` | |
4860 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4861 | $as_echo "$ac_res" >&6; } | |
4862 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4863 | $as_echo "$as_val"'` | |
4864 | if test "x$as_val" = x""yes; then | |
d6e703cc | 4865 | cat >>confdefs.h <<_ACEOF |
1164c474 | 4866 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d6e703cc FM |
4867 | _ACEOF |
4868 | ||
4869 | fi | |
4870 | ||
4871 | done | |
4872 | ||
4873 | ||
4874 | ||
4875 | ||
4876 | ||
4877 | ||
4878 | ||
4879 | ||
4880 | ||
4881 | ||
4882 | ||
4883 | ||
4884 | ||
4885 | ||
4886 | ||
4887 | ||
4888 | ||
4889 | ||
4890 | ||
4891 | ||
4892 | ||
4893 | ||
4894 | ||
4895 | ||
4896 | ||
0743911c | 4897 | |
d2fe0c32 | 4898 | |
2357ef77 | 4899 | |
4af2f8ff | 4900 | |
a1de61fe | 4901 | |
e6414a9d | 4902 | |
d6e703cc FM |
4903 | |
4904 | ||
4905 | for ac_header in stdio.h stdlib.h string.h strings.h sys/time.h time.h unistd.h sys/dirent.h \ | |
e6414a9d FM |
4906 | dirent.h sys/socket.h netdb.h arpa/inet.h sys/types.h netinet/in.h sys/stat.h \ |
4907 | ctype.h gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h iconv.h \ | |
4908 | errno.h sys/resource.h sys/wait.h stdarg.h inttypes.h limits.h locale.h \ | |
4909 | execinfo.h | |
d6e703cc | 4910 | do |
1164c474 | 4911 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
0743911c | 4912 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1164c474 FM |
4913 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4914 | $as_echo_n "checking for $ac_header... " >&6; } | |
0743911c | 4915 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1164c474 | 4916 | $as_echo_n "(cached) " >&6 |
d6e703cc | 4917 | fi |
1164c474 FM |
4918 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4919 | $as_echo "$as_val"'` | |
4920 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4921 | $as_echo "$ac_res" >&6; } | |
d6e703cc FM |
4922 | else |
4923 | # Is the header compilable? | |
1164c474 FM |
4924 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4925 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d6e703cc FM |
4926 | cat >conftest.$ac_ext <<_ACEOF |
4927 | /* confdefs.h. */ | |
4928 | _ACEOF | |
4929 | cat confdefs.h >>conftest.$ac_ext | |
4930 | cat >>conftest.$ac_ext <<_ACEOF | |
4931 | /* end confdefs.h. */ | |
4932 | $ac_includes_default | |
4933 | #include <$ac_header> | |
4934 | _ACEOF | |
4935 | rm -f conftest.$ac_objext | |
0743911c FM |
4936 | if { (ac_try="$ac_compile" |
4937 | case "(($ac_try" in | |
4938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4939 | *) ac_try_echo=$ac_try;; | |
4940 | esac | |
1164c474 FM |
4941 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4942 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 4943 | (eval "$ac_compile") 2>conftest.er1 |
d6e703cc FM |
4944 | ac_status=$? |
4945 | grep -v '^ *+' conftest.er1 >conftest.err | |
4946 | rm -f conftest.er1 | |
4947 | cat conftest.err >&5 | |
1164c474 | 4948 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
4949 | (exit $ac_status); } && { |
4950 | test -z "$ac_c_werror_flag" || | |
4951 | test ! -s conftest.err | |
4952 | } && test -s conftest.$ac_objext; then | |
d6e703cc FM |
4953 | ac_header_compiler=yes |
4954 | else | |
1164c474 | 4955 | $as_echo "$as_me: failed program was:" >&5 |
d6e703cc FM |
4956 | sed 's/^/| /' conftest.$ac_ext >&5 |
4957 | ||
0743911c | 4958 | ac_header_compiler=no |
d6e703cc | 4959 | fi |
0743911c FM |
4960 | |
4961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1164c474 FM |
4962 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4963 | $as_echo "$ac_header_compiler" >&6; } | |
d6e703cc FM |
4964 | |
4965 | # Is the header present? | |
1164c474 FM |
4966 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4967 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d6e703cc FM |
4968 | cat >conftest.$ac_ext <<_ACEOF |
4969 | /* confdefs.h. */ | |
4970 | _ACEOF | |
4971 | cat confdefs.h >>conftest.$ac_ext | |
4972 | cat >>conftest.$ac_ext <<_ACEOF | |
4973 | /* end confdefs.h. */ | |
4974 | #include <$ac_header> | |
4975 | _ACEOF | |
0743911c FM |
4976 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4977 | case "(($ac_try" in | |
4978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4979 | *) ac_try_echo=$ac_try;; | |
4980 | esac | |
1164c474 FM |
4981 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4982 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 4983 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d6e703cc FM |
4984 | ac_status=$? |
4985 | grep -v '^ *+' conftest.er1 >conftest.err | |
4986 | rm -f conftest.er1 | |
4987 | cat conftest.err >&5 | |
1164c474 | 4988 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
4989 | (exit $ac_status); } >/dev/null && { |
4990 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4991 | test ! -s conftest.err | |
4992 | }; then | |
d6e703cc FM |
4993 | ac_header_preproc=yes |
4994 | else | |
1164c474 | 4995 | $as_echo "$as_me: failed program was:" >&5 |
d6e703cc FM |
4996 | sed 's/^/| /' conftest.$ac_ext >&5 |
4997 | ||
4998 | ac_header_preproc=no | |
4999 | fi | |
0743911c | 5000 | |
d6e703cc | 5001 | rm -f conftest.err conftest.$ac_ext |
1164c474 FM |
5002 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5003 | $as_echo "$ac_header_preproc" >&6; } | |
d6e703cc FM |
5004 | |
5005 | # So? What about this header? | |
5006 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5007 | yes:no: ) | |
1164c474 FM |
5008 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5009 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5010 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5011 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d6e703cc FM |
5012 | ac_header_preproc=yes |
5013 | ;; | |
5014 | no:yes:* ) | |
1164c474 FM |
5015 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5016 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5017 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5018 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5020 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5022 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5024 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5026 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
0743911c | 5027 | |
d6e703cc FM |
5028 | ;; |
5029 | esac | |
1164c474 FM |
5030 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5031 | $as_echo_n "checking for $ac_header... " >&6; } | |
0743911c | 5032 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1164c474 | 5033 | $as_echo_n "(cached) " >&6 |
d6e703cc FM |
5034 | else |
5035 | eval "$as_ac_Header=\$ac_header_preproc" | |
5036 | fi | |
1164c474 FM |
5037 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5038 | $as_echo "$as_val"'` | |
5039 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5040 | $as_echo "$ac_res" >&6; } | |
d6e703cc FM |
5041 | |
5042 | fi | |
1164c474 FM |
5043 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5044 | $as_echo "$as_val"'` | |
5045 | if test "x$as_val" = x""yes; then | |
d6e703cc | 5046 | cat >>confdefs.h <<_ACEOF |
1164c474 | 5047 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d6e703cc FM |
5048 | _ACEOF |
5049 | ||
5050 | fi | |
5051 | ||
5052 | done | |
5053 | ||
5054 | ||
1164c474 FM |
5055 | { $as_echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5 |
5056 | $as_echo_n "checking for gdImagePng in -lgd... " >&6; } | |
d6e703cc | 5057 | if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then |
1164c474 | 5058 | $as_echo_n "(cached) " >&6 |
d6e703cc FM |
5059 | else |
5060 | ac_check_lib_save_LIBS=$LIBS | |
5061 | LIBS="-lgd $LIBS" | |
5062 | cat >conftest.$ac_ext <<_ACEOF | |
5063 | /* confdefs.h. */ | |
5064 | _ACEOF | |
5065 | cat confdefs.h >>conftest.$ac_ext | |
5066 | cat >>conftest.$ac_ext <<_ACEOF | |
5067 | /* end confdefs.h. */ | |
5068 | ||
0743911c FM |
5069 | /* Override any GCC internal prototype to avoid an error. |
5070 | Use char because int might match the return type of a GCC | |
5071 | builtin and then its argument prototype would still apply. */ | |
d6e703cc FM |
5072 | #ifdef __cplusplus |
5073 | extern "C" | |
5074 | #endif | |
d6e703cc FM |
5075 | char gdImagePng (); |
5076 | int | |
5077 | main () | |
5078 | { | |
0743911c | 5079 | return gdImagePng (); |
d6e703cc FM |
5080 | ; |
5081 | return 0; | |
5082 | } | |
5083 | _ACEOF | |
5084 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0743911c FM |
5085 | if { (ac_try="$ac_link" |
5086 | case "(($ac_try" in | |
5087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5088 | *) ac_try_echo=$ac_try;; | |
5089 | esac | |
1164c474 FM |
5090 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5091 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 5092 | (eval "$ac_link") 2>conftest.er1 |
d6e703cc FM |
5093 | ac_status=$? |
5094 | grep -v '^ *+' conftest.er1 >conftest.err | |
5095 | rm -f conftest.er1 | |
5096 | cat conftest.err >&5 | |
1164c474 | 5097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
5098 | (exit $ac_status); } && { |
5099 | test -z "$ac_c_werror_flag" || | |
5100 | test ! -s conftest.err | |
1164c474 FM |
5101 | } && test -s conftest$ac_exeext && { |
5102 | test "$cross_compiling" = yes || | |
5103 | $as_test_x conftest$ac_exeext | |
5104 | }; then | |
d6e703cc FM |
5105 | ac_cv_lib_gd_gdImagePng=yes |
5106 | else | |
1164c474 | 5107 | $as_echo "$as_me: failed program was:" >&5 |
d6e703cc FM |
5108 | sed 's/^/| /' conftest.$ac_ext >&5 |
5109 | ||
0743911c | 5110 | ac_cv_lib_gd_gdImagePng=no |
d6e703cc | 5111 | fi |
0743911c | 5112 | |
1164c474 | 5113 | rm -rf conftest.dSYM |
0743911c | 5114 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d6e703cc FM |
5115 | conftest$ac_exeext conftest.$ac_ext |
5116 | LIBS=$ac_check_lib_save_LIBS | |
5117 | fi | |
1164c474 FM |
5118 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5 |
5119 | $as_echo "$ac_cv_lib_gd_gdImagePng" >&6; } | |
5120 | if test "x$ac_cv_lib_gd_gdImagePng" = x""yes; then | |
d6e703cc FM |
5121 | LIBS="-lgd ${LIBS}"; HAVE_GD="yes" |
5122 | else | |
5123 | HAVE_GD="" | |
5124 | fi | |
5125 | ||
5126 | ||
1164c474 FM |
5127 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5128 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
d6e703cc | 5129 | if test "${ac_cv_c_const+set}" = set; then |
1164c474 | 5130 | $as_echo_n "(cached) " >&6 |
25697a35 GS |
5131 | else |
5132 | cat >conftest.$ac_ext <<_ACEOF | |
5133 | /* confdefs.h. */ | |
5134 | _ACEOF | |
5135 | cat confdefs.h >>conftest.$ac_ext | |
5136 | cat >>conftest.$ac_ext <<_ACEOF | |
5137 | /* end confdefs.h. */ | |
25697a35 | 5138 | |
d6e703cc FM |
5139 | int |
5140 | main () | |
5141 | { | |
5142 | /* FIXME: Include the comments suggested by Paul. */ | |
5143 | #ifndef __cplusplus | |
5144 | /* Ultrix mips cc rejects this. */ | |
5145 | typedef int charset[2]; | |
0743911c | 5146 | const charset cs; |
d6e703cc | 5147 | /* SunOS 4.1.1 cc rejects this. */ |
0743911c FM |
5148 | char const *const *pcpcc; |
5149 | char **ppc; | |
d6e703cc FM |
5150 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5151 | struct point {int x, y;}; | |
5152 | static struct point const zero = {0,0}; | |
5153 | /* AIX XL C 1.02.0.0 rejects this. | |
5154 | It does not let you subtract one const X* pointer from another in | |
5155 | an arm of an if-expression whose if-part is not a constant | |
5156 | expression */ | |
5157 | const char *g = "string"; | |
0743911c | 5158 | pcpcc = &g + (g ? g-g : 0); |
d6e703cc | 5159 | /* HPUX 7.0 cc rejects these. */ |
0743911c FM |
5160 | ++pcpcc; |
5161 | ppc = (char**) pcpcc; | |
5162 | pcpcc = (char const *const *) ppc; | |
d6e703cc FM |
5163 | { /* SCO 3.2v4 cc rejects this. */ |
5164 | char *t; | |
5165 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5166 | ||
5167 | *t++ = 0; | |
0743911c | 5168 | if (s) return 0; |
d6e703cc FM |
5169 | } |
5170 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5171 | int x[] = {25, 17}; | |
5172 | const int *foo = &x[0]; | |
5173 | ++foo; | |
5174 | } | |
5175 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5176 | typedef const int *iptr; | |
5177 | iptr p = 0; | |
5178 | ++p; | |
5179 | } | |
5180 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5181 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5182 | struct s { int j; const int *ap[3]; }; | |
5183 | struct s *b; b->j = 5; | |
5184 | } | |
5185 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5186 | const int foo = 10; | |
0743911c | 5187 | if (!foo) return 0; |
d6e703cc | 5188 | } |
0743911c | 5189 | return !cs[0] && !zero.x; |
d6e703cc FM |
5190 | #endif |
5191 | ||
5192 | ; | |
5193 | return 0; | |
5194 | } | |
25697a35 GS |
5195 | _ACEOF |
5196 | rm -f conftest.$ac_objext | |
0743911c FM |
5197 | if { (ac_try="$ac_compile" |
5198 | case "(($ac_try" in | |
5199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5200 | *) ac_try_echo=$ac_try;; | |
5201 | esac | |
1164c474 FM |
5202 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5203 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 5204 | (eval "$ac_compile") 2>conftest.er1 |
25697a35 GS |
5205 | ac_status=$? |
5206 | grep -v '^ *+' conftest.er1 >conftest.err | |
5207 | rm -f conftest.er1 | |
5208 | cat conftest.err >&5 | |
1164c474 | 5209 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
5210 | (exit $ac_status); } && { |
5211 | test -z "$ac_c_werror_flag" || | |
5212 | test ! -s conftest.err | |
5213 | } && test -s conftest.$ac_objext; then | |
d6e703cc | 5214 | ac_cv_c_const=yes |
25697a35 | 5215 | else |
1164c474 | 5216 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
5217 | sed 's/^/| /' conftest.$ac_ext >&5 |
5218 | ||
0743911c | 5219 | ac_cv_c_const=no |
25697a35 | 5220 | fi |
0743911c FM |
5221 | |
5222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25697a35 | 5223 | fi |
1164c474 FM |
5224 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5225 | $as_echo "$ac_cv_c_const" >&6; } | |
d6e703cc FM |
5226 | if test $ac_cv_c_const = no; then |
5227 | ||
5228 | cat >>confdefs.h <<\_ACEOF | |
1164c474 | 5229 | #define const /**/ |
25697a35 GS |
5230 | _ACEOF |
5231 | ||
5232 | fi | |
5233 | ||
1164c474 FM |
5234 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5235 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
d6e703cc | 5236 | if test "${ac_cv_struct_tm+set}" = set; then |
1164c474 | 5237 | $as_echo_n "(cached) " >&6 |
25697a35 | 5238 | else |
d6e703cc | 5239 | cat >conftest.$ac_ext <<_ACEOF |
25697a35 GS |
5240 | /* confdefs.h. */ |
5241 | _ACEOF | |
5242 | cat confdefs.h >>conftest.$ac_ext | |
5243 | cat >>conftest.$ac_ext <<_ACEOF | |
5244 | /* end confdefs.h. */ | |
d6e703cc FM |
5245 | #include <sys/types.h> |
5246 | #include <time.h> | |
5247 | ||
5248 | int | |
5249 | main () | |
5250 | { | |
0743911c FM |
5251 | struct tm tm; |
5252 | int *p = &tm.tm_sec; | |
1164c474 | 5253 | return !p; |
d6e703cc FM |
5254 | ; |
5255 | return 0; | |
5256 | } | |
25697a35 GS |
5257 | _ACEOF |
5258 | rm -f conftest.$ac_objext | |
0743911c FM |
5259 | if { (ac_try="$ac_compile" |
5260 | case "(($ac_try" in | |
5261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5262 | *) ac_try_echo=$ac_try;; | |
5263 | esac | |
1164c474 FM |
5264 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5265 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 5266 | (eval "$ac_compile") 2>conftest.er1 |
25697a35 GS |
5267 | ac_status=$? |
5268 | grep -v '^ *+' conftest.er1 >conftest.err | |
5269 | rm -f conftest.er1 | |
5270 | cat conftest.err >&5 | |
1164c474 | 5271 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
5272 | (exit $ac_status); } && { |
5273 | test -z "$ac_c_werror_flag" || | |
5274 | test ! -s conftest.err | |
5275 | } && test -s conftest.$ac_objext; then | |
d6e703cc | 5276 | ac_cv_struct_tm=time.h |
25697a35 | 5277 | else |
1164c474 | 5278 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
5279 | sed 's/^/| /' conftest.$ac_ext >&5 |
5280 | ||
0743911c | 5281 | ac_cv_struct_tm=sys/time.h |
25697a35 | 5282 | fi |
0743911c FM |
5283 | |
5284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc | 5285 | fi |
1164c474 FM |
5286 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
5287 | $as_echo "$ac_cv_struct_tm" >&6; } | |
d6e703cc | 5288 | if test $ac_cv_struct_tm = sys/time.h; then |
25697a35 | 5289 | |
d6e703cc FM |
5290 | cat >>confdefs.h <<\_ACEOF |
5291 | #define TM_IN_SYS_TIME 1 | |
5292 | _ACEOF | |
5293 | ||
5294 | fi | |
5295 | ||
5296 | ||
32e71fa4 FM |
5297 | # Check whether --enable-largefile was given. |
5298 | if test "${enable_largefile+set}" = set; then | |
5299 | enableval=$enable_largefile; | |
5300 | fi | |
5301 | ||
5302 | if test "$enable_largefile" != no; then | |
5303 | ||
1164c474 FM |
5304 | { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
5305 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
32e71fa4 | 5306 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
1164c474 | 5307 | $as_echo_n "(cached) " >&6 |
32e71fa4 FM |
5308 | else |
5309 | ac_cv_sys_largefile_CC=no | |
5310 | if test "$GCC" != yes; then | |
5311 | ac_save_CC=$CC | |
5312 | while :; do | |
5313 | # IRIX 6.2 and later do not support large files by default, | |
5314 | # so use the C compiler's -n32 option if that helps. | |
5315 | cat >conftest.$ac_ext <<_ACEOF | |
5316 | /* confdefs.h. */ | |
5317 | _ACEOF | |
5318 | cat confdefs.h >>conftest.$ac_ext | |
5319 | cat >>conftest.$ac_ext <<_ACEOF | |
5320 | /* end confdefs.h. */ | |
5321 | #include <sys/types.h> | |
5322 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5323 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5324 | since some C++ compilers masquerading as C compilers | |
5325 | incorrectly reject 9223372036854775807. */ | |
5326 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5327 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5328 | && LARGE_OFF_T % 2147483647 == 1) | |
5329 | ? 1 : -1]; | |
5330 | int | |
5331 | main () | |
5332 | { | |
5333 | ||
5334 | ; | |
5335 | return 0; | |
5336 | } | |
5337 | _ACEOF | |
5338 | rm -f conftest.$ac_objext | |
5339 | if { (ac_try="$ac_compile" | |
5340 | case "(($ac_try" in | |
5341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5342 | *) ac_try_echo=$ac_try;; | |
5343 | esac | |
1164c474 FM |
5344 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5345 | $as_echo "$ac_try_echo") >&5 | |
32e71fa4 FM |
5346 | (eval "$ac_compile") 2>conftest.er1 |
5347 | ac_status=$? | |
5348 | grep -v '^ *+' conftest.er1 >conftest.err | |
5349 | rm -f conftest.er1 | |
5350 | cat conftest.err >&5 | |
1164c474 | 5351 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32e71fa4 FM |
5352 | (exit $ac_status); } && { |
5353 | test -z "$ac_c_werror_flag" || | |
5354 | test ! -s conftest.err | |
5355 | } && test -s conftest.$ac_objext; then | |
5356 | break | |
5357 | else | |
1164c474 | 5358 | $as_echo "$as_me: failed program was:" >&5 |
32e71fa4 FM |
5359 | sed 's/^/| /' conftest.$ac_ext >&5 |
5360 | ||
5361 | ||
5362 | fi | |
5363 | ||
5364 | rm -f core conftest.err conftest.$ac_objext | |
5365 | CC="$CC -n32" | |
5366 | rm -f conftest.$ac_objext | |
5367 | if { (ac_try="$ac_compile" | |
5368 | case "(($ac_try" in | |
5369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5370 | *) ac_try_echo=$ac_try;; | |
5371 | esac | |
1164c474 FM |
5372 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5373 | $as_echo "$ac_try_echo") >&5 | |
32e71fa4 FM |
5374 | (eval "$ac_compile") 2>conftest.er1 |
5375 | ac_status=$? | |
5376 | grep -v '^ *+' conftest.er1 >conftest.err | |
5377 | rm -f conftest.er1 | |
5378 | cat conftest.err >&5 | |
1164c474 | 5379 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32e71fa4 FM |
5380 | (exit $ac_status); } && { |
5381 | test -z "$ac_c_werror_flag" || | |
5382 | test ! -s conftest.err | |
5383 | } && test -s conftest.$ac_objext; then | |
5384 | ac_cv_sys_largefile_CC=' -n32'; break | |
5385 | else | |
1164c474 | 5386 | $as_echo "$as_me: failed program was:" >&5 |
32e71fa4 FM |
5387 | sed 's/^/| /' conftest.$ac_ext >&5 |
5388 | ||
5389 | ||
5390 | fi | |
5391 | ||
5392 | rm -f core conftest.err conftest.$ac_objext | |
5393 | break | |
5394 | done | |
5395 | CC=$ac_save_CC | |
5396 | rm -f conftest.$ac_ext | |
5397 | fi | |
5398 | fi | |
1164c474 FM |
5399 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
5400 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
32e71fa4 FM |
5401 | if test "$ac_cv_sys_largefile_CC" != no; then |
5402 | CC=$CC$ac_cv_sys_largefile_CC | |
5403 | fi | |
5404 | ||
1164c474 FM |
5405 | { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
5406 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
32e71fa4 | 5407 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
1164c474 | 5408 | $as_echo_n "(cached) " >&6 |
32e71fa4 FM |
5409 | else |
5410 | while :; do | |
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 <sys/types.h> | |
5418 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5419 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5420 | since some C++ compilers masquerading as C compilers | |
5421 | incorrectly reject 9223372036854775807. */ | |
5422 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5423 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5424 | && LARGE_OFF_T % 2147483647 == 1) | |
5425 | ? 1 : -1]; | |
5426 | int | |
5427 | main () | |
5428 | { | |
5429 | ||
5430 | ; | |
5431 | return 0; | |
5432 | } | |
5433 | _ACEOF | |
5434 | rm -f conftest.$ac_objext | |
5435 | if { (ac_try="$ac_compile" | |
5436 | case "(($ac_try" in | |
5437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5438 | *) ac_try_echo=$ac_try;; | |
5439 | esac | |
1164c474 FM |
5440 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5441 | $as_echo "$ac_try_echo") >&5 | |
32e71fa4 FM |
5442 | (eval "$ac_compile") 2>conftest.er1 |
5443 | ac_status=$? | |
5444 | grep -v '^ *+' conftest.er1 >conftest.err | |
5445 | rm -f conftest.er1 | |
5446 | cat conftest.err >&5 | |
1164c474 | 5447 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32e71fa4 FM |
5448 | (exit $ac_status); } && { |
5449 | test -z "$ac_c_werror_flag" || | |
5450 | test ! -s conftest.err | |
5451 | } && test -s conftest.$ac_objext; then | |
5452 | ac_cv_sys_file_offset_bits=no; break | |
5453 | else | |
1164c474 | 5454 | $as_echo "$as_me: failed program was:" >&5 |
32e71fa4 FM |
5455 | sed 's/^/| /' conftest.$ac_ext >&5 |
5456 | ||
5457 | ||
5458 | fi | |
5459 | ||
5460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5461 | cat >conftest.$ac_ext <<_ACEOF | |
5462 | /* confdefs.h. */ | |
5463 | _ACEOF | |
5464 | cat confdefs.h >>conftest.$ac_ext | |
5465 | cat >>conftest.$ac_ext <<_ACEOF | |
5466 | /* end confdefs.h. */ | |
5467 | #define _FILE_OFFSET_BITS 64 | |
5468 | #include <sys/types.h> | |
5469 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5470 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5471 | since some C++ compilers masquerading as C compilers | |
5472 | incorrectly reject 9223372036854775807. */ | |
5473 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5474 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5475 | && LARGE_OFF_T % 2147483647 == 1) | |
5476 | ? 1 : -1]; | |
5477 | int | |
5478 | main () | |
5479 | { | |
5480 | ||
5481 | ; | |
5482 | return 0; | |
5483 | } | |
5484 | _ACEOF | |
5485 | rm -f conftest.$ac_objext | |
5486 | if { (ac_try="$ac_compile" | |
5487 | case "(($ac_try" in | |
5488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5489 | *) ac_try_echo=$ac_try;; | |
5490 | esac | |
1164c474 FM |
5491 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5492 | $as_echo "$ac_try_echo") >&5 | |
32e71fa4 FM |
5493 | (eval "$ac_compile") 2>conftest.er1 |
5494 | ac_status=$? | |
5495 | grep -v '^ *+' conftest.er1 >conftest.err | |
5496 | rm -f conftest.er1 | |
5497 | cat conftest.err >&5 | |
1164c474 | 5498 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32e71fa4 FM |
5499 | (exit $ac_status); } && { |
5500 | test -z "$ac_c_werror_flag" || | |
5501 | test ! -s conftest.err | |
5502 | } && test -s conftest.$ac_objext; then | |
5503 | ac_cv_sys_file_offset_bits=64; break | |
5504 | else | |
1164c474 | 5505 | $as_echo "$as_me: failed program was:" >&5 |
32e71fa4 FM |
5506 | sed 's/^/| /' conftest.$ac_ext >&5 |
5507 | ||
5508 | ||
5509 | fi | |
5510 | ||
5511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5512 | ac_cv_sys_file_offset_bits=unknown | |
5513 | break | |
5514 | done | |
5515 | fi | |
1164c474 FM |
5516 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
5517 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
32e71fa4 FM |
5518 | case $ac_cv_sys_file_offset_bits in #( |
5519 | no | unknown) ;; | |
5520 | *) | |
5521 | cat >>confdefs.h <<_ACEOF | |
5522 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
5523 | _ACEOF | |
5524 | ;; | |
5525 | esac | |
1164c474 | 5526 | rm -rf conftest* |
32e71fa4 | 5527 | if test $ac_cv_sys_file_offset_bits = unknown; then |
1164c474 FM |
5528 | { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
5529 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
32e71fa4 | 5530 | if test "${ac_cv_sys_large_files+set}" = set; then |
1164c474 | 5531 | $as_echo_n "(cached) " >&6 |
32e71fa4 FM |
5532 | else |
5533 | while :; do | |
5534 | cat >conftest.$ac_ext <<_ACEOF | |
5535 | /* confdefs.h. */ | |
5536 | _ACEOF | |
5537 | cat confdefs.h >>conftest.$ac_ext | |
5538 | cat >>conftest.$ac_ext <<_ACEOF | |
5539 | /* end confdefs.h. */ | |
5540 | #include <sys/types.h> | |
5541 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5542 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5543 | since some C++ compilers masquerading as C compilers | |
5544 | incorrectly reject 9223372036854775807. */ | |
5545 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5546 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5547 | && LARGE_OFF_T % 2147483647 == 1) | |
5548 | ? 1 : -1]; | |
5549 | int | |
5550 | main () | |
5551 | { | |
5552 | ||
5553 | ; | |
5554 | return 0; | |
5555 | } | |
5556 | _ACEOF | |
5557 | rm -f conftest.$ac_objext | |
5558 | if { (ac_try="$ac_compile" | |
5559 | case "(($ac_try" in | |
5560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5561 | *) ac_try_echo=$ac_try;; | |
5562 | esac | |
1164c474 FM |
5563 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5564 | $as_echo "$ac_try_echo") >&5 | |
32e71fa4 FM |
5565 | (eval "$ac_compile") 2>conftest.er1 |
5566 | ac_status=$? | |
5567 | grep -v '^ *+' conftest.er1 >conftest.err | |
5568 | rm -f conftest.er1 | |
5569 | cat conftest.err >&5 | |
1164c474 | 5570 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32e71fa4 FM |
5571 | (exit $ac_status); } && { |
5572 | test -z "$ac_c_werror_flag" || | |
5573 | test ! -s conftest.err | |
5574 | } && test -s conftest.$ac_objext; then | |
5575 | ac_cv_sys_large_files=no; break | |
5576 | else | |
1164c474 | 5577 | $as_echo "$as_me: failed program was:" >&5 |
32e71fa4 FM |
5578 | sed 's/^/| /' conftest.$ac_ext >&5 |
5579 | ||
5580 | ||
5581 | fi | |
5582 | ||
5583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
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 | #define _LARGE_FILES 1 | |
5591 | #include <sys/types.h> | |
5592 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5593 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5594 | since some C++ compilers masquerading as C compilers | |
5595 | incorrectly reject 9223372036854775807. */ | |
5596 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5597 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5598 | && LARGE_OFF_T % 2147483647 == 1) | |
5599 | ? 1 : -1]; | |
5600 | int | |
5601 | main () | |
5602 | { | |
5603 | ||
5604 | ; | |
5605 | return 0; | |
5606 | } | |
5607 | _ACEOF | |
5608 | rm -f conftest.$ac_objext | |
5609 | if { (ac_try="$ac_compile" | |
5610 | case "(($ac_try" in | |
5611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5612 | *) ac_try_echo=$ac_try;; | |
5613 | esac | |
1164c474 FM |
5614 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5615 | $as_echo "$ac_try_echo") >&5 | |
32e71fa4 FM |
5616 | (eval "$ac_compile") 2>conftest.er1 |
5617 | ac_status=$? | |
5618 | grep -v '^ *+' conftest.er1 >conftest.err | |
5619 | rm -f conftest.er1 | |
5620 | cat conftest.err >&5 | |
1164c474 | 5621 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32e71fa4 FM |
5622 | (exit $ac_status); } && { |
5623 | test -z "$ac_c_werror_flag" || | |
5624 | test ! -s conftest.err | |
5625 | } && test -s conftest.$ac_objext; then | |
5626 | ac_cv_sys_large_files=1; break | |
5627 | else | |
1164c474 | 5628 | $as_echo "$as_me: failed program was:" >&5 |
32e71fa4 FM |
5629 | sed 's/^/| /' conftest.$ac_ext >&5 |
5630 | ||
5631 | ||
5632 | fi | |
5633 | ||
5634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5635 | ac_cv_sys_large_files=unknown | |
5636 | break | |
5637 | done | |
5638 | fi | |
1164c474 FM |
5639 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
5640 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
32e71fa4 FM |
5641 | case $ac_cv_sys_large_files in #( |
5642 | no | unknown) ;; | |
5643 | *) | |
5644 | cat >>confdefs.h <<_ACEOF | |
5645 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5646 | _ACEOF | |
5647 | ;; | |
5648 | esac | |
1164c474 | 5649 | rm -rf conftest* |
32e71fa4 FM |
5650 | fi |
5651 | fi | |
5652 | ||
5653 | ||
5654 | # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE | |
5655 | # needs to be defined for it | |
1164c474 FM |
5656 | { $as_echo "$as_me:$LINENO: checking for fopen64" >&5 |
5657 | $as_echo_n "checking for fopen64... " >&6; } | |
32e71fa4 | 5658 | if test "${bu_cv_have_fopen64+set}" = set; then |
1164c474 | 5659 | $as_echo_n "(cached) " >&6 |
32e71fa4 | 5660 | else |
a61fe05c FM |
5661 | noerror_CFLAGS=$CFLAGS |
5662 | CFLAGS="$CFLAGS -Werror" | |
5663 | cat >conftest.$ac_ext <<_ACEOF | |
32e71fa4 FM |
5664 | /* confdefs.h. */ |
5665 | _ACEOF | |
5666 | cat confdefs.h >>conftest.$ac_ext | |
5667 | cat >>conftest.$ac_ext <<_ACEOF | |
5668 | /* end confdefs.h. */ | |
5669 | #include <stdio.h> | |
5670 | int | |
5671 | main () | |
5672 | { | |
a1de61fe | 5673 | FILE *f = fopen64 ("/tmp/foo","r");fclose(f); |
32e71fa4 FM |
5674 | ; |
5675 | return 0; | |
5676 | } | |
5677 | _ACEOF | |
5678 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5679 | if { (ac_try="$ac_link" | |
5680 | case "(($ac_try" in | |
5681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5682 | *) ac_try_echo=$ac_try;; | |
5683 | esac | |
1164c474 FM |
5684 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5685 | $as_echo "$ac_try_echo") >&5 | |
32e71fa4 FM |
5686 | (eval "$ac_link") 2>conftest.er1 |
5687 | ac_status=$? | |
5688 | grep -v '^ *+' conftest.er1 >conftest.err | |
5689 | rm -f conftest.er1 | |
5690 | cat conftest.err >&5 | |
1164c474 | 5691 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32e71fa4 FM |
5692 | (exit $ac_status); } && { |
5693 | test -z "$ac_c_werror_flag" || | |
5694 | test ! -s conftest.err | |
1164c474 FM |
5695 | } && test -s conftest$ac_exeext && { |
5696 | test "$cross_compiling" = yes || | |
5697 | $as_test_x conftest$ac_exeext | |
5698 | }; then | |
32e71fa4 FM |
5699 | bu_cv_have_fopen64=yes |
5700 | else | |
1164c474 | 5701 | $as_echo "$as_me: failed program was:" >&5 |
32e71fa4 FM |
5702 | sed 's/^/| /' conftest.$ac_ext >&5 |
5703 | ||
a61fe05c | 5704 | CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE" |
32e71fa4 FM |
5705 | cat >conftest.$ac_ext <<_ACEOF |
5706 | /* confdefs.h. */ | |
5707 | _ACEOF | |
5708 | cat confdefs.h >>conftest.$ac_ext | |
5709 | cat >>conftest.$ac_ext <<_ACEOF | |
5710 | /* end confdefs.h. */ | |
5711 | #include <stdio.h> | |
5712 | int | |
5713 | main () | |
5714 | { | |
a61fe05c | 5715 | FILE *f = fopen64 ("/tmp/foo","r");fclose(f); |
32e71fa4 FM |
5716 | ; |
5717 | return 0; | |
5718 | } | |
5719 | _ACEOF | |
5720 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5721 | if { (ac_try="$ac_link" | |
5722 | case "(($ac_try" in | |
5723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5724 | *) ac_try_echo=$ac_try;; | |
5725 | esac | |
1164c474 FM |
5726 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5727 | $as_echo "$ac_try_echo") >&5 | |
32e71fa4 FM |
5728 | (eval "$ac_link") 2>conftest.er1 |
5729 | ac_status=$? | |
5730 | grep -v '^ *+' conftest.er1 >conftest.err | |
5731 | rm -f conftest.er1 | |
5732 | cat conftest.err >&5 | |
1164c474 | 5733 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32e71fa4 FM |
5734 | (exit $ac_status); } && { |
5735 | test -z "$ac_c_werror_flag" || | |
5736 | test ! -s conftest.err | |
1164c474 FM |
5737 | } && test -s conftest$ac_exeext && { |
5738 | test "$cross_compiling" = yes || | |
5739 | $as_test_x conftest$ac_exeext | |
5740 | }; then | |
32e71fa4 FM |
5741 | bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE" |
5742 | else | |
1164c474 | 5743 | $as_echo "$as_me: failed program was:" >&5 |
a61fe05c FM |
5744 | sed 's/^/| /' conftest.$ac_ext >&5 |
5745 | ||
5746 | CFLAGS=$noerror_CFLAGS | |
5747 | cat >conftest.$ac_ext <<_ACEOF | |
5748 | /* confdefs.h. */ | |
5749 | _ACEOF | |
5750 | cat confdefs.h >>conftest.$ac_ext | |
5751 | cat >>conftest.$ac_ext <<_ACEOF | |
5752 | /* end confdefs.h. */ | |
5753 | #include <stdio.h> | |
5754 | int | |
5755 | main () | |
5756 | { | |
5757 | FILE *f = fopen64 ("/tmp/foo","r");fclose(f); | |
5758 | ; | |
5759 | return 0; | |
5760 | } | |
5761 | _ACEOF | |
5762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5763 | if { (ac_try="$ac_link" | |
5764 | case "(($ac_try" in | |
5765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5766 | *) ac_try_echo=$ac_try;; | |
5767 | esac | |
1164c474 FM |
5768 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5769 | $as_echo "$ac_try_echo") >&5 | |
a61fe05c FM |
5770 | (eval "$ac_link") 2>conftest.er1 |
5771 | ac_status=$? | |
5772 | grep -v '^ *+' conftest.er1 >conftest.err | |
5773 | rm -f conftest.er1 | |
5774 | cat conftest.err >&5 | |
1164c474 | 5775 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a61fe05c FM |
5776 | (exit $ac_status); } && { |
5777 | test -z "$ac_c_werror_flag" || | |
5778 | test ! -s conftest.err | |
1164c474 FM |
5779 | } && test -s conftest$ac_exeext && { |
5780 | test "$cross_compiling" = yes || | |
5781 | $as_test_x conftest$ac_exeext | |
5782 | }; then | |
a61fe05c FM |
5783 | bu_cv_have_fopen64="yes without -Werror" |
5784 | werror_status="fail" | |
5785 | else | |
1164c474 | 5786 | $as_echo "$as_me: failed program was:" >&5 |
a61fe05c FM |
5787 | sed 's/^/| /' conftest.$ac_ext >&5 |
5788 | ||
5789 | CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE" | |
5790 | cat >conftest.$ac_ext <<_ACEOF | |
5791 | /* confdefs.h. */ | |
5792 | _ACEOF | |
5793 | cat confdefs.h >>conftest.$ac_ext | |
5794 | cat >>conftest.$ac_ext <<_ACEOF | |
5795 | /* end confdefs.h. */ | |
5796 | #include <stdio.h> | |
5797 | int | |
5798 | main () | |
5799 | { | |
5800 | FILE *f = fopen64 ("/tmp/foo","r");fclose(f); | |
5801 | ; | |
5802 | return 0; | |
5803 | } | |
5804 | _ACEOF | |
5805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5806 | if { (ac_try="$ac_link" | |
5807 | case "(($ac_try" in | |
5808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5809 | *) ac_try_echo=$ac_try;; | |
5810 | esac | |
1164c474 FM |
5811 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5812 | $as_echo "$ac_try_echo") >&5 | |
a61fe05c FM |
5813 | (eval "$ac_link") 2>conftest.er1 |
5814 | ac_status=$? | |
5815 | grep -v '^ *+' conftest.er1 >conftest.err | |
5816 | rm -f conftest.er1 | |
5817 | cat conftest.err >&5 | |
1164c474 | 5818 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a61fe05c FM |
5819 | (exit $ac_status); } && { |
5820 | test -z "$ac_c_werror_flag" || | |
5821 | test ! -s conftest.err | |
1164c474 FM |
5822 | } && test -s conftest$ac_exeext && { |
5823 | test "$cross_compiling" = yes || | |
5824 | $as_test_x conftest$ac_exeext | |
5825 | }; then | |
a61fe05c FM |
5826 | bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE and no -Werror" |
5827 | werror_status="fail" | |
5828 | else | |
1164c474 | 5829 | $as_echo "$as_me: failed program was:" >&5 |
32e71fa4 FM |
5830 | sed 's/^/| /' conftest.$ac_ext >&5 |
5831 | ||
5832 | bu_cv_have_fopen64=no | |
5833 | fi | |
5834 | ||
1164c474 | 5835 | rm -rf conftest.dSYM |
32e71fa4 FM |
5836 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5837 | conftest$ac_exeext conftest.$ac_ext | |
32e71fa4 FM |
5838 | fi |
5839 | ||
1164c474 | 5840 | rm -rf conftest.dSYM |
a61fe05c FM |
5841 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5842 | conftest$ac_exeext conftest.$ac_ext | |
5843 | fi | |
5844 | ||
1164c474 | 5845 | rm -rf conftest.dSYM |
a61fe05c FM |
5846 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5847 | conftest$ac_exeext conftest.$ac_ext | |
5848 | ||
5849 | fi | |
5850 | ||
1164c474 | 5851 | rm -rf conftest.dSYM |
32e71fa4 FM |
5852 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5853 | conftest$ac_exeext conftest.$ac_ext | |
a61fe05c | 5854 | CFLAGS=$noerror_CFLAGS |
32e71fa4 FM |
5855 | fi |
5856 | ||
1164c474 FM |
5857 | { $as_echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5 |
5858 | $as_echo "$bu_cv_have_fopen64" >&6; } | |
32e71fa4 FM |
5859 | if test "$bu_cv_have_fopen64" != no; then |
5860 | ||
5861 | cat >>confdefs.h <<\_ACEOF | |
5862 | #define HAVE_FOPEN64 1 | |
5863 | _ACEOF | |
5864 | ||
5865 | if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE"; then | |
5866 | ||
5867 | cat >>confdefs.h <<\_ACEOF | |
5868 | #define _LARGEFILE64_SOURCE 1 | |
5869 | _ACEOF | |
5870 | ||
5871 | fi | |
5872 | fi | |
5873 | ||
5874 | ||
40d681bc FM |
5875 | for ac_func in bzero |
5876 | do | |
1164c474 FM |
5877 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5878 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5879 | $as_echo_n "checking for $ac_func... " >&6; } | |
40d681bc | 5880 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1164c474 | 5881 | $as_echo_n "(cached) " >&6 |
40d681bc FM |
5882 | else |
5883 | cat >conftest.$ac_ext <<_ACEOF | |
5884 | /* confdefs.h. */ | |
5885 | _ACEOF | |
5886 | cat confdefs.h >>conftest.$ac_ext | |
5887 | cat >>conftest.$ac_ext <<_ACEOF | |
5888 | /* end confdefs.h. */ | |
5889 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5890 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5891 | #define $ac_func innocuous_$ac_func | |
5892 | ||
5893 | /* System header to define __stub macros and hopefully few prototypes, | |
5894 | which can conflict with char $ac_func (); below. | |
5895 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5896 | <limits.h> exists even on freestanding compilers. */ | |
5897 | ||
5898 | #ifdef __STDC__ | |
5899 | # include <limits.h> | |
5900 | #else | |
5901 | # include <assert.h> | |
5902 | #endif | |
5903 | ||
5904 | #undef $ac_func | |
5905 | ||
5906 | /* Override any GCC internal prototype to avoid an error. | |
5907 | Use char because int might match the return type of a GCC | |
5908 | builtin and then its argument prototype would still apply. */ | |
5909 | #ifdef __cplusplus | |
5910 | extern "C" | |
5911 | #endif | |
5912 | char $ac_func (); | |
5913 | /* The GNU C library defines this for functions which it implements | |
5914 | to always fail with ENOSYS. Some functions are actually named | |
5915 | something starting with __ and the normal name is an alias. */ | |
5916 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
5917 | choke me | |
5918 | #endif | |
5919 | ||
5920 | int | |
5921 | main () | |
5922 | { | |
5923 | return $ac_func (); | |
5924 | ; | |
5925 | return 0; | |
5926 | } | |
5927 | _ACEOF | |
5928 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5929 | if { (ac_try="$ac_link" | |
5930 | case "(($ac_try" in | |
5931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5932 | *) ac_try_echo=$ac_try;; | |
5933 | esac | |
1164c474 FM |
5934 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5935 | $as_echo "$ac_try_echo") >&5 | |
40d681bc FM |
5936 | (eval "$ac_link") 2>conftest.er1 |
5937 | ac_status=$? | |
5938 | grep -v '^ *+' conftest.er1 >conftest.err | |
5939 | rm -f conftest.er1 | |
5940 | cat conftest.err >&5 | |
1164c474 | 5941 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40d681bc FM |
5942 | (exit $ac_status); } && { |
5943 | test -z "$ac_c_werror_flag" || | |
5944 | test ! -s conftest.err | |
1164c474 FM |
5945 | } && test -s conftest$ac_exeext && { |
5946 | test "$cross_compiling" = yes || | |
5947 | $as_test_x conftest$ac_exeext | |
5948 | }; then | |
40d681bc FM |
5949 | eval "$as_ac_var=yes" |
5950 | else | |
1164c474 | 5951 | $as_echo "$as_me: failed program was:" >&5 |
40d681bc FM |
5952 | sed 's/^/| /' conftest.$ac_ext >&5 |
5953 | ||
5954 | eval "$as_ac_var=no" | |
5955 | fi | |
5956 | ||
1164c474 | 5957 | rm -rf conftest.dSYM |
40d681bc FM |
5958 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5959 | conftest$ac_exeext conftest.$ac_ext | |
5960 | fi | |
1164c474 FM |
5961 | ac_res=`eval 'as_val=${'$as_ac_var'} |
5962 | $as_echo "$as_val"'` | |
5963 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5964 | $as_echo "$ac_res" >&6; } | |
5965 | as_val=`eval 'as_val=${'$as_ac_var'} | |
5966 | $as_echo "$as_val"'` | |
5967 | if test "x$as_val" = x""yes; then | |
40d681bc | 5968 | cat >>confdefs.h <<_ACEOF |
1164c474 | 5969 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
40d681bc FM |
5970 | _ACEOF |
5971 | ||
5972 | fi | |
5973 | done | |
5974 | ||
5975 | ||
e6414a9d FM |
5976 | for ac_func in backtrace |
5977 | do | |
1164c474 FM |
5978 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5979 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5980 | $as_echo_n "checking for $ac_func... " >&6; } | |
e6414a9d | 5981 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1164c474 | 5982 | $as_echo_n "(cached) " >&6 |
a7ca233d FM |
5983 | else |
5984 | cat >conftest.$ac_ext <<_ACEOF | |
5985 | /* confdefs.h. */ | |
5986 | _ACEOF | |
5987 | cat confdefs.h >>conftest.$ac_ext | |
5988 | cat >>conftest.$ac_ext <<_ACEOF | |
5989 | /* end confdefs.h. */ | |
e6414a9d FM |
5990 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5991 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5992 | #define $ac_func innocuous_$ac_func | |
5993 | ||
5994 | /* System header to define __stub macros and hopefully few prototypes, | |
5995 | which can conflict with char $ac_func (); below. | |
5996 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5997 | <limits.h> exists even on freestanding compilers. */ | |
b5f13803 FM |
5998 | |
5999 | #ifdef __STDC__ | |
6000 | # include <limits.h> | |
6001 | #else | |
6002 | # include <assert.h> | |
6003 | #endif | |
6004 | ||
6005 | #undef $ac_func | |
6006 | ||
6007 | /* Override any GCC internal prototype to avoid an error. | |
6008 | Use char because int might match the return type of a GCC | |
6009 | builtin and then its argument prototype would still apply. */ | |
6010 | #ifdef __cplusplus | |
6011 | extern "C" | |
6012 | #endif | |
6013 | char $ac_func (); | |
6014 | /* The GNU C library defines this for functions which it implements | |
6015 | to always fail with ENOSYS. Some functions are actually named | |
6016 | something starting with __ and the normal name is an alias. */ | |
6017 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
6018 | choke me | |
6019 | #endif | |
6020 | ||
6021 | int | |
6022 | main () | |
6023 | { | |
6024 | return $ac_func (); | |
6025 | ; | |
6026 | return 0; | |
6027 | } | |
6028 | _ACEOF | |
6029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6030 | if { (ac_try="$ac_link" | |
6031 | case "(($ac_try" in | |
6032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6033 | *) ac_try_echo=$ac_try;; | |
6034 | esac | |
1164c474 FM |
6035 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6036 | $as_echo "$ac_try_echo") >&5 | |
b5f13803 FM |
6037 | (eval "$ac_link") 2>conftest.er1 |
6038 | ac_status=$? | |
6039 | grep -v '^ *+' conftest.er1 >conftest.err | |
6040 | rm -f conftest.er1 | |
6041 | cat conftest.err >&5 | |
1164c474 | 6042 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b5f13803 FM |
6043 | (exit $ac_status); } && { |
6044 | test -z "$ac_c_werror_flag" || | |
6045 | test ! -s conftest.err | |
1164c474 FM |
6046 | } && test -s conftest$ac_exeext && { |
6047 | test "$cross_compiling" = yes || | |
6048 | $as_test_x conftest$ac_exeext | |
6049 | }; then | |
b5f13803 FM |
6050 | eval "$as_ac_var=yes" |
6051 | else | |
1164c474 | 6052 | $as_echo "$as_me: failed program was:" >&5 |
b5f13803 FM |
6053 | sed 's/^/| /' conftest.$ac_ext >&5 |
6054 | ||
6055 | eval "$as_ac_var=no" | |
6056 | fi | |
6057 | ||
1164c474 | 6058 | rm -rf conftest.dSYM |
b5f13803 FM |
6059 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6060 | conftest$ac_exeext conftest.$ac_ext | |
6061 | fi | |
1164c474 FM |
6062 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6063 | $as_echo "$as_val"'` | |
6064 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6065 | $as_echo "$ac_res" >&6; } | |
6066 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6067 | $as_echo "$as_val"'` | |
6068 | if test "x$as_val" = x""yes; then | |
b5f13803 | 6069 | cat >>confdefs.h <<_ACEOF |
1164c474 | 6070 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b5f13803 FM |
6071 | _ACEOF |
6072 | ||
6073 | fi | |
6074 | done | |
6075 | ||
6076 | ||
6077 | for ac_func in symlink | |
6078 | do | |
1164c474 FM |
6079 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6080 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6081 | $as_echo_n "checking for $ac_func... " >&6; } | |
b5f13803 | 6082 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1164c474 | 6083 | $as_echo_n "(cached) " >&6 |
b5f13803 FM |
6084 | else |
6085 | cat >conftest.$ac_ext <<_ACEOF | |
6086 | /* confdefs.h. */ | |
6087 | _ACEOF | |
6088 | cat confdefs.h >>conftest.$ac_ext | |
6089 | cat >>conftest.$ac_ext <<_ACEOF | |
6090 | /* end confdefs.h. */ | |
6091 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6092 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6093 | #define $ac_func innocuous_$ac_func | |
6094 | ||
6095 | /* System header to define __stub macros and hopefully few prototypes, | |
6096 | which can conflict with char $ac_func (); below. | |
6097 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6098 | <limits.h> exists even on freestanding compilers. */ | |
e6414a9d FM |
6099 | |
6100 | #ifdef __STDC__ | |
6101 | # include <limits.h> | |
6102 | #else | |
6103 | # include <assert.h> | |
a7ca233d FM |
6104 | #endif |
6105 | ||
e6414a9d FM |
6106 | #undef $ac_func |
6107 | ||
6108 | /* Override any GCC internal prototype to avoid an error. | |
6109 | Use char because int might match the return type of a GCC | |
6110 | builtin and then its argument prototype would still apply. */ | |
6111 | #ifdef __cplusplus | |
6112 | extern "C" | |
6113 | #endif | |
6114 | char $ac_func (); | |
6115 | /* The GNU C library defines this for functions which it implements | |
6116 | to always fail with ENOSYS. Some functions are actually named | |
6117 | something starting with __ and the normal name is an alias. */ | |
6118 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
6119 | choke me | |
6120 | #endif | |
a7ca233d | 6121 | |
a7ca233d FM |
6122 | int |
6123 | main () | |
6124 | { | |
e6414a9d | 6125 | return $ac_func (); |
a7ca233d FM |
6126 | ; |
6127 | return 0; | |
6128 | } | |
6129 | _ACEOF | |
e6414a9d FM |
6130 | rm -f conftest.$ac_objext conftest$ac_exeext |
6131 | if { (ac_try="$ac_link" | |
a7ca233d FM |
6132 | case "(($ac_try" in |
6133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6134 | *) ac_try_echo=$ac_try;; | |
6135 | esac | |
1164c474 FM |
6136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6137 | $as_echo "$ac_try_echo") >&5 | |
e6414a9d | 6138 | (eval "$ac_link") 2>conftest.er1 |
a7ca233d FM |
6139 | ac_status=$? |
6140 | grep -v '^ *+' conftest.er1 >conftest.err | |
6141 | rm -f conftest.er1 | |
6142 | cat conftest.err >&5 | |
1164c474 | 6143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a7ca233d FM |
6144 | (exit $ac_status); } && { |
6145 | test -z "$ac_c_werror_flag" || | |
6146 | test ! -s conftest.err | |
1164c474 FM |
6147 | } && test -s conftest$ac_exeext && { |
6148 | test "$cross_compiling" = yes || | |
6149 | $as_test_x conftest$ac_exeext | |
6150 | }; then | |
e6414a9d | 6151 | eval "$as_ac_var=yes" |
a7ca233d | 6152 | else |
1164c474 | 6153 | $as_echo "$as_me: failed program was:" >&5 |
a7ca233d FM |
6154 | sed 's/^/| /' conftest.$ac_ext >&5 |
6155 | ||
e6414a9d | 6156 | eval "$as_ac_var=no" |
a7ca233d FM |
6157 | fi |
6158 | ||
1164c474 | 6159 | rm -rf conftest.dSYM |
e6414a9d FM |
6160 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6161 | conftest$ac_exeext conftest.$ac_ext | |
6162 | fi | |
1164c474 FM |
6163 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6164 | $as_echo "$as_val"'` | |
6165 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6166 | $as_echo "$ac_res" >&6; } | |
6167 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6168 | $as_echo "$as_val"'` | |
6169 | if test "x$as_val" = x""yes; then | |
e6414a9d | 6170 | cat >>confdefs.h <<_ACEOF |
1164c474 | 6171 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
e6414a9d FM |
6172 | _ACEOF |
6173 | ||
a7ca233d | 6174 | fi |
e6414a9d FM |
6175 | done |
6176 | ||
a7ca233d | 6177 | |
d9c45e9c FM |
6178 | for ac_func in lstat |
6179 | do | |
1164c474 FM |
6180 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6181 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6182 | $as_echo_n "checking for $ac_func... " >&6; } | |
d9c45e9c | 6183 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1164c474 | 6184 | $as_echo_n "(cached) " >&6 |
d9c45e9c FM |
6185 | else |
6186 | cat >conftest.$ac_ext <<_ACEOF | |
6187 | /* confdefs.h. */ | |
6188 | _ACEOF | |
6189 | cat confdefs.h >>conftest.$ac_ext | |
6190 | cat >>conftest.$ac_ext <<_ACEOF | |
6191 | /* end confdefs.h. */ | |
6192 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6194 | #define $ac_func innocuous_$ac_func | |
6195 | ||
6196 | /* System header to define __stub macros and hopefully few prototypes, | |
6197 | which can conflict with char $ac_func (); below. | |
6198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6199 | <limits.h> exists even on freestanding compilers. */ | |
6200 | ||
6201 | #ifdef __STDC__ | |
6202 | # include <limits.h> | |
6203 | #else | |
6204 | # include <assert.h> | |
6205 | #endif | |
6206 | ||
6207 | #undef $ac_func | |
6208 | ||
6209 | /* Override any GCC internal prototype to avoid an error. | |
6210 | Use char because int might match the return type of a GCC | |
6211 | builtin and then its argument prototype would still apply. */ | |
6212 | #ifdef __cplusplus | |
6213 | extern "C" | |
6214 | #endif | |
6215 | char $ac_func (); | |
6216 | /* The GNU C library defines this for functions which it implements | |
6217 | to always fail with ENOSYS. Some functions are actually named | |
6218 | something starting with __ and the normal name is an alias. */ | |
6219 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
6220 | choke me | |
6221 | #endif | |
6222 | ||
6223 | int | |
6224 | main () | |
6225 | { | |
6226 | return $ac_func (); | |
6227 | ; | |
6228 | return 0; | |
6229 | } | |
6230 | _ACEOF | |
6231 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6232 | if { (ac_try="$ac_link" | |
6233 | case "(($ac_try" in | |
6234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6235 | *) ac_try_echo=$ac_try;; | |
6236 | esac | |
1164c474 FM |
6237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6238 | $as_echo "$ac_try_echo") >&5 | |
d9c45e9c FM |
6239 | (eval "$ac_link") 2>conftest.er1 |
6240 | ac_status=$? | |
6241 | grep -v '^ *+' conftest.er1 >conftest.err | |
6242 | rm -f conftest.er1 | |
6243 | cat conftest.err >&5 | |
1164c474 | 6244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9c45e9c FM |
6245 | (exit $ac_status); } && { |
6246 | test -z "$ac_c_werror_flag" || | |
6247 | test ! -s conftest.err | |
1164c474 FM |
6248 | } && test -s conftest$ac_exeext && { |
6249 | test "$cross_compiling" = yes || | |
6250 | $as_test_x conftest$ac_exeext | |
6251 | }; then | |
d9c45e9c FM |
6252 | eval "$as_ac_var=yes" |
6253 | else | |
1164c474 | 6254 | $as_echo "$as_me: failed program was:" >&5 |
d9c45e9c FM |
6255 | sed 's/^/| /' conftest.$ac_ext >&5 |
6256 | ||
6257 | eval "$as_ac_var=no" | |
6258 | fi | |
6259 | ||
1164c474 | 6260 | rm -rf conftest.dSYM |
d9c45e9c FM |
6261 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6262 | conftest$ac_exeext conftest.$ac_ext | |
6263 | fi | |
1164c474 FM |
6264 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6265 | $as_echo "$as_val"'` | |
6266 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6267 | $as_echo "$ac_res" >&6; } | |
6268 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6269 | $as_echo "$as_val"'` | |
6270 | if test "x$as_val" = x""yes; then | |
d9c45e9c | 6271 | cat >>confdefs.h <<_ACEOF |
1164c474 | 6272 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d9c45e9c FM |
6273 | _ACEOF |
6274 | ||
6275 | fi | |
6276 | done | |
6277 | ||
6278 | ||
0743911c FM |
6279 | # The cast to long int works around a bug in the HP C Compiler |
6280 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6281 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6282 | # This bug is HP SR number 8606223364. | |
1164c474 FM |
6283 | { $as_echo "$as_me:$LINENO: checking size of rlim_t" >&5 |
6284 | $as_echo_n "checking size of rlim_t... " >&6; } | |
32e71fa4 | 6285 | if test "${ac_cv_sizeof_rlim_t+set}" = set; then |
1164c474 | 6286 | $as_echo_n "(cached) " >&6 |
25697a35 | 6287 | else |
d6e703cc FM |
6288 | if test "$cross_compiling" = yes; then |
6289 | # Depending upon the size, compute the lo and hi bounds. | |
25697a35 GS |
6290 | cat >conftest.$ac_ext <<_ACEOF |
6291 | /* confdefs.h. */ | |
6292 | _ACEOF | |
6293 | cat confdefs.h >>conftest.$ac_ext | |
6294 | cat >>conftest.$ac_ext <<_ACEOF | |
6295 | /* end confdefs.h. */ | |
32e71fa4 FM |
6296 | #if HAVE_SYS_RESOURCE_H |
6297 | #include <sys/resource.h> | |
6298 | #endif | |
6299 | ||
6300 | ||
d6e703cc FM |
6301 | int |
6302 | main () | |
6303 | { | |
1164c474 | 6304 | static int test_array [1 - 2 * !(((long int) (sizeof (rlim_t))) >= 0)]; |
d6e703cc FM |
6305 | test_array [0] = 0 |
6306 | ||
6307 | ; | |
6308 | return 0; | |
6309 | } | |
6310 | _ACEOF | |
6311 | rm -f conftest.$ac_objext | |
0743911c FM |
6312 | if { (ac_try="$ac_compile" |
6313 | case "(($ac_try" in | |
6314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6315 | *) ac_try_echo=$ac_try;; | |
6316 | esac | |
1164c474 FM |
6317 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6318 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 6319 | (eval "$ac_compile") 2>conftest.er1 |
d6e703cc FM |
6320 | ac_status=$? |
6321 | grep -v '^ *+' conftest.er1 >conftest.err | |
6322 | rm -f conftest.er1 | |
6323 | cat conftest.err >&5 | |
1164c474 | 6324 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
6325 | (exit $ac_status); } && { |
6326 | test -z "$ac_c_werror_flag" || | |
6327 | test ! -s conftest.err | |
6328 | } && test -s conftest.$ac_objext; then | |
d6e703cc FM |
6329 | ac_lo=0 ac_mid=0 |
6330 | while :; do | |
6331 | cat >conftest.$ac_ext <<_ACEOF | |
6332 | /* confdefs.h. */ | |
6333 | _ACEOF | |
6334 | cat confdefs.h >>conftest.$ac_ext | |
6335 | cat >>conftest.$ac_ext <<_ACEOF | |
6336 | /* end confdefs.h. */ | |
32e71fa4 FM |
6337 | #if HAVE_SYS_RESOURCE_H |
6338 | #include <sys/resource.h> | |
6339 | #endif | |
6340 | ||
6341 | ||
25697a35 GS |
6342 | int |
6343 | main () | |
6344 | { | |
1164c474 | 6345 | static int test_array [1 - 2 * !(((long int) (sizeof (rlim_t))) <= $ac_mid)]; |
d6e703cc FM |
6346 | test_array [0] = 0 |
6347 | ||
25697a35 GS |
6348 | ; |
6349 | return 0; | |
6350 | } | |
6351 | _ACEOF | |
d6e703cc | 6352 | rm -f conftest.$ac_objext |
0743911c FM |
6353 | if { (ac_try="$ac_compile" |
6354 | case "(($ac_try" in | |
6355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6356 | *) ac_try_echo=$ac_try;; | |
6357 | esac | |
1164c474 FM |
6358 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6359 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 6360 | (eval "$ac_compile") 2>conftest.er1 |
25697a35 GS |
6361 | ac_status=$? |
6362 | grep -v '^ *+' conftest.er1 >conftest.err | |
6363 | rm -f conftest.er1 | |
6364 | cat conftest.err >&5 | |
1164c474 | 6365 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
6366 | (exit $ac_status); } && { |
6367 | test -z "$ac_c_werror_flag" || | |
6368 | test ! -s conftest.err | |
6369 | } && test -s conftest.$ac_objext; then | |
d6e703cc | 6370 | ac_hi=$ac_mid; break |
25697a35 | 6371 | else |
1164c474 | 6372 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
6373 | sed 's/^/| /' conftest.$ac_ext >&5 |
6374 | ||
0743911c FM |
6375 | ac_lo=`expr $ac_mid + 1` |
6376 | if test $ac_lo -le $ac_mid; then | |
6377 | ac_lo= ac_hi= | |
6378 | break | |
6379 | fi | |
6380 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
25697a35 | 6381 | fi |
0743911c FM |
6382 | |
6383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc | 6384 | done |
25697a35 | 6385 | else |
1164c474 | 6386 | $as_echo "$as_me: failed program was:" >&5 |
d6e703cc | 6387 | sed 's/^/| /' conftest.$ac_ext >&5 |
25697a35 | 6388 | |
0743911c | 6389 | cat >conftest.$ac_ext <<_ACEOF |
25697a35 GS |
6390 | /* confdefs.h. */ |
6391 | _ACEOF | |
6392 | cat confdefs.h >>conftest.$ac_ext | |
6393 | cat >>conftest.$ac_ext <<_ACEOF | |
6394 | /* end confdefs.h. */ | |
32e71fa4 FM |
6395 | #if HAVE_SYS_RESOURCE_H |
6396 | #include <sys/resource.h> | |
6397 | #endif | |
6398 | ||
6399 | ||
25697a35 GS |
6400 | int |
6401 | main () | |
6402 | { | |
1164c474 | 6403 | static int test_array [1 - 2 * !(((long int) (sizeof (rlim_t))) < 0)]; |
d6e703cc | 6404 | test_array [0] = 0 |
25697a35 | 6405 | |
d6e703cc FM |
6406 | ; |
6407 | return 0; | |
6408 | } | |
6409 | _ACEOF | |
6410 | rm -f conftest.$ac_objext | |
0743911c FM |
6411 | if { (ac_try="$ac_compile" |
6412 | case "(($ac_try" in | |
6413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6414 | *) ac_try_echo=$ac_try;; | |
6415 | esac | |
1164c474 FM |
6416 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6417 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 6418 | (eval "$ac_compile") 2>conftest.er1 |
d6e703cc FM |
6419 | ac_status=$? |
6420 | grep -v '^ *+' conftest.er1 >conftest.err | |
6421 | rm -f conftest.er1 | |
6422 | cat conftest.err >&5 | |
1164c474 | 6423 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
6424 | (exit $ac_status); } && { |
6425 | test -z "$ac_c_werror_flag" || | |
6426 | test ! -s conftest.err | |
6427 | } && test -s conftest.$ac_objext; then | |
d6e703cc FM |
6428 | ac_hi=-1 ac_mid=-1 |
6429 | while :; do | |
6430 | cat >conftest.$ac_ext <<_ACEOF | |
6431 | /* confdefs.h. */ | |
6432 | _ACEOF | |
6433 | cat confdefs.h >>conftest.$ac_ext | |
6434 | cat >>conftest.$ac_ext <<_ACEOF | |
6435 | /* end confdefs.h. */ | |
32e71fa4 FM |
6436 | #if HAVE_SYS_RESOURCE_H |
6437 | #include <sys/resource.h> | |
6438 | #endif | |
6439 | ||
6440 | ||
d6e703cc FM |
6441 | int |
6442 | main () | |
6443 | { | |
1164c474 | 6444 | static int test_array [1 - 2 * !(((long int) (sizeof (rlim_t))) >= $ac_mid)]; |
d6e703cc | 6445 | test_array [0] = 0 |
25697a35 GS |
6446 | |
6447 | ; | |
6448 | return 0; | |
6449 | } | |
6450 | _ACEOF | |
6451 | rm -f conftest.$ac_objext | |
0743911c FM |
6452 | if { (ac_try="$ac_compile" |
6453 | case "(($ac_try" in | |
6454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6455 | *) ac_try_echo=$ac_try;; | |
6456 | esac | |
1164c474 FM |
6457 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6458 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 6459 | (eval "$ac_compile") 2>conftest.er1 |
25697a35 GS |
6460 | ac_status=$? |
6461 | grep -v '^ *+' conftest.er1 >conftest.err | |
6462 | rm -f conftest.er1 | |
6463 | cat conftest.err >&5 | |
1164c474 | 6464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
6465 | (exit $ac_status); } && { |
6466 | test -z "$ac_c_werror_flag" || | |
6467 | test ! -s conftest.err | |
6468 | } && test -s conftest.$ac_objext; then | |
d6e703cc | 6469 | ac_lo=$ac_mid; break |
25697a35 | 6470 | else |
1164c474 | 6471 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
6472 | sed 's/^/| /' conftest.$ac_ext >&5 |
6473 | ||
0743911c FM |
6474 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6475 | if test $ac_mid -le $ac_hi; then | |
6476 | ac_lo= ac_hi= | |
6477 | break | |
6478 | fi | |
6479 | ac_mid=`expr 2 '*' $ac_mid` | |
25697a35 | 6480 | fi |
0743911c FM |
6481 | |
6482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc FM |
6483 | done |
6484 | else | |
1164c474 | 6485 | $as_echo "$as_me: failed program was:" >&5 |
d6e703cc | 6486 | sed 's/^/| /' conftest.$ac_ext >&5 |
25697a35 | 6487 | |
0743911c | 6488 | ac_lo= ac_hi= |
25697a35 | 6489 | fi |
0743911c FM |
6490 | |
6491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc | 6492 | fi |
0743911c FM |
6493 | |
6494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc FM |
6495 | # Binary search between lo and hi bounds. |
6496 | while test "x$ac_lo" != "x$ac_hi"; do | |
6497 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
25697a35 GS |
6498 | cat >conftest.$ac_ext <<_ACEOF |
6499 | /* confdefs.h. */ | |
6500 | _ACEOF | |
6501 | cat confdefs.h >>conftest.$ac_ext | |
6502 | cat >>conftest.$ac_ext <<_ACEOF | |
6503 | /* end confdefs.h. */ | |
32e71fa4 FM |
6504 | #if HAVE_SYS_RESOURCE_H |
6505 | #include <sys/resource.h> | |
6506 | #endif | |
6507 | ||
6508 | ||
25697a35 GS |
6509 | int |
6510 | main () | |
6511 | { | |
1164c474 | 6512 | static int test_array [1 - 2 * !(((long int) (sizeof (rlim_t))) <= $ac_mid)]; |
d6e703cc FM |
6513 | test_array [0] = 0 |
6514 | ||
25697a35 GS |
6515 | ; |
6516 | return 0; | |
6517 | } | |
6518 | _ACEOF | |
6519 | rm -f conftest.$ac_objext | |
0743911c FM |
6520 | if { (ac_try="$ac_compile" |
6521 | case "(($ac_try" in | |
6522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6523 | *) ac_try_echo=$ac_try;; | |
6524 | esac | |
1164c474 FM |
6525 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6526 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 6527 | (eval "$ac_compile") 2>conftest.er1 |
25697a35 GS |
6528 | ac_status=$? |
6529 | grep -v '^ *+' conftest.er1 >conftest.err | |
6530 | rm -f conftest.er1 | |
6531 | cat conftest.err >&5 | |
1164c474 | 6532 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0743911c FM |
6533 | (exit $ac_status); } && { |
6534 | test -z "$ac_c_werror_flag" || | |
6535 | test ! -s conftest.err | |
6536 | } && test -s conftest.$ac_objext; then | |
d6e703cc | 6537 | ac_hi=$ac_mid |
25697a35 | 6538 | else |
1164c474 | 6539 | $as_echo "$as_me: failed program was:" >&5 |
25697a35 GS |
6540 | sed 's/^/| /' conftest.$ac_ext >&5 |
6541 | ||
0743911c | 6542 | ac_lo=`expr '(' $ac_mid ')' + 1` |
25697a35 | 6543 | fi |
0743911c FM |
6544 | |
6545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d6e703cc FM |
6546 | done |
6547 | case $ac_lo in | |
32e71fa4 FM |
6548 | ?*) ac_cv_sizeof_rlim_t=$ac_lo;; |
6549 | '') if test "$ac_cv_type_rlim_t" = yes; then | |
1164c474 FM |
6550 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
6551 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6552 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t) | |
d6e703cc | 6553 | See \`config.log' for more details." >&5 |
1164c474 | 6554 | $as_echo "$as_me: error: cannot compute sizeof (rlim_t) |
d6e703cc | 6555 | See \`config.log' for more details." >&2;} |
1164c474 | 6556 | { (exit 77); exit 77; }; }; } |
0743911c | 6557 | else |
32e71fa4 | 6558 | ac_cv_sizeof_rlim_t=0 |
0743911c | 6559 | fi ;; |
d6e703cc | 6560 | esac |
d6e703cc FM |
6561 | else |
6562 | cat >conftest.$ac_ext <<_ACEOF | |
6563 | /* confdefs.h. */ | |
6564 | _ACEOF | |
6565 | cat confdefs.h >>conftest.$ac_ext | |
6566 | cat >>conftest.$ac_ext <<_ACEOF | |
6567 | /* end confdefs.h. */ | |
32e71fa4 FM |
6568 | #if HAVE_SYS_RESOURCE_H |
6569 | #include <sys/resource.h> | |
6570 | #endif | |
6571 | ||
6572 | ||
1164c474 FM |
6573 | static long int longval () { return (long int) (sizeof (rlim_t)); } |
6574 | static unsigned long int ulongval () { return (long int) (sizeof (rlim_t)); } | |
d6e703cc FM |
6575 | #include <stdio.h> |
6576 | #include <stdlib.h> | |
6577 | int | |
6578 | main () | |
6579 | { | |
6580 | ||
6581 | FILE *f = fopen ("conftest.val", "w"); | |
6582 | if (! f) | |
0743911c | 6583 | return 1; |
1164c474 | 6584 | if (((long int) (sizeof (rlim_t))) < 0) |
d6e703cc | 6585 | { |
0743911c | 6586 | long int i = longval (); |
1164c474 | 6587 | if (i != ((long int) (sizeof (rlim_t)))) |
0743911c | 6588 | return 1; |
1164c474 | 6589 | fprintf (f, "%ld", i); |
d6e703cc FM |
6590 | } |
6591 | else | |
6592 | { | |
0743911c | 6593 | unsigned long int i = ulongval (); |
1164c474 | 6594 | if (i != ((long int) (sizeof (rlim_t)))) |
0743911c | 6595 | return 1; |
1164c474 | 6596 | fprintf (f, "%lu", i); |
d6e703cc | 6597 | } |
1164c474 FM |
6598 | /* Do not output a trailing newline, as this causes \r\n confusion |
6599 | on some platforms. */ | |
0743911c | 6600 | return ferror (f) || fclose (f) != 0; |
d6e703cc FM |
6601 | |
6602 | ; | |
6603 | return 0; | |
6604 | } | |
6605 | _ACEOF | |
6606 | rm -f conftest$ac_exeext | |
0743911c FM |
6607 | if { (ac_try="$ac_link" |
6608 | case "(($ac_try" in | |
6609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6610 | *) ac_try_echo=$ac_try;; | |
6611 | esac | |
1164c474 FM |
6612 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6613 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 6614 | (eval "$ac_link") 2>&5 |
d6e703cc | 6615 | ac_status=$? |
1164c474 | 6616 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e703cc | 6617 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
0743911c FM |
6618 | { (case "(($ac_try" in |
6619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6620 | *) ac_try_echo=$ac_try;; | |
6621 | esac | |
1164c474 FM |
6622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6623 | $as_echo "$ac_try_echo") >&5 | |
0743911c | 6624 | (eval "$ac_try") 2>&5 |
d6e703cc | 6625 | ac_status=$? |
1164c474 | 6626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e703cc | 6627 | (exit $ac_status); }; }; then |
32e71fa4 | 6628 | ac_cv_sizeof_rlim_t=`cat conftest.val` |
d6e703cc | 6629 | else |
1164c474 FM |
6630 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6631 | $as_echo "$as_me: failed program was:" >&5 | |
d6e703cc FM |
6632 | sed 's/^/| /' conftest.$ac_ext >&5 |
6633 | ||
6634 | ( exit $ac_status ) | |
32e71fa4 | 6635 | if test "$ac_cv_type_rlim_t" = yes; then |
1164c474 FM |
6636 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
6637 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6638 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t) | |
d6e703cc | 6639 | See \`config.log' for more details." >&5 |
1164c474 | 6640 | $as_echo "$as_me: error: cannot compute sizeof (rlim_t) |
d6e703cc | 6641 | See \`config.log' for more details." >&2;} |
1164c474 | 6642 | { (exit 77); exit 77; }; }; } |
0743911c | 6643 | else |
32e71fa4 | 6644 | ac_cv_sizeof_rlim_t=0 |
0743911c | 6645 | fi |
d6e703cc | 6646 | fi |
1164c474 | 6647 | rm -rf conftest.dSYM |
0743911c | 6648 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d6e703cc FM |
6649 | fi |
6650 | rm -f conftest.val | |
d6e703cc | 6651 | fi |
1164c474 FM |
6652 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_rlim_t" >&5 |
6653 | $as_echo "$ac_cv_sizeof_rlim_t" >&6; } | |
0743911c FM |
6654 | |
6655 | ||
6656 | ||
d6e703cc | 6657 | cat >>confdefs.h <<_ACEOF |
32e71fa4 | 6658 | #define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t |
d6e703cc FM |
6659 | _ACEOF |
6660 | ||
6661 | ||
32e71fa4 | 6662 | if test $ac_cv_sizeof_rlim_t = "4"; then |
25697a35 GS |
6663 | |
6664 | cat >>confdefs.h <<\_ACEOF | |
32e71fa4 | 6665 | #define RLIM_STRING "%d" |
25697a35 GS |
6666 | _ACEOF |
6667 | ||
32e71fa4 | 6668 | elif test $ac_cv_sizeof_rlim_t = "8"; then |
d6e703cc FM |
6669 | |
6670 | cat >>confdefs.h <<\_ACEOF | |
32e71fa4 | 6671 | #define RLIM_STRING "%lli" |
d6e703cc | 6672 | _ACEOF |
25697a35 | 6673 | |
d6e703cc | 6674 | else |
1164c474 FM |
6675 | { $as_echo "$as_me:$LINENO: WARNING: can not detect the size of your system\'s rlim_t type" >&5 |
6676 | $as_echo "$as_me: WARNING: can not detect the size of your system\'s rlim_t type" >&2;} | |
d6e703cc | 6677 | fi |
25697a35 | 6678 | |
7bbc1de4 FM |
6679 | # Check whether --enable-sargphp was given. |
6680 | if test "${enable_sargphp+set}" = set; then | |
6681 | enableval=$enable_sargphp; | |
6682 | if test "$enableval" -a "x$enableval" != "xno" ; then | |
6683 | SARGPHPDIR=$enableval | |
25697a35 GS |
6684 | fi |
6685 | ||
6686 | else | |
af15cfa2 | 6687 | SARGPHPDIR="/var/www/html" |
0743911c FM |
6688 | fi |
6689 | ||
7bbc1de4 FM |
6690 | if test "$SARGPHPDIR" ; then |
6691 | echo "using $SARGPHPDIR as the directory to install sarg-php" | |
25697a35 | 6692 | |
7bbc1de4 | 6693 | fi |
25697a35 | 6694 | |
b3695c67 FM |
6695 | # Check whether --enable-languagedir was given. |
6696 | if test "${enable_languagedir+set}" = set; then | |
6697 | enableval=$enable_languagedir; | |
6698 | if test "$enableval"; then | |
6699 | LANGDIR=$enableval | |
6700 | fi | |
6701 | ||
6702 | else | |
6703 | LANGDIR="${datarootdir}/sarg/languages" | |
6704 | fi | |
6705 | ||
6706 | echo "using $LANGDIR as the directory of the translations" | |
6707 | ||
6708 | ||
6709 | # Check whether --enable-fontdir was given. | |
6710 | if test "${enable_fontdir+set}" = set; then | |
6711 | enableval=$enable_fontdir; | |
6712 | if test "$enableval"; then | |
6713 | FONTDIR=$enableval | |
6714 | fi | |
6715 | ||
6716 | else | |
6717 | FONTDIR="${datarootdir}/sarg/fonts" | |
6718 | fi | |
6719 | ||
6720 | echo "using $FONTDIR as the directory of the fonts" | |
6721 | ||
6722 | ||
6723 | # Check whether --enable-imagedir was given. | |
6724 | if test "${enable_imagedir+set}" = set; then | |
6725 | enableval=$enable_imagedir; | |
6726 | if test "$enableval"; then | |
6727 | IMAGEDIR=$enableval | |
6728 | fi | |
6729 | ||
6730 | else | |
6731 | IMAGEDIR="${datarootdir}/sarg/images" | |
6732 | fi | |
6733 | ||
6734 | echo "using $IMAGEDIR as the directory of the images" | |
6735 | ||
6736 | ||
05b90947 FM |
6737 | # Check whether --enable-extraprotection was given. |
6738 | if test "${enable_extraprotection+set}" = set; then | |
6739 | enableval=$enable_extraprotection; | |
6740 | if test "$enableval"; then | |
a61fe05c FM |
6741 | CFLAGS="${CFLAGS} -fstack-protector -D_FORTIFY_SOURCE=2" |
6742 | if test "x$werror_status" != "xfail" ; then | |
6743 | CFLAGS="${CFLAGS} -Werror" | |
6744 | fi | |
dcb54d06 | 6745 | |
1164c474 FM |
6746 | { $as_echo "$as_me:$LINENO: checking for format security flag in gcc" >&5 |
6747 | $as_echo_n "checking for format security flag in gcc... " >&6; } | |
dcb54d06 | 6748 | saved_CFLAGS="${CFLAGS}" |
d9c45e9c | 6749 | CFLAGS="${CFLAGS} -Wformat -Werror=format-security" |
dcb54d06 FM |
6750 | cat >conftest.$ac_ext <<_ACEOF |
6751 | /* confdefs.h. */ | |
6752 | _ACEOF | |
6753 | cat confdefs.h >>conftest.$ac_ext | |
6754 | cat >>conftest.$ac_ext <<_ACEOF | |
6755 | /* end confdefs.h. */ | |
6756 | ||
6757 | _ACEOF | |
6758 | rm -f conftest.$ac_objext | |
6759 | if { (ac_try="$ac_compile" | |
6760 | case "(($ac_try" in | |
6761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6762 | *) ac_try_echo=$ac_try;; | |
6763 | esac | |
1164c474 FM |
6764 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6765 | $as_echo "$ac_try_echo") >&5 | |
dcb54d06 FM |
6766 | (eval "$ac_compile") 2>conftest.er1 |
6767 | ac_status=$? | |
6768 | grep -v '^ *+' conftest.er1 >conftest.err | |
6769 | rm -f conftest.er1 | |
6770 | cat conftest.err >&5 | |
1164c474 | 6771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dcb54d06 FM |
6772 | (exit $ac_status); } && { |
6773 | test -z "$ac_c_werror_flag" || | |
6774 | test ! -s conftest.err | |
6775 | } && test -s conftest.$ac_objext; then | |
6776 | have_format_security="yes" | |
6777 | else | |
1164c474 | 6778 | $as_echo "$as_me: failed program was:" >&5 |
dcb54d06 FM |
6779 | sed 's/^/| /' conftest.$ac_ext >&5 |
6780 | ||
6781 | have_format_security="no" | |
6782 | fi | |
6783 | ||
6784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1164c474 FM |
6785 | { $as_echo "$as_me:$LINENO: result: $have_format_security" >&5 |
6786 | $as_echo "$have_format_security" >&6; } | |
dcb54d06 FM |
6787 | if test "$have_format_security" == "no" ; then |
6788 | CFLAGS="${saved_CFLAGS}" | |
6789 | fi | |
05b90947 FM |
6790 | fi |
6791 | ||
05b90947 FM |
6792 | fi |
6793 | ||
05b90947 | 6794 | |
0743911c FM |
6795 | ac_config_files="$ac_config_files Makefile" |
6796 | ||
25697a35 GS |
6797 | cat >confcache <<\_ACEOF |
6798 | # This file is a shell script that caches the results of configure | |
6799 | # tests run on this system so they can be shared between configure | |
6800 | # scripts and configure runs, see configure's option --config-cache. | |
6801 | # It is not useful on other systems. If it contains results you don't | |
6802 | # want to keep, you may remove or edit it. | |
6803 | # | |
6804 | # config.status only pays attention to the cache file if you give it | |
6805 | # the --recheck option to rerun configure. | |
6806 | # | |
6807 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
6808 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6809 | # following values. | |
6810 | ||
6811 | _ACEOF | |
6812 | ||
6813 | # The following way of writing the cache mishandles newlines in values, | |
6814 | # but we know of no workaround that is simple, portable, and efficient. | |
0743911c | 6815 | # So, we kill variables containing newlines. |
25697a35 GS |
6816 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6817 | # and sets the high bit in the cache file unless we assign to the vars. | |
0743911c FM |
6818 | ( |
6819 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
6820 | eval ac_val=\$$ac_var | |
6821 | case $ac_val in #( | |
6822 | *${as_nl}*) | |
6823 | case $ac_var in #( | |
1164c474 FM |
6824 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
6825 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
0743911c FM |
6826 | esac |
6827 | case $ac_var in #( | |
6828 | _ | IFS | as_nl) ;; #( | |
1164c474 | 6829 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
0743911c FM |
6830 | *) $as_unset $ac_var ;; |
6831 | esac ;; | |
6832 | esac | |
6833 | done | |
6834 | ||
6835 | (set) 2>&1 | | |
6836 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
6837 | *${as_nl}ac_space=\ *) | |
6838 | # `set' does not quote correctly, so add quotes (double-quote | |
6839 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
25697a35 GS |
6840 | sed -n \ |
6841 | "s/'/'\\\\''/g; | |
6842 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
0743911c | 6843 | ;; #( |
25697a35 GS |
6844 | *) |
6845 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
0743911c | 6846 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
25697a35 | 6847 | ;; |
0743911c FM |
6848 | esac | |
6849 | sort | |
6850 | ) | | |
25697a35 | 6851 | sed ' |
0743911c | 6852 | /^ac_cv_env_/b end |
25697a35 | 6853 | t clear |
0743911c | 6854 | :clear |
25697a35 GS |
6855 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6856 | t end | |
0743911c FM |
6857 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6858 | :end' >>confcache | |
6859 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6860 | if test -w "$cache_file"; then | |
6861 | test "x$cache_file" != "x/dev/null" && | |
1164c474 FM |
6862 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
6863 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
25697a35 GS |
6864 | cat confcache >$cache_file |
6865 | else | |
1164c474 FM |
6866 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
6867 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
25697a35 GS |
6868 | fi |
6869 | fi | |
6870 | rm -f confcache | |
6871 | ||
6872 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6873 | # Let make expand exec_prefix. | |
6874 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6875 | ||
25697a35 GS |
6876 | # Transform confdefs.h into DEFS. |
6877 | # Protect against shell expansion while executing Makefile rules. | |
6878 | # Protect against Makefile macro expansion. | |
6879 | # | |
6880 | # If the first sed substitution is executed (which looks for macros that | |
0743911c | 6881 | # take arguments), then branch to the quote section. Otherwise, |
25697a35 | 6882 | # look for a macro that doesn't take arguments. |
0743911c | 6883 | ac_script=' |
1164c474 FM |
6884 | :mline |
6885 | /\\$/{ | |
6886 | N | |
6887 | s,\\\n,, | |
6888 | b mline | |
6889 | } | |
25697a35 | 6890 | t clear |
0743911c FM |
6891 | :clear |
6892 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
25697a35 | 6893 | t quote |
0743911c | 6894 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
25697a35 | 6895 | t quote |
0743911c FM |
6896 | b any |
6897 | :quote | |
6898 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
6899 | s/\[/\\&/g | |
6900 | s/\]/\\&/g | |
6901 | s/\$/$$/g | |
6902 | H | |
6903 | :any | |
6904 | ${ | |
6905 | g | |
6906 | s/^\n// | |
6907 | s/\n/ /g | |
6908 | p | |
6909 | } | |
6910 | ' | |
6911 | DEFS=`sed -n "$ac_script" confdefs.h` | |
25697a35 GS |
6912 | |
6913 | ||
6914 | ac_libobjs= | |
6915 | ac_ltlibobjs= | |
6916 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6917 | # 1. Remove the extension, and $U if already installed. | |
0743911c | 6918 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
1164c474 | 6919 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
0743911c FM |
6920 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
6921 | # will be set to the directory where LIBOBJS objects are built. | |
6922 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
6923 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
25697a35 GS |
6924 | done |
6925 | LIBOBJS=$ac_libobjs | |
6926 | ||
6927 | LTLIBOBJS=$ac_ltlibobjs | |
6928 | ||
6929 | ||
6930 | ||
6931 | : ${CONFIG_STATUS=./config.status} | |
1164c474 | 6932 | ac_write_fail=0 |
25697a35 GS |
6933 | ac_clean_files_save=$ac_clean_files |
6934 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
1164c474 FM |
6935 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
6936 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6937 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
25697a35 GS |
6938 | #! $SHELL |
6939 | # Generated by $as_me. | |
6940 | # Run this file to recreate the current configuration. | |
6941 | # Compiler output produced by configure, useful for debugging | |
6942 | # configure, is in config.log if it exists. | |
6943 | ||
6944 | debug=false | |
6945 | ac_cs_recheck=false | |
6946 | ac_cs_silent=false | |
6947 | SHELL=\${CONFIG_SHELL-$SHELL} | |
6948 | _ACEOF | |
6949 | ||
1164c474 | 6950 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
25697a35 GS |
6951 | ## --------------------- ## |
6952 | ## M4sh Initialization. ## | |
6953 | ## --------------------- ## | |
6954 | ||
0743911c FM |
6955 | # Be more Bourne compatible |
6956 | DUALCASE=1; export DUALCASE # for MKS sh | |
25697a35 GS |
6957 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
6958 | emulate sh | |
6959 | NULLCMD=: | |
1164c474 | 6960 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
25697a35 GS |
6961 | # is contrary to our usage. Disable this feature. |
6962 | alias -g '${1+"$@"}'='"$@"' | |
0743911c FM |
6963 | setopt NO_GLOB_SUBST |
6964 | else | |
6965 | case `(set -o) 2>/dev/null` in | |
6966 | *posix*) set -o posix ;; | |
6967 | esac | |
6968 | ||
6969 | fi | |
6970 | ||
6971 | ||
6972 | ||
6973 | ||
6974 | # PATH needs CR | |
6975 | # Avoid depending upon Character Ranges. | |
6976 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6977 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6978 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6979 | as_cr_digits='0123456789' | |
6980 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6981 | ||
1164c474 FM |
6982 | as_nl=' |
6983 | ' | |
6984 | export as_nl | |
6985 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
6986 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6987 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
6988 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
6989 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6990 | as_echo='printf %s\n' | |
6991 | as_echo_n='printf %s' | |
6992 | else | |
6993 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
6994 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
6995 | as_echo_n='/usr/ucb/echo -n' | |
f8ed23e3 | 6996 | else |
1164c474 FM |
6997 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
6998 | as_echo_n_body='eval | |
6999 | arg=$1; | |
7000 | case $arg in | |
7001 | *"$as_nl"*) | |
7002 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7003 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7004 | esac; | |
7005 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7006 | ' | |
7007 | export as_echo_n_body | |
7008 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
f8ed23e3 | 7009 | fi |
1164c474 FM |
7010 | export as_echo_body |
7011 | as_echo='sh -c $as_echo_body as_echo' | |
7012 | fi | |
7013 | ||
7014 | # The user is always right. | |
7015 | if test "${PATH_SEPARATOR+set}" != set; then | |
7016 | PATH_SEPARATOR=: | |
7017 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7018 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7019 | PATH_SEPARATOR=';' | |
7020 | } | |
25697a35 | 7021 | fi |
25697a35 GS |
7022 | |
7023 | # Support unset when possible. | |
7024 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7025 | as_unset=unset | |
7026 | else | |
7027 | as_unset=false | |
7028 | fi | |
7029 | ||
7030 | ||
0743911c FM |
7031 | # IFS |
7032 | # We need space, tab and new line, in precisely that order. Quoting is | |
7033 | # there to prevent editors from complaining about space-tab. | |
7034 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7035 | # splitting by setting IFS to empty value.) | |
0743911c FM |
7036 | IFS=" "" $as_nl" |
7037 | ||
7038 | # Find who we are. Look in the path if we contain no directory separator. | |
7039 | case $0 in | |
7040 | *[\\/]* ) as_myself=$0 ;; | |
7041 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7042 | for as_dir in $PATH | |
7043 | do | |
7044 | IFS=$as_save_IFS | |
7045 | test -z "$as_dir" && as_dir=. | |
7046 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7047 | done | |
7048 | IFS=$as_save_IFS | |
7049 | ||
7050 | ;; | |
7051 | esac | |
7052 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7053 | # in which case we are not to be found in the path. | |
7054 | if test "x$as_myself" = x; then | |
7055 | as_myself=$0 | |
7056 | fi | |
7057 | if test ! -f "$as_myself"; then | |
1164c474 | 7058 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
0743911c FM |
7059 | { (exit 1); exit 1; } |
7060 | fi | |
7061 | ||
25697a35 | 7062 | # Work around bugs in pre-3.0 UWIN ksh. |
0743911c FM |
7063 | for as_var in ENV MAIL MAILPATH |
7064 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
7065 | done | |
25697a35 GS |
7066 | PS1='$ ' |
7067 | PS2='> ' | |
7068 | PS4='+ ' | |
7069 | ||
7070 | # NLS nuisances. | |
1164c474 FM |
7071 | LC_ALL=C |
7072 | export LC_ALL | |
7073 | LANGUAGE=C | |
7074 | export LANGUAGE | |
25697a35 GS |
7075 | |
7076 | # Required to use basename. | |
0743911c FM |
7077 | if expr a : '\(a\)' >/dev/null 2>&1 && |
7078 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25697a35 GS |
7079 | as_expr=expr |
7080 | else | |
7081 | as_expr=false | |
7082 | fi | |
7083 | ||
0743911c | 7084 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
25697a35 GS |
7085 | as_basename=basename |
7086 | else | |
7087 | as_basename=false | |
7088 | fi | |
7089 | ||
7090 | ||
7091 | # Name of the executable. | |
0743911c | 7092 | as_me=`$as_basename -- "$0" || |
25697a35 GS |
7093 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7094 | X"$0" : 'X\(//\)$' \| \ | |
0743911c | 7095 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1164c474 | 7096 | $as_echo X/"$0" | |
0743911c FM |
7097 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
7098 | s//\1/ | |
7099 | q | |
7100 | } | |
7101 | /^X\/\(\/\/\)$/{ | |
7102 | s//\1/ | |
7103 | q | |
7104 | } | |
7105 | /^X\/\(\/\).*/{ | |
7106 | s//\1/ | |
7107 | q | |
7108 | } | |
7109 | s/.*/./; q'` | |
25697a35 | 7110 | |
0743911c FM |
7111 | # CDPATH. |
7112 | $as_unset CDPATH | |
25697a35 | 7113 | |
25697a35 GS |
7114 | |
7115 | ||
7116 | as_lineno_1=$LINENO | |
7117 | as_lineno_2=$LINENO | |
25697a35 | 7118 | test "x$as_lineno_1" != "x$as_lineno_2" && |
0743911c | 7119 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
25697a35 GS |
7120 | |
7121 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
7122 | # uniformly replaced by the line number. The first 'sed' inserts a | |
0743911c FM |
7123 | # line-number line after each line using $LINENO; the second 'sed' |
7124 | # does the real work. The second script uses 'N' to pair each | |
7125 | # line-number line with the line containing $LINENO, and appends | |
7126 | # trailing '-' during substitution so that $LINENO is not a special | |
7127 | # case at line end. | |
25697a35 | 7128 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
0743911c FM |
7129 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
7130 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
7131 | sed -n ' | |
7132 | p | |
7133 | /[$]LINENO/= | |
7134 | ' <$as_myself | | |
25697a35 | 7135 | sed ' |
0743911c FM |
7136 | s/[$]LINENO.*/&-/ |
7137 | t lineno | |
7138 | b | |
7139 | :lineno | |
25697a35 | 7140 | N |
0743911c FM |
7141 | :loop |
7142 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
25697a35 | 7143 | t loop |
0743911c | 7144 | s/-\n.*// |
25697a35 | 7145 | ' >$as_me.lineno && |
0743911c | 7146 | chmod +x "$as_me.lineno" || |
1164c474 | 7147 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
25697a35 GS |
7148 | { (exit 1); exit 1; }; } |
7149 | ||
7150 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7151 | # (the dirname of $[0] is not the place where we might find the | |
0743911c FM |
7152 | # original and so on. Autoconf is especially sensitive to this). |
7153 | . "./$as_me.lineno" | |
25697a35 GS |
7154 | # Exit status is that of the last command. |
7155 | exit | |
7156 | } | |
7157 | ||
7158 | ||
0743911c FM |
7159 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7160 | as_dirname=dirname | |
7161 | else | |
7162 | as_dirname=false | |
7163 | fi | |
7164 | ||
7165 | ECHO_C= ECHO_N= ECHO_T= | |
7166 | case `echo -n x` in | |
7167 | -n*) | |
7168 | case `echo 'x\c'` in | |
7169 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7170 | *) ECHO_C='\c';; | |
7171 | esac;; | |
7172 | *) | |
7173 | ECHO_N='-n';; | |
25697a35 | 7174 | esac |
0743911c FM |
7175 | if expr a : '\(a\)' >/dev/null 2>&1 && |
7176 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25697a35 GS |
7177 | as_expr=expr |
7178 | else | |
7179 | as_expr=false | |
7180 | fi | |
7181 | ||
7182 | rm -f conf$$ conf$$.exe conf$$.file | |
0743911c FM |
7183 | if test -d conf$$.dir; then |
7184 | rm -f conf$$.dir/conf$$.file | |
7185 | else | |
7186 | rm -f conf$$.dir | |
1164c474 FM |
7187 | mkdir conf$$.dir 2>/dev/null |
7188 | fi | |
7189 | if (echo >conf$$.file) 2>/dev/null; then | |
7190 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7191 | as_ln_s='ln -s' | |
7192 | # ... but there are two gotchas: | |
7193 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7194 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
7195 | # In both cases, we have to default to `cp -p'. | |
7196 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
7197 | as_ln_s='cp -p' | |
7198 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7199 | as_ln_s=ln | |
7200 | else | |
25697a35 | 7201 | as_ln_s='cp -p' |
1164c474 | 7202 | fi |
25697a35 GS |
7203 | else |
7204 | as_ln_s='cp -p' | |
7205 | fi | |
0743911c FM |
7206 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7207 | rmdir conf$$.dir 2>/dev/null | |
25697a35 GS |
7208 | |
7209 | if mkdir -p . 2>/dev/null; then | |
7210 | as_mkdir_p=: | |
7211 | else | |
7212 | test -d ./-p && rmdir ./-p | |
7213 | as_mkdir_p=false | |
7214 | fi | |
7215 | ||
0743911c FM |
7216 | if test -x / >/dev/null 2>&1; then |
7217 | as_test_x='test -x' | |
7218 | else | |
7219 | if ls -dL / >/dev/null 2>&1; then | |
7220 | as_ls_L_option=L | |
7221 | else | |
7222 | as_ls_L_option= | |
7223 | fi | |
7224 | as_test_x=' | |
7225 | eval sh -c '\'' | |
7226 | if test -d "$1"; then | |
1164c474 | 7227 | test -d "$1/."; |
0743911c FM |
7228 | else |
7229 | case $1 in | |
1164c474 | 7230 | -*)set "./$1";; |
0743911c FM |
7231 | esac; |
7232 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
7233 | ???[sx]*):;;*)false;;esac;fi | |
7234 | '\'' sh | |
7235 | ' | |
7236 | fi | |
7237 | as_executable_p=$as_test_x | |
25697a35 GS |
7238 | |
7239 | # Sed expression to map a string onto a valid CPP name. | |
7240 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7241 | ||
7242 | # Sed expression to map a string onto a valid variable name. | |
7243 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7244 | ||
7245 | ||
25697a35 GS |
7246 | exec 6>&1 |
7247 | ||
0743911c | 7248 | # Save the log message, to keep $[0] and so on meaningful, and to |
25697a35 | 7249 | # report actual input values of CONFIG_FILES etc. instead of their |
0743911c FM |
7250 | # values after options handling. |
7251 | ac_log=" | |
c814928f | 7252 | This file was extended by sarg $as_me 2.2.7, which was |
1164c474 | 7253 | generated by GNU Autoconf 2.63. Invocation command line was |
25697a35 GS |
7254 | |
7255 | CONFIG_FILES = $CONFIG_FILES | |
7256 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7257 | CONFIG_LINKS = $CONFIG_LINKS | |
7258 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7259 | $ $0 $@ | |
7260 | ||
0743911c FM |
7261 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7262 | " | |
7263 | ||
25697a35 GS |
7264 | _ACEOF |
7265 | ||
1164c474 FM |
7266 | case $ac_config_files in *" |
7267 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7268 | esac | |
7269 | ||
7270 | ||
7271 | ||
7272 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
25697a35 | 7273 | # Files that config.status was made for. |
0743911c | 7274 | config_files="$ac_config_files" |
25697a35 | 7275 | |
0743911c | 7276 | _ACEOF |
25697a35 | 7277 | |
1164c474 | 7278 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
25697a35 GS |
7279 | ac_cs_usage="\ |
7280 | \`$as_me' instantiates files from templates according to the | |
7281 | current configuration. | |
7282 | ||
1164c474 | 7283 | Usage: $0 [OPTION]... [FILE]... |
25697a35 GS |
7284 | |
7285 | -h, --help print this help, then exit | |
0743911c | 7286 | -V, --version print version number and configuration settings, then exit |
1164c474 FM |
7287 | -q, --quiet, --silent |
7288 | do not print progress messages | |
25697a35 GS |
7289 | -d, --debug don't remove temporary files |
7290 | --recheck update $as_me by reconfiguring in the same conditions | |
1164c474 FM |
7291 | --file=FILE[:TEMPLATE] |
7292 | instantiate the configuration file FILE | |
25697a35 GS |
7293 | |
7294 | Configuration files: | |
7295 | $config_files | |
7296 | ||
7297 | Report bugs to <bug-autoconf@gnu.org>." | |
25697a35 | 7298 | |
0743911c | 7299 | _ACEOF |
1164c474 | 7300 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
25697a35 | 7301 | ac_cs_version="\\ |
c814928f | 7302 | sarg config.status 2.2.7 |
1164c474 FM |
7303 | configured by $0, generated by GNU Autoconf 2.63, |
7304 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
25697a35 | 7305 | |
1164c474 | 7306 | Copyright (C) 2008 Free Software Foundation, Inc. |
25697a35 GS |
7307 | This config.status script is free software; the Free Software Foundation |
7308 | gives unlimited permission to copy, distribute and modify it." | |
0743911c FM |
7309 | |
7310 | ac_pwd='$ac_pwd' | |
7311 | srcdir='$srcdir' | |
1164c474 | 7312 | test -n "\$AWK" || AWK=awk |
25697a35 GS |
7313 | _ACEOF |
7314 | ||
1164c474 FM |
7315 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7316 | # The default lists apply if the user does not specify any file. | |
25697a35 GS |
7317 | ac_need_defaults=: |
7318 | while test $# != 0 | |
7319 | do | |
7320 | case $1 in | |
7321 | --*=*) | |
0743911c FM |
7322 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7323 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
25697a35 GS |
7324 | ac_shift=: |
7325 | ;; | |
0743911c | 7326 | *) |
25697a35 GS |
7327 | ac_option=$1 |
7328 | ac_optarg=$2 | |
7329 | ac_shift=shift | |
7330 | ;; | |
25697a35 GS |
7331 | esac |
7332 | ||
7333 | case $ac_option in | |
7334 | # Handling of the options. | |
25697a35 GS |
7335 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7336 | ac_cs_recheck=: ;; | |
0743911c | 7337 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
1164c474 | 7338 | $as_echo "$ac_cs_version"; exit ;; |
0743911c | 7339 | --debug | --debu | --deb | --de | --d | -d ) |
25697a35 GS |
7340 | debug=: ;; |
7341 | --file | --fil | --fi | --f ) | |
7342 | $ac_shift | |
1164c474 FM |
7343 | case $ac_optarg in |
7344 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7345 | esac | |
7346 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
25697a35 | 7347 | ac_need_defaults=false;; |
0743911c | 7348 | --he | --h | --help | --hel | -h ) |
1164c474 | 7349 | $as_echo "$ac_cs_usage"; exit ;; |
25697a35 GS |
7350 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7351 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7352 | ac_cs_silent=: ;; | |
7353 | ||
7354 | # This is an error. | |
1164c474 | 7355 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
0743911c | 7356 | Try \`$0 --help' for more information." >&2 |
25697a35 GS |
7357 | { (exit 1); exit 1; }; } ;; |
7358 | ||
0743911c FM |
7359 | *) ac_config_targets="$ac_config_targets $1" |
7360 | ac_need_defaults=false ;; | |
25697a35 GS |
7361 | |
7362 | esac | |
7363 | shift | |
7364 | done | |
7365 | ||
7366 | ac_configure_extra_args= | |
7367 | ||
7368 | if $ac_cs_silent; then | |
7369 | exec 6>/dev/null | |
7370 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7371 | fi | |
7372 | ||
7373 | _ACEOF | |
1164c474 | 7374 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
25697a35 | 7375 | if \$ac_cs_recheck; then |
1164c474 FM |
7376 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7377 | shift | |
7378 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7379 | CONFIG_SHELL='$SHELL' | |
0743911c | 7380 | export CONFIG_SHELL |
1164c474 | 7381 | exec "\$@" |
25697a35 GS |
7382 | fi |
7383 | ||
7384 | _ACEOF | |
1164c474 | 7385 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
0743911c FM |
7386 | exec 5>>config.log |
7387 | { | |
7388 | echo | |
7389 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7390 | ## Running $as_me. ## | |
7391 | _ASBOX | |
1164c474 | 7392 | $as_echo "$ac_log" |
0743911c | 7393 | } >&5 |
25697a35 | 7394 | |
0743911c | 7395 | _ACEOF |
1164c474 | 7396 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
0743911c | 7397 | _ACEOF |
25697a35 | 7398 | |
1164c474 | 7399 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
0743911c FM |
7400 | |
7401 | # Handling of arguments. | |
25697a35 GS |
7402 | for ac_config_target in $ac_config_targets |
7403 | do | |
0743911c FM |
7404 | case $ac_config_target in |
7405 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7406 | ||
1164c474 FM |
7407 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
7408 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
25697a35 GS |
7409 | { (exit 1); exit 1; }; };; |
7410 | esac | |
7411 | done | |
7412 | ||
0743911c | 7413 | |
25697a35 GS |
7414 | # If the user did not use the arguments to specify the items to instantiate, |
7415 | # then the envvar interface is used. Set only those that are not. | |
7416 | # We use the long form for the default assignment because of an extremely | |
7417 | # bizarre bug on SunOS 4.1.3. | |
7418 | if $ac_need_defaults; then | |
7419 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7420 | fi | |
7421 | ||
7422 | # Have a temporary directory for convenience. Make it in the build tree | |
0743911c | 7423 | # simply because there is no reason against having it here, and in addition, |
25697a35 | 7424 | # creating and moving files from /tmp can sometimes cause problems. |
0743911c FM |
7425 | # Hook for its removal unless debugging. |
7426 | # Note that there is a small window in which the directory will not be cleaned: | |
7427 | # after its creation but before its name has been assigned to `$tmp'. | |
25697a35 GS |
7428 | $debug || |
7429 | { | |
0743911c FM |
7430 | tmp= |
7431 | trap 'exit_status=$? | |
7432 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
7433 | ' 0 | |
25697a35 GS |
7434 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
7435 | } | |
25697a35 GS |
7436 | # Create a (secure) tmp directory for tmp files. |
7437 | ||
7438 | { | |
0743911c | 7439 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
25697a35 GS |
7440 | test -n "$tmp" && test -d "$tmp" |
7441 | } || | |
7442 | { | |
0743911c FM |
7443 | tmp=./conf$$-$RANDOM |
7444 | (umask 077 && mkdir "$tmp") | |
25697a35 GS |
7445 | } || |
7446 | { | |
1164c474 | 7447 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
25697a35 GS |
7448 | { (exit 1); exit 1; } |
7449 | } | |
7450 | ||
1164c474 FM |
7451 | # Set up the scripts for CONFIG_FILES section. |
7452 | # No need to generate them if there are no CONFIG_FILES. | |
7453 | # This happens for instance with `./config.status config.h'. | |
f8ed23e3 | 7454 | if test -n "$CONFIG_FILES"; then |
a61fe05c | 7455 | |
a7ca233d | 7456 | |
1164c474 FM |
7457 | ac_cr='\r' |
7458 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
7459 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
7460 | ac_cs_awk_cr='\\r' | |
7461 | else | |
7462 | ac_cs_awk_cr=$ac_cr | |
7463 | fi | |
7464 | ||
7465 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
7466 | _ACEOF | |
c4dd8d9c | 7467 | |
f8ed23e3 | 7468 | |
1164c474 FM |
7469 | { |
7470 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
7471 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7472 | echo "_ACEOF" | |
7473 | } >conf$$subs.sh || | |
7474 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
7475 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7476 | { (exit 1); exit 1; }; } | |
7477 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
0743911c FM |
7478 | ac_delim='%!_!# ' |
7479 | for ac_last_try in false false false false false :; do | |
1164c474 FM |
7480 | . ./conf$$subs.sh || |
7481 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
7482 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7483 | { (exit 1); exit 1; }; } | |
7484 | ||
7485 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
7486 | if test $ac_delim_n = $ac_delim_num; then | |
0743911c FM |
7487 | break |
7488 | elif $ac_last_try; then | |
1164c474 FM |
7489 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
7490 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
0743911c FM |
7491 | { (exit 1); exit 1; }; } |
7492 | else | |
7493 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
25697a35 | 7494 | fi |
0743911c | 7495 | done |
1164c474 FM |
7496 | rm -f conf$$subs.sh |
7497 | ||
7498 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7499 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
7500 | _ACEOF | |
7501 | sed -n ' | |
7502 | h | |
7503 | s/^/S["/; s/!.*/"]=/ | |
7504 | p | |
7505 | g | |
7506 | s/^[^!]*!// | |
7507 | :repl | |
7508 | t repl | |
7509 | s/'"$ac_delim"'$// | |
7510 | t delim | |
7511 | :nl | |
7512 | h | |
7513 | s/\(.\{148\}\).*/\1/ | |
7514 | t more1 | |
7515 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
7516 | p | |
7517 | n | |
7518 | b repl | |
7519 | :more1 | |
7520 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7521 | p | |
7522 | g | |
7523 | s/.\{148\}// | |
7524 | t nl | |
7525 | :delim | |
7526 | h | |
7527 | s/\(.\{148\}\).*/\1/ | |
7528 | t more2 | |
7529 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
7530 | p | |
7531 | b | |
7532 | :more2 | |
7533 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7534 | p | |
7535 | g | |
7536 | s/.\{148\}// | |
7537 | t delim | |
7538 | ' <conf$$subs.awk | sed ' | |
7539 | /^[^""]/{ | |
7540 | N | |
7541 | s/\n// | |
7542 | } | |
7543 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
7544 | rm -f conf$$subs.awk | |
7545 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7546 | _ACAWK | |
7547 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
7548 | for (key in S) S_is_set[key] = 1 | |
7549 | FS = "\a" | |
9a2c5753 | 7550 | |
1164c474 FM |
7551 | } |
7552 | { | |
7553 | line = $ 0 | |
7554 | nfields = split(line, field, "@") | |
7555 | substed = 0 | |
7556 | len = length(field[1]) | |
7557 | for (i = 2; i < nfields; i++) { | |
7558 | key = field[i] | |
7559 | keylen = length(key) | |
7560 | if (S_is_set[key]) { | |
7561 | value = S[key] | |
7562 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
7563 | len += length(value) + length(field[++i]) | |
7564 | substed = 1 | |
7565 | } else | |
7566 | len += 1 + keylen | |
7567 | } | |
7568 | ||
7569 | print line | |
7570 | } | |
e6414a9d | 7571 | |
1164c474 | 7572 | _ACAWK |
0743911c | 7573 | _ACEOF |
1164c474 FM |
7574 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7575 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
7576 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
7577 | else | |
7578 | cat | |
7579 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
7580 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
7581 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
7582 | { (exit 1); exit 1; }; } | |
25697a35 | 7583 | _ACEOF |
0743911c | 7584 | |
0743911c FM |
7585 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
7586 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7587 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7588 | # (actually we leave an empty line to preserve line numbers). | |
7589 | if test "x$srcdir" = x.; then | |
7590 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
7591 | s/:*\$(srcdir):*/:/ | |
7592 | s/:*\${srcdir}:*/:/ | |
7593 | s/:*@srcdir@:*/:/ | |
7594 | s/^\([^=]*=[ ]*\):*/\1/ | |
7595 | s/:*$// | |
7596 | s/^[^=]*=[ ]*$// | |
7597 | }' | |
7598 | fi | |
7599 | ||
1164c474 | 7600 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
0743911c FM |
7601 | fi # test -n "$CONFIG_FILES" |
7602 | ||
7603 | ||
1164c474 FM |
7604 | eval set X " :F $CONFIG_FILES " |
7605 | shift | |
7606 | for ac_tag | |
0743911c FM |
7607 | do |
7608 | case $ac_tag in | |
7609 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
7610 | esac | |
7611 | case $ac_mode$ac_tag in | |
7612 | :[FHL]*:*);; | |
1164c474 FM |
7613 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
7614 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
0743911c FM |
7615 | { (exit 1); exit 1; }; };; |
7616 | :[FH]-) ac_tag=-:-;; | |
7617 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
25697a35 | 7618 | esac |
0743911c FM |
7619 | ac_save_IFS=$IFS |
7620 | IFS=: | |
7621 | set x $ac_tag | |
7622 | IFS=$ac_save_IFS | |
7623 | shift | |
7624 | ac_file=$1 | |
7625 | shift | |
25697a35 | 7626 | |
0743911c FM |
7627 | case $ac_mode in |
7628 | :L) ac_source=$1;; | |
7629 | :[FH]) | |
7630 | ac_file_inputs= | |
7631 | for ac_f | |
7632 | do | |
7633 | case $ac_f in | |
7634 | -) ac_f="$tmp/stdin";; | |
7635 | *) # Look for the file first in the build tree, then in the source tree | |
7636 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7637 | # because $ac_f cannot contain `:'. | |
7638 | test -f "$ac_f" || | |
7639 | case $ac_f in | |
7640 | [\\/$]*) false;; | |
7641 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7642 | esac || | |
1164c474 FM |
7643 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
7644 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
0743911c FM |
7645 | { (exit 1); exit 1; }; };; |
7646 | esac | |
1164c474 FM |
7647 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
7648 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
0743911c FM |
7649 | done |
7650 | ||
7651 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7652 | # use $as_me), people would be surprised to read: | |
7653 | # /* config.h. Generated by config.status. */ | |
1164c474 FM |
7654 | configure_input='Generated from '` |
7655 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
7656 | `' by configure.' | |
0743911c FM |
7657 | if test x"$ac_file" != x-; then |
7658 | configure_input="$ac_file. $configure_input" | |
1164c474 FM |
7659 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
7660 | $as_echo "$as_me: creating $ac_file" >&6;} | |
0743911c | 7661 | fi |
1164c474 FM |
7662 | # Neutralize special characters interpreted by sed in replacement strings. |
7663 | case $configure_input in #( | |
7664 | *\&* | *\|* | *\\* ) | |
7665 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
7666 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
7667 | *) ac_sed_conf_input=$configure_input;; | |
7668 | esac | |
0743911c FM |
7669 | |
7670 | case $ac_tag in | |
1164c474 FM |
7671 | *:-:* | *:-) cat >"$tmp/stdin" \ |
7672 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
7673 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
7674 | { (exit 1); exit 1; }; } ;; | |
0743911c FM |
7675 | esac |
7676 | ;; | |
7677 | esac | |
7678 | ||
7679 | ac_dir=`$as_dirname -- "$ac_file" || | |
25697a35 GS |
7680 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7681 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7682 | X"$ac_file" : 'X\(//\)$' \| \ | |
0743911c | 7683 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
1164c474 | 7684 | $as_echo X"$ac_file" | |
0743911c FM |
7685 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7686 | s//\1/ | |
7687 | q | |
7688 | } | |
7689 | /^X\(\/\/\)[^/].*/{ | |
7690 | s//\1/ | |
7691 | q | |
7692 | } | |
7693 | /^X\(\/\/\)$/{ | |
7694 | s//\1/ | |
7695 | q | |
7696 | } | |
7697 | /^X\(\/\).*/{ | |
7698 | s//\1/ | |
7699 | q | |
7700 | } | |
7701 | s/.*/./; q'` | |
7702 | { as_dir="$ac_dir" | |
7703 | case $as_dir in #( | |
7704 | -*) as_dir=./$as_dir;; | |
7705 | esac | |
7706 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
25697a35 | 7707 | as_dirs= |
0743911c FM |
7708 | while :; do |
7709 | case $as_dir in #( | |
1164c474 | 7710 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
0743911c FM |
7711 | *) as_qdir=$as_dir;; |
7712 | esac | |
7713 | as_dirs="'$as_qdir' $as_dirs" | |
7714 | as_dir=`$as_dirname -- "$as_dir" || | |
25697a35 GS |
7715 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7716 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7717 | X"$as_dir" : 'X\(//\)$' \| \ | |
0743911c | 7718 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
1164c474 | 7719 | $as_echo X"$as_dir" | |
0743911c FM |
7720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7721 | s//\1/ | |
7722 | q | |
7723 | } | |
7724 | /^X\(\/\/\)[^/].*/{ | |
7725 | s//\1/ | |
7726 | q | |
7727 | } | |
7728 | /^X\(\/\/\)$/{ | |
7729 | s//\1/ | |
7730 | q | |
7731 | } | |
7732 | /^X\(\/\).*/{ | |
7733 | s//\1/ | |
7734 | q | |
7735 | } | |
7736 | s/.*/./; q'` | |
7737 | test -d "$as_dir" && break | |
25697a35 | 7738 | done |
0743911c | 7739 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
1164c474 FM |
7740 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
7741 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
25697a35 | 7742 | { (exit 1); exit 1; }; }; } |
25697a35 GS |
7743 | ac_builddir=. |
7744 | ||
0743911c FM |
7745 | case "$ac_dir" in |
7746 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7747 | *) | |
1164c474 | 7748 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
0743911c | 7749 | # A ".." for each directory in $ac_dir_suffix. |
1164c474 | 7750 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
0743911c FM |
7751 | case $ac_top_builddir_sub in |
7752 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7753 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7754 | esac ;; | |
7755 | esac | |
7756 | ac_abs_top_builddir=$ac_pwd | |
7757 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7758 | # for backward compatibility: | |
7759 | ac_top_builddir=$ac_top_build_prefix | |
25697a35 GS |
7760 | |
7761 | case $srcdir in | |
0743911c | 7762 | .) # We are building in place. |
25697a35 | 7763 | ac_srcdir=. |
0743911c FM |
7764 | ac_top_srcdir=$ac_top_builddir_sub |
7765 | ac_abs_top_srcdir=$ac_pwd ;; | |
7766 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
25697a35 | 7767 | ac_srcdir=$srcdir$ac_dir_suffix; |
0743911c FM |
7768 | ac_top_srcdir=$srcdir |
7769 | ac_abs_top_srcdir=$srcdir ;; | |
7770 | *) # Relative name. | |
7771 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7772 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7773 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
25697a35 | 7774 | esac |
0743911c | 7775 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
25697a35 | 7776 | |
25697a35 | 7777 | |
0743911c FM |
7778 | case $ac_mode in |
7779 | :F) | |
7780 | # | |
7781 | # CONFIG_FILE | |
7782 | # | |
25697a35 | 7783 | |
0743911c | 7784 | _ACEOF |
25697a35 | 7785 | |
1164c474 | 7786 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
0743911c FM |
7787 | # If the template does not know about datarootdir, expand it. |
7788 | # FIXME: This hack should be removed a few years after 2.60. | |
7789 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7790 | ||
1164c474 FM |
7791 | ac_sed_dataroot=' |
7792 | /datarootdir/ { | |
0743911c FM |
7793 | p |
7794 | q | |
7795 | } | |
7796 | /@datadir@/p | |
7797 | /@docdir@/p | |
7798 | /@infodir@/p | |
7799 | /@localedir@/p | |
7800 | /@mandir@/p | |
1164c474 FM |
7801 | ' |
7802 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
0743911c FM |
7803 | *datarootdir*) ac_datarootdir_seen=yes;; |
7804 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
1164c474 FM |
7805 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
7806 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
25697a35 | 7807 | _ACEOF |
1164c474 | 7808 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
0743911c FM |
7809 | ac_datarootdir_hack=' |
7810 | s&@datadir@&$datadir&g | |
7811 | s&@docdir@&$docdir&g | |
7812 | s&@infodir@&$infodir&g | |
7813 | s&@localedir@&$localedir&g | |
7814 | s&@mandir@&$mandir&g | |
7815 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
7816 | esac | |
7817 | _ACEOF | |
7818 | ||
7819 | # Neutralize VPATH when `$srcdir' = `.'. | |
7820 | # Shell code in configure.ac might set extrasub. | |
7821 | # FIXME: do we really want to maintain this feature? | |
1164c474 FM |
7822 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7823 | ac_sed_extra="$ac_vpsub | |
25697a35 GS |
7824 | $extrasub |
7825 | _ACEOF | |
1164c474 | 7826 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
25697a35 GS |
7827 | :t |
7828 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
1164c474 | 7829 | s|@configure_input@|$ac_sed_conf_input|;t t |
0743911c | 7830 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
1164c474 | 7831 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
0743911c FM |
7832 | s&@srcdir@&$ac_srcdir&;t t |
7833 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
7834 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
7835 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
7836 | s&@builddir@&$ac_builddir&;t t | |
7837 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
7838 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
7839 | $ac_datarootdir_hack | |
1164c474 FM |
7840 | " |
7841 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
7842 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
7843 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
7844 | { (exit 1); exit 1; }; } | |
0743911c FM |
7845 | |
7846 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
7847 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
7848 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
1164c474 | 7849 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
0743911c | 7850 | which seems to be undefined. Please make sure it is defined." >&5 |
1164c474 | 7851 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
0743911c FM |
7852 | which seems to be undefined. Please make sure it is defined." >&2;} |
7853 | ||
7854 | rm -f "$tmp/stdin" | |
7855 | case $ac_file in | |
1164c474 FM |
7856 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
7857 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
7858 | esac \ | |
7859 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
7860 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
7861 | { (exit 1); exit 1; }; } | |
0743911c | 7862 | ;; |
25697a35 | 7863 | |
25697a35 | 7864 | |
0743911c FM |
7865 | |
7866 | esac | |
7867 | ||
7868 | done # for ac_tag | |
7869 | ||
25697a35 GS |
7870 | |
7871 | { (exit 0); exit 0; } | |
7872 | _ACEOF | |
7873 | chmod +x $CONFIG_STATUS | |
7874 | ac_clean_files=$ac_clean_files_save | |
7875 | ||
1164c474 FM |
7876 | test $ac_write_fail = 0 || |
7877 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
7878 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
7879 | { (exit 1); exit 1; }; } | |
7880 | ||
25697a35 GS |
7881 | |
7882 | # configure is writing to config.log, and then calls config.status. | |
7883 | # config.status does its own redirection, appending to config.log. | |
7884 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7885 | # by configure, so config.status won't be able to write to it; its | |
7886 | # output is simply discarded. So we exec the FD to /dev/null, | |
7887 | # effectively closing config.log, so it can be properly (re)opened and | |
7888 | # appended to by config.status. When coming back to configure, we | |
7889 | # need to make the FD available again. | |
7890 | if test "$no_create" != yes; then | |
7891 | ac_cs_success=: | |
7892 | ac_config_status_args= | |
7893 | test "$silent" = yes && | |
7894 | ac_config_status_args="$ac_config_status_args --quiet" | |
7895 | exec 5>/dev/null | |
7896 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
7897 | exec 5>>config.log | |
7898 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7899 | # would make configure fail if this is the last instruction. | |
7900 | $ac_cs_success || { (exit 1); exit 1; } | |
7901 | fi | |
1164c474 FM |
7902 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
7903 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
7904 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
7905 | fi | |
25697a35 | 7906 |