2014-07-02 Jing Yu <jingyu@google.com>
[deliverable/binutils-gdb.git] / gold / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
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.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
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 :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
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
31 fi
32
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 }
79 fi
80
81
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
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
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
184 do
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."
228 else
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."
233 fi
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
263
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
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
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
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
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'`
410
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
418
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 |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
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; }
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
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
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';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
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'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
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
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
527 exec 7<&0 </dev/null 6>&1
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
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME='gold'
548 PACKAGE_TARNAME='gold'
549 PACKAGE_VERSION='0.1'
550 PACKAGE_STRING='gold 0.1'
551 PACKAGE_BUGREPORT=''
552 PACKAGE_URL=''
553
554 ac_unique_file="gold.cc"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 ac_subst_vars='am__EXEEXT_FALSE
592 am__EXEEXT_TRUE
593 LTLIBOBJS
594 MAINT
595 MAINTAINER_MODE_FALSE
596 MAINTAINER_MODE_TRUE
597 DLOPEN_LIBS
598 CXXCPP
599 HAVE_NO_USE_LINKER_PLUGIN_FALSE
600 HAVE_NO_USE_LINKER_PLUGIN_TRUE
601 HAVE_PUBNAMES_FALSE
602 HAVE_PUBNAMES_TRUE
603 HAVE_ZLIB_FALSE
604 HAVE_ZLIB_TRUE
605 LIBOBJS
606 LFS_CFLAGS
607 GOLD_LDADD
608 GOLD_LDFLAGS
609 WARN_CXXFLAGS
610 NO_WERROR
611 WARN_CFLAGS
612 IFUNC_STATIC_FALSE
613 IFUNC_STATIC_TRUE
614 IFUNC_FALSE
615 IFUNC_TRUE
616 RANDOM_SEED_CFLAGS
617 TLS_DESCRIPTORS_FALSE
618 TLS_DESCRIPTORS_TRUE
619 TLS_GNU2_DIALECT_FALSE
620 TLS_GNU2_DIALECT_TRUE
621 OMP_SUPPORT_FALSE
622 OMP_SUPPORT_TRUE
623 STATIC_TLS_FALSE
624 STATIC_TLS_TRUE
625 TLS_FALSE
626 TLS_TRUE
627 MERGE_CONSTANTS_FLAG
628 MCMODEL_MEDIUM_FALSE
629 MCMODEL_MEDIUM_TRUE
630 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
631 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
632 HAVE_STATIC_FALSE
633 HAVE_STATIC_TRUE
634 NATIVE_OR_CROSS_LINKER_FALSE
635 NATIVE_OR_CROSS_LINKER_TRUE
636 GCC_FALSE
637 GCC_TRUE
638 NATIVE_LINKER_FALSE
639 NATIVE_LINKER_TRUE
640 MSGMERGE
641 MSGFMT
642 MKINSTALLDIRS
643 CATOBJEXT
644 GENCAT
645 INSTOBJEXT
646 DATADIRNAME
647 CATALOGS
648 POSUB
649 GMSGFMT
650 XGETTEXT
651 INCINTL
652 LIBINTL_DEP
653 LIBINTL
654 USE_NLS
655 EGREP
656 GREP
657 CPP
658 LN_S
659 RANLIB
660 YFLAGS
661 YACC
662 am__fastdepCXX_FALSE
663 am__fastdepCXX_TRUE
664 CXXDEPMODE
665 ac_ct_CXX
666 CXXFLAGS
667 CXX
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__quote
675 am__include
676 DEPDIR
677 OBJEXT
678 EXEEXT
679 ac_ct_CC
680 CPPFLAGS
681 LDFLAGS
682 CFLAGS
683 CC
684 NM
685 TARGETOBJS
686 DEFAULT_TARGET
687 DEFAULT_TARGET_MIPS_FALSE
688 DEFAULT_TARGET_MIPS_TRUE
689 DEFAULT_TARGET_TILEGX_FALSE
690 DEFAULT_TARGET_TILEGX_TRUE
691 DEFAULT_TARGET_X86_64_FALSE
692 DEFAULT_TARGET_X86_64_TRUE
693 DEFAULT_TARGET_SPARC_FALSE
694 DEFAULT_TARGET_SPARC_TRUE
695 DEFAULT_TARGET_POWERPC_FALSE
696 DEFAULT_TARGET_POWERPC_TRUE
697 DEFAULT_TARGET_I386_FALSE
698 DEFAULT_TARGET_I386_TRUE
699 DEFAULT_TARGET_ARM_FALSE
700 DEFAULT_TARGET_ARM_TRUE
701 DEFAULT_TARGET_AARCH64_FALSE
702 DEFAULT_TARGET_AARCH64_TRUE
703 PLUGINS_FALSE
704 PLUGINS_TRUE
705 THREADS_FALSE
706 THREADS_TRUE
707 installed_linker
708 install_as_default
709 am__untar
710 am__tar
711 AMTAR
712 am__leading_dot
713 SET_MAKE
714 AWK
715 mkdir_p
716 MKDIR_P
717 INSTALL_STRIP_PROGRAM
718 STRIP
719 install_sh
720 MAKEINFO
721 AUTOHEADER
722 AUTOMAKE
723 AUTOCONF
724 ACLOCAL
725 VERSION
726 PACKAGE
727 CYGPATH_W
728 am__isrc
729 INSTALL_DATA
730 INSTALL_SCRIPT
731 INSTALL_PROGRAM
732 target_os
733 target_vendor
734 target_cpu
735 target
736 host_os
737 host_vendor
738 host_cpu
739 host
740 build_os
741 build_vendor
742 build_cpu
743 build
744 target_alias
745 host_alias
746 build_alias
747 LIBS
748 ECHO_T
749 ECHO_N
750 ECHO_C
751 DEFS
752 mandir
753 localedir
754 libdir
755 psdir
756 pdfdir
757 dvidir
758 htmldir
759 infodir
760 docdir
761 oldincludedir
762 includedir
763 localstatedir
764 sharedstatedir
765 sysconfdir
766 datadir
767 datarootdir
768 libexecdir
769 sbindir
770 bindir
771 program_transform_name
772 prefix
773 exec_prefix
774 PACKAGE_URL
775 PACKAGE_BUGREPORT
776 PACKAGE_STRING
777 PACKAGE_VERSION
778 PACKAGE_TARNAME
779 PACKAGE_NAME
780 PATH_SEPARATOR
781 SHELL'
782 ac_subst_files=''
783 ac_user_opts='
784 enable_option_checking
785 with_sysroot
786 enable_gold
787 enable_threads
788 enable_plugins
789 enable_targets
790 with_lib_path
791 enable_dependency_tracking
792 enable_nls
793 enable_werror
794 enable_build_warnings
795 with_gold_ldflags
796 with_gold_ldadd
797 with_zlib
798 enable_maintainer_mode
799 '
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CXX
809 CXXFLAGS
810 CCC
811 YACC
812 YFLAGS
813 CPP
814 CXXCPP'
815
816
817 # Initialize some variables set by options.
818 ac_init_help=
819 ac_init_version=false
820 ac_unrecognized_opts=
821 ac_unrecognized_sep=
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
838
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
872 ac_prev=
873 continue
874 fi
875
876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
907 -datadir | --datadir | --datadi | --datad)
908 ac_prev=datadir ;;
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
911
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
919 -disable-* | --disable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=no ;;
934
935 -docdir | --docdir | --docdi | --doc | --do)
936 ac_prev=docdir ;;
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 docdir=$ac_optarg ;;
939
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 ac_prev=dvidir ;;
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 dvidir=$ac_optarg ;;
944
945 -enable-* | --enable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=\$ac_optarg ;;
960
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
969
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
973
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
980
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
985
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
991
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
998
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1003
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1008
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1015
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1020
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1027
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1032
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1036
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1039 no_create=yes ;;
1040
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1044
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1053
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1058
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1065
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1072
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1089
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1094
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1099
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1103
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1109
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1120
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1125
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1130
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1137
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1142
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1145
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1148
1149 -with-* | --with-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=\$ac_optarg ;;
1164
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
1180
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1184
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1191
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1198
1199 -*) as_fn_error "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information."
1201 ;;
1202
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1212
1213 *)
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1219 ;;
1220
1221 esac
1222 done
1223
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error "missing argument to $ac_option"
1227 fi
1228
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 esac
1235 fi
1236
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1242 do
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
1251 case $ac_val in
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 esac
1255 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1256 done
1257
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1261 build=$build_alias
1262 host=$host_alias
1263 target=$target_alias
1264
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1270 If a cross compiler is detected then cross compile mode will be used." >&2
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1273 fi
1274 fi
1275
1276 ac_tool_prefix=
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279 test "$silent" = yes && exec 6>/dev/null
1280
1281
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di=`ls -di .` &&
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error "working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error "pwd does not report name of working directory"
1288
1289
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
1317 srcdir=$ac_confdir
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 srcdir=..
1320 fi
1321 else
1322 ac_srcdir_defaulted=no
1323 fi
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1327 fi
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 ac_abs_confdir=`(
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1331 pwd)`
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335 fi
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1339 case $srcdir in
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 esac
1342 for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 done
1348
1349 #
1350 # Report the --help message.
1351 #
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1357
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1362
1363 Defaults for the options are specified in brackets.
1364
1365 Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1381
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1386
1387 For better control, use the options below.
1388
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409 _ACEOF
1410
1411 cat <<\_ACEOF
1412
1413 Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417
1418 System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 --target=TARGET configure for building compilers for TARGET [HOST]
1422 _ACEOF
1423 fi
1424
1425 if test -n "$ac_init_help"; then
1426 case $ac_init_help in
1427 short | recursive ) echo "Configuration of gold 0.1:";;
1428 esac
1429 cat <<\_ACEOF
1430
1431 Optional Features:
1432 --disable-option-checking ignore unrecognized --enable/--with options
1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1436 --enable-threads multi-threaded linking
1437 --enable-plugins linker plugins
1438 --enable-targets alternative target configurations
1439 --disable-dependency-tracking speeds up one-time build
1440 --enable-dependency-tracking do not reject slow dependency extractors
1441 --disable-nls do not use Native Language Support
1442 --enable-werror treat compile warnings as errors
1443 --enable-build-warnings enable build-time compiler warnings
1444 --enable-maintainer-mode enable make rules and dependencies not useful
1445 (and sometimes confusing) to the casual installer
1446
1447 Optional Packages:
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --with-sysroot=DIR search for usr/lib et al within DIR
1451 --with-lib-path=dir1:dir2... set default LIB_PATH
1452 --with-gold-ldflags=FLAGS additional link flags for gold
1453 --with-gold-ldadd=LIBS additional libraries for gold
1454 --with-zlib include zlib support (auto/yes/no) default=auto
1455
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
1466 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1467 the first program found out of: `bison -y', `byacc', `yacc'.
1468 YFLAGS The list of arguments that will be passed by default to $YACC.
1469 This script will default YFLAGS to the empty string to avoid a
1470 default value of `-d' given by some make applications.
1471 CPP C preprocessor
1472 CXXCPP C++ preprocessor
1473
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1476
1477 Report bugs to the package provider.
1478 _ACEOF
1479 ac_status=$?
1480 fi
1481
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1489
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *)
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1505
1506 case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1530 else
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1534 done
1535 fi
1536
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1539 cat <<\_ACEOF
1540 gold configure 0.1
1541 generated by GNU Autoconf 2.64
1542
1543 Copyright (C) 2009 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1546 _ACEOF
1547 exit
1548 fi
1549
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1553
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile ()
1558 {
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586 fi
1587 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1588 return $ac_retval
1589
1590 } # ac_fn_c_try_compile
1591
1592 # ac_fn_cxx_try_compile LINENO
1593 # ----------------------------
1594 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_cxx_try_compile ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_cxx_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623 ac_retval=1
1624 fi
1625 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1626 return $ac_retval
1627
1628 } # ac_fn_cxx_try_compile
1629
1630 # ac_fn_c_try_cpp LINENO
1631 # ----------------------
1632 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_cpp ()
1634 {
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_cpp conftest.$ac_ext"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } >/dev/null && {
1652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 }; then :
1655 ac_retval=0
1656 else
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1
1661 fi
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 return $ac_retval
1664
1665 } # ac_fn_c_try_cpp
1666
1667 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1670 # the include files in INCLUDES and setting the cache variable VAR
1671 # accordingly.
1672 ac_fn_c_check_header_mongrel ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1679 $as_echo_n "(cached) " >&6
1680 fi
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 else
1685 # Is the header compilable?
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1687 $as_echo_n "checking $2 usability... " >&6; }
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1690 $4
1691 #include <$2>
1692 _ACEOF
1693 if ac_fn_c_try_compile "$LINENO"; then :
1694 ac_header_compiler=yes
1695 else
1696 ac_header_compiler=no
1697 fi
1698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1700 $as_echo "$ac_header_compiler" >&6; }
1701
1702 # Is the header present?
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1704 $as_echo_n "checking $2 presence... " >&6; }
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1707 #include <$2>
1708 _ACEOF
1709 if ac_fn_c_try_cpp "$LINENO"; then :
1710 ac_header_preproc=yes
1711 else
1712 ac_header_preproc=no
1713 fi
1714 rm -f conftest.err conftest.$ac_ext
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1716 $as_echo "$ac_header_preproc" >&6; }
1717
1718 # So? What about this header?
1719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1720 yes:no: )
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1722 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1724 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1725 ;;
1726 no:yes:* )
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1728 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1730 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1732 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1734 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1736 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1737 ;;
1738 esac
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1743 else
1744 eval "$3=\$ac_header_compiler"
1745 fi
1746 eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 fi
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751
1752 } # ac_fn_c_check_header_mongrel
1753
1754 # ac_fn_c_try_run LINENO
1755 # ----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757 # that executables *can* be run.
1758 ac_fn_c_try_run ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_link"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>&5
1769 ac_status=$?
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772 { { case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_try") 2>&5
1779 ac_status=$?
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; }; }; then :
1782 ac_retval=0
1783 else
1784 $as_echo "$as_me: program exited with status $ac_status" >&5
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 ac_retval=$ac_status
1789 fi
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1793
1794 } # ac_fn_c_try_run
1795
1796 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_c_check_header_compile ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806 $as_echo_n "(cached) " >&6
1807 else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 $4
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"; then :
1814 eval "$3=yes"
1815 else
1816 eval "$3=no"
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 fi
1820 eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824
1825 } # ac_fn_c_check_header_compile
1826
1827 # ac_fn_c_try_link LINENO
1828 # -----------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_c_try_link ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext conftest$ac_exeext
1834 if { { ac_try="$ac_link"
1835 case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1842 ac_status=$?
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1847 fi
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest$ac_exeext && {
1853 test "$cross_compiling" = yes ||
1854 $as_test_x conftest$ac_exeext
1855 }; then :
1856 ac_retval=0
1857 else
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1860
1861 ac_retval=1
1862 fi
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 return $ac_retval
1870
1871 } # ac_fn_c_try_link
1872
1873 # ac_fn_c_check_func LINENO FUNC VAR
1874 # ----------------------------------
1875 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1876 ac_fn_c_check_func ()
1877 {
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 $as_echo_n "(cached) " >&6
1883 else
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1888 #define $2 innocuous_$2
1889
1890 /* System header to define __stub macros and hopefully few prototypes,
1891 which can conflict with char $2 (); below.
1892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1893 <limits.h> exists even on freestanding compilers. */
1894
1895 #ifdef __STDC__
1896 # include <limits.h>
1897 #else
1898 # include <assert.h>
1899 #endif
1900
1901 #undef $2
1902
1903 /* Override any GCC internal prototype to avoid an error.
1904 Use char because int might match the return type of a GCC
1905 builtin and then its argument prototype would still apply. */
1906 #ifdef __cplusplus
1907 extern "C"
1908 #endif
1909 char $2 ();
1910 /* The GNU C library defines this for functions which it implements
1911 to always fail with ENOSYS. Some functions are actually named
1912 something starting with __ and the normal name is an alias. */
1913 #if defined __stub_$2 || defined __stub___$2
1914 choke me
1915 #endif
1916
1917 int
1918 main ()
1919 {
1920 return $2 ();
1921 ;
1922 return 0;
1923 }
1924 _ACEOF
1925 if ac_fn_c_try_link "$LINENO"; then :
1926 eval "$3=yes"
1927 else
1928 eval "$3=no"
1929 fi
1930 rm -f core conftest.err conftest.$ac_objext \
1931 conftest$ac_exeext conftest.$ac_ext
1932 fi
1933 eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1937
1938 } # ac_fn_c_check_func
1939
1940 # ac_fn_c_check_decl LINENO SYMBOL VAR
1941 # ------------------------------------
1942 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1943 ac_fn_c_check_decl ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 as_decl_name=`echo $2|sed 's/ *(.*//'`
1947 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1949 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1950 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1951 $as_echo_n "(cached) " >&6
1952 else
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 $4
1956 int
1957 main ()
1958 {
1959 #ifndef $as_decl_name
1960 #ifdef __cplusplus
1961 (void) $as_decl_use;
1962 #else
1963 (void) $as_decl_name;
1964 #endif
1965 #endif
1966
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$3=yes"
1973 else
1974 eval "$3=no"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982
1983 } # ac_fn_c_check_decl
1984
1985 # ac_fn_cxx_try_cpp LINENO
1986 # ------------------------
1987 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1988 ac_fn_cxx_try_cpp ()
1989 {
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 if { { ac_try="$ac_cpp conftest.$ac_ext"
1992 case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1999 ac_status=$?
2000 if test -s conftest.err; then
2001 grep -v '^ *+' conftest.err >conftest.er1
2002 cat conftest.er1 >&5
2003 mv -f conftest.er1 conftest.err
2004 fi
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } >/dev/null && {
2007 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2008 test ! -s conftest.err
2009 }; then :
2010 ac_retval=0
2011 else
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015 ac_retval=1
2016 fi
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018 return $ac_retval
2019
2020 } # ac_fn_cxx_try_cpp
2021
2022 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2023 # ---------------------------------------------------------
2024 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2025 # the include files in INCLUDES and setting the cache variable VAR
2026 # accordingly.
2027 ac_fn_cxx_check_header_mongrel ()
2028 {
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2034 $as_echo_n "(cached) " >&6
2035 fi
2036 eval ac_res=\$$3
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039 else
2040 # Is the header compilable?
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2042 $as_echo_n "checking $2 usability... " >&6; }
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2045 $4
2046 #include <$2>
2047 _ACEOF
2048 if ac_fn_cxx_try_compile "$LINENO"; then :
2049 ac_header_compiler=yes
2050 else
2051 ac_header_compiler=no
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2055 $as_echo "$ac_header_compiler" >&6; }
2056
2057 # Is the header present?
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2059 $as_echo_n "checking $2 presence... " >&6; }
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 #include <$2>
2063 _ACEOF
2064 if ac_fn_cxx_try_cpp "$LINENO"; then :
2065 ac_header_preproc=yes
2066 else
2067 ac_header_preproc=no
2068 fi
2069 rm -f conftest.err conftest.$ac_ext
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2071 $as_echo "$ac_header_preproc" >&6; }
2072
2073 # So? What about this header?
2074 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2075 yes:no: )
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2077 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2079 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2080 ;;
2081 no:yes:* )
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2083 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2085 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2087 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2089 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2091 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2092 ;;
2093 esac
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095 $as_echo_n "checking for $2... " >&6; }
2096 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2097 $as_echo_n "(cached) " >&6
2098 else
2099 eval "$3=\$ac_header_compiler"
2100 fi
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 fi
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2106
2107 } # ac_fn_cxx_check_header_mongrel
2108
2109 # ac_fn_cxx_try_link LINENO
2110 # -------------------------
2111 # Try to link conftest.$ac_ext, and return whether this succeeded.
2112 ac_fn_cxx_try_link ()
2113 {
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 rm -f conftest.$ac_objext conftest$ac_exeext
2116 if { { ac_try="$ac_link"
2117 case "(($ac_try" in
2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119 *) ac_try_echo=$ac_try;;
2120 esac
2121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2122 $as_echo "$ac_try_echo"; } >&5
2123 (eval "$ac_link") 2>conftest.err
2124 ac_status=$?
2125 if test -s conftest.err; then
2126 grep -v '^ *+' conftest.err >conftest.er1
2127 cat conftest.er1 >&5
2128 mv -f conftest.er1 conftest.err
2129 fi
2130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2131 test $ac_status = 0; } && {
2132 test -z "$ac_cxx_werror_flag" ||
2133 test ! -s conftest.err
2134 } && test -s conftest$ac_exeext && {
2135 test "$cross_compiling" = yes ||
2136 $as_test_x conftest$ac_exeext
2137 }; then :
2138 ac_retval=0
2139 else
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2142
2143 ac_retval=1
2144 fi
2145 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2146 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2147 # interfere with the next link command; also delete a directory that is
2148 # left behind by Apple's compiler. We do this before executing the actions.
2149 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2150 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2151 return $ac_retval
2152
2153 } # ac_fn_cxx_try_link
2154
2155 # ac_fn_cxx_check_func LINENO FUNC VAR
2156 # ------------------------------------
2157 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2158 ac_fn_cxx_check_func ()
2159 {
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162 $as_echo_n "checking for $2... " >&6; }
2163 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2164 $as_echo_n "(cached) " >&6
2165 else
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2168 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2170 #define $2 innocuous_$2
2171
2172 /* System header to define __stub macros and hopefully few prototypes,
2173 which can conflict with char $2 (); below.
2174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2175 <limits.h> exists even on freestanding compilers. */
2176
2177 #ifdef __STDC__
2178 # include <limits.h>
2179 #else
2180 # include <assert.h>
2181 #endif
2182
2183 #undef $2
2184
2185 /* Override any GCC internal prototype to avoid an error.
2186 Use char because int might match the return type of a GCC
2187 builtin and then its argument prototype would still apply. */
2188 #ifdef __cplusplus
2189 extern "C"
2190 #endif
2191 char $2 ();
2192 /* The GNU C library defines this for functions which it implements
2193 to always fail with ENOSYS. Some functions are actually named
2194 something starting with __ and the normal name is an alias. */
2195 #if defined __stub_$2 || defined __stub___$2
2196 choke me
2197 #endif
2198
2199 int
2200 main ()
2201 {
2202 return $2 ();
2203 ;
2204 return 0;
2205 }
2206 _ACEOF
2207 if ac_fn_cxx_try_link "$LINENO"; then :
2208 eval "$3=yes"
2209 else
2210 eval "$3=no"
2211 fi
2212 rm -f core conftest.err conftest.$ac_objext \
2213 conftest$ac_exeext conftest.$ac_ext
2214 fi
2215 eval ac_res=\$$3
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2219
2220 } # ac_fn_cxx_check_func
2221
2222 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2223 # --------------------------------------
2224 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2225 ac_fn_cxx_check_decl ()
2226 {
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 as_decl_name=`echo $2|sed 's/ *(.*//'`
2229 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2231 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 $as_echo_n "(cached) " >&6
2234 else
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2237 $4
2238 int
2239 main ()
2240 {
2241 #ifndef $as_decl_name
2242 #ifdef __cplusplus
2243 (void) $as_decl_use;
2244 #else
2245 (void) $as_decl_name;
2246 #endif
2247 #endif
2248
2249 ;
2250 return 0;
2251 }
2252 _ACEOF
2253 if ac_fn_cxx_try_compile "$LINENO"; then :
2254 eval "$3=yes"
2255 else
2256 eval "$3=no"
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 fi
2260 eval ac_res=\$$3
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264
2265 } # ac_fn_cxx_check_decl
2266 cat >config.log <<_ACEOF
2267 This file contains any messages produced by compilers while
2268 running configure, to aid debugging if configure makes a mistake.
2269
2270 It was created by gold $as_me 0.1, which was
2271 generated by GNU Autoconf 2.64. Invocation command line was
2272
2273 $ $0 $@
2274
2275 _ACEOF
2276 exec 5>>config.log
2277 {
2278 cat <<_ASUNAME
2279 ## --------- ##
2280 ## Platform. ##
2281 ## --------- ##
2282
2283 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2284 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2285 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2286 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2287 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2288
2289 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2290 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2291
2292 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2293 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2294 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2295 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2296 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2297 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2298 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2299
2300 _ASUNAME
2301
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 $as_echo "PATH: $as_dir"
2308 done
2309 IFS=$as_save_IFS
2310
2311 } >&5
2312
2313 cat >&5 <<_ACEOF
2314
2315
2316 ## ----------- ##
2317 ## Core tests. ##
2318 ## ----------- ##
2319
2320 _ACEOF
2321
2322
2323 # Keep a trace of the command line.
2324 # Strip out --no-create and --no-recursion so they do not pile up.
2325 # Strip out --silent because we don't want to record it for future runs.
2326 # Also quote any args containing shell meta-characters.
2327 # Make two passes to allow for proper duplicate-argument suppression.
2328 ac_configure_args=
2329 ac_configure_args0=
2330 ac_configure_args1=
2331 ac_must_keep_next=false
2332 for ac_pass in 1 2
2333 do
2334 for ac_arg
2335 do
2336 case $ac_arg in
2337 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2339 | -silent | --silent | --silen | --sile | --sil)
2340 continue ;;
2341 *\'*)
2342 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2343 esac
2344 case $ac_pass in
2345 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2346 2)
2347 as_fn_append ac_configure_args1 " '$ac_arg'"
2348 if test $ac_must_keep_next = true; then
2349 ac_must_keep_next=false # Got value, back to normal.
2350 else
2351 case $ac_arg in
2352 *=* | --config-cache | -C | -disable-* | --disable-* \
2353 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2354 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2355 | -with-* | --with-* | -without-* | --without-* | --x)
2356 case "$ac_configure_args0 " in
2357 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2358 esac
2359 ;;
2360 -* ) ac_must_keep_next=true ;;
2361 esac
2362 fi
2363 as_fn_append ac_configure_args " '$ac_arg'"
2364 ;;
2365 esac
2366 done
2367 done
2368 { ac_configure_args0=; unset ac_configure_args0;}
2369 { ac_configure_args1=; unset ac_configure_args1;}
2370
2371 # When interrupted or exit'd, cleanup temporary files, and complete
2372 # config.log. We remove comments because anyway the quotes in there
2373 # would cause problems or look ugly.
2374 # WARNING: Use '\'' to represent an apostrophe within the trap.
2375 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2376 trap 'exit_status=$?
2377 # Save into config.log some information that might help in debugging.
2378 {
2379 echo
2380
2381 cat <<\_ASBOX
2382 ## ---------------- ##
2383 ## Cache variables. ##
2384 ## ---------------- ##
2385 _ASBOX
2386 echo
2387 # The following way of writing the cache mishandles newlines in values,
2388 (
2389 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2390 eval ac_val=\$$ac_var
2391 case $ac_val in #(
2392 *${as_nl}*)
2393 case $ac_var in #(
2394 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2395 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2396 esac
2397 case $ac_var in #(
2398 _ | IFS | as_nl) ;; #(
2399 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2400 *) { eval $ac_var=; unset $ac_var;} ;;
2401 esac ;;
2402 esac
2403 done
2404 (set) 2>&1 |
2405 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2406 *${as_nl}ac_space=\ *)
2407 sed -n \
2408 "s/'\''/'\''\\\\'\'''\''/g;
2409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2410 ;; #(
2411 *)
2412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2413 ;;
2414 esac |
2415 sort
2416 )
2417 echo
2418
2419 cat <<\_ASBOX
2420 ## ----------------- ##
2421 ## Output variables. ##
2422 ## ----------------- ##
2423 _ASBOX
2424 echo
2425 for ac_var in $ac_subst_vars
2426 do
2427 eval ac_val=\$$ac_var
2428 case $ac_val in
2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430 esac
2431 $as_echo "$ac_var='\''$ac_val'\''"
2432 done | sort
2433 echo
2434
2435 if test -n "$ac_subst_files"; then
2436 cat <<\_ASBOX
2437 ## ------------------- ##
2438 ## File substitutions. ##
2439 ## ------------------- ##
2440 _ASBOX
2441 echo
2442 for ac_var in $ac_subst_files
2443 do
2444 eval ac_val=\$$ac_var
2445 case $ac_val in
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447 esac
2448 $as_echo "$ac_var='\''$ac_val'\''"
2449 done | sort
2450 echo
2451 fi
2452
2453 if test -s confdefs.h; then
2454 cat <<\_ASBOX
2455 ## ----------- ##
2456 ## confdefs.h. ##
2457 ## ----------- ##
2458 _ASBOX
2459 echo
2460 cat confdefs.h
2461 echo
2462 fi
2463 test "$ac_signal" != 0 &&
2464 $as_echo "$as_me: caught signal $ac_signal"
2465 $as_echo "$as_me: exit $exit_status"
2466 } >&5
2467 rm -f core *.core core.conftest.* &&
2468 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2469 exit $exit_status
2470 ' 0
2471 for ac_signal in 1 2 13 15; do
2472 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2473 done
2474 ac_signal=0
2475
2476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2477 rm -f -r conftest* confdefs.h
2478
2479 $as_echo "/* confdefs.h */" > confdefs.h
2480
2481 # Predefined preprocessor variables.
2482
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_NAME "$PACKAGE_NAME"
2485 _ACEOF
2486
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2489 _ACEOF
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2493 _ACEOF
2494
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_STRING "$PACKAGE_STRING"
2497 _ACEOF
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2501 _ACEOF
2502
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_URL "$PACKAGE_URL"
2505 _ACEOF
2506
2507
2508 # Let the site file select an alternate cache file if it wants to.
2509 # Prefer an explicitly selected file to automatically selected ones.
2510 ac_site_file1=NONE
2511 ac_site_file2=NONE
2512 if test -n "$CONFIG_SITE"; then
2513 ac_site_file1=$CONFIG_SITE
2514 elif test "x$prefix" != xNONE; then
2515 ac_site_file1=$prefix/share/config.site
2516 ac_site_file2=$prefix/etc/config.site
2517 else
2518 ac_site_file1=$ac_default_prefix/share/config.site
2519 ac_site_file2=$ac_default_prefix/etc/config.site
2520 fi
2521 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2522 do
2523 test "x$ac_site_file" = xNONE && continue
2524 if test -r "$ac_site_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2526 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2527 sed 's/^/| /' "$ac_site_file" >&5
2528 . "$ac_site_file"
2529 fi
2530 done
2531
2532 if test -r "$cache_file"; then
2533 # Some versions of bash will fail to source /dev/null (special
2534 # files actually), so we avoid doing that.
2535 if test -f "$cache_file"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2537 $as_echo "$as_me: loading cache $cache_file" >&6;}
2538 case $cache_file in
2539 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2540 *) . "./$cache_file";;
2541 esac
2542 fi
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2545 $as_echo "$as_me: creating cache $cache_file" >&6;}
2546 >$cache_file
2547 fi
2548
2549 # Check that the precious variables saved in the cache have kept the same
2550 # value.
2551 ac_cache_corrupted=false
2552 for ac_var in $ac_precious_vars; do
2553 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2554 eval ac_new_set=\$ac_env_${ac_var}_set
2555 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2556 eval ac_new_val=\$ac_env_${ac_var}_value
2557 case $ac_old_set,$ac_new_set in
2558 set,)
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2560 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2561 ac_cache_corrupted=: ;;
2562 ,set)
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2564 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2565 ac_cache_corrupted=: ;;
2566 ,);;
2567 *)
2568 if test "x$ac_old_val" != "x$ac_new_val"; then
2569 # differences in whitespace do not lead to failure.
2570 ac_old_val_w=`echo x $ac_old_val`
2571 ac_new_val_w=`echo x $ac_new_val`
2572 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2574 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2575 ac_cache_corrupted=:
2576 else
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2578 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2579 eval $ac_var=\$ac_old_val
2580 fi
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2582 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2584 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2585 fi;;
2586 esac
2587 # Pass precious variables to config.status.
2588 if test "$ac_new_set" = set; then
2589 case $ac_new_val in
2590 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2591 *) ac_arg=$ac_var=$ac_new_val ;;
2592 esac
2593 case " $ac_configure_args " in
2594 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2595 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2596 esac
2597 fi
2598 done
2599 if $ac_cache_corrupted; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2603 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2604 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2605 fi
2606 ## -------------------- ##
2607 ## Main body of script. ##
2608 ## -------------------- ##
2609
2610 ac_ext=c
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2615
2616
2617
2618
2619
2620
2621
2622 ac_aux_dir=
2623 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2624 for ac_t in install-sh install.sh shtool; do
2625 if test -f "$ac_dir/$ac_t"; then
2626 ac_aux_dir=$ac_dir
2627 ac_install_sh="$ac_aux_dir/$ac_t -c"
2628 break 2
2629 fi
2630 done
2631 done
2632 if test -z "$ac_aux_dir"; then
2633 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2634 fi
2635
2636 # These three variables are undocumented and unsupported,
2637 # and are intended to be withdrawn in a future Autoconf release.
2638 # They can cause serious problems if a builder's source tree is in a directory
2639 # whose full name contains unusual characters.
2640 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2641 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2642 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2643
2644
2645 # Make sure we can run config.sub.
2646 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2647 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2648
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2650 $as_echo_n "checking build system type... " >&6; }
2651 if test "${ac_cv_build+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 ac_build_alias=$build_alias
2655 test "x$ac_build_alias" = x &&
2656 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2657 test "x$ac_build_alias" = x &&
2658 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2659 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2660 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2661
2662 fi
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2664 $as_echo "$ac_cv_build" >&6; }
2665 case $ac_cv_build in
2666 *-*-*) ;;
2667 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2668 esac
2669 build=$ac_cv_build
2670 ac_save_IFS=$IFS; IFS='-'
2671 set x $ac_cv_build
2672 shift
2673 build_cpu=$1
2674 build_vendor=$2
2675 shift; shift
2676 # Remember, the first character of IFS is used to create $*,
2677 # except with old shells:
2678 build_os=$*
2679 IFS=$ac_save_IFS
2680 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2681
2682
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2684 $as_echo_n "checking host system type... " >&6; }
2685 if test "${ac_cv_host+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test "x$host_alias" = x; then
2689 ac_cv_host=$ac_cv_build
2690 else
2691 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2692 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2693 fi
2694
2695 fi
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2697 $as_echo "$ac_cv_host" >&6; }
2698 case $ac_cv_host in
2699 *-*-*) ;;
2700 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2701 esac
2702 host=$ac_cv_host
2703 ac_save_IFS=$IFS; IFS='-'
2704 set x $ac_cv_host
2705 shift
2706 host_cpu=$1
2707 host_vendor=$2
2708 shift; shift
2709 # Remember, the first character of IFS is used to create $*,
2710 # except with old shells:
2711 host_os=$*
2712 IFS=$ac_save_IFS
2713 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2714
2715
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2717 $as_echo_n "checking target system type... " >&6; }
2718 if test "${ac_cv_target+set}" = set; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 if test "x$target_alias" = x; then
2722 ac_cv_target=$ac_cv_host
2723 else
2724 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2725 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2726 fi
2727
2728 fi
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2730 $as_echo "$ac_cv_target" >&6; }
2731 case $ac_cv_target in
2732 *-*-*) ;;
2733 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2734 esac
2735 target=$ac_cv_target
2736 ac_save_IFS=$IFS; IFS='-'
2737 set x $ac_cv_target
2738 shift
2739 target_cpu=$1
2740 target_vendor=$2
2741 shift; shift
2742 # Remember, the first character of IFS is used to create $*,
2743 # except with old shells:
2744 target_os=$*
2745 IFS=$ac_save_IFS
2746 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2747
2748
2749 # The aliases save the names the user supplied, while $host etc.
2750 # will get canonicalized.
2751 test -n "$target_alias" &&
2752 test "$program_prefix$program_suffix$program_transform_name" = \
2753 NONENONEs,x,x, &&
2754 program_prefix=${target_alias}-
2755
2756 am__api_version='1.11'
2757
2758 # Find a good install program. We prefer a C program (faster),
2759 # so one script is as good as another. But avoid the broken or
2760 # incompatible versions:
2761 # SysV /etc/install, /usr/sbin/install
2762 # SunOS /usr/etc/install
2763 # IRIX /sbin/install
2764 # AIX /bin/install
2765 # AmigaOS /C/install, which installs bootblocks on floppy discs
2766 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2767 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2768 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2769 # OS/2's system install, which has a completely different semantic
2770 # ./install, which can be erroneously created by make from ./install.sh.
2771 # Reject install programs that cannot install multiple files.
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2773 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2774 if test -z "$INSTALL"; then
2775 if test "${ac_cv_path_install+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 # Account for people who put trailing slashes in PATH elements.
2784 case $as_dir/ in #((
2785 ./ | .// | /[cC]/* | \
2786 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2787 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2788 /usr/ucb/* ) ;;
2789 *)
2790 # OSF1 and SCO ODT 3.0 have their own names for install.
2791 # Don't use installbsd from OSF since it installs stuff as root
2792 # by default.
2793 for ac_prog in ginstall scoinst install; do
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2796 if test $ac_prog = install &&
2797 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2798 # AIX install. It has an incompatible calling convention.
2799 :
2800 elif test $ac_prog = install &&
2801 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2802 # program-specific install script used by HP pwplus--don't use.
2803 :
2804 else
2805 rm -rf conftest.one conftest.two conftest.dir
2806 echo one > conftest.one
2807 echo two > conftest.two
2808 mkdir conftest.dir
2809 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2810 test -s conftest.one && test -s conftest.two &&
2811 test -s conftest.dir/conftest.one &&
2812 test -s conftest.dir/conftest.two
2813 then
2814 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2815 break 3
2816 fi
2817 fi
2818 fi
2819 done
2820 done
2821 ;;
2822 esac
2823
2824 done
2825 IFS=$as_save_IFS
2826
2827 rm -rf conftest.one conftest.two conftest.dir
2828
2829 fi
2830 if test "${ac_cv_path_install+set}" = set; then
2831 INSTALL=$ac_cv_path_install
2832 else
2833 # As a last resort, use the slow shell script. Don't cache a
2834 # value for INSTALL within a source directory, because that will
2835 # break other packages using the cache if that directory is
2836 # removed, or if the value is a relative name.
2837 INSTALL=$ac_install_sh
2838 fi
2839 fi
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2841 $as_echo "$INSTALL" >&6; }
2842
2843 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2844 # It thinks the first close brace ends the variable substitution.
2845 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2846
2847 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2848
2849 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2850
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2852 $as_echo_n "checking whether build environment is sane... " >&6; }
2853 # Just in case
2854 sleep 1
2855 echo timestamp > conftest.file
2856 # Reject unsafe characters in $srcdir or the absolute working directory
2857 # name. Accept space and tab only in the latter.
2858 am_lf='
2859 '
2860 case `pwd` in
2861 *[\\\"\#\$\&\'\`$am_lf]*)
2862 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2863 esac
2864 case $srcdir in
2865 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2866 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2867 esac
2868
2869 # Do `set' in a subshell so we don't clobber the current shell's
2870 # arguments. Must try -L first in case configure is actually a
2871 # symlink; some systems play weird games with the mod time of symlinks
2872 # (eg FreeBSD returns the mod time of the symlink's containing
2873 # directory).
2874 if (
2875 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2876 if test "$*" = "X"; then
2877 # -L didn't work.
2878 set X `ls -t "$srcdir/configure" conftest.file`
2879 fi
2880 rm -f conftest.file
2881 if test "$*" != "X $srcdir/configure conftest.file" \
2882 && test "$*" != "X conftest.file $srcdir/configure"; then
2883
2884 # If neither matched, then we have a broken ls. This can happen
2885 # if, for instance, CONFIG_SHELL is bash and it inherits a
2886 # broken ls alias from the environment. This has actually
2887 # happened. Such a system could not be considered "sane".
2888 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2889 alias in your environment" "$LINENO" 5
2890 fi
2891
2892 test "$2" = conftest.file
2893 )
2894 then
2895 # Ok.
2896 :
2897 else
2898 as_fn_error "newly created file is older than distributed files!
2899 Check your system clock" "$LINENO" 5
2900 fi
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2902 $as_echo "yes" >&6; }
2903 test "$program_prefix" != NONE &&
2904 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2905 # Use a double $ so make ignores it.
2906 test "$program_suffix" != NONE &&
2907 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2908 # Double any \ or $.
2909 # By default was `s,x,x', remove it if useless.
2910 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2911 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2912
2913 # expand $ac_aux_dir to an absolute path
2914 am_aux_dir=`cd $ac_aux_dir && pwd`
2915
2916 if test x"${MISSING+set}" != xset; then
2917 case $am_aux_dir in
2918 *\ * | *\ *)
2919 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2920 *)
2921 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2922 esac
2923 fi
2924 # Use eval to expand $SHELL
2925 if eval "$MISSING --run true"; then
2926 am_missing_run="$MISSING --run "
2927 else
2928 am_missing_run=
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2930 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2931 fi
2932
2933 if test x"${install_sh}" != xset; then
2934 case $am_aux_dir in
2935 *\ * | *\ *)
2936 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2937 *)
2938 install_sh="\${SHELL} $am_aux_dir/install-sh"
2939 esac
2940 fi
2941
2942 # Installed binaries are usually stripped using `strip' when the user
2943 # run `make install-strip'. However `strip' might not be the right
2944 # tool to use in cross-compilation environments, therefore Automake
2945 # will honor the `STRIP' environment variable to overrule this program.
2946 if test "$cross_compiling" != no; then
2947 if test -n "$ac_tool_prefix"; then
2948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}strip; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if test "${ac_cv_prog_STRIP+set}" = set; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test -n "$STRIP"; then
2956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969 done
2970 done
2971 IFS=$as_save_IFS
2972
2973 fi
2974 fi
2975 STRIP=$ac_cv_prog_STRIP
2976 if test -n "$STRIP"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2978 $as_echo "$STRIP" >&6; }
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 fi
2983
2984
2985 fi
2986 if test -z "$ac_cv_prog_STRIP"; then
2987 ac_ct_STRIP=$STRIP
2988 # Extract the first word of "strip", so it can be a program name with args.
2989 set dummy strip; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$ac_ct_STRIP"; then
2996 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005 ac_cv_prog_ac_ct_STRIP="strip"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3008 fi
3009 done
3010 done
3011 IFS=$as_save_IFS
3012
3013 fi
3014 fi
3015 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3016 if test -n "$ac_ct_STRIP"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3018 $as_echo "$ac_ct_STRIP" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 fi
3023
3024 if test "x$ac_ct_STRIP" = x; then
3025 STRIP=":"
3026 else
3027 case $cross_compiling:$ac_tool_warned in
3028 yes:)
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031 ac_tool_warned=yes ;;
3032 esac
3033 STRIP=$ac_ct_STRIP
3034 fi
3035 else
3036 STRIP="$ac_cv_prog_STRIP"
3037 fi
3038
3039 fi
3040 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3041
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3043 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3044 if test -z "$MKDIR_P"; then
3045 if test "${ac_cv_path_mkdir+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3050 do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_prog in mkdir gmkdir; do
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3056 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3057 'mkdir (GNU coreutils) '* | \
3058 'mkdir (coreutils) '* | \
3059 'mkdir (fileutils) '4.1*)
3060 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3061 break 3;;
3062 esac
3063 done
3064 done
3065 done
3066 IFS=$as_save_IFS
3067
3068 fi
3069
3070 if test "${ac_cv_path_mkdir+set}" = set; then
3071 MKDIR_P="$ac_cv_path_mkdir -p"
3072 else
3073 # As a last resort, use the slow shell script. Don't cache a
3074 # value for MKDIR_P within a source directory, because that will
3075 # break other packages using the cache if that directory is
3076 # removed, or if the value is a relative name.
3077 test -d ./--version && rmdir ./--version
3078 MKDIR_P="$ac_install_sh -d"
3079 fi
3080 fi
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3082 $as_echo "$MKDIR_P" >&6; }
3083
3084 mkdir_p="$MKDIR_P"
3085 case $mkdir_p in
3086 [\\/$]* | ?:[\\/]*) ;;
3087 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3088 esac
3089
3090 for ac_prog in gawk mawk nawk awk
3091 do
3092 # Extract the first word of "$ac_prog", so it can be a program name with args.
3093 set dummy $ac_prog; ac_word=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if test "${ac_cv_prog_AWK+set}" = set; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 if test -n "$AWK"; then
3100 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 ac_cv_prog_AWK="$ac_prog"
3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 break 2
3112 fi
3113 done
3114 done
3115 IFS=$as_save_IFS
3116
3117 fi
3118 fi
3119 AWK=$ac_cv_prog_AWK
3120 if test -n "$AWK"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3122 $as_echo "$AWK" >&6; }
3123 else
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3126 fi
3127
3128
3129 test -n "$AWK" && break
3130 done
3131
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3133 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3134 set x ${MAKE-make}
3135 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3136 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3139 cat >conftest.make <<\_ACEOF
3140 SHELL = /bin/sh
3141 all:
3142 @echo '@@@%%%=$(MAKE)=@@@%%%'
3143 _ACEOF
3144 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3145 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3146 *@@@%%%=?*=@@@%%%*)
3147 eval ac_cv_prog_make_${ac_make}_set=yes;;
3148 *)
3149 eval ac_cv_prog_make_${ac_make}_set=no;;
3150 esac
3151 rm -f conftest.make
3152 fi
3153 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3155 $as_echo "yes" >&6; }
3156 SET_MAKE=
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 SET_MAKE="MAKE=${MAKE-make}"
3161 fi
3162
3163 rm -rf .tst 2>/dev/null
3164 mkdir .tst 2>/dev/null
3165 if test -d .tst; then
3166 am__leading_dot=.
3167 else
3168 am__leading_dot=_
3169 fi
3170 rmdir .tst 2>/dev/null
3171
3172 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3173 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3174 # is not polluted with repeated "-I."
3175 am__isrc=' -I$(srcdir)'
3176 # test to see if srcdir already configured
3177 if test -f $srcdir/config.status; then
3178 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3179 fi
3180 fi
3181
3182 # test whether we have cygpath
3183 if test -z "$CYGPATH_W"; then
3184 if (cygpath --version) >/dev/null 2>/dev/null; then
3185 CYGPATH_W='cygpath -w'
3186 else
3187 CYGPATH_W=echo
3188 fi
3189 fi
3190
3191
3192 # Define the identity of the package.
3193 PACKAGE='gold'
3194 VERSION='0.1'
3195
3196
3197 cat >>confdefs.h <<_ACEOF
3198 #define PACKAGE "$PACKAGE"
3199 _ACEOF
3200
3201
3202 cat >>confdefs.h <<_ACEOF
3203 #define VERSION "$VERSION"
3204 _ACEOF
3205
3206 # Some tools Automake needs.
3207
3208 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3209
3210
3211 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3212
3213
3214 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3215
3216
3217 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3218
3219
3220 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3221
3222 # We need awk for the "check" target. The system "awk" is bad on
3223 # some platforms.
3224 # Always define AMTAR for backward compatibility.
3225
3226 AMTAR=${AMTAR-"${am_missing_run}tar"}
3227
3228 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3229
3230
3231
3232
3233
3234
3235 ac_config_headers="$ac_config_headers config.h:config.in"
3236
3237
3238 # PR 14072
3239
3240
3241
3242 # Check whether --with-sysroot was given.
3243 if test "${with_sysroot+set}" = set; then :
3244 withval=$with_sysroot; sysroot=$withval
3245 else
3246 sysroot=no
3247 fi
3248
3249
3250 if test "$sysroot" = "yes"; then
3251 sysroot='${exec_prefix}/${target_alias}/sys-root'
3252 elif test "$sysroot" = "no"; then
3253 sysroot=
3254 fi
3255
3256 sysroot_relocatable=0
3257 if test -n "$sysroot"; then
3258 case "sysroot" in
3259 "${prefix}" | "${prefix}/"* | \
3260 "${exec_prefix}" | "${exec_prefix}/"* | \
3261 '${prefix}' | '${prefix}/'*| \
3262 '${exec_prefix}' | '${exec_prefix}/'*)
3263 sysroot_relocatable=1
3264 ;;
3265 esac
3266 fi
3267
3268
3269 cat >>confdefs.h <<_ACEOF
3270 #define TARGET_SYSTEM_ROOT "$sysroot"
3271 _ACEOF
3272
3273
3274 cat >>confdefs.h <<_ACEOF
3275 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
3276 _ACEOF
3277
3278
3279
3280 installed_linker=ld.gold
3281 # Check whether --enable-gold was given.
3282 if test "${enable_gold+set}" = set; then :
3283 enableval=$enable_gold; case "${enableval}" in
3284 default)
3285 install_as_default=yes
3286 ;;
3287 yes)
3288 if test x${enable_ld} = xno; then
3289 install_as_default=yes
3290 fi
3291 ;;
3292 esac
3293 else
3294 install_as_default=no
3295 fi
3296
3297
3298
3299
3300 # Check whether --enable-threads was given.
3301 if test "${enable_threads+set}" = set; then :
3302 enableval=$enable_threads; case "${enableval}" in
3303 yes | "") threads=yes ;;
3304 no) threads=no ;;
3305 *) threads=yes ;;
3306 esac
3307 else
3308 threads=no
3309 fi
3310
3311 if test "$threads" = "yes"; then
3312
3313 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
3314
3315 fi
3316 if test "$threads" = "yes"; then
3317 THREADS_TRUE=
3318 THREADS_FALSE='#'
3319 else
3320 THREADS_TRUE='#'
3321 THREADS_FALSE=
3322 fi
3323
3324
3325 # Check whether --enable-plugins was given.
3326 if test "${enable_plugins+set}" = set; then :
3327 enableval=$enable_plugins; case "${enableval}" in
3328 yes | "") plugins=yes ;;
3329 no) plugins=no ;;
3330 *) plugins=yes ;;
3331 esac
3332 else
3333 plugins=no
3334 fi
3335
3336 if test "$plugins" = "yes"; then
3337
3338 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
3339
3340 fi
3341 if test "$plugins" = "yes"; then
3342 PLUGINS_TRUE=
3343 PLUGINS_FALSE='#'
3344 else
3345 PLUGINS_TRUE='#'
3346 PLUGINS_FALSE=
3347 fi
3348
3349
3350 # Check whether --enable-targets was given.
3351 if test "${enable_targets+set}" = set; then :
3352 enableval=$enable_targets; case "${enableval}" in
3353 yes | "")
3354 as_fn_error "--enable-targets option must specify target names or 'all'" "$LINENO" 5
3355 ;;
3356 no)
3357 enable_targets=
3358 ;;
3359 *)
3360 enable_targets=$enableval
3361 ;;
3362 esac
3363 else
3364 # For now, enable all targets by default
3365 enable_targets=all
3366
3367 fi
3368
3369
3370 # Canonicalize the enabled targets.
3371 if test -n "$enable_targets"; then
3372 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
3373 result=`$ac_config_sub $targ 2>/dev/null`
3374 if test -n "$result"; then
3375 canon_targets="$canon_targets $result"
3376 else
3377 # Permit unrecognized target names, like "all".
3378 canon_targets="$canon_targets $targ"
3379 fi
3380 done
3381 fi
3382
3383 # See which specific instantiations we need.
3384 targetobjs=
3385 all_targets=
3386 default_machine=
3387 default_size=
3388 default_big_endian=
3389 default_osabi=ELFOSABI_NONE
3390 targ_32_little=
3391 targ_32_big=
3392 targ_64_little=
3393 targ_64_big=
3394 for targ in $target $canon_targets; do
3395 if test "$targ" = "all"; then
3396 targ_32_little=yes
3397 targ_32_big=yes
3398 targ_64_little=yes
3399 targ_64_big=yes
3400 all_targets=yes
3401 else
3402 . ${srcdir}/configure.tgt
3403
3404 if test "$targ_obj" = "UNKNOWN"; then
3405 as_fn_error "\"unsupported target $targ\"" "$LINENO" 5
3406 else
3407 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
3408 if test "$targ_extra_obj" != ""; then
3409 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
3410 fi
3411 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
3412 if test "$targ_big_endian" = "true" \
3413 -o "$targ_extra_big_endian" = "true"; then
3414 targ_32_big=yes
3415 fi
3416 if test "$targ_big_endian" = "false" \
3417 -o "$targ_extra_big_endian" = "false"; then
3418 targ_32_little=yes
3419 fi
3420 fi
3421 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
3422 if test "$targ_big_endian" = "true" \
3423 -o "$targ_extra_big_endian" = "true"; then
3424 targ_64_big=yes
3425 fi
3426 if test "$targ_big_endian" = "false" \
3427 -o "$targ_extra_big_endian" = "false"; then
3428 targ_64_little=yes
3429 fi
3430 fi
3431
3432 if test "$target" = "$targ"; then
3433 default_machine=$targ_machine
3434 default_size=$targ_size
3435 default_big_endian=$targ_big_endian
3436 default_osabi=$targ_osabi
3437
3438 if test "$targ_obj" = "aarch64"; then
3439 DEFAULT_TARGET_AARCH64_TRUE=
3440 DEFAULT_TARGET_AARCH64_FALSE='#'
3441 else
3442 DEFAULT_TARGET_AARCH64_TRUE='#'
3443 DEFAULT_TARGET_AARCH64_FALSE=
3444 fi
3445
3446 if test "$targ_obj" = "arm"; then
3447 DEFAULT_TARGET_ARM_TRUE=
3448 DEFAULT_TARGET_ARM_FALSE='#'
3449 else
3450 DEFAULT_TARGET_ARM_TRUE='#'
3451 DEFAULT_TARGET_ARM_FALSE=
3452 fi
3453
3454 if test "$targ_obj" = "i386"; then
3455 DEFAULT_TARGET_I386_TRUE=
3456 DEFAULT_TARGET_I386_FALSE='#'
3457 else
3458 DEFAULT_TARGET_I386_TRUE='#'
3459 DEFAULT_TARGET_I386_FALSE=
3460 fi
3461
3462 if test "$targ_obj" = "powerpc"; then
3463 DEFAULT_TARGET_POWERPC_TRUE=
3464 DEFAULT_TARGET_POWERPC_FALSE='#'
3465 else
3466 DEFAULT_TARGET_POWERPC_TRUE='#'
3467 DEFAULT_TARGET_POWERPC_FALSE=
3468 fi
3469
3470 if test "$targ_obj" = "sparc"; then
3471 DEFAULT_TARGET_SPARC_TRUE=
3472 DEFAULT_TARGET_SPARC_FALSE='#'
3473 else
3474 DEFAULT_TARGET_SPARC_TRUE='#'
3475 DEFAULT_TARGET_SPARC_FALSE=
3476 fi
3477
3478 if test "$targ_obj" = "x86_64"; then
3479 DEFAULT_TARGET_X86_64_TRUE=
3480 DEFAULT_TARGET_X86_64_FALSE='#'
3481 else
3482 DEFAULT_TARGET_X86_64_TRUE='#'
3483 DEFAULT_TARGET_X86_64_FALSE=
3484 fi
3485
3486 if test "$targ_obj" = "tilegx"; then
3487 DEFAULT_TARGET_TILEGX_TRUE=
3488 DEFAULT_TARGET_TILEGX_FALSE='#'
3489 else
3490 DEFAULT_TARGET_TILEGX_TRUE='#'
3491 DEFAULT_TARGET_TILEGX_FALSE=
3492 fi
3493
3494 if test "$targ_obj" = "mips"; then
3495 DEFAULT_TARGET_MIPS_TRUE=
3496 DEFAULT_TARGET_MIPS_FALSE='#'
3497 else
3498 DEFAULT_TARGET_MIPS_TRUE='#'
3499 DEFAULT_TARGET_MIPS_FALSE=
3500 fi
3501
3502 DEFAULT_TARGET=${targ_obj}
3503
3504 fi
3505 fi
3506 fi
3507 done
3508
3509 # Remove any duplicates.
3510 to=""
3511 for t in $targetobjs; do
3512 case " $to " in
3513 *" $t "*) ;;
3514 *) to="$to $t" ;;
3515 esac
3516 done
3517 targetobjs=$to
3518
3519 if test -n "$targ_32_little"; then
3520
3521 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
3522
3523 fi
3524 if test -n "$targ_32_big"; then
3525
3526 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
3527
3528 fi
3529 if test -n "$targ_64_little"; then
3530
3531 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
3532
3533 fi
3534 if test -n "$targ_64_big"; then
3535
3536 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
3537
3538 fi
3539
3540 if test -n "$all_targets"; then
3541 TARGETOBJS='$(ALL_TARGETOBJS)'
3542 else
3543 TARGETOBJS="$targetobjs"
3544 fi
3545
3546
3547
3548 cat >>confdefs.h <<_ACEOF
3549 #define GOLD_DEFAULT_MACHINE $default_machine
3550 _ACEOF
3551
3552
3553 cat >>confdefs.h <<_ACEOF
3554 #define GOLD_DEFAULT_SIZE $default_size
3555 _ACEOF
3556
3557
3558 cat >>confdefs.h <<_ACEOF
3559 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
3560 _ACEOF
3561
3562
3563 cat >>confdefs.h <<_ACEOF
3564 #define GOLD_DEFAULT_OSABI $default_osabi
3565 _ACEOF
3566
3567
3568
3569 # Check whether --with-lib-path was given.
3570 if test "${with_lib_path+set}" = set; then :
3571 withval=$with_lib_path; case "$withval" in
3572 yes) LIB_PATH='"/lib:/usr/lib"' ;;
3573 no) LIB_PATH='""' ;;
3574 *) LIB_PATH='"'"$withval"'"' ;;
3575 esac
3576 else
3577 LIB_PATH='"::DEFAULT::"'
3578 fi
3579
3580
3581 cat >>confdefs.h <<_ACEOF
3582 #define LIB_PATH $LIB_PATH
3583 _ACEOF
3584
3585 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
3586
3587 $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
3588
3589 fi
3590
3591 if test -n "$ac_tool_prefix"; then
3592 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3593 set dummy ${ac_tool_prefix}nm; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if test "${ac_cv_prog_NM+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 if test -n "$NM"; then
3600 ac_cv_prog_NM="$NM" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609 ac_cv_prog_NM="${ac_tool_prefix}nm"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3612 fi
3613 done
3614 done
3615 IFS=$as_save_IFS
3616
3617 fi
3618 fi
3619 NM=$ac_cv_prog_NM
3620 if test -n "$NM"; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
3622 $as_echo "$NM" >&6; }
3623 else
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3626 fi
3627
3628
3629 fi
3630 if test -z "$ac_cv_prog_NM"; then
3631 ac_ct_NM=$NM
3632 # Extract the first word of "nm", so it can be a program name with args.
3633 set dummy nm; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 if test -n "$ac_ct_NM"; then
3640 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 ac_cv_prog_ac_ct_NM="nm"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3652 fi
3653 done
3654 done
3655 IFS=$as_save_IFS
3656
3657 fi
3658 fi
3659 ac_ct_NM=$ac_cv_prog_ac_ct_NM
3660 if test -n "$ac_ct_NM"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
3662 $as_echo "$ac_ct_NM" >&6; }
3663 else
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3666 fi
3667
3668 if test "x$ac_ct_NM" = x; then
3669 NM=""
3670 else
3671 case $cross_compiling:$ac_tool_warned in
3672 yes:)
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3675 ac_tool_warned=yes ;;
3676 esac
3677 NM=$ac_ct_NM
3678 fi
3679 else
3680 NM="$ac_cv_prog_NM"
3681 fi
3682
3683
3684 ac_ext=c
3685 ac_cpp='$CPP $CPPFLAGS'
3686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689 if test -n "$ac_tool_prefix"; then
3690 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3691 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_CC+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3710 fi
3711 done
3712 done
3713 IFS=$as_save_IFS
3714
3715 fi
3716 fi
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 fi
3725
3726
3727 fi
3728 if test -z "$ac_cv_prog_CC"; then
3729 ac_ct_CC=$CC
3730 # Extract the first word of "gcc", so it can be a program name with args.
3731 set dummy gcc; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test -n "$ac_ct_CC"; then
3738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_ac_ct_CC="gcc"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3750 fi
3751 done
3752 done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 $as_echo "$ac_ct_CC" >&6; }
3761 else
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3764 fi
3765
3766 if test "x$ac_ct_CC" = x; then
3767 CC=""
3768 else
3769 case $cross_compiling:$ac_tool_warned in
3770 yes:)
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3774 esac
3775 CC=$ac_ct_CC
3776 fi
3777 else
3778 CC="$ac_cv_prog_CC"
3779 fi
3780
3781 if test -z "$CC"; then
3782 if test -n "$ac_tool_prefix"; then
3783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3784 set dummy ${ac_tool_prefix}cc; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_prog_CC+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 if test -n "$CC"; then
3791 ac_cv_prog_CC="$CC" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800 ac_cv_prog_CC="${ac_tool_prefix}cc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3803 fi
3804 done
3805 done
3806 IFS=$as_save_IFS
3807
3808 fi
3809 fi
3810 CC=$ac_cv_prog_CC
3811 if test -n "$CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3813 $as_echo "$CC" >&6; }
3814 else
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3817 fi
3818
3819
3820 fi
3821 fi
3822 if test -z "$CC"; then
3823 # Extract the first word of "cc", so it can be a program name with args.
3824 set dummy cc; ac_word=$2
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 $as_echo_n "checking for $ac_word... " >&6; }
3827 if test "${ac_cv_prog_CC+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 if test -n "$CC"; then
3831 ac_cv_prog_CC="$CC" # Let the user override the test.
3832 else
3833 ac_prog_rejected=no
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3836 do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3841 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3842 ac_prog_rejected=yes
3843 continue
3844 fi
3845 ac_cv_prog_CC="cc"
3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 break 2
3848 fi
3849 done
3850 done
3851 IFS=$as_save_IFS
3852
3853 if test $ac_prog_rejected = yes; then
3854 # We found a bogon in the path, so make sure we never use it.
3855 set dummy $ac_cv_prog_CC
3856 shift
3857 if test $# != 0; then
3858 # We chose a different compiler from the bogus one.
3859 # However, it has the same basename, so the bogon will be chosen
3860 # first if we set CC to just the basename; use the full file name.
3861 shift
3862 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3863 fi
3864 fi
3865 fi
3866 fi
3867 CC=$ac_cv_prog_CC
3868 if test -n "$CC"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3870 $as_echo "$CC" >&6; }
3871 else
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3874 fi
3875
3876
3877 fi
3878 if test -z "$CC"; then
3879 if test -n "$ac_tool_prefix"; then
3880 for ac_prog in cl.exe
3881 do
3882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if test "${ac_cv_prog_CC+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 if test -n "$CC"; then
3890 ac_cv_prog_CC="$CC" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3899 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903 done
3904 done
3905 IFS=$as_save_IFS
3906
3907 fi
3908 fi
3909 CC=$ac_cv_prog_CC
3910 if test -n "$CC"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3912 $as_echo "$CC" >&6; }
3913 else
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3916 fi
3917
3918
3919 test -n "$CC" && break
3920 done
3921 fi
3922 if test -z "$CC"; then
3923 ac_ct_CC=$CC
3924 for ac_prog in cl.exe
3925 do
3926 # Extract the first word of "$ac_prog", so it can be a program name with args.
3927 set dummy $ac_prog; ac_word=$2
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 $as_echo_n "checking for $ac_word... " >&6; }
3930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 if test -n "$ac_ct_CC"; then
3934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3938 do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3943 ac_cv_prog_ac_ct_CC="$ac_prog"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3946 fi
3947 done
3948 done
3949 IFS=$as_save_IFS
3950
3951 fi
3952 fi
3953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3954 if test -n "$ac_ct_CC"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3956 $as_echo "$ac_ct_CC" >&6; }
3957 else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3960 fi
3961
3962
3963 test -n "$ac_ct_CC" && break
3964 done
3965
3966 if test "x$ac_ct_CC" = x; then
3967 CC=""
3968 else
3969 case $cross_compiling:$ac_tool_warned in
3970 yes:)
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3973 ac_tool_warned=yes ;;
3974 esac
3975 CC=$ac_ct_CC
3976 fi
3977 fi
3978
3979 fi
3980
3981
3982 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 as_fn_error "no acceptable C compiler found in \$PATH
3985 See \`config.log' for more details." "$LINENO" 5; }
3986
3987 # Provide some information about the compiler.
3988 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3989 set X $ac_compile
3990 ac_compiler=$2
3991 for ac_option in --version -v -V -qversion; do
3992 { { ac_try="$ac_compiler $ac_option >&5"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4000 ac_status=$?
4001 if test -s conftest.err; then
4002 sed '10a\
4003 ... rest of stderr output deleted ...
4004 10q' conftest.err >conftest.er1
4005 cat conftest.er1 >&5
4006 rm -f conftest.er1 conftest.err
4007 fi
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }
4010 done
4011
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4014
4015 int
4016 main ()
4017 {
4018
4019 ;
4020 return 0;
4021 }
4022 _ACEOF
4023 ac_clean_files_save=$ac_clean_files
4024 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4025 # Try to create an executable without -o first, disregard a.out.
4026 # It will help us diagnose broken compilers, and finding out an intuition
4027 # of exeext.
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4029 $as_echo_n "checking for C compiler default output file name... " >&6; }
4030 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4031
4032 # The possible output files:
4033 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4034
4035 ac_rmfiles=
4036 for ac_file in $ac_files
4037 do
4038 case $ac_file in
4039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4040 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4041 esac
4042 done
4043 rm -f $ac_rmfiles
4044
4045 if { { ac_try="$ac_link_default"
4046 case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_link_default") 2>&5
4053 ac_status=$?
4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }; then :
4056 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4057 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4058 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4059 # so that the user can short-circuit this test for compilers unknown to
4060 # Autoconf.
4061 for ac_file in $ac_files ''
4062 do
4063 test -f "$ac_file" || continue
4064 case $ac_file in
4065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4066 ;;
4067 [ab].out )
4068 # We found the default executable, but exeext='' is most
4069 # certainly right.
4070 break;;
4071 *.* )
4072 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4073 then :; else
4074 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4075 fi
4076 # We set ac_cv_exeext here because the later test for it is not
4077 # safe: cross compilers may not add the suffix if given an `-o'
4078 # argument, so we may need to know it at that point already.
4079 # Even if this section looks crufty: it has the advantage of
4080 # actually working.
4081 break;;
4082 * )
4083 break;;
4084 esac
4085 done
4086 test "$ac_cv_exeext" = no && ac_cv_exeext=
4087
4088 else
4089 ac_file=''
4090 fi
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4092 $as_echo "$ac_file" >&6; }
4093 if test -z "$ac_file"; then :
4094 $as_echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099 { as_fn_set_status 77
4100 as_fn_error "C compiler cannot create executables
4101 See \`config.log' for more details." "$LINENO" 5; }; }
4102 fi
4103 ac_exeext=$ac_cv_exeext
4104
4105 # Check that the compiler produces executables we can run. If not, either
4106 # the compiler is broken, or we cross compile.
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4108 $as_echo_n "checking whether the C compiler works... " >&6; }
4109 # If not cross compiling, check that we can run a simple program.
4110 if test "$cross_compiling" != yes; then
4111 if { ac_try='./$ac_file'
4112 { { case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4117 $as_echo "$ac_try_echo"; } >&5
4118 (eval "$ac_try") 2>&5
4119 ac_status=$?
4120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121 test $ac_status = 0; }; }; then
4122 cross_compiling=no
4123 else
4124 if test "$cross_compiling" = maybe; then
4125 cross_compiling=yes
4126 else
4127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4129 as_fn_error "cannot run C compiled programs.
4130 If you meant to cross compile, use \`--host'.
4131 See \`config.log' for more details." "$LINENO" 5; }
4132 fi
4133 fi
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4136 $as_echo "yes" >&6; }
4137
4138 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4139 ac_clean_files=$ac_clean_files_save
4140 # Check that the compiler produces executables we can run. If not, either
4141 # the compiler is broken, or we cross compile.
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4143 $as_echo_n "checking whether we are cross compiling... " >&6; }
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4145 $as_echo "$cross_compiling" >&6; }
4146
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4148 $as_echo_n "checking for suffix of executables... " >&6; }
4149 if { { ac_try="$ac_link"
4150 case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4153 esac
4154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4155 $as_echo "$ac_try_echo"; } >&5
4156 (eval "$ac_link") 2>&5
4157 ac_status=$?
4158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4159 test $ac_status = 0; }; then :
4160 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4161 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4162 # work properly (i.e., refer to `conftest.exe'), while it won't with
4163 # `rm'.
4164 for ac_file in conftest.exe conftest conftest.*; do
4165 test -f "$ac_file" || continue
4166 case $ac_file in
4167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4168 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4169 break;;
4170 * ) break;;
4171 esac
4172 done
4173 else
4174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4176 as_fn_error "cannot compute suffix of executables: cannot compile and link
4177 See \`config.log' for more details." "$LINENO" 5; }
4178 fi
4179 rm -f conftest$ac_cv_exeext
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4181 $as_echo "$ac_cv_exeext" >&6; }
4182
4183 rm -f conftest.$ac_ext
4184 EXEEXT=$ac_cv_exeext
4185 ac_exeext=$EXEEXT
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4187 $as_echo_n "checking for suffix of object files... " >&6; }
4188 if test "${ac_cv_objext+set}" = set; then :
4189 $as_echo_n "(cached) " >&6
4190 else
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4193
4194 int
4195 main ()
4196 {
4197
4198 ;
4199 return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest.o conftest.obj
4203 if { { ac_try="$ac_compile"
4204 case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207 esac
4208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209 $as_echo "$ac_try_echo"; } >&5
4210 (eval "$ac_compile") 2>&5
4211 ac_status=$?
4212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213 test $ac_status = 0; }; then :
4214 for ac_file in conftest.o conftest.obj conftest.*; do
4215 test -f "$ac_file" || continue;
4216 case $ac_file in
4217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4218 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4219 break;;
4220 esac
4221 done
4222 else
4223 $as_echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4225
4226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228 as_fn_error "cannot compute suffix of object files: cannot compile
4229 See \`config.log' for more details." "$LINENO" 5; }
4230 fi
4231 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4234 $as_echo "$ac_cv_objext" >&6; }
4235 OBJEXT=$ac_cv_objext
4236 ac_objext=$OBJEXT
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4238 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4239 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244
4245 int
4246 main ()
4247 {
4248 #ifndef __GNUC__
4249 choke me
4250 #endif
4251
4252 ;
4253 return 0;
4254 }
4255 _ACEOF
4256 if ac_fn_c_try_compile "$LINENO"; then :
4257 ac_compiler_gnu=yes
4258 else
4259 ac_compiler_gnu=no
4260 fi
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4263
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4266 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4267 if test $ac_compiler_gnu = yes; then
4268 GCC=yes
4269 else
4270 GCC=
4271 fi
4272 ac_test_CFLAGS=${CFLAGS+set}
4273 ac_save_CFLAGS=$CFLAGS
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4275 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4276 if test "${ac_cv_prog_cc_g+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 ac_save_c_werror_flag=$ac_c_werror_flag
4280 ac_c_werror_flag=yes
4281 ac_cv_prog_cc_g=no
4282 CFLAGS="-g"
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285
4286 int
4287 main ()
4288 {
4289
4290 ;
4291 return 0;
4292 }
4293 _ACEOF
4294 if ac_fn_c_try_compile "$LINENO"; then :
4295 ac_cv_prog_cc_g=yes
4296 else
4297 CFLAGS=""
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300
4301 int
4302 main ()
4303 {
4304
4305 ;
4306 return 0;
4307 }
4308 _ACEOF
4309 if ac_fn_c_try_compile "$LINENO"; then :
4310
4311 else
4312 ac_c_werror_flag=$ac_save_c_werror_flag
4313 CFLAGS="-g"
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316
4317 int
4318 main ()
4319 {
4320
4321 ;
4322 return 0;
4323 }
4324 _ACEOF
4325 if ac_fn_c_try_compile "$LINENO"; then :
4326 ac_cv_prog_cc_g=yes
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 fi
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 fi
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 ac_c_werror_flag=$ac_save_c_werror_flag
4334 fi
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4336 $as_echo "$ac_cv_prog_cc_g" >&6; }
4337 if test "$ac_test_CFLAGS" = set; then
4338 CFLAGS=$ac_save_CFLAGS
4339 elif test $ac_cv_prog_cc_g = yes; then
4340 if test "$GCC" = yes; then
4341 CFLAGS="-g -O2"
4342 else
4343 CFLAGS="-g"
4344 fi
4345 else
4346 if test "$GCC" = yes; then
4347 CFLAGS="-O2"
4348 else
4349 CFLAGS=
4350 fi
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4353 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4354 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 ac_cv_prog_cc_c89=no
4358 ac_save_CC=$CC
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 #include <stdarg.h>
4362 #include <stdio.h>
4363 #include <sys/types.h>
4364 #include <sys/stat.h>
4365 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4366 struct buf { int x; };
4367 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4368 static char *e (p, i)
4369 char **p;
4370 int i;
4371 {
4372 return p[i];
4373 }
4374 static char *f (char * (*g) (char **, int), char **p, ...)
4375 {
4376 char *s;
4377 va_list v;
4378 va_start (v,p);
4379 s = g (p, va_arg (v,int));
4380 va_end (v);
4381 return s;
4382 }
4383
4384 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4385 function prototypes and stuff, but not '\xHH' hex character constants.
4386 These don't provoke an error unfortunately, instead are silently treated
4387 as 'x'. The following induces an error, until -std is added to get
4388 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4389 array size at least. It's necessary to write '\x00'==0 to get something
4390 that's true only with -std. */
4391 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4392
4393 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4394 inside strings and character constants. */
4395 #define FOO(x) 'x'
4396 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4397
4398 int test (int i, double x);
4399 struct s1 {int (*f) (int a);};
4400 struct s2 {int (*f) (double a);};
4401 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4402 int argc;
4403 char **argv;
4404 int
4405 main ()
4406 {
4407 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4408 ;
4409 return 0;
4410 }
4411 _ACEOF
4412 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4413 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4414 do
4415 CC="$ac_save_CC $ac_arg"
4416 if ac_fn_c_try_compile "$LINENO"; then :
4417 ac_cv_prog_cc_c89=$ac_arg
4418 fi
4419 rm -f core conftest.err conftest.$ac_objext
4420 test "x$ac_cv_prog_cc_c89" != "xno" && break
4421 done
4422 rm -f conftest.$ac_ext
4423 CC=$ac_save_CC
4424
4425 fi
4426 # AC_CACHE_VAL
4427 case "x$ac_cv_prog_cc_c89" in
4428 x)
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4430 $as_echo "none needed" >&6; } ;;
4431 xno)
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4433 $as_echo "unsupported" >&6; } ;;
4434 *)
4435 CC="$CC $ac_cv_prog_cc_c89"
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4437 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4438 esac
4439 if test "x$ac_cv_prog_cc_c89" != xno; then :
4440
4441 fi
4442
4443 ac_ext=c
4444 ac_cpp='$CPP $CPPFLAGS'
4445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448 DEPDIR="${am__leading_dot}deps"
4449
4450 ac_config_commands="$ac_config_commands depfiles"
4451
4452
4453 am_make=${MAKE-make}
4454 cat > confinc << 'END'
4455 am__doit:
4456 @echo this is the am__doit target
4457 .PHONY: am__doit
4458 END
4459 # If we don't find an include directive, just comment out the code.
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4461 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4462 am__include="#"
4463 am__quote=
4464 _am_result=none
4465 # First try GNU make style include.
4466 echo "include confinc" > confmf
4467 # Ignore all kinds of additional output from `make'.
4468 case `$am_make -s -f confmf 2> /dev/null` in #(
4469 *the\ am__doit\ target*)
4470 am__include=include
4471 am__quote=
4472 _am_result=GNU
4473 ;;
4474 esac
4475 # Now try BSD make style include.
4476 if test "$am__include" = "#"; then
4477 echo '.include "confinc"' > confmf
4478 case `$am_make -s -f confmf 2> /dev/null` in #(
4479 *the\ am__doit\ target*)
4480 am__include=.include
4481 am__quote="\""
4482 _am_result=BSD
4483 ;;
4484 esac
4485 fi
4486
4487
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4489 $as_echo "$_am_result" >&6; }
4490 rm -f confinc confmf
4491
4492 # Check whether --enable-dependency-tracking was given.
4493 if test "${enable_dependency_tracking+set}" = set; then :
4494 enableval=$enable_dependency_tracking;
4495 fi
4496
4497 if test "x$enable_dependency_tracking" != xno; then
4498 am_depcomp="$ac_aux_dir/depcomp"
4499 AMDEPBACKSLASH='\'
4500 fi
4501 if test "x$enable_dependency_tracking" != xno; then
4502 AMDEP_TRUE=
4503 AMDEP_FALSE='#'
4504 else
4505 AMDEP_TRUE='#'
4506 AMDEP_FALSE=
4507 fi
4508
4509
4510
4511 depcc="$CC" am_compiler_list=
4512
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4514 $as_echo_n "checking dependency style of $depcc... " >&6; }
4515 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4519 # We make a subdir and do the tests there. Otherwise we can end up
4520 # making bogus files that we don't know about and never remove. For
4521 # instance it was reported that on HP-UX the gcc test will end up
4522 # making a dummy file named `D' -- because `-MD' means `put the output
4523 # in D'.
4524 mkdir conftest.dir
4525 # Copy depcomp to subdir because otherwise we won't find it if we're
4526 # using a relative directory.
4527 cp "$am_depcomp" conftest.dir
4528 cd conftest.dir
4529 # We will build objects and dependencies in a subdirectory because
4530 # it helps to detect inapplicable dependency modes. For instance
4531 # both Tru64's cc and ICC support -MD to output dependencies as a
4532 # side effect of compilation, but ICC will put the dependencies in
4533 # the current directory while Tru64 will put them in the object
4534 # directory.
4535 mkdir sub
4536
4537 am_cv_CC_dependencies_compiler_type=none
4538 if test "$am_compiler_list" = ""; then
4539 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4540 fi
4541 am__universal=false
4542 case " $depcc " in #(
4543 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4544 esac
4545
4546 for depmode in $am_compiler_list; do
4547 # Setup a source with many dependencies, because some compilers
4548 # like to wrap large dependency lists on column 80 (with \), and
4549 # we should not choose a depcomp mode which is confused by this.
4550 #
4551 # We need to recreate these files for each test, as the compiler may
4552 # overwrite some of them when testing with obscure command lines.
4553 # This happens at least with the AIX C compiler.
4554 : > sub/conftest.c
4555 for i in 1 2 3 4 5 6; do
4556 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4557 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4558 # Solaris 8's {/usr,}/bin/sh.
4559 touch sub/conftst$i.h
4560 done
4561 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4562
4563 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4564 # mode. It turns out that the SunPro C++ compiler does not properly
4565 # handle `-M -o', and we need to detect this. Also, some Intel
4566 # versions had trouble with output in subdirs
4567 am__obj=sub/conftest.${OBJEXT-o}
4568 am__minus_obj="-o $am__obj"
4569 case $depmode in
4570 gcc)
4571 # This depmode causes a compiler race in universal mode.
4572 test "$am__universal" = false || continue
4573 ;;
4574 nosideeffect)
4575 # after this tag, mechanisms are not by side-effect, so they'll
4576 # only be used when explicitly requested
4577 if test "x$enable_dependency_tracking" = xyes; then
4578 continue
4579 else
4580 break
4581 fi
4582 ;;
4583 msvisualcpp | msvcmsys)
4584 # This compiler won't grok `-c -o', but also, the minuso test has
4585 # not run yet. These depmodes are late enough in the game, and
4586 # so weak that their functioning should not be impacted.
4587 am__obj=conftest.${OBJEXT-o}
4588 am__minus_obj=
4589 ;;
4590 none) break ;;
4591 esac
4592 if depmode=$depmode \
4593 source=sub/conftest.c object=$am__obj \
4594 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4595 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4596 >/dev/null 2>conftest.err &&
4597 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4598 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4599 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4600 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4601 # icc doesn't choke on unknown options, it will just issue warnings
4602 # or remarks (even with -Werror). So we grep stderr for any message
4603 # that says an option was ignored or not supported.
4604 # When given -MP, icc 7.0 and 7.1 complain thusly:
4605 # icc: Command line warning: ignoring option '-M'; no argument required
4606 # The diagnosis changed in icc 8.0:
4607 # icc: Command line remark: option '-MP' not supported
4608 if (grep 'ignoring option' conftest.err ||
4609 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4610 am_cv_CC_dependencies_compiler_type=$depmode
4611 break
4612 fi
4613 fi
4614 done
4615
4616 cd ..
4617 rm -rf conftest.dir
4618 else
4619 am_cv_CC_dependencies_compiler_type=none
4620 fi
4621
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4624 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4625 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4626
4627 if
4628 test "x$enable_dependency_tracking" != xno \
4629 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4630 am__fastdepCC_TRUE=
4631 am__fastdepCC_FALSE='#'
4632 else
4633 am__fastdepCC_TRUE='#'
4634 am__fastdepCC_FALSE=
4635 fi
4636
4637
4638 ac_ext=cpp
4639 ac_cpp='$CXXCPP $CPPFLAGS'
4640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4643 if test -z "$CXX"; then
4644 if test -n "$CCC"; then
4645 CXX=$CCC
4646 else
4647 if test -n "$ac_tool_prefix"; then
4648 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4649 do
4650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if test "${ac_cv_prog_CXX+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 if test -n "$CXX"; then
4658 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671 done
4672 done
4673 IFS=$as_save_IFS
4674
4675 fi
4676 fi
4677 CXX=$ac_cv_prog_CXX
4678 if test -n "$CXX"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4680 $as_echo "$CXX" >&6; }
4681 else
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4684 fi
4685
4686
4687 test -n "$CXX" && break
4688 done
4689 fi
4690 if test -z "$CXX"; then
4691 ac_ct_CXX=$CXX
4692 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4693 do
4694 # Extract the first word of "$ac_prog", so it can be a program name with args.
4695 set dummy $ac_prog; ac_word=$2
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 if test -n "$ac_ct_CXX"; then
4702 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_ac_ct_CXX="$ac_prog"
4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4714 fi
4715 done
4716 done
4717 IFS=$as_save_IFS
4718
4719 fi
4720 fi
4721 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4722 if test -n "$ac_ct_CXX"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4724 $as_echo "$ac_ct_CXX" >&6; }
4725 else
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4728 fi
4729
4730
4731 test -n "$ac_ct_CXX" && break
4732 done
4733
4734 if test "x$ac_ct_CXX" = x; then
4735 CXX="g++"
4736 else
4737 case $cross_compiling:$ac_tool_warned in
4738 yes:)
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4741 ac_tool_warned=yes ;;
4742 esac
4743 CXX=$ac_ct_CXX
4744 fi
4745 fi
4746
4747 fi
4748 fi
4749 # Provide some information about the compiler.
4750 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4751 set X $ac_compile
4752 ac_compiler=$2
4753 for ac_option in --version -v -V -qversion; do
4754 { { ac_try="$ac_compiler $ac_option >&5"
4755 case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4758 esac
4759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4760 $as_echo "$ac_try_echo"; } >&5
4761 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4762 ac_status=$?
4763 if test -s conftest.err; then
4764 sed '10a\
4765 ... rest of stderr output deleted ...
4766 10q' conftest.err >conftest.er1
4767 cat conftest.er1 >&5
4768 rm -f conftest.er1 conftest.err
4769 fi
4770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4771 test $ac_status = 0; }
4772 done
4773
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4775 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4776 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781
4782 int
4783 main ()
4784 {
4785 #ifndef __GNUC__
4786 choke me
4787 #endif
4788
4789 ;
4790 return 0;
4791 }
4792 _ACEOF
4793 if ac_fn_cxx_try_compile "$LINENO"; then :
4794 ac_compiler_gnu=yes
4795 else
4796 ac_compiler_gnu=no
4797 fi
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4800
4801 fi
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4803 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4804 if test $ac_compiler_gnu = yes; then
4805 GXX=yes
4806 else
4807 GXX=
4808 fi
4809 ac_test_CXXFLAGS=${CXXFLAGS+set}
4810 ac_save_CXXFLAGS=$CXXFLAGS
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4812 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4813 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4817 ac_cxx_werror_flag=yes
4818 ac_cv_prog_cxx_g=no
4819 CXXFLAGS="-g"
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822
4823 int
4824 main ()
4825 {
4826
4827 ;
4828 return 0;
4829 }
4830 _ACEOF
4831 if ac_fn_cxx_try_compile "$LINENO"; then :
4832 ac_cv_prog_cxx_g=yes
4833 else
4834 CXXFLAGS=""
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4837
4838 int
4839 main ()
4840 {
4841
4842 ;
4843 return 0;
4844 }
4845 _ACEOF
4846 if ac_fn_cxx_try_compile "$LINENO"; then :
4847
4848 else
4849 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4850 CXXFLAGS="-g"
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853
4854 int
4855 main ()
4856 {
4857
4858 ;
4859 return 0;
4860 }
4861 _ACEOF
4862 if ac_fn_cxx_try_compile "$LINENO"; then :
4863 ac_cv_prog_cxx_g=yes
4864 fi
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 fi
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 fi
4869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4873 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4874 if test "$ac_test_CXXFLAGS" = set; then
4875 CXXFLAGS=$ac_save_CXXFLAGS
4876 elif test $ac_cv_prog_cxx_g = yes; then
4877 if test "$GXX" = yes; then
4878 CXXFLAGS="-g -O2"
4879 else
4880 CXXFLAGS="-g"
4881 fi
4882 else
4883 if test "$GXX" = yes; then
4884 CXXFLAGS="-O2"
4885 else
4886 CXXFLAGS=
4887 fi
4888 fi
4889 ac_ext=c
4890 ac_cpp='$CPP $CPPFLAGS'
4891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4894
4895 depcc="$CXX" am_compiler_list=
4896
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4898 $as_echo_n "checking dependency style of $depcc... " >&6; }
4899 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4903 # We make a subdir and do the tests there. Otherwise we can end up
4904 # making bogus files that we don't know about and never remove. For
4905 # instance it was reported that on HP-UX the gcc test will end up
4906 # making a dummy file named `D' -- because `-MD' means `put the output
4907 # in D'.
4908 mkdir conftest.dir
4909 # Copy depcomp to subdir because otherwise we won't find it if we're
4910 # using a relative directory.
4911 cp "$am_depcomp" conftest.dir
4912 cd conftest.dir
4913 # We will build objects and dependencies in a subdirectory because
4914 # it helps to detect inapplicable dependency modes. For instance
4915 # both Tru64's cc and ICC support -MD to output dependencies as a
4916 # side effect of compilation, but ICC will put the dependencies in
4917 # the current directory while Tru64 will put them in the object
4918 # directory.
4919 mkdir sub
4920
4921 am_cv_CXX_dependencies_compiler_type=none
4922 if test "$am_compiler_list" = ""; then
4923 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4924 fi
4925 am__universal=false
4926 case " $depcc " in #(
4927 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4928 esac
4929
4930 for depmode in $am_compiler_list; do
4931 # Setup a source with many dependencies, because some compilers
4932 # like to wrap large dependency lists on column 80 (with \), and
4933 # we should not choose a depcomp mode which is confused by this.
4934 #
4935 # We need to recreate these files for each test, as the compiler may
4936 # overwrite some of them when testing with obscure command lines.
4937 # This happens at least with the AIX C compiler.
4938 : > sub/conftest.c
4939 for i in 1 2 3 4 5 6; do
4940 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4941 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4942 # Solaris 8's {/usr,}/bin/sh.
4943 touch sub/conftst$i.h
4944 done
4945 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4946
4947 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4948 # mode. It turns out that the SunPro C++ compiler does not properly
4949 # handle `-M -o', and we need to detect this. Also, some Intel
4950 # versions had trouble with output in subdirs
4951 am__obj=sub/conftest.${OBJEXT-o}
4952 am__minus_obj="-o $am__obj"
4953 case $depmode in
4954 gcc)
4955 # This depmode causes a compiler race in universal mode.
4956 test "$am__universal" = false || continue
4957 ;;
4958 nosideeffect)
4959 # after this tag, mechanisms are not by side-effect, so they'll
4960 # only be used when explicitly requested
4961 if test "x$enable_dependency_tracking" = xyes; then
4962 continue
4963 else
4964 break
4965 fi
4966 ;;
4967 msvisualcpp | msvcmsys)
4968 # This compiler won't grok `-c -o', but also, the minuso test has
4969 # not run yet. These depmodes are late enough in the game, and
4970 # so weak that their functioning should not be impacted.
4971 am__obj=conftest.${OBJEXT-o}
4972 am__minus_obj=
4973 ;;
4974 none) break ;;
4975 esac
4976 if depmode=$depmode \
4977 source=sub/conftest.c object=$am__obj \
4978 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4979 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4980 >/dev/null 2>conftest.err &&
4981 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4982 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4983 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4984 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4985 # icc doesn't choke on unknown options, it will just issue warnings
4986 # or remarks (even with -Werror). So we grep stderr for any message
4987 # that says an option was ignored or not supported.
4988 # When given -MP, icc 7.0 and 7.1 complain thusly:
4989 # icc: Command line warning: ignoring option '-M'; no argument required
4990 # The diagnosis changed in icc 8.0:
4991 # icc: Command line remark: option '-MP' not supported
4992 if (grep 'ignoring option' conftest.err ||
4993 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4994 am_cv_CXX_dependencies_compiler_type=$depmode
4995 break
4996 fi
4997 fi
4998 done
4999
5000 cd ..
5001 rm -rf conftest.dir
5002 else
5003 am_cv_CXX_dependencies_compiler_type=none
5004 fi
5005
5006 fi
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5008 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5009 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5010
5011 if
5012 test "x$enable_dependency_tracking" != xno \
5013 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5014 am__fastdepCXX_TRUE=
5015 am__fastdepCXX_FALSE='#'
5016 else
5017 am__fastdepCXX_TRUE='#'
5018 am__fastdepCXX_FALSE=
5019 fi
5020
5021
5022 for ac_prog in 'bison -y' byacc
5023 do
5024 # Extract the first word of "$ac_prog", so it can be a program name with args.
5025 set dummy $ac_prog; ac_word=$2
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if test "${ac_cv_prog_YACC+set}" = set; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 if test -n "$YACC"; then
5032 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5033 else
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041 ac_cv_prog_YACC="$ac_prog"
5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 break 2
5044 fi
5045 done
5046 done
5047 IFS=$as_save_IFS
5048
5049 fi
5050 fi
5051 YACC=$ac_cv_prog_YACC
5052 if test -n "$YACC"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5054 $as_echo "$YACC" >&6; }
5055 else
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5058 fi
5059
5060
5061 test -n "$YACC" && break
5062 done
5063 test -n "$YACC" || YACC="yacc"
5064
5065 if test -n "$ac_tool_prefix"; then
5066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5067 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 if test -n "$RANLIB"; then
5074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5086 fi
5087 done
5088 done
5089 IFS=$as_save_IFS
5090
5091 fi
5092 fi
5093 RANLIB=$ac_cv_prog_RANLIB
5094 if test -n "$RANLIB"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5096 $as_echo "$RANLIB" >&6; }
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5100 fi
5101
5102
5103 fi
5104 if test -z "$ac_cv_prog_RANLIB"; then
5105 ac_ct_RANLIB=$RANLIB
5106 # Extract the first word of "ranlib", so it can be a program name with args.
5107 set dummy ranlib; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 if test -n "$ac_ct_RANLIB"; then
5114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 ac_cv_prog_ac_ct_RANLIB="ranlib"
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127 done
5128 done
5129 IFS=$as_save_IFS
5130
5131 fi
5132 fi
5133 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5134 if test -n "$ac_ct_RANLIB"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5136 $as_echo "$ac_ct_RANLIB" >&6; }
5137 else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5140 fi
5141
5142 if test "x$ac_ct_RANLIB" = x; then
5143 RANLIB=":"
5144 else
5145 case $cross_compiling:$ac_tool_warned in
5146 yes:)
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5149 ac_tool_warned=yes ;;
5150 esac
5151 RANLIB=$ac_ct_RANLIB
5152 fi
5153 else
5154 RANLIB="$ac_cv_prog_RANLIB"
5155 fi
5156
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5159 $as_echo_n "checking whether ln -s works... " >&6; }
5160 LN_S=$as_ln_s
5161 if test "$LN_S" = "ln -s"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5163 $as_echo "yes" >&6; }
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5166 $as_echo "no, using $LN_S" >&6; }
5167 fi
5168
5169
5170
5171 ac_ext=c
5172 ac_cpp='$CPP $CPPFLAGS'
5173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5177 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5178 # On Suns, sometimes $CPP names a directory.
5179 if test -n "$CPP" && test -d "$CPP"; then
5180 CPP=
5181 fi
5182 if test -z "$CPP"; then
5183 if test "${ac_cv_prog_CPP+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 # Double quotes because CPP needs to be expanded
5187 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5188 do
5189 ac_preproc_ok=false
5190 for ac_c_preproc_warn_flag in '' yes
5191 do
5192 # Use a header file that comes with gcc, so configuring glibc
5193 # with a fresh cross-compiler works.
5194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195 # <limits.h> exists even on freestanding compilers.
5196 # On the NeXT, cc -E runs the code through the compiler's parser,
5197 # not just through cpp. "Syntax error" is here to catch this case.
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 #ifdef __STDC__
5201 # include <limits.h>
5202 #else
5203 # include <assert.h>
5204 #endif
5205 Syntax error
5206 _ACEOF
5207 if ac_fn_c_try_cpp "$LINENO"; then :
5208
5209 else
5210 # Broken: fails on valid input.
5211 continue
5212 fi
5213 rm -f conftest.err conftest.$ac_ext
5214
5215 # OK, works on sane cases. Now check whether nonexistent headers
5216 # can be detected and how.
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219 #include <ac_nonexistent.h>
5220 _ACEOF
5221 if ac_fn_c_try_cpp "$LINENO"; then :
5222 # Broken: success on invalid input.
5223 continue
5224 else
5225 # Passes both tests.
5226 ac_preproc_ok=:
5227 break
5228 fi
5229 rm -f conftest.err conftest.$ac_ext
5230
5231 done
5232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5233 rm -f conftest.err conftest.$ac_ext
5234 if $ac_preproc_ok; then :
5235 break
5236 fi
5237
5238 done
5239 ac_cv_prog_CPP=$CPP
5240
5241 fi
5242 CPP=$ac_cv_prog_CPP
5243 else
5244 ac_cv_prog_CPP=$CPP
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5247 $as_echo "$CPP" >&6; }
5248 ac_preproc_ok=false
5249 for ac_c_preproc_warn_flag in '' yes
5250 do
5251 # Use a header file that comes with gcc, so configuring glibc
5252 # with a fresh cross-compiler works.
5253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5254 # <limits.h> exists even on freestanding compilers.
5255 # On the NeXT, cc -E runs the code through the compiler's parser,
5256 # not just through cpp. "Syntax error" is here to catch this case.
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 #ifdef __STDC__
5260 # include <limits.h>
5261 #else
5262 # include <assert.h>
5263 #endif
5264 Syntax error
5265 _ACEOF
5266 if ac_fn_c_try_cpp "$LINENO"; then :
5267
5268 else
5269 # Broken: fails on valid input.
5270 continue
5271 fi
5272 rm -f conftest.err conftest.$ac_ext
5273
5274 # OK, works on sane cases. Now check whether nonexistent headers
5275 # can be detected and how.
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 #include <ac_nonexistent.h>
5279 _ACEOF
5280 if ac_fn_c_try_cpp "$LINENO"; then :
5281 # Broken: success on invalid input.
5282 continue
5283 else
5284 # Passes both tests.
5285 ac_preproc_ok=:
5286 break
5287 fi
5288 rm -f conftest.err conftest.$ac_ext
5289
5290 done
5291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5292 rm -f conftest.err conftest.$ac_ext
5293 if $ac_preproc_ok; then :
5294
5295 else
5296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5298 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5299 See \`config.log' for more details." "$LINENO" 5; }
5300 fi
5301
5302 ac_ext=c
5303 ac_cpp='$CPP $CPPFLAGS'
5304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5310 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5311 if test "${ac_cv_path_GREP+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5314 if test -z "$GREP"; then
5315 ac_path_GREP_found=false
5316 # Loop through the user's path and test for each of PROGNAME-LIST
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5319 do
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_prog in grep ggrep; do
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5325 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5326 # Check for GNU ac_path_GREP and select it if it is found.
5327 # Check for GNU $ac_path_GREP
5328 case `"$ac_path_GREP" --version 2>&1` in
5329 *GNU*)
5330 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5331 *)
5332 ac_count=0
5333 $as_echo_n 0123456789 >"conftest.in"
5334 while :
5335 do
5336 cat "conftest.in" "conftest.in" >"conftest.tmp"
5337 mv "conftest.tmp" "conftest.in"
5338 cp "conftest.in" "conftest.nl"
5339 $as_echo 'GREP' >> "conftest.nl"
5340 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5342 as_fn_arith $ac_count + 1 && ac_count=$as_val
5343 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5344 # Best one so far, save it but keep looking for a better one
5345 ac_cv_path_GREP="$ac_path_GREP"
5346 ac_path_GREP_max=$ac_count
5347 fi
5348 # 10*(2^10) chars as input seems more than enough
5349 test $ac_count -gt 10 && break
5350 done
5351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5352 esac
5353
5354 $ac_path_GREP_found && break 3
5355 done
5356 done
5357 done
5358 IFS=$as_save_IFS
5359 if test -z "$ac_cv_path_GREP"; then
5360 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5361 fi
5362 else
5363 ac_cv_path_GREP=$GREP
5364 fi
5365
5366 fi
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5368 $as_echo "$ac_cv_path_GREP" >&6; }
5369 GREP="$ac_cv_path_GREP"
5370
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5373 $as_echo_n "checking for egrep... " >&6; }
5374 if test "${ac_cv_path_EGREP+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5378 then ac_cv_path_EGREP="$GREP -E"
5379 else
5380 if test -z "$EGREP"; then
5381 ac_path_EGREP_found=false
5382 # Loop through the user's path and test for each of PROGNAME-LIST
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5385 do
5386 IFS=$as_save_IFS
5387 test -z "$as_dir" && as_dir=.
5388 for ac_prog in egrep; do
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5391 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5392 # Check for GNU ac_path_EGREP and select it if it is found.
5393 # Check for GNU $ac_path_EGREP
5394 case `"$ac_path_EGREP" --version 2>&1` in
5395 *GNU*)
5396 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5397 *)
5398 ac_count=0
5399 $as_echo_n 0123456789 >"conftest.in"
5400 while :
5401 do
5402 cat "conftest.in" "conftest.in" >"conftest.tmp"
5403 mv "conftest.tmp" "conftest.in"
5404 cp "conftest.in" "conftest.nl"
5405 $as_echo 'EGREP' >> "conftest.nl"
5406 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5408 as_fn_arith $ac_count + 1 && ac_count=$as_val
5409 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5410 # Best one so far, save it but keep looking for a better one
5411 ac_cv_path_EGREP="$ac_path_EGREP"
5412 ac_path_EGREP_max=$ac_count
5413 fi
5414 # 10*(2^10) chars as input seems more than enough
5415 test $ac_count -gt 10 && break
5416 done
5417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5418 esac
5419
5420 $ac_path_EGREP_found && break 3
5421 done
5422 done
5423 done
5424 IFS=$as_save_IFS
5425 if test -z "$ac_cv_path_EGREP"; then
5426 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5427 fi
5428 else
5429 ac_cv_path_EGREP=$EGREP
5430 fi
5431
5432 fi
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5435 $as_echo "$ac_cv_path_EGREP" >&6; }
5436 EGREP="$ac_cv_path_EGREP"
5437
5438
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5440 $as_echo_n "checking for ANSI C header files... " >&6; }
5441 if test "${ac_cv_header_stdc+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 #include <stdlib.h>
5447 #include <stdarg.h>
5448 #include <string.h>
5449 #include <float.h>
5450
5451 int
5452 main ()
5453 {
5454
5455 ;
5456 return 0;
5457 }
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 ac_cv_header_stdc=yes
5461 else
5462 ac_cv_header_stdc=no
5463 fi
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465
5466 if test $ac_cv_header_stdc = yes; then
5467 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5470 #include <string.h>
5471
5472 _ACEOF
5473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5474 $EGREP "memchr" >/dev/null 2>&1; then :
5475
5476 else
5477 ac_cv_header_stdc=no
5478 fi
5479 rm -f conftest*
5480
5481 fi
5482
5483 if test $ac_cv_header_stdc = yes; then
5484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 #include <stdlib.h>
5488
5489 _ACEOF
5490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5491 $EGREP "free" >/dev/null 2>&1; then :
5492
5493 else
5494 ac_cv_header_stdc=no
5495 fi
5496 rm -f conftest*
5497
5498 fi
5499
5500 if test $ac_cv_header_stdc = yes; then
5501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5502 if test "$cross_compiling" = yes; then :
5503 :
5504 else
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 #include <ctype.h>
5508 #include <stdlib.h>
5509 #if ((' ' & 0x0FF) == 0x020)
5510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5512 #else
5513 # define ISLOWER(c) \
5514 (('a' <= (c) && (c) <= 'i') \
5515 || ('j' <= (c) && (c) <= 'r') \
5516 || ('s' <= (c) && (c) <= 'z'))
5517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5518 #endif
5519
5520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5521 int
5522 main ()
5523 {
5524 int i;
5525 for (i = 0; i < 256; i++)
5526 if (XOR (islower (i), ISLOWER (i))
5527 || toupper (i) != TOUPPER (i))
5528 return 2;
5529 return 0;
5530 }
5531 _ACEOF
5532 if ac_fn_c_try_run "$LINENO"; then :
5533
5534 else
5535 ac_cv_header_stdc=no
5536 fi
5537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5538 conftest.$ac_objext conftest.beam conftest.$ac_ext
5539 fi
5540
5541 fi
5542 fi
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5544 $as_echo "$ac_cv_header_stdc" >&6; }
5545 if test $ac_cv_header_stdc = yes; then
5546
5547 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5548
5549 fi
5550
5551 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5552 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5553 inttypes.h stdint.h unistd.h
5554 do :
5555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5556 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5557 "
5558 eval as_val=\$$as_ac_Header
5559 if test "x$as_val" = x""yes; then :
5560 cat >>confdefs.h <<_ACEOF
5561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5562 _ACEOF
5563
5564 fi
5565
5566 done
5567
5568
5569
5570 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5571 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5572 MINIX=yes
5573 else
5574 MINIX=
5575 fi
5576
5577
5578 if test "$MINIX" = yes; then
5579
5580 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5581
5582
5583 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5584
5585
5586 $as_echo "#define _MINIX 1" >>confdefs.h
5587
5588 fi
5589
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5592 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5593 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598
5599 # define __EXTENSIONS__ 1
5600 $ac_includes_default
5601 int
5602 main ()
5603 {
5604
5605 ;
5606 return 0;
5607 }
5608 _ACEOF
5609 if ac_fn_c_try_compile "$LINENO"; then :
5610 ac_cv_safe_to_define___extensions__=yes
5611 else
5612 ac_cv_safe_to_define___extensions__=no
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5617 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5618 test $ac_cv_safe_to_define___extensions__ = yes &&
5619 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5620
5621 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5622
5623 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5624
5625 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5626
5627 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5628
5629
5630
5631
5632 # If we haven't got the data from the intl directory,
5633 # assume NLS is disabled.
5634 USE_NLS=no
5635 LIBINTL=
5636 LIBINTL_DEP=
5637 INCINTL=
5638 XGETTEXT=
5639 GMSGFMT=
5640 POSUB=
5641
5642 if test -f ../intl/config.intl; then
5643 . ../intl/config.intl
5644 fi
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5646 $as_echo_n "checking whether NLS is requested... " >&6; }
5647 if test x"$USE_NLS" != xyes; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 else
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5652 $as_echo "yes" >&6; }
5653
5654 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5655
5656
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5658 $as_echo_n "checking for catalogs to be installed... " >&6; }
5659 # Look for .po and .gmo files in the source directory.
5660 CATALOGS=
5661 XLINGUAS=
5662 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5663 # If there aren't any .gmo files the shell will give us the
5664 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5665 # weeded out.
5666 case "$cat" in *\**)
5667 continue;;
5668 esac
5669 # The quadruple backslash is collapsed to a double backslash
5670 # by the backticks, then collapsed again by the double quotes,
5671 # leaving us with one backslash in the sed expression (right
5672 # before the dot that mustn't act as a wildcard).
5673 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5674 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5675 # The user is allowed to set LINGUAS to a list of languages to
5676 # install catalogs for. If it's empty that means "all of them."
5677 if test "x$LINGUAS" = x; then
5678 CATALOGS="$CATALOGS $cat"
5679 XLINGUAS="$XLINGUAS $lang"
5680 else
5681 case "$LINGUAS" in *$lang*)
5682 CATALOGS="$CATALOGS $cat"
5683 XLINGUAS="$XLINGUAS $lang"
5684 ;;
5685 esac
5686 fi
5687 done
5688 LINGUAS="$XLINGUAS"
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5690 $as_echo "$LINGUAS" >&6; }
5691
5692
5693 DATADIRNAME=share
5694
5695 INSTOBJEXT=.mo
5696
5697 GENCAT=gencat
5698
5699 CATOBJEXT=.gmo
5700
5701 fi
5702
5703 MKINSTALLDIRS=
5704 if test -n "$ac_aux_dir"; then
5705 case "$ac_aux_dir" in
5706 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5707 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5708 esac
5709 fi
5710 if test -z "$MKINSTALLDIRS"; then
5711 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5712 fi
5713
5714
5715
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5717 $as_echo_n "checking whether NLS is requested... " >&6; }
5718 # Check whether --enable-nls was given.
5719 if test "${enable_nls+set}" = set; then :
5720 enableval=$enable_nls; USE_NLS=$enableval
5721 else
5722 USE_NLS=yes
5723 fi
5724
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5726 $as_echo "$USE_NLS" >&6; }
5727
5728
5729
5730
5731
5732
5733 # Prepare PATH_SEPARATOR.
5734 # The user is always right.
5735 if test "${PATH_SEPARATOR+set}" != set; then
5736 echo "#! /bin/sh" >conf$$.sh
5737 echo "exit 0" >>conf$$.sh
5738 chmod +x conf$$.sh
5739 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5740 PATH_SEPARATOR=';'
5741 else
5742 PATH_SEPARATOR=:
5743 fi
5744 rm -f conf$$.sh
5745 fi
5746
5747 # Find out how to test for executable files. Don't use a zero-byte file,
5748 # as systems may use methods other than mode bits to determine executability.
5749 cat >conf$$.file <<_ASEOF
5750 #! /bin/sh
5751 exit 0
5752 _ASEOF
5753 chmod +x conf$$.file
5754 if test -x conf$$.file >/dev/null 2>&1; then
5755 ac_executable_p="test -x"
5756 else
5757 ac_executable_p="test -f"
5758 fi
5759 rm -f conf$$.file
5760
5761 # Extract the first word of "msgfmt", so it can be a program name with args.
5762 set dummy msgfmt; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 case "$MSGFMT" in
5769 [\\/]* | ?:[\\/]*)
5770 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5771 ;;
5772 *)
5773 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5774 for ac_dir in $PATH; do
5775 IFS="$ac_save_IFS"
5776 test -z "$ac_dir" && ac_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5779 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5780 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5781 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5782 break 2
5783 fi
5784 fi
5785 done
5786 done
5787 IFS="$ac_save_IFS"
5788 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5789 ;;
5790 esac
5791 fi
5792 MSGFMT="$ac_cv_path_MSGFMT"
5793 if test "$MSGFMT" != ":"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5795 $as_echo "$MSGFMT" >&6; }
5796 else
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5799 fi
5800
5801 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5802 set dummy gmsgfmt; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 case $GMSGFMT in
5809 [\\/]* | ?:[\\/]*)
5810 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5811 ;;
5812 *)
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5820 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5823 fi
5824 done
5825 done
5826 IFS=$as_save_IFS
5827
5828 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5829 ;;
5830 esac
5831 fi
5832 GMSGFMT=$ac_cv_path_GMSGFMT
5833 if test -n "$GMSGFMT"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5835 $as_echo "$GMSGFMT" >&6; }
5836 else
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5839 fi
5840
5841
5842
5843
5844 # Prepare PATH_SEPARATOR.
5845 # The user is always right.
5846 if test "${PATH_SEPARATOR+set}" != set; then
5847 echo "#! /bin/sh" >conf$$.sh
5848 echo "exit 0" >>conf$$.sh
5849 chmod +x conf$$.sh
5850 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5851 PATH_SEPARATOR=';'
5852 else
5853 PATH_SEPARATOR=:
5854 fi
5855 rm -f conf$$.sh
5856 fi
5857
5858 # Find out how to test for executable files. Don't use a zero-byte file,
5859 # as systems may use methods other than mode bits to determine executability.
5860 cat >conf$$.file <<_ASEOF
5861 #! /bin/sh
5862 exit 0
5863 _ASEOF
5864 chmod +x conf$$.file
5865 if test -x conf$$.file >/dev/null 2>&1; then
5866 ac_executable_p="test -x"
5867 else
5868 ac_executable_p="test -f"
5869 fi
5870 rm -f conf$$.file
5871
5872 # Extract the first word of "xgettext", so it can be a program name with args.
5873 set dummy xgettext; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 case "$XGETTEXT" in
5880 [\\/]* | ?:[\\/]*)
5881 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5882 ;;
5883 *)
5884 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5885 for ac_dir in $PATH; do
5886 IFS="$ac_save_IFS"
5887 test -z "$ac_dir" && ac_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5890 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5891 (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
5892 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5893 break 2
5894 fi
5895 fi
5896 done
5897 done
5898 IFS="$ac_save_IFS"
5899 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5900 ;;
5901 esac
5902 fi
5903 XGETTEXT="$ac_cv_path_XGETTEXT"
5904 if test "$XGETTEXT" != ":"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5906 $as_echo "$XGETTEXT" >&6; }
5907 else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5910 fi
5911
5912 rm -f messages.po
5913
5914
5915 # Prepare PATH_SEPARATOR.
5916 # The user is always right.
5917 if test "${PATH_SEPARATOR+set}" != set; then
5918 echo "#! /bin/sh" >conf$$.sh
5919 echo "exit 0" >>conf$$.sh
5920 chmod +x conf$$.sh
5921 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5922 PATH_SEPARATOR=';'
5923 else
5924 PATH_SEPARATOR=:
5925 fi
5926 rm -f conf$$.sh
5927 fi
5928
5929 # Find out how to test for executable files. Don't use a zero-byte file,
5930 # as systems may use methods other than mode bits to determine executability.
5931 cat >conf$$.file <<_ASEOF
5932 #! /bin/sh
5933 exit 0
5934 _ASEOF
5935 chmod +x conf$$.file
5936 if test -x conf$$.file >/dev/null 2>&1; then
5937 ac_executable_p="test -x"
5938 else
5939 ac_executable_p="test -f"
5940 fi
5941 rm -f conf$$.file
5942
5943 # Extract the first word of "msgmerge", so it can be a program name with args.
5944 set dummy msgmerge; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 case "$MSGMERGE" in
5951 [\\/]* | ?:[\\/]*)
5952 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5953 ;;
5954 *)
5955 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5956 for ac_dir in $PATH; do
5957 IFS="$ac_save_IFS"
5958 test -z "$ac_dir" && ac_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5961 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5962 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5963 break 2
5964 fi
5965 fi
5966 done
5967 done
5968 IFS="$ac_save_IFS"
5969 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5970 ;;
5971 esac
5972 fi
5973 MSGMERGE="$ac_cv_path_MSGMERGE"
5974 if test "$MSGMERGE" != ":"; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5976 $as_echo "$MSGMERGE" >&6; }
5977 else
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5980 fi
5981
5982
5983 if test "$GMSGFMT" != ":"; then
5984 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5985 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5986 : ;
5987 else
5988 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5990 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5991 GMSGFMT=":"
5992 fi
5993 fi
5994
5995 if test "$XGETTEXT" != ":"; then
5996 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5997 (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
5998 : ;
5999 else
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6001 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6002 XGETTEXT=":"
6003 fi
6004 rm -f messages.po
6005 fi
6006
6007 ac_config_commands="$ac_config_commands default-1"
6008
6009
6010
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6012 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6013 if test "${ac_cv_c_bigendian+set}" = set; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 ac_cv_c_bigendian=unknown
6017 # See if we're dealing with a universal compiler.
6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h. */
6020 #ifndef __APPLE_CC__
6021 not a universal capable compiler
6022 #endif
6023 typedef int dummy;
6024
6025 _ACEOF
6026 if ac_fn_c_try_compile "$LINENO"; then :
6027
6028 # Check for potential -arch flags. It is not universal unless
6029 # there are at least two -arch flags with different values.
6030 ac_arch=
6031 ac_prev=
6032 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6033 if test -n "$ac_prev"; then
6034 case $ac_word in
6035 i?86 | x86_64 | ppc | ppc64)
6036 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6037 ac_arch=$ac_word
6038 else
6039 ac_cv_c_bigendian=universal
6040 break
6041 fi
6042 ;;
6043 esac
6044 ac_prev=
6045 elif test "x$ac_word" = "x-arch"; then
6046 ac_prev=arch
6047 fi
6048 done
6049 fi
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 if test $ac_cv_c_bigendian = unknown; then
6052 # See if sys/param.h defines the BYTE_ORDER macro.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 #include <sys/types.h>
6056 #include <sys/param.h>
6057
6058 int
6059 main ()
6060 {
6061 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6062 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6063 && LITTLE_ENDIAN)
6064 bogus endian macros
6065 #endif
6066
6067 ;
6068 return 0;
6069 }
6070 _ACEOF
6071 if ac_fn_c_try_compile "$LINENO"; then :
6072 # It does; now see whether it defined to BIG_ENDIAN or not.
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 #include <sys/types.h>
6076 #include <sys/param.h>
6077
6078 int
6079 main ()
6080 {
6081 #if BYTE_ORDER != BIG_ENDIAN
6082 not big endian
6083 #endif
6084
6085 ;
6086 return 0;
6087 }
6088 _ACEOF
6089 if ac_fn_c_try_compile "$LINENO"; then :
6090 ac_cv_c_bigendian=yes
6091 else
6092 ac_cv_c_bigendian=no
6093 fi
6094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095 fi
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 fi
6098 if test $ac_cv_c_bigendian = unknown; then
6099 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102 #include <limits.h>
6103
6104 int
6105 main ()
6106 {
6107 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6108 bogus endian macros
6109 #endif
6110
6111 ;
6112 return 0;
6113 }
6114 _ACEOF
6115 if ac_fn_c_try_compile "$LINENO"; then :
6116 # It does; now see whether it defined to _BIG_ENDIAN or not.
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6119 #include <limits.h>
6120
6121 int
6122 main ()
6123 {
6124 #ifndef _BIG_ENDIAN
6125 not big endian
6126 #endif
6127
6128 ;
6129 return 0;
6130 }
6131 _ACEOF
6132 if ac_fn_c_try_compile "$LINENO"; then :
6133 ac_cv_c_bigendian=yes
6134 else
6135 ac_cv_c_bigendian=no
6136 fi
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138 fi
6139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140 fi
6141 if test $ac_cv_c_bigendian = unknown; then
6142 # Compile a test program.
6143 if test "$cross_compiling" = yes; then :
6144 # Try to guess by grepping values from an object file.
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6147 short int ascii_mm[] =
6148 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6149 short int ascii_ii[] =
6150 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6151 int use_ascii (int i) {
6152 return ascii_mm[i] + ascii_ii[i];
6153 }
6154 short int ebcdic_ii[] =
6155 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6156 short int ebcdic_mm[] =
6157 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6158 int use_ebcdic (int i) {
6159 return ebcdic_mm[i] + ebcdic_ii[i];
6160 }
6161 extern int foo;
6162
6163 int
6164 main ()
6165 {
6166 return use_ascii (foo) == use_ebcdic (foo);
6167 ;
6168 return 0;
6169 }
6170 _ACEOF
6171 if ac_fn_c_try_compile "$LINENO"; then :
6172 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6173 ac_cv_c_bigendian=yes
6174 fi
6175 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6176 if test "$ac_cv_c_bigendian" = unknown; then
6177 ac_cv_c_bigendian=no
6178 else
6179 # finding both strings is unlikely to happen, but who knows?
6180 ac_cv_c_bigendian=unknown
6181 fi
6182 fi
6183 fi
6184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185 else
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 $ac_includes_default
6189 int
6190 main ()
6191 {
6192
6193 /* Are we little or big endian? From Harbison&Steele. */
6194 union
6195 {
6196 long int l;
6197 char c[sizeof (long int)];
6198 } u;
6199 u.l = 1;
6200 return u.c[sizeof (long int) - 1] == 1;
6201
6202 ;
6203 return 0;
6204 }
6205 _ACEOF
6206 if ac_fn_c_try_run "$LINENO"; then :
6207 ac_cv_c_bigendian=no
6208 else
6209 ac_cv_c_bigendian=yes
6210 fi
6211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6212 conftest.$ac_objext conftest.beam conftest.$ac_ext
6213 fi
6214
6215 fi
6216 fi
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6218 $as_echo "$ac_cv_c_bigendian" >&6; }
6219 case $ac_cv_c_bigendian in #(
6220 yes)
6221 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6222 ;; #(
6223 no)
6224 ;; #(
6225 universal)
6226
6227 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6228
6229 ;; #(
6230 *)
6231 as_fn_error "unknown endianness
6232 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6233 esac
6234
6235
6236
6237
6238 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
6239 NATIVE_LINKER_TRUE=
6240 NATIVE_LINKER_FALSE='#'
6241 else
6242 NATIVE_LINKER_TRUE='#'
6243 NATIVE_LINKER_FALSE=
6244 fi
6245
6246 if test "$GCC" = yes; then
6247 GCC_TRUE=
6248 GCC_FALSE='#'
6249 else
6250 GCC_TRUE='#'
6251 GCC_FALSE=
6252 fi
6253
6254
6255 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
6256 NATIVE_OR_CROSS_LINKER_TRUE=
6257 NATIVE_OR_CROSS_LINKER_FALSE='#'
6258 else
6259 NATIVE_OR_CROSS_LINKER_TRUE='#'
6260 NATIVE_OR_CROSS_LINKER_FALSE=
6261 fi
6262
6263
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
6265 $as_echo_n "checking whether static linking works... " >&6; }
6266 if test "${gold_cv_lib_static+set}" = set; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 LDFLAGS_hold=$LDFLAGS
6270 LDFLAGS="$LDFLAGS -static"
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6273
6274 void f() { }
6275 int
6276 main ()
6277 {
6278
6279 ;
6280 return 0;
6281 }
6282 _ACEOF
6283 if ac_fn_c_try_link "$LINENO"; then :
6284 gold_cv_lib_static=yes
6285 else
6286 gold_cv_lib_static=no
6287 fi
6288 rm -f core conftest.err conftest.$ac_objext \
6289 conftest$ac_exeext conftest.$ac_ext
6290 LDFLAGS=$LDFLAGS_hold
6291 fi
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
6293 $as_echo "$gold_cv_lib_static" >&6; }
6294 if test "$gold_cv_lib_static" = "yes"; then
6295 HAVE_STATIC_TRUE=
6296 HAVE_STATIC_FALSE='#'
6297 else
6298 HAVE_STATIC_TRUE='#'
6299 HAVE_STATIC_FALSE=
6300 fi
6301
6302
6303 if
6304 case $target_cpu in
6305 powerpc*) false;;
6306 x86_64) false;;
6307 sparc64) false;;
6308 *) true;;
6309 esac; then
6310 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
6311 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
6312 else
6313 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
6314 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
6315 fi
6316
6317
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
6319 $as_echo_n "checking for gcc >= 4.1... " >&6; }
6320 if test "${gold_cv_prog_gcc41+set}" = set; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325
6326 #if !defined __GNUC__
6327 error
6328 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
6329 error
6330 #endif
6331
6332 _ACEOF
6333 if ac_fn_c_try_compile "$LINENO"; then :
6334 gold_cv_prog_gcc41=yes
6335 else
6336 gold_cv_prog_gcc41=no
6337 fi
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 fi
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
6341 $as_echo "$gold_cv_prog_gcc41" >&6; }
6342
6343 save_CFLAGS="$CFLAGS"
6344 CFLAGS="$CFLAGS -mcmodel=medium"
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347 int i;
6348 _ACEOF
6349 if ac_fn_c_try_compile "$LINENO"; then :
6350 have_mcmodel_medium=yes
6351 else
6352 have_mcmodel_medium=no
6353 fi
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 CFLAGS="$save_CFLAGS"
6356 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
6357 MCMODEL_MEDIUM_TRUE=
6358 MCMODEL_MEDIUM_FALSE='#'
6359 else
6360 MCMODEL_MEDIUM_TRUE='#'
6361 MCMODEL_MEDIUM_FALSE=
6362 fi
6363
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
6366 $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
6367 if test "${gold_cv_merge_constants+set}" = set; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370
6371 save_CFLAGS="$CFLAGS"
6372 CFLAGS="$CFLAGS -fmerge-constants"
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6375 const char *s = "foo";
6376 _ACEOF
6377 if ac_fn_c_try_compile "$LINENO"; then :
6378 gold_cv_merge_constants=yes
6379 else
6380 gold_cv_merge_constants=no
6381 fi
6382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383 CFLAGS="$save_CFLAGS"
6384 fi
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
6386 $as_echo "$gold_cv_merge_constants" >&6; }
6387
6388 if test "$gold_cv_merge_constants" = yes; then :
6389 MERGE_CONSTANTS_FLAG=-fmerge-constants
6390 else
6391 MERGE_CONSTANTS_FLAG=
6392 fi
6393
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
6395 $as_echo_n "checking for thread support... " >&6; }
6396 if test "${gold_cv_c_thread+set}" = set; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401 __thread int i = 1;
6402 _ACEOF
6403 if ac_fn_c_try_compile "$LINENO"; then :
6404 gold_cv_c_thread=yes
6405 else
6406 gold_cv_c_thread=no
6407 fi
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 fi
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
6411 $as_echo "$gold_cv_c_thread" >&6; }
6412
6413 if test "$gold_cv_c_thread" = "yes"; then
6414 TLS_TRUE=
6415 TLS_FALSE='#'
6416 else
6417 TLS_TRUE='#'
6418 TLS_FALSE=
6419 fi
6420
6421
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
6423 $as_echo_n "checking for glibc >= 2.4... " >&6; }
6424 if test "${gold_cv_lib_glibc24+set}" = set; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h. */
6429
6430 #include <features.h>
6431 #if !defined __GLIBC__
6432 error
6433 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
6434 error
6435 #endif
6436
6437 _ACEOF
6438 if ac_fn_c_try_compile "$LINENO"; then :
6439 gold_cv_lib_glibc24=yes
6440 else
6441 gold_cv_lib_glibc24=no
6442 fi
6443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 fi
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
6446 $as_echo "$gold_cv_lib_glibc24" >&6; }
6447
6448 if test "$gold_cv_lib_glibc24" = "yes"; then
6449 STATIC_TLS_TRUE=
6450 STATIC_TLS_FALSE='#'
6451 else
6452 STATIC_TLS_TRUE='#'
6453 STATIC_TLS_FALSE=
6454 fi
6455
6456
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
6458 $as_echo_n "checking for omp support... " >&6; }
6459 if test "${gold_cv_c_threadprivate+set}" = set; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 save_CFLAGS="$CFLAGS"
6463 CFLAGS="$CFLAGS -fopenmp"
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466
6467 #include <omp.h>
6468 int i;
6469 #pragma omp threadprivate (i)
6470
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473 gold_cv_c_threadprivate=yes
6474 else
6475 gold_cv_c_threadprivate=no
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 CFLAGS="$save_CFLAGS"
6479 fi
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
6481 $as_echo "$gold_cv_c_threadprivate" >&6; }
6482 if test "$gold_cv_c_threadprivate" = "yes"; then
6483
6484 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
6485
6486 fi
6487 if test "$gold_cv_c_threadprivate" = "yes"; then
6488 OMP_SUPPORT_TRUE=
6489 OMP_SUPPORT_FALSE='#'
6490 else
6491 OMP_SUPPORT_TRUE='#'
6492 OMP_SUPPORT_FALSE=
6493 fi
6494
6495
6496 save_CFLAGS="$CFLAGS"
6497 CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6500
6501 __thread int i;
6502 void foo (void)
6503 {
6504 i = 10;
6505 }
6506
6507 _ACEOF
6508 if ac_fn_c_try_compile "$LINENO"; then :
6509 have_tls_gnu2=yes
6510 else
6511 have_tls_gnu2=no
6512 fi
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 CFLAGS="$save_CFLAGS"
6515 if test "$have_tls_gnu2" = "yes"; then
6516 TLS_GNU2_DIALECT_TRUE=
6517 TLS_GNU2_DIALECT_FALSE='#'
6518 else
6519 TLS_GNU2_DIALECT_TRUE='#'
6520 TLS_GNU2_DIALECT_FALSE=
6521 fi
6522
6523
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
6525 $as_echo_n "checking for glibc >= 2.9... " >&6; }
6526 if test "${gold_cv_lib_glibc29+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531
6532 #include <features.h>
6533 #if !defined __GLIBC__
6534 error
6535 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
6536 error
6537 #endif
6538
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541 gold_cv_lib_glibc29=yes
6542 else
6543 gold_cv_lib_glibc29=no
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
6548 $as_echo "$gold_cv_lib_glibc29" >&6; }
6549
6550 if test "$gold_cv_lib_glibc29" = "yes"; then
6551 TLS_DESCRIPTORS_TRUE=
6552 TLS_DESCRIPTORS_FALSE='#'
6553 else
6554 TLS_DESCRIPTORS_TRUE='#'
6555 TLS_DESCRIPTORS_FALSE=
6556 fi
6557
6558
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
6560 $as_echo_n "checking for -frandom-seed support... " >&6; }
6561 if test "${gold_cv_c_random_seed+set}" = set; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 save_CFLAGS="$CFLAGS"
6565 CFLAGS="$CFLAGS -frandom-seed=foo"
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568 int i;
6569 _ACEOF
6570 if ac_fn_c_try_compile "$LINENO"; then :
6571 gold_cv_c_random_seed=yes
6572 else
6573 gold_cv_c_random_seed=no
6574 fi
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 CFLAGS="$save_CFLAGS"
6577 fi
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
6579 $as_echo "$gold_cv_c_random_seed" >&6; }
6580 if test "$gold_cv_c_random_seed" = "yes"; then
6581 # In Makefile, '$@' will be expanded to be the name of the file
6582 # being built, providing a unique seed for each file.
6583 RANDOM_SEED_CFLAGS=-frandom-seed=\$@
6584 fi
6585
6586
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
6588 $as_echo_n "checking for glibc ifunc support... " >&6; }
6589 if test "${gold_cv_lib_glibc_ifunc+set}" = set; then :
6590 $as_echo_n "(cached) " >&6
6591 else
6592 save_LDFLAGS="$LDFLAGS"
6593 LDFLAGS="$LDFLAGS -static"
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596
6597 #include <features.h>
6598 #if !defined __GLIBC__
6599 error
6600 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
6601 error
6602 #endif
6603 void func (void) { }
6604 void invoke (void);
6605 __asm__(".type invoke, %gnu_indirect_function");
6606 typedef void (*funcptr) (void);
6607 funcptr dispatch (void) __asm__ ("invoke");
6608 funcptr dispatch (void) { return &func; }
6609 int
6610 main ()
6611 {
6612 invoke();
6613 ;
6614 return 0;
6615 }
6616
6617 _ACEOF
6618 if ac_fn_c_try_link "$LINENO"; then :
6619
6620 if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
6621 gold_cv_lib_glibc_ifunc=both
6622 else
6623 gold_cv_lib_glibc_ifunc=dyn
6624 fi
6625 else
6626 gold_cv_lib_glibc_ifunc=no
6627 fi
6628 rm -f core conftest.err conftest.$ac_objext \
6629 conftest$ac_exeext conftest.$ac_ext
6630 LDFLAGS="$save_LDFLAGS"
6631 fi
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
6633 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
6634
6635 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
6636 IFUNC_TRUE=
6637 IFUNC_FALSE='#'
6638 else
6639 IFUNC_TRUE='#'
6640 IFUNC_FALSE=
6641 fi
6642
6643 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
6644 IFUNC_STATIC_TRUE=
6645 IFUNC_STATIC_FALSE='#'
6646 else
6647 IFUNC_STATIC_TRUE='#'
6648 IFUNC_STATIC_FALSE=
6649 fi
6650
6651
6652
6653 # Set the 'development' global.
6654 . $srcdir/../bfd/development.sh
6655
6656 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 __GNUC__
6660 _ACEOF
6661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6662 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
6663
6664 else
6665 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
6666 fi
6667 rm -f conftest*
6668
6669
6670 # Check whether --enable-werror was given.
6671 if test "${enable_werror+set}" = set; then :
6672 enableval=$enable_werror; case "${enableval}" in
6673 yes | y) ERROR_ON_WARNING="yes" ;;
6674 no | n) ERROR_ON_WARNING="no" ;;
6675 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
6676 esac
6677 fi
6678
6679
6680 # Disable -Wformat by default when using gcc on mingw
6681 case "${host}" in
6682 *-*-mingw32*)
6683 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
6684 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
6685 fi
6686 ;;
6687 *) ;;
6688 esac
6689
6690 # Enable -Werror by default when using gcc. Turn it off for releases.
6691 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
6692 ERROR_ON_WARNING=yes
6693 fi
6694
6695 NO_WERROR=
6696 if test "${ERROR_ON_WARNING}" = yes ; then
6697 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
6698 NO_WERROR="-Wno-error"
6699 fi
6700
6701 if test "${GCC}" = yes ; then
6702 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
6703 fi
6704
6705 # Check whether --enable-build-warnings was given.
6706 if test "${enable_build_warnings+set}" = set; then :
6707 enableval=$enable_build_warnings; case "${enableval}" in
6708 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
6709 no) if test "${GCC}" = yes ; then
6710 WARN_CFLAGS="-w"
6711 fi;;
6712 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6713 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6714 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6715 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
6716 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6717 esac
6718 fi
6719
6720
6721 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
6722 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6723 fi
6724
6725
6726
6727
6728
6729 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
6730
6731
6732
6733 # Check whether --with-gold-ldflags was given.
6734 if test "${with_gold_ldflags+set}" = set; then :
6735 withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6736 GOLD_LDFLAGS=
6737 else
6738 GOLD_LDFLAGS=$withval
6739 fi
6740 else
6741 GOLD_LDFLAGS=
6742 fi
6743
6744
6745
6746
6747 # Check whether --with-gold-ldadd was given.
6748 if test "${with_gold_ldadd+set}" = set; then :
6749 withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
6750 GOLD_LDADD=
6751 else
6752 GOLD_LDADD=$withval
6753 fi
6754 else
6755 GOLD_LDADD=
6756 fi
6757
6758
6759
6760 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6761
6762
6763 for ac_header in sys/mman.h
6764 do :
6765 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
6766 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
6767 cat >>confdefs.h <<_ACEOF
6768 #define HAVE_SYS_MMAN_H 1
6769 _ACEOF
6770
6771 fi
6772
6773 done
6774
6775 for ac_func in chsize mmap
6776 do :
6777 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6778 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6779 eval as_val=\$$as_ac_var
6780 if test "x$as_val" = x""yes; then :
6781 cat >>confdefs.h <<_ACEOF
6782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6783 _ACEOF
6784
6785 fi
6786 done
6787
6788 for ac_func in pread ftruncate ffsll
6789 do :
6790 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6791 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6792 eval as_val=\$$as_ac_var
6793 if test "x$as_val" = x""yes; then :
6794 cat >>confdefs.h <<_ACEOF
6795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6796 _ACEOF
6797
6798 else
6799 case " $LIBOBJS " in
6800 *" $ac_func.$ac_objext "* ) ;;
6801 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6802 ;;
6803 esac
6804
6805 fi
6806 done
6807
6808
6809
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
6811 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
6812 if test "${gold_cv_lib_mremap_maymove+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6817
6818
6819 #include <sys/mman.h>
6820 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
6821
6822 int
6823 main ()
6824 {
6825
6826 ;
6827 return 0;
6828 }
6829 _ACEOF
6830 if ac_fn_c_try_link "$LINENO"; then :
6831 gold_cv_lib_mremap_maymove=yes
6832 else
6833 gold_cv_lib_mremap_maymove=no
6834 fi
6835 rm -f core conftest.err conftest.$ac_objext \
6836 conftest$ac_exeext conftest.$ac_ext
6837 fi
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
6839 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
6840 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
6841
6842 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
6843
6844 else
6845 case " $LIBOBJS " in
6846 *" mremap.$ac_objext "* ) ;;
6847 *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
6848 ;;
6849 esac
6850
6851 fi
6852
6853 # Link in zlib if we can. This allows us to write compressed sections.
6854
6855 # See if the user specified whether he wants zlib support or not.
6856
6857 # Check whether --with-zlib was given.
6858 if test "${with_zlib+set}" = set; then :
6859 withval=$with_zlib;
6860 else
6861 with_zlib=auto
6862 fi
6863
6864
6865 if test "$with_zlib" != "no"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6867 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6868 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 ac_func_search_save_LIBS=$LIBS
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874
6875 /* Override any GCC internal prototype to avoid an error.
6876 Use char because int might match the return type of a GCC
6877 builtin and then its argument prototype would still apply. */
6878 #ifdef __cplusplus
6879 extern "C"
6880 #endif
6881 char zlibVersion ();
6882 int
6883 main ()
6884 {
6885 return zlibVersion ();
6886 ;
6887 return 0;
6888 }
6889 _ACEOF
6890 for ac_lib in '' z; do
6891 if test -z "$ac_lib"; then
6892 ac_res="none required"
6893 else
6894 ac_res=-l$ac_lib
6895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6896 fi
6897 if ac_fn_c_try_link "$LINENO"; then :
6898 ac_cv_search_zlibVersion=$ac_res
6899 fi
6900 rm -f core conftest.err conftest.$ac_objext \
6901 conftest$ac_exeext
6902 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6903 break
6904 fi
6905 done
6906 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6907
6908 else
6909 ac_cv_search_zlibVersion=no
6910 fi
6911 rm conftest.$ac_ext
6912 LIBS=$ac_func_search_save_LIBS
6913 fi
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6915 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6916 ac_res=$ac_cv_search_zlibVersion
6917 if test "$ac_res" != no; then :
6918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6919 for ac_header in zlib.h
6920 do :
6921 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6922 if test "x$ac_cv_header_zlib_h" = x""yes; then :
6923 cat >>confdefs.h <<_ACEOF
6924 #define HAVE_ZLIB_H 1
6925 _ACEOF
6926
6927 fi
6928
6929 done
6930
6931 fi
6932
6933 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6934 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6935 fi
6936 fi
6937
6938 if test "$ac_cv_header_zlib_h" = "yes"; then
6939 HAVE_ZLIB_TRUE=
6940 HAVE_ZLIB_FALSE='#'
6941 else
6942 HAVE_ZLIB_TRUE='#'
6943 HAVE_ZLIB_FALSE=
6944 fi
6945
6946
6947 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
6948 if test "x$ac_cv_have_decl_basename" = x""yes; then :
6949 ac_have_decl=1
6950 else
6951 ac_have_decl=0
6952 fi
6953
6954 cat >>confdefs.h <<_ACEOF
6955 #define HAVE_DECL_BASENAME $ac_have_decl
6956 _ACEOF
6957 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
6958 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
6959 ac_have_decl=1
6960 else
6961 ac_have_decl=0
6962 fi
6963
6964 cat >>confdefs.h <<_ACEOF
6965 #define HAVE_DECL_FFS $ac_have_decl
6966 _ACEOF
6967 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
6968 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
6969 ac_have_decl=1
6970 else
6971 ac_have_decl=0
6972 fi
6973
6974 cat >>confdefs.h <<_ACEOF
6975 #define HAVE_DECL_ASPRINTF $ac_have_decl
6976 _ACEOF
6977 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6978 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
6979 ac_have_decl=1
6980 else
6981 ac_have_decl=0
6982 fi
6983
6984 cat >>confdefs.h <<_ACEOF
6985 #define HAVE_DECL_VASPRINTF $ac_have_decl
6986 _ACEOF
6987 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
6988 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
6989 ac_have_decl=1
6990 else
6991 ac_have_decl=0
6992 fi
6993
6994 cat >>confdefs.h <<_ACEOF
6995 #define HAVE_DECL_SNPRINTF $ac_have_decl
6996 _ACEOF
6997 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
6998 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
6999 ac_have_decl=1
7000 else
7001 ac_have_decl=0
7002 fi
7003
7004 cat >>confdefs.h <<_ACEOF
7005 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7006 _ACEOF
7007 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7008 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
7009 ac_have_decl=1
7010 else
7011 ac_have_decl=0
7012 fi
7013
7014 cat >>confdefs.h <<_ACEOF
7015 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7016 _ACEOF
7017
7018
7019 save_CFLAGS="$CFLAGS"
7020 CFLAGS="$CFLAGS -Werror -gpubnames"
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023 int i;
7024 _ACEOF
7025 if ac_fn_c_try_compile "$LINENO"; then :
7026 have_pubnames=yes
7027 else
7028 have_pubnames=no
7029 fi
7030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031 CFLAGS="$save_CFLAGS"
7032 if test "$have_pubnames" = "yes"; then
7033 HAVE_PUBNAMES_TRUE=
7034 HAVE_PUBNAMES_FALSE='#'
7035 else
7036 HAVE_PUBNAMES_TRUE='#'
7037 HAVE_PUBNAMES_FALSE=
7038 fi
7039
7040
7041 save_CFLAGS="$CFLAGS"
7042 CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7045 int i;
7046 _ACEOF
7047 if ac_fn_c_try_compile "$LINENO"; then :
7048 have_no_use_linker_plugin=yes
7049 else
7050 have_no_use_linker_plugin=no
7051 fi
7052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053 CFLAGS="$save_CFLAGS"
7054 if test "$have_no_use_linker_plugin" = "yes"; then
7055 HAVE_NO_USE_LINKER_PLUGIN_TRUE=
7056 HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
7057 else
7058 HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
7059 HAVE_NO_USE_LINKER_PLUGIN_FALSE=
7060 fi
7061
7062
7063 ac_ext=cpp
7064 ac_cpp='$CXXCPP $CPPFLAGS'
7065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7068
7069
7070
7071 ac_ext=cpp
7072 ac_cpp='$CXXCPP $CPPFLAGS'
7073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7077 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7078 if test -z "$CXXCPP"; then
7079 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7080 $as_echo_n "(cached) " >&6
7081 else
7082 # Double quotes because CXXCPP needs to be expanded
7083 for CXXCPP in "$CXX -E" "/lib/cpp"
7084 do
7085 ac_preproc_ok=false
7086 for ac_cxx_preproc_warn_flag in '' yes
7087 do
7088 # Use a header file that comes with gcc, so configuring glibc
7089 # with a fresh cross-compiler works.
7090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7091 # <limits.h> exists even on freestanding compilers.
7092 # On the NeXT, cc -E runs the code through the compiler's parser,
7093 # not just through cpp. "Syntax error" is here to catch this case.
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7096 #ifdef __STDC__
7097 # include <limits.h>
7098 #else
7099 # include <assert.h>
7100 #endif
7101 Syntax error
7102 _ACEOF
7103 if ac_fn_cxx_try_cpp "$LINENO"; then :
7104
7105 else
7106 # Broken: fails on valid input.
7107 continue
7108 fi
7109 rm -f conftest.err conftest.$ac_ext
7110
7111 # OK, works on sane cases. Now check whether nonexistent headers
7112 # can be detected and how.
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7115 #include <ac_nonexistent.h>
7116 _ACEOF
7117 if ac_fn_cxx_try_cpp "$LINENO"; then :
7118 # Broken: success on invalid input.
7119 continue
7120 else
7121 # Passes both tests.
7122 ac_preproc_ok=:
7123 break
7124 fi
7125 rm -f conftest.err conftest.$ac_ext
7126
7127 done
7128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7129 rm -f conftest.err conftest.$ac_ext
7130 if $ac_preproc_ok; then :
7131 break
7132 fi
7133
7134 done
7135 ac_cv_prog_CXXCPP=$CXXCPP
7136
7137 fi
7138 CXXCPP=$ac_cv_prog_CXXCPP
7139 else
7140 ac_cv_prog_CXXCPP=$CXXCPP
7141 fi
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7143 $as_echo "$CXXCPP" >&6; }
7144 ac_preproc_ok=false
7145 for ac_cxx_preproc_warn_flag in '' yes
7146 do
7147 # Use a header file that comes with gcc, so configuring glibc
7148 # with a fresh cross-compiler works.
7149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7150 # <limits.h> exists even on freestanding compilers.
7151 # On the NeXT, cc -E runs the code through the compiler's parser,
7152 # not just through cpp. "Syntax error" is here to catch this case.
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7155 #ifdef __STDC__
7156 # include <limits.h>
7157 #else
7158 # include <assert.h>
7159 #endif
7160 Syntax error
7161 _ACEOF
7162 if ac_fn_cxx_try_cpp "$LINENO"; then :
7163
7164 else
7165 # Broken: fails on valid input.
7166 continue
7167 fi
7168 rm -f conftest.err conftest.$ac_ext
7169
7170 # OK, works on sane cases. Now check whether nonexistent headers
7171 # can be detected and how.
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7174 #include <ac_nonexistent.h>
7175 _ACEOF
7176 if ac_fn_cxx_try_cpp "$LINENO"; then :
7177 # Broken: success on invalid input.
7178 continue
7179 else
7180 # Passes both tests.
7181 ac_preproc_ok=:
7182 break
7183 fi
7184 rm -f conftest.err conftest.$ac_ext
7185
7186 done
7187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7188 rm -f conftest.err conftest.$ac_ext
7189 if $ac_preproc_ok; then :
7190
7191 else
7192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7194 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
7195 See \`config.log' for more details." "$LINENO" 5; }
7196 fi
7197
7198 ac_ext=cpp
7199 ac_cpp='$CXXCPP $CPPFLAGS'
7200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7203
7204
7205 for ac_header in unordered_set unordered_map
7206 do :
7207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7208 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7209 eval as_val=\$$as_ac_Header
7210 if test "x$as_val" = x""yes; then :
7211 cat >>confdefs.h <<_ACEOF
7212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7213 _ACEOF
7214
7215 fi
7216
7217 done
7218
7219 for ac_header in tr1/unordered_set tr1/unordered_map
7220 do :
7221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7222 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7223 eval as_val=\$$as_ac_Header
7224 if test "x$as_val" = x""yes; then :
7225 cat >>confdefs.h <<_ACEOF
7226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7227 _ACEOF
7228
7229 fi
7230
7231 done
7232
7233 for ac_header in ext/hash_map ext/hash_set
7234 do :
7235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7236 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7237 eval as_val=\$$as_ac_Header
7238 if test "x$as_val" = x""yes; then :
7239 cat >>confdefs.h <<_ACEOF
7240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7241 _ACEOF
7242
7243 fi
7244
7245 done
7246
7247 for ac_header in byteswap.h
7248 do :
7249 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
7250 if test "x$ac_cv_header_byteswap_h" = x""yes; then :
7251 cat >>confdefs.h <<_ACEOF
7252 #define HAVE_BYTESWAP_H 1
7253 _ACEOF
7254
7255 fi
7256
7257 done
7258
7259
7260 for ac_header in windows.h
7261 do :
7262 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7263 if test "x$ac_cv_header_windows_h" = x""yes; then :
7264 cat >>confdefs.h <<_ACEOF
7265 #define HAVE_WINDOWS_H 1
7266 _ACEOF
7267
7268 fi
7269
7270 done
7271
7272 for ac_header in dlfcn.h
7273 do :
7274 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7275 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7276 cat >>confdefs.h <<_ACEOF
7277 #define HAVE_DLFCN_H 1
7278 _ACEOF
7279
7280 fi
7281
7282 done
7283
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7285 $as_echo_n "checking for library containing dlopen... " >&6; }
7286 if test "${ac_cv_search_dlopen+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 ac_func_search_save_LIBS=$LIBS
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7292
7293 /* Override any GCC internal prototype to avoid an error.
7294 Use char because int might match the return type of a GCC
7295 builtin and then its argument prototype would still apply. */
7296 #ifdef __cplusplus
7297 extern "C"
7298 #endif
7299 char dlopen ();
7300 int
7301 main ()
7302 {
7303 return dlopen ();
7304 ;
7305 return 0;
7306 }
7307 _ACEOF
7308 for ac_lib in '' dl dld; do
7309 if test -z "$ac_lib"; then
7310 ac_res="none required"
7311 else
7312 ac_res=-l$ac_lib
7313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7314 fi
7315 if ac_fn_cxx_try_link "$LINENO"; then :
7316 ac_cv_search_dlopen=$ac_res
7317 fi
7318 rm -f core conftest.err conftest.$ac_objext \
7319 conftest$ac_exeext
7320 if test "${ac_cv_search_dlopen+set}" = set; then :
7321 break
7322 fi
7323 done
7324 if test "${ac_cv_search_dlopen+set}" = set; then :
7325
7326 else
7327 ac_cv_search_dlopen=no
7328 fi
7329 rm conftest.$ac_ext
7330 LIBS=$ac_func_search_save_LIBS
7331 fi
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7333 $as_echo "$ac_cv_search_dlopen" >&6; }
7334 ac_res=$ac_cv_search_dlopen
7335 if test "$ac_res" != no; then :
7336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7337
7338 fi
7339
7340 case "$ac_cv_search_dlopen" in
7341 no*) DLOPEN_LIBS="";;
7342 *) DLOPEN_LIBS="$ac_cv_search_dlopen";;
7343 esac
7344
7345
7346 for ac_func in mallinfo posix_fallocate fallocate readv sysconf times
7347 do :
7348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7349 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7350 eval as_val=\$$as_ac_var
7351 if test "x$as_val" = x""yes; then :
7352 cat >>confdefs.h <<_ACEOF
7353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7354 _ACEOF
7355
7356 fi
7357 done
7358
7359 ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
7360 if test "x$ac_cv_have_decl_basename" = x""yes; then :
7361 ac_have_decl=1
7362 else
7363 ac_have_decl=0
7364 fi
7365
7366 cat >>confdefs.h <<_ACEOF
7367 #define HAVE_DECL_BASENAME $ac_have_decl
7368 _ACEOF
7369 ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7370 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
7371 ac_have_decl=1
7372 else
7373 ac_have_decl=0
7374 fi
7375
7376 cat >>confdefs.h <<_ACEOF
7377 #define HAVE_DECL_FFS $ac_have_decl
7378 _ACEOF
7379 ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7380 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
7381 ac_have_decl=1
7382 else
7383 ac_have_decl=0
7384 fi
7385
7386 cat >>confdefs.h <<_ACEOF
7387 #define HAVE_DECL_ASPRINTF $ac_have_decl
7388 _ACEOF
7389 ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7390 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
7391 ac_have_decl=1
7392 else
7393 ac_have_decl=0
7394 fi
7395
7396 cat >>confdefs.h <<_ACEOF
7397 #define HAVE_DECL_VASPRINTF $ac_have_decl
7398 _ACEOF
7399 ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7400 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
7401 ac_have_decl=1
7402 else
7403 ac_have_decl=0
7404 fi
7405
7406 cat >>confdefs.h <<_ACEOF
7407 #define HAVE_DECL_SNPRINTF $ac_have_decl
7408 _ACEOF
7409 ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7410 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
7411 ac_have_decl=1
7412 else
7413 ac_have_decl=0
7414 fi
7415
7416 cat >>confdefs.h <<_ACEOF
7417 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7418 _ACEOF
7419 ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7420 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
7421 ac_have_decl=1
7422 else
7423 ac_have_decl=0
7424 fi
7425
7426 cat >>confdefs.h <<_ACEOF
7427 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7428 _ACEOF
7429 ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
7430 if test "x$ac_cv_have_decl_strndup" = x""yes; then :
7431 ac_have_decl=1
7432 else
7433 ac_have_decl=0
7434 fi
7435
7436 cat >>confdefs.h <<_ACEOF
7437 #define HAVE_DECL_STRNDUP $ac_have_decl
7438 _ACEOF
7439 ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
7440 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
7441 ac_have_decl=1
7442 else
7443 ac_have_decl=0
7444 fi
7445
7446 cat >>confdefs.h <<_ACEOF
7447 #define HAVE_DECL_MEMMEM $ac_have_decl
7448 _ACEOF
7449
7450
7451 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
7452 # at link time with some versions of GCC.
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
7454 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
7455 if test "${gold_cv_unordered_map_rehash+set}" = set; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7460
7461 #include <tr1/unordered_map>
7462 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
7463
7464 int
7465 main ()
7466 {
7467
7468 ;
7469 return 0;
7470 }
7471 _ACEOF
7472 if ac_fn_cxx_try_link "$LINENO"; then :
7473 gold_cv_unordered_map_rehash=yes
7474 else
7475 gold_cv_unordered_map_rehash=no
7476 fi
7477 rm -f core conftest.err conftest.$ac_objext \
7478 conftest$ac_exeext conftest.$ac_ext
7479 fi
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
7481 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
7482 if test "$gold_cv_unordered_map_rehash" = "yes"; then
7483
7484 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
7485
7486 fi
7487
7488 # Use of tr1/unordered_map with off_t as a key is not supported on GCC
7489 # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
7491 $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
7492 if test "${gold_cv_hash_off_t+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 CXXFLAGS_hold=$CXXFLAGS
7496 CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7499
7500 #include <sys/types.h>
7501 #include <tr1/unordered_map>
7502 std::tr1::hash<off_t> h;
7503
7504 _ACEOF
7505 if ac_fn_cxx_try_compile "$LINENO"; then :
7506 gold_cv_hash_off_t=yes
7507 else
7508 gold_cv_hash_off_t=no
7509 fi
7510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511 CXXFLAGS=$CXXFLAGS_hold
7512 fi
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
7514 $as_echo "$gold_cv_hash_off_t" >&6; }
7515 if test "$gold_cv_hash_off_t" = "yes"; then
7516
7517 $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
7518
7519 fi
7520
7521 # gcc 4.3.0 doesn't recognize the printf attribute on a template
7522 # function. Check for that. This is gcc bug 35546. This test can
7523 # probably be removed after the bug has been fixed for a while.
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
7525 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
7526 if test "${gold_cv_template_attribute+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531
7532 template<typename T> extern void foo(const char*, ...)
7533 __attribute__ ((__format__ (__printf__, 1, 2)));
7534 template<typename T> void foo(const char* format, ...) {}
7535 void bar() { foo<int>("%s\n", "foo"); }
7536
7537 _ACEOF
7538 if ac_fn_cxx_try_compile "$LINENO"; then :
7539 gold_cv_template_attribute=yes
7540 else
7541 gold_cv_template_attribute=no
7542 fi
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 fi
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
7546 $as_echo "$gold_cv_template_attribute" >&6; }
7547 if test "$gold_cv_template_attribute" = "yes"; then
7548
7549 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
7550
7551 fi
7552
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
7554 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
7555 if test "${gold_cv_stat_st_mtim+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560
7561 #include <sys/stat.h>
7562 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
7563
7564 int
7565 main ()
7566 {
7567
7568 ;
7569 return 0;
7570 }
7571 _ACEOF
7572 if ac_fn_cxx_try_compile "$LINENO"; then :
7573 gold_cv_stat_st_mtim=yes
7574 else
7575 gold_cv_stat_st_mtim=no
7576 fi
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 fi
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
7580 $as_echo "$gold_cv_stat_st_mtim" >&6; }
7581 if test "$gold_cv_stat_st_mtim" = "yes"; then
7582
7583 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
7584
7585 fi
7586
7587 ac_ext=c
7588 ac_cpp='$CPP $CPPFLAGS'
7589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7592
7593
7594 for ac_header in locale.h
7595 do :
7596 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
7597 if test "x$ac_cv_header_locale_h" = x""yes; then :
7598 cat >>confdefs.h <<_ACEOF
7599 #define HAVE_LOCALE_H 1
7600 _ACEOF
7601
7602 fi
7603
7604 done
7605
7606 for ac_func in setlocale
7607 do :
7608 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
7609 if test "x$ac_cv_func_setlocale" = x""yes; then :
7610 cat >>confdefs.h <<_ACEOF
7611 #define HAVE_SETLOCALE 1
7612 _ACEOF
7613
7614 fi
7615 done
7616
7617
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
7619 $as_echo_n "checking for LC_MESSAGES... " >&6; }
7620 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7625 #include <locale.h>
7626 int
7627 main ()
7628 {
7629 return LC_MESSAGES
7630 ;
7631 return 0;
7632 }
7633 _ACEOF
7634 if ac_fn_c_try_link "$LINENO"; then :
7635 am_cv_val_LC_MESSAGES=yes
7636 else
7637 am_cv_val_LC_MESSAGES=no
7638 fi
7639 rm -f core conftest.err conftest.$ac_objext \
7640 conftest$ac_exeext conftest.$ac_ext
7641 fi
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
7643 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
7644 if test $am_cv_val_LC_MESSAGES = yes; then
7645
7646 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
7647
7648 fi
7649
7650
7651
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
7653 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
7654 # Check whether --enable-maintainer-mode was given.
7655 if test "${enable_maintainer_mode+set}" = set; then :
7656 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
7657 else
7658 USE_MAINTAINER_MODE=no
7659 fi
7660
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
7662 $as_echo "$USE_MAINTAINER_MODE" >&6; }
7663 if test $USE_MAINTAINER_MODE = yes; then
7664 MAINTAINER_MODE_TRUE=
7665 MAINTAINER_MODE_FALSE='#'
7666 else
7667 MAINTAINER_MODE_TRUE='#'
7668 MAINTAINER_MODE_FALSE=
7669 fi
7670
7671 MAINT=$MAINTAINER_MODE_TRUE
7672
7673
7674
7675 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
7676
7677 cat >confcache <<\_ACEOF
7678 # This file is a shell script that caches the results of configure
7679 # tests run on this system so they can be shared between configure
7680 # scripts and configure runs, see configure's option --config-cache.
7681 # It is not useful on other systems. If it contains results you don't
7682 # want to keep, you may remove or edit it.
7683 #
7684 # config.status only pays attention to the cache file if you give it
7685 # the --recheck option to rerun configure.
7686 #
7687 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7688 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7689 # following values.
7690
7691 _ACEOF
7692
7693 # The following way of writing the cache mishandles newlines in values,
7694 # but we know of no workaround that is simple, portable, and efficient.
7695 # So, we kill variables containing newlines.
7696 # Ultrix sh set writes to stderr and can't be redirected directly,
7697 # and sets the high bit in the cache file unless we assign to the vars.
7698 (
7699 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7700 eval ac_val=\$$ac_var
7701 case $ac_val in #(
7702 *${as_nl}*)
7703 case $ac_var in #(
7704 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7705 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7706 esac
7707 case $ac_var in #(
7708 _ | IFS | as_nl) ;; #(
7709 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7710 *) { eval $ac_var=; unset $ac_var;} ;;
7711 esac ;;
7712 esac
7713 done
7714
7715 (set) 2>&1 |
7716 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7717 *${as_nl}ac_space=\ *)
7718 # `set' does not quote correctly, so add quotes: double-quote
7719 # substitution turns \\\\ into \\, and sed turns \\ into \.
7720 sed -n \
7721 "s/'/'\\\\''/g;
7722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7723 ;; #(
7724 *)
7725 # `set' quotes correctly as required by POSIX, so do not add quotes.
7726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7727 ;;
7728 esac |
7729 sort
7730 ) |
7731 sed '
7732 /^ac_cv_env_/b end
7733 t clear
7734 :clear
7735 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7736 t end
7737 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7738 :end' >>confcache
7739 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7740 if test -w "$cache_file"; then
7741 test "x$cache_file" != "x/dev/null" &&
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7743 $as_echo "$as_me: updating cache $cache_file" >&6;}
7744 cat confcache >$cache_file
7745 else
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7747 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7748 fi
7749 fi
7750 rm -f confcache
7751
7752 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7753 # Let make expand exec_prefix.
7754 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7755
7756 DEFS=-DHAVE_CONFIG_H
7757
7758 ac_libobjs=
7759 ac_ltlibobjs=
7760 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7761 # 1. Remove the extension, and $U if already installed.
7762 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7763 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7764 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7765 # will be set to the directory where LIBOBJS objects are built.
7766 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7767 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7768 done
7769 LIBOBJS=$ac_libobjs
7770
7771 LTLIBOBJS=$ac_ltlibobjs
7772
7773
7774 if test -n "$EXEEXT"; then
7775 am__EXEEXT_TRUE=
7776 am__EXEEXT_FALSE='#'
7777 else
7778 am__EXEEXT_TRUE='#'
7779 am__EXEEXT_FALSE=
7780 fi
7781
7782 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
7783 as_fn_error "conditional \"THREADS\" was never defined.
7784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7785 fi
7786 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
7787 as_fn_error "conditional \"PLUGINS\" was never defined.
7788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7789 fi
7790 if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
7791 as_fn_error "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
7792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7793 fi
7794 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
7795 as_fn_error "conditional \"DEFAULT_TARGET_ARM\" was never defined.
7796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7797 fi
7798 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
7799 as_fn_error "conditional \"DEFAULT_TARGET_I386\" was never defined.
7800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7801 fi
7802 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
7803 as_fn_error "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
7804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7805 fi
7806 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
7807 as_fn_error "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
7808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7809 fi
7810 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
7811 as_fn_error "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
7812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7813 fi
7814 if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
7815 as_fn_error "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
7816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7817 fi
7818 if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
7819 as_fn_error "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
7820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7821 fi
7822 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7823 as_fn_error "conditional \"AMDEP\" was never defined.
7824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7825 fi
7826 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7827 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7829 fi
7830 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7831 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7833 fi
7834
7835 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
7836 as_fn_error "conditional \"NATIVE_LINKER\" was never defined.
7837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7838 fi
7839 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
7840 as_fn_error "conditional \"GCC\" was never defined.
7841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7842 fi
7843 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
7844 as_fn_error "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
7845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7846 fi
7847 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
7848 as_fn_error "conditional \"HAVE_STATIC\" was never defined.
7849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7850 fi
7851 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
7852 as_fn_error "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
7853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7854 fi
7855 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
7856 as_fn_error "conditional \"MCMODEL_MEDIUM\" was never defined.
7857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7858 fi
7859 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
7860 as_fn_error "conditional \"TLS\" was never defined.
7861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7862 fi
7863 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
7864 as_fn_error "conditional \"STATIC_TLS\" was never defined.
7865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7866 fi
7867 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
7868 as_fn_error "conditional \"OMP_SUPPORT\" was never defined.
7869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7870 fi
7871 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
7872 as_fn_error "conditional \"TLS_GNU2_DIALECT\" was never defined.
7873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7874 fi
7875 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
7876 as_fn_error "conditional \"TLS_DESCRIPTORS\" was never defined.
7877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7878 fi
7879 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
7880 as_fn_error "conditional \"IFUNC\" was never defined.
7881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7882 fi
7883 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
7884 as_fn_error "conditional \"IFUNC_STATIC\" was never defined.
7885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7886 fi
7887 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
7888 as_fn_error "conditional \"HAVE_ZLIB\" was never defined.
7889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7890 fi
7891 if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
7892 as_fn_error "conditional \"HAVE_PUBNAMES\" was never defined.
7893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7894 fi
7895 if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
7896 as_fn_error "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
7897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7898 fi
7899 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7900 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7902 fi
7903
7904 : ${CONFIG_STATUS=./config.status}
7905 ac_write_fail=0
7906 ac_clean_files_save=$ac_clean_files
7907 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7909 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7910 as_write_fail=0
7911 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7912 #! $SHELL
7913 # Generated by $as_me.
7914 # Run this file to recreate the current configuration.
7915 # Compiler output produced by configure, useful for debugging
7916 # configure, is in config.log if it exists.
7917
7918 debug=false
7919 ac_cs_recheck=false
7920 ac_cs_silent=false
7921
7922 SHELL=\${CONFIG_SHELL-$SHELL}
7923 export SHELL
7924 _ASEOF
7925 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7926 ## -------------------- ##
7927 ## M4sh Initialization. ##
7928 ## -------------------- ##
7929
7930 # Be more Bourne compatible
7931 DUALCASE=1; export DUALCASE # for MKS sh
7932 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7933 emulate sh
7934 NULLCMD=:
7935 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7936 # is contrary to our usage. Disable this feature.
7937 alias -g '${1+"$@"}'='"$@"'
7938 setopt NO_GLOB_SUBST
7939 else
7940 case `(set -o) 2>/dev/null` in #(
7941 *posix*) :
7942 set -o posix ;; #(
7943 *) :
7944 ;;
7945 esac
7946 fi
7947
7948
7949 as_nl='
7950 '
7951 export as_nl
7952 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7953 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7954 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7955 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7956 # Prefer a ksh shell builtin over an external printf program on Solaris,
7957 # but without wasting forks for bash or zsh.
7958 if test -z "$BASH_VERSION$ZSH_VERSION" \
7959 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7960 as_echo='print -r --'
7961 as_echo_n='print -rn --'
7962 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7963 as_echo='printf %s\n'
7964 as_echo_n='printf %s'
7965 else
7966 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7967 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7968 as_echo_n='/usr/ucb/echo -n'
7969 else
7970 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7971 as_echo_n_body='eval
7972 arg=$1;
7973 case $arg in #(
7974 *"$as_nl"*)
7975 expr "X$arg" : "X\\(.*\\)$as_nl";
7976 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7977 esac;
7978 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7979 '
7980 export as_echo_n_body
7981 as_echo_n='sh -c $as_echo_n_body as_echo'
7982 fi
7983 export as_echo_body
7984 as_echo='sh -c $as_echo_body as_echo'
7985 fi
7986
7987 # The user is always right.
7988 if test "${PATH_SEPARATOR+set}" != set; then
7989 PATH_SEPARATOR=:
7990 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7991 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7992 PATH_SEPARATOR=';'
7993 }
7994 fi
7995
7996
7997 # IFS
7998 # We need space, tab and new line, in precisely that order. Quoting is
7999 # there to prevent editors from complaining about space-tab.
8000 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8001 # splitting by setting IFS to empty value.)
8002 IFS=" "" $as_nl"
8003
8004 # Find who we are. Look in the path if we contain no directory separator.
8005 case $0 in #((
8006 *[\\/]* ) as_myself=$0 ;;
8007 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH
8009 do
8010 IFS=$as_save_IFS
8011 test -z "$as_dir" && as_dir=.
8012 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8013 done
8014 IFS=$as_save_IFS
8015
8016 ;;
8017 esac
8018 # We did not find ourselves, most probably we were run as `sh COMMAND'
8019 # in which case we are not to be found in the path.
8020 if test "x$as_myself" = x; then
8021 as_myself=$0
8022 fi
8023 if test ! -f "$as_myself"; then
8024 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8025 exit 1
8026 fi
8027
8028 # Unset variables that we do not need and which cause bugs (e.g. in
8029 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8030 # suppresses any "Segmentation fault" message there. '((' could
8031 # trigger a bug in pdksh 5.2.14.
8032 for as_var in BASH_ENV ENV MAIL MAILPATH
8033 do eval test x\${$as_var+set} = xset \
8034 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8035 done
8036 PS1='$ '
8037 PS2='> '
8038 PS4='+ '
8039
8040 # NLS nuisances.
8041 LC_ALL=C
8042 export LC_ALL
8043 LANGUAGE=C
8044 export LANGUAGE
8045
8046 # CDPATH.
8047 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8048
8049
8050 # as_fn_error ERROR [LINENO LOG_FD]
8051 # ---------------------------------
8052 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8053 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8054 # script with status $?, using 1 if that was 0.
8055 as_fn_error ()
8056 {
8057 as_status=$?; test $as_status -eq 0 && as_status=1
8058 if test "$3"; then
8059 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8060 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8061 fi
8062 $as_echo "$as_me: error: $1" >&2
8063 as_fn_exit $as_status
8064 } # as_fn_error
8065
8066
8067 # as_fn_set_status STATUS
8068 # -----------------------
8069 # Set $? to STATUS, without forking.
8070 as_fn_set_status ()
8071 {
8072 return $1
8073 } # as_fn_set_status
8074
8075 # as_fn_exit STATUS
8076 # -----------------
8077 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8078 as_fn_exit ()
8079 {
8080 set +e
8081 as_fn_set_status $1
8082 exit $1
8083 } # as_fn_exit
8084
8085 # as_fn_unset VAR
8086 # ---------------
8087 # Portably unset VAR.
8088 as_fn_unset ()
8089 {
8090 { eval $1=; unset $1;}
8091 }
8092 as_unset=as_fn_unset
8093 # as_fn_append VAR VALUE
8094 # ----------------------
8095 # Append the text in VALUE to the end of the definition contained in VAR. Take
8096 # advantage of any shell optimizations that allow amortized linear growth over
8097 # repeated appends, instead of the typical quadratic growth present in naive
8098 # implementations.
8099 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8100 eval 'as_fn_append ()
8101 {
8102 eval $1+=\$2
8103 }'
8104 else
8105 as_fn_append ()
8106 {
8107 eval $1=\$$1\$2
8108 }
8109 fi # as_fn_append
8110
8111 # as_fn_arith ARG...
8112 # ------------------
8113 # Perform arithmetic evaluation on the ARGs, and store the result in the
8114 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8115 # must be portable across $(()) and expr.
8116 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8117 eval 'as_fn_arith ()
8118 {
8119 as_val=$(( $* ))
8120 }'
8121 else
8122 as_fn_arith ()
8123 {
8124 as_val=`expr "$@" || test $? -eq 1`
8125 }
8126 fi # as_fn_arith
8127
8128
8129 if expr a : '\(a\)' >/dev/null 2>&1 &&
8130 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8131 as_expr=expr
8132 else
8133 as_expr=false
8134 fi
8135
8136 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8137 as_basename=basename
8138 else
8139 as_basename=false
8140 fi
8141
8142 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8143 as_dirname=dirname
8144 else
8145 as_dirname=false
8146 fi
8147
8148 as_me=`$as_basename -- "$0" ||
8149 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8150 X"$0" : 'X\(//\)$' \| \
8151 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8152 $as_echo X/"$0" |
8153 sed '/^.*\/\([^/][^/]*\)\/*$/{
8154 s//\1/
8155 q
8156 }
8157 /^X\/\(\/\/\)$/{
8158 s//\1/
8159 q
8160 }
8161 /^X\/\(\/\).*/{
8162 s//\1/
8163 q
8164 }
8165 s/.*/./; q'`
8166
8167 # Avoid depending upon Character Ranges.
8168 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8169 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8170 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8171 as_cr_digits='0123456789'
8172 as_cr_alnum=$as_cr_Letters$as_cr_digits
8173
8174 ECHO_C= ECHO_N= ECHO_T=
8175 case `echo -n x` in #(((((
8176 -n*)
8177 case `echo 'xy\c'` in
8178 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8179 xy) ECHO_C='\c';;
8180 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8181 ECHO_T=' ';;
8182 esac;;
8183 *)
8184 ECHO_N='-n';;
8185 esac
8186
8187 rm -f conf$$ conf$$.exe conf$$.file
8188 if test -d conf$$.dir; then
8189 rm -f conf$$.dir/conf$$.file
8190 else
8191 rm -f conf$$.dir
8192 mkdir conf$$.dir 2>/dev/null
8193 fi
8194 if (echo >conf$$.file) 2>/dev/null; then
8195 if ln -s conf$$.file conf$$ 2>/dev/null; then
8196 as_ln_s='ln -s'
8197 # ... but there are two gotchas:
8198 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8199 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8200 # In both cases, we have to default to `cp -p'.
8201 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8202 as_ln_s='cp -p'
8203 elif ln conf$$.file conf$$ 2>/dev/null; then
8204 as_ln_s=ln
8205 else
8206 as_ln_s='cp -p'
8207 fi
8208 else
8209 as_ln_s='cp -p'
8210 fi
8211 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8212 rmdir conf$$.dir 2>/dev/null
8213
8214
8215 # as_fn_mkdir_p
8216 # -------------
8217 # Create "$as_dir" as a directory, including parents if necessary.
8218 as_fn_mkdir_p ()
8219 {
8220
8221 case $as_dir in #(
8222 -*) as_dir=./$as_dir;;
8223 esac
8224 test -d "$as_dir" || eval $as_mkdir_p || {
8225 as_dirs=
8226 while :; do
8227 case $as_dir in #(
8228 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8229 *) as_qdir=$as_dir;;
8230 esac
8231 as_dirs="'$as_qdir' $as_dirs"
8232 as_dir=`$as_dirname -- "$as_dir" ||
8233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8234 X"$as_dir" : 'X\(//\)[^/]' \| \
8235 X"$as_dir" : 'X\(//\)$' \| \
8236 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8237 $as_echo X"$as_dir" |
8238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8239 s//\1/
8240 q
8241 }
8242 /^X\(\/\/\)[^/].*/{
8243 s//\1/
8244 q
8245 }
8246 /^X\(\/\/\)$/{
8247 s//\1/
8248 q
8249 }
8250 /^X\(\/\).*/{
8251 s//\1/
8252 q
8253 }
8254 s/.*/./; q'`
8255 test -d "$as_dir" && break
8256 done
8257 test -z "$as_dirs" || eval "mkdir $as_dirs"
8258 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8259
8260
8261 } # as_fn_mkdir_p
8262 if mkdir -p . 2>/dev/null; then
8263 as_mkdir_p='mkdir -p "$as_dir"'
8264 else
8265 test -d ./-p && rmdir ./-p
8266 as_mkdir_p=false
8267 fi
8268
8269 if test -x / >/dev/null 2>&1; then
8270 as_test_x='test -x'
8271 else
8272 if ls -dL / >/dev/null 2>&1; then
8273 as_ls_L_option=L
8274 else
8275 as_ls_L_option=
8276 fi
8277 as_test_x='
8278 eval sh -c '\''
8279 if test -d "$1"; then
8280 test -d "$1/.";
8281 else
8282 case $1 in #(
8283 -*)set "./$1";;
8284 esac;
8285 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8286 ???[sx]*):;;*)false;;esac;fi
8287 '\'' sh
8288 '
8289 fi
8290 as_executable_p=$as_test_x
8291
8292 # Sed expression to map a string onto a valid CPP name.
8293 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8294
8295 # Sed expression to map a string onto a valid variable name.
8296 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8297
8298
8299 exec 6>&1
8300 ## ----------------------------------- ##
8301 ## Main body of $CONFIG_STATUS script. ##
8302 ## ----------------------------------- ##
8303 _ASEOF
8304 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8305
8306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8307 # Save the log message, to keep $0 and so on meaningful, and to
8308 # report actual input values of CONFIG_FILES etc. instead of their
8309 # values after options handling.
8310 ac_log="
8311 This file was extended by gold $as_me 0.1, which was
8312 generated by GNU Autoconf 2.64. Invocation command line was
8313
8314 CONFIG_FILES = $CONFIG_FILES
8315 CONFIG_HEADERS = $CONFIG_HEADERS
8316 CONFIG_LINKS = $CONFIG_LINKS
8317 CONFIG_COMMANDS = $CONFIG_COMMANDS
8318 $ $0 $@
8319
8320 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8321 "
8322
8323 _ACEOF
8324
8325 case $ac_config_files in *"
8326 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8327 esac
8328
8329 case $ac_config_headers in *"
8330 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8331 esac
8332
8333
8334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8335 # Files that config.status was made for.
8336 config_files="$ac_config_files"
8337 config_headers="$ac_config_headers"
8338 config_commands="$ac_config_commands"
8339
8340 _ACEOF
8341
8342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8343 ac_cs_usage="\
8344 \`$as_me' instantiates files and other configuration actions
8345 from templates according to the current configuration. Unless the files
8346 and actions are specified as TAGs, all are instantiated by default.
8347
8348 Usage: $0 [OPTION]... [TAG]...
8349
8350 -h, --help print this help, then exit
8351 -V, --version print version number and configuration settings, then exit
8352 -q, --quiet, --silent
8353 do not print progress messages
8354 -d, --debug don't remove temporary files
8355 --recheck update $as_me by reconfiguring in the same conditions
8356 --file=FILE[:TEMPLATE]
8357 instantiate the configuration file FILE
8358 --header=FILE[:TEMPLATE]
8359 instantiate the configuration header FILE
8360
8361 Configuration files:
8362 $config_files
8363
8364 Configuration headers:
8365 $config_headers
8366
8367 Configuration commands:
8368 $config_commands
8369
8370 Report bugs to the package provider."
8371
8372 _ACEOF
8373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8374 ac_cs_version="\\
8375 gold config.status 0.1
8376 configured by $0, generated by GNU Autoconf 2.64,
8377 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8378
8379 Copyright (C) 2009 Free Software Foundation, Inc.
8380 This config.status script is free software; the Free Software Foundation
8381 gives unlimited permission to copy, distribute and modify it."
8382
8383 ac_pwd='$ac_pwd'
8384 srcdir='$srcdir'
8385 INSTALL='$INSTALL'
8386 MKDIR_P='$MKDIR_P'
8387 AWK='$AWK'
8388 test -n "\$AWK" || AWK=awk
8389 _ACEOF
8390
8391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8392 # The default lists apply if the user does not specify any file.
8393 ac_need_defaults=:
8394 while test $# != 0
8395 do
8396 case $1 in
8397 --*=*)
8398 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8399 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8400 ac_shift=:
8401 ;;
8402 *)
8403 ac_option=$1
8404 ac_optarg=$2
8405 ac_shift=shift
8406 ;;
8407 esac
8408
8409 case $ac_option in
8410 # Handling of the options.
8411 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8412 ac_cs_recheck=: ;;
8413 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8414 $as_echo "$ac_cs_version"; exit ;;
8415 --debug | --debu | --deb | --de | --d | -d )
8416 debug=: ;;
8417 --file | --fil | --fi | --f )
8418 $ac_shift
8419 case $ac_optarg in
8420 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8421 esac
8422 as_fn_append CONFIG_FILES " '$ac_optarg'"
8423 ac_need_defaults=false;;
8424 --header | --heade | --head | --hea )
8425 $ac_shift
8426 case $ac_optarg in
8427 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8428 esac
8429 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8430 ac_need_defaults=false;;
8431 --he | --h)
8432 # Conflict between --help and --header
8433 as_fn_error "ambiguous option: \`$1'
8434 Try \`$0 --help' for more information.";;
8435 --help | --hel | -h )
8436 $as_echo "$ac_cs_usage"; exit ;;
8437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8438 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8439 ac_cs_silent=: ;;
8440
8441 # This is an error.
8442 -*) as_fn_error "unrecognized option: \`$1'
8443 Try \`$0 --help' for more information." ;;
8444
8445 *) as_fn_append ac_config_targets " $1"
8446 ac_need_defaults=false ;;
8447
8448 esac
8449 shift
8450 done
8451
8452 ac_configure_extra_args=
8453
8454 if $ac_cs_silent; then
8455 exec 6>/dev/null
8456 ac_configure_extra_args="$ac_configure_extra_args --silent"
8457 fi
8458
8459 _ACEOF
8460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8461 if \$ac_cs_recheck; then
8462 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8463 shift
8464 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8465 CONFIG_SHELL='$SHELL'
8466 export CONFIG_SHELL
8467 exec "\$@"
8468 fi
8469
8470 _ACEOF
8471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8472 exec 5>>config.log
8473 {
8474 echo
8475 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8476 ## Running $as_me. ##
8477 _ASBOX
8478 $as_echo "$ac_log"
8479 } >&5
8480
8481 _ACEOF
8482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8483 #
8484 # INIT-COMMANDS
8485 #
8486 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8487 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8488 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
8489 # from automake.
8490 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8491 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8492 LINGUAS="${LINGUAS-%UNSET%}"
8493
8494
8495 _ACEOF
8496
8497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8498
8499 # Handling of arguments.
8500 for ac_config_target in $ac_config_targets
8501 do
8502 case $ac_config_target in
8503 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8504 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8505 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8506 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8507 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
8508 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8509
8510 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8511 esac
8512 done
8513
8514
8515 # If the user did not use the arguments to specify the items to instantiate,
8516 # then the envvar interface is used. Set only those that are not.
8517 # We use the long form for the default assignment because of an extremely
8518 # bizarre bug on SunOS 4.1.3.
8519 if $ac_need_defaults; then
8520 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8521 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8522 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8523 fi
8524
8525 # Have a temporary directory for convenience. Make it in the build tree
8526 # simply because there is no reason against having it here, and in addition,
8527 # creating and moving files from /tmp can sometimes cause problems.
8528 # Hook for its removal unless debugging.
8529 # Note that there is a small window in which the directory will not be cleaned:
8530 # after its creation but before its name has been assigned to `$tmp'.
8531 $debug ||
8532 {
8533 tmp=
8534 trap 'exit_status=$?
8535 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8536 ' 0
8537 trap 'as_fn_exit 1' 1 2 13 15
8538 }
8539 # Create a (secure) tmp directory for tmp files.
8540
8541 {
8542 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8543 test -n "$tmp" && test -d "$tmp"
8544 } ||
8545 {
8546 tmp=./conf$$-$RANDOM
8547 (umask 077 && mkdir "$tmp")
8548 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8549
8550 # Set up the scripts for CONFIG_FILES section.
8551 # No need to generate them if there are no CONFIG_FILES.
8552 # This happens for instance with `./config.status config.h'.
8553 if test -n "$CONFIG_FILES"; then
8554
8555
8556 ac_cr=`echo X | tr X '\015'`
8557 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8558 # But we know of no other shell where ac_cr would be empty at this
8559 # point, so we can use a bashism as a fallback.
8560 if test "x$ac_cr" = x; then
8561 eval ac_cr=\$\'\\r\'
8562 fi
8563 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8564 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8565 ac_cs_awk_cr='\r'
8566 else
8567 ac_cs_awk_cr=$ac_cr
8568 fi
8569
8570 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8571 _ACEOF
8572
8573
8574 {
8575 echo "cat >conf$$subs.awk <<_ACEOF" &&
8576 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8577 echo "_ACEOF"
8578 } >conf$$subs.sh ||
8579 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8580 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8581 ac_delim='%!_!# '
8582 for ac_last_try in false false false false false :; do
8583 . ./conf$$subs.sh ||
8584 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8585
8586 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8587 if test $ac_delim_n = $ac_delim_num; then
8588 break
8589 elif $ac_last_try; then
8590 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8591 else
8592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8593 fi
8594 done
8595 rm -f conf$$subs.sh
8596
8597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8598 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8599 _ACEOF
8600 sed -n '
8601 h
8602 s/^/S["/; s/!.*/"]=/
8603 p
8604 g
8605 s/^[^!]*!//
8606 :repl
8607 t repl
8608 s/'"$ac_delim"'$//
8609 t delim
8610 :nl
8611 h
8612 s/\(.\{148\}\).*/\1/
8613 t more1
8614 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8615 p
8616 n
8617 b repl
8618 :more1
8619 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8620 p
8621 g
8622 s/.\{148\}//
8623 t nl
8624 :delim
8625 h
8626 s/\(.\{148\}\).*/\1/
8627 t more2
8628 s/["\\]/\\&/g; s/^/"/; s/$/"/
8629 p
8630 b
8631 :more2
8632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8633 p
8634 g
8635 s/.\{148\}//
8636 t delim
8637 ' <conf$$subs.awk | sed '
8638 /^[^""]/{
8639 N
8640 s/\n//
8641 }
8642 ' >>$CONFIG_STATUS || ac_write_fail=1
8643 rm -f conf$$subs.awk
8644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8645 _ACAWK
8646 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8647 for (key in S) S_is_set[key] = 1
8648 FS = "\a"
8649
8650 }
8651 {
8652 line = $ 0
8653 nfields = split(line, field, "@")
8654 substed = 0
8655 len = length(field[1])
8656 for (i = 2; i < nfields; i++) {
8657 key = field[i]
8658 keylen = length(key)
8659 if (S_is_set[key]) {
8660 value = S[key]
8661 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8662 len += length(value) + length(field[++i])
8663 substed = 1
8664 } else
8665 len += 1 + keylen
8666 }
8667
8668 print line
8669 }
8670
8671 _ACAWK
8672 _ACEOF
8673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8674 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8675 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8676 else
8677 cat
8678 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8679 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8680 _ACEOF
8681
8682 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8683 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8684 # trailing colons and then remove the whole line if VPATH becomes empty
8685 # (actually we leave an empty line to preserve line numbers).
8686 if test "x$srcdir" = x.; then
8687 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8688 s/:*\$(srcdir):*/:/
8689 s/:*\${srcdir}:*/:/
8690 s/:*@srcdir@:*/:/
8691 s/^\([^=]*=[ ]*\):*/\1/
8692 s/:*$//
8693 s/^[^=]*=[ ]*$//
8694 }'
8695 fi
8696
8697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8698 fi # test -n "$CONFIG_FILES"
8699
8700 # Set up the scripts for CONFIG_HEADERS section.
8701 # No need to generate them if there are no CONFIG_HEADERS.
8702 # This happens for instance with `./config.status Makefile'.
8703 if test -n "$CONFIG_HEADERS"; then
8704 cat >"$tmp/defines.awk" <<\_ACAWK ||
8705 BEGIN {
8706 _ACEOF
8707
8708 # Transform confdefs.h into an awk script `defines.awk', embedded as
8709 # here-document in config.status, that substitutes the proper values into
8710 # config.h.in to produce config.h.
8711
8712 # Create a delimiter string that does not exist in confdefs.h, to ease
8713 # handling of long lines.
8714 ac_delim='%!_!# '
8715 for ac_last_try in false false :; do
8716 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8717 if test -z "$ac_t"; then
8718 break
8719 elif $ac_last_try; then
8720 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8721 else
8722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8723 fi
8724 done
8725
8726 # For the awk script, D is an array of macro values keyed by name,
8727 # likewise P contains macro parameters if any. Preserve backslash
8728 # newline sequences.
8729
8730 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8731 sed -n '
8732 s/.\{148\}/&'"$ac_delim"'/g
8733 t rset
8734 :rset
8735 s/^[ ]*#[ ]*define[ ][ ]*/ /
8736 t def
8737 d
8738 :def
8739 s/\\$//
8740 t bsnl
8741 s/["\\]/\\&/g
8742 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8743 D["\1"]=" \3"/p
8744 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8745 d
8746 :bsnl
8747 s/["\\]/\\&/g
8748 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8749 D["\1"]=" \3\\\\\\n"\\/p
8750 t cont
8751 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8752 t cont
8753 d
8754 :cont
8755 n
8756 s/.\{148\}/&'"$ac_delim"'/g
8757 t clear
8758 :clear
8759 s/\\$//
8760 t bsnlc
8761 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8762 d
8763 :bsnlc
8764 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8765 b cont
8766 ' <confdefs.h | sed '
8767 s/'"$ac_delim"'/"\\\
8768 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8769
8770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8771 for (key in D) D_is_set[key] = 1
8772 FS = "\a"
8773 }
8774 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8775 line = \$ 0
8776 split(line, arg, " ")
8777 if (arg[1] == "#") {
8778 defundef = arg[2]
8779 mac1 = arg[3]
8780 } else {
8781 defundef = substr(arg[1], 2)
8782 mac1 = arg[2]
8783 }
8784 split(mac1, mac2, "(") #)
8785 macro = mac2[1]
8786 prefix = substr(line, 1, index(line, defundef) - 1)
8787 if (D_is_set[macro]) {
8788 # Preserve the white space surrounding the "#".
8789 print prefix "define", macro P[macro] D[macro]
8790 next
8791 } else {
8792 # Replace #undef with comments. This is necessary, for example,
8793 # in the case of _POSIX_SOURCE, which is predefined and required
8794 # on some systems where configure will not decide to define it.
8795 if (defundef == "undef") {
8796 print "/*", prefix defundef, macro, "*/"
8797 next
8798 }
8799 }
8800 }
8801 { print }
8802 _ACAWK
8803 _ACEOF
8804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8805 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8806 fi # test -n "$CONFIG_HEADERS"
8807
8808
8809 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8810 shift
8811 for ac_tag
8812 do
8813 case $ac_tag in
8814 :[FHLC]) ac_mode=$ac_tag; continue;;
8815 esac
8816 case $ac_mode$ac_tag in
8817 :[FHL]*:*);;
8818 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8819 :[FH]-) ac_tag=-:-;;
8820 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8821 esac
8822 ac_save_IFS=$IFS
8823 IFS=:
8824 set x $ac_tag
8825 IFS=$ac_save_IFS
8826 shift
8827 ac_file=$1
8828 shift
8829
8830 case $ac_mode in
8831 :L) ac_source=$1;;
8832 :[FH])
8833 ac_file_inputs=
8834 for ac_f
8835 do
8836 case $ac_f in
8837 -) ac_f="$tmp/stdin";;
8838 *) # Look for the file first in the build tree, then in the source tree
8839 # (if the path is not absolute). The absolute path cannot be DOS-style,
8840 # because $ac_f cannot contain `:'.
8841 test -f "$ac_f" ||
8842 case $ac_f in
8843 [\\/$]*) false;;
8844 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8845 esac ||
8846 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8847 esac
8848 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8849 as_fn_append ac_file_inputs " '$ac_f'"
8850 done
8851
8852 # Let's still pretend it is `configure' which instantiates (i.e., don't
8853 # use $as_me), people would be surprised to read:
8854 # /* config.h. Generated by config.status. */
8855 configure_input='Generated from '`
8856 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8857 `' by configure.'
8858 if test x"$ac_file" != x-; then
8859 configure_input="$ac_file. $configure_input"
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8861 $as_echo "$as_me: creating $ac_file" >&6;}
8862 fi
8863 # Neutralize special characters interpreted by sed in replacement strings.
8864 case $configure_input in #(
8865 *\&* | *\|* | *\\* )
8866 ac_sed_conf_input=`$as_echo "$configure_input" |
8867 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8868 *) ac_sed_conf_input=$configure_input;;
8869 esac
8870
8871 case $ac_tag in
8872 *:-:* | *:-) cat >"$tmp/stdin" \
8873 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8874 esac
8875 ;;
8876 esac
8877
8878 ac_dir=`$as_dirname -- "$ac_file" ||
8879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8880 X"$ac_file" : 'X\(//\)[^/]' \| \
8881 X"$ac_file" : 'X\(//\)$' \| \
8882 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8883 $as_echo X"$ac_file" |
8884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8885 s//\1/
8886 q
8887 }
8888 /^X\(\/\/\)[^/].*/{
8889 s//\1/
8890 q
8891 }
8892 /^X\(\/\/\)$/{
8893 s//\1/
8894 q
8895 }
8896 /^X\(\/\).*/{
8897 s//\1/
8898 q
8899 }
8900 s/.*/./; q'`
8901 as_dir="$ac_dir"; as_fn_mkdir_p
8902 ac_builddir=.
8903
8904 case "$ac_dir" in
8905 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8906 *)
8907 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8908 # A ".." for each directory in $ac_dir_suffix.
8909 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8910 case $ac_top_builddir_sub in
8911 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8912 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8913 esac ;;
8914 esac
8915 ac_abs_top_builddir=$ac_pwd
8916 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8917 # for backward compatibility:
8918 ac_top_builddir=$ac_top_build_prefix
8919
8920 case $srcdir in
8921 .) # We are building in place.
8922 ac_srcdir=.
8923 ac_top_srcdir=$ac_top_builddir_sub
8924 ac_abs_top_srcdir=$ac_pwd ;;
8925 [\\/]* | ?:[\\/]* ) # Absolute name.
8926 ac_srcdir=$srcdir$ac_dir_suffix;
8927 ac_top_srcdir=$srcdir
8928 ac_abs_top_srcdir=$srcdir ;;
8929 *) # Relative name.
8930 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8931 ac_top_srcdir=$ac_top_build_prefix$srcdir
8932 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8933 esac
8934 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8935
8936
8937 case $ac_mode in
8938 :F)
8939 #
8940 # CONFIG_FILE
8941 #
8942
8943 case $INSTALL in
8944 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8945 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8946 esac
8947 ac_MKDIR_P=$MKDIR_P
8948 case $MKDIR_P in
8949 [\\/$]* | ?:[\\/]* ) ;;
8950 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8951 esac
8952 _ACEOF
8953
8954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8955 # If the template does not know about datarootdir, expand it.
8956 # FIXME: This hack should be removed a few years after 2.60.
8957 ac_datarootdir_hack=; ac_datarootdir_seen=
8958 ac_sed_dataroot='
8959 /datarootdir/ {
8960 p
8961 q
8962 }
8963 /@datadir@/p
8964 /@docdir@/p
8965 /@infodir@/p
8966 /@localedir@/p
8967 /@mandir@/p'
8968 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8969 *datarootdir*) ac_datarootdir_seen=yes;;
8970 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8972 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8973 _ACEOF
8974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8975 ac_datarootdir_hack='
8976 s&@datadir@&$datadir&g
8977 s&@docdir@&$docdir&g
8978 s&@infodir@&$infodir&g
8979 s&@localedir@&$localedir&g
8980 s&@mandir@&$mandir&g
8981 s&\\\${datarootdir}&$datarootdir&g' ;;
8982 esac
8983 _ACEOF
8984
8985 # Neutralize VPATH when `$srcdir' = `.'.
8986 # Shell code in configure.ac might set extrasub.
8987 # FIXME: do we really want to maintain this feature?
8988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8989 ac_sed_extra="$ac_vpsub
8990 $extrasub
8991 _ACEOF
8992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8993 :t
8994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8995 s|@configure_input@|$ac_sed_conf_input|;t t
8996 s&@top_builddir@&$ac_top_builddir_sub&;t t
8997 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8998 s&@srcdir@&$ac_srcdir&;t t
8999 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9000 s&@top_srcdir@&$ac_top_srcdir&;t t
9001 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9002 s&@builddir@&$ac_builddir&;t t
9003 s&@abs_builddir@&$ac_abs_builddir&;t t
9004 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9005 s&@INSTALL@&$ac_INSTALL&;t t
9006 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9007 $ac_datarootdir_hack
9008 "
9009 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9010 || as_fn_error "could not create $ac_file" "$LINENO" 5
9011
9012 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9013 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9014 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9016 which seems to be undefined. Please make sure it is defined." >&5
9017 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9018 which seems to be undefined. Please make sure it is defined." >&2;}
9019
9020 rm -f "$tmp/stdin"
9021 case $ac_file in
9022 -) cat "$tmp/out" && rm -f "$tmp/out";;
9023 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9024 esac \
9025 || as_fn_error "could not create $ac_file" "$LINENO" 5
9026 ;;
9027 :H)
9028 #
9029 # CONFIG_HEADER
9030 #
9031 if test x"$ac_file" != x-; then
9032 {
9033 $as_echo "/* $configure_input */" \
9034 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9035 } >"$tmp/config.h" \
9036 || as_fn_error "could not create $ac_file" "$LINENO" 5
9037 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9039 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9040 else
9041 rm -f "$ac_file"
9042 mv "$tmp/config.h" "$ac_file" \
9043 || as_fn_error "could not create $ac_file" "$LINENO" 5
9044 fi
9045 else
9046 $as_echo "/* $configure_input */" \
9047 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9048 || as_fn_error "could not create -" "$LINENO" 5
9049 fi
9050 # Compute "$ac_file"'s index in $config_headers.
9051 _am_arg="$ac_file"
9052 _am_stamp_count=1
9053 for _am_header in $config_headers :; do
9054 case $_am_header in
9055 $_am_arg | $_am_arg:* )
9056 break ;;
9057 * )
9058 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9059 esac
9060 done
9061 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9062 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9063 X"$_am_arg" : 'X\(//\)[^/]' \| \
9064 X"$_am_arg" : 'X\(//\)$' \| \
9065 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9066 $as_echo X"$_am_arg" |
9067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9068 s//\1/
9069 q
9070 }
9071 /^X\(\/\/\)[^/].*/{
9072 s//\1/
9073 q
9074 }
9075 /^X\(\/\/\)$/{
9076 s//\1/
9077 q
9078 }
9079 /^X\(\/\).*/{
9080 s//\1/
9081 q
9082 }
9083 s/.*/./; q'`/stamp-h$_am_stamp_count
9084 ;;
9085
9086 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9087 $as_echo "$as_me: executing $ac_file commands" >&6;}
9088 ;;
9089 esac
9090
9091
9092 case $ac_file$ac_mode in
9093 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9094 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9095 # are listed without --file. Let's play safe and only enable the eval
9096 # if we detect the quoting.
9097 case $CONFIG_FILES in
9098 *\'*) eval set x "$CONFIG_FILES" ;;
9099 *) set x $CONFIG_FILES ;;
9100 esac
9101 shift
9102 for mf
9103 do
9104 # Strip MF so we end up with the name of the file.
9105 mf=`echo "$mf" | sed -e 's/:.*$//'`
9106 # Check whether this is an Automake generated Makefile or not.
9107 # We used to match only the files named `Makefile.in', but
9108 # some people rename them; so instead we look at the file content.
9109 # Grep'ing the first line is not enough: some people post-process
9110 # each Makefile.in and add a new line on top of each file to say so.
9111 # Grep'ing the whole file is not good either: AIX grep has a line
9112 # limit of 2048, but all sed's we know have understand at least 4000.
9113 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9114 dirpart=`$as_dirname -- "$mf" ||
9115 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9116 X"$mf" : 'X\(//\)[^/]' \| \
9117 X"$mf" : 'X\(//\)$' \| \
9118 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9119 $as_echo X"$mf" |
9120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9121 s//\1/
9122 q
9123 }
9124 /^X\(\/\/\)[^/].*/{
9125 s//\1/
9126 q
9127 }
9128 /^X\(\/\/\)$/{
9129 s//\1/
9130 q
9131 }
9132 /^X\(\/\).*/{
9133 s//\1/
9134 q
9135 }
9136 s/.*/./; q'`
9137 else
9138 continue
9139 fi
9140 # Extract the definition of DEPDIR, am__include, and am__quote
9141 # from the Makefile without running `make'.
9142 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9143 test -z "$DEPDIR" && continue
9144 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9145 test -z "am__include" && continue
9146 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9147 # When using ansi2knr, U may be empty or an underscore; expand it
9148 U=`sed -n 's/^U = //p' < "$mf"`
9149 # Find all dependency output files, they are included files with
9150 # $(DEPDIR) in their names. We invoke sed twice because it is the
9151 # simplest approach to changing $(DEPDIR) to its actual value in the
9152 # expansion.
9153 for file in `sed -n "
9154 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9155 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9156 # Make sure the directory exists.
9157 test -f "$dirpart/$file" && continue
9158 fdir=`$as_dirname -- "$file" ||
9159 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9160 X"$file" : 'X\(//\)[^/]' \| \
9161 X"$file" : 'X\(//\)$' \| \
9162 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9163 $as_echo X"$file" |
9164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9165 s//\1/
9166 q
9167 }
9168 /^X\(\/\/\)[^/].*/{
9169 s//\1/
9170 q
9171 }
9172 /^X\(\/\/\)$/{
9173 s//\1/
9174 q
9175 }
9176 /^X\(\/\).*/{
9177 s//\1/
9178 q
9179 }
9180 s/.*/./; q'`
9181 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9182 # echo "creating $dirpart/$file"
9183 echo '# dummy' > "$dirpart/$file"
9184 done
9185 done
9186 }
9187 ;;
9188 "default-1":C)
9189 for ac_file in $CONFIG_FILES; do
9190 # Support "outfile[:infile[:infile...]]"
9191 case "$ac_file" in
9192 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9193 esac
9194 # PO directories have a Makefile.in generated from Makefile.in.in.
9195 case "$ac_file" in */Makefile.in)
9196 # Adjust a relative srcdir.
9197 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9198 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
9199 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9200 # In autoconf-2.13 it is called $ac_given_srcdir.
9201 # In autoconf-2.50 it is called $srcdir.
9202 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9203 case "$ac_given_srcdir" in
9204 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9205 /*) top_srcdir="$ac_given_srcdir" ;;
9206 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9207 esac
9208 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9209 rm -f "$ac_dir/POTFILES"
9210 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9211 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9212 POMAKEFILEDEPS="POTFILES.in"
9213 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9214 # on $ac_dir but don't depend on user-specified configuration
9215 # parameters.
9216 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9217 # The LINGUAS file contains the set of available languages.
9218 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9219 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9220 fi
9221 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9222 # Hide the ALL_LINGUAS assigment from automake.
9223 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9224 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9225 else
9226 # The set of available languages was given in configure.in.
9227 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9228 fi
9229 case "$ac_given_srcdir" in
9230 .) srcdirpre= ;;
9231 *) srcdirpre='$(srcdir)/' ;;
9232 esac
9233 POFILES=
9234 GMOFILES=
9235 UPDATEPOFILES=
9236 DUMMYPOFILES=
9237 for lang in $ALL_LINGUAS; do
9238 POFILES="$POFILES $srcdirpre$lang.po"
9239 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9240 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9241 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9242 done
9243 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9244 # environment variable.
9245 INST_LINGUAS=
9246 if test -n "$ALL_LINGUAS"; then
9247 for presentlang in $ALL_LINGUAS; do
9248 useit=no
9249 if test "%UNSET%" != "$LINGUAS"; then
9250 desiredlanguages="$LINGUAS"
9251 else
9252 desiredlanguages="$ALL_LINGUAS"
9253 fi
9254 for desiredlang in $desiredlanguages; do
9255 # Use the presentlang catalog if desiredlang is
9256 # a. equal to presentlang, or
9257 # b. a variant of presentlang (because in this case,
9258 # presentlang can be used as a fallback for messages
9259 # which are not translated in the desiredlang catalog).
9260 case "$desiredlang" in
9261 "$presentlang"*) useit=yes;;
9262 esac
9263 done
9264 if test $useit = yes; then
9265 INST_LINGUAS="$INST_LINGUAS $presentlang"
9266 fi
9267 done
9268 fi
9269 CATALOGS=
9270 if test -n "$INST_LINGUAS"; then
9271 for lang in $INST_LINGUAS; do
9272 CATALOGS="$CATALOGS $lang.gmo"
9273 done
9274 fi
9275 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9276 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"
9277 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9278 if test -f "$f"; then
9279 case "$f" in
9280 *.orig | *.bak | *~) ;;
9281 *) cat "$f" >> "$ac_dir/Makefile" ;;
9282 esac
9283 fi
9284 done
9285 fi
9286 ;;
9287 esac
9288 done ;;
9289
9290 esac
9291 done # for ac_tag
9292
9293
9294 as_fn_exit 0
9295 _ACEOF
9296 ac_clean_files=$ac_clean_files_save
9297
9298 test $ac_write_fail = 0 ||
9299 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9300
9301
9302 # configure is writing to config.log, and then calls config.status.
9303 # config.status does its own redirection, appending to config.log.
9304 # Unfortunately, on DOS this fails, as config.log is still kept open
9305 # by configure, so config.status won't be able to write to it; its
9306 # output is simply discarded. So we exec the FD to /dev/null,
9307 # effectively closing config.log, so it can be properly (re)opened and
9308 # appended to by config.status. When coming back to configure, we
9309 # need to make the FD available again.
9310 if test "$no_create" != yes; then
9311 ac_cs_success=:
9312 ac_config_status_args=
9313 test "$silent" = yes &&
9314 ac_config_status_args="$ac_config_status_args --quiet"
9315 exec 5>/dev/null
9316 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9317 exec 5>>config.log
9318 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9319 # would make configure fail if this is the last instruction.
9320 $ac_cs_success || as_fn_exit $?
9321 fi
9322 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9324 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9325 fi
9326
This page took 0.270779 seconds and 5 git commands to generate.