gdb: Add maint set ignore-prologue-end-flag
[binutils-gdb.git] / gold / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gold 0.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='gold'
579 PACKAGE_TARNAME='gold'
580 PACKAGE_VERSION='0.1'
581 PACKAGE_STRING='gold 0.1'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="gold.cc"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='am__EXEEXT_FALSE
623 am__EXEEXT_TRUE
624 LTLIBOBJS
625 MAINT
626 MAINTAINER_MODE_FALSE
627 MAINTAINER_MODE_TRUE
628 DLOPEN_LIBS
629 CXXCPP
630 HAVE_NO_USE_LINKER_PLUGIN_FALSE
631 HAVE_NO_USE_LINKER_PLUGIN_TRUE
632 HAVE_PUBNAMES_FALSE
633 HAVE_PUBNAMES_TRUE
634 THREADS_FALSE
635 THREADS_TRUE
636 PTHREAD_CFLAGS
637 PTHREAD_LIBS
638 PTHREAD_CC
639 ax_pthread_config
640 SED
641 zlibinc
642 zlibdir
643 LIBOBJS
644 LFS_CFLAGS
645 GOLD_LDADD
646 GOLD_LDFLAGS
647 WARN_CXXFLAGS
648 WARN_WRITE_STRINGS
649 NO_WERROR
650 WARN_CFLAGS_FOR_BUILD
651 WARN_CFLAGS
652 IFUNC_STATIC_FALSE
653 IFUNC_STATIC_TRUE
654 IFUNC_FALSE
655 IFUNC_TRUE
656 RANDOM_SEED_CFLAGS
657 TLS_DESCRIPTORS_FALSE
658 TLS_DESCRIPTORS_TRUE
659 TLS_GNU2_DIALECT_FALSE
660 TLS_GNU2_DIALECT_TRUE
661 OMP_SUPPORT_FALSE
662 OMP_SUPPORT_TRUE
663 STATIC_TLS_FALSE
664 STATIC_TLS_TRUE
665 TLS_FALSE
666 TLS_TRUE
667 MERGE_CONSTANTS_FLAG
668 CFLAGS_CF_PROTECTION_FALSE
669 CFLAGS_CF_PROTECTION_TRUE
670 GCC9_FALSE
671 GCC9_TRUE
672 MCMODEL_MEDIUM_FALSE
673 MCMODEL_MEDIUM_TRUE
674 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
675 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
676 HAVE_STATIC_FALSE
677 HAVE_STATIC_TRUE
678 NATIVE_OR_CROSS_LINKER_FALSE
679 NATIVE_OR_CROSS_LINKER_TRUE
680 GCC_FALSE
681 GCC_TRUE
682 NATIVE_LINKER_FALSE
683 NATIVE_LINKER_TRUE
684 MSGMERGE
685 MSGFMT
686 MKINSTALLDIRS
687 CATOBJEXT
688 GENCAT
689 INSTOBJEXT
690 DATADIRNAME
691 CATALOGS
692 POSUB
693 GMSGFMT
694 XGETTEXT
695 INCINTL
696 LIBINTL_DEP
697 LIBINTL
698 USE_NLS
699 LN_S
700 RANLIB
701 YFLAGS
702 YACC
703 am__fastdepCXX_FALSE
704 am__fastdepCXX_TRUE
705 CXXDEPMODE
706 ac_ct_CXX
707 CXXFLAGS
708 CXX
709 NM
710 TARGETOBJS
711 DEFAULT_TARGET
712 DEFAULT_TARGET_MIPS_FALSE
713 DEFAULT_TARGET_MIPS_TRUE
714 DEFAULT_TARGET_TILEGX_FALSE
715 DEFAULT_TARGET_TILEGX_TRUE
716 DEFAULT_TARGET_X86_64_OR_X32_FALSE
717 DEFAULT_TARGET_X86_64_OR_X32_TRUE
718 DEFAULT_TARGET_X32_FALSE
719 DEFAULT_TARGET_X32_TRUE
720 DEFAULT_TARGET_X86_64_FALSE
721 DEFAULT_TARGET_X86_64_TRUE
722 DEFAULT_TARGET_S390_FALSE
723 DEFAULT_TARGET_S390_TRUE
724 DEFAULT_TARGET_SPARC_FALSE
725 DEFAULT_TARGET_SPARC_TRUE
726 DEFAULT_TARGET_POWERPC_FALSE
727 DEFAULT_TARGET_POWERPC_TRUE
728 DEFAULT_TARGET_I386_FALSE
729 DEFAULT_TARGET_I386_TRUE
730 DEFAULT_TARGET_ARM_FALSE
731 DEFAULT_TARGET_ARM_TRUE
732 DEFAULT_TARGET_AARCH64_FALSE
733 DEFAULT_TARGET_AARCH64_TRUE
734 PLUGINS_FALSE
735 PLUGINS_TRUE
736 installed_linker
737 install_as_default
738 EGREP
739 GREP
740 CPP
741 am__fastdepCC_FALSE
742 am__fastdepCC_TRUE
743 CCDEPMODE
744 am__nodep
745 AMDEPBACKSLASH
746 AMDEP_FALSE
747 AMDEP_TRUE
748 am__quote
749 am__include
750 DEPDIR
751 OBJEXT
752 EXEEXT
753 ac_ct_CC
754 CPPFLAGS
755 LDFLAGS
756 CFLAGS
757 CC
758 AM_BACKSLASH
759 AM_DEFAULT_VERBOSITY
760 AM_DEFAULT_V
761 AM_V
762 am__untar
763 am__tar
764 AMTAR
765 am__leading_dot
766 SET_MAKE
767 AWK
768 mkdir_p
769 MKDIR_P
770 INSTALL_STRIP_PROGRAM
771 STRIP
772 install_sh
773 MAKEINFO
774 AUTOHEADER
775 AUTOMAKE
776 AUTOCONF
777 ACLOCAL
778 VERSION
779 PACKAGE
780 CYGPATH_W
781 am__isrc
782 INSTALL_DATA
783 INSTALL_SCRIPT
784 INSTALL_PROGRAM
785 target_os
786 target_vendor
787 target_cpu
788 target
789 host_os
790 host_vendor
791 host_cpu
792 host
793 build_os
794 build_vendor
795 build_cpu
796 build
797 target_alias
798 host_alias
799 build_alias
800 LIBS
801 ECHO_T
802 ECHO_N
803 ECHO_C
804 DEFS
805 mandir
806 localedir
807 libdir
808 psdir
809 pdfdir
810 dvidir
811 htmldir
812 infodir
813 docdir
814 oldincludedir
815 includedir
816 localstatedir
817 sharedstatedir
818 sysconfdir
819 datadir
820 datarootdir
821 libexecdir
822 sbindir
823 bindir
824 program_transform_name
825 prefix
826 exec_prefix
827 PACKAGE_URL
828 PACKAGE_BUGREPORT
829 PACKAGE_STRING
830 PACKAGE_VERSION
831 PACKAGE_TARNAME
832 PACKAGE_NAME
833 PATH_SEPARATOR
834 SHELL'
835 ac_subst_files=''
836 ac_user_opts='
837 enable_option_checking
838 enable_silent_rules
839 enable_dependency_tracking
840 with_sysroot
841 enable_gold
842 enable_plugins
843 enable_relro
844 enable_targets
845 enable_default_hash_style
846 with_lib_path
847 enable_nls
848 enable_werror
849 enable_build_warnings
850 with_gold_ldflags
851 with_gold_ldadd
852 with_system_zlib
853 enable_threads
854 enable_maintainer_mode
855 '
856 ac_precious_vars='build_alias
857 host_alias
858 target_alias
859 CC
860 CFLAGS
861 LDFLAGS
862 LIBS
863 CPPFLAGS
864 CPP
865 CXX
866 CXXFLAGS
867 CCC
868 YACC
869 YFLAGS
870 CXXCPP'
871
872
873 # Initialize some variables set by options.
874 ac_init_help=
875 ac_init_version=false
876 ac_unrecognized_opts=
877 ac_unrecognized_sep=
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
880 cache_file=/dev/null
881 exec_prefix=NONE
882 no_create=
883 no_recursion=
884 prefix=NONE
885 program_prefix=NONE
886 program_suffix=NONE
887 program_transform_name=s,x,x,
888 silent=
889 site=
890 srcdir=
891 verbose=
892 x_includes=NONE
893 x_libraries=NONE
894
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 includedir='${prefix}/include'
910 oldincludedir='/usr/include'
911 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
912 infodir='${datarootdir}/info'
913 htmldir='${docdir}'
914 dvidir='${docdir}'
915 pdfdir='${docdir}'
916 psdir='${docdir}'
917 libdir='${exec_prefix}/lib'
918 localedir='${datarootdir}/locale'
919 mandir='${datarootdir}/man'
920
921 ac_prev=
922 ac_dashdash=
923 for ac_option
924 do
925 # If the previous option needs an argument, assign it.
926 if test -n "$ac_prev"; then
927 eval $ac_prev=\$ac_option
928 ac_prev=
929 continue
930 fi
931
932 case $ac_option in
933 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 *=) ac_optarg= ;;
935 *) ac_optarg=yes ;;
936 esac
937
938 # Accept the important Cygnus configure options, so we can diagnose typos.
939
940 case $ac_dashdash$ac_option in
941 --)
942 ac_dashdash=yes ;;
943
944 -bindir | --bindir | --bindi | --bind | --bin | --bi)
945 ac_prev=bindir ;;
946 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
947 bindir=$ac_optarg ;;
948
949 -build | --build | --buil | --bui | --bu)
950 ac_prev=build_alias ;;
951 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
952 build_alias=$ac_optarg ;;
953
954 -cache-file | --cache-file | --cache-fil | --cache-fi \
955 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956 ac_prev=cache_file ;;
957 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
959 cache_file=$ac_optarg ;;
960
961 --config-cache | -C)
962 cache_file=config.cache ;;
963
964 -datadir | --datadir | --datadi | --datad)
965 ac_prev=datadir ;;
966 -datadir=* | --datadir=* | --datadi=* | --datad=*)
967 datadir=$ac_optarg ;;
968
969 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
970 | --dataroo | --dataro | --datar)
971 ac_prev=datarootdir ;;
972 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
973 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
974 datarootdir=$ac_optarg ;;
975
976 -disable-* | --disable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error $? "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=no ;;
991
992 -docdir | --docdir | --docdi | --doc | --do)
993 ac_prev=docdir ;;
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995 docdir=$ac_optarg ;;
996
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998 ac_prev=dvidir ;;
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
1001
1002 -enable-* | --enable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: $ac_useropt"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011 "enable_$ac_useropt"
1012 "*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=\$ac_optarg ;;
1017
1018 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020 | --exec | --exe | --ex)
1021 ac_prev=exec_prefix ;;
1022 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024 | --exec=* | --exe=* | --ex=*)
1025 exec_prefix=$ac_optarg ;;
1026
1027 -gas | --gas | --ga | --g)
1028 # Obsolete; use --with-gas.
1029 with_gas=yes ;;
1030
1031 -help | --help | --hel | --he | -h)
1032 ac_init_help=long ;;
1033 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034 ac_init_help=recursive ;;
1035 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036 ac_init_help=short ;;
1037
1038 -host | --host | --hos | --ho)
1039 ac_prev=host_alias ;;
1040 -host=* | --host=* | --hos=* | --ho=*)
1041 host_alias=$ac_optarg ;;
1042
1043 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044 ac_prev=htmldir ;;
1045 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046 | --ht=*)
1047 htmldir=$ac_optarg ;;
1048
1049 -includedir | --includedir | --includedi | --included | --include \
1050 | --includ | --inclu | --incl | --inc)
1051 ac_prev=includedir ;;
1052 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053 | --includ=* | --inclu=* | --incl=* | --inc=*)
1054 includedir=$ac_optarg ;;
1055
1056 -infodir | --infodir | --infodi | --infod | --info | --inf)
1057 ac_prev=infodir ;;
1058 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059 infodir=$ac_optarg ;;
1060
1061 -libdir | --libdir | --libdi | --libd)
1062 ac_prev=libdir ;;
1063 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064 libdir=$ac_optarg ;;
1065
1066 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067 | --libexe | --libex | --libe)
1068 ac_prev=libexecdir ;;
1069 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070 | --libexe=* | --libex=* | --libe=*)
1071 libexecdir=$ac_optarg ;;
1072
1073 -localedir | --localedir | --localedi | --localed | --locale)
1074 ac_prev=localedir ;;
1075 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076 localedir=$ac_optarg ;;
1077
1078 -localstatedir | --localstatedir | --localstatedi | --localstated \
1079 | --localstate | --localstat | --localsta | --localst | --locals)
1080 ac_prev=localstatedir ;;
1081 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083 localstatedir=$ac_optarg ;;
1084
1085 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086 ac_prev=mandir ;;
1087 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088 mandir=$ac_optarg ;;
1089
1090 -nfp | --nfp | --nf)
1091 # Obsolete; use --without-fp.
1092 with_fp=no ;;
1093
1094 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095 | --no-cr | --no-c | -n)
1096 no_create=yes ;;
1097
1098 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100 no_recursion=yes ;;
1101
1102 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104 | --oldin | --oldi | --old | --ol | --o)
1105 ac_prev=oldincludedir ;;
1106 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109 oldincludedir=$ac_optarg ;;
1110
1111 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112 ac_prev=prefix ;;
1113 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114 prefix=$ac_optarg ;;
1115
1116 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117 | --program-pre | --program-pr | --program-p)
1118 ac_prev=program_prefix ;;
1119 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121 program_prefix=$ac_optarg ;;
1122
1123 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124 | --program-suf | --program-su | --program-s)
1125 ac_prev=program_suffix ;;
1126 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128 program_suffix=$ac_optarg ;;
1129
1130 -program-transform-name | --program-transform-name \
1131 | --program-transform-nam | --program-transform-na \
1132 | --program-transform-n | --program-transform- \
1133 | --program-transform | --program-transfor \
1134 | --program-transfo | --program-transf \
1135 | --program-trans | --program-tran \
1136 | --progr-tra | --program-tr | --program-t)
1137 ac_prev=program_transform_name ;;
1138 -program-transform-name=* | --program-transform-name=* \
1139 | --program-transform-nam=* | --program-transform-na=* \
1140 | --program-transform-n=* | --program-transform-=* \
1141 | --program-transform=* | --program-transfor=* \
1142 | --program-transfo=* | --program-transf=* \
1143 | --program-trans=* | --program-tran=* \
1144 | --progr-tra=* | --program-tr=* | --program-t=*)
1145 program_transform_name=$ac_optarg ;;
1146
1147 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148 ac_prev=pdfdir ;;
1149 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150 pdfdir=$ac_optarg ;;
1151
1152 -psdir | --psdir | --psdi | --psd | --ps)
1153 ac_prev=psdir ;;
1154 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155 psdir=$ac_optarg ;;
1156
1157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158 | -silent | --silent | --silen | --sile | --sil)
1159 silent=yes ;;
1160
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 ac_prev=sbindir ;;
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 | --sbi=* | --sb=*)
1165 sbindir=$ac_optarg ;;
1166
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1170 | --sha | --sh)
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 | --sha=* | --sh=*)
1176 sharedstatedir=$ac_optarg ;;
1177
1178 -site | --site | --sit)
1179 ac_prev=site ;;
1180 -site=* | --site=* | --sit=*)
1181 site=$ac_optarg ;;
1182
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 ac_prev=srcdir ;;
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1187
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1194
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1199
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 verbose=yes ;;
1202
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1205
1206 -with-* | --with-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: $ac_useropt"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=\$ac_optarg ;;
1221
1222 -without-* | --without-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: $ac_useropt"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=no ;;
1237
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1241
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1248
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1255
1256 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257 Try \`$0 --help' for more information"
1258 ;;
1259
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 case $ac_envvar in #(
1264 '' | [0-9]* | *[!_$as_cr_alnum]* )
1265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1266 esac
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1269
1270 *)
1271 # FIXME: should be removed in autoconf 3.0.
1272 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276 ;;
1277
1278 esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 as_fn_error $? "missing argument to $ac_option"
1284 fi
1285
1286 if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1288 no) ;;
1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1299 do
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1302 case $ac_val in
1303 */ )
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1306 esac
1307 # Be sure to have absolute directory names.
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313 done
1314
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1328 fi
1329 fi
1330
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334 test "$silent" = yes && exec 6>/dev/null
1335
1336
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 as_fn_error $? "working directory cannot be determined"
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 as_fn_error $? "pwd does not report name of working directory"
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
1372 srcdir=$ac_confdir
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 srcdir=..
1375 fi
1376 else
1377 ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1382 fi
1383 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 ac_abs_confdir=`(
1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1386 pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390 fi
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1403
1404 #
1405 # Report the --help message.
1406 #
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1412
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418 Defaults for the options are specified in brackets.
1419
1420 Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking ...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1436
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1441
1442 For better control, use the options below.
1443
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1464 _ACEOF
1465
1466 cat <<\_ACEOF
1467
1468 Program names:
1469 --program-prefix=PREFIX prepend PREFIX to installed program names
1470 --program-suffix=SUFFIX append SUFFIX to installed program names
1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1472
1473 System types:
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 --target=TARGET configure for building compilers for TARGET [HOST]
1477 _ACEOF
1478 fi
1479
1480 if test -n "$ac_init_help"; then
1481 case $ac_init_help in
1482 short | recursive ) echo "Configuration of gold 0.1:";;
1483 esac
1484 cat <<\_ACEOF
1485
1486 Optional Features:
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-silent-rules less verbose build output (undo: "make V=1")
1491 --disable-silent-rules verbose build output (undo: "make V=0")
1492 --enable-dependency-tracking
1493 do not reject slow dependency extractors
1494 --disable-dependency-tracking
1495 speeds up one-time build
1496 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1497 --enable-plugins Enable support for plugins
1498 --enable-relro enable -z relro in ELF linker by default
1499 --enable-targets alternative target configurations
1500 --enable-default-hash-style={sysv,gnu,both}
1501 use this default hash style
1502 --disable-nls do not use Native Language Support
1503 --enable-werror treat compile warnings as errors
1504 --enable-build-warnings enable build-time compiler warnings
1505 --enable-threads[=ARG] multi-threaded linking [ARG={auto,yes,no}]
1506 --enable-maintainer-mode
1507 enable make rules and dependencies not useful (and
1508 sometimes confusing) to the casual installer
1509
1510 Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-sysroot=DIR search for usr/lib et al within DIR
1514 --with-lib-path=dir1:dir2... set default LIB_PATH
1515 --with-gold-ldflags=FLAGS additional link flags for gold
1516 --with-gold-ldadd=LIBS additional libraries for gold
1517 --with-system-zlib use installed libz
1518
1519 Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
1527 CPP C preprocessor
1528 CXX C++ compiler command
1529 CXXFLAGS C++ compiler flags
1530 YACC The `Yet Another Compiler Compiler' implementation to use.
1531 Defaults to the first program found out of: `bison -y', `byacc',
1532 `yacc'.
1533 YFLAGS The list of arguments that will be passed by default to $YACC.
1534 This script will default YFLAGS to the empty string to avoid a
1535 default value of `-d' given by some make applications.
1536 CXXCPP C++ preprocessor
1537
1538 Use these variables to override the choices made by `configure' or to help
1539 it to find libraries and programs with nonstandard names/locations.
1540
1541 Report bugs to the package provider.
1542 _ACEOF
1543 ac_status=$?
1544 fi
1545
1546 if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" ||
1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 continue
1552 ac_builddir=.
1553
1554 case "$ac_dir" in
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *)
1557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 esac ;;
1564 esac
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1569
1570 case $srcdir in
1571 .) # We are building in place.
1572 ac_srcdir=.
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
1576 ac_srcdir=$srcdir$ac_dir_suffix;
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1579 *) # Relative name.
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 esac
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for guested configure.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure" --help=recursive
1594 else
1595 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596 fi || ac_status=$?
1597 cd "$ac_pwd" || { ac_status=$?; break; }
1598 done
1599 fi
1600
1601 test -n "$ac_init_help" && exit $ac_status
1602 if $ac_init_version; then
1603 cat <<\_ACEOF
1604 gold configure 0.1
1605 generated by GNU Autoconf 2.69
1606
1607 Copyright (C) 2012 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1610 _ACEOF
1611 exit
1612 fi
1613
1614 ## ------------------------ ##
1615 ## Autoconf initialization. ##
1616 ## ------------------------ ##
1617
1618 # ac_fn_c_try_compile LINENO
1619 # --------------------------
1620 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_compile ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650 fi
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1653
1654 } # ac_fn_c_try_compile
1655
1656 # ac_fn_c_try_cpp LINENO
1657 # ----------------------
1658 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_cpp ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { { ac_try="$ac_cpp conftest.$ac_ext"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } > conftest.i && {
1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 }; then :
1681 ac_retval=0
1682 else
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=1
1687 fi
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
1691 } # ac_fn_c_try_cpp
1692
1693 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1694 # -------------------------------------------------------
1695 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1696 # the include files in INCLUDES and setting the cache variable VAR
1697 # accordingly.
1698 ac_fn_c_check_header_mongrel ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if eval \${$3+:} false; then :
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1706 fi
1707 eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709 $as_echo "$ac_res" >&6; }
1710 else
1711 # Is the header compilable?
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1713 $as_echo_n "checking $2 usability... " >&6; }
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h. */
1716 $4
1717 #include <$2>
1718 _ACEOF
1719 if ac_fn_c_try_compile "$LINENO"; then :
1720 ac_header_compiler=yes
1721 else
1722 ac_header_compiler=no
1723 fi
1724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1726 $as_echo "$ac_header_compiler" >&6; }
1727
1728 # Is the header present?
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1730 $as_echo_n "checking $2 presence... " >&6; }
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1733 #include <$2>
1734 _ACEOF
1735 if ac_fn_c_try_cpp "$LINENO"; then :
1736 ac_header_preproc=yes
1737 else
1738 ac_header_preproc=no
1739 fi
1740 rm -f conftest.err conftest.i conftest.$ac_ext
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1742 $as_echo "$ac_header_preproc" >&6; }
1743
1744 # So? What about this header?
1745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1746 yes:no: )
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1748 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1750 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1751 ;;
1752 no:yes:* )
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1754 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1756 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1758 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1760 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1762 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1763 ;;
1764 esac
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if eval \${$3+:} false; then :
1768 $as_echo_n "(cached) " >&6
1769 else
1770 eval "$3=\$ac_header_compiler"
1771 fi
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 fi
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778 } # ac_fn_c_check_header_mongrel
1779
1780 # ac_fn_c_try_run LINENO
1781 # ----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1783 # that executables *can* be run.
1784 ac_fn_c_try_run ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>&5
1795 ac_status=$?
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1798 { { case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_try") 2>&5
1805 ac_status=$?
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; }; }; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: program exited with status $ac_status" >&5
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=$ac_status
1815 fi
1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1819
1820 } # ac_fn_c_try_run
1821
1822 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1823 # -------------------------------------------------------
1824 # Tests whether HEADER exists and can be compiled using the include files in
1825 # INCLUDES, setting the cache variable VAR accordingly.
1826 ac_fn_c_check_header_compile ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1833 else
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 $4
1837 #include <$2>
1838 _ACEOF
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840 eval "$3=yes"
1841 else
1842 eval "$3=no"
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 fi
1846 eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851 } # ac_fn_c_check_header_compile
1852
1853 # ac_fn_c_try_link LINENO
1854 # -----------------------
1855 # Try to link conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_c_try_link ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext conftest$ac_exeext
1860 if { { ac_try="$ac_link"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_link") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1873 fi
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest$ac_exeext && {
1879 test "$cross_compiling" = yes ||
1880 test -x conftest$ac_exeext
1881 }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1886
1887 ac_retval=1
1888 fi
1889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1891 # interfere with the next link command; also delete a directory that is
1892 # left behind by Apple's compiler. We do this before executing the actions.
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1896
1897 } # ac_fn_c_try_link
1898
1899 # ac_fn_cxx_try_compile LINENO
1900 # ----------------------------
1901 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1902 ac_fn_cxx_try_compile ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 rm -f conftest.$ac_objext
1906 if { { ac_try="$ac_compile"
1907 case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_compile") 2>conftest.err
1914 ac_status=$?
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1919 fi
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && {
1922 test -z "$ac_cxx_werror_flag" ||
1923 test ! -s conftest.err
1924 } && test -s conftest.$ac_objext; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1929
1930 ac_retval=1
1931 fi
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1934
1935 } # ac_fn_cxx_try_compile
1936
1937 # ac_fn_c_check_func LINENO FUNC VAR
1938 # ----------------------------------
1939 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1940 ac_fn_c_check_func ()
1941 {
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \${$3+:} false; then :
1946 $as_echo_n "(cached) " >&6
1947 else
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1952 #define $2 innocuous_$2
1953
1954 /* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $2 (); below.
1956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957 <limits.h> exists even on freestanding compilers. */
1958
1959 #ifdef __STDC__
1960 # include <limits.h>
1961 #else
1962 # include <assert.h>
1963 #endif
1964
1965 #undef $2
1966
1967 /* Override any GCC internal prototype to avoid an error.
1968 Use char because int might match the return type of a GCC
1969 builtin and then its argument prototype would still apply. */
1970 #ifdef __cplusplus
1971 extern "C"
1972 #endif
1973 char $2 ();
1974 /* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977 #if defined __stub_$2 || defined __stub___$2
1978 choke me
1979 #endif
1980
1981 int
1982 main ()
1983 {
1984 return $2 ();
1985 ;
1986 return 0;
1987 }
1988 _ACEOF
1989 if ac_fn_c_try_link "$LINENO"; then :
1990 eval "$3=yes"
1991 else
1992 eval "$3=no"
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext \
1995 conftest$ac_exeext conftest.$ac_ext
1996 fi
1997 eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002 } # ac_fn_c_check_func
2003
2004 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2005 # ---------------------------------------------
2006 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2007 # accordingly.
2008 ac_fn_c_check_decl ()
2009 {
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 as_decl_name=`echo $2|sed 's/ *(.*//'`
2012 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2014 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2017 else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 $4
2021 int
2022 main ()
2023 {
2024 #ifndef $as_decl_name
2025 #ifdef __cplusplus
2026 (void) $as_decl_use;
2027 #else
2028 (void) $as_decl_name;
2029 #endif
2030 #endif
2031
2032 ;
2033 return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 eval "$3=yes"
2038 else
2039 eval "$3=no"
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 fi
2043 eval ac_res=\$$3
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047
2048 } # ac_fn_c_check_decl
2049
2050 # ac_fn_cxx_try_cpp LINENO
2051 # ------------------------
2052 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_cxx_try_cpp ()
2054 {
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if { { ac_try="$ac_cpp conftest.$ac_ext"
2057 case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060 esac
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2064 ac_status=$?
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2069 fi
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } > conftest.i && {
2072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073 test ! -s conftest.err
2074 }; then :
2075 ac_retval=0
2076 else
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2079
2080 ac_retval=1
2081 fi
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2084
2085 } # ac_fn_cxx_try_cpp
2086
2087 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2088 # ---------------------------------------------------------
2089 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090 # the include files in INCLUDES and setting the cache variable VAR
2091 # accordingly.
2092 ac_fn_cxx_check_header_mongrel ()
2093 {
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 if eval \${$3+:} false; then :
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
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 else
2105 # Is the header compilable?
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107 $as_echo_n "checking $2 usability... " >&6; }
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2110 $4
2111 #include <$2>
2112 _ACEOF
2113 if ac_fn_cxx_try_compile "$LINENO"; then :
2114 ac_header_compiler=yes
2115 else
2116 ac_header_compiler=no
2117 fi
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120 $as_echo "$ac_header_compiler" >&6; }
2121
2122 # Is the header present?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124 $as_echo_n "checking $2 presence... " >&6; }
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2127 #include <$2>
2128 _ACEOF
2129 if ac_fn_cxx_try_cpp "$LINENO"; then :
2130 ac_header_preproc=yes
2131 else
2132 ac_header_preproc=no
2133 fi
2134 rm -f conftest.err conftest.i conftest.$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136 $as_echo "$ac_header_preproc" >&6; }
2137
2138 # So? What about this header?
2139 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2140 yes:no: )
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2145 ;;
2146 no:yes:* )
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2150 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2154 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2157 ;;
2158 esac
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 eval "$3=\$ac_header_compiler"
2165 fi
2166 eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169 fi
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171
2172 } # ac_fn_cxx_check_header_mongrel
2173
2174 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2175 # -----------------------------------------------
2176 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2177 # accordingly.
2178 ac_fn_cxx_check_decl ()
2179 {
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 as_decl_name=`echo $2|sed 's/ *(.*//'`
2182 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2184 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2185 if eval \${$3+:} false; then :
2186 $as_echo_n "(cached) " >&6
2187 else
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2190 $4
2191 int
2192 main ()
2193 {
2194 #ifndef $as_decl_name
2195 #ifdef __cplusplus
2196 (void) $as_decl_use;
2197 #else
2198 (void) $as_decl_name;
2199 #endif
2200 #endif
2201
2202 ;
2203 return 0;
2204 }
2205 _ACEOF
2206 if ac_fn_cxx_try_compile "$LINENO"; then :
2207 eval "$3=yes"
2208 else
2209 eval "$3=no"
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 fi
2213 eval ac_res=\$$3
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217
2218 } # ac_fn_cxx_check_decl
2219
2220 # ac_fn_cxx_try_link LINENO
2221 # -------------------------
2222 # Try to link conftest.$ac_ext, and return whether this succeeded.
2223 ac_fn_cxx_try_link ()
2224 {
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 rm -f conftest.$ac_objext conftest$ac_exeext
2227 if { { ac_try="$ac_link"
2228 case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231 esac
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_link") 2>conftest.err
2235 ac_status=$?
2236 if test -s conftest.err; then
2237 grep -v '^ *+' conftest.err >conftest.er1
2238 cat conftest.er1 >&5
2239 mv -f conftest.er1 conftest.err
2240 fi
2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242 test $ac_status = 0; } && {
2243 test -z "$ac_cxx_werror_flag" ||
2244 test ! -s conftest.err
2245 } && test -s conftest$ac_exeext && {
2246 test "$cross_compiling" = yes ||
2247 test -x conftest$ac_exeext
2248 }; then :
2249 ac_retval=0
2250 else
2251 $as_echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253
2254 ac_retval=1
2255 fi
2256 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2257 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2258 # interfere with the next link command; also delete a directory that is
2259 # left behind by Apple's compiler. We do this before executing the actions.
2260 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262 as_fn_set_status $ac_retval
2263
2264 } # ac_fn_cxx_try_link
2265
2266 # ac_fn_cxx_check_func LINENO FUNC VAR
2267 # ------------------------------------
2268 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2269 ac_fn_cxx_check_func ()
2270 {
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2273 $as_echo_n "checking for $2... " >&6; }
2274 if eval \${$3+:} false; then :
2275 $as_echo_n "(cached) " >&6
2276 else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2279 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2281 #define $2 innocuous_$2
2282
2283 /* System header to define __stub macros and hopefully few prototypes,
2284 which can conflict with char $2 (); below.
2285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2286 <limits.h> exists even on freestanding compilers. */
2287
2288 #ifdef __STDC__
2289 # include <limits.h>
2290 #else
2291 # include <assert.h>
2292 #endif
2293
2294 #undef $2
2295
2296 /* Override any GCC internal prototype to avoid an error.
2297 Use char because int might match the return type of a GCC
2298 builtin and then its argument prototype would still apply. */
2299 #ifdef __cplusplus
2300 extern "C"
2301 #endif
2302 char $2 ();
2303 /* The GNU C library defines this for functions which it implements
2304 to always fail with ENOSYS. Some functions are actually named
2305 something starting with __ and the normal name is an alias. */
2306 #if defined __stub_$2 || defined __stub___$2
2307 choke me
2308 #endif
2309
2310 int
2311 main ()
2312 {
2313 return $2 ();
2314 ;
2315 return 0;
2316 }
2317 _ACEOF
2318 if ac_fn_cxx_try_link "$LINENO"; then :
2319 eval "$3=yes"
2320 else
2321 eval "$3=no"
2322 fi
2323 rm -f core conftest.err conftest.$ac_objext \
2324 conftest$ac_exeext conftest.$ac_ext
2325 fi
2326 eval ac_res=\$$3
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2328 $as_echo "$ac_res" >&6; }
2329 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2330
2331 } # ac_fn_cxx_check_func
2332 cat >config.log <<_ACEOF
2333 This file contains any messages produced by compilers while
2334 running configure, to aid debugging if configure makes a mistake.
2335
2336 It was created by gold $as_me 0.1, which was
2337 generated by GNU Autoconf 2.69. Invocation command line was
2338
2339 $ $0 $@
2340
2341 _ACEOF
2342 exec 5>>config.log
2343 {
2344 cat <<_ASUNAME
2345 ## --------- ##
2346 ## Platform. ##
2347 ## --------- ##
2348
2349 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2350 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2351 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2352 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2353 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2354
2355 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2356 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2357
2358 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2359 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2360 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2361 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2362 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2363 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2364 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2365
2366 _ASUNAME
2367
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 $as_echo "PATH: $as_dir"
2374 done
2375 IFS=$as_save_IFS
2376
2377 } >&5
2378
2379 cat >&5 <<_ACEOF
2380
2381
2382 ## ----------- ##
2383 ## Core tests. ##
2384 ## ----------- ##
2385
2386 _ACEOF
2387
2388
2389 # Keep a trace of the command line.
2390 # Strip out --no-create and --no-recursion so they do not pile up.
2391 # Strip out --silent because we don't want to record it for future runs.
2392 # Also quote any args containing shell meta-characters.
2393 # Make two passes to allow for proper duplicate-argument suppression.
2394 ac_configure_args=
2395 ac_configure_args0=
2396 ac_configure_args1=
2397 ac_must_keep_next=false
2398 for ac_pass in 1 2
2399 do
2400 for ac_arg
2401 do
2402 case $ac_arg in
2403 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2405 | -silent | --silent | --silen | --sile | --sil)
2406 continue ;;
2407 *\'*)
2408 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2409 esac
2410 case $ac_pass in
2411 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2412 2)
2413 as_fn_append ac_configure_args1 " '$ac_arg'"
2414 if test $ac_must_keep_next = true; then
2415 ac_must_keep_next=false # Got value, back to normal.
2416 else
2417 case $ac_arg in
2418 *=* | --config-cache | -C | -disable-* | --disable-* \
2419 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2420 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2421 | -with-* | --with-* | -without-* | --without-* | --x)
2422 case "$ac_configure_args0 " in
2423 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2424 esac
2425 ;;
2426 -* ) ac_must_keep_next=true ;;
2427 esac
2428 fi
2429 as_fn_append ac_configure_args " '$ac_arg'"
2430 ;;
2431 esac
2432 done
2433 done
2434 { ac_configure_args0=; unset ac_configure_args0;}
2435 { ac_configure_args1=; unset ac_configure_args1;}
2436
2437 # When interrupted or exit'd, cleanup temporary files, and complete
2438 # config.log. We remove comments because anyway the quotes in there
2439 # would cause problems or look ugly.
2440 # WARNING: Use '\'' to represent an apostrophe within the trap.
2441 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2442 trap 'exit_status=$?
2443 # Save into config.log some information that might help in debugging.
2444 {
2445 echo
2446
2447 $as_echo "## ---------------- ##
2448 ## Cache variables. ##
2449 ## ---------------- ##"
2450 echo
2451 # The following way of writing the cache mishandles newlines in values,
2452 (
2453 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2454 eval ac_val=\$$ac_var
2455 case $ac_val in #(
2456 *${as_nl}*)
2457 case $ac_var in #(
2458 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2459 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2460 esac
2461 case $ac_var in #(
2462 _ | IFS | as_nl) ;; #(
2463 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2464 *) { eval $ac_var=; unset $ac_var;} ;;
2465 esac ;;
2466 esac
2467 done
2468 (set) 2>&1 |
2469 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2470 *${as_nl}ac_space=\ *)
2471 sed -n \
2472 "s/'\''/'\''\\\\'\'''\''/g;
2473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2474 ;; #(
2475 *)
2476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2477 ;;
2478 esac |
2479 sort
2480 )
2481 echo
2482
2483 $as_echo "## ----------------- ##
2484 ## Output variables. ##
2485 ## ----------------- ##"
2486 echo
2487 for ac_var in $ac_subst_vars
2488 do
2489 eval ac_val=\$$ac_var
2490 case $ac_val in
2491 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2492 esac
2493 $as_echo "$ac_var='\''$ac_val'\''"
2494 done | sort
2495 echo
2496
2497 if test -n "$ac_subst_files"; then
2498 $as_echo "## ------------------- ##
2499 ## File substitutions. ##
2500 ## ------------------- ##"
2501 echo
2502 for ac_var in $ac_subst_files
2503 do
2504 eval ac_val=\$$ac_var
2505 case $ac_val in
2506 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507 esac
2508 $as_echo "$ac_var='\''$ac_val'\''"
2509 done | sort
2510 echo
2511 fi
2512
2513 if test -s confdefs.h; then
2514 $as_echo "## ----------- ##
2515 ## confdefs.h. ##
2516 ## ----------- ##"
2517 echo
2518 cat confdefs.h
2519 echo
2520 fi
2521 test "$ac_signal" != 0 &&
2522 $as_echo "$as_me: caught signal $ac_signal"
2523 $as_echo "$as_me: exit $exit_status"
2524 } >&5
2525 rm -f core *.core core.conftest.* &&
2526 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2527 exit $exit_status
2528 ' 0
2529 for ac_signal in 1 2 13 15; do
2530 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2531 done
2532 ac_signal=0
2533
2534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2535 rm -f -r conftest* confdefs.h
2536
2537 $as_echo "/* confdefs.h */" > confdefs.h
2538
2539 # Predefined preprocessor variables.
2540
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_NAME "$PACKAGE_NAME"
2543 _ACEOF
2544
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2547 _ACEOF
2548
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2551 _ACEOF
2552
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_STRING "$PACKAGE_STRING"
2555 _ACEOF
2556
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2559 _ACEOF
2560
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_URL "$PACKAGE_URL"
2563 _ACEOF
2564
2565
2566 # Let the site file select an alternate cache file if it wants to.
2567 # Prefer an explicitly selected file to automatically selected ones.
2568 ac_site_file1=NONE
2569 ac_site_file2=NONE
2570 if test -n "$CONFIG_SITE"; then
2571 # We do not want a PATH search for config.site.
2572 case $CONFIG_SITE in #((
2573 -*) ac_site_file1=./$CONFIG_SITE;;
2574 */*) ac_site_file1=$CONFIG_SITE;;
2575 *) ac_site_file1=./$CONFIG_SITE;;
2576 esac
2577 elif test "x$prefix" != xNONE; then
2578 ac_site_file1=$prefix/share/config.site
2579 ac_site_file2=$prefix/etc/config.site
2580 else
2581 ac_site_file1=$ac_default_prefix/share/config.site
2582 ac_site_file2=$ac_default_prefix/etc/config.site
2583 fi
2584 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2585 do
2586 test "x$ac_site_file" = xNONE && continue
2587 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2589 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2590 sed 's/^/| /' "$ac_site_file" >&5
2591 . "$ac_site_file" \
2592 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594 as_fn_error $? "failed to load site script $ac_site_file
2595 See \`config.log' for more details" "$LINENO" 5; }
2596 fi
2597 done
2598
2599 if test -r "$cache_file"; then
2600 # Some versions of bash will fail to source /dev/null (special files
2601 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2602 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2604 $as_echo "$as_me: loading cache $cache_file" >&6;}
2605 case $cache_file in
2606 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2607 *) . "./$cache_file";;
2608 esac
2609 fi
2610 else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2612 $as_echo "$as_me: creating cache $cache_file" >&6;}
2613 >$cache_file
2614 fi
2615
2616 # Check that the precious variables saved in the cache have kept the same
2617 # value.
2618 ac_cache_corrupted=false
2619 for ac_var in $ac_precious_vars; do
2620 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2621 eval ac_new_set=\$ac_env_${ac_var}_set
2622 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2623 eval ac_new_val=\$ac_env_${ac_var}_value
2624 case $ac_old_set,$ac_new_set in
2625 set,)
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2627 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2628 ac_cache_corrupted=: ;;
2629 ,set)
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2631 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2632 ac_cache_corrupted=: ;;
2633 ,);;
2634 *)
2635 if test "x$ac_old_val" != "x$ac_new_val"; then
2636 # differences in whitespace do not lead to failure.
2637 ac_old_val_w=`echo x $ac_old_val`
2638 ac_new_val_w=`echo x $ac_new_val`
2639 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2641 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2642 ac_cache_corrupted=:
2643 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2645 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2646 eval $ac_var=\$ac_old_val
2647 fi
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2649 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2651 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2652 fi;;
2653 esac
2654 # Pass precious variables to config.status.
2655 if test "$ac_new_set" = set; then
2656 case $ac_new_val in
2657 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2658 *) ac_arg=$ac_var=$ac_new_val ;;
2659 esac
2660 case " $ac_configure_args " in
2661 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2662 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2663 esac
2664 fi
2665 done
2666 if $ac_cache_corrupted; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2670 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2671 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2672 fi
2673 ## -------------------- ##
2674 ## Main body of script. ##
2675 ## -------------------- ##
2676
2677 ac_ext=c
2678 ac_cpp='$CPP $CPPFLAGS'
2679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682
2683
2684
2685
2686
2687
2688
2689 ac_aux_dir=
2690 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2691 if test -f "$ac_dir/install-sh"; then
2692 ac_aux_dir=$ac_dir
2693 ac_install_sh="$ac_aux_dir/install-sh -c"
2694 break
2695 elif test -f "$ac_dir/install.sh"; then
2696 ac_aux_dir=$ac_dir
2697 ac_install_sh="$ac_aux_dir/install.sh -c"
2698 break
2699 elif test -f "$ac_dir/shtool"; then
2700 ac_aux_dir=$ac_dir
2701 ac_install_sh="$ac_aux_dir/shtool install -c"
2702 break
2703 fi
2704 done
2705 if test -z "$ac_aux_dir"; then
2706 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2707 fi
2708
2709 # These three variables are undocumented and unsupported,
2710 # and are intended to be withdrawn in a future Autoconf release.
2711 # They can cause serious problems if a builder's source tree is in a directory
2712 # whose full name contains unusual characters.
2713 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2714 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2715 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2716
2717
2718 # Make sure we can run config.sub.
2719 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2720 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2721
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2723 $as_echo_n "checking build system type... " >&6; }
2724 if ${ac_cv_build+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 ac_build_alias=$build_alias
2728 test "x$ac_build_alias" = x &&
2729 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2730 test "x$ac_build_alias" = x &&
2731 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2732 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2733 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2734
2735 fi
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2737 $as_echo "$ac_cv_build" >&6; }
2738 case $ac_cv_build in
2739 *-*-*) ;;
2740 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2741 esac
2742 build=$ac_cv_build
2743 ac_save_IFS=$IFS; IFS='-'
2744 set x $ac_cv_build
2745 shift
2746 build_cpu=$1
2747 build_vendor=$2
2748 shift; shift
2749 # Remember, the first character of IFS is used to create $*,
2750 # except with old shells:
2751 build_os=$*
2752 IFS=$ac_save_IFS
2753 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2754
2755
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2757 $as_echo_n "checking host system type... " >&6; }
2758 if ${ac_cv_host+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test "x$host_alias" = x; then
2762 ac_cv_host=$ac_cv_build
2763 else
2764 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2765 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2766 fi
2767
2768 fi
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2770 $as_echo "$ac_cv_host" >&6; }
2771 case $ac_cv_host in
2772 *-*-*) ;;
2773 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2774 esac
2775 host=$ac_cv_host
2776 ac_save_IFS=$IFS; IFS='-'
2777 set x $ac_cv_host
2778 shift
2779 host_cpu=$1
2780 host_vendor=$2
2781 shift; shift
2782 # Remember, the first character of IFS is used to create $*,
2783 # except with old shells:
2784 host_os=$*
2785 IFS=$ac_save_IFS
2786 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2787
2788
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2790 $as_echo_n "checking target system type... " >&6; }
2791 if ${ac_cv_target+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 if test "x$target_alias" = x; then
2795 ac_cv_target=$ac_cv_host
2796 else
2797 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2798 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2799 fi
2800
2801 fi
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2803 $as_echo "$ac_cv_target" >&6; }
2804 case $ac_cv_target in
2805 *-*-*) ;;
2806 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2807 esac
2808 target=$ac_cv_target
2809 ac_save_IFS=$IFS; IFS='-'
2810 set x $ac_cv_target
2811 shift
2812 target_cpu=$1
2813 target_vendor=$2
2814 shift; shift
2815 # Remember, the first character of IFS is used to create $*,
2816 # except with old shells:
2817 target_os=$*
2818 IFS=$ac_save_IFS
2819 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2820
2821
2822 # The aliases save the names the user supplied, while $host etc.
2823 # will get canonicalized.
2824 test -n "$target_alias" &&
2825 test "$program_prefix$program_suffix$program_transform_name" = \
2826 NONENONEs,x,x, &&
2827 program_prefix=${target_alias}-
2828
2829 am__api_version='1.15'
2830
2831 # Find a good install program. We prefer a C program (faster),
2832 # so one script is as good as another. But avoid the broken or
2833 # incompatible versions:
2834 # SysV /etc/install, /usr/sbin/install
2835 # SunOS /usr/etc/install
2836 # IRIX /sbin/install
2837 # AIX /bin/install
2838 # AmigaOS /C/install, which installs bootblocks on floppy discs
2839 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2840 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2841 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2842 # OS/2's system install, which has a completely different semantic
2843 # ./install, which can be erroneously created by make from ./install.sh.
2844 # Reject install programs that cannot install multiple files.
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2846 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2847 if test -z "$INSTALL"; then
2848 if ${ac_cv_path_install+:} false; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 # Account for people who put trailing slashes in PATH elements.
2857 case $as_dir/ in #((
2858 ./ | .// | /[cC]/* | \
2859 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2860 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2861 /usr/ucb/* ) ;;
2862 *)
2863 # OSF1 and SCO ODT 3.0 have their own names for install.
2864 # Don't use installbsd from OSF since it installs stuff as root
2865 # by default.
2866 for ac_prog in ginstall scoinst install; do
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2869 if test $ac_prog = install &&
2870 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2871 # AIX install. It has an incompatible calling convention.
2872 :
2873 elif test $ac_prog = install &&
2874 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2875 # program-specific install script used by HP pwplus--don't use.
2876 :
2877 else
2878 rm -rf conftest.one conftest.two conftest.dir
2879 echo one > conftest.one
2880 echo two > conftest.two
2881 mkdir conftest.dir
2882 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2883 test -s conftest.one && test -s conftest.two &&
2884 test -s conftest.dir/conftest.one &&
2885 test -s conftest.dir/conftest.two
2886 then
2887 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2888 break 3
2889 fi
2890 fi
2891 fi
2892 done
2893 done
2894 ;;
2895 esac
2896
2897 done
2898 IFS=$as_save_IFS
2899
2900 rm -rf conftest.one conftest.two conftest.dir
2901
2902 fi
2903 if test "${ac_cv_path_install+set}" = set; then
2904 INSTALL=$ac_cv_path_install
2905 else
2906 # As a last resort, use the slow shell script. Don't cache a
2907 # value for INSTALL within a source directory, because that will
2908 # break other packages using the cache if that directory is
2909 # removed, or if the value is a relative name.
2910 INSTALL=$ac_install_sh
2911 fi
2912 fi
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2914 $as_echo "$INSTALL" >&6; }
2915
2916 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2917 # It thinks the first close brace ends the variable substitution.
2918 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2919
2920 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2921
2922 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2923
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2925 $as_echo_n "checking whether build environment is sane... " >&6; }
2926 # Reject unsafe characters in $srcdir or the absolute working directory
2927 # name. Accept space and tab only in the latter.
2928 am_lf='
2929 '
2930 case `pwd` in
2931 *[\\\"\#\$\&\'\`$am_lf]*)
2932 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2933 esac
2934 case $srcdir in
2935 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2936 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2937 esac
2938
2939 # Do 'set' in a subshell so we don't clobber the current shell's
2940 # arguments. Must try -L first in case configure is actually a
2941 # symlink; some systems play weird games with the mod time of symlinks
2942 # (eg FreeBSD returns the mod time of the symlink's containing
2943 # directory).
2944 if (
2945 am_has_slept=no
2946 for am_try in 1 2; do
2947 echo "timestamp, slept: $am_has_slept" > conftest.file
2948 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2949 if test "$*" = "X"; then
2950 # -L didn't work.
2951 set X `ls -t "$srcdir/configure" conftest.file`
2952 fi
2953 if test "$*" != "X $srcdir/configure conftest.file" \
2954 && test "$*" != "X conftest.file $srcdir/configure"; then
2955
2956 # If neither matched, then we have a broken ls. This can happen
2957 # if, for instance, CONFIG_SHELL is bash and it inherits a
2958 # broken ls alias from the environment. This has actually
2959 # happened. Such a system could not be considered "sane".
2960 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2961 alias in your environment" "$LINENO" 5
2962 fi
2963 if test "$2" = conftest.file || test $am_try -eq 2; then
2964 break
2965 fi
2966 # Just in case.
2967 sleep 1
2968 am_has_slept=yes
2969 done
2970 test "$2" = conftest.file
2971 )
2972 then
2973 # Ok.
2974 :
2975 else
2976 as_fn_error $? "newly created file is older than distributed files!
2977 Check your system clock" "$LINENO" 5
2978 fi
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2980 $as_echo "yes" >&6; }
2981 # If we didn't sleep, we still need to ensure time stamps of config.status and
2982 # generated files are strictly newer.
2983 am_sleep_pid=
2984 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2985 ( sleep 1 ) &
2986 am_sleep_pid=$!
2987 fi
2988
2989 rm -f conftest.file
2990
2991 test "$program_prefix" != NONE &&
2992 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2993 # Use a double $ so make ignores it.
2994 test "$program_suffix" != NONE &&
2995 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2996 # Double any \ or $.
2997 # By default was `s,x,x', remove it if useless.
2998 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2999 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3000
3001 # Expand $ac_aux_dir to an absolute path.
3002 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3003
3004 if test x"${MISSING+set}" != xset; then
3005 case $am_aux_dir in
3006 *\ * | *\ *)
3007 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3008 *)
3009 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3010 esac
3011 fi
3012 # Use eval to expand $SHELL
3013 if eval "$MISSING --is-lightweight"; then
3014 am_missing_run="$MISSING "
3015 else
3016 am_missing_run=
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3018 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3019 fi
3020
3021 if test x"${install_sh+set}" != xset; then
3022 case $am_aux_dir in
3023 *\ * | *\ *)
3024 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3025 *)
3026 install_sh="\${SHELL} $am_aux_dir/install-sh"
3027 esac
3028 fi
3029
3030 # Installed binaries are usually stripped using 'strip' when the user
3031 # run "make install-strip". However 'strip' might not be the right
3032 # tool to use in cross-compilation environments, therefore Automake
3033 # will honor the 'STRIP' environment variable to overrule this program.
3034 if test "$cross_compiling" != no; then
3035 if test -n "$ac_tool_prefix"; then
3036 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3037 set dummy ${ac_tool_prefix}strip; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_STRIP+:} false; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test -n "$STRIP"; then
3044 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057 done
3058 done
3059 IFS=$as_save_IFS
3060
3061 fi
3062 fi
3063 STRIP=$ac_cv_prog_STRIP
3064 if test -n "$STRIP"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3066 $as_echo "$STRIP" >&6; }
3067 else
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 fi
3071
3072
3073 fi
3074 if test -z "$ac_cv_prog_STRIP"; then
3075 ac_ct_STRIP=$STRIP
3076 # Extract the first word of "strip", so it can be a program name with args.
3077 set dummy strip; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test -n "$ac_ct_STRIP"; then
3084 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_ac_ct_STRIP="strip"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3096 fi
3097 done
3098 done
3099 IFS=$as_save_IFS
3100
3101 fi
3102 fi
3103 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3104 if test -n "$ac_ct_STRIP"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3106 $as_echo "$ac_ct_STRIP" >&6; }
3107 else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3111
3112 if test "x$ac_ct_STRIP" = x; then
3113 STRIP=":"
3114 else
3115 case $cross_compiling:$ac_tool_warned in
3116 yes:)
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3119 ac_tool_warned=yes ;;
3120 esac
3121 STRIP=$ac_ct_STRIP
3122 fi
3123 else
3124 STRIP="$ac_cv_prog_STRIP"
3125 fi
3126
3127 fi
3128 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3129
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3131 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3132 if test -z "$MKDIR_P"; then
3133 if ${ac_cv_path_mkdir+:} false; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3138 do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_prog in mkdir gmkdir; do
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3144 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3145 'mkdir (GNU coreutils) '* | \
3146 'mkdir (coreutils) '* | \
3147 'mkdir (fileutils) '4.1*)
3148 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3149 break 3;;
3150 esac
3151 done
3152 done
3153 done
3154 IFS=$as_save_IFS
3155
3156 fi
3157
3158 test -d ./--version && rmdir ./--version
3159 if test "${ac_cv_path_mkdir+set}" = set; then
3160 MKDIR_P="$ac_cv_path_mkdir -p"
3161 else
3162 # As a last resort, use the slow shell script. Don't cache a
3163 # value for MKDIR_P within a source directory, because that will
3164 # break other packages using the cache if that directory is
3165 # removed, or if the value is a relative name.
3166 MKDIR_P="$ac_install_sh -d"
3167 fi
3168 fi
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3170 $as_echo "$MKDIR_P" >&6; }
3171
3172 for ac_prog in gawk mawk nawk awk
3173 do
3174 # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy $ac_prog; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if ${ac_cv_prog_AWK+:} false; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$AWK"; then
3182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_AWK="$ac_prog"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 AWK=$ac_cv_prog_AWK
3202 if test -n "$AWK"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3204 $as_echo "$AWK" >&6; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210
3211 test -n "$AWK" && break
3212 done
3213
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3215 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3216 set x ${MAKE-make}
3217 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3218 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 cat >conftest.make <<\_ACEOF
3222 SHELL = /bin/sh
3223 all:
3224 @echo '@@@%%%=$(MAKE)=@@@%%%'
3225 _ACEOF
3226 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3227 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3228 *@@@%%%=?*=@@@%%%*)
3229 eval ac_cv_prog_make_${ac_make}_set=yes;;
3230 *)
3231 eval ac_cv_prog_make_${ac_make}_set=no;;
3232 esac
3233 rm -f conftest.make
3234 fi
3235 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3237 $as_echo "yes" >&6; }
3238 SET_MAKE=
3239 else
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 SET_MAKE="MAKE=${MAKE-make}"
3243 fi
3244
3245 rm -rf .tst 2>/dev/null
3246 mkdir .tst 2>/dev/null
3247 if test -d .tst; then
3248 am__leading_dot=.
3249 else
3250 am__leading_dot=_
3251 fi
3252 rmdir .tst 2>/dev/null
3253
3254 # Check whether --enable-silent-rules was given.
3255 if test "${enable_silent_rules+set}" = set; then :
3256 enableval=$enable_silent_rules;
3257 fi
3258
3259 case $enable_silent_rules in # (((
3260 yes) AM_DEFAULT_VERBOSITY=0;;
3261 no) AM_DEFAULT_VERBOSITY=1;;
3262 *) AM_DEFAULT_VERBOSITY=1;;
3263 esac
3264 am_make=${MAKE-make}
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3266 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3267 if ${am_cv_make_support_nested_variables+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if $as_echo 'TRUE=$(BAR$(V))
3271 BAR0=false
3272 BAR1=true
3273 V=1
3274 am__doit:
3275 @$(TRUE)
3276 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3277 am_cv_make_support_nested_variables=yes
3278 else
3279 am_cv_make_support_nested_variables=no
3280 fi
3281 fi
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3283 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3284 if test $am_cv_make_support_nested_variables = yes; then
3285 AM_V='$(V)'
3286 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3287 else
3288 AM_V=$AM_DEFAULT_VERBOSITY
3289 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3290 fi
3291 AM_BACKSLASH='\'
3292
3293 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3294 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3295 # is not polluted with repeated "-I."
3296 am__isrc=' -I$(srcdir)'
3297 # test to see if srcdir already configured
3298 if test -f $srcdir/config.status; then
3299 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3300 fi
3301 fi
3302
3303 # test whether we have cygpath
3304 if test -z "$CYGPATH_W"; then
3305 if (cygpath --version) >/dev/null 2>/dev/null; then
3306 CYGPATH_W='cygpath -w'
3307 else
3308 CYGPATH_W=echo
3309 fi
3310 fi
3311
3312
3313 # Define the identity of the package.
3314 PACKAGE='gold'
3315 VERSION='0.1'
3316
3317
3318 cat >>confdefs.h <<_ACEOF
3319 #define PACKAGE "$PACKAGE"
3320 _ACEOF
3321
3322
3323 cat >>confdefs.h <<_ACEOF
3324 #define VERSION "$VERSION"
3325 _ACEOF
3326
3327 # Some tools Automake needs.
3328
3329 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3330
3331
3332 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3333
3334
3335 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3336
3337
3338 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3339
3340
3341 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3342
3343 # For better backward compatibility. To be removed once Automake 1.9.x
3344 # dies out for good. For more background, see:
3345 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3346 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3347 mkdir_p='$(MKDIR_P)'
3348
3349 # We need awk for the "check" target (and possibly the TAP driver). The
3350 # system "awk" is bad on some platforms.
3351 # Always define AMTAR for backward compatibility. Yes, it's still used
3352 # in the wild :-( We should find a proper way to deprecate it ...
3353 AMTAR='$${TAR-tar}'
3354
3355
3356 # We'll loop over all known methods to create a tar archive until one works.
3357 _am_tools='gnutar pax cpio none'
3358
3359 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3360
3361
3362
3363
3364
3365
3366 # POSIX will say in a future version that running "rm -f" with no argument
3367 # is OK; and we want to be able to make that assumption in our Makefile
3368 # recipes. So use an aggressive probe to check that the usage we want is
3369 # actually supported "in the wild" to an acceptable degree.
3370 # See automake bug#10828.
3371 # To make any issue more visible, cause the running configure to be aborted
3372 # by default if the 'rm' program in use doesn't match our expectations; the
3373 # user can still override this though.
3374 if rm -f && rm -fr && rm -rf; then : OK; else
3375 cat >&2 <<'END'
3376 Oops!
3377
3378 Your 'rm' program seems unable to run without file operands specified
3379 on the command line, even when the '-f' option is present. This is contrary
3380 to the behaviour of most rm programs out there, and not conforming with
3381 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3382
3383 Please tell bug-automake@gnu.org about your system, including the value
3384 of your $PATH and any error possibly output before this message. This
3385 can help us improve future automake versions.
3386
3387 END
3388 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3389 echo 'Configuration will proceed anyway, since you have set the' >&2
3390 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3391 echo >&2
3392 else
3393 cat >&2 <<'END'
3394 Aborting the configuration process, to ensure you take notice of the issue.
3395
3396 You can download and install GNU coreutils to get an 'rm' implementation
3397 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3398
3399 If you want to complete the configuration process using your problematic
3400 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3401 to "yes", and re-run configure.
3402
3403 END
3404 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3405 fi
3406 fi
3407
3408 # Check whether --enable-silent-rules was given.
3409 if test "${enable_silent_rules+set}" = set; then :
3410 enableval=$enable_silent_rules;
3411 fi
3412
3413 case $enable_silent_rules in # (((
3414 yes) AM_DEFAULT_VERBOSITY=0;;
3415 no) AM_DEFAULT_VERBOSITY=1;;
3416 *) AM_DEFAULT_VERBOSITY=0;;
3417 esac
3418 am_make=${MAKE-make}
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3420 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3421 if ${am_cv_make_support_nested_variables+:} false; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 if $as_echo 'TRUE=$(BAR$(V))
3425 BAR0=false
3426 BAR1=true
3427 V=1
3428 am__doit:
3429 @$(TRUE)
3430 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3431 am_cv_make_support_nested_variables=yes
3432 else
3433 am_cv_make_support_nested_variables=no
3434 fi
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3437 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3438 if test $am_cv_make_support_nested_variables = yes; then
3439 AM_V='$(V)'
3440 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3441 else
3442 AM_V=$AM_DEFAULT_VERBOSITY
3443 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3444 fi
3445 AM_BACKSLASH='\'
3446
3447
3448 ac_config_headers="$ac_config_headers config.h:config.in"
3449
3450
3451 DEPDIR="${am__leading_dot}deps"
3452
3453 ac_config_commands="$ac_config_commands depfiles"
3454
3455
3456 am_make=${MAKE-make}
3457 cat > confinc << 'END'
3458 am__doit:
3459 @echo this is the am__doit target
3460 .PHONY: am__doit
3461 END
3462 # If we don't find an include directive, just comment out the code.
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3464 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3465 am__include="#"
3466 am__quote=
3467 _am_result=none
3468 # First try GNU make style include.
3469 echo "include confinc" > confmf
3470 # Ignore all kinds of additional output from 'make'.
3471 case `$am_make -s -f confmf 2> /dev/null` in #(
3472 *the\ am__doit\ target*)
3473 am__include=include
3474 am__quote=
3475 _am_result=GNU
3476 ;;
3477 esac
3478 # Now try BSD make style include.
3479 if test "$am__include" = "#"; then
3480 echo '.include "confinc"' > confmf
3481 case `$am_make -s -f confmf 2> /dev/null` in #(
3482 *the\ am__doit\ target*)
3483 am__include=.include
3484 am__quote="\""
3485 _am_result=BSD
3486 ;;
3487 esac
3488 fi
3489
3490
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3492 $as_echo "$_am_result" >&6; }
3493 rm -f confinc confmf
3494
3495 # Check whether --enable-dependency-tracking was given.
3496 if test "${enable_dependency_tracking+set}" = set; then :
3497 enableval=$enable_dependency_tracking;
3498 fi
3499
3500 if test "x$enable_dependency_tracking" != xno; then
3501 am_depcomp="$ac_aux_dir/depcomp"
3502 AMDEPBACKSLASH='\'
3503 am__nodep='_no'
3504 fi
3505 if test "x$enable_dependency_tracking" != xno; then
3506 AMDEP_TRUE=
3507 AMDEP_FALSE='#'
3508 else
3509 AMDEP_TRUE='#'
3510 AMDEP_FALSE=
3511 fi
3512
3513
3514 ac_ext=c
3515 ac_cpp='$CPP $CPPFLAGS'
3516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 if test -n "$ac_tool_prefix"; then
3520 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3521 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if ${ac_cv_prog_CC+:} false; then :
3525 $as_echo_n "(cached) " >&6
3526 else
3527 if test -n "$CC"; then
3528 ac_cv_prog_CC="$CC" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3532 do
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 break 2
3540 fi
3541 done
3542 done
3543 IFS=$as_save_IFS
3544
3545 fi
3546 fi
3547 CC=$ac_cv_prog_CC
3548 if test -n "$CC"; then
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3550 $as_echo "$CC" >&6; }
3551 else
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3554 fi
3555
3556
3557 fi
3558 if test -z "$ac_cv_prog_CC"; then
3559 ac_ct_CC=$CC
3560 # Extract the first word of "gcc", so it can be a program name with args.
3561 set dummy gcc; ac_word=$2
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563 $as_echo_n "checking for $ac_word... " >&6; }
3564 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3567 if test -n "$ac_ct_CC"; then
3568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3569 else
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 for as_dir in $PATH
3572 do
3573 IFS=$as_save_IFS
3574 test -z "$as_dir" && as_dir=.
3575 for ac_exec_ext in '' $ac_executable_extensions; do
3576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3577 ac_cv_prog_ac_ct_CC="gcc"
3578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 break 2
3580 fi
3581 done
3582 done
3583 IFS=$as_save_IFS
3584
3585 fi
3586 fi
3587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3588 if test -n "$ac_ct_CC"; then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3590 $as_echo "$ac_ct_CC" >&6; }
3591 else
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594 fi
3595
3596 if test "x$ac_ct_CC" = x; then
3597 CC=""
3598 else
3599 case $cross_compiling:$ac_tool_warned in
3600 yes:)
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603 ac_tool_warned=yes ;;
3604 esac
3605 CC=$ac_ct_CC
3606 fi
3607 else
3608 CC="$ac_cv_prog_CC"
3609 fi
3610
3611 if test -z "$CC"; then
3612 if test -n "$ac_tool_prefix"; then
3613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3614 set dummy ${ac_tool_prefix}cc; ac_word=$2
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3616 $as_echo_n "checking for $ac_word... " >&6; }
3617 if ${ac_cv_prog_CC+:} false; then :
3618 $as_echo_n "(cached) " >&6
3619 else
3620 if test -n "$CC"; then
3621 ac_cv_prog_CC="$CC" # Let the user override the test.
3622 else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH
3625 do
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630 ac_cv_prog_CC="${ac_tool_prefix}cc"
3631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 break 2
3633 fi
3634 done
3635 done
3636 IFS=$as_save_IFS
3637
3638 fi
3639 fi
3640 CC=$ac_cv_prog_CC
3641 if test -n "$CC"; then
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3643 $as_echo "$CC" >&6; }
3644 else
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 $as_echo "no" >&6; }
3647 fi
3648
3649
3650 fi
3651 fi
3652 if test -z "$CC"; then
3653 # Extract the first word of "cc", so it can be a program name with args.
3654 set dummy cc; ac_word=$2
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656 $as_echo_n "checking for $ac_word... " >&6; }
3657 if ${ac_cv_prog_CC+:} false; then :
3658 $as_echo_n "(cached) " >&6
3659 else
3660 if test -n "$CC"; then
3661 ac_cv_prog_CC="$CC" # Let the user override the test.
3662 else
3663 ac_prog_rejected=no
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH
3666 do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3671 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3672 ac_prog_rejected=yes
3673 continue
3674 fi
3675 ac_cv_prog_CC="cc"
3676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 break 2
3678 fi
3679 done
3680 done
3681 IFS=$as_save_IFS
3682
3683 if test $ac_prog_rejected = yes; then
3684 # We found a bogon in the path, so make sure we never use it.
3685 set dummy $ac_cv_prog_CC
3686 shift
3687 if test $# != 0; then
3688 # We chose a different compiler from the bogus one.
3689 # However, it has the same basename, so the bogon will be chosen
3690 # first if we set CC to just the basename; use the full file name.
3691 shift
3692 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3693 fi
3694 fi
3695 fi
3696 fi
3697 CC=$ac_cv_prog_CC
3698 if test -n "$CC"; then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3700 $as_echo "$CC" >&6; }
3701 else
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 $as_echo "no" >&6; }
3704 fi
3705
3706
3707 fi
3708 if test -z "$CC"; then
3709 if test -n "$ac_tool_prefix"; then
3710 for ac_prog in cl.exe
3711 do
3712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 $as_echo_n "checking for $ac_word... " >&6; }
3716 if ${ac_cv_prog_CC+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 if test -n "$CC"; then
3720 ac_cv_prog_CC="$CC" # Let the user override the test.
3721 else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3732 fi
3733 done
3734 done
3735 IFS=$as_save_IFS
3736
3737 fi
3738 fi
3739 CC=$ac_cv_prog_CC
3740 if test -n "$CC"; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3742 $as_echo "$CC" >&6; }
3743 else
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3746 fi
3747
3748
3749 test -n "$CC" && break
3750 done
3751 fi
3752 if test -z "$CC"; then
3753 ac_ct_CC=$CC
3754 for ac_prog in cl.exe
3755 do
3756 # Extract the first word of "$ac_prog", so it can be a program name with args.
3757 set dummy $ac_prog; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 if test -n "$ac_ct_CC"; then
3764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773 ac_cv_prog_ac_ct_CC="$ac_prog"
3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 break 2
3776 fi
3777 done
3778 done
3779 IFS=$as_save_IFS
3780
3781 fi
3782 fi
3783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3784 if test -n "$ac_ct_CC"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3786 $as_echo "$ac_ct_CC" >&6; }
3787 else
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3790 fi
3791
3792
3793 test -n "$ac_ct_CC" && break
3794 done
3795
3796 if test "x$ac_ct_CC" = x; then
3797 CC=""
3798 else
3799 case $cross_compiling:$ac_tool_warned in
3800 yes:)
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3803 ac_tool_warned=yes ;;
3804 esac
3805 CC=$ac_ct_CC
3806 fi
3807 fi
3808
3809 fi
3810
3811
3812 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814 as_fn_error $? "no acceptable C compiler found in \$PATH
3815 See \`config.log' for more details" "$LINENO" 5; }
3816
3817 # Provide some information about the compiler.
3818 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3819 set X $ac_compile
3820 ac_compiler=$2
3821 for ac_option in --version -v -V -qversion; do
3822 { { ac_try="$ac_compiler $ac_option >&5"
3823 case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3826 esac
3827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3828 $as_echo "$ac_try_echo"; } >&5
3829 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3830 ac_status=$?
3831 if test -s conftest.err; then
3832 sed '10a\
3833 ... rest of stderr output deleted ...
3834 10q' conftest.err >conftest.er1
3835 cat conftest.er1 >&5
3836 fi
3837 rm -f conftest.er1 conftest.err
3838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3839 test $ac_status = 0; }
3840 done
3841
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3844
3845 int
3846 main ()
3847 {
3848
3849 ;
3850 return 0;
3851 }
3852 _ACEOF
3853 ac_clean_files_save=$ac_clean_files
3854 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3855 # Try to create an executable without -o first, disregard a.out.
3856 # It will help us diagnose broken compilers, and finding out an intuition
3857 # of exeext.
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3859 $as_echo_n "checking whether the C compiler works... " >&6; }
3860 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3861
3862 # The possible output files:
3863 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3864
3865 ac_rmfiles=
3866 for ac_file in $ac_files
3867 do
3868 case $ac_file in
3869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3870 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3871 esac
3872 done
3873 rm -f $ac_rmfiles
3874
3875 if { { ac_try="$ac_link_default"
3876 case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879 esac
3880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881 $as_echo "$ac_try_echo"; } >&5
3882 (eval "$ac_link_default") 2>&5
3883 ac_status=$?
3884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885 test $ac_status = 0; }; then :
3886 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3887 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3888 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3889 # so that the user can short-circuit this test for compilers unknown to
3890 # Autoconf.
3891 for ac_file in $ac_files ''
3892 do
3893 test -f "$ac_file" || continue
3894 case $ac_file in
3895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3896 ;;
3897 [ab].out )
3898 # We found the default executable, but exeext='' is most
3899 # certainly right.
3900 break;;
3901 *.* )
3902 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3903 then :; else
3904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3905 fi
3906 # We set ac_cv_exeext here because the later test for it is not
3907 # safe: cross compilers may not add the suffix if given an `-o'
3908 # argument, so we may need to know it at that point already.
3909 # Even if this section looks crufty: it has the advantage of
3910 # actually working.
3911 break;;
3912 * )
3913 break;;
3914 esac
3915 done
3916 test "$ac_cv_exeext" = no && ac_cv_exeext=
3917
3918 else
3919 ac_file=''
3920 fi
3921 if test -z "$ac_file"; then :
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3924 $as_echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3926
3927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3929 as_fn_error 77 "C compiler cannot create executables
3930 See \`config.log' for more details" "$LINENO" 5; }
3931 else
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3933 $as_echo "yes" >&6; }
3934 fi
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3936 $as_echo_n "checking for C compiler default output file name... " >&6; }
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3938 $as_echo "$ac_file" >&6; }
3939 ac_exeext=$ac_cv_exeext
3940
3941 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3942 ac_clean_files=$ac_clean_files_save
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3944 $as_echo_n "checking for suffix of executables... " >&6; }
3945 if { { ac_try="$ac_link"
3946 case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949 esac
3950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3951 $as_echo "$ac_try_echo"; } >&5
3952 (eval "$ac_link") 2>&5
3953 ac_status=$?
3954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955 test $ac_status = 0; }; then :
3956 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3957 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3958 # work properly (i.e., refer to `conftest.exe'), while it won't with
3959 # `rm'.
3960 for ac_file in conftest.exe conftest conftest.*; do
3961 test -f "$ac_file" || continue
3962 case $ac_file in
3963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3964 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3965 break;;
3966 * ) break;;
3967 esac
3968 done
3969 else
3970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3973 See \`config.log' for more details" "$LINENO" 5; }
3974 fi
3975 rm -f conftest conftest$ac_cv_exeext
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3977 $as_echo "$ac_cv_exeext" >&6; }
3978
3979 rm -f conftest.$ac_ext
3980 EXEEXT=$ac_cv_exeext
3981 ac_exeext=$EXEEXT
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3984 #include <stdio.h>
3985 int
3986 main ()
3987 {
3988 FILE *f = fopen ("conftest.out", "w");
3989 return ferror (f) || fclose (f) != 0;
3990
3991 ;
3992 return 0;
3993 }
3994 _ACEOF
3995 ac_clean_files="$ac_clean_files conftest.out"
3996 # Check that the compiler produces executables we can run. If not, either
3997 # the compiler is broken, or we cross compile.
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3999 $as_echo_n "checking whether we are cross compiling... " >&6; }
4000 if test "$cross_compiling" != yes; then
4001 { { ac_try="$ac_link"
4002 case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005 esac
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 $as_echo "$ac_try_echo"; } >&5
4008 (eval "$ac_link") 2>&5
4009 ac_status=$?
4010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011 test $ac_status = 0; }
4012 if { ac_try='./conftest$ac_cv_exeext'
4013 { { case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016 esac
4017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018 $as_echo "$ac_try_echo"; } >&5
4019 (eval "$ac_try") 2>&5
4020 ac_status=$?
4021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; }; }; then
4023 cross_compiling=no
4024 else
4025 if test "$cross_compiling" = maybe; then
4026 cross_compiling=yes
4027 else
4028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030 as_fn_error $? "cannot run C compiled programs.
4031 If you meant to cross compile, use \`--host'.
4032 See \`config.log' for more details" "$LINENO" 5; }
4033 fi
4034 fi
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4037 $as_echo "$cross_compiling" >&6; }
4038
4039 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4040 ac_clean_files=$ac_clean_files_save
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4042 $as_echo_n "checking for suffix of object files... " >&6; }
4043 if ${ac_cv_objext+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048
4049 int
4050 main ()
4051 {
4052
4053 ;
4054 return 0;
4055 }
4056 _ACEOF
4057 rm -f conftest.o conftest.obj
4058 if { { ac_try="$ac_compile"
4059 case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4064 $as_echo "$ac_try_echo"; } >&5
4065 (eval "$ac_compile") 2>&5
4066 ac_status=$?
4067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068 test $ac_status = 0; }; then :
4069 for ac_file in conftest.o conftest.obj conftest.*; do
4070 test -f "$ac_file" || continue;
4071 case $ac_file in
4072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4073 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4074 break;;
4075 esac
4076 done
4077 else
4078 $as_echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4080
4081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4083 as_fn_error $? "cannot compute suffix of object files: cannot compile
4084 See \`config.log' for more details" "$LINENO" 5; }
4085 fi
4086 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4089 $as_echo "$ac_cv_objext" >&6; }
4090 OBJEXT=$ac_cv_objext
4091 ac_objext=$OBJEXT
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4093 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4094 if ${ac_cv_c_compiler_gnu+:} false; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099
4100 int
4101 main ()
4102 {
4103 #ifndef __GNUC__
4104 choke me
4105 #endif
4106
4107 ;
4108 return 0;
4109 }
4110 _ACEOF
4111 if ac_fn_c_try_compile "$LINENO"; then :
4112 ac_compiler_gnu=yes
4113 else
4114 ac_compiler_gnu=no
4115 fi
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4118
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4121 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4122 if test $ac_compiler_gnu = yes; then
4123 GCC=yes
4124 else
4125 GCC=
4126 fi
4127 ac_test_CFLAGS=${CFLAGS+set}
4128 ac_save_CFLAGS=$CFLAGS
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4130 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4131 if ${ac_cv_prog_cc_g+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 ac_save_c_werror_flag=$ac_c_werror_flag
4135 ac_c_werror_flag=yes
4136 ac_cv_prog_cc_g=no
4137 CFLAGS="-g"
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4140
4141 int
4142 main ()
4143 {
4144
4145 ;
4146 return 0;
4147 }
4148 _ACEOF
4149 if ac_fn_c_try_compile "$LINENO"; then :
4150 ac_cv_prog_cc_g=yes
4151 else
4152 CFLAGS=""
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155
4156 int
4157 main ()
4158 {
4159
4160 ;
4161 return 0;
4162 }
4163 _ACEOF
4164 if ac_fn_c_try_compile "$LINENO"; then :
4165
4166 else
4167 ac_c_werror_flag=$ac_save_c_werror_flag
4168 CFLAGS="-g"
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171
4172 int
4173 main ()
4174 {
4175
4176 ;
4177 return 0;
4178 }
4179 _ACEOF
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181 ac_cv_prog_cc_g=yes
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 fi
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 fi
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 ac_c_werror_flag=$ac_save_c_werror_flag
4189 fi
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4191 $as_echo "$ac_cv_prog_cc_g" >&6; }
4192 if test "$ac_test_CFLAGS" = set; then
4193 CFLAGS=$ac_save_CFLAGS
4194 elif test $ac_cv_prog_cc_g = yes; then
4195 if test "$GCC" = yes; then
4196 CFLAGS="-g -O2"
4197 else
4198 CFLAGS="-g"
4199 fi
4200 else
4201 if test "$GCC" = yes; then
4202 CFLAGS="-O2"
4203 else
4204 CFLAGS=
4205 fi
4206 fi
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4208 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4209 if ${ac_cv_prog_cc_c89+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 ac_cv_prog_cc_c89=no
4213 ac_save_CC=$CC
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 #include <stdarg.h>
4217 #include <stdio.h>
4218 struct stat;
4219 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4220 struct buf { int x; };
4221 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4222 static char *e (p, i)
4223 char **p;
4224 int i;
4225 {
4226 return p[i];
4227 }
4228 static char *f (char * (*g) (char **, int), char **p, ...)
4229 {
4230 char *s;
4231 va_list v;
4232 va_start (v,p);
4233 s = g (p, va_arg (v,int));
4234 va_end (v);
4235 return s;
4236 }
4237
4238 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4239 function prototypes and stuff, but not '\xHH' hex character constants.
4240 These don't provoke an error unfortunately, instead are silently treated
4241 as 'x'. The following induces an error, until -std is added to get
4242 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4243 array size at least. It's necessary to write '\x00'==0 to get something
4244 that's true only with -std. */
4245 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4246
4247 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4248 inside strings and character constants. */
4249 #define FOO(x) 'x'
4250 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4251
4252 int test (int i, double x);
4253 struct s1 {int (*f) (int a);};
4254 struct s2 {int (*f) (double a);};
4255 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4256 int argc;
4257 char **argv;
4258 int
4259 main ()
4260 {
4261 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4262 ;
4263 return 0;
4264 }
4265 _ACEOF
4266 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4267 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4268 do
4269 CC="$ac_save_CC $ac_arg"
4270 if ac_fn_c_try_compile "$LINENO"; then :
4271 ac_cv_prog_cc_c89=$ac_arg
4272 fi
4273 rm -f core conftest.err conftest.$ac_objext
4274 test "x$ac_cv_prog_cc_c89" != "xno" && break
4275 done
4276 rm -f conftest.$ac_ext
4277 CC=$ac_save_CC
4278
4279 fi
4280 # AC_CACHE_VAL
4281 case "x$ac_cv_prog_cc_c89" in
4282 x)
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4284 $as_echo "none needed" >&6; } ;;
4285 xno)
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4287 $as_echo "unsupported" >&6; } ;;
4288 *)
4289 CC="$CC $ac_cv_prog_cc_c89"
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4291 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4292 esac
4293 if test "x$ac_cv_prog_cc_c89" != xno; then :
4294
4295 fi
4296
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302
4303 ac_ext=c
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4309 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4310 if ${am_cv_prog_cc_c_o+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4315
4316 int
4317 main ()
4318 {
4319
4320 ;
4321 return 0;
4322 }
4323 _ACEOF
4324 # Make sure it works both with $CC and with simple cc.
4325 # Following AC_PROG_CC_C_O, we do the test twice because some
4326 # compilers refuse to overwrite an existing .o file with -o,
4327 # though they will create one.
4328 am_cv_prog_cc_c_o=yes
4329 for am_i in 1 2; do
4330 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4331 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } \
4335 && test -f conftest2.$ac_objext; then
4336 : OK
4337 else
4338 am_cv_prog_cc_c_o=no
4339 break
4340 fi
4341 done
4342 rm -f core conftest*
4343 unset am_i
4344 fi
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4346 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4347 if test "$am_cv_prog_cc_c_o" != yes; then
4348 # Losing compiler, so override with the script.
4349 # FIXME: It is wrong to rewrite CC.
4350 # But if we don't then we get into trouble of one sort or another.
4351 # A longer-term fix would be to have automake use am__CC in this case,
4352 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4353 CC="$am_aux_dir/compile $CC"
4354 fi
4355 ac_ext=c
4356 ac_cpp='$CPP $CPPFLAGS'
4357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4360
4361
4362 depcc="$CC" am_compiler_list=
4363
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4365 $as_echo_n "checking dependency style of $depcc... " >&6; }
4366 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4370 # We make a subdir and do the tests there. Otherwise we can end up
4371 # making bogus files that we don't know about and never remove. For
4372 # instance it was reported that on HP-UX the gcc test will end up
4373 # making a dummy file named 'D' -- because '-MD' means "put the output
4374 # in D".
4375 rm -rf conftest.dir
4376 mkdir conftest.dir
4377 # Copy depcomp to subdir because otherwise we won't find it if we're
4378 # using a relative directory.
4379 cp "$am_depcomp" conftest.dir
4380 cd conftest.dir
4381 # We will build objects and dependencies in a subdirectory because
4382 # it helps to detect inapplicable dependency modes. For instance
4383 # both Tru64's cc and ICC support -MD to output dependencies as a
4384 # side effect of compilation, but ICC will put the dependencies in
4385 # the current directory while Tru64 will put them in the object
4386 # directory.
4387 mkdir sub
4388
4389 am_cv_CC_dependencies_compiler_type=none
4390 if test "$am_compiler_list" = ""; then
4391 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4392 fi
4393 am__universal=false
4394 case " $depcc " in #(
4395 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4396 esac
4397
4398 for depmode in $am_compiler_list; do
4399 # Setup a source with many dependencies, because some compilers
4400 # like to wrap large dependency lists on column 80 (with \), and
4401 # we should not choose a depcomp mode which is confused by this.
4402 #
4403 # We need to recreate these files for each test, as the compiler may
4404 # overwrite some of them when testing with obscure command lines.
4405 # This happens at least with the AIX C compiler.
4406 : > sub/conftest.c
4407 for i in 1 2 3 4 5 6; do
4408 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4409 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4410 # Solaris 10 /bin/sh.
4411 echo '/* dummy */' > sub/conftst$i.h
4412 done
4413 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4414
4415 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4416 # mode. It turns out that the SunPro C++ compiler does not properly
4417 # handle '-M -o', and we need to detect this. Also, some Intel
4418 # versions had trouble with output in subdirs.
4419 am__obj=sub/conftest.${OBJEXT-o}
4420 am__minus_obj="-o $am__obj"
4421 case $depmode in
4422 gcc)
4423 # This depmode causes a compiler race in universal mode.
4424 test "$am__universal" = false || continue
4425 ;;
4426 nosideeffect)
4427 # After this tag, mechanisms are not by side-effect, so they'll
4428 # only be used when explicitly requested.
4429 if test "x$enable_dependency_tracking" = xyes; then
4430 continue
4431 else
4432 break
4433 fi
4434 ;;
4435 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4436 # This compiler won't grok '-c -o', but also, the minuso test has
4437 # not run yet. These depmodes are late enough in the game, and
4438 # so weak that their functioning should not be impacted.
4439 am__obj=conftest.${OBJEXT-o}
4440 am__minus_obj=
4441 ;;
4442 none) break ;;
4443 esac
4444 if depmode=$depmode \
4445 source=sub/conftest.c object=$am__obj \
4446 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4447 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4448 >/dev/null 2>conftest.err &&
4449 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4450 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4451 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4452 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4453 # icc doesn't choke on unknown options, it will just issue warnings
4454 # or remarks (even with -Werror). So we grep stderr for any message
4455 # that says an option was ignored or not supported.
4456 # When given -MP, icc 7.0 and 7.1 complain thusly:
4457 # icc: Command line warning: ignoring option '-M'; no argument required
4458 # The diagnosis changed in icc 8.0:
4459 # icc: Command line remark: option '-MP' not supported
4460 if (grep 'ignoring option' conftest.err ||
4461 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4462 am_cv_CC_dependencies_compiler_type=$depmode
4463 break
4464 fi
4465 fi
4466 done
4467
4468 cd ..
4469 rm -rf conftest.dir
4470 else
4471 am_cv_CC_dependencies_compiler_type=none
4472 fi
4473
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4476 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4477 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4478
4479 if
4480 test "x$enable_dependency_tracking" != xno \
4481 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4482 am__fastdepCC_TRUE=
4483 am__fastdepCC_FALSE='#'
4484 else
4485 am__fastdepCC_TRUE='#'
4486 am__fastdepCC_FALSE=
4487 fi
4488
4489
4490
4491 ac_ext=c
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4497 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4498 # On Suns, sometimes $CPP names a directory.
4499 if test -n "$CPP" && test -d "$CPP"; then
4500 CPP=
4501 fi
4502 if test -z "$CPP"; then
4503 if ${ac_cv_prog_CPP+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 # Double quotes because CPP needs to be expanded
4507 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4508 do
4509 ac_preproc_ok=false
4510 for ac_c_preproc_warn_flag in '' yes
4511 do
4512 # Use a header file that comes with gcc, so configuring glibc
4513 # with a fresh cross-compiler works.
4514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4515 # <limits.h> exists even on freestanding compilers.
4516 # On the NeXT, cc -E runs the code through the compiler's parser,
4517 # not just through cpp. "Syntax error" is here to catch this case.
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520 #ifdef __STDC__
4521 # include <limits.h>
4522 #else
4523 # include <assert.h>
4524 #endif
4525 Syntax error
4526 _ACEOF
4527 if ac_fn_c_try_cpp "$LINENO"; then :
4528
4529 else
4530 # Broken: fails on valid input.
4531 continue
4532 fi
4533 rm -f conftest.err conftest.i conftest.$ac_ext
4534
4535 # OK, works on sane cases. Now check whether nonexistent headers
4536 # can be detected and how.
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4539 #include <ac_nonexistent.h>
4540 _ACEOF
4541 if ac_fn_c_try_cpp "$LINENO"; then :
4542 # Broken: success on invalid input.
4543 continue
4544 else
4545 # Passes both tests.
4546 ac_preproc_ok=:
4547 break
4548 fi
4549 rm -f conftest.err conftest.i conftest.$ac_ext
4550
4551 done
4552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4553 rm -f conftest.i conftest.err conftest.$ac_ext
4554 if $ac_preproc_ok; then :
4555 break
4556 fi
4557
4558 done
4559 ac_cv_prog_CPP=$CPP
4560
4561 fi
4562 CPP=$ac_cv_prog_CPP
4563 else
4564 ac_cv_prog_CPP=$CPP
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4567 $as_echo "$CPP" >&6; }
4568 ac_preproc_ok=false
4569 for ac_c_preproc_warn_flag in '' yes
4570 do
4571 # Use a header file that comes with gcc, so configuring glibc
4572 # with a fresh cross-compiler works.
4573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4574 # <limits.h> exists even on freestanding compilers.
4575 # On the NeXT, cc -E runs the code through the compiler's parser,
4576 # not just through cpp. "Syntax error" is here to catch this case.
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4579 #ifdef __STDC__
4580 # include <limits.h>
4581 #else
4582 # include <assert.h>
4583 #endif
4584 Syntax error
4585 _ACEOF
4586 if ac_fn_c_try_cpp "$LINENO"; then :
4587
4588 else
4589 # Broken: fails on valid input.
4590 continue
4591 fi
4592 rm -f conftest.err conftest.i conftest.$ac_ext
4593
4594 # OK, works on sane cases. Now check whether nonexistent headers
4595 # can be detected and how.
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598 #include <ac_nonexistent.h>
4599 _ACEOF
4600 if ac_fn_c_try_cpp "$LINENO"; then :
4601 # Broken: success on invalid input.
4602 continue
4603 else
4604 # Passes both tests.
4605 ac_preproc_ok=:
4606 break
4607 fi
4608 rm -f conftest.err conftest.i conftest.$ac_ext
4609
4610 done
4611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4612 rm -f conftest.i conftest.err conftest.$ac_ext
4613 if $ac_preproc_ok; then :
4614
4615 else
4616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4618 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4619 See \`config.log' for more details" "$LINENO" 5; }
4620 fi
4621
4622 ac_ext=c
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627
4628
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4630 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4631 if ${ac_cv_path_GREP+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 if test -z "$GREP"; then
4635 ac_path_GREP_found=false
4636 # Loop through the user's path and test for each of PROGNAME-LIST
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4639 do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_prog in grep ggrep; do
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4645 as_fn_executable_p "$ac_path_GREP" || continue
4646 # Check for GNU ac_path_GREP and select it if it is found.
4647 # Check for GNU $ac_path_GREP
4648 case `"$ac_path_GREP" --version 2>&1` in
4649 *GNU*)
4650 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4651 *)
4652 ac_count=0
4653 $as_echo_n 0123456789 >"conftest.in"
4654 while :
4655 do
4656 cat "conftest.in" "conftest.in" >"conftest.tmp"
4657 mv "conftest.tmp" "conftest.in"
4658 cp "conftest.in" "conftest.nl"
4659 $as_echo 'GREP' >> "conftest.nl"
4660 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4662 as_fn_arith $ac_count + 1 && ac_count=$as_val
4663 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4664 # Best one so far, save it but keep looking for a better one
4665 ac_cv_path_GREP="$ac_path_GREP"
4666 ac_path_GREP_max=$ac_count
4667 fi
4668 # 10*(2^10) chars as input seems more than enough
4669 test $ac_count -gt 10 && break
4670 done
4671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672 esac
4673
4674 $ac_path_GREP_found && break 3
4675 done
4676 done
4677 done
4678 IFS=$as_save_IFS
4679 if test -z "$ac_cv_path_GREP"; then
4680 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4681 fi
4682 else
4683 ac_cv_path_GREP=$GREP
4684 fi
4685
4686 fi
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4688 $as_echo "$ac_cv_path_GREP" >&6; }
4689 GREP="$ac_cv_path_GREP"
4690
4691
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4693 $as_echo_n "checking for egrep... " >&6; }
4694 if ${ac_cv_path_EGREP+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4698 then ac_cv_path_EGREP="$GREP -E"
4699 else
4700 if test -z "$EGREP"; then
4701 ac_path_EGREP_found=false
4702 # Loop through the user's path and test for each of PROGNAME-LIST
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4705 do
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_prog in egrep; do
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4711 as_fn_executable_p "$ac_path_EGREP" || continue
4712 # Check for GNU ac_path_EGREP and select it if it is found.
4713 # Check for GNU $ac_path_EGREP
4714 case `"$ac_path_EGREP" --version 2>&1` in
4715 *GNU*)
4716 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4717 *)
4718 ac_count=0
4719 $as_echo_n 0123456789 >"conftest.in"
4720 while :
4721 do
4722 cat "conftest.in" "conftest.in" >"conftest.tmp"
4723 mv "conftest.tmp" "conftest.in"
4724 cp "conftest.in" "conftest.nl"
4725 $as_echo 'EGREP' >> "conftest.nl"
4726 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4728 as_fn_arith $ac_count + 1 && ac_count=$as_val
4729 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4730 # Best one so far, save it but keep looking for a better one
4731 ac_cv_path_EGREP="$ac_path_EGREP"
4732 ac_path_EGREP_max=$ac_count
4733 fi
4734 # 10*(2^10) chars as input seems more than enough
4735 test $ac_count -gt 10 && break
4736 done
4737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4738 esac
4739
4740 $ac_path_EGREP_found && break 3
4741 done
4742 done
4743 done
4744 IFS=$as_save_IFS
4745 if test -z "$ac_cv_path_EGREP"; then
4746 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4747 fi
4748 else
4749 ac_cv_path_EGREP=$EGREP
4750 fi
4751
4752 fi
4753 fi
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4755 $as_echo "$ac_cv_path_EGREP" >&6; }
4756 EGREP="$ac_cv_path_EGREP"
4757
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4760 $as_echo_n "checking for ANSI C header files... " >&6; }
4761 if ${ac_cv_header_stdc+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766 #include <stdlib.h>
4767 #include <stdarg.h>
4768 #include <string.h>
4769 #include <float.h>
4770
4771 int
4772 main ()
4773 {
4774
4775 ;
4776 return 0;
4777 }
4778 _ACEOF
4779 if ac_fn_c_try_compile "$LINENO"; then :
4780 ac_cv_header_stdc=yes
4781 else
4782 ac_cv_header_stdc=no
4783 fi
4784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785
4786 if test $ac_cv_header_stdc = yes; then
4787 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790 #include <string.h>
4791
4792 _ACEOF
4793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4794 $EGREP "memchr" >/dev/null 2>&1; then :
4795
4796 else
4797 ac_cv_header_stdc=no
4798 fi
4799 rm -f conftest*
4800
4801 fi
4802
4803 if test $ac_cv_header_stdc = yes; then
4804 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4807 #include <stdlib.h>
4808
4809 _ACEOF
4810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4811 $EGREP "free" >/dev/null 2>&1; then :
4812
4813 else
4814 ac_cv_header_stdc=no
4815 fi
4816 rm -f conftest*
4817
4818 fi
4819
4820 if test $ac_cv_header_stdc = yes; then
4821 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4822 if test "$cross_compiling" = yes; then :
4823 :
4824 else
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4827 #include <ctype.h>
4828 #include <stdlib.h>
4829 #if ((' ' & 0x0FF) == 0x020)
4830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4832 #else
4833 # define ISLOWER(c) \
4834 (('a' <= (c) && (c) <= 'i') \
4835 || ('j' <= (c) && (c) <= 'r') \
4836 || ('s' <= (c) && (c) <= 'z'))
4837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4838 #endif
4839
4840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4841 int
4842 main ()
4843 {
4844 int i;
4845 for (i = 0; i < 256; i++)
4846 if (XOR (islower (i), ISLOWER (i))
4847 || toupper (i) != TOUPPER (i))
4848 return 2;
4849 return 0;
4850 }
4851 _ACEOF
4852 if ac_fn_c_try_run "$LINENO"; then :
4853
4854 else
4855 ac_cv_header_stdc=no
4856 fi
4857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4858 conftest.$ac_objext conftest.beam conftest.$ac_ext
4859 fi
4860
4861 fi
4862 fi
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4864 $as_echo "$ac_cv_header_stdc" >&6; }
4865 if test $ac_cv_header_stdc = yes; then
4866
4867 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4868
4869 fi
4870
4871 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4872 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4873 inttypes.h stdint.h unistd.h
4874 do :
4875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4876 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4877 "
4878 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4879 cat >>confdefs.h <<_ACEOF
4880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4881 _ACEOF
4882
4883 fi
4884
4885 done
4886
4887
4888
4889 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4890 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4891 MINIX=yes
4892 else
4893 MINIX=
4894 fi
4895
4896
4897 if test "$MINIX" = yes; then
4898
4899 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4900
4901
4902 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4903
4904
4905 $as_echo "#define _MINIX 1" >>confdefs.h
4906
4907 fi
4908
4909
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4911 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4912 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4917
4918 # define __EXTENSIONS__ 1
4919 $ac_includes_default
4920 int
4921 main ()
4922 {
4923
4924 ;
4925 return 0;
4926 }
4927 _ACEOF
4928 if ac_fn_c_try_compile "$LINENO"; then :
4929 ac_cv_safe_to_define___extensions__=yes
4930 else
4931 ac_cv_safe_to_define___extensions__=no
4932 fi
4933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934 fi
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4936 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4937 test $ac_cv_safe_to_define___extensions__ = yes &&
4938 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4939
4940 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4941
4942 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4943
4944 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4945
4946 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4947
4948
4949
4950 # PR 14072
4951
4952
4953
4954 # Check whether --with-sysroot was given.
4955 if test "${with_sysroot+set}" = set; then :
4956 withval=$with_sysroot; sysroot=$withval
4957 else
4958 sysroot=no
4959 fi
4960
4961
4962 if test "$sysroot" = "yes"; then
4963 sysroot='${exec_prefix}/${target_alias}/sys-root'
4964 elif test "$sysroot" = "no"; then
4965 sysroot=
4966 fi
4967
4968 sysroot_relocatable=0
4969 if test -n "$sysroot"; then
4970 case "$sysroot" in
4971 "${prefix}" | "${prefix}/"* | \
4972 "${exec_prefix}" | "${exec_prefix}/"* | \
4973 '${prefix}' | '${prefix}/'*| \
4974 '${exec_prefix}' | '${exec_prefix}/'*)
4975 sysroot_relocatable=1
4976 ;;
4977 esac
4978 fi
4979
4980
4981 cat >>confdefs.h <<_ACEOF
4982 #define TARGET_SYSTEM_ROOT "$sysroot"
4983 _ACEOF
4984
4985
4986 cat >>confdefs.h <<_ACEOF
4987 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
4988 _ACEOF
4989
4990
4991
4992 installed_linker=ld.gold
4993 # Check whether --enable-gold was given.
4994 if test "${enable_gold+set}" = set; then :
4995 enableval=$enable_gold; case "${enableval}" in
4996 default)
4997 install_as_default=yes
4998 ;;
4999 yes)
5000 if test x${enable_ld} = xno; then
5001 install_as_default=yes
5002 fi
5003 ;;
5004 esac
5005 else
5006 install_as_default=no
5007 fi
5008
5009
5010
5011
5012
5013 maybe_plugins=no
5014 for ac_header in dlfcn.h
5015 do :
5016 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5017 "
5018 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5019 cat >>confdefs.h <<_ACEOF
5020 #define HAVE_DLFCN_H 1
5021 _ACEOF
5022 maybe_plugins=yes
5023 fi
5024
5025 done
5026
5027 for ac_header in windows.h
5028 do :
5029 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5030 "
5031 if test "x$ac_cv_header_windows_h" = xyes; then :
5032 cat >>confdefs.h <<_ACEOF
5033 #define HAVE_WINDOWS_H 1
5034 _ACEOF
5035 maybe_plugins=yes
5036 fi
5037
5038 done
5039
5040
5041 # Check whether --enable-plugins was given.
5042 if test "${enable_plugins+set}" = set; then :
5043 enableval=$enable_plugins; case "${enableval}" in
5044 no) plugins=no ;;
5045 *) plugins=yes
5046 if test "$maybe_plugins" != "yes" ; then
5047 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5048 fi ;;
5049 esac
5050 else
5051 plugins=$maybe_plugins
5052
5053 fi
5054
5055 if test "$plugins" = "yes"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5057 $as_echo_n "checking for library containing dlsym... " >&6; }
5058 if ${ac_cv_search_dlsym+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 ac_func_search_save_LIBS=$LIBS
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5064
5065 /* Override any GCC internal prototype to avoid an error.
5066 Use char because int might match the return type of a GCC
5067 builtin and then its argument prototype would still apply. */
5068 #ifdef __cplusplus
5069 extern "C"
5070 #endif
5071 char dlsym ();
5072 int
5073 main ()
5074 {
5075 return dlsym ();
5076 ;
5077 return 0;
5078 }
5079 _ACEOF
5080 for ac_lib in '' dl; do
5081 if test -z "$ac_lib"; then
5082 ac_res="none required"
5083 else
5084 ac_res=-l$ac_lib
5085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5086 fi
5087 if ac_fn_c_try_link "$LINENO"; then :
5088 ac_cv_search_dlsym=$ac_res
5089 fi
5090 rm -f core conftest.err conftest.$ac_objext \
5091 conftest$ac_exeext
5092 if ${ac_cv_search_dlsym+:} false; then :
5093 break
5094 fi
5095 done
5096 if ${ac_cv_search_dlsym+:} false; then :
5097
5098 else
5099 ac_cv_search_dlsym=no
5100 fi
5101 rm conftest.$ac_ext
5102 LIBS=$ac_func_search_save_LIBS
5103 fi
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5105 $as_echo "$ac_cv_search_dlsym" >&6; }
5106 ac_res=$ac_cv_search_dlsym
5107 if test "$ac_res" != no; then :
5108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5109
5110 fi
5111
5112 fi
5113
5114 if test "$plugins" = "yes"; then
5115
5116 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5117
5118 fi
5119 if test "$plugins" = "yes"; then
5120 PLUGINS_TRUE=
5121 PLUGINS_FALSE='#'
5122 else
5123 PLUGINS_TRUE='#'
5124 PLUGINS_FALSE=
5125 fi
5126
5127
5128 # Decide if -z relro should be enabled in ELF linker by default.
5129 ac_default_ld_z_relro=unset
5130 # Provide a configure time option to override our default.
5131 # Check whether --enable-relro was given.
5132 if test "${enable_relro+set}" = set; then :
5133 enableval=$enable_relro; case "${enableval}" in
5134 yes) ac_default_ld_z_relro=1 ;;
5135 no) ac_default_ld_z_relro=0 ;;
5136 esac
5137 fi
5138 if test "${ac_default_ld_z_relro}" = unset; then
5139 ac_default_ld_z_relro=1
5140 fi
5141
5142 cat >>confdefs.h <<_ACEOF
5143 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
5144 _ACEOF
5145
5146
5147 # Check whether --enable-targets was given.
5148 if test "${enable_targets+set}" = set; then :
5149 enableval=$enable_targets; case "${enableval}" in
5150 yes | "")
5151 as_fn_error $? "--enable-targets option must specify target names or 'all'" "$LINENO" 5
5152 ;;
5153 no)
5154 enable_targets=
5155 ;;
5156 *)
5157 enable_targets=$enableval
5158 ;;
5159 esac
5160 else
5161 # For now, enable all targets by default
5162 enable_targets=all
5163
5164 fi
5165
5166
5167 # Canonicalize the enabled targets.
5168 if test -n "$enable_targets"; then
5169 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
5170 result=`$ac_config_sub $targ 2>/dev/null`
5171 if test -n "$result"; then
5172 canon_targets="$canon_targets $result"
5173 else
5174 # Permit unrecognized target names, like "all".
5175 canon_targets="$canon_targets $targ"
5176 fi
5177 done
5178 fi
5179
5180 # Decide which "--hash-style" to use by default
5181 # Provide a configure time option to override our default.
5182 # Check whether --enable-default-hash-style was given.
5183 if test "${enable_default_hash_style+set}" = set; then :
5184 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
5185 sysv | gnu | both) ;;
5186 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
5187 esac
5188 else
5189 case "${target}" in
5190 # Enable gnu hash only on GNU targets, but not mips
5191 mips*-*-*) enable_default_hash_style=sysv ;;
5192 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
5193 *) enable_default_hash_style=sysv ;;
5194 esac
5195 fi
5196
5197
5198
5199 cat >>confdefs.h <<_ACEOF
5200 #define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
5201 _ACEOF
5202
5203
5204 # See which specific instantiations we need.
5205 targetobjs=
5206 all_targets=
5207 default_machine=
5208 default_size=
5209 default_big_endian=
5210 default_osabi=ELFOSABI_NONE
5211 targ_32_little=
5212 targ_32_big=
5213 targ_64_little=
5214 targ_64_big=
5215 for targ in $target $canon_targets; do
5216 if test "$targ" = "all"; then
5217 targ_32_little=yes
5218 targ_32_big=yes
5219 targ_64_little=yes
5220 targ_64_big=yes
5221 all_targets=yes
5222 else
5223 . ${srcdir}/configure.tgt
5224
5225 if test "$targ_obj" = "UNKNOWN"; then
5226 as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
5227 else
5228 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
5229 if test "$targ_extra_obj" != ""; then
5230 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5231 fi
5232 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5233 if test "$targ_big_endian" = "true" \
5234 -o "$targ_extra_big_endian" = "true"; then
5235 targ_32_big=yes
5236 fi
5237 if test "$targ_big_endian" = "false" \
5238 -o "$targ_extra_big_endian" = "false"; then
5239 targ_32_little=yes
5240 fi
5241 fi
5242 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5243 if test "$targ_big_endian" = "true" \
5244 -o "$targ_extra_big_endian" = "true"; then
5245 targ_64_big=yes
5246 fi
5247 if test "$targ_big_endian" = "false" \
5248 -o "$targ_extra_big_endian" = "false"; then
5249 targ_64_little=yes
5250 fi
5251 fi
5252
5253 if test "$target" = "$targ"; then
5254 default_machine=$targ_machine
5255 default_size=$targ_size
5256 default_big_endian=$targ_big_endian
5257 default_osabi=$targ_osabi
5258
5259 if test "$targ_obj" = "aarch64"; then
5260 DEFAULT_TARGET_AARCH64_TRUE=
5261 DEFAULT_TARGET_AARCH64_FALSE='#'
5262 else
5263 DEFAULT_TARGET_AARCH64_TRUE='#'
5264 DEFAULT_TARGET_AARCH64_FALSE=
5265 fi
5266
5267 if test "$targ_obj" = "arm"; then
5268 DEFAULT_TARGET_ARM_TRUE=
5269 DEFAULT_TARGET_ARM_FALSE='#'
5270 else
5271 DEFAULT_TARGET_ARM_TRUE='#'
5272 DEFAULT_TARGET_ARM_FALSE=
5273 fi
5274
5275 if test "$targ_obj" = "i386"; then
5276 DEFAULT_TARGET_I386_TRUE=
5277 DEFAULT_TARGET_I386_FALSE='#'
5278 else
5279 DEFAULT_TARGET_I386_TRUE='#'
5280 DEFAULT_TARGET_I386_FALSE=
5281 fi
5282
5283 if test "$targ_obj" = "powerpc"; then
5284 DEFAULT_TARGET_POWERPC_TRUE=
5285 DEFAULT_TARGET_POWERPC_FALSE='#'
5286 else
5287 DEFAULT_TARGET_POWERPC_TRUE='#'
5288 DEFAULT_TARGET_POWERPC_FALSE=
5289 fi
5290
5291 if test "$targ_obj" = "sparc"; then
5292 DEFAULT_TARGET_SPARC_TRUE=
5293 DEFAULT_TARGET_SPARC_FALSE='#'
5294 else
5295 DEFAULT_TARGET_SPARC_TRUE='#'
5296 DEFAULT_TARGET_SPARC_FALSE=
5297 fi
5298
5299 if test "$targ_obj" = "s390"; then
5300 DEFAULT_TARGET_S390_TRUE=
5301 DEFAULT_TARGET_S390_FALSE='#'
5302 else
5303 DEFAULT_TARGET_S390_TRUE='#'
5304 DEFAULT_TARGET_S390_FALSE=
5305 fi
5306
5307 target_x86_64=no
5308 target_x32=no
5309 if test "$targ_obj" = "x86_64"; then
5310 case "$target" in
5311 x86_64*-linux-gnux32)
5312 target_x32=yes
5313 default_size=32
5314 ;;
5315 *)
5316 target_x86_64=yes
5317 ;;
5318 esac
5319 fi
5320 if test "$target_x86_64" = "yes"; then
5321 DEFAULT_TARGET_X86_64_TRUE=
5322 DEFAULT_TARGET_X86_64_FALSE='#'
5323 else
5324 DEFAULT_TARGET_X86_64_TRUE='#'
5325 DEFAULT_TARGET_X86_64_FALSE=
5326 fi
5327
5328 if test "$target_x32" = "yes"; then
5329 DEFAULT_TARGET_X32_TRUE=
5330 DEFAULT_TARGET_X32_FALSE='#'
5331 else
5332 DEFAULT_TARGET_X32_TRUE='#'
5333 DEFAULT_TARGET_X32_FALSE=
5334 fi
5335
5336 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5337 DEFAULT_TARGET_X86_64_OR_X32_TRUE=
5338 DEFAULT_TARGET_X86_64_OR_X32_FALSE='#'
5339 else
5340 DEFAULT_TARGET_X86_64_OR_X32_TRUE='#'
5341 DEFAULT_TARGET_X86_64_OR_X32_FALSE=
5342 fi
5343
5344 if test "$targ_obj" = "tilegx"; then
5345 DEFAULT_TARGET_TILEGX_TRUE=
5346 DEFAULT_TARGET_TILEGX_FALSE='#'
5347 else
5348 DEFAULT_TARGET_TILEGX_TRUE='#'
5349 DEFAULT_TARGET_TILEGX_FALSE=
5350 fi
5351
5352 if test "$targ_obj" = "mips"; then
5353 DEFAULT_TARGET_MIPS_TRUE=
5354 DEFAULT_TARGET_MIPS_FALSE='#'
5355 else
5356 DEFAULT_TARGET_MIPS_TRUE='#'
5357 DEFAULT_TARGET_MIPS_FALSE=
5358 fi
5359
5360 DEFAULT_TARGET=${targ_obj}
5361
5362 fi
5363 fi
5364 fi
5365 done
5366
5367 # Remove any duplicates.
5368 to=""
5369 for t in $targetobjs; do
5370 case " $to " in
5371 *" $t "*) ;;
5372 *) to="$to $t" ;;
5373 esac
5374 done
5375 targetobjs=$to
5376
5377 if test -n "$targ_32_little"; then
5378
5379 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
5380
5381 fi
5382 if test -n "$targ_32_big"; then
5383
5384 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
5385
5386 fi
5387 if test -n "$targ_64_little"; then
5388
5389 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
5390
5391 fi
5392 if test -n "$targ_64_big"; then
5393
5394 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
5395
5396 fi
5397
5398 if test -n "$all_targets"; then
5399 TARGETOBJS='$(ALL_TARGETOBJS)'
5400 else
5401 TARGETOBJS="$targetobjs"
5402 fi
5403
5404
5405
5406 cat >>confdefs.h <<_ACEOF
5407 #define GOLD_DEFAULT_MACHINE $default_machine
5408 _ACEOF
5409
5410
5411 cat >>confdefs.h <<_ACEOF
5412 #define GOLD_DEFAULT_SIZE $default_size
5413 _ACEOF
5414
5415
5416 cat >>confdefs.h <<_ACEOF
5417 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5418 _ACEOF
5419
5420
5421 cat >>confdefs.h <<_ACEOF
5422 #define GOLD_DEFAULT_OSABI $default_osabi
5423 _ACEOF
5424
5425
5426
5427 # Check whether --with-lib-path was given.
5428 if test "${with_lib_path+set}" = set; then :
5429 withval=$with_lib_path; case "$withval" in
5430 yes) LIB_PATH='"/lib:/usr/lib"' ;;
5431 no) LIB_PATH='""' ;;
5432 *) LIB_PATH='"'"$withval"'"' ;;
5433 esac
5434 else
5435 LIB_PATH='"::DEFAULT::"'
5436 fi
5437
5438
5439 cat >>confdefs.h <<_ACEOF
5440 #define LIB_PATH $LIB_PATH
5441 _ACEOF
5442
5443 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
5444
5445 $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5446
5447 fi
5448
5449 if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5451 set dummy ${ac_tool_prefix}nm; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_NM+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -n "$NM"; then
5458 ac_cv_prog_NM="$NM" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5467 ac_cv_prog_NM="${ac_tool_prefix}nm"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5470 fi
5471 done
5472 done
5473 IFS=$as_save_IFS
5474
5475 fi
5476 fi
5477 NM=$ac_cv_prog_NM
5478 if test -n "$NM"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5480 $as_echo "$NM" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485
5486
5487 fi
5488 if test -z "$ac_cv_prog_NM"; then
5489 ac_ct_NM=$NM
5490 # Extract the first word of "nm", so it can be a program name with args.
5491 set dummy nm; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 if test -n "$ac_ct_NM"; then
5498 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507 ac_cv_prog_ac_ct_NM="nm"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5510 fi
5511 done
5512 done
5513 IFS=$as_save_IFS
5514
5515 fi
5516 fi
5517 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5518 if test -n "$ac_ct_NM"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5520 $as_echo "$ac_ct_NM" >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5524 fi
5525
5526 if test "x$ac_ct_NM" = x; then
5527 NM=""
5528 else
5529 case $cross_compiling:$ac_tool_warned in
5530 yes:)
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533 ac_tool_warned=yes ;;
5534 esac
5535 NM=$ac_ct_NM
5536 fi
5537 else
5538 NM="$ac_cv_prog_NM"
5539 fi
5540
5541
5542 ac_ext=c
5543 ac_cpp='$CPP $CPPFLAGS'
5544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5547 if test -n "$ac_tool_prefix"; then
5548 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5549 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if ${ac_cv_prog_CC+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 if test -n "$CC"; then
5556 ac_cv_prog_CC="$CC" # Let the user override the test.
5557 else
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5560 do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5568 fi
5569 done
5570 done
5571 IFS=$as_save_IFS
5572
5573 fi
5574 fi
5575 CC=$ac_cv_prog_CC
5576 if test -n "$CC"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5578 $as_echo "$CC" >&6; }
5579 else
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581 $as_echo "no" >&6; }
5582 fi
5583
5584
5585 fi
5586 if test -z "$ac_cv_prog_CC"; then
5587 ac_ct_CC=$CC
5588 # Extract the first word of "gcc", so it can be a program name with args.
5589 set dummy gcc; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 if test -n "$ac_ct_CC"; then
5596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5600 do
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605 ac_cv_prog_ac_ct_CC="gcc"
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 break 2
5608 fi
5609 done
5610 done
5611 IFS=$as_save_IFS
5612
5613 fi
5614 fi
5615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5616 if test -n "$ac_ct_CC"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5618 $as_echo "$ac_ct_CC" >&6; }
5619 else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622 fi
5623
5624 if test "x$ac_ct_CC" = x; then
5625 CC=""
5626 else
5627 case $cross_compiling:$ac_tool_warned in
5628 yes:)
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5631 ac_tool_warned=yes ;;
5632 esac
5633 CC=$ac_ct_CC
5634 fi
5635 else
5636 CC="$ac_cv_prog_CC"
5637 fi
5638
5639 if test -z "$CC"; then
5640 if test -n "$ac_tool_prefix"; then
5641 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5642 set dummy ${ac_tool_prefix}cc; ac_word=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if ${ac_cv_prog_CC+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 if test -n "$CC"; then
5649 ac_cv_prog_CC="$CC" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5653 do
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658 ac_cv_prog_CC="${ac_tool_prefix}cc"
5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5661 fi
5662 done
5663 done
5664 IFS=$as_save_IFS
5665
5666 fi
5667 fi
5668 CC=$ac_cv_prog_CC
5669 if test -n "$CC"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5671 $as_echo "$CC" >&6; }
5672 else
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5675 fi
5676
5677
5678 fi
5679 fi
5680 if test -z "$CC"; then
5681 # Extract the first word of "cc", so it can be a program name with args.
5682 set dummy cc; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_prog_CC+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 if test -n "$CC"; then
5689 ac_cv_prog_CC="$CC" # Let the user override the test.
5690 else
5691 ac_prog_rejected=no
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5694 do
5695 IFS=$as_save_IFS
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5700 ac_prog_rejected=yes
5701 continue
5702 fi
5703 ac_cv_prog_CC="cc"
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5706 fi
5707 done
5708 done
5709 IFS=$as_save_IFS
5710
5711 if test $ac_prog_rejected = yes; then
5712 # We found a bogon in the path, so make sure we never use it.
5713 set dummy $ac_cv_prog_CC
5714 shift
5715 if test $# != 0; then
5716 # We chose a different compiler from the bogus one.
5717 # However, it has the same basename, so the bogon will be chosen
5718 # first if we set CC to just the basename; use the full file name.
5719 shift
5720 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5721 fi
5722 fi
5723 fi
5724 fi
5725 CC=$ac_cv_prog_CC
5726 if test -n "$CC"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5728 $as_echo "$CC" >&6; }
5729 else
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5732 fi
5733
5734
5735 fi
5736 if test -z "$CC"; then
5737 if test -n "$ac_tool_prefix"; then
5738 for ac_prog in cl.exe
5739 do
5740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if ${ac_cv_prog_CC+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 if test -n "$CC"; then
5748 ac_cv_prog_CC="$CC" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 fi
5766 fi
5767 CC=$ac_cv_prog_CC
5768 if test -n "$CC"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5770 $as_echo "$CC" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774 fi
5775
5776
5777 test -n "$CC" && break
5778 done
5779 fi
5780 if test -z "$CC"; then
5781 ac_ct_CC=$CC
5782 for ac_prog in cl.exe
5783 do
5784 # Extract the first word of "$ac_prog", so it can be a program name with args.
5785 set dummy $ac_prog; ac_word=$2
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787 $as_echo_n "checking for $ac_word... " >&6; }
5788 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5789 $as_echo_n "(cached) " >&6
5790 else
5791 if test -n "$ac_ct_CC"; then
5792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5793 else
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5796 do
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801 ac_cv_prog_ac_ct_CC="$ac_prog"
5802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 break 2
5804 fi
5805 done
5806 done
5807 IFS=$as_save_IFS
5808
5809 fi
5810 fi
5811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5812 if test -n "$ac_ct_CC"; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5814 $as_echo "$ac_ct_CC" >&6; }
5815 else
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5818 fi
5819
5820
5821 test -n "$ac_ct_CC" && break
5822 done
5823
5824 if test "x$ac_ct_CC" = x; then
5825 CC=""
5826 else
5827 case $cross_compiling:$ac_tool_warned in
5828 yes:)
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5831 ac_tool_warned=yes ;;
5832 esac
5833 CC=$ac_ct_CC
5834 fi
5835 fi
5836
5837 fi
5838
5839
5840 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5842 as_fn_error $? "no acceptable C compiler found in \$PATH
5843 See \`config.log' for more details" "$LINENO" 5; }
5844
5845 # Provide some information about the compiler.
5846 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5847 set X $ac_compile
5848 ac_compiler=$2
5849 for ac_option in --version -v -V -qversion; do
5850 { { ac_try="$ac_compiler $ac_option >&5"
5851 case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854 esac
5855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5856 $as_echo "$ac_try_echo"; } >&5
5857 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5858 ac_status=$?
5859 if test -s conftest.err; then
5860 sed '10a\
5861 ... rest of stderr output deleted ...
5862 10q' conftest.err >conftest.er1
5863 cat conftest.er1 >&5
5864 fi
5865 rm -f conftest.er1 conftest.err
5866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867 test $ac_status = 0; }
5868 done
5869
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5871 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5872 if ${ac_cv_c_compiler_gnu+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5877
5878 int
5879 main ()
5880 {
5881 #ifndef __GNUC__
5882 choke me
5883 #endif
5884
5885 ;
5886 return 0;
5887 }
5888 _ACEOF
5889 if ac_fn_c_try_compile "$LINENO"; then :
5890 ac_compiler_gnu=yes
5891 else
5892 ac_compiler_gnu=no
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5896
5897 fi
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5899 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5900 if test $ac_compiler_gnu = yes; then
5901 GCC=yes
5902 else
5903 GCC=
5904 fi
5905 ac_test_CFLAGS=${CFLAGS+set}
5906 ac_save_CFLAGS=$CFLAGS
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5908 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5909 if ${ac_cv_prog_cc_g+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 ac_save_c_werror_flag=$ac_c_werror_flag
5913 ac_c_werror_flag=yes
5914 ac_cv_prog_cc_g=no
5915 CFLAGS="-g"
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5918
5919 int
5920 main ()
5921 {
5922
5923 ;
5924 return 0;
5925 }
5926 _ACEOF
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928 ac_cv_prog_cc_g=yes
5929 else
5930 CFLAGS=""
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933
5934 int
5935 main ()
5936 {
5937
5938 ;
5939 return 0;
5940 }
5941 _ACEOF
5942 if ac_fn_c_try_compile "$LINENO"; then :
5943
5944 else
5945 ac_c_werror_flag=$ac_save_c_werror_flag
5946 CFLAGS="-g"
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5949
5950 int
5951 main ()
5952 {
5953
5954 ;
5955 return 0;
5956 }
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959 ac_cv_prog_cc_g=yes
5960 fi
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962 fi
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 fi
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 ac_c_werror_flag=$ac_save_c_werror_flag
5967 fi
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5969 $as_echo "$ac_cv_prog_cc_g" >&6; }
5970 if test "$ac_test_CFLAGS" = set; then
5971 CFLAGS=$ac_save_CFLAGS
5972 elif test $ac_cv_prog_cc_g = yes; then
5973 if test "$GCC" = yes; then
5974 CFLAGS="-g -O2"
5975 else
5976 CFLAGS="-g"
5977 fi
5978 else
5979 if test "$GCC" = yes; then
5980 CFLAGS="-O2"
5981 else
5982 CFLAGS=
5983 fi
5984 fi
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5986 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5987 if ${ac_cv_prog_cc_c89+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 ac_cv_prog_cc_c89=no
5991 ac_save_CC=$CC
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 #include <stdarg.h>
5995 #include <stdio.h>
5996 struct stat;
5997 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5998 struct buf { int x; };
5999 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6000 static char *e (p, i)
6001 char **p;
6002 int i;
6003 {
6004 return p[i];
6005 }
6006 static char *f (char * (*g) (char **, int), char **p, ...)
6007 {
6008 char *s;
6009 va_list v;
6010 va_start (v,p);
6011 s = g (p, va_arg (v,int));
6012 va_end (v);
6013 return s;
6014 }
6015
6016 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6017 function prototypes and stuff, but not '\xHH' hex character constants.
6018 These don't provoke an error unfortunately, instead are silently treated
6019 as 'x'. The following induces an error, until -std is added to get
6020 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6021 array size at least. It's necessary to write '\x00'==0 to get something
6022 that's true only with -std. */
6023 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6024
6025 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6026 inside strings and character constants. */
6027 #define FOO(x) 'x'
6028 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6029
6030 int test (int i, double x);
6031 struct s1 {int (*f) (int a);};
6032 struct s2 {int (*f) (double a);};
6033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6034 int argc;
6035 char **argv;
6036 int
6037 main ()
6038 {
6039 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6040 ;
6041 return 0;
6042 }
6043 _ACEOF
6044 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6045 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6046 do
6047 CC="$ac_save_CC $ac_arg"
6048 if ac_fn_c_try_compile "$LINENO"; then :
6049 ac_cv_prog_cc_c89=$ac_arg
6050 fi
6051 rm -f core conftest.err conftest.$ac_objext
6052 test "x$ac_cv_prog_cc_c89" != "xno" && break
6053 done
6054 rm -f conftest.$ac_ext
6055 CC=$ac_save_CC
6056
6057 fi
6058 # AC_CACHE_VAL
6059 case "x$ac_cv_prog_cc_c89" in
6060 x)
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6062 $as_echo "none needed" >&6; } ;;
6063 xno)
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6065 $as_echo "unsupported" >&6; } ;;
6066 *)
6067 CC="$CC $ac_cv_prog_cc_c89"
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6069 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6070 esac
6071 if test "x$ac_cv_prog_cc_c89" != xno; then :
6072
6073 fi
6074
6075 ac_ext=c
6076 ac_cpp='$CPP $CPPFLAGS'
6077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6080
6081 ac_ext=c
6082 ac_cpp='$CPP $CPPFLAGS'
6083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6087 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6088 if ${am_cv_prog_cc_c_o+:} false; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093
6094 int
6095 main ()
6096 {
6097
6098 ;
6099 return 0;
6100 }
6101 _ACEOF
6102 # Make sure it works both with $CC and with simple cc.
6103 # Following AC_PROG_CC_C_O, we do the test twice because some
6104 # compilers refuse to overwrite an existing .o file with -o,
6105 # though they will create one.
6106 am_cv_prog_cc_c_o=yes
6107 for am_i in 1 2; do
6108 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6109 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } \
6113 && test -f conftest2.$ac_objext; then
6114 : OK
6115 else
6116 am_cv_prog_cc_c_o=no
6117 break
6118 fi
6119 done
6120 rm -f core conftest*
6121 unset am_i
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6124 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6125 if test "$am_cv_prog_cc_c_o" != yes; then
6126 # Losing compiler, so override with the script.
6127 # FIXME: It is wrong to rewrite CC.
6128 # But if we don't then we get into trouble of one sort or another.
6129 # A longer-term fix would be to have automake use am__CC in this case,
6130 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6131 CC="$am_aux_dir/compile $CC"
6132 fi
6133 ac_ext=c
6134 ac_cpp='$CPP $CPPFLAGS'
6135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6138
6139
6140 depcc="$CC" am_compiler_list=
6141
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6143 $as_echo_n "checking dependency style of $depcc... " >&6; }
6144 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6145 $as_echo_n "(cached) " >&6
6146 else
6147 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6148 # We make a subdir and do the tests there. Otherwise we can end up
6149 # making bogus files that we don't know about and never remove. For
6150 # instance it was reported that on HP-UX the gcc test will end up
6151 # making a dummy file named 'D' -- because '-MD' means "put the output
6152 # in D".
6153 rm -rf conftest.dir
6154 mkdir conftest.dir
6155 # Copy depcomp to subdir because otherwise we won't find it if we're
6156 # using a relative directory.
6157 cp "$am_depcomp" conftest.dir
6158 cd conftest.dir
6159 # We will build objects and dependencies in a subdirectory because
6160 # it helps to detect inapplicable dependency modes. For instance
6161 # both Tru64's cc and ICC support -MD to output dependencies as a
6162 # side effect of compilation, but ICC will put the dependencies in
6163 # the current directory while Tru64 will put them in the object
6164 # directory.
6165 mkdir sub
6166
6167 am_cv_CC_dependencies_compiler_type=none
6168 if test "$am_compiler_list" = ""; then
6169 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6170 fi
6171 am__universal=false
6172 case " $depcc " in #(
6173 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6174 esac
6175
6176 for depmode in $am_compiler_list; do
6177 # Setup a source with many dependencies, because some compilers
6178 # like to wrap large dependency lists on column 80 (with \), and
6179 # we should not choose a depcomp mode which is confused by this.
6180 #
6181 # We need to recreate these files for each test, as the compiler may
6182 # overwrite some of them when testing with obscure command lines.
6183 # This happens at least with the AIX C compiler.
6184 : > sub/conftest.c
6185 for i in 1 2 3 4 5 6; do
6186 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6187 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6188 # Solaris 10 /bin/sh.
6189 echo '/* dummy */' > sub/conftst$i.h
6190 done
6191 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6192
6193 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6194 # mode. It turns out that the SunPro C++ compiler does not properly
6195 # handle '-M -o', and we need to detect this. Also, some Intel
6196 # versions had trouble with output in subdirs.
6197 am__obj=sub/conftest.${OBJEXT-o}
6198 am__minus_obj="-o $am__obj"
6199 case $depmode in
6200 gcc)
6201 # This depmode causes a compiler race in universal mode.
6202 test "$am__universal" = false || continue
6203 ;;
6204 nosideeffect)
6205 # After this tag, mechanisms are not by side-effect, so they'll
6206 # only be used when explicitly requested.
6207 if test "x$enable_dependency_tracking" = xyes; then
6208 continue
6209 else
6210 break
6211 fi
6212 ;;
6213 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6214 # This compiler won't grok '-c -o', but also, the minuso test has
6215 # not run yet. These depmodes are late enough in the game, and
6216 # so weak that their functioning should not be impacted.
6217 am__obj=conftest.${OBJEXT-o}
6218 am__minus_obj=
6219 ;;
6220 none) break ;;
6221 esac
6222 if depmode=$depmode \
6223 source=sub/conftest.c object=$am__obj \
6224 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6225 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6226 >/dev/null 2>conftest.err &&
6227 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6228 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6229 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6230 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6231 # icc doesn't choke on unknown options, it will just issue warnings
6232 # or remarks (even with -Werror). So we grep stderr for any message
6233 # that says an option was ignored or not supported.
6234 # When given -MP, icc 7.0 and 7.1 complain thusly:
6235 # icc: Command line warning: ignoring option '-M'; no argument required
6236 # The diagnosis changed in icc 8.0:
6237 # icc: Command line remark: option '-MP' not supported
6238 if (grep 'ignoring option' conftest.err ||
6239 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6240 am_cv_CC_dependencies_compiler_type=$depmode
6241 break
6242 fi
6243 fi
6244 done
6245
6246 cd ..
6247 rm -rf conftest.dir
6248 else
6249 am_cv_CC_dependencies_compiler_type=none
6250 fi
6251
6252 fi
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6254 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6255 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6256
6257 if
6258 test "x$enable_dependency_tracking" != xno \
6259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6260 am__fastdepCC_TRUE=
6261 am__fastdepCC_FALSE='#'
6262 else
6263 am__fastdepCC_TRUE='#'
6264 am__fastdepCC_FALSE=
6265 fi
6266
6267
6268 ac_ext=cpp
6269 ac_cpp='$CXXCPP $CPPFLAGS'
6270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6273 if test -z "$CXX"; then
6274 if test -n "$CCC"; then
6275 CXX=$CCC
6276 else
6277 if test -n "$ac_tool_prefix"; then
6278 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6279 do
6280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if ${ac_cv_prog_CXX+:} false; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287 if test -n "$CXX"; then
6288 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301 done
6302 done
6303 IFS=$as_save_IFS
6304
6305 fi
6306 fi
6307 CXX=$ac_cv_prog_CXX
6308 if test -n "$CXX"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6310 $as_echo "$CXX" >&6; }
6311 else
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6314 fi
6315
6316
6317 test -n "$CXX" && break
6318 done
6319 fi
6320 if test -z "$CXX"; then
6321 ac_ct_CXX=$CXX
6322 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6323 do
6324 # Extract the first word of "$ac_prog", so it can be a program name with args.
6325 set dummy $ac_prog; ac_word=$2
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6329 $as_echo_n "(cached) " >&6
6330 else
6331 if test -n "$ac_ct_CXX"; then
6332 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341 ac_cv_prog_ac_ct_CXX="$ac_prog"
6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6344 fi
6345 done
6346 done
6347 IFS=$as_save_IFS
6348
6349 fi
6350 fi
6351 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6352 if test -n "$ac_ct_CXX"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6354 $as_echo "$ac_ct_CXX" >&6; }
6355 else
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6358 fi
6359
6360
6361 test -n "$ac_ct_CXX" && break
6362 done
6363
6364 if test "x$ac_ct_CXX" = x; then
6365 CXX="g++"
6366 else
6367 case $cross_compiling:$ac_tool_warned in
6368 yes:)
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6371 ac_tool_warned=yes ;;
6372 esac
6373 CXX=$ac_ct_CXX
6374 fi
6375 fi
6376
6377 fi
6378 fi
6379 # Provide some information about the compiler.
6380 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6381 set X $ac_compile
6382 ac_compiler=$2
6383 for ac_option in --version -v -V -qversion; do
6384 { { ac_try="$ac_compiler $ac_option >&5"
6385 case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388 esac
6389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6390 $as_echo "$ac_try_echo"; } >&5
6391 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6392 ac_status=$?
6393 if test -s conftest.err; then
6394 sed '10a\
6395 ... rest of stderr output deleted ...
6396 10q' conftest.err >conftest.er1
6397 cat conftest.er1 >&5
6398 fi
6399 rm -f conftest.er1 conftest.err
6400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6401 test $ac_status = 0; }
6402 done
6403
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6405 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6406 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411
6412 int
6413 main ()
6414 {
6415 #ifndef __GNUC__
6416 choke me
6417 #endif
6418
6419 ;
6420 return 0;
6421 }
6422 _ACEOF
6423 if ac_fn_cxx_try_compile "$LINENO"; then :
6424 ac_compiler_gnu=yes
6425 else
6426 ac_compiler_gnu=no
6427 fi
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6430
6431 fi
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6433 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6434 if test $ac_compiler_gnu = yes; then
6435 GXX=yes
6436 else
6437 GXX=
6438 fi
6439 ac_test_CXXFLAGS=${CXXFLAGS+set}
6440 ac_save_CXXFLAGS=$CXXFLAGS
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6442 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6443 if ${ac_cv_prog_cxx_g+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6447 ac_cxx_werror_flag=yes
6448 ac_cv_prog_cxx_g=no
6449 CXXFLAGS="-g"
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452
6453 int
6454 main ()
6455 {
6456
6457 ;
6458 return 0;
6459 }
6460 _ACEOF
6461 if ac_fn_cxx_try_compile "$LINENO"; then :
6462 ac_cv_prog_cxx_g=yes
6463 else
6464 CXXFLAGS=""
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467
6468 int
6469 main ()
6470 {
6471
6472 ;
6473 return 0;
6474 }
6475 _ACEOF
6476 if ac_fn_cxx_try_compile "$LINENO"; then :
6477
6478 else
6479 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6480 CXXFLAGS="-g"
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483
6484 int
6485 main ()
6486 {
6487
6488 ;
6489 return 0;
6490 }
6491 _ACEOF
6492 if ac_fn_cxx_try_compile "$LINENO"; then :
6493 ac_cv_prog_cxx_g=yes
6494 fi
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6501 fi
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6503 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6504 if test "$ac_test_CXXFLAGS" = set; then
6505 CXXFLAGS=$ac_save_CXXFLAGS
6506 elif test $ac_cv_prog_cxx_g = yes; then
6507 if test "$GXX" = yes; then
6508 CXXFLAGS="-g -O2"
6509 else
6510 CXXFLAGS="-g"
6511 fi
6512 else
6513 if test "$GXX" = yes; then
6514 CXXFLAGS="-O2"
6515 else
6516 CXXFLAGS=
6517 fi
6518 fi
6519 ac_ext=c
6520 ac_cpp='$CPP $CPPFLAGS'
6521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6524
6525 depcc="$CXX" am_compiler_list=
6526
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6528 $as_echo_n "checking dependency style of $depcc... " >&6; }
6529 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6533 # We make a subdir and do the tests there. Otherwise we can end up
6534 # making bogus files that we don't know about and never remove. For
6535 # instance it was reported that on HP-UX the gcc test will end up
6536 # making a dummy file named 'D' -- because '-MD' means "put the output
6537 # in D".
6538 rm -rf conftest.dir
6539 mkdir conftest.dir
6540 # Copy depcomp to subdir because otherwise we won't find it if we're
6541 # using a relative directory.
6542 cp "$am_depcomp" conftest.dir
6543 cd conftest.dir
6544 # We will build objects and dependencies in a subdirectory because
6545 # it helps to detect inapplicable dependency modes. For instance
6546 # both Tru64's cc and ICC support -MD to output dependencies as a
6547 # side effect of compilation, but ICC will put the dependencies in
6548 # the current directory while Tru64 will put them in the object
6549 # directory.
6550 mkdir sub
6551
6552 am_cv_CXX_dependencies_compiler_type=none
6553 if test "$am_compiler_list" = ""; then
6554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6555 fi
6556 am__universal=false
6557 case " $depcc " in #(
6558 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6559 esac
6560
6561 for depmode in $am_compiler_list; do
6562 # Setup a source with many dependencies, because some compilers
6563 # like to wrap large dependency lists on column 80 (with \), and
6564 # we should not choose a depcomp mode which is confused by this.
6565 #
6566 # We need to recreate these files for each test, as the compiler may
6567 # overwrite some of them when testing with obscure command lines.
6568 # This happens at least with the AIX C compiler.
6569 : > sub/conftest.c
6570 for i in 1 2 3 4 5 6; do
6571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6572 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6573 # Solaris 10 /bin/sh.
6574 echo '/* dummy */' > sub/conftst$i.h
6575 done
6576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6577
6578 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6579 # mode. It turns out that the SunPro C++ compiler does not properly
6580 # handle '-M -o', and we need to detect this. Also, some Intel
6581 # versions had trouble with output in subdirs.
6582 am__obj=sub/conftest.${OBJEXT-o}
6583 am__minus_obj="-o $am__obj"
6584 case $depmode in
6585 gcc)
6586 # This depmode causes a compiler race in universal mode.
6587 test "$am__universal" = false || continue
6588 ;;
6589 nosideeffect)
6590 # After this tag, mechanisms are not by side-effect, so they'll
6591 # only be used when explicitly requested.
6592 if test "x$enable_dependency_tracking" = xyes; then
6593 continue
6594 else
6595 break
6596 fi
6597 ;;
6598 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6599 # This compiler won't grok '-c -o', but also, the minuso test has
6600 # not run yet. These depmodes are late enough in the game, and
6601 # so weak that their functioning should not be impacted.
6602 am__obj=conftest.${OBJEXT-o}
6603 am__minus_obj=
6604 ;;
6605 none) break ;;
6606 esac
6607 if depmode=$depmode \
6608 source=sub/conftest.c object=$am__obj \
6609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6610 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6611 >/dev/null 2>conftest.err &&
6612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6614 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6616 # icc doesn't choke on unknown options, it will just issue warnings
6617 # or remarks (even with -Werror). So we grep stderr for any message
6618 # that says an option was ignored or not supported.
6619 # When given -MP, icc 7.0 and 7.1 complain thusly:
6620 # icc: Command line warning: ignoring option '-M'; no argument required
6621 # The diagnosis changed in icc 8.0:
6622 # icc: Command line remark: option '-MP' not supported
6623 if (grep 'ignoring option' conftest.err ||
6624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6625 am_cv_CXX_dependencies_compiler_type=$depmode
6626 break
6627 fi
6628 fi
6629 done
6630
6631 cd ..
6632 rm -rf conftest.dir
6633 else
6634 am_cv_CXX_dependencies_compiler_type=none
6635 fi
6636
6637 fi
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6639 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6640 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6641
6642 if
6643 test "x$enable_dependency_tracking" != xno \
6644 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6645 am__fastdepCXX_TRUE=
6646 am__fastdepCXX_FALSE='#'
6647 else
6648 am__fastdepCXX_TRUE='#'
6649 am__fastdepCXX_FALSE=
6650 fi
6651
6652
6653 for ac_prog in 'bison -y' byacc
6654 do
6655 # Extract the first word of "$ac_prog", so it can be a program name with args.
6656 set dummy $ac_prog; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if ${ac_cv_prog_YACC+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 if test -n "$YACC"; then
6663 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6672 ac_cv_prog_YACC="$ac_prog"
6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676 done
6677 done
6678 IFS=$as_save_IFS
6679
6680 fi
6681 fi
6682 YACC=$ac_cv_prog_YACC
6683 if test -n "$YACC"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6685 $as_echo "$YACC" >&6; }
6686 else
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6689 fi
6690
6691
6692 test -n "$YACC" && break
6693 done
6694 test -n "$YACC" || YACC="yacc"
6695
6696 if test -n "$ac_tool_prefix"; then
6697 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6698 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700 $as_echo_n "checking for $ac_word... " >&6; }
6701 if ${ac_cv_prog_RANLIB+:} false; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 if test -n "$RANLIB"; then
6705 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6706 else
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6714 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 break 2
6717 fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6721
6722 fi
6723 fi
6724 RANLIB=$ac_cv_prog_RANLIB
6725 if test -n "$RANLIB"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6727 $as_echo "$RANLIB" >&6; }
6728 else
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6731 fi
6732
6733
6734 fi
6735 if test -z "$ac_cv_prog_RANLIB"; then
6736 ac_ct_RANLIB=$RANLIB
6737 # Extract the first word of "ranlib", so it can be a program name with args.
6738 set dummy ranlib; ac_word=$2
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740 $as_echo_n "checking for $ac_word... " >&6; }
6741 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 if test -n "$ac_ct_RANLIB"; then
6745 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6746 else
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6749 do
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6754 ac_cv_prog_ac_ct_RANLIB="ranlib"
6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 break 2
6757 fi
6758 done
6759 done
6760 IFS=$as_save_IFS
6761
6762 fi
6763 fi
6764 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6765 if test -n "$ac_ct_RANLIB"; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6767 $as_echo "$ac_ct_RANLIB" >&6; }
6768 else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 $as_echo "no" >&6; }
6771 fi
6772
6773 if test "x$ac_ct_RANLIB" = x; then
6774 RANLIB=":"
6775 else
6776 case $cross_compiling:$ac_tool_warned in
6777 yes:)
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6780 ac_tool_warned=yes ;;
6781 esac
6782 RANLIB=$ac_ct_RANLIB
6783 fi
6784 else
6785 RANLIB="$ac_cv_prog_RANLIB"
6786 fi
6787
6788
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6790 $as_echo_n "checking whether ln -s works... " >&6; }
6791 LN_S=$as_ln_s
6792 if test "$LN_S" = "ln -s"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6794 $as_echo "yes" >&6; }
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6797 $as_echo "no, using $LN_S" >&6; }
6798 fi
6799
6800
6801
6802
6803 # If we haven't got the data from the intl directory,
6804 # assume NLS is disabled.
6805 USE_NLS=no
6806 LIBINTL=
6807 LIBINTL_DEP=
6808 INCINTL=
6809 XGETTEXT=
6810 GMSGFMT=
6811 POSUB=
6812
6813 if test -f ../intl/config.intl; then
6814 . ../intl/config.intl
6815 fi
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6817 $as_echo_n "checking whether NLS is requested... " >&6; }
6818 if test x"$USE_NLS" != xyes; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6821 else
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6823 $as_echo "yes" >&6; }
6824
6825 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6826
6827
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6829 $as_echo_n "checking for catalogs to be installed... " >&6; }
6830 # Look for .po and .gmo files in the source directory.
6831 CATALOGS=
6832 XLINGUAS=
6833 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6834 # If there aren't any .gmo files the shell will give us the
6835 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6836 # weeded out.
6837 case "$cat" in *\**)
6838 continue;;
6839 esac
6840 # The quadruple backslash is collapsed to a double backslash
6841 # by the backticks, then collapsed again by the double quotes,
6842 # leaving us with one backslash in the sed expression (right
6843 # before the dot that mustn't act as a wildcard).
6844 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6845 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6846 # The user is allowed to set LINGUAS to a list of languages to
6847 # install catalogs for. If it's empty that means "all of them."
6848 if test "x$LINGUAS" = x; then
6849 CATALOGS="$CATALOGS $cat"
6850 XLINGUAS="$XLINGUAS $lang"
6851 else
6852 case "$LINGUAS" in *$lang*)
6853 CATALOGS="$CATALOGS $cat"
6854 XLINGUAS="$XLINGUAS $lang"
6855 ;;
6856 esac
6857 fi
6858 done
6859 LINGUAS="$XLINGUAS"
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6861 $as_echo "$LINGUAS" >&6; }
6862
6863
6864 DATADIRNAME=share
6865
6866 INSTOBJEXT=.mo
6867
6868 GENCAT=gencat
6869
6870 CATOBJEXT=.gmo
6871
6872 fi
6873
6874 MKINSTALLDIRS=
6875 if test -n "$ac_aux_dir"; then
6876 case "$ac_aux_dir" in
6877 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6878 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6879 esac
6880 fi
6881 if test -z "$MKINSTALLDIRS"; then
6882 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6883 fi
6884
6885
6886
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6888 $as_echo_n "checking whether NLS is requested... " >&6; }
6889 # Check whether --enable-nls was given.
6890 if test "${enable_nls+set}" = set; then :
6891 enableval=$enable_nls; USE_NLS=$enableval
6892 else
6893 USE_NLS=yes
6894 fi
6895
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6897 $as_echo "$USE_NLS" >&6; }
6898
6899
6900
6901
6902
6903
6904 # Prepare PATH_SEPARATOR.
6905 # The user is always right.
6906 if test "${PATH_SEPARATOR+set}" != set; then
6907 echo "#! /bin/sh" >conf$$.sh
6908 echo "exit 0" >>conf$$.sh
6909 chmod +x conf$$.sh
6910 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6911 PATH_SEPARATOR=';'
6912 else
6913 PATH_SEPARATOR=:
6914 fi
6915 rm -f conf$$.sh
6916 fi
6917
6918 # Find out how to test for executable files. Don't use a zero-byte file,
6919 # as systems may use methods other than mode bits to determine executability.
6920 cat >conf$$.file <<_ASEOF
6921 #! /bin/sh
6922 exit 0
6923 _ASEOF
6924 chmod +x conf$$.file
6925 if test -x conf$$.file >/dev/null 2>&1; then
6926 ac_executable_p="test -x"
6927 else
6928 ac_executable_p="test -f"
6929 fi
6930 rm -f conf$$.file
6931
6932 # Extract the first word of "msgfmt", so it can be a program name with args.
6933 set dummy msgfmt; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_path_MSGFMT+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 case "$MSGFMT" in
6940 [\\/]* | ?:[\\/]*)
6941 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6942 ;;
6943 *)
6944 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6945 for ac_dir in $PATH; do
6946 IFS="$ac_save_IFS"
6947 test -z "$ac_dir" && ac_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6950 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6951 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6952 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6953 break 2
6954 fi
6955 fi
6956 done
6957 done
6958 IFS="$ac_save_IFS"
6959 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6960 ;;
6961 esac
6962 fi
6963 MSGFMT="$ac_cv_path_MSGFMT"
6964 if test "$MSGFMT" != ":"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6966 $as_echo "$MSGFMT" >&6; }
6967 else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6970 fi
6971
6972 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6973 set dummy gmsgfmt; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if ${ac_cv_path_GMSGFMT+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 case $GMSGFMT in
6980 [\\/]* | ?:[\\/]*)
6981 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6982 ;;
6983 *)
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6986 do
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6994 fi
6995 done
6996 done
6997 IFS=$as_save_IFS
6998
6999 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7000 ;;
7001 esac
7002 fi
7003 GMSGFMT=$ac_cv_path_GMSGFMT
7004 if test -n "$GMSGFMT"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7006 $as_echo "$GMSGFMT" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7010 fi
7011
7012
7013
7014
7015 # Prepare PATH_SEPARATOR.
7016 # The user is always right.
7017 if test "${PATH_SEPARATOR+set}" != set; then
7018 echo "#! /bin/sh" >conf$$.sh
7019 echo "exit 0" >>conf$$.sh
7020 chmod +x conf$$.sh
7021 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7022 PATH_SEPARATOR=';'
7023 else
7024 PATH_SEPARATOR=:
7025 fi
7026 rm -f conf$$.sh
7027 fi
7028
7029 # Find out how to test for executable files. Don't use a zero-byte file,
7030 # as systems may use methods other than mode bits to determine executability.
7031 cat >conf$$.file <<_ASEOF
7032 #! /bin/sh
7033 exit 0
7034 _ASEOF
7035 chmod +x conf$$.file
7036 if test -x conf$$.file >/dev/null 2>&1; then
7037 ac_executable_p="test -x"
7038 else
7039 ac_executable_p="test -f"
7040 fi
7041 rm -f conf$$.file
7042
7043 # Extract the first word of "xgettext", so it can be a program name with args.
7044 set dummy xgettext; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_path_XGETTEXT+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 case "$XGETTEXT" in
7051 [\\/]* | ?:[\\/]*)
7052 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7053 ;;
7054 *)
7055 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7056 for ac_dir in $PATH; do
7057 IFS="$ac_save_IFS"
7058 test -z "$ac_dir" && ac_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7061 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7062 (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
7063 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7064 break 2
7065 fi
7066 fi
7067 done
7068 done
7069 IFS="$ac_save_IFS"
7070 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7071 ;;
7072 esac
7073 fi
7074 XGETTEXT="$ac_cv_path_XGETTEXT"
7075 if test "$XGETTEXT" != ":"; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7077 $as_echo "$XGETTEXT" >&6; }
7078 else
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7081 fi
7082
7083 rm -f messages.po
7084
7085
7086 # Prepare PATH_SEPARATOR.
7087 # The user is always right.
7088 if test "${PATH_SEPARATOR+set}" != set; then
7089 echo "#! /bin/sh" >conf$$.sh
7090 echo "exit 0" >>conf$$.sh
7091 chmod +x conf$$.sh
7092 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7093 PATH_SEPARATOR=';'
7094 else
7095 PATH_SEPARATOR=:
7096 fi
7097 rm -f conf$$.sh
7098 fi
7099
7100 # Find out how to test for executable files. Don't use a zero-byte file,
7101 # as systems may use methods other than mode bits to determine executability.
7102 cat >conf$$.file <<_ASEOF
7103 #! /bin/sh
7104 exit 0
7105 _ASEOF
7106 chmod +x conf$$.file
7107 if test -x conf$$.file >/dev/null 2>&1; then
7108 ac_executable_p="test -x"
7109 else
7110 ac_executable_p="test -f"
7111 fi
7112 rm -f conf$$.file
7113
7114 # Extract the first word of "msgmerge", so it can be a program name with args.
7115 set dummy msgmerge; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if ${ac_cv_path_MSGMERGE+:} false; then :
7119 $as_echo_n "(cached) " >&6
7120 else
7121 case "$MSGMERGE" in
7122 [\\/]* | ?:[\\/]*)
7123 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7124 ;;
7125 *)
7126 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7127 for ac_dir in $PATH; do
7128 IFS="$ac_save_IFS"
7129 test -z "$ac_dir" && ac_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7132 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7133 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7134 break 2
7135 fi
7136 fi
7137 done
7138 done
7139 IFS="$ac_save_IFS"
7140 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7141 ;;
7142 esac
7143 fi
7144 MSGMERGE="$ac_cv_path_MSGMERGE"
7145 if test "$MSGMERGE" != ":"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7147 $as_echo "$MSGMERGE" >&6; }
7148 else
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7151 fi
7152
7153
7154 if test "$GMSGFMT" != ":"; then
7155 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7156 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7157 : ;
7158 else
7159 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7161 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7162 GMSGFMT=":"
7163 fi
7164 fi
7165
7166 if test "$XGETTEXT" != ":"; then
7167 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7168 (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
7169 : ;
7170 else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7172 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7173 XGETTEXT=":"
7174 fi
7175 rm -f messages.po
7176 fi
7177
7178 ac_config_commands="$ac_config_commands default-1"
7179
7180
7181
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7183 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7184 if ${ac_cv_c_bigendian+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 ac_cv_c_bigendian=unknown
7188 # See if we're dealing with a universal compiler.
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 #ifndef __APPLE_CC__
7192 not a universal capable compiler
7193 #endif
7194 typedef int dummy;
7195
7196 _ACEOF
7197 if ac_fn_c_try_compile "$LINENO"; then :
7198
7199 # Check for potential -arch flags. It is not universal unless
7200 # there are at least two -arch flags with different values.
7201 ac_arch=
7202 ac_prev=
7203 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7204 if test -n "$ac_prev"; then
7205 case $ac_word in
7206 i?86 | x86_64 | ppc | ppc64)
7207 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7208 ac_arch=$ac_word
7209 else
7210 ac_cv_c_bigendian=universal
7211 break
7212 fi
7213 ;;
7214 esac
7215 ac_prev=
7216 elif test "x$ac_word" = "x-arch"; then
7217 ac_prev=arch
7218 fi
7219 done
7220 fi
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 if test $ac_cv_c_bigendian = unknown; then
7223 # See if sys/param.h defines the BYTE_ORDER macro.
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7226 #include <sys/types.h>
7227 #include <sys/param.h>
7228
7229 int
7230 main ()
7231 {
7232 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7233 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7234 && LITTLE_ENDIAN)
7235 bogus endian macros
7236 #endif
7237
7238 ;
7239 return 0;
7240 }
7241 _ACEOF
7242 if ac_fn_c_try_compile "$LINENO"; then :
7243 # It does; now see whether it defined to BIG_ENDIAN or not.
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7246 #include <sys/types.h>
7247 #include <sys/param.h>
7248
7249 int
7250 main ()
7251 {
7252 #if BYTE_ORDER != BIG_ENDIAN
7253 not big endian
7254 #endif
7255
7256 ;
7257 return 0;
7258 }
7259 _ACEOF
7260 if ac_fn_c_try_compile "$LINENO"; then :
7261 ac_cv_c_bigendian=yes
7262 else
7263 ac_cv_c_bigendian=no
7264 fi
7265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266 fi
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268 fi
7269 if test $ac_cv_c_bigendian = unknown; then
7270 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7273 #include <limits.h>
7274
7275 int
7276 main ()
7277 {
7278 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7279 bogus endian macros
7280 #endif
7281
7282 ;
7283 return 0;
7284 }
7285 _ACEOF
7286 if ac_fn_c_try_compile "$LINENO"; then :
7287 # It does; now see whether it defined to _BIG_ENDIAN or not.
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7290 #include <limits.h>
7291
7292 int
7293 main ()
7294 {
7295 #ifndef _BIG_ENDIAN
7296 not big endian
7297 #endif
7298
7299 ;
7300 return 0;
7301 }
7302 _ACEOF
7303 if ac_fn_c_try_compile "$LINENO"; then :
7304 ac_cv_c_bigendian=yes
7305 else
7306 ac_cv_c_bigendian=no
7307 fi
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309 fi
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 fi
7312 if test $ac_cv_c_bigendian = unknown; then
7313 # Compile a test program.
7314 if test "$cross_compiling" = yes; then :
7315 # Try to guess by grepping values from an object file.
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318 short int ascii_mm[] =
7319 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7320 short int ascii_ii[] =
7321 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7322 int use_ascii (int i) {
7323 return ascii_mm[i] + ascii_ii[i];
7324 }
7325 short int ebcdic_ii[] =
7326 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7327 short int ebcdic_mm[] =
7328 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7329 int use_ebcdic (int i) {
7330 return ebcdic_mm[i] + ebcdic_ii[i];
7331 }
7332 extern int foo;
7333
7334 int
7335 main ()
7336 {
7337 return use_ascii (foo) == use_ebcdic (foo);
7338 ;
7339 return 0;
7340 }
7341 _ACEOF
7342 if ac_fn_c_try_compile "$LINENO"; then :
7343 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7344 ac_cv_c_bigendian=yes
7345 fi
7346 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7347 if test "$ac_cv_c_bigendian" = unknown; then
7348 ac_cv_c_bigendian=no
7349 else
7350 # finding both strings is unlikely to happen, but who knows?
7351 ac_cv_c_bigendian=unknown
7352 fi
7353 fi
7354 fi
7355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356 else
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7359 $ac_includes_default
7360 int
7361 main ()
7362 {
7363
7364 /* Are we little or big endian? From Harbison&Steele. */
7365 union
7366 {
7367 long int l;
7368 char c[sizeof (long int)];
7369 } u;
7370 u.l = 1;
7371 return u.c[sizeof (long int) - 1] == 1;
7372
7373 ;
7374 return 0;
7375 }
7376 _ACEOF
7377 if ac_fn_c_try_run "$LINENO"; then :
7378 ac_cv_c_bigendian=no
7379 else
7380 ac_cv_c_bigendian=yes
7381 fi
7382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7383 conftest.$ac_objext conftest.beam conftest.$ac_ext
7384 fi
7385
7386 fi
7387 fi
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7389 $as_echo "$ac_cv_c_bigendian" >&6; }
7390 case $ac_cv_c_bigendian in #(
7391 yes)
7392 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7393 ;; #(
7394 no)
7395 ;; #(
7396 universal)
7397
7398 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7399
7400 ;; #(
7401 *)
7402 as_fn_error $? "unknown endianness
7403 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7404 esac
7405
7406
7407
7408
7409 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
7410 NATIVE_LINKER_TRUE=
7411 NATIVE_LINKER_FALSE='#'
7412 else
7413 NATIVE_LINKER_TRUE='#'
7414 NATIVE_LINKER_FALSE=
7415 fi
7416
7417 if test "$GCC" = yes; then
7418 GCC_TRUE=
7419 GCC_FALSE='#'
7420 else
7421 GCC_TRUE='#'
7422 GCC_FALSE=
7423 fi
7424
7425
7426 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
7427 NATIVE_OR_CROSS_LINKER_TRUE=
7428 NATIVE_OR_CROSS_LINKER_FALSE='#'
7429 else
7430 NATIVE_OR_CROSS_LINKER_TRUE='#'
7431 NATIVE_OR_CROSS_LINKER_FALSE=
7432 fi
7433
7434
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
7436 $as_echo_n "checking whether static linking works... " >&6; }
7437 if ${gold_cv_lib_static+:} false; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 LDFLAGS_hold=$LDFLAGS
7441 LDFLAGS="$LDFLAGS -static"
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7444
7445 void f() { }
7446 int
7447 main ()
7448 {
7449
7450 ;
7451 return 0;
7452 }
7453 _ACEOF
7454 if ac_fn_c_try_link "$LINENO"; then :
7455 gold_cv_lib_static=yes
7456 else
7457 gold_cv_lib_static=no
7458 fi
7459 rm -f core conftest.err conftest.$ac_objext \
7460 conftest$ac_exeext conftest.$ac_ext
7461 LDFLAGS=$LDFLAGS_hold
7462 fi
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
7464 $as_echo "$gold_cv_lib_static" >&6; }
7465 if test "$gold_cv_lib_static" = "yes"; then
7466 HAVE_STATIC_TRUE=
7467 HAVE_STATIC_FALSE='#'
7468 else
7469 HAVE_STATIC_TRUE='#'
7470 HAVE_STATIC_FALSE=
7471 fi
7472
7473
7474 if
7475 case $target_cpu in
7476 powerpc*) false;;
7477 x86_64) false;;
7478 sparc64) false;;
7479 s390x) false;;
7480 *) true;;
7481 esac; then
7482 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
7483 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
7484 else
7485 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
7486 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
7487 fi
7488
7489
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
7491 $as_echo_n "checking for gcc >= 4.1... " >&6; }
7492 if ${gold_cv_prog_gcc41+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497
7498 #if !defined __GNUC__
7499 error
7500 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
7501 error
7502 #endif
7503
7504 _ACEOF
7505 if ac_fn_c_try_compile "$LINENO"; then :
7506 gold_cv_prog_gcc41=yes
7507 else
7508 gold_cv_prog_gcc41=no
7509 fi
7510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511 fi
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
7513 $as_echo "$gold_cv_prog_gcc41" >&6; }
7514
7515 save_CFLAGS="$CFLAGS"
7516 CFLAGS="$CFLAGS -mcmodel=medium"
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 int i;
7520 _ACEOF
7521 if ac_fn_c_try_compile "$LINENO"; then :
7522 have_mcmodel_medium=yes
7523 else
7524 have_mcmodel_medium=no
7525 fi
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 CFLAGS="$save_CFLAGS"
7528 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
7529 MCMODEL_MEDIUM_TRUE=
7530 MCMODEL_MEDIUM_FALSE='#'
7531 else
7532 MCMODEL_MEDIUM_TRUE='#'
7533 MCMODEL_MEDIUM_FALSE=
7534 fi
7535
7536
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 9" >&5
7538 $as_echo_n "checking for gcc >= 9... " >&6; }
7539 if ${gold_cv_prog_gcc9+:} false; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7544
7545 #if !defined __GNUC__ || __GNUC__ < 9
7546 error
7547 #endif
7548
7549 _ACEOF
7550 if ac_fn_c_try_compile "$LINENO"; then :
7551 gold_cv_prog_gcc9=yes
7552 else
7553 gold_cv_prog_gcc9=no
7554 fi
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556 fi
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc9" >&5
7558 $as_echo "$gold_cv_prog_gcc9" >&6; }
7559 if test "$gold_cv_prog_gcc9" = "yes"; then
7560 GCC9_TRUE=
7561 GCC9_FALSE='#'
7562 else
7563 GCC9_TRUE='#'
7564 GCC9_FALSE=
7565 fi
7566
7567
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fcf-protection" >&5
7569 $as_echo_n "checking for -fcf-protection... " >&6; }
7570 if ${gold_cv_cflags_cf_protection+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7575
7576 #if !defined __x86_64__ || !defined __CET__
7577 error
7578 #endif
7579
7580 _ACEOF
7581 if ac_fn_c_try_compile "$LINENO"; then :
7582 gold_cv_cflags_cf_protection=yes
7583 else
7584 gold_cv_cflags_cf_protection=no
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 fi
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_cflags_cf_protection" >&5
7589 $as_echo "$gold_cv_cflags_cf_protection" >&6; }
7590 if test "$gold_cv_cflags_cf_protection" = "yes"; then
7591 CFLAGS_CF_PROTECTION_TRUE=
7592 CFLAGS_CF_PROTECTION_FALSE='#'
7593 else
7594 CFLAGS_CF_PROTECTION_TRUE='#'
7595 CFLAGS_CF_PROTECTION_FALSE=
7596 fi
7597
7598
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
7600 $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
7601 if ${gold_cv_merge_constants+:} false; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604
7605 save_CFLAGS="$CFLAGS"
7606 CFLAGS="$CFLAGS -fmerge-constants"
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7609 const char *s = "foo";
7610 _ACEOF
7611 if ac_fn_c_try_compile "$LINENO"; then :
7612 gold_cv_merge_constants=yes
7613 else
7614 gold_cv_merge_constants=no
7615 fi
7616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 CFLAGS="$save_CFLAGS"
7618 fi
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
7620 $as_echo "$gold_cv_merge_constants" >&6; }
7621
7622 if test "$gold_cv_merge_constants" = yes; then :
7623 MERGE_CONSTANTS_FLAG=-fmerge-constants
7624 else
7625 MERGE_CONSTANTS_FLAG=
7626 fi
7627
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
7629 $as_echo_n "checking for thread support... " >&6; }
7630 if ${gold_cv_c_thread+:} false; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7635 __thread int i = 1;
7636 _ACEOF
7637 if ac_fn_c_try_compile "$LINENO"; then :
7638 gold_cv_c_thread=yes
7639 else
7640 gold_cv_c_thread=no
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 fi
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
7645 $as_echo "$gold_cv_c_thread" >&6; }
7646
7647 if test "$gold_cv_c_thread" = "yes"; then
7648 TLS_TRUE=
7649 TLS_FALSE='#'
7650 else
7651 TLS_TRUE='#'
7652 TLS_FALSE=
7653 fi
7654
7655
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
7657 $as_echo_n "checking for glibc >= 2.4... " >&6; }
7658 if ${gold_cv_lib_glibc24+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663
7664 #include <features.h>
7665 #if !defined __GLIBC__
7666 error
7667 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
7668 error
7669 #endif
7670
7671 _ACEOF
7672 if ac_fn_c_try_compile "$LINENO"; then :
7673 gold_cv_lib_glibc24=yes
7674 else
7675 gold_cv_lib_glibc24=no
7676 fi
7677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678 fi
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
7680 $as_echo "$gold_cv_lib_glibc24" >&6; }
7681
7682 if test "$gold_cv_lib_glibc24" = "yes"; then
7683 STATIC_TLS_TRUE=
7684 STATIC_TLS_FALSE='#'
7685 else
7686 STATIC_TLS_TRUE='#'
7687 STATIC_TLS_FALSE=
7688 fi
7689
7690
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
7692 $as_echo_n "checking for omp support... " >&6; }
7693 if ${gold_cv_c_threadprivate+:} false; then :
7694 $as_echo_n "(cached) " >&6
7695 else
7696 save_CFLAGS="$CFLAGS"
7697 CFLAGS="$CFLAGS -fopenmp"
7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7700
7701 #include <omp.h>
7702 int i;
7703 #pragma omp threadprivate (i)
7704
7705 _ACEOF
7706 if ac_fn_c_try_compile "$LINENO"; then :
7707 gold_cv_c_threadprivate=yes
7708 else
7709 gold_cv_c_threadprivate=no
7710 fi
7711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7712 CFLAGS="$save_CFLAGS"
7713 fi
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
7715 $as_echo "$gold_cv_c_threadprivate" >&6; }
7716 if test "$gold_cv_c_threadprivate" = "yes"; then
7717
7718 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
7719
7720 fi
7721 if test "$gold_cv_c_threadprivate" = "yes"; then
7722 OMP_SUPPORT_TRUE=
7723 OMP_SUPPORT_FALSE='#'
7724 else
7725 OMP_SUPPORT_TRUE='#'
7726 OMP_SUPPORT_FALSE=
7727 fi
7728
7729
7730 save_CFLAGS="$CFLAGS"
7731 CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7734
7735 __thread int i;
7736 void foo (void)
7737 {
7738 i = 10;
7739 }
7740
7741 _ACEOF
7742 if ac_fn_c_try_compile "$LINENO"; then :
7743 have_tls_gnu2=yes
7744 else
7745 have_tls_gnu2=no
7746 fi
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748 CFLAGS="$save_CFLAGS"
7749 if test "$have_tls_gnu2" = "yes"; then
7750 TLS_GNU2_DIALECT_TRUE=
7751 TLS_GNU2_DIALECT_FALSE='#'
7752 else
7753 TLS_GNU2_DIALECT_TRUE='#'
7754 TLS_GNU2_DIALECT_FALSE=
7755 fi
7756
7757
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
7759 $as_echo_n "checking for glibc >= 2.9... " >&6; }
7760 if ${gold_cv_lib_glibc29+:} false; then :
7761 $as_echo_n "(cached) " >&6
7762 else
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7765
7766 #include <features.h>
7767 #if !defined __GLIBC__
7768 error
7769 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
7770 error
7771 #endif
7772
7773 _ACEOF
7774 if ac_fn_c_try_compile "$LINENO"; then :
7775 gold_cv_lib_glibc29=yes
7776 else
7777 gold_cv_lib_glibc29=no
7778 fi
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 fi
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
7782 $as_echo "$gold_cv_lib_glibc29" >&6; }
7783
7784 if test "$gold_cv_lib_glibc29" = "yes"; then
7785 TLS_DESCRIPTORS_TRUE=
7786 TLS_DESCRIPTORS_FALSE='#'
7787 else
7788 TLS_DESCRIPTORS_TRUE='#'
7789 TLS_DESCRIPTORS_FALSE=
7790 fi
7791
7792
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
7794 $as_echo_n "checking for -frandom-seed support... " >&6; }
7795 if ${gold_cv_c_random_seed+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 save_CFLAGS="$CFLAGS"
7799 CFLAGS="$CFLAGS -frandom-seed=foo"
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7802 int i;
7803 _ACEOF
7804 if ac_fn_c_try_compile "$LINENO"; then :
7805 gold_cv_c_random_seed=yes
7806 else
7807 gold_cv_c_random_seed=no
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7810 CFLAGS="$save_CFLAGS"
7811 fi
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
7813 $as_echo "$gold_cv_c_random_seed" >&6; }
7814 if test "$gold_cv_c_random_seed" = "yes"; then
7815 # In Makefile, '$@' will be expanded to be the name of the file
7816 # being built, providing a unique seed for each file.
7817 RANDOM_SEED_CFLAGS=-frandom-seed=\$@
7818 fi
7819
7820
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
7822 $as_echo_n "checking for glibc ifunc support... " >&6; }
7823 if ${gold_cv_lib_glibc_ifunc+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 save_LDFLAGS="$LDFLAGS"
7827 LDFLAGS="$LDFLAGS -static"
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7830
7831 #include <features.h>
7832 #if !defined __GLIBC__
7833 error
7834 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
7835 error
7836 #endif
7837 void func (void) { }
7838 void invoke (void);
7839 __asm__(".type invoke, %gnu_indirect_function");
7840 typedef void (*funcptr) (void);
7841 funcptr dispatch (void) __asm__ ("invoke");
7842 funcptr dispatch (void) { return &func; }
7843 int
7844 main ()
7845 {
7846 invoke();
7847 ;
7848 return 0;
7849 }
7850
7851 _ACEOF
7852 if ac_fn_c_try_link "$LINENO"; then :
7853
7854 if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
7855 gold_cv_lib_glibc_ifunc=both
7856 else
7857 gold_cv_lib_glibc_ifunc=dyn
7858 fi
7859 else
7860 gold_cv_lib_glibc_ifunc=no
7861 fi
7862 rm -f core conftest.err conftest.$ac_objext \
7863 conftest$ac_exeext conftest.$ac_ext
7864 LDFLAGS="$save_LDFLAGS"
7865 fi
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
7867 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
7868
7869 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
7870 IFUNC_TRUE=
7871 IFUNC_FALSE='#'
7872 else
7873 IFUNC_TRUE='#'
7874 IFUNC_FALSE=
7875 fi
7876
7877 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
7878 IFUNC_STATIC_TRUE=
7879 IFUNC_STATIC_FALSE='#'
7880 else
7881 IFUNC_STATIC_TRUE='#'
7882 IFUNC_STATIC_FALSE=
7883 fi
7884
7885
7886
7887 # Set the 'development' global.
7888 . $srcdir/../bfd/development.sh
7889
7890 # Set acp_cpp_for_build variable
7891 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
7892
7893 # Default set of GCC warnings to enable.
7894 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7895 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7896
7897 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7900 __GNUC__
7901 _ACEOF
7902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7903 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
7904
7905 else
7906 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
7907 fi
7908 rm -f conftest*
7909
7910
7911 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 __GNUC__
7915 _ACEOF
7916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7917 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
7918
7919 else
7920 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
7921 fi
7922 rm -f conftest*
7923
7924
7925 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
7926 WARN_WRITE_STRINGS=""
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7929 __GNUC__
7930 _ACEOF
7931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7932 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
7933
7934 else
7935 WARN_WRITE_STRINGS="-Wwrite-strings"
7936 fi
7937 rm -f conftest*
7938
7939
7940 # Verify CC_FOR_BUILD to be compatible with warning flags
7941
7942 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945 __GNUC__
7946 _ACEOF
7947 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7948 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
7949
7950 else
7951 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
7952 fi
7953 rm -f conftest*
7954
7955
7956 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7959 __GNUC__
7960 _ACEOF
7961 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7962 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
7963
7964 else
7965 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
7966 fi
7967 rm -f conftest*
7968
7969
7970 # Check whether --enable-werror was given.
7971 if test "${enable_werror+set}" = set; then :
7972 enableval=$enable_werror; case "${enableval}" in
7973 yes | y) ERROR_ON_WARNING="yes" ;;
7974 no | n) ERROR_ON_WARNING="no" ;;
7975 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
7976 esac
7977 fi
7978
7979
7980 # Disable -Wformat by default when using gcc on mingw
7981 case "${host}" in
7982 *-*-mingw32*)
7983 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
7984 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
7985 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
7986 fi
7987 ;;
7988 *) ;;
7989 esac
7990
7991 # Enable -Werror by default when using gcc. Turn it off for releases.
7992 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
7993 ERROR_ON_WARNING=yes
7994 fi
7995
7996 NO_WERROR=
7997 if test "${ERROR_ON_WARNING}" = yes ; then
7998 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
7999 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
8000 NO_WERROR="-Wno-error"
8001 fi
8002
8003 if test "${GCC}" = yes ; then
8004 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
8005 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
8006 fi
8007
8008 # Check whether --enable-build-warnings was given.
8009 if test "${enable_build_warnings+set}" = set; then :
8010 enableval=$enable_build_warnings; case "${enableval}" in
8011 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
8012 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
8013 no) if test "${GCC}" = yes ; then
8014 WARN_CFLAGS="-w"
8015 WARN_CFLAGS_FOR_BUILD="-w"
8016 fi;;
8017 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8018 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
8019 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
8020 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8021 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
8022 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
8023 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
8024 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8025 esac
8026 fi
8027
8028
8029 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
8030 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
8031 fi
8032
8033
8034
8035
8036
8037
8038
8039 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
8040
8041
8042
8043 # Check whether --with-gold-ldflags was given.
8044 if test "${with_gold_ldflags+set}" = set; then :
8045 withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8046 GOLD_LDFLAGS=
8047 else
8048 GOLD_LDFLAGS=$withval
8049 fi
8050 else
8051 GOLD_LDFLAGS=
8052 fi
8053
8054
8055
8056
8057 # Check whether --with-gold-ldadd was given.
8058 if test "${with_gold_ldadd+set}" = set; then :
8059 withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
8060 GOLD_LDADD=
8061 else
8062 GOLD_LDADD=$withval
8063 fi
8064 else
8065 GOLD_LDADD=
8066 fi
8067
8068
8069
8070 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8071
8072
8073 for ac_header in sys/mman.h
8074 do :
8075 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
8076 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
8077 cat >>confdefs.h <<_ACEOF
8078 #define HAVE_SYS_MMAN_H 1
8079 _ACEOF
8080
8081 fi
8082
8083 done
8084
8085 for ac_func in chsize mmap link
8086 do :
8087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8088 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8089 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8090 cat >>confdefs.h <<_ACEOF
8091 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8092 _ACEOF
8093
8094 fi
8095 done
8096
8097 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
8098 if test "x$ac_cv_func_pread" = xyes; then :
8099 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
8100
8101 else
8102 case " $LIBOBJS " in
8103 *" pread.$ac_objext "* ) ;;
8104 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
8105 ;;
8106 esac
8107
8108 fi
8109
8110 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
8111 if test "x$ac_cv_func_ftruncate" = xyes; then :
8112 $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
8113
8114 else
8115 case " $LIBOBJS " in
8116 *" ftruncate.$ac_objext "* ) ;;
8117 *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
8118 ;;
8119 esac
8120
8121 fi
8122
8123 ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll"
8124 if test "x$ac_cv_func_ffsll" = xyes; then :
8125 $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
8126
8127 else
8128 case " $LIBOBJS " in
8129 *" ffsll.$ac_objext "* ) ;;
8130 *) LIBOBJS="$LIBOBJS ffsll.$ac_objext"
8131 ;;
8132 esac
8133
8134 fi
8135
8136
8137
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
8139 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
8140 if ${gold_cv_lib_mremap_maymove+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145
8146
8147 #include <sys/mman.h>
8148 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
8149
8150 int
8151 main ()
8152 {
8153
8154 ;
8155 return 0;
8156 }
8157 _ACEOF
8158 if ac_fn_c_try_link "$LINENO"; then :
8159 gold_cv_lib_mremap_maymove=yes
8160 else
8161 gold_cv_lib_mremap_maymove=no
8162 fi
8163 rm -f core conftest.err conftest.$ac_objext \
8164 conftest$ac_exeext conftest.$ac_ext
8165 fi
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
8167 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
8168 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
8169
8170 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
8171
8172 else
8173 case " $LIBOBJS " in
8174 *" mremap.$ac_objext "* ) ;;
8175 *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
8176 ;;
8177 esac
8178
8179 fi
8180
8181 # Link in zlib if we can. This allows us to write compressed sections.
8182
8183 # Use the system's zlib library.
8184 zlibdir="-L\$(top_builddir)/../zlib"
8185 zlibinc="-I\$(top_srcdir)/../zlib"
8186
8187 # Check whether --with-system-zlib was given.
8188 if test "${with_system_zlib+set}" = set; then :
8189 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8190 zlibdir=
8191 zlibinc=
8192 fi
8193
8194 fi
8195
8196
8197
8198
8199
8200 # Check whether --enable-threads was given.
8201 if test "${enable_threads+set}" = set; then :
8202 enableval=$enable_threads; case "${enableval}" in
8203 yes | "") threads=yes ;;
8204 no) threads=no ;;
8205 auto) threads=auto ;;
8206 *) threads=yes ;;
8207 esac
8208 else
8209 threads=auto
8210 fi
8211
8212
8213 if test "$threads" = "yes"; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8215 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8216 if ${ac_cv_path_SED+:} false; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8220 for ac_i in 1 2 3 4 5 6 7; do
8221 ac_script="$ac_script$as_nl$ac_script"
8222 done
8223 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8224 { ac_script=; unset ac_script;}
8225 if test -z "$SED"; then
8226 ac_path_SED_found=false
8227 # Loop through the user's path and test for each of PROGNAME-LIST
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
8233 for ac_prog in sed gsed; do
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8236 as_fn_executable_p "$ac_path_SED" || continue
8237 # Check for GNU ac_path_SED and select it if it is found.
8238 # Check for GNU $ac_path_SED
8239 case `"$ac_path_SED" --version 2>&1` in
8240 *GNU*)
8241 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8242 *)
8243 ac_count=0
8244 $as_echo_n 0123456789 >"conftest.in"
8245 while :
8246 do
8247 cat "conftest.in" "conftest.in" >"conftest.tmp"
8248 mv "conftest.tmp" "conftest.in"
8249 cp "conftest.in" "conftest.nl"
8250 $as_echo '' >> "conftest.nl"
8251 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8253 as_fn_arith $ac_count + 1 && ac_count=$as_val
8254 if test $ac_count -gt ${ac_path_SED_max-0}; then
8255 # Best one so far, save it but keep looking for a better one
8256 ac_cv_path_SED="$ac_path_SED"
8257 ac_path_SED_max=$ac_count
8258 fi
8259 # 10*(2^10) chars as input seems more than enough
8260 test $ac_count -gt 10 && break
8261 done
8262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8263 esac
8264
8265 $ac_path_SED_found && break 3
8266 done
8267 done
8268 done
8269 IFS=$as_save_IFS
8270 if test -z "$ac_cv_path_SED"; then
8271 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8272 fi
8273 else
8274 ac_cv_path_SED=$SED
8275 fi
8276
8277 fi
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8279 $as_echo "$ac_cv_path_SED" >&6; }
8280 SED="$ac_cv_path_SED"
8281 rm -f conftest.sed
8282
8283
8284
8285
8286
8287 ac_ext=c
8288 ac_cpp='$CPP $CPPFLAGS'
8289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8292
8293 ax_pthread_ok=no
8294
8295 # We used to check for pthread.h first, but this fails if pthread.h
8296 # requires special compiler flags (e.g. on Tru64 or Sequent).
8297 # It gets checked for in the link test anyway.
8298
8299 # First of all, check if the user has set any of the PTHREAD_LIBS,
8300 # etcetera environment variables, and if threads linking works using
8301 # them:
8302 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8303 ax_pthread_save_CC="$CC"
8304 ax_pthread_save_CFLAGS="$CFLAGS"
8305 ax_pthread_save_LIBS="$LIBS"
8306 if test "x$PTHREAD_CC" != "x"; then :
8307 CC="$PTHREAD_CC"
8308 fi
8309 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8310 LIBS="$PTHREAD_LIBS $LIBS"
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8312 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h. */
8315
8316 /* Override any GCC internal prototype to avoid an error.
8317 Use char because int might match the return type of a GCC
8318 builtin and then its argument prototype would still apply. */
8319 #ifdef __cplusplus
8320 extern "C"
8321 #endif
8322 char pthread_join ();
8323 int
8324 main ()
8325 {
8326 return pthread_join ();
8327 ;
8328 return 0;
8329 }
8330 _ACEOF
8331 if ac_fn_c_try_link "$LINENO"; then :
8332 ax_pthread_ok=yes
8333 fi
8334 rm -f core conftest.err conftest.$ac_objext \
8335 conftest$ac_exeext conftest.$ac_ext
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8337 $as_echo "$ax_pthread_ok" >&6; }
8338 if test "x$ax_pthread_ok" = "xno"; then
8339 PTHREAD_LIBS=""
8340 PTHREAD_CFLAGS=""
8341 fi
8342 CC="$ax_pthread_save_CC"
8343 CFLAGS="$ax_pthread_save_CFLAGS"
8344 LIBS="$ax_pthread_save_LIBS"
8345 fi
8346
8347 # We must check for the threads library under a number of different
8348 # names; the ordering is very important because some systems
8349 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8350 # libraries is broken (non-POSIX).
8351
8352 # Create a list of thread flags to try. Items starting with a "-" are
8353 # C compiler flags, and other items are library names, except for "none"
8354 # which indicates that we try without any flags at all, and "pthread-config"
8355 # which is a program returning the flags for the Pth emulation library.
8356
8357 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8358
8359 # The ordering *is* (sometimes) important. Some notes on the
8360 # individual items follow:
8361
8362 # pthreads: AIX (must check this before -lpthread)
8363 # none: in case threads are in libc; should be tried before -Kthread and
8364 # other compiler flags to prevent continual compiler warnings
8365 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8366 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8367 # (Note: HP C rejects this with "bad form for `-t' option")
8368 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8369 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8370 # doesn't hurt to check since this sometimes defines pthreads and
8371 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
8372 # is present but should not be used directly; and before -mthreads,
8373 # because the compiler interprets this as "-mt" + "-hreads")
8374 # -mthreads: Mingw32/gcc, Lynx/gcc
8375 # pthread: Linux, etcetera
8376 # --thread-safe: KAI C++
8377 # pthread-config: use pthread-config program (for GNU Pth library)
8378
8379 case $host_os in
8380
8381 freebsd*)
8382
8383 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8384 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8385
8386 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
8387 ;;
8388
8389 hpux*)
8390
8391 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8392 # multi-threading and also sets -lpthread."
8393
8394 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8395 ;;
8396
8397 openedition*)
8398
8399 # IBM z/OS requires a feature-test macro to be defined in order to
8400 # enable POSIX threads at all, so give the user a hint if this is
8401 # not set. (We don't define these ourselves, as they can affect
8402 # other portions of the system API in unpredictable ways.)
8403
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8406
8407 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8408 AX_PTHREAD_ZOS_MISSING
8409 # endif
8410
8411 _ACEOF
8412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8413 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8415 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8416 fi
8417 rm -f conftest*
8418
8419 ;;
8420
8421 solaris*)
8422
8423 # On Solaris (at least, for some versions), libc contains stubbed
8424 # (non-functional) versions of the pthreads routines, so link-based
8425 # tests will erroneously succeed. (N.B.: The stubs are missing
8426 # pthread_cleanup_push, or rather a function called by this macro,
8427 # so we could check for that, but who knows whether they'll stub
8428 # that too in a future libc.) So we'll check first for the
8429 # standard Solaris way of linking pthreads (-mt -lpthread).
8430
8431 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
8432 ;;
8433 esac
8434
8435 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8436
8437 if test "x$GCC" = "xyes"; then :
8438 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
8439 fi
8440
8441 # The presence of a feature test macro requesting re-entrant function
8442 # definitions is, on some systems, a strong hint that pthreads support is
8443 # correctly enabled
8444
8445 case $host_os in
8446 darwin* | hpux* | linux* | osf* | solaris*)
8447 ax_pthread_check_macro="_REENTRANT"
8448 ;;
8449
8450 aix*)
8451 ax_pthread_check_macro="_THREAD_SAFE"
8452 ;;
8453
8454 *)
8455 ax_pthread_check_macro="--"
8456 ;;
8457 esac
8458 if test "x$ax_pthread_check_macro" = "x--"; then :
8459 ax_pthread_check_cond=0
8460 else
8461 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
8462 fi
8463
8464 # Are we compiling with Clang?
8465
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
8467 $as_echo_n "checking whether $CC is Clang... " >&6; }
8468 if ${ax_cv_PTHREAD_CLANG+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 ax_cv_PTHREAD_CLANG=no
8472 # Note that Autoconf sets GCC=yes for Clang as well as GCC
8473 if test "x$GCC" = "xyes"; then
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
8477 # if defined(__clang__) && defined(__llvm__)
8478 AX_PTHREAD_CC_IS_CLANG
8479 # endif
8480
8481 _ACEOF
8482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8483 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
8484 ax_cv_PTHREAD_CLANG=yes
8485 fi
8486 rm -f conftest*
8487
8488 fi
8489
8490 fi
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8492 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
8493 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
8494
8495 ax_pthread_clang_warning=no
8496
8497 # Clang needs special handling, because older versions handle the -pthread
8498 # option in a rather... idiosyncratic way
8499
8500 if test "x$ax_pthread_clang" = "xyes"; then
8501
8502 # Clang takes -pthread; it has never supported any other flag
8503
8504 # (Note 1: This will need to be revisited if a system that Clang
8505 # supports has POSIX threads in a separate library. This tends not
8506 # to be the way of modern systems, but it's conceivable.)
8507
8508 # (Note 2: On some systems, notably Darwin, -pthread is not needed
8509 # to get POSIX threads support; the API is always present and
8510 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
8511 # -pthread does define _REENTRANT, and while the Darwin headers
8512 # ignore this macro, third-party headers might not.)
8513
8514 PTHREAD_CFLAGS="-pthread"
8515 PTHREAD_LIBS=
8516
8517 ax_pthread_ok=yes
8518
8519 # However, older versions of Clang make a point of warning the user
8520 # that, in an invocation where only linking and no compilation is
8521 # taking place, the -pthread option has no effect ("argument unused
8522 # during compilation"). They expect -pthread to be passed in only
8523 # when source code is being compiled.
8524 #
8525 # Problem is, this is at odds with the way Automake and most other
8526 # C build frameworks function, which is that the same flags used in
8527 # compilation (CFLAGS) are also used in linking. Many systems
8528 # supported by AX_PTHREAD require exactly this for POSIX threads
8529 # support, and in fact it is often not straightforward to specify a
8530 # flag that is used only in the compilation phase and not in
8531 # linking. Such a scenario is extremely rare in practice.
8532 #
8533 # Even though use of the -pthread flag in linking would only print
8534 # a warning, this can be a nuisance for well-run software projects
8535 # that build with -Werror. So if the active version of Clang has
8536 # this misfeature, we search for an option to squash it.
8537
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8539 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8540 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
8544 # Create an alternate version of $ac_link that compiles and
8545 # links in two steps (.c -> .o, .o -> exe) instead of one
8546 # (.c -> exe), because the warning occurs only in the second
8547 # step
8548 ax_pthread_save_ac_link="$ac_link"
8549 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8550 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
8551 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8552 ax_pthread_save_CFLAGS="$CFLAGS"
8553 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
8554 if test "x$ax_pthread_try" = "xunknown"; then :
8555 break
8556 fi
8557 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8558 ac_link="$ax_pthread_save_ac_link"
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8561 int main(void){return 0;}
8562 _ACEOF
8563 if ac_fn_c_try_link "$LINENO"; then :
8564 ac_link="$ax_pthread_2step_ac_link"
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8567 int main(void){return 0;}
8568 _ACEOF
8569 if ac_fn_c_try_link "$LINENO"; then :
8570 break
8571 fi
8572 rm -f core conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext conftest.$ac_ext
8574
8575 fi
8576 rm -f core conftest.err conftest.$ac_objext \
8577 conftest$ac_exeext conftest.$ac_ext
8578 done
8579 ac_link="$ax_pthread_save_ac_link"
8580 CFLAGS="$ax_pthread_save_CFLAGS"
8581 if test "x$ax_pthread_try" = "x"; then :
8582 ax_pthread_try=no
8583 fi
8584 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
8585
8586 fi
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8588 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8589
8590 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8591 no | unknown) ;;
8592 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8593 esac
8594
8595 fi # $ax_pthread_clang = yes
8596
8597 if test "x$ax_pthread_ok" = "xno"; then
8598 for ax_pthread_try_flag in $ax_pthread_flags; do
8599
8600 case $ax_pthread_try_flag in
8601 none)
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8603 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8604 ;;
8605
8606 -mt,pthread)
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8608 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8609 PTHREAD_CFLAGS="-mt"
8610 PTHREAD_LIBS="-lpthread"
8611 ;;
8612
8613 -*)
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8615 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8616 PTHREAD_CFLAGS="$ax_pthread_try_flag"
8617 ;;
8618
8619 pthread-config)
8620 # Extract the first word of "pthread-config", so it can be a program name with args.
8621 set dummy pthread-config; ac_word=$2
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623 $as_echo_n "checking for $ac_word... " >&6; }
8624 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8625 $as_echo_n "(cached) " >&6
8626 else
8627 if test -n "$ax_pthread_config"; then
8628 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8629 else
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8632 do
8633 IFS=$as_save_IFS
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637 ac_cv_prog_ax_pthread_config="yes"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 break 2
8640 fi
8641 done
8642 done
8643 IFS=$as_save_IFS
8644
8645 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8646 fi
8647 fi
8648 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8649 if test -n "$ax_pthread_config"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8651 $as_echo "$ax_pthread_config" >&6; }
8652 else
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8655 fi
8656
8657
8658 if test "x$ax_pthread_config" = "xno"; then :
8659 continue
8660 fi
8661 PTHREAD_CFLAGS="`pthread-config --cflags`"
8662 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8663 ;;
8664
8665 *)
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8667 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8668 PTHREAD_LIBS="-l$ax_pthread_try_flag"
8669 ;;
8670 esac
8671
8672 ax_pthread_save_CFLAGS="$CFLAGS"
8673 ax_pthread_save_LIBS="$LIBS"
8674 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8675 LIBS="$PTHREAD_LIBS $LIBS"
8676
8677 # Check for various functions. We must include pthread.h,
8678 # since some functions may be macros. (On the Sequent, we
8679 # need a special flag -Kthread to make this header compile.)
8680 # We check for pthread_join because it is in -lpthread on IRIX
8681 # while pthread_create is in libc. We check for pthread_attr_init
8682 # due to DEC craziness with -lpthreads. We check for
8683 # pthread_cleanup_push because it is one of the few pthread
8684 # functions on Solaris that doesn't have a non-functional libc stub.
8685 # We try pthread_create on general principles.
8686
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 #include <pthread.h>
8690 # if $ax_pthread_check_cond
8691 # error "$ax_pthread_check_macro must be defined"
8692 # endif
8693 static void routine(void *a) { a = 0; }
8694 static void *start_routine(void *a) { return a; }
8695 int
8696 main ()
8697 {
8698 pthread_t th; pthread_attr_t attr;
8699 pthread_create(&th, 0, start_routine, 0);
8700 pthread_join(th, 0);
8701 pthread_attr_init(&attr);
8702 pthread_cleanup_push(routine, 0);
8703 pthread_cleanup_pop(0) /* ; */
8704 ;
8705 return 0;
8706 }
8707 _ACEOF
8708 if ac_fn_c_try_link "$LINENO"; then :
8709 ax_pthread_ok=yes
8710 fi
8711 rm -f core conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8713
8714 CFLAGS="$ax_pthread_save_CFLAGS"
8715 LIBS="$ax_pthread_save_LIBS"
8716
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8718 $as_echo "$ax_pthread_ok" >&6; }
8719 if test "x$ax_pthread_ok" = "xyes"; then :
8720 break
8721 fi
8722
8723 PTHREAD_LIBS=""
8724 PTHREAD_CFLAGS=""
8725 done
8726 fi
8727
8728 # Various other checks:
8729 if test "x$ax_pthread_ok" = "xyes"; then
8730 ax_pthread_save_CFLAGS="$CFLAGS"
8731 ax_pthread_save_LIBS="$LIBS"
8732 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8733 LIBS="$PTHREAD_LIBS $LIBS"
8734
8735 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8737 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8738 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
8739 $as_echo_n "(cached) " >&6
8740 else
8741 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
8742 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745 #include <pthread.h>
8746 int
8747 main ()
8748 {
8749 int attr = $ax_pthread_attr; return attr /* ; */
8750 ;
8751 return 0;
8752 }
8753 _ACEOF
8754 if ac_fn_c_try_link "$LINENO"; then :
8755 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
8756 fi
8757 rm -f core conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
8759 done
8760
8761 fi
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8763 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8764 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8765 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8766 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8767
8768 cat >>confdefs.h <<_ACEOF
8769 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8770 _ACEOF
8771
8772 ax_pthread_joinable_attr_defined=yes
8773
8774 fi
8775
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8777 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8778 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
8779 $as_echo_n "(cached) " >&6
8780 else
8781 ax_cv_PTHREAD_SPECIAL_FLAGS=no
8782 case $host_os in
8783 solaris*)
8784 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
8785 ;;
8786 esac
8787
8788 fi
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8790 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8791 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8792 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8793 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8794 ax_pthread_special_flags_added=yes
8795 fi
8796
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8798 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8799 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8804 #include <pthread.h>
8805 int
8806 main ()
8807 {
8808 int i = PTHREAD_PRIO_INHERIT;
8809 ;
8810 return 0;
8811 }
8812 _ACEOF
8813 if ac_fn_c_try_link "$LINENO"; then :
8814 ax_cv_PTHREAD_PRIO_INHERIT=yes
8815 else
8816 ax_cv_PTHREAD_PRIO_INHERIT=no
8817 fi
8818 rm -f core conftest.err conftest.$ac_objext \
8819 conftest$ac_exeext conftest.$ac_ext
8820
8821 fi
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8823 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8824 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8825 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8826
8827 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8828
8829 ax_pthread_prio_inherit_defined=yes
8830
8831 fi
8832
8833 CFLAGS="$ax_pthread_save_CFLAGS"
8834 LIBS="$ax_pthread_save_LIBS"
8835
8836 # More AIX lossage: compile with *_r variant
8837 if test "x$GCC" != "xyes"; then
8838 case $host_os in
8839 aix*)
8840 case "x/$CC" in #(
8841 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8842 #handle absolute path differently from PATH based program lookup
8843 case "x$CC" in #(
8844 x/*) :
8845 if as_fn_executable_p ${CC}_r; then :
8846 PTHREAD_CC="${CC}_r"
8847 fi ;; #(
8848 *) :
8849 for ac_prog in ${CC}_r
8850 do
8851 # Extract the first word of "$ac_prog", so it can be a program name with args.
8852 set dummy $ac_prog; ac_word=$2
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8854 $as_echo_n "checking for $ac_word... " >&6; }
8855 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8856 $as_echo_n "(cached) " >&6
8857 else
8858 if test -n "$PTHREAD_CC"; then
8859 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8860 else
8861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862 for as_dir in $PATH
8863 do
8864 IFS=$as_save_IFS
8865 test -z "$as_dir" && as_dir=.
8866 for ac_exec_ext in '' $ac_executable_extensions; do
8867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8868 ac_cv_prog_PTHREAD_CC="$ac_prog"
8869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8870 break 2
8871 fi
8872 done
8873 done
8874 IFS=$as_save_IFS
8875
8876 fi
8877 fi
8878 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8879 if test -n "$PTHREAD_CC"; then
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8881 $as_echo "$PTHREAD_CC" >&6; }
8882 else
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8885 fi
8886
8887
8888 test -n "$PTHREAD_CC" && break
8889 done
8890 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8891 ;;
8892 esac ;; #(
8893 *) :
8894 ;;
8895 esac
8896 ;;
8897 esac
8898 fi
8899 fi
8900
8901 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8902
8903
8904
8905
8906
8907 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8908 if test "x$ax_pthread_ok" = "xyes"; then
8909 threads=yes
8910 :
8911 else
8912 ax_pthread_ok=no
8913 as_fn_error $? "pthread not found" "$LINENO" 5
8914 fi
8915 ac_ext=c
8916 ac_cpp='$CPP $CPPFLAGS'
8917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8920
8921
8922 elif test "$threads" = "auto"; then
8923
8924
8925
8926
8927 ac_ext=c
8928 ac_cpp='$CPP $CPPFLAGS'
8929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8932
8933 ax_pthread_ok=no
8934
8935 # We used to check for pthread.h first, but this fails if pthread.h
8936 # requires special compiler flags (e.g. on Tru64 or Sequent).
8937 # It gets checked for in the link test anyway.
8938
8939 # First of all, check if the user has set any of the PTHREAD_LIBS,
8940 # etcetera environment variables, and if threads linking works using
8941 # them:
8942 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8943 ax_pthread_save_CC="$CC"
8944 ax_pthread_save_CFLAGS="$CFLAGS"
8945 ax_pthread_save_LIBS="$LIBS"
8946 if test "x$PTHREAD_CC" != "x"; then :
8947 CC="$PTHREAD_CC"
8948 fi
8949 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8950 LIBS="$PTHREAD_LIBS $LIBS"
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8952 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8955
8956 /* Override any GCC internal prototype to avoid an error.
8957 Use char because int might match the return type of a GCC
8958 builtin and then its argument prototype would still apply. */
8959 #ifdef __cplusplus
8960 extern "C"
8961 #endif
8962 char pthread_join ();
8963 int
8964 main ()
8965 {
8966 return pthread_join ();
8967 ;
8968 return 0;
8969 }
8970 _ACEOF
8971 if ac_fn_c_try_link "$LINENO"; then :
8972 ax_pthread_ok=yes
8973 fi
8974 rm -f core conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8977 $as_echo "$ax_pthread_ok" >&6; }
8978 if test "x$ax_pthread_ok" = "xno"; then
8979 PTHREAD_LIBS=""
8980 PTHREAD_CFLAGS=""
8981 fi
8982 CC="$ax_pthread_save_CC"
8983 CFLAGS="$ax_pthread_save_CFLAGS"
8984 LIBS="$ax_pthread_save_LIBS"
8985 fi
8986
8987 # We must check for the threads library under a number of different
8988 # names; the ordering is very important because some systems
8989 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8990 # libraries is broken (non-POSIX).
8991
8992 # Create a list of thread flags to try. Items starting with a "-" are
8993 # C compiler flags, and other items are library names, except for "none"
8994 # which indicates that we try without any flags at all, and "pthread-config"
8995 # which is a program returning the flags for the Pth emulation library.
8996
8997 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8998
8999 # The ordering *is* (sometimes) important. Some notes on the
9000 # individual items follow:
9001
9002 # pthreads: AIX (must check this before -lpthread)
9003 # none: in case threads are in libc; should be tried before -Kthread and
9004 # other compiler flags to prevent continual compiler warnings
9005 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9006 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9007 # (Note: HP C rejects this with "bad form for `-t' option")
9008 # -pthreads: Solaris/gcc (Note: HP C also rejects)
9009 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9010 # doesn't hurt to check since this sometimes defines pthreads and
9011 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
9012 # is present but should not be used directly; and before -mthreads,
9013 # because the compiler interprets this as "-mt" + "-hreads")
9014 # -mthreads: Mingw32/gcc, Lynx/gcc
9015 # pthread: Linux, etcetera
9016 # --thread-safe: KAI C++
9017 # pthread-config: use pthread-config program (for GNU Pth library)
9018
9019 case $host_os in
9020
9021 freebsd*)
9022
9023 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9024 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9025
9026 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
9027 ;;
9028
9029 hpux*)
9030
9031 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9032 # multi-threading and also sets -lpthread."
9033
9034 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9035 ;;
9036
9037 openedition*)
9038
9039 # IBM z/OS requires a feature-test macro to be defined in order to
9040 # enable POSIX threads at all, so give the user a hint if this is
9041 # not set. (We don't define these ourselves, as they can affect
9042 # other portions of the system API in unpredictable ways.)
9043
9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045 /* end confdefs.h. */
9046
9047 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9048 AX_PTHREAD_ZOS_MISSING
9049 # endif
9050
9051 _ACEOF
9052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9053 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9055 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9056 fi
9057 rm -f conftest*
9058
9059 ;;
9060
9061 solaris*)
9062
9063 # On Solaris (at least, for some versions), libc contains stubbed
9064 # (non-functional) versions of the pthreads routines, so link-based
9065 # tests will erroneously succeed. (N.B.: The stubs are missing
9066 # pthread_cleanup_push, or rather a function called by this macro,
9067 # so we could check for that, but who knows whether they'll stub
9068 # that too in a future libc.) So we'll check first for the
9069 # standard Solaris way of linking pthreads (-mt -lpthread).
9070
9071 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
9072 ;;
9073 esac
9074
9075 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9076
9077 if test "x$GCC" = "xyes"; then :
9078 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
9079 fi
9080
9081 # The presence of a feature test macro requesting re-entrant function
9082 # definitions is, on some systems, a strong hint that pthreads support is
9083 # correctly enabled
9084
9085 case $host_os in
9086 darwin* | hpux* | linux* | osf* | solaris*)
9087 ax_pthread_check_macro="_REENTRANT"
9088 ;;
9089
9090 aix*)
9091 ax_pthread_check_macro="_THREAD_SAFE"
9092 ;;
9093
9094 *)
9095 ax_pthread_check_macro="--"
9096 ;;
9097 esac
9098 if test "x$ax_pthread_check_macro" = "x--"; then :
9099 ax_pthread_check_cond=0
9100 else
9101 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9102 fi
9103
9104 # Are we compiling with Clang?
9105
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9107 $as_echo_n "checking whether $CC is Clang... " >&6; }
9108 if ${ax_cv_PTHREAD_CLANG+:} false; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 ax_cv_PTHREAD_CLANG=no
9112 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9113 if test "x$GCC" = "xyes"; then
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9116 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9117 # if defined(__clang__) && defined(__llvm__)
9118 AX_PTHREAD_CC_IS_CLANG
9119 # endif
9120
9121 _ACEOF
9122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9123 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9124 ax_cv_PTHREAD_CLANG=yes
9125 fi
9126 rm -f conftest*
9127
9128 fi
9129
9130 fi
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9132 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9133 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9134
9135 ax_pthread_clang_warning=no
9136
9137 # Clang needs special handling, because older versions handle the -pthread
9138 # option in a rather... idiosyncratic way
9139
9140 if test "x$ax_pthread_clang" = "xyes"; then
9141
9142 # Clang takes -pthread; it has never supported any other flag
9143
9144 # (Note 1: This will need to be revisited if a system that Clang
9145 # supports has POSIX threads in a separate library. This tends not
9146 # to be the way of modern systems, but it's conceivable.)
9147
9148 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9149 # to get POSIX threads support; the API is always present and
9150 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9151 # -pthread does define _REENTRANT, and while the Darwin headers
9152 # ignore this macro, third-party headers might not.)
9153
9154 PTHREAD_CFLAGS="-pthread"
9155 PTHREAD_LIBS=
9156
9157 ax_pthread_ok=yes
9158
9159 # However, older versions of Clang make a point of warning the user
9160 # that, in an invocation where only linking and no compilation is
9161 # taking place, the -pthread option has no effect ("argument unused
9162 # during compilation"). They expect -pthread to be passed in only
9163 # when source code is being compiled.
9164 #
9165 # Problem is, this is at odds with the way Automake and most other
9166 # C build frameworks function, which is that the same flags used in
9167 # compilation (CFLAGS) are also used in linking. Many systems
9168 # supported by AX_PTHREAD require exactly this for POSIX threads
9169 # support, and in fact it is often not straightforward to specify a
9170 # flag that is used only in the compilation phase and not in
9171 # linking. Such a scenario is extremely rare in practice.
9172 #
9173 # Even though use of the -pthread flag in linking would only print
9174 # a warning, this can be a nuisance for well-run software projects
9175 # that build with -Werror. So if the active version of Clang has
9176 # this misfeature, we search for an option to squash it.
9177
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9179 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9180 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9184 # Create an alternate version of $ac_link that compiles and
9185 # links in two steps (.c -> .o, .o -> exe) instead of one
9186 # (.c -> exe), because the warning occurs only in the second
9187 # step
9188 ax_pthread_save_ac_link="$ac_link"
9189 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9190 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9191 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9192 ax_pthread_save_CFLAGS="$CFLAGS"
9193 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9194 if test "x$ax_pthread_try" = "xunknown"; then :
9195 break
9196 fi
9197 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9198 ac_link="$ax_pthread_save_ac_link"
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9201 int main(void){return 0;}
9202 _ACEOF
9203 if ac_fn_c_try_link "$LINENO"; then :
9204 ac_link="$ax_pthread_2step_ac_link"
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 int main(void){return 0;}
9208 _ACEOF
9209 if ac_fn_c_try_link "$LINENO"; then :
9210 break
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9214
9215 fi
9216 rm -f core conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
9218 done
9219 ac_link="$ax_pthread_save_ac_link"
9220 CFLAGS="$ax_pthread_save_CFLAGS"
9221 if test "x$ax_pthread_try" = "x"; then :
9222 ax_pthread_try=no
9223 fi
9224 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9225
9226 fi
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9228 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9229
9230 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9231 no | unknown) ;;
9232 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9233 esac
9234
9235 fi # $ax_pthread_clang = yes
9236
9237 if test "x$ax_pthread_ok" = "xno"; then
9238 for ax_pthread_try_flag in $ax_pthread_flags; do
9239
9240 case $ax_pthread_try_flag in
9241 none)
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9243 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9244 ;;
9245
9246 -mt,pthread)
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9248 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9249 PTHREAD_CFLAGS="-mt"
9250 PTHREAD_LIBS="-lpthread"
9251 ;;
9252
9253 -*)
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9255 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9256 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9257 ;;
9258
9259 pthread-config)
9260 # Extract the first word of "pthread-config", so it can be a program name with args.
9261 set dummy pthread-config; ac_word=$2
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9263 $as_echo_n "checking for $ac_word... " >&6; }
9264 if ${ac_cv_prog_ax_pthread_config+:} false; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 if test -n "$ax_pthread_config"; then
9268 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9269 else
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 for as_dir in $PATH
9272 do
9273 IFS=$as_save_IFS
9274 test -z "$as_dir" && as_dir=.
9275 for ac_exec_ext in '' $ac_executable_extensions; do
9276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277 ac_cv_prog_ax_pthread_config="yes"
9278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9279 break 2
9280 fi
9281 done
9282 done
9283 IFS=$as_save_IFS
9284
9285 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9286 fi
9287 fi
9288 ax_pthread_config=$ac_cv_prog_ax_pthread_config
9289 if test -n "$ax_pthread_config"; then
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9291 $as_echo "$ax_pthread_config" >&6; }
9292 else
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9294 $as_echo "no" >&6; }
9295 fi
9296
9297
9298 if test "x$ax_pthread_config" = "xno"; then :
9299 continue
9300 fi
9301 PTHREAD_CFLAGS="`pthread-config --cflags`"
9302 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9303 ;;
9304
9305 *)
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9307 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9308 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9309 ;;
9310 esac
9311
9312 ax_pthread_save_CFLAGS="$CFLAGS"
9313 ax_pthread_save_LIBS="$LIBS"
9314 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9315 LIBS="$PTHREAD_LIBS $LIBS"
9316
9317 # Check for various functions. We must include pthread.h,
9318 # since some functions may be macros. (On the Sequent, we
9319 # need a special flag -Kthread to make this header compile.)
9320 # We check for pthread_join because it is in -lpthread on IRIX
9321 # while pthread_create is in libc. We check for pthread_attr_init
9322 # due to DEC craziness with -lpthreads. We check for
9323 # pthread_cleanup_push because it is one of the few pthread
9324 # functions on Solaris that doesn't have a non-functional libc stub.
9325 # We try pthread_create on general principles.
9326
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h. */
9329 #include <pthread.h>
9330 # if $ax_pthread_check_cond
9331 # error "$ax_pthread_check_macro must be defined"
9332 # endif
9333 static void routine(void *a) { a = 0; }
9334 static void *start_routine(void *a) { return a; }
9335 int
9336 main ()
9337 {
9338 pthread_t th; pthread_attr_t attr;
9339 pthread_create(&th, 0, start_routine, 0);
9340 pthread_join(th, 0);
9341 pthread_attr_init(&attr);
9342 pthread_cleanup_push(routine, 0);
9343 pthread_cleanup_pop(0) /* ; */
9344 ;
9345 return 0;
9346 }
9347 _ACEOF
9348 if ac_fn_c_try_link "$LINENO"; then :
9349 ax_pthread_ok=yes
9350 fi
9351 rm -f core conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353
9354 CFLAGS="$ax_pthread_save_CFLAGS"
9355 LIBS="$ax_pthread_save_LIBS"
9356
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9358 $as_echo "$ax_pthread_ok" >&6; }
9359 if test "x$ax_pthread_ok" = "xyes"; then :
9360 break
9361 fi
9362
9363 PTHREAD_LIBS=""
9364 PTHREAD_CFLAGS=""
9365 done
9366 fi
9367
9368 # Various other checks:
9369 if test "x$ax_pthread_ok" = "xyes"; then
9370 ax_pthread_save_CFLAGS="$CFLAGS"
9371 ax_pthread_save_LIBS="$LIBS"
9372 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9373 LIBS="$PTHREAD_LIBS $LIBS"
9374
9375 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9377 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9378 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9382 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h. */
9385 #include <pthread.h>
9386 int
9387 main ()
9388 {
9389 int attr = $ax_pthread_attr; return attr /* ; */
9390 ;
9391 return 0;
9392 }
9393 _ACEOF
9394 if ac_fn_c_try_link "$LINENO"; then :
9395 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9396 fi
9397 rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399 done
9400
9401 fi
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9403 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9404 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9405 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9406 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9407
9408 cat >>confdefs.h <<_ACEOF
9409 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9410 _ACEOF
9411
9412 ax_pthread_joinable_attr_defined=yes
9413
9414 fi
9415
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9417 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9418 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 ax_cv_PTHREAD_SPECIAL_FLAGS=no
9422 case $host_os in
9423 solaris*)
9424 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9425 ;;
9426 esac
9427
9428 fi
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9430 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9431 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9432 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9433 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9434 ax_pthread_special_flags_added=yes
9435 fi
9436
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9438 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9439 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 #include <pthread.h>
9445 int
9446 main ()
9447 {
9448 int i = PTHREAD_PRIO_INHERIT;
9449 ;
9450 return 0;
9451 }
9452 _ACEOF
9453 if ac_fn_c_try_link "$LINENO"; then :
9454 ax_cv_PTHREAD_PRIO_INHERIT=yes
9455 else
9456 ax_cv_PTHREAD_PRIO_INHERIT=no
9457 fi
9458 rm -f core conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9460
9461 fi
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9463 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9464 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9465 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9466
9467 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9468
9469 ax_pthread_prio_inherit_defined=yes
9470
9471 fi
9472
9473 CFLAGS="$ax_pthread_save_CFLAGS"
9474 LIBS="$ax_pthread_save_LIBS"
9475
9476 # More AIX lossage: compile with *_r variant
9477 if test "x$GCC" != "xyes"; then
9478 case $host_os in
9479 aix*)
9480 case "x/$CC" in #(
9481 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9482 #handle absolute path differently from PATH based program lookup
9483 case "x$CC" in #(
9484 x/*) :
9485 if as_fn_executable_p ${CC}_r; then :
9486 PTHREAD_CC="${CC}_r"
9487 fi ;; #(
9488 *) :
9489 for ac_prog in ${CC}_r
9490 do
9491 # Extract the first word of "$ac_prog", so it can be a program name with args.
9492 set dummy $ac_prog; ac_word=$2
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494 $as_echo_n "checking for $ac_word... " >&6; }
9495 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 if test -n "$PTHREAD_CC"; then
9499 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9500 else
9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 for as_dir in $PATH
9503 do
9504 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=.
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9508 ac_cv_prog_PTHREAD_CC="$ac_prog"
9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 break 2
9511 fi
9512 done
9513 done
9514 IFS=$as_save_IFS
9515
9516 fi
9517 fi
9518 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9519 if test -n "$PTHREAD_CC"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9521 $as_echo "$PTHREAD_CC" >&6; }
9522 else
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9525 fi
9526
9527
9528 test -n "$PTHREAD_CC" && break
9529 done
9530 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9531 ;;
9532 esac ;; #(
9533 *) :
9534 ;;
9535 esac
9536 ;;
9537 esac
9538 fi
9539 fi
9540
9541 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9542
9543
9544
9545
9546
9547 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9548 if test "x$ax_pthread_ok" = "xyes"; then
9549 threads=yes
9550 :
9551 else
9552 ax_pthread_ok=no
9553 threads=no
9554 fi
9555 ac_ext=c
9556 ac_cpp='$CPP $CPPFLAGS'
9557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9560
9561
9562 fi
9563
9564 if test "$threads" = "yes"; then
9565
9566 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
9567
9568 fi
9569 if test "$threads" = "yes"; then
9570 THREADS_TRUE=
9571 THREADS_FALSE='#'
9572 else
9573 THREADS_TRUE='#'
9574 THREADS_FALSE=
9575 fi
9576
9577
9578 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
9579 if test "x$ac_cv_have_decl_basename" = xyes; then :
9580 ac_have_decl=1
9581 else
9582 ac_have_decl=0
9583 fi
9584
9585 cat >>confdefs.h <<_ACEOF
9586 #define HAVE_DECL_BASENAME $ac_have_decl
9587 _ACEOF
9588 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
9589 if test "x$ac_cv_have_decl_ffs" = xyes; then :
9590 ac_have_decl=1
9591 else
9592 ac_have_decl=0
9593 fi
9594
9595 cat >>confdefs.h <<_ACEOF
9596 #define HAVE_DECL_FFS $ac_have_decl
9597 _ACEOF
9598 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
9599 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
9600 ac_have_decl=1
9601 else
9602 ac_have_decl=0
9603 fi
9604
9605 cat >>confdefs.h <<_ACEOF
9606 #define HAVE_DECL_ASPRINTF $ac_have_decl
9607 _ACEOF
9608 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
9609 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
9610 ac_have_decl=1
9611 else
9612 ac_have_decl=0
9613 fi
9614
9615 cat >>confdefs.h <<_ACEOF
9616 #define HAVE_DECL_VASPRINTF $ac_have_decl
9617 _ACEOF
9618 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9619 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
9620 ac_have_decl=1
9621 else
9622 ac_have_decl=0
9623 fi
9624
9625 cat >>confdefs.h <<_ACEOF
9626 #define HAVE_DECL_SNPRINTF $ac_have_decl
9627 _ACEOF
9628 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9629 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
9630 ac_have_decl=1
9631 else
9632 ac_have_decl=0
9633 fi
9634
9635 cat >>confdefs.h <<_ACEOF
9636 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9637 _ACEOF
9638 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
9639 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
9640 ac_have_decl=1
9641 else
9642 ac_have_decl=0
9643 fi
9644
9645 cat >>confdefs.h <<_ACEOF
9646 #define HAVE_DECL_STRVERSCMP $ac_have_decl
9647 _ACEOF
9648
9649
9650 save_CFLAGS="$CFLAGS"
9651 CFLAGS="$CFLAGS -Werror -gpubnames"
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654 int i;
9655 _ACEOF
9656 if ac_fn_c_try_compile "$LINENO"; then :
9657 have_pubnames=yes
9658 else
9659 have_pubnames=no
9660 fi
9661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9662 CFLAGS="$save_CFLAGS"
9663 if test "$have_pubnames" = "yes"; then
9664 HAVE_PUBNAMES_TRUE=
9665 HAVE_PUBNAMES_FALSE='#'
9666 else
9667 HAVE_PUBNAMES_TRUE='#'
9668 HAVE_PUBNAMES_FALSE=
9669 fi
9670
9671
9672 save_CFLAGS="$CFLAGS"
9673 CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9676 int i;
9677 _ACEOF
9678 if ac_fn_c_try_compile "$LINENO"; then :
9679 have_no_use_linker_plugin=yes
9680 else
9681 have_no_use_linker_plugin=no
9682 fi
9683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9684 CFLAGS="$save_CFLAGS"
9685 if test "$have_no_use_linker_plugin" = "yes"; then
9686 HAVE_NO_USE_LINKER_PLUGIN_TRUE=
9687 HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
9688 else
9689 HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
9690 HAVE_NO_USE_LINKER_PLUGIN_FALSE=
9691 fi
9692
9693
9694 ac_ext=cpp
9695 ac_cpp='$CXXCPP $CPPFLAGS'
9696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9699
9700
9701
9702 ac_ext=cpp
9703 ac_cpp='$CXXCPP $CPPFLAGS'
9704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9708 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9709 if test -z "$CXXCPP"; then
9710 if ${ac_cv_prog_CXXCPP+:} false; then :
9711 $as_echo_n "(cached) " >&6
9712 else
9713 # Double quotes because CXXCPP needs to be expanded
9714 for CXXCPP in "$CXX -E" "/lib/cpp"
9715 do
9716 ac_preproc_ok=false
9717 for ac_cxx_preproc_warn_flag in '' yes
9718 do
9719 # Use a header file that comes with gcc, so configuring glibc
9720 # with a fresh cross-compiler works.
9721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9722 # <limits.h> exists even on freestanding compilers.
9723 # On the NeXT, cc -E runs the code through the compiler's parser,
9724 # not just through cpp. "Syntax error" is here to catch this case.
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h. */
9727 #ifdef __STDC__
9728 # include <limits.h>
9729 #else
9730 # include <assert.h>
9731 #endif
9732 Syntax error
9733 _ACEOF
9734 if ac_fn_cxx_try_cpp "$LINENO"; then :
9735
9736 else
9737 # Broken: fails on valid input.
9738 continue
9739 fi
9740 rm -f conftest.err conftest.i conftest.$ac_ext
9741
9742 # OK, works on sane cases. Now check whether nonexistent headers
9743 # can be detected and how.
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9746 #include <ac_nonexistent.h>
9747 _ACEOF
9748 if ac_fn_cxx_try_cpp "$LINENO"; then :
9749 # Broken: success on invalid input.
9750 continue
9751 else
9752 # Passes both tests.
9753 ac_preproc_ok=:
9754 break
9755 fi
9756 rm -f conftest.err conftest.i conftest.$ac_ext
9757
9758 done
9759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9760 rm -f conftest.i conftest.err conftest.$ac_ext
9761 if $ac_preproc_ok; then :
9762 break
9763 fi
9764
9765 done
9766 ac_cv_prog_CXXCPP=$CXXCPP
9767
9768 fi
9769 CXXCPP=$ac_cv_prog_CXXCPP
9770 else
9771 ac_cv_prog_CXXCPP=$CXXCPP
9772 fi
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9774 $as_echo "$CXXCPP" >&6; }
9775 ac_preproc_ok=false
9776 for ac_cxx_preproc_warn_flag in '' yes
9777 do
9778 # Use a header file that comes with gcc, so configuring glibc
9779 # with a fresh cross-compiler works.
9780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9781 # <limits.h> exists even on freestanding compilers.
9782 # On the NeXT, cc -E runs the code through the compiler's parser,
9783 # not just through cpp. "Syntax error" is here to catch this case.
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9786 #ifdef __STDC__
9787 # include <limits.h>
9788 #else
9789 # include <assert.h>
9790 #endif
9791 Syntax error
9792 _ACEOF
9793 if ac_fn_cxx_try_cpp "$LINENO"; then :
9794
9795 else
9796 # Broken: fails on valid input.
9797 continue
9798 fi
9799 rm -f conftest.err conftest.i conftest.$ac_ext
9800
9801 # OK, works on sane cases. Now check whether nonexistent headers
9802 # can be detected and how.
9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9804 /* end confdefs.h. */
9805 #include <ac_nonexistent.h>
9806 _ACEOF
9807 if ac_fn_cxx_try_cpp "$LINENO"; then :
9808 # Broken: success on invalid input.
9809 continue
9810 else
9811 # Passes both tests.
9812 ac_preproc_ok=:
9813 break
9814 fi
9815 rm -f conftest.err conftest.i conftest.$ac_ext
9816
9817 done
9818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9819 rm -f conftest.i conftest.err conftest.$ac_ext
9820 if $ac_preproc_ok; then :
9821
9822 else
9823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9825 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
9826 See \`config.log' for more details" "$LINENO" 5; }
9827 fi
9828
9829 ac_ext=cpp
9830 ac_cpp='$CXXCPP $CPPFLAGS'
9831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9834
9835
9836 for ac_header in unordered_set unordered_map
9837 do :
9838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9841 cat >>confdefs.h <<_ACEOF
9842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9843 _ACEOF
9844
9845 fi
9846
9847 done
9848
9849 for ac_header in tr1/unordered_set tr1/unordered_map
9850 do :
9851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9852 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9853 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9854 cat >>confdefs.h <<_ACEOF
9855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9856 _ACEOF
9857
9858 fi
9859
9860 done
9861
9862 for ac_header in ext/hash_map ext/hash_set
9863 do :
9864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9865 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9866 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9867 cat >>confdefs.h <<_ACEOF
9868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9869 _ACEOF
9870
9871 fi
9872
9873 done
9874
9875 for ac_header in byteswap.h
9876 do :
9877 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
9878 if test "x$ac_cv_header_byteswap_h" = xyes; then :
9879 cat >>confdefs.h <<_ACEOF
9880 #define HAVE_BYTESWAP_H 1
9881 _ACEOF
9882
9883 fi
9884
9885 done
9886
9887
9888 ac_fn_cxx_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
9889 "
9890 if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
9891 ac_have_decl=1
9892 else
9893 ac_have_decl=0
9894 fi
9895
9896 cat >>confdefs.h <<_ACEOF
9897 #define HAVE_DECL_BSWAP_16 $ac_have_decl
9898 _ACEOF
9899 ac_fn_cxx_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
9900 "
9901 if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
9902 ac_have_decl=1
9903 else
9904 ac_have_decl=0
9905 fi
9906
9907 cat >>confdefs.h <<_ACEOF
9908 #define HAVE_DECL_BSWAP_32 $ac_have_decl
9909 _ACEOF
9910 ac_fn_cxx_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
9911 "
9912 if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
9913 ac_have_decl=1
9914 else
9915 ac_have_decl=0
9916 fi
9917
9918 cat >>confdefs.h <<_ACEOF
9919 #define HAVE_DECL_BSWAP_64 $ac_have_decl
9920 _ACEOF
9921
9922
9923 for ac_header in windows.h
9924 do :
9925 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9926 if test "x$ac_cv_header_windows_h" = xyes; then :
9927 cat >>confdefs.h <<_ACEOF
9928 #define HAVE_WINDOWS_H 1
9929 _ACEOF
9930
9931 fi
9932
9933 done
9934
9935 for ac_header in dlfcn.h
9936 do :
9937 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9938 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9939 cat >>confdefs.h <<_ACEOF
9940 #define HAVE_DLFCN_H 1
9941 _ACEOF
9942
9943 fi
9944
9945 done
9946
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9948 $as_echo_n "checking for library containing dlopen... " >&6; }
9949 if ${ac_cv_search_dlopen+:} false; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 ac_func_search_save_LIBS=$LIBS
9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9955
9956 /* Override any GCC internal prototype to avoid an error.
9957 Use char because int might match the return type of a GCC
9958 builtin and then its argument prototype would still apply. */
9959 #ifdef __cplusplus
9960 extern "C"
9961 #endif
9962 char dlopen ();
9963 int
9964 main ()
9965 {
9966 return dlopen ();
9967 ;
9968 return 0;
9969 }
9970 _ACEOF
9971 for ac_lib in '' dl dld; do
9972 if test -z "$ac_lib"; then
9973 ac_res="none required"
9974 else
9975 ac_res=-l$ac_lib
9976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9977 fi
9978 if ac_fn_cxx_try_link "$LINENO"; then :
9979 ac_cv_search_dlopen=$ac_res
9980 fi
9981 rm -f core conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext
9983 if ${ac_cv_search_dlopen+:} false; then :
9984 break
9985 fi
9986 done
9987 if ${ac_cv_search_dlopen+:} false; then :
9988
9989 else
9990 ac_cv_search_dlopen=no
9991 fi
9992 rm conftest.$ac_ext
9993 LIBS=$ac_func_search_save_LIBS
9994 fi
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9996 $as_echo "$ac_cv_search_dlopen" >&6; }
9997 ac_res=$ac_cv_search_dlopen
9998 if test "$ac_res" != no; then :
9999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10000
10001 fi
10002
10003 case "$ac_cv_search_dlopen" in
10004 no*) DLOPEN_LIBS="";;
10005 *) DLOPEN_LIBS="$ac_cv_search_dlopen";;
10006 esac
10007
10008
10009 for ac_func in mallinfo mallinfo2 posix_fallocate fallocate readv sysconf times mkdtemp
10010 do :
10011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10012 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10013 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10014 cat >>confdefs.h <<_ACEOF
10015 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10016 _ACEOF
10017
10018 fi
10019 done
10020
10021 ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
10022 if test "x$ac_cv_have_decl_basename" = xyes; then :
10023 ac_have_decl=1
10024 else
10025 ac_have_decl=0
10026 fi
10027
10028 cat >>confdefs.h <<_ACEOF
10029 #define HAVE_DECL_BASENAME $ac_have_decl
10030 _ACEOF
10031 ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10032 if test "x$ac_cv_have_decl_ffs" = xyes; then :
10033 ac_have_decl=1
10034 else
10035 ac_have_decl=0
10036 fi
10037
10038 cat >>confdefs.h <<_ACEOF
10039 #define HAVE_DECL_FFS $ac_have_decl
10040 _ACEOF
10041 ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10042 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
10043 ac_have_decl=1
10044 else
10045 ac_have_decl=0
10046 fi
10047
10048 cat >>confdefs.h <<_ACEOF
10049 #define HAVE_DECL_ASPRINTF $ac_have_decl
10050 _ACEOF
10051 ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10052 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
10053 ac_have_decl=1
10054 else
10055 ac_have_decl=0
10056 fi
10057
10058 cat >>confdefs.h <<_ACEOF
10059 #define HAVE_DECL_VASPRINTF $ac_have_decl
10060 _ACEOF
10061 ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10062 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
10063 ac_have_decl=1
10064 else
10065 ac_have_decl=0
10066 fi
10067
10068 cat >>confdefs.h <<_ACEOF
10069 #define HAVE_DECL_SNPRINTF $ac_have_decl
10070 _ACEOF
10071 ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10072 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
10073 ac_have_decl=1
10074 else
10075 ac_have_decl=0
10076 fi
10077
10078 cat >>confdefs.h <<_ACEOF
10079 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10080 _ACEOF
10081 ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10082 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
10083 ac_have_decl=1
10084 else
10085 ac_have_decl=0
10086 fi
10087
10088 cat >>confdefs.h <<_ACEOF
10089 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10090 _ACEOF
10091 ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
10092 if test "x$ac_cv_have_decl_strndup" = xyes; then :
10093 ac_have_decl=1
10094 else
10095 ac_have_decl=0
10096 fi
10097
10098 cat >>confdefs.h <<_ACEOF
10099 #define HAVE_DECL_STRNDUP $ac_have_decl
10100 _ACEOF
10101 ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
10102 if test "x$ac_cv_have_decl_memmem" = xyes; then :
10103 ac_have_decl=1
10104 else
10105 ac_have_decl=0
10106 fi
10107
10108 cat >>confdefs.h <<_ACEOF
10109 #define HAVE_DECL_MEMMEM $ac_have_decl
10110 _ACEOF
10111
10112
10113 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
10114 # at link time with some versions of GCC.
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
10116 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
10117 if ${gold_cv_unordered_map_rehash+:} false; then :
10118 $as_echo_n "(cached) " >&6
10119 else
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10122
10123 #include <tr1/unordered_map>
10124 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
10125
10126 int
10127 main ()
10128 {
10129
10130 ;
10131 return 0;
10132 }
10133 _ACEOF
10134 if ac_fn_cxx_try_link "$LINENO"; then :
10135 gold_cv_unordered_map_rehash=yes
10136 else
10137 gold_cv_unordered_map_rehash=no
10138 fi
10139 rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
10141 fi
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
10143 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
10144 if test "$gold_cv_unordered_map_rehash" = "yes"; then
10145
10146 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
10147
10148 fi
10149
10150 # Use of tr1/unordered_map with off_t as a key is not supported on GCC
10151 # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
10153 $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
10154 if ${gold_cv_hash_off_t+:} false; then :
10155 $as_echo_n "(cached) " >&6
10156 else
10157 CXXFLAGS_hold=$CXXFLAGS
10158 CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10161
10162 #include <sys/types.h>
10163 #include <tr1/unordered_map>
10164 std::tr1::hash<off_t> h;
10165
10166 _ACEOF
10167 if ac_fn_cxx_try_compile "$LINENO"; then :
10168 gold_cv_hash_off_t=yes
10169 else
10170 gold_cv_hash_off_t=no
10171 fi
10172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10173 CXXFLAGS=$CXXFLAGS_hold
10174 fi
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
10176 $as_echo "$gold_cv_hash_off_t" >&6; }
10177 if test "$gold_cv_hash_off_t" = "yes"; then
10178
10179 $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
10180
10181 fi
10182
10183 # gcc 4.3.0 doesn't recognize the printf attribute on a template
10184 # function. Check for that. This is gcc bug 35546. This test can
10185 # probably be removed after the bug has been fixed for a while.
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
10187 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
10188 if ${gold_cv_template_attribute+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10193
10194 template<typename T> extern void foo(const char*, ...)
10195 __attribute__ ((__format__ (__printf__, 1, 2)));
10196 template<typename T> void foo(const char* format, ...) {}
10197 void bar() { foo<int>("%s\n", "foo"); }
10198
10199 _ACEOF
10200 if ac_fn_cxx_try_compile "$LINENO"; then :
10201 gold_cv_template_attribute=yes
10202 else
10203 gold_cv_template_attribute=no
10204 fi
10205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10206 fi
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
10208 $as_echo "$gold_cv_template_attribute" >&6; }
10209 if test "$gold_cv_template_attribute" = "yes"; then
10210
10211 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
10212
10213 fi
10214
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
10216 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
10217 if ${gold_cv_stat_st_mtim+:} false; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10222
10223 #include <sys/stat.h>
10224 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
10225
10226 int
10227 main ()
10228 {
10229
10230 ;
10231 return 0;
10232 }
10233 _ACEOF
10234 if ac_fn_cxx_try_compile "$LINENO"; then :
10235 gold_cv_stat_st_mtim=yes
10236 else
10237 gold_cv_stat_st_mtim=no
10238 fi
10239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10240 fi
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
10242 $as_echo "$gold_cv_stat_st_mtim" >&6; }
10243 if test "$gold_cv_stat_st_mtim" = "yes"; then
10244
10245 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
10246
10247 fi
10248
10249 ac_ext=c
10250 ac_cpp='$CPP $CPPFLAGS'
10251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10254
10255
10256 for ac_header in locale.h
10257 do :
10258 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
10259 if test "x$ac_cv_header_locale_h" = xyes; then :
10260 cat >>confdefs.h <<_ACEOF
10261 #define HAVE_LOCALE_H 1
10262 _ACEOF
10263
10264 fi
10265
10266 done
10267
10268 for ac_func in setlocale
10269 do :
10270 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10271 if test "x$ac_cv_func_setlocale" = xyes; then :
10272 cat >>confdefs.h <<_ACEOF
10273 #define HAVE_SETLOCALE 1
10274 _ACEOF
10275
10276 fi
10277 done
10278
10279
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10281 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10282 if ${am_cv_val_LC_MESSAGES+:} false; then :
10283 $as_echo_n "(cached) " >&6
10284 else
10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h. */
10287 #include <locale.h>
10288 int
10289 main ()
10290 {
10291 return LC_MESSAGES
10292 ;
10293 return 0;
10294 }
10295 _ACEOF
10296 if ac_fn_c_try_link "$LINENO"; then :
10297 am_cv_val_LC_MESSAGES=yes
10298 else
10299 am_cv_val_LC_MESSAGES=no
10300 fi
10301 rm -f core conftest.err conftest.$ac_objext \
10302 conftest$ac_exeext conftest.$ac_ext
10303 fi
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10305 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10306 if test $am_cv_val_LC_MESSAGES = yes; then
10307
10308 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10309
10310 fi
10311
10312
10313
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10315 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10316 # Check whether --enable-maintainer-mode was given.
10317 if test "${enable_maintainer_mode+set}" = set; then :
10318 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10319 else
10320 USE_MAINTAINER_MODE=no
10321 fi
10322
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10324 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10325 if test $USE_MAINTAINER_MODE = yes; then
10326 MAINTAINER_MODE_TRUE=
10327 MAINTAINER_MODE_FALSE='#'
10328 else
10329 MAINTAINER_MODE_TRUE='#'
10330 MAINTAINER_MODE_FALSE=
10331 fi
10332
10333 MAINT=$MAINTAINER_MODE_TRUE
10334
10335
10336
10337 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
10338
10339 cat >confcache <<\_ACEOF
10340 # This file is a shell script that caches the results of configure
10341 # tests run on this system so they can be shared between configure
10342 # scripts and configure runs, see configure's option --config-cache.
10343 # It is not useful on other systems. If it contains results you don't
10344 # want to keep, you may remove or edit it.
10345 #
10346 # config.status only pays attention to the cache file if you give it
10347 # the --recheck option to rerun configure.
10348 #
10349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10351 # following values.
10352
10353 _ACEOF
10354
10355 # The following way of writing the cache mishandles newlines in values,
10356 # but we know of no workaround that is simple, portable, and efficient.
10357 # So, we kill variables containing newlines.
10358 # Ultrix sh set writes to stderr and can't be redirected directly,
10359 # and sets the high bit in the cache file unless we assign to the vars.
10360 (
10361 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10362 eval ac_val=\$$ac_var
10363 case $ac_val in #(
10364 *${as_nl}*)
10365 case $ac_var in #(
10366 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10368 esac
10369 case $ac_var in #(
10370 _ | IFS | as_nl) ;; #(
10371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10372 *) { eval $ac_var=; unset $ac_var;} ;;
10373 esac ;;
10374 esac
10375 done
10376
10377 (set) 2>&1 |
10378 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10379 *${as_nl}ac_space=\ *)
10380 # `set' does not quote correctly, so add quotes: double-quote
10381 # substitution turns \\\\ into \\, and sed turns \\ into \.
10382 sed -n \
10383 "s/'/'\\\\''/g;
10384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10385 ;; #(
10386 *)
10387 # `set' quotes correctly as required by POSIX, so do not add quotes.
10388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10389 ;;
10390 esac |
10391 sort
10392 ) |
10393 sed '
10394 /^ac_cv_env_/b end
10395 t clear
10396 :clear
10397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10398 t end
10399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10400 :end' >>confcache
10401 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10402 if test -w "$cache_file"; then
10403 if test "x$cache_file" != "x/dev/null"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10405 $as_echo "$as_me: updating cache $cache_file" >&6;}
10406 if test ! -f "$cache_file" || test -h "$cache_file"; then
10407 cat confcache >"$cache_file"
10408 else
10409 case $cache_file in #(
10410 */* | ?:*)
10411 mv -f confcache "$cache_file"$$ &&
10412 mv -f "$cache_file"$$ "$cache_file" ;; #(
10413 *)
10414 mv -f confcache "$cache_file" ;;
10415 esac
10416 fi
10417 fi
10418 else
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10420 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10421 fi
10422 fi
10423 rm -f confcache
10424
10425 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10426 # Let make expand exec_prefix.
10427 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10428
10429 DEFS=-DHAVE_CONFIG_H
10430
10431 ac_libobjs=
10432 ac_ltlibobjs=
10433 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10434 # 1. Remove the extension, and $U if already installed.
10435 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10436 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10437 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10438 # will be set to the directory where LIBOBJS objects are built.
10439 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10440 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10441 done
10442 LIBOBJS=$ac_libobjs
10443
10444 LTLIBOBJS=$ac_ltlibobjs
10445
10446
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10448 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10449 if test -n "$am_sleep_pid"; then
10450 # Hide warnings about reused PIDs.
10451 wait $am_sleep_pid 2>/dev/null
10452 fi
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10454 $as_echo "done" >&6; }
10455 if test -n "$EXEEXT"; then
10456 am__EXEEXT_TRUE=
10457 am__EXEEXT_FALSE='#'
10458 else
10459 am__EXEEXT_TRUE='#'
10460 am__EXEEXT_FALSE=
10461 fi
10462
10463 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10464 as_fn_error $? "conditional \"AMDEP\" was never defined.
10465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10466 fi
10467 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10468 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10470 fi
10471 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
10472 as_fn_error $? "conditional \"PLUGINS\" was never defined.
10473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10474 fi
10475 if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
10476 as_fn_error $? "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
10477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10478 fi
10479 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
10480 as_fn_error $? "conditional \"DEFAULT_TARGET_ARM\" was never defined.
10481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10482 fi
10483 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
10484 as_fn_error $? "conditional \"DEFAULT_TARGET_I386\" was never defined.
10485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10486 fi
10487 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
10488 as_fn_error $? "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
10489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10490 fi
10491 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
10492 as_fn_error $? "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
10493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10494 fi
10495 if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
10496 as_fn_error $? "conditional \"DEFAULT_TARGET_S390\" was never defined.
10497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10498 fi
10499 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
10500 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
10501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10502 fi
10503 if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
10504 as_fn_error $? "conditional \"DEFAULT_TARGET_X32\" was never defined.
10505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10506 fi
10507 if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
10508 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
10509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10510 fi
10511 if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
10512 as_fn_error $? "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
10513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10514 fi
10515 if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
10516 as_fn_error $? "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
10517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10518 fi
10519 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10520 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10522 fi
10523 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10524 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
10525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10526 fi
10527
10528 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
10529 as_fn_error $? "conditional \"NATIVE_LINKER\" was never defined.
10530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10531 fi
10532 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
10533 as_fn_error $? "conditional \"GCC\" was never defined.
10534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10535 fi
10536 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
10537 as_fn_error $? "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
10538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10539 fi
10540 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
10541 as_fn_error $? "conditional \"HAVE_STATIC\" was never defined.
10542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10543 fi
10544 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
10545 as_fn_error $? "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
10546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10547 fi
10548 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
10549 as_fn_error $? "conditional \"MCMODEL_MEDIUM\" was never defined.
10550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10551 fi
10552 if test -z "${GCC9_TRUE}" && test -z "${GCC9_FALSE}"; then
10553 as_fn_error $? "conditional \"GCC9\" was never defined.
10554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10555 fi
10556 if test -z "${CFLAGS_CF_PROTECTION_TRUE}" && test -z "${CFLAGS_CF_PROTECTION_FALSE}"; then
10557 as_fn_error $? "conditional \"CFLAGS_CF_PROTECTION\" was never defined.
10558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10559 fi
10560 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
10561 as_fn_error $? "conditional \"TLS\" was never defined.
10562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10563 fi
10564 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
10565 as_fn_error $? "conditional \"STATIC_TLS\" was never defined.
10566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10567 fi
10568 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
10569 as_fn_error $? "conditional \"OMP_SUPPORT\" was never defined.
10570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10571 fi
10572 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
10573 as_fn_error $? "conditional \"TLS_GNU2_DIALECT\" was never defined.
10574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10575 fi
10576 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
10577 as_fn_error $? "conditional \"TLS_DESCRIPTORS\" was never defined.
10578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10579 fi
10580 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
10581 as_fn_error $? "conditional \"IFUNC\" was never defined.
10582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10583 fi
10584 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
10585 as_fn_error $? "conditional \"IFUNC_STATIC\" was never defined.
10586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10587 fi
10588 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
10589 as_fn_error $? "conditional \"THREADS\" was never defined.
10590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10591 fi
10592 if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
10593 as_fn_error $? "conditional \"HAVE_PUBNAMES\" was never defined.
10594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10595 fi
10596 if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
10597 as_fn_error $? "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
10598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10599 fi
10600 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10601 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10603 fi
10604
10605 : "${CONFIG_STATUS=./config.status}"
10606 ac_write_fail=0
10607 ac_clean_files_save=$ac_clean_files
10608 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10610 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10611 as_write_fail=0
10612 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10613 #! $SHELL
10614 # Generated by $as_me.
10615 # Run this file to recreate the current configuration.
10616 # Compiler output produced by configure, useful for debugging
10617 # configure, is in config.log if it exists.
10618
10619 debug=false
10620 ac_cs_recheck=false
10621 ac_cs_silent=false
10622
10623 SHELL=\${CONFIG_SHELL-$SHELL}
10624 export SHELL
10625 _ASEOF
10626 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10627 ## -------------------- ##
10628 ## M4sh Initialization. ##
10629 ## -------------------- ##
10630
10631 # Be more Bourne compatible
10632 DUALCASE=1; export DUALCASE # for MKS sh
10633 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10634 emulate sh
10635 NULLCMD=:
10636 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10637 # is contrary to our usage. Disable this feature.
10638 alias -g '${1+"$@"}'='"$@"'
10639 setopt NO_GLOB_SUBST
10640 else
10641 case `(set -o) 2>/dev/null` in #(
10642 *posix*) :
10643 set -o posix ;; #(
10644 *) :
10645 ;;
10646 esac
10647 fi
10648
10649
10650 as_nl='
10651 '
10652 export as_nl
10653 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10654 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10655 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10656 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10657 # Prefer a ksh shell builtin over an external printf program on Solaris,
10658 # but without wasting forks for bash or zsh.
10659 if test -z "$BASH_VERSION$ZSH_VERSION" \
10660 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10661 as_echo='print -r --'
10662 as_echo_n='print -rn --'
10663 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10664 as_echo='printf %s\n'
10665 as_echo_n='printf %s'
10666 else
10667 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10668 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10669 as_echo_n='/usr/ucb/echo -n'
10670 else
10671 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10672 as_echo_n_body='eval
10673 arg=$1;
10674 case $arg in #(
10675 *"$as_nl"*)
10676 expr "X$arg" : "X\\(.*\\)$as_nl";
10677 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10678 esac;
10679 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10680 '
10681 export as_echo_n_body
10682 as_echo_n='sh -c $as_echo_n_body as_echo'
10683 fi
10684 export as_echo_body
10685 as_echo='sh -c $as_echo_body as_echo'
10686 fi
10687
10688 # The user is always right.
10689 if test "${PATH_SEPARATOR+set}" != set; then
10690 PATH_SEPARATOR=:
10691 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10692 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10693 PATH_SEPARATOR=';'
10694 }
10695 fi
10696
10697
10698 # IFS
10699 # We need space, tab and new line, in precisely that order. Quoting is
10700 # there to prevent editors from complaining about space-tab.
10701 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10702 # splitting by setting IFS to empty value.)
10703 IFS=" "" $as_nl"
10704
10705 # Find who we are. Look in the path if we contain no directory separator.
10706 as_myself=
10707 case $0 in #((
10708 *[\\/]* ) as_myself=$0 ;;
10709 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710 for as_dir in $PATH
10711 do
10712 IFS=$as_save_IFS
10713 test -z "$as_dir" && as_dir=.
10714 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10715 done
10716 IFS=$as_save_IFS
10717
10718 ;;
10719 esac
10720 # We did not find ourselves, most probably we were run as `sh COMMAND'
10721 # in which case we are not to be found in the path.
10722 if test "x$as_myself" = x; then
10723 as_myself=$0
10724 fi
10725 if test ! -f "$as_myself"; then
10726 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10727 exit 1
10728 fi
10729
10730 # Unset variables that we do not need and which cause bugs (e.g. in
10731 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10732 # suppresses any "Segmentation fault" message there. '((' could
10733 # trigger a bug in pdksh 5.2.14.
10734 for as_var in BASH_ENV ENV MAIL MAILPATH
10735 do eval test x\${$as_var+set} = xset \
10736 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10737 done
10738 PS1='$ '
10739 PS2='> '
10740 PS4='+ '
10741
10742 # NLS nuisances.
10743 LC_ALL=C
10744 export LC_ALL
10745 LANGUAGE=C
10746 export LANGUAGE
10747
10748 # CDPATH.
10749 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10750
10751
10752 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10753 # ----------------------------------------
10754 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10755 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10756 # script with STATUS, using 1 if that was 0.
10757 as_fn_error ()
10758 {
10759 as_status=$1; test $as_status -eq 0 && as_status=1
10760 if test "$4"; then
10761 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10762 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10763 fi
10764 $as_echo "$as_me: error: $2" >&2
10765 as_fn_exit $as_status
10766 } # as_fn_error
10767
10768
10769 # as_fn_set_status STATUS
10770 # -----------------------
10771 # Set $? to STATUS, without forking.
10772 as_fn_set_status ()
10773 {
10774 return $1
10775 } # as_fn_set_status
10776
10777 # as_fn_exit STATUS
10778 # -----------------
10779 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10780 as_fn_exit ()
10781 {
10782 set +e
10783 as_fn_set_status $1
10784 exit $1
10785 } # as_fn_exit
10786
10787 # as_fn_unset VAR
10788 # ---------------
10789 # Portably unset VAR.
10790 as_fn_unset ()
10791 {
10792 { eval $1=; unset $1;}
10793 }
10794 as_unset=as_fn_unset
10795 # as_fn_append VAR VALUE
10796 # ----------------------
10797 # Append the text in VALUE to the end of the definition contained in VAR. Take
10798 # advantage of any shell optimizations that allow amortized linear growth over
10799 # repeated appends, instead of the typical quadratic growth present in naive
10800 # implementations.
10801 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10802 eval 'as_fn_append ()
10803 {
10804 eval $1+=\$2
10805 }'
10806 else
10807 as_fn_append ()
10808 {
10809 eval $1=\$$1\$2
10810 }
10811 fi # as_fn_append
10812
10813 # as_fn_arith ARG...
10814 # ------------------
10815 # Perform arithmetic evaluation on the ARGs, and store the result in the
10816 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10817 # must be portable across $(()) and expr.
10818 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10819 eval 'as_fn_arith ()
10820 {
10821 as_val=$(( $* ))
10822 }'
10823 else
10824 as_fn_arith ()
10825 {
10826 as_val=`expr "$@" || test $? -eq 1`
10827 }
10828 fi # as_fn_arith
10829
10830
10831 if expr a : '\(a\)' >/dev/null 2>&1 &&
10832 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10833 as_expr=expr
10834 else
10835 as_expr=false
10836 fi
10837
10838 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10839 as_basename=basename
10840 else
10841 as_basename=false
10842 fi
10843
10844 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10845 as_dirname=dirname
10846 else
10847 as_dirname=false
10848 fi
10849
10850 as_me=`$as_basename -- "$0" ||
10851 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10852 X"$0" : 'X\(//\)$' \| \
10853 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10854 $as_echo X/"$0" |
10855 sed '/^.*\/\([^/][^/]*\)\/*$/{
10856 s//\1/
10857 q
10858 }
10859 /^X\/\(\/\/\)$/{
10860 s//\1/
10861 q
10862 }
10863 /^X\/\(\/\).*/{
10864 s//\1/
10865 q
10866 }
10867 s/.*/./; q'`
10868
10869 # Avoid depending upon Character Ranges.
10870 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10871 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10872 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10873 as_cr_digits='0123456789'
10874 as_cr_alnum=$as_cr_Letters$as_cr_digits
10875
10876 ECHO_C= ECHO_N= ECHO_T=
10877 case `echo -n x` in #(((((
10878 -n*)
10879 case `echo 'xy\c'` in
10880 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10881 xy) ECHO_C='\c';;
10882 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10883 ECHO_T=' ';;
10884 esac;;
10885 *)
10886 ECHO_N='-n';;
10887 esac
10888
10889 rm -f conf$$ conf$$.exe conf$$.file
10890 if test -d conf$$.dir; then
10891 rm -f conf$$.dir/conf$$.file
10892 else
10893 rm -f conf$$.dir
10894 mkdir conf$$.dir 2>/dev/null
10895 fi
10896 if (echo >conf$$.file) 2>/dev/null; then
10897 if ln -s conf$$.file conf$$ 2>/dev/null; then
10898 as_ln_s='ln -s'
10899 # ... but there are two gotchas:
10900 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10901 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10902 # In both cases, we have to default to `cp -pR'.
10903 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10904 as_ln_s='cp -pR'
10905 elif ln conf$$.file conf$$ 2>/dev/null; then
10906 as_ln_s=ln
10907 else
10908 as_ln_s='cp -pR'
10909 fi
10910 else
10911 as_ln_s='cp -pR'
10912 fi
10913 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10914 rmdir conf$$.dir 2>/dev/null
10915
10916
10917 # as_fn_mkdir_p
10918 # -------------
10919 # Create "$as_dir" as a directory, including parents if necessary.
10920 as_fn_mkdir_p ()
10921 {
10922
10923 case $as_dir in #(
10924 -*) as_dir=./$as_dir;;
10925 esac
10926 test -d "$as_dir" || eval $as_mkdir_p || {
10927 as_dirs=
10928 while :; do
10929 case $as_dir in #(
10930 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10931 *) as_qdir=$as_dir;;
10932 esac
10933 as_dirs="'$as_qdir' $as_dirs"
10934 as_dir=`$as_dirname -- "$as_dir" ||
10935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10936 X"$as_dir" : 'X\(//\)[^/]' \| \
10937 X"$as_dir" : 'X\(//\)$' \| \
10938 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10939 $as_echo X"$as_dir" |
10940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10941 s//\1/
10942 q
10943 }
10944 /^X\(\/\/\)[^/].*/{
10945 s//\1/
10946 q
10947 }
10948 /^X\(\/\/\)$/{
10949 s//\1/
10950 q
10951 }
10952 /^X\(\/\).*/{
10953 s//\1/
10954 q
10955 }
10956 s/.*/./; q'`
10957 test -d "$as_dir" && break
10958 done
10959 test -z "$as_dirs" || eval "mkdir $as_dirs"
10960 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10961
10962
10963 } # as_fn_mkdir_p
10964 if mkdir -p . 2>/dev/null; then
10965 as_mkdir_p='mkdir -p "$as_dir"'
10966 else
10967 test -d ./-p && rmdir ./-p
10968 as_mkdir_p=false
10969 fi
10970
10971
10972 # as_fn_executable_p FILE
10973 # -----------------------
10974 # Test if FILE is an executable regular file.
10975 as_fn_executable_p ()
10976 {
10977 test -f "$1" && test -x "$1"
10978 } # as_fn_executable_p
10979 as_test_x='test -x'
10980 as_executable_p=as_fn_executable_p
10981
10982 # Sed expression to map a string onto a valid CPP name.
10983 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10984
10985 # Sed expression to map a string onto a valid variable name.
10986 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10987
10988
10989 exec 6>&1
10990 ## ----------------------------------- ##
10991 ## Main body of $CONFIG_STATUS script. ##
10992 ## ----------------------------------- ##
10993 _ASEOF
10994 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10995
10996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10997 # Save the log message, to keep $0 and so on meaningful, and to
10998 # report actual input values of CONFIG_FILES etc. instead of their
10999 # values after options handling.
11000 ac_log="
11001 This file was extended by gold $as_me 0.1, which was
11002 generated by GNU Autoconf 2.69. Invocation command line was
11003
11004 CONFIG_FILES = $CONFIG_FILES
11005 CONFIG_HEADERS = $CONFIG_HEADERS
11006 CONFIG_LINKS = $CONFIG_LINKS
11007 CONFIG_COMMANDS = $CONFIG_COMMANDS
11008 $ $0 $@
11009
11010 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11011 "
11012
11013 _ACEOF
11014
11015 case $ac_config_files in *"
11016 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11017 esac
11018
11019 case $ac_config_headers in *"
11020 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11021 esac
11022
11023
11024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11025 # Files that config.status was made for.
11026 config_files="$ac_config_files"
11027 config_headers="$ac_config_headers"
11028 config_commands="$ac_config_commands"
11029
11030 _ACEOF
11031
11032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11033 ac_cs_usage="\
11034 \`$as_me' instantiates files and other configuration actions
11035 from templates according to the current configuration. Unless the files
11036 and actions are specified as TAGs, all are instantiated by default.
11037
11038 Usage: $0 [OPTION]... [TAG]...
11039
11040 -h, --help print this help, then exit
11041 -V, --version print version number and configuration settings, then exit
11042 --config print configuration, then exit
11043 -q, --quiet, --silent
11044 do not print progress messages
11045 -d, --debug don't remove temporary files
11046 --recheck update $as_me by reconfiguring in the same conditions
11047 --file=FILE[:TEMPLATE]
11048 instantiate the configuration file FILE
11049 --header=FILE[:TEMPLATE]
11050 instantiate the configuration header FILE
11051
11052 Configuration files:
11053 $config_files
11054
11055 Configuration headers:
11056 $config_headers
11057
11058 Configuration commands:
11059 $config_commands
11060
11061 Report bugs to the package provider."
11062
11063 _ACEOF
11064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11065 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11066 ac_cs_version="\\
11067 gold config.status 0.1
11068 configured by $0, generated by GNU Autoconf 2.69,
11069 with options \\"\$ac_cs_config\\"
11070
11071 Copyright (C) 2012 Free Software Foundation, Inc.
11072 This config.status script is free software; the Free Software Foundation
11073 gives unlimited permission to copy, distribute and modify it."
11074
11075 ac_pwd='$ac_pwd'
11076 srcdir='$srcdir'
11077 INSTALL='$INSTALL'
11078 MKDIR_P='$MKDIR_P'
11079 AWK='$AWK'
11080 test -n "\$AWK" || AWK=awk
11081 _ACEOF
11082
11083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11084 # The default lists apply if the user does not specify any file.
11085 ac_need_defaults=:
11086 while test $# != 0
11087 do
11088 case $1 in
11089 --*=?*)
11090 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11091 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11092 ac_shift=:
11093 ;;
11094 --*=)
11095 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11096 ac_optarg=
11097 ac_shift=:
11098 ;;
11099 *)
11100 ac_option=$1
11101 ac_optarg=$2
11102 ac_shift=shift
11103 ;;
11104 esac
11105
11106 case $ac_option in
11107 # Handling of the options.
11108 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11109 ac_cs_recheck=: ;;
11110 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11111 $as_echo "$ac_cs_version"; exit ;;
11112 --config | --confi | --conf | --con | --co | --c )
11113 $as_echo "$ac_cs_config"; exit ;;
11114 --debug | --debu | --deb | --de | --d | -d )
11115 debug=: ;;
11116 --file | --fil | --fi | --f )
11117 $ac_shift
11118 case $ac_optarg in
11119 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11120 '') as_fn_error $? "missing file argument" ;;
11121 esac
11122 as_fn_append CONFIG_FILES " '$ac_optarg'"
11123 ac_need_defaults=false;;
11124 --header | --heade | --head | --hea )
11125 $ac_shift
11126 case $ac_optarg in
11127 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11128 esac
11129 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11130 ac_need_defaults=false;;
11131 --he | --h)
11132 # Conflict between --help and --header
11133 as_fn_error $? "ambiguous option: \`$1'
11134 Try \`$0 --help' for more information.";;
11135 --help | --hel | -h )
11136 $as_echo "$ac_cs_usage"; exit ;;
11137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11138 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11139 ac_cs_silent=: ;;
11140
11141 # This is an error.
11142 -*) as_fn_error $? "unrecognized option: \`$1'
11143 Try \`$0 --help' for more information." ;;
11144
11145 *) as_fn_append ac_config_targets " $1"
11146 ac_need_defaults=false ;;
11147
11148 esac
11149 shift
11150 done
11151
11152 ac_configure_extra_args=
11153
11154 if $ac_cs_silent; then
11155 exec 6>/dev/null
11156 ac_configure_extra_args="$ac_configure_extra_args --silent"
11157 fi
11158
11159 _ACEOF
11160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11161 if \$ac_cs_recheck; then
11162 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11163 shift
11164 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11165 CONFIG_SHELL='$SHELL'
11166 export CONFIG_SHELL
11167 exec "\$@"
11168 fi
11169
11170 _ACEOF
11171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11172 exec 5>>config.log
11173 {
11174 echo
11175 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11176 ## Running $as_me. ##
11177 _ASBOX
11178 $as_echo "$ac_log"
11179 } >&5
11180
11181 _ACEOF
11182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11183 #
11184 # INIT-COMMANDS
11185 #
11186 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11187 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11188 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11189 # from automake.
11190 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11191 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11192 LINGUAS="${LINGUAS-%UNSET%}"
11193
11194
11195 _ACEOF
11196
11197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11198
11199 # Handling of arguments.
11200 for ac_config_target in $ac_config_targets
11201 do
11202 case $ac_config_target in
11203 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11204 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11205 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11206 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11207 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11208 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11209
11210 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11211 esac
11212 done
11213
11214
11215 # If the user did not use the arguments to specify the items to instantiate,
11216 # then the envvar interface is used. Set only those that are not.
11217 # We use the long form for the default assignment because of an extremely
11218 # bizarre bug on SunOS 4.1.3.
11219 if $ac_need_defaults; then
11220 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11221 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11222 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11223 fi
11224
11225 # Have a temporary directory for convenience. Make it in the build tree
11226 # simply because there is no reason against having it here, and in addition,
11227 # creating and moving files from /tmp can sometimes cause problems.
11228 # Hook for its removal unless debugging.
11229 # Note that there is a small window in which the directory will not be cleaned:
11230 # after its creation but before its name has been assigned to `$tmp'.
11231 $debug ||
11232 {
11233 tmp= ac_tmp=
11234 trap 'exit_status=$?
11235 : "${ac_tmp:=$tmp}"
11236 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11237 ' 0
11238 trap 'as_fn_exit 1' 1 2 13 15
11239 }
11240 # Create a (secure) tmp directory for tmp files.
11241
11242 {
11243 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11244 test -d "$tmp"
11245 } ||
11246 {
11247 tmp=./conf$$-$RANDOM
11248 (umask 077 && mkdir "$tmp")
11249 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11250 ac_tmp=$tmp
11251
11252 # Set up the scripts for CONFIG_FILES section.
11253 # No need to generate them if there are no CONFIG_FILES.
11254 # This happens for instance with `./config.status config.h'.
11255 if test -n "$CONFIG_FILES"; then
11256
11257
11258 ac_cr=`echo X | tr X '\015'`
11259 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11260 # But we know of no other shell where ac_cr would be empty at this
11261 # point, so we can use a bashism as a fallback.
11262 if test "x$ac_cr" = x; then
11263 eval ac_cr=\$\'\\r\'
11264 fi
11265 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11266 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11267 ac_cs_awk_cr='\\r'
11268 else
11269 ac_cs_awk_cr=$ac_cr
11270 fi
11271
11272 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11273 _ACEOF
11274
11275
11276 {
11277 echo "cat >conf$$subs.awk <<_ACEOF" &&
11278 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11279 echo "_ACEOF"
11280 } >conf$$subs.sh ||
11281 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11282 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11283 ac_delim='%!_!# '
11284 for ac_last_try in false false false false false :; do
11285 . ./conf$$subs.sh ||
11286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11287
11288 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11289 if test $ac_delim_n = $ac_delim_num; then
11290 break
11291 elif $ac_last_try; then
11292 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11293 else
11294 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11295 fi
11296 done
11297 rm -f conf$$subs.sh
11298
11299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11300 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11301 _ACEOF
11302 sed -n '
11303 h
11304 s/^/S["/; s/!.*/"]=/
11305 p
11306 g
11307 s/^[^!]*!//
11308 :repl
11309 t repl
11310 s/'"$ac_delim"'$//
11311 t delim
11312 :nl
11313 h
11314 s/\(.\{148\}\)..*/\1/
11315 t more1
11316 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11317 p
11318 n
11319 b repl
11320 :more1
11321 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11322 p
11323 g
11324 s/.\{148\}//
11325 t nl
11326 :delim
11327 h
11328 s/\(.\{148\}\)..*/\1/
11329 t more2
11330 s/["\\]/\\&/g; s/^/"/; s/$/"/
11331 p
11332 b
11333 :more2
11334 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11335 p
11336 g
11337 s/.\{148\}//
11338 t delim
11339 ' <conf$$subs.awk | sed '
11340 /^[^""]/{
11341 N
11342 s/\n//
11343 }
11344 ' >>$CONFIG_STATUS || ac_write_fail=1
11345 rm -f conf$$subs.awk
11346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11347 _ACAWK
11348 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11349 for (key in S) S_is_set[key] = 1
11350 FS = "\a"
11351
11352 }
11353 {
11354 line = $ 0
11355 nfields = split(line, field, "@")
11356 substed = 0
11357 len = length(field[1])
11358 for (i = 2; i < nfields; i++) {
11359 key = field[i]
11360 keylen = length(key)
11361 if (S_is_set[key]) {
11362 value = S[key]
11363 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11364 len += length(value) + length(field[++i])
11365 substed = 1
11366 } else
11367 len += 1 + keylen
11368 }
11369
11370 print line
11371 }
11372
11373 _ACAWK
11374 _ACEOF
11375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11376 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11377 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11378 else
11379 cat
11380 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11381 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11382 _ACEOF
11383
11384 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11385 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11386 # trailing colons and then remove the whole line if VPATH becomes empty
11387 # (actually we leave an empty line to preserve line numbers).
11388 if test "x$srcdir" = x.; then
11389 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11390 h
11391 s///
11392 s/^/:/
11393 s/[ ]*$/:/
11394 s/:\$(srcdir):/:/g
11395 s/:\${srcdir}:/:/g
11396 s/:@srcdir@:/:/g
11397 s/^:*//
11398 s/:*$//
11399 x
11400 s/\(=[ ]*\).*/\1/
11401 G
11402 s/\n//
11403 s/^[^=]*=[ ]*$//
11404 }'
11405 fi
11406
11407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11408 fi # test -n "$CONFIG_FILES"
11409
11410 # Set up the scripts for CONFIG_HEADERS section.
11411 # No need to generate them if there are no CONFIG_HEADERS.
11412 # This happens for instance with `./config.status Makefile'.
11413 if test -n "$CONFIG_HEADERS"; then
11414 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11415 BEGIN {
11416 _ACEOF
11417
11418 # Transform confdefs.h into an awk script `defines.awk', embedded as
11419 # here-document in config.status, that substitutes the proper values into
11420 # config.h.in to produce config.h.
11421
11422 # Create a delimiter string that does not exist in confdefs.h, to ease
11423 # handling of long lines.
11424 ac_delim='%!_!# '
11425 for ac_last_try in false false :; do
11426 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11427 if test -z "$ac_tt"; then
11428 break
11429 elif $ac_last_try; then
11430 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11431 else
11432 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11433 fi
11434 done
11435
11436 # For the awk script, D is an array of macro values keyed by name,
11437 # likewise P contains macro parameters if any. Preserve backslash
11438 # newline sequences.
11439
11440 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11441 sed -n '
11442 s/.\{148\}/&'"$ac_delim"'/g
11443 t rset
11444 :rset
11445 s/^[ ]*#[ ]*define[ ][ ]*/ /
11446 t def
11447 d
11448 :def
11449 s/\\$//
11450 t bsnl
11451 s/["\\]/\\&/g
11452 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11453 D["\1"]=" \3"/p
11454 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11455 d
11456 :bsnl
11457 s/["\\]/\\&/g
11458 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11459 D["\1"]=" \3\\\\\\n"\\/p
11460 t cont
11461 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11462 t cont
11463 d
11464 :cont
11465 n
11466 s/.\{148\}/&'"$ac_delim"'/g
11467 t clear
11468 :clear
11469 s/\\$//
11470 t bsnlc
11471 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11472 d
11473 :bsnlc
11474 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11475 b cont
11476 ' <confdefs.h | sed '
11477 s/'"$ac_delim"'/"\\\
11478 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11479
11480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11481 for (key in D) D_is_set[key] = 1
11482 FS = "\a"
11483 }
11484 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11485 line = \$ 0
11486 split(line, arg, " ")
11487 if (arg[1] == "#") {
11488 defundef = arg[2]
11489 mac1 = arg[3]
11490 } else {
11491 defundef = substr(arg[1], 2)
11492 mac1 = arg[2]
11493 }
11494 split(mac1, mac2, "(") #)
11495 macro = mac2[1]
11496 prefix = substr(line, 1, index(line, defundef) - 1)
11497 if (D_is_set[macro]) {
11498 # Preserve the white space surrounding the "#".
11499 print prefix "define", macro P[macro] D[macro]
11500 next
11501 } else {
11502 # Replace #undef with comments. This is necessary, for example,
11503 # in the case of _POSIX_SOURCE, which is predefined and required
11504 # on some systems where configure will not decide to define it.
11505 if (defundef == "undef") {
11506 print "/*", prefix defundef, macro, "*/"
11507 next
11508 }
11509 }
11510 }
11511 { print }
11512 _ACAWK
11513 _ACEOF
11514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11515 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11516 fi # test -n "$CONFIG_HEADERS"
11517
11518
11519 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11520 shift
11521 for ac_tag
11522 do
11523 case $ac_tag in
11524 :[FHLC]) ac_mode=$ac_tag; continue;;
11525 esac
11526 case $ac_mode$ac_tag in
11527 :[FHL]*:*);;
11528 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11529 :[FH]-) ac_tag=-:-;;
11530 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11531 esac
11532 ac_save_IFS=$IFS
11533 IFS=:
11534 set x $ac_tag
11535 IFS=$ac_save_IFS
11536 shift
11537 ac_file=$1
11538 shift
11539
11540 case $ac_mode in
11541 :L) ac_source=$1;;
11542 :[FH])
11543 ac_file_inputs=
11544 for ac_f
11545 do
11546 case $ac_f in
11547 -) ac_f="$ac_tmp/stdin";;
11548 *) # Look for the file first in the build tree, then in the source tree
11549 # (if the path is not absolute). The absolute path cannot be DOS-style,
11550 # because $ac_f cannot contain `:'.
11551 test -f "$ac_f" ||
11552 case $ac_f in
11553 [\\/$]*) false;;
11554 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11555 esac ||
11556 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11557 esac
11558 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11559 as_fn_append ac_file_inputs " '$ac_f'"
11560 done
11561
11562 # Let's still pretend it is `configure' which instantiates (i.e., don't
11563 # use $as_me), people would be surprised to read:
11564 # /* config.h. Generated by config.status. */
11565 configure_input='Generated from '`
11566 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11567 `' by configure.'
11568 if test x"$ac_file" != x-; then
11569 configure_input="$ac_file. $configure_input"
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11571 $as_echo "$as_me: creating $ac_file" >&6;}
11572 fi
11573 # Neutralize special characters interpreted by sed in replacement strings.
11574 case $configure_input in #(
11575 *\&* | *\|* | *\\* )
11576 ac_sed_conf_input=`$as_echo "$configure_input" |
11577 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11578 *) ac_sed_conf_input=$configure_input;;
11579 esac
11580
11581 case $ac_tag in
11582 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11584 esac
11585 ;;
11586 esac
11587
11588 ac_dir=`$as_dirname -- "$ac_file" ||
11589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11590 X"$ac_file" : 'X\(//\)[^/]' \| \
11591 X"$ac_file" : 'X\(//\)$' \| \
11592 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11593 $as_echo X"$ac_file" |
11594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11595 s//\1/
11596 q
11597 }
11598 /^X\(\/\/\)[^/].*/{
11599 s//\1/
11600 q
11601 }
11602 /^X\(\/\/\)$/{
11603 s//\1/
11604 q
11605 }
11606 /^X\(\/\).*/{
11607 s//\1/
11608 q
11609 }
11610 s/.*/./; q'`
11611 as_dir="$ac_dir"; as_fn_mkdir_p
11612 ac_builddir=.
11613
11614 case "$ac_dir" in
11615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11616 *)
11617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11618 # A ".." for each directory in $ac_dir_suffix.
11619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11620 case $ac_top_builddir_sub in
11621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11623 esac ;;
11624 esac
11625 ac_abs_top_builddir=$ac_pwd
11626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11627 # for backward compatibility:
11628 ac_top_builddir=$ac_top_build_prefix
11629
11630 case $srcdir in
11631 .) # We are building in place.
11632 ac_srcdir=.
11633 ac_top_srcdir=$ac_top_builddir_sub
11634 ac_abs_top_srcdir=$ac_pwd ;;
11635 [\\/]* | ?:[\\/]* ) # Absolute name.
11636 ac_srcdir=$srcdir$ac_dir_suffix;
11637 ac_top_srcdir=$srcdir
11638 ac_abs_top_srcdir=$srcdir ;;
11639 *) # Relative name.
11640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11641 ac_top_srcdir=$ac_top_build_prefix$srcdir
11642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11643 esac
11644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11645
11646
11647 case $ac_mode in
11648 :F)
11649 #
11650 # CONFIG_FILE
11651 #
11652
11653 case $INSTALL in
11654 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11655 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11656 esac
11657 ac_MKDIR_P=$MKDIR_P
11658 case $MKDIR_P in
11659 [\\/$]* | ?:[\\/]* ) ;;
11660 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11661 esac
11662 _ACEOF
11663
11664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11665 # If the template does not know about datarootdir, expand it.
11666 # FIXME: This hack should be removed a few years after 2.60.
11667 ac_datarootdir_hack=; ac_datarootdir_seen=
11668 ac_sed_dataroot='
11669 /datarootdir/ {
11670 p
11671 q
11672 }
11673 /@datadir@/p
11674 /@docdir@/p
11675 /@infodir@/p
11676 /@localedir@/p
11677 /@mandir@/p'
11678 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11679 *datarootdir*) ac_datarootdir_seen=yes;;
11680 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11682 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11683 _ACEOF
11684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11685 ac_datarootdir_hack='
11686 s&@datadir@&$datadir&g
11687 s&@docdir@&$docdir&g
11688 s&@infodir@&$infodir&g
11689 s&@localedir@&$localedir&g
11690 s&@mandir@&$mandir&g
11691 s&\\\${datarootdir}&$datarootdir&g' ;;
11692 esac
11693 _ACEOF
11694
11695 # Neutralize VPATH when `$srcdir' = `.'.
11696 # Shell code in configure.ac might set extrasub.
11697 # FIXME: do we really want to maintain this feature?
11698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11699 ac_sed_extra="$ac_vpsub
11700 $extrasub
11701 _ACEOF
11702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11703 :t
11704 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11705 s|@configure_input@|$ac_sed_conf_input|;t t
11706 s&@top_builddir@&$ac_top_builddir_sub&;t t
11707 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11708 s&@srcdir@&$ac_srcdir&;t t
11709 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11710 s&@top_srcdir@&$ac_top_srcdir&;t t
11711 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11712 s&@builddir@&$ac_builddir&;t t
11713 s&@abs_builddir@&$ac_abs_builddir&;t t
11714 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11715 s&@INSTALL@&$ac_INSTALL&;t t
11716 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11717 $ac_datarootdir_hack
11718 "
11719 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11720 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11721
11722 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11723 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11724 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11725 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11727 which seems to be undefined. Please make sure it is defined" >&5
11728 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11729 which seems to be undefined. Please make sure it is defined" >&2;}
11730
11731 rm -f "$ac_tmp/stdin"
11732 case $ac_file in
11733 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11734 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11735 esac \
11736 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11737 ;;
11738 :H)
11739 #
11740 # CONFIG_HEADER
11741 #
11742 if test x"$ac_file" != x-; then
11743 {
11744 $as_echo "/* $configure_input */" \
11745 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11746 } >"$ac_tmp/config.h" \
11747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11748 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11750 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11751 else
11752 rm -f "$ac_file"
11753 mv "$ac_tmp/config.h" "$ac_file" \
11754 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11755 fi
11756 else
11757 $as_echo "/* $configure_input */" \
11758 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11759 || as_fn_error $? "could not create -" "$LINENO" 5
11760 fi
11761 # Compute "$ac_file"'s index in $config_headers.
11762 _am_arg="$ac_file"
11763 _am_stamp_count=1
11764 for _am_header in $config_headers :; do
11765 case $_am_header in
11766 $_am_arg | $_am_arg:* )
11767 break ;;
11768 * )
11769 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11770 esac
11771 done
11772 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11773 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11774 X"$_am_arg" : 'X\(//\)[^/]' \| \
11775 X"$_am_arg" : 'X\(//\)$' \| \
11776 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11777 $as_echo X"$_am_arg" |
11778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11779 s//\1/
11780 q
11781 }
11782 /^X\(\/\/\)[^/].*/{
11783 s//\1/
11784 q
11785 }
11786 /^X\(\/\/\)$/{
11787 s//\1/
11788 q
11789 }
11790 /^X\(\/\).*/{
11791 s//\1/
11792 q
11793 }
11794 s/.*/./; q'`/stamp-h$_am_stamp_count
11795 ;;
11796
11797 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11798 $as_echo "$as_me: executing $ac_file commands" >&6;}
11799 ;;
11800 esac
11801
11802
11803 case $ac_file$ac_mode in
11804 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11805 # Older Autoconf quotes --file arguments for eval, but not when files
11806 # are listed without --file. Let's play safe and only enable the eval
11807 # if we detect the quoting.
11808 case $CONFIG_FILES in
11809 *\'*) eval set x "$CONFIG_FILES" ;;
11810 *) set x $CONFIG_FILES ;;
11811 esac
11812 shift
11813 for mf
11814 do
11815 # Strip MF so we end up with the name of the file.
11816 mf=`echo "$mf" | sed -e 's/:.*$//'`
11817 # Check whether this is an Automake generated Makefile or not.
11818 # We used to match only the files named 'Makefile.in', but
11819 # some people rename them; so instead we look at the file content.
11820 # Grep'ing the first line is not enough: some people post-process
11821 # each Makefile.in and add a new line on top of each file to say so.
11822 # Grep'ing the whole file is not good either: AIX grep has a line
11823 # limit of 2048, but all sed's we know have understand at least 4000.
11824 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11825 dirpart=`$as_dirname -- "$mf" ||
11826 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11827 X"$mf" : 'X\(//\)[^/]' \| \
11828 X"$mf" : 'X\(//\)$' \| \
11829 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11830 $as_echo X"$mf" |
11831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11832 s//\1/
11833 q
11834 }
11835 /^X\(\/\/\)[^/].*/{
11836 s//\1/
11837 q
11838 }
11839 /^X\(\/\/\)$/{
11840 s//\1/
11841 q
11842 }
11843 /^X\(\/\).*/{
11844 s//\1/
11845 q
11846 }
11847 s/.*/./; q'`
11848 else
11849 continue
11850 fi
11851 # Extract the definition of DEPDIR, am__include, and am__quote
11852 # from the Makefile without running 'make'.
11853 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11854 test -z "$DEPDIR" && continue
11855 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11856 test -z "$am__include" && continue
11857 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11858 # Find all dependency output files, they are included files with
11859 # $(DEPDIR) in their names. We invoke sed twice because it is the
11860 # simplest approach to changing $(DEPDIR) to its actual value in the
11861 # expansion.
11862 for file in `sed -n "
11863 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11864 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11865 # Make sure the directory exists.
11866 test -f "$dirpart/$file" && continue
11867 fdir=`$as_dirname -- "$file" ||
11868 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11869 X"$file" : 'X\(//\)[^/]' \| \
11870 X"$file" : 'X\(//\)$' \| \
11871 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11872 $as_echo X"$file" |
11873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11874 s//\1/
11875 q
11876 }
11877 /^X\(\/\/\)[^/].*/{
11878 s//\1/
11879 q
11880 }
11881 /^X\(\/\/\)$/{
11882 s//\1/
11883 q
11884 }
11885 /^X\(\/\).*/{
11886 s//\1/
11887 q
11888 }
11889 s/.*/./; q'`
11890 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11891 # echo "creating $dirpart/$file"
11892 echo '# dummy' > "$dirpart/$file"
11893 done
11894 done
11895 }
11896 ;;
11897 "default-1":C)
11898 for ac_file in $CONFIG_FILES; do
11899 # Support "outfile[:infile[:infile...]]"
11900 case "$ac_file" in
11901 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11902 esac
11903 # PO directories have a Makefile.in generated from Makefile.in.in.
11904 case "$ac_file" in */Makefile.in)
11905 # Adjust a relative srcdir.
11906 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11907 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
11908 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11909 # In autoconf-2.13 it is called $ac_given_srcdir.
11910 # In autoconf-2.50 it is called $srcdir.
11911 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11912 case "$ac_given_srcdir" in
11913 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11914 /*) top_srcdir="$ac_given_srcdir" ;;
11915 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
11916 esac
11917 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11918 rm -f "$ac_dir/POTFILES"
11919 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11920 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11921 POMAKEFILEDEPS="POTFILES.in"
11922 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
11923 # on $ac_dir but don't depend on user-specified configuration
11924 # parameters.
11925 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11926 # The LINGUAS file contains the set of available languages.
11927 if test -n "$OBSOLETE_ALL_LINGUAS"; then
11928 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
11929 fi
11930 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11931 # Hide the ALL_LINGUAS assigment from automake.
11932 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11933 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11934 else
11935 # The set of available languages was given in configure.ac.
11936 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11937 fi
11938 case "$ac_given_srcdir" in
11939 .) srcdirpre= ;;
11940 *) srcdirpre='$(srcdir)/' ;;
11941 esac
11942 POFILES=
11943 GMOFILES=
11944 UPDATEPOFILES=
11945 DUMMYPOFILES=
11946 for lang in $ALL_LINGUAS; do
11947 POFILES="$POFILES $srcdirpre$lang.po"
11948 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11949 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11950 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11951 done
11952 # CATALOGS depends on both $ac_dir and the user's LINGUAS
11953 # environment variable.
11954 INST_LINGUAS=
11955 if test -n "$ALL_LINGUAS"; then
11956 for presentlang in $ALL_LINGUAS; do
11957 useit=no
11958 if test "%UNSET%" != "$LINGUAS"; then
11959 desiredlanguages="$LINGUAS"
11960 else
11961 desiredlanguages="$ALL_LINGUAS"
11962 fi
11963 for desiredlang in $desiredlanguages; do
11964 # Use the presentlang catalog if desiredlang is
11965 # a. equal to presentlang, or
11966 # b. a variant of presentlang (because in this case,
11967 # presentlang can be used as a fallback for messages
11968 # which are not translated in the desiredlang catalog).
11969 case "$desiredlang" in
11970 "$presentlang"*) useit=yes;;
11971 esac
11972 done
11973 if test $useit = yes; then
11974 INST_LINGUAS="$INST_LINGUAS $presentlang"
11975 fi
11976 done
11977 fi
11978 CATALOGS=
11979 if test -n "$INST_LINGUAS"; then
11980 for lang in $INST_LINGUAS; do
11981 CATALOGS="$CATALOGS $lang.gmo"
11982 done
11983 fi
11984 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11985 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"
11986 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11987 if test -f "$f"; then
11988 case "$f" in
11989 *.orig | *.bak | *~) ;;
11990 *) cat "$f" >> "$ac_dir/Makefile" ;;
11991 esac
11992 fi
11993 done
11994 fi
11995 ;;
11996 esac
11997 done ;;
11998
11999 esac
12000 done # for ac_tag
12001
12002
12003 as_fn_exit 0
12004 _ACEOF
12005 ac_clean_files=$ac_clean_files_save
12006
12007 test $ac_write_fail = 0 ||
12008 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12009
12010
12011 # configure is writing to config.log, and then calls config.status.
12012 # config.status does its own redirection, appending to config.log.
12013 # Unfortunately, on DOS this fails, as config.log is still kept open
12014 # by configure, so config.status won't be able to write to it; its
12015 # output is simply discarded. So we exec the FD to /dev/null,
12016 # effectively closing config.log, so it can be properly (re)opened and
12017 # appended to by config.status. When coming back to configure, we
12018 # need to make the FD available again.
12019 if test "$no_create" != yes; then
12020 ac_cs_success=:
12021 ac_config_status_args=
12022 test "$silent" = yes &&
12023 ac_config_status_args="$ac_config_status_args --quiet"
12024 exec 5>/dev/null
12025 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12026 exec 5>>config.log
12027 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12028 # would make configure fail if this is the last instruction.
12029 $ac_cs_success || as_fn_exit 1
12030 fi
12031 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12033 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12034 fi
12035