Commit | Line | Data |
---|---|---|
bae7f79e ILT |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64 for gold 0.1. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
bae7f79e | 8 | # |
bae7f79e ILT |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
bae7f79e | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bae7f79e ILT |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bae7f79e ILT |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
bae7f79e | 31 | fi |
bae7f79e | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
bae7f79e ILT |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
bae7f79e ILT |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
bae7f79e | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
bae7f79e | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
bae7f79e | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
bae7f79e | 263 | |
81ecdfbb RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bae7f79e ILT |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bae7f79e ILT |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
bae7f79e | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
bae7f79e ILT |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
bae7f79e | 410 | |
bae7f79e ILT |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
bae7f79e | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
bae7f79e | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
bae7f79e | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
bae7f79e | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
bae7f79e | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
bae7f79e ILT |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
bae7f79e ILT |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
bae7f79e ILT |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
bae7f79e | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
bae7f79e | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bae7f79e | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
bae7f79e | 483 | fi |
bae7f79e ILT |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
bae7f79e ILT |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
bae7f79e ILT |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
bae7f79e ILT |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
bae7f79e ILT |
528 | |
529 | # Name of the host. | |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
bae7f79e ILT |
534 | # |
535 | # Initializations. | |
536 | # | |
537 | ac_default_prefix=/usr/local | |
81ecdfbb | 538 | ac_clean_files= |
bae7f79e | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
bae7f79e ILT |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
bae7f79e ILT |
545 | |
546 | # Identity of this package. | |
8486ee48 ILT |
547 | PACKAGE_NAME='gold' |
548 | PACKAGE_TARNAME='gold' | |
549 | PACKAGE_VERSION='0.1' | |
550 | PACKAGE_STRING='gold 0.1' | |
551 | PACKAGE_BUGREPORT='' | |
81ecdfbb | 552 | PACKAGE_URL='' |
bae7f79e ILT |
553 | |
554 | ac_unique_file="gold.cc" | |
54dc6425 ILT |
555 | # Factoring default headers for most tests. |
556 | ac_includes_default="\ | |
557 | #include <stdio.h> | |
81ecdfbb | 558 | #ifdef HAVE_SYS_TYPES_H |
54dc6425 ILT |
559 | # include <sys/types.h> |
560 | #endif | |
81ecdfbb | 561 | #ifdef HAVE_SYS_STAT_H |
54dc6425 ILT |
562 | # include <sys/stat.h> |
563 | #endif | |
81ecdfbb | 564 | #ifdef STDC_HEADERS |
54dc6425 ILT |
565 | # include <stdlib.h> |
566 | # include <stddef.h> | |
567 | #else | |
81ecdfbb | 568 | # ifdef HAVE_STDLIB_H |
54dc6425 ILT |
569 | # include <stdlib.h> |
570 | # endif | |
571 | #endif | |
81ecdfbb RW |
572 | #ifdef HAVE_STRING_H |
573 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
54dc6425 ILT |
574 | # include <memory.h> |
575 | # endif | |
576 | # include <string.h> | |
577 | #endif | |
81ecdfbb | 578 | #ifdef HAVE_STRINGS_H |
54dc6425 ILT |
579 | # include <strings.h> |
580 | #endif | |
81ecdfbb | 581 | #ifdef HAVE_INTTYPES_H |
54dc6425 | 582 | # include <inttypes.h> |
54dc6425 | 583 | #endif |
81ecdfbb RW |
584 | #ifdef HAVE_STDINT_H |
585 | # include <stdint.h> | |
586 | #endif | |
587 | #ifdef HAVE_UNISTD_H | |
54dc6425 ILT |
588 | # include <unistd.h> |
589 | #endif" | |
590 | ||
81ecdfbb RW |
591 | ac_subst_vars='am__EXEEXT_FALSE |
592 | am__EXEEXT_TRUE | |
593 | LTLIBOBJS | |
594 | MAINT | |
595 | MAINTAINER_MODE_FALSE | |
596 | MAINTAINER_MODE_TRUE | |
597 | CXXCPP | |
598 | HAVE_ZLIB_FALSE | |
599 | HAVE_ZLIB_TRUE | |
600 | LIBOBJS | |
601 | LFS_CFLAGS | |
602 | WARN_CXXFLAGS | |
603 | NO_WERROR | |
604 | WARN_CFLAGS | |
ebb300b2 CC |
605 | IFUNC_STATIC_FALSE |
606 | IFUNC_STATIC_TRUE | |
7223e9ca ILT |
607 | IFUNC_FALSE |
608 | IFUNC_TRUE | |
81ecdfbb | 609 | RANDOM_SEED_CFLAGS |
81ecdfbb RW |
610 | TLS_DESCRIPTORS_FALSE |
611 | TLS_DESCRIPTORS_TRUE | |
612 | TLS_GNU2_DIALECT_FALSE | |
613 | TLS_GNU2_DIALECT_TRUE | |
614 | OMP_SUPPORT_FALSE | |
615 | OMP_SUPPORT_TRUE | |
616 | STATIC_TLS_FALSE | |
617 | STATIC_TLS_TRUE | |
618 | TLS_FALSE | |
619 | TLS_TRUE | |
620 | MCMODEL_MEDIUM_FALSE | |
621 | MCMODEL_MEDIUM_TRUE | |
622 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE | |
623 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE | |
328c7c2f ILT |
624 | HAVE_STATIC_FALSE |
625 | HAVE_STATIC_TRUE | |
eb373049 ILT |
626 | NATIVE_OR_CROSS_LINKER_FALSE |
627 | NATIVE_OR_CROSS_LINKER_TRUE | |
81ecdfbb RW |
628 | GCC_FALSE |
629 | GCC_TRUE | |
630 | NATIVE_LINKER_FALSE | |
631 | NATIVE_LINKER_TRUE | |
632 | MSGMERGE | |
633 | MSGFMT | |
634 | MKINSTALLDIRS | |
635 | CATOBJEXT | |
636 | GENCAT | |
637 | INSTOBJEXT | |
638 | DATADIRNAME | |
639 | CATALOGS | |
640 | POSUB | |
641 | GMSGFMT | |
642 | XGETTEXT | |
643 | INCINTL | |
644 | LIBINTL_DEP | |
645 | LIBINTL | |
646 | USE_NLS | |
647 | EGREP | |
648 | GREP | |
649 | CPP | |
650 | LN_S | |
651 | RANLIB | |
652 | YFLAGS | |
653 | YACC | |
654 | am__fastdepCXX_FALSE | |
655 | am__fastdepCXX_TRUE | |
656 | CXXDEPMODE | |
657 | ac_ct_CXX | |
658 | CXXFLAGS | |
659 | CXX | |
660 | am__fastdepCC_FALSE | |
661 | am__fastdepCC_TRUE | |
662 | CCDEPMODE | |
663 | AMDEPBACKSLASH | |
664 | AMDEP_FALSE | |
665 | AMDEP_TRUE | |
666 | am__quote | |
667 | am__include | |
668 | DEPDIR | |
669 | OBJEXT | |
670 | EXEEXT | |
671 | ac_ct_CC | |
672 | CPPFLAGS | |
673 | LDFLAGS | |
674 | CFLAGS | |
675 | CC | |
ebb300b2 | 676 | NM |
81ecdfbb | 677 | TARGETOBJS |
364c7fa5 ILT |
678 | DEFAULT_TARGET_X86_64_FALSE |
679 | DEFAULT_TARGET_X86_64_TRUE | |
680 | DEFAULT_TARGET_SPARC_FALSE | |
681 | DEFAULT_TARGET_SPARC_TRUE | |
682 | DEFAULT_TARGET_POWERPC_FALSE | |
683 | DEFAULT_TARGET_POWERPC_TRUE | |
684 | DEFAULT_TARGET_I386_FALSE | |
685 | DEFAULT_TARGET_I386_TRUE | |
686 | DEFAULT_TARGET_ARM_FALSE | |
687 | DEFAULT_TARGET_ARM_TRUE | |
81ecdfbb RW |
688 | PLUGINS_FALSE |
689 | PLUGINS_TRUE | |
690 | THREADS_FALSE | |
691 | THREADS_TRUE | |
4fda8867 NC |
692 | installed_linker |
693 | install_as_default | |
81ecdfbb RW |
694 | am__untar |
695 | am__tar | |
696 | AMTAR | |
697 | am__leading_dot | |
698 | SET_MAKE | |
699 | AWK | |
700 | mkdir_p | |
701 | MKDIR_P | |
702 | INSTALL_STRIP_PROGRAM | |
703 | STRIP | |
704 | install_sh | |
705 | MAKEINFO | |
706 | AUTOHEADER | |
707 | AUTOMAKE | |
708 | AUTOCONF | |
709 | ACLOCAL | |
710 | VERSION | |
711 | PACKAGE | |
712 | CYGPATH_W | |
713 | am__isrc | |
714 | INSTALL_DATA | |
715 | INSTALL_SCRIPT | |
716 | INSTALL_PROGRAM | |
717 | target_os | |
718 | target_vendor | |
719 | target_cpu | |
720 | target | |
721 | host_os | |
722 | host_vendor | |
723 | host_cpu | |
724 | host | |
725 | build_os | |
726 | build_vendor | |
727 | build_cpu | |
728 | build | |
729 | target_alias | |
730 | host_alias | |
731 | build_alias | |
732 | LIBS | |
733 | ECHO_T | |
734 | ECHO_N | |
735 | ECHO_C | |
736 | DEFS | |
737 | mandir | |
738 | localedir | |
739 | libdir | |
740 | psdir | |
741 | pdfdir | |
742 | dvidir | |
743 | htmldir | |
744 | infodir | |
745 | docdir | |
746 | oldincludedir | |
747 | includedir | |
748 | localstatedir | |
749 | sharedstatedir | |
750 | sysconfdir | |
751 | datadir | |
752 | datarootdir | |
753 | libexecdir | |
754 | sbindir | |
755 | bindir | |
756 | program_transform_name | |
757 | prefix | |
758 | exec_prefix | |
759 | PACKAGE_URL | |
760 | PACKAGE_BUGREPORT | |
761 | PACKAGE_STRING | |
762 | PACKAGE_VERSION | |
763 | PACKAGE_TARNAME | |
764 | PACKAGE_NAME | |
765 | PATH_SEPARATOR | |
766 | SHELL' | |
bae7f79e | 767 | ac_subst_files='' |
81ecdfbb RW |
768 | ac_user_opts=' |
769 | enable_option_checking | |
770 | with_sysroot | |
c7791212 | 771 | enable_ld |
4fda8867 | 772 | enable_gold |
81ecdfbb RW |
773 | enable_threads |
774 | enable_plugins | |
775 | enable_targets | |
776 | enable_dependency_tracking | |
777 | enable_nls | |
778 | enable_werror | |
779 | enable_build_warnings | |
780 | enable_maintainer_mode | |
781 | ' | |
782 | ac_precious_vars='build_alias | |
783 | host_alias | |
784 | target_alias | |
785 | CC | |
786 | CFLAGS | |
787 | LDFLAGS | |
788 | LIBS | |
789 | CPPFLAGS | |
790 | CXX | |
791 | CXXFLAGS | |
792 | CCC | |
793 | YACC | |
794 | YFLAGS | |
795 | CPP | |
796 | CXXCPP' | |
797 | ||
bae7f79e ILT |
798 | |
799 | # Initialize some variables set by options. | |
800 | ac_init_help= | |
801 | ac_init_version=false | |
81ecdfbb RW |
802 | ac_unrecognized_opts= |
803 | ac_unrecognized_sep= | |
bae7f79e ILT |
804 | # The variables have the same names as the options, with |
805 | # dashes changed to underlines. | |
806 | cache_file=/dev/null | |
807 | exec_prefix=NONE | |
808 | no_create= | |
809 | no_recursion= | |
810 | prefix=NONE | |
811 | program_prefix=NONE | |
812 | program_suffix=NONE | |
813 | program_transform_name=s,x,x, | |
814 | silent= | |
815 | site= | |
816 | srcdir= | |
817 | verbose= | |
818 | x_includes=NONE | |
819 | x_libraries=NONE | |
820 | ||
821 | # Installation directory options. | |
822 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
823 | # and all the variables that are supposed to be based on exec_prefix | |
824 | # by default will actually change. | |
825 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 826 | # (The list follows the same order as the GNU Coding Standards.) |
bae7f79e ILT |
827 | bindir='${exec_prefix}/bin' |
828 | sbindir='${exec_prefix}/sbin' | |
829 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
830 | datarootdir='${prefix}/share' |
831 | datadir='${datarootdir}' | |
bae7f79e ILT |
832 | sysconfdir='${prefix}/etc' |
833 | sharedstatedir='${prefix}/com' | |
834 | localstatedir='${prefix}/var' | |
bae7f79e ILT |
835 | includedir='${prefix}/include' |
836 | oldincludedir='/usr/include' | |
81ecdfbb RW |
837 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
838 | infodir='${datarootdir}/info' | |
839 | htmldir='${docdir}' | |
840 | dvidir='${docdir}' | |
841 | pdfdir='${docdir}' | |
842 | psdir='${docdir}' | |
843 | libdir='${exec_prefix}/lib' | |
844 | localedir='${datarootdir}/locale' | |
845 | mandir='${datarootdir}/man' | |
bae7f79e ILT |
846 | |
847 | ac_prev= | |
81ecdfbb | 848 | ac_dashdash= |
bae7f79e ILT |
849 | for ac_option |
850 | do | |
851 | # If the previous option needs an argument, assign it. | |
852 | if test -n "$ac_prev"; then | |
81ecdfbb | 853 | eval $ac_prev=\$ac_option |
bae7f79e ILT |
854 | ac_prev= |
855 | continue | |
856 | fi | |
857 | ||
81ecdfbb RW |
858 | case $ac_option in |
859 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
860 | *) ac_optarg=yes ;; | |
861 | esac | |
bae7f79e ILT |
862 | |
863 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
864 | ||
81ecdfbb RW |
865 | case $ac_dashdash$ac_option in |
866 | --) | |
867 | ac_dashdash=yes ;; | |
bae7f79e ILT |
868 | |
869 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
870 | ac_prev=bindir ;; | |
871 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
872 | bindir=$ac_optarg ;; | |
873 | ||
874 | -build | --build | --buil | --bui | --bu) | |
875 | ac_prev=build_alias ;; | |
876 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
877 | build_alias=$ac_optarg ;; | |
878 | ||
879 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
880 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
881 | ac_prev=cache_file ;; | |
882 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
883 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
884 | cache_file=$ac_optarg ;; | |
885 | ||
886 | --config-cache | -C) | |
887 | cache_file=config.cache ;; | |
888 | ||
81ecdfbb | 889 | -datadir | --datadir | --datadi | --datad) |
bae7f79e | 890 | ac_prev=datadir ;; |
81ecdfbb | 891 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bae7f79e ILT |
892 | datadir=$ac_optarg ;; |
893 | ||
81ecdfbb RW |
894 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
895 | | --dataroo | --dataro | --datar) | |
896 | ac_prev=datarootdir ;; | |
897 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
898 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
899 | datarootdir=$ac_optarg ;; | |
900 | ||
bae7f79e | 901 | -disable-* | --disable-*) |
81ecdfbb | 902 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bae7f79e | 903 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
904 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
905 | as_fn_error "invalid feature name: $ac_useropt" | |
906 | ac_useropt_orig=$ac_useropt | |
907 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
908 | case $ac_user_opts in | |
909 | *" | |
910 | "enable_$ac_useropt" | |
911 | "*) ;; | |
912 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
913 | ac_unrecognized_sep=', ';; | |
914 | esac | |
915 | eval enable_$ac_useropt=no ;; | |
916 | ||
917 | -docdir | --docdir | --docdi | --doc | --do) | |
918 | ac_prev=docdir ;; | |
919 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
920 | docdir=$ac_optarg ;; | |
921 | ||
922 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
923 | ac_prev=dvidir ;; | |
924 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
925 | dvidir=$ac_optarg ;; | |
bae7f79e ILT |
926 | |
927 | -enable-* | --enable-*) | |
81ecdfbb | 928 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bae7f79e | 929 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
930 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
931 | as_fn_error "invalid feature name: $ac_useropt" | |
932 | ac_useropt_orig=$ac_useropt | |
933 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
934 | case $ac_user_opts in | |
935 | *" | |
936 | "enable_$ac_useropt" | |
937 | "*) ;; | |
938 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
939 | ac_unrecognized_sep=', ';; | |
bae7f79e | 940 | esac |
81ecdfbb | 941 | eval enable_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
942 | |
943 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
944 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
945 | | --exec | --exe | --ex) | |
946 | ac_prev=exec_prefix ;; | |
947 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
948 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
949 | | --exec=* | --exe=* | --ex=*) | |
950 | exec_prefix=$ac_optarg ;; | |
951 | ||
952 | -gas | --gas | --ga | --g) | |
953 | # Obsolete; use --with-gas. | |
954 | with_gas=yes ;; | |
955 | ||
956 | -help | --help | --hel | --he | -h) | |
957 | ac_init_help=long ;; | |
958 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
959 | ac_init_help=recursive ;; | |
960 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
961 | ac_init_help=short ;; | |
962 | ||
963 | -host | --host | --hos | --ho) | |
964 | ac_prev=host_alias ;; | |
965 | -host=* | --host=* | --hos=* | --ho=*) | |
966 | host_alias=$ac_optarg ;; | |
967 | ||
81ecdfbb RW |
968 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
969 | ac_prev=htmldir ;; | |
970 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
971 | | --ht=*) | |
972 | htmldir=$ac_optarg ;; | |
973 | ||
bae7f79e ILT |
974 | -includedir | --includedir | --includedi | --included | --include \ |
975 | | --includ | --inclu | --incl | --inc) | |
976 | ac_prev=includedir ;; | |
977 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
978 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
979 | includedir=$ac_optarg ;; | |
980 | ||
981 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
982 | ac_prev=infodir ;; | |
983 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
984 | infodir=$ac_optarg ;; | |
985 | ||
986 | -libdir | --libdir | --libdi | --libd) | |
987 | ac_prev=libdir ;; | |
988 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
989 | libdir=$ac_optarg ;; | |
990 | ||
991 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
992 | | --libexe | --libex | --libe) | |
993 | ac_prev=libexecdir ;; | |
994 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
995 | | --libexe=* | --libex=* | --libe=*) | |
996 | libexecdir=$ac_optarg ;; | |
997 | ||
81ecdfbb RW |
998 | -localedir | --localedir | --localedi | --localed | --locale) |
999 | ac_prev=localedir ;; | |
1000 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1001 | localedir=$ac_optarg ;; | |
1002 | ||
bae7f79e | 1003 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1004 | | --localstate | --localstat | --localsta | --localst | --locals) |
bae7f79e ILT |
1005 | ac_prev=localstatedir ;; |
1006 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1007 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bae7f79e ILT |
1008 | localstatedir=$ac_optarg ;; |
1009 | ||
1010 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1011 | ac_prev=mandir ;; | |
1012 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1013 | mandir=$ac_optarg ;; | |
1014 | ||
1015 | -nfp | --nfp | --nf) | |
1016 | # Obsolete; use --without-fp. | |
1017 | with_fp=no ;; | |
1018 | ||
1019 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1020 | | --no-cr | --no-c | -n) | |
1021 | no_create=yes ;; | |
1022 | ||
1023 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1024 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1025 | no_recursion=yes ;; | |
1026 | ||
1027 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1028 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1029 | | --oldin | --oldi | --old | --ol | --o) | |
1030 | ac_prev=oldincludedir ;; | |
1031 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1032 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1033 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1034 | oldincludedir=$ac_optarg ;; | |
1035 | ||
1036 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1037 | ac_prev=prefix ;; | |
1038 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1039 | prefix=$ac_optarg ;; | |
1040 | ||
1041 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1042 | | --program-pre | --program-pr | --program-p) | |
1043 | ac_prev=program_prefix ;; | |
1044 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1045 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1046 | program_prefix=$ac_optarg ;; | |
1047 | ||
1048 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1049 | | --program-suf | --program-su | --program-s) | |
1050 | ac_prev=program_suffix ;; | |
1051 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1052 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1053 | program_suffix=$ac_optarg ;; | |
1054 | ||
1055 | -program-transform-name | --program-transform-name \ | |
1056 | | --program-transform-nam | --program-transform-na \ | |
1057 | | --program-transform-n | --program-transform- \ | |
1058 | | --program-transform | --program-transfor \ | |
1059 | | --program-transfo | --program-transf \ | |
1060 | | --program-trans | --program-tran \ | |
1061 | | --progr-tra | --program-tr | --program-t) | |
1062 | ac_prev=program_transform_name ;; | |
1063 | -program-transform-name=* | --program-transform-name=* \ | |
1064 | | --program-transform-nam=* | --program-transform-na=* \ | |
1065 | | --program-transform-n=* | --program-transform-=* \ | |
1066 | | --program-transform=* | --program-transfor=* \ | |
1067 | | --program-transfo=* | --program-transf=* \ | |
1068 | | --program-trans=* | --program-tran=* \ | |
1069 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1070 | program_transform_name=$ac_optarg ;; | |
1071 | ||
81ecdfbb RW |
1072 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1073 | ac_prev=pdfdir ;; | |
1074 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1075 | pdfdir=$ac_optarg ;; | |
1076 | ||
1077 | -psdir | --psdir | --psdi | --psd | --ps) | |
1078 | ac_prev=psdir ;; | |
1079 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1080 | psdir=$ac_optarg ;; | |
1081 | ||
bae7f79e ILT |
1082 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1083 | | -silent | --silent | --silen | --sile | --sil) | |
1084 | silent=yes ;; | |
1085 | ||
1086 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1087 | ac_prev=sbindir ;; | |
1088 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1089 | | --sbi=* | --sb=*) | |
1090 | sbindir=$ac_optarg ;; | |
1091 | ||
1092 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1093 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1094 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1095 | | --sha | --sh) | |
1096 | ac_prev=sharedstatedir ;; | |
1097 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1098 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1099 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1100 | | --sha=* | --sh=*) | |
1101 | sharedstatedir=$ac_optarg ;; | |
1102 | ||
1103 | -site | --site | --sit) | |
1104 | ac_prev=site ;; | |
1105 | -site=* | --site=* | --sit=*) | |
1106 | site=$ac_optarg ;; | |
1107 | ||
1108 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1109 | ac_prev=srcdir ;; | |
1110 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1111 | srcdir=$ac_optarg ;; | |
1112 | ||
1113 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1114 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1115 | ac_prev=sysconfdir ;; | |
1116 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1117 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1118 | sysconfdir=$ac_optarg ;; | |
1119 | ||
1120 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1121 | ac_prev=target_alias ;; | |
1122 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1123 | target_alias=$ac_optarg ;; | |
1124 | ||
1125 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1126 | verbose=yes ;; | |
1127 | ||
1128 | -version | --version | --versio | --versi | --vers | -V) | |
1129 | ac_init_version=: ;; | |
1130 | ||
1131 | -with-* | --with-*) | |
81ecdfbb | 1132 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bae7f79e | 1133 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1134 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1135 | as_fn_error "invalid package name: $ac_useropt" | |
1136 | ac_useropt_orig=$ac_useropt | |
1137 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1138 | case $ac_user_opts in | |
1139 | *" | |
1140 | "with_$ac_useropt" | |
1141 | "*) ;; | |
1142 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1143 | ac_unrecognized_sep=', ';; | |
bae7f79e | 1144 | esac |
81ecdfbb | 1145 | eval with_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
1146 | |
1147 | -without-* | --without-*) | |
81ecdfbb | 1148 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bae7f79e | 1149 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1150 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1151 | as_fn_error "invalid package name: $ac_useropt" | |
1152 | ac_useropt_orig=$ac_useropt | |
1153 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1154 | case $ac_user_opts in | |
1155 | *" | |
1156 | "with_$ac_useropt" | |
1157 | "*) ;; | |
1158 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1159 | ac_unrecognized_sep=', ';; | |
1160 | esac | |
1161 | eval with_$ac_useropt=no ;; | |
bae7f79e ILT |
1162 | |
1163 | --x) | |
1164 | # Obsolete; use --with-x. | |
1165 | with_x=yes ;; | |
1166 | ||
1167 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1168 | | --x-incl | --x-inc | --x-in | --x-i) | |
1169 | ac_prev=x_includes ;; | |
1170 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1171 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1172 | x_includes=$ac_optarg ;; | |
1173 | ||
1174 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1175 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1176 | ac_prev=x_libraries ;; | |
1177 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1178 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1179 | x_libraries=$ac_optarg ;; | |
1180 | ||
81ecdfbb RW |
1181 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1182 | Try \`$0 --help' for more information." | |
bae7f79e ILT |
1183 | ;; |
1184 | ||
1185 | *=*) | |
1186 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1187 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1188 | case $ac_envvar in #( |
1189 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1190 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1191 | esac | |
1192 | eval $ac_envvar=\$ac_optarg | |
bae7f79e ILT |
1193 | export $ac_envvar ;; |
1194 | ||
1195 | *) | |
1196 | # FIXME: should be removed in autoconf 3.0. | |
81ecdfbb | 1197 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bae7f79e | 1198 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1199 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bae7f79e ILT |
1200 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1201 | ;; | |
1202 | ||
1203 | esac | |
1204 | done | |
1205 | ||
1206 | if test -n "$ac_prev"; then | |
1207 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
81ecdfbb | 1208 | as_fn_error "missing argument to $ac_option" |
bae7f79e ILT |
1209 | fi |
1210 | ||
81ecdfbb RW |
1211 | if test -n "$ac_unrecognized_opts"; then |
1212 | case $enable_option_checking in | |
1213 | no) ;; | |
1214 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1215 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
bae7f79e | 1216 | esac |
81ecdfbb | 1217 | fi |
bae7f79e | 1218 | |
81ecdfbb RW |
1219 | # Check all directory arguments for consistency. |
1220 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1221 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1222 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1223 | libdir localedir mandir | |
bae7f79e | 1224 | do |
81ecdfbb RW |
1225 | eval ac_val=\$$ac_var |
1226 | # Remove trailing slashes. | |
1227 | case $ac_val in | |
1228 | */ ) | |
1229 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1230 | eval $ac_var=\$ac_val;; | |
1231 | esac | |
1232 | # Be sure to have absolute directory names. | |
bae7f79e | 1233 | case $ac_val in |
81ecdfbb RW |
1234 | [\\/$]* | ?:[\\/]* ) continue;; |
1235 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
bae7f79e | 1236 | esac |
81ecdfbb | 1237 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bae7f79e ILT |
1238 | done |
1239 | ||
1240 | # There might be people who depend on the old broken behavior: `$host' | |
1241 | # used to hold the argument of --host etc. | |
1242 | # FIXME: To remove some day. | |
1243 | build=$build_alias | |
1244 | host=$host_alias | |
1245 | target=$target_alias | |
1246 | ||
1247 | # FIXME: To remove some day. | |
1248 | if test "x$host_alias" != x; then | |
1249 | if test "x$build_alias" = x; then | |
1250 | cross_compiling=maybe | |
81ecdfbb | 1251 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bae7f79e ILT |
1252 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1253 | elif test "x$build_alias" != "x$host_alias"; then | |
1254 | cross_compiling=yes | |
1255 | fi | |
1256 | fi | |
1257 | ||
1258 | ac_tool_prefix= | |
1259 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1260 | ||
1261 | test "$silent" = yes && exec 6>/dev/null | |
1262 | ||
1263 | ||
81ecdfbb RW |
1264 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1265 | ac_ls_di=`ls -di .` && | |
1266 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1267 | as_fn_error "working directory cannot be determined" | |
1268 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1269 | as_fn_error "pwd does not report name of working directory" | |
1270 | ||
1271 | ||
bae7f79e ILT |
1272 | # Find the source files, if location was not specified. |
1273 | if test -z "$srcdir"; then | |
1274 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1275 | # Try the directory containing this script, then the parent directory. |
1276 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1277 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1278 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1279 | X"$as_myself" : 'X\(//\)$' \| \ | |
1280 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1281 | $as_echo X"$as_myself" | | |
1282 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1283 | s//\1/ | |
1284 | q | |
1285 | } | |
1286 | /^X\(\/\/\)[^/].*/{ | |
1287 | s//\1/ | |
1288 | q | |
1289 | } | |
1290 | /^X\(\/\/\)$/{ | |
1291 | s//\1/ | |
1292 | q | |
1293 | } | |
1294 | /^X\(\/\).*/{ | |
1295 | s//\1/ | |
1296 | q | |
1297 | } | |
1298 | s/.*/./; q'` | |
bae7f79e | 1299 | srcdir=$ac_confdir |
81ecdfbb | 1300 | if test ! -r "$srcdir/$ac_unique_file"; then |
bae7f79e ILT |
1301 | srcdir=.. |
1302 | fi | |
1303 | else | |
1304 | ac_srcdir_defaulted=no | |
1305 | fi | |
81ecdfbb RW |
1306 | if test ! -r "$srcdir/$ac_unique_file"; then |
1307 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1308 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1309 | fi | |
1310 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1311 | ac_abs_confdir=`( | |
1312 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1313 | pwd)` | |
1314 | # When building in place, set srcdir=. | |
1315 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1316 | srcdir=. | |
1317 | fi | |
1318 | # Remove unnecessary trailing slashes from srcdir. | |
1319 | # Double slashes in file names in object file debugging info | |
1320 | # mess up M-x gdb in Emacs. | |
1321 | case $srcdir in | |
1322 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1323 | esac | |
1324 | for ac_var in $ac_precious_vars; do | |
1325 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1326 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1327 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1328 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1329 | done | |
bae7f79e ILT |
1330 | |
1331 | # | |
1332 | # Report the --help message. | |
1333 | # | |
1334 | if test "$ac_init_help" = "long"; then | |
1335 | # Omit some internal or obsolete options to make the list less imposing. | |
1336 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1337 | cat <<_ACEOF | |
8486ee48 | 1338 | \`configure' configures gold 0.1 to adapt to many kinds of systems. |
bae7f79e ILT |
1339 | |
1340 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1341 | ||
1342 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1343 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1344 | ||
1345 | Defaults for the options are specified in brackets. | |
1346 | ||
1347 | Configuration: | |
1348 | -h, --help display this help and exit | |
1349 | --help=short display options specific to this package | |
1350 | --help=recursive display the short help of all the included packages | |
1351 | -V, --version display version information and exit | |
1352 | -q, --quiet, --silent do not print \`checking...' messages | |
1353 | --cache-file=FILE cache test results in FILE [disabled] | |
1354 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1355 | -n, --no-create do not create output files | |
1356 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1357 | ||
bae7f79e ILT |
1358 | Installation directories: |
1359 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1360 | [$ac_default_prefix] |
bae7f79e | 1361 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1362 | [PREFIX] |
bae7f79e ILT |
1363 | |
1364 | By default, \`make install' will install all the files in | |
1365 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1366 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1367 | for instance \`--prefix=\$HOME'. | |
1368 | ||
1369 | For better control, use the options below. | |
1370 | ||
1371 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1372 | --bindir=DIR user executables [EPREFIX/bin] |
1373 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1374 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1375 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1376 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1377 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1378 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1379 | --includedir=DIR C header files [PREFIX/include] | |
1380 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1381 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1382 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1383 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1384 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1385 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1386 | --docdir=DIR documentation root [DATAROOTDIR/doc/gold] | |
1387 | --htmldir=DIR html documentation [DOCDIR] | |
1388 | --dvidir=DIR dvi documentation [DOCDIR] | |
1389 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1390 | --psdir=DIR ps documentation [DOCDIR] | |
bae7f79e ILT |
1391 | _ACEOF |
1392 | ||
1393 | cat <<\_ACEOF | |
1394 | ||
1395 | Program names: | |
1396 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1397 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1398 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1399 | ||
1400 | System types: | |
1401 | --build=BUILD configure for building on BUILD [guessed] | |
1402 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1403 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1404 | _ACEOF | |
1405 | fi | |
1406 | ||
1407 | if test -n "$ac_init_help"; then | |
8486ee48 ILT |
1408 | case $ac_init_help in |
1409 | short | recursive ) echo "Configuration of gold 0.1:";; | |
1410 | esac | |
bae7f79e ILT |
1411 | cat <<\_ACEOF |
1412 | ||
1413 | Optional Features: | |
81ecdfbb | 1414 | --disable-option-checking ignore unrecognized --enable/--with options |
bae7f79e ILT |
1415 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1416 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c7791212 NC |
1417 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
1418 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] | |
fe9a4c12 | 1419 | --enable-threads multi-threaded linking |
89fc3421 | 1420 | --enable-plugins linker plugins |
193a53d9 | 1421 | --enable-targets alternative target configurations |
bae7f79e ILT |
1422 | --disable-dependency-tracking speeds up one-time build |
1423 | --enable-dependency-tracking do not reject slow dependency extractors | |
1424 | --disable-nls do not use Native Language Support | |
1425 | --enable-werror treat compile warnings as errors | |
1426 | --enable-build-warnings enable build-time compiler warnings | |
1427 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1428 | (and sometimes confusing) to the casual installer | |
1429 | ||
ad2d6943 ILT |
1430 | Optional Packages: |
1431 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1432 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1433 | --with-sysroot=DIR search for usr/lib et al within DIR | |
1434 | ||
bae7f79e ILT |
1435 | Some influential environment variables: |
1436 | CC C compiler command | |
1437 | CFLAGS C compiler flags | |
1438 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1439 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1440 | LIBS libraries to pass to the linker, e.g. -l<library> |
1441 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1442 | you have headers in a nonstandard directory <include dir> | |
bae7f79e ILT |
1443 | CXX C++ compiler command |
1444 | CXXFLAGS C++ compiler flags | |
81ecdfbb RW |
1445 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1446 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1447 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1448 | This script will default YFLAGS to the empty string to avoid a | |
1449 | default value of `-d' given by some make applications. | |
9a0910c3 | 1450 | CPP C preprocessor |
54dc6425 | 1451 | CXXCPP C++ preprocessor |
bae7f79e ILT |
1452 | |
1453 | Use these variables to override the choices made by `configure' or to help | |
1454 | it to find libraries and programs with nonstandard names/locations. | |
1455 | ||
81ecdfbb | 1456 | Report bugs to the package provider. |
bae7f79e | 1457 | _ACEOF |
81ecdfbb | 1458 | ac_status=$? |
bae7f79e ILT |
1459 | fi |
1460 | ||
1461 | if test "$ac_init_help" = "recursive"; then | |
1462 | # If there are subdirs, report their specific --help. | |
bae7f79e | 1463 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1464 | test -d "$ac_dir" || |
1465 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1466 | continue | |
bae7f79e ILT |
1467 | ac_builddir=. |
1468 | ||
81ecdfbb RW |
1469 | case "$ac_dir" in |
1470 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1471 | *) | |
1472 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1473 | # A ".." for each directory in $ac_dir_suffix. | |
1474 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1475 | case $ac_top_builddir_sub in | |
1476 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1477 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1478 | esac ;; | |
1479 | esac | |
1480 | ac_abs_top_builddir=$ac_pwd | |
1481 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1482 | # for backward compatibility: | |
1483 | ac_top_builddir=$ac_top_build_prefix | |
bae7f79e ILT |
1484 | |
1485 | case $srcdir in | |
81ecdfbb | 1486 | .) # We are building in place. |
bae7f79e | 1487 | ac_srcdir=. |
81ecdfbb RW |
1488 | ac_top_srcdir=$ac_top_builddir_sub |
1489 | ac_abs_top_srcdir=$ac_pwd ;; | |
1490 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bae7f79e | 1491 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1492 | ac_top_srcdir=$srcdir |
1493 | ac_abs_top_srcdir=$srcdir ;; | |
1494 | *) # Relative name. | |
1495 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1496 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1497 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bae7f79e | 1498 | esac |
81ecdfbb RW |
1499 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1500 | ||
1501 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1502 | # Check for guested configure. | |
1503 | if test -f "$ac_srcdir/configure.gnu"; then | |
1504 | echo && | |
1505 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1506 | elif test -f "$ac_srcdir/configure"; then | |
1507 | echo && | |
1508 | $SHELL "$ac_srcdir/configure" --help=recursive | |
bae7f79e | 1509 | else |
81ecdfbb RW |
1510 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1511 | fi || ac_status=$? | |
1512 | cd "$ac_pwd" || { ac_status=$?; break; } | |
bae7f79e ILT |
1513 | done |
1514 | fi | |
1515 | ||
81ecdfbb | 1516 | test -n "$ac_init_help" && exit $ac_status |
bae7f79e ILT |
1517 | if $ac_init_version; then |
1518 | cat <<\_ACEOF | |
8486ee48 | 1519 | gold configure 0.1 |
81ecdfbb | 1520 | generated by GNU Autoconf 2.64 |
bae7f79e | 1521 | |
81ecdfbb | 1522 | Copyright (C) 2009 Free Software Foundation, Inc. |
bae7f79e ILT |
1523 | This configure script is free software; the Free Software Foundation |
1524 | gives unlimited permission to copy, distribute and modify it. | |
1525 | _ACEOF | |
81ecdfbb | 1526 | exit |
bae7f79e | 1527 | fi |
bae7f79e | 1528 | |
81ecdfbb RW |
1529 | ## ------------------------ ## |
1530 | ## Autoconf initialization. ## | |
1531 | ## ------------------------ ## | |
bae7f79e | 1532 | |
81ecdfbb RW |
1533 | # ac_fn_c_try_compile LINENO |
1534 | # -------------------------- | |
1535 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1536 | ac_fn_c_try_compile () | |
bae7f79e | 1537 | { |
81ecdfbb RW |
1538 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1539 | rm -f conftest.$ac_objext | |
1540 | if { { ac_try="$ac_compile" | |
1541 | case "(($ac_try" in | |
1542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1543 | *) ac_try_echo=$ac_try;; | |
1544 | esac | |
1545 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1546 | $as_echo "$ac_try_echo"; } >&5 | |
1547 | (eval "$ac_compile") 2>conftest.err | |
1548 | ac_status=$? | |
1549 | if test -s conftest.err; then | |
1550 | grep -v '^ *+' conftest.err >conftest.er1 | |
1551 | cat conftest.er1 >&5 | |
1552 | mv -f conftest.er1 conftest.err | |
1553 | fi | |
1554 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1555 | test $ac_status = 0; } && { | |
1556 | test -z "$ac_c_werror_flag" || | |
1557 | test ! -s conftest.err | |
1558 | } && test -s conftest.$ac_objext; then : | |
1559 | ac_retval=0 | |
1560 | else | |
1561 | $as_echo "$as_me: failed program was:" >&5 | |
1562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1563 | |
81ecdfbb RW |
1564 | ac_retval=1 |
1565 | fi | |
1566 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1567 | return $ac_retval | |
bae7f79e | 1568 | |
81ecdfbb | 1569 | } # ac_fn_c_try_compile |
bae7f79e | 1570 | |
81ecdfbb RW |
1571 | # ac_fn_cxx_try_compile LINENO |
1572 | # ---------------------------- | |
1573 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1574 | ac_fn_cxx_try_compile () | |
1575 | { | |
1576 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1577 | rm -f conftest.$ac_objext | |
1578 | if { { ac_try="$ac_compile" | |
1579 | case "(($ac_try" in | |
1580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1581 | *) ac_try_echo=$ac_try;; | |
1582 | esac | |
1583 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1584 | $as_echo "$ac_try_echo"; } >&5 | |
1585 | (eval "$ac_compile") 2>conftest.err | |
1586 | ac_status=$? | |
1587 | if test -s conftest.err; then | |
1588 | grep -v '^ *+' conftest.err >conftest.er1 | |
1589 | cat conftest.er1 >&5 | |
1590 | mv -f conftest.er1 conftest.err | |
1591 | fi | |
1592 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1593 | test $ac_status = 0; } && { | |
1594 | test -z "$ac_cxx_werror_flag" || | |
1595 | test ! -s conftest.err | |
1596 | } && test -s conftest.$ac_objext; then : | |
1597 | ac_retval=0 | |
1598 | else | |
1599 | $as_echo "$as_me: failed program was:" >&5 | |
1600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1601 | |
81ecdfbb RW |
1602 | ac_retval=1 |
1603 | fi | |
1604 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1605 | return $ac_retval | |
bae7f79e | 1606 | |
81ecdfbb | 1607 | } # ac_fn_cxx_try_compile |
bae7f79e | 1608 | |
81ecdfbb RW |
1609 | # ac_fn_c_try_cpp LINENO |
1610 | # ---------------------- | |
1611 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1612 | ac_fn_c_try_cpp () | |
1613 | { | |
1614 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1615 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1616 | case "(($ac_try" in | |
1617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1618 | *) ac_try_echo=$ac_try;; | |
1619 | esac | |
1620 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1621 | $as_echo "$ac_try_echo"; } >&5 | |
1622 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1623 | ac_status=$? | |
1624 | if test -s conftest.err; then | |
1625 | grep -v '^ *+' conftest.err >conftest.er1 | |
1626 | cat conftest.er1 >&5 | |
1627 | mv -f conftest.er1 conftest.err | |
1628 | fi | |
1629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1630 | test $ac_status = 0; } >/dev/null && { | |
1631 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1632 | test ! -s conftest.err | |
1633 | }; then : | |
1634 | ac_retval=0 | |
1635 | else | |
1636 | $as_echo "$as_me: failed program was:" >&5 | |
1637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1638 | |
81ecdfbb RW |
1639 | ac_retval=1 |
1640 | fi | |
1641 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1642 | return $ac_retval | |
bae7f79e | 1643 | |
81ecdfbb | 1644 | } # ac_fn_c_try_cpp |
bae7f79e | 1645 | |
81ecdfbb RW |
1646 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1647 | # ------------------------------------------------------- | |
1648 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1649 | # the include files in INCLUDES and setting the cache variable VAR | |
1650 | # accordingly. | |
1651 | ac_fn_c_check_header_mongrel () | |
1652 | { | |
1653 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1654 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1656 | $as_echo_n "checking for $2... " >&6; } | |
1657 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1658 | $as_echo_n "(cached) " >&6 | |
1659 | fi | |
1660 | eval ac_res=\$$3 | |
1661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1662 | $as_echo "$ac_res" >&6; } | |
1663 | else | |
1664 | # Is the header compilable? | |
1665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1666 | $as_echo_n "checking $2 usability... " >&6; } | |
1667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1668 | /* end confdefs.h. */ | |
1669 | $4 | |
1670 | #include <$2> | |
bae7f79e | 1671 | _ACEOF |
81ecdfbb RW |
1672 | if ac_fn_c_try_compile "$LINENO"; then : |
1673 | ac_header_compiler=yes | |
1674 | else | |
1675 | ac_header_compiler=no | |
1676 | fi | |
1677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1679 | $as_echo "$ac_header_compiler" >&6; } | |
bae7f79e | 1680 | |
81ecdfbb RW |
1681 | # Is the header present? |
1682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1683 | $as_echo_n "checking $2 presence... " >&6; } | |
1684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1685 | /* end confdefs.h. */ | |
1686 | #include <$2> | |
1687 | _ACEOF | |
1688 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1689 | ac_header_preproc=yes | |
1690 | else | |
1691 | ac_header_preproc=no | |
1692 | fi | |
1693 | rm -f conftest.err conftest.$ac_ext | |
1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1695 | $as_echo "$ac_header_preproc" >&6; } | |
bae7f79e | 1696 | |
81ecdfbb RW |
1697 | # So? What about this header? |
1698 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1699 | yes:no: ) | |
1700 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1701 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1702 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1703 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1704 | ;; | |
1705 | no:yes:* ) | |
1706 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1707 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1709 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1711 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1713 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1715 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1716 | ;; | |
1717 | esac | |
1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1719 | $as_echo_n "checking for $2... " >&6; } | |
1720 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1721 | $as_echo_n "(cached) " >&6 | |
1722 | else | |
1723 | eval "$3=\$ac_header_compiler" | |
1724 | fi | |
1725 | eval ac_res=\$$3 | |
1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1727 | $as_echo "$ac_res" >&6; } | |
1728 | fi | |
1729 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1730 | |
81ecdfbb | 1731 | } # ac_fn_c_check_header_mongrel |
bae7f79e | 1732 | |
81ecdfbb RW |
1733 | # ac_fn_c_try_run LINENO |
1734 | # ---------------------- | |
1735 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1736 | # that executables *can* be run. | |
1737 | ac_fn_c_try_run () | |
bae7f79e | 1738 | { |
81ecdfbb RW |
1739 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1740 | if { { ac_try="$ac_link" | |
1741 | case "(($ac_try" in | |
1742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1743 | *) ac_try_echo=$ac_try;; | |
1744 | esac | |
1745 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1746 | $as_echo "$ac_try_echo"; } >&5 | |
1747 | (eval "$ac_link") 2>&5 | |
1748 | ac_status=$? | |
1749 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1750 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1751 | { { case "(($ac_try" in | |
1752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1753 | *) ac_try_echo=$ac_try;; | |
1754 | esac | |
1755 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1756 | $as_echo "$ac_try_echo"; } >&5 | |
1757 | (eval "$ac_try") 2>&5 | |
1758 | ac_status=$? | |
1759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1760 | test $ac_status = 0; }; }; then : | |
1761 | ac_retval=0 | |
1762 | else | |
1763 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1764 | $as_echo "$as_me: failed program was:" >&5 | |
1765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1766 | |
81ecdfbb RW |
1767 | ac_retval=$ac_status |
1768 | fi | |
1769 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1770 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1771 | return $ac_retval | |
bae7f79e | 1772 | |
81ecdfbb | 1773 | } # ac_fn_c_try_run |
bae7f79e | 1774 | |
81ecdfbb RW |
1775 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1776 | # ------------------------------------------------------- | |
1777 | # Tests whether HEADER exists and can be compiled using the include files in | |
1778 | # INCLUDES, setting the cache variable VAR accordingly. | |
1779 | ac_fn_c_check_header_compile () | |
1780 | { | |
1781 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1783 | $as_echo_n "checking for $2... " >&6; } | |
1784 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1785 | $as_echo_n "(cached) " >&6 | |
1786 | else | |
1787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1788 | /* end confdefs.h. */ | |
1789 | $4 | |
1790 | #include <$2> | |
1791 | _ACEOF | |
1792 | if ac_fn_c_try_compile "$LINENO"; then : | |
1793 | eval "$3=yes" | |
1794 | else | |
1795 | eval "$3=no" | |
1796 | fi | |
1797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1798 | fi | |
1799 | eval ac_res=\$$3 | |
1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1801 | $as_echo "$ac_res" >&6; } | |
1802 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1803 | |
81ecdfbb | 1804 | } # ac_fn_c_check_header_compile |
bae7f79e | 1805 | |
81ecdfbb RW |
1806 | # ac_fn_c_try_link LINENO |
1807 | # ----------------------- | |
1808 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1809 | ac_fn_c_try_link () | |
1810 | { | |
1811 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1812 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1813 | if { { ac_try="$ac_link" | |
1814 | case "(($ac_try" in | |
1815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1816 | *) ac_try_echo=$ac_try;; | |
1817 | esac | |
1818 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1819 | $as_echo "$ac_try_echo"; } >&5 | |
1820 | (eval "$ac_link") 2>conftest.err | |
1821 | ac_status=$? | |
1822 | if test -s conftest.err; then | |
1823 | grep -v '^ *+' conftest.err >conftest.er1 | |
1824 | cat conftest.er1 >&5 | |
1825 | mv -f conftest.er1 conftest.err | |
1826 | fi | |
1827 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1828 | test $ac_status = 0; } && { | |
1829 | test -z "$ac_c_werror_flag" || | |
1830 | test ! -s conftest.err | |
1831 | } && test -s conftest$ac_exeext && { | |
1832 | test "$cross_compiling" = yes || | |
1833 | $as_test_x conftest$ac_exeext | |
1834 | }; then : | |
1835 | ac_retval=0 | |
1836 | else | |
1837 | $as_echo "$as_me: failed program was:" >&5 | |
1838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1839 | |
81ecdfbb RW |
1840 | ac_retval=1 |
1841 | fi | |
1842 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1843 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1844 | # interfere with the next link command; also delete a directory that is | |
1845 | # left behind by Apple's compiler. We do this before executing the actions. | |
1846 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1847 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1848 | return $ac_retval | |
bae7f79e | 1849 | |
81ecdfbb | 1850 | } # ac_fn_c_try_link |
bae7f79e | 1851 | |
81ecdfbb RW |
1852 | # ac_fn_c_check_func LINENO FUNC VAR |
1853 | # ---------------------------------- | |
1854 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1855 | ac_fn_c_check_func () | |
1856 | { | |
1857 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1859 | $as_echo_n "checking for $2... " >&6; } | |
1860 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1861 | $as_echo_n "(cached) " >&6 | |
1862 | else | |
1863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1864 | /* end confdefs.h. */ | |
1865 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1866 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1867 | #define $2 innocuous_$2 | |
bae7f79e | 1868 | |
81ecdfbb RW |
1869 | /* System header to define __stub macros and hopefully few prototypes, |
1870 | which can conflict with char $2 (); below. | |
1871 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1872 | <limits.h> exists even on freestanding compilers. */ | |
bae7f79e | 1873 | |
81ecdfbb RW |
1874 | #ifdef __STDC__ |
1875 | # include <limits.h> | |
1876 | #else | |
1877 | # include <assert.h> | |
1878 | #endif | |
bae7f79e | 1879 | |
81ecdfbb | 1880 | #undef $2 |
bae7f79e | 1881 | |
81ecdfbb RW |
1882 | /* Override any GCC internal prototype to avoid an error. |
1883 | Use char because int might match the return type of a GCC | |
1884 | builtin and then its argument prototype would still apply. */ | |
1885 | #ifdef __cplusplus | |
1886 | extern "C" | |
1887 | #endif | |
1888 | char $2 (); | |
1889 | /* The GNU C library defines this for functions which it implements | |
1890 | to always fail with ENOSYS. Some functions are actually named | |
1891 | something starting with __ and the normal name is an alias. */ | |
1892 | #if defined __stub_$2 || defined __stub___$2 | |
1893 | choke me | |
1894 | #endif | |
1895 | ||
1896 | int | |
1897 | main () | |
1898 | { | |
1899 | return $2 (); | |
1900 | ; | |
1901 | return 0; | |
1902 | } | |
bae7f79e | 1903 | _ACEOF |
81ecdfbb RW |
1904 | if ac_fn_c_try_link "$LINENO"; then : |
1905 | eval "$3=yes" | |
1906 | else | |
1907 | eval "$3=no" | |
1908 | fi | |
1909 | rm -f core conftest.err conftest.$ac_objext \ | |
1910 | conftest$ac_exeext conftest.$ac_ext | |
1911 | fi | |
1912 | eval ac_res=\$$3 | |
1913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1914 | $as_echo "$ac_res" >&6; } | |
1915 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1916 | |
81ecdfbb | 1917 | } # ac_fn_c_check_func |
bae7f79e | 1918 | |
81ecdfbb RW |
1919 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
1920 | # ------------------------------------ | |
1921 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1922 | ac_fn_c_check_decl () | |
1923 | { | |
1924 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7223e9ca ILT |
1925 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1926 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1928 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
1929 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1930 | $as_echo_n "(cached) " >&6 | |
1931 | else | |
1932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1933 | /* end confdefs.h. */ | |
1934 | $4 | |
1935 | int | |
1936 | main () | |
1937 | { | |
7223e9ca ILT |
1938 | #ifndef $as_decl_name |
1939 | #ifdef __cplusplus | |
1940 | (void) $as_decl_use; | |
1941 | #else | |
1942 | (void) $as_decl_name; | |
1943 | #endif | |
81ecdfbb RW |
1944 | #endif |
1945 | ||
1946 | ; | |
1947 | return 0; | |
1948 | } | |
bae7f79e | 1949 | _ACEOF |
81ecdfbb RW |
1950 | if ac_fn_c_try_compile "$LINENO"; then : |
1951 | eval "$3=yes" | |
1952 | else | |
1953 | eval "$3=no" | |
1954 | fi | |
1955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1956 | fi | |
1957 | eval ac_res=\$$3 | |
1958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1959 | $as_echo "$ac_res" >&6; } | |
1960 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1961 | |
81ecdfbb | 1962 | } # ac_fn_c_check_decl |
bae7f79e | 1963 | |
81ecdfbb RW |
1964 | # ac_fn_cxx_try_cpp LINENO |
1965 | # ------------------------ | |
1966 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1967 | ac_fn_cxx_try_cpp () | |
1968 | { | |
1969 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1970 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1971 | case "(($ac_try" in | |
1972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1973 | *) ac_try_echo=$ac_try;; | |
1974 | esac | |
1975 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1976 | $as_echo "$ac_try_echo"; } >&5 | |
1977 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1978 | ac_status=$? | |
1979 | if test -s conftest.err; then | |
1980 | grep -v '^ *+' conftest.err >conftest.er1 | |
1981 | cat conftest.er1 >&5 | |
1982 | mv -f conftest.er1 conftest.err | |
bae7f79e | 1983 | fi |
81ecdfbb RW |
1984 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1985 | test $ac_status = 0; } >/dev/null && { | |
1986 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1987 | test ! -s conftest.err | |
1988 | }; then : | |
1989 | ac_retval=0 | |
1990 | else | |
1991 | $as_echo "$as_me: failed program was:" >&5 | |
1992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1993 | ||
1994 | ac_retval=1 | |
bae7f79e | 1995 | fi |
81ecdfbb RW |
1996 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1997 | return $ac_retval | |
bae7f79e | 1998 | |
81ecdfbb RW |
1999 | } # ac_fn_cxx_try_cpp |
2000 | ||
2001 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2002 | # --------------------------------------------------------- | |
2003 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2004 | # the include files in INCLUDES and setting the cache variable VAR | |
2005 | # accordingly. | |
2006 | ac_fn_cxx_check_header_mongrel () | |
2007 | { | |
2008 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2009 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2011 | $as_echo_n "checking for $2... " >&6; } | |
2012 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2013 | $as_echo_n "(cached) " >&6 | |
2014 | fi | |
2015 | eval ac_res=\$$3 | |
2016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2017 | $as_echo "$ac_res" >&6; } | |
bae7f79e | 2018 | else |
81ecdfbb RW |
2019 | # Is the header compilable? |
2020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2021 | $as_echo_n "checking $2 usability... " >&6; } | |
2022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2023 | /* end confdefs.h. */ | |
2024 | $4 | |
2025 | #include <$2> | |
2026 | _ACEOF | |
2027 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2028 | ac_header_compiler=yes | |
2029 | else | |
2030 | ac_header_compiler=no | |
bae7f79e | 2031 | fi |
81ecdfbb RW |
2032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2034 | $as_echo "$ac_header_compiler" >&6; } | |
bae7f79e | 2035 | |
81ecdfbb RW |
2036 | # Is the header present? |
2037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2038 | $as_echo_n "checking $2 presence... " >&6; } | |
2039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2040 | /* end confdefs.h. */ | |
2041 | #include <$2> | |
2042 | _ACEOF | |
2043 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2044 | ac_header_preproc=yes | |
2045 | else | |
2046 | ac_header_preproc=no | |
bae7f79e | 2047 | fi |
81ecdfbb RW |
2048 | rm -f conftest.err conftest.$ac_ext |
2049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2050 | $as_echo "$ac_header_preproc" >&6; } | |
bae7f79e | 2051 | |
81ecdfbb RW |
2052 | # So? What about this header? |
2053 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2054 | yes:no: ) | |
2055 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2056 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2057 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2058 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2059 | ;; | |
2060 | no:yes:* ) | |
2061 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2062 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2064 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2066 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2067 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2068 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2069 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2070 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2071 | ;; | |
2072 | esac | |
2073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2074 | $as_echo_n "checking for $2... " >&6; } | |
2075 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2076 | $as_echo_n "(cached) " >&6 | |
2077 | else | |
2078 | eval "$3=\$ac_header_compiler" | |
2079 | fi | |
2080 | eval ac_res=\$$3 | |
2081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2082 | $as_echo "$ac_res" >&6; } | |
2083 | fi | |
2084 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2085 | ||
2086 | } # ac_fn_cxx_check_header_mongrel | |
2087 | ||
2088 | # ac_fn_cxx_try_link LINENO | |
2089 | # ------------------------- | |
2090 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2091 | ac_fn_cxx_try_link () | |
2092 | { | |
2093 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2095 | if { { ac_try="$ac_link" | |
2096 | case "(($ac_try" in | |
2097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2098 | *) ac_try_echo=$ac_try;; | |
2099 | esac | |
2100 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2101 | $as_echo "$ac_try_echo"; } >&5 | |
2102 | (eval "$ac_link") 2>conftest.err | |
2103 | ac_status=$? | |
2104 | if test -s conftest.err; then | |
2105 | grep -v '^ *+' conftest.err >conftest.er1 | |
2106 | cat conftest.er1 >&5 | |
2107 | mv -f conftest.er1 conftest.err | |
2108 | fi | |
2109 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2110 | test $ac_status = 0; } && { | |
2111 | test -z "$ac_cxx_werror_flag" || | |
2112 | test ! -s conftest.err | |
2113 | } && test -s conftest$ac_exeext && { | |
2114 | test "$cross_compiling" = yes || | |
2115 | $as_test_x conftest$ac_exeext | |
2116 | }; then : | |
2117 | ac_retval=0 | |
2118 | else | |
2119 | $as_echo "$as_me: failed program was:" >&5 | |
2120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 2121 | |
81ecdfbb RW |
2122 | ac_retval=1 |
2123 | fi | |
2124 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2125 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2126 | # interfere with the next link command; also delete a directory that is | |
2127 | # left behind by Apple's compiler. We do this before executing the actions. | |
2128 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2129 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2130 | return $ac_retval | |
bae7f79e | 2131 | |
81ecdfbb | 2132 | } # ac_fn_cxx_try_link |
bae7f79e | 2133 | |
81ecdfbb RW |
2134 | # ac_fn_cxx_check_func LINENO FUNC VAR |
2135 | # ------------------------------------ | |
2136 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2137 | ac_fn_cxx_check_func () | |
2138 | { | |
2139 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2141 | $as_echo_n "checking for $2... " >&6; } | |
2142 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2143 | $as_echo_n "(cached) " >&6 | |
2144 | else | |
2145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2146 | /* end confdefs.h. */ | |
2147 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2148 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2149 | #define $2 innocuous_$2 | |
bae7f79e | 2150 | |
81ecdfbb RW |
2151 | /* System header to define __stub macros and hopefully few prototypes, |
2152 | which can conflict with char $2 (); below. | |
2153 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2154 | <limits.h> exists even on freestanding compilers. */ | |
bae7f79e | 2155 | |
81ecdfbb RW |
2156 | #ifdef __STDC__ |
2157 | # include <limits.h> | |
2158 | #else | |
2159 | # include <assert.h> | |
2160 | #endif | |
bae7f79e | 2161 | |
81ecdfbb | 2162 | #undef $2 |
bae7f79e | 2163 | |
81ecdfbb RW |
2164 | /* Override any GCC internal prototype to avoid an error. |
2165 | Use char because int might match the return type of a GCC | |
2166 | builtin and then its argument prototype would still apply. */ | |
2167 | #ifdef __cplusplus | |
2168 | extern "C" | |
2169 | #endif | |
2170 | char $2 (); | |
2171 | /* The GNU C library defines this for functions which it implements | |
2172 | to always fail with ENOSYS. Some functions are actually named | |
2173 | something starting with __ and the normal name is an alias. */ | |
2174 | #if defined __stub_$2 || defined __stub___$2 | |
2175 | choke me | |
2176 | #endif | |
bae7f79e | 2177 | |
81ecdfbb RW |
2178 | int |
2179 | main () | |
2180 | { | |
2181 | return $2 (); | |
2182 | ; | |
2183 | return 0; | |
2184 | } | |
2185 | _ACEOF | |
2186 | if ac_fn_cxx_try_link "$LINENO"; then : | |
2187 | eval "$3=yes" | |
2188 | else | |
2189 | eval "$3=no" | |
2190 | fi | |
2191 | rm -f core conftest.err conftest.$ac_objext \ | |
2192 | conftest$ac_exeext conftest.$ac_ext | |
2193 | fi | |
2194 | eval ac_res=\$$3 | |
2195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2196 | $as_echo "$ac_res" >&6; } | |
2197 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 2198 | |
81ecdfbb | 2199 | } # ac_fn_cxx_check_func |
bae7f79e | 2200 | |
81ecdfbb RW |
2201 | # ac_fn_cxx_check_decl LINENO SYMBOL VAR |
2202 | # -------------------------------------- | |
2203 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2204 | ac_fn_cxx_check_decl () | |
2205 | { | |
2206 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7223e9ca ILT |
2207 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2208 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2210 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
2211 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2212 | $as_echo_n "(cached) " >&6 | |
2213 | else | |
2214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2215 | /* end confdefs.h. */ | |
2216 | $4 | |
2217 | int | |
2218 | main () | |
2219 | { | |
7223e9ca ILT |
2220 | #ifndef $as_decl_name |
2221 | #ifdef __cplusplus | |
2222 | (void) $as_decl_use; | |
2223 | #else | |
2224 | (void) $as_decl_name; | |
2225 | #endif | |
81ecdfbb | 2226 | #endif |
bae7f79e | 2227 | |
81ecdfbb RW |
2228 | ; |
2229 | return 0; | |
2230 | } | |
2231 | _ACEOF | |
2232 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2233 | eval "$3=yes" | |
2234 | else | |
2235 | eval "$3=no" | |
2236 | fi | |
2237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2238 | fi | |
2239 | eval ac_res=\$$3 | |
2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2241 | $as_echo "$ac_res" >&6; } | |
2242 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 2243 | |
81ecdfbb RW |
2244 | } # ac_fn_cxx_check_decl |
2245 | cat >config.log <<_ACEOF | |
2246 | This file contains any messages produced by compilers while | |
2247 | running configure, to aid debugging if configure makes a mistake. | |
8486ee48 | 2248 | |
81ecdfbb RW |
2249 | It was created by gold $as_me 0.1, which was |
2250 | generated by GNU Autoconf 2.64. Invocation command line was | |
8486ee48 | 2251 | |
81ecdfbb | 2252 | $ $0 $@ |
8486ee48 | 2253 | |
81ecdfbb RW |
2254 | _ACEOF |
2255 | exec 5>>config.log | |
2256 | { | |
2257 | cat <<_ASUNAME | |
2258 | ## --------- ## | |
2259 | ## Platform. ## | |
2260 | ## --------- ## | |
8486ee48 | 2261 | |
81ecdfbb RW |
2262 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2263 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2264 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2265 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2266 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
8486ee48 | 2267 | |
81ecdfbb RW |
2268 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2269 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8486ee48 | 2270 | |
81ecdfbb RW |
2271 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2272 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2273 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2274 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2275 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2276 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2277 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
8486ee48 | 2278 | |
81ecdfbb | 2279 | _ASUNAME |
8486ee48 | 2280 | |
81ecdfbb RW |
2281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2282 | for as_dir in $PATH | |
2283 | do | |
2284 | IFS=$as_save_IFS | |
2285 | test -z "$as_dir" && as_dir=. | |
2286 | $as_echo "PATH: $as_dir" | |
2287 | done | |
2288 | IFS=$as_save_IFS | |
bae7f79e | 2289 | |
81ecdfbb | 2290 | } >&5 |
bae7f79e | 2291 | |
81ecdfbb | 2292 | cat >&5 <<_ACEOF |
bae7f79e ILT |
2293 | |
2294 | ||
81ecdfbb RW |
2295 | ## ----------- ## |
2296 | ## Core tests. ## | |
2297 | ## ----------- ## | |
bae7f79e | 2298 | |
81ecdfbb | 2299 | _ACEOF |
1d1f116d CD |
2300 | |
2301 | ||
81ecdfbb RW |
2302 | # Keep a trace of the command line. |
2303 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2304 | # Strip out --silent because we don't want to record it for future runs. | |
2305 | # Also quote any args containing shell meta-characters. | |
2306 | # Make two passes to allow for proper duplicate-argument suppression. | |
2307 | ac_configure_args= | |
2308 | ac_configure_args0= | |
2309 | ac_configure_args1= | |
2310 | ac_must_keep_next=false | |
2311 | for ac_pass in 1 2 | |
2312 | do | |
2313 | for ac_arg | |
2314 | do | |
2315 | case $ac_arg in | |
2316 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2317 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2318 | | -silent | --silent | --silen | --sile | --sil) | |
2319 | continue ;; | |
2320 | *\'*) | |
2321 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2322 | esac | |
2323 | case $ac_pass in | |
2324 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2325 | 2) | |
2326 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2327 | if test $ac_must_keep_next = true; then | |
2328 | ac_must_keep_next=false # Got value, back to normal. | |
2329 | else | |
2330 | case $ac_arg in | |
2331 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2332 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2333 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2334 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2335 | case "$ac_configure_args0 " in | |
2336 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2337 | esac | |
2338 | ;; | |
2339 | -* ) ac_must_keep_next=true ;; | |
2340 | esac | |
2341 | fi | |
2342 | as_fn_append ac_configure_args " '$ac_arg'" | |
2343 | ;; | |
2344 | esac | |
2345 | done | |
2346 | done | |
2347 | { ac_configure_args0=; unset ac_configure_args0;} | |
2348 | { ac_configure_args1=; unset ac_configure_args1;} | |
1d1f116d | 2349 | |
81ecdfbb RW |
2350 | # When interrupted or exit'd, cleanup temporary files, and complete |
2351 | # config.log. We remove comments because anyway the quotes in there | |
2352 | # would cause problems or look ugly. | |
2353 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2354 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2355 | trap 'exit_status=$? | |
2356 | # Save into config.log some information that might help in debugging. | |
2357 | { | |
2358 | echo | |
bae7f79e | 2359 | |
81ecdfbb RW |
2360 | cat <<\_ASBOX |
2361 | ## ---------------- ## | |
2362 | ## Cache variables. ## | |
2363 | ## ---------------- ## | |
2364 | _ASBOX | |
2365 | echo | |
2366 | # The following way of writing the cache mishandles newlines in values, | |
2367 | ( | |
2368 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2369 | eval ac_val=\$$ac_var | |
2370 | case $ac_val in #( | |
2371 | *${as_nl}*) | |
2372 | case $ac_var in #( | |
2373 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2374 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2375 | esac | |
2376 | case $ac_var in #( | |
2377 | _ | IFS | as_nl) ;; #( | |
2378 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2379 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2380 | esac ;; | |
2381 | esac | |
2382 | done | |
2383 | (set) 2>&1 | | |
2384 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2385 | *${as_nl}ac_space=\ *) | |
2386 | sed -n \ | |
2387 | "s/'\''/'\''\\\\'\'''\''/g; | |
2388 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2389 | ;; #( | |
2390 | *) | |
2391 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2392 | ;; | |
2393 | esac | | |
2394 | sort | |
2395 | ) | |
2396 | echo | |
bae7f79e | 2397 | |
81ecdfbb RW |
2398 | cat <<\_ASBOX |
2399 | ## ----------------- ## | |
2400 | ## Output variables. ## | |
2401 | ## ----------------- ## | |
2402 | _ASBOX | |
2403 | echo | |
2404 | for ac_var in $ac_subst_vars | |
2405 | do | |
2406 | eval ac_val=\$$ac_var | |
2407 | case $ac_val in | |
2408 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2409 | esac | |
2410 | $as_echo "$ac_var='\''$ac_val'\''" | |
2411 | done | sort | |
2412 | echo | |
bae7f79e | 2413 | |
81ecdfbb RW |
2414 | if test -n "$ac_subst_files"; then |
2415 | cat <<\_ASBOX | |
2416 | ## ------------------- ## | |
2417 | ## File substitutions. ## | |
2418 | ## ------------------- ## | |
2419 | _ASBOX | |
2420 | echo | |
2421 | for ac_var in $ac_subst_files | |
2422 | do | |
2423 | eval ac_val=\$$ac_var | |
2424 | case $ac_val in | |
2425 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2426 | esac | |
2427 | $as_echo "$ac_var='\''$ac_val'\''" | |
2428 | done | sort | |
2429 | echo | |
2430 | fi | |
bae7f79e | 2431 | |
81ecdfbb RW |
2432 | if test -s confdefs.h; then |
2433 | cat <<\_ASBOX | |
2434 | ## ----------- ## | |
2435 | ## confdefs.h. ## | |
2436 | ## ----------- ## | |
2437 | _ASBOX | |
2438 | echo | |
2439 | cat confdefs.h | |
2440 | echo | |
2441 | fi | |
2442 | test "$ac_signal" != 0 && | |
2443 | $as_echo "$as_me: caught signal $ac_signal" | |
2444 | $as_echo "$as_me: exit $exit_status" | |
2445 | } >&5 | |
2446 | rm -f core *.core core.conftest.* && | |
2447 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2448 | exit $exit_status | |
2449 | ' 0 | |
2450 | for ac_signal in 1 2 13 15; do | |
2451 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
bae7f79e | 2452 | done |
81ecdfbb | 2453 | ac_signal=0 |
bae7f79e | 2454 | |
81ecdfbb RW |
2455 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2456 | rm -f -r conftest* confdefs.h | |
bae7f79e | 2457 | |
81ecdfbb | 2458 | $as_echo "/* confdefs.h */" > confdefs.h |
bae7f79e | 2459 | |
81ecdfbb | 2460 | # Predefined preprocessor variables. |
bae7f79e | 2461 | |
81ecdfbb RW |
2462 | cat >>confdefs.h <<_ACEOF |
2463 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2464 | _ACEOF | |
bae7f79e | 2465 | |
81ecdfbb RW |
2466 | cat >>confdefs.h <<_ACEOF |
2467 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2468 | _ACEOF | |
bae7f79e | 2469 | |
81ecdfbb RW |
2470 | cat >>confdefs.h <<_ACEOF |
2471 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2472 | _ACEOF | |
bae7f79e | 2473 | |
81ecdfbb RW |
2474 | cat >>confdefs.h <<_ACEOF |
2475 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2476 | _ACEOF | |
bae7f79e | 2477 | |
81ecdfbb RW |
2478 | cat >>confdefs.h <<_ACEOF |
2479 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2480 | _ACEOF | |
bae7f79e | 2481 | |
81ecdfbb RW |
2482 | cat >>confdefs.h <<_ACEOF |
2483 | #define PACKAGE_URL "$PACKAGE_URL" | |
2484 | _ACEOF | |
2485 | ||
2486 | ||
2487 | # Let the site file select an alternate cache file if it wants to. | |
2488 | # Prefer an explicitly selected file to automatically selected ones. | |
2489 | ac_site_file1=NONE | |
2490 | ac_site_file2=NONE | |
2491 | if test -n "$CONFIG_SITE"; then | |
2492 | ac_site_file1=$CONFIG_SITE | |
2493 | elif test "x$prefix" != xNONE; then | |
2494 | ac_site_file1=$prefix/share/config.site | |
2495 | ac_site_file2=$prefix/etc/config.site | |
2496 | else | |
2497 | ac_site_file1=$ac_default_prefix/share/config.site | |
2498 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2499 | fi | |
2500 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2501 | do | |
2502 | test "x$ac_site_file" = xNONE && continue | |
2503 | if test -r "$ac_site_file"; then | |
2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2505 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2506 | sed 's/^/| /' "$ac_site_file" >&5 | |
2507 | . "$ac_site_file" | |
2508 | fi | |
2509 | done | |
2510 | ||
2511 | if test -r "$cache_file"; then | |
2512 | # Some versions of bash will fail to source /dev/null (special | |
2513 | # files actually), so we avoid doing that. | |
2514 | if test -f "$cache_file"; then | |
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2516 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2517 | case $cache_file in | |
2518 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2519 | *) . "./$cache_file";; | |
2520 | esac | |
2521 | fi | |
2522 | else | |
2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2524 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2525 | >$cache_file | |
2526 | fi | |
2527 | ||
2528 | # Check that the precious variables saved in the cache have kept the same | |
2529 | # value. | |
2530 | ac_cache_corrupted=false | |
2531 | for ac_var in $ac_precious_vars; do | |
2532 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2533 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2534 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2535 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2536 | case $ac_old_set,$ac_new_set in | |
2537 | set,) | |
2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2539 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2540 | ac_cache_corrupted=: ;; | |
2541 | ,set) | |
2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2543 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2544 | ac_cache_corrupted=: ;; | |
2545 | ,);; | |
2546 | *) | |
2547 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2548 | # differences in whitespace do not lead to failure. | |
2549 | ac_old_val_w=`echo x $ac_old_val` | |
2550 | ac_new_val_w=`echo x $ac_new_val` | |
2551 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2553 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2554 | ac_cache_corrupted=: | |
2555 | else | |
2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2557 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2558 | eval $ac_var=\$ac_old_val | |
2559 | fi | |
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2561 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2563 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2564 | fi;; | |
2565 | esac | |
2566 | # Pass precious variables to config.status. | |
2567 | if test "$ac_new_set" = set; then | |
2568 | case $ac_new_val in | |
2569 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2570 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2571 | esac | |
2572 | case " $ac_configure_args " in | |
2573 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2574 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2575 | esac | |
2576 | fi | |
2577 | done | |
2578 | if $ac_cache_corrupted; then | |
2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2580 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2582 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2583 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2584 | fi | |
2585 | ## -------------------- ## | |
2586 | ## Main body of script. ## | |
2587 | ## -------------------- ## | |
2588 | ||
2589 | ac_ext=c | |
2590 | ac_cpp='$CPP $CPPFLAGS' | |
2591 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2592 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2593 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2594 | ||
2595 | ||
2596 | ||
2597 | ||
2598 | ||
2599 | ||
2600 | ||
2601 | ac_aux_dir= | |
2602 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2603 | for ac_t in install-sh install.sh shtool; do | |
2604 | if test -f "$ac_dir/$ac_t"; then | |
2605 | ac_aux_dir=$ac_dir | |
2606 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2607 | break 2 | |
2608 | fi | |
2609 | done | |
2610 | done | |
2611 | if test -z "$ac_aux_dir"; then | |
2612 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2613 | fi | |
2614 | ||
2615 | # These three variables are undocumented and unsupported, | |
2616 | # and are intended to be withdrawn in a future Autoconf release. | |
2617 | # They can cause serious problems if a builder's source tree is in a directory | |
2618 | # whose full name contains unusual characters. | |
2619 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2620 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2621 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2622 | ||
2623 | ||
2624 | # Make sure we can run config.sub. | |
2625 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2626 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2627 | ||
2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2629 | $as_echo_n "checking build system type... " >&6; } | |
2630 | if test "${ac_cv_build+set}" = set; then : | |
2631 | $as_echo_n "(cached) " >&6 | |
2632 | else | |
2633 | ac_build_alias=$build_alias | |
2634 | test "x$ac_build_alias" = x && | |
2635 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2636 | test "x$ac_build_alias" = x && | |
2637 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2638 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2639 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2640 | ||
2641 | fi | |
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2643 | $as_echo "$ac_cv_build" >&6; } | |
2644 | case $ac_cv_build in | |
2645 | *-*-*) ;; | |
2646 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2647 | esac | |
2648 | build=$ac_cv_build | |
2649 | ac_save_IFS=$IFS; IFS='-' | |
2650 | set x $ac_cv_build | |
2651 | shift | |
2652 | build_cpu=$1 | |
2653 | build_vendor=$2 | |
2654 | shift; shift | |
2655 | # Remember, the first character of IFS is used to create $*, | |
2656 | # except with old shells: | |
2657 | build_os=$* | |
2658 | IFS=$ac_save_IFS | |
2659 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2660 | ||
2661 | ||
2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2663 | $as_echo_n "checking host system type... " >&6; } | |
2664 | if test "${ac_cv_host+set}" = set; then : | |
2665 | $as_echo_n "(cached) " >&6 | |
2666 | else | |
2667 | if test "x$host_alias" = x; then | |
2668 | ac_cv_host=$ac_cv_build | |
2669 | else | |
2670 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2671 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2672 | fi | |
2673 | ||
2674 | fi | |
2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2676 | $as_echo "$ac_cv_host" >&6; } | |
2677 | case $ac_cv_host in | |
2678 | *-*-*) ;; | |
2679 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2680 | esac | |
2681 | host=$ac_cv_host | |
2682 | ac_save_IFS=$IFS; IFS='-' | |
2683 | set x $ac_cv_host | |
2684 | shift | |
2685 | host_cpu=$1 | |
2686 | host_vendor=$2 | |
2687 | shift; shift | |
2688 | # Remember, the first character of IFS is used to create $*, | |
2689 | # except with old shells: | |
2690 | host_os=$* | |
2691 | IFS=$ac_save_IFS | |
2692 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2693 | ||
2694 | ||
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2696 | $as_echo_n "checking target system type... " >&6; } | |
2697 | if test "${ac_cv_target+set}" = set; then : | |
2698 | $as_echo_n "(cached) " >&6 | |
2699 | else | |
2700 | if test "x$target_alias" = x; then | |
2701 | ac_cv_target=$ac_cv_host | |
2702 | else | |
2703 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2704 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2705 | fi | |
2706 | ||
2707 | fi | |
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2709 | $as_echo "$ac_cv_target" >&6; } | |
2710 | case $ac_cv_target in | |
2711 | *-*-*) ;; | |
2712 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2713 | esac | |
2714 | target=$ac_cv_target | |
2715 | ac_save_IFS=$IFS; IFS='-' | |
2716 | set x $ac_cv_target | |
2717 | shift | |
2718 | target_cpu=$1 | |
2719 | target_vendor=$2 | |
2720 | shift; shift | |
2721 | # Remember, the first character of IFS is used to create $*, | |
2722 | # except with old shells: | |
2723 | target_os=$* | |
2724 | IFS=$ac_save_IFS | |
2725 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2726 | ||
2727 | ||
2728 | # The aliases save the names the user supplied, while $host etc. | |
bae7f79e ILT |
2729 | # will get canonicalized. |
2730 | test -n "$target_alias" && | |
2731 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2732 | NONENONEs,x,x, && | |
2733 | program_prefix=${target_alias}- | |
2734 | ||
81ecdfbb RW |
2735 | am__api_version='1.11' |
2736 | ||
bae7f79e ILT |
2737 | # Find a good install program. We prefer a C program (faster), |
2738 | # so one script is as good as another. But avoid the broken or | |
2739 | # incompatible versions: | |
2740 | # SysV /etc/install, /usr/sbin/install | |
2741 | # SunOS /usr/etc/install | |
2742 | # IRIX /sbin/install | |
2743 | # AIX /bin/install | |
2744 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2745 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2746 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2747 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2748 | # OS/2's system install, which has a completely different semantic | |
2749 | # ./install, which can be erroneously created by make from ./install.sh. | |
f5314dd5 | 2750 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2752 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
bae7f79e | 2753 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2754 | if test "${ac_cv_path_install+set}" = set; then : |
2755 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
2756 | else |
2757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2758 | for as_dir in $PATH | |
2759 | do | |
2760 | IFS=$as_save_IFS | |
2761 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2762 | # Account for people who put trailing slashes in PATH elements. |
2763 | case $as_dir/ in #(( | |
2764 | ./ | .// | /[cC]/* | \ | |
bae7f79e | 2765 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2766 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bae7f79e ILT |
2767 | /usr/ucb/* ) ;; |
2768 | *) | |
2769 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2770 | # Don't use installbsd from OSF since it installs stuff as root | |
2771 | # by default. | |
2772 | for ac_prog in ginstall scoinst install; do | |
2773 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2774 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bae7f79e ILT |
2775 | if test $ac_prog = install && |
2776 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2777 | # AIX install. It has an incompatible calling convention. | |
2778 | : | |
2779 | elif test $ac_prog = install && | |
2780 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2781 | # program-specific install script used by HP pwplus--don't use. | |
2782 | : | |
2783 | else | |
f5314dd5 DM |
2784 | rm -rf conftest.one conftest.two conftest.dir |
2785 | echo one > conftest.one | |
2786 | echo two > conftest.two | |
2787 | mkdir conftest.dir | |
2788 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2789 | test -s conftest.one && test -s conftest.two && | |
2790 | test -s conftest.dir/conftest.one && | |
2791 | test -s conftest.dir/conftest.two | |
2792 | then | |
2793 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2794 | break 3 | |
2795 | fi | |
bae7f79e ILT |
2796 | fi |
2797 | fi | |
2798 | done | |
2799 | done | |
2800 | ;; | |
2801 | esac | |
81ecdfbb RW |
2802 | |
2803 | done | |
2804 | IFS=$as_save_IFS | |
bae7f79e | 2805 | |
f5314dd5 | 2806 | rm -rf conftest.one conftest.two conftest.dir |
bae7f79e ILT |
2807 | |
2808 | fi | |
2809 | if test "${ac_cv_path_install+set}" = set; then | |
2810 | INSTALL=$ac_cv_path_install | |
2811 | else | |
f5314dd5 DM |
2812 | # As a last resort, use the slow shell script. Don't cache a |
2813 | # value for INSTALL within a source directory, because that will | |
bae7f79e | 2814 | # break other packages using the cache if that directory is |
f5314dd5 | 2815 | # removed, or if the value is a relative name. |
bae7f79e ILT |
2816 | INSTALL=$ac_install_sh |
2817 | fi | |
2818 | fi | |
81ecdfbb RW |
2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2820 | $as_echo "$INSTALL" >&6; } | |
bae7f79e ILT |
2821 | |
2822 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2823 | # It thinks the first close brace ends the variable substitution. | |
2824 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2825 | ||
2826 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2827 | ||
2828 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2829 | ||
81ecdfbb RW |
2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2831 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
bae7f79e ILT |
2832 | # Just in case |
2833 | sleep 1 | |
2834 | echo timestamp > conftest.file | |
81ecdfbb RW |
2835 | # Reject unsafe characters in $srcdir or the absolute working directory |
2836 | # name. Accept space and tab only in the latter. | |
2837 | am_lf=' | |
2838 | ' | |
2839 | case `pwd` in | |
2840 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2841 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
2842 | esac | |
2843 | case $srcdir in | |
2844 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2845 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2846 | esac | |
2847 | ||
bae7f79e ILT |
2848 | # Do `set' in a subshell so we don't clobber the current shell's |
2849 | # arguments. Must try -L first in case configure is actually a | |
2850 | # symlink; some systems play weird games with the mod time of symlinks | |
2851 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2852 | # directory). | |
2853 | if ( | |
81ecdfbb | 2854 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bae7f79e ILT |
2855 | if test "$*" = "X"; then |
2856 | # -L didn't work. | |
81ecdfbb | 2857 | set X `ls -t "$srcdir/configure" conftest.file` |
bae7f79e ILT |
2858 | fi |
2859 | rm -f conftest.file | |
2860 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2861 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2862 | ||
2863 | # If neither matched, then we have a broken ls. This can happen | |
2864 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2865 | # broken ls alias from the environment. This has actually | |
2866 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
2867 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
2868 | alias in your environment" "$LINENO" 5 | |
bae7f79e ILT |
2869 | fi |
2870 | ||
2871 | test "$2" = conftest.file | |
2872 | ) | |
2873 | then | |
2874 | # Ok. | |
2875 | : | |
2876 | else | |
81ecdfbb RW |
2877 | as_fn_error "newly created file is older than distributed files! |
2878 | Check your system clock" "$LINENO" 5 | |
bae7f79e | 2879 | fi |
81ecdfbb RW |
2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2881 | $as_echo "yes" >&6; } | |
bae7f79e | 2882 | test "$program_prefix" != NONE && |
81ecdfbb | 2883 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bae7f79e ILT |
2884 | # Use a double $ so make ignores it. |
2885 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2886 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2887 | # Double any \ or $. | |
bae7f79e | 2888 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2889 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2890 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
bae7f79e ILT |
2891 | |
2892 | # expand $ac_aux_dir to an absolute path | |
2893 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2894 | ||
81ecdfbb RW |
2895 | if test x"${MISSING+set}" != xset; then |
2896 | case $am_aux_dir in | |
2897 | *\ * | *\ *) | |
2898 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2899 | *) | |
2900 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2901 | esac | |
2902 | fi | |
bae7f79e ILT |
2903 | # Use eval to expand $SHELL |
2904 | if eval "$MISSING --run true"; then | |
2905 | am_missing_run="$MISSING --run " | |
2906 | else | |
2907 | am_missing_run= | |
81ecdfbb RW |
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
2909 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2910 | fi | |
2911 | ||
2912 | if test x"${install_sh}" != xset; then | |
2913 | case $am_aux_dir in | |
2914 | *\ * | *\ *) | |
2915 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2916 | *) | |
2917 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2918 | esac | |
2919 | fi | |
2920 | ||
2921 | # Installed binaries are usually stripped using `strip' when the user | |
2922 | # run `make install-strip'. However `strip' might not be the right | |
2923 | # tool to use in cross-compilation environments, therefore Automake | |
2924 | # will honor the `STRIP' environment variable to overrule this program. | |
2925 | if test "$cross_compiling" != no; then | |
2926 | if test -n "$ac_tool_prefix"; then | |
2927 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2928 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2930 | $as_echo_n "checking for $ac_word... " >&6; } | |
2931 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
2932 | $as_echo_n "(cached) " >&6 | |
2933 | else | |
2934 | if test -n "$STRIP"; then | |
2935 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2936 | else | |
2937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2938 | for as_dir in $PATH | |
2939 | do | |
2940 | IFS=$as_save_IFS | |
2941 | test -z "$as_dir" && as_dir=. | |
2942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2943 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2944 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2946 | break 2 | |
2947 | fi | |
2948 | done | |
2949 | done | |
2950 | IFS=$as_save_IFS | |
2951 | ||
2952 | fi | |
2953 | fi | |
2954 | STRIP=$ac_cv_prog_STRIP | |
2955 | if test -n "$STRIP"; then | |
2956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2957 | $as_echo "$STRIP" >&6; } | |
2958 | else | |
2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2960 | $as_echo "no" >&6; } | |
2961 | fi | |
2962 | ||
2963 | ||
2964 | fi | |
2965 | if test -z "$ac_cv_prog_STRIP"; then | |
2966 | ac_ct_STRIP=$STRIP | |
2967 | # Extract the first word of "strip", so it can be a program name with args. | |
2968 | set dummy strip; ac_word=$2 | |
2969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2970 | $as_echo_n "checking for $ac_word... " >&6; } | |
2971 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
2972 | $as_echo_n "(cached) " >&6 | |
2973 | else | |
2974 | if test -n "$ac_ct_STRIP"; then | |
2975 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2976 | else | |
2977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2978 | for as_dir in $PATH | |
2979 | do | |
2980 | IFS=$as_save_IFS | |
2981 | test -z "$as_dir" && as_dir=. | |
2982 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2983 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2984 | ac_cv_prog_ac_ct_STRIP="strip" | |
2985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2986 | break 2 | |
2987 | fi | |
2988 | done | |
2989 | done | |
2990 | IFS=$as_save_IFS | |
2991 | ||
2992 | fi | |
2993 | fi | |
2994 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2995 | if test -n "$ac_ct_STRIP"; then | |
2996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2997 | $as_echo "$ac_ct_STRIP" >&6; } | |
2998 | else | |
2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3000 | $as_echo "no" >&6; } | |
3001 | fi | |
3002 | ||
3003 | if test "x$ac_ct_STRIP" = x; then | |
3004 | STRIP=":" | |
3005 | else | |
3006 | case $cross_compiling:$ac_tool_warned in | |
3007 | yes:) | |
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3009 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3010 | ac_tool_warned=yes ;; | |
3011 | esac | |
3012 | STRIP=$ac_ct_STRIP | |
3013 | fi | |
3014 | else | |
3015 | STRIP="$ac_cv_prog_STRIP" | |
3016 | fi | |
3017 | ||
3018 | fi | |
3019 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3020 | ||
3021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3022 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3023 | if test -z "$MKDIR_P"; then | |
3024 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3025 | $as_echo_n "(cached) " >&6 | |
3026 | else | |
3027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3028 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3029 | do | |
3030 | IFS=$as_save_IFS | |
3031 | test -z "$as_dir" && as_dir=. | |
3032 | for ac_prog in mkdir gmkdir; do | |
3033 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3034 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3035 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3036 | 'mkdir (GNU coreutils) '* | \ | |
3037 | 'mkdir (coreutils) '* | \ | |
3038 | 'mkdir (fileutils) '4.1*) | |
3039 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3040 | break 3;; | |
3041 | esac | |
3042 | done | |
3043 | done | |
bae7f79e | 3044 | done |
81ecdfbb RW |
3045 | IFS=$as_save_IFS |
3046 | ||
3047 | fi | |
3048 | ||
3049 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3050 | MKDIR_P="$ac_cv_path_mkdir -p" | |
bae7f79e | 3051 | else |
81ecdfbb RW |
3052 | # As a last resort, use the slow shell script. Don't cache a |
3053 | # value for MKDIR_P within a source directory, because that will | |
3054 | # break other packages using the cache if that directory is | |
3055 | # removed, or if the value is a relative name. | |
3056 | test -d ./--version && rmdir ./--version | |
3057 | MKDIR_P="$ac_install_sh -d" | |
bae7f79e ILT |
3058 | fi |
3059 | fi | |
81ecdfbb RW |
3060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3061 | $as_echo "$MKDIR_P" >&6; } | |
3062 | ||
3063 | mkdir_p="$MKDIR_P" | |
3064 | case $mkdir_p in | |
3065 | [\\/$]* | ?:[\\/]*) ;; | |
3066 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3067 | esac | |
bae7f79e ILT |
3068 | |
3069 | for ac_prog in gawk mawk nawk awk | |
3070 | do | |
3071 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3072 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3074 | $as_echo_n "checking for $ac_word... " >&6; } | |
3075 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3076 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
3077 | else |
3078 | if test -n "$AWK"; then | |
3079 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3080 | else | |
3081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3082 | for as_dir in $PATH | |
3083 | do | |
3084 | IFS=$as_save_IFS | |
3085 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3086 | for ac_exec_ext in '' $ac_executable_extensions; do |
3087 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bae7f79e | 3088 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bae7f79e ILT |
3090 | break 2 |
3091 | fi | |
3092 | done | |
81ecdfbb RW |
3093 | done |
3094 | IFS=$as_save_IFS | |
bae7f79e ILT |
3095 | |
3096 | fi | |
3097 | fi | |
3098 | AWK=$ac_cv_prog_AWK | |
3099 | if test -n "$AWK"; then | |
81ecdfbb RW |
3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3101 | $as_echo "$AWK" >&6; } | |
bae7f79e | 3102 | else |
81ecdfbb RW |
3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3104 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3105 | fi |
3106 | ||
81ecdfbb | 3107 | |
bae7f79e ILT |
3108 | test -n "$AWK" && break |
3109 | done | |
3110 | ||
81ecdfbb RW |
3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3112 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3113 | set x ${MAKE-make} | |
3114 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3115 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3116 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
3117 | else |
3118 | cat >conftest.make <<\_ACEOF | |
81ecdfbb | 3119 | SHELL = /bin/sh |
bae7f79e | 3120 | all: |
81ecdfbb | 3121 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bae7f79e ILT |
3122 | _ACEOF |
3123 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
81ecdfbb RW |
3124 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3125 | *@@@%%%=?*=@@@%%%*) | |
3126 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3127 | *) | |
3128 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3129 | esac | |
bae7f79e ILT |
3130 | rm -f conftest.make |
3131 | fi | |
81ecdfbb RW |
3132 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3134 | $as_echo "yes" >&6; } | |
bae7f79e ILT |
3135 | SET_MAKE= |
3136 | else | |
81ecdfbb RW |
3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3138 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3139 | SET_MAKE="MAKE=${MAKE-make}" |
3140 | fi | |
3141 | ||
3142 | rm -rf .tst 2>/dev/null | |
3143 | mkdir .tst 2>/dev/null | |
3144 | if test -d .tst; then | |
3145 | am__leading_dot=. | |
3146 | else | |
3147 | am__leading_dot=_ | |
3148 | fi | |
3149 | rmdir .tst 2>/dev/null | |
3150 | ||
81ecdfbb RW |
3151 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3152 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3153 | # is not polluted with repeated "-I." | |
3154 | am__isrc=' -I$(srcdir)' | |
3155 | # test to see if srcdir already configured | |
3156 | if test -f $srcdir/config.status; then | |
3157 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3158 | fi | |
bae7f79e ILT |
3159 | fi |
3160 | ||
3161 | # test whether we have cygpath | |
3162 | if test -z "$CYGPATH_W"; then | |
3163 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3164 | CYGPATH_W='cygpath -w' | |
3165 | else | |
3166 | CYGPATH_W=echo | |
3167 | fi | |
3168 | fi | |
3169 | ||
3170 | ||
3171 | # Define the identity of the package. | |
8486ee48 ILT |
3172 | PACKAGE='gold' |
3173 | VERSION='0.1' | |
bae7f79e ILT |
3174 | |
3175 | ||
3176 | cat >>confdefs.h <<_ACEOF | |
3177 | #define PACKAGE "$PACKAGE" | |
3178 | _ACEOF | |
3179 | ||
3180 | ||
3181 | cat >>confdefs.h <<_ACEOF | |
3182 | #define VERSION "$VERSION" | |
3183 | _ACEOF | |
3184 | ||
3185 | # Some tools Automake needs. | |
3186 | ||
3187 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3188 | ||
3189 | ||
3190 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3191 | ||
3192 | ||
3193 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3194 | ||
3195 | ||
3196 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3197 | ||
3198 | ||
3199 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3200 | ||
81ecdfbb RW |
3201 | # We need awk for the "check" target. The system "awk" is bad on |
3202 | # some platforms. | |
3203 | # Always define AMTAR for backward compatibility. | |
bae7f79e | 3204 | |
81ecdfbb | 3205 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
bae7f79e | 3206 | |
81ecdfbb RW |
3207 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
3208 | ||
3209 | ||
3210 | ||
3211 | ||
3212 | ||
3213 | ||
3214 | ac_config_headers="$ac_config_headers config.h:config.in" | |
3215 | ||
3216 | ||
3217 | ||
3218 | # Check whether --with-sysroot was given. | |
3219 | if test "${with_sysroot+set}" = set; then : | |
3220 | withval=$with_sysroot; sysroot=$withval | |
bae7f79e | 3221 | else |
81ecdfbb | 3222 | sysroot=no |
bae7f79e ILT |
3223 | fi |
3224 | ||
81ecdfbb RW |
3225 | |
3226 | if test "$sysroot" = "yes"; then | |
3227 | sysroot='${exec_prefix}/${target_alias}/sys-root' | |
3228 | elif test "$sysroot" = "no"; then | |
3229 | sysroot= | |
ad2d6943 ILT |
3230 | fi |
3231 | ||
3232 | sysroot_relocatable=0 | |
3233 | if test -n "$sysroot"; then | |
3234 | case "sysroot" in | |
3235 | "${prefix}" | "${prefix}/"* | \ | |
3236 | "${exec_prefix}" | "${exec_prefix}/"* | \ | |
3237 | '${prefix}' | '${prefix}/'*| \ | |
3238 | '${exec_prefix}' | '${exec_prefix}/'*) | |
3239 | sysroot_relocatable=1 | |
3240 | ;; | |
3241 | esac | |
3242 | fi | |
3243 | ||
3244 | ||
3245 | cat >>confdefs.h <<_ACEOF | |
3246 | #define TARGET_SYSTEM_ROOT "$sysroot" | |
3247 | _ACEOF | |
3248 | ||
3249 | ||
3250 | cat >>confdefs.h <<_ACEOF | |
3251 | #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable | |
3252 | _ACEOF | |
3253 | ||
3254 | ||
c7791212 NC |
3255 | |
3256 | default_ld= | |
3257 | # Check whether --enable-ld was given. | |
3258 | if test "${enable_ld+set}" = set; then : | |
3259 | enableval=$enable_ld; case "${enableval}" in | |
3260 | default) | |
3261 | default_ld=ld.bfd | |
3262 | ;; | |
3263 | esac | |
3264 | fi | |
3265 | ||
3266 | ||
4fda8867 NC |
3267 | # Check whether --enable-gold was given. |
3268 | if test "${enable_gold+set}" = set; then : | |
3269 | enableval=$enable_gold; case "${enableval}" in | |
c7791212 NC |
3270 | yes|default) |
3271 | if test x${default_ld} = x; then | |
3272 | install_as_default=yes | |
3273 | fi | |
4fda8867 NC |
3274 | installed_linker=ld.gold |
3275 | ;; | |
c7791212 | 3276 | no) |
4fda8867 NC |
3277 | ;; |
3278 | *) | |
3279 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
3280 | ;; | |
3281 | esac | |
3282 | else | |
c7791212 NC |
3283 | install_as_default=no |
3284 | installed_linker=ld.gold | |
4fda8867 NC |
3285 | fi |
3286 | ||
3287 | ||
3288 | ||
3289 | ||
81ecdfbb RW |
3290 | # Check whether --enable-threads was given. |
3291 | if test "${enable_threads+set}" = set; then : | |
3292 | enableval=$enable_threads; case "${enableval}" in | |
fe9a4c12 ILT |
3293 | yes | "") threads=yes ;; |
3294 | no) threads=no ;; | |
3295 | *) threads=yes ;; | |
3296 | esac | |
3297 | else | |
3298 | threads=no | |
81ecdfbb RW |
3299 | fi |
3300 | ||
fe9a4c12 ILT |
3301 | if test "$threads" = "yes"; then |
3302 | ||
81ecdfbb | 3303 | $as_echo "#define ENABLE_THREADS 1" >>confdefs.h |
fe9a4c12 ILT |
3304 | |
3305 | fi | |
81ecdfbb | 3306 | if test "$threads" = "yes"; then |
fe9a4c12 ILT |
3307 | THREADS_TRUE= |
3308 | THREADS_FALSE='#' | |
3309 | else | |
3310 | THREADS_TRUE='#' | |
3311 | THREADS_FALSE= | |
3312 | fi | |
3313 | ||
3314 | ||
81ecdfbb RW |
3315 | # Check whether --enable-plugins was given. |
3316 | if test "${enable_plugins+set}" = set; then : | |
3317 | enableval=$enable_plugins; case "${enableval}" in | |
89fc3421 CC |
3318 | yes | "") plugins=yes ;; |
3319 | no) plugins=no ;; | |
3320 | *) plugins=yes ;; | |
3321 | esac | |
3322 | else | |
3323 | plugins=no | |
81ecdfbb RW |
3324 | fi |
3325 | ||
89fc3421 CC |
3326 | if test "$plugins" = "yes"; then |
3327 | ||
81ecdfbb | 3328 | $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h |
89fc3421 CC |
3329 | |
3330 | fi | |
81ecdfbb | 3331 | if test "$plugins" = "yes"; then |
89fc3421 CC |
3332 | PLUGINS_TRUE= |
3333 | PLUGINS_FALSE='#' | |
3334 | else | |
3335 | PLUGINS_TRUE='#' | |
3336 | PLUGINS_FALSE= | |
3337 | fi | |
3338 | ||
3339 | ||
81ecdfbb RW |
3340 | # Check whether --enable-targets was given. |
3341 | if test "${enable_targets+set}" = set; then : | |
3342 | enableval=$enable_targets; case "${enableval}" in | |
193a53d9 | 3343 | yes | "") |
81ecdfbb | 3344 | as_fn_error "--enable-targets option must specify target names or 'all'" "$LINENO" 5 |
193a53d9 ILT |
3345 | ;; |
3346 | no) | |
3347 | enable_targets= | |
3348 | ;; | |
3349 | *) | |
3350 | enable_targets=$enableval | |
3351 | ;; | |
3352 | esac | |
3353 | else | |
3354 | # For now, enable all targets by default | |
3355 | enable_targets=all | |
3356 | ||
81ecdfbb RW |
3357 | fi |
3358 | ||
193a53d9 ILT |
3359 | |
3360 | # Canonicalize the enabled targets. | |
3361 | if test -n "$enable_targets"; then | |
3362 | for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do | |
3363 | result=`$ac_config_sub $targ 2>/dev/null` | |
3364 | if test -n "$result"; then | |
3365 | canon_targets="$canon_targets $result" | |
3366 | else | |
3367 | # Permit unrecognized target names, like "all". | |
3368 | canon_targets="$canon_targets $targ" | |
3369 | fi | |
3370 | done | |
3371 | fi | |
3372 | ||
3373 | # See which specific instantiations we need. | |
6df6da4a ILT |
3374 | targetobjs= |
3375 | all_targets= | |
fbfba508 ILT |
3376 | default_machine= |
3377 | default_size= | |
3378 | default_big_endian= | |
36959681 | 3379 | default_osabi=ELFOSABI_NONE |
fbfba508 ILT |
3380 | targ_32_little= |
3381 | targ_32_big= | |
81ecdfbb RW |
3382 | targ_64_little= |
3383 | targ_64_big= | |
3384 | for targ in $target $canon_targets; do | |
3385 | if test "$targ" = "all"; then | |
3386 | targ_32_little=yes | |
3387 | targ_32_big=yes | |
3388 | targ_64_little=yes | |
3389 | targ_64_big=yes | |
3390 | all_targets=yes | |
3391 | else | |
3392 | . ${srcdir}/configure.tgt | |
bae7f79e | 3393 | |
81ecdfbb RW |
3394 | if test "$targ_obj" = "UNKNOWN"; then |
3395 | as_fn_error "\"unsupported target $targ\"" "$LINENO" 5 | |
3396 | else | |
3397 | targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)" | |
3398 | if test "$targ_extra_obj" != ""; then | |
3399 | targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)" | |
3400 | fi | |
3401 | if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then | |
3402 | if test "$targ_big_endian" = "true" \ | |
3403 | -o "$targ_extra_big_endian" = "true"; then | |
3404 | targ_32_big=yes | |
3405 | fi | |
3406 | if test "$targ_big_endian" = "false" \ | |
3407 | -o "$targ_extra_big_endian" = "false"; then | |
3408 | targ_32_little=yes | |
3409 | fi | |
3410 | fi | |
3411 | if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then | |
3412 | if test "$targ_big_endian" = "true" \ | |
3413 | -o "$targ_extra_big_endian" = "true"; then | |
3414 | targ_64_big=yes | |
3415 | fi | |
3416 | if test "$targ_big_endian" = "false" \ | |
3417 | -o "$targ_extra_big_endian" = "false"; then | |
3418 | targ_64_little=yes | |
3419 | fi | |
3420 | fi | |
bae7f79e | 3421 | |
81ecdfbb RW |
3422 | if test "$target" = "$targ"; then |
3423 | default_machine=$targ_machine | |
3424 | default_size=$targ_size | |
3425 | default_big_endian=$targ_big_endian | |
3426 | default_osabi=$targ_osabi | |
364c7fa5 ILT |
3427 | |
3428 | if test "$targ_obj" = "arm"; then | |
3429 | DEFAULT_TARGET_ARM_TRUE= | |
3430 | DEFAULT_TARGET_ARM_FALSE='#' | |
3431 | else | |
3432 | DEFAULT_TARGET_ARM_TRUE='#' | |
3433 | DEFAULT_TARGET_ARM_FALSE= | |
3434 | fi | |
3435 | ||
3436 | if test "$targ_obj" = "i386"; then | |
3437 | DEFAULT_TARGET_I386_TRUE= | |
3438 | DEFAULT_TARGET_I386_FALSE='#' | |
3439 | else | |
3440 | DEFAULT_TARGET_I386_TRUE='#' | |
3441 | DEFAULT_TARGET_I386_FALSE= | |
3442 | fi | |
3443 | ||
3444 | if test "$targ_obj" = "powerpc"; then | |
3445 | DEFAULT_TARGET_POWERPC_TRUE= | |
3446 | DEFAULT_TARGET_POWERPC_FALSE='#' | |
3447 | else | |
3448 | DEFAULT_TARGET_POWERPC_TRUE='#' | |
3449 | DEFAULT_TARGET_POWERPC_FALSE= | |
3450 | fi | |
3451 | ||
3452 | if test "$targ_obj" = "sparc"; then | |
3453 | DEFAULT_TARGET_SPARC_TRUE= | |
3454 | DEFAULT_TARGET_SPARC_FALSE='#' | |
3455 | else | |
3456 | DEFAULT_TARGET_SPARC_TRUE='#' | |
3457 | DEFAULT_TARGET_SPARC_FALSE= | |
3458 | fi | |
3459 | ||
3460 | if test "$targ_obj" = "x86_64"; then | |
3461 | DEFAULT_TARGET_X86_64_TRUE= | |
3462 | DEFAULT_TARGET_X86_64_FALSE='#' | |
3463 | else | |
3464 | DEFAULT_TARGET_X86_64_TRUE='#' | |
3465 | DEFAULT_TARGET_X86_64_FALSE= | |
3466 | fi | |
3467 | ||
81ecdfbb RW |
3468 | fi |
3469 | fi | |
bae7f79e | 3470 | fi |
81ecdfbb | 3471 | done |
bae7f79e | 3472 | |
6cfaf60b | 3473 | # Remove any duplicates. |
9109c078 ILT |
3474 | to="" |
3475 | for t in $targetobjs; do | |
3476 | case " $to " in | |
3477 | *" $t "*) ;; | |
3478 | *) to="$to $t" ;; | |
3479 | esac | |
3480 | done | |
3481 | targetobjs=$to | |
6cfaf60b | 3482 | |
81ecdfbb | 3483 | if test -n "$targ_32_little"; then |
bae7f79e | 3484 | |
81ecdfbb | 3485 | $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h |
bae7f79e | 3486 | |
537b5f51 | 3487 | fi |
81ecdfbb | 3488 | if test -n "$targ_32_big"; then |
537b5f51 | 3489 | |
81ecdfbb | 3490 | $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h |
fa99aa09 | 3491 | |
81ecdfbb RW |
3492 | fi |
3493 | if test -n "$targ_64_little"; then | |
fa99aa09 | 3494 | |
81ecdfbb | 3495 | $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h |
fa99aa09 | 3496 | |
81ecdfbb RW |
3497 | fi |
3498 | if test -n "$targ_64_big"; then | |
fa99aa09 | 3499 | |
81ecdfbb | 3500 | $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h |
bae7f79e | 3501 | |
bae7f79e | 3502 | fi |
bae7f79e | 3503 | |
81ecdfbb RW |
3504 | if test -n "$all_targets"; then |
3505 | TARGETOBJS='$(ALL_TARGETOBJS)' | |
3506 | else | |
3507 | TARGETOBJS="$targetobjs" | |
3508 | fi | |
bae7f79e | 3509 | |
bae7f79e ILT |
3510 | |
3511 | ||
81ecdfbb RW |
3512 | cat >>confdefs.h <<_ACEOF |
3513 | #define GOLD_DEFAULT_MACHINE $default_machine | |
3514 | _ACEOF | |
bae7f79e | 3515 | |
bae7f79e | 3516 | |
81ecdfbb RW |
3517 | cat >>confdefs.h <<_ACEOF |
3518 | #define GOLD_DEFAULT_SIZE $default_size | |
3519 | _ACEOF | |
bae7f79e | 3520 | |
bae7f79e | 3521 | |
81ecdfbb RW |
3522 | cat >>confdefs.h <<_ACEOF |
3523 | #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian | |
3524 | _ACEOF | |
bae7f79e | 3525 | |
bae7f79e | 3526 | |
81ecdfbb RW |
3527 | cat >>confdefs.h <<_ACEOF |
3528 | #define GOLD_DEFAULT_OSABI $default_osabi | |
3529 | _ACEOF | |
bae7f79e ILT |
3530 | |
3531 | ||
ebb300b2 CC |
3532 | if test -n "$ac_tool_prefix"; then |
3533 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
3534 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
3535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3536 | $as_echo_n "checking for $ac_word... " >&6; } | |
3537 | if test "${ac_cv_prog_NM+set}" = set; then : | |
3538 | $as_echo_n "(cached) " >&6 | |
3539 | else | |
3540 | if test -n "$NM"; then | |
3541 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
3542 | else | |
3543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3544 | for as_dir in $PATH | |
3545 | do | |
3546 | IFS=$as_save_IFS | |
3547 | test -z "$as_dir" && as_dir=. | |
3548 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3550 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
3551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3552 | break 2 | |
3553 | fi | |
3554 | done | |
3555 | done | |
3556 | IFS=$as_save_IFS | |
3557 | ||
3558 | fi | |
3559 | fi | |
3560 | NM=$ac_cv_prog_NM | |
3561 | if test -n "$NM"; then | |
3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 | |
3563 | $as_echo "$NM" >&6; } | |
3564 | else | |
3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3566 | $as_echo "no" >&6; } | |
3567 | fi | |
3568 | ||
3569 | ||
3570 | fi | |
3571 | if test -z "$ac_cv_prog_NM"; then | |
3572 | ac_ct_NM=$NM | |
3573 | # Extract the first word of "nm", so it can be a program name with args. | |
3574 | set dummy nm; ac_word=$2 | |
3575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3576 | $as_echo_n "checking for $ac_word... " >&6; } | |
3577 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then : | |
3578 | $as_echo_n "(cached) " >&6 | |
3579 | else | |
3580 | if test -n "$ac_ct_NM"; then | |
3581 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
3582 | else | |
3583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3584 | for as_dir in $PATH | |
3585 | do | |
3586 | IFS=$as_save_IFS | |
3587 | test -z "$as_dir" && as_dir=. | |
3588 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3590 | ac_cv_prog_ac_ct_NM="nm" | |
3591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3592 | break 2 | |
3593 | fi | |
3594 | done | |
3595 | done | |
3596 | IFS=$as_save_IFS | |
3597 | ||
3598 | fi | |
3599 | fi | |
3600 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
3601 | if test -n "$ac_ct_NM"; then | |
3602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 | |
3603 | $as_echo "$ac_ct_NM" >&6; } | |
3604 | else | |
3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3606 | $as_echo "no" >&6; } | |
3607 | fi | |
3608 | ||
3609 | if test "x$ac_ct_NM" = x; then | |
3610 | NM="" | |
3611 | else | |
3612 | case $cross_compiling:$ac_tool_warned in | |
3613 | yes:) | |
3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3615 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3616 | ac_tool_warned=yes ;; | |
3617 | esac | |
3618 | NM=$ac_ct_NM | |
3619 | fi | |
3620 | else | |
3621 | NM="$ac_cv_prog_NM" | |
3622 | fi | |
3623 | ||
3624 | ||
81ecdfbb RW |
3625 | ac_ext=c |
3626 | ac_cpp='$CPP $CPPFLAGS' | |
3627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3628 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3629 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3630 | if test -n "$ac_tool_prefix"; then | |
3631 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3632 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3634 | $as_echo_n "checking for $ac_word... " >&6; } | |
3635 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3636 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3637 | else |
81ecdfbb RW |
3638 | if test -n "$CC"; then |
3639 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3640 | else | |
3641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3642 | for as_dir in $PATH | |
3643 | do | |
3644 | IFS=$as_save_IFS | |
3645 | test -z "$as_dir" && as_dir=. | |
3646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3647 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3648 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3650 | break 2 | |
3651 | fi | |
3652 | done | |
3653 | done | |
3654 | IFS=$as_save_IFS | |
bae7f79e | 3655 | |
81ecdfbb RW |
3656 | fi |
3657 | fi | |
3658 | CC=$ac_cv_prog_CC | |
3659 | if test -n "$CC"; then | |
3660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3661 | $as_echo "$CC" >&6; } | |
3662 | else | |
3663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3664 | $as_echo "no" >&6; } | |
3665 | fi | |
bae7f79e ILT |
3666 | |
3667 | ||
bae7f79e | 3668 | fi |
81ecdfbb RW |
3669 | if test -z "$ac_cv_prog_CC"; then |
3670 | ac_ct_CC=$CC | |
3671 | # Extract the first word of "gcc", so it can be a program name with args. | |
3672 | set dummy gcc; ac_word=$2 | |
3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3674 | $as_echo_n "checking for $ac_word... " >&6; } | |
3675 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3676 | $as_echo_n "(cached) " >&6 | |
3677 | else | |
3678 | if test -n "$ac_ct_CC"; then | |
3679 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3680 | else | |
3681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3682 | for as_dir in $PATH | |
3683 | do | |
3684 | IFS=$as_save_IFS | |
3685 | test -z "$as_dir" && as_dir=. | |
3686 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3687 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3688 | ac_cv_prog_ac_ct_CC="gcc" | |
3689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3690 | break 2 | |
3691 | fi | |
3692 | done | |
3693 | done | |
3694 | IFS=$as_save_IFS | |
bae7f79e | 3695 | |
81ecdfbb RW |
3696 | fi |
3697 | fi | |
3698 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3699 | if test -n "$ac_ct_CC"; then | |
3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3701 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 3702 | else |
81ecdfbb RW |
3703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3704 | $as_echo "no" >&6; } | |
bae7f79e | 3705 | fi |
bae7f79e | 3706 | |
81ecdfbb RW |
3707 | if test "x$ac_ct_CC" = x; then |
3708 | CC="" | |
3709 | else | |
3710 | case $cross_compiling:$ac_tool_warned in | |
3711 | yes:) | |
3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3713 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3714 | ac_tool_warned=yes ;; | |
bae7f79e | 3715 | esac |
81ecdfbb RW |
3716 | CC=$ac_ct_CC |
3717 | fi | |
bae7f79e | 3718 | else |
81ecdfbb | 3719 | CC="$ac_cv_prog_CC" |
bae7f79e ILT |
3720 | fi |
3721 | ||
81ecdfbb RW |
3722 | if test -z "$CC"; then |
3723 | if test -n "$ac_tool_prefix"; then | |
3724 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3725 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3727 | $as_echo_n "checking for $ac_word... " >&6; } | |
3728 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3729 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3730 | else |
81ecdfbb RW |
3731 | if test -n "$CC"; then |
3732 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3733 | else | |
3734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
bae7f79e ILT |
3735 | for as_dir in $PATH |
3736 | do | |
3737 | IFS=$as_save_IFS | |
3738 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3739 | for ac_exec_ext in '' $ac_executable_extensions; do |
3740 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3741 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bae7f79e ILT |
3743 | break 2 |
3744 | fi | |
3745 | done | |
81ecdfbb RW |
3746 | done |
3747 | IFS=$as_save_IFS | |
bae7f79e | 3748 | |
bae7f79e | 3749 | fi |
81ecdfbb RW |
3750 | fi |
3751 | CC=$ac_cv_prog_CC | |
3752 | if test -n "$CC"; then | |
3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3754 | $as_echo "$CC" >&6; } | |
bae7f79e | 3755 | else |
81ecdfbb RW |
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3757 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3758 | fi |
3759 | ||
3760 | ||
81ecdfbb RW |
3761 | fi |
3762 | fi | |
3763 | if test -z "$CC"; then | |
3764 | # Extract the first word of "cc", so it can be a program name with args. | |
3765 | set dummy cc; ac_word=$2 | |
3766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3767 | $as_echo_n "checking for $ac_word... " >&6; } | |
3768 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3769 | $as_echo_n "(cached) " >&6 | |
3770 | else | |
3771 | if test -n "$CC"; then | |
3772 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3773 | else | |
3774 | ac_prog_rejected=no | |
3775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3776 | for as_dir in $PATH | |
3777 | do | |
3778 | IFS=$as_save_IFS | |
3779 | test -z "$as_dir" && as_dir=. | |
3780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3782 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3783 | ac_prog_rejected=yes | |
3784 | continue | |
3785 | fi | |
3786 | ac_cv_prog_CC="cc" | |
3787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3788 | break 2 | |
3789 | fi | |
3790 | done | |
3791 | done | |
3792 | IFS=$as_save_IFS | |
bae7f79e | 3793 | |
81ecdfbb RW |
3794 | if test $ac_prog_rejected = yes; then |
3795 | # We found a bogon in the path, so make sure we never use it. | |
3796 | set dummy $ac_cv_prog_CC | |
3797 | shift | |
3798 | if test $# != 0; then | |
3799 | # We chose a different compiler from the bogus one. | |
3800 | # However, it has the same basename, so the bogon will be chosen | |
3801 | # first if we set CC to just the basename; use the full file name. | |
3802 | shift | |
3803 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
bae7f79e | 3804 | fi |
81ecdfbb RW |
3805 | fi |
3806 | fi | |
3807 | fi | |
3808 | CC=$ac_cv_prog_CC | |
3809 | if test -n "$CC"; then | |
3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3811 | $as_echo "$CC" >&6; } | |
3812 | else | |
3813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3814 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3815 | fi |
3816 | ||
81ecdfbb RW |
3817 | |
3818 | fi | |
3819 | if test -z "$CC"; then | |
3820 | if test -n "$ac_tool_prefix"; then | |
3821 | for ac_prog in cl.exe | |
3822 | do | |
3823 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3824 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3826 | $as_echo_n "checking for $ac_word... " >&6; } | |
3827 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3828 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3829 | else |
81ecdfbb RW |
3830 | if test -n "$CC"; then |
3831 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3832 | else | |
3833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3834 | for as_dir in $PATH | |
3835 | do | |
3836 | IFS=$as_save_IFS | |
3837 | test -z "$as_dir" && as_dir=. | |
3838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3839 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3840 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3842 | break 2 | |
3843 | fi | |
3844 | done | |
3845 | done | |
3846 | IFS=$as_save_IFS | |
3847 | ||
3848 | fi | |
3849 | fi | |
3850 | CC=$ac_cv_prog_CC | |
3851 | if test -n "$CC"; then | |
3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3853 | $as_echo "$CC" >&6; } | |
3854 | else | |
3855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3856 | $as_echo "no" >&6; } | |
bae7f79e | 3857 | fi |
bae7f79e | 3858 | |
81ecdfbb RW |
3859 | |
3860 | test -n "$CC" && break | |
3861 | done | |
3862 | fi | |
3863 | if test -z "$CC"; then | |
3864 | ac_ct_CC=$CC | |
3865 | for ac_prog in cl.exe | |
3866 | do | |
3867 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3868 | set dummy $ac_prog; ac_word=$2 | |
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3870 | $as_echo_n "checking for $ac_word... " >&6; } | |
3871 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3872 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3873 | else |
81ecdfbb RW |
3874 | if test -n "$ac_ct_CC"; then |
3875 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3876 | else | |
3877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3878 | for as_dir in $PATH | |
3879 | do | |
3880 | IFS=$as_save_IFS | |
3881 | test -z "$as_dir" && as_dir=. | |
3882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3884 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3886 | break 2 | |
3887 | fi | |
3888 | done | |
3889 | done | |
3890 | IFS=$as_save_IFS | |
3891 | ||
bae7f79e | 3892 | fi |
81ecdfbb RW |
3893 | fi |
3894 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3895 | if test -n "$ac_ct_CC"; then | |
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3897 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 3898 | else |
81ecdfbb RW |
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3900 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3901 | fi |
3902 | ||
bae7f79e | 3903 | |
81ecdfbb RW |
3904 | test -n "$ac_ct_CC" && break |
3905 | done | |
bae7f79e | 3906 | |
81ecdfbb RW |
3907 | if test "x$ac_ct_CC" = x; then |
3908 | CC="" | |
bae7f79e | 3909 | else |
81ecdfbb RW |
3910 | case $cross_compiling:$ac_tool_warned in |
3911 | yes:) | |
3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3913 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3914 | ac_tool_warned=yes ;; | |
3915 | esac | |
3916 | CC=$ac_ct_CC | |
bae7f79e | 3917 | fi |
bae7f79e ILT |
3918 | fi |
3919 | ||
bae7f79e | 3920 | fi |
bae7f79e | 3921 | |
81ecdfbb RW |
3922 | |
3923 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3924 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3925 | as_fn_error "no acceptable C compiler found in \$PATH | |
3926 | See \`config.log' for more details." "$LINENO" 5; } | |
3927 | ||
3928 | # Provide some information about the compiler. | |
3929 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3930 | set X $ac_compile | |
3931 | ac_compiler=$2 | |
3932 | for ac_option in --version -v -V -qversion; do | |
3933 | { { ac_try="$ac_compiler $ac_option >&5" | |
3934 | case "(($ac_try" in | |
3935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3936 | *) ac_try_echo=$ac_try;; | |
bae7f79e | 3937 | esac |
81ecdfbb RW |
3938 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3939 | $as_echo "$ac_try_echo"; } >&5 | |
3940 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3941 | ac_status=$? | |
3942 | if test -s conftest.err; then | |
3943 | sed '10a\ | |
3944 | ... rest of stderr output deleted ... | |
3945 | 10q' conftest.err >conftest.er1 | |
3946 | cat conftest.er1 >&5 | |
3947 | rm -f conftest.er1 conftest.err | |
3948 | fi | |
3949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3950 | test $ac_status = 0; } | |
3951 | done | |
3952 | ||
3953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3954 | /* end confdefs.h. */ | |
3955 | ||
3956 | int | |
3957 | main () | |
3958 | { | |
3959 | ||
3960 | ; | |
3961 | return 0; | |
3962 | } | |
3963 | _ACEOF | |
3964 | ac_clean_files_save=$ac_clean_files | |
3965 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
3966 | # Try to create an executable without -o first, disregard a.out. | |
3967 | # It will help us diagnose broken compilers, and finding out an intuition | |
3968 | # of exeext. | |
3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3970 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3971 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3972 | ||
3973 | # The possible output files: | |
3974 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3975 | ||
3976 | ac_rmfiles= | |
3977 | for ac_file in $ac_files | |
3978 | do | |
3979 | case $ac_file in | |
3980 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3981 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3982 | esac | |
3983 | done | |
3984 | rm -f $ac_rmfiles | |
3985 | ||
3986 | if { { ac_try="$ac_link_default" | |
3987 | case "(($ac_try" in | |
3988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3989 | *) ac_try_echo=$ac_try;; | |
3990 | esac | |
3991 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3992 | $as_echo "$ac_try_echo"; } >&5 | |
3993 | (eval "$ac_link_default") 2>&5 | |
3994 | ac_status=$? | |
3995 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3996 | test $ac_status = 0; }; then : | |
3997 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3998 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3999 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4000 | # so that the user can short-circuit this test for compilers unknown to | |
4001 | # Autoconf. | |
4002 | for ac_file in $ac_files '' | |
4003 | do | |
4004 | test -f "$ac_file" || continue | |
4005 | case $ac_file in | |
4006 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
4007 | ;; | |
4008 | [ab].out ) | |
4009 | # We found the default executable, but exeext='' is most | |
4010 | # certainly right. | |
4011 | break;; | |
4012 | *.* ) | |
4013 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
4014 | then :; else | |
4015 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4016 | fi | |
4017 | # We set ac_cv_exeext here because the later test for it is not | |
4018 | # safe: cross compilers may not add the suffix if given an `-o' | |
4019 | # argument, so we may need to know it at that point already. | |
4020 | # Even if this section looks crufty: it has the advantage of | |
4021 | # actually working. | |
4022 | break;; | |
4023 | * ) | |
4024 | break;; | |
4025 | esac | |
4026 | done | |
4027 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
4028 | ||
bae7f79e | 4029 | else |
81ecdfbb | 4030 | ac_file='' |
bae7f79e | 4031 | fi |
81ecdfbb RW |
4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
4033 | $as_echo "$ac_file" >&6; } | |
4034 | if test -z "$ac_file"; then : | |
4035 | $as_echo "$as_me: failed program was:" >&5 | |
4036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 4037 | |
81ecdfbb RW |
4038 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4039 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4040 | { as_fn_set_status 77 | |
4041 | as_fn_error "C compiler cannot create executables | |
4042 | See \`config.log' for more details." "$LINENO" 5; }; } | |
4043 | fi | |
4044 | ac_exeext=$ac_cv_exeext | |
bae7f79e | 4045 | |
81ecdfbb RW |
4046 | # Check that the compiler produces executables we can run. If not, either |
4047 | # the compiler is broken, or we cross compile. | |
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
4049 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
4050 | # If not cross compiling, check that we can run a simple program. | |
4051 | if test "$cross_compiling" != yes; then | |
4052 | if { ac_try='./$ac_file' | |
4053 | { { case "(($ac_try" in | |
4054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4055 | *) ac_try_echo=$ac_try;; | |
4056 | esac | |
4057 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4058 | $as_echo "$ac_try_echo"; } >&5 | |
4059 | (eval "$ac_try") 2>&5 | |
4060 | ac_status=$? | |
4061 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4062 | test $ac_status = 0; }; }; then | |
4063 | cross_compiling=no | |
4064 | else | |
4065 | if test "$cross_compiling" = maybe; then | |
4066 | cross_compiling=yes | |
bae7f79e | 4067 | else |
81ecdfbb RW |
4068 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4069 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4070 | as_fn_error "cannot run C compiled programs. | |
4071 | If you meant to cross compile, use \`--host'. | |
4072 | See \`config.log' for more details." "$LINENO" 5; } | |
bae7f79e | 4073 | fi |
bae7f79e | 4074 | fi |
81ecdfbb RW |
4075 | fi |
4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4077 | $as_echo "yes" >&6; } | |
bae7f79e | 4078 | |
81ecdfbb RW |
4079 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
4080 | ac_clean_files=$ac_clean_files_save | |
4081 | # Check that the compiler produces executables we can run. If not, either | |
4082 | # the compiler is broken, or we cross compile. | |
4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4084 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4086 | $as_echo "$cross_compiling" >&6; } | |
4087 | ||
4088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4089 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4090 | if { { ac_try="$ac_link" | |
4091 | case "(($ac_try" in | |
4092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4093 | *) ac_try_echo=$ac_try;; | |
4094 | esac | |
4095 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4096 | $as_echo "$ac_try_echo"; } >&5 | |
4097 | (eval "$ac_link") 2>&5 | |
4098 | ac_status=$? | |
4099 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4100 | test $ac_status = 0; }; then : | |
4101 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
4102 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4103 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4104 | # `rm'. | |
4105 | for ac_file in conftest.exe conftest conftest.*; do | |
4106 | test -f "$ac_file" || continue | |
4107 | case $ac_file in | |
4108 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4109 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4110 | break;; | |
4111 | * ) break;; | |
4112 | esac | |
4113 | done | |
4114 | else | |
4115 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4116 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4117 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4118 | See \`config.log' for more details." "$LINENO" 5; } | |
4119 | fi | |
4120 | rm -f conftest$ac_cv_exeext | |
4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
4122 | $as_echo "$ac_cv_exeext" >&6; } | |
bae7f79e | 4123 | |
81ecdfbb RW |
4124 | rm -f conftest.$ac_ext |
4125 | EXEEXT=$ac_cv_exeext | |
4126 | ac_exeext=$EXEEXT | |
4127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4128 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4129 | if test "${ac_cv_objext+set}" = set; then : | |
4130 | $as_echo_n "(cached) " >&6 | |
92e059d8 | 4131 | else |
81ecdfbb | 4132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
92e059d8 | 4133 | /* end confdefs.h. */ |
92e059d8 ILT |
4134 | |
4135 | int | |
4136 | main () | |
4137 | { | |
92e059d8 ILT |
4138 | |
4139 | ; | |
4140 | return 0; | |
4141 | } | |
4142 | _ACEOF | |
81ecdfbb RW |
4143 | rm -f conftest.o conftest.obj |
4144 | if { { ac_try="$ac_compile" | |
4145 | case "(($ac_try" in | |
4146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4147 | *) ac_try_echo=$ac_try;; | |
4148 | esac | |
4149 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4150 | $as_echo "$ac_try_echo"; } >&5 | |
4151 | (eval "$ac_compile") 2>&5 | |
4152 | ac_status=$? | |
4153 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4154 | test $ac_status = 0; }; then : | |
4155 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4156 | test -f "$ac_file" || continue; | |
4157 | case $ac_file in | |
4158 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4159 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4160 | break;; | |
4161 | esac | |
4162 | done | |
4163 | else | |
4164 | $as_echo "$as_me: failed program was:" >&5 | |
4165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4166 | ||
4167 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4168 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4169 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4170 | See \`config.log' for more details." "$LINENO" 5; } | |
4171 | fi | |
4172 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4173 | fi | |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4175 | $as_echo "$ac_cv_objext" >&6; } | |
4176 | OBJEXT=$ac_cv_objext | |
4177 | ac_objext=$OBJEXT | |
4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4179 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4180 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4181 | $as_echo_n "(cached) " >&6 | |
4182 | else | |
4183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4184 | /* end confdefs.h. */ |
92e059d8 ILT |
4185 | |
4186 | int | |
4187 | main () | |
4188 | { | |
81ecdfbb RW |
4189 | #ifndef __GNUC__ |
4190 | choke me | |
92e059d8 ILT |
4191 | #endif |
4192 | ||
4193 | ; | |
4194 | return 0; | |
4195 | } | |
4196 | _ACEOF | |
81ecdfbb RW |
4197 | if ac_fn_c_try_compile "$LINENO"; then : |
4198 | ac_compiler_gnu=yes | |
92e059d8 | 4199 | else |
81ecdfbb RW |
4200 | ac_compiler_gnu=no |
4201 | fi | |
4202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4203 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
92e059d8 | 4204 | |
92e059d8 | 4205 | fi |
81ecdfbb RW |
4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4207 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4208 | if test $ac_compiler_gnu = yes; then | |
4209 | GCC=yes | |
92e059d8 | 4210 | else |
81ecdfbb RW |
4211 | GCC= |
4212 | fi | |
4213 | ac_test_CFLAGS=${CFLAGS+set} | |
4214 | ac_save_CFLAGS=$CFLAGS | |
4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4216 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4217 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4218 | $as_echo_n "(cached) " >&6 | |
4219 | else | |
4220 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4221 | ac_c_werror_flag=yes | |
4222 | ac_cv_prog_cc_g=no | |
4223 | CFLAGS="-g" | |
4224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4225 | /* end confdefs.h. */ |
81ecdfbb | 4226 | |
92e059d8 ILT |
4227 | int |
4228 | main () | |
4229 | { | |
81ecdfbb | 4230 | |
92e059d8 ILT |
4231 | ; |
4232 | return 0; | |
4233 | } | |
4234 | _ACEOF | |
81ecdfbb RW |
4235 | if ac_fn_c_try_compile "$LINENO"; then : |
4236 | ac_cv_prog_cc_g=yes | |
92e059d8 | 4237 | else |
81ecdfbb RW |
4238 | CFLAGS="" |
4239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4240 | /* end confdefs.h. */ |
81ecdfbb | 4241 | |
92e059d8 ILT |
4242 | int |
4243 | main () | |
4244 | { | |
81ecdfbb RW |
4245 | |
4246 | ; | |
4247 | return 0; | |
92e059d8 ILT |
4248 | } |
4249 | _ACEOF | |
81ecdfbb RW |
4250 | if ac_fn_c_try_compile "$LINENO"; then : |
4251 | ||
92e059d8 | 4252 | else |
81ecdfbb RW |
4253 | ac_c_werror_flag=$ac_save_c_werror_flag |
4254 | CFLAGS="-g" | |
4255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4256 | /* end confdefs.h. */ | |
92e059d8 | 4257 | |
81ecdfbb RW |
4258 | int |
4259 | main () | |
4260 | { | |
92e059d8 | 4261 | |
81ecdfbb RW |
4262 | ; |
4263 | return 0; | |
4264 | } | |
92e059d8 | 4265 | _ACEOF |
81ecdfbb RW |
4266 | if ac_fn_c_try_compile "$LINENO"; then : |
4267 | ac_cv_prog_cc_g=yes | |
537b5f51 | 4268 | fi |
81ecdfbb | 4269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
537b5f51 | 4270 | fi |
81ecdfbb | 4271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
63402fe4 | 4272 | fi |
81ecdfbb RW |
4273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4274 | ac_c_werror_flag=$ac_save_c_werror_flag | |
8a5e3e08 | 4275 | fi |
81ecdfbb RW |
4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4277 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4278 | if test "$ac_test_CFLAGS" = set; then | |
4279 | CFLAGS=$ac_save_CFLAGS | |
4280 | elif test $ac_cv_prog_cc_g = yes; then | |
4281 | if test "$GCC" = yes; then | |
4282 | CFLAGS="-g -O2" | |
4283 | else | |
4284 | CFLAGS="-g" | |
4285 | fi | |
6eee141f | 4286 | else |
81ecdfbb RW |
4287 | if test "$GCC" = yes; then |
4288 | CFLAGS="-O2" | |
4289 | else | |
4290 | CFLAGS= | |
4291 | fi | |
097ec620 | 4292 | fi |
81ecdfbb RW |
4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4294 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4295 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4296 | $as_echo_n "(cached) " >&6 | |
6eee141f | 4297 | else |
81ecdfbb RW |
4298 | ac_cv_prog_cc_c89=no |
4299 | ac_save_CC=$CC | |
4300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4301 | /* end confdefs.h. */ | |
4302 | #include <stdarg.h> | |
4303 | #include <stdio.h> | |
4304 | #include <sys/types.h> | |
4305 | #include <sys/stat.h> | |
4306 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4307 | struct buf { int x; }; | |
4308 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4309 | static char *e (p, i) | |
4310 | char **p; | |
4311 | int i; | |
4312 | { | |
4313 | return p[i]; | |
4314 | } | |
4315 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4316 | { | |
4317 | char *s; | |
4318 | va_list v; | |
4319 | va_start (v,p); | |
4320 | s = g (p, va_arg (v,int)); | |
4321 | va_end (v); | |
4322 | return s; | |
4323 | } | |
6eee141f | 4324 | |
81ecdfbb RW |
4325 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4326 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4327 | These don't provoke an error unfortunately, instead are silently treated | |
4328 | as 'x'. The following induces an error, until -std is added to get | |
4329 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4330 | array size at least. It's necessary to write '\x00'==0 to get something | |
4331 | that's true only with -std. */ | |
4332 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
097ec620 | 4333 | |
81ecdfbb RW |
4334 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4335 | inside strings and character constants. */ | |
4336 | #define FOO(x) 'x' | |
4337 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
097ec620 | 4338 | |
81ecdfbb RW |
4339 | int test (int i, double x); |
4340 | struct s1 {int (*f) (int a);}; | |
4341 | struct s2 {int (*f) (double a);}; | |
4342 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4343 | int argc; | |
4344 | char **argv; | |
4345 | int | |
4346 | main () | |
4347 | { | |
4348 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4349 | ; | |
4350 | return 0; | |
4351 | } | |
097ec620 | 4352 | _ACEOF |
81ecdfbb RW |
4353 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4354 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4355 | do | |
4356 | CC="$ac_save_CC $ac_arg" | |
4357 | if ac_fn_c_try_compile "$LINENO"; then : | |
4358 | ac_cv_prog_cc_c89=$ac_arg | |
097ec620 | 4359 | fi |
81ecdfbb RW |
4360 | rm -f core conftest.err conftest.$ac_objext |
4361 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4362 | done | |
4363 | rm -f conftest.$ac_ext | |
4364 | CC=$ac_save_CC | |
097ec620 | 4365 | |
097ec620 | 4366 | fi |
81ecdfbb RW |
4367 | # AC_CACHE_VAL |
4368 | case "x$ac_cv_prog_cc_c89" in | |
4369 | x) | |
4370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4371 | $as_echo "none needed" >&6; } ;; | |
4372 | xno) | |
4373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4374 | $as_echo "unsupported" >&6; } ;; | |
4375 | *) | |
4376 | CC="$CC $ac_cv_prog_cc_c89" | |
4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4378 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4379 | esac | |
4380 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
097ec620 | 4381 | |
81ecdfbb | 4382 | fi |
097ec620 | 4383 | |
81ecdfbb RW |
4384 | ac_ext=c |
4385 | ac_cpp='$CPP $CPPFLAGS' | |
4386 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4387 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4388 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4389 | DEPDIR="${am__leading_dot}deps" | |
155a0dd7 | 4390 | |
81ecdfbb | 4391 | ac_config_commands="$ac_config_commands depfiles" |
155a0dd7 | 4392 | |
155a0dd7 | 4393 | |
81ecdfbb RW |
4394 | am_make=${MAKE-make} |
4395 | cat > confinc << 'END' | |
4396 | am__doit: | |
4397 | @echo this is the am__doit target | |
4398 | .PHONY: am__doit | |
4399 | END | |
4400 | # If we don't find an include directive, just comment out the code. | |
4401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4402 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4403 | am__include="#" | |
4404 | am__quote= | |
4405 | _am_result=none | |
4406 | # First try GNU make style include. | |
4407 | echo "include confinc" > confmf | |
4408 | # Ignore all kinds of additional output from `make'. | |
4409 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4410 | *the\ am__doit\ target*) | |
4411 | am__include=include | |
4412 | am__quote= | |
4413 | _am_result=GNU | |
4414 | ;; | |
4415 | esac | |
4416 | # Now try BSD make style include. | |
4417 | if test "$am__include" = "#"; then | |
4418 | echo '.include "confinc"' > confmf | |
4419 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4420 | *the\ am__doit\ target*) | |
4421 | am__include=.include | |
4422 | am__quote="\"" | |
4423 | _am_result=BSD | |
4424 | ;; | |
4425 | esac | |
155a0dd7 | 4426 | fi |
155a0dd7 | 4427 | |
155a0dd7 | 4428 | |
81ecdfbb RW |
4429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4430 | $as_echo "$_am_result" >&6; } | |
4431 | rm -f confinc confmf | |
155a0dd7 | 4432 | |
81ecdfbb RW |
4433 | # Check whether --enable-dependency-tracking was given. |
4434 | if test "${enable_dependency_tracking+set}" = set; then : | |
4435 | enableval=$enable_dependency_tracking; | |
4436 | fi | |
155a0dd7 | 4437 | |
81ecdfbb RW |
4438 | if test "x$enable_dependency_tracking" != xno; then |
4439 | am_depcomp="$ac_aux_dir/depcomp" | |
4440 | AMDEPBACKSLASH='\' | |
4441 | fi | |
4442 | if test "x$enable_dependency_tracking" != xno; then | |
4443 | AMDEP_TRUE= | |
4444 | AMDEP_FALSE='#' | |
155a0dd7 | 4445 | else |
81ecdfbb RW |
4446 | AMDEP_TRUE='#' |
4447 | AMDEP_FALSE= | |
155a0dd7 ILT |
4448 | fi |
4449 | ||
4450 | ||
c2b45e22 | 4451 | |
81ecdfbb | 4452 | depcc="$CC" am_compiler_list= |
c2b45e22 | 4453 | |
81ecdfbb RW |
4454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4455 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4456 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4457 | $as_echo_n "(cached) " >&6 | |
c2b45e22 | 4458 | else |
81ecdfbb RW |
4459 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4460 | # We make a subdir and do the tests there. Otherwise we can end up | |
4461 | # making bogus files that we don't know about and never remove. For | |
4462 | # instance it was reported that on HP-UX the gcc test will end up | |
4463 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4464 | # in D'. | |
4465 | mkdir conftest.dir | |
4466 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4467 | # using a relative directory. | |
4468 | cp "$am_depcomp" conftest.dir | |
4469 | cd conftest.dir | |
4470 | # We will build objects and dependencies in a subdirectory because | |
4471 | # it helps to detect inapplicable dependency modes. For instance | |
4472 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4473 | # side effect of compilation, but ICC will put the dependencies in | |
4474 | # the current directory while Tru64 will put them in the object | |
4475 | # directory. | |
4476 | mkdir sub | |
c2b45e22 | 4477 | |
81ecdfbb RW |
4478 | am_cv_CC_dependencies_compiler_type=none |
4479 | if test "$am_compiler_list" = ""; then | |
4480 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4481 | fi | |
4482 | am__universal=false | |
4483 | case " $depcc " in #( | |
4484 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4485 | esac | |
c2b45e22 | 4486 | |
81ecdfbb RW |
4487 | for depmode in $am_compiler_list; do |
4488 | # Setup a source with many dependencies, because some compilers | |
4489 | # like to wrap large dependency lists on column 80 (with \), and | |
4490 | # we should not choose a depcomp mode which is confused by this. | |
4491 | # | |
4492 | # We need to recreate these files for each test, as the compiler may | |
4493 | # overwrite some of them when testing with obscure command lines. | |
4494 | # This happens at least with the AIX C compiler. | |
4495 | : > sub/conftest.c | |
4496 | for i in 1 2 3 4 5 6; do | |
4497 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4498 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4499 | # Solaris 8's {/usr,}/bin/sh. | |
4500 | touch sub/conftst$i.h | |
4501 | done | |
4502 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
c2b45e22 | 4503 | |
81ecdfbb RW |
4504 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4505 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4506 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4507 | # versions had trouble with output in subdirs | |
4508 | am__obj=sub/conftest.${OBJEXT-o} | |
4509 | am__minus_obj="-o $am__obj" | |
4510 | case $depmode in | |
4511 | gcc) | |
4512 | # This depmode causes a compiler race in universal mode. | |
4513 | test "$am__universal" = false || continue | |
4514 | ;; | |
4515 | nosideeffect) | |
4516 | # after this tag, mechanisms are not by side-effect, so they'll | |
4517 | # only be used when explicitly requested | |
4518 | if test "x$enable_dependency_tracking" = xyes; then | |
4519 | continue | |
4520 | else | |
4521 | break | |
4522 | fi | |
4523 | ;; | |
4524 | msvisualcpp | msvcmsys) | |
4525 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4526 | # not run yet. These depmodes are late enough in the game, and | |
4527 | # so weak that their functioning should not be impacted. | |
4528 | am__obj=conftest.${OBJEXT-o} | |
4529 | am__minus_obj= | |
4530 | ;; | |
4531 | none) break ;; | |
4532 | esac | |
4533 | if depmode=$depmode \ | |
4534 | source=sub/conftest.c object=$am__obj \ | |
4535 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4536 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4537 | >/dev/null 2>conftest.err && | |
4538 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4539 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4540 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4541 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4542 | # icc doesn't choke on unknown options, it will just issue warnings | |
4543 | # or remarks (even with -Werror). So we grep stderr for any message | |
4544 | # that says an option was ignored or not supported. | |
4545 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4546 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4547 | # The diagnosis changed in icc 8.0: | |
4548 | # icc: Command line remark: option '-MP' not supported | |
4549 | if (grep 'ignoring option' conftest.err || | |
4550 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4551 | am_cv_CC_dependencies_compiler_type=$depmode | |
4552 | break | |
4553 | fi | |
4554 | fi | |
4555 | done | |
c2b45e22 | 4556 | |
81ecdfbb RW |
4557 | cd .. |
4558 | rm -rf conftest.dir | |
c2b45e22 | 4559 | else |
81ecdfbb | 4560 | am_cv_CC_dependencies_compiler_type=none |
c2b45e22 | 4561 | fi |
c2b45e22 | 4562 | |
81ecdfbb RW |
4563 | fi |
4564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4565 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4566 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
c2b45e22 | 4567 | |
81ecdfbb RW |
4568 | if |
4569 | test "x$enable_dependency_tracking" != xno \ | |
4570 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4571 | am__fastdepCC_TRUE= | |
4572 | am__fastdepCC_FALSE='#' | |
c2b45e22 | 4573 | else |
81ecdfbb RW |
4574 | am__fastdepCC_TRUE='#' |
4575 | am__fastdepCC_FALSE= | |
c2b45e22 CC |
4576 | fi |
4577 | ||
4578 | ||
81ecdfbb RW |
4579 | ac_ext=cpp |
4580 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4581 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4582 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4583 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4584 | if test -z "$CXX"; then | |
4585 | if test -n "$CCC"; then | |
4586 | CXX=$CCC | |
4587 | else | |
4588 | if test -n "$ac_tool_prefix"; then | |
4589 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4590 | do | |
4591 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4592 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4594 | $as_echo_n "checking for $ac_word... " >&6; } | |
4595 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4596 | $as_echo_n "(cached) " >&6 | |
2fd32231 | 4597 | else |
81ecdfbb RW |
4598 | if test -n "$CXX"; then |
4599 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2fd32231 | 4600 | else |
81ecdfbb RW |
4601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4602 | for as_dir in $PATH | |
4603 | do | |
4604 | IFS=$as_save_IFS | |
4605 | test -z "$as_dir" && as_dir=. | |
4606 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4607 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4608 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4609 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4610 | break 2 | |
4611 | fi | |
4612 | done | |
4613 | done | |
4614 | IFS=$as_save_IFS | |
2fd32231 | 4615 | |
2fd32231 | 4616 | fi |
2fd32231 | 4617 | fi |
81ecdfbb RW |
4618 | CXX=$ac_cv_prog_CXX |
4619 | if test -n "$CXX"; then | |
4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4621 | $as_echo "$CXX" >&6; } | |
2fd32231 | 4622 | else |
81ecdfbb RW |
4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4624 | $as_echo "no" >&6; } | |
2fd32231 ILT |
4625 | fi |
4626 | ||
4627 | ||
81ecdfbb RW |
4628 | test -n "$CXX" && break |
4629 | done | |
4630 | fi | |
4631 | if test -z "$CXX"; then | |
4632 | ac_ct_CXX=$CXX | |
4633 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4634 | do | |
4635 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4636 | set dummy $ac_prog; ac_word=$2 | |
4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4638 | $as_echo_n "checking for $ac_word... " >&6; } | |
4639 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4640 | $as_echo_n "(cached) " >&6 | |
1d1f116d | 4641 | else |
81ecdfbb RW |
4642 | if test -n "$ac_ct_CXX"; then |
4643 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
1d1f116d | 4644 | else |
81ecdfbb RW |
4645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4646 | for as_dir in $PATH | |
4647 | do | |
4648 | IFS=$as_save_IFS | |
4649 | test -z "$as_dir" && as_dir=. | |
4650 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4651 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4652 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4654 | break 2 | |
4655 | fi | |
4656 | done | |
4657 | done | |
4658 | IFS=$as_save_IFS | |
1d1f116d | 4659 | |
1d1f116d | 4660 | fi |
1d1f116d | 4661 | fi |
81ecdfbb RW |
4662 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4663 | if test -n "$ac_ct_CXX"; then | |
4664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4665 | $as_echo "$ac_ct_CXX" >&6; } | |
4666 | else | |
4667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4668 | $as_echo "no" >&6; } | |
1d1f116d CD |
4669 | fi |
4670 | ||
4671 | ||
81ecdfbb RW |
4672 | test -n "$ac_ct_CXX" && break |
4673 | done | |
63402fe4 | 4674 | |
81ecdfbb RW |
4675 | if test "x$ac_ct_CXX" = x; then |
4676 | CXX="g++" | |
4677 | else | |
4678 | case $cross_compiling:$ac_tool_warned in | |
4679 | yes:) | |
4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4681 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4682 | ac_tool_warned=yes ;; | |
04bf7072 | 4683 | esac |
81ecdfbb RW |
4684 | CXX=$ac_ct_CXX |
4685 | fi | |
4686 | fi | |
04bf7072 | 4687 | |
81ecdfbb | 4688 | fi |
bae7f79e | 4689 | fi |
81ecdfbb RW |
4690 | # Provide some information about the compiler. |
4691 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4692 | set X $ac_compile | |
4693 | ac_compiler=$2 | |
4694 | for ac_option in --version -v -V -qversion; do | |
4695 | { { ac_try="$ac_compiler $ac_option >&5" | |
4696 | case "(($ac_try" in | |
4697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4698 | *) ac_try_echo=$ac_try;; | |
4699 | esac | |
4700 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4701 | $as_echo "$ac_try_echo"; } >&5 | |
4702 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4703 | ac_status=$? | |
4704 | if test -s conftest.err; then | |
4705 | sed '10a\ | |
4706 | ... rest of stderr output deleted ... | |
4707 | 10q' conftest.err >conftest.er1 | |
4708 | cat conftest.er1 >&5 | |
4709 | rm -f conftest.er1 conftest.err | |
4710 | fi | |
4711 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4712 | test $ac_status = 0; } | |
4713 | done | |
bae7f79e | 4714 | |
81ecdfbb RW |
4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4716 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4717 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4718 | $as_echo_n "(cached) " >&6 | |
4719 | else | |
4720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4721 | /* end confdefs.h. */ | |
4722 | ||
4723 | int | |
4724 | main () | |
4725 | { | |
4726 | #ifndef __GNUC__ | |
4727 | choke me | |
4728 | #endif | |
4729 | ||
4730 | ; | |
4731 | return 0; | |
4732 | } | |
4733 | _ACEOF | |
4734 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4735 | ac_compiler_gnu=yes | |
4736 | else | |
4737 | ac_compiler_gnu=no | |
bae7f79e | 4738 | fi |
81ecdfbb RW |
4739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4740 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
bae7f79e | 4741 | |
bae7f79e | 4742 | fi |
81ecdfbb RW |
4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4744 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4745 | if test $ac_compiler_gnu = yes; then | |
4746 | GXX=yes | |
4747 | else | |
4748 | GXX= | |
4749 | fi | |
4750 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4751 | ac_save_CXXFLAGS=$CXXFLAGS | |
4752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4753 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4754 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4755 | $as_echo_n "(cached) " >&6 | |
4756 | else | |
4757 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4758 | ac_cxx_werror_flag=yes | |
4759 | ac_cv_prog_cxx_g=no | |
4760 | CXXFLAGS="-g" | |
4761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4762 | /* end confdefs.h. */ | |
bae7f79e | 4763 | |
81ecdfbb RW |
4764 | int |
4765 | main () | |
4766 | { | |
bae7f79e | 4767 | |
81ecdfbb RW |
4768 | ; |
4769 | return 0; | |
4770 | } | |
4771 | _ACEOF | |
4772 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4773 | ac_cv_prog_cxx_g=yes | |
4774 | else | |
4775 | CXXFLAGS="" | |
4776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4777 | /* end confdefs.h. */ | |
bae7f79e | 4778 | |
81ecdfbb RW |
4779 | int |
4780 | main () | |
4781 | { | |
bae7f79e | 4782 | |
81ecdfbb RW |
4783 | ; |
4784 | return 0; | |
4785 | } | |
4786 | _ACEOF | |
4787 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
bae7f79e | 4788 | |
81ecdfbb RW |
4789 | else |
4790 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4791 | CXXFLAGS="-g" | |
4792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4793 | /* end confdefs.h. */ | |
bae7f79e | 4794 | |
81ecdfbb RW |
4795 | int |
4796 | main () | |
4797 | { | |
bae7f79e | 4798 | |
81ecdfbb RW |
4799 | ; |
4800 | return 0; | |
4801 | } | |
4802 | _ACEOF | |
4803 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4804 | ac_cv_prog_cxx_g=yes | |
4805 | fi | |
4806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4807 | fi | |
4808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4809 | fi | |
4810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4811 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4812 | fi | |
4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4814 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4815 | if test "$ac_test_CXXFLAGS" = set; then | |
4816 | CXXFLAGS=$ac_save_CXXFLAGS | |
4817 | elif test $ac_cv_prog_cxx_g = yes; then | |
4818 | if test "$GXX" = yes; then | |
4819 | CXXFLAGS="-g -O2" | |
4820 | else | |
4821 | CXXFLAGS="-g" | |
4822 | fi | |
4823 | else | |
4824 | if test "$GXX" = yes; then | |
4825 | CXXFLAGS="-O2" | |
4826 | else | |
4827 | CXXFLAGS= | |
4828 | fi | |
4829 | fi | |
4830 | ac_ext=c | |
4831 | ac_cpp='$CPP $CPPFLAGS' | |
4832 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4833 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4834 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bae7f79e | 4835 | |
81ecdfbb | 4836 | depcc="$CXX" am_compiler_list= |
bae7f79e | 4837 | |
81ecdfbb RW |
4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4839 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4840 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | |
4841 | $as_echo_n "(cached) " >&6 | |
4842 | else | |
4843 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4844 | # We make a subdir and do the tests there. Otherwise we can end up | |
4845 | # making bogus files that we don't know about and never remove. For | |
4846 | # instance it was reported that on HP-UX the gcc test will end up | |
4847 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4848 | # in D'. | |
4849 | mkdir conftest.dir | |
4850 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4851 | # using a relative directory. | |
4852 | cp "$am_depcomp" conftest.dir | |
4853 | cd conftest.dir | |
4854 | # We will build objects and dependencies in a subdirectory because | |
4855 | # it helps to detect inapplicable dependency modes. For instance | |
4856 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4857 | # side effect of compilation, but ICC will put the dependencies in | |
4858 | # the current directory while Tru64 will put them in the object | |
4859 | # directory. | |
4860 | mkdir sub | |
bae7f79e | 4861 | |
81ecdfbb RW |
4862 | am_cv_CXX_dependencies_compiler_type=none |
4863 | if test "$am_compiler_list" = ""; then | |
4864 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4865 | fi | |
4866 | am__universal=false | |
4867 | case " $depcc " in #( | |
4868 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4869 | esac | |
bae7f79e | 4870 | |
81ecdfbb RW |
4871 | for depmode in $am_compiler_list; do |
4872 | # Setup a source with many dependencies, because some compilers | |
4873 | # like to wrap large dependency lists on column 80 (with \), and | |
4874 | # we should not choose a depcomp mode which is confused by this. | |
4875 | # | |
4876 | # We need to recreate these files for each test, as the compiler may | |
4877 | # overwrite some of them when testing with obscure command lines. | |
4878 | # This happens at least with the AIX C compiler. | |
4879 | : > sub/conftest.c | |
4880 | for i in 1 2 3 4 5 6; do | |
4881 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4882 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4883 | # Solaris 8's {/usr,}/bin/sh. | |
4884 | touch sub/conftst$i.h | |
4885 | done | |
4886 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
82dcae9d | 4887 | |
81ecdfbb RW |
4888 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4889 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4890 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4891 | # versions had trouble with output in subdirs | |
4892 | am__obj=sub/conftest.${OBJEXT-o} | |
4893 | am__minus_obj="-o $am__obj" | |
4894 | case $depmode in | |
4895 | gcc) | |
4896 | # This depmode causes a compiler race in universal mode. | |
4897 | test "$am__universal" = false || continue | |
4898 | ;; | |
4899 | nosideeffect) | |
4900 | # after this tag, mechanisms are not by side-effect, so they'll | |
4901 | # only be used when explicitly requested | |
4902 | if test "x$enable_dependency_tracking" = xyes; then | |
4903 | continue | |
4904 | else | |
4905 | break | |
4906 | fi | |
4907 | ;; | |
4908 | msvisualcpp | msvcmsys) | |
4909 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4910 | # not run yet. These depmodes are late enough in the game, and | |
4911 | # so weak that their functioning should not be impacted. | |
4912 | am__obj=conftest.${OBJEXT-o} | |
4913 | am__minus_obj= | |
4914 | ;; | |
4915 | none) break ;; | |
4916 | esac | |
4917 | if depmode=$depmode \ | |
4918 | source=sub/conftest.c object=$am__obj \ | |
4919 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4920 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4921 | >/dev/null 2>conftest.err && | |
4922 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4923 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4924 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4925 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4926 | # icc doesn't choke on unknown options, it will just issue warnings | |
4927 | # or remarks (even with -Werror). So we grep stderr for any message | |
4928 | # that says an option was ignored or not supported. | |
4929 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4930 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4931 | # The diagnosis changed in icc 8.0: | |
4932 | # icc: Command line remark: option '-MP' not supported | |
4933 | if (grep 'ignoring option' conftest.err || | |
4934 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4935 | am_cv_CXX_dependencies_compiler_type=$depmode | |
4936 | break | |
4937 | fi | |
4938 | fi | |
4939 | done | |
9201d894 | 4940 | |
81ecdfbb RW |
4941 | cd .. |
4942 | rm -rf conftest.dir | |
4943 | else | |
4944 | am_cv_CXX_dependencies_compiler_type=none | |
4945 | fi | |
9201d894 | 4946 | |
81ecdfbb RW |
4947 | fi |
4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4949 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4950 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
9201d894 | 4951 | |
81ecdfbb RW |
4952 | if |
4953 | test "x$enable_dependency_tracking" != xno \ | |
4954 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4955 | am__fastdepCXX_TRUE= | |
4956 | am__fastdepCXX_FALSE='#' | |
4957 | else | |
4958 | am__fastdepCXX_TRUE='#' | |
4959 | am__fastdepCXX_FALSE= | |
4960 | fi | |
9201d894 | 4961 | |
9201d894 | 4962 | |
81ecdfbb RW |
4963 | for ac_prog in 'bison -y' byacc |
4964 | do | |
4965 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4966 | set dummy $ac_prog; ac_word=$2 | |
4967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4968 | $as_echo_n "checking for $ac_word... " >&6; } | |
4969 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
4970 | $as_echo_n "(cached) " >&6 | |
9201d894 | 4971 | else |
81ecdfbb RW |
4972 | if test -n "$YACC"; then |
4973 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4974 | else | |
4975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4976 | for as_dir in $PATH | |
4977 | do | |
4978 | IFS=$as_save_IFS | |
4979 | test -z "$as_dir" && as_dir=. | |
4980 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4982 | ac_cv_prog_YACC="$ac_prog" | |
4983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4984 | break 2 | |
4985 | fi | |
4986 | done | |
4987 | done | |
4988 | IFS=$as_save_IFS | |
9201d894 | 4989 | |
9201d894 | 4990 | fi |
9201d894 | 4991 | fi |
81ecdfbb RW |
4992 | YACC=$ac_cv_prog_YACC |
4993 | if test -n "$YACC"; then | |
4994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
4995 | $as_echo "$YACC" >&6; } | |
4996 | else | |
4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4998 | $as_echo "no" >&6; } | |
9201d894 | 4999 | fi |
9201d894 | 5000 | |
2f35ab9b | 5001 | |
81ecdfbb RW |
5002 | test -n "$YACC" && break |
5003 | done | |
5004 | test -n "$YACC" || YACC="yacc" | |
fd03461a | 5005 | |
81ecdfbb RW |
5006 | if test -n "$ac_tool_prefix"; then |
5007 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5008 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5010 | $as_echo_n "checking for $ac_word... " >&6; } | |
5011 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
5012 | $as_echo_n "(cached) " >&6 | |
5013 | else | |
5014 | if test -n "$RANLIB"; then | |
5015 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5016 | else | |
5017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5018 | for as_dir in $PATH | |
82dcae9d | 5019 | do |
81ecdfbb RW |
5020 | IFS=$as_save_IFS |
5021 | test -z "$as_dir" && as_dir=. | |
5022 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5023 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5024 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5026 | break 2 | |
5027 | fi | |
5028 | done | |
5029 | done | |
5030 | IFS=$as_save_IFS | |
82dcae9d | 5031 | |
81ecdfbb RW |
5032 | fi |
5033 | fi | |
5034 | RANLIB=$ac_cv_prog_RANLIB | |
5035 | if test -n "$RANLIB"; then | |
5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5037 | $as_echo "$RANLIB" >&6; } | |
5038 | else | |
5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5040 | $as_echo "no" >&6; } | |
5041 | fi | |
82dcae9d | 5042 | |
82dcae9d | 5043 | |
81ecdfbb RW |
5044 | fi |
5045 | if test -z "$ac_cv_prog_RANLIB"; then | |
5046 | ac_ct_RANLIB=$RANLIB | |
5047 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5048 | set dummy ranlib; ac_word=$2 | |
5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5050 | $as_echo_n "checking for $ac_word... " >&6; } | |
5051 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
5052 | $as_echo_n "(cached) " >&6 | |
82dcae9d | 5053 | else |
81ecdfbb RW |
5054 | if test -n "$ac_ct_RANLIB"; then |
5055 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5056 | else | |
5057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5058 | for as_dir in $PATH | |
5059 | do | |
5060 | IFS=$as_save_IFS | |
5061 | test -z "$as_dir" && as_dir=. | |
5062 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5063 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5064 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5066 | break 2 | |
5067 | fi | |
5068 | done | |
5069 | done | |
5070 | IFS=$as_save_IFS | |
82dcae9d | 5071 | |
82dcae9d | 5072 | fi |
82dcae9d | 5073 | fi |
81ecdfbb RW |
5074 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5075 | if test -n "$ac_ct_RANLIB"; then | |
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5077 | $as_echo "$ac_ct_RANLIB" >&6; } | |
82dcae9d | 5078 | else |
81ecdfbb RW |
5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5080 | $as_echo "no" >&6; } | |
5081 | fi | |
5082 | ||
5083 | if test "x$ac_ct_RANLIB" = x; then | |
5084 | RANLIB=":" | |
5085 | else | |
5086 | case $cross_compiling:$ac_tool_warned in | |
5087 | yes:) | |
5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5089 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5090 | ac_tool_warned=yes ;; | |
82dcae9d | 5091 | esac |
81ecdfbb RW |
5092 | RANLIB=$ac_ct_RANLIB |
5093 | fi | |
5094 | else | |
5095 | RANLIB="$ac_cv_prog_RANLIB" | |
5096 | fi | |
82dcae9d | 5097 | |
81ecdfbb RW |
5098 | |
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5100 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5101 | LN_S=$as_ln_s | |
5102 | if test "$LN_S" = "ln -s"; then | |
5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5104 | $as_echo "yes" >&6; } | |
5105 | else | |
5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5107 | $as_echo "no, using $LN_S" >&6; } | |
82dcae9d | 5108 | fi |
82dcae9d ILT |
5109 | |
5110 | ||
5111 | ||
9a0910c3 ILT |
5112 | ac_ext=c |
5113 | ac_cpp='$CPP $CPPFLAGS' | |
5114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
5117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5118 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
9a0910c3 ILT |
5119 | # On Suns, sometimes $CPP names a directory. |
5120 | if test -n "$CPP" && test -d "$CPP"; then | |
5121 | CPP= | |
5122 | fi | |
5123 | if test -z "$CPP"; then | |
81ecdfbb RW |
5124 | if test "${ac_cv_prog_CPP+set}" = set; then : |
5125 | $as_echo_n "(cached) " >&6 | |
9a0910c3 ILT |
5126 | else |
5127 | # Double quotes because CPP needs to be expanded | |
5128 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5129 | do | |
5130 | ac_preproc_ok=false | |
5131 | for ac_c_preproc_warn_flag in '' yes | |
5132 | do | |
5133 | # Use a header file that comes with gcc, so configuring glibc | |
5134 | # with a fresh cross-compiler works. | |
5135 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5136 | # <limits.h> exists even on freestanding compilers. | |
5137 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5138 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5140 | /* end confdefs.h. */ |
5141 | #ifdef __STDC__ | |
5142 | # include <limits.h> | |
5143 | #else | |
5144 | # include <assert.h> | |
5145 | #endif | |
5146 | Syntax error | |
5147 | _ACEOF | |
81ecdfbb | 5148 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5149 | |
81ecdfbb | 5150 | else |
9a0910c3 ILT |
5151 | # Broken: fails on valid input. |
5152 | continue | |
5153 | fi | |
5154 | rm -f conftest.err conftest.$ac_ext | |
5155 | ||
81ecdfbb | 5156 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5157 | # can be detected and how. |
81ecdfbb | 5158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5159 | /* end confdefs.h. */ |
5160 | #include <ac_nonexistent.h> | |
5161 | _ACEOF | |
81ecdfbb | 5162 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5163 | # Broken: success on invalid input. |
5164 | continue | |
5165 | else | |
9a0910c3 ILT |
5166 | # Passes both tests. |
5167 | ac_preproc_ok=: | |
5168 | break | |
5169 | fi | |
5170 | rm -f conftest.err conftest.$ac_ext | |
5171 | ||
5172 | done | |
5173 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5174 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 5175 | if $ac_preproc_ok; then : |
9a0910c3 ILT |
5176 | break |
5177 | fi | |
5178 | ||
5179 | done | |
5180 | ac_cv_prog_CPP=$CPP | |
5181 | ||
5182 | fi | |
5183 | CPP=$ac_cv_prog_CPP | |
5184 | else | |
5185 | ac_cv_prog_CPP=$CPP | |
5186 | fi | |
81ecdfbb RW |
5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
5188 | $as_echo "$CPP" >&6; } | |
9a0910c3 ILT |
5189 | ac_preproc_ok=false |
5190 | for ac_c_preproc_warn_flag in '' yes | |
5191 | do | |
5192 | # Use a header file that comes with gcc, so configuring glibc | |
5193 | # with a fresh cross-compiler works. | |
5194 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5195 | # <limits.h> exists even on freestanding compilers. | |
5196 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5197 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5199 | /* end confdefs.h. */ |
5200 | #ifdef __STDC__ | |
5201 | # include <limits.h> | |
5202 | #else | |
5203 | # include <assert.h> | |
5204 | #endif | |
5205 | Syntax error | |
5206 | _ACEOF | |
81ecdfbb | 5207 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5208 | |
81ecdfbb | 5209 | else |
9a0910c3 ILT |
5210 | # Broken: fails on valid input. |
5211 | continue | |
5212 | fi | |
5213 | rm -f conftest.err conftest.$ac_ext | |
5214 | ||
81ecdfbb | 5215 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5216 | # can be detected and how. |
81ecdfbb | 5217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5218 | /* end confdefs.h. */ |
5219 | #include <ac_nonexistent.h> | |
5220 | _ACEOF | |
81ecdfbb | 5221 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5222 | # Broken: success on invalid input. |
5223 | continue | |
5224 | else | |
9a0910c3 ILT |
5225 | # Passes both tests. |
5226 | ac_preproc_ok=: | |
5227 | break | |
5228 | fi | |
5229 | rm -f conftest.err conftest.$ac_ext | |
5230 | ||
5231 | done | |
5232 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5233 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
5234 | if $ac_preproc_ok; then : |
5235 | ||
9a0910c3 | 5236 | else |
81ecdfbb RW |
5237 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5238 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5239 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
5240 | See \`config.log' for more details." "$LINENO" 5; } | |
9a0910c3 ILT |
5241 | fi |
5242 | ||
5243 | ac_ext=c | |
5244 | ac_cpp='$CPP $CPPFLAGS' | |
5245 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5246 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5247 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5248 | ||
5249 | ||
81ecdfbb RW |
5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5251 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5252 | if test "${ac_cv_path_GREP+set}" = set; then : | |
5253 | $as_echo_n "(cached) " >&6 | |
5254 | else | |
5255 | if test -z "$GREP"; then | |
5256 | ac_path_GREP_found=false | |
5257 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5259 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5260 | do | |
5261 | IFS=$as_save_IFS | |
5262 | test -z "$as_dir" && as_dir=. | |
5263 | for ac_prog in grep ggrep; do | |
5264 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5265 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5266 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5267 | # Check for GNU ac_path_GREP and select it if it is found. | |
5268 | # Check for GNU $ac_path_GREP | |
5269 | case `"$ac_path_GREP" --version 2>&1` in | |
5270 | *GNU*) | |
5271 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5272 | *) | |
5273 | ac_count=0 | |
5274 | $as_echo_n 0123456789 >"conftest.in" | |
5275 | while : | |
5276 | do | |
5277 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5278 | mv "conftest.tmp" "conftest.in" | |
5279 | cp "conftest.in" "conftest.nl" | |
5280 | $as_echo 'GREP' >> "conftest.nl" | |
5281 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5282 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5283 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5284 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5285 | # Best one so far, save it but keep looking for a better one | |
5286 | ac_cv_path_GREP="$ac_path_GREP" | |
5287 | ac_path_GREP_max=$ac_count | |
5288 | fi | |
5289 | # 10*(2^10) chars as input seems more than enough | |
5290 | test $ac_count -gt 10 && break | |
5291 | done | |
5292 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5293 | esac | |
5294 | ||
5295 | $ac_path_GREP_found && break 3 | |
5296 | done | |
5297 | done | |
5298 | done | |
5299 | IFS=$as_save_IFS | |
5300 | if test -z "$ac_cv_path_GREP"; then | |
5301 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5302 | fi | |
5303 | else | |
5304 | ac_cv_path_GREP=$GREP | |
5305 | fi | |
5306 | ||
5307 | fi | |
5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5309 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5310 | GREP="$ac_cv_path_GREP" | |
5311 | ||
5312 | ||
5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5314 | $as_echo_n "checking for egrep... " >&6; } | |
5315 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
5316 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5317 | else |
81ecdfbb RW |
5318 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5319 | then ac_cv_path_EGREP="$GREP -E" | |
5320 | else | |
5321 | if test -z "$EGREP"; then | |
5322 | ac_path_EGREP_found=false | |
5323 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5325 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5326 | do | |
5327 | IFS=$as_save_IFS | |
5328 | test -z "$as_dir" && as_dir=. | |
5329 | for ac_prog in egrep; do | |
5330 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5331 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5332 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5333 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5334 | # Check for GNU $ac_path_EGREP | |
5335 | case `"$ac_path_EGREP" --version 2>&1` in | |
5336 | *GNU*) | |
5337 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5338 | *) | |
5339 | ac_count=0 | |
5340 | $as_echo_n 0123456789 >"conftest.in" | |
5341 | while : | |
5342 | do | |
5343 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5344 | mv "conftest.tmp" "conftest.in" | |
5345 | cp "conftest.in" "conftest.nl" | |
5346 | $as_echo 'EGREP' >> "conftest.nl" | |
5347 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5348 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5349 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5350 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5351 | # Best one so far, save it but keep looking for a better one | |
5352 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5353 | ac_path_EGREP_max=$ac_count | |
9a0910c3 | 5354 | fi |
81ecdfbb RW |
5355 | # 10*(2^10) chars as input seems more than enough |
5356 | test $ac_count -gt 10 && break | |
5357 | done | |
5358 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5359 | esac | |
5360 | ||
5361 | $ac_path_EGREP_found && break 3 | |
5362 | done | |
5363 | done | |
5364 | done | |
5365 | IFS=$as_save_IFS | |
5366 | if test -z "$ac_cv_path_EGREP"; then | |
5367 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5368 | fi | |
5369 | else | |
5370 | ac_cv_path_EGREP=$EGREP | |
5371 | fi | |
5372 | ||
5373 | fi | |
9a0910c3 | 5374 | fi |
81ecdfbb RW |
5375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5376 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5377 | EGREP="$ac_cv_path_EGREP" | |
9a0910c3 ILT |
5378 | |
5379 | ||
81ecdfbb RW |
5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5381 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5382 | if test "${ac_cv_header_stdc+set}" = set; then : | |
5383 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5384 | else |
81ecdfbb | 5385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5386 | /* end confdefs.h. */ |
5387 | #include <stdlib.h> | |
5388 | #include <stdarg.h> | |
5389 | #include <string.h> | |
5390 | #include <float.h> | |
5391 | ||
5392 | int | |
5393 | main () | |
5394 | { | |
5395 | ||
5396 | ; | |
5397 | return 0; | |
5398 | } | |
5399 | _ACEOF | |
81ecdfbb | 5400 | if ac_fn_c_try_compile "$LINENO"; then : |
9a0910c3 ILT |
5401 | ac_cv_header_stdc=yes |
5402 | else | |
81ecdfbb | 5403 | ac_cv_header_stdc=no |
9a0910c3 | 5404 | fi |
81ecdfbb | 5405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9a0910c3 ILT |
5406 | |
5407 | if test $ac_cv_header_stdc = yes; then | |
5408 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 5409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5410 | /* end confdefs.h. */ |
5411 | #include <string.h> | |
5412 | ||
5413 | _ACEOF | |
5414 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5415 | $EGREP "memchr" >/dev/null 2>&1; then : |
5416 | ||
9a0910c3 ILT |
5417 | else |
5418 | ac_cv_header_stdc=no | |
5419 | fi | |
5420 | rm -f conftest* | |
5421 | ||
5422 | fi | |
5423 | ||
5424 | if test $ac_cv_header_stdc = yes; then | |
5425 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 5426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5427 | /* end confdefs.h. */ |
5428 | #include <stdlib.h> | |
5429 | ||
5430 | _ACEOF | |
5431 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5432 | $EGREP "free" >/dev/null 2>&1; then : |
5433 | ||
9a0910c3 ILT |
5434 | else |
5435 | ac_cv_header_stdc=no | |
5436 | fi | |
5437 | rm -f conftest* | |
5438 | ||
5439 | fi | |
5440 | ||
5441 | if test $ac_cv_header_stdc = yes; then | |
5442 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 5443 | if test "$cross_compiling" = yes; then : |
9a0910c3 ILT |
5444 | : |
5445 | else | |
81ecdfbb | 5446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5447 | /* end confdefs.h. */ |
5448 | #include <ctype.h> | |
81ecdfbb | 5449 | #include <stdlib.h> |
9a0910c3 ILT |
5450 | #if ((' ' & 0x0FF) == 0x020) |
5451 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5452 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5453 | #else | |
5454 | # define ISLOWER(c) \ | |
5455 | (('a' <= (c) && (c) <= 'i') \ | |
5456 | || ('j' <= (c) && (c) <= 'r') \ | |
5457 | || ('s' <= (c) && (c) <= 'z')) | |
5458 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5459 | #endif | |
5460 | ||
5461 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5462 | int | |
5463 | main () | |
5464 | { | |
5465 | int i; | |
5466 | for (i = 0; i < 256; i++) | |
5467 | if (XOR (islower (i), ISLOWER (i)) | |
5468 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
5469 | return 2; |
5470 | return 0; | |
9a0910c3 ILT |
5471 | } |
5472 | _ACEOF | |
81ecdfbb | 5473 | if ac_fn_c_try_run "$LINENO"; then : |
9a0910c3 | 5474 | |
81ecdfbb RW |
5475 | else |
5476 | ac_cv_header_stdc=no | |
9a0910c3 | 5477 | fi |
81ecdfbb RW |
5478 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5479 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9a0910c3 | 5480 | fi |
81ecdfbb | 5481 | |
9a0910c3 ILT |
5482 | fi |
5483 | fi | |
81ecdfbb RW |
5484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5485 | $as_echo "$ac_cv_header_stdc" >&6; } | |
9a0910c3 ILT |
5486 | if test $ac_cv_header_stdc = yes; then |
5487 | ||
81ecdfbb | 5488 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9a0910c3 ILT |
5489 | |
5490 | fi | |
5491 | ||
5492 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
81ecdfbb RW |
5493 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5494 | inttypes.h stdint.h unistd.h | |
5495 | do : | |
5496 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5497 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5498 | " | |
5499 | eval as_val=\$$as_ac_Header | |
5500 | if test "x$as_val" = x""yes; then : | |
5501 | cat >>confdefs.h <<_ACEOF | |
5502 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5503 | _ACEOF | |
9a0910c3 | 5504 | |
81ecdfbb | 5505 | fi |
9a0910c3 | 5506 | |
81ecdfbb | 5507 | done |
9a0910c3 ILT |
5508 | |
5509 | ||
5510 | ||
81ecdfbb RW |
5511 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
5512 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
5513 | MINIX=yes | |
5514 | else | |
5515 | MINIX= | |
5516 | fi | |
9a0910c3 ILT |
5517 | |
5518 | ||
81ecdfbb | 5519 | if test "$MINIX" = yes; then |
9a0910c3 | 5520 | |
81ecdfbb | 5521 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
9a0910c3 | 5522 | |
9a0910c3 | 5523 | |
81ecdfbb | 5524 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
9a0910c3 | 5525 | |
9a0910c3 | 5526 | |
81ecdfbb | 5527 | $as_echo "#define _MINIX 1" >>confdefs.h |
9a0910c3 | 5528 | |
81ecdfbb | 5529 | fi |
9a0910c3 ILT |
5530 | |
5531 | ||
81ecdfbb RW |
5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
5533 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5534 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
5535 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5536 | else |
81ecdfbb | 5537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5538 | /* end confdefs.h. */ |
5539 | ||
81ecdfbb RW |
5540 | # define __EXTENSIONS__ 1 |
5541 | $ac_includes_default | |
9a0910c3 ILT |
5542 | int |
5543 | main () | |
5544 | { | |
81ecdfbb | 5545 | |
9a0910c3 ILT |
5546 | ; |
5547 | return 0; | |
5548 | } | |
5549 | _ACEOF | |
81ecdfbb RW |
5550 | if ac_fn_c_try_compile "$LINENO"; then : |
5551 | ac_cv_safe_to_define___extensions__=yes | |
9a0910c3 | 5552 | else |
81ecdfbb | 5553 | ac_cv_safe_to_define___extensions__=no |
9a0910c3 | 5554 | fi |
81ecdfbb RW |
5555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5556 | fi | |
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5558 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5559 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5560 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
9a0910c3 | 5561 | |
81ecdfbb RW |
5562 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
5563 | ||
5564 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
9a0910c3 | 5565 | |
81ecdfbb RW |
5566 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
5567 | ||
5568 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5569 | ||
5570 | ||
5571 | ||
5572 | ||
5573 | # If we haven't got the data from the intl directory, | |
5574 | # assume NLS is disabled. | |
5575 | USE_NLS=no | |
5576 | LIBINTL= | |
5577 | LIBINTL_DEP= | |
5578 | INCINTL= | |
5579 | XGETTEXT= | |
5580 | GMSGFMT= | |
5581 | POSUB= | |
5582 | ||
5583 | if test -f ../intl/config.intl; then | |
5584 | . ../intl/config.intl | |
9a0910c3 | 5585 | fi |
81ecdfbb RW |
5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
5587 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5588 | if test x"$USE_NLS" != xyes; then | |
5589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5590 | $as_echo "no" >&6; } | |
5591 | else | |
5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5593 | $as_echo "yes" >&6; } | |
5594 | ||
5595 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
5596 | ||
5597 | ||
5598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 | |
5599 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
5600 | # Look for .po and .gmo files in the source directory. | |
5601 | CATALOGS= | |
5602 | XLINGUAS= | |
5603 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5604 | # If there aren't any .gmo files the shell will give us the | |
5605 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5606 | # weeded out. | |
5607 | case "$cat" in *\**) | |
5608 | continue;; | |
5609 | esac | |
5610 | # The quadruple backslash is collapsed to a double backslash | |
5611 | # by the backticks, then collapsed again by the double quotes, | |
5612 | # leaving us with one backslash in the sed expression (right | |
5613 | # before the dot that mustn't act as a wildcard). | |
5614 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
5615 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
5616 | # The user is allowed to set LINGUAS to a list of languages to | |
5617 | # install catalogs for. If it's empty that means "all of them." | |
5618 | if test "x$LINGUAS" = x; then | |
5619 | CATALOGS="$CATALOGS $cat" | |
5620 | XLINGUAS="$XLINGUAS $lang" | |
5621 | else | |
5622 | case "$LINGUAS" in *$lang*) | |
5623 | CATALOGS="$CATALOGS $cat" | |
5624 | XLINGUAS="$XLINGUAS $lang" | |
5625 | ;; | |
5626 | esac | |
5627 | fi | |
9a0910c3 | 5628 | done |
81ecdfbb RW |
5629 | LINGUAS="$XLINGUAS" |
5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
5631 | $as_echo "$LINGUAS" >&6; } | |
5632 | ||
5633 | ||
5634 | DATADIRNAME=share | |
5635 | ||
5636 | INSTOBJEXT=.mo | |
5637 | ||
5638 | GENCAT=gencat | |
5639 | ||
5640 | CATOBJEXT=.gmo | |
9a0910c3 | 5641 | |
9a0910c3 | 5642 | fi |
9a0910c3 | 5643 | |
81ecdfbb RW |
5644 | MKINSTALLDIRS= |
5645 | if test -n "$ac_aux_dir"; then | |
5646 | case "$ac_aux_dir" in | |
5647 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
5648 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
5649 | esac | |
5650 | fi | |
5651 | if test -z "$MKINSTALLDIRS"; then | |
5652 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5653 | fi | |
5654 | ||
5655 | ||
5656 | ||
5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
5658 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5659 | # Check whether --enable-nls was given. | |
5660 | if test "${enable_nls+set}" = set; then : | |
5661 | enableval=$enable_nls; USE_NLS=$enableval | |
5662 | else | |
5663 | USE_NLS=yes | |
9a0910c3 | 5664 | fi |
9a0910c3 | 5665 | |
81ecdfbb RW |
5666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
5667 | $as_echo "$USE_NLS" >&6; } | |
5668 | ||
5669 | ||
5670 | ||
5671 | ||
5672 | ||
5673 | ||
5674 | # Prepare PATH_SEPARATOR. | |
5675 | # The user is always right. | |
5676 | if test "${PATH_SEPARATOR+set}" != set; then | |
5677 | echo "#! /bin/sh" >conf$$.sh | |
5678 | echo "exit 0" >>conf$$.sh | |
5679 | chmod +x conf$$.sh | |
5680 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5681 | PATH_SEPARATOR=';' | |
9a0910c3 | 5682 | else |
81ecdfbb | 5683 | PATH_SEPARATOR=: |
9a0910c3 | 5684 | fi |
81ecdfbb | 5685 | rm -f conf$$.sh |
9a0910c3 | 5686 | fi |
81ecdfbb RW |
5687 | |
5688 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5689 | # as systems may use methods other than mode bits to determine executability. | |
5690 | cat >conf$$.file <<_ASEOF | |
5691 | #! /bin/sh | |
5692 | exit 0 | |
5693 | _ASEOF | |
5694 | chmod +x conf$$.file | |
5695 | if test -x conf$$.file >/dev/null 2>&1; then | |
5696 | ac_executable_p="test -x" | |
9a0910c3 | 5697 | else |
81ecdfbb RW |
5698 | ac_executable_p="test -f" |
5699 | fi | |
5700 | rm -f conf$$.file | |
9a0910c3 | 5701 | |
81ecdfbb RW |
5702 | # Extract the first word of "msgfmt", so it can be a program name with args. |
5703 | set dummy msgfmt; ac_word=$2 | |
5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5705 | $as_echo_n "checking for $ac_word... " >&6; } | |
5706 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
5707 | $as_echo_n "(cached) " >&6 | |
5708 | else | |
5709 | case "$MSGFMT" in | |
5710 | [\\/]* | ?:[\\/]*) | |
5711 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5712 | ;; | |
5713 | *) | |
5714 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5715 | for ac_dir in $PATH; do | |
5716 | IFS="$ac_save_IFS" | |
5717 | test -z "$ac_dir" && ac_dir=. | |
5718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5719 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5720 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
5721 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5722 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
5723 | break 2 | |
5724 | fi | |
5725 | fi | |
5726 | done | |
5727 | done | |
5728 | IFS="$ac_save_IFS" | |
5729 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
5730 | ;; | |
5731 | esac | |
9a0910c3 | 5732 | fi |
81ecdfbb RW |
5733 | MSGFMT="$ac_cv_path_MSGFMT" |
5734 | if test "$MSGFMT" != ":"; then | |
5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
5736 | $as_echo "$MSGFMT" >&6; } | |
5737 | else | |
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5739 | $as_echo "no" >&6; } | |
5740 | fi | |
5741 | ||
5742 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5743 | set dummy gmsgfmt; ac_word=$2 | |
5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5745 | $as_echo_n "checking for $ac_word... " >&6; } | |
5746 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
5747 | $as_echo_n "(cached) " >&6 | |
5748 | else | |
5749 | case $GMSGFMT in | |
5750 | [\\/]* | ?:[\\/]*) | |
5751 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5752 | ;; | |
5753 | *) | |
5754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5755 | for as_dir in $PATH | |
5756 | do | |
5757 | IFS=$as_save_IFS | |
5758 | test -z "$as_dir" && as_dir=. | |
5759 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5760 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5761 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5763 | break 2 | |
5764 | fi | |
5765 | done | |
5766 | done | |
5767 | IFS=$as_save_IFS | |
9a0910c3 | 5768 | |
81ecdfbb RW |
5769 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5770 | ;; | |
9a0910c3 | 5771 | esac |
81ecdfbb RW |
5772 | fi |
5773 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5774 | if test -n "$GMSGFMT"; then | |
5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
5776 | $as_echo "$GMSGFMT" >&6; } | |
9a0910c3 | 5777 | else |
81ecdfbb RW |
5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5779 | $as_echo "no" >&6; } | |
9a0910c3 | 5780 | fi |
9a0910c3 | 5781 | |
9a0910c3 | 5782 | |
9a0910c3 | 5783 | |
9a0910c3 | 5784 | |
81ecdfbb RW |
5785 | # Prepare PATH_SEPARATOR. |
5786 | # The user is always right. | |
5787 | if test "${PATH_SEPARATOR+set}" != set; then | |
5788 | echo "#! /bin/sh" >conf$$.sh | |
5789 | echo "exit 0" >>conf$$.sh | |
5790 | chmod +x conf$$.sh | |
5791 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5792 | PATH_SEPARATOR=';' | |
5793 | else | |
5794 | PATH_SEPARATOR=: | |
5795 | fi | |
5796 | rm -f conf$$.sh | |
9a0910c3 ILT |
5797 | fi |
5798 | ||
81ecdfbb RW |
5799 | # Find out how to test for executable files. Don't use a zero-byte file, |
5800 | # as systems may use methods other than mode bits to determine executability. | |
5801 | cat >conf$$.file <<_ASEOF | |
5802 | #! /bin/sh | |
5803 | exit 0 | |
5804 | _ASEOF | |
5805 | chmod +x conf$$.file | |
5806 | if test -x conf$$.file >/dev/null 2>&1; then | |
5807 | ac_executable_p="test -x" | |
7fcd0256 | 5808 | else |
81ecdfbb | 5809 | ac_executable_p="test -f" |
7fcd0256 | 5810 | fi |
81ecdfbb | 5811 | rm -f conf$$.file |
7fcd0256 | 5812 | |
81ecdfbb RW |
5813 | # Extract the first word of "xgettext", so it can be a program name with args. |
5814 | set dummy xgettext; ac_word=$2 | |
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5816 | $as_echo_n "checking for $ac_word... " >&6; } | |
5817 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
5818 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5819 | else |
81ecdfbb RW |
5820 | case "$XGETTEXT" in |
5821 | [\\/]* | ?:[\\/]*) | |
5822 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5823 | ;; | |
5824 | *) | |
5825 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5826 | for ac_dir in $PATH; do | |
5827 | IFS="$ac_save_IFS" | |
5828 | test -z "$ac_dir" && ac_dir=. | |
5829 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5830 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5831 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5832 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5833 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
5834 | break 2 | |
5835 | fi | |
5836 | fi | |
5837 | done | |
5838 | done | |
5839 | IFS="$ac_save_IFS" | |
5840 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5841 | ;; | |
5842 | esac | |
54dc6425 | 5843 | fi |
81ecdfbb RW |
5844 | XGETTEXT="$ac_cv_path_XGETTEXT" |
5845 | if test "$XGETTEXT" != ":"; then | |
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
5847 | $as_echo "$XGETTEXT" >&6; } | |
5848 | else | |
5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5850 | $as_echo "no" >&6; } | |
0639a6f6 | 5851 | fi |
0639a6f6 | 5852 | |
81ecdfbb | 5853 | rm -f messages.po |
0639a6f6 ILT |
5854 | |
5855 | ||
81ecdfbb RW |
5856 | # Prepare PATH_SEPARATOR. |
5857 | # The user is always right. | |
5858 | if test "${PATH_SEPARATOR+set}" != set; then | |
5859 | echo "#! /bin/sh" >conf$$.sh | |
5860 | echo "exit 0" >>conf$$.sh | |
5861 | chmod +x conf$$.sh | |
5862 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5863 | PATH_SEPARATOR=';' | |
5864 | else | |
5865 | PATH_SEPARATOR=: | |
5866 | fi | |
5867 | rm -f conf$$.sh | |
0639a6f6 | 5868 | fi |
0639a6f6 | 5869 | |
81ecdfbb RW |
5870 | # Find out how to test for executable files. Don't use a zero-byte file, |
5871 | # as systems may use methods other than mode bits to determine executability. | |
5872 | cat >conf$$.file <<_ASEOF | |
5873 | #! /bin/sh | |
5874 | exit 0 | |
5875 | _ASEOF | |
5876 | chmod +x conf$$.file | |
5877 | if test -x conf$$.file >/dev/null 2>&1; then | |
5878 | ac_executable_p="test -x" | |
54dc6425 | 5879 | else |
81ecdfbb | 5880 | ac_executable_p="test -f" |
54dc6425 | 5881 | fi |
81ecdfbb | 5882 | rm -f conf$$.file |
54dc6425 | 5883 | |
81ecdfbb RW |
5884 | # Extract the first word of "msgmerge", so it can be a program name with args. |
5885 | set dummy msgmerge; ac_word=$2 | |
5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5887 | $as_echo_n "checking for $ac_word... " >&6; } | |
5888 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
5889 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5890 | else |
81ecdfbb RW |
5891 | case "$MSGMERGE" in |
5892 | [\\/]* | ?:[\\/]*) | |
5893 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
5894 | ;; | |
5895 | *) | |
5896 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5897 | for ac_dir in $PATH; do | |
5898 | IFS="$ac_save_IFS" | |
5899 | test -z "$ac_dir" && ac_dir=. | |
5900 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5901 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5902 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
5903 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
5904 | break 2 | |
5905 | fi | |
5906 | fi | |
5907 | done | |
5908 | done | |
5909 | IFS="$ac_save_IFS" | |
5910 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
5911 | ;; | |
5912 | esac | |
54dc6425 | 5913 | fi |
81ecdfbb RW |
5914 | MSGMERGE="$ac_cv_path_MSGMERGE" |
5915 | if test "$MSGMERGE" != ":"; then | |
5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
5917 | $as_echo "$MSGMERGE" >&6; } | |
0639a6f6 | 5918 | else |
81ecdfbb RW |
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5920 | $as_echo "no" >&6; } | |
5921 | fi | |
0639a6f6 | 5922 | |
54dc6425 | 5923 | |
81ecdfbb RW |
5924 | if test "$GMSGFMT" != ":"; then |
5925 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
5926 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5927 | : ; | |
5928 | else | |
5929 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
5931 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
5932 | GMSGFMT=":" | |
5933 | fi | |
5934 | fi | |
54dc6425 | 5935 | |
81ecdfbb RW |
5936 | if test "$XGETTEXT" != ":"; then |
5937 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5938 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5939 | : ; | |
5940 | else | |
5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
5942 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
5943 | XGETTEXT=":" | |
5944 | fi | |
5945 | rm -f messages.po | |
5946 | fi | |
54dc6425 | 5947 | |
81ecdfbb | 5948 | ac_config_commands="$ac_config_commands default-1" |
54dc6425 | 5949 | |
54dc6425 ILT |
5950 | |
5951 | ||
81ecdfbb RW |
5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
5953 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
5954 | if test "${ac_cv_c_bigendian+set}" = set; then : | |
5955 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5956 | else |
81ecdfbb RW |
5957 | ac_cv_c_bigendian=unknown |
5958 | # See if we're dealing with a universal compiler. | |
5959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
54dc6425 | 5960 | /* end confdefs.h. */ |
81ecdfbb RW |
5961 | #ifndef __APPLE_CC__ |
5962 | not a universal capable compiler | |
5963 | #endif | |
5964 | typedef int dummy; | |
5965 | ||
5966 | _ACEOF | |
5967 | if ac_fn_c_try_compile "$LINENO"; then : | |
5968 | ||
5969 | # Check for potential -arch flags. It is not universal unless | |
5970 | # there are at least two -arch flags with different values. | |
5971 | ac_arch= | |
5972 | ac_prev= | |
5973 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5974 | if test -n "$ac_prev"; then | |
5975 | case $ac_word in | |
5976 | i?86 | x86_64 | ppc | ppc64) | |
5977 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5978 | ac_arch=$ac_word | |
5979 | else | |
5980 | ac_cv_c_bigendian=universal | |
5981 | break | |
5982 | fi | |
5983 | ;; | |
5984 | esac | |
5985 | ac_prev= | |
5986 | elif test "x$ac_word" = "x-arch"; then | |
5987 | ac_prev=arch | |
5988 | fi | |
5989 | done | |
5990 | fi | |
5991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5992 | if test $ac_cv_c_bigendian = unknown; then | |
5993 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5995 | /* end confdefs.h. */ | |
5996 | #include <sys/types.h> | |
5997 | #include <sys/param.h> | |
5998 | ||
0639a6f6 ILT |
5999 | int |
6000 | main () | |
6001 | { | |
81ecdfbb RW |
6002 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
6003 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6004 | && LITTLE_ENDIAN) | |
6005 | bogus endian macros | |
6006 | #endif | |
54dc6425 | 6007 | |
81ecdfbb RW |
6008 | ; |
6009 | return 0; | |
6010 | } | |
15d5fa16 | 6011 | _ACEOF |
81ecdfbb RW |
6012 | if ac_fn_c_try_compile "$LINENO"; then : |
6013 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
6014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 6015 | /* end confdefs.h. */ |
81ecdfbb RW |
6016 | #include <sys/types.h> |
6017 | #include <sys/param.h> | |
6018 | ||
0639a6f6 ILT |
6019 | int |
6020 | main () | |
6021 | { | |
81ecdfbb RW |
6022 | #if BYTE_ORDER != BIG_ENDIAN |
6023 | not big endian | |
6024 | #endif | |
0639a6f6 ILT |
6025 | |
6026 | ; | |
6027 | return 0; | |
6028 | } | |
15d5fa16 | 6029 | _ACEOF |
81ecdfbb RW |
6030 | if ac_fn_c_try_compile "$LINENO"; then : |
6031 | ac_cv_c_bigendian=yes | |
15d5fa16 | 6032 | else |
81ecdfbb | 6033 | ac_cv_c_bigendian=no |
15d5fa16 | 6034 | fi |
81ecdfbb | 6035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0639a6f6 | 6036 | fi |
81ecdfbb RW |
6037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6038 | fi | |
6039 | if test $ac_cv_c_bigendian = unknown; then | |
6040 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6042 | /* end confdefs.h. */ | |
6043 | #include <limits.h> | |
0639a6f6 | 6044 | |
81ecdfbb RW |
6045 | int |
6046 | main () | |
6047 | { | |
6048 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
6049 | bogus endian macros | |
6050 | #endif | |
0639a6f6 | 6051 | |
81ecdfbb RW |
6052 | ; |
6053 | return 0; | |
6054 | } | |
15d5fa16 | 6055 | _ACEOF |
81ecdfbb RW |
6056 | if ac_fn_c_try_compile "$LINENO"; then : |
6057 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 6059 | /* end confdefs.h. */ |
81ecdfbb RW |
6060 | #include <limits.h> |
6061 | ||
0639a6f6 ILT |
6062 | int |
6063 | main () | |
6064 | { | |
81ecdfbb RW |
6065 | #ifndef _BIG_ENDIAN |
6066 | not big endian | |
6067 | #endif | |
0639a6f6 ILT |
6068 | |
6069 | ; | |
6070 | return 0; | |
6071 | } | |
15d5fa16 | 6072 | _ACEOF |
81ecdfbb RW |
6073 | if ac_fn_c_try_compile "$LINENO"; then : |
6074 | ac_cv_c_bigendian=yes | |
15d5fa16 | 6075 | else |
81ecdfbb | 6076 | ac_cv_c_bigendian=no |
15d5fa16 | 6077 | fi |
81ecdfbb | 6078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15d5fa16 | 6079 | fi |
81ecdfbb RW |
6080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6081 | fi | |
6082 | if test $ac_cv_c_bigendian = unknown; then | |
6083 | # Compile a test program. | |
6084 | if test "$cross_compiling" = yes; then : | |
6085 | # Try to guess by grepping values from an object file. | |
6086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6087 | /* end confdefs.h. */ | |
6088 | short int ascii_mm[] = | |
6089 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6090 | short int ascii_ii[] = | |
6091 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6092 | int use_ascii (int i) { | |
6093 | return ascii_mm[i] + ascii_ii[i]; | |
6094 | } | |
6095 | short int ebcdic_ii[] = | |
6096 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6097 | short int ebcdic_mm[] = | |
6098 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6099 | int use_ebcdic (int i) { | |
6100 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6101 | } | |
6102 | extern int foo; | |
15d5fa16 | 6103 | |
81ecdfbb RW |
6104 | int |
6105 | main () | |
6106 | { | |
6107 | return use_ascii (foo) == use_ebcdic (foo); | |
6108 | ; | |
6109 | return 0; | |
6110 | } | |
0639a6f6 | 6111 | _ACEOF |
81ecdfbb RW |
6112 | if ac_fn_c_try_compile "$LINENO"; then : |
6113 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6114 | ac_cv_c_bigendian=yes | |
6115 | fi | |
6116 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6117 | if test "$ac_cv_c_bigendian" = unknown; then | |
6118 | ac_cv_c_bigendian=no | |
6119 | else | |
6120 | # finding both strings is unlikely to happen, but who knows? | |
6121 | ac_cv_c_bigendian=unknown | |
6122 | fi | |
6123 | fi | |
54dc6425 | 6124 | fi |
81ecdfbb | 6125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
54dc6425 | 6126 | else |
81ecdfbb | 6127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
54dc6425 ILT |
6128 | /* end confdefs.h. */ |
6129 | $ac_includes_default | |
0639a6f6 ILT |
6130 | int |
6131 | main () | |
6132 | { | |
81ecdfbb RW |
6133 | |
6134 | /* Are we little or big endian? From Harbison&Steele. */ | |
6135 | union | |
6136 | { | |
6137 | long int l; | |
6138 | char c[sizeof (long int)]; | |
6139 | } u; | |
6140 | u.l = 1; | |
6141 | return u.c[sizeof (long int) - 1] == 1; | |
0639a6f6 ILT |
6142 | |
6143 | ; | |
6144 | return 0; | |
6145 | } | |
54dc6425 | 6146 | _ACEOF |
81ecdfbb RW |
6147 | if ac_fn_c_try_run "$LINENO"; then : |
6148 | ac_cv_c_bigendian=no | |
54dc6425 | 6149 | else |
81ecdfbb | 6150 | ac_cv_c_bigendian=yes |
54dc6425 | 6151 | fi |
81ecdfbb RW |
6152 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6153 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
0639a6f6 | 6154 | fi |
54dc6425 | 6155 | |
81ecdfbb RW |
6156 | fi |
6157 | fi | |
6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6159 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6160 | case $ac_cv_c_bigendian in #( | |
6161 | yes) | |
6162 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6163 | ;; #( | |
6164 | no) | |
6165 | ;; #( | |
6166 | universal) | |
6167 | ||
6168 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
6169 | ||
6170 | ;; #( | |
6171 | *) | |
6172 | as_fn_error "unknown endianness | |
6173 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
6174 | esac | |
0639a6f6 ILT |
6175 | |
6176 | ||
0639a6f6 ILT |
6177 | |
6178 | ||
81ecdfbb RW |
6179 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then |
6180 | NATIVE_LINKER_TRUE= | |
6181 | NATIVE_LINKER_FALSE='#' | |
6182 | else | |
6183 | NATIVE_LINKER_TRUE='#' | |
6184 | NATIVE_LINKER_FALSE= | |
0639a6f6 ILT |
6185 | fi |
6186 | ||
81ecdfbb RW |
6187 | if test "$GCC" = yes; then |
6188 | GCC_TRUE= | |
6189 | GCC_FALSE='#' | |
6190 | else | |
6191 | GCC_TRUE='#' | |
6192 | GCC_FALSE= | |
6193 | fi | |
0639a6f6 ILT |
6194 | |
6195 | ||
eb373049 ILT |
6196 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then |
6197 | NATIVE_OR_CROSS_LINKER_TRUE= | |
6198 | NATIVE_OR_CROSS_LINKER_FALSE='#' | |
6199 | else | |
6200 | NATIVE_OR_CROSS_LINKER_TRUE='#' | |
6201 | NATIVE_OR_CROSS_LINKER_FALSE= | |
6202 | fi | |
6203 | ||
6204 | ||
328c7c2f ILT |
6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5 |
6206 | $as_echo_n "checking whether static linking works... " >&6; } | |
6207 | if test "${gold_cv_lib_static+set}" = set; then : | |
6208 | $as_echo_n "(cached) " >&6 | |
6209 | else | |
6210 | LDFLAGS_hold=$LDFLAGS | |
6211 | LDFLAGS="$LDFLAGS -static" | |
6212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6213 | /* end confdefs.h. */ | |
6214 | ||
6215 | void f() { } | |
6216 | int | |
6217 | main () | |
6218 | { | |
6219 | ||
6220 | ; | |
6221 | return 0; | |
6222 | } | |
6223 | _ACEOF | |
6224 | if ac_fn_c_try_link "$LINENO"; then : | |
6225 | gold_cv_lib_static=yes | |
6226 | else | |
6227 | gold_cv_lib_static=no | |
6228 | fi | |
6229 | rm -f core conftest.err conftest.$ac_objext \ | |
6230 | conftest$ac_exeext conftest.$ac_ext | |
dd7af074 | 6231 | LDFLAGS=$LDFLAGS_hold |
328c7c2f ILT |
6232 | fi |
6233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5 | |
6234 | $as_echo "$gold_cv_lib_static" >&6; } | |
6235 | if test "$gold_cv_lib_static" = "yes"; then | |
6236 | HAVE_STATIC_TRUE= | |
6237 | HAVE_STATIC_FALSE='#' | |
6238 | else | |
6239 | HAVE_STATIC_TRUE='#' | |
6240 | HAVE_STATIC_FALSE= | |
6241 | fi | |
6242 | ||
6243 | ||
81ecdfbb RW |
6244 | if |
6245 | case $target_cpu in | |
6246 | i?86) true;; | |
6247 | x86_64) false;; | |
6248 | sparc64) false;; | |
6249 | *) true;; | |
6250 | esac; then | |
6251 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE= | |
6252 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#' | |
6253 | else | |
6254 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#' | |
6255 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE= | |
6256 | fi | |
0639a6f6 ILT |
6257 | |
6258 | ||
084e2665 ILT |
6259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5 |
6260 | $as_echo_n "checking for gcc >= 4.1... " >&6; } | |
6261 | if test "${gold_cv_prog_gcc41+set}" = set; then : | |
6262 | $as_echo_n "(cached) " >&6 | |
6263 | else | |
6264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6265 | /* end confdefs.h. */ | |
6266 | ||
6267 | #if !defined __GNUC__ | |
6268 | error | |
6269 | #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) | |
6270 | error | |
6271 | #endif | |
6272 | ||
6273 | _ACEOF | |
6274 | if ac_fn_c_try_compile "$LINENO"; then : | |
6275 | gold_cv_prog_gcc41=yes | |
6276 | else | |
6277 | gold_cv_prog_gcc41=no | |
6278 | fi | |
6279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6280 | fi | |
6281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5 | |
6282 | $as_echo "$gold_cv_prog_gcc41" >&6; } | |
6283 | ||
6284 | if test "$target_cpu" = "x86_64" -a "$gold_cv_prog_gcc41" = "yes"; then | |
81ecdfbb RW |
6285 | MCMODEL_MEDIUM_TRUE= |
6286 | MCMODEL_MEDIUM_FALSE='#' | |
54dc6425 | 6287 | else |
81ecdfbb RW |
6288 | MCMODEL_MEDIUM_TRUE='#' |
6289 | MCMODEL_MEDIUM_FALSE= | |
54dc6425 | 6290 | fi |
54dc6425 | 6291 | |
54dc6425 | 6292 | |
81ecdfbb RW |
6293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5 |
6294 | $as_echo_n "checking for thread support... " >&6; } | |
6295 | if test "${gold_cv_c_thread+set}" = set; then : | |
6296 | $as_echo_n "(cached) " >&6 | |
6297 | else | |
6298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e44fcf3b | 6299 | /* end confdefs.h. */ |
81ecdfbb | 6300 | __thread int i = 1; |
e44fcf3b | 6301 | _ACEOF |
81ecdfbb RW |
6302 | if ac_fn_c_try_compile "$LINENO"; then : |
6303 | gold_cv_c_thread=yes | |
0639a6f6 | 6304 | else |
81ecdfbb | 6305 | gold_cv_c_thread=no |
0639a6f6 | 6306 | fi |
81ecdfbb | 6307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e44fcf3b | 6308 | fi |
81ecdfbb RW |
6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5 |
6310 | $as_echo "$gold_cv_c_thread" >&6; } | |
e44fcf3b | 6311 | |
81ecdfbb RW |
6312 | if test "$gold_cv_c_thread" = "yes"; then |
6313 | TLS_TRUE= | |
6314 | TLS_FALSE='#' | |
6315 | else | |
6316 | TLS_TRUE='#' | |
6317 | TLS_FALSE= | |
0639a6f6 | 6318 | fi |
e44fcf3b | 6319 | |
0639a6f6 | 6320 | |
81ecdfbb RW |
6321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5 |
6322 | $as_echo_n "checking for glibc >= 2.4... " >&6; } | |
6323 | if test "${gold_cv_lib_glibc24+set}" = set; then : | |
6324 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6325 | else |
81ecdfbb | 6326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1b77ea50 | 6327 | /* end confdefs.h. */ |
81ecdfbb RW |
6328 | |
6329 | #include <features.h> | |
6330 | #if !defined __GLIBC__ | |
6331 | error | |
6332 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4) | |
6333 | error | |
1b77ea50 | 6334 | #endif |
81ecdfbb | 6335 | |
1b77ea50 | 6336 | _ACEOF |
81ecdfbb RW |
6337 | if ac_fn_c_try_compile "$LINENO"; then : |
6338 | gold_cv_lib_glibc24=yes | |
0639a6f6 | 6339 | else |
81ecdfbb | 6340 | gold_cv_lib_glibc24=no |
0639a6f6 | 6341 | fi |
81ecdfbb | 6342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1b77ea50 | 6343 | fi |
81ecdfbb RW |
6344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5 |
6345 | $as_echo "$gold_cv_lib_glibc24" >&6; } | |
1b77ea50 | 6346 | |
81ecdfbb RW |
6347 | if test "$gold_cv_lib_glibc24" = "yes"; then |
6348 | STATIC_TLS_TRUE= | |
6349 | STATIC_TLS_FALSE='#' | |
0639a6f6 | 6350 | else |
81ecdfbb RW |
6351 | STATIC_TLS_TRUE='#' |
6352 | STATIC_TLS_FALSE= | |
0639a6f6 | 6353 | fi |
1b77ea50 | 6354 | |
0639a6f6 | 6355 | |
81ecdfbb RW |
6356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5 |
6357 | $as_echo_n "checking for omp support... " >&6; } | |
6358 | if test "${gold_cv_c_threadprivate+set}" = set; then : | |
6359 | $as_echo_n "(cached) " >&6 | |
0639a6f6 | 6360 | else |
81ecdfbb RW |
6361 | save_CFLAGS="$CFLAGS" |
6362 | CFLAGS="$CFLAGS -fopenmp" | |
6363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6364 | /* end confdefs.h. */ | |
1b77ea50 | 6365 | |
81ecdfbb RW |
6366 | #include <omp.h> |
6367 | int i; | |
6368 | #pragma omp threadprivate (i) | |
1b77ea50 | 6369 | |
81ecdfbb RW |
6370 | _ACEOF |
6371 | if ac_fn_c_try_compile "$LINENO"; then : | |
6372 | gold_cv_c_threadprivate=yes | |
6373 | else | |
6374 | gold_cv_c_threadprivate=no | |
6375 | fi | |
6376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6377 | CFLAGS="$save_CFLAGS" | |
6378 | fi | |
6379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5 | |
6380 | $as_echo "$gold_cv_c_threadprivate" >&6; } | |
6381 | if test "$gold_cv_c_threadprivate" = "yes"; then | |
1b77ea50 | 6382 | |
81ecdfbb | 6383 | $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h |
1b77ea50 | 6384 | |
0639a6f6 | 6385 | fi |
81ecdfbb RW |
6386 | if test "$gold_cv_c_threadprivate" = "yes"; then |
6387 | OMP_SUPPORT_TRUE= | |
6388 | OMP_SUPPORT_FALSE='#' | |
1b77ea50 | 6389 | else |
81ecdfbb RW |
6390 | OMP_SUPPORT_TRUE='#' |
6391 | OMP_SUPPORT_FALSE= | |
1b77ea50 | 6392 | fi |
1b77ea50 | 6393 | |
81ecdfbb RW |
6394 | |
6395 | save_CFLAGS="$CFLAGS" | |
6396 | CFLAGS="$CFLAGS -mtls-dialect=gnu2" | |
6397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0639a6f6 | 6398 | /* end confdefs.h. */ |
81ecdfbb | 6399 | int i; |
1b77ea50 | 6400 | _ACEOF |
81ecdfbb RW |
6401 | if ac_fn_c_try_compile "$LINENO"; then : |
6402 | have_tls_gnu2=yes | |
0639a6f6 | 6403 | else |
81ecdfbb | 6404 | have_tls_gnu2=no |
0639a6f6 | 6405 | fi |
81ecdfbb RW |
6406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6407 | CFLAGS="$save_CFLAGS" | |
6408 | if test "$have_tls_gnu2" = "yes"; then | |
6409 | TLS_GNU2_DIALECT_TRUE= | |
6410 | TLS_GNU2_DIALECT_FALSE='#' | |
0639a6f6 | 6411 | else |
81ecdfbb RW |
6412 | TLS_GNU2_DIALECT_TRUE='#' |
6413 | TLS_GNU2_DIALECT_FALSE= | |
0639a6f6 | 6414 | fi |
1b77ea50 | 6415 | |
81ecdfbb RW |
6416 | |
6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5 | |
6418 | $as_echo_n "checking for glibc >= 2.9... " >&6; } | |
6419 | if test "${gold_cv_lib_glibc29+set}" = set; then : | |
6420 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6421 | else |
81ecdfbb RW |
6422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6423 | /* end confdefs.h. */ | |
0639a6f6 | 6424 | |
81ecdfbb RW |
6425 | #include <features.h> |
6426 | #if !defined __GLIBC__ | |
6427 | error | |
6428 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9) | |
6429 | error | |
6430 | #endif | |
1b77ea50 | 6431 | |
81ecdfbb RW |
6432 | _ACEOF |
6433 | if ac_fn_c_try_compile "$LINENO"; then : | |
6434 | gold_cv_lib_glibc29=yes | |
6435 | else | |
6436 | gold_cv_lib_glibc29=no | |
1b77ea50 | 6437 | fi |
81ecdfbb RW |
6438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6439 | fi | |
6440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5 | |
6441 | $as_echo "$gold_cv_lib_glibc29" >&6; } | |
0639a6f6 | 6442 | |
81ecdfbb RW |
6443 | if test "$gold_cv_lib_glibc29" = "yes"; then |
6444 | TLS_DESCRIPTORS_TRUE= | |
6445 | TLS_DESCRIPTORS_FALSE='#' | |
6446 | else | |
6447 | TLS_DESCRIPTORS_TRUE='#' | |
6448 | TLS_DESCRIPTORS_FALSE= | |
6449 | fi | |
0639a6f6 ILT |
6450 | |
6451 | ||
81ecdfbb RW |
6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5 |
6453 | $as_echo_n "checking for -frandom-seed support... " >&6; } | |
6454 | if test "${gold_cv_c_random_seed+set}" = set; then : | |
6455 | $as_echo_n "(cached) " >&6 | |
6456 | else | |
6457 | save_CFLAGS="$CFLAGS" | |
6458 | CFLAGS="$CFLAGS -frandom-seed=foo" | |
6459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0639a6f6 | 6460 | /* end confdefs.h. */ |
81ecdfbb | 6461 | int i; |
0639a6f6 | 6462 | _ACEOF |
81ecdfbb RW |
6463 | if ac_fn_c_try_compile "$LINENO"; then : |
6464 | gold_cv_c_random_seed=yes | |
0639a6f6 | 6465 | else |
81ecdfbb RW |
6466 | gold_cv_c_random_seed=no |
6467 | fi | |
6468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6469 | CFLAGS="$save_CFLAGS" | |
6470 | fi | |
6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5 | |
6472 | $as_echo "$gold_cv_c_random_seed" >&6; } | |
6473 | if test "$gold_cv_c_random_seed" = "yes"; then | |
6474 | # In Makefile, '$@' will be expanded to be the name of the file | |
6475 | # being built, providing a unique seed for each file. | |
6476 | RANDOM_SEED_CFLAGS=-frandom-seed=\$@ | |
0639a6f6 | 6477 | fi |
1b77ea50 | 6478 | |
81ecdfbb | 6479 | |
ebb300b2 CC |
6480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5 |
6481 | $as_echo_n "checking for glibc ifunc support... " >&6; } | |
6482 | if test "${gold_cv_lib_glibc_ifunc+set}" = set; then : | |
7223e9ca ILT |
6483 | $as_echo_n "(cached) " >&6 |
6484 | else | |
ebb300b2 CC |
6485 | save_LDFLAGS="$LDFLAGS" |
6486 | LDFLAGS="$LDFLAGS -static" | |
6487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7223e9ca ILT |
6488 | /* end confdefs.h. */ |
6489 | ||
6490 | #include <features.h> | |
6491 | #if !defined __GLIBC__ | |
6492 | error | |
6493 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11) | |
6494 | error | |
6495 | #endif | |
ebb300b2 CC |
6496 | void func (void) { } |
6497 | void invoke (void); | |
6498 | __asm__(".type invoke, %gnu_indirect_function"); | |
6499 | typedef void (*funcptr) (void); | |
6500 | funcptr dispatch (void) __asm__ ("invoke"); | |
6501 | funcptr dispatch (void) { return &func; } | |
6502 | int | |
6503 | main () | |
6504 | { | |
6505 | invoke(); | |
6506 | ; | |
6507 | return 0; | |
6508 | } | |
7223e9ca ILT |
6509 | |
6510 | _ACEOF | |
ebb300b2 CC |
6511 | if ac_fn_c_try_link "$LINENO"; then : |
6512 | ||
6513 | if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then | |
6514 | gold_cv_lib_glibc_ifunc=both | |
7223e9ca | 6515 | else |
ebb300b2 | 6516 | gold_cv_lib_glibc_ifunc=dyn |
7223e9ca | 6517 | fi |
ebb300b2 CC |
6518 | else |
6519 | gold_cv_lib_glibc_ifunc=no | |
6520 | fi | |
6521 | rm -f core conftest.err conftest.$ac_objext \ | |
6522 | conftest$ac_exeext conftest.$ac_ext | |
6523 | LDFLAGS="$save_LDFLAGS" | |
7223e9ca | 6524 | fi |
ebb300b2 CC |
6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5 |
6526 | $as_echo "$gold_cv_lib_glibc_ifunc" >&6; } | |
7223e9ca | 6527 | |
ebb300b2 | 6528 | if test "$gold_cv_lib_glibc_ifunc" != "no"; then |
7223e9ca ILT |
6529 | IFUNC_TRUE= |
6530 | IFUNC_FALSE='#' | |
6531 | else | |
6532 | IFUNC_TRUE='#' | |
6533 | IFUNC_FALSE= | |
6534 | fi | |
6535 | ||
ebb300b2 CC |
6536 | if test "$gold_cv_lib_glibc_ifunc" = "both"; then |
6537 | IFUNC_STATIC_TRUE= | |
6538 | IFUNC_STATIC_FALSE='#' | |
6539 | else | |
6540 | IFUNC_STATIC_TRUE='#' | |
6541 | IFUNC_STATIC_FALSE= | |
6542 | fi | |
6543 | ||
7223e9ca | 6544 | |
81ecdfbb | 6545 | |
efc8d4f2 RW |
6546 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
6547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6548 | /* end confdefs.h. */ | |
6549 | __GNUC__ | |
6550 | _ACEOF | |
6551 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6552 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
6553 | ||
6554 | else | |
6555 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
6556 | fi | |
6557 | rm -f conftest* | |
6558 | ||
81ecdfbb RW |
6559 | |
6560 | # Check whether --enable-werror was given. | |
6561 | if test "${enable_werror+set}" = set; then : | |
6562 | enableval=$enable_werror; case "${enableval}" in | |
6563 | yes | y) ERROR_ON_WARNING="yes" ;; | |
6564 | no | n) ERROR_ON_WARNING="no" ;; | |
6565 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
6566 | esac | |
0639a6f6 | 6567 | fi |
1b77ea50 | 6568 | |
81ecdfbb | 6569 | |
efc8d4f2 | 6570 | # Disable -Wformat by default when using gcc on mingw |
81ecdfbb RW |
6571 | case "${host}" in |
6572 | *-*-mingw32*) | |
6573 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
6574 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
6575 | fi | |
0639a6f6 | 6576 | ;; |
81ecdfbb | 6577 | *) ;; |
0639a6f6 | 6578 | esac |
81ecdfbb RW |
6579 | |
6580 | # Enable -Werror by default when using gcc | |
6581 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
6582 | ERROR_ON_WARNING=yes | |
0639a6f6 | 6583 | fi |
0639a6f6 | 6584 | |
81ecdfbb RW |
6585 | NO_WERROR= |
6586 | if test "${ERROR_ON_WARNING}" = yes ; then | |
6587 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
6588 | NO_WERROR="-Wno-error" | |
0639a6f6 | 6589 | fi |
1b77ea50 | 6590 | |
81ecdfbb RW |
6591 | if test "${GCC}" = yes ; then |
6592 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
0639a6f6 ILT |
6593 | fi |
6594 | ||
81ecdfbb RW |
6595 | # Check whether --enable-build-warnings was given. |
6596 | if test "${enable_build_warnings+set}" = set; then : | |
6597 | enableval=$enable_build_warnings; case "${enableval}" in | |
6598 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
6599 | no) if test "${GCC}" = yes ; then | |
6600 | WARN_CFLAGS="-w" | |
6601 | fi;; | |
6602 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6603 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
6604 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6605 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
6606 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6607 | esac | |
6608 | fi | |
0639a6f6 | 6609 | |
1b77ea50 | 6610 | |
81ecdfbb RW |
6611 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
6612 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
0639a6f6 | 6613 | fi |
1b77ea50 | 6614 | |
1b77ea50 | 6615 | |
1b77ea50 | 6616 | |
0639a6f6 | 6617 | |
1b77ea50 | 6618 | |
2ea97941 | 6619 | WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'` |
81ecdfbb RW |
6620 | |
6621 | ||
6622 | LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" | |
6623 | ||
6624 | ||
88597d34 | 6625 | for ac_header in sys/mman.h |
81ecdfbb | 6626 | do : |
88597d34 ILT |
6627 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" |
6628 | if test "x$ac_cv_header_sys_mman_h" = x""yes; then : | |
0639a6f6 | 6629 | cat >>confdefs.h <<_ACEOF |
88597d34 ILT |
6630 | #define HAVE_SYS_MMAN_H 1 |
6631 | _ACEOF | |
6632 | ||
6633 | fi | |
6634 | ||
6635 | done | |
6636 | ||
6637 | for ac_func in chsize mmap | |
6638 | do : | |
6639 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6640 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6641 | eval as_val=\$$as_ac_var | |
6642 | if test "x$as_val" = x""yes; then : | |
6643 | cat >>confdefs.h <<_ACEOF | |
6644 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1b77ea50 ILT |
6645 | _ACEOF |
6646 | ||
0639a6f6 | 6647 | fi |
0639a6f6 | 6648 | done |
1b77ea50 | 6649 | |
88597d34 | 6650 | for ac_func in pread ftruncate ffsll |
81ecdfbb RW |
6651 | do : |
6652 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6653 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6654 | eval as_val=\$$as_ac_var | |
6655 | if test "x$as_val" = x""yes; then : | |
6656 | cat >>confdefs.h <<_ACEOF | |
6657 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1b77ea50 | 6658 | _ACEOF |
0639a6f6 | 6659 | |
81ecdfbb RW |
6660 | else |
6661 | case " $LIBOBJS " in | |
6662 | *" $ac_func.$ac_objext "* ) ;; | |
6663 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
6664 | ;; | |
6665 | esac | |
0639a6f6 | 6666 | |
81ecdfbb RW |
6667 | fi |
6668 | done | |
0639a6f6 | 6669 | |
0639a6f6 | 6670 | |
81ecdfbb | 6671 | |
88597d34 ILT |
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5 |
6673 | $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; } | |
6674 | if test "${gold_cv_lib_mremap_maymove+set}" = set; then : | |
6675 | $as_echo_n "(cached) " >&6 | |
6676 | else | |
6677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6678 | /* end confdefs.h. */ | |
6679 | ||
6680 | ||
6681 | #include <sys/mman.h> | |
6682 | void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); } | |
6683 | ||
6684 | int | |
6685 | main () | |
6686 | { | |
6687 | ||
6688 | ; | |
6689 | return 0; | |
6690 | } | |
6691 | _ACEOF | |
6692 | if ac_fn_c_try_link "$LINENO"; then : | |
6693 | gold_cv_lib_mremap_maymove=yes | |
6694 | else | |
6695 | gold_cv_lib_mremap_maymove=no | |
6696 | fi | |
6697 | rm -f core conftest.err conftest.$ac_objext \ | |
6698 | conftest$ac_exeext conftest.$ac_ext | |
6699 | fi | |
6700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5 | |
6701 | $as_echo "$gold_cv_lib_mremap_maymove" >&6; } | |
6702 | if test "$gold_cv_lib_mremap_maymove" = "yes"; then | |
6703 | ||
6704 | $as_echo "#define HAVE_MREMAP 1" >>confdefs.h | |
6705 | ||
6706 | else | |
6707 | case " $LIBOBJS " in | |
6708 | *" mremap.$ac_objext "* ) ;; | |
6709 | *) LIBOBJS="$LIBOBJS mremap.$ac_objext" | |
6710 | ;; | |
6711 | esac | |
6712 | ||
6713 | fi | |
6714 | ||
81ecdfbb RW |
6715 | # Link in zlib if we can. This allows us to write compressed sections. |
6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 | |
6717 | $as_echo_n "checking for library containing zlibVersion... " >&6; } | |
6718 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
6719 | $as_echo_n "(cached) " >&6 | |
6720 | else | |
6721 | ac_func_search_save_LIBS=$LIBS | |
6722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6723 | /* end confdefs.h. */ | |
6724 | ||
6725 | /* Override any GCC internal prototype to avoid an error. | |
6726 | Use char because int might match the return type of a GCC | |
6727 | builtin and then its argument prototype would still apply. */ | |
0639a6f6 | 6728 | #ifdef __cplusplus |
81ecdfbb | 6729 | extern "C" |
1b77ea50 | 6730 | #endif |
81ecdfbb | 6731 | char zlibVersion (); |
0639a6f6 ILT |
6732 | int |
6733 | main () | |
6734 | { | |
81ecdfbb | 6735 | return zlibVersion (); |
1b77ea50 ILT |
6736 | ; |
6737 | return 0; | |
6738 | } | |
6739 | _ACEOF | |
81ecdfbb RW |
6740 | for ac_lib in '' z; do |
6741 | if test -z "$ac_lib"; then | |
6742 | ac_res="none required" | |
6743 | else | |
6744 | ac_res=-l$ac_lib | |
6745 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6746 | fi | |
6747 | if ac_fn_c_try_link "$LINENO"; then : | |
6748 | ac_cv_search_zlibVersion=$ac_res | |
6749 | fi | |
6750 | rm -f core conftest.err conftest.$ac_objext \ | |
6751 | conftest$ac_exeext | |
6752 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
6753 | break | |
6754 | fi | |
6755 | done | |
6756 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
1b77ea50 | 6757 | |
81ecdfbb RW |
6758 | else |
6759 | ac_cv_search_zlibVersion=no | |
1b77ea50 | 6760 | fi |
81ecdfbb RW |
6761 | rm conftest.$ac_ext |
6762 | LIBS=$ac_func_search_save_LIBS | |
1b77ea50 | 6763 | fi |
81ecdfbb RW |
6764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5 |
6765 | $as_echo "$ac_cv_search_zlibVersion" >&6; } | |
6766 | ac_res=$ac_cv_search_zlibVersion | |
6767 | if test "$ac_res" != no; then : | |
6768 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6769 | for ac_header in zlib.h | |
6770 | do : | |
6771 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
6772 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | |
1b77ea50 | 6773 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6774 | #define HAVE_ZLIB_H 1 |
1b77ea50 ILT |
6775 | _ACEOF |
6776 | ||
1b77ea50 | 6777 | fi |
81ecdfbb | 6778 | |
0639a6f6 | 6779 | done |
1b77ea50 | 6780 | |
81ecdfbb | 6781 | fi |
3d857b98 | 6782 | |
81ecdfbb RW |
6783 | if test "$ac_cv_search_zlibVersion" != "no"; then |
6784 | HAVE_ZLIB_TRUE= | |
6785 | HAVE_ZLIB_FALSE='#' | |
3d857b98 | 6786 | else |
81ecdfbb RW |
6787 | HAVE_ZLIB_TRUE='#' |
6788 | HAVE_ZLIB_FALSE= | |
3d857b98 | 6789 | fi |
81ecdfbb RW |
6790 | |
6791 | ||
6792 | ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
6793 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
6794 | ac_have_decl=1 | |
6795 | else | |
6796 | ac_have_decl=0 | |
3d857b98 | 6797 | fi |
3d857b98 DK |
6798 | |
6799 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6800 | #define HAVE_DECL_BASENAME $ac_have_decl |
3d857b98 | 6801 | _ACEOF |
81ecdfbb RW |
6802 | ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
6803 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
6804 | ac_have_decl=1 | |
3d857b98 | 6805 | else |
81ecdfbb | 6806 | ac_have_decl=0 |
3d857b98 | 6807 | fi |
3d857b98 | 6808 | |
81ecdfbb RW |
6809 | cat >>confdefs.h <<_ACEOF |
6810 | #define HAVE_DECL_FFS $ac_have_decl | |
3d857b98 | 6811 | _ACEOF |
81ecdfbb RW |
6812 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
6813 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
6814 | ac_have_decl=1 | |
3d857b98 | 6815 | else |
81ecdfbb | 6816 | ac_have_decl=0 |
3d857b98 | 6817 | fi |
3d857b98 DK |
6818 | |
6819 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6820 | #define HAVE_DECL_ASPRINTF $ac_have_decl |
3d857b98 | 6821 | _ACEOF |
81ecdfbb RW |
6822 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
6823 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
6824 | ac_have_decl=1 | |
3d857b98 | 6825 | else |
81ecdfbb | 6826 | ac_have_decl=0 |
3d857b98 | 6827 | fi |
3d857b98 | 6828 | |
81ecdfbb RW |
6829 | cat >>confdefs.h <<_ACEOF |
6830 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
3d857b98 | 6831 | _ACEOF |
81ecdfbb RW |
6832 | ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
6833 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
6834 | ac_have_decl=1 | |
3d857b98 | 6835 | else |
81ecdfbb RW |
6836 | ac_have_decl=0 |
6837 | fi | |
3d857b98 | 6838 | |
81ecdfbb RW |
6839 | cat >>confdefs.h <<_ACEOF |
6840 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
6841 | _ACEOF | |
6842 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" | |
6843 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
6844 | ac_have_decl=1 | |
6845 | else | |
6846 | ac_have_decl=0 | |
3d857b98 | 6847 | fi |
81ecdfbb RW |
6848 | |
6849 | cat >>confdefs.h <<_ACEOF | |
6850 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | |
6851 | _ACEOF | |
6852 | ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" | |
6853 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
6854 | ac_have_decl=1 | |
6855 | else | |
6856 | ac_have_decl=0 | |
3d857b98 | 6857 | fi |
3d857b98 DK |
6858 | |
6859 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6860 | #define HAVE_DECL_STRVERSCMP $ac_have_decl |
3d857b98 DK |
6861 | _ACEOF |
6862 | ||
6863 | ||
81ecdfbb RW |
6864 | ac_ext=cpp |
6865 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6866 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6867 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6868 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3d857b98 DK |
6869 | |
6870 | ||
81ecdfbb RW |
6871 | |
6872 | ac_ext=cpp | |
6873 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6874 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6875 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6876 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
6878 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
6879 | if test -z "$CXXCPP"; then | |
6880 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
6881 | $as_echo_n "(cached) " >&6 | |
3d857b98 | 6882 | else |
81ecdfbb RW |
6883 | # Double quotes because CXXCPP needs to be expanded |
6884 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
6885 | do | |
6886 | ac_preproc_ok=false | |
6887 | for ac_cxx_preproc_warn_flag in '' yes | |
6888 | do | |
6889 | # Use a header file that comes with gcc, so configuring glibc | |
6890 | # with a fresh cross-compiler works. | |
6891 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6892 | # <limits.h> exists even on freestanding compilers. | |
6893 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6894 | # not just through cpp. "Syntax error" is here to catch this case. | |
6895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 6896 | /* end confdefs.h. */ |
81ecdfbb RW |
6897 | #ifdef __STDC__ |
6898 | # include <limits.h> | |
6899 | #else | |
6900 | # include <assert.h> | |
3d857b98 | 6901 | #endif |
81ecdfbb | 6902 | Syntax error |
3d857b98 | 6903 | _ACEOF |
81ecdfbb | 6904 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 6905 | |
81ecdfbb RW |
6906 | else |
6907 | # Broken: fails on valid input. | |
6908 | continue | |
3d857b98 | 6909 | fi |
81ecdfbb | 6910 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 6911 | |
81ecdfbb RW |
6912 | # OK, works on sane cases. Now check whether nonexistent headers |
6913 | # can be detected and how. | |
6914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6915 | /* end confdefs.h. */ | |
6916 | #include <ac_nonexistent.h> | |
3d857b98 | 6917 | _ACEOF |
81ecdfbb RW |
6918 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
6919 | # Broken: success on invalid input. | |
6920 | continue | |
3d857b98 | 6921 | else |
81ecdfbb RW |
6922 | # Passes both tests. |
6923 | ac_preproc_ok=: | |
6924 | break | |
6925 | fi | |
6926 | rm -f conftest.err conftest.$ac_ext | |
6927 | ||
6928 | done | |
6929 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6930 | rm -f conftest.err conftest.$ac_ext | |
6931 | if $ac_preproc_ok; then : | |
6932 | break | |
6933 | fi | |
3d857b98 | 6934 | |
81ecdfbb RW |
6935 | done |
6936 | ac_cv_prog_CXXCPP=$CXXCPP | |
3d857b98 DK |
6937 | |
6938 | fi | |
81ecdfbb | 6939 | CXXCPP=$ac_cv_prog_CXXCPP |
3d857b98 | 6940 | else |
81ecdfbb RW |
6941 | ac_cv_prog_CXXCPP=$CXXCPP |
6942 | fi | |
6943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
6944 | $as_echo "$CXXCPP" >&6; } | |
6945 | ac_preproc_ok=false | |
6946 | for ac_cxx_preproc_warn_flag in '' yes | |
6947 | do | |
6948 | # Use a header file that comes with gcc, so configuring glibc | |
6949 | # with a fresh cross-compiler works. | |
6950 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6951 | # <limits.h> exists even on freestanding compilers. | |
6952 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6953 | # not just through cpp. "Syntax error" is here to catch this case. | |
6954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 6955 | /* end confdefs.h. */ |
81ecdfbb RW |
6956 | #ifdef __STDC__ |
6957 | # include <limits.h> | |
6958 | #else | |
6959 | # include <assert.h> | |
3d857b98 | 6960 | #endif |
81ecdfbb | 6961 | Syntax error |
3d857b98 | 6962 | _ACEOF |
81ecdfbb | 6963 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 6964 | |
81ecdfbb RW |
6965 | else |
6966 | # Broken: fails on valid input. | |
6967 | continue | |
3d857b98 | 6968 | fi |
81ecdfbb | 6969 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 6970 | |
81ecdfbb RW |
6971 | # OK, works on sane cases. Now check whether nonexistent headers |
6972 | # can be detected and how. | |
6973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6974 | /* end confdefs.h. */ | |
6975 | #include <ac_nonexistent.h> | |
3d857b98 | 6976 | _ACEOF |
81ecdfbb RW |
6977 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
6978 | # Broken: success on invalid input. | |
6979 | continue | |
6980 | else | |
6981 | # Passes both tests. | |
6982 | ac_preproc_ok=: | |
6983 | break | |
6984 | fi | |
6985 | rm -f conftest.err conftest.$ac_ext | |
3d857b98 | 6986 | |
81ecdfbb RW |
6987 | done |
6988 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6989 | rm -f conftest.err conftest.$ac_ext | |
6990 | if $ac_preproc_ok; then : | |
3d857b98 DK |
6991 | |
6992 | else | |
81ecdfbb RW |
6993 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
6994 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6995 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check | |
6996 | See \`config.log' for more details." "$LINENO" 5; } | |
6997 | fi | |
6998 | ||
6999 | ac_ext=cpp | |
7000 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7001 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7002 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7003 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7004 | ||
7005 | ||
7006 | for ac_header in tr1/unordered_set tr1/unordered_map | |
7007 | do : | |
7008 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7009 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
7010 | eval as_val=\$$as_ac_Header | |
7011 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 7012 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7013 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3d857b98 DK |
7014 | _ACEOF |
7015 | ||
3d857b98 | 7016 | fi |
3d857b98 | 7017 | |
81ecdfbb RW |
7018 | done |
7019 | ||
7020 | for ac_header in ext/hash_map ext/hash_set | |
7021 | do : | |
7022 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7023 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
7024 | eval as_val=\$$as_ac_Header | |
7025 | if test "x$as_val" = x""yes; then : | |
7026 | cat >>confdefs.h <<_ACEOF | |
7027 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7028 | _ACEOF | |
3d857b98 | 7029 | |
3d857b98 | 7030 | fi |
3d857b98 | 7031 | |
81ecdfbb RW |
7032 | done |
7033 | ||
7034 | for ac_header in byteswap.h | |
7035 | do : | |
7036 | ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" | |
7037 | if test "x$ac_cv_header_byteswap_h" = x""yes; then : | |
7038 | cat >>confdefs.h <<_ACEOF | |
7039 | #define HAVE_BYTESWAP_H 1 | |
3d857b98 DK |
7040 | _ACEOF |
7041 | ||
81ecdfbb | 7042 | fi |
3d857b98 | 7043 | |
81ecdfbb RW |
7044 | done |
7045 | ||
d675ff46 | 7046 | for ac_func in mallinfo posix_fallocate readv sysconf times |
81ecdfbb RW |
7047 | do : |
7048 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7049 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
7050 | eval as_val=\$$as_ac_var | |
7051 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 7052 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7053 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
3d857b98 DK |
7054 | _ACEOF |
7055 | ||
3d857b98 | 7056 | fi |
81ecdfbb RW |
7057 | done |
7058 | ||
7059 | ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
7060 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
7061 | ac_have_decl=1 | |
3d857b98 | 7062 | else |
81ecdfbb RW |
7063 | ac_have_decl=0 |
7064 | fi | |
3d857b98 | 7065 | |
81ecdfbb RW |
7066 | cat >>confdefs.h <<_ACEOF |
7067 | #define HAVE_DECL_BASENAME $ac_have_decl | |
3d857b98 | 7068 | _ACEOF |
81ecdfbb RW |
7069 | ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
7070 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
7071 | ac_have_decl=1 | |
3d857b98 | 7072 | else |
81ecdfbb | 7073 | ac_have_decl=0 |
3d857b98 | 7074 | fi |
3d857b98 DK |
7075 | |
7076 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7077 | #define HAVE_DECL_FFS $ac_have_decl |
3d857b98 | 7078 | _ACEOF |
81ecdfbb RW |
7079 | ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
7080 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
7081 | ac_have_decl=1 | |
3d857b98 | 7082 | else |
81ecdfbb | 7083 | ac_have_decl=0 |
3d857b98 | 7084 | fi |
3d857b98 | 7085 | |
81ecdfbb RW |
7086 | cat >>confdefs.h <<_ACEOF |
7087 | #define HAVE_DECL_ASPRINTF $ac_have_decl | |
3d857b98 | 7088 | _ACEOF |
81ecdfbb RW |
7089 | ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
7090 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
7091 | ac_have_decl=1 | |
3d857b98 | 7092 | else |
81ecdfbb | 7093 | ac_have_decl=0 |
3d857b98 | 7094 | fi |
3d857b98 DK |
7095 | |
7096 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7097 | #define HAVE_DECL_VASPRINTF $ac_have_decl |
3d857b98 | 7098 | _ACEOF |
81ecdfbb RW |
7099 | ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
7100 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
7101 | ac_have_decl=1 | |
3d857b98 | 7102 | else |
81ecdfbb | 7103 | ac_have_decl=0 |
3d857b98 | 7104 | fi |
3d857b98 | 7105 | |
81ecdfbb RW |
7106 | cat >>confdefs.h <<_ACEOF |
7107 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
3d857b98 | 7108 | _ACEOF |
81ecdfbb RW |
7109 | ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" |
7110 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
7111 | ac_have_decl=1 | |
3d857b98 | 7112 | else |
81ecdfbb | 7113 | ac_have_decl=0 |
3d857b98 | 7114 | fi |
3d857b98 DK |
7115 | |
7116 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7117 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
3d857b98 | 7118 | _ACEOF |
81ecdfbb RW |
7119 | ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" |
7120 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
7121 | ac_have_decl=1 | |
3d857b98 | 7122 | else |
81ecdfbb RW |
7123 | ac_have_decl=0 |
7124 | fi | |
3d857b98 | 7125 | |
81ecdfbb RW |
7126 | cat >>confdefs.h <<_ACEOF |
7127 | #define HAVE_DECL_STRVERSCMP $ac_have_decl | |
7128 | _ACEOF | |
7129 | ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" | |
7130 | if test "x$ac_cv_have_decl_strndup" = x""yes; then : | |
7131 | ac_have_decl=1 | |
7132 | else | |
7133 | ac_have_decl=0 | |
7134 | fi | |
3d857b98 | 7135 | |
81ecdfbb RW |
7136 | cat >>confdefs.h <<_ACEOF |
7137 | #define HAVE_DECL_STRNDUP $ac_have_decl | |
7138 | _ACEOF | |
7139 | ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" | |
7140 | if test "x$ac_cv_have_decl_memmem" = x""yes; then : | |
7141 | ac_have_decl=1 | |
7142 | else | |
7143 | ac_have_decl=0 | |
3d857b98 DK |
7144 | fi |
7145 | ||
81ecdfbb RW |
7146 | cat >>confdefs.h <<_ACEOF |
7147 | #define HAVE_DECL_MEMMEM $ac_have_decl | |
7148 | _ACEOF | |
3d857b98 | 7149 | |
e44fcf3b | 7150 | |
40fde488 CD |
7151 | # Use of ::std::tr1::unordered_map::rehash causes undefined symbols |
7152 | # at link time with some versions of GCC. | |
81ecdfbb RW |
7153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5 |
7154 | $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; } | |
7155 | if test "${gold_cv_unordered_map_rehash+set}" = set; then : | |
7156 | $as_echo_n "(cached) " >&6 | |
40fde488 | 7157 | else |
81ecdfbb | 7158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
40fde488 CD |
7159 | /* end confdefs.h. */ |
7160 | ||
7161 | #include <tr1/unordered_map> | |
7162 | void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); } | |
7163 | ||
7164 | int | |
7165 | main () | |
7166 | { | |
7167 | ||
7168 | ; | |
7169 | return 0; | |
7170 | } | |
7171 | _ACEOF | |
81ecdfbb | 7172 | if ac_fn_cxx_try_link "$LINENO"; then : |
40fde488 CD |
7173 | gold_cv_unordered_map_rehash=yes |
7174 | else | |
81ecdfbb | 7175 | gold_cv_unordered_map_rehash=no |
40fde488 | 7176 | fi |
81ecdfbb RW |
7177 | rm -f core conftest.err conftest.$ac_objext \ |
7178 | conftest$ac_exeext conftest.$ac_ext | |
40fde488 | 7179 | fi |
81ecdfbb RW |
7180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5 |
7181 | $as_echo "$gold_cv_unordered_map_rehash" >&6; } | |
40fde488 CD |
7182 | if test "$gold_cv_unordered_map_rehash" = "yes"; then |
7183 | ||
81ecdfbb | 7184 | $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h |
40fde488 CD |
7185 | |
7186 | fi | |
7187 | ||
04bf7072 ILT |
7188 | # gcc 4.3.0 doesn't recognize the printf attribute on a template |
7189 | # function. Check for that. This is gcc bug 35546. This test can | |
7190 | # probably be removed after the bug has been fixed for a while. | |
81ecdfbb RW |
7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5 |
7192 | $as_echo_n "checking whether we can use attributes with template functions... " >&6; } | |
7193 | if test "${gold_cv_template_attribute+set}" = set; then : | |
7194 | $as_echo_n "(cached) " >&6 | |
04bf7072 | 7195 | else |
81ecdfbb RW |
7196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7197 | /* end confdefs.h. */ | |
04bf7072 ILT |
7198 | |
7199 | template<typename T> extern void foo(const char*, ...) | |
7200 | __attribute__ ((__format__ (__printf__, 1, 2))); | |
7201 | template<typename T> void foo(const char* format, ...) {} | |
7202 | void bar() { foo<int>("%s\n", "foo"); } | |
7203 | ||
7204 | _ACEOF | |
81ecdfbb | 7205 | if ac_fn_cxx_try_compile "$LINENO"; then : |
04bf7072 ILT |
7206 | gold_cv_template_attribute=yes |
7207 | else | |
81ecdfbb | 7208 | gold_cv_template_attribute=no |
04bf7072 | 7209 | fi |
81ecdfbb | 7210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
04bf7072 | 7211 | fi |
81ecdfbb RW |
7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5 |
7213 | $as_echo "$gold_cv_template_attribute" >&6; } | |
04bf7072 ILT |
7214 | if test "$gold_cv_template_attribute" = "yes"; then |
7215 | ||
81ecdfbb | 7216 | $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h |
04bf7072 ILT |
7217 | |
7218 | fi | |
7219 | ||
5d329b7d ILT |
7220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5 |
7221 | $as_echo_n "checking for struct stat::st_mtim.... " >&6; } | |
7222 | if test "${gold_cv_stat_st_mtim+set}" = set; then : | |
7223 | $as_echo_n "(cached) " >&6 | |
7224 | else | |
7225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7226 | /* end confdefs.h. */ | |
7227 | ||
7228 | #include <sys/stat.h> | |
7229 | long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);} | |
7230 | ||
7231 | int | |
7232 | main () | |
7233 | { | |
7234 | ||
7235 | ; | |
7236 | return 0; | |
7237 | } | |
7238 | _ACEOF | |
7239 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7240 | gold_cv_stat_st_mtim=yes | |
7241 | else | |
7242 | gold_cv_stat_st_mtim=no | |
7243 | fi | |
7244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7245 | fi | |
7246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5 | |
7247 | $as_echo "$gold_cv_stat_st_mtim" >&6; } | |
7248 | if test "$gold_cv_stat_st_mtim" = "yes"; then | |
7249 | ||
7250 | $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h | |
7251 | ||
7252 | fi | |
7253 | ||
54dc6425 ILT |
7254 | ac_ext=c |
7255 | ac_cpp='$CPP $CPPFLAGS' | |
7256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7259 | ||
7260 | ||
81ecdfbb RW |
7261 | |
7262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
7263 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
7264 | # Check whether --enable-maintainer-mode was given. | |
7265 | if test "${enable_maintainer_mode+set}" = set; then : | |
7266 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
bae7f79e ILT |
7267 | else |
7268 | USE_MAINTAINER_MODE=no | |
81ecdfbb | 7269 | fi |
bae7f79e | 7270 | |
81ecdfbb RW |
7271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
7272 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
7273 | if test $USE_MAINTAINER_MODE = yes; then | |
bae7f79e ILT |
7274 | MAINTAINER_MODE_TRUE= |
7275 | MAINTAINER_MODE_FALSE='#' | |
7276 | else | |
7277 | MAINTAINER_MODE_TRUE='#' | |
7278 | MAINTAINER_MODE_FALSE= | |
7279 | fi | |
7280 | ||
7281 | MAINT=$MAINTAINER_MODE_TRUE | |
7282 | ||
7283 | ||
7284 | ||
81ecdfbb RW |
7285 | ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in" |
7286 | ||
bae7f79e ILT |
7287 | cat >confcache <<\_ACEOF |
7288 | # This file is a shell script that caches the results of configure | |
7289 | # tests run on this system so they can be shared between configure | |
7290 | # scripts and configure runs, see configure's option --config-cache. | |
7291 | # It is not useful on other systems. If it contains results you don't | |
7292 | # want to keep, you may remove or edit it. | |
7293 | # | |
7294 | # config.status only pays attention to the cache file if you give it | |
7295 | # the --recheck option to rerun configure. | |
7296 | # | |
7297 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7298 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7299 | # following values. | |
7300 | ||
7301 | _ACEOF | |
7302 | ||
7303 | # The following way of writing the cache mishandles newlines in values, | |
7304 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 7305 | # So, we kill variables containing newlines. |
bae7f79e ILT |
7306 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7307 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
7308 | ( |
7309 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7310 | eval ac_val=\$$ac_var | |
7311 | case $ac_val in #( | |
7312 | *${as_nl}*) | |
7313 | case $ac_var in #( | |
7314 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7315 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7316 | esac | |
7317 | case $ac_var in #( | |
7318 | _ | IFS | as_nl) ;; #( | |
7319 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7320 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7321 | esac ;; | |
7322 | esac | |
7323 | done | |
7324 | ||
bae7f79e | 7325 | (set) 2>&1 | |
81ecdfbb RW |
7326 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7327 | *${as_nl}ac_space=\ *) | |
7328 | # `set' does not quote correctly, so add quotes: double-quote | |
7329 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
bae7f79e ILT |
7330 | sed -n \ |
7331 | "s/'/'\\\\''/g; | |
7332 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 7333 | ;; #( |
bae7f79e ILT |
7334 | *) |
7335 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 7336 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bae7f79e | 7337 | ;; |
81ecdfbb RW |
7338 | esac | |
7339 | sort | |
7340 | ) | | |
bae7f79e | 7341 | sed ' |
81ecdfbb | 7342 | /^ac_cv_env_/b end |
bae7f79e | 7343 | t clear |
81ecdfbb | 7344 | :clear |
bae7f79e ILT |
7345 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7346 | t end | |
81ecdfbb RW |
7347 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7348 | :end' >>confcache | |
7349 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7350 | if test -w "$cache_file"; then | |
7351 | test "x$cache_file" != "x/dev/null" && | |
7352 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
7353 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
bae7f79e ILT |
7354 | cat confcache >$cache_file |
7355 | else | |
81ecdfbb RW |
7356 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7357 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
bae7f79e ILT |
7358 | fi |
7359 | fi | |
7360 | rm -f confcache | |
7361 | ||
7362 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7363 | # Let make expand exec_prefix. | |
7364 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7365 | ||
bae7f79e ILT |
7366 | DEFS=-DHAVE_CONFIG_H |
7367 | ||
7368 | ac_libobjs= | |
7369 | ac_ltlibobjs= | |
7370 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7371 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
7372 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7373 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
7374 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7375 | # will be set to the directory where LIBOBJS objects are built. | |
7376 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7377 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
bae7f79e ILT |
7378 | done |
7379 | LIBOBJS=$ac_libobjs | |
7380 | ||
7381 | LTLIBOBJS=$ac_ltlibobjs | |
7382 | ||
7383 | ||
81ecdfbb RW |
7384 | if test -n "$EXEEXT"; then |
7385 | am__EXEEXT_TRUE= | |
7386 | am__EXEEXT_FALSE='#' | |
7387 | else | |
7388 | am__EXEEXT_TRUE='#' | |
7389 | am__EXEEXT_FALSE= | |
7390 | fi | |
7391 | ||
fe9a4c12 | 7392 | if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then |
81ecdfbb RW |
7393 | as_fn_error "conditional \"THREADS\" was never defined. |
7394 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
fe9a4c12 | 7395 | fi |
89fc3421 | 7396 | if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then |
81ecdfbb RW |
7397 | as_fn_error "conditional \"PLUGINS\" was never defined. |
7398 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
89fc3421 | 7399 | fi |
364c7fa5 ILT |
7400 | if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then |
7401 | as_fn_error "conditional \"DEFAULT_TARGET_ARM\" was never defined. | |
7402 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7403 | fi | |
7404 | if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then | |
7405 | as_fn_error "conditional \"DEFAULT_TARGET_I386\" was never defined. | |
7406 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7407 | fi | |
7408 | if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then | |
7409 | as_fn_error "conditional \"DEFAULT_TARGET_POWERPC\" was never defined. | |
7410 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7411 | fi | |
7412 | if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then | |
7413 | as_fn_error "conditional \"DEFAULT_TARGET_SPARC\" was never defined. | |
7414 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7415 | fi | |
7416 | if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then | |
7417 | as_fn_error "conditional \"DEFAULT_TARGET_X86_64\" was never defined. | |
7418 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7419 | fi | |
bae7f79e | 7420 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
81ecdfbb RW |
7421 | as_fn_error "conditional \"AMDEP\" was never defined. |
7422 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7423 | fi |
7424 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
7425 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
7426 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7427 | fi |
7428 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
81ecdfbb RW |
7429 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
7430 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e | 7431 | fi |
81ecdfbb | 7432 | |
537b5f51 | 7433 | if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then |
81ecdfbb RW |
7434 | as_fn_error "conditional \"NATIVE_LINKER\" was never defined. |
7435 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 ILT |
7436 | fi |
7437 | if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then | |
81ecdfbb RW |
7438 | as_fn_error "conditional \"GCC\" was never defined. |
7439 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 | 7440 | fi |
eb373049 ILT |
7441 | if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then |
7442 | as_fn_error "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined. | |
7443 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
328c7c2f ILT |
7444 | fi |
7445 | if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then | |
7446 | as_fn_error "conditional \"HAVE_STATIC\" was never defined. | |
7447 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
eb373049 | 7448 | fi |
63402fe4 | 7449 | if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then |
81ecdfbb RW |
7450 | as_fn_error "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined. |
7451 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
63402fe4 | 7452 | fi |
8a5e3e08 | 7453 | if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then |
81ecdfbb RW |
7454 | as_fn_error "conditional \"MCMODEL_MEDIUM\" was never defined. |
7455 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8a5e3e08 | 7456 | fi |
6eee141f | 7457 | if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then |
81ecdfbb RW |
7458 | as_fn_error "conditional \"TLS\" was never defined. |
7459 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6eee141f | 7460 | fi |
097ec620 | 7461 | if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then |
81ecdfbb RW |
7462 | as_fn_error "conditional \"STATIC_TLS\" was never defined. |
7463 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
097ec620 | 7464 | fi |
155a0dd7 | 7465 | if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then |
81ecdfbb RW |
7466 | as_fn_error "conditional \"OMP_SUPPORT\" was never defined. |
7467 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
155a0dd7 | 7468 | fi |
c2b45e22 | 7469 | if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then |
81ecdfbb RW |
7470 | as_fn_error "conditional \"TLS_GNU2_DIALECT\" was never defined. |
7471 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 CC |
7472 | fi |
7473 | if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then | |
81ecdfbb RW |
7474 | as_fn_error "conditional \"TLS_DESCRIPTORS\" was never defined. |
7475 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 | 7476 | fi |
7223e9ca ILT |
7477 | if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then |
7478 | as_fn_error "conditional \"IFUNC\" was never defined. | |
7479 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7480 | fi | |
ebb300b2 CC |
7481 | if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then |
7482 | as_fn_error "conditional \"IFUNC_STATIC\" was never defined. | |
7483 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7484 | fi | |
7fcd0256 | 7485 | if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then |
81ecdfbb RW |
7486 | as_fn_error "conditional \"HAVE_ZLIB\" was never defined. |
7487 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7fcd0256 | 7488 | fi |
bae7f79e | 7489 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
7490 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
7491 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7492 | fi |
7493 | ||
7494 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 7495 | ac_write_fail=0 |
bae7f79e ILT |
7496 | ac_clean_files_save=$ac_clean_files |
7497 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
7498 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7499 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7500 | as_write_fail=0 | |
7501 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
bae7f79e ILT |
7502 | #! $SHELL |
7503 | # Generated by $as_me. | |
7504 | # Run this file to recreate the current configuration. | |
7505 | # Compiler output produced by configure, useful for debugging | |
7506 | # configure, is in config.log if it exists. | |
7507 | ||
7508 | debug=false | |
7509 | ac_cs_recheck=false | |
7510 | ac_cs_silent=false | |
bae7f79e | 7511 | |
81ecdfbb RW |
7512 | SHELL=\${CONFIG_SHELL-$SHELL} |
7513 | export SHELL | |
7514 | _ASEOF | |
7515 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7516 | ## -------------------- ## | |
7517 | ## M4sh Initialization. ## | |
7518 | ## -------------------- ## | |
bae7f79e | 7519 | |
81ecdfbb RW |
7520 | # Be more Bourne compatible |
7521 | DUALCASE=1; export DUALCASE # for MKS sh | |
7522 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bae7f79e ILT |
7523 | emulate sh |
7524 | NULLCMD=: | |
81ecdfbb | 7525 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bae7f79e ILT |
7526 | # is contrary to our usage. Disable this feature. |
7527 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
7528 | setopt NO_GLOB_SUBST |
7529 | else | |
7530 | case `(set -o) 2>/dev/null` in #( | |
7531 | *posix*) : | |
7532 | set -o posix ;; #( | |
7533 | *) : | |
7534 | ;; | |
7535 | esac | |
bae7f79e | 7536 | fi |
bae7f79e | 7537 | |
81ecdfbb RW |
7538 | |
7539 | as_nl=' | |
7540 | ' | |
7541 | export as_nl | |
7542 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7543 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7544 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7545 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7546 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7547 | # but without wasting forks for bash or zsh. | |
7548 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7549 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7550 | as_echo='print -r --' | |
7551 | as_echo_n='print -rn --' | |
7552 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7553 | as_echo='printf %s\n' | |
7554 | as_echo_n='printf %s' | |
7555 | else | |
7556 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7557 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7558 | as_echo_n='/usr/ucb/echo -n' | |
7559 | else | |
7560 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7561 | as_echo_n_body='eval | |
7562 | arg=$1; | |
7563 | case $arg in #( | |
7564 | *"$as_nl"*) | |
7565 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7566 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7567 | esac; | |
7568 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7569 | ' | |
7570 | export as_echo_n_body | |
7571 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7572 | fi | |
7573 | export as_echo_body | |
7574 | as_echo='sh -c $as_echo_body as_echo' | |
7575 | fi | |
7576 | ||
7577 | # The user is always right. | |
7578 | if test "${PATH_SEPARATOR+set}" != set; then | |
7579 | PATH_SEPARATOR=: | |
7580 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7581 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7582 | PATH_SEPARATOR=';' | |
7583 | } | |
bae7f79e ILT |
7584 | fi |
7585 | ||
7586 | ||
81ecdfbb RW |
7587 | # IFS |
7588 | # We need space, tab and new line, in precisely that order. Quoting is | |
7589 | # there to prevent editors from complaining about space-tab. | |
7590 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7591 | # splitting by setting IFS to empty value.) | |
7592 | IFS=" "" $as_nl" | |
7593 | ||
7594 | # Find who we are. Look in the path if we contain no directory separator. | |
7595 | case $0 in #(( | |
7596 | *[\\/]* ) as_myself=$0 ;; | |
7597 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7598 | for as_dir in $PATH | |
7599 | do | |
7600 | IFS=$as_save_IFS | |
7601 | test -z "$as_dir" && as_dir=. | |
7602 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7603 | done | |
7604 | IFS=$as_save_IFS | |
7605 | ||
7606 | ;; | |
7607 | esac | |
7608 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7609 | # in which case we are not to be found in the path. | |
7610 | if test "x$as_myself" = x; then | |
7611 | as_myself=$0 | |
7612 | fi | |
7613 | if test ! -f "$as_myself"; then | |
7614 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7615 | exit 1 | |
7616 | fi | |
7617 | ||
7618 | # Unset variables that we do not need and which cause bugs (e.g. in | |
7619 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7620 | # suppresses any "Segmentation fault" message there. '((' could | |
7621 | # trigger a bug in pdksh 5.2.14. | |
7622 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7623 | do eval test x\${$as_var+set} = xset \ | |
7624 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7625 | done | |
bae7f79e ILT |
7626 | PS1='$ ' |
7627 | PS2='> ' | |
7628 | PS4='+ ' | |
7629 | ||
7630 | # NLS nuisances. | |
81ecdfbb RW |
7631 | LC_ALL=C |
7632 | export LC_ALL | |
7633 | LANGUAGE=C | |
7634 | export LANGUAGE | |
7635 | ||
7636 | # CDPATH. | |
7637 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7638 | ||
7639 | ||
7640 | # as_fn_error ERROR [LINENO LOG_FD] | |
7641 | # --------------------------------- | |
7642 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
7643 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
7644 | # script with status $?, using 1 if that was 0. | |
7645 | as_fn_error () | |
7646 | { | |
7647 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
7648 | if test "$3"; then | |
7649 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7650 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
bae7f79e | 7651 | fi |
81ecdfbb RW |
7652 | $as_echo "$as_me: error: $1" >&2 |
7653 | as_fn_exit $as_status | |
7654 | } # as_fn_error | |
7655 | ||
7656 | ||
7657 | # as_fn_set_status STATUS | |
7658 | # ----------------------- | |
7659 | # Set $? to STATUS, without forking. | |
7660 | as_fn_set_status () | |
7661 | { | |
7662 | return $1 | |
7663 | } # as_fn_set_status | |
bae7f79e | 7664 | |
81ecdfbb RW |
7665 | # as_fn_exit STATUS |
7666 | # ----------------- | |
7667 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7668 | as_fn_exit () | |
7669 | { | |
7670 | set +e | |
7671 | as_fn_set_status $1 | |
7672 | exit $1 | |
7673 | } # as_fn_exit | |
7674 | ||
7675 | # as_fn_unset VAR | |
7676 | # --------------- | |
7677 | # Portably unset VAR. | |
7678 | as_fn_unset () | |
7679 | { | |
7680 | { eval $1=; unset $1;} | |
7681 | } | |
7682 | as_unset=as_fn_unset | |
7683 | # as_fn_append VAR VALUE | |
7684 | # ---------------------- | |
7685 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7686 | # advantage of any shell optimizations that allow amortized linear growth over | |
7687 | # repeated appends, instead of the typical quadratic growth present in naive | |
7688 | # implementations. | |
7689 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7690 | eval 'as_fn_append () | |
7691 | { | |
7692 | eval $1+=\$2 | |
7693 | }' | |
7694 | else | |
7695 | as_fn_append () | |
7696 | { | |
7697 | eval $1=\$$1\$2 | |
7698 | } | |
7699 | fi # as_fn_append | |
7700 | ||
7701 | # as_fn_arith ARG... | |
7702 | # ------------------ | |
7703 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7704 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7705 | # must be portable across $(()) and expr. | |
7706 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7707 | eval 'as_fn_arith () | |
7708 | { | |
7709 | as_val=$(( $* )) | |
7710 | }' | |
7711 | else | |
7712 | as_fn_arith () | |
7713 | { | |
7714 | as_val=`expr "$@" || test $? -eq 1` | |
7715 | } | |
7716 | fi # as_fn_arith | |
7717 | ||
7718 | ||
7719 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
7720 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bae7f79e ILT |
7721 | as_expr=expr |
7722 | else | |
7723 | as_expr=false | |
7724 | fi | |
7725 | ||
81ecdfbb | 7726 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bae7f79e ILT |
7727 | as_basename=basename |
7728 | else | |
7729 | as_basename=false | |
7730 | fi | |
7731 | ||
81ecdfbb RW |
7732 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7733 | as_dirname=dirname | |
7734 | else | |
7735 | as_dirname=false | |
7736 | fi | |
bae7f79e | 7737 | |
81ecdfbb | 7738 | as_me=`$as_basename -- "$0" || |
bae7f79e ILT |
7739 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7740 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
7741 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7742 | $as_echo X/"$0" | | |
7743 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
7744 | s//\1/ | |
7745 | q | |
7746 | } | |
7747 | /^X\/\(\/\/\)$/{ | |
7748 | s//\1/ | |
7749 | q | |
7750 | } | |
7751 | /^X\/\(\/\).*/{ | |
7752 | s//\1/ | |
7753 | q | |
7754 | } | |
7755 | s/.*/./; q'` | |
bae7f79e | 7756 | |
bae7f79e ILT |
7757 | # Avoid depending upon Character Ranges. |
7758 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7759 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7760 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7761 | as_cr_digits='0123456789' | |
7762 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7763 | ||
81ecdfbb RW |
7764 | ECHO_C= ECHO_N= ECHO_T= |
7765 | case `echo -n x` in #((((( | |
7766 | -n*) | |
7767 | case `echo 'xy\c'` in | |
7768 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7769 | xy) ECHO_C='\c';; | |
7770 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7771 | ECHO_T=' ';; | |
7772 | esac;; | |
7773 | *) | |
7774 | ECHO_N='-n';; | |
bae7f79e ILT |
7775 | esac |
7776 | ||
81ecdfbb RW |
7777 | rm -f conf$$ conf$$.exe conf$$.file |
7778 | if test -d conf$$.dir; then | |
7779 | rm -f conf$$.dir/conf$$.file | |
bae7f79e | 7780 | else |
81ecdfbb RW |
7781 | rm -f conf$$.dir |
7782 | mkdir conf$$.dir 2>/dev/null | |
bae7f79e | 7783 | fi |
81ecdfbb RW |
7784 | if (echo >conf$$.file) 2>/dev/null; then |
7785 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bae7f79e | 7786 | as_ln_s='ln -s' |
81ecdfbb RW |
7787 | # ... but there are two gotchas: |
7788 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7789 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
7790 | # In both cases, we have to default to `cp -p'. | |
7791 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
7792 | as_ln_s='cp -p' | |
7793 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7794 | as_ln_s=ln | |
7795 | else | |
7796 | as_ln_s='cp -p' | |
bae7f79e | 7797 | fi |
bae7f79e ILT |
7798 | else |
7799 | as_ln_s='cp -p' | |
7800 | fi | |
81ecdfbb RW |
7801 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7802 | rmdir conf$$.dir 2>/dev/null | |
7803 | ||
7804 | ||
7805 | # as_fn_mkdir_p | |
7806 | # ------------- | |
7807 | # Create "$as_dir" as a directory, including parents if necessary. | |
7808 | as_fn_mkdir_p () | |
7809 | { | |
7810 | ||
7811 | case $as_dir in #( | |
7812 | -*) as_dir=./$as_dir;; | |
7813 | esac | |
7814 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7815 | as_dirs= | |
7816 | while :; do | |
7817 | case $as_dir in #( | |
7818 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7819 | *) as_qdir=$as_dir;; | |
7820 | esac | |
7821 | as_dirs="'$as_qdir' $as_dirs" | |
7822 | as_dir=`$as_dirname -- "$as_dir" || | |
7823 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7824 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7825 | X"$as_dir" : 'X\(//\)$' \| \ | |
7826 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7827 | $as_echo X"$as_dir" | | |
7828 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7829 | s//\1/ | |
7830 | q | |
7831 | } | |
7832 | /^X\(\/\/\)[^/].*/{ | |
7833 | s//\1/ | |
7834 | q | |
7835 | } | |
7836 | /^X\(\/\/\)$/{ | |
7837 | s//\1/ | |
7838 | q | |
7839 | } | |
7840 | /^X\(\/\).*/{ | |
7841 | s//\1/ | |
7842 | q | |
7843 | } | |
7844 | s/.*/./; q'` | |
7845 | test -d "$as_dir" && break | |
7846 | done | |
7847 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
7848 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
7849 | ||
bae7f79e | 7850 | |
81ecdfbb | 7851 | } # as_fn_mkdir_p |
bae7f79e | 7852 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 7853 | as_mkdir_p='mkdir -p "$as_dir"' |
bae7f79e ILT |
7854 | else |
7855 | test -d ./-p && rmdir ./-p | |
7856 | as_mkdir_p=false | |
7857 | fi | |
7858 | ||
81ecdfbb RW |
7859 | if test -x / >/dev/null 2>&1; then |
7860 | as_test_x='test -x' | |
7861 | else | |
7862 | if ls -dL / >/dev/null 2>&1; then | |
7863 | as_ls_L_option=L | |
7864 | else | |
7865 | as_ls_L_option= | |
7866 | fi | |
7867 | as_test_x=' | |
7868 | eval sh -c '\'' | |
7869 | if test -d "$1"; then | |
7870 | test -d "$1/."; | |
7871 | else | |
7872 | case $1 in #( | |
7873 | -*)set "./$1";; | |
7874 | esac; | |
7875 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
7876 | ???[sx]*):;;*)false;;esac;fi | |
7877 | '\'' sh | |
7878 | ' | |
7879 | fi | |
7880 | as_executable_p=$as_test_x | |
bae7f79e ILT |
7881 | |
7882 | # Sed expression to map a string onto a valid CPP name. | |
7883 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7884 | ||
7885 | # Sed expression to map a string onto a valid variable name. | |
7886 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7887 | ||
7888 | ||
bae7f79e | 7889 | exec 6>&1 |
81ecdfbb RW |
7890 | ## ----------------------------------- ## |
7891 | ## Main body of $CONFIG_STATUS script. ## | |
7892 | ## ----------------------------------- ## | |
7893 | _ASEOF | |
7894 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
bae7f79e | 7895 | |
81ecdfbb RW |
7896 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7897 | # Save the log message, to keep $0 and so on meaningful, and to | |
bae7f79e | 7898 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
7899 | # values after options handling. |
7900 | ac_log=" | |
8486ee48 | 7901 | This file was extended by gold $as_me 0.1, which was |
81ecdfbb | 7902 | generated by GNU Autoconf 2.64. Invocation command line was |
bae7f79e ILT |
7903 | |
7904 | CONFIG_FILES = $CONFIG_FILES | |
7905 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7906 | CONFIG_LINKS = $CONFIG_LINKS | |
7907 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7908 | $ $0 $@ | |
7909 | ||
81ecdfbb RW |
7910 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7911 | " | |
7912 | ||
bae7f79e ILT |
7913 | _ACEOF |
7914 | ||
81ecdfbb RW |
7915 | case $ac_config_files in *" |
7916 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7917 | esac | |
bae7f79e | 7918 | |
81ecdfbb RW |
7919 | case $ac_config_headers in *" |
7920 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
7921 | esac | |
bae7f79e | 7922 | |
bae7f79e | 7923 | |
81ecdfbb RW |
7924 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7925 | # Files that config.status was made for. | |
7926 | config_files="$ac_config_files" | |
7927 | config_headers="$ac_config_headers" | |
7928 | config_commands="$ac_config_commands" | |
bae7f79e | 7929 | |
81ecdfbb | 7930 | _ACEOF |
bae7f79e | 7931 | |
81ecdfbb | 7932 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 7933 | ac_cs_usage="\ |
81ecdfbb RW |
7934 | \`$as_me' instantiates files and other configuration actions |
7935 | from templates according to the current configuration. Unless the files | |
7936 | and actions are specified as TAGs, all are instantiated by default. | |
bae7f79e | 7937 | |
81ecdfbb | 7938 | Usage: $0 [OPTION]... [TAG]... |
bae7f79e ILT |
7939 | |
7940 | -h, --help print this help, then exit | |
81ecdfbb RW |
7941 | -V, --version print version number and configuration settings, then exit |
7942 | -q, --quiet, --silent | |
7943 | do not print progress messages | |
bae7f79e ILT |
7944 | -d, --debug don't remove temporary files |
7945 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
7946 | --file=FILE[:TEMPLATE] |
7947 | instantiate the configuration file FILE | |
7948 | --header=FILE[:TEMPLATE] | |
7949 | instantiate the configuration header FILE | |
bae7f79e ILT |
7950 | |
7951 | Configuration files: | |
7952 | $config_files | |
7953 | ||
7954 | Configuration headers: | |
7955 | $config_headers | |
7956 | ||
7957 | Configuration commands: | |
7958 | $config_commands | |
7959 | ||
81ecdfbb | 7960 | Report bugs to the package provider." |
bae7f79e | 7961 | |
81ecdfbb RW |
7962 | _ACEOF |
7963 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 7964 | ac_cs_version="\\ |
8486ee48 | 7965 | gold config.status 0.1 |
81ecdfbb RW |
7966 | configured by $0, generated by GNU Autoconf 2.64, |
7967 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
bae7f79e | 7968 | |
81ecdfbb | 7969 | Copyright (C) 2009 Free Software Foundation, Inc. |
bae7f79e ILT |
7970 | This config.status script is free software; the Free Software Foundation |
7971 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
7972 | |
7973 | ac_pwd='$ac_pwd' | |
7974 | srcdir='$srcdir' | |
7975 | INSTALL='$INSTALL' | |
7976 | MKDIR_P='$MKDIR_P' | |
7977 | AWK='$AWK' | |
7978 | test -n "\$AWK" || AWK=awk | |
bae7f79e ILT |
7979 | _ACEOF |
7980 | ||
81ecdfbb RW |
7981 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7982 | # The default lists apply if the user does not specify any file. | |
bae7f79e ILT |
7983 | ac_need_defaults=: |
7984 | while test $# != 0 | |
7985 | do | |
7986 | case $1 in | |
7987 | --*=*) | |
81ecdfbb RW |
7988 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7989 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
bae7f79e ILT |
7990 | ac_shift=: |
7991 | ;; | |
81ecdfbb | 7992 | *) |
bae7f79e ILT |
7993 | ac_option=$1 |
7994 | ac_optarg=$2 | |
7995 | ac_shift=shift | |
7996 | ;; | |
bae7f79e ILT |
7997 | esac |
7998 | ||
7999 | case $ac_option in | |
8000 | # Handling of the options. | |
bae7f79e ILT |
8001 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8002 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
8003 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
8004 | $as_echo "$ac_cs_version"; exit ;; | |
8005 | --debug | --debu | --deb | --de | --d | -d ) | |
bae7f79e ILT |
8006 | debug=: ;; |
8007 | --file | --fil | --fi | --f ) | |
8008 | $ac_shift | |
81ecdfbb RW |
8009 | case $ac_optarg in |
8010 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8011 | esac | |
8012 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
bae7f79e ILT |
8013 | ac_need_defaults=false;; |
8014 | --header | --heade | --head | --hea ) | |
8015 | $ac_shift | |
81ecdfbb RW |
8016 | case $ac_optarg in |
8017 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8018 | esac | |
8019 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
bae7f79e | 8020 | ac_need_defaults=false;; |
81ecdfbb RW |
8021 | --he | --h) |
8022 | # Conflict between --help and --header | |
8023 | as_fn_error "ambiguous option: \`$1' | |
8024 | Try \`$0 --help' for more information.";; | |
8025 | --help | --hel | -h ) | |
8026 | $as_echo "$ac_cs_usage"; exit ;; | |
bae7f79e ILT |
8027 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8028 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8029 | ac_cs_silent=: ;; | |
8030 | ||
8031 | # This is an error. | |
81ecdfbb RW |
8032 | -*) as_fn_error "unrecognized option: \`$1' |
8033 | Try \`$0 --help' for more information." ;; | |
bae7f79e | 8034 | |
81ecdfbb RW |
8035 | *) as_fn_append ac_config_targets " $1" |
8036 | ac_need_defaults=false ;; | |
bae7f79e ILT |
8037 | |
8038 | esac | |
8039 | shift | |
8040 | done | |
8041 | ||
8042 | ac_configure_extra_args= | |
8043 | ||
8044 | if $ac_cs_silent; then | |
8045 | exec 6>/dev/null | |
8046 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8047 | fi | |
8048 | ||
8049 | _ACEOF | |
81ecdfbb | 8050 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bae7f79e | 8051 | if \$ac_cs_recheck; then |
81ecdfbb RW |
8052 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8053 | shift | |
8054 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8055 | CONFIG_SHELL='$SHELL' | |
8056 | export CONFIG_SHELL | |
8057 | exec "\$@" | |
bae7f79e ILT |
8058 | fi |
8059 | ||
8060 | _ACEOF | |
81ecdfbb RW |
8061 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8062 | exec 5>>config.log | |
8063 | { | |
8064 | echo | |
8065 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8066 | ## Running $as_me. ## | |
8067 | _ASBOX | |
8068 | $as_echo "$ac_log" | |
8069 | } >&5 | |
bae7f79e | 8070 | |
81ecdfbb RW |
8071 | _ACEOF |
8072 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 8073 | # |
81ecdfbb | 8074 | # INIT-COMMANDS |
bae7f79e | 8075 | # |
bae7f79e ILT |
8076 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
8077 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | |
8078 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
8079 | # from automake. | |
8080 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
8081 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
8082 | LINGUAS="${LINGUAS-%UNSET%}" | |
8083 | ||
8084 | ||
8085 | _ACEOF | |
8086 | ||
81ecdfbb | 8087 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 8088 | |
81ecdfbb | 8089 | # Handling of arguments. |
bae7f79e ILT |
8090 | for ac_config_target in $ac_config_targets |
8091 | do | |
81ecdfbb RW |
8092 | case $ac_config_target in |
8093 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
8094 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8095 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
8096 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8097 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
8098 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
8099 | ||
8100 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
bae7f79e ILT |
8101 | esac |
8102 | done | |
8103 | ||
81ecdfbb | 8104 | |
bae7f79e ILT |
8105 | # If the user did not use the arguments to specify the items to instantiate, |
8106 | # then the envvar interface is used. Set only those that are not. | |
8107 | # We use the long form for the default assignment because of an extremely | |
8108 | # bizarre bug on SunOS 4.1.3. | |
8109 | if $ac_need_defaults; then | |
8110 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8111 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8112 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8113 | fi | |
8114 | ||
8115 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 8116 | # simply because there is no reason against having it here, and in addition, |
bae7f79e | 8117 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
8118 | # Hook for its removal unless debugging. |
8119 | # Note that there is a small window in which the directory will not be cleaned: | |
8120 | # after its creation but before its name has been assigned to `$tmp'. | |
bae7f79e ILT |
8121 | $debug || |
8122 | { | |
81ecdfbb RW |
8123 | tmp= |
8124 | trap 'exit_status=$? | |
8125 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
8126 | ' 0 | |
8127 | trap 'as_fn_exit 1' 1 2 13 15 | |
bae7f79e | 8128 | } |
bae7f79e ILT |
8129 | # Create a (secure) tmp directory for tmp files. |
8130 | ||
8131 | { | |
81ecdfbb | 8132 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bae7f79e ILT |
8133 | test -n "$tmp" && test -d "$tmp" |
8134 | } || | |
8135 | { | |
81ecdfbb RW |
8136 | tmp=./conf$$-$RANDOM |
8137 | (umask 077 && mkdir "$tmp") | |
8138 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
8139 | ||
8140 | # Set up the scripts for CONFIG_FILES section. | |
8141 | # No need to generate them if there are no CONFIG_FILES. | |
8142 | # This happens for instance with `./config.status config.h'. | |
8143 | if test -n "$CONFIG_FILES"; then | |
8144 | ||
8145 | ||
8146 | ac_cr=`echo X | tr X '\015'` | |
8147 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8148 | # But we know of no other shell where ac_cr would be empty at this | |
8149 | # point, so we can use a bashism as a fallback. | |
8150 | if test "x$ac_cr" = x; then | |
8151 | eval ac_cr=\$\'\\r\' | |
8152 | fi | |
8153 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8154 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
8155 | ac_cs_awk_cr='\r' | |
8156 | else | |
8157 | ac_cs_awk_cr=$ac_cr | |
8158 | fi | |
8159 | ||
8160 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
8161 | _ACEOF | |
8162 | ||
8163 | ||
8164 | { | |
8165 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8166 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8167 | echo "_ACEOF" | |
8168 | } >conf$$subs.sh || | |
8169 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8170 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
8171 | ac_delim='%!_!# ' | |
8172 | for ac_last_try in false false false false false :; do | |
8173 | . ./conf$$subs.sh || | |
8174 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8175 | ||
8176 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8177 | if test $ac_delim_n = $ac_delim_num; then | |
8178 | break | |
8179 | elif $ac_last_try; then | |
8180 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8181 | else | |
8182 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8183 | fi | |
8184 | done | |
8185 | rm -f conf$$subs.sh | |
8186 | ||
8187 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8188 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
8189 | _ACEOF | |
8190 | sed -n ' | |
8191 | h | |
8192 | s/^/S["/; s/!.*/"]=/ | |
8193 | p | |
8194 | g | |
8195 | s/^[^!]*!// | |
8196 | :repl | |
8197 | t repl | |
8198 | s/'"$ac_delim"'$// | |
8199 | t delim | |
8200 | :nl | |
8201 | h | |
8202 | s/\(.\{148\}\).*/\1/ | |
8203 | t more1 | |
8204 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8205 | p | |
8206 | n | |
8207 | b repl | |
8208 | :more1 | |
8209 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8210 | p | |
8211 | g | |
8212 | s/.\{148\}// | |
8213 | t nl | |
8214 | :delim | |
8215 | h | |
8216 | s/\(.\{148\}\).*/\1/ | |
8217 | t more2 | |
8218 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8219 | p | |
8220 | b | |
8221 | :more2 | |
8222 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8223 | p | |
8224 | g | |
8225 | s/.\{148\}// | |
8226 | t delim | |
8227 | ' <conf$$subs.awk | sed ' | |
8228 | /^[^""]/{ | |
8229 | N | |
8230 | s/\n// | |
8231 | } | |
8232 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8233 | rm -f conf$$subs.awk | |
8234 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8235 | _ACAWK | |
8236 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
8237 | for (key in S) S_is_set[key] = 1 | |
8238 | FS = "\a" | |
8239 | ||
8240 | } | |
bae7f79e | 8241 | { |
81ecdfbb RW |
8242 | line = $ 0 |
8243 | nfields = split(line, field, "@") | |
8244 | substed = 0 | |
8245 | len = length(field[1]) | |
8246 | for (i = 2; i < nfields; i++) { | |
8247 | key = field[i] | |
8248 | keylen = length(key) | |
8249 | if (S_is_set[key]) { | |
8250 | value = S[key] | |
8251 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8252 | len += length(value) + length(field[++i]) | |
8253 | substed = 1 | |
8254 | } else | |
8255 | len += 1 + keylen | |
8256 | } | |
8257 | ||
8258 | print line | |
bae7f79e ILT |
8259 | } |
8260 | ||
81ecdfbb RW |
8261 | _ACAWK |
8262 | _ACEOF | |
8263 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8264 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8265 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8266 | else | |
8267 | cat | |
8268 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
8269 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
bae7f79e ILT |
8270 | _ACEOF |
8271 | ||
81ecdfbb RW |
8272 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
8273 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8274 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8275 | # (actually we leave an empty line to preserve line numbers). | |
8276 | if test "x$srcdir" = x.; then | |
8277 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8278 | s/:*\$(srcdir):*/:/ | |
8279 | s/:*\${srcdir}:*/:/ | |
8280 | s/:*@srcdir@:*/:/ | |
8281 | s/^\([^=]*=[ ]*\):*/\1/ | |
8282 | s/:*$// | |
8283 | s/^[^=]*=[ ]*$// | |
8284 | }' | |
8285 | fi | |
bae7f79e | 8286 | |
81ecdfbb RW |
8287 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8288 | fi # test -n "$CONFIG_FILES" | |
bae7f79e | 8289 | |
81ecdfbb RW |
8290 | # Set up the scripts for CONFIG_HEADERS section. |
8291 | # No need to generate them if there are no CONFIG_HEADERS. | |
8292 | # This happens for instance with `./config.status Makefile'. | |
8293 | if test -n "$CONFIG_HEADERS"; then | |
8294 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
8295 | BEGIN { | |
bae7f79e ILT |
8296 | _ACEOF |
8297 | ||
81ecdfbb RW |
8298 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
8299 | # here-document in config.status, that substitutes the proper values into | |
8300 | # config.h.in to produce config.h. | |
8301 | ||
8302 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8303 | # handling of long lines. | |
8304 | ac_delim='%!_!# ' | |
8305 | for ac_last_try in false false :; do | |
8306 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
8307 | if test -z "$ac_t"; then | |
8308 | break | |
8309 | elif $ac_last_try; then | |
8310 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
8311 | else | |
8312 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
bae7f79e | 8313 | fi |
81ecdfbb | 8314 | done |
bae7f79e | 8315 | |
81ecdfbb RW |
8316 | # For the awk script, D is an array of macro values keyed by name, |
8317 | # likewise P contains macro parameters if any. Preserve backslash | |
8318 | # newline sequences. | |
8319 | ||
8320 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8321 | sed -n ' | |
8322 | s/.\{148\}/&'"$ac_delim"'/g | |
8323 | t rset | |
8324 | :rset | |
8325 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8326 | t def | |
8327 | d | |
8328 | :def | |
8329 | s/\\$// | |
8330 | t bsnl | |
8331 | s/["\\]/\\&/g | |
8332 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8333 | D["\1"]=" \3"/p | |
8334 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8335 | d | |
8336 | :bsnl | |
8337 | s/["\\]/\\&/g | |
8338 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8339 | D["\1"]=" \3\\\\\\n"\\/p | |
8340 | t cont | |
8341 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8342 | t cont | |
8343 | d | |
8344 | :cont | |
8345 | n | |
8346 | s/.\{148\}/&'"$ac_delim"'/g | |
8347 | t clear | |
8348 | :clear | |
8349 | s/\\$// | |
8350 | t bsnlc | |
8351 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8352 | d | |
8353 | :bsnlc | |
8354 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8355 | b cont | |
8356 | ' <confdefs.h | sed ' | |
8357 | s/'"$ac_delim"'/"\\\ | |
8358 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8359 | ||
8360 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8361 | for (key in D) D_is_set[key] = 1 | |
8362 | FS = "\a" | |
8363 | } | |
8364 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8365 | line = \$ 0 | |
8366 | split(line, arg, " ") | |
8367 | if (arg[1] == "#") { | |
8368 | defundef = arg[2] | |
8369 | mac1 = arg[3] | |
8370 | } else { | |
8371 | defundef = substr(arg[1], 2) | |
8372 | mac1 = arg[2] | |
8373 | } | |
8374 | split(mac1, mac2, "(") #) | |
8375 | macro = mac2[1] | |
8376 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8377 | if (D_is_set[macro]) { | |
8378 | # Preserve the white space surrounding the "#". | |
8379 | print prefix "define", macro P[macro] D[macro] | |
8380 | next | |
8381 | } else { | |
8382 | # Replace #undef with comments. This is necessary, for example, | |
8383 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8384 | # on some systems where configure will not decide to define it. | |
8385 | if (defundef == "undef") { | |
8386 | print "/*", prefix defundef, macro, "*/" | |
8387 | next | |
8388 | } | |
8389 | } | |
8390 | } | |
8391 | { print } | |
8392 | _ACAWK | |
bae7f79e | 8393 | _ACEOF |
81ecdfbb RW |
8394 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8395 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
8396 | fi # test -n "$CONFIG_HEADERS" | |
8397 | ||
8398 | ||
8399 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
8400 | shift | |
8401 | for ac_tag | |
8402 | do | |
8403 | case $ac_tag in | |
8404 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8405 | esac | |
8406 | case $ac_mode$ac_tag in | |
8407 | :[FHL]*:*);; | |
8408 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
8409 | :[FH]-) ac_tag=-:-;; | |
8410 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8411 | esac | |
8412 | ac_save_IFS=$IFS | |
8413 | IFS=: | |
8414 | set x $ac_tag | |
8415 | IFS=$ac_save_IFS | |
8416 | shift | |
8417 | ac_file=$1 | |
8418 | shift | |
8419 | ||
8420 | case $ac_mode in | |
8421 | :L) ac_source=$1;; | |
8422 | :[FH]) | |
8423 | ac_file_inputs= | |
8424 | for ac_f | |
8425 | do | |
8426 | case $ac_f in | |
8427 | -) ac_f="$tmp/stdin";; | |
8428 | *) # Look for the file first in the build tree, then in the source tree | |
8429 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8430 | # because $ac_f cannot contain `:'. | |
8431 | test -f "$ac_f" || | |
8432 | case $ac_f in | |
8433 | [\\/$]*) false;; | |
8434 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8435 | esac || | |
8436 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
8437 | esac | |
8438 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8439 | as_fn_append ac_file_inputs " '$ac_f'" | |
8440 | done | |
8441 | ||
8442 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8443 | # use $as_me), people would be surprised to read: | |
8444 | # /* config.h. Generated by config.status. */ | |
8445 | configure_input='Generated from '` | |
8446 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8447 | `' by configure.' | |
8448 | if test x"$ac_file" != x-; then | |
8449 | configure_input="$ac_file. $configure_input" | |
8450 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8451 | $as_echo "$as_me: creating $ac_file" >&6;} | |
8452 | fi | |
8453 | # Neutralize special characters interpreted by sed in replacement strings. | |
8454 | case $configure_input in #( | |
8455 | *\&* | *\|* | *\\* ) | |
8456 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8457 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8458 | *) ac_sed_conf_input=$configure_input;; | |
8459 | esac | |
8460 | ||
8461 | case $ac_tag in | |
8462 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
8463 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
8464 | esac | |
8465 | ;; | |
bae7f79e ILT |
8466 | esac |
8467 | ||
81ecdfbb | 8468 | ac_dir=`$as_dirname -- "$ac_file" || |
bae7f79e ILT |
8469 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8470 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8471 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8472 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
8473 | $as_echo X"$ac_file" | | |
8474 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8475 | s//\1/ | |
8476 | q | |
8477 | } | |
8478 | /^X\(\/\/\)[^/].*/{ | |
8479 | s//\1/ | |
8480 | q | |
8481 | } | |
8482 | /^X\(\/\/\)$/{ | |
8483 | s//\1/ | |
8484 | q | |
8485 | } | |
8486 | /^X\(\/\).*/{ | |
8487 | s//\1/ | |
8488 | q | |
8489 | } | |
8490 | s/.*/./; q'` | |
8491 | as_dir="$ac_dir"; as_fn_mkdir_p | |
bae7f79e ILT |
8492 | ac_builddir=. |
8493 | ||
81ecdfbb RW |
8494 | case "$ac_dir" in |
8495 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8496 | *) | |
8497 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8498 | # A ".." for each directory in $ac_dir_suffix. | |
8499 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8500 | case $ac_top_builddir_sub in | |
8501 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8502 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8503 | esac ;; | |
8504 | esac | |
8505 | ac_abs_top_builddir=$ac_pwd | |
8506 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8507 | # for backward compatibility: | |
8508 | ac_top_builddir=$ac_top_build_prefix | |
bae7f79e ILT |
8509 | |
8510 | case $srcdir in | |
81ecdfbb | 8511 | .) # We are building in place. |
bae7f79e | 8512 | ac_srcdir=. |
81ecdfbb RW |
8513 | ac_top_srcdir=$ac_top_builddir_sub |
8514 | ac_abs_top_srcdir=$ac_pwd ;; | |
8515 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bae7f79e | 8516 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
8517 | ac_top_srcdir=$srcdir |
8518 | ac_abs_top_srcdir=$srcdir ;; | |
8519 | *) # Relative name. | |
8520 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8521 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8522 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bae7f79e | 8523 | esac |
81ecdfbb | 8524 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bae7f79e | 8525 | |
bae7f79e | 8526 | |
81ecdfbb RW |
8527 | case $ac_mode in |
8528 | :F) | |
8529 | # | |
8530 | # CONFIG_FILE | |
8531 | # | |
bae7f79e ILT |
8532 | |
8533 | case $INSTALL in | |
8534 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 8535 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bae7f79e | 8536 | esac |
81ecdfbb RW |
8537 | ac_MKDIR_P=$MKDIR_P |
8538 | case $MKDIR_P in | |
8539 | [\\/$]* | ?:[\\/]* ) ;; | |
8540 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
8541 | esac | |
8542 | _ACEOF | |
bae7f79e | 8543 | |
81ecdfbb RW |
8544 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8545 | # If the template does not know about datarootdir, expand it. | |
8546 | # FIXME: This hack should be removed a few years after 2.60. | |
8547 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8548 | ac_sed_dataroot=' | |
8549 | /datarootdir/ { | |
8550 | p | |
8551 | q | |
8552 | } | |
8553 | /@datadir@/p | |
8554 | /@docdir@/p | |
8555 | /@infodir@/p | |
8556 | /@localedir@/p | |
8557 | /@mandir@/p' | |
8558 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8559 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8560 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8561 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8562 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8563 | _ACEOF | |
8564 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8565 | ac_datarootdir_hack=' | |
8566 | s&@datadir@&$datadir&g | |
8567 | s&@docdir@&$docdir&g | |
8568 | s&@infodir@&$infodir&g | |
8569 | s&@localedir@&$localedir&g | |
8570 | s&@mandir@&$mandir&g | |
8571 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8572 | esac | |
bae7f79e | 8573 | _ACEOF |
81ecdfbb RW |
8574 | |
8575 | # Neutralize VPATH when `$srcdir' = `.'. | |
8576 | # Shell code in configure.ac might set extrasub. | |
8577 | # FIXME: do we really want to maintain this feature? | |
8578 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8579 | ac_sed_extra="$ac_vpsub | |
bae7f79e ILT |
8580 | $extrasub |
8581 | _ACEOF | |
81ecdfbb | 8582 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e ILT |
8583 | :t |
8584 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
8585 | s|@configure_input@|$ac_sed_conf_input|;t t |
8586 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8587 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8588 | s&@srcdir@&$ac_srcdir&;t t | |
8589 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8590 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8591 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8592 | s&@builddir@&$ac_builddir&;t t | |
8593 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8594 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8595 | s&@INSTALL@&$ac_INSTALL&;t t | |
8596 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
8597 | $ac_datarootdir_hack | |
8598 | " | |
8599 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
8600 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8601 | ||
8602 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
8603 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
8604 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
8605 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8606 | which seems to be undefined. Please make sure it is defined." >&5 | |
8607 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8608 | which seems to be undefined. Please make sure it is defined." >&2;} | |
8609 | ||
8610 | rm -f "$tmp/stdin" | |
bae7f79e | 8611 | case $ac_file in |
81ecdfbb RW |
8612 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
8613 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
8614 | esac \ | |
8615 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8616 | ;; | |
8617 | :H) | |
8618 | # | |
8619 | # CONFIG_HEADER | |
8620 | # | |
bae7f79e | 8621 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
8622 | { |
8623 | $as_echo "/* $configure_input */" \ | |
8624 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
8625 | } >"$tmp/config.h" \ | |
8626 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8627 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8629 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
bae7f79e | 8630 | else |
81ecdfbb RW |
8631 | rm -f "$ac_file" |
8632 | mv "$tmp/config.h" "$ac_file" \ | |
8633 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
bae7f79e ILT |
8634 | fi |
8635 | else | |
81ecdfbb RW |
8636 | $as_echo "/* $configure_input */" \ |
8637 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
8638 | || as_fn_error "could not create -" "$LINENO" 5 | |
bae7f79e | 8639 | fi |
81ecdfbb RW |
8640 | # Compute "$ac_file"'s index in $config_headers. |
8641 | _am_arg="$ac_file" | |
bae7f79e ILT |
8642 | _am_stamp_count=1 |
8643 | for _am_header in $config_headers :; do | |
8644 | case $_am_header in | |
81ecdfbb | 8645 | $_am_arg | $_am_arg:* ) |
bae7f79e ILT |
8646 | break ;; |
8647 | * ) | |
8648 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
8649 | esac | |
8650 | done | |
81ecdfbb RW |
8651 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
8652 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8653 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
8654 | X"$_am_arg" : 'X\(//\)$' \| \ | |
8655 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
8656 | $as_echo X"$_am_arg" | | |
8657 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8658 | s//\1/ | |
8659 | q | |
8660 | } | |
8661 | /^X\(\/\/\)[^/].*/{ | |
8662 | s//\1/ | |
8663 | q | |
8664 | } | |
8665 | /^X\(\/\/\)$/{ | |
8666 | s//\1/ | |
8667 | q | |
8668 | } | |
8669 | /^X\(\/\).*/{ | |
8670 | s//\1/ | |
8671 | q | |
8672 | } | |
8673 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
8674 | ;; | |
bae7f79e | 8675 | |
81ecdfbb RW |
8676 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8677 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
8678 | ;; | |
8679 | esac | |
bae7f79e ILT |
8680 | |
8681 | ||
81ecdfbb RW |
8682 | case $ac_file$ac_mode in |
8683 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
8684 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
8685 | # are listed without --file. Let's play safe and only enable the eval | |
8686 | # if we detect the quoting. | |
8687 | case $CONFIG_FILES in | |
8688 | *\'*) eval set x "$CONFIG_FILES" ;; | |
8689 | *) set x $CONFIG_FILES ;; | |
8690 | esac | |
8691 | shift | |
8692 | for mf | |
8693 | do | |
8694 | # Strip MF so we end up with the name of the file. | |
8695 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
8696 | # Check whether this is an Automake generated Makefile or not. | |
8697 | # We used to match only the files named `Makefile.in', but | |
8698 | # some people rename them; so instead we look at the file content. | |
8699 | # Grep'ing the first line is not enough: some people post-process | |
8700 | # each Makefile.in and add a new line on top of each file to say so. | |
8701 | # Grep'ing the whole file is not good either: AIX grep has a line | |
8702 | # limit of 2048, but all sed's we know have understand at least 4000. | |
8703 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
8704 | dirpart=`$as_dirname -- "$mf" || | |
bae7f79e ILT |
8705 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8706 | X"$mf" : 'X\(//\)[^/]' \| \ | |
8707 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8708 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
8709 | $as_echo X"$mf" | | |
8710 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8711 | s//\1/ | |
8712 | q | |
8713 | } | |
8714 | /^X\(\/\/\)[^/].*/{ | |
8715 | s//\1/ | |
8716 | q | |
8717 | } | |
8718 | /^X\(\/\/\)$/{ | |
8719 | s//\1/ | |
8720 | q | |
8721 | } | |
8722 | /^X\(\/\).*/{ | |
8723 | s//\1/ | |
8724 | q | |
8725 | } | |
8726 | s/.*/./; q'` | |
8727 | else | |
8728 | continue | |
8729 | fi | |
8730 | # Extract the definition of DEPDIR, am__include, and am__quote | |
8731 | # from the Makefile without running `make'. | |
8732 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
8733 | test -z "$DEPDIR" && continue | |
8734 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
8735 | test -z "am__include" && continue | |
8736 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
8737 | # When using ansi2knr, U may be empty or an underscore; expand it | |
8738 | U=`sed -n 's/^U = //p' < "$mf"` | |
8739 | # Find all dependency output files, they are included files with | |
8740 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
8741 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
8742 | # expansion. | |
8743 | for file in `sed -n " | |
8744 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
8745 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
8746 | # Make sure the directory exists. | |
8747 | test -f "$dirpart/$file" && continue | |
8748 | fdir=`$as_dirname -- "$file" || | |
bae7f79e ILT |
8749 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8750 | X"$file" : 'X\(//\)[^/]' \| \ | |
8751 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8752 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
8753 | $as_echo X"$file" | | |
8754 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8755 | s//\1/ | |
8756 | q | |
8757 | } | |
8758 | /^X\(\/\/\)[^/].*/{ | |
8759 | s//\1/ | |
8760 | q | |
8761 | } | |
8762 | /^X\(\/\/\)$/{ | |
8763 | s//\1/ | |
8764 | q | |
8765 | } | |
8766 | /^X\(\/\).*/{ | |
8767 | s//\1/ | |
8768 | q | |
8769 | } | |
8770 | s/.*/./; q'` | |
8771 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
8772 | # echo "creating $dirpart/$file" | |
8773 | echo '# dummy' > "$dirpart/$file" | |
bae7f79e | 8774 | done |
bae7f79e | 8775 | done |
81ecdfbb | 8776 | } |
bae7f79e | 8777 | ;; |
81ecdfbb | 8778 | "default-1":C) |
bae7f79e ILT |
8779 | for ac_file in $CONFIG_FILES; do |
8780 | # Support "outfile[:infile[:infile...]]" | |
8781 | case "$ac_file" in | |
8782 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8783 | esac | |
8784 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
8785 | case "$ac_file" in */Makefile.in) | |
8786 | # Adjust a relative srcdir. | |
8787 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
c7791212 | 8788 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
bae7f79e ILT |
8789 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
8790 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
8791 | # In autoconf-2.50 it is called $srcdir. | |
8792 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
8793 | case "$ac_given_srcdir" in | |
8794 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
8795 | /*) top_srcdir="$ac_given_srcdir" ;; | |
8796 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8797 | esac | |
8798 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
8799 | rm -f "$ac_dir/POTFILES" | |
8800 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
8801 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
8802 | POMAKEFILEDEPS="POTFILES.in" | |
8803 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
8804 | # on $ac_dir but don't depend on user-specified configuration | |
8805 | # parameters. | |
8806 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
8807 | # The LINGUAS file contains the set of available languages. | |
8808 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
8809 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
8810 | fi | |
8811 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
8812 | # Hide the ALL_LINGUAS assigment from automake. | |
8813 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
8814 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
8815 | else | |
8816 | # The set of available languages was given in configure.in. | |
8817 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
8818 | fi | |
8819 | case "$ac_given_srcdir" in | |
8820 | .) srcdirpre= ;; | |
8821 | *) srcdirpre='$(srcdir)/' ;; | |
8822 | esac | |
8823 | POFILES= | |
8824 | GMOFILES= | |
8825 | UPDATEPOFILES= | |
8826 | DUMMYPOFILES= | |
8827 | for lang in $ALL_LINGUAS; do | |
8828 | POFILES="$POFILES $srcdirpre$lang.po" | |
8829 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
8830 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
8831 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
8832 | done | |
8833 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
8834 | # environment variable. | |
8835 | INST_LINGUAS= | |
8836 | if test -n "$ALL_LINGUAS"; then | |
8837 | for presentlang in $ALL_LINGUAS; do | |
8838 | useit=no | |
8839 | if test "%UNSET%" != "$LINGUAS"; then | |
8840 | desiredlanguages="$LINGUAS" | |
8841 | else | |
8842 | desiredlanguages="$ALL_LINGUAS" | |
8843 | fi | |
8844 | for desiredlang in $desiredlanguages; do | |
8845 | # Use the presentlang catalog if desiredlang is | |
8846 | # a. equal to presentlang, or | |
8847 | # b. a variant of presentlang (because in this case, | |
8848 | # presentlang can be used as a fallback for messages | |
8849 | # which are not translated in the desiredlang catalog). | |
8850 | case "$desiredlang" in | |
8851 | "$presentlang"*) useit=yes;; | |
8852 | esac | |
8853 | done | |
8854 | if test $useit = yes; then | |
8855 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
8856 | fi | |
8857 | done | |
8858 | fi | |
8859 | CATALOGS= | |
8860 | if test -n "$INST_LINGUAS"; then | |
8861 | for lang in $INST_LINGUAS; do | |
8862 | CATALOGS="$CATALOGS $lang.gmo" | |
8863 | done | |
8864 | fi | |
8865 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
8866 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
8867 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
8868 | if test -f "$f"; then | |
8869 | case "$f" in | |
8870 | *.orig | *.bak | *~) ;; | |
8871 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
8872 | esac | |
8873 | fi | |
8874 | done | |
8875 | fi | |
8876 | ;; | |
8877 | esac | |
8878 | done ;; | |
81ecdfbb | 8879 | |
bae7f79e | 8880 | esac |
81ecdfbb | 8881 | done # for ac_tag |
bae7f79e | 8882 | |
bae7f79e | 8883 | |
81ecdfbb | 8884 | as_fn_exit 0 |
bae7f79e | 8885 | _ACEOF |
bae7f79e ILT |
8886 | ac_clean_files=$ac_clean_files_save |
8887 | ||
81ecdfbb RW |
8888 | test $ac_write_fail = 0 || |
8889 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
8890 | ||
bae7f79e ILT |
8891 | |
8892 | # configure is writing to config.log, and then calls config.status. | |
8893 | # config.status does its own redirection, appending to config.log. | |
8894 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8895 | # by configure, so config.status won't be able to write to it; its | |
8896 | # output is simply discarded. So we exec the FD to /dev/null, | |
8897 | # effectively closing config.log, so it can be properly (re)opened and | |
8898 | # appended to by config.status. When coming back to configure, we | |
8899 | # need to make the FD available again. | |
8900 | if test "$no_create" != yes; then | |
8901 | ac_cs_success=: | |
8902 | ac_config_status_args= | |
8903 | test "$silent" = yes && | |
8904 | ac_config_status_args="$ac_config_status_args --quiet" | |
8905 | exec 5>/dev/null | |
8906 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8907 | exec 5>>config.log | |
8908 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8909 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
8910 | $ac_cs_success || as_fn_exit $? |
8911 | fi | |
8912 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
8913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8914 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
bae7f79e ILT |
8915 | fi |
8916 |