Add ChangeLog entries for previous commit.
[binutils-gdb.git] / gold / configure
blob199a739e7d1241fae4fd1be3666a574d57438538
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gold 0.1.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
174 esac
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; }
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 :
190 else
191 exitcode=1; echo positional parameters were not saved.
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
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
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
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
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
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."
272 exit 1
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
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
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 ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
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/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
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"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
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 ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
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 ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
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 ()
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
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
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
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
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
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/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
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
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 '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
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; }
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
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;;
510 ECHO_N='-n';;
511 esac
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
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'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
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
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
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'"
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'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
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`
566 # Initializations.
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=
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=''
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"
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
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 MCMODEL_MEDIUM_FALSE
669 MCMODEL_MEDIUM_TRUE
670 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
671 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
672 HAVE_STATIC_FALSE
673 HAVE_STATIC_TRUE
674 NATIVE_OR_CROSS_LINKER_FALSE
675 NATIVE_OR_CROSS_LINKER_TRUE
676 GCC_FALSE
677 GCC_TRUE
678 NATIVE_LINKER_FALSE
679 NATIVE_LINKER_TRUE
680 MSGMERGE
681 MSGFMT
682 MKINSTALLDIRS
683 CATOBJEXT
684 GENCAT
685 INSTOBJEXT
686 DATADIRNAME
687 CATALOGS
688 POSUB
689 GMSGFMT
690 XGETTEXT
691 INCINTL
692 LIBINTL_DEP
693 LIBINTL
694 USE_NLS
695 LN_S
696 RANLIB
697 YFLAGS
698 YACC
699 am__fastdepCXX_FALSE
700 am__fastdepCXX_TRUE
701 CXXDEPMODE
702 ac_ct_CXX
703 CXXFLAGS
706 TARGETOBJS
707 DEFAULT_TARGET
708 DEFAULT_TARGET_MIPS_FALSE
709 DEFAULT_TARGET_MIPS_TRUE
710 DEFAULT_TARGET_TILEGX_FALSE
711 DEFAULT_TARGET_TILEGX_TRUE
712 DEFAULT_TARGET_X86_64_OR_X32_FALSE
713 DEFAULT_TARGET_X86_64_OR_X32_TRUE
714 DEFAULT_TARGET_X32_FALSE
715 DEFAULT_TARGET_X32_TRUE
716 DEFAULT_TARGET_X86_64_FALSE
717 DEFAULT_TARGET_X86_64_TRUE
718 DEFAULT_TARGET_S390_FALSE
719 DEFAULT_TARGET_S390_TRUE
720 DEFAULT_TARGET_SPARC_FALSE
721 DEFAULT_TARGET_SPARC_TRUE
722 DEFAULT_TARGET_POWERPC_FALSE
723 DEFAULT_TARGET_POWERPC_TRUE
724 DEFAULT_TARGET_I386_FALSE
725 DEFAULT_TARGET_I386_TRUE
726 DEFAULT_TARGET_ARM_FALSE
727 DEFAULT_TARGET_ARM_TRUE
728 DEFAULT_TARGET_AARCH64_FALSE
729 DEFAULT_TARGET_AARCH64_TRUE
730 PLUGINS_FALSE
731 PLUGINS_TRUE
732 installed_linker
733 install_as_default
734 EGREP
735 GREP
737 am__fastdepCC_FALSE
738 am__fastdepCC_TRUE
739 CCDEPMODE
740 am__nodep
741 AMDEPBACKSLASH
742 AMDEP_FALSE
743 AMDEP_TRUE
744 am__quote
745 am__include
746 DEPDIR
747 OBJEXT
748 EXEEXT
749 ac_ct_CC
750 CPPFLAGS
751 LDFLAGS
752 CFLAGS
754 AM_BACKSLASH
755 AM_DEFAULT_VERBOSITY
756 AM_DEFAULT_V
757 AM_V
758 am__untar
759 am__tar
760 AMTAR
761 am__leading_dot
762 SET_MAKE
764 mkdir_p
765 MKDIR_P
766 INSTALL_STRIP_PROGRAM
767 STRIP
768 install_sh
769 MAKEINFO
770 AUTOHEADER
771 AUTOMAKE
772 AUTOCONF
773 ACLOCAL
774 VERSION
775 PACKAGE
776 CYGPATH_W
777 am__isrc
778 INSTALL_DATA
779 INSTALL_SCRIPT
780 INSTALL_PROGRAM
781 target_os
782 target_vendor
783 target_cpu
784 target
785 host_os
786 host_vendor
787 host_cpu
788 host
789 build_os
790 build_vendor
791 build_cpu
792 build
793 target_alias
794 host_alias
795 build_alias
796 LIBS
797 ECHO_T
798 ECHO_N
799 ECHO_C
800 DEFS
801 mandir
802 localedir
803 libdir
804 psdir
805 pdfdir
806 dvidir
807 htmldir
808 infodir
809 docdir
810 oldincludedir
811 includedir
812 localstatedir
813 sharedstatedir
814 sysconfdir
815 datadir
816 datarootdir
817 libexecdir
818 sbindir
819 bindir
820 program_transform_name
821 prefix
822 exec_prefix
823 PACKAGE_URL
824 PACKAGE_BUGREPORT
825 PACKAGE_STRING
826 PACKAGE_VERSION
827 PACKAGE_TARNAME
828 PACKAGE_NAME
829 PATH_SEPARATOR
830 SHELL'
831 ac_subst_files=''
832 ac_user_opts='
833 enable_option_checking
834 enable_silent_rules
835 enable_dependency_tracking
836 with_sysroot
837 enable_gold
838 enable_plugins
839 enable_relro
840 enable_targets
841 enable_default_hash_style
842 with_lib_path
843 enable_nls
844 enable_werror
845 enable_build_warnings
846 with_gold_ldflags
847 with_gold_ldadd
848 with_system_zlib
849 enable_threads
850 enable_maintainer_mode
852 ac_precious_vars='build_alias
853 host_alias
854 target_alias
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
862 CXXFLAGS
864 YACC
865 YFLAGS
866 CXXCPP'
869 # Initialize some variables set by options.
870 ac_init_help=
871 ac_init_version=false
872 ac_unrecognized_opts=
873 ac_unrecognized_sep=
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
876 cache_file=/dev/null
877 exec_prefix=NONE
878 no_create=
879 no_recursion=
880 prefix=NONE
881 program_prefix=NONE
882 program_suffix=NONE
883 program_transform_name=s,x,x,
884 silent=
885 site=
886 srcdir=
887 verbose=
888 x_includes=NONE
889 x_libraries=NONE
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir='${exec_prefix}/bin'
898 sbindir='${exec_prefix}/sbin'
899 libexecdir='${exec_prefix}/libexec'
900 datarootdir='${prefix}/share'
901 datadir='${datarootdir}'
902 sysconfdir='${prefix}/etc'
903 sharedstatedir='${prefix}/com'
904 localstatedir='${prefix}/var'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
908 infodir='${datarootdir}/info'
909 htmldir='${docdir}'
910 dvidir='${docdir}'
911 pdfdir='${docdir}'
912 psdir='${docdir}'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
917 ac_prev=
918 ac_dashdash=
919 for ac_option
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
924 ac_prev=
925 continue
928 case $ac_option in
929 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 *=) ac_optarg= ;;
931 *) ac_optarg=yes ;;
932 esac
934 # Accept the important Cygnus configure options, so we can diagnose typos.
936 case $ac_dashdash$ac_option in
938 ac_dashdash=yes ;;
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 ac_prev=bindir ;;
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 bindir=$ac_optarg ;;
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
957 --config-cache | -C)
958 cache_file=config.cache ;;
960 -datadir | --datadir | --datadi | --datad)
961 ac_prev=datadir ;;
962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
963 datadir=$ac_optarg ;;
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
972 -disable-* | --disable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=no ;;
988 -docdir | --docdir | --docdi | --doc | --do)
989 ac_prev=docdir ;;
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 docdir=$ac_optarg ;;
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 ac_prev=dvidir ;;
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 dvidir=$ac_optarg ;;
998 -enable-* | --enable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid feature name: $ac_useropt"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval enable_$ac_useropt=\$ac_optarg ;;
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1025 with_gas=yes ;;
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040 ac_prev=htmldir ;;
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042 | --ht=*)
1043 htmldir=$ac_optarg ;;
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1053 ac_prev=infodir ;;
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1057 -libdir | --libdir | --libdi | --libd)
1058 ac_prev=libdir ;;
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082 ac_prev=mandir ;;
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1088 with_fp=no ;;
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1092 no_create=yes ;;
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 no_recursion=yes ;;
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108 ac_prev=prefix ;;
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144 ac_prev=pdfdir ;;
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1148 -psdir | --psdir | --psdi | --psd | --ps)
1149 ac_prev=psdir ;;
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 psdir=$ac_optarg ;;
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1155 silent=yes ;;
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158 ac_prev=sbindir ;;
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160 | --sbi=* | --sb=*)
1161 sbindir=$ac_optarg ;;
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1166 | --sha | --sh)
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171 | --sha=* | --sh=*)
1172 sharedstatedir=$ac_optarg ;;
1174 -site | --site | --sit)
1175 ac_prev=site ;;
1176 -site=* | --site=* | --sit=*)
1177 site=$ac_optarg ;;
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180 ac_prev=srcdir ;;
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197 verbose=yes ;;
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1202 -with-* | --with-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error $? "invalid package name: $ac_useropt"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1211 "with_$ac_useropt"
1212 "*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=\$ac_optarg ;;
1218 -without-* | --without-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error $? "invalid package name: $ac_useropt"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1227 "with_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval with_$ac_useropt=no ;;
1234 --x)
1235 # Obsolete; use --with-x.
1236 with_x=yes ;;
1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239 | --x-incl | --x-inc | --x-in | --x-i)
1240 ac_prev=x_includes ;;
1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243 x_includes=$ac_optarg ;;
1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247 ac_prev=x_libraries ;;
1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250 x_libraries=$ac_optarg ;;
1252 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1253 Try \`$0 --help' for more information"
1256 *=*)
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 case $ac_envvar in #(
1260 '' | [0-9]* | *[!_$as_cr_alnum]* )
1261 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1262 esac
1263 eval $ac_envvar=\$ac_optarg
1264 export $ac_envvar ;;
1267 # FIXME: should be removed in autoconf 3.0.
1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1274 esac
1275 done
1277 if test -n "$ac_prev"; then
1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279 as_fn_error $? "missing argument to $ac_option"
1282 if test -n "$ac_unrecognized_opts"; then
1283 case $enable_option_checking in
1284 no) ;;
1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287 esac
1290 # Check all directory arguments for consistency.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
1296 eval ac_val=\$$ac_var
1297 # Remove trailing slashes.
1298 case $ac_val in
1299 */ )
1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\$ac_val;;
1302 esac
1303 # Be sure to have absolute directory names.
1304 case $ac_val in
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 esac
1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1309 done
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330 test "$silent" = yes && exec 6>/dev/null
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 as_fn_error $? "working directory cannot be determined"
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 as_fn_error $? "pwd does not report name of working directory"
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$as_myself" ||
1346 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350 $as_echo X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 s//\1/
1355 /^X\(\/\/\)[^/].*/{
1356 s//\1/
1359 /^X\(\/\/\)$/{
1360 s//\1/
1363 /^X\(\/\).*/{
1364 s//\1/
1367 s/.*/./; q'`
1368 srcdir=$ac_confdir
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 srcdir=..
1372 else
1373 ac_srcdir_defaulted=no
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 ac_abs_confdir=`(
1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1382 pwd)`
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385 srcdir=.
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1390 case $srcdir in
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 esac
1393 for ac_var in $ac_precious_vars; do
1394 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_env_${ac_var}_value=\$${ac_var}
1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 done
1401 # Report the --help message.
1403 if test "$ac_init_help" = "long"; then
1404 # Omit some internal or obsolete options to make the list less imposing.
1405 # This message is too long to be a string in the A/UX 3.1 sh.
1406 cat <<_ACEOF
1407 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE. See below for descriptions of some of the useful variables.
1414 Defaults for the options are specified in brackets.
1416 Configuration:
1417 -h, --help display this help and exit
1418 --help=short display options specific to this package
1419 --help=recursive display the short help of all the included packages
1420 -V, --version display version information and exit
1421 -q, --quiet, --silent do not print \`checking ...' messages
1422 --cache-file=FILE cache test results in FILE [disabled]
1423 -C, --config-cache alias for \`--cache-file=config.cache'
1424 -n, --no-create do not create output files
1425 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1427 Installation directories:
1428 --prefix=PREFIX install architecture-independent files in PREFIX
1429 [$ac_default_prefix]
1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1431 [PREFIX]
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1438 For better control, use the options below.
1440 Fine tuning of the installation directories:
1441 --bindir=DIR user executables [EPREFIX/bin]
1442 --sbindir=DIR system admin executables [EPREFIX/sbin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1447 --libdir=DIR object code libraries [EPREFIX/lib]
1448 --includedir=DIR C header files [PREFIX/include]
1449 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1452 --infodir=DIR info documentation [DATAROOTDIR/info]
1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1454 --mandir=DIR man documentation [DATAROOTDIR/man]
1455 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1456 --htmldir=DIR html documentation [DOCDIR]
1457 --dvidir=DIR dvi documentation [DOCDIR]
1458 --pdfdir=DIR pdf documentation [DOCDIR]
1459 --psdir=DIR ps documentation [DOCDIR]
1460 _ACEOF
1462 cat <<\_ACEOF
1464 Program names:
1465 --program-prefix=PREFIX prepend PREFIX to installed program names
1466 --program-suffix=SUFFIX append SUFFIX to installed program names
1467 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1469 System types:
1470 --build=BUILD configure for building on BUILD [guessed]
1471 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472 --target=TARGET configure for building compilers for TARGET [HOST]
1473 _ACEOF
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive ) echo "Configuration of gold 0.1:";;
1479 esac
1480 cat <<\_ACEOF
1482 Optional Features:
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --enable-silent-rules less verbose build output (undo: "make V=1")
1487 --disable-silent-rules verbose build output (undo: "make V=0")
1488 --enable-dependency-tracking
1489 do not reject slow dependency extractors
1490 --disable-dependency-tracking
1491 speeds up one-time build
1492 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1493 --enable-plugins Enable support for plugins
1494 --enable-relro enable -z relro in ELF linker by default
1495 --enable-targets alternative target configurations
1496 --enable-default-hash-style={sysv,gnu,both}
1497 use this default hash style
1498 --disable-nls do not use Native Language Support
1499 --enable-werror treat compile warnings as errors
1500 --enable-build-warnings enable build-time compiler warnings
1501 --enable-threads[=ARG] multi-threaded linking [ARG={auto,yes,no}]
1502 --enable-maintainer-mode
1503 enable make rules and dependencies not useful (and
1504 sometimes confusing) to the casual installer
1506 Optional Packages:
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-sysroot=DIR search for usr/lib et al within DIR
1510 --with-lib-path=dir1:dir2... set default LIB_PATH
1511 --with-gold-ldflags=FLAGS additional link flags for gold
1512 --with-gold-ldadd=LIBS additional libraries for gold
1513 --with-system-zlib use installed libz
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CPP C preprocessor
1524 CXX C++ compiler command
1525 CXXFLAGS C++ compiler flags
1526 YACC The `Yet Another Compiler Compiler' implementation to use.
1527 Defaults to the first program found out of: `bison -y', `byacc',
1528 `yacc'.
1529 YFLAGS The list of arguments that will be passed by default to $YACC.
1530 This script will default YFLAGS to the empty string to avoid a
1531 default value of `-d' given by some make applications.
1532 CXXCPP C++ preprocessor
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1537 Report bugs to the package provider.
1538 _ACEOF
1539 ac_status=$?
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
1548 ac_builddir=.
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1566 case $srcdir in
1567 .) # We are building in place.
1568 ac_srcdir=.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1590 else
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 fi || ac_status=$?
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1594 done
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599 cat <<\_ACEOF
1600 gold configure 0.1
1601 generated by GNU Autoconf 2.69
1603 Copyright (C) 2012 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606 _ACEOF
1607 exit
1610 ## ------------------------ ##
1611 ## Autoconf initialization. ##
1612 ## ------------------------ ##
1614 # ac_fn_c_try_compile LINENO
1615 # --------------------------
1616 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_compile ()
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 rm -f conftest.$ac_objext
1621 if { { ac_try="$ac_compile"
1622 case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_compile") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && {
1637 test -z "$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 } && test -s conftest.$ac_objext; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1645 ac_retval=1
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1650 } # ac_fn_c_try_compile
1652 # ac_fn_c_try_cpp LINENO
1653 # ----------------------
1654 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_cpp ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_cpp conftest.$ac_ext"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } > conftest.i && {
1674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 }; then :
1677 ac_retval=0
1678 else
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1682 ac_retval=1
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1687 } # ac_fn_c_try_cpp
1689 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1690 # -------------------------------------------------------
1691 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1692 # the include files in INCLUDES and setting the cache variable VAR
1693 # accordingly.
1694 ac_fn_c_check_header_mongrel ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if eval \${$3+:} false; then :
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \${$3+:} false; then :
1701 $as_echo_n "(cached) " >&6
1703 eval ac_res=\$$3
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1706 else
1707 # Is the header compilable?
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1709 $as_echo_n "checking $2 usability... " >&6; }
1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1713 #include <$2>
1714 _ACEOF
1715 if ac_fn_c_try_compile "$LINENO"; then :
1716 ac_header_compiler=yes
1717 else
1718 ac_header_compiler=no
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1722 $as_echo "$ac_header_compiler" >&6; }
1724 # Is the header present?
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1726 $as_echo_n "checking $2 presence... " >&6; }
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1729 #include <$2>
1730 _ACEOF
1731 if ac_fn_c_try_cpp "$LINENO"; then :
1732 ac_header_preproc=yes
1733 else
1734 ac_header_preproc=no
1736 rm -f conftest.err conftest.i conftest.$ac_ext
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1738 $as_echo "$ac_header_preproc" >&6; }
1740 # So? What about this header?
1741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1742 yes:no: )
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1744 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1746 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1748 no:yes:* )
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1750 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1752 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1754 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1756 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1760 esac
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 eval "$3=\$ac_header_compiler"
1768 eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 } # ac_fn_c_check_header_mongrel
1776 # ac_fn_c_try_run LINENO
1777 # ----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779 # that executables *can* be run.
1780 ac_fn_c_try_run ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if { { ac_try="$ac_link"
1784 case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>&5
1791 ac_status=$?
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794 { { case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_try") 2>&5
1801 ac_status=$?
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; }; }; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: program exited with status $ac_status" >&5
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1810 ac_retval=$ac_status
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1816 } # ac_fn_c_try_run
1818 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1819 # -------------------------------------------------------
1820 # Tests whether HEADER exists and can be compiled using the include files in
1821 # INCLUDES, setting the cache variable VAR accordingly.
1822 ac_fn_c_check_header_compile ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1829 else
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1833 #include <$2>
1834 _ACEOF
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836 eval "$3=yes"
1837 else
1838 eval "$3=no"
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 eval ac_res=\$$3
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 } # ac_fn_c_check_header_compile
1849 # ac_fn_c_try_link LINENO
1850 # -----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_link ()
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 rm -f conftest.$ac_objext conftest$ac_exeext
1856 if { { ac_try="$ac_link"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>conftest.err
1864 ac_status=$?
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && {
1872 test -z "$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1874 } && test -s conftest$ac_exeext && {
1875 test "$cross_compiling" = yes ||
1876 test -x conftest$ac_exeext
1877 }; then :
1878 ac_retval=0
1879 else
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1883 ac_retval=1
1885 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1886 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1887 # interfere with the next link command; also delete a directory that is
1888 # left behind by Apple's compiler. We do this before executing the actions.
1889 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status $ac_retval
1893 } # ac_fn_c_try_link
1895 # ac_fn_cxx_try_compile LINENO
1896 # ----------------------------
1897 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_cxx_try_compile ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 rm -f conftest.$ac_objext
1902 if { { ac_try="$ac_compile"
1903 case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_compile") 2>conftest.err
1910 ac_status=$?
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && {
1918 test -z "$ac_cxx_werror_flag" ||
1919 test ! -s conftest.err
1920 } && test -s conftest.$ac_objext; then :
1921 ac_retval=0
1922 else
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1926 ac_retval=1
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1931 } # ac_fn_cxx_try_compile
1933 # ac_fn_c_check_func LINENO FUNC VAR
1934 # ----------------------------------
1935 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1936 ac_fn_c_check_func ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1948 #define $2 innocuous_$2
1950 /* System header to define __stub macros and hopefully few prototypes,
1951 which can conflict with char $2 (); below.
1952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1953 <limits.h> exists even on freestanding compilers. */
1955 #ifdef __STDC__
1956 # include <limits.h>
1957 #else
1958 # include <assert.h>
1959 #endif
1961 #undef $2
1963 /* Override any GCC internal prototype to avoid an error.
1964 Use char because int might match the return type of a GCC
1965 builtin and then its argument prototype would still apply. */
1966 #ifdef __cplusplus
1967 extern "C"
1968 #endif
1969 char $2 ();
1970 /* The GNU C library defines this for functions which it implements
1971 to always fail with ENOSYS. Some functions are actually named
1972 something starting with __ and the normal name is an alias. */
1973 #if defined __stub_$2 || defined __stub___$2
1974 choke me
1975 #endif
1978 main ()
1980 return $2 ();
1982 return 0;
1984 _ACEOF
1985 if ac_fn_c_try_link "$LINENO"; then :
1986 eval "$3=yes"
1987 else
1988 eval "$3=no"
1990 rm -f core conftest.err conftest.$ac_objext \
1991 conftest$ac_exeext conftest.$ac_ext
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_func
2000 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2001 # ---------------------------------------------
2002 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2003 # accordingly.
2004 ac_fn_c_check_decl ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 as_decl_name=`echo $2|sed 's/ *(.*//'`
2008 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2010 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2018 main ()
2020 #ifndef $as_decl_name
2021 #ifdef __cplusplus
2022 (void) $as_decl_use;
2023 #else
2024 (void) $as_decl_name;
2025 #endif
2026 #endif
2029 return 0;
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 eval "$3=yes"
2034 else
2035 eval "$3=no"
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 eval ac_res=\$$3
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 } # ac_fn_c_check_decl
2046 # ac_fn_cxx_try_cpp LINENO
2047 # ------------------------
2048 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2049 ac_fn_cxx_try_cpp ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 if { { ac_try="$ac_cpp conftest.$ac_ext"
2053 case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2060 ac_status=$?
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } > conftest.i && {
2068 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2069 test ! -s conftest.err
2070 }; then :
2071 ac_retval=0
2072 else
2073 $as_echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2076 ac_retval=1
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 as_fn_set_status $ac_retval
2081 } # ac_fn_cxx_try_cpp
2083 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2084 # ---------------------------------------------------------
2085 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2086 # the include files in INCLUDES and setting the cache variable VAR
2087 # accordingly.
2088 ac_fn_cxx_check_header_mongrel ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 if eval \${$3+:} false; then :
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 $as_echo_n "checking for $2... " >&6; }
2094 if eval \${$3+:} false; then :
2095 $as_echo_n "(cached) " >&6
2097 eval ac_res=\$$3
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100 else
2101 # Is the header compilable?
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2103 $as_echo_n "checking $2 usability... " >&6; }
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2107 #include <$2>
2108 _ACEOF
2109 if ac_fn_cxx_try_compile "$LINENO"; then :
2110 ac_header_compiler=yes
2111 else
2112 ac_header_compiler=no
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2116 $as_echo "$ac_header_compiler" >&6; }
2118 # Is the header present?
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2120 $as_echo_n "checking $2 presence... " >&6; }
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2123 #include <$2>
2124 _ACEOF
2125 if ac_fn_cxx_try_cpp "$LINENO"; then :
2126 ac_header_preproc=yes
2127 else
2128 ac_header_preproc=no
2130 rm -f conftest.err conftest.i conftest.$ac_ext
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2132 $as_echo "$ac_header_preproc" >&6; }
2134 # So? What about this header?
2135 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2136 yes:no: )
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2138 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2140 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2142 no:yes:* )
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2144 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2146 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2148 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2150 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2152 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2154 esac
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2159 else
2160 eval "$3=\$ac_header_compiler"
2162 eval ac_res=\$$3
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 } # ac_fn_cxx_check_header_mongrel
2170 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2171 # -----------------------------------------------
2172 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2173 # accordingly.
2174 ac_fn_cxx_check_decl ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 as_decl_name=`echo $2|sed 's/ *(.*//'`
2178 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2180 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2181 if eval \${$3+:} false; then :
2182 $as_echo_n "(cached) " >&6
2183 else
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2188 main ()
2190 #ifndef $as_decl_name
2191 #ifdef __cplusplus
2192 (void) $as_decl_use;
2193 #else
2194 (void) $as_decl_name;
2195 #endif
2196 #endif
2199 return 0;
2201 _ACEOF
2202 if ac_fn_cxx_try_compile "$LINENO"; then :
2203 eval "$3=yes"
2204 else
2205 eval "$3=no"
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 eval ac_res=\$$3
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211 $as_echo "$ac_res" >&6; }
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214 } # ac_fn_cxx_check_decl
2216 # ac_fn_cxx_try_link LINENO
2217 # -------------------------
2218 # Try to link conftest.$ac_ext, and return whether this succeeded.
2219 ac_fn_cxx_try_link ()
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 rm -f conftest.$ac_objext conftest$ac_exeext
2223 if { { ac_try="$ac_link"
2224 case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227 esac
2228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_link") 2>conftest.err
2231 ac_status=$?
2232 if test -s conftest.err; then
2233 grep -v '^ *+' conftest.err >conftest.er1
2234 cat conftest.er1 >&5
2235 mv -f conftest.er1 conftest.err
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } && {
2239 test -z "$ac_cxx_werror_flag" ||
2240 test ! -s conftest.err
2241 } && test -s conftest$ac_exeext && {
2242 test "$cross_compiling" = yes ||
2243 test -x conftest$ac_exeext
2244 }; then :
2245 ac_retval=0
2246 else
2247 $as_echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2250 ac_retval=1
2252 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2253 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2254 # interfere with the next link command; also delete a directory that is
2255 # left behind by Apple's compiler. We do this before executing the actions.
2256 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258 as_fn_set_status $ac_retval
2260 } # ac_fn_cxx_try_link
2262 # ac_fn_cxx_check_func LINENO FUNC VAR
2263 # ------------------------------------
2264 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2265 ac_fn_cxx_check_func ()
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2269 $as_echo_n "checking for $2... " >&6; }
2270 if eval \${$3+:} false; then :
2271 $as_echo_n "(cached) " >&6
2272 else
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2275 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2277 #define $2 innocuous_$2
2279 /* System header to define __stub macros and hopefully few prototypes,
2280 which can conflict with char $2 (); below.
2281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2282 <limits.h> exists even on freestanding compilers. */
2284 #ifdef __STDC__
2285 # include <limits.h>
2286 #else
2287 # include <assert.h>
2288 #endif
2290 #undef $2
2292 /* Override any GCC internal prototype to avoid an error.
2293 Use char because int might match the return type of a GCC
2294 builtin and then its argument prototype would still apply. */
2295 #ifdef __cplusplus
2296 extern "C"
2297 #endif
2298 char $2 ();
2299 /* The GNU C library defines this for functions which it implements
2300 to always fail with ENOSYS. Some functions are actually named
2301 something starting with __ and the normal name is an alias. */
2302 #if defined __stub_$2 || defined __stub___$2
2303 choke me
2304 #endif
2307 main ()
2309 return $2 ();
2311 return 0;
2313 _ACEOF
2314 if ac_fn_cxx_try_link "$LINENO"; then :
2315 eval "$3=yes"
2316 else
2317 eval "$3=no"
2319 rm -f core conftest.err conftest.$ac_objext \
2320 conftest$ac_exeext conftest.$ac_ext
2322 eval ac_res=\$$3
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324 $as_echo "$ac_res" >&6; }
2325 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327 } # ac_fn_cxx_check_func
2328 cat >config.log <<_ACEOF
2329 This file contains any messages produced by compilers while
2330 running configure, to aid debugging if configure makes a mistake.
2332 It was created by gold $as_me 0.1, which was
2333 generated by GNU Autoconf 2.69. Invocation command line was
2335 $ $0 $@
2337 _ACEOF
2338 exec 5>>config.log
2340 cat <<_ASUNAME
2341 ## --------- ##
2342 ## Platform. ##
2343 ## --------- ##
2345 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2346 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2347 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2348 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2349 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2351 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2352 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2354 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2355 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2356 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2357 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2358 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2359 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2360 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2362 _ASUNAME
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 $as_echo "PATH: $as_dir"
2370 done
2371 IFS=$as_save_IFS
2373 } >&5
2375 cat >&5 <<_ACEOF
2378 ## ----------- ##
2379 ## Core tests. ##
2380 ## ----------- ##
2382 _ACEOF
2385 # Keep a trace of the command line.
2386 # Strip out --no-create and --no-recursion so they do not pile up.
2387 # Strip out --silent because we don't want to record it for future runs.
2388 # Also quote any args containing shell meta-characters.
2389 # Make two passes to allow for proper duplicate-argument suppression.
2390 ac_configure_args=
2391 ac_configure_args0=
2392 ac_configure_args1=
2393 ac_must_keep_next=false
2394 for ac_pass in 1 2
2396 for ac_arg
2398 case $ac_arg in
2399 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2401 | -silent | --silent | --silen | --sile | --sil)
2402 continue ;;
2403 *\'*)
2404 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2405 esac
2406 case $ac_pass in
2407 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2409 as_fn_append ac_configure_args1 " '$ac_arg'"
2410 if test $ac_must_keep_next = true; then
2411 ac_must_keep_next=false # Got value, back to normal.
2412 else
2413 case $ac_arg in
2414 *=* | --config-cache | -C | -disable-* | --disable-* \
2415 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2416 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2417 | -with-* | --with-* | -without-* | --without-* | --x)
2418 case "$ac_configure_args0 " in
2419 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2420 esac
2422 -* ) ac_must_keep_next=true ;;
2423 esac
2425 as_fn_append ac_configure_args " '$ac_arg'"
2427 esac
2428 done
2429 done
2430 { ac_configure_args0=; unset ac_configure_args0;}
2431 { ac_configure_args1=; unset ac_configure_args1;}
2433 # When interrupted or exit'd, cleanup temporary files, and complete
2434 # config.log. We remove comments because anyway the quotes in there
2435 # would cause problems or look ugly.
2436 # WARNING: Use '\'' to represent an apostrophe within the trap.
2437 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2438 trap 'exit_status=$?
2439 # Save into config.log some information that might help in debugging.
2441 echo
2443 $as_echo "## ---------------- ##
2444 ## Cache variables. ##
2445 ## ---------------- ##"
2446 echo
2447 # The following way of writing the cache mishandles newlines in values,
2449 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2450 eval ac_val=\$$ac_var
2451 case $ac_val in #(
2452 *${as_nl}*)
2453 case $ac_var in #(
2454 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2455 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2456 esac
2457 case $ac_var in #(
2458 _ | IFS | as_nl) ;; #(
2459 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2460 *) { eval $ac_var=; unset $ac_var;} ;;
2461 esac ;;
2462 esac
2463 done
2464 (set) 2>&1 |
2465 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2466 *${as_nl}ac_space=\ *)
2467 sed -n \
2468 "s/'\''/'\''\\\\'\'''\''/g;
2469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2470 ;; #(
2472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2474 esac |
2475 sort
2477 echo
2479 $as_echo "## ----------------- ##
2480 ## Output variables. ##
2481 ## ----------------- ##"
2482 echo
2483 for ac_var in $ac_subst_vars
2485 eval ac_val=\$$ac_var
2486 case $ac_val in
2487 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2488 esac
2489 $as_echo "$ac_var='\''$ac_val'\''"
2490 done | sort
2491 echo
2493 if test -n "$ac_subst_files"; then
2494 $as_echo "## ------------------- ##
2495 ## File substitutions. ##
2496 ## ------------------- ##"
2497 echo
2498 for ac_var in $ac_subst_files
2500 eval ac_val=\$$ac_var
2501 case $ac_val in
2502 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2503 esac
2504 $as_echo "$ac_var='\''$ac_val'\''"
2505 done | sort
2506 echo
2509 if test -s confdefs.h; then
2510 $as_echo "## ----------- ##
2511 ## confdefs.h. ##
2512 ## ----------- ##"
2513 echo
2514 cat confdefs.h
2515 echo
2517 test "$ac_signal" != 0 &&
2518 $as_echo "$as_me: caught signal $ac_signal"
2519 $as_echo "$as_me: exit $exit_status"
2520 } >&5
2521 rm -f core *.core core.conftest.* &&
2522 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2523 exit $exit_status
2525 for ac_signal in 1 2 13 15; do
2526 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2527 done
2528 ac_signal=0
2530 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2531 rm -f -r conftest* confdefs.h
2533 $as_echo "/* confdefs.h */" > confdefs.h
2535 # Predefined preprocessor variables.
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_NAME "$PACKAGE_NAME"
2539 _ACEOF
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2543 _ACEOF
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2547 _ACEOF
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_STRING "$PACKAGE_STRING"
2551 _ACEOF
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2555 _ACEOF
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_URL "$PACKAGE_URL"
2559 _ACEOF
2562 # Let the site file select an alternate cache file if it wants to.
2563 # Prefer an explicitly selected file to automatically selected ones.
2564 ac_site_file1=NONE
2565 ac_site_file2=NONE
2566 if test -n "$CONFIG_SITE"; then
2567 # We do not want a PATH search for config.site.
2568 case $CONFIG_SITE in #((
2569 -*) ac_site_file1=./$CONFIG_SITE;;
2570 */*) ac_site_file1=$CONFIG_SITE;;
2571 *) ac_site_file1=./$CONFIG_SITE;;
2572 esac
2573 elif test "x$prefix" != xNONE; then
2574 ac_site_file1=$prefix/share/config.site
2575 ac_site_file2=$prefix/etc/config.site
2576 else
2577 ac_site_file1=$ac_default_prefix/share/config.site
2578 ac_site_file2=$ac_default_prefix/etc/config.site
2580 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2582 test "x$ac_site_file" = xNONE && continue
2583 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2585 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2586 sed 's/^/| /' "$ac_site_file" >&5
2587 . "$ac_site_file" \
2588 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 as_fn_error $? "failed to load site script $ac_site_file
2591 See \`config.log' for more details" "$LINENO" 5; }
2593 done
2595 if test -r "$cache_file"; then
2596 # Some versions of bash will fail to source /dev/null (special files
2597 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2598 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2600 $as_echo "$as_me: loading cache $cache_file" >&6;}
2601 case $cache_file in
2602 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2603 *) . "./$cache_file";;
2604 esac
2606 else
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2608 $as_echo "$as_me: creating cache $cache_file" >&6;}
2609 >$cache_file
2612 # Check that the precious variables saved in the cache have kept the same
2613 # value.
2614 ac_cache_corrupted=false
2615 for ac_var in $ac_precious_vars; do
2616 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2617 eval ac_new_set=\$ac_env_${ac_var}_set
2618 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2619 eval ac_new_val=\$ac_env_${ac_var}_value
2620 case $ac_old_set,$ac_new_set in
2621 set,)
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2623 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2624 ac_cache_corrupted=: ;;
2625 ,set)
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2627 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2628 ac_cache_corrupted=: ;;
2629 ,);;
2631 if test "x$ac_old_val" != "x$ac_new_val"; then
2632 # differences in whitespace do not lead to failure.
2633 ac_old_val_w=`echo x $ac_old_val`
2634 ac_new_val_w=`echo x $ac_new_val`
2635 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2637 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2638 ac_cache_corrupted=:
2639 else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2641 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2642 eval $ac_var=\$ac_old_val
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2645 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2647 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2648 fi;;
2649 esac
2650 # Pass precious variables to config.status.
2651 if test "$ac_new_set" = set; then
2652 case $ac_new_val in
2653 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2654 *) ac_arg=$ac_var=$ac_new_val ;;
2655 esac
2656 case " $ac_configure_args " in
2657 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2658 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2659 esac
2661 done
2662 if $ac_cache_corrupted; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2666 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2667 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2669 ## -------------------- ##
2670 ## Main body of script. ##
2671 ## -------------------- ##
2673 ac_ext=c
2674 ac_cpp='$CPP $CPPFLAGS'
2675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685 ac_aux_dir=
2686 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2687 if test -f "$ac_dir/install-sh"; then
2688 ac_aux_dir=$ac_dir
2689 ac_install_sh="$ac_aux_dir/install-sh -c"
2690 break
2691 elif 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/shtool"; then
2696 ac_aux_dir=$ac_dir
2697 ac_install_sh="$ac_aux_dir/shtool install -c"
2698 break
2700 done
2701 if test -z "$ac_aux_dir"; then
2702 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2705 # These three variables are undocumented and unsupported,
2706 # and are intended to be withdrawn in a future Autoconf release.
2707 # They can cause serious problems if a builder's source tree is in a directory
2708 # whose full name contains unusual characters.
2709 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2710 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2711 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2714 # Make sure we can run config.sub.
2715 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2716 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2719 $as_echo_n "checking build system type... " >&6; }
2720 if ${ac_cv_build+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 ac_build_alias=$build_alias
2724 test "x$ac_build_alias" = x &&
2725 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2726 test "x$ac_build_alias" = x &&
2727 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2728 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2729 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2733 $as_echo "$ac_cv_build" >&6; }
2734 case $ac_cv_build in
2735 *-*-*) ;;
2736 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2737 esac
2738 build=$ac_cv_build
2739 ac_save_IFS=$IFS; IFS='-'
2740 set x $ac_cv_build
2741 shift
2742 build_cpu=$1
2743 build_vendor=$2
2744 shift; shift
2745 # Remember, the first character of IFS is used to create $*,
2746 # except with old shells:
2747 build_os=$*
2748 IFS=$ac_save_IFS
2749 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2753 $as_echo_n "checking host system type... " >&6; }
2754 if ${ac_cv_host+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test "x$host_alias" = x; then
2758 ac_cv_host=$ac_cv_build
2759 else
2760 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2766 $as_echo "$ac_cv_host" >&6; }
2767 case $ac_cv_host in
2768 *-*-*) ;;
2769 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2770 esac
2771 host=$ac_cv_host
2772 ac_save_IFS=$IFS; IFS='-'
2773 set x $ac_cv_host
2774 shift
2775 host_cpu=$1
2776 host_vendor=$2
2777 shift; shift
2778 # Remember, the first character of IFS is used to create $*,
2779 # except with old shells:
2780 host_os=$*
2781 IFS=$ac_save_IFS
2782 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2786 $as_echo_n "checking target system type... " >&6; }
2787 if ${ac_cv_target+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test "x$target_alias" = x; then
2791 ac_cv_target=$ac_cv_host
2792 else
2793 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2794 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2799 $as_echo "$ac_cv_target" >&6; }
2800 case $ac_cv_target in
2801 *-*-*) ;;
2802 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2803 esac
2804 target=$ac_cv_target
2805 ac_save_IFS=$IFS; IFS='-'
2806 set x $ac_cv_target
2807 shift
2808 target_cpu=$1
2809 target_vendor=$2
2810 shift; shift
2811 # Remember, the first character of IFS is used to create $*,
2812 # except with old shells:
2813 target_os=$*
2814 IFS=$ac_save_IFS
2815 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2818 # The aliases save the names the user supplied, while $host etc.
2819 # will get canonicalized.
2820 test -n "$target_alias" &&
2821 test "$program_prefix$program_suffix$program_transform_name" = \
2822 NONENONEs,x,x, &&
2823 program_prefix=${target_alias}-
2825 am__api_version='1.15'
2827 # Find a good install program. We prefer a C program (faster),
2828 # so one script is as good as another. But avoid the broken or
2829 # incompatible versions:
2830 # SysV /etc/install, /usr/sbin/install
2831 # SunOS /usr/etc/install
2832 # IRIX /sbin/install
2833 # AIX /bin/install
2834 # AmigaOS /C/install, which installs bootblocks on floppy discs
2835 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2836 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2837 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2838 # OS/2's system install, which has a completely different semantic
2839 # ./install, which can be erroneously created by make from ./install.sh.
2840 # Reject install programs that cannot install multiple files.
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2842 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2843 if test -z "$INSTALL"; then
2844 if ${ac_cv_path_install+:} false; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 # Account for people who put trailing slashes in PATH elements.
2853 case $as_dir/ in #((
2854 ./ | .// | /[cC]/* | \
2855 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2856 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2857 /usr/ucb/* ) ;;
2859 # OSF1 and SCO ODT 3.0 have their own names for install.
2860 # Don't use installbsd from OSF since it installs stuff as root
2861 # by default.
2862 for ac_prog in ginstall scoinst install; do
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2865 if test $ac_prog = install &&
2866 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2867 # AIX install. It has an incompatible calling convention.
2869 elif test $ac_prog = install &&
2870 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2871 # program-specific install script used by HP pwplus--don't use.
2873 else
2874 rm -rf conftest.one conftest.two conftest.dir
2875 echo one > conftest.one
2876 echo two > conftest.two
2877 mkdir conftest.dir
2878 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2879 test -s conftest.one && test -s conftest.two &&
2880 test -s conftest.dir/conftest.one &&
2881 test -s conftest.dir/conftest.two
2882 then
2883 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2884 break 3
2888 done
2889 done
2891 esac
2893 done
2894 IFS=$as_save_IFS
2896 rm -rf conftest.one conftest.two conftest.dir
2899 if test "${ac_cv_path_install+set}" = set; then
2900 INSTALL=$ac_cv_path_install
2901 else
2902 # As a last resort, use the slow shell script. Don't cache a
2903 # value for INSTALL within a source directory, because that will
2904 # break other packages using the cache if that directory is
2905 # removed, or if the value is a relative name.
2906 INSTALL=$ac_install_sh
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2910 $as_echo "$INSTALL" >&6; }
2912 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2913 # It thinks the first close brace ends the variable substitution.
2914 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2916 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2918 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2921 $as_echo_n "checking whether build environment is sane... " >&6; }
2922 # Reject unsafe characters in $srcdir or the absolute working directory
2923 # name. Accept space and tab only in the latter.
2924 am_lf='
2926 case `pwd` in
2927 *[\\\"\#\$\&\'\`$am_lf]*)
2928 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2929 esac
2930 case $srcdir in
2931 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2932 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2933 esac
2935 # Do 'set' in a subshell so we don't clobber the current shell's
2936 # arguments. Must try -L first in case configure is actually a
2937 # symlink; some systems play weird games with the mod time of symlinks
2938 # (eg FreeBSD returns the mod time of the symlink's containing
2939 # directory).
2940 if (
2941 am_has_slept=no
2942 for am_try in 1 2; do
2943 echo "timestamp, slept: $am_has_slept" > conftest.file
2944 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2945 if test "$*" = "X"; then
2946 # -L didn't work.
2947 set X `ls -t "$srcdir/configure" conftest.file`
2949 if test "$*" != "X $srcdir/configure conftest.file" \
2950 && test "$*" != "X conftest.file $srcdir/configure"; then
2952 # If neither matched, then we have a broken ls. This can happen
2953 # if, for instance, CONFIG_SHELL is bash and it inherits a
2954 # broken ls alias from the environment. This has actually
2955 # happened. Such a system could not be considered "sane".
2956 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2957 alias in your environment" "$LINENO" 5
2959 if test "$2" = conftest.file || test $am_try -eq 2; then
2960 break
2962 # Just in case.
2963 sleep 1
2964 am_has_slept=yes
2965 done
2966 test "$2" = conftest.file
2968 then
2969 # Ok.
2971 else
2972 as_fn_error $? "newly created file is older than distributed files!
2973 Check your system clock" "$LINENO" 5
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2976 $as_echo "yes" >&6; }
2977 # If we didn't sleep, we still need to ensure time stamps of config.status and
2978 # generated files are strictly newer.
2979 am_sleep_pid=
2980 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2981 ( sleep 1 ) &
2982 am_sleep_pid=$!
2985 rm -f conftest.file
2987 test "$program_prefix" != NONE &&
2988 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2989 # Use a double $ so make ignores it.
2990 test "$program_suffix" != NONE &&
2991 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2992 # Double any \ or $.
2993 # By default was `s,x,x', remove it if useless.
2994 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2995 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2997 # Expand $ac_aux_dir to an absolute path.
2998 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3000 if test x"${MISSING+set}" != xset; then
3001 case $am_aux_dir in
3002 *\ * | *\ *)
3003 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3005 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3006 esac
3008 # Use eval to expand $SHELL
3009 if eval "$MISSING --is-lightweight"; then
3010 am_missing_run="$MISSING "
3011 else
3012 am_missing_run=
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3014 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3017 if test x"${install_sh+set}" != xset; then
3018 case $am_aux_dir in
3019 *\ * | *\ *)
3020 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3022 install_sh="\${SHELL} $am_aux_dir/install-sh"
3023 esac
3026 # Installed binaries are usually stripped using 'strip' when the user
3027 # run "make install-strip". However 'strip' might not be the right
3028 # tool to use in cross-compilation environments, therefore Automake
3029 # will honor the 'STRIP' environment variable to overrule this program.
3030 if test "$cross_compiling" != no; then
3031 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3033 set dummy ${ac_tool_prefix}strip; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_STRIP+:} false; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if test -n "$STRIP"; then
3040 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3053 done
3054 done
3055 IFS=$as_save_IFS
3059 STRIP=$ac_cv_prog_STRIP
3060 if test -n "$STRIP"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3062 $as_echo "$STRIP" >&6; }
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3070 if test -z "$ac_cv_prog_STRIP"; then
3071 ac_ct_STRIP=$STRIP
3072 # Extract the first word of "strip", so it can be a program name with args.
3073 set dummy strip; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test -n "$ac_ct_STRIP"; then
3080 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_ac_ct_STRIP="strip"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3093 done
3094 done
3095 IFS=$as_save_IFS
3099 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3100 if test -n "$ac_ct_STRIP"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3102 $as_echo "$ac_ct_STRIP" >&6; }
3103 else
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3108 if test "x$ac_ct_STRIP" = x; then
3109 STRIP=":"
3110 else
3111 case $cross_compiling:$ac_tool_warned in
3112 yes:)
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3115 ac_tool_warned=yes ;;
3116 esac
3117 STRIP=$ac_ct_STRIP
3119 else
3120 STRIP="$ac_cv_prog_STRIP"
3124 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3127 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3128 if test -z "$MKDIR_P"; then
3129 if ${ac_cv_path_mkdir+:} false; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_prog in mkdir gmkdir; do
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3140 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3141 'mkdir (GNU coreutils) '* | \
3142 'mkdir (coreutils) '* | \
3143 'mkdir (fileutils) '4.1*)
3144 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3145 break 3;;
3146 esac
3147 done
3148 done
3149 done
3150 IFS=$as_save_IFS
3154 test -d ./--version && rmdir ./--version
3155 if test "${ac_cv_path_mkdir+set}" = set; then
3156 MKDIR_P="$ac_cv_path_mkdir -p"
3157 else
3158 # As a last resort, use the slow shell script. Don't cache a
3159 # value for MKDIR_P within a source directory, because that will
3160 # break other packages using the cache if that directory is
3161 # removed, or if the value is a relative name.
3162 MKDIR_P="$ac_install_sh -d"
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3166 $as_echo "$MKDIR_P" >&6; }
3168 for ac_prog in gawk mawk nawk awk
3170 # Extract the first word of "$ac_prog", so it can be a program name with args.
3171 set dummy $ac_prog; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_AWK+:} false; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$AWK"; then
3178 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_AWK="$ac_prog"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3191 done
3192 done
3193 IFS=$as_save_IFS
3197 AWK=$ac_cv_prog_AWK
3198 if test -n "$AWK"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3200 $as_echo "$AWK" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3207 test -n "$AWK" && break
3208 done
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3211 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3212 set x ${MAKE-make}
3213 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3214 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 cat >conftest.make <<\_ACEOF
3218 SHELL = /bin/sh
3219 all:
3220 @echo '@@@%%%=$(MAKE)=@@@%%%'
3221 _ACEOF
3222 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3223 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3224 *@@@%%%=?*=@@@%%%*)
3225 eval ac_cv_prog_make_${ac_make}_set=yes;;
3227 eval ac_cv_prog_make_${ac_make}_set=no;;
3228 esac
3229 rm -f conftest.make
3231 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233 $as_echo "yes" >&6; }
3234 SET_MAKE=
3235 else
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 SET_MAKE="MAKE=${MAKE-make}"
3241 rm -rf .tst 2>/dev/null
3242 mkdir .tst 2>/dev/null
3243 if test -d .tst; then
3244 am__leading_dot=.
3245 else
3246 am__leading_dot=_
3248 rmdir .tst 2>/dev/null
3250 # Check whether --enable-silent-rules was given.
3251 if test "${enable_silent_rules+set}" = set; then :
3252 enableval=$enable_silent_rules;
3255 case $enable_silent_rules in # (((
3256 yes) AM_DEFAULT_VERBOSITY=0;;
3257 no) AM_DEFAULT_VERBOSITY=1;;
3258 *) AM_DEFAULT_VERBOSITY=1;;
3259 esac
3260 am_make=${MAKE-make}
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3262 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3263 if ${am_cv_make_support_nested_variables+:} false; then :
3264 $as_echo_n "(cached) " >&6
3265 else
3266 if $as_echo 'TRUE=$(BAR$(V))
3267 BAR0=false
3268 BAR1=true
3270 am__doit:
3271 @$(TRUE)
3272 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3273 am_cv_make_support_nested_variables=yes
3274 else
3275 am_cv_make_support_nested_variables=no
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3279 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3280 if test $am_cv_make_support_nested_variables = yes; then
3281 AM_V='$(V)'
3282 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3283 else
3284 AM_V=$AM_DEFAULT_VERBOSITY
3285 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3287 AM_BACKSLASH='\'
3289 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3290 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3291 # is not polluted with repeated "-I."
3292 am__isrc=' -I$(srcdir)'
3293 # test to see if srcdir already configured
3294 if test -f $srcdir/config.status; then
3295 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3299 # test whether we have cygpath
3300 if test -z "$CYGPATH_W"; then
3301 if (cygpath --version) >/dev/null 2>/dev/null; then
3302 CYGPATH_W='cygpath -w'
3303 else
3304 CYGPATH_W=echo
3309 # Define the identity of the package.
3310 PACKAGE='gold'
3311 VERSION='0.1'
3314 cat >>confdefs.h <<_ACEOF
3315 #define PACKAGE "$PACKAGE"
3316 _ACEOF
3319 cat >>confdefs.h <<_ACEOF
3320 #define VERSION "$VERSION"
3321 _ACEOF
3323 # Some tools Automake needs.
3325 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3328 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3331 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3334 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3337 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3339 # For better backward compatibility. To be removed once Automake 1.9.x
3340 # dies out for good. For more background, see:
3341 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3342 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3343 mkdir_p='$(MKDIR_P)'
3345 # We need awk for the "check" target (and possibly the TAP driver). The
3346 # system "awk" is bad on some platforms.
3347 # Always define AMTAR for backward compatibility. Yes, it's still used
3348 # in the wild :-( We should find a proper way to deprecate it ...
3349 AMTAR='$${TAR-tar}'
3352 # We'll loop over all known methods to create a tar archive until one works.
3353 _am_tools='gnutar pax cpio none'
3355 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3362 # POSIX will say in a future version that running "rm -f" with no argument
3363 # is OK; and we want to be able to make that assumption in our Makefile
3364 # recipes. So use an aggressive probe to check that the usage we want is
3365 # actually supported "in the wild" to an acceptable degree.
3366 # See automake bug#10828.
3367 # To make any issue more visible, cause the running configure to be aborted
3368 # by default if the 'rm' program in use doesn't match our expectations; the
3369 # user can still override this though.
3370 if rm -f && rm -fr && rm -rf; then : OK; else
3371 cat >&2 <<'END'
3372 Oops!
3374 Your 'rm' program seems unable to run without file operands specified
3375 on the command line, even when the '-f' option is present. This is contrary
3376 to the behaviour of most rm programs out there, and not conforming with
3377 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3379 Please tell bug-automake@gnu.org about your system, including the value
3380 of your $PATH and any error possibly output before this message. This
3381 can help us improve future automake versions.
3384 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3385 echo 'Configuration will proceed anyway, since you have set the' >&2
3386 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3387 echo >&2
3388 else
3389 cat >&2 <<'END'
3390 Aborting the configuration process, to ensure you take notice of the issue.
3392 You can download and install GNU coreutils to get an 'rm' implementation
3393 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3395 If you want to complete the configuration process using your problematic
3396 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3397 to "yes", and re-run configure.
3400 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3405 ac_config_headers="$ac_config_headers config.h:config.in"
3408 DEPDIR="${am__leading_dot}deps"
3410 ac_config_commands="$ac_config_commands depfiles"
3413 am_make=${MAKE-make}
3414 cat > confinc << 'END'
3415 am__doit:
3416 @echo this is the am__doit target
3417 .PHONY: am__doit
3419 # If we don't find an include directive, just comment out the code.
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3421 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3422 am__include="#"
3423 am__quote=
3424 _am_result=none
3425 # First try GNU make style include.
3426 echo "include confinc" > confmf
3427 # Ignore all kinds of additional output from 'make'.
3428 case `$am_make -s -f confmf 2> /dev/null` in #(
3429 *the\ am__doit\ target*)
3430 am__include=include
3431 am__quote=
3432 _am_result=GNU
3434 esac
3435 # Now try BSD make style include.
3436 if test "$am__include" = "#"; then
3437 echo '.include "confinc"' > confmf
3438 case `$am_make -s -f confmf 2> /dev/null` in #(
3439 *the\ am__doit\ target*)
3440 am__include=.include
3441 am__quote="\""
3442 _am_result=BSD
3444 esac
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3449 $as_echo "$_am_result" >&6; }
3450 rm -f confinc confmf
3452 # Check whether --enable-dependency-tracking was given.
3453 if test "${enable_dependency_tracking+set}" = set; then :
3454 enableval=$enable_dependency_tracking;
3457 if test "x$enable_dependency_tracking" != xno; then
3458 am_depcomp="$ac_aux_dir/depcomp"
3459 AMDEPBACKSLASH='\'
3460 am__nodep='_no'
3462 if test "x$enable_dependency_tracking" != xno; then
3463 AMDEP_TRUE=
3464 AMDEP_FALSE='#'
3465 else
3466 AMDEP_TRUE='#'
3467 AMDEP_FALSE=
3471 ac_ext=c
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476 if test -n "$ac_tool_prefix"; then
3477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3478 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_CC+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 if test -n "$CC"; then
3485 ac_cv_prog_CC="$CC" # Let the user override the test.
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3498 done
3499 done
3500 IFS=$as_save_IFS
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3515 if test -z "$ac_cv_prog_CC"; then
3516 ac_ct_CC=$CC
3517 # Extract the first word of "gcc", so it can be a program name with args.
3518 set dummy gcc; ac_word=$2
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 $as_echo_n "checking for $ac_word... " >&6; }
3521 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3522 $as_echo_n "(cached) " >&6
3523 else
3524 if test -n "$ac_ct_CC"; then
3525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3526 else
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3530 IFS=$as_save_IFS
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534 ac_cv_prog_ac_ct_CC="gcc"
3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 break 2
3538 done
3539 done
3540 IFS=$as_save_IFS
3544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3545 if test -n "$ac_ct_CC"; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3547 $as_echo "$ac_ct_CC" >&6; }
3548 else
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3553 if test "x$ac_ct_CC" = x; then
3554 CC=""
3555 else
3556 case $cross_compiling:$ac_tool_warned in
3557 yes:)
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3560 ac_tool_warned=yes ;;
3561 esac
3562 CC=$ac_ct_CC
3564 else
3565 CC="$ac_cv_prog_CC"
3568 if test -z "$CC"; then
3569 if test -n "$ac_tool_prefix"; then
3570 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3571 set dummy ${ac_tool_prefix}cc; ac_word=$2
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if ${ac_cv_prog_CC+:} false; then :
3575 $as_echo_n "(cached) " >&6
3576 else
3577 if test -n "$CC"; then
3578 ac_cv_prog_CC="$CC" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3583 IFS=$as_save_IFS
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587 ac_cv_prog_CC="${ac_tool_prefix}cc"
3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 break 2
3591 done
3592 done
3593 IFS=$as_save_IFS
3597 CC=$ac_cv_prog_CC
3598 if test -n "$CC"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3600 $as_echo "$CC" >&6; }
3601 else
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3609 if test -z "$CC"; then
3610 # Extract the first word of "cc", so it can be a program name with args.
3611 set dummy cc; ac_word=$2
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if ${ac_cv_prog_CC+:} false; then :
3615 $as_echo_n "(cached) " >&6
3616 else
3617 if test -n "$CC"; then
3618 ac_cv_prog_CC="$CC" # Let the user override the test.
3619 else
3620 ac_prog_rejected=no
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3629 ac_prog_rejected=yes
3630 continue
3632 ac_cv_prog_CC="cc"
3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3634 break 2
3636 done
3637 done
3638 IFS=$as_save_IFS
3640 if test $ac_prog_rejected = yes; then
3641 # We found a bogon in the path, so make sure we never use it.
3642 set dummy $ac_cv_prog_CC
3643 shift
3644 if test $# != 0; then
3645 # We chose a different compiler from the bogus one.
3646 # However, it has the same basename, so the bogon will be chosen
3647 # first if we set CC to just the basename; use the full file name.
3648 shift
3649 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3654 CC=$ac_cv_prog_CC
3655 if test -n "$CC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3657 $as_echo "$CC" >&6; }
3658 else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3665 if test -z "$CC"; then
3666 if test -n "$ac_tool_prefix"; then
3667 for ac_prog in cl.exe
3669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if ${ac_cv_prog_CC+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 if test -n "$CC"; then
3677 ac_cv_prog_CC="$CC" # Let the user override the test.
3678 else
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3686 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3688 break 2
3690 done
3691 done
3692 IFS=$as_save_IFS
3696 CC=$ac_cv_prog_CC
3697 if test -n "$CC"; then
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3699 $as_echo "$CC" >&6; }
3700 else
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3706 test -n "$CC" && break
3707 done
3709 if test -z "$CC"; then
3710 ac_ct_CC=$CC
3711 for ac_prog in cl.exe
3713 # Extract the first word of "$ac_prog", so it can be a program name with args.
3714 set dummy $ac_prog; ac_word=$2
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716 $as_echo_n "checking for $ac_word... " >&6; }
3717 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 if test -n "$ac_ct_CC"; then
3721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3722 else
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3730 ac_cv_prog_ac_ct_CC="$ac_prog"
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 break 2
3734 done
3735 done
3736 IFS=$as_save_IFS
3740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3741 if test -n "$ac_ct_CC"; then
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3743 $as_echo "$ac_ct_CC" >&6; }
3744 else
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3750 test -n "$ac_ct_CC" && break
3751 done
3753 if test "x$ac_ct_CC" = x; then
3754 CC=""
3755 else
3756 case $cross_compiling:$ac_tool_warned in
3757 yes:)
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3760 ac_tool_warned=yes ;;
3761 esac
3762 CC=$ac_ct_CC
3769 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3771 as_fn_error $? "no acceptable C compiler found in \$PATH
3772 See \`config.log' for more details" "$LINENO" 5; }
3774 # Provide some information about the compiler.
3775 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3776 set X $ac_compile
3777 ac_compiler=$2
3778 for ac_option in --version -v -V -qversion; do
3779 { { ac_try="$ac_compiler $ac_option >&5"
3780 case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783 esac
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3787 ac_status=$?
3788 if test -s conftest.err; then
3789 sed '10a\
3790 ... rest of stderr output deleted ...
3791 10q' conftest.err >conftest.er1
3792 cat conftest.er1 >&5
3794 rm -f conftest.er1 conftest.err
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }
3797 done
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3803 main ()
3807 return 0;
3809 _ACEOF
3810 ac_clean_files_save=$ac_clean_files
3811 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3812 # Try to create an executable without -o first, disregard a.out.
3813 # It will help us diagnose broken compilers, and finding out an intuition
3814 # of exeext.
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3816 $as_echo_n "checking whether the C compiler works... " >&6; }
3817 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3819 # The possible output files:
3820 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3822 ac_rmfiles=
3823 for ac_file in $ac_files
3825 case $ac_file in
3826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3827 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3828 esac
3829 done
3830 rm -f $ac_rmfiles
3832 if { { ac_try="$ac_link_default"
3833 case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3836 esac
3837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3838 $as_echo "$ac_try_echo"; } >&5
3839 (eval "$ac_link_default") 2>&5
3840 ac_status=$?
3841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3842 test $ac_status = 0; }; then :
3843 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3844 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3845 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3846 # so that the user can short-circuit this test for compilers unknown to
3847 # Autoconf.
3848 for ac_file in $ac_files ''
3850 test -f "$ac_file" || continue
3851 case $ac_file in
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3854 [ab].out )
3855 # We found the default executable, but exeext='' is most
3856 # certainly right.
3857 break;;
3858 *.* )
3859 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3860 then :; else
3861 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3863 # We set ac_cv_exeext here because the later test for it is not
3864 # safe: cross compilers may not add the suffix if given an `-o'
3865 # argument, so we may need to know it at that point already.
3866 # Even if this section looks crufty: it has the advantage of
3867 # actually working.
3868 break;;
3870 break;;
3871 esac
3872 done
3873 test "$ac_cv_exeext" = no && ac_cv_exeext=
3875 else
3876 ac_file=''
3878 if test -z "$ac_file"; then :
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 $as_echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3886 as_fn_error 77 "C compiler cannot create executables
3887 See \`config.log' for more details" "$LINENO" 5; }
3888 else
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3890 $as_echo "yes" >&6; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3893 $as_echo_n "checking for C compiler default output file name... " >&6; }
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3895 $as_echo "$ac_file" >&6; }
3896 ac_exeext=$ac_cv_exeext
3898 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3899 ac_clean_files=$ac_clean_files_save
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3901 $as_echo_n "checking for suffix of executables... " >&6; }
3902 if { { ac_try="$ac_link"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_link") 2>&5
3910 ac_status=$?
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }; then :
3913 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3914 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3915 # work properly (i.e., refer to `conftest.exe'), while it won't with
3916 # `rm'.
3917 for ac_file in conftest.exe conftest conftest.*; do
3918 test -f "$ac_file" || continue
3919 case $ac_file in
3920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3921 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3922 break;;
3923 * ) break;;
3924 esac
3925 done
3926 else
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 $? "cannot compute suffix of executables: cannot compile and link
3930 See \`config.log' for more details" "$LINENO" 5; }
3932 rm -f conftest conftest$ac_cv_exeext
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3934 $as_echo "$ac_cv_exeext" >&6; }
3936 rm -f conftest.$ac_ext
3937 EXEEXT=$ac_cv_exeext
3938 ac_exeext=$EXEEXT
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941 #include <stdio.h>
3943 main ()
3945 FILE *f = fopen ("conftest.out", "w");
3946 return ferror (f) || fclose (f) != 0;
3949 return 0;
3951 _ACEOF
3952 ac_clean_files="$ac_clean_files conftest.out"
3953 # Check that the compiler produces executables we can run. If not, either
3954 # the compiler is broken, or we cross compile.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3956 $as_echo_n "checking whether we are cross compiling... " >&6; }
3957 if test "$cross_compiling" != yes; then
3958 { { ac_try="$ac_link"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_link") 2>&5
3966 ac_status=$?
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }
3969 if { ac_try='./conftest$ac_cv_exeext'
3970 { { case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973 esac
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 $as_echo "$ac_try_echo"; } >&5
3976 (eval "$ac_try") 2>&5
3977 ac_status=$?
3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 test $ac_status = 0; }; }; then
3980 cross_compiling=no
3981 else
3982 if test "$cross_compiling" = maybe; then
3983 cross_compiling=yes
3984 else
3985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987 as_fn_error $? "cannot run C compiled programs.
3988 If you meant to cross compile, use \`--host'.
3989 See \`config.log' for more details" "$LINENO" 5; }
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3994 $as_echo "$cross_compiling" >&6; }
3996 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3997 ac_clean_files=$ac_clean_files_save
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3999 $as_echo_n "checking for suffix of object files... " >&6; }
4000 if ${ac_cv_objext+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4007 main ()
4011 return 0;
4013 _ACEOF
4014 rm -f conftest.o conftest.obj
4015 if { { ac_try="$ac_compile"
4016 case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019 esac
4020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021 $as_echo "$ac_try_echo"; } >&5
4022 (eval "$ac_compile") 2>&5
4023 ac_status=$?
4024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025 test $ac_status = 0; }; then :
4026 for ac_file in conftest.o conftest.obj conftest.*; do
4027 test -f "$ac_file" || continue;
4028 case $ac_file in
4029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4030 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4031 break;;
4032 esac
4033 done
4034 else
4035 $as_echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4040 as_fn_error $? "cannot compute suffix of object files: cannot compile
4041 See \`config.log' for more details" "$LINENO" 5; }
4043 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4046 $as_echo "$ac_cv_objext" >&6; }
4047 OBJEXT=$ac_cv_objext
4048 ac_objext=$OBJEXT
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4050 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4051 if ${ac_cv_c_compiler_gnu+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4058 main ()
4060 #ifndef __GNUC__
4061 choke me
4062 #endif
4065 return 0;
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_compiler_gnu=yes
4070 else
4071 ac_compiler_gnu=no
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4078 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4079 if test $ac_compiler_gnu = yes; then
4080 GCC=yes
4081 else
4082 GCC=
4084 ac_test_CFLAGS=${CFLAGS+set}
4085 ac_save_CFLAGS=$CFLAGS
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4087 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4088 if ${ac_cv_prog_cc_g+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 ac_save_c_werror_flag=$ac_c_werror_flag
4092 ac_c_werror_flag=yes
4093 ac_cv_prog_cc_g=no
4094 CFLAGS="-g"
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4099 main ()
4103 return 0;
4105 _ACEOF
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_cv_prog_cc_g=yes
4108 else
4109 CFLAGS=""
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4114 main ()
4118 return 0;
4120 _ACEOF
4121 if ac_fn_c_try_compile "$LINENO"; then :
4123 else
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4125 CFLAGS="-g"
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4130 main ()
4134 return 0;
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_cv_prog_cc_g=yes
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_c_werror_flag=$ac_save_c_werror_flag
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4148 $as_echo "$ac_cv_prog_cc_g" >&6; }
4149 if test "$ac_test_CFLAGS" = set; then
4150 CFLAGS=$ac_save_CFLAGS
4151 elif test $ac_cv_prog_cc_g = yes; then
4152 if test "$GCC" = yes; then
4153 CFLAGS="-g -O2"
4154 else
4155 CFLAGS="-g"
4157 else
4158 if test "$GCC" = yes; then
4159 CFLAGS="-O2"
4160 else
4161 CFLAGS=
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4165 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4166 if ${ac_cv_prog_cc_c89+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 ac_cv_prog_cc_c89=no
4170 ac_save_CC=$CC
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #include <stdarg.h>
4174 #include <stdio.h>
4175 struct stat;
4176 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4177 struct buf { int x; };
4178 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4179 static char *e (p, i)
4180 char **p;
4181 int i;
4183 return p[i];
4185 static char *f (char * (*g) (char **, int), char **p, ...)
4187 char *s;
4188 va_list v;
4189 va_start (v,p);
4190 s = g (p, va_arg (v,int));
4191 va_end (v);
4192 return s;
4195 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4196 function prototypes and stuff, but not '\xHH' hex character constants.
4197 These don't provoke an error unfortunately, instead are silently treated
4198 as 'x'. The following induces an error, until -std is added to get
4199 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4200 array size at least. It's necessary to write '\x00'==0 to get something
4201 that's true only with -std. */
4202 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4204 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4205 inside strings and character constants. */
4206 #define FOO(x) 'x'
4207 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4209 int test (int i, double x);
4210 struct s1 {int (*f) (int a);};
4211 struct s2 {int (*f) (double a);};
4212 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4213 int argc;
4214 char **argv;
4216 main ()
4218 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4220 return 0;
4222 _ACEOF
4223 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4224 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4226 CC="$ac_save_CC $ac_arg"
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228 ac_cv_prog_cc_c89=$ac_arg
4230 rm -f core conftest.err conftest.$ac_objext
4231 test "x$ac_cv_prog_cc_c89" != "xno" && break
4232 done
4233 rm -f conftest.$ac_ext
4234 CC=$ac_save_CC
4237 # AC_CACHE_VAL
4238 case "x$ac_cv_prog_cc_c89" in
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4241 $as_echo "none needed" >&6; } ;;
4242 xno)
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4244 $as_echo "unsupported" >&6; } ;;
4246 CC="$CC $ac_cv_prog_cc_c89"
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4248 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4249 esac
4250 if test "x$ac_cv_prog_cc_c89" != xno; then :
4254 ac_ext=c
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260 ac_ext=c
4261 ac_cpp='$CPP $CPPFLAGS'
4262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4266 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4267 if ${am_cv_prog_cc_c_o+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4274 main ()
4278 return 0;
4280 _ACEOF
4281 # Make sure it works both with $CC and with simple cc.
4282 # Following AC_PROG_CC_C_O, we do the test twice because some
4283 # compilers refuse to overwrite an existing .o file with -o,
4284 # though they will create one.
4285 am_cv_prog_cc_c_o=yes
4286 for am_i in 1 2; do
4287 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4288 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } \
4292 && test -f conftest2.$ac_objext; then
4293 : OK
4294 else
4295 am_cv_prog_cc_c_o=no
4296 break
4298 done
4299 rm -f core conftest*
4300 unset am_i
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4303 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4304 if test "$am_cv_prog_cc_c_o" != yes; then
4305 # Losing compiler, so override with the script.
4306 # FIXME: It is wrong to rewrite CC.
4307 # But if we don't then we get into trouble of one sort or another.
4308 # A longer-term fix would be to have automake use am__CC in this case,
4309 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4310 CC="$am_aux_dir/compile $CC"
4312 ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319 depcc="$CC" am_compiler_list=
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4322 $as_echo_n "checking dependency style of $depcc... " >&6; }
4323 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4327 # We make a subdir and do the tests there. Otherwise we can end up
4328 # making bogus files that we don't know about and never remove. For
4329 # instance it was reported that on HP-UX the gcc test will end up
4330 # making a dummy file named 'D' -- because '-MD' means "put the output
4331 # in D".
4332 rm -rf conftest.dir
4333 mkdir conftest.dir
4334 # Copy depcomp to subdir because otherwise we won't find it if we're
4335 # using a relative directory.
4336 cp "$am_depcomp" conftest.dir
4337 cd conftest.dir
4338 # We will build objects and dependencies in a subdirectory because
4339 # it helps to detect inapplicable dependency modes. For instance
4340 # both Tru64's cc and ICC support -MD to output dependencies as a
4341 # side effect of compilation, but ICC will put the dependencies in
4342 # the current directory while Tru64 will put them in the object
4343 # directory.
4344 mkdir sub
4346 am_cv_CC_dependencies_compiler_type=none
4347 if test "$am_compiler_list" = ""; then
4348 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4350 am__universal=false
4351 case " $depcc " in #(
4352 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4353 esac
4355 for depmode in $am_compiler_list; do
4356 # Setup a source with many dependencies, because some compilers
4357 # like to wrap large dependency lists on column 80 (with \), and
4358 # we should not choose a depcomp mode which is confused by this.
4360 # We need to recreate these files for each test, as the compiler may
4361 # overwrite some of them when testing with obscure command lines.
4362 # This happens at least with the AIX C compiler.
4363 : > sub/conftest.c
4364 for i in 1 2 3 4 5 6; do
4365 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4366 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4367 # Solaris 10 /bin/sh.
4368 echo '/* dummy */' > sub/conftst$i.h
4369 done
4370 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4372 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4373 # mode. It turns out that the SunPro C++ compiler does not properly
4374 # handle '-M -o', and we need to detect this. Also, some Intel
4375 # versions had trouble with output in subdirs.
4376 am__obj=sub/conftest.${OBJEXT-o}
4377 am__minus_obj="-o $am__obj"
4378 case $depmode in
4379 gcc)
4380 # This depmode causes a compiler race in universal mode.
4381 test "$am__universal" = false || continue
4383 nosideeffect)
4384 # After this tag, mechanisms are not by side-effect, so they'll
4385 # only be used when explicitly requested.
4386 if test "x$enable_dependency_tracking" = xyes; then
4387 continue
4388 else
4389 break
4392 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4393 # This compiler won't grok '-c -o', but also, the minuso test has
4394 # not run yet. These depmodes are late enough in the game, and
4395 # so weak that their functioning should not be impacted.
4396 am__obj=conftest.${OBJEXT-o}
4397 am__minus_obj=
4399 none) break ;;
4400 esac
4401 if depmode=$depmode \
4402 source=sub/conftest.c object=$am__obj \
4403 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4404 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4405 >/dev/null 2>conftest.err &&
4406 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4407 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4408 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4409 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4410 # icc doesn't choke on unknown options, it will just issue warnings
4411 # or remarks (even with -Werror). So we grep stderr for any message
4412 # that says an option was ignored or not supported.
4413 # When given -MP, icc 7.0 and 7.1 complain thusly:
4414 # icc: Command line warning: ignoring option '-M'; no argument required
4415 # The diagnosis changed in icc 8.0:
4416 # icc: Command line remark: option '-MP' not supported
4417 if (grep 'ignoring option' conftest.err ||
4418 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4419 am_cv_CC_dependencies_compiler_type=$depmode
4420 break
4423 done
4425 cd ..
4426 rm -rf conftest.dir
4427 else
4428 am_cv_CC_dependencies_compiler_type=none
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4433 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4434 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4437 test "x$enable_dependency_tracking" != xno \
4438 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4439 am__fastdepCC_TRUE=
4440 am__fastdepCC_FALSE='#'
4441 else
4442 am__fastdepCC_TRUE='#'
4443 am__fastdepCC_FALSE=
4448 ac_ext=c
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4454 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4455 # On Suns, sometimes $CPP names a directory.
4456 if test -n "$CPP" && test -d "$CPP"; then
4457 CPP=
4459 if test -z "$CPP"; then
4460 if ${ac_cv_prog_CPP+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 # Double quotes because CPP needs to be expanded
4464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4466 ac_preproc_ok=false
4467 for ac_c_preproc_warn_flag in '' yes
4469 # Use a header file that comes with gcc, so configuring glibc
4470 # with a fresh cross-compiler works.
4471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4472 # <limits.h> exists even on freestanding compilers.
4473 # On the NeXT, cc -E runs the code through the compiler's parser,
4474 # not just through cpp. "Syntax error" is here to catch this case.
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4477 #ifdef __STDC__
4478 # include <limits.h>
4479 #else
4480 # include <assert.h>
4481 #endif
4482 Syntax error
4483 _ACEOF
4484 if ac_fn_c_try_cpp "$LINENO"; then :
4486 else
4487 # Broken: fails on valid input.
4488 continue
4490 rm -f conftest.err conftest.i conftest.$ac_ext
4492 # OK, works on sane cases. Now check whether nonexistent headers
4493 # can be detected and how.
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 #include <ac_nonexistent.h>
4497 _ACEOF
4498 if ac_fn_c_try_cpp "$LINENO"; then :
4499 # Broken: success on invalid input.
4500 continue
4501 else
4502 # Passes both tests.
4503 ac_preproc_ok=:
4504 break
4506 rm -f conftest.err conftest.i conftest.$ac_ext
4508 done
4509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4510 rm -f conftest.i conftest.err conftest.$ac_ext
4511 if $ac_preproc_ok; then :
4512 break
4515 done
4516 ac_cv_prog_CPP=$CPP
4519 CPP=$ac_cv_prog_CPP
4520 else
4521 ac_cv_prog_CPP=$CPP
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4524 $as_echo "$CPP" >&6; }
4525 ac_preproc_ok=false
4526 for ac_c_preproc_warn_flag in '' yes
4528 # Use a header file that comes with gcc, so configuring glibc
4529 # with a fresh cross-compiler works.
4530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531 # <limits.h> exists even on freestanding compilers.
4532 # On the NeXT, cc -E runs the code through the compiler's parser,
4533 # not just through cpp. "Syntax error" is here to catch this case.
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536 #ifdef __STDC__
4537 # include <limits.h>
4538 #else
4539 # include <assert.h>
4540 #endif
4541 Syntax error
4542 _ACEOF
4543 if ac_fn_c_try_cpp "$LINENO"; then :
4545 else
4546 # Broken: fails on valid input.
4547 continue
4549 rm -f conftest.err conftest.i conftest.$ac_ext
4551 # OK, works on sane cases. Now check whether nonexistent headers
4552 # can be detected and how.
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555 #include <ac_nonexistent.h>
4556 _ACEOF
4557 if ac_fn_c_try_cpp "$LINENO"; then :
4558 # Broken: success on invalid input.
4559 continue
4560 else
4561 # Passes both tests.
4562 ac_preproc_ok=:
4563 break
4565 rm -f conftest.err conftest.i conftest.$ac_ext
4567 done
4568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4569 rm -f conftest.i conftest.err conftest.$ac_ext
4570 if $ac_preproc_ok; then :
4572 else
4573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4575 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4576 See \`config.log' for more details" "$LINENO" 5; }
4579 ac_ext=c
4580 ac_cpp='$CPP $CPPFLAGS'
4581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4587 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4588 if ${ac_cv_path_GREP+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 if test -z "$GREP"; then
4592 ac_path_GREP_found=false
4593 # Loop through the user's path and test for each of PROGNAME-LIST
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_prog in grep ggrep; do
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4602 as_fn_executable_p "$ac_path_GREP" || continue
4603 # Check for GNU ac_path_GREP and select it if it is found.
4604 # Check for GNU $ac_path_GREP
4605 case `"$ac_path_GREP" --version 2>&1` in
4606 *GNU*)
4607 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4609 ac_count=0
4610 $as_echo_n 0123456789 >"conftest.in"
4611 while :
4613 cat "conftest.in" "conftest.in" >"conftest.tmp"
4614 mv "conftest.tmp" "conftest.in"
4615 cp "conftest.in" "conftest.nl"
4616 $as_echo 'GREP' >> "conftest.nl"
4617 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4618 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4619 as_fn_arith $ac_count + 1 && ac_count=$as_val
4620 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4621 # Best one so far, save it but keep looking for a better one
4622 ac_cv_path_GREP="$ac_path_GREP"
4623 ac_path_GREP_max=$ac_count
4625 # 10*(2^10) chars as input seems more than enough
4626 test $ac_count -gt 10 && break
4627 done
4628 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4629 esac
4631 $ac_path_GREP_found && break 3
4632 done
4633 done
4634 done
4635 IFS=$as_save_IFS
4636 if test -z "$ac_cv_path_GREP"; then
4637 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4639 else
4640 ac_cv_path_GREP=$GREP
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4645 $as_echo "$ac_cv_path_GREP" >&6; }
4646 GREP="$ac_cv_path_GREP"
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4650 $as_echo_n "checking for egrep... " >&6; }
4651 if ${ac_cv_path_EGREP+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4655 then ac_cv_path_EGREP="$GREP -E"
4656 else
4657 if test -z "$EGREP"; then
4658 ac_path_EGREP_found=false
4659 # Loop through the user's path and test for each of PROGNAME-LIST
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_prog in egrep; do
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4668 as_fn_executable_p "$ac_path_EGREP" || continue
4669 # Check for GNU ac_path_EGREP and select it if it is found.
4670 # Check for GNU $ac_path_EGREP
4671 case `"$ac_path_EGREP" --version 2>&1` in
4672 *GNU*)
4673 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4675 ac_count=0
4676 $as_echo_n 0123456789 >"conftest.in"
4677 while :
4679 cat "conftest.in" "conftest.in" >"conftest.tmp"
4680 mv "conftest.tmp" "conftest.in"
4681 cp "conftest.in" "conftest.nl"
4682 $as_echo 'EGREP' >> "conftest.nl"
4683 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4685 as_fn_arith $ac_count + 1 && ac_count=$as_val
4686 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4687 # Best one so far, save it but keep looking for a better one
4688 ac_cv_path_EGREP="$ac_path_EGREP"
4689 ac_path_EGREP_max=$ac_count
4691 # 10*(2^10) chars as input seems more than enough
4692 test $ac_count -gt 10 && break
4693 done
4694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4695 esac
4697 $ac_path_EGREP_found && break 3
4698 done
4699 done
4700 done
4701 IFS=$as_save_IFS
4702 if test -z "$ac_cv_path_EGREP"; then
4703 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4705 else
4706 ac_cv_path_EGREP=$EGREP
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4712 $as_echo "$ac_cv_path_EGREP" >&6; }
4713 EGREP="$ac_cv_path_EGREP"
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4717 $as_echo_n "checking for ANSI C header files... " >&6; }
4718 if ${ac_cv_header_stdc+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4723 #include <stdlib.h>
4724 #include <stdarg.h>
4725 #include <string.h>
4726 #include <float.h>
4729 main ()
4733 return 0;
4735 _ACEOF
4736 if ac_fn_c_try_compile "$LINENO"; then :
4737 ac_cv_header_stdc=yes
4738 else
4739 ac_cv_header_stdc=no
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 if test $ac_cv_header_stdc = yes; then
4744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747 #include <string.h>
4749 _ACEOF
4750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4751 $EGREP "memchr" >/dev/null 2>&1; then :
4753 else
4754 ac_cv_header_stdc=no
4756 rm -f conftest*
4760 if test $ac_cv_header_stdc = yes; then
4761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764 #include <stdlib.h>
4766 _ACEOF
4767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768 $EGREP "free" >/dev/null 2>&1; then :
4770 else
4771 ac_cv_header_stdc=no
4773 rm -f conftest*
4777 if test $ac_cv_header_stdc = yes; then
4778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4779 if test "$cross_compiling" = yes; then :
4781 else
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4784 #include <ctype.h>
4785 #include <stdlib.h>
4786 #if ((' ' & 0x0FF) == 0x020)
4787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4789 #else
4790 # define ISLOWER(c) \
4791 (('a' <= (c) && (c) <= 'i') \
4792 || ('j' <= (c) && (c) <= 'r') \
4793 || ('s' <= (c) && (c) <= 'z'))
4794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4795 #endif
4797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4799 main ()
4801 int i;
4802 for (i = 0; i < 256; i++)
4803 if (XOR (islower (i), ISLOWER (i))
4804 || toupper (i) != TOUPPER (i))
4805 return 2;
4806 return 0;
4808 _ACEOF
4809 if ac_fn_c_try_run "$LINENO"; then :
4811 else
4812 ac_cv_header_stdc=no
4814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4815 conftest.$ac_objext conftest.beam conftest.$ac_ext
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4821 $as_echo "$ac_cv_header_stdc" >&6; }
4822 if test $ac_cv_header_stdc = yes; then
4824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4828 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4829 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4830 inttypes.h stdint.h unistd.h
4831 do :
4832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4833 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4835 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4836 cat >>confdefs.h <<_ACEOF
4837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4838 _ACEOF
4842 done
4846 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4847 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4848 MINIX=yes
4849 else
4850 MINIX=
4854 if test "$MINIX" = yes; then
4856 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4859 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4862 $as_echo "#define _MINIX 1" >>confdefs.h
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4868 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4869 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4875 # define __EXTENSIONS__ 1
4876 $ac_includes_default
4878 main ()
4882 return 0;
4884 _ACEOF
4885 if ac_fn_c_try_compile "$LINENO"; then :
4886 ac_cv_safe_to_define___extensions__=yes
4887 else
4888 ac_cv_safe_to_define___extensions__=no
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4893 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4894 test $ac_cv_safe_to_define___extensions__ = yes &&
4895 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4897 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4899 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4901 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4903 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4907 # PR 14072
4911 # Check whether --with-sysroot was given.
4912 if test "${with_sysroot+set}" = set; then :
4913 withval=$with_sysroot; sysroot=$withval
4914 else
4915 sysroot=no
4919 if test "$sysroot" = "yes"; then
4920 sysroot='${exec_prefix}/${target_alias}/sys-root'
4921 elif test "$sysroot" = "no"; then
4922 sysroot=
4925 sysroot_relocatable=0
4926 if test -n "$sysroot"; then
4927 case "$sysroot" in
4928 "${prefix}" | "${prefix}/"* | \
4929 "${exec_prefix}" | "${exec_prefix}/"* | \
4930 '${prefix}' | '${prefix}/'*| \
4931 '${exec_prefix}' | '${exec_prefix}/'*)
4932 sysroot_relocatable=1
4934 esac
4938 cat >>confdefs.h <<_ACEOF
4939 #define TARGET_SYSTEM_ROOT "$sysroot"
4940 _ACEOF
4943 cat >>confdefs.h <<_ACEOF
4944 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
4945 _ACEOF
4949 installed_linker=ld.gold
4950 # Check whether --enable-gold was given.
4951 if test "${enable_gold+set}" = set; then :
4952 enableval=$enable_gold; case "${enableval}" in
4953 default)
4954 install_as_default=yes
4956 yes)
4957 if test x${enable_ld} = xno; then
4958 install_as_default=yes
4961 esac
4962 else
4963 install_as_default=no
4970 maybe_plugins=no
4971 for ac_header in dlfcn.h
4972 do :
4973 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4975 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4976 cat >>confdefs.h <<_ACEOF
4977 #define HAVE_DLFCN_H 1
4978 _ACEOF
4979 maybe_plugins=yes
4982 done
4984 for ac_header in windows.h
4985 do :
4986 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4988 if test "x$ac_cv_header_windows_h" = xyes; then :
4989 cat >>confdefs.h <<_ACEOF
4990 #define HAVE_WINDOWS_H 1
4991 _ACEOF
4992 maybe_plugins=yes
4995 done
4998 # Check whether --enable-plugins was given.
4999 if test "${enable_plugins+set}" = set; then :
5000 enableval=$enable_plugins; case "${enableval}" in
5001 no) plugins=no ;;
5002 *) plugins=yes
5003 if test "$maybe_plugins" != "yes" ; then
5004 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5005 fi ;;
5006 esac
5007 else
5008 plugins=$maybe_plugins
5012 if test "$plugins" = "yes"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5014 $as_echo_n "checking for library containing dlsym... " >&6; }
5015 if ${ac_cv_search_dlsym+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 ac_func_search_save_LIBS=$LIBS
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5022 /* Override any GCC internal prototype to avoid an error.
5023 Use char because int might match the return type of a GCC
5024 builtin and then its argument prototype would still apply. */
5025 #ifdef __cplusplus
5026 extern "C"
5027 #endif
5028 char dlsym ();
5030 main ()
5032 return dlsym ();
5034 return 0;
5036 _ACEOF
5037 for ac_lib in '' dl; do
5038 if test -z "$ac_lib"; then
5039 ac_res="none required"
5040 else
5041 ac_res=-l$ac_lib
5042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5044 if ac_fn_c_try_link "$LINENO"; then :
5045 ac_cv_search_dlsym=$ac_res
5047 rm -f core conftest.err conftest.$ac_objext \
5048 conftest$ac_exeext
5049 if ${ac_cv_search_dlsym+:} false; then :
5050 break
5052 done
5053 if ${ac_cv_search_dlsym+:} false; then :
5055 else
5056 ac_cv_search_dlsym=no
5058 rm conftest.$ac_ext
5059 LIBS=$ac_func_search_save_LIBS
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5062 $as_echo "$ac_cv_search_dlsym" >&6; }
5063 ac_res=$ac_cv_search_dlsym
5064 if test "$ac_res" != no; then :
5065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5071 if test "$plugins" = "yes"; then
5073 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5076 if test "$plugins" = "yes"; then
5077 PLUGINS_TRUE=
5078 PLUGINS_FALSE='#'
5079 else
5080 PLUGINS_TRUE='#'
5081 PLUGINS_FALSE=
5085 # Decide if -z relro should be enabled in ELF linker by default.
5086 ac_default_ld_z_relro=unset
5087 # Provide a configure time option to override our default.
5088 # Check whether --enable-relro was given.
5089 if test "${enable_relro+set}" = set; then :
5090 enableval=$enable_relro; case "${enableval}" in
5091 yes) ac_default_ld_z_relro=1 ;;
5092 no) ac_default_ld_z_relro=0 ;;
5093 esac
5095 if test "${ac_default_ld_z_relro}" = unset; then
5096 ac_default_ld_z_relro=1
5099 cat >>confdefs.h <<_ACEOF
5100 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
5101 _ACEOF
5104 # Check whether --enable-targets was given.
5105 if test "${enable_targets+set}" = set; then :
5106 enableval=$enable_targets; case "${enableval}" in
5107 yes | "")
5108 as_fn_error $? "--enable-targets option must specify target names or 'all'" "$LINENO" 5
5111 enable_targets=
5114 enable_targets=$enableval
5116 esac
5117 else
5118 # For now, enable all targets by default
5119 enable_targets=all
5124 # Canonicalize the enabled targets.
5125 if test -n "$enable_targets"; then
5126 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
5127 result=`$ac_config_sub $targ 2>/dev/null`
5128 if test -n "$result"; then
5129 canon_targets="$canon_targets $result"
5130 else
5131 # Permit unrecognized target names, like "all".
5132 canon_targets="$canon_targets $targ"
5134 done
5137 # Decide which "--hash-style" to use by default
5138 # Provide a configure time option to override our default.
5139 # Check whether --enable-default-hash-style was given.
5140 if test "${enable_default_hash_style+set}" = set; then :
5141 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
5142 sysv | gnu | both) ;;
5143 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
5144 esac
5145 else
5146 case "${target}" in
5147 # Enable gnu hash only on GNU targets, but not mips
5148 mips*-*-*) enable_default_hash_style=sysv ;;
5149 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
5150 *) enable_default_hash_style=sysv ;;
5151 esac
5156 cat >>confdefs.h <<_ACEOF
5157 #define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
5158 _ACEOF
5161 # See which specific instantiations we need.
5162 targetobjs=
5163 all_targets=
5164 default_machine=
5165 default_size=
5166 default_big_endian=
5167 default_osabi=ELFOSABI_NONE
5168 targ_32_little=
5169 targ_32_big=
5170 targ_64_little=
5171 targ_64_big=
5172 for targ in $target $canon_targets; do
5173 if test "$targ" = "all"; then
5174 targ_32_little=yes
5175 targ_32_big=yes
5176 targ_64_little=yes
5177 targ_64_big=yes
5178 all_targets=yes
5179 else
5180 . ${srcdir}/configure.tgt
5182 if test "$targ_obj" = "UNKNOWN"; then
5183 as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
5184 else
5185 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
5186 if test "$targ_extra_obj" != ""; then
5187 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5189 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5190 if test "$targ_big_endian" = "true" \
5191 -o "$targ_extra_big_endian" = "true"; then
5192 targ_32_big=yes
5194 if test "$targ_big_endian" = "false" \
5195 -o "$targ_extra_big_endian" = "false"; then
5196 targ_32_little=yes
5199 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5200 if test "$targ_big_endian" = "true" \
5201 -o "$targ_extra_big_endian" = "true"; then
5202 targ_64_big=yes
5204 if test "$targ_big_endian" = "false" \
5205 -o "$targ_extra_big_endian" = "false"; then
5206 targ_64_little=yes
5210 if test "$target" = "$targ"; then
5211 default_machine=$targ_machine
5212 default_size=$targ_size
5213 default_big_endian=$targ_big_endian
5214 default_osabi=$targ_osabi
5216 if test "$targ_obj" = "aarch64"; then
5217 DEFAULT_TARGET_AARCH64_TRUE=
5218 DEFAULT_TARGET_AARCH64_FALSE='#'
5219 else
5220 DEFAULT_TARGET_AARCH64_TRUE='#'
5221 DEFAULT_TARGET_AARCH64_FALSE=
5224 if test "$targ_obj" = "arm"; then
5225 DEFAULT_TARGET_ARM_TRUE=
5226 DEFAULT_TARGET_ARM_FALSE='#'
5227 else
5228 DEFAULT_TARGET_ARM_TRUE='#'
5229 DEFAULT_TARGET_ARM_FALSE=
5232 if test "$targ_obj" = "i386"; then
5233 DEFAULT_TARGET_I386_TRUE=
5234 DEFAULT_TARGET_I386_FALSE='#'
5235 else
5236 DEFAULT_TARGET_I386_TRUE='#'
5237 DEFAULT_TARGET_I386_FALSE=
5240 if test "$targ_obj" = "powerpc"; then
5241 DEFAULT_TARGET_POWERPC_TRUE=
5242 DEFAULT_TARGET_POWERPC_FALSE='#'
5243 else
5244 DEFAULT_TARGET_POWERPC_TRUE='#'
5245 DEFAULT_TARGET_POWERPC_FALSE=
5248 if test "$targ_obj" = "sparc"; then
5249 DEFAULT_TARGET_SPARC_TRUE=
5250 DEFAULT_TARGET_SPARC_FALSE='#'
5251 else
5252 DEFAULT_TARGET_SPARC_TRUE='#'
5253 DEFAULT_TARGET_SPARC_FALSE=
5256 if test "$targ_obj" = "s390"; then
5257 DEFAULT_TARGET_S390_TRUE=
5258 DEFAULT_TARGET_S390_FALSE='#'
5259 else
5260 DEFAULT_TARGET_S390_TRUE='#'
5261 DEFAULT_TARGET_S390_FALSE=
5264 target_x86_64=no
5265 target_x32=no
5266 if test "$targ_obj" = "x86_64"; then
5267 case "$target" in
5268 x86_64*-linux-gnux32)
5269 target_x32=yes
5270 default_size=32
5273 target_x86_64=yes
5275 esac
5277 if test "$target_x86_64" = "yes"; then
5278 DEFAULT_TARGET_X86_64_TRUE=
5279 DEFAULT_TARGET_X86_64_FALSE='#'
5280 else
5281 DEFAULT_TARGET_X86_64_TRUE='#'
5282 DEFAULT_TARGET_X86_64_FALSE=
5285 if test "$target_x32" = "yes"; then
5286 DEFAULT_TARGET_X32_TRUE=
5287 DEFAULT_TARGET_X32_FALSE='#'
5288 else
5289 DEFAULT_TARGET_X32_TRUE='#'
5290 DEFAULT_TARGET_X32_FALSE=
5293 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5294 DEFAULT_TARGET_X86_64_OR_X32_TRUE=
5295 DEFAULT_TARGET_X86_64_OR_X32_FALSE='#'
5296 else
5297 DEFAULT_TARGET_X86_64_OR_X32_TRUE='#'
5298 DEFAULT_TARGET_X86_64_OR_X32_FALSE=
5301 if test "$targ_obj" = "tilegx"; then
5302 DEFAULT_TARGET_TILEGX_TRUE=
5303 DEFAULT_TARGET_TILEGX_FALSE='#'
5304 else
5305 DEFAULT_TARGET_TILEGX_TRUE='#'
5306 DEFAULT_TARGET_TILEGX_FALSE=
5309 if test "$targ_obj" = "mips"; then
5310 DEFAULT_TARGET_MIPS_TRUE=
5311 DEFAULT_TARGET_MIPS_FALSE='#'
5312 else
5313 DEFAULT_TARGET_MIPS_TRUE='#'
5314 DEFAULT_TARGET_MIPS_FALSE=
5317 DEFAULT_TARGET=${targ_obj}
5322 done
5324 # Remove any duplicates.
5325 to=""
5326 for t in $targetobjs; do
5327 case " $to " in
5328 *" $t "*) ;;
5329 *) to="$to $t" ;;
5330 esac
5331 done
5332 targetobjs=$to
5334 if test -n "$targ_32_little"; then
5336 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
5339 if test -n "$targ_32_big"; then
5341 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
5344 if test -n "$targ_64_little"; then
5346 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
5349 if test -n "$targ_64_big"; then
5351 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
5355 if test -n "$all_targets"; then
5356 TARGETOBJS='$(ALL_TARGETOBJS)'
5357 else
5358 TARGETOBJS="$targetobjs"
5363 cat >>confdefs.h <<_ACEOF
5364 #define GOLD_DEFAULT_MACHINE $default_machine
5365 _ACEOF
5368 cat >>confdefs.h <<_ACEOF
5369 #define GOLD_DEFAULT_SIZE $default_size
5370 _ACEOF
5373 cat >>confdefs.h <<_ACEOF
5374 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5375 _ACEOF
5378 cat >>confdefs.h <<_ACEOF
5379 #define GOLD_DEFAULT_OSABI $default_osabi
5380 _ACEOF
5384 # Check whether --with-lib-path was given.
5385 if test "${with_lib_path+set}" = set; then :
5386 withval=$with_lib_path; case "$withval" in
5387 yes) LIB_PATH='"/lib:/usr/lib"' ;;
5388 no) LIB_PATH='""' ;;
5389 *) LIB_PATH='"'"$withval"'"' ;;
5390 esac
5391 else
5392 LIB_PATH='"::DEFAULT::"'
5396 cat >>confdefs.h <<_ACEOF
5397 #define LIB_PATH $LIB_PATH
5398 _ACEOF
5400 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
5402 $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5406 if test -n "$ac_tool_prefix"; then
5407 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5408 set dummy ${ac_tool_prefix}nm; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_prog_NM+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 if test -n "$NM"; then
5415 ac_cv_prog_NM="$NM" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_prog_NM="${ac_tool_prefix}nm"
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5428 done
5429 done
5430 IFS=$as_save_IFS
5434 NM=$ac_cv_prog_NM
5435 if test -n "$NM"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5437 $as_echo "$NM" >&6; }
5438 else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5445 if test -z "$ac_cv_prog_NM"; then
5446 ac_ct_NM=$NM
5447 # Extract the first word of "nm", so it can be a program name with args.
5448 set dummy nm; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$ac_ct_NM"; then
5455 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464 ac_cv_prog_ac_ct_NM="nm"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5468 done
5469 done
5470 IFS=$as_save_IFS
5474 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5475 if test -n "$ac_ct_NM"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5477 $as_echo "$ac_ct_NM" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5483 if test "x$ac_ct_NM" = x; then
5484 NM=""
5485 else
5486 case $cross_compiling:$ac_tool_warned in
5487 yes:)
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490 ac_tool_warned=yes ;;
5491 esac
5492 NM=$ac_ct_NM
5494 else
5495 NM="$ac_cv_prog_NM"
5499 ac_ext=c
5500 ac_cpp='$CPP $CPPFLAGS'
5501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5504 if test -n "$ac_tool_prefix"; then
5505 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5506 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if ${ac_cv_prog_CC+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 if test -n "$CC"; then
5513 ac_cv_prog_CC="$CC" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5526 done
5527 done
5528 IFS=$as_save_IFS
5532 CC=$ac_cv_prog_CC
5533 if test -n "$CC"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5535 $as_echo "$CC" >&6; }
5536 else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5543 if test -z "$ac_cv_prog_CC"; then
5544 ac_ct_CC=$CC
5545 # Extract the first word of "gcc", so it can be a program name with args.
5546 set dummy gcc; ac_word=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 if test -n "$ac_ct_CC"; then
5553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_ac_ct_CC="gcc"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 break 2
5566 done
5567 done
5568 IFS=$as_save_IFS
5572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5573 if test -n "$ac_ct_CC"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5575 $as_echo "$ac_ct_CC" >&6; }
5576 else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5581 if test "x$ac_ct_CC" = x; then
5582 CC=""
5583 else
5584 case $cross_compiling:$ac_tool_warned in
5585 yes:)
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588 ac_tool_warned=yes ;;
5589 esac
5590 CC=$ac_ct_CC
5592 else
5593 CC="$ac_cv_prog_CC"
5596 if test -z "$CC"; then
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}cc; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_CC+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test -n "$CC"; then
5606 ac_cv_prog_CC="$CC" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_CC="${ac_tool_prefix}cc"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5619 done
5620 done
5621 IFS=$as_save_IFS
5625 CC=$ac_cv_prog_CC
5626 if test -n "$CC"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5628 $as_echo "$CC" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5637 if test -z "$CC"; then
5638 # Extract the first word of "cc", so it can be a program name with args.
5639 set dummy cc; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_CC+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 if test -n "$CC"; then
5646 ac_cv_prog_CC="$CC" # Let the user override the test.
5647 else
5648 ac_prog_rejected=no
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5657 ac_prog_rejected=yes
5658 continue
5660 ac_cv_prog_CC="cc"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5664 done
5665 done
5666 IFS=$as_save_IFS
5668 if test $ac_prog_rejected = yes; then
5669 # We found a bogon in the path, so make sure we never use it.
5670 set dummy $ac_cv_prog_CC
5671 shift
5672 if test $# != 0; then
5673 # We chose a different compiler from the bogus one.
5674 # However, it has the same basename, so the bogon will be chosen
5675 # first if we set CC to just the basename; use the full file name.
5676 shift
5677 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5682 CC=$ac_cv_prog_CC
5683 if test -n "$CC"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5685 $as_echo "$CC" >&6; }
5686 else
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688 $as_echo "no" >&6; }
5693 if test -z "$CC"; then
5694 if test -n "$ac_tool_prefix"; then
5695 for ac_prog in cl.exe
5697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5698 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if ${ac_cv_prog_CC+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 if test -n "$CC"; then
5705 ac_cv_prog_CC="$CC" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5718 done
5719 done
5720 IFS=$as_save_IFS
5724 CC=$ac_cv_prog_CC
5725 if test -n "$CC"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5727 $as_echo "$CC" >&6; }
5728 else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5734 test -n "$CC" && break
5735 done
5737 if test -z "$CC"; then
5738 ac_ct_CC=$CC
5739 for ac_prog in cl.exe
5741 # Extract the first word of "$ac_prog", so it can be a program name with args.
5742 set dummy $ac_prog; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 if test -n "$ac_ct_CC"; then
5749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_ac_ct_CC="$ac_prog"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5762 done
5763 done
5764 IFS=$as_save_IFS
5768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5769 if test -n "$ac_ct_CC"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5771 $as_echo "$ac_ct_CC" >&6; }
5772 else
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5778 test -n "$ac_ct_CC" && break
5779 done
5781 if test "x$ac_ct_CC" = x; then
5782 CC=""
5783 else
5784 case $cross_compiling:$ac_tool_warned in
5785 yes:)
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5788 ac_tool_warned=yes ;;
5789 esac
5790 CC=$ac_ct_CC
5797 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5799 as_fn_error $? "no acceptable C compiler found in \$PATH
5800 See \`config.log' for more details" "$LINENO" 5; }
5802 # Provide some information about the compiler.
5803 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5804 set X $ac_compile
5805 ac_compiler=$2
5806 for ac_option in --version -v -V -qversion; do
5807 { { ac_try="$ac_compiler $ac_option >&5"
5808 case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811 esac
5812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5813 $as_echo "$ac_try_echo"; } >&5
5814 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5815 ac_status=$?
5816 if test -s conftest.err; then
5817 sed '10a\
5818 ... rest of stderr output deleted ...
5819 10q' conftest.err >conftest.er1
5820 cat conftest.er1 >&5
5822 rm -f conftest.er1 conftest.err
5823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5824 test $ac_status = 0; }
5825 done
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5828 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5829 if ${ac_cv_c_compiler_gnu+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5836 main ()
5838 #ifndef __GNUC__
5839 choke me
5840 #endif
5843 return 0;
5845 _ACEOF
5846 if ac_fn_c_try_compile "$LINENO"; then :
5847 ac_compiler_gnu=yes
5848 else
5849 ac_compiler_gnu=no
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5856 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5857 if test $ac_compiler_gnu = yes; then
5858 GCC=yes
5859 else
5860 GCC=
5862 ac_test_CFLAGS=${CFLAGS+set}
5863 ac_save_CFLAGS=$CFLAGS
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5865 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5866 if ${ac_cv_prog_cc_g+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 ac_save_c_werror_flag=$ac_c_werror_flag
5870 ac_c_werror_flag=yes
5871 ac_cv_prog_cc_g=no
5872 CFLAGS="-g"
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5877 main ()
5881 return 0;
5883 _ACEOF
5884 if ac_fn_c_try_compile "$LINENO"; then :
5885 ac_cv_prog_cc_g=yes
5886 else
5887 CFLAGS=""
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5892 main ()
5896 return 0;
5898 _ACEOF
5899 if ac_fn_c_try_compile "$LINENO"; then :
5901 else
5902 ac_c_werror_flag=$ac_save_c_werror_flag
5903 CFLAGS="-g"
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5908 main ()
5912 return 0;
5914 _ACEOF
5915 if ac_fn_c_try_compile "$LINENO"; then :
5916 ac_cv_prog_cc_g=yes
5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923 ac_c_werror_flag=$ac_save_c_werror_flag
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5926 $as_echo "$ac_cv_prog_cc_g" >&6; }
5927 if test "$ac_test_CFLAGS" = set; then
5928 CFLAGS=$ac_save_CFLAGS
5929 elif test $ac_cv_prog_cc_g = yes; then
5930 if test "$GCC" = yes; then
5931 CFLAGS="-g -O2"
5932 else
5933 CFLAGS="-g"
5935 else
5936 if test "$GCC" = yes; then
5937 CFLAGS="-O2"
5938 else
5939 CFLAGS=
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5943 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5944 if ${ac_cv_prog_cc_c89+:} false; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 ac_cv_prog_cc_c89=no
5948 ac_save_CC=$CC
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5951 #include <stdarg.h>
5952 #include <stdio.h>
5953 struct stat;
5954 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5955 struct buf { int x; };
5956 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5957 static char *e (p, i)
5958 char **p;
5959 int i;
5961 return p[i];
5963 static char *f (char * (*g) (char **, int), char **p, ...)
5965 char *s;
5966 va_list v;
5967 va_start (v,p);
5968 s = g (p, va_arg (v,int));
5969 va_end (v);
5970 return s;
5973 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5974 function prototypes and stuff, but not '\xHH' hex character constants.
5975 These don't provoke an error unfortunately, instead are silently treated
5976 as 'x'. The following induces an error, until -std is added to get
5977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5978 array size at least. It's necessary to write '\x00'==0 to get something
5979 that's true only with -std. */
5980 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5982 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5983 inside strings and character constants. */
5984 #define FOO(x) 'x'
5985 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5987 int test (int i, double x);
5988 struct s1 {int (*f) (int a);};
5989 struct s2 {int (*f) (double a);};
5990 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5991 int argc;
5992 char **argv;
5994 main ()
5996 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5998 return 0;
6000 _ACEOF
6001 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6004 CC="$ac_save_CC $ac_arg"
6005 if ac_fn_c_try_compile "$LINENO"; then :
6006 ac_cv_prog_cc_c89=$ac_arg
6008 rm -f core conftest.err conftest.$ac_objext
6009 test "x$ac_cv_prog_cc_c89" != "xno" && break
6010 done
6011 rm -f conftest.$ac_ext
6012 CC=$ac_save_CC
6015 # AC_CACHE_VAL
6016 case "x$ac_cv_prog_cc_c89" in
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6019 $as_echo "none needed" >&6; } ;;
6020 xno)
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6022 $as_echo "unsupported" >&6; } ;;
6024 CC="$CC $ac_cv_prog_cc_c89"
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6026 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6027 esac
6028 if test "x$ac_cv_prog_cc_c89" != xno; then :
6032 ac_ext=c
6033 ac_cpp='$CPP $CPPFLAGS'
6034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6038 ac_ext=c
6039 ac_cpp='$CPP $CPPFLAGS'
6040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6044 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6045 if ${am_cv_prog_cc_c_o+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6052 main ()
6056 return 0;
6058 _ACEOF
6059 # Make sure it works both with $CC and with simple cc.
6060 # Following AC_PROG_CC_C_O, we do the test twice because some
6061 # compilers refuse to overwrite an existing .o file with -o,
6062 # though they will create one.
6063 am_cv_prog_cc_c_o=yes
6064 for am_i in 1 2; do
6065 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6066 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } \
6070 && test -f conftest2.$ac_objext; then
6071 : OK
6072 else
6073 am_cv_prog_cc_c_o=no
6074 break
6076 done
6077 rm -f core conftest*
6078 unset am_i
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6081 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6082 if test "$am_cv_prog_cc_c_o" != yes; then
6083 # Losing compiler, so override with the script.
6084 # FIXME: It is wrong to rewrite CC.
6085 # But if we don't then we get into trouble of one sort or another.
6086 # A longer-term fix would be to have automake use am__CC in this case,
6087 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6088 CC="$am_aux_dir/compile $CC"
6090 ac_ext=c
6091 ac_cpp='$CPP $CPPFLAGS'
6092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6097 depcc="$CC" am_compiler_list=
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6100 $as_echo_n "checking dependency style of $depcc... " >&6; }
6101 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6102 $as_echo_n "(cached) " >&6
6103 else
6104 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6105 # We make a subdir and do the tests there. Otherwise we can end up
6106 # making bogus files that we don't know about and never remove. For
6107 # instance it was reported that on HP-UX the gcc test will end up
6108 # making a dummy file named 'D' -- because '-MD' means "put the output
6109 # in D".
6110 rm -rf conftest.dir
6111 mkdir conftest.dir
6112 # Copy depcomp to subdir because otherwise we won't find it if we're
6113 # using a relative directory.
6114 cp "$am_depcomp" conftest.dir
6115 cd conftest.dir
6116 # We will build objects and dependencies in a subdirectory because
6117 # it helps to detect inapplicable dependency modes. For instance
6118 # both Tru64's cc and ICC support -MD to output dependencies as a
6119 # side effect of compilation, but ICC will put the dependencies in
6120 # the current directory while Tru64 will put them in the object
6121 # directory.
6122 mkdir sub
6124 am_cv_CC_dependencies_compiler_type=none
6125 if test "$am_compiler_list" = ""; then
6126 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6128 am__universal=false
6129 case " $depcc " in #(
6130 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6131 esac
6133 for depmode in $am_compiler_list; do
6134 # Setup a source with many dependencies, because some compilers
6135 # like to wrap large dependency lists on column 80 (with \), and
6136 # we should not choose a depcomp mode which is confused by this.
6138 # We need to recreate these files for each test, as the compiler may
6139 # overwrite some of them when testing with obscure command lines.
6140 # This happens at least with the AIX C compiler.
6141 : > sub/conftest.c
6142 for i in 1 2 3 4 5 6; do
6143 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6144 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6145 # Solaris 10 /bin/sh.
6146 echo '/* dummy */' > sub/conftst$i.h
6147 done
6148 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6150 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6151 # mode. It turns out that the SunPro C++ compiler does not properly
6152 # handle '-M -o', and we need to detect this. Also, some Intel
6153 # versions had trouble with output in subdirs.
6154 am__obj=sub/conftest.${OBJEXT-o}
6155 am__minus_obj="-o $am__obj"
6156 case $depmode in
6157 gcc)
6158 # This depmode causes a compiler race in universal mode.
6159 test "$am__universal" = false || continue
6161 nosideeffect)
6162 # After this tag, mechanisms are not by side-effect, so they'll
6163 # only be used when explicitly requested.
6164 if test "x$enable_dependency_tracking" = xyes; then
6165 continue
6166 else
6167 break
6170 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6171 # This compiler won't grok '-c -o', but also, the minuso test has
6172 # not run yet. These depmodes are late enough in the game, and
6173 # so weak that their functioning should not be impacted.
6174 am__obj=conftest.${OBJEXT-o}
6175 am__minus_obj=
6177 none) break ;;
6178 esac
6179 if depmode=$depmode \
6180 source=sub/conftest.c object=$am__obj \
6181 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6182 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6183 >/dev/null 2>conftest.err &&
6184 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6185 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6186 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6187 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6188 # icc doesn't choke on unknown options, it will just issue warnings
6189 # or remarks (even with -Werror). So we grep stderr for any message
6190 # that says an option was ignored or not supported.
6191 # When given -MP, icc 7.0 and 7.1 complain thusly:
6192 # icc: Command line warning: ignoring option '-M'; no argument required
6193 # The diagnosis changed in icc 8.0:
6194 # icc: Command line remark: option '-MP' not supported
6195 if (grep 'ignoring option' conftest.err ||
6196 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6197 am_cv_CC_dependencies_compiler_type=$depmode
6198 break
6201 done
6203 cd ..
6204 rm -rf conftest.dir
6205 else
6206 am_cv_CC_dependencies_compiler_type=none
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6211 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6212 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6215 test "x$enable_dependency_tracking" != xno \
6216 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6217 am__fastdepCC_TRUE=
6218 am__fastdepCC_FALSE='#'
6219 else
6220 am__fastdepCC_TRUE='#'
6221 am__fastdepCC_FALSE=
6225 ac_ext=cpp
6226 ac_cpp='$CXXCPP $CPPFLAGS'
6227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6230 if test -z "$CXX"; then
6231 if test -n "$CCC"; then
6232 CXX=$CCC
6233 else
6234 if test -n "$ac_tool_prefix"; then
6235 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_prog_CXX+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 if test -n "$CXX"; then
6245 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 break 2
6258 done
6259 done
6260 IFS=$as_save_IFS
6264 CXX=$ac_cv_prog_CXX
6265 if test -n "$CXX"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6267 $as_echo "$CXX" >&6; }
6268 else
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6274 test -n "$CXX" && break
6275 done
6277 if test -z "$CXX"; then
6278 ac_ct_CXX=$CXX
6279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6281 # Extract the first word of "$ac_prog", so it can be a program name with args.
6282 set dummy $ac_prog; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6288 if test -n "$ac_ct_CXX"; then
6289 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6290 else
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_ac_ct_CXX="$ac_prog"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 break 2
6302 done
6303 done
6304 IFS=$as_save_IFS
6308 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6309 if test -n "$ac_ct_CXX"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6311 $as_echo "$ac_ct_CXX" >&6; }
6312 else
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6318 test -n "$ac_ct_CXX" && break
6319 done
6321 if test "x$ac_ct_CXX" = x; then
6322 CXX="g++"
6323 else
6324 case $cross_compiling:$ac_tool_warned in
6325 yes:)
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328 ac_tool_warned=yes ;;
6329 esac
6330 CXX=$ac_ct_CXX
6336 # Provide some information about the compiler.
6337 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6338 set X $ac_compile
6339 ac_compiler=$2
6340 for ac_option in --version -v -V -qversion; do
6341 { { ac_try="$ac_compiler $ac_option >&5"
6342 case "(($ac_try" in
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6345 esac
6346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6347 $as_echo "$ac_try_echo"; } >&5
6348 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6349 ac_status=$?
6350 if test -s conftest.err; then
6351 sed '10a\
6352 ... rest of stderr output deleted ...
6353 10q' conftest.err >conftest.er1
6354 cat conftest.er1 >&5
6356 rm -f conftest.er1 conftest.err
6357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6358 test $ac_status = 0; }
6359 done
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6362 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6363 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6370 main ()
6372 #ifndef __GNUC__
6373 choke me
6374 #endif
6377 return 0;
6379 _ACEOF
6380 if ac_fn_cxx_try_compile "$LINENO"; then :
6381 ac_compiler_gnu=yes
6382 else
6383 ac_compiler_gnu=no
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6390 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6391 if test $ac_compiler_gnu = yes; then
6392 GXX=yes
6393 else
6394 GXX=
6396 ac_test_CXXFLAGS=${CXXFLAGS+set}
6397 ac_save_CXXFLAGS=$CXXFLAGS
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6399 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6400 if ${ac_cv_prog_cxx_g+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6404 ac_cxx_werror_flag=yes
6405 ac_cv_prog_cxx_g=no
6406 CXXFLAGS="-g"
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6411 main ()
6415 return 0;
6417 _ACEOF
6418 if ac_fn_cxx_try_compile "$LINENO"; then :
6419 ac_cv_prog_cxx_g=yes
6420 else
6421 CXXFLAGS=""
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6426 main ()
6430 return 0;
6432 _ACEOF
6433 if ac_fn_cxx_try_compile "$LINENO"; then :
6435 else
6436 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6437 CXXFLAGS="-g"
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6442 main ()
6446 return 0;
6448 _ACEOF
6449 if ac_fn_cxx_try_compile "$LINENO"; then :
6450 ac_cv_prog_cxx_g=yes
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6460 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6461 if test "$ac_test_CXXFLAGS" = set; then
6462 CXXFLAGS=$ac_save_CXXFLAGS
6463 elif test $ac_cv_prog_cxx_g = yes; then
6464 if test "$GXX" = yes; then
6465 CXXFLAGS="-g -O2"
6466 else
6467 CXXFLAGS="-g"
6469 else
6470 if test "$GXX" = yes; then
6471 CXXFLAGS="-O2"
6472 else
6473 CXXFLAGS=
6476 ac_ext=c
6477 ac_cpp='$CPP $CPPFLAGS'
6478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6482 depcc="$CXX" am_compiler_list=
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6485 $as_echo_n "checking dependency style of $depcc... " >&6; }
6486 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6490 # We make a subdir and do the tests there. Otherwise we can end up
6491 # making bogus files that we don't know about and never remove. For
6492 # instance it was reported that on HP-UX the gcc test will end up
6493 # making a dummy file named 'D' -- because '-MD' means "put the output
6494 # in D".
6495 rm -rf conftest.dir
6496 mkdir conftest.dir
6497 # Copy depcomp to subdir because otherwise we won't find it if we're
6498 # using a relative directory.
6499 cp "$am_depcomp" conftest.dir
6500 cd conftest.dir
6501 # We will build objects and dependencies in a subdirectory because
6502 # it helps to detect inapplicable dependency modes. For instance
6503 # both Tru64's cc and ICC support -MD to output dependencies as a
6504 # side effect of compilation, but ICC will put the dependencies in
6505 # the current directory while Tru64 will put them in the object
6506 # directory.
6507 mkdir sub
6509 am_cv_CXX_dependencies_compiler_type=none
6510 if test "$am_compiler_list" = ""; then
6511 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6513 am__universal=false
6514 case " $depcc " in #(
6515 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6516 esac
6518 for depmode in $am_compiler_list; do
6519 # Setup a source with many dependencies, because some compilers
6520 # like to wrap large dependency lists on column 80 (with \), and
6521 # we should not choose a depcomp mode which is confused by this.
6523 # We need to recreate these files for each test, as the compiler may
6524 # overwrite some of them when testing with obscure command lines.
6525 # This happens at least with the AIX C compiler.
6526 : > sub/conftest.c
6527 for i in 1 2 3 4 5 6; do
6528 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6529 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6530 # Solaris 10 /bin/sh.
6531 echo '/* dummy */' > sub/conftst$i.h
6532 done
6533 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6535 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6536 # mode. It turns out that the SunPro C++ compiler does not properly
6537 # handle '-M -o', and we need to detect this. Also, some Intel
6538 # versions had trouble with output in subdirs.
6539 am__obj=sub/conftest.${OBJEXT-o}
6540 am__minus_obj="-o $am__obj"
6541 case $depmode in
6542 gcc)
6543 # This depmode causes a compiler race in universal mode.
6544 test "$am__universal" = false || continue
6546 nosideeffect)
6547 # After this tag, mechanisms are not by side-effect, so they'll
6548 # only be used when explicitly requested.
6549 if test "x$enable_dependency_tracking" = xyes; then
6550 continue
6551 else
6552 break
6555 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6556 # This compiler won't grok '-c -o', but also, the minuso test has
6557 # not run yet. These depmodes are late enough in the game, and
6558 # so weak that their functioning should not be impacted.
6559 am__obj=conftest.${OBJEXT-o}
6560 am__minus_obj=
6562 none) break ;;
6563 esac
6564 if depmode=$depmode \
6565 source=sub/conftest.c object=$am__obj \
6566 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6567 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6568 >/dev/null 2>conftest.err &&
6569 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6570 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6571 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6572 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6573 # icc doesn't choke on unknown options, it will just issue warnings
6574 # or remarks (even with -Werror). So we grep stderr for any message
6575 # that says an option was ignored or not supported.
6576 # When given -MP, icc 7.0 and 7.1 complain thusly:
6577 # icc: Command line warning: ignoring option '-M'; no argument required
6578 # The diagnosis changed in icc 8.0:
6579 # icc: Command line remark: option '-MP' not supported
6580 if (grep 'ignoring option' conftest.err ||
6581 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6582 am_cv_CXX_dependencies_compiler_type=$depmode
6583 break
6586 done
6588 cd ..
6589 rm -rf conftest.dir
6590 else
6591 am_cv_CXX_dependencies_compiler_type=none
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6596 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6597 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6600 test "x$enable_dependency_tracking" != xno \
6601 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6602 am__fastdepCXX_TRUE=
6603 am__fastdepCXX_FALSE='#'
6604 else
6605 am__fastdepCXX_TRUE='#'
6606 am__fastdepCXX_FALSE=
6610 for ac_prog in 'bison -y' byacc
6612 # Extract the first word of "$ac_prog", so it can be a program name with args.
6613 set dummy $ac_prog; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_YACC+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 if test -n "$YACC"; then
6620 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_YACC="$ac_prog"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6633 done
6634 done
6635 IFS=$as_save_IFS
6639 YACC=$ac_cv_prog_YACC
6640 if test -n "$YACC"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6642 $as_echo "$YACC" >&6; }
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6649 test -n "$YACC" && break
6650 done
6651 test -n "$YACC" || YACC="yacc"
6653 if test -n "$ac_tool_prefix"; then
6654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6655 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_RANLIB+:} false; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 if test -n "$RANLIB"; then
6662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 break 2
6675 done
6676 done
6677 IFS=$as_save_IFS
6681 RANLIB=$ac_cv_prog_RANLIB
6682 if test -n "$RANLIB"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6684 $as_echo "$RANLIB" >&6; }
6685 else
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6692 if test -z "$ac_cv_prog_RANLIB"; then
6693 ac_ct_RANLIB=$RANLIB
6694 # Extract the first word of "ranlib", so it can be a program name with args.
6695 set dummy ranlib; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6699 $as_echo_n "(cached) " >&6
6700 else
6701 if test -n "$ac_ct_RANLIB"; then
6702 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711 ac_cv_prog_ac_ct_RANLIB="ranlib"
6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6715 done
6716 done
6717 IFS=$as_save_IFS
6721 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6722 if test -n "$ac_ct_RANLIB"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6724 $as_echo "$ac_ct_RANLIB" >&6; }
6725 else
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6730 if test "x$ac_ct_RANLIB" = x; then
6731 RANLIB=":"
6732 else
6733 case $cross_compiling:$ac_tool_warned in
6734 yes:)
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6737 ac_tool_warned=yes ;;
6738 esac
6739 RANLIB=$ac_ct_RANLIB
6741 else
6742 RANLIB="$ac_cv_prog_RANLIB"
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6747 $as_echo_n "checking whether ln -s works... " >&6; }
6748 LN_S=$as_ln_s
6749 if test "$LN_S" = "ln -s"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6751 $as_echo "yes" >&6; }
6752 else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6754 $as_echo "no, using $LN_S" >&6; }
6760 # If we haven't got the data from the intl directory,
6761 # assume NLS is disabled.
6762 USE_NLS=no
6763 LIBINTL=
6764 LIBINTL_DEP=
6765 INCINTL=
6766 XGETTEXT=
6767 GMSGFMT=
6768 POSUB=
6770 if test -f ../intl/config.intl; then
6771 . ../intl/config.intl
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6774 $as_echo_n "checking whether NLS is requested... " >&6; }
6775 if test x"$USE_NLS" != xyes; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6778 else
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6780 $as_echo "yes" >&6; }
6782 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6786 $as_echo_n "checking for catalogs to be installed... " >&6; }
6787 # Look for .po and .gmo files in the source directory.
6788 CATALOGS=
6789 XLINGUAS=
6790 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6791 # If there aren't any .gmo files the shell will give us the
6792 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6793 # weeded out.
6794 case "$cat" in *\**)
6795 continue;;
6796 esac
6797 # The quadruple backslash is collapsed to a double backslash
6798 # by the backticks, then collapsed again by the double quotes,
6799 # leaving us with one backslash in the sed expression (right
6800 # before the dot that mustn't act as a wildcard).
6801 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6802 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6803 # The user is allowed to set LINGUAS to a list of languages to
6804 # install catalogs for. If it's empty that means "all of them."
6805 if test "x$LINGUAS" = x; then
6806 CATALOGS="$CATALOGS $cat"
6807 XLINGUAS="$XLINGUAS $lang"
6808 else
6809 case "$LINGUAS" in *$lang*)
6810 CATALOGS="$CATALOGS $cat"
6811 XLINGUAS="$XLINGUAS $lang"
6813 esac
6815 done
6816 LINGUAS="$XLINGUAS"
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6818 $as_echo "$LINGUAS" >&6; }
6821 DATADIRNAME=share
6823 INSTOBJEXT=.mo
6825 GENCAT=gencat
6827 CATOBJEXT=.gmo
6831 MKINSTALLDIRS=
6832 if test -n "$ac_aux_dir"; then
6833 case "$ac_aux_dir" in
6834 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6835 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6836 esac
6838 if test -z "$MKINSTALLDIRS"; then
6839 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6845 $as_echo_n "checking whether NLS is requested... " >&6; }
6846 # Check whether --enable-nls was given.
6847 if test "${enable_nls+set}" = set; then :
6848 enableval=$enable_nls; USE_NLS=$enableval
6849 else
6850 USE_NLS=yes
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6854 $as_echo "$USE_NLS" >&6; }
6861 # Prepare PATH_SEPARATOR.
6862 # The user is always right.
6863 if test "${PATH_SEPARATOR+set}" != set; then
6864 echo "#! /bin/sh" >conf$$.sh
6865 echo "exit 0" >>conf$$.sh
6866 chmod +x conf$$.sh
6867 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6868 PATH_SEPARATOR=';'
6869 else
6870 PATH_SEPARATOR=:
6872 rm -f conf$$.sh
6875 # Find out how to test for executable files. Don't use a zero-byte file,
6876 # as systems may use methods other than mode bits to determine executability.
6877 cat >conf$$.file <<_ASEOF
6878 #! /bin/sh
6879 exit 0
6880 _ASEOF
6881 chmod +x conf$$.file
6882 if test -x conf$$.file >/dev/null 2>&1; then
6883 ac_executable_p="test -x"
6884 else
6885 ac_executable_p="test -f"
6887 rm -f conf$$.file
6889 # Extract the first word of "msgfmt", so it can be a program name with args.
6890 set dummy msgfmt; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if ${ac_cv_path_MSGFMT+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 case "$MSGFMT" in
6897 [\\/]* | ?:[\\/]*)
6898 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6901 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6902 for ac_dir in $PATH; do
6903 IFS="$ac_save_IFS"
6904 test -z "$ac_dir" && ac_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6907 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6908 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6909 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6910 break 2
6913 done
6914 done
6915 IFS="$ac_save_IFS"
6916 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6918 esac
6920 MSGFMT="$ac_cv_path_MSGFMT"
6921 if test "$MSGFMT" != ":"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6923 $as_echo "$MSGFMT" >&6; }
6924 else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6929 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6930 set dummy gmsgfmt; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if ${ac_cv_path_GMSGFMT+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 case $GMSGFMT in
6937 [\\/]* | ?:[\\/]*)
6938 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6952 done
6953 done
6954 IFS=$as_save_IFS
6956 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6958 esac
6960 GMSGFMT=$ac_cv_path_GMSGFMT
6961 if test -n "$GMSGFMT"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6963 $as_echo "$GMSGFMT" >&6; }
6964 else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6972 # Prepare PATH_SEPARATOR.
6973 # The user is always right.
6974 if test "${PATH_SEPARATOR+set}" != set; then
6975 echo "#! /bin/sh" >conf$$.sh
6976 echo "exit 0" >>conf$$.sh
6977 chmod +x conf$$.sh
6978 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6979 PATH_SEPARATOR=';'
6980 else
6981 PATH_SEPARATOR=:
6983 rm -f conf$$.sh
6986 # Find out how to test for executable files. Don't use a zero-byte file,
6987 # as systems may use methods other than mode bits to determine executability.
6988 cat >conf$$.file <<_ASEOF
6989 #! /bin/sh
6990 exit 0
6991 _ASEOF
6992 chmod +x conf$$.file
6993 if test -x conf$$.file >/dev/null 2>&1; then
6994 ac_executable_p="test -x"
6995 else
6996 ac_executable_p="test -f"
6998 rm -f conf$$.file
7000 # Extract the first word of "xgettext", so it can be a program name with args.
7001 set dummy xgettext; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_path_XGETTEXT+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 case "$XGETTEXT" in
7008 [\\/]* | ?:[\\/]*)
7009 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7012 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7013 for ac_dir in $PATH; do
7014 IFS="$ac_save_IFS"
7015 test -z "$ac_dir" && ac_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7018 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7019 (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
7020 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7021 break 2
7024 done
7025 done
7026 IFS="$ac_save_IFS"
7027 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7029 esac
7031 XGETTEXT="$ac_cv_path_XGETTEXT"
7032 if test "$XGETTEXT" != ":"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7034 $as_echo "$XGETTEXT" >&6; }
7035 else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7040 rm -f messages.po
7043 # Prepare PATH_SEPARATOR.
7044 # The user is always right.
7045 if test "${PATH_SEPARATOR+set}" != set; then
7046 echo "#! /bin/sh" >conf$$.sh
7047 echo "exit 0" >>conf$$.sh
7048 chmod +x conf$$.sh
7049 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7050 PATH_SEPARATOR=';'
7051 else
7052 PATH_SEPARATOR=:
7054 rm -f conf$$.sh
7057 # Find out how to test for executable files. Don't use a zero-byte file,
7058 # as systems may use methods other than mode bits to determine executability.
7059 cat >conf$$.file <<_ASEOF
7060 #! /bin/sh
7061 exit 0
7062 _ASEOF
7063 chmod +x conf$$.file
7064 if test -x conf$$.file >/dev/null 2>&1; then
7065 ac_executable_p="test -x"
7066 else
7067 ac_executable_p="test -f"
7069 rm -f conf$$.file
7071 # Extract the first word of "msgmerge", so it can be a program name with args.
7072 set dummy msgmerge; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if ${ac_cv_path_MSGMERGE+:} false; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 case "$MSGMERGE" in
7079 [\\/]* | ?:[\\/]*)
7080 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7083 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7084 for ac_dir in $PATH; do
7085 IFS="$ac_save_IFS"
7086 test -z "$ac_dir" && ac_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7089 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7090 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7091 break 2
7094 done
7095 done
7096 IFS="$ac_save_IFS"
7097 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7099 esac
7101 MSGMERGE="$ac_cv_path_MSGMERGE"
7102 if test "$MSGMERGE" != ":"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7104 $as_echo "$MSGMERGE" >&6; }
7105 else
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7111 if test "$GMSGFMT" != ":"; then
7112 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7113 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7115 else
7116 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7118 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7119 GMSGFMT=":"
7123 if test "$XGETTEXT" != ":"; then
7124 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7125 (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
7127 else
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7129 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7130 XGETTEXT=":"
7132 rm -f messages.po
7135 ac_config_commands="$ac_config_commands default-1"
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7140 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7141 if ${ac_cv_c_bigendian+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 ac_cv_c_bigendian=unknown
7145 # See if we're dealing with a universal compiler.
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7148 #ifndef __APPLE_CC__
7149 not a universal capable compiler
7150 #endif
7151 typedef int dummy;
7153 _ACEOF
7154 if ac_fn_c_try_compile "$LINENO"; then :
7156 # Check for potential -arch flags. It is not universal unless
7157 # there are at least two -arch flags with different values.
7158 ac_arch=
7159 ac_prev=
7160 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7161 if test -n "$ac_prev"; then
7162 case $ac_word in
7163 i?86 | x86_64 | ppc | ppc64)
7164 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7165 ac_arch=$ac_word
7166 else
7167 ac_cv_c_bigendian=universal
7168 break
7171 esac
7172 ac_prev=
7173 elif test "x$ac_word" = "x-arch"; then
7174 ac_prev=arch
7176 done
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179 if test $ac_cv_c_bigendian = unknown; then
7180 # See if sys/param.h defines the BYTE_ORDER macro.
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7183 #include <sys/types.h>
7184 #include <sys/param.h>
7187 main ()
7189 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7190 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7191 && LITTLE_ENDIAN)
7192 bogus endian macros
7193 #endif
7196 return 0;
7198 _ACEOF
7199 if ac_fn_c_try_compile "$LINENO"; then :
7200 # It does; now see whether it defined to BIG_ENDIAN or not.
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7203 #include <sys/types.h>
7204 #include <sys/param.h>
7207 main ()
7209 #if BYTE_ORDER != BIG_ENDIAN
7210 not big endian
7211 #endif
7214 return 0;
7216 _ACEOF
7217 if ac_fn_c_try_compile "$LINENO"; then :
7218 ac_cv_c_bigendian=yes
7219 else
7220 ac_cv_c_bigendian=no
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 if test $ac_cv_c_bigendian = unknown; then
7227 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 #include <limits.h>
7233 main ()
7235 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7236 bogus endian macros
7237 #endif
7240 return 0;
7242 _ACEOF
7243 if ac_fn_c_try_compile "$LINENO"; then :
7244 # It does; now see whether it defined to _BIG_ENDIAN or not.
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247 #include <limits.h>
7250 main ()
7252 #ifndef _BIG_ENDIAN
7253 not big endian
7254 #endif
7257 return 0;
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
7265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7269 if test $ac_cv_c_bigendian = unknown; then
7270 # Compile a test program.
7271 if test "$cross_compiling" = yes; then :
7272 # Try to guess by grepping values from an object file.
7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h. */
7275 short int ascii_mm[] =
7276 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7277 short int ascii_ii[] =
7278 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7279 int use_ascii (int i) {
7280 return ascii_mm[i] + ascii_ii[i];
7282 short int ebcdic_ii[] =
7283 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7284 short int ebcdic_mm[] =
7285 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7286 int use_ebcdic (int i) {
7287 return ebcdic_mm[i] + ebcdic_ii[i];
7289 extern int foo;
7292 main ()
7294 return use_ascii (foo) == use_ebcdic (foo);
7296 return 0;
7298 _ACEOF
7299 if ac_fn_c_try_compile "$LINENO"; then :
7300 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7301 ac_cv_c_bigendian=yes
7303 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7304 if test "$ac_cv_c_bigendian" = unknown; then
7305 ac_cv_c_bigendian=no
7306 else
7307 # finding both strings is unlikely to happen, but who knows?
7308 ac_cv_c_bigendian=unknown
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313 else
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7316 $ac_includes_default
7318 main ()
7321 /* Are we little or big endian? From Harbison&Steele. */
7322 union
7324 long int l;
7325 char c[sizeof (long int)];
7326 } u;
7327 u.l = 1;
7328 return u.c[sizeof (long int) - 1] == 1;
7331 return 0;
7333 _ACEOF
7334 if ac_fn_c_try_run "$LINENO"; then :
7335 ac_cv_c_bigendian=no
7336 else
7337 ac_cv_c_bigendian=yes
7339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7340 conftest.$ac_objext conftest.beam conftest.$ac_ext
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7346 $as_echo "$ac_cv_c_bigendian" >&6; }
7347 case $ac_cv_c_bigendian in #(
7348 yes)
7349 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7350 ;; #(
7352 ;; #(
7353 universal)
7355 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7357 ;; #(
7359 as_fn_error $? "unknown endianness
7360 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7361 esac
7366 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
7367 NATIVE_LINKER_TRUE=
7368 NATIVE_LINKER_FALSE='#'
7369 else
7370 NATIVE_LINKER_TRUE='#'
7371 NATIVE_LINKER_FALSE=
7374 if test "$GCC" = yes; then
7375 GCC_TRUE=
7376 GCC_FALSE='#'
7377 else
7378 GCC_TRUE='#'
7379 GCC_FALSE=
7383 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
7384 NATIVE_OR_CROSS_LINKER_TRUE=
7385 NATIVE_OR_CROSS_LINKER_FALSE='#'
7386 else
7387 NATIVE_OR_CROSS_LINKER_TRUE='#'
7388 NATIVE_OR_CROSS_LINKER_FALSE=
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
7393 $as_echo_n "checking whether static linking works... " >&6; }
7394 if ${gold_cv_lib_static+:} false; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 LDFLAGS_hold=$LDFLAGS
7398 LDFLAGS="$LDFLAGS -static"
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7402 void f() { }
7404 main ()
7408 return 0;
7410 _ACEOF
7411 if ac_fn_c_try_link "$LINENO"; then :
7412 gold_cv_lib_static=yes
7413 else
7414 gold_cv_lib_static=no
7416 rm -f core conftest.err conftest.$ac_objext \
7417 conftest$ac_exeext conftest.$ac_ext
7418 LDFLAGS=$LDFLAGS_hold
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
7421 $as_echo "$gold_cv_lib_static" >&6; }
7422 if test "$gold_cv_lib_static" = "yes"; then
7423 HAVE_STATIC_TRUE=
7424 HAVE_STATIC_FALSE='#'
7425 else
7426 HAVE_STATIC_TRUE='#'
7427 HAVE_STATIC_FALSE=
7432 case $target_cpu in
7433 powerpc*) false;;
7434 x86_64) false;;
7435 sparc64) false;;
7436 s390x) false;;
7437 *) true;;
7438 esac; then
7439 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
7440 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
7441 else
7442 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
7443 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
7448 $as_echo_n "checking for gcc >= 4.1... " >&6; }
7449 if ${gold_cv_prog_gcc41+:} false; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7455 #if !defined __GNUC__
7456 error
7457 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
7458 error
7459 #endif
7461 _ACEOF
7462 if ac_fn_c_try_compile "$LINENO"; then :
7463 gold_cv_prog_gcc41=yes
7464 else
7465 gold_cv_prog_gcc41=no
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
7470 $as_echo "$gold_cv_prog_gcc41" >&6; }
7472 save_CFLAGS="$CFLAGS"
7473 CFLAGS="$CFLAGS -mcmodel=medium"
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7476 int i;
7477 _ACEOF
7478 if ac_fn_c_try_compile "$LINENO"; then :
7479 have_mcmodel_medium=yes
7480 else
7481 have_mcmodel_medium=no
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 CFLAGS="$save_CFLAGS"
7485 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
7486 MCMODEL_MEDIUM_TRUE=
7487 MCMODEL_MEDIUM_FALSE='#'
7488 else
7489 MCMODEL_MEDIUM_TRUE='#'
7490 MCMODEL_MEDIUM_FALSE=
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
7495 $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
7496 if ${gold_cv_merge_constants+:} false; then :
7497 $as_echo_n "(cached) " >&6
7498 else
7500 save_CFLAGS="$CFLAGS"
7501 CFLAGS="$CFLAGS -fmerge-constants"
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7504 const char *s = "foo";
7505 _ACEOF
7506 if ac_fn_c_try_compile "$LINENO"; then :
7507 gold_cv_merge_constants=yes
7508 else
7509 gold_cv_merge_constants=no
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512 CFLAGS="$save_CFLAGS"
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
7515 $as_echo "$gold_cv_merge_constants" >&6; }
7517 if test "$gold_cv_merge_constants" = yes; then :
7518 MERGE_CONSTANTS_FLAG=-fmerge-constants
7519 else
7520 MERGE_CONSTANTS_FLAG=
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
7524 $as_echo_n "checking for thread support... " >&6; }
7525 if ${gold_cv_c_thread+:} false; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7530 __thread int i = 1;
7531 _ACEOF
7532 if ac_fn_c_try_compile "$LINENO"; then :
7533 gold_cv_c_thread=yes
7534 else
7535 gold_cv_c_thread=no
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
7540 $as_echo "$gold_cv_c_thread" >&6; }
7542 if test "$gold_cv_c_thread" = "yes"; then
7543 TLS_TRUE=
7544 TLS_FALSE='#'
7545 else
7546 TLS_TRUE='#'
7547 TLS_FALSE=
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
7552 $as_echo_n "checking for glibc >= 2.4... " >&6; }
7553 if ${gold_cv_lib_glibc24+:} false; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7559 #include <features.h>
7560 #if !defined __GLIBC__
7561 error
7562 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
7563 error
7564 #endif
7566 _ACEOF
7567 if ac_fn_c_try_compile "$LINENO"; then :
7568 gold_cv_lib_glibc24=yes
7569 else
7570 gold_cv_lib_glibc24=no
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
7575 $as_echo "$gold_cv_lib_glibc24" >&6; }
7577 if test "$gold_cv_lib_glibc24" = "yes"; then
7578 STATIC_TLS_TRUE=
7579 STATIC_TLS_FALSE='#'
7580 else
7581 STATIC_TLS_TRUE='#'
7582 STATIC_TLS_FALSE=
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
7587 $as_echo_n "checking for omp support... " >&6; }
7588 if ${gold_cv_c_threadprivate+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 save_CFLAGS="$CFLAGS"
7592 CFLAGS="$CFLAGS -fopenmp"
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7596 #include <omp.h>
7597 int i;
7598 #pragma omp threadprivate (i)
7600 _ACEOF
7601 if ac_fn_c_try_compile "$LINENO"; then :
7602 gold_cv_c_threadprivate=yes
7603 else
7604 gold_cv_c_threadprivate=no
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7607 CFLAGS="$save_CFLAGS"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
7610 $as_echo "$gold_cv_c_threadprivate" >&6; }
7611 if test "$gold_cv_c_threadprivate" = "yes"; then
7613 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
7616 if test "$gold_cv_c_threadprivate" = "yes"; then
7617 OMP_SUPPORT_TRUE=
7618 OMP_SUPPORT_FALSE='#'
7619 else
7620 OMP_SUPPORT_TRUE='#'
7621 OMP_SUPPORT_FALSE=
7625 save_CFLAGS="$CFLAGS"
7626 CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7630 __thread int i;
7631 void foo (void)
7633 i = 10;
7636 _ACEOF
7637 if ac_fn_c_try_compile "$LINENO"; then :
7638 have_tls_gnu2=yes
7639 else
7640 have_tls_gnu2=no
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 CFLAGS="$save_CFLAGS"
7644 if test "$have_tls_gnu2" = "yes"; then
7645 TLS_GNU2_DIALECT_TRUE=
7646 TLS_GNU2_DIALECT_FALSE='#'
7647 else
7648 TLS_GNU2_DIALECT_TRUE='#'
7649 TLS_GNU2_DIALECT_FALSE=
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
7654 $as_echo_n "checking for glibc >= 2.9... " >&6; }
7655 if ${gold_cv_lib_glibc29+:} false; then :
7656 $as_echo_n "(cached) " >&6
7657 else
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7661 #include <features.h>
7662 #if !defined __GLIBC__
7663 error
7664 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
7665 error
7666 #endif
7668 _ACEOF
7669 if ac_fn_c_try_compile "$LINENO"; then :
7670 gold_cv_lib_glibc29=yes
7671 else
7672 gold_cv_lib_glibc29=no
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
7677 $as_echo "$gold_cv_lib_glibc29" >&6; }
7679 if test "$gold_cv_lib_glibc29" = "yes"; then
7680 TLS_DESCRIPTORS_TRUE=
7681 TLS_DESCRIPTORS_FALSE='#'
7682 else
7683 TLS_DESCRIPTORS_TRUE='#'
7684 TLS_DESCRIPTORS_FALSE=
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
7689 $as_echo_n "checking for -frandom-seed support... " >&6; }
7690 if ${gold_cv_c_random_seed+:} false; then :
7691 $as_echo_n "(cached) " >&6
7692 else
7693 save_CFLAGS="$CFLAGS"
7694 CFLAGS="$CFLAGS -frandom-seed=foo"
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 int i;
7698 _ACEOF
7699 if ac_fn_c_try_compile "$LINENO"; then :
7700 gold_cv_c_random_seed=yes
7701 else
7702 gold_cv_c_random_seed=no
7704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705 CFLAGS="$save_CFLAGS"
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
7708 $as_echo "$gold_cv_c_random_seed" >&6; }
7709 if test "$gold_cv_c_random_seed" = "yes"; then
7710 # In Makefile, '$@' will be expanded to be the name of the file
7711 # being built, providing a unique seed for each file.
7712 RANDOM_SEED_CFLAGS=-frandom-seed=\$@
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
7717 $as_echo_n "checking for glibc ifunc support... " >&6; }
7718 if ${gold_cv_lib_glibc_ifunc+:} false; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 save_LDFLAGS="$LDFLAGS"
7722 LDFLAGS="$LDFLAGS -static"
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7726 #include <features.h>
7727 #if !defined __GLIBC__
7728 error
7729 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
7730 error
7731 #endif
7732 void func (void) { }
7733 void invoke (void);
7734 __asm__(".type invoke, %gnu_indirect_function");
7735 typedef void (*funcptr) (void);
7736 funcptr dispatch (void) __asm__ ("invoke");
7737 funcptr dispatch (void) { return &func; }
7739 main ()
7741 invoke();
7743 return 0;
7746 _ACEOF
7747 if ac_fn_c_try_link "$LINENO"; then :
7749 if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
7750 gold_cv_lib_glibc_ifunc=both
7751 else
7752 gold_cv_lib_glibc_ifunc=dyn
7754 else
7755 gold_cv_lib_glibc_ifunc=no
7757 rm -f core conftest.err conftest.$ac_objext \
7758 conftest$ac_exeext conftest.$ac_ext
7759 LDFLAGS="$save_LDFLAGS"
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
7762 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
7764 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
7765 IFUNC_TRUE=
7766 IFUNC_FALSE='#'
7767 else
7768 IFUNC_TRUE='#'
7769 IFUNC_FALSE=
7772 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
7773 IFUNC_STATIC_TRUE=
7774 IFUNC_STATIC_FALSE='#'
7775 else
7776 IFUNC_STATIC_TRUE='#'
7777 IFUNC_STATIC_FALSE=
7782 # Set the 'development' global.
7783 . $srcdir/../bfd/development.sh
7785 # Set acp_cpp_for_build variable
7786 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
7788 # Default set of GCC warnings to enable.
7789 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7790 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7792 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7795 __GNUC__
7796 _ACEOF
7797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7798 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
7800 else
7801 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
7803 rm -f conftest*
7806 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809 __GNUC__
7810 _ACEOF
7811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7812 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
7814 else
7815 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
7817 rm -f conftest*
7820 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
7821 WARN_WRITE_STRINGS=""
7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7824 __GNUC__
7825 _ACEOF
7826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7827 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
7829 else
7830 WARN_WRITE_STRINGS="-Wwrite-strings"
7832 rm -f conftest*
7835 # Verify CC_FOR_BUILD to be compatible with warning flags
7837 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7840 __GNUC__
7841 _ACEOF
7842 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7843 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
7845 else
7846 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
7848 rm -f conftest*
7851 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7854 __GNUC__
7855 _ACEOF
7856 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7857 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
7859 else
7860 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
7862 rm -f conftest*
7865 # Check whether --enable-werror was given.
7866 if test "${enable_werror+set}" = set; then :
7867 enableval=$enable_werror; case "${enableval}" in
7868 yes | y) ERROR_ON_WARNING="yes" ;;
7869 no | n) ERROR_ON_WARNING="no" ;;
7870 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
7871 esac
7875 # Disable -Wformat by default when using gcc on mingw
7876 case "${host}" in
7877 *-*-mingw32*)
7878 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
7879 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
7880 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
7883 *) ;;
7884 esac
7886 # Enable -Werror by default when using gcc. Turn it off for releases.
7887 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
7888 ERROR_ON_WARNING=yes
7891 NO_WERROR=
7892 if test "${ERROR_ON_WARNING}" = yes ; then
7893 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
7894 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
7895 NO_WERROR="-Wno-error"
7898 if test "${GCC}" = yes ; then
7899 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
7900 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
7903 # Check whether --enable-build-warnings was given.
7904 if test "${enable_build_warnings+set}" = set; then :
7905 enableval=$enable_build_warnings; case "${enableval}" in
7906 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
7907 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
7908 no) if test "${GCC}" = yes ; then
7909 WARN_CFLAGS="-w"
7910 WARN_CFLAGS_FOR_BUILD="-w"
7911 fi;;
7912 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7913 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
7914 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
7915 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7916 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
7917 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
7918 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
7919 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7920 esac
7924 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
7925 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
7934 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
7938 # Check whether --with-gold-ldflags was given.
7939 if test "${with_gold_ldflags+set}" = set; then :
7940 withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
7941 GOLD_LDFLAGS=
7942 else
7943 GOLD_LDFLAGS=$withval
7945 else
7946 GOLD_LDFLAGS=
7952 # Check whether --with-gold-ldadd was given.
7953 if test "${with_gold_ldadd+set}" = set; then :
7954 withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
7955 GOLD_LDADD=
7956 else
7957 GOLD_LDADD=$withval
7959 else
7960 GOLD_LDADD=
7965 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
7968 for ac_header in sys/mman.h
7969 do :
7970 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
7971 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
7972 cat >>confdefs.h <<_ACEOF
7973 #define HAVE_SYS_MMAN_H 1
7974 _ACEOF
7978 done
7980 for ac_func in chsize mmap link
7981 do :
7982 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7983 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7984 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7985 cat >>confdefs.h <<_ACEOF
7986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7987 _ACEOF
7990 done
7992 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
7993 if test "x$ac_cv_func_pread" = xyes; then :
7994 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
7996 else
7997 case " $LIBOBJS " in
7998 *" pread.$ac_objext "* ) ;;
7999 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
8001 esac
8005 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
8006 if test "x$ac_cv_func_ftruncate" = xyes; then :
8007 $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
8009 else
8010 case " $LIBOBJS " in
8011 *" ftruncate.$ac_objext "* ) ;;
8012 *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
8014 esac
8018 ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll"
8019 if test "x$ac_cv_func_ffsll" = xyes; then :
8020 $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
8022 else
8023 case " $LIBOBJS " in
8024 *" ffsll.$ac_objext "* ) ;;
8025 *) LIBOBJS="$LIBOBJS ffsll.$ac_objext"
8027 esac
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
8034 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
8035 if ${gold_cv_lib_mremap_maymove+:} false; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8042 #include <sys/mman.h>
8043 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
8046 main ()
8050 return 0;
8052 _ACEOF
8053 if ac_fn_c_try_link "$LINENO"; then :
8054 gold_cv_lib_mremap_maymove=yes
8055 else
8056 gold_cv_lib_mremap_maymove=no
8058 rm -f core conftest.err conftest.$ac_objext \
8059 conftest$ac_exeext conftest.$ac_ext
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
8062 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
8063 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
8065 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
8067 else
8068 case " $LIBOBJS " in
8069 *" mremap.$ac_objext "* ) ;;
8070 *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
8072 esac
8076 # Link in zlib if we can. This allows us to write compressed sections.
8078 # Use the system's zlib library.
8079 zlibdir="-L\$(top_builddir)/../zlib"
8080 zlibinc="-I\$(top_srcdir)/../zlib"
8082 # Check whether --with-system-zlib was given.
8083 if test "${with_system_zlib+set}" = set; then :
8084 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8085 zlibdir=
8086 zlibinc=
8095 # Check whether --enable-threads was given.
8096 if test "${enable_threads+set}" = set; then :
8097 enableval=$enable_threads; case "${enableval}" in
8098 yes | "") threads=yes ;;
8099 no) threads=no ;;
8100 auto) threads=auto ;;
8101 *) threads=yes ;;
8102 esac
8103 else
8104 threads=auto
8108 if test "$threads" = "yes"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8110 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8111 if ${ac_cv_path_SED+:} false; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8115 for ac_i in 1 2 3 4 5 6 7; do
8116 ac_script="$ac_script$as_nl$ac_script"
8117 done
8118 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8119 { ac_script=; unset ac_script;}
8120 if test -z "$SED"; then
8121 ac_path_SED_found=false
8122 # Loop through the user's path and test for each of PROGNAME-LIST
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_prog in sed gsed; do
8129 for ac_exec_ext in '' $ac_executable_extensions; do
8130 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8131 as_fn_executable_p "$ac_path_SED" || continue
8132 # Check for GNU ac_path_SED and select it if it is found.
8133 # Check for GNU $ac_path_SED
8134 case `"$ac_path_SED" --version 2>&1` in
8135 *GNU*)
8136 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8138 ac_count=0
8139 $as_echo_n 0123456789 >"conftest.in"
8140 while :
8142 cat "conftest.in" "conftest.in" >"conftest.tmp"
8143 mv "conftest.tmp" "conftest.in"
8144 cp "conftest.in" "conftest.nl"
8145 $as_echo '' >> "conftest.nl"
8146 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8148 as_fn_arith $ac_count + 1 && ac_count=$as_val
8149 if test $ac_count -gt ${ac_path_SED_max-0}; then
8150 # Best one so far, save it but keep looking for a better one
8151 ac_cv_path_SED="$ac_path_SED"
8152 ac_path_SED_max=$ac_count
8154 # 10*(2^10) chars as input seems more than enough
8155 test $ac_count -gt 10 && break
8156 done
8157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8158 esac
8160 $ac_path_SED_found && break 3
8161 done
8162 done
8163 done
8164 IFS=$as_save_IFS
8165 if test -z "$ac_cv_path_SED"; then
8166 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8168 else
8169 ac_cv_path_SED=$SED
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8174 $as_echo "$ac_cv_path_SED" >&6; }
8175 SED="$ac_cv_path_SED"
8176 rm -f conftest.sed
8182 ac_ext=c
8183 ac_cpp='$CPP $CPPFLAGS'
8184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8188 ax_pthread_ok=no
8190 # We used to check for pthread.h first, but this fails if pthread.h
8191 # requires special compiler flags (e.g. on Tru64 or Sequent).
8192 # It gets checked for in the link test anyway.
8194 # First of all, check if the user has set any of the PTHREAD_LIBS,
8195 # etcetera environment variables, and if threads linking works using
8196 # them:
8197 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8198 ax_pthread_save_CC="$CC"
8199 ax_pthread_save_CFLAGS="$CFLAGS"
8200 ax_pthread_save_LIBS="$LIBS"
8201 if test "x$PTHREAD_CC" != "x"; then :
8202 CC="$PTHREAD_CC"
8204 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8205 LIBS="$PTHREAD_LIBS $LIBS"
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8207 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h. */
8211 /* Override any GCC internal prototype to avoid an error.
8212 Use char because int might match the return type of a GCC
8213 builtin and then its argument prototype would still apply. */
8214 #ifdef __cplusplus
8215 extern "C"
8216 #endif
8217 char pthread_join ();
8219 main ()
8221 return pthread_join ();
8223 return 0;
8225 _ACEOF
8226 if ac_fn_c_try_link "$LINENO"; then :
8227 ax_pthread_ok=yes
8229 rm -f core conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8232 $as_echo "$ax_pthread_ok" >&6; }
8233 if test "x$ax_pthread_ok" = "xno"; then
8234 PTHREAD_LIBS=""
8235 PTHREAD_CFLAGS=""
8237 CC="$ax_pthread_save_CC"
8238 CFLAGS="$ax_pthread_save_CFLAGS"
8239 LIBS="$ax_pthread_save_LIBS"
8242 # We must check for the threads library under a number of different
8243 # names; the ordering is very important because some systems
8244 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8245 # libraries is broken (non-POSIX).
8247 # Create a list of thread flags to try. Items starting with a "-" are
8248 # C compiler flags, and other items are library names, except for "none"
8249 # which indicates that we try without any flags at all, and "pthread-config"
8250 # which is a program returning the flags for the Pth emulation library.
8252 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8254 # The ordering *is* (sometimes) important. Some notes on the
8255 # individual items follow:
8257 # pthreads: AIX (must check this before -lpthread)
8258 # none: in case threads are in libc; should be tried before -Kthread and
8259 # other compiler flags to prevent continual compiler warnings
8260 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8261 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8262 # (Note: HP C rejects this with "bad form for `-t' option")
8263 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8264 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8265 # doesn't hurt to check since this sometimes defines pthreads and
8266 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
8267 # is present but should not be used directly; and before -mthreads,
8268 # because the compiler interprets this as "-mt" + "-hreads")
8269 # -mthreads: Mingw32/gcc, Lynx/gcc
8270 # pthread: Linux, etcetera
8271 # --thread-safe: KAI C++
8272 # pthread-config: use pthread-config program (for GNU Pth library)
8274 case $host_os in
8276 freebsd*)
8278 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8279 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8281 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
8284 hpux*)
8286 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8287 # multi-threading and also sets -lpthread."
8289 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8292 openedition*)
8294 # IBM z/OS requires a feature-test macro to be defined in order to
8295 # enable POSIX threads at all, so give the user a hint if this is
8296 # not set. (We don't define these ourselves, as they can affect
8297 # other portions of the system API in unpredictable ways.)
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8302 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8303 AX_PTHREAD_ZOS_MISSING
8304 # endif
8306 _ACEOF
8307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8308 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8310 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8312 rm -f conftest*
8316 solaris*)
8318 # On Solaris (at least, for some versions), libc contains stubbed
8319 # (non-functional) versions of the pthreads routines, so link-based
8320 # tests will erroneously succeed. (N.B.: The stubs are missing
8321 # pthread_cleanup_push, or rather a function called by this macro,
8322 # so we could check for that, but who knows whether they'll stub
8323 # that too in a future libc.) So we'll check first for the
8324 # standard Solaris way of linking pthreads (-mt -lpthread).
8326 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
8328 esac
8330 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8332 if test "x$GCC" = "xyes"; then :
8333 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
8336 # The presence of a feature test macro requesting re-entrant function
8337 # definitions is, on some systems, a strong hint that pthreads support is
8338 # correctly enabled
8340 case $host_os in
8341 darwin* | hpux* | linux* | osf* | solaris*)
8342 ax_pthread_check_macro="_REENTRANT"
8345 aix*)
8346 ax_pthread_check_macro="_THREAD_SAFE"
8350 ax_pthread_check_macro="--"
8352 esac
8353 if test "x$ax_pthread_check_macro" = "x--"; then :
8354 ax_pthread_check_cond=0
8355 else
8356 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
8359 # Are we compiling with Clang?
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
8362 $as_echo_n "checking whether $CC is Clang... " >&6; }
8363 if ${ax_cv_PTHREAD_CLANG+:} false; then :
8364 $as_echo_n "(cached) " >&6
8365 else
8366 ax_cv_PTHREAD_CLANG=no
8367 # Note that Autoconf sets GCC=yes for Clang as well as GCC
8368 if test "x$GCC" = "xyes"; then
8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h. */
8371 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
8372 # if defined(__clang__) && defined(__llvm__)
8373 AX_PTHREAD_CC_IS_CLANG
8374 # endif
8376 _ACEOF
8377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8378 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
8379 ax_cv_PTHREAD_CLANG=yes
8381 rm -f conftest*
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8387 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
8388 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
8390 ax_pthread_clang_warning=no
8392 # Clang needs special handling, because older versions handle the -pthread
8393 # option in a rather... idiosyncratic way
8395 if test "x$ax_pthread_clang" = "xyes"; then
8397 # Clang takes -pthread; it has never supported any other flag
8399 # (Note 1: This will need to be revisited if a system that Clang
8400 # supports has POSIX threads in a separate library. This tends not
8401 # to be the way of modern systems, but it's conceivable.)
8403 # (Note 2: On some systems, notably Darwin, -pthread is not needed
8404 # to get POSIX threads support; the API is always present and
8405 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
8406 # -pthread does define _REENTRANT, and while the Darwin headers
8407 # ignore this macro, third-party headers might not.)
8409 PTHREAD_CFLAGS="-pthread"
8410 PTHREAD_LIBS=
8412 ax_pthread_ok=yes
8414 # However, older versions of Clang make a point of warning the user
8415 # that, in an invocation where only linking and no compilation is
8416 # taking place, the -pthread option has no effect ("argument unused
8417 # during compilation"). They expect -pthread to be passed in only
8418 # when source code is being compiled.
8420 # Problem is, this is at odds with the way Automake and most other
8421 # C build frameworks function, which is that the same flags used in
8422 # compilation (CFLAGS) are also used in linking. Many systems
8423 # supported by AX_PTHREAD require exactly this for POSIX threads
8424 # support, and in fact it is often not straightforward to specify a
8425 # flag that is used only in the compilation phase and not in
8426 # linking. Such a scenario is extremely rare in practice.
8428 # Even though use of the -pthread flag in linking would only print
8429 # a warning, this can be a nuisance for well-run software projects
8430 # that build with -Werror. So if the active version of Clang has
8431 # this misfeature, we search for an option to squash it.
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8434 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8435 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
8439 # Create an alternate version of $ac_link that compiles and
8440 # links in two steps (.c -> .o, .o -> exe) instead of one
8441 # (.c -> exe), because the warning occurs only in the second
8442 # step
8443 ax_pthread_save_ac_link="$ac_link"
8444 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8445 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
8446 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8447 ax_pthread_save_CFLAGS="$CFLAGS"
8448 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
8449 if test "x$ax_pthread_try" = "xunknown"; then :
8450 break
8452 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8453 ac_link="$ax_pthread_save_ac_link"
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8456 int main(void){return 0;}
8457 _ACEOF
8458 if ac_fn_c_try_link "$LINENO"; then :
8459 ac_link="$ax_pthread_2step_ac_link"
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 int main(void){return 0;}
8463 _ACEOF
8464 if ac_fn_c_try_link "$LINENO"; then :
8465 break
8467 rm -f core conftest.err conftest.$ac_objext \
8468 conftest$ac_exeext conftest.$ac_ext
8471 rm -f core conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
8473 done
8474 ac_link="$ax_pthread_save_ac_link"
8475 CFLAGS="$ax_pthread_save_CFLAGS"
8476 if test "x$ax_pthread_try" = "x"; then :
8477 ax_pthread_try=no
8479 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8483 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8485 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8486 no | unknown) ;;
8487 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8488 esac
8490 fi # $ax_pthread_clang = yes
8492 if test "x$ax_pthread_ok" = "xno"; then
8493 for ax_pthread_try_flag in $ax_pthread_flags; do
8495 case $ax_pthread_try_flag in
8496 none)
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8498 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8501 -mt,pthread)
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8503 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8504 PTHREAD_CFLAGS="-mt"
8505 PTHREAD_LIBS="-lpthread"
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8510 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8511 PTHREAD_CFLAGS="$ax_pthread_try_flag"
8514 pthread-config)
8515 # Extract the first word of "pthread-config", so it can be a program name with args.
8516 set dummy pthread-config; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 if test -n "$ax_pthread_config"; then
8523 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8524 else
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 for as_dir in $PATH
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8532 ac_cv_prog_ax_pthread_config="yes"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 break 2
8536 done
8537 done
8538 IFS=$as_save_IFS
8540 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8543 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8544 if test -n "$ax_pthread_config"; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8546 $as_echo "$ax_pthread_config" >&6; }
8547 else
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549 $as_echo "no" >&6; }
8553 if test "x$ax_pthread_config" = "xno"; then :
8554 continue
8556 PTHREAD_CFLAGS="`pthread-config --cflags`"
8557 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8562 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8563 PTHREAD_LIBS="-l$ax_pthread_try_flag"
8565 esac
8567 ax_pthread_save_CFLAGS="$CFLAGS"
8568 ax_pthread_save_LIBS="$LIBS"
8569 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8570 LIBS="$PTHREAD_LIBS $LIBS"
8572 # Check for various functions. We must include pthread.h,
8573 # since some functions may be macros. (On the Sequent, we
8574 # need a special flag -Kthread to make this header compile.)
8575 # We check for pthread_join because it is in -lpthread on IRIX
8576 # while pthread_create is in libc. We check for pthread_attr_init
8577 # due to DEC craziness with -lpthreads. We check for
8578 # pthread_cleanup_push because it is one of the few pthread
8579 # functions on Solaris that doesn't have a non-functional libc stub.
8580 # We try pthread_create on general principles.
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8584 #include <pthread.h>
8585 # if $ax_pthread_check_cond
8586 # error "$ax_pthread_check_macro must be defined"
8587 # endif
8588 static void routine(void *a) { a = 0; }
8589 static void *start_routine(void *a) { return a; }
8591 main ()
8593 pthread_t th; pthread_attr_t attr;
8594 pthread_create(&th, 0, start_routine, 0);
8595 pthread_join(th, 0);
8596 pthread_attr_init(&attr);
8597 pthread_cleanup_push(routine, 0);
8598 pthread_cleanup_pop(0) /* ; */
8600 return 0;
8602 _ACEOF
8603 if ac_fn_c_try_link "$LINENO"; then :
8604 ax_pthread_ok=yes
8606 rm -f core conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
8609 CFLAGS="$ax_pthread_save_CFLAGS"
8610 LIBS="$ax_pthread_save_LIBS"
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8613 $as_echo "$ax_pthread_ok" >&6; }
8614 if test "x$ax_pthread_ok" = "xyes"; then :
8615 break
8618 PTHREAD_LIBS=""
8619 PTHREAD_CFLAGS=""
8620 done
8623 # Various other checks:
8624 if test "x$ax_pthread_ok" = "xyes"; then
8625 ax_pthread_save_CFLAGS="$CFLAGS"
8626 ax_pthread_save_LIBS="$LIBS"
8627 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8628 LIBS="$PTHREAD_LIBS $LIBS"
8630 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8632 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8633 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
8637 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h. */
8640 #include <pthread.h>
8642 main ()
8644 int attr = $ax_pthread_attr; return attr /* ; */
8646 return 0;
8648 _ACEOF
8649 if ac_fn_c_try_link "$LINENO"; then :
8650 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
8652 rm -f core conftest.err conftest.$ac_objext \
8653 conftest$ac_exeext conftest.$ac_ext
8654 done
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8658 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8659 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8660 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8661 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8663 cat >>confdefs.h <<_ACEOF
8664 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8665 _ACEOF
8667 ax_pthread_joinable_attr_defined=yes
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8672 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8673 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
8674 $as_echo_n "(cached) " >&6
8675 else
8676 ax_cv_PTHREAD_SPECIAL_FLAGS=no
8677 case $host_os in
8678 solaris*)
8679 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
8681 esac
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8685 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8686 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8687 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8688 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8689 ax_pthread_special_flags_added=yes
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8693 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8694 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8699 #include <pthread.h>
8701 main ()
8703 int i = PTHREAD_PRIO_INHERIT;
8705 return 0;
8707 _ACEOF
8708 if ac_fn_c_try_link "$LINENO"; then :
8709 ax_cv_PTHREAD_PRIO_INHERIT=yes
8710 else
8711 ax_cv_PTHREAD_PRIO_INHERIT=no
8713 rm -f core conftest.err conftest.$ac_objext \
8714 conftest$ac_exeext conftest.$ac_ext
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8718 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8719 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8720 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8722 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8724 ax_pthread_prio_inherit_defined=yes
8728 CFLAGS="$ax_pthread_save_CFLAGS"
8729 LIBS="$ax_pthread_save_LIBS"
8731 # More AIX lossage: compile with *_r variant
8732 if test "x$GCC" != "xyes"; then
8733 case $host_os in
8734 aix*)
8735 case "x/$CC" in #(
8736 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8737 #handle absolute path differently from PATH based program lookup
8738 case "x$CC" in #(
8739 x/*) :
8740 if as_fn_executable_p ${CC}_r; then :
8741 PTHREAD_CC="${CC}_r"
8742 fi ;; #(
8743 *) :
8744 for ac_prog in ${CC}_r
8746 # Extract the first word of "$ac_prog", so it can be a program name with args.
8747 set dummy $ac_prog; ac_word=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 if test -n "$PTHREAD_CC"; then
8754 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8755 else
8756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757 for as_dir in $PATH
8759 IFS=$as_save_IFS
8760 test -z "$as_dir" && as_dir=.
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_PTHREAD_CC="$ac_prog"
8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 break 2
8767 done
8768 done
8769 IFS=$as_save_IFS
8773 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8774 if test -n "$PTHREAD_CC"; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8776 $as_echo "$PTHREAD_CC" >&6; }
8777 else
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8783 test -n "$PTHREAD_CC" && break
8784 done
8785 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8787 esac ;; #(
8788 *) :
8790 esac
8792 esac
8796 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8802 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8803 if test "x$ax_pthread_ok" = "xyes"; then
8804 threads=yes
8806 else
8807 ax_pthread_ok=no
8808 as_fn_error $? "pthread not found" "$LINENO" 5
8810 ac_ext=c
8811 ac_cpp='$CPP $CPPFLAGS'
8812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8817 elif test "$threads" = "auto"; then
8822 ac_ext=c
8823 ac_cpp='$CPP $CPPFLAGS'
8824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8828 ax_pthread_ok=no
8830 # We used to check for pthread.h first, but this fails if pthread.h
8831 # requires special compiler flags (e.g. on Tru64 or Sequent).
8832 # It gets checked for in the link test anyway.
8834 # First of all, check if the user has set any of the PTHREAD_LIBS,
8835 # etcetera environment variables, and if threads linking works using
8836 # them:
8837 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8838 ax_pthread_save_CC="$CC"
8839 ax_pthread_save_CFLAGS="$CFLAGS"
8840 ax_pthread_save_LIBS="$LIBS"
8841 if test "x$PTHREAD_CC" != "x"; then :
8842 CC="$PTHREAD_CC"
8844 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8845 LIBS="$PTHREAD_LIBS $LIBS"
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8847 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h. */
8851 /* Override any GCC internal prototype to avoid an error.
8852 Use char because int might match the return type of a GCC
8853 builtin and then its argument prototype would still apply. */
8854 #ifdef __cplusplus
8855 extern "C"
8856 #endif
8857 char pthread_join ();
8859 main ()
8861 return pthread_join ();
8863 return 0;
8865 _ACEOF
8866 if ac_fn_c_try_link "$LINENO"; then :
8867 ax_pthread_ok=yes
8869 rm -f core conftest.err conftest.$ac_objext \
8870 conftest$ac_exeext conftest.$ac_ext
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8872 $as_echo "$ax_pthread_ok" >&6; }
8873 if test "x$ax_pthread_ok" = "xno"; then
8874 PTHREAD_LIBS=""
8875 PTHREAD_CFLAGS=""
8877 CC="$ax_pthread_save_CC"
8878 CFLAGS="$ax_pthread_save_CFLAGS"
8879 LIBS="$ax_pthread_save_LIBS"
8882 # We must check for the threads library under a number of different
8883 # names; the ordering is very important because some systems
8884 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8885 # libraries is broken (non-POSIX).
8887 # Create a list of thread flags to try. Items starting with a "-" are
8888 # C compiler flags, and other items are library names, except for "none"
8889 # which indicates that we try without any flags at all, and "pthread-config"
8890 # which is a program returning the flags for the Pth emulation library.
8892 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8894 # The ordering *is* (sometimes) important. Some notes on the
8895 # individual items follow:
8897 # pthreads: AIX (must check this before -lpthread)
8898 # none: in case threads are in libc; should be tried before -Kthread and
8899 # other compiler flags to prevent continual compiler warnings
8900 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8901 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8902 # (Note: HP C rejects this with "bad form for `-t' option")
8903 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8904 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8905 # doesn't hurt to check since this sometimes defines pthreads and
8906 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
8907 # is present but should not be used directly; and before -mthreads,
8908 # because the compiler interprets this as "-mt" + "-hreads")
8909 # -mthreads: Mingw32/gcc, Lynx/gcc
8910 # pthread: Linux, etcetera
8911 # --thread-safe: KAI C++
8912 # pthread-config: use pthread-config program (for GNU Pth library)
8914 case $host_os in
8916 freebsd*)
8918 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8919 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8921 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
8924 hpux*)
8926 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8927 # multi-threading and also sets -lpthread."
8929 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8932 openedition*)
8934 # IBM z/OS requires a feature-test macro to be defined in order to
8935 # enable POSIX threads at all, so give the user a hint if this is
8936 # not set. (We don't define these ourselves, as they can affect
8937 # other portions of the system API in unpredictable ways.)
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8942 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8943 AX_PTHREAD_ZOS_MISSING
8944 # endif
8946 _ACEOF
8947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8948 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8950 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8952 rm -f conftest*
8956 solaris*)
8958 # On Solaris (at least, for some versions), libc contains stubbed
8959 # (non-functional) versions of the pthreads routines, so link-based
8960 # tests will erroneously succeed. (N.B.: The stubs are missing
8961 # pthread_cleanup_push, or rather a function called by this macro,
8962 # so we could check for that, but who knows whether they'll stub
8963 # that too in a future libc.) So we'll check first for the
8964 # standard Solaris way of linking pthreads (-mt -lpthread).
8966 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
8968 esac
8970 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8972 if test "x$GCC" = "xyes"; then :
8973 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
8976 # The presence of a feature test macro requesting re-entrant function
8977 # definitions is, on some systems, a strong hint that pthreads support is
8978 # correctly enabled
8980 case $host_os in
8981 darwin* | hpux* | linux* | osf* | solaris*)
8982 ax_pthread_check_macro="_REENTRANT"
8985 aix*)
8986 ax_pthread_check_macro="_THREAD_SAFE"
8990 ax_pthread_check_macro="--"
8992 esac
8993 if test "x$ax_pthread_check_macro" = "x--"; then :
8994 ax_pthread_check_cond=0
8995 else
8996 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
8999 # Are we compiling with Clang?
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9002 $as_echo_n "checking whether $CC is Clang... " >&6; }
9003 if ${ax_cv_PTHREAD_CLANG+:} false; then :
9004 $as_echo_n "(cached) " >&6
9005 else
9006 ax_cv_PTHREAD_CLANG=no
9007 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9008 if test "x$GCC" = "xyes"; then
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9011 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9012 # if defined(__clang__) && defined(__llvm__)
9013 AX_PTHREAD_CC_IS_CLANG
9014 # endif
9016 _ACEOF
9017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9018 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9019 ax_cv_PTHREAD_CLANG=yes
9021 rm -f conftest*
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9027 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9028 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9030 ax_pthread_clang_warning=no
9032 # Clang needs special handling, because older versions handle the -pthread
9033 # option in a rather... idiosyncratic way
9035 if test "x$ax_pthread_clang" = "xyes"; then
9037 # Clang takes -pthread; it has never supported any other flag
9039 # (Note 1: This will need to be revisited if a system that Clang
9040 # supports has POSIX threads in a separate library. This tends not
9041 # to be the way of modern systems, but it's conceivable.)
9043 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9044 # to get POSIX threads support; the API is always present and
9045 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9046 # -pthread does define _REENTRANT, and while the Darwin headers
9047 # ignore this macro, third-party headers might not.)
9049 PTHREAD_CFLAGS="-pthread"
9050 PTHREAD_LIBS=
9052 ax_pthread_ok=yes
9054 # However, older versions of Clang make a point of warning the user
9055 # that, in an invocation where only linking and no compilation is
9056 # taking place, the -pthread option has no effect ("argument unused
9057 # during compilation"). They expect -pthread to be passed in only
9058 # when source code is being compiled.
9060 # Problem is, this is at odds with the way Automake and most other
9061 # C build frameworks function, which is that the same flags used in
9062 # compilation (CFLAGS) are also used in linking. Many systems
9063 # supported by AX_PTHREAD require exactly this for POSIX threads
9064 # support, and in fact it is often not straightforward to specify a
9065 # flag that is used only in the compilation phase and not in
9066 # linking. Such a scenario is extremely rare in practice.
9068 # Even though use of the -pthread flag in linking would only print
9069 # a warning, this can be a nuisance for well-run software projects
9070 # that build with -Werror. So if the active version of Clang has
9071 # this misfeature, we search for an option to squash it.
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9074 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9075 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9079 # Create an alternate version of $ac_link that compiles and
9080 # links in two steps (.c -> .o, .o -> exe) instead of one
9081 # (.c -> exe), because the warning occurs only in the second
9082 # step
9083 ax_pthread_save_ac_link="$ac_link"
9084 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9085 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9086 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9087 ax_pthread_save_CFLAGS="$CFLAGS"
9088 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9089 if test "x$ax_pthread_try" = "xunknown"; then :
9090 break
9092 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9093 ac_link="$ax_pthread_save_ac_link"
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9096 int main(void){return 0;}
9097 _ACEOF
9098 if ac_fn_c_try_link "$LINENO"; then :
9099 ac_link="$ax_pthread_2step_ac_link"
9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9102 int main(void){return 0;}
9103 _ACEOF
9104 if ac_fn_c_try_link "$LINENO"; then :
9105 break
9107 rm -f core conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9111 rm -f core conftest.err conftest.$ac_objext \
9112 conftest$ac_exeext conftest.$ac_ext
9113 done
9114 ac_link="$ax_pthread_save_ac_link"
9115 CFLAGS="$ax_pthread_save_CFLAGS"
9116 if test "x$ax_pthread_try" = "x"; then :
9117 ax_pthread_try=no
9119 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9123 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9125 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9126 no | unknown) ;;
9127 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9128 esac
9130 fi # $ax_pthread_clang = yes
9132 if test "x$ax_pthread_ok" = "xno"; then
9133 for ax_pthread_try_flag in $ax_pthread_flags; do
9135 case $ax_pthread_try_flag in
9136 none)
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9138 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9141 -mt,pthread)
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9143 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9144 PTHREAD_CFLAGS="-mt"
9145 PTHREAD_LIBS="-lpthread"
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9150 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9151 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9154 pthread-config)
9155 # Extract the first word of "pthread-config", so it can be a program name with args.
9156 set dummy pthread-config; ac_word=$2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 $as_echo_n "checking for $ac_word... " >&6; }
9159 if ${ac_cv_prog_ax_pthread_config+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 if test -n "$ax_pthread_config"; then
9163 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9164 else
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9172 ac_cv_prog_ax_pthread_config="yes"
9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9176 done
9177 done
9178 IFS=$as_save_IFS
9180 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9183 ax_pthread_config=$ac_cv_prog_ax_pthread_config
9184 if test -n "$ax_pthread_config"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9186 $as_echo "$ax_pthread_config" >&6; }
9187 else
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9193 if test "x$ax_pthread_config" = "xno"; then :
9194 continue
9196 PTHREAD_CFLAGS="`pthread-config --cflags`"
9197 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9202 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9203 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9205 esac
9207 ax_pthread_save_CFLAGS="$CFLAGS"
9208 ax_pthread_save_LIBS="$LIBS"
9209 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9210 LIBS="$PTHREAD_LIBS $LIBS"
9212 # Check for various functions. We must include pthread.h,
9213 # since some functions may be macros. (On the Sequent, we
9214 # need a special flag -Kthread to make this header compile.)
9215 # We check for pthread_join because it is in -lpthread on IRIX
9216 # while pthread_create is in libc. We check for pthread_attr_init
9217 # due to DEC craziness with -lpthreads. We check for
9218 # pthread_cleanup_push because it is one of the few pthread
9219 # functions on Solaris that doesn't have a non-functional libc stub.
9220 # We try pthread_create on general principles.
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9224 #include <pthread.h>
9225 # if $ax_pthread_check_cond
9226 # error "$ax_pthread_check_macro must be defined"
9227 # endif
9228 static void routine(void *a) { a = 0; }
9229 static void *start_routine(void *a) { return a; }
9231 main ()
9233 pthread_t th; pthread_attr_t attr;
9234 pthread_create(&th, 0, start_routine, 0);
9235 pthread_join(th, 0);
9236 pthread_attr_init(&attr);
9237 pthread_cleanup_push(routine, 0);
9238 pthread_cleanup_pop(0) /* ; */
9240 return 0;
9242 _ACEOF
9243 if ac_fn_c_try_link "$LINENO"; then :
9244 ax_pthread_ok=yes
9246 rm -f core conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9249 CFLAGS="$ax_pthread_save_CFLAGS"
9250 LIBS="$ax_pthread_save_LIBS"
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9253 $as_echo "$ax_pthread_ok" >&6; }
9254 if test "x$ax_pthread_ok" = "xyes"; then :
9255 break
9258 PTHREAD_LIBS=""
9259 PTHREAD_CFLAGS=""
9260 done
9263 # Various other checks:
9264 if test "x$ax_pthread_ok" = "xyes"; then
9265 ax_pthread_save_CFLAGS="$CFLAGS"
9266 ax_pthread_save_LIBS="$LIBS"
9267 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9268 LIBS="$PTHREAD_LIBS $LIBS"
9270 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9272 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9273 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9274 $as_echo_n "(cached) " >&6
9275 else
9276 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9277 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280 #include <pthread.h>
9282 main ()
9284 int attr = $ax_pthread_attr; return attr /* ; */
9286 return 0;
9288 _ACEOF
9289 if ac_fn_c_try_link "$LINENO"; then :
9290 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9292 rm -f core conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9294 done
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9298 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9299 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9300 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9301 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9303 cat >>confdefs.h <<_ACEOF
9304 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9305 _ACEOF
9307 ax_pthread_joinable_attr_defined=yes
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9312 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9313 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 ax_cv_PTHREAD_SPECIAL_FLAGS=no
9317 case $host_os in
9318 solaris*)
9319 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9321 esac
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9325 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9326 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9327 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9328 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9329 ax_pthread_special_flags_added=yes
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9333 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9334 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9335 $as_echo_n "(cached) " >&6
9336 else
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9339 #include <pthread.h>
9341 main ()
9343 int i = PTHREAD_PRIO_INHERIT;
9345 return 0;
9347 _ACEOF
9348 if ac_fn_c_try_link "$LINENO"; then :
9349 ax_cv_PTHREAD_PRIO_INHERIT=yes
9350 else
9351 ax_cv_PTHREAD_PRIO_INHERIT=no
9353 rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9358 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9359 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9360 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9362 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9364 ax_pthread_prio_inherit_defined=yes
9368 CFLAGS="$ax_pthread_save_CFLAGS"
9369 LIBS="$ax_pthread_save_LIBS"
9371 # More AIX lossage: compile with *_r variant
9372 if test "x$GCC" != "xyes"; then
9373 case $host_os in
9374 aix*)
9375 case "x/$CC" in #(
9376 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9377 #handle absolute path differently from PATH based program lookup
9378 case "x$CC" in #(
9379 x/*) :
9380 if as_fn_executable_p ${CC}_r; then :
9381 PTHREAD_CC="${CC}_r"
9382 fi ;; #(
9383 *) :
9384 for ac_prog in ${CC}_r
9386 # Extract the first word of "$ac_prog", so it can be a program name with args.
9387 set dummy $ac_prog; ac_word=$2
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389 $as_echo_n "checking for $ac_word... " >&6; }
9390 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 if test -n "$PTHREAD_CC"; then
9394 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9395 else
9396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397 for as_dir in $PATH
9399 IFS=$as_save_IFS
9400 test -z "$as_dir" && as_dir=.
9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9403 ac_cv_prog_PTHREAD_CC="$ac_prog"
9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9405 break 2
9407 done
9408 done
9409 IFS=$as_save_IFS
9413 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9414 if test -n "$PTHREAD_CC"; then
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9416 $as_echo "$PTHREAD_CC" >&6; }
9417 else
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 $as_echo "no" >&6; }
9423 test -n "$PTHREAD_CC" && break
9424 done
9425 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9427 esac ;; #(
9428 *) :
9430 esac
9432 esac
9436 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9442 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9443 if test "x$ax_pthread_ok" = "xyes"; then
9444 threads=yes
9446 else
9447 ax_pthread_ok=no
9448 threads=no
9450 ac_ext=c
9451 ac_cpp='$CPP $CPPFLAGS'
9452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9459 if test "$threads" = "yes"; then
9461 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
9464 if test "$threads" = "yes"; then
9465 THREADS_TRUE=
9466 THREADS_FALSE='#'
9467 else
9468 THREADS_TRUE='#'
9469 THREADS_FALSE=
9473 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
9474 if test "x$ac_cv_have_decl_basename" = xyes; then :
9475 ac_have_decl=1
9476 else
9477 ac_have_decl=0
9480 cat >>confdefs.h <<_ACEOF
9481 #define HAVE_DECL_BASENAME $ac_have_decl
9482 _ACEOF
9483 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
9484 if test "x$ac_cv_have_decl_ffs" = xyes; then :
9485 ac_have_decl=1
9486 else
9487 ac_have_decl=0
9490 cat >>confdefs.h <<_ACEOF
9491 #define HAVE_DECL_FFS $ac_have_decl
9492 _ACEOF
9493 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
9494 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
9495 ac_have_decl=1
9496 else
9497 ac_have_decl=0
9500 cat >>confdefs.h <<_ACEOF
9501 #define HAVE_DECL_ASPRINTF $ac_have_decl
9502 _ACEOF
9503 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
9504 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
9505 ac_have_decl=1
9506 else
9507 ac_have_decl=0
9510 cat >>confdefs.h <<_ACEOF
9511 #define HAVE_DECL_VASPRINTF $ac_have_decl
9512 _ACEOF
9513 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9514 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
9515 ac_have_decl=1
9516 else
9517 ac_have_decl=0
9520 cat >>confdefs.h <<_ACEOF
9521 #define HAVE_DECL_SNPRINTF $ac_have_decl
9522 _ACEOF
9523 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9524 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
9525 ac_have_decl=1
9526 else
9527 ac_have_decl=0
9530 cat >>confdefs.h <<_ACEOF
9531 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9532 _ACEOF
9533 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
9534 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
9535 ac_have_decl=1
9536 else
9537 ac_have_decl=0
9540 cat >>confdefs.h <<_ACEOF
9541 #define HAVE_DECL_STRVERSCMP $ac_have_decl
9542 _ACEOF
9545 save_CFLAGS="$CFLAGS"
9546 CFLAGS="$CFLAGS -Werror -gpubnames"
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549 int i;
9550 _ACEOF
9551 if ac_fn_c_try_compile "$LINENO"; then :
9552 have_pubnames=yes
9553 else
9554 have_pubnames=no
9556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9557 CFLAGS="$save_CFLAGS"
9558 if test "$have_pubnames" = "yes"; then
9559 HAVE_PUBNAMES_TRUE=
9560 HAVE_PUBNAMES_FALSE='#'
9561 else
9562 HAVE_PUBNAMES_TRUE='#'
9563 HAVE_PUBNAMES_FALSE=
9567 save_CFLAGS="$CFLAGS"
9568 CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571 int i;
9572 _ACEOF
9573 if ac_fn_c_try_compile "$LINENO"; then :
9574 have_no_use_linker_plugin=yes
9575 else
9576 have_no_use_linker_plugin=no
9578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579 CFLAGS="$save_CFLAGS"
9580 if test "$have_no_use_linker_plugin" = "yes"; then
9581 HAVE_NO_USE_LINKER_PLUGIN_TRUE=
9582 HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
9583 else
9584 HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
9585 HAVE_NO_USE_LINKER_PLUGIN_FALSE=
9589 ac_ext=cpp
9590 ac_cpp='$CXXCPP $CPPFLAGS'
9591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9597 ac_ext=cpp
9598 ac_cpp='$CXXCPP $CPPFLAGS'
9599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9603 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9604 if test -z "$CXXCPP"; then
9605 if ${ac_cv_prog_CXXCPP+:} false; then :
9606 $as_echo_n "(cached) " >&6
9607 else
9608 # Double quotes because CXXCPP needs to be expanded
9609 for CXXCPP in "$CXX -E" "/lib/cpp"
9611 ac_preproc_ok=false
9612 for ac_cxx_preproc_warn_flag in '' yes
9614 # Use a header file that comes with gcc, so configuring glibc
9615 # with a fresh cross-compiler works.
9616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9617 # <limits.h> exists even on freestanding compilers.
9618 # On the NeXT, cc -E runs the code through the compiler's parser,
9619 # not just through cpp. "Syntax error" is here to catch this case.
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622 #ifdef __STDC__
9623 # include <limits.h>
9624 #else
9625 # include <assert.h>
9626 #endif
9627 Syntax error
9628 _ACEOF
9629 if ac_fn_cxx_try_cpp "$LINENO"; then :
9631 else
9632 # Broken: fails on valid input.
9633 continue
9635 rm -f conftest.err conftest.i conftest.$ac_ext
9637 # OK, works on sane cases. Now check whether nonexistent headers
9638 # can be detected and how.
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9641 #include <ac_nonexistent.h>
9642 _ACEOF
9643 if ac_fn_cxx_try_cpp "$LINENO"; then :
9644 # Broken: success on invalid input.
9645 continue
9646 else
9647 # Passes both tests.
9648 ac_preproc_ok=:
9649 break
9651 rm -f conftest.err conftest.i conftest.$ac_ext
9653 done
9654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9655 rm -f conftest.i conftest.err conftest.$ac_ext
9656 if $ac_preproc_ok; then :
9657 break
9660 done
9661 ac_cv_prog_CXXCPP=$CXXCPP
9664 CXXCPP=$ac_cv_prog_CXXCPP
9665 else
9666 ac_cv_prog_CXXCPP=$CXXCPP
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9669 $as_echo "$CXXCPP" >&6; }
9670 ac_preproc_ok=false
9671 for ac_cxx_preproc_warn_flag in '' yes
9673 # Use a header file that comes with gcc, so configuring glibc
9674 # with a fresh cross-compiler works.
9675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9676 # <limits.h> exists even on freestanding compilers.
9677 # On the NeXT, cc -E runs the code through the compiler's parser,
9678 # not just through cpp. "Syntax error" is here to catch this case.
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9681 #ifdef __STDC__
9682 # include <limits.h>
9683 #else
9684 # include <assert.h>
9685 #endif
9686 Syntax error
9687 _ACEOF
9688 if ac_fn_cxx_try_cpp "$LINENO"; then :
9690 else
9691 # Broken: fails on valid input.
9692 continue
9694 rm -f conftest.err conftest.i conftest.$ac_ext
9696 # OK, works on sane cases. Now check whether nonexistent headers
9697 # can be detected and how.
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9700 #include <ac_nonexistent.h>
9701 _ACEOF
9702 if ac_fn_cxx_try_cpp "$LINENO"; then :
9703 # Broken: success on invalid input.
9704 continue
9705 else
9706 # Passes both tests.
9707 ac_preproc_ok=:
9708 break
9710 rm -f conftest.err conftest.i conftest.$ac_ext
9712 done
9713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9714 rm -f conftest.i conftest.err conftest.$ac_ext
9715 if $ac_preproc_ok; then :
9717 else
9718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9720 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
9721 See \`config.log' for more details" "$LINENO" 5; }
9724 ac_ext=cpp
9725 ac_cpp='$CXXCPP $CPPFLAGS'
9726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9731 for ac_header in unordered_set unordered_map
9732 do :
9733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9734 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9736 cat >>confdefs.h <<_ACEOF
9737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9738 _ACEOF
9742 done
9744 for ac_header in tr1/unordered_set tr1/unordered_map
9745 do :
9746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9747 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9749 cat >>confdefs.h <<_ACEOF
9750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9751 _ACEOF
9755 done
9757 for ac_header in ext/hash_map ext/hash_set
9758 do :
9759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9760 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9761 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9762 cat >>confdefs.h <<_ACEOF
9763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9764 _ACEOF
9768 done
9770 for ac_header in byteswap.h
9771 do :
9772 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
9773 if test "x$ac_cv_header_byteswap_h" = xyes; then :
9774 cat >>confdefs.h <<_ACEOF
9775 #define HAVE_BYTESWAP_H 1
9776 _ACEOF
9780 done
9783 ac_fn_cxx_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
9785 if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
9786 ac_have_decl=1
9787 else
9788 ac_have_decl=0
9791 cat >>confdefs.h <<_ACEOF
9792 #define HAVE_DECL_BSWAP_16 $ac_have_decl
9793 _ACEOF
9794 ac_fn_cxx_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
9796 if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
9797 ac_have_decl=1
9798 else
9799 ac_have_decl=0
9802 cat >>confdefs.h <<_ACEOF
9803 #define HAVE_DECL_BSWAP_32 $ac_have_decl
9804 _ACEOF
9805 ac_fn_cxx_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
9807 if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
9808 ac_have_decl=1
9809 else
9810 ac_have_decl=0
9813 cat >>confdefs.h <<_ACEOF
9814 #define HAVE_DECL_BSWAP_64 $ac_have_decl
9815 _ACEOF
9818 for ac_header in windows.h
9819 do :
9820 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9821 if test "x$ac_cv_header_windows_h" = xyes; then :
9822 cat >>confdefs.h <<_ACEOF
9823 #define HAVE_WINDOWS_H 1
9824 _ACEOF
9828 done
9830 for ac_header in dlfcn.h
9831 do :
9832 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9833 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9834 cat >>confdefs.h <<_ACEOF
9835 #define HAVE_DLFCN_H 1
9836 _ACEOF
9840 done
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9843 $as_echo_n "checking for library containing dlopen... " >&6; }
9844 if ${ac_cv_search_dlopen+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 ac_func_search_save_LIBS=$LIBS
9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h. */
9851 /* Override any GCC internal prototype to avoid an error.
9852 Use char because int might match the return type of a GCC
9853 builtin and then its argument prototype would still apply. */
9854 #ifdef __cplusplus
9855 extern "C"
9856 #endif
9857 char dlopen ();
9859 main ()
9861 return dlopen ();
9863 return 0;
9865 _ACEOF
9866 for ac_lib in '' dl dld; do
9867 if test -z "$ac_lib"; then
9868 ac_res="none required"
9869 else
9870 ac_res=-l$ac_lib
9871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9873 if ac_fn_cxx_try_link "$LINENO"; then :
9874 ac_cv_search_dlopen=$ac_res
9876 rm -f core conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext
9878 if ${ac_cv_search_dlopen+:} false; then :
9879 break
9881 done
9882 if ${ac_cv_search_dlopen+:} false; then :
9884 else
9885 ac_cv_search_dlopen=no
9887 rm conftest.$ac_ext
9888 LIBS=$ac_func_search_save_LIBS
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9891 $as_echo "$ac_cv_search_dlopen" >&6; }
9892 ac_res=$ac_cv_search_dlopen
9893 if test "$ac_res" != no; then :
9894 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9898 case "$ac_cv_search_dlopen" in
9899 no*) DLOPEN_LIBS="";;
9900 *) DLOPEN_LIBS="$ac_cv_search_dlopen";;
9901 esac
9904 for ac_func in mallinfo posix_fallocate fallocate readv sysconf times mkdtemp
9905 do :
9906 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9907 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9908 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9909 cat >>confdefs.h <<_ACEOF
9910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9911 _ACEOF
9914 done
9916 ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
9917 if test "x$ac_cv_have_decl_basename" = xyes; then :
9918 ac_have_decl=1
9919 else
9920 ac_have_decl=0
9923 cat >>confdefs.h <<_ACEOF
9924 #define HAVE_DECL_BASENAME $ac_have_decl
9925 _ACEOF
9926 ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
9927 if test "x$ac_cv_have_decl_ffs" = xyes; then :
9928 ac_have_decl=1
9929 else
9930 ac_have_decl=0
9933 cat >>confdefs.h <<_ACEOF
9934 #define HAVE_DECL_FFS $ac_have_decl
9935 _ACEOF
9936 ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
9937 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
9938 ac_have_decl=1
9939 else
9940 ac_have_decl=0
9943 cat >>confdefs.h <<_ACEOF
9944 #define HAVE_DECL_ASPRINTF $ac_have_decl
9945 _ACEOF
9946 ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
9947 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
9948 ac_have_decl=1
9949 else
9950 ac_have_decl=0
9953 cat >>confdefs.h <<_ACEOF
9954 #define HAVE_DECL_VASPRINTF $ac_have_decl
9955 _ACEOF
9956 ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9957 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
9958 ac_have_decl=1
9959 else
9960 ac_have_decl=0
9963 cat >>confdefs.h <<_ACEOF
9964 #define HAVE_DECL_SNPRINTF $ac_have_decl
9965 _ACEOF
9966 ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9967 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
9968 ac_have_decl=1
9969 else
9970 ac_have_decl=0
9973 cat >>confdefs.h <<_ACEOF
9974 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9975 _ACEOF
9976 ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
9977 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
9978 ac_have_decl=1
9979 else
9980 ac_have_decl=0
9983 cat >>confdefs.h <<_ACEOF
9984 #define HAVE_DECL_STRVERSCMP $ac_have_decl
9985 _ACEOF
9986 ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
9987 if test "x$ac_cv_have_decl_strndup" = xyes; then :
9988 ac_have_decl=1
9989 else
9990 ac_have_decl=0
9993 cat >>confdefs.h <<_ACEOF
9994 #define HAVE_DECL_STRNDUP $ac_have_decl
9995 _ACEOF
9996 ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
9997 if test "x$ac_cv_have_decl_memmem" = xyes; then :
9998 ac_have_decl=1
9999 else
10000 ac_have_decl=0
10003 cat >>confdefs.h <<_ACEOF
10004 #define HAVE_DECL_MEMMEM $ac_have_decl
10005 _ACEOF
10008 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
10009 # at link time with some versions of GCC.
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
10011 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
10012 if ${gold_cv_unordered_map_rehash+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10018 #include <tr1/unordered_map>
10019 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
10022 main ()
10026 return 0;
10028 _ACEOF
10029 if ac_fn_cxx_try_link "$LINENO"; then :
10030 gold_cv_unordered_map_rehash=yes
10031 else
10032 gold_cv_unordered_map_rehash=no
10034 rm -f core conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
10038 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
10039 if test "$gold_cv_unordered_map_rehash" = "yes"; then
10041 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
10045 # Use of tr1/unordered_map with off_t as a key is not supported on GCC
10046 # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
10048 $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
10049 if ${gold_cv_hash_off_t+:} false; then :
10050 $as_echo_n "(cached) " >&6
10051 else
10052 CXXFLAGS_hold=$CXXFLAGS
10053 CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10057 #include <sys/types.h>
10058 #include <tr1/unordered_map>
10059 std::tr1::hash<off_t> h;
10061 _ACEOF
10062 if ac_fn_cxx_try_compile "$LINENO"; then :
10063 gold_cv_hash_off_t=yes
10064 else
10065 gold_cv_hash_off_t=no
10067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10068 CXXFLAGS=$CXXFLAGS_hold
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
10071 $as_echo "$gold_cv_hash_off_t" >&6; }
10072 if test "$gold_cv_hash_off_t" = "yes"; then
10074 $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
10078 # gcc 4.3.0 doesn't recognize the printf attribute on a template
10079 # function. Check for that. This is gcc bug 35546. This test can
10080 # probably be removed after the bug has been fixed for a while.
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
10082 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
10083 if ${gold_cv_template_attribute+:} false; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10089 template<typename T> extern void foo(const char*, ...)
10090 __attribute__ ((__format__ (__printf__, 1, 2)));
10091 template<typename T> void foo(const char* format, ...) {}
10092 void bar() { foo<int>("%s\n", "foo"); }
10094 _ACEOF
10095 if ac_fn_cxx_try_compile "$LINENO"; then :
10096 gold_cv_template_attribute=yes
10097 else
10098 gold_cv_template_attribute=no
10100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
10103 $as_echo "$gold_cv_template_attribute" >&6; }
10104 if test "$gold_cv_template_attribute" = "yes"; then
10106 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
10111 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
10112 if ${gold_cv_stat_st_mtim+:} false; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h. */
10118 #include <sys/stat.h>
10119 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
10122 main ()
10126 return 0;
10128 _ACEOF
10129 if ac_fn_cxx_try_compile "$LINENO"; then :
10130 gold_cv_stat_st_mtim=yes
10131 else
10132 gold_cv_stat_st_mtim=no
10134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
10137 $as_echo "$gold_cv_stat_st_mtim" >&6; }
10138 if test "$gold_cv_stat_st_mtim" = "yes"; then
10140 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
10144 ac_ext=c
10145 ac_cpp='$CPP $CPPFLAGS'
10146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10151 for ac_header in locale.h
10152 do :
10153 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
10154 if test "x$ac_cv_header_locale_h" = xyes; then :
10155 cat >>confdefs.h <<_ACEOF
10156 #define HAVE_LOCALE_H 1
10157 _ACEOF
10161 done
10163 for ac_func in setlocale
10164 do :
10165 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10166 if test "x$ac_cv_func_setlocale" = xyes; then :
10167 cat >>confdefs.h <<_ACEOF
10168 #define HAVE_SETLOCALE 1
10169 _ACEOF
10172 done
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10176 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10177 if ${am_cv_val_LC_MESSAGES+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179 else
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10182 #include <locale.h>
10184 main ()
10186 return LC_MESSAGES
10188 return 0;
10190 _ACEOF
10191 if ac_fn_c_try_link "$LINENO"; then :
10192 am_cv_val_LC_MESSAGES=yes
10193 else
10194 am_cv_val_LC_MESSAGES=no
10196 rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10200 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10201 if test $am_cv_val_LC_MESSAGES = yes; then
10203 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10210 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10211 # Check whether --enable-maintainer-mode was given.
10212 if test "${enable_maintainer_mode+set}" = set; then :
10213 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10214 else
10215 USE_MAINTAINER_MODE=no
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10219 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10220 if test $USE_MAINTAINER_MODE = yes; then
10221 MAINTAINER_MODE_TRUE=
10222 MAINTAINER_MODE_FALSE='#'
10223 else
10224 MAINTAINER_MODE_TRUE='#'
10225 MAINTAINER_MODE_FALSE=
10228 MAINT=$MAINTAINER_MODE_TRUE
10232 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
10234 cat >confcache <<\_ACEOF
10235 # This file is a shell script that caches the results of configure
10236 # tests run on this system so they can be shared between configure
10237 # scripts and configure runs, see configure's option --config-cache.
10238 # It is not useful on other systems. If it contains results you don't
10239 # want to keep, you may remove or edit it.
10241 # config.status only pays attention to the cache file if you give it
10242 # the --recheck option to rerun configure.
10244 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10245 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10246 # following values.
10248 _ACEOF
10250 # The following way of writing the cache mishandles newlines in values,
10251 # but we know of no workaround that is simple, portable, and efficient.
10252 # So, we kill variables containing newlines.
10253 # Ultrix sh set writes to stderr and can't be redirected directly,
10254 # and sets the high bit in the cache file unless we assign to the vars.
10256 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10257 eval ac_val=\$$ac_var
10258 case $ac_val in #(
10259 *${as_nl}*)
10260 case $ac_var in #(
10261 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10262 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10263 esac
10264 case $ac_var in #(
10265 _ | IFS | as_nl) ;; #(
10266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10267 *) { eval $ac_var=; unset $ac_var;} ;;
10268 esac ;;
10269 esac
10270 done
10272 (set) 2>&1 |
10273 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10274 *${as_nl}ac_space=\ *)
10275 # `set' does not quote correctly, so add quotes: double-quote
10276 # substitution turns \\\\ into \\, and sed turns \\ into \.
10277 sed -n \
10278 "s/'/'\\\\''/g;
10279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10280 ;; #(
10282 # `set' quotes correctly as required by POSIX, so do not add quotes.
10283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10285 esac |
10286 sort
10288 sed '
10289 /^ac_cv_env_/b end
10290 t clear
10291 :clear
10292 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10293 t end
10294 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10295 :end' >>confcache
10296 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10297 if test -w "$cache_file"; then
10298 if test "x$cache_file" != "x/dev/null"; then
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10300 $as_echo "$as_me: updating cache $cache_file" >&6;}
10301 if test ! -f "$cache_file" || test -h "$cache_file"; then
10302 cat confcache >"$cache_file"
10303 else
10304 case $cache_file in #(
10305 */* | ?:*)
10306 mv -f confcache "$cache_file"$$ &&
10307 mv -f "$cache_file"$$ "$cache_file" ;; #(
10309 mv -f confcache "$cache_file" ;;
10310 esac
10313 else
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10315 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10318 rm -f confcache
10320 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10321 # Let make expand exec_prefix.
10322 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10324 DEFS=-DHAVE_CONFIG_H
10326 ac_libobjs=
10327 ac_ltlibobjs=
10328 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10329 # 1. Remove the extension, and $U if already installed.
10330 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10331 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10332 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10333 # will be set to the directory where LIBOBJS objects are built.
10334 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10335 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10336 done
10337 LIBOBJS=$ac_libobjs
10339 LTLIBOBJS=$ac_ltlibobjs
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10343 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10344 if test -n "$am_sleep_pid"; then
10345 # Hide warnings about reused PIDs.
10346 wait $am_sleep_pid 2>/dev/null
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10349 $as_echo "done" >&6; }
10350 if test -n "$EXEEXT"; then
10351 am__EXEEXT_TRUE=
10352 am__EXEEXT_FALSE='#'
10353 else
10354 am__EXEEXT_TRUE='#'
10355 am__EXEEXT_FALSE=
10358 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10359 as_fn_error $? "conditional \"AMDEP\" was never defined.
10360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10362 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10363 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10366 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
10367 as_fn_error $? "conditional \"PLUGINS\" was never defined.
10368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10370 if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
10371 as_fn_error $? "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
10372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10374 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
10375 as_fn_error $? "conditional \"DEFAULT_TARGET_ARM\" was never defined.
10376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10378 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
10379 as_fn_error $? "conditional \"DEFAULT_TARGET_I386\" was never defined.
10380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10382 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
10383 as_fn_error $? "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
10384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10386 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
10387 as_fn_error $? "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
10388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10390 if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
10391 as_fn_error $? "conditional \"DEFAULT_TARGET_S390\" was never defined.
10392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10394 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
10395 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
10396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10398 if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
10399 as_fn_error $? "conditional \"DEFAULT_TARGET_X32\" was never defined.
10400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10402 if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
10403 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
10404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10406 if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
10407 as_fn_error $? "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
10408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10410 if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
10411 as_fn_error $? "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
10412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10414 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10415 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10418 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10419 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
10420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10423 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
10424 as_fn_error $? "conditional \"NATIVE_LINKER\" was never defined.
10425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10427 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
10428 as_fn_error $? "conditional \"GCC\" was never defined.
10429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10431 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
10432 as_fn_error $? "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
10433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10435 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
10436 as_fn_error $? "conditional \"HAVE_STATIC\" was never defined.
10437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10439 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
10440 as_fn_error $? "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
10441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10443 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
10444 as_fn_error $? "conditional \"MCMODEL_MEDIUM\" was never defined.
10445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10447 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
10448 as_fn_error $? "conditional \"TLS\" was never defined.
10449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10451 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
10452 as_fn_error $? "conditional \"STATIC_TLS\" was never defined.
10453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10455 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
10456 as_fn_error $? "conditional \"OMP_SUPPORT\" was never defined.
10457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10459 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
10460 as_fn_error $? "conditional \"TLS_GNU2_DIALECT\" was never defined.
10461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10463 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
10464 as_fn_error $? "conditional \"TLS_DESCRIPTORS\" was never defined.
10465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10467 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
10468 as_fn_error $? "conditional \"IFUNC\" was never defined.
10469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10471 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
10472 as_fn_error $? "conditional \"IFUNC_STATIC\" was never defined.
10473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10475 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
10476 as_fn_error $? "conditional \"THREADS\" was never defined.
10477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10479 if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
10480 as_fn_error $? "conditional \"HAVE_PUBNAMES\" was never defined.
10481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10483 if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
10484 as_fn_error $? "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
10485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10487 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10488 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10492 : "${CONFIG_STATUS=./config.status}"
10493 ac_write_fail=0
10494 ac_clean_files_save=$ac_clean_files
10495 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10497 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10498 as_write_fail=0
10499 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10500 #! $SHELL
10501 # Generated by $as_me.
10502 # Run this file to recreate the current configuration.
10503 # Compiler output produced by configure, useful for debugging
10504 # configure, is in config.log if it exists.
10506 debug=false
10507 ac_cs_recheck=false
10508 ac_cs_silent=false
10510 SHELL=\${CONFIG_SHELL-$SHELL}
10511 export SHELL
10512 _ASEOF
10513 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10514 ## -------------------- ##
10515 ## M4sh Initialization. ##
10516 ## -------------------- ##
10518 # Be more Bourne compatible
10519 DUALCASE=1; export DUALCASE # for MKS sh
10520 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10521 emulate sh
10522 NULLCMD=:
10523 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10524 # is contrary to our usage. Disable this feature.
10525 alias -g '${1+"$@"}'='"$@"'
10526 setopt NO_GLOB_SUBST
10527 else
10528 case `(set -o) 2>/dev/null` in #(
10529 *posix*) :
10530 set -o posix ;; #(
10531 *) :
10533 esac
10537 as_nl='
10539 export as_nl
10540 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10541 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10542 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10543 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10544 # Prefer a ksh shell builtin over an external printf program on Solaris,
10545 # but without wasting forks for bash or zsh.
10546 if test -z "$BASH_VERSION$ZSH_VERSION" \
10547 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10548 as_echo='print -r --'
10549 as_echo_n='print -rn --'
10550 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10551 as_echo='printf %s\n'
10552 as_echo_n='printf %s'
10553 else
10554 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10555 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10556 as_echo_n='/usr/ucb/echo -n'
10557 else
10558 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10559 as_echo_n_body='eval
10560 arg=$1;
10561 case $arg in #(
10562 *"$as_nl"*)
10563 expr "X$arg" : "X\\(.*\\)$as_nl";
10564 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10565 esac;
10566 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10568 export as_echo_n_body
10569 as_echo_n='sh -c $as_echo_n_body as_echo'
10571 export as_echo_body
10572 as_echo='sh -c $as_echo_body as_echo'
10575 # The user is always right.
10576 if test "${PATH_SEPARATOR+set}" != set; then
10577 PATH_SEPARATOR=:
10578 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10579 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10580 PATH_SEPARATOR=';'
10585 # IFS
10586 # We need space, tab and new line, in precisely that order. Quoting is
10587 # there to prevent editors from complaining about space-tab.
10588 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10589 # splitting by setting IFS to empty value.)
10590 IFS=" "" $as_nl"
10592 # Find who we are. Look in the path if we contain no directory separator.
10593 as_myself=
10594 case $0 in #((
10595 *[\\/]* ) as_myself=$0 ;;
10596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597 for as_dir in $PATH
10599 IFS=$as_save_IFS
10600 test -z "$as_dir" && as_dir=.
10601 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10602 done
10603 IFS=$as_save_IFS
10606 esac
10607 # We did not find ourselves, most probably we were run as `sh COMMAND'
10608 # in which case we are not to be found in the path.
10609 if test "x$as_myself" = x; then
10610 as_myself=$0
10612 if test ! -f "$as_myself"; then
10613 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10614 exit 1
10617 # Unset variables that we do not need and which cause bugs (e.g. in
10618 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10619 # suppresses any "Segmentation fault" message there. '((' could
10620 # trigger a bug in pdksh 5.2.14.
10621 for as_var in BASH_ENV ENV MAIL MAILPATH
10622 do eval test x\${$as_var+set} = xset \
10623 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10624 done
10625 PS1='$ '
10626 PS2='> '
10627 PS4='+ '
10629 # NLS nuisances.
10630 LC_ALL=C
10631 export LC_ALL
10632 LANGUAGE=C
10633 export LANGUAGE
10635 # CDPATH.
10636 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10639 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10640 # ----------------------------------------
10641 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10642 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10643 # script with STATUS, using 1 if that was 0.
10644 as_fn_error ()
10646 as_status=$1; test $as_status -eq 0 && as_status=1
10647 if test "$4"; then
10648 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10649 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10651 $as_echo "$as_me: error: $2" >&2
10652 as_fn_exit $as_status
10653 } # as_fn_error
10656 # as_fn_set_status STATUS
10657 # -----------------------
10658 # Set $? to STATUS, without forking.
10659 as_fn_set_status ()
10661 return $1
10662 } # as_fn_set_status
10664 # as_fn_exit STATUS
10665 # -----------------
10666 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10667 as_fn_exit ()
10669 set +e
10670 as_fn_set_status $1
10671 exit $1
10672 } # as_fn_exit
10674 # as_fn_unset VAR
10675 # ---------------
10676 # Portably unset VAR.
10677 as_fn_unset ()
10679 { eval $1=; unset $1;}
10681 as_unset=as_fn_unset
10682 # as_fn_append VAR VALUE
10683 # ----------------------
10684 # Append the text in VALUE to the end of the definition contained in VAR. Take
10685 # advantage of any shell optimizations that allow amortized linear growth over
10686 # repeated appends, instead of the typical quadratic growth present in naive
10687 # implementations.
10688 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10689 eval 'as_fn_append ()
10691 eval $1+=\$2
10693 else
10694 as_fn_append ()
10696 eval $1=\$$1\$2
10698 fi # as_fn_append
10700 # as_fn_arith ARG...
10701 # ------------------
10702 # Perform arithmetic evaluation on the ARGs, and store the result in the
10703 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10704 # must be portable across $(()) and expr.
10705 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10706 eval 'as_fn_arith ()
10708 as_val=$(( $* ))
10710 else
10711 as_fn_arith ()
10713 as_val=`expr "$@" || test $? -eq 1`
10715 fi # as_fn_arith
10718 if expr a : '\(a\)' >/dev/null 2>&1 &&
10719 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10720 as_expr=expr
10721 else
10722 as_expr=false
10725 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10726 as_basename=basename
10727 else
10728 as_basename=false
10731 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10732 as_dirname=dirname
10733 else
10734 as_dirname=false
10737 as_me=`$as_basename -- "$0" ||
10738 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10739 X"$0" : 'X\(//\)$' \| \
10740 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10741 $as_echo X/"$0" |
10742 sed '/^.*\/\([^/][^/]*\)\/*$/{
10743 s//\1/
10746 /^X\/\(\/\/\)$/{
10747 s//\1/
10750 /^X\/\(\/\).*/{
10751 s//\1/
10754 s/.*/./; q'`
10756 # Avoid depending upon Character Ranges.
10757 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10758 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10759 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10760 as_cr_digits='0123456789'
10761 as_cr_alnum=$as_cr_Letters$as_cr_digits
10763 ECHO_C= ECHO_N= ECHO_T=
10764 case `echo -n x` in #(((((
10765 -n*)
10766 case `echo 'xy\c'` in
10767 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10768 xy) ECHO_C='\c';;
10769 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10770 ECHO_T=' ';;
10771 esac;;
10773 ECHO_N='-n';;
10774 esac
10776 rm -f conf$$ conf$$.exe conf$$.file
10777 if test -d conf$$.dir; then
10778 rm -f conf$$.dir/conf$$.file
10779 else
10780 rm -f conf$$.dir
10781 mkdir conf$$.dir 2>/dev/null
10783 if (echo >conf$$.file) 2>/dev/null; then
10784 if ln -s conf$$.file conf$$ 2>/dev/null; then
10785 as_ln_s='ln -s'
10786 # ... but there are two gotchas:
10787 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10788 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10789 # In both cases, we have to default to `cp -pR'.
10790 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10791 as_ln_s='cp -pR'
10792 elif ln conf$$.file conf$$ 2>/dev/null; then
10793 as_ln_s=ln
10794 else
10795 as_ln_s='cp -pR'
10797 else
10798 as_ln_s='cp -pR'
10800 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10801 rmdir conf$$.dir 2>/dev/null
10804 # as_fn_mkdir_p
10805 # -------------
10806 # Create "$as_dir" as a directory, including parents if necessary.
10807 as_fn_mkdir_p ()
10810 case $as_dir in #(
10811 -*) as_dir=./$as_dir;;
10812 esac
10813 test -d "$as_dir" || eval $as_mkdir_p || {
10814 as_dirs=
10815 while :; do
10816 case $as_dir in #(
10817 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10818 *) as_qdir=$as_dir;;
10819 esac
10820 as_dirs="'$as_qdir' $as_dirs"
10821 as_dir=`$as_dirname -- "$as_dir" ||
10822 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10823 X"$as_dir" : 'X\(//\)[^/]' \| \
10824 X"$as_dir" : 'X\(//\)$' \| \
10825 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10826 $as_echo X"$as_dir" |
10827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10828 s//\1/
10831 /^X\(\/\/\)[^/].*/{
10832 s//\1/
10835 /^X\(\/\/\)$/{
10836 s//\1/
10839 /^X\(\/\).*/{
10840 s//\1/
10843 s/.*/./; q'`
10844 test -d "$as_dir" && break
10845 done
10846 test -z "$as_dirs" || eval "mkdir $as_dirs"
10847 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10850 } # as_fn_mkdir_p
10851 if mkdir -p . 2>/dev/null; then
10852 as_mkdir_p='mkdir -p "$as_dir"'
10853 else
10854 test -d ./-p && rmdir ./-p
10855 as_mkdir_p=false
10859 # as_fn_executable_p FILE
10860 # -----------------------
10861 # Test if FILE is an executable regular file.
10862 as_fn_executable_p ()
10864 test -f "$1" && test -x "$1"
10865 } # as_fn_executable_p
10866 as_test_x='test -x'
10867 as_executable_p=as_fn_executable_p
10869 # Sed expression to map a string onto a valid CPP name.
10870 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10872 # Sed expression to map a string onto a valid variable name.
10873 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10876 exec 6>&1
10877 ## ----------------------------------- ##
10878 ## Main body of $CONFIG_STATUS script. ##
10879 ## ----------------------------------- ##
10880 _ASEOF
10881 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10884 # Save the log message, to keep $0 and so on meaningful, and to
10885 # report actual input values of CONFIG_FILES etc. instead of their
10886 # values after options handling.
10887 ac_log="
10888 This file was extended by gold $as_me 0.1, which was
10889 generated by GNU Autoconf 2.69. Invocation command line was
10891 CONFIG_FILES = $CONFIG_FILES
10892 CONFIG_HEADERS = $CONFIG_HEADERS
10893 CONFIG_LINKS = $CONFIG_LINKS
10894 CONFIG_COMMANDS = $CONFIG_COMMANDS
10895 $ $0 $@
10897 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10900 _ACEOF
10902 case $ac_config_files in *"
10903 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10904 esac
10906 case $ac_config_headers in *"
10907 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10908 esac
10911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10912 # Files that config.status was made for.
10913 config_files="$ac_config_files"
10914 config_headers="$ac_config_headers"
10915 config_commands="$ac_config_commands"
10917 _ACEOF
10919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10920 ac_cs_usage="\
10921 \`$as_me' instantiates files and other configuration actions
10922 from templates according to the current configuration. Unless the files
10923 and actions are specified as TAGs, all are instantiated by default.
10925 Usage: $0 [OPTION]... [TAG]...
10927 -h, --help print this help, then exit
10928 -V, --version print version number and configuration settings, then exit
10929 --config print configuration, then exit
10930 -q, --quiet, --silent
10931 do not print progress messages
10932 -d, --debug don't remove temporary files
10933 --recheck update $as_me by reconfiguring in the same conditions
10934 --file=FILE[:TEMPLATE]
10935 instantiate the configuration file FILE
10936 --header=FILE[:TEMPLATE]
10937 instantiate the configuration header FILE
10939 Configuration files:
10940 $config_files
10942 Configuration headers:
10943 $config_headers
10945 Configuration commands:
10946 $config_commands
10948 Report bugs to the package provider."
10950 _ACEOF
10951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10952 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10953 ac_cs_version="\\
10954 gold config.status 0.1
10955 configured by $0, generated by GNU Autoconf 2.69,
10956 with options \\"\$ac_cs_config\\"
10958 Copyright (C) 2012 Free Software Foundation, Inc.
10959 This config.status script is free software; the Free Software Foundation
10960 gives unlimited permission to copy, distribute and modify it."
10962 ac_pwd='$ac_pwd'
10963 srcdir='$srcdir'
10964 INSTALL='$INSTALL'
10965 MKDIR_P='$MKDIR_P'
10966 AWK='$AWK'
10967 test -n "\$AWK" || AWK=awk
10968 _ACEOF
10970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10971 # The default lists apply if the user does not specify any file.
10972 ac_need_defaults=:
10973 while test $# != 0
10975 case $1 in
10976 --*=?*)
10977 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10978 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10979 ac_shift=:
10981 --*=)
10982 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10983 ac_optarg=
10984 ac_shift=:
10987 ac_option=$1
10988 ac_optarg=$2
10989 ac_shift=shift
10991 esac
10993 case $ac_option in
10994 # Handling of the options.
10995 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10996 ac_cs_recheck=: ;;
10997 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10998 $as_echo "$ac_cs_version"; exit ;;
10999 --config | --confi | --conf | --con | --co | --c )
11000 $as_echo "$ac_cs_config"; exit ;;
11001 --debug | --debu | --deb | --de | --d | -d )
11002 debug=: ;;
11003 --file | --fil | --fi | --f )
11004 $ac_shift
11005 case $ac_optarg in
11006 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11007 '') as_fn_error $? "missing file argument" ;;
11008 esac
11009 as_fn_append CONFIG_FILES " '$ac_optarg'"
11010 ac_need_defaults=false;;
11011 --header | --heade | --head | --hea )
11012 $ac_shift
11013 case $ac_optarg in
11014 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11015 esac
11016 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11017 ac_need_defaults=false;;
11018 --he | --h)
11019 # Conflict between --help and --header
11020 as_fn_error $? "ambiguous option: \`$1'
11021 Try \`$0 --help' for more information.";;
11022 --help | --hel | -h )
11023 $as_echo "$ac_cs_usage"; exit ;;
11024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11025 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11026 ac_cs_silent=: ;;
11028 # This is an error.
11029 -*) as_fn_error $? "unrecognized option: \`$1'
11030 Try \`$0 --help' for more information." ;;
11032 *) as_fn_append ac_config_targets " $1"
11033 ac_need_defaults=false ;;
11035 esac
11036 shift
11037 done
11039 ac_configure_extra_args=
11041 if $ac_cs_silent; then
11042 exec 6>/dev/null
11043 ac_configure_extra_args="$ac_configure_extra_args --silent"
11046 _ACEOF
11047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11048 if \$ac_cs_recheck; then
11049 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11050 shift
11051 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11052 CONFIG_SHELL='$SHELL'
11053 export CONFIG_SHELL
11054 exec "\$@"
11057 _ACEOF
11058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11059 exec 5>>config.log
11061 echo
11062 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11063 ## Running $as_me. ##
11064 _ASBOX
11065 $as_echo "$ac_log"
11066 } >&5
11068 _ACEOF
11069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11071 # INIT-COMMANDS
11073 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11074 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11075 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11076 # from automake.
11077 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11078 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11079 LINGUAS="${LINGUAS-%UNSET%}"
11082 _ACEOF
11084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11086 # Handling of arguments.
11087 for ac_config_target in $ac_config_targets
11089 case $ac_config_target in
11090 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11091 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11092 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11093 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11094 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11095 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11097 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11098 esac
11099 done
11102 # If the user did not use the arguments to specify the items to instantiate,
11103 # then the envvar interface is used. Set only those that are not.
11104 # We use the long form for the default assignment because of an extremely
11105 # bizarre bug on SunOS 4.1.3.
11106 if $ac_need_defaults; then
11107 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11108 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11109 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11112 # Have a temporary directory for convenience. Make it in the build tree
11113 # simply because there is no reason against having it here, and in addition,
11114 # creating and moving files from /tmp can sometimes cause problems.
11115 # Hook for its removal unless debugging.
11116 # Note that there is a small window in which the directory will not be cleaned:
11117 # after its creation but before its name has been assigned to `$tmp'.
11118 $debug ||
11120 tmp= ac_tmp=
11121 trap 'exit_status=$?
11122 : "${ac_tmp:=$tmp}"
11123 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11125 trap 'as_fn_exit 1' 1 2 13 15
11127 # Create a (secure) tmp directory for tmp files.
11130 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11131 test -d "$tmp"
11132 } ||
11134 tmp=./conf$$-$RANDOM
11135 (umask 077 && mkdir "$tmp")
11136 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11137 ac_tmp=$tmp
11139 # Set up the scripts for CONFIG_FILES section.
11140 # No need to generate them if there are no CONFIG_FILES.
11141 # This happens for instance with `./config.status config.h'.
11142 if test -n "$CONFIG_FILES"; then
11145 ac_cr=`echo X | tr X '\015'`
11146 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11147 # But we know of no other shell where ac_cr would be empty at this
11148 # point, so we can use a bashism as a fallback.
11149 if test "x$ac_cr" = x; then
11150 eval ac_cr=\$\'\\r\'
11152 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11153 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11154 ac_cs_awk_cr='\\r'
11155 else
11156 ac_cs_awk_cr=$ac_cr
11159 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11160 _ACEOF
11164 echo "cat >conf$$subs.awk <<_ACEOF" &&
11165 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11166 echo "_ACEOF"
11167 } >conf$$subs.sh ||
11168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11169 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11170 ac_delim='%!_!# '
11171 for ac_last_try in false false false false false :; do
11172 . ./conf$$subs.sh ||
11173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11175 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11176 if test $ac_delim_n = $ac_delim_num; then
11177 break
11178 elif $ac_last_try; then
11179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11180 else
11181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11183 done
11184 rm -f conf$$subs.sh
11186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11187 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11188 _ACEOF
11189 sed -n '
11191 s/^/S["/; s/!.*/"]=/
11194 s/^[^!]*!//
11195 :repl
11196 t repl
11197 s/'"$ac_delim"'$//
11198 t delim
11201 s/\(.\{148\}\)..*/\1/
11202 t more1
11203 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11206 b repl
11207 :more1
11208 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11211 s/.\{148\}//
11212 t nl
11213 :delim
11215 s/\(.\{148\}\)..*/\1/
11216 t more2
11217 s/["\\]/\\&/g; s/^/"/; s/$/"/
11220 :more2
11221 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11224 s/.\{148\}//
11225 t delim
11226 ' <conf$$subs.awk | sed '
11227 /^[^""]/{
11229 s/\n//
11231 ' >>$CONFIG_STATUS || ac_write_fail=1
11232 rm -f conf$$subs.awk
11233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11234 _ACAWK
11235 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11236 for (key in S) S_is_set[key] = 1
11237 FS = "\a"
11241 line = $ 0
11242 nfields = split(line, field, "@")
11243 substed = 0
11244 len = length(field[1])
11245 for (i = 2; i < nfields; i++) {
11246 key = field[i]
11247 keylen = length(key)
11248 if (S_is_set[key]) {
11249 value = S[key]
11250 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11251 len += length(value) + length(field[++i])
11252 substed = 1
11253 } else
11254 len += 1 + keylen
11257 print line
11260 _ACAWK
11261 _ACEOF
11262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11263 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11264 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11265 else
11267 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11268 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11269 _ACEOF
11271 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11272 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11273 # trailing colons and then remove the whole line if VPATH becomes empty
11274 # (actually we leave an empty line to preserve line numbers).
11275 if test "x$srcdir" = x.; then
11276 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11278 s///
11279 s/^/:/
11280 s/[ ]*$/:/
11281 s/:\$(srcdir):/:/g
11282 s/:\${srcdir}:/:/g
11283 s/:@srcdir@:/:/g
11284 s/^:*//
11285 s/:*$//
11287 s/\(=[ ]*\).*/\1/
11289 s/\n//
11290 s/^[^=]*=[ ]*$//
11294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11295 fi # test -n "$CONFIG_FILES"
11297 # Set up the scripts for CONFIG_HEADERS section.
11298 # No need to generate them if there are no CONFIG_HEADERS.
11299 # This happens for instance with `./config.status Makefile'.
11300 if test -n "$CONFIG_HEADERS"; then
11301 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11302 BEGIN {
11303 _ACEOF
11305 # Transform confdefs.h into an awk script `defines.awk', embedded as
11306 # here-document in config.status, that substitutes the proper values into
11307 # config.h.in to produce config.h.
11309 # Create a delimiter string that does not exist in confdefs.h, to ease
11310 # handling of long lines.
11311 ac_delim='%!_!# '
11312 for ac_last_try in false false :; do
11313 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11314 if test -z "$ac_tt"; then
11315 break
11316 elif $ac_last_try; then
11317 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11318 else
11319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11321 done
11323 # For the awk script, D is an array of macro values keyed by name,
11324 # likewise P contains macro parameters if any. Preserve backslash
11325 # newline sequences.
11327 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11328 sed -n '
11329 s/.\{148\}/&'"$ac_delim"'/g
11330 t rset
11331 :rset
11332 s/^[ ]*#[ ]*define[ ][ ]*/ /
11333 t def
11335 :def
11336 s/\\$//
11337 t bsnl
11338 s/["\\]/\\&/g
11339 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11340 D["\1"]=" \3"/p
11341 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11343 :bsnl
11344 s/["\\]/\\&/g
11345 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11346 D["\1"]=" \3\\\\\\n"\\/p
11347 t cont
11348 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11349 t cont
11351 :cont
11353 s/.\{148\}/&'"$ac_delim"'/g
11354 t clear
11355 :clear
11356 s/\\$//
11357 t bsnlc
11358 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11360 :bsnlc
11361 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11362 b cont
11363 ' <confdefs.h | sed '
11364 s/'"$ac_delim"'/"\\\
11365 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11368 for (key in D) D_is_set[key] = 1
11369 FS = "\a"
11371 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11372 line = \$ 0
11373 split(line, arg, " ")
11374 if (arg[1] == "#") {
11375 defundef = arg[2]
11376 mac1 = arg[3]
11377 } else {
11378 defundef = substr(arg[1], 2)
11379 mac1 = arg[2]
11381 split(mac1, mac2, "(") #)
11382 macro = mac2[1]
11383 prefix = substr(line, 1, index(line, defundef) - 1)
11384 if (D_is_set[macro]) {
11385 # Preserve the white space surrounding the "#".
11386 print prefix "define", macro P[macro] D[macro]
11387 next
11388 } else {
11389 # Replace #undef with comments. This is necessary, for example,
11390 # in the case of _POSIX_SOURCE, which is predefined and required
11391 # on some systems where configure will not decide to define it.
11392 if (defundef == "undef") {
11393 print "/*", prefix defundef, macro, "*/"
11394 next
11398 { print }
11399 _ACAWK
11400 _ACEOF
11401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11402 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11403 fi # test -n "$CONFIG_HEADERS"
11406 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11407 shift
11408 for ac_tag
11410 case $ac_tag in
11411 :[FHLC]) ac_mode=$ac_tag; continue;;
11412 esac
11413 case $ac_mode$ac_tag in
11414 :[FHL]*:*);;
11415 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11416 :[FH]-) ac_tag=-:-;;
11417 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11418 esac
11419 ac_save_IFS=$IFS
11420 IFS=:
11421 set x $ac_tag
11422 IFS=$ac_save_IFS
11423 shift
11424 ac_file=$1
11425 shift
11427 case $ac_mode in
11428 :L) ac_source=$1;;
11429 :[FH])
11430 ac_file_inputs=
11431 for ac_f
11433 case $ac_f in
11434 -) ac_f="$ac_tmp/stdin";;
11435 *) # Look for the file first in the build tree, then in the source tree
11436 # (if the path is not absolute). The absolute path cannot be DOS-style,
11437 # because $ac_f cannot contain `:'.
11438 test -f "$ac_f" ||
11439 case $ac_f in
11440 [\\/$]*) false;;
11441 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11442 esac ||
11443 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11444 esac
11445 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11446 as_fn_append ac_file_inputs " '$ac_f'"
11447 done
11449 # Let's still pretend it is `configure' which instantiates (i.e., don't
11450 # use $as_me), people would be surprised to read:
11451 # /* config.h. Generated by config.status. */
11452 configure_input='Generated from '`
11453 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11454 `' by configure.'
11455 if test x"$ac_file" != x-; then
11456 configure_input="$ac_file. $configure_input"
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11458 $as_echo "$as_me: creating $ac_file" >&6;}
11460 # Neutralize special characters interpreted by sed in replacement strings.
11461 case $configure_input in #(
11462 *\&* | *\|* | *\\* )
11463 ac_sed_conf_input=`$as_echo "$configure_input" |
11464 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11465 *) ac_sed_conf_input=$configure_input;;
11466 esac
11468 case $ac_tag in
11469 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11471 esac
11473 esac
11475 ac_dir=`$as_dirname -- "$ac_file" ||
11476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11477 X"$ac_file" : 'X\(//\)[^/]' \| \
11478 X"$ac_file" : 'X\(//\)$' \| \
11479 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11480 $as_echo X"$ac_file" |
11481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11482 s//\1/
11485 /^X\(\/\/\)[^/].*/{
11486 s//\1/
11489 /^X\(\/\/\)$/{
11490 s//\1/
11493 /^X\(\/\).*/{
11494 s//\1/
11497 s/.*/./; q'`
11498 as_dir="$ac_dir"; as_fn_mkdir_p
11499 ac_builddir=.
11501 case "$ac_dir" in
11502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11505 # A ".." for each directory in $ac_dir_suffix.
11506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11507 case $ac_top_builddir_sub in
11508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11510 esac ;;
11511 esac
11512 ac_abs_top_builddir=$ac_pwd
11513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11514 # for backward compatibility:
11515 ac_top_builddir=$ac_top_build_prefix
11517 case $srcdir in
11518 .) # We are building in place.
11519 ac_srcdir=.
11520 ac_top_srcdir=$ac_top_builddir_sub
11521 ac_abs_top_srcdir=$ac_pwd ;;
11522 [\\/]* | ?:[\\/]* ) # Absolute name.
11523 ac_srcdir=$srcdir$ac_dir_suffix;
11524 ac_top_srcdir=$srcdir
11525 ac_abs_top_srcdir=$srcdir ;;
11526 *) # Relative name.
11527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11528 ac_top_srcdir=$ac_top_build_prefix$srcdir
11529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11530 esac
11531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11534 case $ac_mode in
11537 # CONFIG_FILE
11540 case $INSTALL in
11541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11542 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11543 esac
11544 ac_MKDIR_P=$MKDIR_P
11545 case $MKDIR_P in
11546 [\\/$]* | ?:[\\/]* ) ;;
11547 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11548 esac
11549 _ACEOF
11551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11552 # If the template does not know about datarootdir, expand it.
11553 # FIXME: This hack should be removed a few years after 2.60.
11554 ac_datarootdir_hack=; ac_datarootdir_seen=
11555 ac_sed_dataroot='
11556 /datarootdir/ {
11560 /@datadir@/p
11561 /@docdir@/p
11562 /@infodir@/p
11563 /@localedir@/p
11564 /@mandir@/p'
11565 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11566 *datarootdir*) ac_datarootdir_seen=yes;;
11567 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11569 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11570 _ACEOF
11571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11572 ac_datarootdir_hack='
11573 s&@datadir@&$datadir&g
11574 s&@docdir@&$docdir&g
11575 s&@infodir@&$infodir&g
11576 s&@localedir@&$localedir&g
11577 s&@mandir@&$mandir&g
11578 s&\\\${datarootdir}&$datarootdir&g' ;;
11579 esac
11580 _ACEOF
11582 # Neutralize VPATH when `$srcdir' = `.'.
11583 # Shell code in configure.ac might set extrasub.
11584 # FIXME: do we really want to maintain this feature?
11585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11586 ac_sed_extra="$ac_vpsub
11587 $extrasub
11588 _ACEOF
11589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11592 s|@configure_input@|$ac_sed_conf_input|;t t
11593 s&@top_builddir@&$ac_top_builddir_sub&;t t
11594 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11595 s&@srcdir@&$ac_srcdir&;t t
11596 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11597 s&@top_srcdir@&$ac_top_srcdir&;t t
11598 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11599 s&@builddir@&$ac_builddir&;t t
11600 s&@abs_builddir@&$ac_abs_builddir&;t t
11601 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11602 s&@INSTALL@&$ac_INSTALL&;t t
11603 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11604 $ac_datarootdir_hack
11606 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11607 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11609 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11610 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11611 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11612 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11614 which seems to be undefined. Please make sure it is defined" >&5
11615 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11616 which seems to be undefined. Please make sure it is defined" >&2;}
11618 rm -f "$ac_tmp/stdin"
11619 case $ac_file in
11620 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11621 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11622 esac \
11623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11627 # CONFIG_HEADER
11629 if test x"$ac_file" != x-; then
11631 $as_echo "/* $configure_input */" \
11632 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11633 } >"$ac_tmp/config.h" \
11634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11635 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11637 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11638 else
11639 rm -f "$ac_file"
11640 mv "$ac_tmp/config.h" "$ac_file" \
11641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11643 else
11644 $as_echo "/* $configure_input */" \
11645 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11646 || as_fn_error $? "could not create -" "$LINENO" 5
11648 # Compute "$ac_file"'s index in $config_headers.
11649 _am_arg="$ac_file"
11650 _am_stamp_count=1
11651 for _am_header in $config_headers :; do
11652 case $_am_header in
11653 $_am_arg | $_am_arg:* )
11654 break ;;
11656 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11657 esac
11658 done
11659 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11660 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11661 X"$_am_arg" : 'X\(//\)[^/]' \| \
11662 X"$_am_arg" : 'X\(//\)$' \| \
11663 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11664 $as_echo X"$_am_arg" |
11665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11666 s//\1/
11669 /^X\(\/\/\)[^/].*/{
11670 s//\1/
11673 /^X\(\/\/\)$/{
11674 s//\1/
11677 /^X\(\/\).*/{
11678 s//\1/
11681 s/.*/./; q'`/stamp-h$_am_stamp_count
11684 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11685 $as_echo "$as_me: executing $ac_file commands" >&6;}
11687 esac
11690 case $ac_file$ac_mode in
11691 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11692 # Older Autoconf quotes --file arguments for eval, but not when files
11693 # are listed without --file. Let's play safe and only enable the eval
11694 # if we detect the quoting.
11695 case $CONFIG_FILES in
11696 *\'*) eval set x "$CONFIG_FILES" ;;
11697 *) set x $CONFIG_FILES ;;
11698 esac
11699 shift
11700 for mf
11702 # Strip MF so we end up with the name of the file.
11703 mf=`echo "$mf" | sed -e 's/:.*$//'`
11704 # Check whether this is an Automake generated Makefile or not.
11705 # We used to match only the files named 'Makefile.in', but
11706 # some people rename them; so instead we look at the file content.
11707 # Grep'ing the first line is not enough: some people post-process
11708 # each Makefile.in and add a new line on top of each file to say so.
11709 # Grep'ing the whole file is not good either: AIX grep has a line
11710 # limit of 2048, but all sed's we know have understand at least 4000.
11711 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11712 dirpart=`$as_dirname -- "$mf" ||
11713 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11714 X"$mf" : 'X\(//\)[^/]' \| \
11715 X"$mf" : 'X\(//\)$' \| \
11716 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11717 $as_echo X"$mf" |
11718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11719 s//\1/
11722 /^X\(\/\/\)[^/].*/{
11723 s//\1/
11726 /^X\(\/\/\)$/{
11727 s//\1/
11730 /^X\(\/\).*/{
11731 s//\1/
11734 s/.*/./; q'`
11735 else
11736 continue
11738 # Extract the definition of DEPDIR, am__include, and am__quote
11739 # from the Makefile without running 'make'.
11740 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11741 test -z "$DEPDIR" && continue
11742 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11743 test -z "$am__include" && continue
11744 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11745 # Find all dependency output files, they are included files with
11746 # $(DEPDIR) in their names. We invoke sed twice because it is the
11747 # simplest approach to changing $(DEPDIR) to its actual value in the
11748 # expansion.
11749 for file in `sed -n "
11750 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11751 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11752 # Make sure the directory exists.
11753 test -f "$dirpart/$file" && continue
11754 fdir=`$as_dirname -- "$file" ||
11755 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11756 X"$file" : 'X\(//\)[^/]' \| \
11757 X"$file" : 'X\(//\)$' \| \
11758 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11759 $as_echo X"$file" |
11760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11761 s//\1/
11764 /^X\(\/\/\)[^/].*/{
11765 s//\1/
11768 /^X\(\/\/\)$/{
11769 s//\1/
11772 /^X\(\/\).*/{
11773 s//\1/
11776 s/.*/./; q'`
11777 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11778 # echo "creating $dirpart/$file"
11779 echo '# dummy' > "$dirpart/$file"
11780 done
11781 done
11784 "default-1":C)
11785 for ac_file in $CONFIG_FILES; do
11786 # Support "outfile[:infile[:infile...]]"
11787 case "$ac_file" in
11788 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11789 esac
11790 # PO directories have a Makefile.in generated from Makefile.in.in.
11791 case "$ac_file" in */Makefile.in)
11792 # Adjust a relative srcdir.
11793 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11794 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
11795 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11796 # In autoconf-2.13 it is called $ac_given_srcdir.
11797 # In autoconf-2.50 it is called $srcdir.
11798 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11799 case "$ac_given_srcdir" in
11800 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11801 /*) top_srcdir="$ac_given_srcdir" ;;
11802 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
11803 esac
11804 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11805 rm -f "$ac_dir/POTFILES"
11806 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11807 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11808 POMAKEFILEDEPS="POTFILES.in"
11809 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
11810 # on $ac_dir but don't depend on user-specified configuration
11811 # parameters.
11812 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11813 # The LINGUAS file contains the set of available languages.
11814 if test -n "$OBSOLETE_ALL_LINGUAS"; then
11815 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
11817 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11818 # Hide the ALL_LINGUAS assigment from automake.
11819 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11820 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11821 else
11822 # The set of available languages was given in configure.ac.
11823 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11825 case "$ac_given_srcdir" in
11826 .) srcdirpre= ;;
11827 *) srcdirpre='$(srcdir)/' ;;
11828 esac
11829 POFILES=
11830 GMOFILES=
11831 UPDATEPOFILES=
11832 DUMMYPOFILES=
11833 for lang in $ALL_LINGUAS; do
11834 POFILES="$POFILES $srcdirpre$lang.po"
11835 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11836 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11837 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11838 done
11839 # CATALOGS depends on both $ac_dir and the user's LINGUAS
11840 # environment variable.
11841 INST_LINGUAS=
11842 if test -n "$ALL_LINGUAS"; then
11843 for presentlang in $ALL_LINGUAS; do
11844 useit=no
11845 if test "%UNSET%" != "$LINGUAS"; then
11846 desiredlanguages="$LINGUAS"
11847 else
11848 desiredlanguages="$ALL_LINGUAS"
11850 for desiredlang in $desiredlanguages; do
11851 # Use the presentlang catalog if desiredlang is
11852 # a. equal to presentlang, or
11853 # b. a variant of presentlang (because in this case,
11854 # presentlang can be used as a fallback for messages
11855 # which are not translated in the desiredlang catalog).
11856 case "$desiredlang" in
11857 "$presentlang"*) useit=yes;;
11858 esac
11859 done
11860 if test $useit = yes; then
11861 INST_LINGUAS="$INST_LINGUAS $presentlang"
11863 done
11865 CATALOGS=
11866 if test -n "$INST_LINGUAS"; then
11867 for lang in $INST_LINGUAS; do
11868 CATALOGS="$CATALOGS $lang.gmo"
11869 done
11871 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11872 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"
11873 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11874 if test -f "$f"; then
11875 case "$f" in
11876 *.orig | *.bak | *~) ;;
11877 *) cat "$f" >> "$ac_dir/Makefile" ;;
11878 esac
11880 done
11883 esac
11884 done ;;
11886 esac
11887 done # for ac_tag
11890 as_fn_exit 0
11891 _ACEOF
11892 ac_clean_files=$ac_clean_files_save
11894 test $ac_write_fail = 0 ||
11895 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11898 # configure is writing to config.log, and then calls config.status.
11899 # config.status does its own redirection, appending to config.log.
11900 # Unfortunately, on DOS this fails, as config.log is still kept open
11901 # by configure, so config.status won't be able to write to it; its
11902 # output is simply discarded. So we exec the FD to /dev/null,
11903 # effectively closing config.log, so it can be properly (re)opened and
11904 # appended to by config.status. When coming back to configure, we
11905 # need to make the FD available again.
11906 if test "$no_create" != yes; then
11907 ac_cs_success=:
11908 ac_config_status_args=
11909 test "$silent" = yes &&
11910 ac_config_status_args="$ac_config_status_args --quiet"
11911 exec 5>/dev/null
11912 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11913 exec 5>>config.log
11914 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11915 # would make configure fail if this is the last instruction.
11916 $ac_cs_success || as_fn_exit 1
11918 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11920 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}