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 | |
dc87f620 ILT |
602 | GOLD_LDADD |
603 | GOLD_LDFLAGS | |
81ecdfbb RW |
604 | WARN_CXXFLAGS |
605 | NO_WERROR | |
606 | WARN_CFLAGS | |
ebb300b2 CC |
607 | IFUNC_STATIC_FALSE |
608 | IFUNC_STATIC_TRUE | |
7223e9ca ILT |
609 | IFUNC_FALSE |
610 | IFUNC_TRUE | |
81ecdfbb | 611 | RANDOM_SEED_CFLAGS |
81ecdfbb RW |
612 | TLS_DESCRIPTORS_FALSE |
613 | TLS_DESCRIPTORS_TRUE | |
614 | TLS_GNU2_DIALECT_FALSE | |
615 | TLS_GNU2_DIALECT_TRUE | |
616 | OMP_SUPPORT_FALSE | |
617 | OMP_SUPPORT_TRUE | |
618 | STATIC_TLS_FALSE | |
619 | STATIC_TLS_TRUE | |
620 | TLS_FALSE | |
621 | TLS_TRUE | |
622 | MCMODEL_MEDIUM_FALSE | |
623 | MCMODEL_MEDIUM_TRUE | |
624 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE | |
625 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE | |
328c7c2f ILT |
626 | HAVE_STATIC_FALSE |
627 | HAVE_STATIC_TRUE | |
eb373049 ILT |
628 | NATIVE_OR_CROSS_LINKER_FALSE |
629 | NATIVE_OR_CROSS_LINKER_TRUE | |
81ecdfbb RW |
630 | GCC_FALSE |
631 | GCC_TRUE | |
632 | NATIVE_LINKER_FALSE | |
633 | NATIVE_LINKER_TRUE | |
634 | MSGMERGE | |
635 | MSGFMT | |
636 | MKINSTALLDIRS | |
637 | CATOBJEXT | |
638 | GENCAT | |
639 | INSTOBJEXT | |
640 | DATADIRNAME | |
641 | CATALOGS | |
642 | POSUB | |
643 | GMSGFMT | |
644 | XGETTEXT | |
645 | INCINTL | |
646 | LIBINTL_DEP | |
647 | LIBINTL | |
648 | USE_NLS | |
649 | EGREP | |
650 | GREP | |
651 | CPP | |
652 | LN_S | |
653 | RANLIB | |
654 | YFLAGS | |
655 | YACC | |
656 | am__fastdepCXX_FALSE | |
657 | am__fastdepCXX_TRUE | |
658 | CXXDEPMODE | |
659 | ac_ct_CXX | |
660 | CXXFLAGS | |
661 | CXX | |
662 | am__fastdepCC_FALSE | |
663 | am__fastdepCC_TRUE | |
664 | CCDEPMODE | |
665 | AMDEPBACKSLASH | |
666 | AMDEP_FALSE | |
667 | AMDEP_TRUE | |
668 | am__quote | |
669 | am__include | |
670 | DEPDIR | |
671 | OBJEXT | |
672 | EXEEXT | |
673 | ac_ct_CC | |
674 | CPPFLAGS | |
675 | LDFLAGS | |
676 | CFLAGS | |
677 | CC | |
ebb300b2 | 678 | NM |
81ecdfbb | 679 | TARGETOBJS |
364c7fa5 ILT |
680 | DEFAULT_TARGET_X86_64_FALSE |
681 | DEFAULT_TARGET_X86_64_TRUE | |
682 | DEFAULT_TARGET_SPARC_FALSE | |
683 | DEFAULT_TARGET_SPARC_TRUE | |
684 | DEFAULT_TARGET_POWERPC_FALSE | |
685 | DEFAULT_TARGET_POWERPC_TRUE | |
686 | DEFAULT_TARGET_I386_FALSE | |
687 | DEFAULT_TARGET_I386_TRUE | |
688 | DEFAULT_TARGET_ARM_FALSE | |
689 | DEFAULT_TARGET_ARM_TRUE | |
81ecdfbb RW |
690 | PLUGINS_FALSE |
691 | PLUGINS_TRUE | |
692 | THREADS_FALSE | |
693 | THREADS_TRUE | |
4fda8867 NC |
694 | installed_linker |
695 | install_as_default | |
81ecdfbb RW |
696 | am__untar |
697 | am__tar | |
698 | AMTAR | |
699 | am__leading_dot | |
700 | SET_MAKE | |
701 | AWK | |
702 | mkdir_p | |
703 | MKDIR_P | |
704 | INSTALL_STRIP_PROGRAM | |
705 | STRIP | |
706 | install_sh | |
707 | MAKEINFO | |
708 | AUTOHEADER | |
709 | AUTOMAKE | |
710 | AUTOCONF | |
711 | ACLOCAL | |
712 | VERSION | |
713 | PACKAGE | |
714 | CYGPATH_W | |
715 | am__isrc | |
716 | INSTALL_DATA | |
717 | INSTALL_SCRIPT | |
718 | INSTALL_PROGRAM | |
719 | target_os | |
720 | target_vendor | |
721 | target_cpu | |
722 | target | |
723 | host_os | |
724 | host_vendor | |
725 | host_cpu | |
726 | host | |
727 | build_os | |
728 | build_vendor | |
729 | build_cpu | |
730 | build | |
731 | target_alias | |
732 | host_alias | |
733 | build_alias | |
734 | LIBS | |
735 | ECHO_T | |
736 | ECHO_N | |
737 | ECHO_C | |
738 | DEFS | |
739 | mandir | |
740 | localedir | |
741 | libdir | |
742 | psdir | |
743 | pdfdir | |
744 | dvidir | |
745 | htmldir | |
746 | infodir | |
747 | docdir | |
748 | oldincludedir | |
749 | includedir | |
750 | localstatedir | |
751 | sharedstatedir | |
752 | sysconfdir | |
753 | datadir | |
754 | datarootdir | |
755 | libexecdir | |
756 | sbindir | |
757 | bindir | |
758 | program_transform_name | |
759 | prefix | |
760 | exec_prefix | |
761 | PACKAGE_URL | |
762 | PACKAGE_BUGREPORT | |
763 | PACKAGE_STRING | |
764 | PACKAGE_VERSION | |
765 | PACKAGE_TARNAME | |
766 | PACKAGE_NAME | |
767 | PATH_SEPARATOR | |
768 | SHELL' | |
bae7f79e | 769 | ac_subst_files='' |
81ecdfbb RW |
770 | ac_user_opts=' |
771 | enable_option_checking | |
772 | with_sysroot | |
c7791212 | 773 | enable_ld |
4fda8867 | 774 | enable_gold |
81ecdfbb RW |
775 | enable_threads |
776 | enable_plugins | |
777 | enable_targets | |
3f3cddf1 | 778 | with_lib_path |
81ecdfbb RW |
779 | enable_dependency_tracking |
780 | enable_nls | |
781 | enable_werror | |
782 | enable_build_warnings | |
dc87f620 ILT |
783 | with_gold_ldflags |
784 | with_gold_ldadd | |
81ecdfbb RW |
785 | enable_maintainer_mode |
786 | ' | |
787 | ac_precious_vars='build_alias | |
788 | host_alias | |
789 | target_alias | |
790 | CC | |
791 | CFLAGS | |
792 | LDFLAGS | |
793 | LIBS | |
794 | CPPFLAGS | |
795 | CXX | |
796 | CXXFLAGS | |
797 | CCC | |
798 | YACC | |
799 | YFLAGS | |
800 | CPP | |
801 | CXXCPP' | |
802 | ||
bae7f79e ILT |
803 | |
804 | # Initialize some variables set by options. | |
805 | ac_init_help= | |
806 | ac_init_version=false | |
81ecdfbb RW |
807 | ac_unrecognized_opts= |
808 | ac_unrecognized_sep= | |
bae7f79e ILT |
809 | # The variables have the same names as the options, with |
810 | # dashes changed to underlines. | |
811 | cache_file=/dev/null | |
812 | exec_prefix=NONE | |
813 | no_create= | |
814 | no_recursion= | |
815 | prefix=NONE | |
816 | program_prefix=NONE | |
817 | program_suffix=NONE | |
818 | program_transform_name=s,x,x, | |
819 | silent= | |
820 | site= | |
821 | srcdir= | |
822 | verbose= | |
823 | x_includes=NONE | |
824 | x_libraries=NONE | |
825 | ||
826 | # Installation directory options. | |
827 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
828 | # and all the variables that are supposed to be based on exec_prefix | |
829 | # by default will actually change. | |
830 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 831 | # (The list follows the same order as the GNU Coding Standards.) |
bae7f79e ILT |
832 | bindir='${exec_prefix}/bin' |
833 | sbindir='${exec_prefix}/sbin' | |
834 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
835 | datarootdir='${prefix}/share' |
836 | datadir='${datarootdir}' | |
bae7f79e ILT |
837 | sysconfdir='${prefix}/etc' |
838 | sharedstatedir='${prefix}/com' | |
839 | localstatedir='${prefix}/var' | |
bae7f79e ILT |
840 | includedir='${prefix}/include' |
841 | oldincludedir='/usr/include' | |
81ecdfbb RW |
842 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
843 | infodir='${datarootdir}/info' | |
844 | htmldir='${docdir}' | |
845 | dvidir='${docdir}' | |
846 | pdfdir='${docdir}' | |
847 | psdir='${docdir}' | |
848 | libdir='${exec_prefix}/lib' | |
849 | localedir='${datarootdir}/locale' | |
850 | mandir='${datarootdir}/man' | |
bae7f79e ILT |
851 | |
852 | ac_prev= | |
81ecdfbb | 853 | ac_dashdash= |
bae7f79e ILT |
854 | for ac_option |
855 | do | |
856 | # If the previous option needs an argument, assign it. | |
857 | if test -n "$ac_prev"; then | |
81ecdfbb | 858 | eval $ac_prev=\$ac_option |
bae7f79e ILT |
859 | ac_prev= |
860 | continue | |
861 | fi | |
862 | ||
81ecdfbb RW |
863 | case $ac_option in |
864 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
865 | *) ac_optarg=yes ;; | |
866 | esac | |
bae7f79e ILT |
867 | |
868 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
869 | ||
81ecdfbb RW |
870 | case $ac_dashdash$ac_option in |
871 | --) | |
872 | ac_dashdash=yes ;; | |
bae7f79e ILT |
873 | |
874 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
875 | ac_prev=bindir ;; | |
876 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
877 | bindir=$ac_optarg ;; | |
878 | ||
879 | -build | --build | --buil | --bui | --bu) | |
880 | ac_prev=build_alias ;; | |
881 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
882 | build_alias=$ac_optarg ;; | |
883 | ||
884 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
885 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
886 | ac_prev=cache_file ;; | |
887 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
888 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
889 | cache_file=$ac_optarg ;; | |
890 | ||
891 | --config-cache | -C) | |
892 | cache_file=config.cache ;; | |
893 | ||
81ecdfbb | 894 | -datadir | --datadir | --datadi | --datad) |
bae7f79e | 895 | ac_prev=datadir ;; |
81ecdfbb | 896 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bae7f79e ILT |
897 | datadir=$ac_optarg ;; |
898 | ||
81ecdfbb RW |
899 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
900 | | --dataroo | --dataro | --datar) | |
901 | ac_prev=datarootdir ;; | |
902 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
903 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
904 | datarootdir=$ac_optarg ;; | |
905 | ||
bae7f79e | 906 | -disable-* | --disable-*) |
81ecdfbb | 907 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bae7f79e | 908 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
909 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
910 | as_fn_error "invalid feature name: $ac_useropt" | |
911 | ac_useropt_orig=$ac_useropt | |
912 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
913 | case $ac_user_opts in | |
914 | *" | |
915 | "enable_$ac_useropt" | |
916 | "*) ;; | |
917 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
918 | ac_unrecognized_sep=', ';; | |
919 | esac | |
920 | eval enable_$ac_useropt=no ;; | |
921 | ||
922 | -docdir | --docdir | --docdi | --doc | --do) | |
923 | ac_prev=docdir ;; | |
924 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
925 | docdir=$ac_optarg ;; | |
926 | ||
927 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
928 | ac_prev=dvidir ;; | |
929 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
930 | dvidir=$ac_optarg ;; | |
bae7f79e ILT |
931 | |
932 | -enable-* | --enable-*) | |
81ecdfbb | 933 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bae7f79e | 934 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
935 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
936 | as_fn_error "invalid feature name: $ac_useropt" | |
937 | ac_useropt_orig=$ac_useropt | |
938 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
939 | case $ac_user_opts in | |
940 | *" | |
941 | "enable_$ac_useropt" | |
942 | "*) ;; | |
943 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
944 | ac_unrecognized_sep=', ';; | |
bae7f79e | 945 | esac |
81ecdfbb | 946 | eval enable_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
947 | |
948 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
949 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
950 | | --exec | --exe | --ex) | |
951 | ac_prev=exec_prefix ;; | |
952 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
953 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
954 | | --exec=* | --exe=* | --ex=*) | |
955 | exec_prefix=$ac_optarg ;; | |
956 | ||
957 | -gas | --gas | --ga | --g) | |
958 | # Obsolete; use --with-gas. | |
959 | with_gas=yes ;; | |
960 | ||
961 | -help | --help | --hel | --he | -h) | |
962 | ac_init_help=long ;; | |
963 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
964 | ac_init_help=recursive ;; | |
965 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
966 | ac_init_help=short ;; | |
967 | ||
968 | -host | --host | --hos | --ho) | |
969 | ac_prev=host_alias ;; | |
970 | -host=* | --host=* | --hos=* | --ho=*) | |
971 | host_alias=$ac_optarg ;; | |
972 | ||
81ecdfbb RW |
973 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
974 | ac_prev=htmldir ;; | |
975 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
976 | | --ht=*) | |
977 | htmldir=$ac_optarg ;; | |
978 | ||
bae7f79e ILT |
979 | -includedir | --includedir | --includedi | --included | --include \ |
980 | | --includ | --inclu | --incl | --inc) | |
981 | ac_prev=includedir ;; | |
982 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
983 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
984 | includedir=$ac_optarg ;; | |
985 | ||
986 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
987 | ac_prev=infodir ;; | |
988 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
989 | infodir=$ac_optarg ;; | |
990 | ||
991 | -libdir | --libdir | --libdi | --libd) | |
992 | ac_prev=libdir ;; | |
993 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
994 | libdir=$ac_optarg ;; | |
995 | ||
996 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
997 | | --libexe | --libex | --libe) | |
998 | ac_prev=libexecdir ;; | |
999 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1000 | | --libexe=* | --libex=* | --libe=*) | |
1001 | libexecdir=$ac_optarg ;; | |
1002 | ||
81ecdfbb RW |
1003 | -localedir | --localedir | --localedi | --localed | --locale) |
1004 | ac_prev=localedir ;; | |
1005 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1006 | localedir=$ac_optarg ;; | |
1007 | ||
bae7f79e | 1008 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1009 | | --localstate | --localstat | --localsta | --localst | --locals) |
bae7f79e ILT |
1010 | ac_prev=localstatedir ;; |
1011 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1012 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bae7f79e ILT |
1013 | localstatedir=$ac_optarg ;; |
1014 | ||
1015 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1016 | ac_prev=mandir ;; | |
1017 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1018 | mandir=$ac_optarg ;; | |
1019 | ||
1020 | -nfp | --nfp | --nf) | |
1021 | # Obsolete; use --without-fp. | |
1022 | with_fp=no ;; | |
1023 | ||
1024 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1025 | | --no-cr | --no-c | -n) | |
1026 | no_create=yes ;; | |
1027 | ||
1028 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1029 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1030 | no_recursion=yes ;; | |
1031 | ||
1032 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1033 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1034 | | --oldin | --oldi | --old | --ol | --o) | |
1035 | ac_prev=oldincludedir ;; | |
1036 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1037 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1038 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1039 | oldincludedir=$ac_optarg ;; | |
1040 | ||
1041 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1042 | ac_prev=prefix ;; | |
1043 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1044 | prefix=$ac_optarg ;; | |
1045 | ||
1046 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1047 | | --program-pre | --program-pr | --program-p) | |
1048 | ac_prev=program_prefix ;; | |
1049 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1050 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1051 | program_prefix=$ac_optarg ;; | |
1052 | ||
1053 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1054 | | --program-suf | --program-su | --program-s) | |
1055 | ac_prev=program_suffix ;; | |
1056 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1057 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1058 | program_suffix=$ac_optarg ;; | |
1059 | ||
1060 | -program-transform-name | --program-transform-name \ | |
1061 | | --program-transform-nam | --program-transform-na \ | |
1062 | | --program-transform-n | --program-transform- \ | |
1063 | | --program-transform | --program-transfor \ | |
1064 | | --program-transfo | --program-transf \ | |
1065 | | --program-trans | --program-tran \ | |
1066 | | --progr-tra | --program-tr | --program-t) | |
1067 | ac_prev=program_transform_name ;; | |
1068 | -program-transform-name=* | --program-transform-name=* \ | |
1069 | | --program-transform-nam=* | --program-transform-na=* \ | |
1070 | | --program-transform-n=* | --program-transform-=* \ | |
1071 | | --program-transform=* | --program-transfor=* \ | |
1072 | | --program-transfo=* | --program-transf=* \ | |
1073 | | --program-trans=* | --program-tran=* \ | |
1074 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1075 | program_transform_name=$ac_optarg ;; | |
1076 | ||
81ecdfbb RW |
1077 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1078 | ac_prev=pdfdir ;; | |
1079 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1080 | pdfdir=$ac_optarg ;; | |
1081 | ||
1082 | -psdir | --psdir | --psdi | --psd | --ps) | |
1083 | ac_prev=psdir ;; | |
1084 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1085 | psdir=$ac_optarg ;; | |
1086 | ||
bae7f79e ILT |
1087 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1088 | | -silent | --silent | --silen | --sile | --sil) | |
1089 | silent=yes ;; | |
1090 | ||
1091 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1092 | ac_prev=sbindir ;; | |
1093 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1094 | | --sbi=* | --sb=*) | |
1095 | sbindir=$ac_optarg ;; | |
1096 | ||
1097 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1098 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1099 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1100 | | --sha | --sh) | |
1101 | ac_prev=sharedstatedir ;; | |
1102 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1103 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1104 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1105 | | --sha=* | --sh=*) | |
1106 | sharedstatedir=$ac_optarg ;; | |
1107 | ||
1108 | -site | --site | --sit) | |
1109 | ac_prev=site ;; | |
1110 | -site=* | --site=* | --sit=*) | |
1111 | site=$ac_optarg ;; | |
1112 | ||
1113 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1114 | ac_prev=srcdir ;; | |
1115 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1116 | srcdir=$ac_optarg ;; | |
1117 | ||
1118 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1119 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1120 | ac_prev=sysconfdir ;; | |
1121 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1122 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1123 | sysconfdir=$ac_optarg ;; | |
1124 | ||
1125 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1126 | ac_prev=target_alias ;; | |
1127 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1128 | target_alias=$ac_optarg ;; | |
1129 | ||
1130 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1131 | verbose=yes ;; | |
1132 | ||
1133 | -version | --version | --versio | --versi | --vers | -V) | |
1134 | ac_init_version=: ;; | |
1135 | ||
1136 | -with-* | --with-*) | |
81ecdfbb | 1137 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bae7f79e | 1138 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1139 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1140 | as_fn_error "invalid package name: $ac_useropt" | |
1141 | ac_useropt_orig=$ac_useropt | |
1142 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1143 | case $ac_user_opts in | |
1144 | *" | |
1145 | "with_$ac_useropt" | |
1146 | "*) ;; | |
1147 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1148 | ac_unrecognized_sep=', ';; | |
bae7f79e | 1149 | esac |
81ecdfbb | 1150 | eval with_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
1151 | |
1152 | -without-* | --without-*) | |
81ecdfbb | 1153 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bae7f79e | 1154 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1155 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1156 | as_fn_error "invalid package name: $ac_useropt" | |
1157 | ac_useropt_orig=$ac_useropt | |
1158 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1159 | case $ac_user_opts in | |
1160 | *" | |
1161 | "with_$ac_useropt" | |
1162 | "*) ;; | |
1163 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1164 | ac_unrecognized_sep=', ';; | |
1165 | esac | |
1166 | eval with_$ac_useropt=no ;; | |
bae7f79e ILT |
1167 | |
1168 | --x) | |
1169 | # Obsolete; use --with-x. | |
1170 | with_x=yes ;; | |
1171 | ||
1172 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1173 | | --x-incl | --x-inc | --x-in | --x-i) | |
1174 | ac_prev=x_includes ;; | |
1175 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1176 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1177 | x_includes=$ac_optarg ;; | |
1178 | ||
1179 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1180 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1181 | ac_prev=x_libraries ;; | |
1182 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1183 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1184 | x_libraries=$ac_optarg ;; | |
1185 | ||
81ecdfbb RW |
1186 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1187 | Try \`$0 --help' for more information." | |
bae7f79e ILT |
1188 | ;; |
1189 | ||
1190 | *=*) | |
1191 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1192 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1193 | case $ac_envvar in #( |
1194 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1195 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1196 | esac | |
1197 | eval $ac_envvar=\$ac_optarg | |
bae7f79e ILT |
1198 | export $ac_envvar ;; |
1199 | ||
1200 | *) | |
1201 | # FIXME: should be removed in autoconf 3.0. | |
81ecdfbb | 1202 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bae7f79e | 1203 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1204 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bae7f79e ILT |
1205 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1206 | ;; | |
1207 | ||
1208 | esac | |
1209 | done | |
1210 | ||
1211 | if test -n "$ac_prev"; then | |
1212 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
81ecdfbb | 1213 | as_fn_error "missing argument to $ac_option" |
bae7f79e ILT |
1214 | fi |
1215 | ||
81ecdfbb RW |
1216 | if test -n "$ac_unrecognized_opts"; then |
1217 | case $enable_option_checking in | |
1218 | no) ;; | |
1219 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1220 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
bae7f79e | 1221 | esac |
81ecdfbb | 1222 | fi |
bae7f79e | 1223 | |
81ecdfbb RW |
1224 | # Check all directory arguments for consistency. |
1225 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1226 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1227 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1228 | libdir localedir mandir | |
bae7f79e | 1229 | do |
81ecdfbb RW |
1230 | eval ac_val=\$$ac_var |
1231 | # Remove trailing slashes. | |
1232 | case $ac_val in | |
1233 | */ ) | |
1234 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1235 | eval $ac_var=\$ac_val;; | |
1236 | esac | |
1237 | # Be sure to have absolute directory names. | |
bae7f79e | 1238 | case $ac_val in |
81ecdfbb RW |
1239 | [\\/$]* | ?:[\\/]* ) continue;; |
1240 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
bae7f79e | 1241 | esac |
81ecdfbb | 1242 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bae7f79e ILT |
1243 | done |
1244 | ||
1245 | # There might be people who depend on the old broken behavior: `$host' | |
1246 | # used to hold the argument of --host etc. | |
1247 | # FIXME: To remove some day. | |
1248 | build=$build_alias | |
1249 | host=$host_alias | |
1250 | target=$target_alias | |
1251 | ||
1252 | # FIXME: To remove some day. | |
1253 | if test "x$host_alias" != x; then | |
1254 | if test "x$build_alias" = x; then | |
1255 | cross_compiling=maybe | |
81ecdfbb | 1256 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bae7f79e ILT |
1257 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1258 | elif test "x$build_alias" != "x$host_alias"; then | |
1259 | cross_compiling=yes | |
1260 | fi | |
1261 | fi | |
1262 | ||
1263 | ac_tool_prefix= | |
1264 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1265 | ||
1266 | test "$silent" = yes && exec 6>/dev/null | |
1267 | ||
1268 | ||
81ecdfbb RW |
1269 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1270 | ac_ls_di=`ls -di .` && | |
1271 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1272 | as_fn_error "working directory cannot be determined" | |
1273 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1274 | as_fn_error "pwd does not report name of working directory" | |
1275 | ||
1276 | ||
bae7f79e ILT |
1277 | # Find the source files, if location was not specified. |
1278 | if test -z "$srcdir"; then | |
1279 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1280 | # Try the directory containing this script, then the parent directory. |
1281 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1282 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1283 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1284 | X"$as_myself" : 'X\(//\)$' \| \ | |
1285 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1286 | $as_echo X"$as_myself" | | |
1287 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1288 | s//\1/ | |
1289 | q | |
1290 | } | |
1291 | /^X\(\/\/\)[^/].*/{ | |
1292 | s//\1/ | |
1293 | q | |
1294 | } | |
1295 | /^X\(\/\/\)$/{ | |
1296 | s//\1/ | |
1297 | q | |
1298 | } | |
1299 | /^X\(\/\).*/{ | |
1300 | s//\1/ | |
1301 | q | |
1302 | } | |
1303 | s/.*/./; q'` | |
bae7f79e | 1304 | srcdir=$ac_confdir |
81ecdfbb | 1305 | if test ! -r "$srcdir/$ac_unique_file"; then |
bae7f79e ILT |
1306 | srcdir=.. |
1307 | fi | |
1308 | else | |
1309 | ac_srcdir_defaulted=no | |
1310 | fi | |
81ecdfbb RW |
1311 | if test ! -r "$srcdir/$ac_unique_file"; then |
1312 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1313 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1314 | fi | |
1315 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1316 | ac_abs_confdir=`( | |
1317 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1318 | pwd)` | |
1319 | # When building in place, set srcdir=. | |
1320 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1321 | srcdir=. | |
1322 | fi | |
1323 | # Remove unnecessary trailing slashes from srcdir. | |
1324 | # Double slashes in file names in object file debugging info | |
1325 | # mess up M-x gdb in Emacs. | |
1326 | case $srcdir in | |
1327 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1328 | esac | |
1329 | for ac_var in $ac_precious_vars; do | |
1330 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1331 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1332 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1333 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1334 | done | |
bae7f79e ILT |
1335 | |
1336 | # | |
1337 | # Report the --help message. | |
1338 | # | |
1339 | if test "$ac_init_help" = "long"; then | |
1340 | # Omit some internal or obsolete options to make the list less imposing. | |
1341 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1342 | cat <<_ACEOF | |
8486ee48 | 1343 | \`configure' configures gold 0.1 to adapt to many kinds of systems. |
bae7f79e ILT |
1344 | |
1345 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1346 | ||
1347 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1348 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1349 | ||
1350 | Defaults for the options are specified in brackets. | |
1351 | ||
1352 | Configuration: | |
1353 | -h, --help display this help and exit | |
1354 | --help=short display options specific to this package | |
1355 | --help=recursive display the short help of all the included packages | |
1356 | -V, --version display version information and exit | |
1357 | -q, --quiet, --silent do not print \`checking...' messages | |
1358 | --cache-file=FILE cache test results in FILE [disabled] | |
1359 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1360 | -n, --no-create do not create output files | |
1361 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1362 | ||
bae7f79e ILT |
1363 | Installation directories: |
1364 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1365 | [$ac_default_prefix] |
bae7f79e | 1366 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1367 | [PREFIX] |
bae7f79e ILT |
1368 | |
1369 | By default, \`make install' will install all the files in | |
1370 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1371 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1372 | for instance \`--prefix=\$HOME'. | |
1373 | ||
1374 | For better control, use the options below. | |
1375 | ||
1376 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1377 | --bindir=DIR user executables [EPREFIX/bin] |
1378 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1379 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1380 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1381 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1382 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1383 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1384 | --includedir=DIR C header files [PREFIX/include] | |
1385 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1386 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1387 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1388 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1389 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1390 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1391 | --docdir=DIR documentation root [DATAROOTDIR/doc/gold] | |
1392 | --htmldir=DIR html documentation [DOCDIR] | |
1393 | --dvidir=DIR dvi documentation [DOCDIR] | |
1394 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1395 | --psdir=DIR ps documentation [DOCDIR] | |
bae7f79e ILT |
1396 | _ACEOF |
1397 | ||
1398 | cat <<\_ACEOF | |
1399 | ||
1400 | Program names: | |
1401 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1402 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1403 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1404 | ||
1405 | System types: | |
1406 | --build=BUILD configure for building on BUILD [guessed] | |
1407 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1408 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1409 | _ACEOF | |
1410 | fi | |
1411 | ||
1412 | if test -n "$ac_init_help"; then | |
8486ee48 ILT |
1413 | case $ac_init_help in |
1414 | short | recursive ) echo "Configuration of gold 0.1:";; | |
1415 | esac | |
bae7f79e ILT |
1416 | cat <<\_ACEOF |
1417 | ||
1418 | Optional Features: | |
81ecdfbb | 1419 | --disable-option-checking ignore unrecognized --enable/--with options |
bae7f79e ILT |
1420 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1421 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c7791212 NC |
1422 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
1423 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] | |
fe9a4c12 | 1424 | --enable-threads multi-threaded linking |
89fc3421 | 1425 | --enable-plugins linker plugins |
193a53d9 | 1426 | --enable-targets alternative target configurations |
bae7f79e ILT |
1427 | --disable-dependency-tracking speeds up one-time build |
1428 | --enable-dependency-tracking do not reject slow dependency extractors | |
1429 | --disable-nls do not use Native Language Support | |
1430 | --enable-werror treat compile warnings as errors | |
1431 | --enable-build-warnings enable build-time compiler warnings | |
1432 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1433 | (and sometimes confusing) to the casual installer | |
1434 | ||
ad2d6943 ILT |
1435 | Optional Packages: |
1436 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1437 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1438 | --with-sysroot=DIR search for usr/lib et al within DIR | |
3f3cddf1 | 1439 | --with-lib-path=dir1:dir2... set default LIB_PATH |
dc87f620 ILT |
1440 | --with-gold-ldflags=FLAGS additional link flags for gold |
1441 | --with-gold-ldadd=LIBS additional libraries for gold | |
ad2d6943 | 1442 | |
bae7f79e ILT |
1443 | Some influential environment variables: |
1444 | CC C compiler command | |
1445 | CFLAGS C compiler flags | |
1446 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1447 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1448 | LIBS libraries to pass to the linker, e.g. -l<library> |
1449 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1450 | you have headers in a nonstandard directory <include dir> | |
bae7f79e ILT |
1451 | CXX C++ compiler command |
1452 | CXXFLAGS C++ compiler flags | |
81ecdfbb RW |
1453 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1454 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1455 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1456 | This script will default YFLAGS to the empty string to avoid a | |
1457 | default value of `-d' given by some make applications. | |
9a0910c3 | 1458 | CPP C preprocessor |
54dc6425 | 1459 | CXXCPP C++ preprocessor |
bae7f79e ILT |
1460 | |
1461 | Use these variables to override the choices made by `configure' or to help | |
1462 | it to find libraries and programs with nonstandard names/locations. | |
1463 | ||
81ecdfbb | 1464 | Report bugs to the package provider. |
bae7f79e | 1465 | _ACEOF |
81ecdfbb | 1466 | ac_status=$? |
bae7f79e ILT |
1467 | fi |
1468 | ||
1469 | if test "$ac_init_help" = "recursive"; then | |
1470 | # If there are subdirs, report their specific --help. | |
bae7f79e | 1471 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1472 | test -d "$ac_dir" || |
1473 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1474 | continue | |
bae7f79e ILT |
1475 | ac_builddir=. |
1476 | ||
81ecdfbb RW |
1477 | case "$ac_dir" in |
1478 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1479 | *) | |
1480 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1481 | # A ".." for each directory in $ac_dir_suffix. | |
1482 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1483 | case $ac_top_builddir_sub in | |
1484 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1485 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1486 | esac ;; | |
1487 | esac | |
1488 | ac_abs_top_builddir=$ac_pwd | |
1489 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1490 | # for backward compatibility: | |
1491 | ac_top_builddir=$ac_top_build_prefix | |
bae7f79e ILT |
1492 | |
1493 | case $srcdir in | |
81ecdfbb | 1494 | .) # We are building in place. |
bae7f79e | 1495 | ac_srcdir=. |
81ecdfbb RW |
1496 | ac_top_srcdir=$ac_top_builddir_sub |
1497 | ac_abs_top_srcdir=$ac_pwd ;; | |
1498 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bae7f79e | 1499 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1500 | ac_top_srcdir=$srcdir |
1501 | ac_abs_top_srcdir=$srcdir ;; | |
1502 | *) # Relative name. | |
1503 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1504 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1505 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bae7f79e | 1506 | esac |
81ecdfbb RW |
1507 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1508 | ||
1509 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1510 | # Check for guested configure. | |
1511 | if test -f "$ac_srcdir/configure.gnu"; then | |
1512 | echo && | |
1513 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1514 | elif test -f "$ac_srcdir/configure"; then | |
1515 | echo && | |
1516 | $SHELL "$ac_srcdir/configure" --help=recursive | |
bae7f79e | 1517 | else |
81ecdfbb RW |
1518 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1519 | fi || ac_status=$? | |
1520 | cd "$ac_pwd" || { ac_status=$?; break; } | |
bae7f79e ILT |
1521 | done |
1522 | fi | |
1523 | ||
81ecdfbb | 1524 | test -n "$ac_init_help" && exit $ac_status |
bae7f79e ILT |
1525 | if $ac_init_version; then |
1526 | cat <<\_ACEOF | |
8486ee48 | 1527 | gold configure 0.1 |
81ecdfbb | 1528 | generated by GNU Autoconf 2.64 |
bae7f79e | 1529 | |
81ecdfbb | 1530 | Copyright (C) 2009 Free Software Foundation, Inc. |
bae7f79e ILT |
1531 | This configure script is free software; the Free Software Foundation |
1532 | gives unlimited permission to copy, distribute and modify it. | |
1533 | _ACEOF | |
81ecdfbb | 1534 | exit |
bae7f79e | 1535 | fi |
bae7f79e | 1536 | |
81ecdfbb RW |
1537 | ## ------------------------ ## |
1538 | ## Autoconf initialization. ## | |
1539 | ## ------------------------ ## | |
bae7f79e | 1540 | |
81ecdfbb RW |
1541 | # ac_fn_c_try_compile LINENO |
1542 | # -------------------------- | |
1543 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1544 | ac_fn_c_try_compile () | |
bae7f79e | 1545 | { |
81ecdfbb RW |
1546 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1547 | rm -f conftest.$ac_objext | |
1548 | if { { ac_try="$ac_compile" | |
1549 | case "(($ac_try" in | |
1550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1551 | *) ac_try_echo=$ac_try;; | |
1552 | esac | |
1553 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1554 | $as_echo "$ac_try_echo"; } >&5 | |
1555 | (eval "$ac_compile") 2>conftest.err | |
1556 | ac_status=$? | |
1557 | if test -s conftest.err; then | |
1558 | grep -v '^ *+' conftest.err >conftest.er1 | |
1559 | cat conftest.er1 >&5 | |
1560 | mv -f conftest.er1 conftest.err | |
1561 | fi | |
1562 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1563 | test $ac_status = 0; } && { | |
1564 | test -z "$ac_c_werror_flag" || | |
1565 | test ! -s conftest.err | |
1566 | } && test -s conftest.$ac_objext; then : | |
1567 | ac_retval=0 | |
1568 | else | |
1569 | $as_echo "$as_me: failed program was:" >&5 | |
1570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1571 | |
81ecdfbb RW |
1572 | ac_retval=1 |
1573 | fi | |
1574 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1575 | return $ac_retval | |
bae7f79e | 1576 | |
81ecdfbb | 1577 | } # ac_fn_c_try_compile |
bae7f79e | 1578 | |
81ecdfbb RW |
1579 | # ac_fn_cxx_try_compile LINENO |
1580 | # ---------------------------- | |
1581 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1582 | ac_fn_cxx_try_compile () | |
1583 | { | |
1584 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1585 | rm -f conftest.$ac_objext | |
1586 | if { { ac_try="$ac_compile" | |
1587 | case "(($ac_try" in | |
1588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1589 | *) ac_try_echo=$ac_try;; | |
1590 | esac | |
1591 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1592 | $as_echo "$ac_try_echo"; } >&5 | |
1593 | (eval "$ac_compile") 2>conftest.err | |
1594 | ac_status=$? | |
1595 | if test -s conftest.err; then | |
1596 | grep -v '^ *+' conftest.err >conftest.er1 | |
1597 | cat conftest.er1 >&5 | |
1598 | mv -f conftest.er1 conftest.err | |
1599 | fi | |
1600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1601 | test $ac_status = 0; } && { | |
1602 | test -z "$ac_cxx_werror_flag" || | |
1603 | test ! -s conftest.err | |
1604 | } && test -s conftest.$ac_objext; then : | |
1605 | ac_retval=0 | |
1606 | else | |
1607 | $as_echo "$as_me: failed program was:" >&5 | |
1608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1609 | |
81ecdfbb RW |
1610 | ac_retval=1 |
1611 | fi | |
1612 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1613 | return $ac_retval | |
bae7f79e | 1614 | |
81ecdfbb | 1615 | } # ac_fn_cxx_try_compile |
bae7f79e | 1616 | |
81ecdfbb RW |
1617 | # ac_fn_c_try_cpp LINENO |
1618 | # ---------------------- | |
1619 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1620 | ac_fn_c_try_cpp () | |
1621 | { | |
1622 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1623 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1624 | case "(($ac_try" in | |
1625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1626 | *) ac_try_echo=$ac_try;; | |
1627 | esac | |
1628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1629 | $as_echo "$ac_try_echo"; } >&5 | |
1630 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1631 | ac_status=$? | |
1632 | if test -s conftest.err; then | |
1633 | grep -v '^ *+' conftest.err >conftest.er1 | |
1634 | cat conftest.er1 >&5 | |
1635 | mv -f conftest.er1 conftest.err | |
1636 | fi | |
1637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1638 | test $ac_status = 0; } >/dev/null && { | |
1639 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1640 | test ! -s conftest.err | |
1641 | }; then : | |
1642 | ac_retval=0 | |
1643 | else | |
1644 | $as_echo "$as_me: failed program was:" >&5 | |
1645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1646 | |
81ecdfbb RW |
1647 | ac_retval=1 |
1648 | fi | |
1649 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1650 | return $ac_retval | |
bae7f79e | 1651 | |
81ecdfbb | 1652 | } # ac_fn_c_try_cpp |
bae7f79e | 1653 | |
81ecdfbb RW |
1654 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1655 | # ------------------------------------------------------- | |
1656 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1657 | # the include files in INCLUDES and setting the cache variable VAR | |
1658 | # accordingly. | |
1659 | ac_fn_c_check_header_mongrel () | |
1660 | { | |
1661 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1662 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1664 | $as_echo_n "checking for $2... " >&6; } | |
1665 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1666 | $as_echo_n "(cached) " >&6 | |
1667 | fi | |
1668 | eval ac_res=\$$3 | |
1669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1670 | $as_echo "$ac_res" >&6; } | |
1671 | else | |
1672 | # Is the header compilable? | |
1673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1674 | $as_echo_n "checking $2 usability... " >&6; } | |
1675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1676 | /* end confdefs.h. */ | |
1677 | $4 | |
1678 | #include <$2> | |
bae7f79e | 1679 | _ACEOF |
81ecdfbb RW |
1680 | if ac_fn_c_try_compile "$LINENO"; then : |
1681 | ac_header_compiler=yes | |
1682 | else | |
1683 | ac_header_compiler=no | |
1684 | fi | |
1685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1687 | $as_echo "$ac_header_compiler" >&6; } | |
bae7f79e | 1688 | |
81ecdfbb RW |
1689 | # Is the header present? |
1690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1691 | $as_echo_n "checking $2 presence... " >&6; } | |
1692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1693 | /* end confdefs.h. */ | |
1694 | #include <$2> | |
1695 | _ACEOF | |
1696 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1697 | ac_header_preproc=yes | |
1698 | else | |
1699 | ac_header_preproc=no | |
1700 | fi | |
1701 | rm -f conftest.err conftest.$ac_ext | |
1702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1703 | $as_echo "$ac_header_preproc" >&6; } | |
bae7f79e | 1704 | |
81ecdfbb RW |
1705 | # So? What about this header? |
1706 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1707 | yes:no: ) | |
1708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1709 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1711 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1712 | ;; | |
1713 | no:yes:* ) | |
1714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1715 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1717 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1719 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1721 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1722 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1723 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1724 | ;; | |
1725 | esac | |
1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1727 | $as_echo_n "checking for $2... " >&6; } | |
1728 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1729 | $as_echo_n "(cached) " >&6 | |
1730 | else | |
1731 | eval "$3=\$ac_header_compiler" | |
1732 | fi | |
1733 | eval ac_res=\$$3 | |
1734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1735 | $as_echo "$ac_res" >&6; } | |
1736 | fi | |
1737 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1738 | |
81ecdfbb | 1739 | } # ac_fn_c_check_header_mongrel |
bae7f79e | 1740 | |
81ecdfbb RW |
1741 | # ac_fn_c_try_run LINENO |
1742 | # ---------------------- | |
1743 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1744 | # that executables *can* be run. | |
1745 | ac_fn_c_try_run () | |
bae7f79e | 1746 | { |
81ecdfbb RW |
1747 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1748 | if { { ac_try="$ac_link" | |
1749 | case "(($ac_try" in | |
1750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1751 | *) ac_try_echo=$ac_try;; | |
1752 | esac | |
1753 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1754 | $as_echo "$ac_try_echo"; } >&5 | |
1755 | (eval "$ac_link") 2>&5 | |
1756 | ac_status=$? | |
1757 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1758 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1759 | { { case "(($ac_try" in | |
1760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1761 | *) ac_try_echo=$ac_try;; | |
1762 | esac | |
1763 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1764 | $as_echo "$ac_try_echo"; } >&5 | |
1765 | (eval "$ac_try") 2>&5 | |
1766 | ac_status=$? | |
1767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1768 | test $ac_status = 0; }; }; then : | |
1769 | ac_retval=0 | |
1770 | else | |
1771 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1772 | $as_echo "$as_me: failed program was:" >&5 | |
1773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1774 | |
81ecdfbb RW |
1775 | ac_retval=$ac_status |
1776 | fi | |
1777 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1778 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1779 | return $ac_retval | |
bae7f79e | 1780 | |
81ecdfbb | 1781 | } # ac_fn_c_try_run |
bae7f79e | 1782 | |
81ecdfbb RW |
1783 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1784 | # ------------------------------------------------------- | |
1785 | # Tests whether HEADER exists and can be compiled using the include files in | |
1786 | # INCLUDES, setting the cache variable VAR accordingly. | |
1787 | ac_fn_c_check_header_compile () | |
1788 | { | |
1789 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1791 | $as_echo_n "checking for $2... " >&6; } | |
1792 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1793 | $as_echo_n "(cached) " >&6 | |
1794 | else | |
1795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1796 | /* end confdefs.h. */ | |
1797 | $4 | |
1798 | #include <$2> | |
1799 | _ACEOF | |
1800 | if ac_fn_c_try_compile "$LINENO"; then : | |
1801 | eval "$3=yes" | |
1802 | else | |
1803 | eval "$3=no" | |
1804 | fi | |
1805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1806 | fi | |
1807 | eval ac_res=\$$3 | |
1808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1809 | $as_echo "$ac_res" >&6; } | |
1810 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1811 | |
81ecdfbb | 1812 | } # ac_fn_c_check_header_compile |
bae7f79e | 1813 | |
81ecdfbb RW |
1814 | # ac_fn_c_try_link LINENO |
1815 | # ----------------------- | |
1816 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1817 | ac_fn_c_try_link () | |
1818 | { | |
1819 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1820 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1821 | if { { ac_try="$ac_link" | |
1822 | case "(($ac_try" in | |
1823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1824 | *) ac_try_echo=$ac_try;; | |
1825 | esac | |
1826 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1827 | $as_echo "$ac_try_echo"; } >&5 | |
1828 | (eval "$ac_link") 2>conftest.err | |
1829 | ac_status=$? | |
1830 | if test -s conftest.err; then | |
1831 | grep -v '^ *+' conftest.err >conftest.er1 | |
1832 | cat conftest.er1 >&5 | |
1833 | mv -f conftest.er1 conftest.err | |
1834 | fi | |
1835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1836 | test $ac_status = 0; } && { | |
1837 | test -z "$ac_c_werror_flag" || | |
1838 | test ! -s conftest.err | |
1839 | } && test -s conftest$ac_exeext && { | |
1840 | test "$cross_compiling" = yes || | |
1841 | $as_test_x conftest$ac_exeext | |
1842 | }; then : | |
1843 | ac_retval=0 | |
1844 | else | |
1845 | $as_echo "$as_me: failed program was:" >&5 | |
1846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1847 | |
81ecdfbb RW |
1848 | ac_retval=1 |
1849 | fi | |
1850 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1851 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1852 | # interfere with the next link command; also delete a directory that is | |
1853 | # left behind by Apple's compiler. We do this before executing the actions. | |
1854 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1855 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1856 | return $ac_retval | |
bae7f79e | 1857 | |
81ecdfbb | 1858 | } # ac_fn_c_try_link |
bae7f79e | 1859 | |
81ecdfbb RW |
1860 | # ac_fn_c_check_func LINENO FUNC VAR |
1861 | # ---------------------------------- | |
1862 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1863 | ac_fn_c_check_func () | |
1864 | { | |
1865 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1867 | $as_echo_n "checking for $2... " >&6; } | |
1868 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1869 | $as_echo_n "(cached) " >&6 | |
1870 | else | |
1871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1872 | /* end confdefs.h. */ | |
1873 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1874 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1875 | #define $2 innocuous_$2 | |
bae7f79e | 1876 | |
81ecdfbb RW |
1877 | /* System header to define __stub macros and hopefully few prototypes, |
1878 | which can conflict with char $2 (); below. | |
1879 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1880 | <limits.h> exists even on freestanding compilers. */ | |
bae7f79e | 1881 | |
81ecdfbb RW |
1882 | #ifdef __STDC__ |
1883 | # include <limits.h> | |
1884 | #else | |
1885 | # include <assert.h> | |
1886 | #endif | |
bae7f79e | 1887 | |
81ecdfbb | 1888 | #undef $2 |
bae7f79e | 1889 | |
81ecdfbb RW |
1890 | /* Override any GCC internal prototype to avoid an error. |
1891 | Use char because int might match the return type of a GCC | |
1892 | builtin and then its argument prototype would still apply. */ | |
1893 | #ifdef __cplusplus | |
1894 | extern "C" | |
1895 | #endif | |
1896 | char $2 (); | |
1897 | /* The GNU C library defines this for functions which it implements | |
1898 | to always fail with ENOSYS. Some functions are actually named | |
1899 | something starting with __ and the normal name is an alias. */ | |
1900 | #if defined __stub_$2 || defined __stub___$2 | |
1901 | choke me | |
1902 | #endif | |
1903 | ||
1904 | int | |
1905 | main () | |
1906 | { | |
1907 | return $2 (); | |
1908 | ; | |
1909 | return 0; | |
1910 | } | |
bae7f79e | 1911 | _ACEOF |
81ecdfbb RW |
1912 | if ac_fn_c_try_link "$LINENO"; then : |
1913 | eval "$3=yes" | |
1914 | else | |
1915 | eval "$3=no" | |
1916 | fi | |
1917 | rm -f core conftest.err conftest.$ac_objext \ | |
1918 | conftest$ac_exeext conftest.$ac_ext | |
1919 | fi | |
1920 | eval ac_res=\$$3 | |
1921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1922 | $as_echo "$ac_res" >&6; } | |
1923 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1924 | |
81ecdfbb | 1925 | } # ac_fn_c_check_func |
bae7f79e | 1926 | |
81ecdfbb RW |
1927 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
1928 | # ------------------------------------ | |
1929 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1930 | ac_fn_c_check_decl () | |
1931 | { | |
1932 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7223e9ca ILT |
1933 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1934 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1936 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
1937 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1938 | $as_echo_n "(cached) " >&6 | |
1939 | else | |
1940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1941 | /* end confdefs.h. */ | |
1942 | $4 | |
1943 | int | |
1944 | main () | |
1945 | { | |
7223e9ca ILT |
1946 | #ifndef $as_decl_name |
1947 | #ifdef __cplusplus | |
1948 | (void) $as_decl_use; | |
1949 | #else | |
1950 | (void) $as_decl_name; | |
1951 | #endif | |
81ecdfbb RW |
1952 | #endif |
1953 | ||
1954 | ; | |
1955 | return 0; | |
1956 | } | |
bae7f79e | 1957 | _ACEOF |
81ecdfbb RW |
1958 | if ac_fn_c_try_compile "$LINENO"; then : |
1959 | eval "$3=yes" | |
1960 | else | |
1961 | eval "$3=no" | |
1962 | fi | |
1963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1964 | fi | |
1965 | eval ac_res=\$$3 | |
1966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1967 | $as_echo "$ac_res" >&6; } | |
1968 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1969 | |
81ecdfbb | 1970 | } # ac_fn_c_check_decl |
bae7f79e | 1971 | |
81ecdfbb RW |
1972 | # ac_fn_cxx_try_cpp LINENO |
1973 | # ------------------------ | |
1974 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1975 | ac_fn_cxx_try_cpp () | |
1976 | { | |
1977 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1978 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1979 | case "(($ac_try" in | |
1980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1981 | *) ac_try_echo=$ac_try;; | |
1982 | esac | |
1983 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1984 | $as_echo "$ac_try_echo"; } >&5 | |
1985 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1986 | ac_status=$? | |
1987 | if test -s conftest.err; then | |
1988 | grep -v '^ *+' conftest.err >conftest.er1 | |
1989 | cat conftest.er1 >&5 | |
1990 | mv -f conftest.er1 conftest.err | |
bae7f79e | 1991 | fi |
81ecdfbb RW |
1992 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1993 | test $ac_status = 0; } >/dev/null && { | |
1994 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1995 | test ! -s conftest.err | |
1996 | }; then : | |
1997 | ac_retval=0 | |
1998 | else | |
1999 | $as_echo "$as_me: failed program was:" >&5 | |
2000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2001 | ||
2002 | ac_retval=1 | |
bae7f79e | 2003 | fi |
81ecdfbb RW |
2004 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2005 | return $ac_retval | |
bae7f79e | 2006 | |
81ecdfbb RW |
2007 | } # ac_fn_cxx_try_cpp |
2008 | ||
2009 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2010 | # --------------------------------------------------------- | |
2011 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2012 | # the include files in INCLUDES and setting the cache variable VAR | |
2013 | # accordingly. | |
2014 | ac_fn_cxx_check_header_mongrel () | |
2015 | { | |
2016 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2017 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2019 | $as_echo_n "checking for $2... " >&6; } | |
2020 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2021 | $as_echo_n "(cached) " >&6 | |
2022 | fi | |
2023 | eval ac_res=\$$3 | |
2024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2025 | $as_echo "$ac_res" >&6; } | |
bae7f79e | 2026 | else |
81ecdfbb RW |
2027 | # Is the header compilable? |
2028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2029 | $as_echo_n "checking $2 usability... " >&6; } | |
2030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2031 | /* end confdefs.h. */ | |
2032 | $4 | |
2033 | #include <$2> | |
2034 | _ACEOF | |
2035 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2036 | ac_header_compiler=yes | |
2037 | else | |
2038 | ac_header_compiler=no | |
bae7f79e | 2039 | fi |
81ecdfbb RW |
2040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2042 | $as_echo "$ac_header_compiler" >&6; } | |
bae7f79e | 2043 | |
81ecdfbb RW |
2044 | # Is the header present? |
2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2046 | $as_echo_n "checking $2 presence... " >&6; } | |
2047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2048 | /* end confdefs.h. */ | |
2049 | #include <$2> | |
2050 | _ACEOF | |
2051 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2052 | ac_header_preproc=yes | |
2053 | else | |
2054 | ac_header_preproc=no | |
bae7f79e | 2055 | fi |
81ecdfbb RW |
2056 | rm -f conftest.err conftest.$ac_ext |
2057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2058 | $as_echo "$ac_header_preproc" >&6; } | |
bae7f79e | 2059 | |
81ecdfbb RW |
2060 | # So? What about this header? |
2061 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2062 | yes:no: ) | |
2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2064 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2066 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2067 | ;; | |
2068 | no:yes:* ) | |
2069 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2070 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2071 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2072 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2073 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2074 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2076 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2077 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2078 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2079 | ;; | |
2080 | esac | |
2081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2082 | $as_echo_n "checking for $2... " >&6; } | |
2083 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2084 | $as_echo_n "(cached) " >&6 | |
2085 | else | |
2086 | eval "$3=\$ac_header_compiler" | |
2087 | fi | |
2088 | eval ac_res=\$$3 | |
2089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2090 | $as_echo "$ac_res" >&6; } | |
2091 | fi | |
2092 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2093 | ||
2094 | } # ac_fn_cxx_check_header_mongrel | |
2095 | ||
2096 | # ac_fn_cxx_try_link LINENO | |
2097 | # ------------------------- | |
2098 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2099 | ac_fn_cxx_try_link () | |
2100 | { | |
2101 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2102 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2103 | if { { ac_try="$ac_link" | |
2104 | case "(($ac_try" in | |
2105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2106 | *) ac_try_echo=$ac_try;; | |
2107 | esac | |
2108 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2109 | $as_echo "$ac_try_echo"; } >&5 | |
2110 | (eval "$ac_link") 2>conftest.err | |
2111 | ac_status=$? | |
2112 | if test -s conftest.err; then | |
2113 | grep -v '^ *+' conftest.err >conftest.er1 | |
2114 | cat conftest.er1 >&5 | |
2115 | mv -f conftest.er1 conftest.err | |
2116 | fi | |
2117 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2118 | test $ac_status = 0; } && { | |
2119 | test -z "$ac_cxx_werror_flag" || | |
2120 | test ! -s conftest.err | |
2121 | } && test -s conftest$ac_exeext && { | |
2122 | test "$cross_compiling" = yes || | |
2123 | $as_test_x conftest$ac_exeext | |
2124 | }; then : | |
2125 | ac_retval=0 | |
2126 | else | |
2127 | $as_echo "$as_me: failed program was:" >&5 | |
2128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 2129 | |
81ecdfbb RW |
2130 | ac_retval=1 |
2131 | fi | |
2132 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2133 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2134 | # interfere with the next link command; also delete a directory that is | |
2135 | # left behind by Apple's compiler. We do this before executing the actions. | |
2136 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2137 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2138 | return $ac_retval | |
bae7f79e | 2139 | |
81ecdfbb | 2140 | } # ac_fn_cxx_try_link |
bae7f79e | 2141 | |
81ecdfbb RW |
2142 | # ac_fn_cxx_check_func LINENO FUNC VAR |
2143 | # ------------------------------------ | |
2144 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2145 | ac_fn_cxx_check_func () | |
2146 | { | |
2147 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2149 | $as_echo_n "checking for $2... " >&6; } | |
2150 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2151 | $as_echo_n "(cached) " >&6 | |
2152 | else | |
2153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2154 | /* end confdefs.h. */ | |
2155 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2156 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2157 | #define $2 innocuous_$2 | |
bae7f79e | 2158 | |
81ecdfbb RW |
2159 | /* System header to define __stub macros and hopefully few prototypes, |
2160 | which can conflict with char $2 (); below. | |
2161 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2162 | <limits.h> exists even on freestanding compilers. */ | |
bae7f79e | 2163 | |
81ecdfbb RW |
2164 | #ifdef __STDC__ |
2165 | # include <limits.h> | |
2166 | #else | |
2167 | # include <assert.h> | |
2168 | #endif | |
bae7f79e | 2169 | |
81ecdfbb | 2170 | #undef $2 |
bae7f79e | 2171 | |
81ecdfbb RW |
2172 | /* Override any GCC internal prototype to avoid an error. |
2173 | Use char because int might match the return type of a GCC | |
2174 | builtin and then its argument prototype would still apply. */ | |
2175 | #ifdef __cplusplus | |
2176 | extern "C" | |
2177 | #endif | |
2178 | char $2 (); | |
2179 | /* The GNU C library defines this for functions which it implements | |
2180 | to always fail with ENOSYS. Some functions are actually named | |
2181 | something starting with __ and the normal name is an alias. */ | |
2182 | #if defined __stub_$2 || defined __stub___$2 | |
2183 | choke me | |
2184 | #endif | |
bae7f79e | 2185 | |
81ecdfbb RW |
2186 | int |
2187 | main () | |
2188 | { | |
2189 | return $2 (); | |
2190 | ; | |
2191 | return 0; | |
2192 | } | |
2193 | _ACEOF | |
2194 | if ac_fn_cxx_try_link "$LINENO"; then : | |
2195 | eval "$3=yes" | |
2196 | else | |
2197 | eval "$3=no" | |
2198 | fi | |
2199 | rm -f core conftest.err conftest.$ac_objext \ | |
2200 | conftest$ac_exeext conftest.$ac_ext | |
2201 | fi | |
2202 | eval ac_res=\$$3 | |
2203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2204 | $as_echo "$ac_res" >&6; } | |
2205 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 2206 | |
81ecdfbb | 2207 | } # ac_fn_cxx_check_func |
bae7f79e | 2208 | |
81ecdfbb RW |
2209 | # ac_fn_cxx_check_decl LINENO SYMBOL VAR |
2210 | # -------------------------------------- | |
2211 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2212 | ac_fn_cxx_check_decl () | |
2213 | { | |
2214 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7223e9ca ILT |
2215 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2216 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2218 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
2219 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2220 | $as_echo_n "(cached) " >&6 | |
2221 | else | |
2222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2223 | /* end confdefs.h. */ | |
2224 | $4 | |
2225 | int | |
2226 | main () | |
2227 | { | |
7223e9ca ILT |
2228 | #ifndef $as_decl_name |
2229 | #ifdef __cplusplus | |
2230 | (void) $as_decl_use; | |
2231 | #else | |
2232 | (void) $as_decl_name; | |
2233 | #endif | |
81ecdfbb | 2234 | #endif |
bae7f79e | 2235 | |
81ecdfbb RW |
2236 | ; |
2237 | return 0; | |
2238 | } | |
2239 | _ACEOF | |
2240 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2241 | eval "$3=yes" | |
2242 | else | |
2243 | eval "$3=no" | |
2244 | fi | |
2245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2246 | fi | |
2247 | eval ac_res=\$$3 | |
2248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2249 | $as_echo "$ac_res" >&6; } | |
2250 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 2251 | |
81ecdfbb RW |
2252 | } # ac_fn_cxx_check_decl |
2253 | cat >config.log <<_ACEOF | |
2254 | This file contains any messages produced by compilers while | |
2255 | running configure, to aid debugging if configure makes a mistake. | |
8486ee48 | 2256 | |
81ecdfbb RW |
2257 | It was created by gold $as_me 0.1, which was |
2258 | generated by GNU Autoconf 2.64. Invocation command line was | |
8486ee48 | 2259 | |
81ecdfbb | 2260 | $ $0 $@ |
8486ee48 | 2261 | |
81ecdfbb RW |
2262 | _ACEOF |
2263 | exec 5>>config.log | |
2264 | { | |
2265 | cat <<_ASUNAME | |
2266 | ## --------- ## | |
2267 | ## Platform. ## | |
2268 | ## --------- ## | |
8486ee48 | 2269 | |
81ecdfbb RW |
2270 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2271 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2272 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2273 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2274 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
8486ee48 | 2275 | |
81ecdfbb RW |
2276 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2277 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8486ee48 | 2278 | |
81ecdfbb RW |
2279 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2280 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2281 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2282 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2283 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2284 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2285 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
8486ee48 | 2286 | |
81ecdfbb | 2287 | _ASUNAME |
8486ee48 | 2288 | |
81ecdfbb RW |
2289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2290 | for as_dir in $PATH | |
2291 | do | |
2292 | IFS=$as_save_IFS | |
2293 | test -z "$as_dir" && as_dir=. | |
2294 | $as_echo "PATH: $as_dir" | |
2295 | done | |
2296 | IFS=$as_save_IFS | |
bae7f79e | 2297 | |
81ecdfbb | 2298 | } >&5 |
bae7f79e | 2299 | |
81ecdfbb | 2300 | cat >&5 <<_ACEOF |
bae7f79e ILT |
2301 | |
2302 | ||
81ecdfbb RW |
2303 | ## ----------- ## |
2304 | ## Core tests. ## | |
2305 | ## ----------- ## | |
bae7f79e | 2306 | |
81ecdfbb | 2307 | _ACEOF |
1d1f116d CD |
2308 | |
2309 | ||
81ecdfbb RW |
2310 | # Keep a trace of the command line. |
2311 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2312 | # Strip out --silent because we don't want to record it for future runs. | |
2313 | # Also quote any args containing shell meta-characters. | |
2314 | # Make two passes to allow for proper duplicate-argument suppression. | |
2315 | ac_configure_args= | |
2316 | ac_configure_args0= | |
2317 | ac_configure_args1= | |
2318 | ac_must_keep_next=false | |
2319 | for ac_pass in 1 2 | |
2320 | do | |
2321 | for ac_arg | |
2322 | do | |
2323 | case $ac_arg in | |
2324 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2325 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2326 | | -silent | --silent | --silen | --sile | --sil) | |
2327 | continue ;; | |
2328 | *\'*) | |
2329 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2330 | esac | |
2331 | case $ac_pass in | |
2332 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2333 | 2) | |
2334 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2335 | if test $ac_must_keep_next = true; then | |
2336 | ac_must_keep_next=false # Got value, back to normal. | |
2337 | else | |
2338 | case $ac_arg in | |
2339 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2340 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2341 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2342 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2343 | case "$ac_configure_args0 " in | |
2344 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2345 | esac | |
2346 | ;; | |
2347 | -* ) ac_must_keep_next=true ;; | |
2348 | esac | |
2349 | fi | |
2350 | as_fn_append ac_configure_args " '$ac_arg'" | |
2351 | ;; | |
2352 | esac | |
2353 | done | |
2354 | done | |
2355 | { ac_configure_args0=; unset ac_configure_args0;} | |
2356 | { ac_configure_args1=; unset ac_configure_args1;} | |
1d1f116d | 2357 | |
81ecdfbb RW |
2358 | # When interrupted or exit'd, cleanup temporary files, and complete |
2359 | # config.log. We remove comments because anyway the quotes in there | |
2360 | # would cause problems or look ugly. | |
2361 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2362 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2363 | trap 'exit_status=$? | |
2364 | # Save into config.log some information that might help in debugging. | |
2365 | { | |
2366 | echo | |
bae7f79e | 2367 | |
81ecdfbb RW |
2368 | cat <<\_ASBOX |
2369 | ## ---------------- ## | |
2370 | ## Cache variables. ## | |
2371 | ## ---------------- ## | |
2372 | _ASBOX | |
2373 | echo | |
2374 | # The following way of writing the cache mishandles newlines in values, | |
2375 | ( | |
2376 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2377 | eval ac_val=\$$ac_var | |
2378 | case $ac_val in #( | |
2379 | *${as_nl}*) | |
2380 | case $ac_var in #( | |
2381 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2382 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2383 | esac | |
2384 | case $ac_var in #( | |
2385 | _ | IFS | as_nl) ;; #( | |
2386 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2387 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2388 | esac ;; | |
2389 | esac | |
2390 | done | |
2391 | (set) 2>&1 | | |
2392 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2393 | *${as_nl}ac_space=\ *) | |
2394 | sed -n \ | |
2395 | "s/'\''/'\''\\\\'\'''\''/g; | |
2396 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2397 | ;; #( | |
2398 | *) | |
2399 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2400 | ;; | |
2401 | esac | | |
2402 | sort | |
2403 | ) | |
2404 | echo | |
bae7f79e | 2405 | |
81ecdfbb RW |
2406 | cat <<\_ASBOX |
2407 | ## ----------------- ## | |
2408 | ## Output variables. ## | |
2409 | ## ----------------- ## | |
2410 | _ASBOX | |
2411 | echo | |
2412 | for ac_var in $ac_subst_vars | |
2413 | do | |
2414 | eval ac_val=\$$ac_var | |
2415 | case $ac_val in | |
2416 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2417 | esac | |
2418 | $as_echo "$ac_var='\''$ac_val'\''" | |
2419 | done | sort | |
2420 | echo | |
bae7f79e | 2421 | |
81ecdfbb RW |
2422 | if test -n "$ac_subst_files"; then |
2423 | cat <<\_ASBOX | |
2424 | ## ------------------- ## | |
2425 | ## File substitutions. ## | |
2426 | ## ------------------- ## | |
2427 | _ASBOX | |
2428 | echo | |
2429 | for ac_var in $ac_subst_files | |
2430 | do | |
2431 | eval ac_val=\$$ac_var | |
2432 | case $ac_val in | |
2433 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2434 | esac | |
2435 | $as_echo "$ac_var='\''$ac_val'\''" | |
2436 | done | sort | |
2437 | echo | |
2438 | fi | |
bae7f79e | 2439 | |
81ecdfbb RW |
2440 | if test -s confdefs.h; then |
2441 | cat <<\_ASBOX | |
2442 | ## ----------- ## | |
2443 | ## confdefs.h. ## | |
2444 | ## ----------- ## | |
2445 | _ASBOX | |
2446 | echo | |
2447 | cat confdefs.h | |
2448 | echo | |
2449 | fi | |
2450 | test "$ac_signal" != 0 && | |
2451 | $as_echo "$as_me: caught signal $ac_signal" | |
2452 | $as_echo "$as_me: exit $exit_status" | |
2453 | } >&5 | |
2454 | rm -f core *.core core.conftest.* && | |
2455 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2456 | exit $exit_status | |
2457 | ' 0 | |
2458 | for ac_signal in 1 2 13 15; do | |
2459 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
bae7f79e | 2460 | done |
81ecdfbb | 2461 | ac_signal=0 |
bae7f79e | 2462 | |
81ecdfbb RW |
2463 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2464 | rm -f -r conftest* confdefs.h | |
bae7f79e | 2465 | |
81ecdfbb | 2466 | $as_echo "/* confdefs.h */" > confdefs.h |
bae7f79e | 2467 | |
81ecdfbb | 2468 | # Predefined preprocessor variables. |
bae7f79e | 2469 | |
81ecdfbb RW |
2470 | cat >>confdefs.h <<_ACEOF |
2471 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2472 | _ACEOF | |
bae7f79e | 2473 | |
81ecdfbb RW |
2474 | cat >>confdefs.h <<_ACEOF |
2475 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2476 | _ACEOF | |
bae7f79e | 2477 | |
81ecdfbb RW |
2478 | cat >>confdefs.h <<_ACEOF |
2479 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2480 | _ACEOF | |
bae7f79e | 2481 | |
81ecdfbb RW |
2482 | cat >>confdefs.h <<_ACEOF |
2483 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2484 | _ACEOF | |
bae7f79e | 2485 | |
81ecdfbb RW |
2486 | cat >>confdefs.h <<_ACEOF |
2487 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2488 | _ACEOF | |
bae7f79e | 2489 | |
81ecdfbb RW |
2490 | cat >>confdefs.h <<_ACEOF |
2491 | #define PACKAGE_URL "$PACKAGE_URL" | |
2492 | _ACEOF | |
2493 | ||
2494 | ||
2495 | # Let the site file select an alternate cache file if it wants to. | |
2496 | # Prefer an explicitly selected file to automatically selected ones. | |
2497 | ac_site_file1=NONE | |
2498 | ac_site_file2=NONE | |
2499 | if test -n "$CONFIG_SITE"; then | |
2500 | ac_site_file1=$CONFIG_SITE | |
2501 | elif test "x$prefix" != xNONE; then | |
2502 | ac_site_file1=$prefix/share/config.site | |
2503 | ac_site_file2=$prefix/etc/config.site | |
2504 | else | |
2505 | ac_site_file1=$ac_default_prefix/share/config.site | |
2506 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2507 | fi | |
2508 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2509 | do | |
2510 | test "x$ac_site_file" = xNONE && continue | |
2511 | if test -r "$ac_site_file"; then | |
2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2513 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2514 | sed 's/^/| /' "$ac_site_file" >&5 | |
2515 | . "$ac_site_file" | |
2516 | fi | |
2517 | done | |
2518 | ||
2519 | if test -r "$cache_file"; then | |
2520 | # Some versions of bash will fail to source /dev/null (special | |
2521 | # files actually), so we avoid doing that. | |
2522 | if test -f "$cache_file"; then | |
2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2524 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2525 | case $cache_file in | |
2526 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2527 | *) . "./$cache_file";; | |
2528 | esac | |
2529 | fi | |
2530 | else | |
2531 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2532 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2533 | >$cache_file | |
2534 | fi | |
2535 | ||
2536 | # Check that the precious variables saved in the cache have kept the same | |
2537 | # value. | |
2538 | ac_cache_corrupted=false | |
2539 | for ac_var in $ac_precious_vars; do | |
2540 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2541 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2542 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2543 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2544 | case $ac_old_set,$ac_new_set in | |
2545 | set,) | |
2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2547 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2548 | ac_cache_corrupted=: ;; | |
2549 | ,set) | |
2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2551 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2552 | ac_cache_corrupted=: ;; | |
2553 | ,);; | |
2554 | *) | |
2555 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2556 | # differences in whitespace do not lead to failure. | |
2557 | ac_old_val_w=`echo x $ac_old_val` | |
2558 | ac_new_val_w=`echo x $ac_new_val` | |
2559 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2561 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2562 | ac_cache_corrupted=: | |
2563 | else | |
2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2565 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2566 | eval $ac_var=\$ac_old_val | |
2567 | fi | |
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2569 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2571 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2572 | fi;; | |
2573 | esac | |
2574 | # Pass precious variables to config.status. | |
2575 | if test "$ac_new_set" = set; then | |
2576 | case $ac_new_val in | |
2577 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2578 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2579 | esac | |
2580 | case " $ac_configure_args " in | |
2581 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2582 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2583 | esac | |
2584 | fi | |
2585 | done | |
2586 | if $ac_cache_corrupted; then | |
2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2588 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2589 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2590 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2591 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2592 | fi | |
2593 | ## -------------------- ## | |
2594 | ## Main body of script. ## | |
2595 | ## -------------------- ## | |
2596 | ||
2597 | ac_ext=c | |
2598 | ac_cpp='$CPP $CPPFLAGS' | |
2599 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2600 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2601 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2602 | ||
2603 | ||
2604 | ||
2605 | ||
2606 | ||
2607 | ||
2608 | ||
2609 | ac_aux_dir= | |
2610 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2611 | for ac_t in install-sh install.sh shtool; do | |
2612 | if test -f "$ac_dir/$ac_t"; then | |
2613 | ac_aux_dir=$ac_dir | |
2614 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2615 | break 2 | |
2616 | fi | |
2617 | done | |
2618 | done | |
2619 | if test -z "$ac_aux_dir"; then | |
2620 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2621 | fi | |
2622 | ||
2623 | # These three variables are undocumented and unsupported, | |
2624 | # and are intended to be withdrawn in a future Autoconf release. | |
2625 | # They can cause serious problems if a builder's source tree is in a directory | |
2626 | # whose full name contains unusual characters. | |
2627 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2628 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2629 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2630 | ||
2631 | ||
2632 | # Make sure we can run config.sub. | |
2633 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2634 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2635 | ||
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2637 | $as_echo_n "checking build system type... " >&6; } | |
2638 | if test "${ac_cv_build+set}" = set; then : | |
2639 | $as_echo_n "(cached) " >&6 | |
2640 | else | |
2641 | ac_build_alias=$build_alias | |
2642 | test "x$ac_build_alias" = x && | |
2643 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2644 | test "x$ac_build_alias" = x && | |
2645 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2646 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2647 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2648 | ||
2649 | fi | |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2651 | $as_echo "$ac_cv_build" >&6; } | |
2652 | case $ac_cv_build in | |
2653 | *-*-*) ;; | |
2654 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2655 | esac | |
2656 | build=$ac_cv_build | |
2657 | ac_save_IFS=$IFS; IFS='-' | |
2658 | set x $ac_cv_build | |
2659 | shift | |
2660 | build_cpu=$1 | |
2661 | build_vendor=$2 | |
2662 | shift; shift | |
2663 | # Remember, the first character of IFS is used to create $*, | |
2664 | # except with old shells: | |
2665 | build_os=$* | |
2666 | IFS=$ac_save_IFS | |
2667 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2668 | ||
2669 | ||
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2671 | $as_echo_n "checking host system type... " >&6; } | |
2672 | if test "${ac_cv_host+set}" = set; then : | |
2673 | $as_echo_n "(cached) " >&6 | |
2674 | else | |
2675 | if test "x$host_alias" = x; then | |
2676 | ac_cv_host=$ac_cv_build | |
2677 | else | |
2678 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2679 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2680 | fi | |
2681 | ||
2682 | fi | |
2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2684 | $as_echo "$ac_cv_host" >&6; } | |
2685 | case $ac_cv_host in | |
2686 | *-*-*) ;; | |
2687 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2688 | esac | |
2689 | host=$ac_cv_host | |
2690 | ac_save_IFS=$IFS; IFS='-' | |
2691 | set x $ac_cv_host | |
2692 | shift | |
2693 | host_cpu=$1 | |
2694 | host_vendor=$2 | |
2695 | shift; shift | |
2696 | # Remember, the first character of IFS is used to create $*, | |
2697 | # except with old shells: | |
2698 | host_os=$* | |
2699 | IFS=$ac_save_IFS | |
2700 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2701 | ||
2702 | ||
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2704 | $as_echo_n "checking target system type... " >&6; } | |
2705 | if test "${ac_cv_target+set}" = set; then : | |
2706 | $as_echo_n "(cached) " >&6 | |
2707 | else | |
2708 | if test "x$target_alias" = x; then | |
2709 | ac_cv_target=$ac_cv_host | |
2710 | else | |
2711 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2712 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2713 | fi | |
2714 | ||
2715 | fi | |
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2717 | $as_echo "$ac_cv_target" >&6; } | |
2718 | case $ac_cv_target in | |
2719 | *-*-*) ;; | |
2720 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2721 | esac | |
2722 | target=$ac_cv_target | |
2723 | ac_save_IFS=$IFS; IFS='-' | |
2724 | set x $ac_cv_target | |
2725 | shift | |
2726 | target_cpu=$1 | |
2727 | target_vendor=$2 | |
2728 | shift; shift | |
2729 | # Remember, the first character of IFS is used to create $*, | |
2730 | # except with old shells: | |
2731 | target_os=$* | |
2732 | IFS=$ac_save_IFS | |
2733 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2734 | ||
2735 | ||
2736 | # The aliases save the names the user supplied, while $host etc. | |
bae7f79e ILT |
2737 | # will get canonicalized. |
2738 | test -n "$target_alias" && | |
2739 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2740 | NONENONEs,x,x, && | |
2741 | program_prefix=${target_alias}- | |
2742 | ||
81ecdfbb RW |
2743 | am__api_version='1.11' |
2744 | ||
bae7f79e ILT |
2745 | # Find a good install program. We prefer a C program (faster), |
2746 | # so one script is as good as another. But avoid the broken or | |
2747 | # incompatible versions: | |
2748 | # SysV /etc/install, /usr/sbin/install | |
2749 | # SunOS /usr/etc/install | |
2750 | # IRIX /sbin/install | |
2751 | # AIX /bin/install | |
2752 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2753 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2754 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2755 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2756 | # OS/2's system install, which has a completely different semantic | |
2757 | # ./install, which can be erroneously created by make from ./install.sh. | |
f5314dd5 | 2758 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2760 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
bae7f79e | 2761 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2762 | if test "${ac_cv_path_install+set}" = set; then : |
2763 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
2764 | else |
2765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2766 | for as_dir in $PATH | |
2767 | do | |
2768 | IFS=$as_save_IFS | |
2769 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2770 | # Account for people who put trailing slashes in PATH elements. |
2771 | case $as_dir/ in #(( | |
2772 | ./ | .// | /[cC]/* | \ | |
bae7f79e | 2773 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2774 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bae7f79e ILT |
2775 | /usr/ucb/* ) ;; |
2776 | *) | |
2777 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2778 | # Don't use installbsd from OSF since it installs stuff as root | |
2779 | # by default. | |
2780 | for ac_prog in ginstall scoinst install; do | |
2781 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2782 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bae7f79e ILT |
2783 | if test $ac_prog = install && |
2784 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2785 | # AIX install. It has an incompatible calling convention. | |
2786 | : | |
2787 | elif test $ac_prog = install && | |
2788 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2789 | # program-specific install script used by HP pwplus--don't use. | |
2790 | : | |
2791 | else | |
f5314dd5 DM |
2792 | rm -rf conftest.one conftest.two conftest.dir |
2793 | echo one > conftest.one | |
2794 | echo two > conftest.two | |
2795 | mkdir conftest.dir | |
2796 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2797 | test -s conftest.one && test -s conftest.two && | |
2798 | test -s conftest.dir/conftest.one && | |
2799 | test -s conftest.dir/conftest.two | |
2800 | then | |
2801 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2802 | break 3 | |
2803 | fi | |
bae7f79e ILT |
2804 | fi |
2805 | fi | |
2806 | done | |
2807 | done | |
2808 | ;; | |
2809 | esac | |
81ecdfbb RW |
2810 | |
2811 | done | |
2812 | IFS=$as_save_IFS | |
bae7f79e | 2813 | |
f5314dd5 | 2814 | rm -rf conftest.one conftest.two conftest.dir |
bae7f79e ILT |
2815 | |
2816 | fi | |
2817 | if test "${ac_cv_path_install+set}" = set; then | |
2818 | INSTALL=$ac_cv_path_install | |
2819 | else | |
f5314dd5 DM |
2820 | # As a last resort, use the slow shell script. Don't cache a |
2821 | # value for INSTALL within a source directory, because that will | |
bae7f79e | 2822 | # break other packages using the cache if that directory is |
f5314dd5 | 2823 | # removed, or if the value is a relative name. |
bae7f79e ILT |
2824 | INSTALL=$ac_install_sh |
2825 | fi | |
2826 | fi | |
81ecdfbb RW |
2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2828 | $as_echo "$INSTALL" >&6; } | |
bae7f79e ILT |
2829 | |
2830 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2831 | # It thinks the first close brace ends the variable substitution. | |
2832 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2833 | ||
2834 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2835 | ||
2836 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2837 | ||
81ecdfbb RW |
2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2839 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
bae7f79e ILT |
2840 | # Just in case |
2841 | sleep 1 | |
2842 | echo timestamp > conftest.file | |
81ecdfbb RW |
2843 | # Reject unsafe characters in $srcdir or the absolute working directory |
2844 | # name. Accept space and tab only in the latter. | |
2845 | am_lf=' | |
2846 | ' | |
2847 | case `pwd` in | |
2848 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2849 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
2850 | esac | |
2851 | case $srcdir in | |
2852 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2853 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2854 | esac | |
2855 | ||
bae7f79e ILT |
2856 | # Do `set' in a subshell so we don't clobber the current shell's |
2857 | # arguments. Must try -L first in case configure is actually a | |
2858 | # symlink; some systems play weird games with the mod time of symlinks | |
2859 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2860 | # directory). | |
2861 | if ( | |
81ecdfbb | 2862 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bae7f79e ILT |
2863 | if test "$*" = "X"; then |
2864 | # -L didn't work. | |
81ecdfbb | 2865 | set X `ls -t "$srcdir/configure" conftest.file` |
bae7f79e ILT |
2866 | fi |
2867 | rm -f conftest.file | |
2868 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2869 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2870 | ||
2871 | # If neither matched, then we have a broken ls. This can happen | |
2872 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2873 | # broken ls alias from the environment. This has actually | |
2874 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
2875 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
2876 | alias in your environment" "$LINENO" 5 | |
bae7f79e ILT |
2877 | fi |
2878 | ||
2879 | test "$2" = conftest.file | |
2880 | ) | |
2881 | then | |
2882 | # Ok. | |
2883 | : | |
2884 | else | |
81ecdfbb RW |
2885 | as_fn_error "newly created file is older than distributed files! |
2886 | Check your system clock" "$LINENO" 5 | |
bae7f79e | 2887 | fi |
81ecdfbb RW |
2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2889 | $as_echo "yes" >&6; } | |
bae7f79e | 2890 | test "$program_prefix" != NONE && |
81ecdfbb | 2891 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bae7f79e ILT |
2892 | # Use a double $ so make ignores it. |
2893 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2894 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2895 | # Double any \ or $. | |
bae7f79e | 2896 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2897 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2898 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
bae7f79e ILT |
2899 | |
2900 | # expand $ac_aux_dir to an absolute path | |
2901 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2902 | ||
81ecdfbb RW |
2903 | if test x"${MISSING+set}" != xset; then |
2904 | case $am_aux_dir in | |
2905 | *\ * | *\ *) | |
2906 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2907 | *) | |
2908 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2909 | esac | |
2910 | fi | |
bae7f79e ILT |
2911 | # Use eval to expand $SHELL |
2912 | if eval "$MISSING --run true"; then | |
2913 | am_missing_run="$MISSING --run " | |
2914 | else | |
2915 | am_missing_run= | |
81ecdfbb RW |
2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
2917 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2918 | fi | |
2919 | ||
2920 | if test x"${install_sh}" != xset; then | |
2921 | case $am_aux_dir in | |
2922 | *\ * | *\ *) | |
2923 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2924 | *) | |
2925 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2926 | esac | |
2927 | fi | |
2928 | ||
2929 | # Installed binaries are usually stripped using `strip' when the user | |
2930 | # run `make install-strip'. However `strip' might not be the right | |
2931 | # tool to use in cross-compilation environments, therefore Automake | |
2932 | # will honor the `STRIP' environment variable to overrule this program. | |
2933 | if test "$cross_compiling" != no; then | |
2934 | if test -n "$ac_tool_prefix"; then | |
2935 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2936 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2938 | $as_echo_n "checking for $ac_word... " >&6; } | |
2939 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
2940 | $as_echo_n "(cached) " >&6 | |
2941 | else | |
2942 | if test -n "$STRIP"; then | |
2943 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2944 | else | |
2945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2946 | for as_dir in $PATH | |
2947 | do | |
2948 | IFS=$as_save_IFS | |
2949 | test -z "$as_dir" && as_dir=. | |
2950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2952 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2954 | break 2 | |
2955 | fi | |
2956 | done | |
2957 | done | |
2958 | IFS=$as_save_IFS | |
2959 | ||
2960 | fi | |
2961 | fi | |
2962 | STRIP=$ac_cv_prog_STRIP | |
2963 | if test -n "$STRIP"; then | |
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2965 | $as_echo "$STRIP" >&6; } | |
2966 | else | |
2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2968 | $as_echo "no" >&6; } | |
2969 | fi | |
2970 | ||
2971 | ||
2972 | fi | |
2973 | if test -z "$ac_cv_prog_STRIP"; then | |
2974 | ac_ct_STRIP=$STRIP | |
2975 | # Extract the first word of "strip", so it can be a program name with args. | |
2976 | set dummy strip; ac_word=$2 | |
2977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2978 | $as_echo_n "checking for $ac_word... " >&6; } | |
2979 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
2980 | $as_echo_n "(cached) " >&6 | |
2981 | else | |
2982 | if test -n "$ac_ct_STRIP"; then | |
2983 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2984 | else | |
2985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2986 | for as_dir in $PATH | |
2987 | do | |
2988 | IFS=$as_save_IFS | |
2989 | test -z "$as_dir" && as_dir=. | |
2990 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2991 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2992 | ac_cv_prog_ac_ct_STRIP="strip" | |
2993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2994 | break 2 | |
2995 | fi | |
2996 | done | |
2997 | done | |
2998 | IFS=$as_save_IFS | |
2999 | ||
3000 | fi | |
3001 | fi | |
3002 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3003 | if test -n "$ac_ct_STRIP"; then | |
3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3005 | $as_echo "$ac_ct_STRIP" >&6; } | |
3006 | else | |
3007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3008 | $as_echo "no" >&6; } | |
3009 | fi | |
3010 | ||
3011 | if test "x$ac_ct_STRIP" = x; then | |
3012 | STRIP=":" | |
3013 | else | |
3014 | case $cross_compiling:$ac_tool_warned in | |
3015 | yes:) | |
3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3017 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3018 | ac_tool_warned=yes ;; | |
3019 | esac | |
3020 | STRIP=$ac_ct_STRIP | |
3021 | fi | |
3022 | else | |
3023 | STRIP="$ac_cv_prog_STRIP" | |
3024 | fi | |
3025 | ||
3026 | fi | |
3027 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3028 | ||
3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3030 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3031 | if test -z "$MKDIR_P"; then | |
3032 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3033 | $as_echo_n "(cached) " >&6 | |
3034 | else | |
3035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3036 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3037 | do | |
3038 | IFS=$as_save_IFS | |
3039 | test -z "$as_dir" && as_dir=. | |
3040 | for ac_prog in mkdir gmkdir; do | |
3041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3042 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3043 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3044 | 'mkdir (GNU coreutils) '* | \ | |
3045 | 'mkdir (coreutils) '* | \ | |
3046 | 'mkdir (fileutils) '4.1*) | |
3047 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3048 | break 3;; | |
3049 | esac | |
3050 | done | |
3051 | done | |
bae7f79e | 3052 | done |
81ecdfbb RW |
3053 | IFS=$as_save_IFS |
3054 | ||
3055 | fi | |
3056 | ||
3057 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3058 | MKDIR_P="$ac_cv_path_mkdir -p" | |
bae7f79e | 3059 | else |
81ecdfbb RW |
3060 | # As a last resort, use the slow shell script. Don't cache a |
3061 | # value for MKDIR_P within a source directory, because that will | |
3062 | # break other packages using the cache if that directory is | |
3063 | # removed, or if the value is a relative name. | |
3064 | test -d ./--version && rmdir ./--version | |
3065 | MKDIR_P="$ac_install_sh -d" | |
bae7f79e ILT |
3066 | fi |
3067 | fi | |
81ecdfbb RW |
3068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3069 | $as_echo "$MKDIR_P" >&6; } | |
3070 | ||
3071 | mkdir_p="$MKDIR_P" | |
3072 | case $mkdir_p in | |
3073 | [\\/$]* | ?:[\\/]*) ;; | |
3074 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3075 | esac | |
bae7f79e ILT |
3076 | |
3077 | for ac_prog in gawk mawk nawk awk | |
3078 | do | |
3079 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3080 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3082 | $as_echo_n "checking for $ac_word... " >&6; } | |
3083 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3084 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
3085 | else |
3086 | if test -n "$AWK"; then | |
3087 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3088 | else | |
3089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3090 | for as_dir in $PATH | |
3091 | do | |
3092 | IFS=$as_save_IFS | |
3093 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3094 | for ac_exec_ext in '' $ac_executable_extensions; do |
3095 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bae7f79e | 3096 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3097 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bae7f79e ILT |
3098 | break 2 |
3099 | fi | |
3100 | done | |
81ecdfbb RW |
3101 | done |
3102 | IFS=$as_save_IFS | |
bae7f79e ILT |
3103 | |
3104 | fi | |
3105 | fi | |
3106 | AWK=$ac_cv_prog_AWK | |
3107 | if test -n "$AWK"; then | |
81ecdfbb RW |
3108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3109 | $as_echo "$AWK" >&6; } | |
bae7f79e | 3110 | else |
81ecdfbb RW |
3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3112 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3113 | fi |
3114 | ||
81ecdfbb | 3115 | |
bae7f79e ILT |
3116 | test -n "$AWK" && break |
3117 | done | |
3118 | ||
81ecdfbb RW |
3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3120 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3121 | set x ${MAKE-make} | |
3122 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3123 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3124 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
3125 | else |
3126 | cat >conftest.make <<\_ACEOF | |
81ecdfbb | 3127 | SHELL = /bin/sh |
bae7f79e | 3128 | all: |
81ecdfbb | 3129 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bae7f79e ILT |
3130 | _ACEOF |
3131 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
81ecdfbb RW |
3132 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3133 | *@@@%%%=?*=@@@%%%*) | |
3134 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3135 | *) | |
3136 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3137 | esac | |
bae7f79e ILT |
3138 | rm -f conftest.make |
3139 | fi | |
81ecdfbb RW |
3140 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3142 | $as_echo "yes" >&6; } | |
bae7f79e ILT |
3143 | SET_MAKE= |
3144 | else | |
81ecdfbb RW |
3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3146 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3147 | SET_MAKE="MAKE=${MAKE-make}" |
3148 | fi | |
3149 | ||
3150 | rm -rf .tst 2>/dev/null | |
3151 | mkdir .tst 2>/dev/null | |
3152 | if test -d .tst; then | |
3153 | am__leading_dot=. | |
3154 | else | |
3155 | am__leading_dot=_ | |
3156 | fi | |
3157 | rmdir .tst 2>/dev/null | |
3158 | ||
81ecdfbb RW |
3159 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3160 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3161 | # is not polluted with repeated "-I." | |
3162 | am__isrc=' -I$(srcdir)' | |
3163 | # test to see if srcdir already configured | |
3164 | if test -f $srcdir/config.status; then | |
3165 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3166 | fi | |
bae7f79e ILT |
3167 | fi |
3168 | ||
3169 | # test whether we have cygpath | |
3170 | if test -z "$CYGPATH_W"; then | |
3171 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3172 | CYGPATH_W='cygpath -w' | |
3173 | else | |
3174 | CYGPATH_W=echo | |
3175 | fi | |
3176 | fi | |
3177 | ||
3178 | ||
3179 | # Define the identity of the package. | |
8486ee48 ILT |
3180 | PACKAGE='gold' |
3181 | VERSION='0.1' | |
bae7f79e ILT |
3182 | |
3183 | ||
3184 | cat >>confdefs.h <<_ACEOF | |
3185 | #define PACKAGE "$PACKAGE" | |
3186 | _ACEOF | |
3187 | ||
3188 | ||
3189 | cat >>confdefs.h <<_ACEOF | |
3190 | #define VERSION "$VERSION" | |
3191 | _ACEOF | |
3192 | ||
3193 | # Some tools Automake needs. | |
3194 | ||
3195 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3196 | ||
3197 | ||
3198 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3199 | ||
3200 | ||
3201 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3202 | ||
3203 | ||
3204 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3205 | ||
3206 | ||
3207 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3208 | ||
81ecdfbb RW |
3209 | # We need awk for the "check" target. The system "awk" is bad on |
3210 | # some platforms. | |
3211 | # Always define AMTAR for backward compatibility. | |
bae7f79e | 3212 | |
81ecdfbb | 3213 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
bae7f79e | 3214 | |
81ecdfbb RW |
3215 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
3216 | ||
3217 | ||
3218 | ||
3219 | ||
3220 | ||
3221 | ||
3222 | ac_config_headers="$ac_config_headers config.h:config.in" | |
3223 | ||
3224 | ||
3225 | ||
3226 | # Check whether --with-sysroot was given. | |
3227 | if test "${with_sysroot+set}" = set; then : | |
3228 | withval=$with_sysroot; sysroot=$withval | |
bae7f79e | 3229 | else |
81ecdfbb | 3230 | sysroot=no |
bae7f79e ILT |
3231 | fi |
3232 | ||
81ecdfbb RW |
3233 | |
3234 | if test "$sysroot" = "yes"; then | |
3235 | sysroot='${exec_prefix}/${target_alias}/sys-root' | |
3236 | elif test "$sysroot" = "no"; then | |
3237 | sysroot= | |
ad2d6943 ILT |
3238 | fi |
3239 | ||
3240 | sysroot_relocatable=0 | |
3241 | if test -n "$sysroot"; then | |
3242 | case "sysroot" in | |
3243 | "${prefix}" | "${prefix}/"* | \ | |
3244 | "${exec_prefix}" | "${exec_prefix}/"* | \ | |
3245 | '${prefix}' | '${prefix}/'*| \ | |
3246 | '${exec_prefix}' | '${exec_prefix}/'*) | |
3247 | sysroot_relocatable=1 | |
3248 | ;; | |
3249 | esac | |
3250 | fi | |
3251 | ||
3252 | ||
3253 | cat >>confdefs.h <<_ACEOF | |
3254 | #define TARGET_SYSTEM_ROOT "$sysroot" | |
3255 | _ACEOF | |
3256 | ||
3257 | ||
3258 | cat >>confdefs.h <<_ACEOF | |
3259 | #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable | |
3260 | _ACEOF | |
3261 | ||
3262 | ||
c7791212 NC |
3263 | |
3264 | default_ld= | |
3265 | # Check whether --enable-ld was given. | |
3266 | if test "${enable_ld+set}" = set; then : | |
3267 | enableval=$enable_ld; case "${enableval}" in | |
3268 | default) | |
3269 | default_ld=ld.bfd | |
3270 | ;; | |
3271 | esac | |
3272 | fi | |
3273 | ||
3274 | ||
4fda8867 NC |
3275 | # Check whether --enable-gold was given. |
3276 | if test "${enable_gold+set}" = set; then : | |
3277 | enableval=$enable_gold; case "${enableval}" in | |
c7791212 NC |
3278 | yes|default) |
3279 | if test x${default_ld} = x; then | |
3280 | install_as_default=yes | |
3281 | fi | |
4fda8867 NC |
3282 | installed_linker=ld.gold |
3283 | ;; | |
c7791212 | 3284 | no) |
4fda8867 NC |
3285 | ;; |
3286 | *) | |
3287 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
3288 | ;; | |
3289 | esac | |
3290 | else | |
c7791212 NC |
3291 | install_as_default=no |
3292 | installed_linker=ld.gold | |
4fda8867 NC |
3293 | fi |
3294 | ||
3295 | ||
3296 | ||
3297 | ||
81ecdfbb RW |
3298 | # Check whether --enable-threads was given. |
3299 | if test "${enable_threads+set}" = set; then : | |
3300 | enableval=$enable_threads; case "${enableval}" in | |
fe9a4c12 ILT |
3301 | yes | "") threads=yes ;; |
3302 | no) threads=no ;; | |
3303 | *) threads=yes ;; | |
3304 | esac | |
3305 | else | |
3306 | threads=no | |
81ecdfbb RW |
3307 | fi |
3308 | ||
fe9a4c12 ILT |
3309 | if test "$threads" = "yes"; then |
3310 | ||
81ecdfbb | 3311 | $as_echo "#define ENABLE_THREADS 1" >>confdefs.h |
fe9a4c12 ILT |
3312 | |
3313 | fi | |
81ecdfbb | 3314 | if test "$threads" = "yes"; then |
fe9a4c12 ILT |
3315 | THREADS_TRUE= |
3316 | THREADS_FALSE='#' | |
3317 | else | |
3318 | THREADS_TRUE='#' | |
3319 | THREADS_FALSE= | |
3320 | fi | |
3321 | ||
3322 | ||
81ecdfbb RW |
3323 | # Check whether --enable-plugins was given. |
3324 | if test "${enable_plugins+set}" = set; then : | |
3325 | enableval=$enable_plugins; case "${enableval}" in | |
89fc3421 CC |
3326 | yes | "") plugins=yes ;; |
3327 | no) plugins=no ;; | |
3328 | *) plugins=yes ;; | |
3329 | esac | |
3330 | else | |
3331 | plugins=no | |
81ecdfbb RW |
3332 | fi |
3333 | ||
89fc3421 CC |
3334 | if test "$plugins" = "yes"; then |
3335 | ||
81ecdfbb | 3336 | $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h |
89fc3421 CC |
3337 | |
3338 | fi | |
81ecdfbb | 3339 | if test "$plugins" = "yes"; then |
89fc3421 CC |
3340 | PLUGINS_TRUE= |
3341 | PLUGINS_FALSE='#' | |
3342 | else | |
3343 | PLUGINS_TRUE='#' | |
3344 | PLUGINS_FALSE= | |
3345 | fi | |
3346 | ||
3347 | ||
81ecdfbb RW |
3348 | # Check whether --enable-targets was given. |
3349 | if test "${enable_targets+set}" = set; then : | |
3350 | enableval=$enable_targets; case "${enableval}" in | |
193a53d9 | 3351 | yes | "") |
81ecdfbb | 3352 | as_fn_error "--enable-targets option must specify target names or 'all'" "$LINENO" 5 |
193a53d9 ILT |
3353 | ;; |
3354 | no) | |
3355 | enable_targets= | |
3356 | ;; | |
3357 | *) | |
3358 | enable_targets=$enableval | |
3359 | ;; | |
3360 | esac | |
3361 | else | |
3362 | # For now, enable all targets by default | |
3363 | enable_targets=all | |
3364 | ||
81ecdfbb RW |
3365 | fi |
3366 | ||
193a53d9 ILT |
3367 | |
3368 | # Canonicalize the enabled targets. | |
3369 | if test -n "$enable_targets"; then | |
3370 | for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do | |
3371 | result=`$ac_config_sub $targ 2>/dev/null` | |
3372 | if test -n "$result"; then | |
3373 | canon_targets="$canon_targets $result" | |
3374 | else | |
3375 | # Permit unrecognized target names, like "all". | |
3376 | canon_targets="$canon_targets $targ" | |
3377 | fi | |
3378 | done | |
3379 | fi | |
3380 | ||
3381 | # See which specific instantiations we need. | |
6df6da4a ILT |
3382 | targetobjs= |
3383 | all_targets= | |
fbfba508 ILT |
3384 | default_machine= |
3385 | default_size= | |
3386 | default_big_endian= | |
36959681 | 3387 | default_osabi=ELFOSABI_NONE |
fbfba508 ILT |
3388 | targ_32_little= |
3389 | targ_32_big= | |
81ecdfbb RW |
3390 | targ_64_little= |
3391 | targ_64_big= | |
3392 | for targ in $target $canon_targets; do | |
3393 | if test "$targ" = "all"; then | |
3394 | targ_32_little=yes | |
3395 | targ_32_big=yes | |
3396 | targ_64_little=yes | |
3397 | targ_64_big=yes | |
3398 | all_targets=yes | |
3399 | else | |
3400 | . ${srcdir}/configure.tgt | |
bae7f79e | 3401 | |
81ecdfbb RW |
3402 | if test "$targ_obj" = "UNKNOWN"; then |
3403 | as_fn_error "\"unsupported target $targ\"" "$LINENO" 5 | |
3404 | else | |
3405 | targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)" | |
3406 | if test "$targ_extra_obj" != ""; then | |
3407 | targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)" | |
3408 | fi | |
3409 | if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then | |
3410 | if test "$targ_big_endian" = "true" \ | |
3411 | -o "$targ_extra_big_endian" = "true"; then | |
3412 | targ_32_big=yes | |
3413 | fi | |
3414 | if test "$targ_big_endian" = "false" \ | |
3415 | -o "$targ_extra_big_endian" = "false"; then | |
3416 | targ_32_little=yes | |
3417 | fi | |
3418 | fi | |
3419 | if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then | |
3420 | if test "$targ_big_endian" = "true" \ | |
3421 | -o "$targ_extra_big_endian" = "true"; then | |
3422 | targ_64_big=yes | |
3423 | fi | |
3424 | if test "$targ_big_endian" = "false" \ | |
3425 | -o "$targ_extra_big_endian" = "false"; then | |
3426 | targ_64_little=yes | |
3427 | fi | |
3428 | fi | |
bae7f79e | 3429 | |
81ecdfbb RW |
3430 | if test "$target" = "$targ"; then |
3431 | default_machine=$targ_machine | |
3432 | default_size=$targ_size | |
3433 | default_big_endian=$targ_big_endian | |
3434 | default_osabi=$targ_osabi | |
364c7fa5 ILT |
3435 | |
3436 | if test "$targ_obj" = "arm"; then | |
3437 | DEFAULT_TARGET_ARM_TRUE= | |
3438 | DEFAULT_TARGET_ARM_FALSE='#' | |
3439 | else | |
3440 | DEFAULT_TARGET_ARM_TRUE='#' | |
3441 | DEFAULT_TARGET_ARM_FALSE= | |
3442 | fi | |
3443 | ||
3444 | if test "$targ_obj" = "i386"; then | |
3445 | DEFAULT_TARGET_I386_TRUE= | |
3446 | DEFAULT_TARGET_I386_FALSE='#' | |
3447 | else | |
3448 | DEFAULT_TARGET_I386_TRUE='#' | |
3449 | DEFAULT_TARGET_I386_FALSE= | |
3450 | fi | |
3451 | ||
3452 | if test "$targ_obj" = "powerpc"; then | |
3453 | DEFAULT_TARGET_POWERPC_TRUE= | |
3454 | DEFAULT_TARGET_POWERPC_FALSE='#' | |
3455 | else | |
3456 | DEFAULT_TARGET_POWERPC_TRUE='#' | |
3457 | DEFAULT_TARGET_POWERPC_FALSE= | |
3458 | fi | |
3459 | ||
3460 | if test "$targ_obj" = "sparc"; then | |
3461 | DEFAULT_TARGET_SPARC_TRUE= | |
3462 | DEFAULT_TARGET_SPARC_FALSE='#' | |
3463 | else | |
3464 | DEFAULT_TARGET_SPARC_TRUE='#' | |
3465 | DEFAULT_TARGET_SPARC_FALSE= | |
3466 | fi | |
3467 | ||
3468 | if test "$targ_obj" = "x86_64"; then | |
3469 | DEFAULT_TARGET_X86_64_TRUE= | |
3470 | DEFAULT_TARGET_X86_64_FALSE='#' | |
3471 | else | |
3472 | DEFAULT_TARGET_X86_64_TRUE='#' | |
3473 | DEFAULT_TARGET_X86_64_FALSE= | |
3474 | fi | |
3475 | ||
81ecdfbb RW |
3476 | fi |
3477 | fi | |
bae7f79e | 3478 | fi |
81ecdfbb | 3479 | done |
bae7f79e | 3480 | |
6cfaf60b | 3481 | # Remove any duplicates. |
9109c078 ILT |
3482 | to="" |
3483 | for t in $targetobjs; do | |
3484 | case " $to " in | |
3485 | *" $t "*) ;; | |
3486 | *) to="$to $t" ;; | |
3487 | esac | |
3488 | done | |
3489 | targetobjs=$to | |
6cfaf60b | 3490 | |
81ecdfbb | 3491 | if test -n "$targ_32_little"; then |
bae7f79e | 3492 | |
81ecdfbb | 3493 | $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h |
bae7f79e | 3494 | |
537b5f51 | 3495 | fi |
81ecdfbb | 3496 | if test -n "$targ_32_big"; then |
537b5f51 | 3497 | |
81ecdfbb | 3498 | $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h |
fa99aa09 | 3499 | |
81ecdfbb RW |
3500 | fi |
3501 | if test -n "$targ_64_little"; then | |
fa99aa09 | 3502 | |
81ecdfbb | 3503 | $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h |
fa99aa09 | 3504 | |
81ecdfbb RW |
3505 | fi |
3506 | if test -n "$targ_64_big"; then | |
fa99aa09 | 3507 | |
81ecdfbb | 3508 | $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h |
bae7f79e | 3509 | |
bae7f79e | 3510 | fi |
bae7f79e | 3511 | |
81ecdfbb RW |
3512 | if test -n "$all_targets"; then |
3513 | TARGETOBJS='$(ALL_TARGETOBJS)' | |
3514 | else | |
3515 | TARGETOBJS="$targetobjs" | |
3516 | fi | |
bae7f79e | 3517 | |
bae7f79e ILT |
3518 | |
3519 | ||
81ecdfbb RW |
3520 | cat >>confdefs.h <<_ACEOF |
3521 | #define GOLD_DEFAULT_MACHINE $default_machine | |
3522 | _ACEOF | |
bae7f79e | 3523 | |
bae7f79e | 3524 | |
81ecdfbb RW |
3525 | cat >>confdefs.h <<_ACEOF |
3526 | #define GOLD_DEFAULT_SIZE $default_size | |
3527 | _ACEOF | |
bae7f79e | 3528 | |
bae7f79e | 3529 | |
81ecdfbb RW |
3530 | cat >>confdefs.h <<_ACEOF |
3531 | #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian | |
3532 | _ACEOF | |
bae7f79e | 3533 | |
bae7f79e | 3534 | |
81ecdfbb RW |
3535 | cat >>confdefs.h <<_ACEOF |
3536 | #define GOLD_DEFAULT_OSABI $default_osabi | |
3537 | _ACEOF | |
bae7f79e ILT |
3538 | |
3539 | ||
3f3cddf1 ILT |
3540 | |
3541 | # Check whether --with-lib-path was given. | |
3542 | if test "${with_lib_path+set}" = set; then : | |
3543 | withval=$with_lib_path; case "$withval" in | |
3544 | yes) LIB_PATH='"/lib:/usr/lib"' ;; | |
3545 | no) LIB_PATH='""' ;; | |
3546 | *) LIB_PATH='"'"$withval"'"' ;; | |
3547 | esac | |
3548 | else | |
3549 | LIB_PATH='"::DEFAULT::"' | |
3550 | fi | |
3551 | ||
3552 | ||
3553 | cat >>confdefs.h <<_ACEOF | |
3554 | #define LIB_PATH $LIB_PATH | |
3555 | _ACEOF | |
3556 | ||
3557 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then | |
3558 | ||
3559 | $as_echo "#define NATIVE_LINKER 1" >>confdefs.h | |
3560 | ||
3561 | fi | |
3562 | ||
ebb300b2 CC |
3563 | if test -n "$ac_tool_prefix"; then |
3564 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
3565 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
3566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3567 | $as_echo_n "checking for $ac_word... " >&6; } | |
3568 | if test "${ac_cv_prog_NM+set}" = set; then : | |
3569 | $as_echo_n "(cached) " >&6 | |
3570 | else | |
3571 | if test -n "$NM"; then | |
3572 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
3573 | else | |
3574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3575 | for as_dir in $PATH | |
3576 | do | |
3577 | IFS=$as_save_IFS | |
3578 | test -z "$as_dir" && as_dir=. | |
3579 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3580 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3581 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
3582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3583 | break 2 | |
3584 | fi | |
3585 | done | |
3586 | done | |
3587 | IFS=$as_save_IFS | |
3588 | ||
3589 | fi | |
3590 | fi | |
3591 | NM=$ac_cv_prog_NM | |
3592 | if test -n "$NM"; then | |
3593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 | |
3594 | $as_echo "$NM" >&6; } | |
3595 | else | |
3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3597 | $as_echo "no" >&6; } | |
3598 | fi | |
3599 | ||
3600 | ||
3601 | fi | |
3602 | if test -z "$ac_cv_prog_NM"; then | |
3603 | ac_ct_NM=$NM | |
3604 | # Extract the first word of "nm", so it can be a program name with args. | |
3605 | set dummy nm; ac_word=$2 | |
3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3607 | $as_echo_n "checking for $ac_word... " >&6; } | |
3608 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then : | |
3609 | $as_echo_n "(cached) " >&6 | |
3610 | else | |
3611 | if test -n "$ac_ct_NM"; then | |
3612 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
3613 | else | |
3614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3615 | for as_dir in $PATH | |
3616 | do | |
3617 | IFS=$as_save_IFS | |
3618 | test -z "$as_dir" && as_dir=. | |
3619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3621 | ac_cv_prog_ac_ct_NM="nm" | |
3622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3623 | break 2 | |
3624 | fi | |
3625 | done | |
3626 | done | |
3627 | IFS=$as_save_IFS | |
3628 | ||
3629 | fi | |
3630 | fi | |
3631 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
3632 | if test -n "$ac_ct_NM"; then | |
3633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 | |
3634 | $as_echo "$ac_ct_NM" >&6; } | |
3635 | else | |
3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3637 | $as_echo "no" >&6; } | |
3638 | fi | |
3639 | ||
3640 | if test "x$ac_ct_NM" = x; then | |
3641 | NM="" | |
3642 | else | |
3643 | case $cross_compiling:$ac_tool_warned in | |
3644 | yes:) | |
3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3646 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3647 | ac_tool_warned=yes ;; | |
3648 | esac | |
3649 | NM=$ac_ct_NM | |
3650 | fi | |
3651 | else | |
3652 | NM="$ac_cv_prog_NM" | |
3653 | fi | |
3654 | ||
3655 | ||
81ecdfbb RW |
3656 | ac_ext=c |
3657 | ac_cpp='$CPP $CPPFLAGS' | |
3658 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3659 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3660 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3661 | if test -n "$ac_tool_prefix"; then | |
3662 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3663 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3665 | $as_echo_n "checking for $ac_word... " >&6; } | |
3666 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3667 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3668 | else |
81ecdfbb RW |
3669 | if test -n "$CC"; then |
3670 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3671 | else | |
3672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3673 | for as_dir in $PATH | |
3674 | do | |
3675 | IFS=$as_save_IFS | |
3676 | test -z "$as_dir" && as_dir=. | |
3677 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3678 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3679 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3681 | break 2 | |
3682 | fi | |
3683 | done | |
3684 | done | |
3685 | IFS=$as_save_IFS | |
bae7f79e | 3686 | |
81ecdfbb RW |
3687 | fi |
3688 | fi | |
3689 | CC=$ac_cv_prog_CC | |
3690 | if test -n "$CC"; then | |
3691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3692 | $as_echo "$CC" >&6; } | |
3693 | else | |
3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3695 | $as_echo "no" >&6; } | |
3696 | fi | |
bae7f79e ILT |
3697 | |
3698 | ||
bae7f79e | 3699 | fi |
81ecdfbb RW |
3700 | if test -z "$ac_cv_prog_CC"; then |
3701 | ac_ct_CC=$CC | |
3702 | # Extract the first word of "gcc", so it can be a program name with args. | |
3703 | set dummy gcc; ac_word=$2 | |
3704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3705 | $as_echo_n "checking for $ac_word... " >&6; } | |
3706 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3707 | $as_echo_n "(cached) " >&6 | |
3708 | else | |
3709 | if test -n "$ac_ct_CC"; then | |
3710 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3711 | else | |
3712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3713 | for as_dir in $PATH | |
3714 | do | |
3715 | IFS=$as_save_IFS | |
3716 | test -z "$as_dir" && as_dir=. | |
3717 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3719 | ac_cv_prog_ac_ct_CC="gcc" | |
3720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3721 | break 2 | |
3722 | fi | |
3723 | done | |
3724 | done | |
3725 | IFS=$as_save_IFS | |
bae7f79e | 3726 | |
81ecdfbb RW |
3727 | fi |
3728 | fi | |
3729 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3730 | if test -n "$ac_ct_CC"; then | |
3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3732 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 3733 | else |
81ecdfbb RW |
3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3735 | $as_echo "no" >&6; } | |
bae7f79e | 3736 | fi |
bae7f79e | 3737 | |
81ecdfbb RW |
3738 | if test "x$ac_ct_CC" = x; then |
3739 | CC="" | |
3740 | else | |
3741 | case $cross_compiling:$ac_tool_warned in | |
3742 | yes:) | |
3743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3744 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3745 | ac_tool_warned=yes ;; | |
bae7f79e | 3746 | esac |
81ecdfbb RW |
3747 | CC=$ac_ct_CC |
3748 | fi | |
bae7f79e | 3749 | else |
81ecdfbb | 3750 | CC="$ac_cv_prog_CC" |
bae7f79e ILT |
3751 | fi |
3752 | ||
81ecdfbb RW |
3753 | if test -z "$CC"; then |
3754 | if test -n "$ac_tool_prefix"; then | |
3755 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3756 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3758 | $as_echo_n "checking for $ac_word... " >&6; } | |
3759 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3760 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3761 | else |
81ecdfbb RW |
3762 | if test -n "$CC"; then |
3763 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3764 | else | |
3765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
bae7f79e ILT |
3766 | for as_dir in $PATH |
3767 | do | |
3768 | IFS=$as_save_IFS | |
3769 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3770 | for ac_exec_ext in '' $ac_executable_extensions; do |
3771 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3772 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bae7f79e ILT |
3774 | break 2 |
3775 | fi | |
3776 | done | |
81ecdfbb RW |
3777 | done |
3778 | IFS=$as_save_IFS | |
bae7f79e | 3779 | |
bae7f79e | 3780 | fi |
81ecdfbb RW |
3781 | fi |
3782 | CC=$ac_cv_prog_CC | |
3783 | if test -n "$CC"; then | |
3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3785 | $as_echo "$CC" >&6; } | |
bae7f79e | 3786 | else |
81ecdfbb RW |
3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3788 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3789 | fi |
3790 | ||
3791 | ||
81ecdfbb RW |
3792 | fi |
3793 | fi | |
3794 | if test -z "$CC"; then | |
3795 | # Extract the first word of "cc", so it can be a program name with args. | |
3796 | set dummy cc; ac_word=$2 | |
3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3798 | $as_echo_n "checking for $ac_word... " >&6; } | |
3799 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3800 | $as_echo_n "(cached) " >&6 | |
3801 | else | |
3802 | if test -n "$CC"; then | |
3803 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3804 | else | |
3805 | ac_prog_rejected=no | |
3806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3807 | for as_dir in $PATH | |
3808 | do | |
3809 | IFS=$as_save_IFS | |
3810 | test -z "$as_dir" && as_dir=. | |
3811 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3812 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3813 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3814 | ac_prog_rejected=yes | |
3815 | continue | |
3816 | fi | |
3817 | ac_cv_prog_CC="cc" | |
3818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3819 | break 2 | |
3820 | fi | |
3821 | done | |
3822 | done | |
3823 | IFS=$as_save_IFS | |
bae7f79e | 3824 | |
81ecdfbb RW |
3825 | if test $ac_prog_rejected = yes; then |
3826 | # We found a bogon in the path, so make sure we never use it. | |
3827 | set dummy $ac_cv_prog_CC | |
3828 | shift | |
3829 | if test $# != 0; then | |
3830 | # We chose a different compiler from the bogus one. | |
3831 | # However, it has the same basename, so the bogon will be chosen | |
3832 | # first if we set CC to just the basename; use the full file name. | |
3833 | shift | |
3834 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
bae7f79e | 3835 | fi |
81ecdfbb RW |
3836 | fi |
3837 | fi | |
3838 | fi | |
3839 | CC=$ac_cv_prog_CC | |
3840 | if test -n "$CC"; then | |
3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3842 | $as_echo "$CC" >&6; } | |
3843 | else | |
3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3845 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3846 | fi |
3847 | ||
81ecdfbb RW |
3848 | |
3849 | fi | |
3850 | if test -z "$CC"; then | |
3851 | if test -n "$ac_tool_prefix"; then | |
3852 | for ac_prog in cl.exe | |
3853 | do | |
3854 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3855 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3857 | $as_echo_n "checking for $ac_word... " >&6; } | |
3858 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3859 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3860 | else |
81ecdfbb RW |
3861 | if test -n "$CC"; then |
3862 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3863 | else | |
3864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3865 | for as_dir in $PATH | |
3866 | do | |
3867 | IFS=$as_save_IFS | |
3868 | test -z "$as_dir" && as_dir=. | |
3869 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3870 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3871 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3873 | break 2 | |
3874 | fi | |
3875 | done | |
3876 | done | |
3877 | IFS=$as_save_IFS | |
3878 | ||
3879 | fi | |
3880 | fi | |
3881 | CC=$ac_cv_prog_CC | |
3882 | if test -n "$CC"; then | |
3883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3884 | $as_echo "$CC" >&6; } | |
3885 | else | |
3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3887 | $as_echo "no" >&6; } | |
bae7f79e | 3888 | fi |
bae7f79e | 3889 | |
81ecdfbb RW |
3890 | |
3891 | test -n "$CC" && break | |
3892 | done | |
3893 | fi | |
3894 | if test -z "$CC"; then | |
3895 | ac_ct_CC=$CC | |
3896 | for ac_prog in cl.exe | |
3897 | do | |
3898 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3899 | set dummy $ac_prog; ac_word=$2 | |
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3901 | $as_echo_n "checking for $ac_word... " >&6; } | |
3902 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3903 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3904 | else |
81ecdfbb RW |
3905 | if test -n "$ac_ct_CC"; then |
3906 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3907 | else | |
3908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3909 | for as_dir in $PATH | |
3910 | do | |
3911 | IFS=$as_save_IFS | |
3912 | test -z "$as_dir" && as_dir=. | |
3913 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3914 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3915 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3916 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3917 | break 2 | |
3918 | fi | |
3919 | done | |
3920 | done | |
3921 | IFS=$as_save_IFS | |
3922 | ||
bae7f79e | 3923 | fi |
81ecdfbb RW |
3924 | fi |
3925 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3926 | if test -n "$ac_ct_CC"; then | |
3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3928 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 3929 | else |
81ecdfbb RW |
3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3931 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3932 | fi |
3933 | ||
bae7f79e | 3934 | |
81ecdfbb RW |
3935 | test -n "$ac_ct_CC" && break |
3936 | done | |
bae7f79e | 3937 | |
81ecdfbb RW |
3938 | if test "x$ac_ct_CC" = x; then |
3939 | CC="" | |
bae7f79e | 3940 | else |
81ecdfbb RW |
3941 | case $cross_compiling:$ac_tool_warned in |
3942 | yes:) | |
3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3944 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3945 | ac_tool_warned=yes ;; | |
3946 | esac | |
3947 | CC=$ac_ct_CC | |
bae7f79e | 3948 | fi |
bae7f79e ILT |
3949 | fi |
3950 | ||
bae7f79e | 3951 | fi |
bae7f79e | 3952 | |
81ecdfbb RW |
3953 | |
3954 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3955 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3956 | as_fn_error "no acceptable C compiler found in \$PATH | |
3957 | See \`config.log' for more details." "$LINENO" 5; } | |
3958 | ||
3959 | # Provide some information about the compiler. | |
3960 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3961 | set X $ac_compile | |
3962 | ac_compiler=$2 | |
3963 | for ac_option in --version -v -V -qversion; do | |
3964 | { { ac_try="$ac_compiler $ac_option >&5" | |
3965 | case "(($ac_try" in | |
3966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3967 | *) ac_try_echo=$ac_try;; | |
bae7f79e | 3968 | esac |
81ecdfbb RW |
3969 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3970 | $as_echo "$ac_try_echo"; } >&5 | |
3971 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3972 | ac_status=$? | |
3973 | if test -s conftest.err; then | |
3974 | sed '10a\ | |
3975 | ... rest of stderr output deleted ... | |
3976 | 10q' conftest.err >conftest.er1 | |
3977 | cat conftest.er1 >&5 | |
3978 | rm -f conftest.er1 conftest.err | |
3979 | fi | |
3980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3981 | test $ac_status = 0; } | |
3982 | done | |
3983 | ||
3984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3985 | /* end confdefs.h. */ | |
3986 | ||
3987 | int | |
3988 | main () | |
3989 | { | |
3990 | ||
3991 | ; | |
3992 | return 0; | |
3993 | } | |
3994 | _ACEOF | |
3995 | ac_clean_files_save=$ac_clean_files | |
3996 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
3997 | # Try to create an executable without -o first, disregard a.out. | |
3998 | # It will help us diagnose broken compilers, and finding out an intuition | |
3999 | # of exeext. | |
4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
4001 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4002 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4003 | ||
4004 | # The possible output files: | |
4005 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4006 | ||
4007 | ac_rmfiles= | |
4008 | for ac_file in $ac_files | |
4009 | do | |
4010 | case $ac_file in | |
4011 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4012 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4013 | esac | |
4014 | done | |
4015 | rm -f $ac_rmfiles | |
4016 | ||
4017 | if { { ac_try="$ac_link_default" | |
4018 | case "(($ac_try" in | |
4019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4020 | *) ac_try_echo=$ac_try;; | |
4021 | esac | |
4022 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4023 | $as_echo "$ac_try_echo"; } >&5 | |
4024 | (eval "$ac_link_default") 2>&5 | |
4025 | ac_status=$? | |
4026 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4027 | test $ac_status = 0; }; then : | |
4028 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4029 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4030 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4031 | # so that the user can short-circuit this test for compilers unknown to | |
4032 | # Autoconf. | |
4033 | for ac_file in $ac_files '' | |
4034 | do | |
4035 | test -f "$ac_file" || continue | |
4036 | case $ac_file in | |
4037 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
4038 | ;; | |
4039 | [ab].out ) | |
4040 | # We found the default executable, but exeext='' is most | |
4041 | # certainly right. | |
4042 | break;; | |
4043 | *.* ) | |
4044 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
4045 | then :; else | |
4046 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4047 | fi | |
4048 | # We set ac_cv_exeext here because the later test for it is not | |
4049 | # safe: cross compilers may not add the suffix if given an `-o' | |
4050 | # argument, so we may need to know it at that point already. | |
4051 | # Even if this section looks crufty: it has the advantage of | |
4052 | # actually working. | |
4053 | break;; | |
4054 | * ) | |
4055 | break;; | |
4056 | esac | |
4057 | done | |
4058 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
4059 | ||
bae7f79e | 4060 | else |
81ecdfbb | 4061 | ac_file='' |
bae7f79e | 4062 | fi |
81ecdfbb RW |
4063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
4064 | $as_echo "$ac_file" >&6; } | |
4065 | if test -z "$ac_file"; then : | |
4066 | $as_echo "$as_me: failed program was:" >&5 | |
4067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 4068 | |
81ecdfbb RW |
4069 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4070 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4071 | { as_fn_set_status 77 | |
4072 | as_fn_error "C compiler cannot create executables | |
4073 | See \`config.log' for more details." "$LINENO" 5; }; } | |
4074 | fi | |
4075 | ac_exeext=$ac_cv_exeext | |
bae7f79e | 4076 | |
81ecdfbb RW |
4077 | # Check that the compiler produces executables we can run. If not, either |
4078 | # the compiler is broken, or we cross compile. | |
4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
4080 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
4081 | # If not cross compiling, check that we can run a simple program. | |
4082 | if test "$cross_compiling" != yes; then | |
4083 | if { ac_try='./$ac_file' | |
4084 | { { case "(($ac_try" in | |
4085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4086 | *) ac_try_echo=$ac_try;; | |
4087 | esac | |
4088 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4089 | $as_echo "$ac_try_echo"; } >&5 | |
4090 | (eval "$ac_try") 2>&5 | |
4091 | ac_status=$? | |
4092 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4093 | test $ac_status = 0; }; }; then | |
4094 | cross_compiling=no | |
4095 | else | |
4096 | if test "$cross_compiling" = maybe; then | |
4097 | cross_compiling=yes | |
bae7f79e | 4098 | else |
81ecdfbb RW |
4099 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4100 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4101 | as_fn_error "cannot run C compiled programs. | |
4102 | If you meant to cross compile, use \`--host'. | |
4103 | See \`config.log' for more details." "$LINENO" 5; } | |
bae7f79e | 4104 | fi |
bae7f79e | 4105 | fi |
81ecdfbb RW |
4106 | fi |
4107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4108 | $as_echo "yes" >&6; } | |
bae7f79e | 4109 | |
81ecdfbb RW |
4110 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
4111 | ac_clean_files=$ac_clean_files_save | |
4112 | # Check that the compiler produces executables we can run. If not, either | |
4113 | # the compiler is broken, or we cross compile. | |
4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4115 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4117 | $as_echo "$cross_compiling" >&6; } | |
4118 | ||
4119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4120 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4121 | if { { ac_try="$ac_link" | |
4122 | case "(($ac_try" in | |
4123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4124 | *) ac_try_echo=$ac_try;; | |
4125 | esac | |
4126 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4127 | $as_echo "$ac_try_echo"; } >&5 | |
4128 | (eval "$ac_link") 2>&5 | |
4129 | ac_status=$? | |
4130 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4131 | test $ac_status = 0; }; then : | |
4132 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
4133 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4134 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4135 | # `rm'. | |
4136 | for ac_file in conftest.exe conftest conftest.*; do | |
4137 | test -f "$ac_file" || continue | |
4138 | case $ac_file in | |
4139 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4140 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4141 | break;; | |
4142 | * ) break;; | |
4143 | esac | |
4144 | done | |
4145 | else | |
4146 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4147 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4148 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4149 | See \`config.log' for more details." "$LINENO" 5; } | |
4150 | fi | |
4151 | rm -f conftest$ac_cv_exeext | |
4152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
4153 | $as_echo "$ac_cv_exeext" >&6; } | |
bae7f79e | 4154 | |
81ecdfbb RW |
4155 | rm -f conftest.$ac_ext |
4156 | EXEEXT=$ac_cv_exeext | |
4157 | ac_exeext=$EXEEXT | |
4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4159 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4160 | if test "${ac_cv_objext+set}" = set; then : | |
4161 | $as_echo_n "(cached) " >&6 | |
92e059d8 | 4162 | else |
81ecdfbb | 4163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
92e059d8 | 4164 | /* end confdefs.h. */ |
92e059d8 ILT |
4165 | |
4166 | int | |
4167 | main () | |
4168 | { | |
92e059d8 ILT |
4169 | |
4170 | ; | |
4171 | return 0; | |
4172 | } | |
4173 | _ACEOF | |
81ecdfbb RW |
4174 | rm -f conftest.o conftest.obj |
4175 | if { { ac_try="$ac_compile" | |
4176 | case "(($ac_try" in | |
4177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4178 | *) ac_try_echo=$ac_try;; | |
4179 | esac | |
4180 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4181 | $as_echo "$ac_try_echo"; } >&5 | |
4182 | (eval "$ac_compile") 2>&5 | |
4183 | ac_status=$? | |
4184 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4185 | test $ac_status = 0; }; then : | |
4186 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4187 | test -f "$ac_file" || continue; | |
4188 | case $ac_file in | |
4189 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4190 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4191 | break;; | |
4192 | esac | |
4193 | done | |
4194 | else | |
4195 | $as_echo "$as_me: failed program was:" >&5 | |
4196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4197 | ||
4198 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4199 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4200 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4201 | See \`config.log' for more details." "$LINENO" 5; } | |
4202 | fi | |
4203 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4204 | fi | |
4205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4206 | $as_echo "$ac_cv_objext" >&6; } | |
4207 | OBJEXT=$ac_cv_objext | |
4208 | ac_objext=$OBJEXT | |
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4210 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4211 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4212 | $as_echo_n "(cached) " >&6 | |
4213 | else | |
4214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4215 | /* end confdefs.h. */ |
92e059d8 ILT |
4216 | |
4217 | int | |
4218 | main () | |
4219 | { | |
81ecdfbb RW |
4220 | #ifndef __GNUC__ |
4221 | choke me | |
92e059d8 ILT |
4222 | #endif |
4223 | ||
4224 | ; | |
4225 | return 0; | |
4226 | } | |
4227 | _ACEOF | |
81ecdfbb RW |
4228 | if ac_fn_c_try_compile "$LINENO"; then : |
4229 | ac_compiler_gnu=yes | |
92e059d8 | 4230 | else |
81ecdfbb RW |
4231 | ac_compiler_gnu=no |
4232 | fi | |
4233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4234 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
92e059d8 | 4235 | |
92e059d8 | 4236 | fi |
81ecdfbb RW |
4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4238 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4239 | if test $ac_compiler_gnu = yes; then | |
4240 | GCC=yes | |
92e059d8 | 4241 | else |
81ecdfbb RW |
4242 | GCC= |
4243 | fi | |
4244 | ac_test_CFLAGS=${CFLAGS+set} | |
4245 | ac_save_CFLAGS=$CFLAGS | |
4246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4247 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4248 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4249 | $as_echo_n "(cached) " >&6 | |
4250 | else | |
4251 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4252 | ac_c_werror_flag=yes | |
4253 | ac_cv_prog_cc_g=no | |
4254 | CFLAGS="-g" | |
4255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4256 | /* end confdefs.h. */ |
81ecdfbb | 4257 | |
92e059d8 ILT |
4258 | int |
4259 | main () | |
4260 | { | |
81ecdfbb | 4261 | |
92e059d8 ILT |
4262 | ; |
4263 | return 0; | |
4264 | } | |
4265 | _ACEOF | |
81ecdfbb RW |
4266 | if ac_fn_c_try_compile "$LINENO"; then : |
4267 | ac_cv_prog_cc_g=yes | |
92e059d8 | 4268 | else |
81ecdfbb RW |
4269 | CFLAGS="" |
4270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4271 | /* end confdefs.h. */ |
81ecdfbb | 4272 | |
92e059d8 ILT |
4273 | int |
4274 | main () | |
4275 | { | |
81ecdfbb RW |
4276 | |
4277 | ; | |
4278 | return 0; | |
92e059d8 ILT |
4279 | } |
4280 | _ACEOF | |
81ecdfbb RW |
4281 | if ac_fn_c_try_compile "$LINENO"; then : |
4282 | ||
92e059d8 | 4283 | else |
81ecdfbb RW |
4284 | ac_c_werror_flag=$ac_save_c_werror_flag |
4285 | CFLAGS="-g" | |
4286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4287 | /* end confdefs.h. */ | |
92e059d8 | 4288 | |
81ecdfbb RW |
4289 | int |
4290 | main () | |
4291 | { | |
92e059d8 | 4292 | |
81ecdfbb RW |
4293 | ; |
4294 | return 0; | |
4295 | } | |
92e059d8 | 4296 | _ACEOF |
81ecdfbb RW |
4297 | if ac_fn_c_try_compile "$LINENO"; then : |
4298 | ac_cv_prog_cc_g=yes | |
537b5f51 | 4299 | fi |
81ecdfbb | 4300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
537b5f51 | 4301 | fi |
81ecdfbb | 4302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
63402fe4 | 4303 | fi |
81ecdfbb RW |
4304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4305 | ac_c_werror_flag=$ac_save_c_werror_flag | |
8a5e3e08 | 4306 | fi |
81ecdfbb RW |
4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4308 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4309 | if test "$ac_test_CFLAGS" = set; then | |
4310 | CFLAGS=$ac_save_CFLAGS | |
4311 | elif test $ac_cv_prog_cc_g = yes; then | |
4312 | if test "$GCC" = yes; then | |
4313 | CFLAGS="-g -O2" | |
4314 | else | |
4315 | CFLAGS="-g" | |
4316 | fi | |
6eee141f | 4317 | else |
81ecdfbb RW |
4318 | if test "$GCC" = yes; then |
4319 | CFLAGS="-O2" | |
4320 | else | |
4321 | CFLAGS= | |
4322 | fi | |
097ec620 | 4323 | fi |
81ecdfbb RW |
4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4325 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4326 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4327 | $as_echo_n "(cached) " >&6 | |
6eee141f | 4328 | else |
81ecdfbb RW |
4329 | ac_cv_prog_cc_c89=no |
4330 | ac_save_CC=$CC | |
4331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4332 | /* end confdefs.h. */ | |
4333 | #include <stdarg.h> | |
4334 | #include <stdio.h> | |
4335 | #include <sys/types.h> | |
4336 | #include <sys/stat.h> | |
4337 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4338 | struct buf { int x; }; | |
4339 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4340 | static char *e (p, i) | |
4341 | char **p; | |
4342 | int i; | |
4343 | { | |
4344 | return p[i]; | |
4345 | } | |
4346 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4347 | { | |
4348 | char *s; | |
4349 | va_list v; | |
4350 | va_start (v,p); | |
4351 | s = g (p, va_arg (v,int)); | |
4352 | va_end (v); | |
4353 | return s; | |
4354 | } | |
6eee141f | 4355 | |
81ecdfbb RW |
4356 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4357 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4358 | These don't provoke an error unfortunately, instead are silently treated | |
4359 | as 'x'. The following induces an error, until -std is added to get | |
4360 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4361 | array size at least. It's necessary to write '\x00'==0 to get something | |
4362 | that's true only with -std. */ | |
4363 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
097ec620 | 4364 | |
81ecdfbb RW |
4365 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4366 | inside strings and character constants. */ | |
4367 | #define FOO(x) 'x' | |
4368 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
097ec620 | 4369 | |
81ecdfbb RW |
4370 | int test (int i, double x); |
4371 | struct s1 {int (*f) (int a);}; | |
4372 | struct s2 {int (*f) (double a);}; | |
4373 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4374 | int argc; | |
4375 | char **argv; | |
4376 | int | |
4377 | main () | |
4378 | { | |
4379 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4380 | ; | |
4381 | return 0; | |
4382 | } | |
097ec620 | 4383 | _ACEOF |
81ecdfbb RW |
4384 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4385 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4386 | do | |
4387 | CC="$ac_save_CC $ac_arg" | |
4388 | if ac_fn_c_try_compile "$LINENO"; then : | |
4389 | ac_cv_prog_cc_c89=$ac_arg | |
097ec620 | 4390 | fi |
81ecdfbb RW |
4391 | rm -f core conftest.err conftest.$ac_objext |
4392 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4393 | done | |
4394 | rm -f conftest.$ac_ext | |
4395 | CC=$ac_save_CC | |
097ec620 | 4396 | |
097ec620 | 4397 | fi |
81ecdfbb RW |
4398 | # AC_CACHE_VAL |
4399 | case "x$ac_cv_prog_cc_c89" in | |
4400 | x) | |
4401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4402 | $as_echo "none needed" >&6; } ;; | |
4403 | xno) | |
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4405 | $as_echo "unsupported" >&6; } ;; | |
4406 | *) | |
4407 | CC="$CC $ac_cv_prog_cc_c89" | |
4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4409 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4410 | esac | |
4411 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
097ec620 | 4412 | |
81ecdfbb | 4413 | fi |
097ec620 | 4414 | |
81ecdfbb RW |
4415 | ac_ext=c |
4416 | ac_cpp='$CPP $CPPFLAGS' | |
4417 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4418 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4419 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4420 | DEPDIR="${am__leading_dot}deps" | |
155a0dd7 | 4421 | |
81ecdfbb | 4422 | ac_config_commands="$ac_config_commands depfiles" |
155a0dd7 | 4423 | |
155a0dd7 | 4424 | |
81ecdfbb RW |
4425 | am_make=${MAKE-make} |
4426 | cat > confinc << 'END' | |
4427 | am__doit: | |
4428 | @echo this is the am__doit target | |
4429 | .PHONY: am__doit | |
4430 | END | |
4431 | # If we don't find an include directive, just comment out the code. | |
4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4433 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4434 | am__include="#" | |
4435 | am__quote= | |
4436 | _am_result=none | |
4437 | # First try GNU make style include. | |
4438 | echo "include confinc" > confmf | |
4439 | # Ignore all kinds of additional output from `make'. | |
4440 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4441 | *the\ am__doit\ target*) | |
4442 | am__include=include | |
4443 | am__quote= | |
4444 | _am_result=GNU | |
4445 | ;; | |
4446 | esac | |
4447 | # Now try BSD make style include. | |
4448 | if test "$am__include" = "#"; then | |
4449 | echo '.include "confinc"' > confmf | |
4450 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4451 | *the\ am__doit\ target*) | |
4452 | am__include=.include | |
4453 | am__quote="\"" | |
4454 | _am_result=BSD | |
4455 | ;; | |
4456 | esac | |
155a0dd7 | 4457 | fi |
155a0dd7 | 4458 | |
155a0dd7 | 4459 | |
81ecdfbb RW |
4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4461 | $as_echo "$_am_result" >&6; } | |
4462 | rm -f confinc confmf | |
155a0dd7 | 4463 | |
81ecdfbb RW |
4464 | # Check whether --enable-dependency-tracking was given. |
4465 | if test "${enable_dependency_tracking+set}" = set; then : | |
4466 | enableval=$enable_dependency_tracking; | |
4467 | fi | |
155a0dd7 | 4468 | |
81ecdfbb RW |
4469 | if test "x$enable_dependency_tracking" != xno; then |
4470 | am_depcomp="$ac_aux_dir/depcomp" | |
4471 | AMDEPBACKSLASH='\' | |
4472 | fi | |
4473 | if test "x$enable_dependency_tracking" != xno; then | |
4474 | AMDEP_TRUE= | |
4475 | AMDEP_FALSE='#' | |
155a0dd7 | 4476 | else |
81ecdfbb RW |
4477 | AMDEP_TRUE='#' |
4478 | AMDEP_FALSE= | |
155a0dd7 ILT |
4479 | fi |
4480 | ||
4481 | ||
c2b45e22 | 4482 | |
81ecdfbb | 4483 | depcc="$CC" am_compiler_list= |
c2b45e22 | 4484 | |
81ecdfbb RW |
4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4486 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4487 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4488 | $as_echo_n "(cached) " >&6 | |
c2b45e22 | 4489 | else |
81ecdfbb RW |
4490 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4491 | # We make a subdir and do the tests there. Otherwise we can end up | |
4492 | # making bogus files that we don't know about and never remove. For | |
4493 | # instance it was reported that on HP-UX the gcc test will end up | |
4494 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4495 | # in D'. | |
4496 | mkdir conftest.dir | |
4497 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4498 | # using a relative directory. | |
4499 | cp "$am_depcomp" conftest.dir | |
4500 | cd conftest.dir | |
4501 | # We will build objects and dependencies in a subdirectory because | |
4502 | # it helps to detect inapplicable dependency modes. For instance | |
4503 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4504 | # side effect of compilation, but ICC will put the dependencies in | |
4505 | # the current directory while Tru64 will put them in the object | |
4506 | # directory. | |
4507 | mkdir sub | |
c2b45e22 | 4508 | |
81ecdfbb RW |
4509 | am_cv_CC_dependencies_compiler_type=none |
4510 | if test "$am_compiler_list" = ""; then | |
4511 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4512 | fi | |
4513 | am__universal=false | |
4514 | case " $depcc " in #( | |
4515 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4516 | esac | |
c2b45e22 | 4517 | |
81ecdfbb RW |
4518 | for depmode in $am_compiler_list; do |
4519 | # Setup a source with many dependencies, because some compilers | |
4520 | # like to wrap large dependency lists on column 80 (with \), and | |
4521 | # we should not choose a depcomp mode which is confused by this. | |
4522 | # | |
4523 | # We need to recreate these files for each test, as the compiler may | |
4524 | # overwrite some of them when testing with obscure command lines. | |
4525 | # This happens at least with the AIX C compiler. | |
4526 | : > sub/conftest.c | |
4527 | for i in 1 2 3 4 5 6; do | |
4528 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4529 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4530 | # Solaris 8's {/usr,}/bin/sh. | |
4531 | touch sub/conftst$i.h | |
4532 | done | |
4533 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
c2b45e22 | 4534 | |
81ecdfbb RW |
4535 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4536 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4537 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4538 | # versions had trouble with output in subdirs | |
4539 | am__obj=sub/conftest.${OBJEXT-o} | |
4540 | am__minus_obj="-o $am__obj" | |
4541 | case $depmode in | |
4542 | gcc) | |
4543 | # This depmode causes a compiler race in universal mode. | |
4544 | test "$am__universal" = false || continue | |
4545 | ;; | |
4546 | nosideeffect) | |
4547 | # after this tag, mechanisms are not by side-effect, so they'll | |
4548 | # only be used when explicitly requested | |
4549 | if test "x$enable_dependency_tracking" = xyes; then | |
4550 | continue | |
4551 | else | |
4552 | break | |
4553 | fi | |
4554 | ;; | |
4555 | msvisualcpp | msvcmsys) | |
4556 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4557 | # not run yet. These depmodes are late enough in the game, and | |
4558 | # so weak that their functioning should not be impacted. | |
4559 | am__obj=conftest.${OBJEXT-o} | |
4560 | am__minus_obj= | |
4561 | ;; | |
4562 | none) break ;; | |
4563 | esac | |
4564 | if depmode=$depmode \ | |
4565 | source=sub/conftest.c object=$am__obj \ | |
4566 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4567 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4568 | >/dev/null 2>conftest.err && | |
4569 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4570 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4571 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4572 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4573 | # icc doesn't choke on unknown options, it will just issue warnings | |
4574 | # or remarks (even with -Werror). So we grep stderr for any message | |
4575 | # that says an option was ignored or not supported. | |
4576 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4577 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4578 | # The diagnosis changed in icc 8.0: | |
4579 | # icc: Command line remark: option '-MP' not supported | |
4580 | if (grep 'ignoring option' conftest.err || | |
4581 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4582 | am_cv_CC_dependencies_compiler_type=$depmode | |
4583 | break | |
4584 | fi | |
4585 | fi | |
4586 | done | |
c2b45e22 | 4587 | |
81ecdfbb RW |
4588 | cd .. |
4589 | rm -rf conftest.dir | |
c2b45e22 | 4590 | else |
81ecdfbb | 4591 | am_cv_CC_dependencies_compiler_type=none |
c2b45e22 | 4592 | fi |
c2b45e22 | 4593 | |
81ecdfbb RW |
4594 | fi |
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4596 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4597 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
c2b45e22 | 4598 | |
81ecdfbb RW |
4599 | if |
4600 | test "x$enable_dependency_tracking" != xno \ | |
4601 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4602 | am__fastdepCC_TRUE= | |
4603 | am__fastdepCC_FALSE='#' | |
c2b45e22 | 4604 | else |
81ecdfbb RW |
4605 | am__fastdepCC_TRUE='#' |
4606 | am__fastdepCC_FALSE= | |
c2b45e22 CC |
4607 | fi |
4608 | ||
4609 | ||
81ecdfbb RW |
4610 | ac_ext=cpp |
4611 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4612 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4613 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4614 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4615 | if test -z "$CXX"; then | |
4616 | if test -n "$CCC"; then | |
4617 | CXX=$CCC | |
4618 | else | |
4619 | if test -n "$ac_tool_prefix"; then | |
4620 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4621 | do | |
4622 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4623 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4625 | $as_echo_n "checking for $ac_word... " >&6; } | |
4626 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4627 | $as_echo_n "(cached) " >&6 | |
2fd32231 | 4628 | else |
81ecdfbb RW |
4629 | if test -n "$CXX"; then |
4630 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2fd32231 | 4631 | else |
81ecdfbb RW |
4632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4633 | for as_dir in $PATH | |
4634 | do | |
4635 | IFS=$as_save_IFS | |
4636 | test -z "$as_dir" && as_dir=. | |
4637 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4638 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4639 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4641 | break 2 | |
4642 | fi | |
4643 | done | |
4644 | done | |
4645 | IFS=$as_save_IFS | |
2fd32231 | 4646 | |
2fd32231 | 4647 | fi |
2fd32231 | 4648 | fi |
81ecdfbb RW |
4649 | CXX=$ac_cv_prog_CXX |
4650 | if test -n "$CXX"; then | |
4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4652 | $as_echo "$CXX" >&6; } | |
2fd32231 | 4653 | else |
81ecdfbb RW |
4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4655 | $as_echo "no" >&6; } | |
2fd32231 ILT |
4656 | fi |
4657 | ||
4658 | ||
81ecdfbb RW |
4659 | test -n "$CXX" && break |
4660 | done | |
4661 | fi | |
4662 | if test -z "$CXX"; then | |
4663 | ac_ct_CXX=$CXX | |
4664 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4665 | do | |
4666 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4667 | set dummy $ac_prog; ac_word=$2 | |
4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4669 | $as_echo_n "checking for $ac_word... " >&6; } | |
4670 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4671 | $as_echo_n "(cached) " >&6 | |
1d1f116d | 4672 | else |
81ecdfbb RW |
4673 | if test -n "$ac_ct_CXX"; then |
4674 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
1d1f116d | 4675 | else |
81ecdfbb RW |
4676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4677 | for as_dir in $PATH | |
4678 | do | |
4679 | IFS=$as_save_IFS | |
4680 | test -z "$as_dir" && as_dir=. | |
4681 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4683 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4685 | break 2 | |
4686 | fi | |
4687 | done | |
4688 | done | |
4689 | IFS=$as_save_IFS | |
1d1f116d | 4690 | |
1d1f116d | 4691 | fi |
1d1f116d | 4692 | fi |
81ecdfbb RW |
4693 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4694 | if test -n "$ac_ct_CXX"; then | |
4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4696 | $as_echo "$ac_ct_CXX" >&6; } | |
4697 | else | |
4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4699 | $as_echo "no" >&6; } | |
1d1f116d CD |
4700 | fi |
4701 | ||
4702 | ||
81ecdfbb RW |
4703 | test -n "$ac_ct_CXX" && break |
4704 | done | |
63402fe4 | 4705 | |
81ecdfbb RW |
4706 | if test "x$ac_ct_CXX" = x; then |
4707 | CXX="g++" | |
4708 | else | |
4709 | case $cross_compiling:$ac_tool_warned in | |
4710 | yes:) | |
4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4712 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4713 | ac_tool_warned=yes ;; | |
04bf7072 | 4714 | esac |
81ecdfbb RW |
4715 | CXX=$ac_ct_CXX |
4716 | fi | |
4717 | fi | |
04bf7072 | 4718 | |
81ecdfbb | 4719 | fi |
bae7f79e | 4720 | fi |
81ecdfbb RW |
4721 | # Provide some information about the compiler. |
4722 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4723 | set X $ac_compile | |
4724 | ac_compiler=$2 | |
4725 | for ac_option in --version -v -V -qversion; do | |
4726 | { { ac_try="$ac_compiler $ac_option >&5" | |
4727 | case "(($ac_try" in | |
4728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4729 | *) ac_try_echo=$ac_try;; | |
4730 | esac | |
4731 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4732 | $as_echo "$ac_try_echo"; } >&5 | |
4733 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4734 | ac_status=$? | |
4735 | if test -s conftest.err; then | |
4736 | sed '10a\ | |
4737 | ... rest of stderr output deleted ... | |
4738 | 10q' conftest.err >conftest.er1 | |
4739 | cat conftest.er1 >&5 | |
4740 | rm -f conftest.er1 conftest.err | |
4741 | fi | |
4742 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4743 | test $ac_status = 0; } | |
4744 | done | |
bae7f79e | 4745 | |
81ecdfbb RW |
4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4747 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4748 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4749 | $as_echo_n "(cached) " >&6 | |
4750 | else | |
4751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4752 | /* end confdefs.h. */ | |
4753 | ||
4754 | int | |
4755 | main () | |
4756 | { | |
4757 | #ifndef __GNUC__ | |
4758 | choke me | |
4759 | #endif | |
4760 | ||
4761 | ; | |
4762 | return 0; | |
4763 | } | |
4764 | _ACEOF | |
4765 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4766 | ac_compiler_gnu=yes | |
4767 | else | |
4768 | ac_compiler_gnu=no | |
bae7f79e | 4769 | fi |
81ecdfbb RW |
4770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4771 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
bae7f79e | 4772 | |
bae7f79e | 4773 | fi |
81ecdfbb RW |
4774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4775 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4776 | if test $ac_compiler_gnu = yes; then | |
4777 | GXX=yes | |
4778 | else | |
4779 | GXX= | |
4780 | fi | |
4781 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4782 | ac_save_CXXFLAGS=$CXXFLAGS | |
4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4784 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4785 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4786 | $as_echo_n "(cached) " >&6 | |
4787 | else | |
4788 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4789 | ac_cxx_werror_flag=yes | |
4790 | ac_cv_prog_cxx_g=no | |
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 | else | |
4806 | CXXFLAGS="" | |
4807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4808 | /* end confdefs.h. */ | |
bae7f79e | 4809 | |
81ecdfbb RW |
4810 | int |
4811 | main () | |
4812 | { | |
bae7f79e | 4813 | |
81ecdfbb RW |
4814 | ; |
4815 | return 0; | |
4816 | } | |
4817 | _ACEOF | |
4818 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
bae7f79e | 4819 | |
81ecdfbb RW |
4820 | else |
4821 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4822 | CXXFLAGS="-g" | |
4823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4824 | /* end confdefs.h. */ | |
bae7f79e | 4825 | |
81ecdfbb RW |
4826 | int |
4827 | main () | |
4828 | { | |
bae7f79e | 4829 | |
81ecdfbb RW |
4830 | ; |
4831 | return 0; | |
4832 | } | |
4833 | _ACEOF | |
4834 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4835 | ac_cv_prog_cxx_g=yes | |
4836 | fi | |
4837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4838 | fi | |
4839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4840 | fi | |
4841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4842 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4843 | fi | |
4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4845 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4846 | if test "$ac_test_CXXFLAGS" = set; then | |
4847 | CXXFLAGS=$ac_save_CXXFLAGS | |
4848 | elif test $ac_cv_prog_cxx_g = yes; then | |
4849 | if test "$GXX" = yes; then | |
4850 | CXXFLAGS="-g -O2" | |
4851 | else | |
4852 | CXXFLAGS="-g" | |
4853 | fi | |
4854 | else | |
4855 | if test "$GXX" = yes; then | |
4856 | CXXFLAGS="-O2" | |
4857 | else | |
4858 | CXXFLAGS= | |
4859 | fi | |
4860 | fi | |
4861 | ac_ext=c | |
4862 | ac_cpp='$CPP $CPPFLAGS' | |
4863 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4864 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4865 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bae7f79e | 4866 | |
81ecdfbb | 4867 | depcc="$CXX" am_compiler_list= |
bae7f79e | 4868 | |
81ecdfbb RW |
4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4870 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4871 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | |
4872 | $as_echo_n "(cached) " >&6 | |
4873 | else | |
4874 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4875 | # We make a subdir and do the tests there. Otherwise we can end up | |
4876 | # making bogus files that we don't know about and never remove. For | |
4877 | # instance it was reported that on HP-UX the gcc test will end up | |
4878 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4879 | # in D'. | |
4880 | mkdir conftest.dir | |
4881 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4882 | # using a relative directory. | |
4883 | cp "$am_depcomp" conftest.dir | |
4884 | cd conftest.dir | |
4885 | # We will build objects and dependencies in a subdirectory because | |
4886 | # it helps to detect inapplicable dependency modes. For instance | |
4887 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4888 | # side effect of compilation, but ICC will put the dependencies in | |
4889 | # the current directory while Tru64 will put them in the object | |
4890 | # directory. | |
4891 | mkdir sub | |
bae7f79e | 4892 | |
81ecdfbb RW |
4893 | am_cv_CXX_dependencies_compiler_type=none |
4894 | if test "$am_compiler_list" = ""; then | |
4895 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4896 | fi | |
4897 | am__universal=false | |
4898 | case " $depcc " in #( | |
4899 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4900 | esac | |
bae7f79e | 4901 | |
81ecdfbb RW |
4902 | for depmode in $am_compiler_list; do |
4903 | # Setup a source with many dependencies, because some compilers | |
4904 | # like to wrap large dependency lists on column 80 (with \), and | |
4905 | # we should not choose a depcomp mode which is confused by this. | |
4906 | # | |
4907 | # We need to recreate these files for each test, as the compiler may | |
4908 | # overwrite some of them when testing with obscure command lines. | |
4909 | # This happens at least with the AIX C compiler. | |
4910 | : > sub/conftest.c | |
4911 | for i in 1 2 3 4 5 6; do | |
4912 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4913 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4914 | # Solaris 8's {/usr,}/bin/sh. | |
4915 | touch sub/conftst$i.h | |
4916 | done | |
4917 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
82dcae9d | 4918 | |
81ecdfbb RW |
4919 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4920 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4921 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4922 | # versions had trouble with output in subdirs | |
4923 | am__obj=sub/conftest.${OBJEXT-o} | |
4924 | am__minus_obj="-o $am__obj" | |
4925 | case $depmode in | |
4926 | gcc) | |
4927 | # This depmode causes a compiler race in universal mode. | |
4928 | test "$am__universal" = false || continue | |
4929 | ;; | |
4930 | nosideeffect) | |
4931 | # after this tag, mechanisms are not by side-effect, so they'll | |
4932 | # only be used when explicitly requested | |
4933 | if test "x$enable_dependency_tracking" = xyes; then | |
4934 | continue | |
4935 | else | |
4936 | break | |
4937 | fi | |
4938 | ;; | |
4939 | msvisualcpp | msvcmsys) | |
4940 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4941 | # not run yet. These depmodes are late enough in the game, and | |
4942 | # so weak that their functioning should not be impacted. | |
4943 | am__obj=conftest.${OBJEXT-o} | |
4944 | am__minus_obj= | |
4945 | ;; | |
4946 | none) break ;; | |
4947 | esac | |
4948 | if depmode=$depmode \ | |
4949 | source=sub/conftest.c object=$am__obj \ | |
4950 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4951 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4952 | >/dev/null 2>conftest.err && | |
4953 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4954 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4955 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4956 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4957 | # icc doesn't choke on unknown options, it will just issue warnings | |
4958 | # or remarks (even with -Werror). So we grep stderr for any message | |
4959 | # that says an option was ignored or not supported. | |
4960 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4961 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4962 | # The diagnosis changed in icc 8.0: | |
4963 | # icc: Command line remark: option '-MP' not supported | |
4964 | if (grep 'ignoring option' conftest.err || | |
4965 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4966 | am_cv_CXX_dependencies_compiler_type=$depmode | |
4967 | break | |
4968 | fi | |
4969 | fi | |
4970 | done | |
9201d894 | 4971 | |
81ecdfbb RW |
4972 | cd .. |
4973 | rm -rf conftest.dir | |
4974 | else | |
4975 | am_cv_CXX_dependencies_compiler_type=none | |
4976 | fi | |
9201d894 | 4977 | |
81ecdfbb RW |
4978 | fi |
4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4980 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4981 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
9201d894 | 4982 | |
81ecdfbb RW |
4983 | if |
4984 | test "x$enable_dependency_tracking" != xno \ | |
4985 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4986 | am__fastdepCXX_TRUE= | |
4987 | am__fastdepCXX_FALSE='#' | |
4988 | else | |
4989 | am__fastdepCXX_TRUE='#' | |
4990 | am__fastdepCXX_FALSE= | |
4991 | fi | |
9201d894 | 4992 | |
9201d894 | 4993 | |
81ecdfbb RW |
4994 | for ac_prog in 'bison -y' byacc |
4995 | do | |
4996 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4997 | set dummy $ac_prog; ac_word=$2 | |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4999 | $as_echo_n "checking for $ac_word... " >&6; } | |
5000 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
5001 | $as_echo_n "(cached) " >&6 | |
9201d894 | 5002 | else |
81ecdfbb RW |
5003 | if test -n "$YACC"; then |
5004 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
5005 | else | |
5006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5007 | for as_dir in $PATH | |
5008 | do | |
5009 | IFS=$as_save_IFS | |
5010 | test -z "$as_dir" && as_dir=. | |
5011 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5013 | ac_cv_prog_YACC="$ac_prog" | |
5014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5015 | break 2 | |
5016 | fi | |
5017 | done | |
5018 | done | |
5019 | IFS=$as_save_IFS | |
9201d894 | 5020 | |
9201d894 | 5021 | fi |
9201d894 | 5022 | fi |
81ecdfbb RW |
5023 | YACC=$ac_cv_prog_YACC |
5024 | if test -n "$YACC"; then | |
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
5026 | $as_echo "$YACC" >&6; } | |
5027 | else | |
5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5029 | $as_echo "no" >&6; } | |
9201d894 | 5030 | fi |
9201d894 | 5031 | |
2f35ab9b | 5032 | |
81ecdfbb RW |
5033 | test -n "$YACC" && break |
5034 | done | |
5035 | test -n "$YACC" || YACC="yacc" | |
fd03461a | 5036 | |
81ecdfbb RW |
5037 | if test -n "$ac_tool_prefix"; then |
5038 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5039 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5041 | $as_echo_n "checking for $ac_word... " >&6; } | |
5042 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
5043 | $as_echo_n "(cached) " >&6 | |
5044 | else | |
5045 | if test -n "$RANLIB"; then | |
5046 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5047 | else | |
5048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5049 | for as_dir in $PATH | |
82dcae9d | 5050 | do |
81ecdfbb RW |
5051 | IFS=$as_save_IFS |
5052 | test -z "$as_dir" && as_dir=. | |
5053 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5054 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5055 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5057 | break 2 | |
5058 | fi | |
5059 | done | |
5060 | done | |
5061 | IFS=$as_save_IFS | |
82dcae9d | 5062 | |
81ecdfbb RW |
5063 | fi |
5064 | fi | |
5065 | RANLIB=$ac_cv_prog_RANLIB | |
5066 | if test -n "$RANLIB"; then | |
5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5068 | $as_echo "$RANLIB" >&6; } | |
5069 | else | |
5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5071 | $as_echo "no" >&6; } | |
5072 | fi | |
82dcae9d | 5073 | |
82dcae9d | 5074 | |
81ecdfbb RW |
5075 | fi |
5076 | if test -z "$ac_cv_prog_RANLIB"; then | |
5077 | ac_ct_RANLIB=$RANLIB | |
5078 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5079 | set dummy ranlib; ac_word=$2 | |
5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5081 | $as_echo_n "checking for $ac_word... " >&6; } | |
5082 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
5083 | $as_echo_n "(cached) " >&6 | |
82dcae9d | 5084 | else |
81ecdfbb RW |
5085 | if test -n "$ac_ct_RANLIB"; then |
5086 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5087 | else | |
5088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5089 | for as_dir in $PATH | |
5090 | do | |
5091 | IFS=$as_save_IFS | |
5092 | test -z "$as_dir" && as_dir=. | |
5093 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5094 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5095 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5097 | break 2 | |
5098 | fi | |
5099 | done | |
5100 | done | |
5101 | IFS=$as_save_IFS | |
82dcae9d | 5102 | |
82dcae9d | 5103 | fi |
82dcae9d | 5104 | fi |
81ecdfbb RW |
5105 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5106 | if test -n "$ac_ct_RANLIB"; then | |
5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5108 | $as_echo "$ac_ct_RANLIB" >&6; } | |
82dcae9d | 5109 | else |
81ecdfbb RW |
5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5111 | $as_echo "no" >&6; } | |
5112 | fi | |
5113 | ||
5114 | if test "x$ac_ct_RANLIB" = x; then | |
5115 | RANLIB=":" | |
5116 | else | |
5117 | case $cross_compiling:$ac_tool_warned in | |
5118 | yes:) | |
5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5120 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5121 | ac_tool_warned=yes ;; | |
82dcae9d | 5122 | esac |
81ecdfbb RW |
5123 | RANLIB=$ac_ct_RANLIB |
5124 | fi | |
5125 | else | |
5126 | RANLIB="$ac_cv_prog_RANLIB" | |
5127 | fi | |
82dcae9d | 5128 | |
81ecdfbb RW |
5129 | |
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5131 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5132 | LN_S=$as_ln_s | |
5133 | if test "$LN_S" = "ln -s"; then | |
5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5135 | $as_echo "yes" >&6; } | |
5136 | else | |
5137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5138 | $as_echo "no, using $LN_S" >&6; } | |
82dcae9d | 5139 | fi |
82dcae9d ILT |
5140 | |
5141 | ||
5142 | ||
9a0910c3 ILT |
5143 | ac_ext=c |
5144 | ac_cpp='$CPP $CPPFLAGS' | |
5145 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5146 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5147 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5149 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
9a0910c3 ILT |
5150 | # On Suns, sometimes $CPP names a directory. |
5151 | if test -n "$CPP" && test -d "$CPP"; then | |
5152 | CPP= | |
5153 | fi | |
5154 | if test -z "$CPP"; then | |
81ecdfbb RW |
5155 | if test "${ac_cv_prog_CPP+set}" = set; then : |
5156 | $as_echo_n "(cached) " >&6 | |
9a0910c3 ILT |
5157 | else |
5158 | # Double quotes because CPP needs to be expanded | |
5159 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5160 | do | |
5161 | ac_preproc_ok=false | |
5162 | for ac_c_preproc_warn_flag in '' yes | |
5163 | do | |
5164 | # Use a header file that comes with gcc, so configuring glibc | |
5165 | # with a fresh cross-compiler works. | |
5166 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5167 | # <limits.h> exists even on freestanding compilers. | |
5168 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5169 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5171 | /* end confdefs.h. */ |
5172 | #ifdef __STDC__ | |
5173 | # include <limits.h> | |
5174 | #else | |
5175 | # include <assert.h> | |
5176 | #endif | |
5177 | Syntax error | |
5178 | _ACEOF | |
81ecdfbb | 5179 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5180 | |
81ecdfbb | 5181 | else |
9a0910c3 ILT |
5182 | # Broken: fails on valid input. |
5183 | continue | |
5184 | fi | |
5185 | rm -f conftest.err conftest.$ac_ext | |
5186 | ||
81ecdfbb | 5187 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5188 | # can be detected and how. |
81ecdfbb | 5189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5190 | /* end confdefs.h. */ |
5191 | #include <ac_nonexistent.h> | |
5192 | _ACEOF | |
81ecdfbb | 5193 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5194 | # Broken: success on invalid input. |
5195 | continue | |
5196 | else | |
9a0910c3 ILT |
5197 | # Passes both tests. |
5198 | ac_preproc_ok=: | |
5199 | break | |
5200 | fi | |
5201 | rm -f conftest.err conftest.$ac_ext | |
5202 | ||
5203 | done | |
5204 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5205 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 5206 | if $ac_preproc_ok; then : |
9a0910c3 ILT |
5207 | break |
5208 | fi | |
5209 | ||
5210 | done | |
5211 | ac_cv_prog_CPP=$CPP | |
5212 | ||
5213 | fi | |
5214 | CPP=$ac_cv_prog_CPP | |
5215 | else | |
5216 | ac_cv_prog_CPP=$CPP | |
5217 | fi | |
81ecdfbb RW |
5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
5219 | $as_echo "$CPP" >&6; } | |
9a0910c3 ILT |
5220 | ac_preproc_ok=false |
5221 | for ac_c_preproc_warn_flag in '' yes | |
5222 | do | |
5223 | # Use a header file that comes with gcc, so configuring glibc | |
5224 | # with a fresh cross-compiler works. | |
5225 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5226 | # <limits.h> exists even on freestanding compilers. | |
5227 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5228 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5230 | /* end confdefs.h. */ |
5231 | #ifdef __STDC__ | |
5232 | # include <limits.h> | |
5233 | #else | |
5234 | # include <assert.h> | |
5235 | #endif | |
5236 | Syntax error | |
5237 | _ACEOF | |
81ecdfbb | 5238 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5239 | |
81ecdfbb | 5240 | else |
9a0910c3 ILT |
5241 | # Broken: fails on valid input. |
5242 | continue | |
5243 | fi | |
5244 | rm -f conftest.err conftest.$ac_ext | |
5245 | ||
81ecdfbb | 5246 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5247 | # can be detected and how. |
81ecdfbb | 5248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5249 | /* end confdefs.h. */ |
5250 | #include <ac_nonexistent.h> | |
5251 | _ACEOF | |
81ecdfbb | 5252 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5253 | # Broken: success on invalid input. |
5254 | continue | |
5255 | else | |
9a0910c3 ILT |
5256 | # Passes both tests. |
5257 | ac_preproc_ok=: | |
5258 | break | |
5259 | fi | |
5260 | rm -f conftest.err conftest.$ac_ext | |
5261 | ||
5262 | done | |
5263 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5264 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
5265 | if $ac_preproc_ok; then : |
5266 | ||
9a0910c3 | 5267 | else |
81ecdfbb RW |
5268 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5269 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5270 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
5271 | See \`config.log' for more details." "$LINENO" 5; } | |
9a0910c3 ILT |
5272 | fi |
5273 | ||
5274 | ac_ext=c | |
5275 | ac_cpp='$CPP $CPPFLAGS' | |
5276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5278 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5279 | ||
5280 | ||
81ecdfbb RW |
5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5282 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5283 | if test "${ac_cv_path_GREP+set}" = set; then : | |
5284 | $as_echo_n "(cached) " >&6 | |
5285 | else | |
5286 | if test -z "$GREP"; then | |
5287 | ac_path_GREP_found=false | |
5288 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5290 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5291 | do | |
5292 | IFS=$as_save_IFS | |
5293 | test -z "$as_dir" && as_dir=. | |
5294 | for ac_prog in grep ggrep; do | |
5295 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5296 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5297 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5298 | # Check for GNU ac_path_GREP and select it if it is found. | |
5299 | # Check for GNU $ac_path_GREP | |
5300 | case `"$ac_path_GREP" --version 2>&1` in | |
5301 | *GNU*) | |
5302 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5303 | *) | |
5304 | ac_count=0 | |
5305 | $as_echo_n 0123456789 >"conftest.in" | |
5306 | while : | |
5307 | do | |
5308 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5309 | mv "conftest.tmp" "conftest.in" | |
5310 | cp "conftest.in" "conftest.nl" | |
5311 | $as_echo 'GREP' >> "conftest.nl" | |
5312 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5313 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5314 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5315 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5316 | # Best one so far, save it but keep looking for a better one | |
5317 | ac_cv_path_GREP="$ac_path_GREP" | |
5318 | ac_path_GREP_max=$ac_count | |
5319 | fi | |
5320 | # 10*(2^10) chars as input seems more than enough | |
5321 | test $ac_count -gt 10 && break | |
5322 | done | |
5323 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5324 | esac | |
5325 | ||
5326 | $ac_path_GREP_found && break 3 | |
5327 | done | |
5328 | done | |
5329 | done | |
5330 | IFS=$as_save_IFS | |
5331 | if test -z "$ac_cv_path_GREP"; then | |
5332 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5333 | fi | |
5334 | else | |
5335 | ac_cv_path_GREP=$GREP | |
5336 | fi | |
5337 | ||
5338 | fi | |
5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5340 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5341 | GREP="$ac_cv_path_GREP" | |
5342 | ||
5343 | ||
5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5345 | $as_echo_n "checking for egrep... " >&6; } | |
5346 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
5347 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5348 | else |
81ecdfbb RW |
5349 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5350 | then ac_cv_path_EGREP="$GREP -E" | |
5351 | else | |
5352 | if test -z "$EGREP"; then | |
5353 | ac_path_EGREP_found=false | |
5354 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5356 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5357 | do | |
5358 | IFS=$as_save_IFS | |
5359 | test -z "$as_dir" && as_dir=. | |
5360 | for ac_prog in egrep; do | |
5361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5362 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5363 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5364 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5365 | # Check for GNU $ac_path_EGREP | |
5366 | case `"$ac_path_EGREP" --version 2>&1` in | |
5367 | *GNU*) | |
5368 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5369 | *) | |
5370 | ac_count=0 | |
5371 | $as_echo_n 0123456789 >"conftest.in" | |
5372 | while : | |
5373 | do | |
5374 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5375 | mv "conftest.tmp" "conftest.in" | |
5376 | cp "conftest.in" "conftest.nl" | |
5377 | $as_echo 'EGREP' >> "conftest.nl" | |
5378 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5379 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5380 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5381 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5382 | # Best one so far, save it but keep looking for a better one | |
5383 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5384 | ac_path_EGREP_max=$ac_count | |
9a0910c3 | 5385 | fi |
81ecdfbb RW |
5386 | # 10*(2^10) chars as input seems more than enough |
5387 | test $ac_count -gt 10 && break | |
5388 | done | |
5389 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5390 | esac | |
5391 | ||
5392 | $ac_path_EGREP_found && break 3 | |
5393 | done | |
5394 | done | |
5395 | done | |
5396 | IFS=$as_save_IFS | |
5397 | if test -z "$ac_cv_path_EGREP"; then | |
5398 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5399 | fi | |
5400 | else | |
5401 | ac_cv_path_EGREP=$EGREP | |
5402 | fi | |
5403 | ||
5404 | fi | |
9a0910c3 | 5405 | fi |
81ecdfbb RW |
5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5407 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5408 | EGREP="$ac_cv_path_EGREP" | |
9a0910c3 ILT |
5409 | |
5410 | ||
81ecdfbb RW |
5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5412 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5413 | if test "${ac_cv_header_stdc+set}" = set; then : | |
5414 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5415 | else |
81ecdfbb | 5416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5417 | /* end confdefs.h. */ |
5418 | #include <stdlib.h> | |
5419 | #include <stdarg.h> | |
5420 | #include <string.h> | |
5421 | #include <float.h> | |
5422 | ||
5423 | int | |
5424 | main () | |
5425 | { | |
5426 | ||
5427 | ; | |
5428 | return 0; | |
5429 | } | |
5430 | _ACEOF | |
81ecdfbb | 5431 | if ac_fn_c_try_compile "$LINENO"; then : |
9a0910c3 ILT |
5432 | ac_cv_header_stdc=yes |
5433 | else | |
81ecdfbb | 5434 | ac_cv_header_stdc=no |
9a0910c3 | 5435 | fi |
81ecdfbb | 5436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9a0910c3 ILT |
5437 | |
5438 | if test $ac_cv_header_stdc = yes; then | |
5439 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 5440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5441 | /* end confdefs.h. */ |
5442 | #include <string.h> | |
5443 | ||
5444 | _ACEOF | |
5445 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5446 | $EGREP "memchr" >/dev/null 2>&1; then : |
5447 | ||
9a0910c3 ILT |
5448 | else |
5449 | ac_cv_header_stdc=no | |
5450 | fi | |
5451 | rm -f conftest* | |
5452 | ||
5453 | fi | |
5454 | ||
5455 | if test $ac_cv_header_stdc = yes; then | |
5456 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 5457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5458 | /* end confdefs.h. */ |
5459 | #include <stdlib.h> | |
5460 | ||
5461 | _ACEOF | |
5462 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5463 | $EGREP "free" >/dev/null 2>&1; then : |
5464 | ||
9a0910c3 ILT |
5465 | else |
5466 | ac_cv_header_stdc=no | |
5467 | fi | |
5468 | rm -f conftest* | |
5469 | ||
5470 | fi | |
5471 | ||
5472 | if test $ac_cv_header_stdc = yes; then | |
5473 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 5474 | if test "$cross_compiling" = yes; then : |
9a0910c3 ILT |
5475 | : |
5476 | else | |
81ecdfbb | 5477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5478 | /* end confdefs.h. */ |
5479 | #include <ctype.h> | |
81ecdfbb | 5480 | #include <stdlib.h> |
9a0910c3 ILT |
5481 | #if ((' ' & 0x0FF) == 0x020) |
5482 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5483 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5484 | #else | |
5485 | # define ISLOWER(c) \ | |
5486 | (('a' <= (c) && (c) <= 'i') \ | |
5487 | || ('j' <= (c) && (c) <= 'r') \ | |
5488 | || ('s' <= (c) && (c) <= 'z')) | |
5489 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5490 | #endif | |
5491 | ||
5492 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5493 | int | |
5494 | main () | |
5495 | { | |
5496 | int i; | |
5497 | for (i = 0; i < 256; i++) | |
5498 | if (XOR (islower (i), ISLOWER (i)) | |
5499 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
5500 | return 2; |
5501 | return 0; | |
9a0910c3 ILT |
5502 | } |
5503 | _ACEOF | |
81ecdfbb | 5504 | if ac_fn_c_try_run "$LINENO"; then : |
9a0910c3 | 5505 | |
81ecdfbb RW |
5506 | else |
5507 | ac_cv_header_stdc=no | |
9a0910c3 | 5508 | fi |
81ecdfbb RW |
5509 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5510 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9a0910c3 | 5511 | fi |
81ecdfbb | 5512 | |
9a0910c3 ILT |
5513 | fi |
5514 | fi | |
81ecdfbb RW |
5515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5516 | $as_echo "$ac_cv_header_stdc" >&6; } | |
9a0910c3 ILT |
5517 | if test $ac_cv_header_stdc = yes; then |
5518 | ||
81ecdfbb | 5519 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9a0910c3 ILT |
5520 | |
5521 | fi | |
5522 | ||
5523 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
81ecdfbb RW |
5524 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5525 | inttypes.h stdint.h unistd.h | |
5526 | do : | |
5527 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5528 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5529 | " | |
5530 | eval as_val=\$$as_ac_Header | |
5531 | if test "x$as_val" = x""yes; then : | |
5532 | cat >>confdefs.h <<_ACEOF | |
5533 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5534 | _ACEOF | |
9a0910c3 | 5535 | |
81ecdfbb | 5536 | fi |
9a0910c3 | 5537 | |
81ecdfbb | 5538 | done |
9a0910c3 ILT |
5539 | |
5540 | ||
5541 | ||
81ecdfbb RW |
5542 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
5543 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
5544 | MINIX=yes | |
5545 | else | |
5546 | MINIX= | |
5547 | fi | |
9a0910c3 ILT |
5548 | |
5549 | ||
81ecdfbb | 5550 | if test "$MINIX" = yes; then |
9a0910c3 | 5551 | |
81ecdfbb | 5552 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
9a0910c3 | 5553 | |
9a0910c3 | 5554 | |
81ecdfbb | 5555 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
9a0910c3 | 5556 | |
9a0910c3 | 5557 | |
81ecdfbb | 5558 | $as_echo "#define _MINIX 1" >>confdefs.h |
9a0910c3 | 5559 | |
81ecdfbb | 5560 | fi |
9a0910c3 ILT |
5561 | |
5562 | ||
81ecdfbb RW |
5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
5564 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5565 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
5566 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5567 | else |
81ecdfbb | 5568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5569 | /* end confdefs.h. */ |
5570 | ||
81ecdfbb RW |
5571 | # define __EXTENSIONS__ 1 |
5572 | $ac_includes_default | |
9a0910c3 ILT |
5573 | int |
5574 | main () | |
5575 | { | |
81ecdfbb | 5576 | |
9a0910c3 ILT |
5577 | ; |
5578 | return 0; | |
5579 | } | |
5580 | _ACEOF | |
81ecdfbb RW |
5581 | if ac_fn_c_try_compile "$LINENO"; then : |
5582 | ac_cv_safe_to_define___extensions__=yes | |
9a0910c3 | 5583 | else |
81ecdfbb | 5584 | ac_cv_safe_to_define___extensions__=no |
9a0910c3 | 5585 | fi |
81ecdfbb RW |
5586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5587 | fi | |
5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5589 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5590 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5591 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
9a0910c3 | 5592 | |
81ecdfbb RW |
5593 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
5594 | ||
5595 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
9a0910c3 | 5596 | |
81ecdfbb RW |
5597 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
5598 | ||
5599 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5600 | ||
5601 | ||
5602 | ||
5603 | ||
5604 | # If we haven't got the data from the intl directory, | |
5605 | # assume NLS is disabled. | |
5606 | USE_NLS=no | |
5607 | LIBINTL= | |
5608 | LIBINTL_DEP= | |
5609 | INCINTL= | |
5610 | XGETTEXT= | |
5611 | GMSGFMT= | |
5612 | POSUB= | |
5613 | ||
5614 | if test -f ../intl/config.intl; then | |
5615 | . ../intl/config.intl | |
9a0910c3 | 5616 | fi |
81ecdfbb RW |
5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
5618 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5619 | if test x"$USE_NLS" != xyes; then | |
5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5621 | $as_echo "no" >&6; } | |
5622 | else | |
5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5624 | $as_echo "yes" >&6; } | |
5625 | ||
5626 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
5627 | ||
5628 | ||
5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 | |
5630 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
5631 | # Look for .po and .gmo files in the source directory. | |
5632 | CATALOGS= | |
5633 | XLINGUAS= | |
5634 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5635 | # If there aren't any .gmo files the shell will give us the | |
5636 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5637 | # weeded out. | |
5638 | case "$cat" in *\**) | |
5639 | continue;; | |
5640 | esac | |
5641 | # The quadruple backslash is collapsed to a double backslash | |
5642 | # by the backticks, then collapsed again by the double quotes, | |
5643 | # leaving us with one backslash in the sed expression (right | |
5644 | # before the dot that mustn't act as a wildcard). | |
5645 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
5646 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
5647 | # The user is allowed to set LINGUAS to a list of languages to | |
5648 | # install catalogs for. If it's empty that means "all of them." | |
5649 | if test "x$LINGUAS" = x; then | |
5650 | CATALOGS="$CATALOGS $cat" | |
5651 | XLINGUAS="$XLINGUAS $lang" | |
5652 | else | |
5653 | case "$LINGUAS" in *$lang*) | |
5654 | CATALOGS="$CATALOGS $cat" | |
5655 | XLINGUAS="$XLINGUAS $lang" | |
5656 | ;; | |
5657 | esac | |
5658 | fi | |
9a0910c3 | 5659 | done |
81ecdfbb RW |
5660 | LINGUAS="$XLINGUAS" |
5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
5662 | $as_echo "$LINGUAS" >&6; } | |
5663 | ||
5664 | ||
5665 | DATADIRNAME=share | |
5666 | ||
5667 | INSTOBJEXT=.mo | |
5668 | ||
5669 | GENCAT=gencat | |
5670 | ||
5671 | CATOBJEXT=.gmo | |
9a0910c3 | 5672 | |
9a0910c3 | 5673 | fi |
9a0910c3 | 5674 | |
81ecdfbb RW |
5675 | MKINSTALLDIRS= |
5676 | if test -n "$ac_aux_dir"; then | |
5677 | case "$ac_aux_dir" in | |
5678 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
5679 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
5680 | esac | |
5681 | fi | |
5682 | if test -z "$MKINSTALLDIRS"; then | |
5683 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5684 | fi | |
5685 | ||
5686 | ||
5687 | ||
5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
5689 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5690 | # Check whether --enable-nls was given. | |
5691 | if test "${enable_nls+set}" = set; then : | |
5692 | enableval=$enable_nls; USE_NLS=$enableval | |
5693 | else | |
5694 | USE_NLS=yes | |
9a0910c3 | 5695 | fi |
9a0910c3 | 5696 | |
81ecdfbb RW |
5697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
5698 | $as_echo "$USE_NLS" >&6; } | |
5699 | ||
5700 | ||
5701 | ||
5702 | ||
5703 | ||
5704 | ||
5705 | # Prepare PATH_SEPARATOR. | |
5706 | # The user is always right. | |
5707 | if test "${PATH_SEPARATOR+set}" != set; then | |
5708 | echo "#! /bin/sh" >conf$$.sh | |
5709 | echo "exit 0" >>conf$$.sh | |
5710 | chmod +x conf$$.sh | |
5711 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5712 | PATH_SEPARATOR=';' | |
9a0910c3 | 5713 | else |
81ecdfbb | 5714 | PATH_SEPARATOR=: |
9a0910c3 | 5715 | fi |
81ecdfbb | 5716 | rm -f conf$$.sh |
9a0910c3 | 5717 | fi |
81ecdfbb RW |
5718 | |
5719 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5720 | # as systems may use methods other than mode bits to determine executability. | |
5721 | cat >conf$$.file <<_ASEOF | |
5722 | #! /bin/sh | |
5723 | exit 0 | |
5724 | _ASEOF | |
5725 | chmod +x conf$$.file | |
5726 | if test -x conf$$.file >/dev/null 2>&1; then | |
5727 | ac_executable_p="test -x" | |
9a0910c3 | 5728 | else |
81ecdfbb RW |
5729 | ac_executable_p="test -f" |
5730 | fi | |
5731 | rm -f conf$$.file | |
9a0910c3 | 5732 | |
81ecdfbb RW |
5733 | # Extract the first word of "msgfmt", so it can be a program name with args. |
5734 | set dummy msgfmt; ac_word=$2 | |
5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5736 | $as_echo_n "checking for $ac_word... " >&6; } | |
5737 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
5738 | $as_echo_n "(cached) " >&6 | |
5739 | else | |
5740 | case "$MSGFMT" in | |
5741 | [\\/]* | ?:[\\/]*) | |
5742 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5743 | ;; | |
5744 | *) | |
5745 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5746 | for ac_dir in $PATH; do | |
5747 | IFS="$ac_save_IFS" | |
5748 | test -z "$ac_dir" && ac_dir=. | |
5749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5750 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5751 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
5752 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5753 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
5754 | break 2 | |
5755 | fi | |
5756 | fi | |
5757 | done | |
5758 | done | |
5759 | IFS="$ac_save_IFS" | |
5760 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
5761 | ;; | |
5762 | esac | |
9a0910c3 | 5763 | fi |
81ecdfbb RW |
5764 | MSGFMT="$ac_cv_path_MSGFMT" |
5765 | if test "$MSGFMT" != ":"; then | |
5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
5767 | $as_echo "$MSGFMT" >&6; } | |
5768 | else | |
5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5770 | $as_echo "no" >&6; } | |
5771 | fi | |
5772 | ||
5773 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5774 | set dummy gmsgfmt; ac_word=$2 | |
5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5776 | $as_echo_n "checking for $ac_word... " >&6; } | |
5777 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
5778 | $as_echo_n "(cached) " >&6 | |
5779 | else | |
5780 | case $GMSGFMT in | |
5781 | [\\/]* | ?:[\\/]*) | |
5782 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5783 | ;; | |
5784 | *) | |
5785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5786 | for as_dir in $PATH | |
5787 | do | |
5788 | IFS=$as_save_IFS | |
5789 | test -z "$as_dir" && as_dir=. | |
5790 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5792 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5794 | break 2 | |
5795 | fi | |
5796 | done | |
5797 | done | |
5798 | IFS=$as_save_IFS | |
9a0910c3 | 5799 | |
81ecdfbb RW |
5800 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5801 | ;; | |
9a0910c3 | 5802 | esac |
81ecdfbb RW |
5803 | fi |
5804 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5805 | if test -n "$GMSGFMT"; then | |
5806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
5807 | $as_echo "$GMSGFMT" >&6; } | |
9a0910c3 | 5808 | else |
81ecdfbb RW |
5809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5810 | $as_echo "no" >&6; } | |
9a0910c3 | 5811 | fi |
9a0910c3 | 5812 | |
9a0910c3 | 5813 | |
9a0910c3 | 5814 | |
9a0910c3 | 5815 | |
81ecdfbb RW |
5816 | # Prepare PATH_SEPARATOR. |
5817 | # The user is always right. | |
5818 | if test "${PATH_SEPARATOR+set}" != set; then | |
5819 | echo "#! /bin/sh" >conf$$.sh | |
5820 | echo "exit 0" >>conf$$.sh | |
5821 | chmod +x conf$$.sh | |
5822 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5823 | PATH_SEPARATOR=';' | |
5824 | else | |
5825 | PATH_SEPARATOR=: | |
5826 | fi | |
5827 | rm -f conf$$.sh | |
9a0910c3 ILT |
5828 | fi |
5829 | ||
81ecdfbb RW |
5830 | # Find out how to test for executable files. Don't use a zero-byte file, |
5831 | # as systems may use methods other than mode bits to determine executability. | |
5832 | cat >conf$$.file <<_ASEOF | |
5833 | #! /bin/sh | |
5834 | exit 0 | |
5835 | _ASEOF | |
5836 | chmod +x conf$$.file | |
5837 | if test -x conf$$.file >/dev/null 2>&1; then | |
5838 | ac_executable_p="test -x" | |
7fcd0256 | 5839 | else |
81ecdfbb | 5840 | ac_executable_p="test -f" |
7fcd0256 | 5841 | fi |
81ecdfbb | 5842 | rm -f conf$$.file |
7fcd0256 | 5843 | |
81ecdfbb RW |
5844 | # Extract the first word of "xgettext", so it can be a program name with args. |
5845 | set dummy xgettext; ac_word=$2 | |
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5847 | $as_echo_n "checking for $ac_word... " >&6; } | |
5848 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
5849 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5850 | else |
81ecdfbb RW |
5851 | case "$XGETTEXT" in |
5852 | [\\/]* | ?:[\\/]*) | |
5853 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5854 | ;; | |
5855 | *) | |
5856 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5857 | for ac_dir in $PATH; do | |
5858 | IFS="$ac_save_IFS" | |
5859 | test -z "$ac_dir" && ac_dir=. | |
5860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5861 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5862 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5863 | (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 | |
5864 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
5865 | break 2 | |
5866 | fi | |
5867 | fi | |
5868 | done | |
5869 | done | |
5870 | IFS="$ac_save_IFS" | |
5871 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5872 | ;; | |
5873 | esac | |
54dc6425 | 5874 | fi |
81ecdfbb RW |
5875 | XGETTEXT="$ac_cv_path_XGETTEXT" |
5876 | if test "$XGETTEXT" != ":"; then | |
5877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
5878 | $as_echo "$XGETTEXT" >&6; } | |
5879 | else | |
5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5881 | $as_echo "no" >&6; } | |
0639a6f6 | 5882 | fi |
0639a6f6 | 5883 | |
81ecdfbb | 5884 | rm -f messages.po |
0639a6f6 ILT |
5885 | |
5886 | ||
81ecdfbb RW |
5887 | # Prepare PATH_SEPARATOR. |
5888 | # The user is always right. | |
5889 | if test "${PATH_SEPARATOR+set}" != set; then | |
5890 | echo "#! /bin/sh" >conf$$.sh | |
5891 | echo "exit 0" >>conf$$.sh | |
5892 | chmod +x conf$$.sh | |
5893 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5894 | PATH_SEPARATOR=';' | |
5895 | else | |
5896 | PATH_SEPARATOR=: | |
5897 | fi | |
5898 | rm -f conf$$.sh | |
0639a6f6 | 5899 | fi |
0639a6f6 | 5900 | |
81ecdfbb RW |
5901 | # Find out how to test for executable files. Don't use a zero-byte file, |
5902 | # as systems may use methods other than mode bits to determine executability. | |
5903 | cat >conf$$.file <<_ASEOF | |
5904 | #! /bin/sh | |
5905 | exit 0 | |
5906 | _ASEOF | |
5907 | chmod +x conf$$.file | |
5908 | if test -x conf$$.file >/dev/null 2>&1; then | |
5909 | ac_executable_p="test -x" | |
54dc6425 | 5910 | else |
81ecdfbb | 5911 | ac_executable_p="test -f" |
54dc6425 | 5912 | fi |
81ecdfbb | 5913 | rm -f conf$$.file |
54dc6425 | 5914 | |
81ecdfbb RW |
5915 | # Extract the first word of "msgmerge", so it can be a program name with args. |
5916 | set dummy msgmerge; ac_word=$2 | |
5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5918 | $as_echo_n "checking for $ac_word... " >&6; } | |
5919 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
5920 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5921 | else |
81ecdfbb RW |
5922 | case "$MSGMERGE" in |
5923 | [\\/]* | ?:[\\/]*) | |
5924 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
5925 | ;; | |
5926 | *) | |
5927 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5928 | for ac_dir in $PATH; do | |
5929 | IFS="$ac_save_IFS" | |
5930 | test -z "$ac_dir" && ac_dir=. | |
5931 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5932 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5933 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
5934 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
5935 | break 2 | |
5936 | fi | |
5937 | fi | |
5938 | done | |
5939 | done | |
5940 | IFS="$ac_save_IFS" | |
5941 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
5942 | ;; | |
5943 | esac | |
54dc6425 | 5944 | fi |
81ecdfbb RW |
5945 | MSGMERGE="$ac_cv_path_MSGMERGE" |
5946 | if test "$MSGMERGE" != ":"; then | |
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
5948 | $as_echo "$MSGMERGE" >&6; } | |
0639a6f6 | 5949 | else |
81ecdfbb RW |
5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5951 | $as_echo "no" >&6; } | |
5952 | fi | |
0639a6f6 | 5953 | |
54dc6425 | 5954 | |
81ecdfbb RW |
5955 | if test "$GMSGFMT" != ":"; then |
5956 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
5957 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5958 | : ; | |
5959 | else | |
5960 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
5962 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
5963 | GMSGFMT=":" | |
5964 | fi | |
5965 | fi | |
54dc6425 | 5966 | |
81ecdfbb RW |
5967 | if test "$XGETTEXT" != ":"; then |
5968 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5969 | (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 | |
5970 | : ; | |
5971 | else | |
5972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
5973 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
5974 | XGETTEXT=":" | |
5975 | fi | |
5976 | rm -f messages.po | |
5977 | fi | |
54dc6425 | 5978 | |
81ecdfbb | 5979 | ac_config_commands="$ac_config_commands default-1" |
54dc6425 | 5980 | |
54dc6425 ILT |
5981 | |
5982 | ||
81ecdfbb RW |
5983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
5984 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
5985 | if test "${ac_cv_c_bigendian+set}" = set; then : | |
5986 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5987 | else |
81ecdfbb RW |
5988 | ac_cv_c_bigendian=unknown |
5989 | # See if we're dealing with a universal compiler. | |
5990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
54dc6425 | 5991 | /* end confdefs.h. */ |
81ecdfbb RW |
5992 | #ifndef __APPLE_CC__ |
5993 | not a universal capable compiler | |
5994 | #endif | |
5995 | typedef int dummy; | |
5996 | ||
5997 | _ACEOF | |
5998 | if ac_fn_c_try_compile "$LINENO"; then : | |
5999 | ||
6000 | # Check for potential -arch flags. It is not universal unless | |
6001 | # there are at least two -arch flags with different values. | |
6002 | ac_arch= | |
6003 | ac_prev= | |
6004 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
6005 | if test -n "$ac_prev"; then | |
6006 | case $ac_word in | |
6007 | i?86 | x86_64 | ppc | ppc64) | |
6008 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
6009 | ac_arch=$ac_word | |
6010 | else | |
6011 | ac_cv_c_bigendian=universal | |
6012 | break | |
6013 | fi | |
6014 | ;; | |
6015 | esac | |
6016 | ac_prev= | |
6017 | elif test "x$ac_word" = "x-arch"; then | |
6018 | ac_prev=arch | |
6019 | fi | |
6020 | done | |
6021 | fi | |
6022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6023 | if test $ac_cv_c_bigendian = unknown; then | |
6024 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6026 | /* end confdefs.h. */ | |
6027 | #include <sys/types.h> | |
6028 | #include <sys/param.h> | |
6029 | ||
0639a6f6 ILT |
6030 | int |
6031 | main () | |
6032 | { | |
81ecdfbb RW |
6033 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
6034 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6035 | && LITTLE_ENDIAN) | |
6036 | bogus endian macros | |
6037 | #endif | |
54dc6425 | 6038 | |
81ecdfbb RW |
6039 | ; |
6040 | return 0; | |
6041 | } | |
15d5fa16 | 6042 | _ACEOF |
81ecdfbb RW |
6043 | if ac_fn_c_try_compile "$LINENO"; then : |
6044 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
6045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 6046 | /* end confdefs.h. */ |
81ecdfbb RW |
6047 | #include <sys/types.h> |
6048 | #include <sys/param.h> | |
6049 | ||
0639a6f6 ILT |
6050 | int |
6051 | main () | |
6052 | { | |
81ecdfbb RW |
6053 | #if BYTE_ORDER != BIG_ENDIAN |
6054 | not big endian | |
6055 | #endif | |
0639a6f6 ILT |
6056 | |
6057 | ; | |
6058 | return 0; | |
6059 | } | |
15d5fa16 | 6060 | _ACEOF |
81ecdfbb RW |
6061 | if ac_fn_c_try_compile "$LINENO"; then : |
6062 | ac_cv_c_bigendian=yes | |
15d5fa16 | 6063 | else |
81ecdfbb | 6064 | ac_cv_c_bigendian=no |
15d5fa16 | 6065 | fi |
81ecdfbb | 6066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0639a6f6 | 6067 | fi |
81ecdfbb RW |
6068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6069 | fi | |
6070 | if test $ac_cv_c_bigendian = unknown; then | |
6071 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6073 | /* end confdefs.h. */ | |
6074 | #include <limits.h> | |
0639a6f6 | 6075 | |
81ecdfbb RW |
6076 | int |
6077 | main () | |
6078 | { | |
6079 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
6080 | bogus endian macros | |
6081 | #endif | |
0639a6f6 | 6082 | |
81ecdfbb RW |
6083 | ; |
6084 | return 0; | |
6085 | } | |
15d5fa16 | 6086 | _ACEOF |
81ecdfbb RW |
6087 | if ac_fn_c_try_compile "$LINENO"; then : |
6088 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 6090 | /* end confdefs.h. */ |
81ecdfbb RW |
6091 | #include <limits.h> |
6092 | ||
0639a6f6 ILT |
6093 | int |
6094 | main () | |
6095 | { | |
81ecdfbb RW |
6096 | #ifndef _BIG_ENDIAN |
6097 | not big endian | |
6098 | #endif | |
0639a6f6 ILT |
6099 | |
6100 | ; | |
6101 | return 0; | |
6102 | } | |
15d5fa16 | 6103 | _ACEOF |
81ecdfbb RW |
6104 | if ac_fn_c_try_compile "$LINENO"; then : |
6105 | ac_cv_c_bigendian=yes | |
15d5fa16 | 6106 | else |
81ecdfbb | 6107 | ac_cv_c_bigendian=no |
15d5fa16 | 6108 | fi |
81ecdfbb | 6109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15d5fa16 | 6110 | fi |
81ecdfbb RW |
6111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6112 | fi | |
6113 | if test $ac_cv_c_bigendian = unknown; then | |
6114 | # Compile a test program. | |
6115 | if test "$cross_compiling" = yes; then : | |
6116 | # Try to guess by grepping values from an object file. | |
6117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6118 | /* end confdefs.h. */ | |
6119 | short int ascii_mm[] = | |
6120 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6121 | short int ascii_ii[] = | |
6122 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6123 | int use_ascii (int i) { | |
6124 | return ascii_mm[i] + ascii_ii[i]; | |
6125 | } | |
6126 | short int ebcdic_ii[] = | |
6127 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6128 | short int ebcdic_mm[] = | |
6129 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6130 | int use_ebcdic (int i) { | |
6131 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6132 | } | |
6133 | extern int foo; | |
15d5fa16 | 6134 | |
81ecdfbb RW |
6135 | int |
6136 | main () | |
6137 | { | |
6138 | return use_ascii (foo) == use_ebcdic (foo); | |
6139 | ; | |
6140 | return 0; | |
6141 | } | |
0639a6f6 | 6142 | _ACEOF |
81ecdfbb RW |
6143 | if ac_fn_c_try_compile "$LINENO"; then : |
6144 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6145 | ac_cv_c_bigendian=yes | |
6146 | fi | |
6147 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6148 | if test "$ac_cv_c_bigendian" = unknown; then | |
6149 | ac_cv_c_bigendian=no | |
6150 | else | |
6151 | # finding both strings is unlikely to happen, but who knows? | |
6152 | ac_cv_c_bigendian=unknown | |
6153 | fi | |
6154 | fi | |
54dc6425 | 6155 | fi |
81ecdfbb | 6156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
54dc6425 | 6157 | else |
81ecdfbb | 6158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
54dc6425 ILT |
6159 | /* end confdefs.h. */ |
6160 | $ac_includes_default | |
0639a6f6 ILT |
6161 | int |
6162 | main () | |
6163 | { | |
81ecdfbb RW |
6164 | |
6165 | /* Are we little or big endian? From Harbison&Steele. */ | |
6166 | union | |
6167 | { | |
6168 | long int l; | |
6169 | char c[sizeof (long int)]; | |
6170 | } u; | |
6171 | u.l = 1; | |
6172 | return u.c[sizeof (long int) - 1] == 1; | |
0639a6f6 ILT |
6173 | |
6174 | ; | |
6175 | return 0; | |
6176 | } | |
54dc6425 | 6177 | _ACEOF |
81ecdfbb RW |
6178 | if ac_fn_c_try_run "$LINENO"; then : |
6179 | ac_cv_c_bigendian=no | |
54dc6425 | 6180 | else |
81ecdfbb | 6181 | ac_cv_c_bigendian=yes |
54dc6425 | 6182 | fi |
81ecdfbb RW |
6183 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6184 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
0639a6f6 | 6185 | fi |
54dc6425 | 6186 | |
81ecdfbb RW |
6187 | fi |
6188 | fi | |
6189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6190 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6191 | case $ac_cv_c_bigendian in #( | |
6192 | yes) | |
6193 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6194 | ;; #( | |
6195 | no) | |
6196 | ;; #( | |
6197 | universal) | |
6198 | ||
6199 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
6200 | ||
6201 | ;; #( | |
6202 | *) | |
6203 | as_fn_error "unknown endianness | |
6204 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
6205 | esac | |
0639a6f6 ILT |
6206 | |
6207 | ||
0639a6f6 ILT |
6208 | |
6209 | ||
81ecdfbb RW |
6210 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then |
6211 | NATIVE_LINKER_TRUE= | |
6212 | NATIVE_LINKER_FALSE='#' | |
6213 | else | |
6214 | NATIVE_LINKER_TRUE='#' | |
6215 | NATIVE_LINKER_FALSE= | |
0639a6f6 ILT |
6216 | fi |
6217 | ||
81ecdfbb RW |
6218 | if test "$GCC" = yes; then |
6219 | GCC_TRUE= | |
6220 | GCC_FALSE='#' | |
6221 | else | |
6222 | GCC_TRUE='#' | |
6223 | GCC_FALSE= | |
6224 | fi | |
0639a6f6 ILT |
6225 | |
6226 | ||
eb373049 ILT |
6227 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then |
6228 | NATIVE_OR_CROSS_LINKER_TRUE= | |
6229 | NATIVE_OR_CROSS_LINKER_FALSE='#' | |
6230 | else | |
6231 | NATIVE_OR_CROSS_LINKER_TRUE='#' | |
6232 | NATIVE_OR_CROSS_LINKER_FALSE= | |
6233 | fi | |
6234 | ||
6235 | ||
328c7c2f ILT |
6236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5 |
6237 | $as_echo_n "checking whether static linking works... " >&6; } | |
6238 | if test "${gold_cv_lib_static+set}" = set; then : | |
6239 | $as_echo_n "(cached) " >&6 | |
6240 | else | |
6241 | LDFLAGS_hold=$LDFLAGS | |
6242 | LDFLAGS="$LDFLAGS -static" | |
6243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6244 | /* end confdefs.h. */ | |
6245 | ||
6246 | void f() { } | |
6247 | int | |
6248 | main () | |
6249 | { | |
6250 | ||
6251 | ; | |
6252 | return 0; | |
6253 | } | |
6254 | _ACEOF | |
6255 | if ac_fn_c_try_link "$LINENO"; then : | |
6256 | gold_cv_lib_static=yes | |
6257 | else | |
6258 | gold_cv_lib_static=no | |
6259 | fi | |
6260 | rm -f core conftest.err conftest.$ac_objext \ | |
6261 | conftest$ac_exeext conftest.$ac_ext | |
dd7af074 | 6262 | LDFLAGS=$LDFLAGS_hold |
328c7c2f ILT |
6263 | fi |
6264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5 | |
6265 | $as_echo "$gold_cv_lib_static" >&6; } | |
6266 | if test "$gold_cv_lib_static" = "yes"; then | |
6267 | HAVE_STATIC_TRUE= | |
6268 | HAVE_STATIC_FALSE='#' | |
6269 | else | |
6270 | HAVE_STATIC_TRUE='#' | |
6271 | HAVE_STATIC_FALSE= | |
6272 | fi | |
6273 | ||
6274 | ||
81ecdfbb RW |
6275 | if |
6276 | case $target_cpu in | |
6277 | i?86) true;; | |
6278 | x86_64) false;; | |
6279 | sparc64) false;; | |
6280 | *) true;; | |
6281 | esac; then | |
6282 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE= | |
6283 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#' | |
6284 | else | |
6285 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#' | |
6286 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE= | |
6287 | fi | |
0639a6f6 ILT |
6288 | |
6289 | ||
084e2665 ILT |
6290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5 |
6291 | $as_echo_n "checking for gcc >= 4.1... " >&6; } | |
6292 | if test "${gold_cv_prog_gcc41+set}" = set; then : | |
6293 | $as_echo_n "(cached) " >&6 | |
6294 | else | |
6295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6296 | /* end confdefs.h. */ | |
6297 | ||
6298 | #if !defined __GNUC__ | |
6299 | error | |
6300 | #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) | |
6301 | error | |
6302 | #endif | |
6303 | ||
6304 | _ACEOF | |
6305 | if ac_fn_c_try_compile "$LINENO"; then : | |
6306 | gold_cv_prog_gcc41=yes | |
6307 | else | |
6308 | gold_cv_prog_gcc41=no | |
6309 | fi | |
6310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6311 | fi | |
6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5 | |
6313 | $as_echo "$gold_cv_prog_gcc41" >&6; } | |
6314 | ||
24482ca0 L |
6315 | save_CFLAGS="$CFLAGS" |
6316 | CFLAGS="$CFLAGS -mcmodel=medium" | |
6317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6318 | /* end confdefs.h. */ | |
6319 | int i; | |
6320 | _ACEOF | |
6321 | if ac_fn_c_try_compile "$LINENO"; then : | |
6322 | have_mcmodel_medium=yes | |
6323 | else | |
6324 | have_mcmodel_medium=no | |
6325 | fi | |
6326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6327 | CFLAGS="$save_CFLAGS" | |
6328 | if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then | |
81ecdfbb RW |
6329 | MCMODEL_MEDIUM_TRUE= |
6330 | MCMODEL_MEDIUM_FALSE='#' | |
54dc6425 | 6331 | else |
81ecdfbb RW |
6332 | MCMODEL_MEDIUM_TRUE='#' |
6333 | MCMODEL_MEDIUM_FALSE= | |
54dc6425 | 6334 | fi |
54dc6425 | 6335 | |
54dc6425 | 6336 | |
81ecdfbb RW |
6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5 |
6338 | $as_echo_n "checking for thread support... " >&6; } | |
6339 | if test "${gold_cv_c_thread+set}" = set; then : | |
6340 | $as_echo_n "(cached) " >&6 | |
6341 | else | |
6342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e44fcf3b | 6343 | /* end confdefs.h. */ |
81ecdfbb | 6344 | __thread int i = 1; |
e44fcf3b | 6345 | _ACEOF |
81ecdfbb RW |
6346 | if ac_fn_c_try_compile "$LINENO"; then : |
6347 | gold_cv_c_thread=yes | |
0639a6f6 | 6348 | else |
81ecdfbb | 6349 | gold_cv_c_thread=no |
0639a6f6 | 6350 | fi |
81ecdfbb | 6351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e44fcf3b | 6352 | fi |
81ecdfbb RW |
6353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5 |
6354 | $as_echo "$gold_cv_c_thread" >&6; } | |
e44fcf3b | 6355 | |
81ecdfbb RW |
6356 | if test "$gold_cv_c_thread" = "yes"; then |
6357 | TLS_TRUE= | |
6358 | TLS_FALSE='#' | |
6359 | else | |
6360 | TLS_TRUE='#' | |
6361 | TLS_FALSE= | |
0639a6f6 | 6362 | fi |
e44fcf3b | 6363 | |
0639a6f6 | 6364 | |
81ecdfbb RW |
6365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5 |
6366 | $as_echo_n "checking for glibc >= 2.4... " >&6; } | |
6367 | if test "${gold_cv_lib_glibc24+set}" = set; then : | |
6368 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6369 | else |
81ecdfbb | 6370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1b77ea50 | 6371 | /* end confdefs.h. */ |
81ecdfbb RW |
6372 | |
6373 | #include <features.h> | |
6374 | #if !defined __GLIBC__ | |
6375 | error | |
6376 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4) | |
6377 | error | |
1b77ea50 | 6378 | #endif |
81ecdfbb | 6379 | |
1b77ea50 | 6380 | _ACEOF |
81ecdfbb RW |
6381 | if ac_fn_c_try_compile "$LINENO"; then : |
6382 | gold_cv_lib_glibc24=yes | |
0639a6f6 | 6383 | else |
81ecdfbb | 6384 | gold_cv_lib_glibc24=no |
0639a6f6 | 6385 | fi |
81ecdfbb | 6386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1b77ea50 | 6387 | fi |
81ecdfbb RW |
6388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5 |
6389 | $as_echo "$gold_cv_lib_glibc24" >&6; } | |
1b77ea50 | 6390 | |
81ecdfbb RW |
6391 | if test "$gold_cv_lib_glibc24" = "yes"; then |
6392 | STATIC_TLS_TRUE= | |
6393 | STATIC_TLS_FALSE='#' | |
0639a6f6 | 6394 | else |
81ecdfbb RW |
6395 | STATIC_TLS_TRUE='#' |
6396 | STATIC_TLS_FALSE= | |
0639a6f6 | 6397 | fi |
1b77ea50 | 6398 | |
0639a6f6 | 6399 | |
81ecdfbb RW |
6400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5 |
6401 | $as_echo_n "checking for omp support... " >&6; } | |
6402 | if test "${gold_cv_c_threadprivate+set}" = set; then : | |
6403 | $as_echo_n "(cached) " >&6 | |
0639a6f6 | 6404 | else |
81ecdfbb RW |
6405 | save_CFLAGS="$CFLAGS" |
6406 | CFLAGS="$CFLAGS -fopenmp" | |
6407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6408 | /* end confdefs.h. */ | |
1b77ea50 | 6409 | |
81ecdfbb RW |
6410 | #include <omp.h> |
6411 | int i; | |
6412 | #pragma omp threadprivate (i) | |
1b77ea50 | 6413 | |
81ecdfbb RW |
6414 | _ACEOF |
6415 | if ac_fn_c_try_compile "$LINENO"; then : | |
6416 | gold_cv_c_threadprivate=yes | |
6417 | else | |
6418 | gold_cv_c_threadprivate=no | |
6419 | fi | |
6420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6421 | CFLAGS="$save_CFLAGS" | |
6422 | fi | |
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5 | |
6424 | $as_echo "$gold_cv_c_threadprivate" >&6; } | |
6425 | if test "$gold_cv_c_threadprivate" = "yes"; then | |
1b77ea50 | 6426 | |
81ecdfbb | 6427 | $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h |
1b77ea50 | 6428 | |
0639a6f6 | 6429 | fi |
81ecdfbb RW |
6430 | if test "$gold_cv_c_threadprivate" = "yes"; then |
6431 | OMP_SUPPORT_TRUE= | |
6432 | OMP_SUPPORT_FALSE='#' | |
1b77ea50 | 6433 | else |
81ecdfbb RW |
6434 | OMP_SUPPORT_TRUE='#' |
6435 | OMP_SUPPORT_FALSE= | |
1b77ea50 | 6436 | fi |
1b77ea50 | 6437 | |
81ecdfbb RW |
6438 | |
6439 | save_CFLAGS="$CFLAGS" | |
63887f3d | 6440 | CFLAGS="$CFLAGS -fpic -mtls-dialect=gnu2" |
81ecdfbb | 6441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0639a6f6 | 6442 | /* end confdefs.h. */ |
63887f3d L |
6443 | |
6444 | __thread int i; | |
6445 | void foo (void) | |
6446 | { | |
6447 | i = 10; | |
6448 | } | |
6449 | ||
1b77ea50 | 6450 | _ACEOF |
81ecdfbb RW |
6451 | if ac_fn_c_try_compile "$LINENO"; then : |
6452 | have_tls_gnu2=yes | |
0639a6f6 | 6453 | else |
81ecdfbb | 6454 | have_tls_gnu2=no |
0639a6f6 | 6455 | fi |
81ecdfbb RW |
6456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6457 | CFLAGS="$save_CFLAGS" | |
6458 | if test "$have_tls_gnu2" = "yes"; then | |
6459 | TLS_GNU2_DIALECT_TRUE= | |
6460 | TLS_GNU2_DIALECT_FALSE='#' | |
0639a6f6 | 6461 | else |
81ecdfbb RW |
6462 | TLS_GNU2_DIALECT_TRUE='#' |
6463 | TLS_GNU2_DIALECT_FALSE= | |
0639a6f6 | 6464 | fi |
1b77ea50 | 6465 | |
81ecdfbb RW |
6466 | |
6467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5 | |
6468 | $as_echo_n "checking for glibc >= 2.9... " >&6; } | |
6469 | if test "${gold_cv_lib_glibc29+set}" = set; then : | |
6470 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6471 | else |
81ecdfbb RW |
6472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6473 | /* end confdefs.h. */ | |
0639a6f6 | 6474 | |
81ecdfbb RW |
6475 | #include <features.h> |
6476 | #if !defined __GLIBC__ | |
6477 | error | |
6478 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9) | |
6479 | error | |
6480 | #endif | |
1b77ea50 | 6481 | |
81ecdfbb RW |
6482 | _ACEOF |
6483 | if ac_fn_c_try_compile "$LINENO"; then : | |
6484 | gold_cv_lib_glibc29=yes | |
6485 | else | |
6486 | gold_cv_lib_glibc29=no | |
1b77ea50 | 6487 | fi |
81ecdfbb RW |
6488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6489 | fi | |
6490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5 | |
6491 | $as_echo "$gold_cv_lib_glibc29" >&6; } | |
0639a6f6 | 6492 | |
81ecdfbb RW |
6493 | if test "$gold_cv_lib_glibc29" = "yes"; then |
6494 | TLS_DESCRIPTORS_TRUE= | |
6495 | TLS_DESCRIPTORS_FALSE='#' | |
6496 | else | |
6497 | TLS_DESCRIPTORS_TRUE='#' | |
6498 | TLS_DESCRIPTORS_FALSE= | |
6499 | fi | |
0639a6f6 ILT |
6500 | |
6501 | ||
81ecdfbb RW |
6502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5 |
6503 | $as_echo_n "checking for -frandom-seed support... " >&6; } | |
6504 | if test "${gold_cv_c_random_seed+set}" = set; then : | |
6505 | $as_echo_n "(cached) " >&6 | |
6506 | else | |
6507 | save_CFLAGS="$CFLAGS" | |
6508 | CFLAGS="$CFLAGS -frandom-seed=foo" | |
6509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0639a6f6 | 6510 | /* end confdefs.h. */ |
81ecdfbb | 6511 | int i; |
0639a6f6 | 6512 | _ACEOF |
81ecdfbb RW |
6513 | if ac_fn_c_try_compile "$LINENO"; then : |
6514 | gold_cv_c_random_seed=yes | |
0639a6f6 | 6515 | else |
81ecdfbb RW |
6516 | gold_cv_c_random_seed=no |
6517 | fi | |
6518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6519 | CFLAGS="$save_CFLAGS" | |
6520 | fi | |
6521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5 | |
6522 | $as_echo "$gold_cv_c_random_seed" >&6; } | |
6523 | if test "$gold_cv_c_random_seed" = "yes"; then | |
6524 | # In Makefile, '$@' will be expanded to be the name of the file | |
6525 | # being built, providing a unique seed for each file. | |
6526 | RANDOM_SEED_CFLAGS=-frandom-seed=\$@ | |
0639a6f6 | 6527 | fi |
1b77ea50 | 6528 | |
81ecdfbb | 6529 | |
ebb300b2 CC |
6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5 |
6531 | $as_echo_n "checking for glibc ifunc support... " >&6; } | |
6532 | if test "${gold_cv_lib_glibc_ifunc+set}" = set; then : | |
7223e9ca ILT |
6533 | $as_echo_n "(cached) " >&6 |
6534 | else | |
ebb300b2 CC |
6535 | save_LDFLAGS="$LDFLAGS" |
6536 | LDFLAGS="$LDFLAGS -static" | |
6537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7223e9ca ILT |
6538 | /* end confdefs.h. */ |
6539 | ||
6540 | #include <features.h> | |
6541 | #if !defined __GLIBC__ | |
6542 | error | |
6543 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11) | |
6544 | error | |
6545 | #endif | |
ebb300b2 CC |
6546 | void func (void) { } |
6547 | void invoke (void); | |
6548 | __asm__(".type invoke, %gnu_indirect_function"); | |
6549 | typedef void (*funcptr) (void); | |
6550 | funcptr dispatch (void) __asm__ ("invoke"); | |
6551 | funcptr dispatch (void) { return &func; } | |
6552 | int | |
6553 | main () | |
6554 | { | |
6555 | invoke(); | |
6556 | ; | |
6557 | return 0; | |
6558 | } | |
7223e9ca ILT |
6559 | |
6560 | _ACEOF | |
ebb300b2 CC |
6561 | if ac_fn_c_try_link "$LINENO"; then : |
6562 | ||
6563 | if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then | |
6564 | gold_cv_lib_glibc_ifunc=both | |
7223e9ca | 6565 | else |
ebb300b2 | 6566 | gold_cv_lib_glibc_ifunc=dyn |
7223e9ca | 6567 | fi |
ebb300b2 CC |
6568 | else |
6569 | gold_cv_lib_glibc_ifunc=no | |
6570 | fi | |
6571 | rm -f core conftest.err conftest.$ac_objext \ | |
6572 | conftest$ac_exeext conftest.$ac_ext | |
6573 | LDFLAGS="$save_LDFLAGS" | |
7223e9ca | 6574 | fi |
ebb300b2 CC |
6575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5 |
6576 | $as_echo "$gold_cv_lib_glibc_ifunc" >&6; } | |
7223e9ca | 6577 | |
ebb300b2 | 6578 | if test "$gold_cv_lib_glibc_ifunc" != "no"; then |
7223e9ca ILT |
6579 | IFUNC_TRUE= |
6580 | IFUNC_FALSE='#' | |
6581 | else | |
6582 | IFUNC_TRUE='#' | |
6583 | IFUNC_FALSE= | |
6584 | fi | |
6585 | ||
ebb300b2 CC |
6586 | if test "$gold_cv_lib_glibc_ifunc" = "both"; then |
6587 | IFUNC_STATIC_TRUE= | |
6588 | IFUNC_STATIC_FALSE='#' | |
6589 | else | |
6590 | IFUNC_STATIC_TRUE='#' | |
6591 | IFUNC_STATIC_FALSE= | |
6592 | fi | |
6593 | ||
7223e9ca | 6594 | |
81ecdfbb | 6595 | |
efc8d4f2 RW |
6596 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
6597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6598 | /* end confdefs.h. */ | |
6599 | __GNUC__ | |
6600 | _ACEOF | |
6601 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6602 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
6603 | ||
6604 | else | |
6605 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
6606 | fi | |
6607 | rm -f conftest* | |
6608 | ||
81ecdfbb RW |
6609 | |
6610 | # Check whether --enable-werror was given. | |
6611 | if test "${enable_werror+set}" = set; then : | |
6612 | enableval=$enable_werror; case "${enableval}" in | |
6613 | yes | y) ERROR_ON_WARNING="yes" ;; | |
6614 | no | n) ERROR_ON_WARNING="no" ;; | |
6615 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
6616 | esac | |
0639a6f6 | 6617 | fi |
1b77ea50 | 6618 | |
81ecdfbb | 6619 | |
efc8d4f2 | 6620 | # Disable -Wformat by default when using gcc on mingw |
81ecdfbb RW |
6621 | case "${host}" in |
6622 | *-*-mingw32*) | |
6623 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
6624 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
6625 | fi | |
0639a6f6 | 6626 | ;; |
81ecdfbb | 6627 | *) ;; |
0639a6f6 | 6628 | esac |
81ecdfbb RW |
6629 | |
6630 | # Enable -Werror by default when using gcc | |
6631 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
6632 | ERROR_ON_WARNING=yes | |
0639a6f6 | 6633 | fi |
0639a6f6 | 6634 | |
81ecdfbb RW |
6635 | NO_WERROR= |
6636 | if test "${ERROR_ON_WARNING}" = yes ; then | |
6637 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
6638 | NO_WERROR="-Wno-error" | |
0639a6f6 | 6639 | fi |
1b77ea50 | 6640 | |
81ecdfbb RW |
6641 | if test "${GCC}" = yes ; then |
6642 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
0639a6f6 ILT |
6643 | fi |
6644 | ||
81ecdfbb RW |
6645 | # Check whether --enable-build-warnings was given. |
6646 | if test "${enable_build_warnings+set}" = set; then : | |
6647 | enableval=$enable_build_warnings; case "${enableval}" in | |
6648 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
6649 | no) if test "${GCC}" = yes ; then | |
6650 | WARN_CFLAGS="-w" | |
6651 | fi;; | |
6652 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6653 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
6654 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6655 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
6656 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6657 | esac | |
6658 | fi | |
0639a6f6 | 6659 | |
1b77ea50 | 6660 | |
81ecdfbb RW |
6661 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
6662 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
0639a6f6 | 6663 | fi |
1b77ea50 | 6664 | |
1b77ea50 | 6665 | |
1b77ea50 | 6666 | |
0639a6f6 | 6667 | |
1b77ea50 | 6668 | |
2ea97941 | 6669 | WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'` |
81ecdfbb RW |
6670 | |
6671 | ||
dc87f620 ILT |
6672 | |
6673 | # Check whether --with-gold-ldflags was given. | |
6674 | if test "${with_gold_ldflags+set}" = set; then : | |
6675 | withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6676 | GOLD_LDFLAGS= | |
6677 | else | |
6678 | GOLD_LDFLAGS=$withval | |
6679 | fi | |
6680 | else | |
6681 | GOLD_LDFLAGS= | |
6682 | fi | |
6683 | ||
6684 | ||
6685 | ||
6686 | ||
6687 | # Check whether --with-gold-ldadd was given. | |
6688 | if test "${with_gold_ldadd+set}" = set; then : | |
6689 | withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6690 | GOLD_LDADD= | |
6691 | else | |
6692 | GOLD_LDADD=$withval | |
6693 | fi | |
6694 | else | |
6695 | GOLD_LDADD= | |
6696 | fi | |
6697 | ||
6698 | ||
6699 | ||
81ecdfbb RW |
6700 | LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" |
6701 | ||
6702 | ||
88597d34 | 6703 | for ac_header in sys/mman.h |
81ecdfbb | 6704 | do : |
88597d34 ILT |
6705 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" |
6706 | if test "x$ac_cv_header_sys_mman_h" = x""yes; then : | |
0639a6f6 | 6707 | cat >>confdefs.h <<_ACEOF |
88597d34 ILT |
6708 | #define HAVE_SYS_MMAN_H 1 |
6709 | _ACEOF | |
6710 | ||
6711 | fi | |
6712 | ||
6713 | done | |
6714 | ||
6715 | for ac_func in chsize mmap | |
6716 | do : | |
6717 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6718 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6719 | eval as_val=\$$as_ac_var | |
6720 | if test "x$as_val" = x""yes; then : | |
6721 | cat >>confdefs.h <<_ACEOF | |
6722 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1b77ea50 ILT |
6723 | _ACEOF |
6724 | ||
0639a6f6 | 6725 | fi |
0639a6f6 | 6726 | done |
1b77ea50 | 6727 | |
88597d34 | 6728 | for ac_func in pread ftruncate ffsll |
81ecdfbb RW |
6729 | do : |
6730 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6731 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6732 | eval as_val=\$$as_ac_var | |
6733 | if test "x$as_val" = x""yes; then : | |
6734 | cat >>confdefs.h <<_ACEOF | |
6735 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1b77ea50 | 6736 | _ACEOF |
0639a6f6 | 6737 | |
81ecdfbb RW |
6738 | else |
6739 | case " $LIBOBJS " in | |
6740 | *" $ac_func.$ac_objext "* ) ;; | |
6741 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
6742 | ;; | |
6743 | esac | |
0639a6f6 | 6744 | |
81ecdfbb RW |
6745 | fi |
6746 | done | |
0639a6f6 | 6747 | |
0639a6f6 | 6748 | |
81ecdfbb | 6749 | |
88597d34 ILT |
6750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5 |
6751 | $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; } | |
6752 | if test "${gold_cv_lib_mremap_maymove+set}" = set; then : | |
6753 | $as_echo_n "(cached) " >&6 | |
6754 | else | |
6755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6756 | /* end confdefs.h. */ | |
6757 | ||
6758 | ||
6759 | #include <sys/mman.h> | |
6760 | void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); } | |
6761 | ||
6762 | int | |
6763 | main () | |
6764 | { | |
6765 | ||
6766 | ; | |
6767 | return 0; | |
6768 | } | |
6769 | _ACEOF | |
6770 | if ac_fn_c_try_link "$LINENO"; then : | |
6771 | gold_cv_lib_mremap_maymove=yes | |
6772 | else | |
6773 | gold_cv_lib_mremap_maymove=no | |
6774 | fi | |
6775 | rm -f core conftest.err conftest.$ac_objext \ | |
6776 | conftest$ac_exeext conftest.$ac_ext | |
6777 | fi | |
6778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5 | |
6779 | $as_echo "$gold_cv_lib_mremap_maymove" >&6; } | |
6780 | if test "$gold_cv_lib_mremap_maymove" = "yes"; then | |
6781 | ||
6782 | $as_echo "#define HAVE_MREMAP 1" >>confdefs.h | |
6783 | ||
6784 | else | |
6785 | case " $LIBOBJS " in | |
6786 | *" mremap.$ac_objext "* ) ;; | |
6787 | *) LIBOBJS="$LIBOBJS mremap.$ac_objext" | |
6788 | ;; | |
6789 | esac | |
6790 | ||
6791 | fi | |
6792 | ||
81ecdfbb RW |
6793 | # Link in zlib if we can. This allows us to write compressed sections. |
6794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 | |
6795 | $as_echo_n "checking for library containing zlibVersion... " >&6; } | |
6796 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
6797 | $as_echo_n "(cached) " >&6 | |
6798 | else | |
6799 | ac_func_search_save_LIBS=$LIBS | |
6800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6801 | /* end confdefs.h. */ | |
6802 | ||
6803 | /* Override any GCC internal prototype to avoid an error. | |
6804 | Use char because int might match the return type of a GCC | |
6805 | builtin and then its argument prototype would still apply. */ | |
0639a6f6 | 6806 | #ifdef __cplusplus |
81ecdfbb | 6807 | extern "C" |
1b77ea50 | 6808 | #endif |
81ecdfbb | 6809 | char zlibVersion (); |
0639a6f6 ILT |
6810 | int |
6811 | main () | |
6812 | { | |
81ecdfbb | 6813 | return zlibVersion (); |
1b77ea50 ILT |
6814 | ; |
6815 | return 0; | |
6816 | } | |
6817 | _ACEOF | |
81ecdfbb RW |
6818 | for ac_lib in '' z; do |
6819 | if test -z "$ac_lib"; then | |
6820 | ac_res="none required" | |
6821 | else | |
6822 | ac_res=-l$ac_lib | |
6823 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6824 | fi | |
6825 | if ac_fn_c_try_link "$LINENO"; then : | |
6826 | ac_cv_search_zlibVersion=$ac_res | |
6827 | fi | |
6828 | rm -f core conftest.err conftest.$ac_objext \ | |
6829 | conftest$ac_exeext | |
6830 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
6831 | break | |
6832 | fi | |
6833 | done | |
6834 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
1b77ea50 | 6835 | |
81ecdfbb RW |
6836 | else |
6837 | ac_cv_search_zlibVersion=no | |
1b77ea50 | 6838 | fi |
81ecdfbb RW |
6839 | rm conftest.$ac_ext |
6840 | LIBS=$ac_func_search_save_LIBS | |
1b77ea50 | 6841 | fi |
81ecdfbb RW |
6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5 |
6843 | $as_echo "$ac_cv_search_zlibVersion" >&6; } | |
6844 | ac_res=$ac_cv_search_zlibVersion | |
6845 | if test "$ac_res" != no; then : | |
6846 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6847 | for ac_header in zlib.h | |
6848 | do : | |
6849 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
6850 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | |
1b77ea50 | 6851 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6852 | #define HAVE_ZLIB_H 1 |
1b77ea50 ILT |
6853 | _ACEOF |
6854 | ||
1b77ea50 | 6855 | fi |
81ecdfbb | 6856 | |
0639a6f6 | 6857 | done |
1b77ea50 | 6858 | |
81ecdfbb | 6859 | fi |
3d857b98 | 6860 | |
81ecdfbb RW |
6861 | if test "$ac_cv_search_zlibVersion" != "no"; then |
6862 | HAVE_ZLIB_TRUE= | |
6863 | HAVE_ZLIB_FALSE='#' | |
3d857b98 | 6864 | else |
81ecdfbb RW |
6865 | HAVE_ZLIB_TRUE='#' |
6866 | HAVE_ZLIB_FALSE= | |
3d857b98 | 6867 | fi |
81ecdfbb RW |
6868 | |
6869 | ||
6870 | ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
6871 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
6872 | ac_have_decl=1 | |
6873 | else | |
6874 | ac_have_decl=0 | |
3d857b98 | 6875 | fi |
3d857b98 DK |
6876 | |
6877 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6878 | #define HAVE_DECL_BASENAME $ac_have_decl |
3d857b98 | 6879 | _ACEOF |
81ecdfbb RW |
6880 | ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
6881 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
6882 | ac_have_decl=1 | |
3d857b98 | 6883 | else |
81ecdfbb | 6884 | ac_have_decl=0 |
3d857b98 | 6885 | fi |
3d857b98 | 6886 | |
81ecdfbb RW |
6887 | cat >>confdefs.h <<_ACEOF |
6888 | #define HAVE_DECL_FFS $ac_have_decl | |
3d857b98 | 6889 | _ACEOF |
81ecdfbb RW |
6890 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
6891 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
6892 | ac_have_decl=1 | |
3d857b98 | 6893 | else |
81ecdfbb | 6894 | ac_have_decl=0 |
3d857b98 | 6895 | fi |
3d857b98 DK |
6896 | |
6897 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6898 | #define HAVE_DECL_ASPRINTF $ac_have_decl |
3d857b98 | 6899 | _ACEOF |
81ecdfbb RW |
6900 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
6901 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
6902 | ac_have_decl=1 | |
3d857b98 | 6903 | else |
81ecdfbb | 6904 | ac_have_decl=0 |
3d857b98 | 6905 | fi |
3d857b98 | 6906 | |
81ecdfbb RW |
6907 | cat >>confdefs.h <<_ACEOF |
6908 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
3d857b98 | 6909 | _ACEOF |
81ecdfbb RW |
6910 | ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
6911 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
6912 | ac_have_decl=1 | |
3d857b98 | 6913 | else |
81ecdfbb RW |
6914 | ac_have_decl=0 |
6915 | fi | |
3d857b98 | 6916 | |
81ecdfbb RW |
6917 | cat >>confdefs.h <<_ACEOF |
6918 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
6919 | _ACEOF | |
6920 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" | |
6921 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
6922 | ac_have_decl=1 | |
6923 | else | |
6924 | ac_have_decl=0 | |
3d857b98 | 6925 | fi |
81ecdfbb RW |
6926 | |
6927 | cat >>confdefs.h <<_ACEOF | |
6928 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | |
6929 | _ACEOF | |
6930 | ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" | |
6931 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
6932 | ac_have_decl=1 | |
6933 | else | |
6934 | ac_have_decl=0 | |
3d857b98 | 6935 | fi |
3d857b98 DK |
6936 | |
6937 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6938 | #define HAVE_DECL_STRVERSCMP $ac_have_decl |
3d857b98 DK |
6939 | _ACEOF |
6940 | ||
6941 | ||
81ecdfbb RW |
6942 | ac_ext=cpp |
6943 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6944 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6945 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6946 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3d857b98 DK |
6947 | |
6948 | ||
81ecdfbb RW |
6949 | |
6950 | ac_ext=cpp | |
6951 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6952 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6953 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6954 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
6956 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
6957 | if test -z "$CXXCPP"; then | |
6958 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
6959 | $as_echo_n "(cached) " >&6 | |
3d857b98 | 6960 | else |
81ecdfbb RW |
6961 | # Double quotes because CXXCPP needs to be expanded |
6962 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
6963 | do | |
6964 | ac_preproc_ok=false | |
6965 | for ac_cxx_preproc_warn_flag in '' yes | |
6966 | do | |
6967 | # Use a header file that comes with gcc, so configuring glibc | |
6968 | # with a fresh cross-compiler works. | |
6969 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6970 | # <limits.h> exists even on freestanding compilers. | |
6971 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6972 | # not just through cpp. "Syntax error" is here to catch this case. | |
6973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 6974 | /* end confdefs.h. */ |
81ecdfbb RW |
6975 | #ifdef __STDC__ |
6976 | # include <limits.h> | |
6977 | #else | |
6978 | # include <assert.h> | |
3d857b98 | 6979 | #endif |
81ecdfbb | 6980 | Syntax error |
3d857b98 | 6981 | _ACEOF |
81ecdfbb | 6982 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 6983 | |
81ecdfbb RW |
6984 | else |
6985 | # Broken: fails on valid input. | |
6986 | continue | |
3d857b98 | 6987 | fi |
81ecdfbb | 6988 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 6989 | |
81ecdfbb RW |
6990 | # OK, works on sane cases. Now check whether nonexistent headers |
6991 | # can be detected and how. | |
6992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6993 | /* end confdefs.h. */ | |
6994 | #include <ac_nonexistent.h> | |
3d857b98 | 6995 | _ACEOF |
81ecdfbb RW |
6996 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
6997 | # Broken: success on invalid input. | |
6998 | continue | |
3d857b98 | 6999 | else |
81ecdfbb RW |
7000 | # Passes both tests. |
7001 | ac_preproc_ok=: | |
7002 | break | |
7003 | fi | |
7004 | rm -f conftest.err conftest.$ac_ext | |
7005 | ||
7006 | done | |
7007 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7008 | rm -f conftest.err conftest.$ac_ext | |
7009 | if $ac_preproc_ok; then : | |
7010 | break | |
7011 | fi | |
3d857b98 | 7012 | |
81ecdfbb RW |
7013 | done |
7014 | ac_cv_prog_CXXCPP=$CXXCPP | |
3d857b98 DK |
7015 | |
7016 | fi | |
81ecdfbb | 7017 | CXXCPP=$ac_cv_prog_CXXCPP |
3d857b98 | 7018 | else |
81ecdfbb RW |
7019 | ac_cv_prog_CXXCPP=$CXXCPP |
7020 | fi | |
7021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
7022 | $as_echo "$CXXCPP" >&6; } | |
7023 | ac_preproc_ok=false | |
7024 | for ac_cxx_preproc_warn_flag in '' yes | |
7025 | do | |
7026 | # Use a header file that comes with gcc, so configuring glibc | |
7027 | # with a fresh cross-compiler works. | |
7028 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7029 | # <limits.h> exists even on freestanding compilers. | |
7030 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7031 | # not just through cpp. "Syntax error" is here to catch this case. | |
7032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 7033 | /* end confdefs.h. */ |
81ecdfbb RW |
7034 | #ifdef __STDC__ |
7035 | # include <limits.h> | |
7036 | #else | |
7037 | # include <assert.h> | |
3d857b98 | 7038 | #endif |
81ecdfbb | 7039 | Syntax error |
3d857b98 | 7040 | _ACEOF |
81ecdfbb | 7041 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 7042 | |
81ecdfbb RW |
7043 | else |
7044 | # Broken: fails on valid input. | |
7045 | continue | |
3d857b98 | 7046 | fi |
81ecdfbb | 7047 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 7048 | |
81ecdfbb RW |
7049 | # OK, works on sane cases. Now check whether nonexistent headers |
7050 | # can be detected and how. | |
7051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7052 | /* end confdefs.h. */ | |
7053 | #include <ac_nonexistent.h> | |
3d857b98 | 7054 | _ACEOF |
81ecdfbb RW |
7055 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
7056 | # Broken: success on invalid input. | |
7057 | continue | |
7058 | else | |
7059 | # Passes both tests. | |
7060 | ac_preproc_ok=: | |
7061 | break | |
7062 | fi | |
7063 | rm -f conftest.err conftest.$ac_ext | |
3d857b98 | 7064 | |
81ecdfbb RW |
7065 | done |
7066 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7067 | rm -f conftest.err conftest.$ac_ext | |
7068 | if $ac_preproc_ok; then : | |
3d857b98 DK |
7069 | |
7070 | else | |
81ecdfbb RW |
7071 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7072 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7073 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check | |
7074 | See \`config.log' for more details." "$LINENO" 5; } | |
7075 | fi | |
7076 | ||
7077 | ac_ext=cpp | |
7078 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7079 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7080 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7081 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7082 | ||
7083 | ||
7084 | for ac_header in tr1/unordered_set tr1/unordered_map | |
7085 | do : | |
7086 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7087 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
7088 | eval as_val=\$$as_ac_Header | |
7089 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 7090 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7091 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3d857b98 DK |
7092 | _ACEOF |
7093 | ||
3d857b98 | 7094 | fi |
3d857b98 | 7095 | |
81ecdfbb RW |
7096 | done |
7097 | ||
7098 | for ac_header in ext/hash_map ext/hash_set | |
7099 | do : | |
7100 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7101 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
7102 | eval as_val=\$$as_ac_Header | |
7103 | if test "x$as_val" = x""yes; then : | |
7104 | cat >>confdefs.h <<_ACEOF | |
7105 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7106 | _ACEOF | |
3d857b98 | 7107 | |
3d857b98 | 7108 | fi |
3d857b98 | 7109 | |
81ecdfbb RW |
7110 | done |
7111 | ||
7112 | for ac_header in byteswap.h | |
7113 | do : | |
7114 | ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" | |
7115 | if test "x$ac_cv_header_byteswap_h" = x""yes; then : | |
7116 | cat >>confdefs.h <<_ACEOF | |
7117 | #define HAVE_BYTESWAP_H 1 | |
3d857b98 DK |
7118 | _ACEOF |
7119 | ||
81ecdfbb | 7120 | fi |
3d857b98 | 7121 | |
81ecdfbb RW |
7122 | done |
7123 | ||
d675ff46 | 7124 | for ac_func in mallinfo posix_fallocate readv sysconf times |
81ecdfbb RW |
7125 | do : |
7126 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7127 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
7128 | eval as_val=\$$as_ac_var | |
7129 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 7130 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7131 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
3d857b98 DK |
7132 | _ACEOF |
7133 | ||
3d857b98 | 7134 | fi |
81ecdfbb RW |
7135 | done |
7136 | ||
7137 | ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
7138 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
7139 | ac_have_decl=1 | |
3d857b98 | 7140 | else |
81ecdfbb RW |
7141 | ac_have_decl=0 |
7142 | fi | |
3d857b98 | 7143 | |
81ecdfbb RW |
7144 | cat >>confdefs.h <<_ACEOF |
7145 | #define HAVE_DECL_BASENAME $ac_have_decl | |
3d857b98 | 7146 | _ACEOF |
81ecdfbb RW |
7147 | ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
7148 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
7149 | ac_have_decl=1 | |
3d857b98 | 7150 | else |
81ecdfbb | 7151 | ac_have_decl=0 |
3d857b98 | 7152 | fi |
3d857b98 DK |
7153 | |
7154 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7155 | #define HAVE_DECL_FFS $ac_have_decl |
3d857b98 | 7156 | _ACEOF |
81ecdfbb RW |
7157 | ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
7158 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
7159 | ac_have_decl=1 | |
3d857b98 | 7160 | else |
81ecdfbb | 7161 | ac_have_decl=0 |
3d857b98 | 7162 | fi |
3d857b98 | 7163 | |
81ecdfbb RW |
7164 | cat >>confdefs.h <<_ACEOF |
7165 | #define HAVE_DECL_ASPRINTF $ac_have_decl | |
3d857b98 | 7166 | _ACEOF |
81ecdfbb RW |
7167 | ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
7168 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
7169 | ac_have_decl=1 | |
3d857b98 | 7170 | else |
81ecdfbb | 7171 | ac_have_decl=0 |
3d857b98 | 7172 | fi |
3d857b98 DK |
7173 | |
7174 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7175 | #define HAVE_DECL_VASPRINTF $ac_have_decl |
3d857b98 | 7176 | _ACEOF |
81ecdfbb RW |
7177 | ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
7178 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
7179 | ac_have_decl=1 | |
3d857b98 | 7180 | else |
81ecdfbb | 7181 | ac_have_decl=0 |
3d857b98 | 7182 | fi |
3d857b98 | 7183 | |
81ecdfbb RW |
7184 | cat >>confdefs.h <<_ACEOF |
7185 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
3d857b98 | 7186 | _ACEOF |
81ecdfbb RW |
7187 | ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" |
7188 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
7189 | ac_have_decl=1 | |
3d857b98 | 7190 | else |
81ecdfbb | 7191 | ac_have_decl=0 |
3d857b98 | 7192 | fi |
3d857b98 DK |
7193 | |
7194 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7195 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
3d857b98 | 7196 | _ACEOF |
81ecdfbb RW |
7197 | ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" |
7198 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
7199 | ac_have_decl=1 | |
3d857b98 | 7200 | else |
81ecdfbb RW |
7201 | ac_have_decl=0 |
7202 | fi | |
3d857b98 | 7203 | |
81ecdfbb RW |
7204 | cat >>confdefs.h <<_ACEOF |
7205 | #define HAVE_DECL_STRVERSCMP $ac_have_decl | |
7206 | _ACEOF | |
7207 | ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" | |
7208 | if test "x$ac_cv_have_decl_strndup" = x""yes; then : | |
7209 | ac_have_decl=1 | |
7210 | else | |
7211 | ac_have_decl=0 | |
7212 | fi | |
3d857b98 | 7213 | |
81ecdfbb RW |
7214 | cat >>confdefs.h <<_ACEOF |
7215 | #define HAVE_DECL_STRNDUP $ac_have_decl | |
7216 | _ACEOF | |
7217 | ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" | |
7218 | if test "x$ac_cv_have_decl_memmem" = x""yes; then : | |
7219 | ac_have_decl=1 | |
7220 | else | |
7221 | ac_have_decl=0 | |
3d857b98 DK |
7222 | fi |
7223 | ||
81ecdfbb RW |
7224 | cat >>confdefs.h <<_ACEOF |
7225 | #define HAVE_DECL_MEMMEM $ac_have_decl | |
7226 | _ACEOF | |
3d857b98 | 7227 | |
e44fcf3b | 7228 | |
40fde488 CD |
7229 | # Use of ::std::tr1::unordered_map::rehash causes undefined symbols |
7230 | # at link time with some versions of GCC. | |
81ecdfbb RW |
7231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5 |
7232 | $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; } | |
7233 | if test "${gold_cv_unordered_map_rehash+set}" = set; then : | |
7234 | $as_echo_n "(cached) " >&6 | |
40fde488 | 7235 | else |
81ecdfbb | 7236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
40fde488 CD |
7237 | /* end confdefs.h. */ |
7238 | ||
7239 | #include <tr1/unordered_map> | |
7240 | void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); } | |
7241 | ||
7242 | int | |
7243 | main () | |
7244 | { | |
7245 | ||
7246 | ; | |
7247 | return 0; | |
7248 | } | |
7249 | _ACEOF | |
81ecdfbb | 7250 | if ac_fn_cxx_try_link "$LINENO"; then : |
40fde488 CD |
7251 | gold_cv_unordered_map_rehash=yes |
7252 | else | |
81ecdfbb | 7253 | gold_cv_unordered_map_rehash=no |
40fde488 | 7254 | fi |
81ecdfbb RW |
7255 | rm -f core conftest.err conftest.$ac_objext \ |
7256 | conftest$ac_exeext conftest.$ac_ext | |
40fde488 | 7257 | fi |
81ecdfbb RW |
7258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5 |
7259 | $as_echo "$gold_cv_unordered_map_rehash" >&6; } | |
40fde488 CD |
7260 | if test "$gold_cv_unordered_map_rehash" = "yes"; then |
7261 | ||
81ecdfbb | 7262 | $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h |
40fde488 CD |
7263 | |
7264 | fi | |
7265 | ||
04bf7072 ILT |
7266 | # gcc 4.3.0 doesn't recognize the printf attribute on a template |
7267 | # function. Check for that. This is gcc bug 35546. This test can | |
7268 | # probably be removed after the bug has been fixed for a while. | |
81ecdfbb RW |
7269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5 |
7270 | $as_echo_n "checking whether we can use attributes with template functions... " >&6; } | |
7271 | if test "${gold_cv_template_attribute+set}" = set; then : | |
7272 | $as_echo_n "(cached) " >&6 | |
04bf7072 | 7273 | else |
81ecdfbb RW |
7274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7275 | /* end confdefs.h. */ | |
04bf7072 ILT |
7276 | |
7277 | template<typename T> extern void foo(const char*, ...) | |
7278 | __attribute__ ((__format__ (__printf__, 1, 2))); | |
7279 | template<typename T> void foo(const char* format, ...) {} | |
7280 | void bar() { foo<int>("%s\n", "foo"); } | |
7281 | ||
7282 | _ACEOF | |
81ecdfbb | 7283 | if ac_fn_cxx_try_compile "$LINENO"; then : |
04bf7072 ILT |
7284 | gold_cv_template_attribute=yes |
7285 | else | |
81ecdfbb | 7286 | gold_cv_template_attribute=no |
04bf7072 | 7287 | fi |
81ecdfbb | 7288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
04bf7072 | 7289 | fi |
81ecdfbb RW |
7290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5 |
7291 | $as_echo "$gold_cv_template_attribute" >&6; } | |
04bf7072 ILT |
7292 | if test "$gold_cv_template_attribute" = "yes"; then |
7293 | ||
81ecdfbb | 7294 | $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h |
04bf7072 ILT |
7295 | |
7296 | fi | |
7297 | ||
5d329b7d ILT |
7298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5 |
7299 | $as_echo_n "checking for struct stat::st_mtim.... " >&6; } | |
7300 | if test "${gold_cv_stat_st_mtim+set}" = set; then : | |
7301 | $as_echo_n "(cached) " >&6 | |
7302 | else | |
7303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7304 | /* end confdefs.h. */ | |
7305 | ||
7306 | #include <sys/stat.h> | |
7307 | long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);} | |
7308 | ||
7309 | int | |
7310 | main () | |
7311 | { | |
7312 | ||
7313 | ; | |
7314 | return 0; | |
7315 | } | |
7316 | _ACEOF | |
7317 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7318 | gold_cv_stat_st_mtim=yes | |
7319 | else | |
7320 | gold_cv_stat_st_mtim=no | |
7321 | fi | |
7322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7323 | fi | |
7324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5 | |
7325 | $as_echo "$gold_cv_stat_st_mtim" >&6; } | |
7326 | if test "$gold_cv_stat_st_mtim" = "yes"; then | |
7327 | ||
7328 | $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h | |
7329 | ||
7330 | fi | |
7331 | ||
54dc6425 ILT |
7332 | ac_ext=c |
7333 | ac_cpp='$CPP $CPPFLAGS' | |
7334 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7335 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7336 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7337 | ||
7338 | ||
58797674 RM |
7339 | for ac_header in locale.h |
7340 | do : | |
7341 | ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" | |
7342 | if test "x$ac_cv_header_locale_h" = x""yes; then : | |
7343 | cat >>confdefs.h <<_ACEOF | |
7344 | #define HAVE_LOCALE_H 1 | |
7345 | _ACEOF | |
7346 | ||
7347 | fi | |
7348 | ||
7349 | done | |
7350 | ||
44350750 NC |
7351 | for ac_func in setlocale |
7352 | do : | |
7353 | ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" | |
7354 | if test "x$ac_cv_func_setlocale" = x""yes; then : | |
7355 | cat >>confdefs.h <<_ACEOF | |
7356 | #define HAVE_SETLOCALE 1 | |
7357 | _ACEOF | |
7358 | ||
7359 | fi | |
7360 | done | |
7361 | ||
7362 | ||
7363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 | |
7364 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
7365 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : | |
7366 | $as_echo_n "(cached) " >&6 | |
7367 | else | |
7368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7369 | /* end confdefs.h. */ | |
7370 | #include <locale.h> | |
7371 | int | |
7372 | main () | |
7373 | { | |
7374 | return LC_MESSAGES | |
7375 | ; | |
7376 | return 0; | |
7377 | } | |
7378 | _ACEOF | |
7379 | if ac_fn_c_try_link "$LINENO"; then : | |
7380 | am_cv_val_LC_MESSAGES=yes | |
7381 | else | |
7382 | am_cv_val_LC_MESSAGES=no | |
7383 | fi | |
7384 | rm -f core conftest.err conftest.$ac_objext \ | |
7385 | conftest$ac_exeext conftest.$ac_ext | |
7386 | fi | |
7387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
7388 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
7389 | if test $am_cv_val_LC_MESSAGES = yes; then | |
7390 | ||
7391 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h | |
7392 | ||
7393 | fi | |
7394 | ||
7395 | ||
81ecdfbb RW |
7396 | |
7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
7398 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
7399 | # Check whether --enable-maintainer-mode was given. | |
7400 | if test "${enable_maintainer_mode+set}" = set; then : | |
7401 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
bae7f79e ILT |
7402 | else |
7403 | USE_MAINTAINER_MODE=no | |
81ecdfbb | 7404 | fi |
bae7f79e | 7405 | |
81ecdfbb RW |
7406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
7407 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
7408 | if test $USE_MAINTAINER_MODE = yes; then | |
bae7f79e ILT |
7409 | MAINTAINER_MODE_TRUE= |
7410 | MAINTAINER_MODE_FALSE='#' | |
7411 | else | |
7412 | MAINTAINER_MODE_TRUE='#' | |
7413 | MAINTAINER_MODE_FALSE= | |
7414 | fi | |
7415 | ||
7416 | MAINT=$MAINTAINER_MODE_TRUE | |
7417 | ||
7418 | ||
7419 | ||
81ecdfbb RW |
7420 | ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in" |
7421 | ||
bae7f79e ILT |
7422 | cat >confcache <<\_ACEOF |
7423 | # This file is a shell script that caches the results of configure | |
7424 | # tests run on this system so they can be shared between configure | |
7425 | # scripts and configure runs, see configure's option --config-cache. | |
7426 | # It is not useful on other systems. If it contains results you don't | |
7427 | # want to keep, you may remove or edit it. | |
7428 | # | |
7429 | # config.status only pays attention to the cache file if you give it | |
7430 | # the --recheck option to rerun configure. | |
7431 | # | |
7432 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7433 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7434 | # following values. | |
7435 | ||
7436 | _ACEOF | |
7437 | ||
7438 | # The following way of writing the cache mishandles newlines in values, | |
7439 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 7440 | # So, we kill variables containing newlines. |
bae7f79e ILT |
7441 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7442 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
7443 | ( |
7444 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7445 | eval ac_val=\$$ac_var | |
7446 | case $ac_val in #( | |
7447 | *${as_nl}*) | |
7448 | case $ac_var in #( | |
7449 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7450 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7451 | esac | |
7452 | case $ac_var in #( | |
7453 | _ | IFS | as_nl) ;; #( | |
7454 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7455 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7456 | esac ;; | |
7457 | esac | |
7458 | done | |
7459 | ||
bae7f79e | 7460 | (set) 2>&1 | |
81ecdfbb RW |
7461 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7462 | *${as_nl}ac_space=\ *) | |
7463 | # `set' does not quote correctly, so add quotes: double-quote | |
7464 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
bae7f79e ILT |
7465 | sed -n \ |
7466 | "s/'/'\\\\''/g; | |
7467 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 7468 | ;; #( |
bae7f79e ILT |
7469 | *) |
7470 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 7471 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bae7f79e | 7472 | ;; |
81ecdfbb RW |
7473 | esac | |
7474 | sort | |
7475 | ) | | |
bae7f79e | 7476 | sed ' |
81ecdfbb | 7477 | /^ac_cv_env_/b end |
bae7f79e | 7478 | t clear |
81ecdfbb | 7479 | :clear |
bae7f79e ILT |
7480 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7481 | t end | |
81ecdfbb RW |
7482 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7483 | :end' >>confcache | |
7484 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7485 | if test -w "$cache_file"; then | |
7486 | test "x$cache_file" != "x/dev/null" && | |
7487 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
7488 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
bae7f79e ILT |
7489 | cat confcache >$cache_file |
7490 | else | |
81ecdfbb RW |
7491 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7492 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
bae7f79e ILT |
7493 | fi |
7494 | fi | |
7495 | rm -f confcache | |
7496 | ||
7497 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7498 | # Let make expand exec_prefix. | |
7499 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7500 | ||
bae7f79e ILT |
7501 | DEFS=-DHAVE_CONFIG_H |
7502 | ||
7503 | ac_libobjs= | |
7504 | ac_ltlibobjs= | |
7505 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7506 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
7507 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7508 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
7509 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7510 | # will be set to the directory where LIBOBJS objects are built. | |
7511 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7512 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
bae7f79e ILT |
7513 | done |
7514 | LIBOBJS=$ac_libobjs | |
7515 | ||
7516 | LTLIBOBJS=$ac_ltlibobjs | |
7517 | ||
7518 | ||
81ecdfbb RW |
7519 | if test -n "$EXEEXT"; then |
7520 | am__EXEEXT_TRUE= | |
7521 | am__EXEEXT_FALSE='#' | |
7522 | else | |
7523 | am__EXEEXT_TRUE='#' | |
7524 | am__EXEEXT_FALSE= | |
7525 | fi | |
7526 | ||
fe9a4c12 | 7527 | if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then |
81ecdfbb RW |
7528 | as_fn_error "conditional \"THREADS\" was never defined. |
7529 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
fe9a4c12 | 7530 | fi |
89fc3421 | 7531 | if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then |
81ecdfbb RW |
7532 | as_fn_error "conditional \"PLUGINS\" was never defined. |
7533 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
89fc3421 | 7534 | fi |
364c7fa5 ILT |
7535 | if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then |
7536 | as_fn_error "conditional \"DEFAULT_TARGET_ARM\" was never defined. | |
7537 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7538 | fi | |
7539 | if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then | |
7540 | as_fn_error "conditional \"DEFAULT_TARGET_I386\" was never defined. | |
7541 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7542 | fi | |
7543 | if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then | |
7544 | as_fn_error "conditional \"DEFAULT_TARGET_POWERPC\" was never defined. | |
7545 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7546 | fi | |
7547 | if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then | |
7548 | as_fn_error "conditional \"DEFAULT_TARGET_SPARC\" was never defined. | |
7549 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7550 | fi | |
7551 | if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then | |
7552 | as_fn_error "conditional \"DEFAULT_TARGET_X86_64\" was never defined. | |
7553 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7554 | fi | |
bae7f79e | 7555 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
81ecdfbb RW |
7556 | as_fn_error "conditional \"AMDEP\" was never defined. |
7557 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7558 | fi |
7559 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
7560 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
7561 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7562 | fi |
7563 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
81ecdfbb RW |
7564 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
7565 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e | 7566 | fi |
81ecdfbb | 7567 | |
537b5f51 | 7568 | if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then |
81ecdfbb RW |
7569 | as_fn_error "conditional \"NATIVE_LINKER\" was never defined. |
7570 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 ILT |
7571 | fi |
7572 | if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then | |
81ecdfbb RW |
7573 | as_fn_error "conditional \"GCC\" was never defined. |
7574 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 | 7575 | fi |
eb373049 ILT |
7576 | if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then |
7577 | as_fn_error "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined. | |
7578 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
328c7c2f ILT |
7579 | fi |
7580 | if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then | |
7581 | as_fn_error "conditional \"HAVE_STATIC\" was never defined. | |
7582 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
eb373049 | 7583 | fi |
63402fe4 | 7584 | if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then |
81ecdfbb RW |
7585 | as_fn_error "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined. |
7586 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
63402fe4 | 7587 | fi |
8a5e3e08 | 7588 | if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then |
81ecdfbb RW |
7589 | as_fn_error "conditional \"MCMODEL_MEDIUM\" was never defined. |
7590 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8a5e3e08 | 7591 | fi |
6eee141f | 7592 | if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then |
81ecdfbb RW |
7593 | as_fn_error "conditional \"TLS\" was never defined. |
7594 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6eee141f | 7595 | fi |
097ec620 | 7596 | if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then |
81ecdfbb RW |
7597 | as_fn_error "conditional \"STATIC_TLS\" was never defined. |
7598 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
097ec620 | 7599 | fi |
155a0dd7 | 7600 | if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then |
81ecdfbb RW |
7601 | as_fn_error "conditional \"OMP_SUPPORT\" was never defined. |
7602 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
155a0dd7 | 7603 | fi |
c2b45e22 | 7604 | if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then |
81ecdfbb RW |
7605 | as_fn_error "conditional \"TLS_GNU2_DIALECT\" was never defined. |
7606 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 CC |
7607 | fi |
7608 | if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then | |
81ecdfbb RW |
7609 | as_fn_error "conditional \"TLS_DESCRIPTORS\" was never defined. |
7610 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 | 7611 | fi |
7223e9ca ILT |
7612 | if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then |
7613 | as_fn_error "conditional \"IFUNC\" was never defined. | |
7614 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7615 | fi | |
ebb300b2 CC |
7616 | if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then |
7617 | as_fn_error "conditional \"IFUNC_STATIC\" was never defined. | |
7618 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7619 | fi | |
7fcd0256 | 7620 | if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then |
81ecdfbb RW |
7621 | as_fn_error "conditional \"HAVE_ZLIB\" was never defined. |
7622 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7fcd0256 | 7623 | fi |
bae7f79e | 7624 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
7625 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
7626 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7627 | fi |
7628 | ||
7629 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 7630 | ac_write_fail=0 |
bae7f79e ILT |
7631 | ac_clean_files_save=$ac_clean_files |
7632 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
7633 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7634 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7635 | as_write_fail=0 | |
7636 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
bae7f79e ILT |
7637 | #! $SHELL |
7638 | # Generated by $as_me. | |
7639 | # Run this file to recreate the current configuration. | |
7640 | # Compiler output produced by configure, useful for debugging | |
7641 | # configure, is in config.log if it exists. | |
7642 | ||
7643 | debug=false | |
7644 | ac_cs_recheck=false | |
7645 | ac_cs_silent=false | |
bae7f79e | 7646 | |
81ecdfbb RW |
7647 | SHELL=\${CONFIG_SHELL-$SHELL} |
7648 | export SHELL | |
7649 | _ASEOF | |
7650 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7651 | ## -------------------- ## | |
7652 | ## M4sh Initialization. ## | |
7653 | ## -------------------- ## | |
bae7f79e | 7654 | |
81ecdfbb RW |
7655 | # Be more Bourne compatible |
7656 | DUALCASE=1; export DUALCASE # for MKS sh | |
7657 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bae7f79e ILT |
7658 | emulate sh |
7659 | NULLCMD=: | |
81ecdfbb | 7660 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bae7f79e ILT |
7661 | # is contrary to our usage. Disable this feature. |
7662 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
7663 | setopt NO_GLOB_SUBST |
7664 | else | |
7665 | case `(set -o) 2>/dev/null` in #( | |
7666 | *posix*) : | |
7667 | set -o posix ;; #( | |
7668 | *) : | |
7669 | ;; | |
7670 | esac | |
bae7f79e | 7671 | fi |
bae7f79e | 7672 | |
81ecdfbb RW |
7673 | |
7674 | as_nl=' | |
7675 | ' | |
7676 | export as_nl | |
7677 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7678 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7679 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7680 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7681 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7682 | # but without wasting forks for bash or zsh. | |
7683 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7684 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7685 | as_echo='print -r --' | |
7686 | as_echo_n='print -rn --' | |
7687 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7688 | as_echo='printf %s\n' | |
7689 | as_echo_n='printf %s' | |
7690 | else | |
7691 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7692 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7693 | as_echo_n='/usr/ucb/echo -n' | |
7694 | else | |
7695 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7696 | as_echo_n_body='eval | |
7697 | arg=$1; | |
7698 | case $arg in #( | |
7699 | *"$as_nl"*) | |
7700 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7701 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7702 | esac; | |
7703 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7704 | ' | |
7705 | export as_echo_n_body | |
7706 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7707 | fi | |
7708 | export as_echo_body | |
7709 | as_echo='sh -c $as_echo_body as_echo' | |
7710 | fi | |
7711 | ||
7712 | # The user is always right. | |
7713 | if test "${PATH_SEPARATOR+set}" != set; then | |
7714 | PATH_SEPARATOR=: | |
7715 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7716 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7717 | PATH_SEPARATOR=';' | |
7718 | } | |
bae7f79e ILT |
7719 | fi |
7720 | ||
7721 | ||
81ecdfbb RW |
7722 | # IFS |
7723 | # We need space, tab and new line, in precisely that order. Quoting is | |
7724 | # there to prevent editors from complaining about space-tab. | |
7725 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7726 | # splitting by setting IFS to empty value.) | |
7727 | IFS=" "" $as_nl" | |
7728 | ||
7729 | # Find who we are. Look in the path if we contain no directory separator. | |
7730 | case $0 in #(( | |
7731 | *[\\/]* ) as_myself=$0 ;; | |
7732 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7733 | for as_dir in $PATH | |
7734 | do | |
7735 | IFS=$as_save_IFS | |
7736 | test -z "$as_dir" && as_dir=. | |
7737 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7738 | done | |
7739 | IFS=$as_save_IFS | |
7740 | ||
7741 | ;; | |
7742 | esac | |
7743 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7744 | # in which case we are not to be found in the path. | |
7745 | if test "x$as_myself" = x; then | |
7746 | as_myself=$0 | |
7747 | fi | |
7748 | if test ! -f "$as_myself"; then | |
7749 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7750 | exit 1 | |
7751 | fi | |
7752 | ||
7753 | # Unset variables that we do not need and which cause bugs (e.g. in | |
7754 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7755 | # suppresses any "Segmentation fault" message there. '((' could | |
7756 | # trigger a bug in pdksh 5.2.14. | |
7757 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7758 | do eval test x\${$as_var+set} = xset \ | |
7759 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7760 | done | |
bae7f79e ILT |
7761 | PS1='$ ' |
7762 | PS2='> ' | |
7763 | PS4='+ ' | |
7764 | ||
7765 | # NLS nuisances. | |
81ecdfbb RW |
7766 | LC_ALL=C |
7767 | export LC_ALL | |
7768 | LANGUAGE=C | |
7769 | export LANGUAGE | |
7770 | ||
7771 | # CDPATH. | |
7772 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7773 | ||
7774 | ||
7775 | # as_fn_error ERROR [LINENO LOG_FD] | |
7776 | # --------------------------------- | |
7777 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
7778 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
7779 | # script with status $?, using 1 if that was 0. | |
7780 | as_fn_error () | |
7781 | { | |
7782 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
7783 | if test "$3"; then | |
7784 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7785 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
bae7f79e | 7786 | fi |
81ecdfbb RW |
7787 | $as_echo "$as_me: error: $1" >&2 |
7788 | as_fn_exit $as_status | |
7789 | } # as_fn_error | |
7790 | ||
7791 | ||
7792 | # as_fn_set_status STATUS | |
7793 | # ----------------------- | |
7794 | # Set $? to STATUS, without forking. | |
7795 | as_fn_set_status () | |
7796 | { | |
7797 | return $1 | |
7798 | } # as_fn_set_status | |
bae7f79e | 7799 | |
81ecdfbb RW |
7800 | # as_fn_exit STATUS |
7801 | # ----------------- | |
7802 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7803 | as_fn_exit () | |
7804 | { | |
7805 | set +e | |
7806 | as_fn_set_status $1 | |
7807 | exit $1 | |
7808 | } # as_fn_exit | |
7809 | ||
7810 | # as_fn_unset VAR | |
7811 | # --------------- | |
7812 | # Portably unset VAR. | |
7813 | as_fn_unset () | |
7814 | { | |
7815 | { eval $1=; unset $1;} | |
7816 | } | |
7817 | as_unset=as_fn_unset | |
7818 | # as_fn_append VAR VALUE | |
7819 | # ---------------------- | |
7820 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7821 | # advantage of any shell optimizations that allow amortized linear growth over | |
7822 | # repeated appends, instead of the typical quadratic growth present in naive | |
7823 | # implementations. | |
7824 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7825 | eval 'as_fn_append () | |
7826 | { | |
7827 | eval $1+=\$2 | |
7828 | }' | |
7829 | else | |
7830 | as_fn_append () | |
7831 | { | |
7832 | eval $1=\$$1\$2 | |
7833 | } | |
7834 | fi # as_fn_append | |
7835 | ||
7836 | # as_fn_arith ARG... | |
7837 | # ------------------ | |
7838 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7839 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7840 | # must be portable across $(()) and expr. | |
7841 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7842 | eval 'as_fn_arith () | |
7843 | { | |
7844 | as_val=$(( $* )) | |
7845 | }' | |
7846 | else | |
7847 | as_fn_arith () | |
7848 | { | |
7849 | as_val=`expr "$@" || test $? -eq 1` | |
7850 | } | |
7851 | fi # as_fn_arith | |
7852 | ||
7853 | ||
7854 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
7855 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bae7f79e ILT |
7856 | as_expr=expr |
7857 | else | |
7858 | as_expr=false | |
7859 | fi | |
7860 | ||
81ecdfbb | 7861 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bae7f79e ILT |
7862 | as_basename=basename |
7863 | else | |
7864 | as_basename=false | |
7865 | fi | |
7866 | ||
81ecdfbb RW |
7867 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7868 | as_dirname=dirname | |
7869 | else | |
7870 | as_dirname=false | |
7871 | fi | |
bae7f79e | 7872 | |
81ecdfbb | 7873 | as_me=`$as_basename -- "$0" || |
bae7f79e ILT |
7874 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7875 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
7876 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7877 | $as_echo X/"$0" | | |
7878 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
7879 | s//\1/ | |
7880 | q | |
7881 | } | |
7882 | /^X\/\(\/\/\)$/{ | |
7883 | s//\1/ | |
7884 | q | |
7885 | } | |
7886 | /^X\/\(\/\).*/{ | |
7887 | s//\1/ | |
7888 | q | |
7889 | } | |
7890 | s/.*/./; q'` | |
bae7f79e | 7891 | |
bae7f79e ILT |
7892 | # Avoid depending upon Character Ranges. |
7893 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7894 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7895 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7896 | as_cr_digits='0123456789' | |
7897 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7898 | ||
81ecdfbb RW |
7899 | ECHO_C= ECHO_N= ECHO_T= |
7900 | case `echo -n x` in #((((( | |
7901 | -n*) | |
7902 | case `echo 'xy\c'` in | |
7903 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7904 | xy) ECHO_C='\c';; | |
7905 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7906 | ECHO_T=' ';; | |
7907 | esac;; | |
7908 | *) | |
7909 | ECHO_N='-n';; | |
bae7f79e ILT |
7910 | esac |
7911 | ||
81ecdfbb RW |
7912 | rm -f conf$$ conf$$.exe conf$$.file |
7913 | if test -d conf$$.dir; then | |
7914 | rm -f conf$$.dir/conf$$.file | |
bae7f79e | 7915 | else |
81ecdfbb RW |
7916 | rm -f conf$$.dir |
7917 | mkdir conf$$.dir 2>/dev/null | |
bae7f79e | 7918 | fi |
81ecdfbb RW |
7919 | if (echo >conf$$.file) 2>/dev/null; then |
7920 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bae7f79e | 7921 | as_ln_s='ln -s' |
81ecdfbb RW |
7922 | # ... but there are two gotchas: |
7923 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7924 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
7925 | # In both cases, we have to default to `cp -p'. | |
7926 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
7927 | as_ln_s='cp -p' | |
7928 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7929 | as_ln_s=ln | |
7930 | else | |
7931 | as_ln_s='cp -p' | |
bae7f79e | 7932 | fi |
bae7f79e ILT |
7933 | else |
7934 | as_ln_s='cp -p' | |
7935 | fi | |
81ecdfbb RW |
7936 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7937 | rmdir conf$$.dir 2>/dev/null | |
7938 | ||
7939 | ||
7940 | # as_fn_mkdir_p | |
7941 | # ------------- | |
7942 | # Create "$as_dir" as a directory, including parents if necessary. | |
7943 | as_fn_mkdir_p () | |
7944 | { | |
7945 | ||
7946 | case $as_dir in #( | |
7947 | -*) as_dir=./$as_dir;; | |
7948 | esac | |
7949 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7950 | as_dirs= | |
7951 | while :; do | |
7952 | case $as_dir in #( | |
7953 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7954 | *) as_qdir=$as_dir;; | |
7955 | esac | |
7956 | as_dirs="'$as_qdir' $as_dirs" | |
7957 | as_dir=`$as_dirname -- "$as_dir" || | |
7958 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7959 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7960 | X"$as_dir" : 'X\(//\)$' \| \ | |
7961 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7962 | $as_echo X"$as_dir" | | |
7963 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7964 | s//\1/ | |
7965 | q | |
7966 | } | |
7967 | /^X\(\/\/\)[^/].*/{ | |
7968 | s//\1/ | |
7969 | q | |
7970 | } | |
7971 | /^X\(\/\/\)$/{ | |
7972 | s//\1/ | |
7973 | q | |
7974 | } | |
7975 | /^X\(\/\).*/{ | |
7976 | s//\1/ | |
7977 | q | |
7978 | } | |
7979 | s/.*/./; q'` | |
7980 | test -d "$as_dir" && break | |
7981 | done | |
7982 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
7983 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
7984 | ||
bae7f79e | 7985 | |
81ecdfbb | 7986 | } # as_fn_mkdir_p |
bae7f79e | 7987 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 7988 | as_mkdir_p='mkdir -p "$as_dir"' |
bae7f79e ILT |
7989 | else |
7990 | test -d ./-p && rmdir ./-p | |
7991 | as_mkdir_p=false | |
7992 | fi | |
7993 | ||
81ecdfbb RW |
7994 | if test -x / >/dev/null 2>&1; then |
7995 | as_test_x='test -x' | |
7996 | else | |
7997 | if ls -dL / >/dev/null 2>&1; then | |
7998 | as_ls_L_option=L | |
7999 | else | |
8000 | as_ls_L_option= | |
8001 | fi | |
8002 | as_test_x=' | |
8003 | eval sh -c '\'' | |
8004 | if test -d "$1"; then | |
8005 | test -d "$1/."; | |
8006 | else | |
8007 | case $1 in #( | |
8008 | -*)set "./$1";; | |
8009 | esac; | |
8010 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
8011 | ???[sx]*):;;*)false;;esac;fi | |
8012 | '\'' sh | |
8013 | ' | |
8014 | fi | |
8015 | as_executable_p=$as_test_x | |
bae7f79e ILT |
8016 | |
8017 | # Sed expression to map a string onto a valid CPP name. | |
8018 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8019 | ||
8020 | # Sed expression to map a string onto a valid variable name. | |
8021 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8022 | ||
8023 | ||
bae7f79e | 8024 | exec 6>&1 |
81ecdfbb RW |
8025 | ## ----------------------------------- ## |
8026 | ## Main body of $CONFIG_STATUS script. ## | |
8027 | ## ----------------------------------- ## | |
8028 | _ASEOF | |
8029 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
bae7f79e | 8030 | |
81ecdfbb RW |
8031 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8032 | # Save the log message, to keep $0 and so on meaningful, and to | |
bae7f79e | 8033 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
8034 | # values after options handling. |
8035 | ac_log=" | |
8486ee48 | 8036 | This file was extended by gold $as_me 0.1, which was |
81ecdfbb | 8037 | generated by GNU Autoconf 2.64. Invocation command line was |
bae7f79e ILT |
8038 | |
8039 | CONFIG_FILES = $CONFIG_FILES | |
8040 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8041 | CONFIG_LINKS = $CONFIG_LINKS | |
8042 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8043 | $ $0 $@ | |
8044 | ||
81ecdfbb RW |
8045 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8046 | " | |
8047 | ||
bae7f79e ILT |
8048 | _ACEOF |
8049 | ||
81ecdfbb RW |
8050 | case $ac_config_files in *" |
8051 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
8052 | esac | |
bae7f79e | 8053 | |
81ecdfbb RW |
8054 | case $ac_config_headers in *" |
8055 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
8056 | esac | |
bae7f79e | 8057 | |
bae7f79e | 8058 | |
81ecdfbb RW |
8059 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8060 | # Files that config.status was made for. | |
8061 | config_files="$ac_config_files" | |
8062 | config_headers="$ac_config_headers" | |
8063 | config_commands="$ac_config_commands" | |
bae7f79e | 8064 | |
81ecdfbb | 8065 | _ACEOF |
bae7f79e | 8066 | |
81ecdfbb | 8067 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 8068 | ac_cs_usage="\ |
81ecdfbb RW |
8069 | \`$as_me' instantiates files and other configuration actions |
8070 | from templates according to the current configuration. Unless the files | |
8071 | and actions are specified as TAGs, all are instantiated by default. | |
bae7f79e | 8072 | |
81ecdfbb | 8073 | Usage: $0 [OPTION]... [TAG]... |
bae7f79e ILT |
8074 | |
8075 | -h, --help print this help, then exit | |
81ecdfbb RW |
8076 | -V, --version print version number and configuration settings, then exit |
8077 | -q, --quiet, --silent | |
8078 | do not print progress messages | |
bae7f79e ILT |
8079 | -d, --debug don't remove temporary files |
8080 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
8081 | --file=FILE[:TEMPLATE] |
8082 | instantiate the configuration file FILE | |
8083 | --header=FILE[:TEMPLATE] | |
8084 | instantiate the configuration header FILE | |
bae7f79e ILT |
8085 | |
8086 | Configuration files: | |
8087 | $config_files | |
8088 | ||
8089 | Configuration headers: | |
8090 | $config_headers | |
8091 | ||
8092 | Configuration commands: | |
8093 | $config_commands | |
8094 | ||
81ecdfbb | 8095 | Report bugs to the package provider." |
bae7f79e | 8096 | |
81ecdfbb RW |
8097 | _ACEOF |
8098 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 8099 | ac_cs_version="\\ |
8486ee48 | 8100 | gold config.status 0.1 |
81ecdfbb RW |
8101 | configured by $0, generated by GNU Autoconf 2.64, |
8102 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
bae7f79e | 8103 | |
81ecdfbb | 8104 | Copyright (C) 2009 Free Software Foundation, Inc. |
bae7f79e ILT |
8105 | This config.status script is free software; the Free Software Foundation |
8106 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
8107 | |
8108 | ac_pwd='$ac_pwd' | |
8109 | srcdir='$srcdir' | |
8110 | INSTALL='$INSTALL' | |
8111 | MKDIR_P='$MKDIR_P' | |
8112 | AWK='$AWK' | |
8113 | test -n "\$AWK" || AWK=awk | |
bae7f79e ILT |
8114 | _ACEOF |
8115 | ||
81ecdfbb RW |
8116 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8117 | # The default lists apply if the user does not specify any file. | |
bae7f79e ILT |
8118 | ac_need_defaults=: |
8119 | while test $# != 0 | |
8120 | do | |
8121 | case $1 in | |
8122 | --*=*) | |
81ecdfbb RW |
8123 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8124 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
bae7f79e ILT |
8125 | ac_shift=: |
8126 | ;; | |
81ecdfbb | 8127 | *) |
bae7f79e ILT |
8128 | ac_option=$1 |
8129 | ac_optarg=$2 | |
8130 | ac_shift=shift | |
8131 | ;; | |
bae7f79e ILT |
8132 | esac |
8133 | ||
8134 | case $ac_option in | |
8135 | # Handling of the options. | |
bae7f79e ILT |
8136 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8137 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
8138 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
8139 | $as_echo "$ac_cs_version"; exit ;; | |
8140 | --debug | --debu | --deb | --de | --d | -d ) | |
bae7f79e ILT |
8141 | debug=: ;; |
8142 | --file | --fil | --fi | --f ) | |
8143 | $ac_shift | |
81ecdfbb RW |
8144 | case $ac_optarg in |
8145 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8146 | esac | |
8147 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
bae7f79e ILT |
8148 | ac_need_defaults=false;; |
8149 | --header | --heade | --head | --hea ) | |
8150 | $ac_shift | |
81ecdfbb RW |
8151 | case $ac_optarg in |
8152 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8153 | esac | |
8154 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
bae7f79e | 8155 | ac_need_defaults=false;; |
81ecdfbb RW |
8156 | --he | --h) |
8157 | # Conflict between --help and --header | |
8158 | as_fn_error "ambiguous option: \`$1' | |
8159 | Try \`$0 --help' for more information.";; | |
8160 | --help | --hel | -h ) | |
8161 | $as_echo "$ac_cs_usage"; exit ;; | |
bae7f79e ILT |
8162 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8163 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8164 | ac_cs_silent=: ;; | |
8165 | ||
8166 | # This is an error. | |
81ecdfbb RW |
8167 | -*) as_fn_error "unrecognized option: \`$1' |
8168 | Try \`$0 --help' for more information." ;; | |
bae7f79e | 8169 | |
81ecdfbb RW |
8170 | *) as_fn_append ac_config_targets " $1" |
8171 | ac_need_defaults=false ;; | |
bae7f79e ILT |
8172 | |
8173 | esac | |
8174 | shift | |
8175 | done | |
8176 | ||
8177 | ac_configure_extra_args= | |
8178 | ||
8179 | if $ac_cs_silent; then | |
8180 | exec 6>/dev/null | |
8181 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8182 | fi | |
8183 | ||
8184 | _ACEOF | |
81ecdfbb | 8185 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bae7f79e | 8186 | if \$ac_cs_recheck; then |
81ecdfbb RW |
8187 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8188 | shift | |
8189 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8190 | CONFIG_SHELL='$SHELL' | |
8191 | export CONFIG_SHELL | |
8192 | exec "\$@" | |
bae7f79e ILT |
8193 | fi |
8194 | ||
8195 | _ACEOF | |
81ecdfbb RW |
8196 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8197 | exec 5>>config.log | |
8198 | { | |
8199 | echo | |
8200 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8201 | ## Running $as_me. ## | |
8202 | _ASBOX | |
8203 | $as_echo "$ac_log" | |
8204 | } >&5 | |
bae7f79e | 8205 | |
81ecdfbb RW |
8206 | _ACEOF |
8207 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 8208 | # |
81ecdfbb | 8209 | # INIT-COMMANDS |
bae7f79e | 8210 | # |
bae7f79e ILT |
8211 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
8212 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | |
8213 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
8214 | # from automake. | |
8215 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
8216 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
8217 | LINGUAS="${LINGUAS-%UNSET%}" | |
8218 | ||
8219 | ||
8220 | _ACEOF | |
8221 | ||
81ecdfbb | 8222 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 8223 | |
81ecdfbb | 8224 | # Handling of arguments. |
bae7f79e ILT |
8225 | for ac_config_target in $ac_config_targets |
8226 | do | |
81ecdfbb RW |
8227 | case $ac_config_target in |
8228 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
8229 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8230 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
8231 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8232 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
8233 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
8234 | ||
8235 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
bae7f79e ILT |
8236 | esac |
8237 | done | |
8238 | ||
81ecdfbb | 8239 | |
bae7f79e ILT |
8240 | # If the user did not use the arguments to specify the items to instantiate, |
8241 | # then the envvar interface is used. Set only those that are not. | |
8242 | # We use the long form for the default assignment because of an extremely | |
8243 | # bizarre bug on SunOS 4.1.3. | |
8244 | if $ac_need_defaults; then | |
8245 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8246 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8247 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8248 | fi | |
8249 | ||
8250 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 8251 | # simply because there is no reason against having it here, and in addition, |
bae7f79e | 8252 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
8253 | # Hook for its removal unless debugging. |
8254 | # Note that there is a small window in which the directory will not be cleaned: | |
8255 | # after its creation but before its name has been assigned to `$tmp'. | |
bae7f79e ILT |
8256 | $debug || |
8257 | { | |
81ecdfbb RW |
8258 | tmp= |
8259 | trap 'exit_status=$? | |
8260 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
8261 | ' 0 | |
8262 | trap 'as_fn_exit 1' 1 2 13 15 | |
bae7f79e | 8263 | } |
bae7f79e ILT |
8264 | # Create a (secure) tmp directory for tmp files. |
8265 | ||
8266 | { | |
81ecdfbb | 8267 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bae7f79e ILT |
8268 | test -n "$tmp" && test -d "$tmp" |
8269 | } || | |
8270 | { | |
81ecdfbb RW |
8271 | tmp=./conf$$-$RANDOM |
8272 | (umask 077 && mkdir "$tmp") | |
8273 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
8274 | ||
8275 | # Set up the scripts for CONFIG_FILES section. | |
8276 | # No need to generate them if there are no CONFIG_FILES. | |
8277 | # This happens for instance with `./config.status config.h'. | |
8278 | if test -n "$CONFIG_FILES"; then | |
8279 | ||
8280 | ||
8281 | ac_cr=`echo X | tr X '\015'` | |
8282 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8283 | # But we know of no other shell where ac_cr would be empty at this | |
8284 | # point, so we can use a bashism as a fallback. | |
8285 | if test "x$ac_cr" = x; then | |
8286 | eval ac_cr=\$\'\\r\' | |
8287 | fi | |
8288 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8289 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
8290 | ac_cs_awk_cr='\r' | |
8291 | else | |
8292 | ac_cs_awk_cr=$ac_cr | |
8293 | fi | |
8294 | ||
8295 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
8296 | _ACEOF | |
8297 | ||
8298 | ||
8299 | { | |
8300 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8301 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8302 | echo "_ACEOF" | |
8303 | } >conf$$subs.sh || | |
8304 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8305 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
8306 | ac_delim='%!_!# ' | |
8307 | for ac_last_try in false false false false false :; do | |
8308 | . ./conf$$subs.sh || | |
8309 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8310 | ||
8311 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8312 | if test $ac_delim_n = $ac_delim_num; then | |
8313 | break | |
8314 | elif $ac_last_try; then | |
8315 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8316 | else | |
8317 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8318 | fi | |
8319 | done | |
8320 | rm -f conf$$subs.sh | |
8321 | ||
8322 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8323 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
8324 | _ACEOF | |
8325 | sed -n ' | |
8326 | h | |
8327 | s/^/S["/; s/!.*/"]=/ | |
8328 | p | |
8329 | g | |
8330 | s/^[^!]*!// | |
8331 | :repl | |
8332 | t repl | |
8333 | s/'"$ac_delim"'$// | |
8334 | t delim | |
8335 | :nl | |
8336 | h | |
8337 | s/\(.\{148\}\).*/\1/ | |
8338 | t more1 | |
8339 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8340 | p | |
8341 | n | |
8342 | b repl | |
8343 | :more1 | |
8344 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8345 | p | |
8346 | g | |
8347 | s/.\{148\}// | |
8348 | t nl | |
8349 | :delim | |
8350 | h | |
8351 | s/\(.\{148\}\).*/\1/ | |
8352 | t more2 | |
8353 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8354 | p | |
8355 | b | |
8356 | :more2 | |
8357 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8358 | p | |
8359 | g | |
8360 | s/.\{148\}// | |
8361 | t delim | |
8362 | ' <conf$$subs.awk | sed ' | |
8363 | /^[^""]/{ | |
8364 | N | |
8365 | s/\n// | |
8366 | } | |
8367 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8368 | rm -f conf$$subs.awk | |
8369 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8370 | _ACAWK | |
8371 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
8372 | for (key in S) S_is_set[key] = 1 | |
8373 | FS = "\a" | |
8374 | ||
8375 | } | |
bae7f79e | 8376 | { |
81ecdfbb RW |
8377 | line = $ 0 |
8378 | nfields = split(line, field, "@") | |
8379 | substed = 0 | |
8380 | len = length(field[1]) | |
8381 | for (i = 2; i < nfields; i++) { | |
8382 | key = field[i] | |
8383 | keylen = length(key) | |
8384 | if (S_is_set[key]) { | |
8385 | value = S[key] | |
8386 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8387 | len += length(value) + length(field[++i]) | |
8388 | substed = 1 | |
8389 | } else | |
8390 | len += 1 + keylen | |
8391 | } | |
8392 | ||
8393 | print line | |
bae7f79e ILT |
8394 | } |
8395 | ||
81ecdfbb RW |
8396 | _ACAWK |
8397 | _ACEOF | |
8398 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8399 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8400 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8401 | else | |
8402 | cat | |
8403 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
8404 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
bae7f79e ILT |
8405 | _ACEOF |
8406 | ||
81ecdfbb RW |
8407 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
8408 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8409 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8410 | # (actually we leave an empty line to preserve line numbers). | |
8411 | if test "x$srcdir" = x.; then | |
8412 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8413 | s/:*\$(srcdir):*/:/ | |
8414 | s/:*\${srcdir}:*/:/ | |
8415 | s/:*@srcdir@:*/:/ | |
8416 | s/^\([^=]*=[ ]*\):*/\1/ | |
8417 | s/:*$// | |
8418 | s/^[^=]*=[ ]*$// | |
8419 | }' | |
8420 | fi | |
bae7f79e | 8421 | |
81ecdfbb RW |
8422 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8423 | fi # test -n "$CONFIG_FILES" | |
bae7f79e | 8424 | |
81ecdfbb RW |
8425 | # Set up the scripts for CONFIG_HEADERS section. |
8426 | # No need to generate them if there are no CONFIG_HEADERS. | |
8427 | # This happens for instance with `./config.status Makefile'. | |
8428 | if test -n "$CONFIG_HEADERS"; then | |
8429 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
8430 | BEGIN { | |
bae7f79e ILT |
8431 | _ACEOF |
8432 | ||
81ecdfbb RW |
8433 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
8434 | # here-document in config.status, that substitutes the proper values into | |
8435 | # config.h.in to produce config.h. | |
8436 | ||
8437 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8438 | # handling of long lines. | |
8439 | ac_delim='%!_!# ' | |
8440 | for ac_last_try in false false :; do | |
8441 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
8442 | if test -z "$ac_t"; then | |
8443 | break | |
8444 | elif $ac_last_try; then | |
8445 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
8446 | else | |
8447 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
bae7f79e | 8448 | fi |
81ecdfbb | 8449 | done |
bae7f79e | 8450 | |
81ecdfbb RW |
8451 | # For the awk script, D is an array of macro values keyed by name, |
8452 | # likewise P contains macro parameters if any. Preserve backslash | |
8453 | # newline sequences. | |
8454 | ||
8455 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8456 | sed -n ' | |
8457 | s/.\{148\}/&'"$ac_delim"'/g | |
8458 | t rset | |
8459 | :rset | |
8460 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8461 | t def | |
8462 | d | |
8463 | :def | |
8464 | s/\\$// | |
8465 | t bsnl | |
8466 | s/["\\]/\\&/g | |
8467 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8468 | D["\1"]=" \3"/p | |
8469 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8470 | d | |
8471 | :bsnl | |
8472 | s/["\\]/\\&/g | |
8473 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8474 | D["\1"]=" \3\\\\\\n"\\/p | |
8475 | t cont | |
8476 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8477 | t cont | |
8478 | d | |
8479 | :cont | |
8480 | n | |
8481 | s/.\{148\}/&'"$ac_delim"'/g | |
8482 | t clear | |
8483 | :clear | |
8484 | s/\\$// | |
8485 | t bsnlc | |
8486 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8487 | d | |
8488 | :bsnlc | |
8489 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8490 | b cont | |
8491 | ' <confdefs.h | sed ' | |
8492 | s/'"$ac_delim"'/"\\\ | |
8493 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8494 | ||
8495 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8496 | for (key in D) D_is_set[key] = 1 | |
8497 | FS = "\a" | |
8498 | } | |
8499 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8500 | line = \$ 0 | |
8501 | split(line, arg, " ") | |
8502 | if (arg[1] == "#") { | |
8503 | defundef = arg[2] | |
8504 | mac1 = arg[3] | |
8505 | } else { | |
8506 | defundef = substr(arg[1], 2) | |
8507 | mac1 = arg[2] | |
8508 | } | |
8509 | split(mac1, mac2, "(") #) | |
8510 | macro = mac2[1] | |
8511 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8512 | if (D_is_set[macro]) { | |
8513 | # Preserve the white space surrounding the "#". | |
8514 | print prefix "define", macro P[macro] D[macro] | |
8515 | next | |
8516 | } else { | |
8517 | # Replace #undef with comments. This is necessary, for example, | |
8518 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8519 | # on some systems where configure will not decide to define it. | |
8520 | if (defundef == "undef") { | |
8521 | print "/*", prefix defundef, macro, "*/" | |
8522 | next | |
8523 | } | |
8524 | } | |
8525 | } | |
8526 | { print } | |
8527 | _ACAWK | |
bae7f79e | 8528 | _ACEOF |
81ecdfbb RW |
8529 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8530 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
8531 | fi # test -n "$CONFIG_HEADERS" | |
8532 | ||
8533 | ||
8534 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
8535 | shift | |
8536 | for ac_tag | |
8537 | do | |
8538 | case $ac_tag in | |
8539 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8540 | esac | |
8541 | case $ac_mode$ac_tag in | |
8542 | :[FHL]*:*);; | |
8543 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
8544 | :[FH]-) ac_tag=-:-;; | |
8545 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8546 | esac | |
8547 | ac_save_IFS=$IFS | |
8548 | IFS=: | |
8549 | set x $ac_tag | |
8550 | IFS=$ac_save_IFS | |
8551 | shift | |
8552 | ac_file=$1 | |
8553 | shift | |
8554 | ||
8555 | case $ac_mode in | |
8556 | :L) ac_source=$1;; | |
8557 | :[FH]) | |
8558 | ac_file_inputs= | |
8559 | for ac_f | |
8560 | do | |
8561 | case $ac_f in | |
8562 | -) ac_f="$tmp/stdin";; | |
8563 | *) # Look for the file first in the build tree, then in the source tree | |
8564 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8565 | # because $ac_f cannot contain `:'. | |
8566 | test -f "$ac_f" || | |
8567 | case $ac_f in | |
8568 | [\\/$]*) false;; | |
8569 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8570 | esac || | |
8571 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
8572 | esac | |
8573 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8574 | as_fn_append ac_file_inputs " '$ac_f'" | |
8575 | done | |
8576 | ||
8577 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8578 | # use $as_me), people would be surprised to read: | |
8579 | # /* config.h. Generated by config.status. */ | |
8580 | configure_input='Generated from '` | |
8581 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8582 | `' by configure.' | |
8583 | if test x"$ac_file" != x-; then | |
8584 | configure_input="$ac_file. $configure_input" | |
8585 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8586 | $as_echo "$as_me: creating $ac_file" >&6;} | |
8587 | fi | |
8588 | # Neutralize special characters interpreted by sed in replacement strings. | |
8589 | case $configure_input in #( | |
8590 | *\&* | *\|* | *\\* ) | |
8591 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8592 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8593 | *) ac_sed_conf_input=$configure_input;; | |
8594 | esac | |
8595 | ||
8596 | case $ac_tag in | |
8597 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
8598 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
8599 | esac | |
8600 | ;; | |
bae7f79e ILT |
8601 | esac |
8602 | ||
81ecdfbb | 8603 | ac_dir=`$as_dirname -- "$ac_file" || |
bae7f79e ILT |
8604 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8605 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8606 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8607 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
8608 | $as_echo X"$ac_file" | | |
8609 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8610 | s//\1/ | |
8611 | q | |
8612 | } | |
8613 | /^X\(\/\/\)[^/].*/{ | |
8614 | s//\1/ | |
8615 | q | |
8616 | } | |
8617 | /^X\(\/\/\)$/{ | |
8618 | s//\1/ | |
8619 | q | |
8620 | } | |
8621 | /^X\(\/\).*/{ | |
8622 | s//\1/ | |
8623 | q | |
8624 | } | |
8625 | s/.*/./; q'` | |
8626 | as_dir="$ac_dir"; as_fn_mkdir_p | |
bae7f79e ILT |
8627 | ac_builddir=. |
8628 | ||
81ecdfbb RW |
8629 | case "$ac_dir" in |
8630 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8631 | *) | |
8632 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8633 | # A ".." for each directory in $ac_dir_suffix. | |
8634 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8635 | case $ac_top_builddir_sub in | |
8636 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8637 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8638 | esac ;; | |
8639 | esac | |
8640 | ac_abs_top_builddir=$ac_pwd | |
8641 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8642 | # for backward compatibility: | |
8643 | ac_top_builddir=$ac_top_build_prefix | |
bae7f79e ILT |
8644 | |
8645 | case $srcdir in | |
81ecdfbb | 8646 | .) # We are building in place. |
bae7f79e | 8647 | ac_srcdir=. |
81ecdfbb RW |
8648 | ac_top_srcdir=$ac_top_builddir_sub |
8649 | ac_abs_top_srcdir=$ac_pwd ;; | |
8650 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bae7f79e | 8651 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
8652 | ac_top_srcdir=$srcdir |
8653 | ac_abs_top_srcdir=$srcdir ;; | |
8654 | *) # Relative name. | |
8655 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8656 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8657 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bae7f79e | 8658 | esac |
81ecdfbb | 8659 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bae7f79e | 8660 | |
bae7f79e | 8661 | |
81ecdfbb RW |
8662 | case $ac_mode in |
8663 | :F) | |
8664 | # | |
8665 | # CONFIG_FILE | |
8666 | # | |
bae7f79e ILT |
8667 | |
8668 | case $INSTALL in | |
8669 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 8670 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bae7f79e | 8671 | esac |
81ecdfbb RW |
8672 | ac_MKDIR_P=$MKDIR_P |
8673 | case $MKDIR_P in | |
8674 | [\\/$]* | ?:[\\/]* ) ;; | |
8675 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
8676 | esac | |
8677 | _ACEOF | |
bae7f79e | 8678 | |
81ecdfbb RW |
8679 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8680 | # If the template does not know about datarootdir, expand it. | |
8681 | # FIXME: This hack should be removed a few years after 2.60. | |
8682 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8683 | ac_sed_dataroot=' | |
8684 | /datarootdir/ { | |
8685 | p | |
8686 | q | |
8687 | } | |
8688 | /@datadir@/p | |
8689 | /@docdir@/p | |
8690 | /@infodir@/p | |
8691 | /@localedir@/p | |
8692 | /@mandir@/p' | |
8693 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8694 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8695 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8696 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8697 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8698 | _ACEOF | |
8699 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8700 | ac_datarootdir_hack=' | |
8701 | s&@datadir@&$datadir&g | |
8702 | s&@docdir@&$docdir&g | |
8703 | s&@infodir@&$infodir&g | |
8704 | s&@localedir@&$localedir&g | |
8705 | s&@mandir@&$mandir&g | |
8706 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8707 | esac | |
bae7f79e | 8708 | _ACEOF |
81ecdfbb RW |
8709 | |
8710 | # Neutralize VPATH when `$srcdir' = `.'. | |
8711 | # Shell code in configure.ac might set extrasub. | |
8712 | # FIXME: do we really want to maintain this feature? | |
8713 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8714 | ac_sed_extra="$ac_vpsub | |
bae7f79e ILT |
8715 | $extrasub |
8716 | _ACEOF | |
81ecdfbb | 8717 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e ILT |
8718 | :t |
8719 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
8720 | s|@configure_input@|$ac_sed_conf_input|;t t |
8721 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8722 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8723 | s&@srcdir@&$ac_srcdir&;t t | |
8724 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8725 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8726 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8727 | s&@builddir@&$ac_builddir&;t t | |
8728 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8729 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8730 | s&@INSTALL@&$ac_INSTALL&;t t | |
8731 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
8732 | $ac_datarootdir_hack | |
8733 | " | |
8734 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
8735 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8736 | ||
8737 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
8738 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
8739 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
8740 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8741 | which seems to be undefined. Please make sure it is defined." >&5 | |
8742 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8743 | which seems to be undefined. Please make sure it is defined." >&2;} | |
8744 | ||
8745 | rm -f "$tmp/stdin" | |
bae7f79e | 8746 | case $ac_file in |
81ecdfbb RW |
8747 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
8748 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
8749 | esac \ | |
8750 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8751 | ;; | |
8752 | :H) | |
8753 | # | |
8754 | # CONFIG_HEADER | |
8755 | # | |
bae7f79e | 8756 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
8757 | { |
8758 | $as_echo "/* $configure_input */" \ | |
8759 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
8760 | } >"$tmp/config.h" \ | |
8761 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8762 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
8763 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8764 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
bae7f79e | 8765 | else |
81ecdfbb RW |
8766 | rm -f "$ac_file" |
8767 | mv "$tmp/config.h" "$ac_file" \ | |
8768 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
bae7f79e ILT |
8769 | fi |
8770 | else | |
81ecdfbb RW |
8771 | $as_echo "/* $configure_input */" \ |
8772 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
8773 | || as_fn_error "could not create -" "$LINENO" 5 | |
bae7f79e | 8774 | fi |
81ecdfbb RW |
8775 | # Compute "$ac_file"'s index in $config_headers. |
8776 | _am_arg="$ac_file" | |
bae7f79e ILT |
8777 | _am_stamp_count=1 |
8778 | for _am_header in $config_headers :; do | |
8779 | case $_am_header in | |
81ecdfbb | 8780 | $_am_arg | $_am_arg:* ) |
bae7f79e ILT |
8781 | break ;; |
8782 | * ) | |
8783 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
8784 | esac | |
8785 | done | |
81ecdfbb RW |
8786 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
8787 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8788 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
8789 | X"$_am_arg" : 'X\(//\)$' \| \ | |
8790 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
8791 | $as_echo X"$_am_arg" | | |
8792 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8793 | s//\1/ | |
8794 | q | |
8795 | } | |
8796 | /^X\(\/\/\)[^/].*/{ | |
8797 | s//\1/ | |
8798 | q | |
8799 | } | |
8800 | /^X\(\/\/\)$/{ | |
8801 | s//\1/ | |
8802 | q | |
8803 | } | |
8804 | /^X\(\/\).*/{ | |
8805 | s//\1/ | |
8806 | q | |
8807 | } | |
8808 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
8809 | ;; | |
bae7f79e | 8810 | |
81ecdfbb RW |
8811 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8812 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
8813 | ;; | |
8814 | esac | |
bae7f79e ILT |
8815 | |
8816 | ||
81ecdfbb RW |
8817 | case $ac_file$ac_mode in |
8818 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
8819 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
8820 | # are listed without --file. Let's play safe and only enable the eval | |
8821 | # if we detect the quoting. | |
8822 | case $CONFIG_FILES in | |
8823 | *\'*) eval set x "$CONFIG_FILES" ;; | |
8824 | *) set x $CONFIG_FILES ;; | |
8825 | esac | |
8826 | shift | |
8827 | for mf | |
8828 | do | |
8829 | # Strip MF so we end up with the name of the file. | |
8830 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
8831 | # Check whether this is an Automake generated Makefile or not. | |
8832 | # We used to match only the files named `Makefile.in', but | |
8833 | # some people rename them; so instead we look at the file content. | |
8834 | # Grep'ing the first line is not enough: some people post-process | |
8835 | # each Makefile.in and add a new line on top of each file to say so. | |
8836 | # Grep'ing the whole file is not good either: AIX grep has a line | |
8837 | # limit of 2048, but all sed's we know have understand at least 4000. | |
8838 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
8839 | dirpart=`$as_dirname -- "$mf" || | |
bae7f79e ILT |
8840 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8841 | X"$mf" : 'X\(//\)[^/]' \| \ | |
8842 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8843 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
8844 | $as_echo X"$mf" | | |
8845 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8846 | s//\1/ | |
8847 | q | |
8848 | } | |
8849 | /^X\(\/\/\)[^/].*/{ | |
8850 | s//\1/ | |
8851 | q | |
8852 | } | |
8853 | /^X\(\/\/\)$/{ | |
8854 | s//\1/ | |
8855 | q | |
8856 | } | |
8857 | /^X\(\/\).*/{ | |
8858 | s//\1/ | |
8859 | q | |
8860 | } | |
8861 | s/.*/./; q'` | |
8862 | else | |
8863 | continue | |
8864 | fi | |
8865 | # Extract the definition of DEPDIR, am__include, and am__quote | |
8866 | # from the Makefile without running `make'. | |
8867 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
8868 | test -z "$DEPDIR" && continue | |
8869 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
8870 | test -z "am__include" && continue | |
8871 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
8872 | # When using ansi2knr, U may be empty or an underscore; expand it | |
8873 | U=`sed -n 's/^U = //p' < "$mf"` | |
8874 | # Find all dependency output files, they are included files with | |
8875 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
8876 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
8877 | # expansion. | |
8878 | for file in `sed -n " | |
8879 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
8880 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
8881 | # Make sure the directory exists. | |
8882 | test -f "$dirpart/$file" && continue | |
8883 | fdir=`$as_dirname -- "$file" || | |
bae7f79e ILT |
8884 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8885 | X"$file" : 'X\(//\)[^/]' \| \ | |
8886 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8887 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
8888 | $as_echo X"$file" | | |
8889 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8890 | s//\1/ | |
8891 | q | |
8892 | } | |
8893 | /^X\(\/\/\)[^/].*/{ | |
8894 | s//\1/ | |
8895 | q | |
8896 | } | |
8897 | /^X\(\/\/\)$/{ | |
8898 | s//\1/ | |
8899 | q | |
8900 | } | |
8901 | /^X\(\/\).*/{ | |
8902 | s//\1/ | |
8903 | q | |
8904 | } | |
8905 | s/.*/./; q'` | |
8906 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
8907 | # echo "creating $dirpart/$file" | |
8908 | echo '# dummy' > "$dirpart/$file" | |
bae7f79e | 8909 | done |
bae7f79e | 8910 | done |
81ecdfbb | 8911 | } |
bae7f79e | 8912 | ;; |
81ecdfbb | 8913 | "default-1":C) |
bae7f79e ILT |
8914 | for ac_file in $CONFIG_FILES; do |
8915 | # Support "outfile[:infile[:infile...]]" | |
8916 | case "$ac_file" in | |
8917 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8918 | esac | |
8919 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
8920 | case "$ac_file" in */Makefile.in) | |
8921 | # Adjust a relative srcdir. | |
8922 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
c7791212 | 8923 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
bae7f79e ILT |
8924 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
8925 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
8926 | # In autoconf-2.50 it is called $srcdir. | |
8927 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
8928 | case "$ac_given_srcdir" in | |
8929 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
8930 | /*) top_srcdir="$ac_given_srcdir" ;; | |
8931 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8932 | esac | |
8933 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
8934 | rm -f "$ac_dir/POTFILES" | |
8935 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
8936 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
8937 | POMAKEFILEDEPS="POTFILES.in" | |
8938 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
8939 | # on $ac_dir but don't depend on user-specified configuration | |
8940 | # parameters. | |
8941 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
8942 | # The LINGUAS file contains the set of available languages. | |
8943 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
8944 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
8945 | fi | |
8946 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
8947 | # Hide the ALL_LINGUAS assigment from automake. | |
8948 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
8949 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
8950 | else | |
8951 | # The set of available languages was given in configure.in. | |
8952 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
8953 | fi | |
8954 | case "$ac_given_srcdir" in | |
8955 | .) srcdirpre= ;; | |
8956 | *) srcdirpre='$(srcdir)/' ;; | |
8957 | esac | |
8958 | POFILES= | |
8959 | GMOFILES= | |
8960 | UPDATEPOFILES= | |
8961 | DUMMYPOFILES= | |
8962 | for lang in $ALL_LINGUAS; do | |
8963 | POFILES="$POFILES $srcdirpre$lang.po" | |
8964 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
8965 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
8966 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
8967 | done | |
8968 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
8969 | # environment variable. | |
8970 | INST_LINGUAS= | |
8971 | if test -n "$ALL_LINGUAS"; then | |
8972 | for presentlang in $ALL_LINGUAS; do | |
8973 | useit=no | |
8974 | if test "%UNSET%" != "$LINGUAS"; then | |
8975 | desiredlanguages="$LINGUAS" | |
8976 | else | |
8977 | desiredlanguages="$ALL_LINGUAS" | |
8978 | fi | |
8979 | for desiredlang in $desiredlanguages; do | |
8980 | # Use the presentlang catalog if desiredlang is | |
8981 | # a. equal to presentlang, or | |
8982 | # b. a variant of presentlang (because in this case, | |
8983 | # presentlang can be used as a fallback for messages | |
8984 | # which are not translated in the desiredlang catalog). | |
8985 | case "$desiredlang" in | |
8986 | "$presentlang"*) useit=yes;; | |
8987 | esac | |
8988 | done | |
8989 | if test $useit = yes; then | |
8990 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
8991 | fi | |
8992 | done | |
8993 | fi | |
8994 | CATALOGS= | |
8995 | if test -n "$INST_LINGUAS"; then | |
8996 | for lang in $INST_LINGUAS; do | |
8997 | CATALOGS="$CATALOGS $lang.gmo" | |
8998 | done | |
8999 | fi | |
9000 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
9001 | 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" | |
9002 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
9003 | if test -f "$f"; then | |
9004 | case "$f" in | |
9005 | *.orig | *.bak | *~) ;; | |
9006 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
9007 | esac | |
9008 | fi | |
9009 | done | |
9010 | fi | |
9011 | ;; | |
9012 | esac | |
9013 | done ;; | |
81ecdfbb | 9014 | |
bae7f79e | 9015 | esac |
81ecdfbb | 9016 | done # for ac_tag |
bae7f79e | 9017 | |
bae7f79e | 9018 | |
81ecdfbb | 9019 | as_fn_exit 0 |
bae7f79e | 9020 | _ACEOF |
bae7f79e ILT |
9021 | ac_clean_files=$ac_clean_files_save |
9022 | ||
81ecdfbb RW |
9023 | test $ac_write_fail = 0 || |
9024 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
9025 | ||
bae7f79e ILT |
9026 | |
9027 | # configure is writing to config.log, and then calls config.status. | |
9028 | # config.status does its own redirection, appending to config.log. | |
9029 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9030 | # by configure, so config.status won't be able to write to it; its | |
9031 | # output is simply discarded. So we exec the FD to /dev/null, | |
9032 | # effectively closing config.log, so it can be properly (re)opened and | |
9033 | # appended to by config.status. When coming back to configure, we | |
9034 | # need to make the FD available again. | |
9035 | if test "$no_create" != yes; then | |
9036 | ac_cs_success=: | |
9037 | ac_config_status_args= | |
9038 | test "$silent" = yes && | |
9039 | ac_config_status_args="$ac_config_status_args --quiet" | |
9040 | exec 5>/dev/null | |
9041 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9042 | exec 5>>config.log | |
9043 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9044 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
9045 | $ac_cs_success || as_fn_exit $? |
9046 | fi | |
9047 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
9049 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
bae7f79e ILT |
9050 | fi |
9051 |