Add multilib.am to the list of top level files included in any release created by...
[binutils-gdb.git] / gold / configure
blobc92f447877671840ea4a175966e3dbfdeef96b0e
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 gt_needs=
623 ac_subst_vars='am__EXEEXT_FALSE
624 am__EXEEXT_TRUE
625 LTLIBOBJS
626 MAINT
627 MAINTAINER_MODE_FALSE
628 MAINTAINER_MODE_TRUE
629 HAVE_CXX11
630 DLOPEN_LIBS
631 CXXCPP
632 HAVE_NO_USE_LINKER_PLUGIN_FALSE
633 HAVE_NO_USE_LINKER_PLUGIN_TRUE
634 HAVE_PUBNAMES_FALSE
635 HAVE_PUBNAMES_TRUE
636 JANSSON_LIBS
637 JANSSON_CFLAGS
638 THREADS_FALSE
639 THREADS_TRUE
640 PTHREAD_CFLAGS
641 PTHREAD_LIBS
642 PTHREAD_CC
643 ax_pthread_config
645 HAVE_ZSTD_FALSE
646 HAVE_ZSTD_TRUE
647 ZSTD_LIBS
648 ZSTD_CFLAGS
649 PKG_CONFIG_LIBDIR
650 PKG_CONFIG_PATH
651 PKG_CONFIG
652 zlibinc
653 zlibdir
654 LIBOBJS
655 LFS_CFLAGS
656 GOLD_LDADD
657 GOLD_LDFLAGS
658 WARN_CXXFLAGS
659 WARN_WRITE_STRINGS
660 NO_WERROR
661 WARN_CFLAGS_FOR_BUILD
662 WARN_CFLAGS
663 IFUNC_STATIC_FALSE
664 IFUNC_STATIC_TRUE
665 IFUNC_FALSE
666 IFUNC_TRUE
667 RANDOM_SEED_CFLAGS
668 TLS_DESCRIPTORS_FALSE
669 TLS_DESCRIPTORS_TRUE
670 TLS_GNU2_DIALECT_FALSE
671 TLS_GNU2_DIALECT_TRUE
672 OMP_SUPPORT_FALSE
673 OMP_SUPPORT_TRUE
674 STATIC_TLS_FALSE
675 STATIC_TLS_TRUE
676 TLS_FALSE
677 TLS_TRUE
678 MERGE_CONSTANTS_FLAG
679 CFLAGS_CF_PROTECTION_FALSE
680 CFLAGS_CF_PROTECTION_TRUE
681 GCC9_FALSE
682 GCC9_TRUE
683 MCMODEL_MEDIUM_FALSE
684 MCMODEL_MEDIUM_TRUE
685 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
686 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
687 HAVE_STATIC_FALSE
688 HAVE_STATIC_TRUE
689 NATIVE_OR_CROSS_LINKER_FALSE
690 NATIVE_OR_CROSS_LINKER_TRUE
691 GCC_FALSE
692 GCC_TRUE
693 NATIVE_LINKER_FALSE
694 NATIVE_LINKER_TRUE
695 CATOBJEXT
696 GENCAT
697 INSTOBJEXT
698 DATADIRNAME
699 CATALOGS
700 INCINTL
701 LIBINTL_DEP
702 POSUB
703 LTLIBINTL
704 LIBINTL
705 INTLLIBS
706 LTLIBICONV
707 LIBICONV
708 INTL_MACOSX_LIBS
709 MSGMERGE
710 XGETTEXT
711 GMSGFMT
712 MSGFMT
713 USE_NLS
714 MKINSTALLDIRS
715 LN_S
716 RANLIB
717 YFLAGS
718 YACC
719 am__fastdepCXX_FALSE
720 am__fastdepCXX_TRUE
721 CXXDEPMODE
722 ac_ct_CXX
723 CXXFLAGS
726 TARGETOBJS
727 DEFAULT_TARGET
728 DEFAULT_TARGET_MIPS_FALSE
729 DEFAULT_TARGET_MIPS_TRUE
730 DEFAULT_TARGET_TILEGX_FALSE
731 DEFAULT_TARGET_TILEGX_TRUE
732 DEFAULT_TARGET_X86_64_OR_X32_FALSE
733 DEFAULT_TARGET_X86_64_OR_X32_TRUE
734 DEFAULT_TARGET_X32_FALSE
735 DEFAULT_TARGET_X32_TRUE
736 DEFAULT_TARGET_X86_64_FALSE
737 DEFAULT_TARGET_X86_64_TRUE
738 DEFAULT_TARGET_S390_FALSE
739 DEFAULT_TARGET_S390_TRUE
740 DEFAULT_TARGET_SPARC_FALSE
741 DEFAULT_TARGET_SPARC_TRUE
742 DEFAULT_TARGET_POWERPC_FALSE
743 DEFAULT_TARGET_POWERPC_TRUE
744 DEFAULT_TARGET_I386_FALSE
745 DEFAULT_TARGET_I386_TRUE
746 DEFAULT_TARGET_ARM_FALSE
747 DEFAULT_TARGET_ARM_TRUE
748 DEFAULT_TARGET_AARCH64_FALSE
749 DEFAULT_TARGET_AARCH64_TRUE
750 PLUGINS_FALSE
751 PLUGINS_TRUE
752 installed_linker
753 install_as_default
754 EGREP
755 GREP
757 am__fastdepCC_FALSE
758 am__fastdepCC_TRUE
759 CCDEPMODE
760 am__nodep
761 AMDEPBACKSLASH
762 AMDEP_FALSE
763 AMDEP_TRUE
764 am__quote
765 am__include
766 DEPDIR
767 OBJEXT
768 EXEEXT
769 ac_ct_CC
770 CPPFLAGS
771 LDFLAGS
772 CFLAGS
774 AM_BACKSLASH
775 AM_DEFAULT_VERBOSITY
776 AM_DEFAULT_V
777 AM_V
778 am__untar
779 am__tar
780 AMTAR
781 am__leading_dot
782 SET_MAKE
784 mkdir_p
785 MKDIR_P
786 INSTALL_STRIP_PROGRAM
787 STRIP
788 install_sh
789 MAKEINFO
790 AUTOHEADER
791 AUTOMAKE
792 AUTOCONF
793 ACLOCAL
794 VERSION
795 PACKAGE
796 CYGPATH_W
797 am__isrc
798 INSTALL_DATA
799 INSTALL_SCRIPT
800 INSTALL_PROGRAM
801 target_os
802 target_vendor
803 target_cpu
804 target
805 host_os
806 host_vendor
807 host_cpu
808 host
809 build_os
810 build_vendor
811 build_cpu
812 build
813 target_alias
814 host_alias
815 build_alias
816 LIBS
817 ECHO_T
818 ECHO_N
819 ECHO_C
820 DEFS
821 mandir
822 localedir
823 libdir
824 psdir
825 pdfdir
826 dvidir
827 htmldir
828 infodir
829 docdir
830 oldincludedir
831 includedir
832 localstatedir
833 sharedstatedir
834 sysconfdir
835 datadir
836 datarootdir
837 libexecdir
838 sbindir
839 bindir
840 program_transform_name
841 prefix
842 exec_prefix
843 PACKAGE_URL
844 PACKAGE_BUGREPORT
845 PACKAGE_STRING
846 PACKAGE_VERSION
847 PACKAGE_TARNAME
848 PACKAGE_NAME
849 PATH_SEPARATOR
850 SHELL'
851 ac_subst_files=''
852 ac_user_opts='
853 enable_option_checking
854 enable_silent_rules
855 enable_dependency_tracking
856 with_sysroot
857 enable_gold
858 enable_plugins
859 enable_relro
860 enable_targets
861 enable_default_hash_style
862 with_lib_path
863 enable_nls
864 with_gnu_ld
865 enable_rpath
866 with_libiconv_prefix
867 with_libiconv_type
868 with_libintl_prefix
869 with_libintl_type
870 enable_werror
871 enable_build_warnings
872 with_gold_ldflags
873 with_gold_ldadd
874 with_system_zlib
875 with_zstd
876 enable_threads
877 enable_jansson
878 enable_maintainer_mode
880 ac_precious_vars='build_alias
881 host_alias
882 target_alias
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
890 CXXFLAGS
892 YACC
893 YFLAGS
894 PKG_CONFIG
895 PKG_CONFIG_PATH
896 PKG_CONFIG_LIBDIR
897 ZSTD_CFLAGS
898 ZSTD_LIBS
899 JANSSON_CFLAGS
900 JANSSON_LIBS
901 CXXCPP'
904 # Initialize some variables set by options.
905 ac_init_help=
906 ac_init_version=false
907 ac_unrecognized_opts=
908 ac_unrecognized_sep=
909 # The variables have the same names as the options, with
910 # dashes changed to underlines.
911 cache_file=/dev/null
912 exec_prefix=NONE
913 no_create=
914 no_recursion=
915 prefix=NONE
916 program_prefix=NONE
917 program_suffix=NONE
918 program_transform_name=s,x,x,
919 silent=
920 site=
921 srcdir=
922 verbose=
923 x_includes=NONE
924 x_libraries=NONE
926 # Installation directory options.
927 # These are left unexpanded so users can "make install exec_prefix=/foo"
928 # and all the variables that are supposed to be based on exec_prefix
929 # by default will actually change.
930 # Use braces instead of parens because sh, perl, etc. also accept them.
931 # (The list follows the same order as the GNU Coding Standards.)
932 bindir='${exec_prefix}/bin'
933 sbindir='${exec_prefix}/sbin'
934 libexecdir='${exec_prefix}/libexec'
935 datarootdir='${prefix}/share'
936 datadir='${datarootdir}'
937 sysconfdir='${prefix}/etc'
938 sharedstatedir='${prefix}/com'
939 localstatedir='${prefix}/var'
940 includedir='${prefix}/include'
941 oldincludedir='/usr/include'
942 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943 infodir='${datarootdir}/info'
944 htmldir='${docdir}'
945 dvidir='${docdir}'
946 pdfdir='${docdir}'
947 psdir='${docdir}'
948 libdir='${exec_prefix}/lib'
949 localedir='${datarootdir}/locale'
950 mandir='${datarootdir}/man'
952 ac_prev=
953 ac_dashdash=
954 for ac_option
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\$ac_option
959 ac_prev=
960 continue
963 case $ac_option in
964 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 *=) ac_optarg= ;;
966 *) ac_optarg=yes ;;
967 esac
969 # Accept the important Cygnus configure options, so we can diagnose typos.
971 case $ac_dashdash$ac_option in
973 ac_dashdash=yes ;;
975 -bindir | --bindir | --bindi | --bind | --bin | --bi)
976 ac_prev=bindir ;;
977 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978 bindir=$ac_optarg ;;
980 -build | --build | --buil | --bui | --bu)
981 ac_prev=build_alias ;;
982 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983 build_alias=$ac_optarg ;;
985 -cache-file | --cache-file | --cache-fil | --cache-fi \
986 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987 ac_prev=cache_file ;;
988 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990 cache_file=$ac_optarg ;;
992 --config-cache | -C)
993 cache_file=config.cache ;;
995 -datadir | --datadir | --datadi | --datad)
996 ac_prev=datadir ;;
997 -datadir=* | --datadir=* | --datadi=* | --datad=*)
998 datadir=$ac_optarg ;;
1000 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001 | --dataroo | --dataro | --datar)
1002 ac_prev=datarootdir ;;
1003 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005 datarootdir=$ac_optarg ;;
1007 -disable-* | --disable-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 as_fn_error $? "invalid feature name: $ac_useropt"
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1016 "enable_$ac_useropt"
1017 "*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval enable_$ac_useropt=no ;;
1023 -docdir | --docdir | --docdi | --doc | --do)
1024 ac_prev=docdir ;;
1025 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026 docdir=$ac_optarg ;;
1028 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029 ac_prev=dvidir ;;
1030 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031 dvidir=$ac_optarg ;;
1033 -enable-* | --enable-*)
1034 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error $? "invalid feature name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1042 "enable_$ac_useropt"
1043 "*) ;;
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1046 esac
1047 eval enable_$ac_useropt=\$ac_optarg ;;
1049 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051 | --exec | --exe | --ex)
1052 ac_prev=exec_prefix ;;
1053 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055 | --exec=* | --exe=* | --ex=*)
1056 exec_prefix=$ac_optarg ;;
1058 -gas | --gas | --ga | --g)
1059 # Obsolete; use --with-gas.
1060 with_gas=yes ;;
1062 -help | --help | --hel | --he | -h)
1063 ac_init_help=long ;;
1064 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065 ac_init_help=recursive ;;
1066 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067 ac_init_help=short ;;
1069 -host | --host | --hos | --ho)
1070 ac_prev=host_alias ;;
1071 -host=* | --host=* | --hos=* | --ho=*)
1072 host_alias=$ac_optarg ;;
1074 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075 ac_prev=htmldir ;;
1076 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077 | --ht=*)
1078 htmldir=$ac_optarg ;;
1080 -includedir | --includedir | --includedi | --included | --include \
1081 | --includ | --inclu | --incl | --inc)
1082 ac_prev=includedir ;;
1083 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084 | --includ=* | --inclu=* | --incl=* | --inc=*)
1085 includedir=$ac_optarg ;;
1087 -infodir | --infodir | --infodi | --infod | --info | --inf)
1088 ac_prev=infodir ;;
1089 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090 infodir=$ac_optarg ;;
1092 -libdir | --libdir | --libdi | --libd)
1093 ac_prev=libdir ;;
1094 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095 libdir=$ac_optarg ;;
1097 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098 | --libexe | --libex | --libe)
1099 ac_prev=libexecdir ;;
1100 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101 | --libexe=* | --libex=* | --libe=*)
1102 libexecdir=$ac_optarg ;;
1104 -localedir | --localedir | --localedi | --localed | --locale)
1105 ac_prev=localedir ;;
1106 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107 localedir=$ac_optarg ;;
1109 -localstatedir | --localstatedir | --localstatedi | --localstated \
1110 | --localstate | --localstat | --localsta | --localst | --locals)
1111 ac_prev=localstatedir ;;
1112 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114 localstatedir=$ac_optarg ;;
1116 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117 ac_prev=mandir ;;
1118 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119 mandir=$ac_optarg ;;
1121 -nfp | --nfp | --nf)
1122 # Obsolete; use --without-fp.
1123 with_fp=no ;;
1125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126 | --no-cr | --no-c | -n)
1127 no_create=yes ;;
1129 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131 no_recursion=yes ;;
1133 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135 | --oldin | --oldi | --old | --ol | --o)
1136 ac_prev=oldincludedir ;;
1137 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140 oldincludedir=$ac_optarg ;;
1142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143 ac_prev=prefix ;;
1144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145 prefix=$ac_optarg ;;
1147 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148 | --program-pre | --program-pr | --program-p)
1149 ac_prev=program_prefix ;;
1150 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152 program_prefix=$ac_optarg ;;
1154 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155 | --program-suf | --program-su | --program-s)
1156 ac_prev=program_suffix ;;
1157 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159 program_suffix=$ac_optarg ;;
1161 -program-transform-name | --program-transform-name \
1162 | --program-transform-nam | --program-transform-na \
1163 | --program-transform-n | --program-transform- \
1164 | --program-transform | --program-transfor \
1165 | --program-transfo | --program-transf \
1166 | --program-trans | --program-tran \
1167 | --progr-tra | --program-tr | --program-t)
1168 ac_prev=program_transform_name ;;
1169 -program-transform-name=* | --program-transform-name=* \
1170 | --program-transform-nam=* | --program-transform-na=* \
1171 | --program-transform-n=* | --program-transform-=* \
1172 | --program-transform=* | --program-transfor=* \
1173 | --program-transfo=* | --program-transf=* \
1174 | --program-trans=* | --program-tran=* \
1175 | --progr-tra=* | --program-tr=* | --program-t=*)
1176 program_transform_name=$ac_optarg ;;
1178 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179 ac_prev=pdfdir ;;
1180 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181 pdfdir=$ac_optarg ;;
1183 -psdir | --psdir | --psdi | --psd | --ps)
1184 ac_prev=psdir ;;
1185 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186 psdir=$ac_optarg ;;
1188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189 | -silent | --silent | --silen | --sile | --sil)
1190 silent=yes ;;
1192 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193 ac_prev=sbindir ;;
1194 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195 | --sbi=* | --sb=*)
1196 sbindir=$ac_optarg ;;
1198 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200 | --sharedst | --shareds | --shared | --share | --shar \
1201 | --sha | --sh)
1202 ac_prev=sharedstatedir ;;
1203 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206 | --sha=* | --sh=*)
1207 sharedstatedir=$ac_optarg ;;
1209 -site | --site | --sit)
1210 ac_prev=site ;;
1211 -site=* | --site=* | --sit=*)
1212 site=$ac_optarg ;;
1214 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215 ac_prev=srcdir ;;
1216 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217 srcdir=$ac_optarg ;;
1219 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220 | --syscon | --sysco | --sysc | --sys | --sy)
1221 ac_prev=sysconfdir ;;
1222 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224 sysconfdir=$ac_optarg ;;
1226 -target | --target | --targe | --targ | --tar | --ta | --t)
1227 ac_prev=target_alias ;;
1228 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229 target_alias=$ac_optarg ;;
1231 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232 verbose=yes ;;
1234 -version | --version | --versio | --versi | --vers | -V)
1235 ac_init_version=: ;;
1237 -with-* | --with-*)
1238 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 as_fn_error $? "invalid package name: $ac_useropt"
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1246 "with_$ac_useropt"
1247 "*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval with_$ac_useropt=\$ac_optarg ;;
1253 -without-* | --without-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1262 "with_$ac_useropt"
1263 "*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=no ;;
1269 --x)
1270 # Obsolete; use --with-x.
1271 with_x=yes ;;
1273 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1274 | --x-incl | --x-inc | --x-in | --x-i)
1275 ac_prev=x_includes ;;
1276 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1277 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1278 x_includes=$ac_optarg ;;
1280 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1281 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1282 ac_prev=x_libraries ;;
1283 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1284 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1285 x_libraries=$ac_optarg ;;
1287 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1288 Try \`$0 --help' for more information"
1291 *=*)
1292 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 case $ac_envvar in #(
1295 '' | [0-9]* | *[!_$as_cr_alnum]* )
1296 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1297 esac
1298 eval $ac_envvar=\$ac_optarg
1299 export $ac_envvar ;;
1302 # FIXME: should be removed in autoconf 3.0.
1303 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1305 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1306 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1309 esac
1310 done
1312 if test -n "$ac_prev"; then
1313 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1314 as_fn_error $? "missing argument to $ac_option"
1317 if test -n "$ac_unrecognized_opts"; then
1318 case $enable_option_checking in
1319 no) ;;
1320 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1321 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1322 esac
1325 # Check all directory arguments for consistency.
1326 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327 datadir sysconfdir sharedstatedir localstatedir includedir \
1328 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329 libdir localedir mandir
1331 eval ac_val=\$$ac_var
1332 # Remove trailing slashes.
1333 case $ac_val in
1334 */ )
1335 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1336 eval $ac_var=\$ac_val;;
1337 esac
1338 # Be sure to have absolute directory names.
1339 case $ac_val in
1340 [\\/$]* | ?:[\\/]* ) continue;;
1341 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1342 esac
1343 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1344 done
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1349 build=$build_alias
1350 host=$host_alias
1351 target=$target_alias
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x; then
1355 if test "x$build_alias" = x; then
1356 cross_compiling=maybe
1357 elif test "x$build_alias" != "x$host_alias"; then
1358 cross_compiling=yes
1362 ac_tool_prefix=
1363 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365 test "$silent" = yes && exec 6>/dev/null
1368 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369 ac_ls_di=`ls -di .` &&
1370 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371 as_fn_error $? "working directory cannot be determined"
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 as_fn_error $? "pwd does not report name of working directory"
1376 # Find the source files, if location was not specified.
1377 if test -z "$srcdir"; then
1378 ac_srcdir_defaulted=yes
1379 # Try the directory containing this script, then the parent directory.
1380 ac_confdir=`$as_dirname -- "$as_myself" ||
1381 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382 X"$as_myself" : 'X\(//\)[^/]' \| \
1383 X"$as_myself" : 'X\(//\)$' \| \
1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385 $as_echo X"$as_myself" |
1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387 s//\1/
1390 /^X\(\/\/\)[^/].*/{
1391 s//\1/
1394 /^X\(\/\/\)$/{
1395 s//\1/
1398 /^X\(\/\).*/{
1399 s//\1/
1402 s/.*/./; q'`
1403 srcdir=$ac_confdir
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 srcdir=..
1407 else
1408 ac_srcdir_defaulted=no
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415 ac_abs_confdir=`(
1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1417 pwd)`
1418 # When building in place, set srcdir=.
1419 if test "$ac_abs_confdir" = "$ac_pwd"; then
1420 srcdir=.
1422 # Remove unnecessary trailing slashes from srcdir.
1423 # Double slashes in file names in object file debugging info
1424 # mess up M-x gdb in Emacs.
1425 case $srcdir in
1426 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427 esac
1428 for ac_var in $ac_precious_vars; do
1429 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_${ac_var}_value=\$${ac_var}
1431 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433 done
1436 # Report the --help message.
1438 if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1441 cat <<_ACEOF
1442 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1444 Usage: $0 [OPTION]... [VAR=VALUE]...
1446 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447 VAR=VALUE. See below for descriptions of some of the useful variables.
1449 Defaults for the options are specified in brackets.
1451 Configuration:
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
1456 -q, --quiet, --silent do not print \`checking ...' messages
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462 Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
1464 [$ac_default_prefix]
1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1466 [PREFIX]
1468 By default, \`make install' will install all the files in
1469 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471 for instance \`--prefix=\$HOME'.
1473 For better control, use the options below.
1475 Fine tuning of the installation directories:
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1495 _ACEOF
1497 cat <<\_ACEOF
1499 Program names:
1500 --program-prefix=PREFIX prepend PREFIX to installed program names
1501 --program-suffix=SUFFIX append SUFFIX to installed program names
1502 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1504 System types:
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507 --target=TARGET configure for building compilers for TARGET [HOST]
1508 _ACEOF
1511 if test -n "$ac_init_help"; then
1512 case $ac_init_help in
1513 short | recursive ) echo "Configuration of gold 0.1:";;
1514 esac
1515 cat <<\_ACEOF
1517 Optional Features:
1518 --disable-option-checking ignore unrecognized --enable/--with options
1519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1521 --enable-silent-rules less verbose build output (undo: "make V=1")
1522 --disable-silent-rules verbose build output (undo: "make V=0")
1523 --enable-dependency-tracking
1524 do not reject slow dependency extractors
1525 --disable-dependency-tracking
1526 speeds up one-time build
1527 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1528 --enable-plugins Enable support for plugins
1529 --enable-relro enable -z relro in ELF linker by default
1530 --enable-targets alternative target configurations
1531 --enable-default-hash-style={sysv,gnu,both}
1532 use this default hash style
1533 --disable-nls do not use Native Language Support
1534 --disable-rpath do not hardcode runtime library paths
1535 --enable-werror treat compile warnings as errors
1536 --enable-build-warnings enable build-time compiler warnings
1537 --enable-threads[=ARG] multi-threaded linking [ARG={auto,yes,no}]
1538 --enable-jansson enable jansson [default=no]
1539 --enable-maintainer-mode
1540 enable make rules and dependencies not useful (and
1541 sometimes confusing) to the casual installer
1543 Optional Packages:
1544 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1545 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1546 --with-sysroot=DIR search for usr/lib et al within DIR
1547 --with-lib-path=dir1:dir2... set default LIB_PATH
1548 --with-gnu-ld assume the C compiler uses GNU ld default=no
1549 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1550 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1551 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1552 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1553 --without-libintl-prefix don't search for libintl in includedir and libdir
1554 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1555 --with-gold-ldflags=FLAGS additional link flags for gold
1556 --with-gold-ldadd=LIBS additional libraries for gold
1557 --with-system-zlib use installed libz
1558 --with-zstd support zstd compressed debug sections
1559 (default=auto)
1561 Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
1569 CPP C preprocessor
1570 CXX C++ compiler command
1571 CXXFLAGS C++ compiler flags
1572 YACC The `Yet Another Compiler Compiler' implementation to use.
1573 Defaults to the first program found out of: `bison -y', `byacc',
1574 `yacc'.
1575 YFLAGS The list of arguments that will be passed by default to $YACC.
1576 This script will default YFLAGS to the empty string to avoid a
1577 default value of `-d' given by some make applications.
1578 PKG_CONFIG path to pkg-config utility
1579 PKG_CONFIG_PATH
1580 directories to add to pkg-config's search path
1581 PKG_CONFIG_LIBDIR
1582 path overriding pkg-config's built-in search path
1583 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1584 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1585 JANSSON_CFLAGS
1586 C compiler flags for JANSSON, overriding pkg-config
1587 JANSSON_LIBS
1588 linker flags for JANSSON, overriding pkg-config
1589 CXXCPP C++ preprocessor
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1594 Report bugs to the package provider.
1595 _ACEOF
1596 ac_status=$?
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604 continue
1605 ac_builddir=.
1607 case "$ac_dir" in
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616 esac ;;
1617 esac
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1623 case $srcdir in
1624 .) # We are building in place.
1625 ac_srcdir=.
1626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
1629 ac_srcdir=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1632 *) # Relative name.
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636 esac
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure" --help=recursive
1647 else
1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649 fi || ac_status=$?
1650 cd "$ac_pwd" || { ac_status=$?; break; }
1651 done
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1656 cat <<\_ACEOF
1657 gold configure 0.1
1658 generated by GNU Autoconf 2.69
1660 Copyright (C) 2012 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1663 _ACEOF
1664 exit
1667 ## ------------------------ ##
1668 ## Autoconf initialization. ##
1669 ## ------------------------ ##
1671 # ac_fn_c_try_compile LINENO
1672 # --------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_compile ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext
1678 if { { ac_try="$ac_compile"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_compile") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest.$ac_objext; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1702 ac_retval=1
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1707 } # ac_fn_c_try_compile
1709 # ac_fn_c_try_cpp LINENO
1710 # ----------------------
1711 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_cpp ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_cpp conftest.$ac_ext"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } > conftest.i && {
1731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 }; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=1
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1744 } # ac_fn_c_try_cpp
1746 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1747 # -------------------------------------------------------
1748 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1749 # the include files in INCLUDES and setting the cache variable VAR
1750 # accordingly.
1751 ac_fn_c_check_header_mongrel ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if eval \${$3+:} false; then :
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 else
1764 # Is the header compilable?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1766 $as_echo_n "checking $2 usability... " >&6; }
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"; then :
1773 ac_header_compiler=yes
1774 else
1775 ac_header_compiler=no
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1779 $as_echo "$ac_header_compiler" >&6; }
1781 # Is the header present?
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1783 $as_echo_n "checking $2 presence... " >&6; }
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_cpp "$LINENO"; then :
1789 ac_header_preproc=yes
1790 else
1791 ac_header_preproc=no
1793 rm -f conftest.err conftest.i conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1795 $as_echo "$ac_header_preproc" >&6; }
1797 # So? What about this header?
1798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1799 yes:no: )
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1801 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1803 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805 no:yes:* )
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1807 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1809 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1811 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1813 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1815 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817 esac
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821 $as_echo_n "(cached) " >&6
1822 else
1823 eval "$3=\$ac_header_compiler"
1825 eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 } # ac_fn_c_check_header_mongrel
1833 # ac_fn_c_try_run LINENO
1834 # ----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1836 # that executables *can* be run.
1837 ac_fn_c_try_run ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>&5
1848 ac_status=$?
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1851 { { case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_try") 2>&5
1858 ac_status=$?
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; }; }; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: program exited with status $ac_status" >&5
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=$ac_status
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1873 } # ac_fn_c_try_run
1875 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists and can be compiled using the include files in
1878 # INCLUDES, setting the cache variable VAR accordingly.
1879 ac_fn_c_check_header_compile ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1890 #include <$2>
1891 _ACEOF
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893 eval "$3=yes"
1894 else
1895 eval "$3=no"
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 } # ac_fn_c_check_header_compile
1906 # ac_fn_c_try_link LINENO
1907 # -----------------------
1908 # Try to link conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_c_try_link ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 rm -f conftest.$ac_objext conftest$ac_exeext
1913 if { { ac_try="$ac_link"
1914 case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_link") 2>conftest.err
1921 ac_status=$?
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_c_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest$ac_exeext && {
1932 test "$cross_compiling" = yes ||
1933 test -x conftest$ac_exeext
1934 }; then :
1935 ac_retval=0
1936 else
1937 $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1940 ac_retval=1
1942 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944 # interfere with the next link command; also delete a directory that is
1945 # left behind by Apple's compiler. We do this before executing the actions.
1946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 as_fn_set_status $ac_retval
1950 } # ac_fn_c_try_link
1952 # ac_fn_cxx_try_compile LINENO
1953 # ----------------------------
1954 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_cxx_try_compile ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 rm -f conftest.$ac_objext
1959 if { { ac_try="$ac_compile"
1960 case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_compile") 2>conftest.err
1967 ac_status=$?
1968 if test -s conftest.err; then
1969 grep -v '^ *+' conftest.err >conftest.er1
1970 cat conftest.er1 >&5
1971 mv -f conftest.er1 conftest.err
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && {
1975 test -z "$ac_cxx_werror_flag" ||
1976 test ! -s conftest.err
1977 } && test -s conftest.$ac_objext; then :
1978 ac_retval=0
1979 else
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1983 ac_retval=1
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 as_fn_set_status $ac_retval
1988 } # ac_fn_cxx_try_compile
1990 # ac_fn_c_check_func LINENO FUNC VAR
1991 # ----------------------------------
1992 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1993 ac_fn_c_check_func ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2005 #define $2 innocuous_$2
2007 /* System header to define __stub macros and hopefully few prototypes,
2008 which can conflict with char $2 (); below.
2009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2010 <limits.h> exists even on freestanding compilers. */
2012 #ifdef __STDC__
2013 # include <limits.h>
2014 #else
2015 # include <assert.h>
2016 #endif
2018 #undef $2
2020 /* Override any GCC internal prototype to avoid an error.
2021 Use char because int might match the return type of a GCC
2022 builtin and then its argument prototype would still apply. */
2023 #ifdef __cplusplus
2024 extern "C"
2025 #endif
2026 char $2 ();
2027 /* The GNU C library defines this for functions which it implements
2028 to always fail with ENOSYS. Some functions are actually named
2029 something starting with __ and the normal name is an alias. */
2030 #if defined __stub_$2 || defined __stub___$2
2031 choke me
2032 #endif
2035 main ()
2037 return $2 ();
2039 return 0;
2041 _ACEOF
2042 if ac_fn_c_try_link "$LINENO"; then :
2043 eval "$3=yes"
2044 else
2045 eval "$3=no"
2047 rm -f core conftest.err conftest.$ac_objext \
2048 conftest$ac_exeext conftest.$ac_ext
2050 eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_c_check_func
2057 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2058 # ---------------------------------------------
2059 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2060 # accordingly.
2061 ac_fn_c_check_decl ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 as_decl_name=`echo $2|sed 's/ *(.*//'`
2065 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2067 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2068 if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2070 else
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2075 main ()
2077 #ifndef $as_decl_name
2078 #ifdef __cplusplus
2079 (void) $as_decl_use;
2080 #else
2081 (void) $as_decl_name;
2082 #endif
2083 #endif
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 eval "$3=yes"
2091 else
2092 eval "$3=no"
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 eval ac_res=\$$3
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 } # ac_fn_c_check_decl
2103 # ac_fn_cxx_try_cpp LINENO
2104 # ------------------------
2105 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2106 ac_fn_cxx_try_cpp ()
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 if { { ac_try="$ac_cpp conftest.$ac_ext"
2110 case "(($ac_try" in
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2113 esac
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2117 ac_status=$?
2118 if test -s conftest.err; then
2119 grep -v '^ *+' conftest.err >conftest.er1
2120 cat conftest.er1 >&5
2121 mv -f conftest.er1 conftest.err
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } > conftest.i && {
2125 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2126 test ! -s conftest.err
2127 }; then :
2128 ac_retval=0
2129 else
2130 $as_echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2133 ac_retval=1
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 as_fn_set_status $ac_retval
2138 } # ac_fn_cxx_try_cpp
2140 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2141 # ---------------------------------------------------------
2142 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2143 # the include files in INCLUDES and setting the cache variable VAR
2144 # accordingly.
2145 ac_fn_cxx_check_header_mongrel ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if eval \${$3+:} false; then :
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 $as_echo_n "checking for $2... " >&6; }
2151 if eval \${$3+:} false; then :
2152 $as_echo_n "(cached) " >&6
2154 eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 else
2158 # Is the header compilable?
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2160 $as_echo_n "checking $2 usability... " >&6; }
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2164 #include <$2>
2165 _ACEOF
2166 if ac_fn_cxx_try_compile "$LINENO"; then :
2167 ac_header_compiler=yes
2168 else
2169 ac_header_compiler=no
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2173 $as_echo "$ac_header_compiler" >&6; }
2175 # Is the header present?
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2177 $as_echo_n "checking $2 presence... " >&6; }
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2180 #include <$2>
2181 _ACEOF
2182 if ac_fn_cxx_try_cpp "$LINENO"; then :
2183 ac_header_preproc=yes
2184 else
2185 ac_header_preproc=no
2187 rm -f conftest.err conftest.i conftest.$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2189 $as_echo "$ac_header_preproc" >&6; }
2191 # So? What about this header?
2192 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2193 yes:no: )
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2195 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2197 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2199 no:yes:* )
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2201 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2203 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2205 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2207 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2211 esac
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213 $as_echo_n "checking for $2... " >&6; }
2214 if eval \${$3+:} false; then :
2215 $as_echo_n "(cached) " >&6
2216 else
2217 eval "$3=\$ac_header_compiler"
2219 eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225 } # ac_fn_cxx_check_header_mongrel
2227 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2228 # -----------------------------------------------
2229 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2230 # accordingly.
2231 ac_fn_cxx_check_decl ()
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 as_decl_name=`echo $2|sed 's/ *(.*//'`
2235 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2237 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2238 if eval \${$3+:} false; then :
2239 $as_echo_n "(cached) " >&6
2240 else
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2245 main ()
2247 #ifndef $as_decl_name
2248 #ifdef __cplusplus
2249 (void) $as_decl_use;
2250 #else
2251 (void) $as_decl_name;
2252 #endif
2253 #endif
2256 return 0;
2258 _ACEOF
2259 if ac_fn_cxx_try_compile "$LINENO"; then :
2260 eval "$3=yes"
2261 else
2262 eval "$3=no"
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 eval ac_res=\$$3
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 } # ac_fn_cxx_check_decl
2273 # ac_fn_cxx_try_link LINENO
2274 # -------------------------
2275 # Try to link conftest.$ac_ext, and return whether this succeeded.
2276 ac_fn_cxx_try_link ()
2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279 rm -f conftest.$ac_objext conftest$ac_exeext
2280 if { { ac_try="$ac_link"
2281 case "(($ac_try" in
2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2284 esac
2285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286 $as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_link") 2>conftest.err
2288 ac_status=$?
2289 if test -s conftest.err; then
2290 grep -v '^ *+' conftest.err >conftest.er1
2291 cat conftest.er1 >&5
2292 mv -f conftest.er1 conftest.err
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; } && {
2296 test -z "$ac_cxx_werror_flag" ||
2297 test ! -s conftest.err
2298 } && test -s conftest$ac_exeext && {
2299 test "$cross_compiling" = yes ||
2300 test -x conftest$ac_exeext
2301 }; then :
2302 ac_retval=0
2303 else
2304 $as_echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2307 ac_retval=1
2309 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2310 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2311 # interfere with the next link command; also delete a directory that is
2312 # left behind by Apple's compiler. We do this before executing the actions.
2313 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315 as_fn_set_status $ac_retval
2317 } # ac_fn_cxx_try_link
2319 # ac_fn_cxx_check_func LINENO FUNC VAR
2320 # ------------------------------------
2321 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2322 ac_fn_cxx_check_func ()
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2326 $as_echo_n "checking for $2... " >&6; }
2327 if eval \${$3+:} false; then :
2328 $as_echo_n "(cached) " >&6
2329 else
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2332 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2334 #define $2 innocuous_$2
2336 /* System header to define __stub macros and hopefully few prototypes,
2337 which can conflict with char $2 (); below.
2338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2339 <limits.h> exists even on freestanding compilers. */
2341 #ifdef __STDC__
2342 # include <limits.h>
2343 #else
2344 # include <assert.h>
2345 #endif
2347 #undef $2
2349 /* Override any GCC internal prototype to avoid an error.
2350 Use char because int might match the return type of a GCC
2351 builtin and then its argument prototype would still apply. */
2352 #ifdef __cplusplus
2353 extern "C"
2354 #endif
2355 char $2 ();
2356 /* The GNU C library defines this for functions which it implements
2357 to always fail with ENOSYS. Some functions are actually named
2358 something starting with __ and the normal name is an alias. */
2359 #if defined __stub_$2 || defined __stub___$2
2360 choke me
2361 #endif
2364 main ()
2366 return $2 ();
2368 return 0;
2370 _ACEOF
2371 if ac_fn_cxx_try_link "$LINENO"; then :
2372 eval "$3=yes"
2373 else
2374 eval "$3=no"
2376 rm -f core conftest.err conftest.$ac_objext \
2377 conftest$ac_exeext conftest.$ac_ext
2379 eval ac_res=\$$3
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381 $as_echo "$ac_res" >&6; }
2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384 } # ac_fn_cxx_check_func
2385 cat >config.log <<_ACEOF
2386 This file contains any messages produced by compilers while
2387 running configure, to aid debugging if configure makes a mistake.
2389 It was created by gold $as_me 0.1, which was
2390 generated by GNU Autoconf 2.69. Invocation command line was
2392 $ $0 $@
2394 _ACEOF
2395 exec 5>>config.log
2397 cat <<_ASUNAME
2398 ## --------- ##
2399 ## Platform. ##
2400 ## --------- ##
2402 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2403 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2404 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2405 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2406 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2408 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2409 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2411 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2412 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2413 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2414 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2415 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2416 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2417 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2419 _ASUNAME
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
2426 $as_echo "PATH: $as_dir"
2427 done
2428 IFS=$as_save_IFS
2430 } >&5
2432 cat >&5 <<_ACEOF
2435 ## ----------- ##
2436 ## Core tests. ##
2437 ## ----------- ##
2439 _ACEOF
2442 # Keep a trace of the command line.
2443 # Strip out --no-create and --no-recursion so they do not pile up.
2444 # Strip out --silent because we don't want to record it for future runs.
2445 # Also quote any args containing shell meta-characters.
2446 # Make two passes to allow for proper duplicate-argument suppression.
2447 ac_configure_args=
2448 ac_configure_args0=
2449 ac_configure_args1=
2450 ac_must_keep_next=false
2451 for ac_pass in 1 2
2453 for ac_arg
2455 case $ac_arg in
2456 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2458 | -silent | --silent | --silen | --sile | --sil)
2459 continue ;;
2460 *\'*)
2461 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2462 esac
2463 case $ac_pass in
2464 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2466 as_fn_append ac_configure_args1 " '$ac_arg'"
2467 if test $ac_must_keep_next = true; then
2468 ac_must_keep_next=false # Got value, back to normal.
2469 else
2470 case $ac_arg in
2471 *=* | --config-cache | -C | -disable-* | --disable-* \
2472 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2473 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2474 | -with-* | --with-* | -without-* | --without-* | --x)
2475 case "$ac_configure_args0 " in
2476 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2477 esac
2479 -* ) ac_must_keep_next=true ;;
2480 esac
2482 as_fn_append ac_configure_args " '$ac_arg'"
2484 esac
2485 done
2486 done
2487 { ac_configure_args0=; unset ac_configure_args0;}
2488 { ac_configure_args1=; unset ac_configure_args1;}
2490 # When interrupted or exit'd, cleanup temporary files, and complete
2491 # config.log. We remove comments because anyway the quotes in there
2492 # would cause problems or look ugly.
2493 # WARNING: Use '\'' to represent an apostrophe within the trap.
2494 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2495 trap 'exit_status=$?
2496 # Save into config.log some information that might help in debugging.
2498 echo
2500 $as_echo "## ---------------- ##
2501 ## Cache variables. ##
2502 ## ---------------- ##"
2503 echo
2504 # The following way of writing the cache mishandles newlines in values,
2506 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2507 eval ac_val=\$$ac_var
2508 case $ac_val in #(
2509 *${as_nl}*)
2510 case $ac_var in #(
2511 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2512 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2513 esac
2514 case $ac_var in #(
2515 _ | IFS | as_nl) ;; #(
2516 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2517 *) { eval $ac_var=; unset $ac_var;} ;;
2518 esac ;;
2519 esac
2520 done
2521 (set) 2>&1 |
2522 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2523 *${as_nl}ac_space=\ *)
2524 sed -n \
2525 "s/'\''/'\''\\\\'\'''\''/g;
2526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2527 ;; #(
2529 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2531 esac |
2532 sort
2534 echo
2536 $as_echo "## ----------------- ##
2537 ## Output variables. ##
2538 ## ----------------- ##"
2539 echo
2540 for ac_var in $ac_subst_vars
2542 eval ac_val=\$$ac_var
2543 case $ac_val in
2544 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2545 esac
2546 $as_echo "$ac_var='\''$ac_val'\''"
2547 done | sort
2548 echo
2550 if test -n "$ac_subst_files"; then
2551 $as_echo "## ------------------- ##
2552 ## File substitutions. ##
2553 ## ------------------- ##"
2554 echo
2555 for ac_var in $ac_subst_files
2557 eval ac_val=\$$ac_var
2558 case $ac_val in
2559 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2560 esac
2561 $as_echo "$ac_var='\''$ac_val'\''"
2562 done | sort
2563 echo
2566 if test -s confdefs.h; then
2567 $as_echo "## ----------- ##
2568 ## confdefs.h. ##
2569 ## ----------- ##"
2570 echo
2571 cat confdefs.h
2572 echo
2574 test "$ac_signal" != 0 &&
2575 $as_echo "$as_me: caught signal $ac_signal"
2576 $as_echo "$as_me: exit $exit_status"
2577 } >&5
2578 rm -f core *.core core.conftest.* &&
2579 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2580 exit $exit_status
2582 for ac_signal in 1 2 13 15; do
2583 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2584 done
2585 ac_signal=0
2587 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2588 rm -f -r conftest* confdefs.h
2590 $as_echo "/* confdefs.h */" > confdefs.h
2592 # Predefined preprocessor variables.
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_NAME "$PACKAGE_NAME"
2596 _ACEOF
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2600 _ACEOF
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2604 _ACEOF
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE_STRING "$PACKAGE_STRING"
2608 _ACEOF
2610 cat >>confdefs.h <<_ACEOF
2611 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2612 _ACEOF
2614 cat >>confdefs.h <<_ACEOF
2615 #define PACKAGE_URL "$PACKAGE_URL"
2616 _ACEOF
2619 # Let the site file select an alternate cache file if it wants to.
2620 # Prefer an explicitly selected file to automatically selected ones.
2621 ac_site_file1=NONE
2622 ac_site_file2=NONE
2623 if test -n "$CONFIG_SITE"; then
2624 # We do not want a PATH search for config.site.
2625 case $CONFIG_SITE in #((
2626 -*) ac_site_file1=./$CONFIG_SITE;;
2627 */*) ac_site_file1=$CONFIG_SITE;;
2628 *) ac_site_file1=./$CONFIG_SITE;;
2629 esac
2630 elif test "x$prefix" != xNONE; then
2631 ac_site_file1=$prefix/share/config.site
2632 ac_site_file2=$prefix/etc/config.site
2633 else
2634 ac_site_file1=$ac_default_prefix/share/config.site
2635 ac_site_file2=$ac_default_prefix/etc/config.site
2637 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2639 test "x$ac_site_file" = xNONE && continue
2640 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2642 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2643 sed 's/^/| /' "$ac_site_file" >&5
2644 . "$ac_site_file" \
2645 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647 as_fn_error $? "failed to load site script $ac_site_file
2648 See \`config.log' for more details" "$LINENO" 5; }
2650 done
2652 if test -r "$cache_file"; then
2653 # Some versions of bash will fail to source /dev/null (special files
2654 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2655 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2657 $as_echo "$as_me: loading cache $cache_file" >&6;}
2658 case $cache_file in
2659 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2660 *) . "./$cache_file";;
2661 esac
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2665 $as_echo "$as_me: creating cache $cache_file" >&6;}
2666 >$cache_file
2669 gt_needs="$gt_needs "
2670 # Check that the precious variables saved in the cache have kept the same
2671 # value.
2672 ac_cache_corrupted=false
2673 for ac_var in $ac_precious_vars; do
2674 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2675 eval ac_new_set=\$ac_env_${ac_var}_set
2676 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2677 eval ac_new_val=\$ac_env_${ac_var}_value
2678 case $ac_old_set,$ac_new_set in
2679 set,)
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2681 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2682 ac_cache_corrupted=: ;;
2683 ,set)
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2685 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2686 ac_cache_corrupted=: ;;
2687 ,);;
2689 if test "x$ac_old_val" != "x$ac_new_val"; then
2690 # differences in whitespace do not lead to failure.
2691 ac_old_val_w=`echo x $ac_old_val`
2692 ac_new_val_w=`echo x $ac_new_val`
2693 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2695 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2696 ac_cache_corrupted=:
2697 else
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2699 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2700 eval $ac_var=\$ac_old_val
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2703 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2705 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2706 fi;;
2707 esac
2708 # Pass precious variables to config.status.
2709 if test "$ac_new_set" = set; then
2710 case $ac_new_val in
2711 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2712 *) ac_arg=$ac_var=$ac_new_val ;;
2713 esac
2714 case " $ac_configure_args " in
2715 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2716 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2717 esac
2719 done
2720 if $ac_cache_corrupted; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2724 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2725 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2727 ## -------------------- ##
2728 ## Main body of script. ##
2729 ## -------------------- ##
2731 ac_ext=c
2732 ac_cpp='$CPP $CPPFLAGS'
2733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743 ac_aux_dir=
2744 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2745 if test -f "$ac_dir/install-sh"; then
2746 ac_aux_dir=$ac_dir
2747 ac_install_sh="$ac_aux_dir/install-sh -c"
2748 break
2749 elif test -f "$ac_dir/install.sh"; then
2750 ac_aux_dir=$ac_dir
2751 ac_install_sh="$ac_aux_dir/install.sh -c"
2752 break
2753 elif test -f "$ac_dir/shtool"; then
2754 ac_aux_dir=$ac_dir
2755 ac_install_sh="$ac_aux_dir/shtool install -c"
2756 break
2758 done
2759 if test -z "$ac_aux_dir"; then
2760 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2763 # These three variables are undocumented and unsupported,
2764 # and are intended to be withdrawn in a future Autoconf release.
2765 # They can cause serious problems if a builder's source tree is in a directory
2766 # whose full name contains unusual characters.
2767 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2768 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2769 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2772 # Make sure we can run config.sub.
2773 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2774 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2777 $as_echo_n "checking build system type... " >&6; }
2778 if ${ac_cv_build+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 ac_build_alias=$build_alias
2782 test "x$ac_build_alias" = x &&
2783 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2784 test "x$ac_build_alias" = x &&
2785 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2786 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2787 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2791 $as_echo "$ac_cv_build" >&6; }
2792 case $ac_cv_build in
2793 *-*-*) ;;
2794 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2795 esac
2796 build=$ac_cv_build
2797 ac_save_IFS=$IFS; IFS='-'
2798 set x $ac_cv_build
2799 shift
2800 build_cpu=$1
2801 build_vendor=$2
2802 shift; shift
2803 # Remember, the first character of IFS is used to create $*,
2804 # except with old shells:
2805 build_os=$*
2806 IFS=$ac_save_IFS
2807 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2811 $as_echo_n "checking host system type... " >&6; }
2812 if ${ac_cv_host+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if test "x$host_alias" = x; then
2816 ac_cv_host=$ac_cv_build
2817 else
2818 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2819 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2824 $as_echo "$ac_cv_host" >&6; }
2825 case $ac_cv_host in
2826 *-*-*) ;;
2827 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2828 esac
2829 host=$ac_cv_host
2830 ac_save_IFS=$IFS; IFS='-'
2831 set x $ac_cv_host
2832 shift
2833 host_cpu=$1
2834 host_vendor=$2
2835 shift; shift
2836 # Remember, the first character of IFS is used to create $*,
2837 # except with old shells:
2838 host_os=$*
2839 IFS=$ac_save_IFS
2840 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2844 $as_echo_n "checking target system type... " >&6; }
2845 if ${ac_cv_target+:} false; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test "x$target_alias" = x; then
2849 ac_cv_target=$ac_cv_host
2850 else
2851 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2852 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2857 $as_echo "$ac_cv_target" >&6; }
2858 case $ac_cv_target in
2859 *-*-*) ;;
2860 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2861 esac
2862 target=$ac_cv_target
2863 ac_save_IFS=$IFS; IFS='-'
2864 set x $ac_cv_target
2865 shift
2866 target_cpu=$1
2867 target_vendor=$2
2868 shift; shift
2869 # Remember, the first character of IFS is used to create $*,
2870 # except with old shells:
2871 target_os=$*
2872 IFS=$ac_save_IFS
2873 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2876 # The aliases save the names the user supplied, while $host etc.
2877 # will get canonicalized.
2878 test -n "$target_alias" &&
2879 test "$program_prefix$program_suffix$program_transform_name" = \
2880 NONENONEs,x,x, &&
2881 program_prefix=${target_alias}-
2883 am__api_version='1.15'
2885 # Find a good install program. We prefer a C program (faster),
2886 # so one script is as good as another. But avoid the broken or
2887 # incompatible versions:
2888 # SysV /etc/install, /usr/sbin/install
2889 # SunOS /usr/etc/install
2890 # IRIX /sbin/install
2891 # AIX /bin/install
2892 # AmigaOS /C/install, which installs bootblocks on floppy discs
2893 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2894 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2895 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2896 # OS/2's system install, which has a completely different semantic
2897 # ./install, which can be erroneously created by make from ./install.sh.
2898 # Reject install programs that cannot install multiple files.
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2900 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2901 if test -z "$INSTALL"; then
2902 if ${ac_cv_path_install+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 # Account for people who put trailing slashes in PATH elements.
2911 case $as_dir/ in #((
2912 ./ | .// | /[cC]/* | \
2913 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2914 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2915 /usr/ucb/* ) ;;
2917 # OSF1 and SCO ODT 3.0 have their own names for install.
2918 # Don't use installbsd from OSF since it installs stuff as root
2919 # by default.
2920 for ac_prog in ginstall scoinst install; do
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2923 if test $ac_prog = install &&
2924 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2925 # AIX install. It has an incompatible calling convention.
2927 elif test $ac_prog = install &&
2928 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2929 # program-specific install script used by HP pwplus--don't use.
2931 else
2932 rm -rf conftest.one conftest.two conftest.dir
2933 echo one > conftest.one
2934 echo two > conftest.two
2935 mkdir conftest.dir
2936 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2937 test -s conftest.one && test -s conftest.two &&
2938 test -s conftest.dir/conftest.one &&
2939 test -s conftest.dir/conftest.two
2940 then
2941 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2942 break 3
2946 done
2947 done
2949 esac
2951 done
2952 IFS=$as_save_IFS
2954 rm -rf conftest.one conftest.two conftest.dir
2957 if test "${ac_cv_path_install+set}" = set; then
2958 INSTALL=$ac_cv_path_install
2959 else
2960 # As a last resort, use the slow shell script. Don't cache a
2961 # value for INSTALL within a source directory, because that will
2962 # break other packages using the cache if that directory is
2963 # removed, or if the value is a relative name.
2964 INSTALL=$ac_install_sh
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2968 $as_echo "$INSTALL" >&6; }
2970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2971 # It thinks the first close brace ends the variable substitution.
2972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2979 $as_echo_n "checking whether build environment is sane... " >&6; }
2980 # Reject unsafe characters in $srcdir or the absolute working directory
2981 # name. Accept space and tab only in the latter.
2982 am_lf='
2984 case `pwd` in
2985 *[\\\"\#\$\&\'\`$am_lf]*)
2986 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2987 esac
2988 case $srcdir in
2989 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2990 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2991 esac
2993 # Do 'set' in a subshell so we don't clobber the current shell's
2994 # arguments. Must try -L first in case configure is actually a
2995 # symlink; some systems play weird games with the mod time of symlinks
2996 # (eg FreeBSD returns the mod time of the symlink's containing
2997 # directory).
2998 if (
2999 am_has_slept=no
3000 for am_try in 1 2; do
3001 echo "timestamp, slept: $am_has_slept" > conftest.file
3002 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3003 if test "$*" = "X"; then
3004 # -L didn't work.
3005 set X `ls -t "$srcdir/configure" conftest.file`
3007 if test "$*" != "X $srcdir/configure conftest.file" \
3008 && test "$*" != "X conftest.file $srcdir/configure"; then
3010 # If neither matched, then we have a broken ls. This can happen
3011 # if, for instance, CONFIG_SHELL is bash and it inherits a
3012 # broken ls alias from the environment. This has actually
3013 # happened. Such a system could not be considered "sane".
3014 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3015 alias in your environment" "$LINENO" 5
3017 if test "$2" = conftest.file || test $am_try -eq 2; then
3018 break
3020 # Just in case.
3021 sleep 1
3022 am_has_slept=yes
3023 done
3024 test "$2" = conftest.file
3026 then
3027 # Ok.
3029 else
3030 as_fn_error $? "newly created file is older than distributed files!
3031 Check your system clock" "$LINENO" 5
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3034 $as_echo "yes" >&6; }
3035 # If we didn't sleep, we still need to ensure time stamps of config.status and
3036 # generated files are strictly newer.
3037 am_sleep_pid=
3038 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3039 ( sleep 1 ) &
3040 am_sleep_pid=$!
3043 rm -f conftest.file
3045 test "$program_prefix" != NONE &&
3046 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3047 # Use a double $ so make ignores it.
3048 test "$program_suffix" != NONE &&
3049 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3050 # Double any \ or $.
3051 # By default was `s,x,x', remove it if useless.
3052 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3053 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3055 # Expand $ac_aux_dir to an absolute path.
3056 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3058 if test x"${MISSING+set}" != xset; then
3059 case $am_aux_dir in
3060 *\ * | *\ *)
3061 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3063 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3064 esac
3066 # Use eval to expand $SHELL
3067 if eval "$MISSING --is-lightweight"; then
3068 am_missing_run="$MISSING "
3069 else
3070 am_missing_run=
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3072 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3075 if test x"${install_sh+set}" != xset; then
3076 case $am_aux_dir in
3077 *\ * | *\ *)
3078 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3080 install_sh="\${SHELL} $am_aux_dir/install-sh"
3081 esac
3084 # Installed binaries are usually stripped using 'strip' when the user
3085 # run "make install-strip". However 'strip' might not be the right
3086 # tool to use in cross-compilation environments, therefore Automake
3087 # will honor the 'STRIP' environment variable to overrule this program.
3088 if test "$cross_compiling" != no; then
3089 if test -n "$ac_tool_prefix"; then
3090 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3091 set dummy ${ac_tool_prefix}strip; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_STRIP+:} false; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 if test -n "$STRIP"; then
3098 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3099 else
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 break 2
3111 done
3112 done
3113 IFS=$as_save_IFS
3117 STRIP=$ac_cv_prog_STRIP
3118 if test -n "$STRIP"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3120 $as_echo "$STRIP" >&6; }
3121 else
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3128 if test -z "$ac_cv_prog_STRIP"; then
3129 ac_ct_STRIP=$STRIP
3130 # Extract the first word of "strip", so it can be a program name with args.
3131 set dummy strip; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 if test -n "$ac_ct_STRIP"; then
3138 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_ac_ct_STRIP="strip"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3151 done
3152 done
3153 IFS=$as_save_IFS
3157 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3158 if test -n "$ac_ct_STRIP"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3160 $as_echo "$ac_ct_STRIP" >&6; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3166 if test "x$ac_ct_STRIP" = x; then
3167 STRIP=":"
3168 else
3169 case $cross_compiling:$ac_tool_warned in
3170 yes:)
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173 ac_tool_warned=yes ;;
3174 esac
3175 STRIP=$ac_ct_STRIP
3177 else
3178 STRIP="$ac_cv_prog_STRIP"
3182 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3185 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3186 if test -z "$MKDIR_P"; then
3187 if ${ac_cv_path_mkdir+:} false; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_prog in mkdir gmkdir; do
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3198 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3199 'mkdir (GNU coreutils) '* | \
3200 'mkdir (coreutils) '* | \
3201 'mkdir (fileutils) '4.1*)
3202 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3203 break 3;;
3204 esac
3205 done
3206 done
3207 done
3208 IFS=$as_save_IFS
3212 test -d ./--version && rmdir ./--version
3213 if test "${ac_cv_path_mkdir+set}" = set; then
3214 MKDIR_P="$ac_cv_path_mkdir -p"
3215 else
3216 # As a last resort, use the slow shell script. Don't cache a
3217 # value for MKDIR_P within a source directory, because that will
3218 # break other packages using the cache if that directory is
3219 # removed, or if the value is a relative name.
3220 MKDIR_P="$ac_install_sh -d"
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3224 $as_echo "$MKDIR_P" >&6; }
3226 for ac_prog in gawk mawk nawk awk
3228 # Extract the first word of "$ac_prog", so it can be a program name with args.
3229 set dummy $ac_prog; ac_word=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if ${ac_cv_prog_AWK+:} false; then :
3233 $as_echo_n "(cached) " >&6
3234 else
3235 if test -n "$AWK"; then
3236 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3237 else
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245 ac_cv_prog_AWK="$ac_prog"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3249 done
3250 done
3251 IFS=$as_save_IFS
3255 AWK=$ac_cv_prog_AWK
3256 if test -n "$AWK"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3258 $as_echo "$AWK" >&6; }
3259 else
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3265 test -n "$AWK" && break
3266 done
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3269 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3270 set x ${MAKE-make}
3271 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3272 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 cat >conftest.make <<\_ACEOF
3276 SHELL = /bin/sh
3277 all:
3278 @echo '@@@%%%=$(MAKE)=@@@%%%'
3279 _ACEOF
3280 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3281 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3282 *@@@%%%=?*=@@@%%%*)
3283 eval ac_cv_prog_make_${ac_make}_set=yes;;
3285 eval ac_cv_prog_make_${ac_make}_set=no;;
3286 esac
3287 rm -f conftest.make
3289 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291 $as_echo "yes" >&6; }
3292 SET_MAKE=
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 SET_MAKE="MAKE=${MAKE-make}"
3299 rm -rf .tst 2>/dev/null
3300 mkdir .tst 2>/dev/null
3301 if test -d .tst; then
3302 am__leading_dot=.
3303 else
3304 am__leading_dot=_
3306 rmdir .tst 2>/dev/null
3308 # Check whether --enable-silent-rules was given.
3309 if test "${enable_silent_rules+set}" = set; then :
3310 enableval=$enable_silent_rules;
3313 case $enable_silent_rules in # (((
3314 yes) AM_DEFAULT_VERBOSITY=0;;
3315 no) AM_DEFAULT_VERBOSITY=1;;
3316 *) AM_DEFAULT_VERBOSITY=1;;
3317 esac
3318 am_make=${MAKE-make}
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3320 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3321 if ${am_cv_make_support_nested_variables+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 if $as_echo 'TRUE=$(BAR$(V))
3325 BAR0=false
3326 BAR1=true
3328 am__doit:
3329 @$(TRUE)
3330 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3331 am_cv_make_support_nested_variables=yes
3332 else
3333 am_cv_make_support_nested_variables=no
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3337 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3338 if test $am_cv_make_support_nested_variables = yes; then
3339 AM_V='$(V)'
3340 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3341 else
3342 AM_V=$AM_DEFAULT_VERBOSITY
3343 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3345 AM_BACKSLASH='\'
3347 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3348 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3349 # is not polluted with repeated "-I."
3350 am__isrc=' -I$(srcdir)'
3351 # test to see if srcdir already configured
3352 if test -f $srcdir/config.status; then
3353 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3357 # test whether we have cygpath
3358 if test -z "$CYGPATH_W"; then
3359 if (cygpath --version) >/dev/null 2>/dev/null; then
3360 CYGPATH_W='cygpath -w'
3361 else
3362 CYGPATH_W=echo
3367 # Define the identity of the package.
3368 PACKAGE='gold'
3369 VERSION='0.1'
3372 cat >>confdefs.h <<_ACEOF
3373 #define PACKAGE "$PACKAGE"
3374 _ACEOF
3377 cat >>confdefs.h <<_ACEOF
3378 #define VERSION "$VERSION"
3379 _ACEOF
3381 # Some tools Automake needs.
3383 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3386 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3389 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3392 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3395 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3397 # For better backward compatibility. To be removed once Automake 1.9.x
3398 # dies out for good. For more background, see:
3399 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3400 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3401 mkdir_p='$(MKDIR_P)'
3403 # We need awk for the "check" target (and possibly the TAP driver). The
3404 # system "awk" is bad on some platforms.
3405 # Always define AMTAR for backward compatibility. Yes, it's still used
3406 # in the wild :-( We should find a proper way to deprecate it ...
3407 AMTAR='$${TAR-tar}'
3410 # We'll loop over all known methods to create a tar archive until one works.
3411 _am_tools='gnutar pax cpio none'
3413 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3420 # POSIX will say in a future version that running "rm -f" with no argument
3421 # is OK; and we want to be able to make that assumption in our Makefile
3422 # recipes. So use an aggressive probe to check that the usage we want is
3423 # actually supported "in the wild" to an acceptable degree.
3424 # See automake bug#10828.
3425 # To make any issue more visible, cause the running configure to be aborted
3426 # by default if the 'rm' program in use doesn't match our expectations; the
3427 # user can still override this though.
3428 if rm -f && rm -fr && rm -rf; then : OK; else
3429 cat >&2 <<'END'
3430 Oops!
3432 Your 'rm' program seems unable to run without file operands specified
3433 on the command line, even when the '-f' option is present. This is contrary
3434 to the behaviour of most rm programs out there, and not conforming with
3435 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3437 Please tell bug-automake@gnu.org about your system, including the value
3438 of your $PATH and any error possibly output before this message. This
3439 can help us improve future automake versions.
3442 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3443 echo 'Configuration will proceed anyway, since you have set the' >&2
3444 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3445 echo >&2
3446 else
3447 cat >&2 <<'END'
3448 Aborting the configuration process, to ensure you take notice of the issue.
3450 You can download and install GNU coreutils to get an 'rm' implementation
3451 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3453 If you want to complete the configuration process using your problematic
3454 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3455 to "yes", and re-run configure.
3458 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3462 # Check whether --enable-silent-rules was given.
3463 if test "${enable_silent_rules+set}" = set; then :
3464 enableval=$enable_silent_rules;
3467 case $enable_silent_rules in # (((
3468 yes) AM_DEFAULT_VERBOSITY=0;;
3469 no) AM_DEFAULT_VERBOSITY=1;;
3470 *) AM_DEFAULT_VERBOSITY=0;;
3471 esac
3472 am_make=${MAKE-make}
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3474 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3475 if ${am_cv_make_support_nested_variables+:} false; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 if $as_echo 'TRUE=$(BAR$(V))
3479 BAR0=false
3480 BAR1=true
3482 am__doit:
3483 @$(TRUE)
3484 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3485 am_cv_make_support_nested_variables=yes
3486 else
3487 am_cv_make_support_nested_variables=no
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3491 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3492 if test $am_cv_make_support_nested_variables = yes; then
3493 AM_V='$(V)'
3494 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3495 else
3496 AM_V=$AM_DEFAULT_VERBOSITY
3497 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3499 AM_BACKSLASH='\'
3502 ac_config_headers="$ac_config_headers config.h:config.in"
3505 DEPDIR="${am__leading_dot}deps"
3507 ac_config_commands="$ac_config_commands depfiles"
3510 am_make=${MAKE-make}
3511 cat > confinc << 'END'
3512 am__doit:
3513 @echo this is the am__doit target
3514 .PHONY: am__doit
3516 # If we don't find an include directive, just comment out the code.
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3518 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3519 am__include="#"
3520 am__quote=
3521 _am_result=none
3522 # First try GNU make style include.
3523 echo "include confinc" > confmf
3524 # Ignore all kinds of additional output from 'make'.
3525 case `$am_make -s -f confmf 2> /dev/null` in #(
3526 *the\ am__doit\ target*)
3527 am__include=include
3528 am__quote=
3529 _am_result=GNU
3531 esac
3532 # Now try BSD make style include.
3533 if test "$am__include" = "#"; then
3534 echo '.include "confinc"' > confmf
3535 case `$am_make -s -f confmf 2> /dev/null` in #(
3536 *the\ am__doit\ target*)
3537 am__include=.include
3538 am__quote="\""
3539 _am_result=BSD
3541 esac
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3546 $as_echo "$_am_result" >&6; }
3547 rm -f confinc confmf
3549 # Check whether --enable-dependency-tracking was given.
3550 if test "${enable_dependency_tracking+set}" = set; then :
3551 enableval=$enable_dependency_tracking;
3554 if test "x$enable_dependency_tracking" != xno; then
3555 am_depcomp="$ac_aux_dir/depcomp"
3556 AMDEPBACKSLASH='\'
3557 am__nodep='_no'
3559 if test "x$enable_dependency_tracking" != xno; then
3560 AMDEP_TRUE=
3561 AMDEP_FALSE='#'
3562 else
3563 AMDEP_TRUE='#'
3564 AMDEP_FALSE=
3568 ac_ext=c
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573 if test -n "$ac_tool_prefix"; then
3574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3575 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if ${ac_cv_prog_CC+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 if test -n "$CC"; then
3582 ac_cv_prog_CC="$CC" # Let the user override the test.
3583 else
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3591 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 break 2
3595 done
3596 done
3597 IFS=$as_save_IFS
3601 CC=$ac_cv_prog_CC
3602 if test -n "$CC"; then
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3604 $as_echo "$CC" >&6; }
3605 else
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3612 if test -z "$ac_cv_prog_CC"; then
3613 ac_ct_CC=$CC
3614 # Extract the first word of "gcc", so it can be a program name with args.
3615 set dummy gcc; ac_word=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 if test -n "$ac_ct_CC"; then
3622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_ac_ct_CC="gcc"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 break 2
3635 done
3636 done
3637 IFS=$as_save_IFS
3641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3642 if test -n "$ac_ct_CC"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3644 $as_echo "$ac_ct_CC" >&6; }
3645 else
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3650 if test "x$ac_ct_CC" = x; then
3651 CC=""
3652 else
3653 case $cross_compiling:$ac_tool_warned in
3654 yes:)
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned=yes ;;
3658 esac
3659 CC=$ac_ct_CC
3661 else
3662 CC="$ac_cv_prog_CC"
3665 if test -z "$CC"; then
3666 if test -n "$ac_tool_prefix"; then
3667 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3668 set dummy ${ac_tool_prefix}cc; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if ${ac_cv_prog_CC+:} false; then :
3672 $as_echo_n "(cached) " >&6
3673 else
3674 if test -n "$CC"; then
3675 ac_cv_prog_CC="$CC" # Let the user override the test.
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3684 ac_cv_prog_CC="${ac_tool_prefix}cc"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686 break 2
3688 done
3689 done
3690 IFS=$as_save_IFS
3694 CC=$ac_cv_prog_CC
3695 if test -n "$CC"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3697 $as_echo "$CC" >&6; }
3698 else
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3706 if test -z "$CC"; then
3707 # Extract the first word of "cc", so it can be a program name with args.
3708 set dummy cc; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if ${ac_cv_prog_CC+:} false; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC="$CC" # Let the user override the test.
3716 else
3717 ac_prog_rejected=no
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3721 IFS=$as_save_IFS
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3726 ac_prog_rejected=yes
3727 continue
3729 ac_cv_prog_CC="cc"
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3733 done
3734 done
3735 IFS=$as_save_IFS
3737 if test $ac_prog_rejected = yes; then
3738 # We found a bogon in the path, so make sure we never use it.
3739 set dummy $ac_cv_prog_CC
3740 shift
3741 if test $# != 0; then
3742 # We chose a different compiler from the bogus one.
3743 # However, it has the same basename, so the bogon will be chosen
3744 # first if we set CC to just the basename; use the full file name.
3745 shift
3746 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3751 CC=$ac_cv_prog_CC
3752 if test -n "$CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754 $as_echo "$CC" >&6; }
3755 else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3762 if test -z "$CC"; then
3763 if test -n "$ac_tool_prefix"; then
3764 for ac_prog in cl.exe
3766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if ${ac_cv_prog_CC+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 if test -n "$CC"; then
3774 ac_cv_prog_CC="$CC" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3787 done
3788 done
3789 IFS=$as_save_IFS
3793 CC=$ac_cv_prog_CC
3794 if test -n "$CC"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 $as_echo "$CC" >&6; }
3797 else
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3803 test -n "$CC" && break
3804 done
3806 if test -z "$CC"; then
3807 ac_ct_CC=$CC
3808 for ac_prog in cl.exe
3810 # Extract the first word of "$ac_prog", so it can be a program name with args.
3811 set dummy $ac_prog; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 if test -n "$ac_ct_CC"; then
3818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_ac_ct_CC="$ac_prog"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 break 2
3831 done
3832 done
3833 IFS=$as_save_IFS
3837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3838 if test -n "$ac_ct_CC"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3840 $as_echo "$ac_ct_CC" >&6; }
3841 else
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3847 test -n "$ac_ct_CC" && break
3848 done
3850 if test "x$ac_ct_CC" = x; then
3851 CC=""
3852 else
3853 case $cross_compiling:$ac_tool_warned in
3854 yes:)
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3857 ac_tool_warned=yes ;;
3858 esac
3859 CC=$ac_ct_CC
3866 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $? "no acceptable C compiler found in \$PATH
3869 See \`config.log' for more details" "$LINENO" 5; }
3871 # Provide some information about the compiler.
3872 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3873 set X $ac_compile
3874 ac_compiler=$2
3875 for ac_option in --version -v -V -qversion; do
3876 { { ac_try="$ac_compiler $ac_option >&5"
3877 case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 $as_echo "$ac_try_echo"; } >&5
3883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3884 ac_status=$?
3885 if test -s conftest.err; then
3886 sed '10a\
3887 ... rest of stderr output deleted ...
3888 10q' conftest.err >conftest.er1
3889 cat conftest.er1 >&5
3891 rm -f conftest.er1 conftest.err
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }
3894 done
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3900 main ()
3904 return 0;
3906 _ACEOF
3907 ac_clean_files_save=$ac_clean_files
3908 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3909 # Try to create an executable without -o first, disregard a.out.
3910 # It will help us diagnose broken compilers, and finding out an intuition
3911 # of exeext.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3916 # The possible output files:
3917 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3919 ac_rmfiles=
3920 for ac_file in $ac_files
3922 case $ac_file in
3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3924 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3925 esac
3926 done
3927 rm -f $ac_rmfiles
3929 if { { ac_try="$ac_link_default"
3930 case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_link_default") 2>&5
3937 ac_status=$?
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }; then :
3940 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3941 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3942 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3943 # so that the user can short-circuit this test for compilers unknown to
3944 # Autoconf.
3945 for ac_file in $ac_files ''
3947 test -f "$ac_file" || continue
3948 case $ac_file in
3949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3951 [ab].out )
3952 # We found the default executable, but exeext='' is most
3953 # certainly right.
3954 break;;
3955 *.* )
3956 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3957 then :; else
3958 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960 # We set ac_cv_exeext here because the later test for it is not
3961 # safe: cross compilers may not add the suffix if given an `-o'
3962 # argument, so we may need to know it at that point already.
3963 # Even if this section looks crufty: it has the advantage of
3964 # actually working.
3965 break;;
3967 break;;
3968 esac
3969 done
3970 test "$ac_cv_exeext" = no && ac_cv_exeext=
3972 else
3973 ac_file=''
3975 if test -z "$ac_file"; then :
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error 77 "C compiler cannot create executables
3984 See \`config.log' for more details" "$LINENO" 5; }
3985 else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3987 $as_echo "yes" >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3990 $as_echo_n "checking for C compiler default output file name... " >&6; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3992 $as_echo "$ac_file" >&6; }
3993 ac_exeext=$ac_cv_exeext
3995 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3996 ac_clean_files=$ac_clean_files_save
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3998 $as_echo_n "checking for suffix of executables... " >&6; }
3999 if { { ac_try="$ac_link"
4000 case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_link") 2>&5
4007 ac_status=$?
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }; then :
4010 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4011 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4012 # work properly (i.e., refer to `conftest.exe'), while it won't with
4013 # `rm'.
4014 for ac_file in conftest.exe conftest conftest.*; do
4015 test -f "$ac_file" || continue
4016 case $ac_file in
4017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019 break;;
4020 * ) break;;
4021 esac
4022 done
4023 else
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4027 See \`config.log' for more details" "$LINENO" 5; }
4029 rm -f conftest conftest$ac_cv_exeext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4031 $as_echo "$ac_cv_exeext" >&6; }
4033 rm -f conftest.$ac_ext
4034 EXEEXT=$ac_cv_exeext
4035 ac_exeext=$EXEEXT
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 #include <stdio.h>
4040 main ()
4042 FILE *f = fopen ("conftest.out", "w");
4043 return ferror (f) || fclose (f) != 0;
4046 return 0;
4048 _ACEOF
4049 ac_clean_files="$ac_clean_files conftest.out"
4050 # Check that the compiler produces executables we can run. If not, either
4051 # the compiler is broken, or we cross compile.
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4053 $as_echo_n "checking whether we are cross compiling... " >&6; }
4054 if test "$cross_compiling" != yes; then
4055 { { ac_try="$ac_link"
4056 case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061 $as_echo "$ac_try_echo"; } >&5
4062 (eval "$ac_link") 2>&5
4063 ac_status=$?
4064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }
4066 if { ac_try='./conftest$ac_cv_exeext'
4067 { { case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$ac_try") 2>&5
4074 ac_status=$?
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }; }; then
4077 cross_compiling=no
4078 else
4079 if test "$cross_compiling" = maybe; then
4080 cross_compiling=yes
4081 else
4082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4084 as_fn_error $? "cannot run C compiled programs.
4085 If you meant to cross compile, use \`--host'.
4086 See \`config.log' for more details" "$LINENO" 5; }
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4091 $as_echo "$cross_compiling" >&6; }
4093 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4094 ac_clean_files=$ac_clean_files_save
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4096 $as_echo_n "checking for suffix of object files... " >&6; }
4097 if ${ac_cv_objext+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4104 main ()
4108 return 0;
4110 _ACEOF
4111 rm -f conftest.o conftest.obj
4112 if { { ac_try="$ac_compile"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 $as_echo "$ac_try_echo"; } >&5
4119 (eval "$ac_compile") 2>&5
4120 ac_status=$?
4121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122 test $ac_status = 0; }; then :
4123 for ac_file in conftest.o conftest.obj conftest.*; do
4124 test -f "$ac_file" || continue;
4125 case $ac_file in
4126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4127 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4128 break;;
4129 esac
4130 done
4131 else
4132 $as_echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137 as_fn_error $? "cannot compute suffix of object files: cannot compile
4138 See \`config.log' for more details" "$LINENO" 5; }
4140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4143 $as_echo "$ac_cv_objext" >&6; }
4144 OBJEXT=$ac_cv_objext
4145 ac_objext=$OBJEXT
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4147 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4148 if ${ac_cv_c_compiler_gnu+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4155 main ()
4157 #ifndef __GNUC__
4158 choke me
4159 #endif
4162 return 0;
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166 ac_compiler_gnu=yes
4167 else
4168 ac_compiler_gnu=no
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4175 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4176 if test $ac_compiler_gnu = yes; then
4177 GCC=yes
4178 else
4179 GCC=
4181 ac_test_CFLAGS=${CFLAGS+set}
4182 ac_save_CFLAGS=$CFLAGS
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4184 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4185 if ${ac_cv_prog_cc_g+:} false; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 ac_save_c_werror_flag=$ac_c_werror_flag
4189 ac_c_werror_flag=yes
4190 ac_cv_prog_cc_g=no
4191 CFLAGS="-g"
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4196 main ()
4200 return 0;
4202 _ACEOF
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_cv_prog_cc_g=yes
4205 else
4206 CFLAGS=""
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4211 main ()
4215 return 0;
4217 _ACEOF
4218 if ac_fn_c_try_compile "$LINENO"; then :
4220 else
4221 ac_c_werror_flag=$ac_save_c_werror_flag
4222 CFLAGS="-g"
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4227 main ()
4231 return 0;
4233 _ACEOF
4234 if ac_fn_c_try_compile "$LINENO"; then :
4235 ac_cv_prog_cc_g=yes
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 ac_c_werror_flag=$ac_save_c_werror_flag
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4245 $as_echo "$ac_cv_prog_cc_g" >&6; }
4246 if test "$ac_test_CFLAGS" = set; then
4247 CFLAGS=$ac_save_CFLAGS
4248 elif test $ac_cv_prog_cc_g = yes; then
4249 if test "$GCC" = yes; then
4250 CFLAGS="-g -O2"
4251 else
4252 CFLAGS="-g"
4254 else
4255 if test "$GCC" = yes; then
4256 CFLAGS="-O2"
4257 else
4258 CFLAGS=
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4262 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4263 if ${ac_cv_prog_cc_c89+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 ac_cv_prog_cc_c89=no
4267 ac_save_CC=$CC
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270 #include <stdarg.h>
4271 #include <stdio.h>
4272 struct stat;
4273 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4274 struct buf { int x; };
4275 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4276 static char *e (p, i)
4277 char **p;
4278 int i;
4280 return p[i];
4282 static char *f (char * (*g) (char **, int), char **p, ...)
4284 char *s;
4285 va_list v;
4286 va_start (v,p);
4287 s = g (p, va_arg (v,int));
4288 va_end (v);
4289 return s;
4292 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4293 function prototypes and stuff, but not '\xHH' hex character constants.
4294 These don't provoke an error unfortunately, instead are silently treated
4295 as 'x'. The following induces an error, until -std is added to get
4296 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4297 array size at least. It's necessary to write '\x00'==0 to get something
4298 that's true only with -std. */
4299 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4301 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4302 inside strings and character constants. */
4303 #define FOO(x) 'x'
4304 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4306 int test (int i, double x);
4307 struct s1 {int (*f) (int a);};
4308 struct s2 {int (*f) (double a);};
4309 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4310 int argc;
4311 char **argv;
4313 main ()
4315 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4317 return 0;
4319 _ACEOF
4320 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4321 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4323 CC="$ac_save_CC $ac_arg"
4324 if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_prog_cc_c89=$ac_arg
4327 rm -f core conftest.err conftest.$ac_objext
4328 test "x$ac_cv_prog_cc_c89" != "xno" && break
4329 done
4330 rm -f conftest.$ac_ext
4331 CC=$ac_save_CC
4334 # AC_CACHE_VAL
4335 case "x$ac_cv_prog_cc_c89" in
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4338 $as_echo "none needed" >&6; } ;;
4339 xno)
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4341 $as_echo "unsupported" >&6; } ;;
4343 CC="$CC $ac_cv_prog_cc_c89"
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4345 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4346 esac
4347 if test "x$ac_cv_prog_cc_c89" != xno; then :
4351 ac_ext=c
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357 ac_ext=c
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4363 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4364 if ${am_cv_prog_cc_c_o+:} false; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4371 main ()
4375 return 0;
4377 _ACEOF
4378 # Make sure it works both with $CC and with simple cc.
4379 # Following AC_PROG_CC_C_O, we do the test twice because some
4380 # compilers refuse to overwrite an existing .o file with -o,
4381 # though they will create one.
4382 am_cv_prog_cc_c_o=yes
4383 for am_i in 1 2; do
4384 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4385 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } \
4389 && test -f conftest2.$ac_objext; then
4390 : OK
4391 else
4392 am_cv_prog_cc_c_o=no
4393 break
4395 done
4396 rm -f core conftest*
4397 unset am_i
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4400 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4401 if test "$am_cv_prog_cc_c_o" != yes; then
4402 # Losing compiler, so override with the script.
4403 # FIXME: It is wrong to rewrite CC.
4404 # But if we don't then we get into trouble of one sort or another.
4405 # A longer-term fix would be to have automake use am__CC in this case,
4406 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4407 CC="$am_aux_dir/compile $CC"
4409 ac_ext=c
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416 depcc="$CC" am_compiler_list=
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4419 $as_echo_n "checking dependency style of $depcc... " >&6; }
4420 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4424 # We make a subdir and do the tests there. Otherwise we can end up
4425 # making bogus files that we don't know about and never remove. For
4426 # instance it was reported that on HP-UX the gcc test will end up
4427 # making a dummy file named 'D' -- because '-MD' means "put the output
4428 # in D".
4429 rm -rf conftest.dir
4430 mkdir conftest.dir
4431 # Copy depcomp to subdir because otherwise we won't find it if we're
4432 # using a relative directory.
4433 cp "$am_depcomp" conftest.dir
4434 cd conftest.dir
4435 # We will build objects and dependencies in a subdirectory because
4436 # it helps to detect inapplicable dependency modes. For instance
4437 # both Tru64's cc and ICC support -MD to output dependencies as a
4438 # side effect of compilation, but ICC will put the dependencies in
4439 # the current directory while Tru64 will put them in the object
4440 # directory.
4441 mkdir sub
4443 am_cv_CC_dependencies_compiler_type=none
4444 if test "$am_compiler_list" = ""; then
4445 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4447 am__universal=false
4448 case " $depcc " in #(
4449 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4450 esac
4452 for depmode in $am_compiler_list; do
4453 # Setup a source with many dependencies, because some compilers
4454 # like to wrap large dependency lists on column 80 (with \), and
4455 # we should not choose a depcomp mode which is confused by this.
4457 # We need to recreate these files for each test, as the compiler may
4458 # overwrite some of them when testing with obscure command lines.
4459 # This happens at least with the AIX C compiler.
4460 : > sub/conftest.c
4461 for i in 1 2 3 4 5 6; do
4462 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4463 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4464 # Solaris 10 /bin/sh.
4465 echo '/* dummy */' > sub/conftst$i.h
4466 done
4467 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4469 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4470 # mode. It turns out that the SunPro C++ compiler does not properly
4471 # handle '-M -o', and we need to detect this. Also, some Intel
4472 # versions had trouble with output in subdirs.
4473 am__obj=sub/conftest.${OBJEXT-o}
4474 am__minus_obj="-o $am__obj"
4475 case $depmode in
4476 gcc)
4477 # This depmode causes a compiler race in universal mode.
4478 test "$am__universal" = false || continue
4480 nosideeffect)
4481 # After this tag, mechanisms are not by side-effect, so they'll
4482 # only be used when explicitly requested.
4483 if test "x$enable_dependency_tracking" = xyes; then
4484 continue
4485 else
4486 break
4489 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4490 # This compiler won't grok '-c -o', but also, the minuso test has
4491 # not run yet. These depmodes are late enough in the game, and
4492 # so weak that their functioning should not be impacted.
4493 am__obj=conftest.${OBJEXT-o}
4494 am__minus_obj=
4496 none) break ;;
4497 esac
4498 if depmode=$depmode \
4499 source=sub/conftest.c object=$am__obj \
4500 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4501 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4502 >/dev/null 2>conftest.err &&
4503 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4504 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4505 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4506 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4507 # icc doesn't choke on unknown options, it will just issue warnings
4508 # or remarks (even with -Werror). So we grep stderr for any message
4509 # that says an option was ignored or not supported.
4510 # When given -MP, icc 7.0 and 7.1 complain thusly:
4511 # icc: Command line warning: ignoring option '-M'; no argument required
4512 # The diagnosis changed in icc 8.0:
4513 # icc: Command line remark: option '-MP' not supported
4514 if (grep 'ignoring option' conftest.err ||
4515 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4516 am_cv_CC_dependencies_compiler_type=$depmode
4517 break
4520 done
4522 cd ..
4523 rm -rf conftest.dir
4524 else
4525 am_cv_CC_dependencies_compiler_type=none
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4530 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4531 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4534 test "x$enable_dependency_tracking" != xno \
4535 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4536 am__fastdepCC_TRUE=
4537 am__fastdepCC_FALSE='#'
4538 else
4539 am__fastdepCC_TRUE='#'
4540 am__fastdepCC_FALSE=
4545 ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4551 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4552 # On Suns, sometimes $CPP names a directory.
4553 if test -n "$CPP" && test -d "$CPP"; then
4554 CPP=
4556 if test -z "$CPP"; then
4557 if ${ac_cv_prog_CPP+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 # Double quotes because CPP needs to be expanded
4561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4563 ac_preproc_ok=false
4564 for ac_c_preproc_warn_flag in '' yes
4566 # Use a header file that comes with gcc, so configuring glibc
4567 # with a fresh cross-compiler works.
4568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4569 # <limits.h> exists even on freestanding compilers.
4570 # On the NeXT, cc -E runs the code through the compiler's parser,
4571 # not just through cpp. "Syntax error" is here to catch this case.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574 #ifdef __STDC__
4575 # include <limits.h>
4576 #else
4577 # include <assert.h>
4578 #endif
4579 Syntax error
4580 _ACEOF
4581 if ac_fn_c_try_cpp "$LINENO"; then :
4583 else
4584 # Broken: fails on valid input.
4585 continue
4587 rm -f conftest.err conftest.i conftest.$ac_ext
4589 # OK, works on sane cases. Now check whether nonexistent headers
4590 # can be detected and how.
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <ac_nonexistent.h>
4594 _ACEOF
4595 if ac_fn_c_try_cpp "$LINENO"; then :
4596 # Broken: success on invalid input.
4597 continue
4598 else
4599 # Passes both tests.
4600 ac_preproc_ok=:
4601 break
4603 rm -f conftest.err conftest.i conftest.$ac_ext
4605 done
4606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607 rm -f conftest.i conftest.err conftest.$ac_ext
4608 if $ac_preproc_ok; then :
4609 break
4612 done
4613 ac_cv_prog_CPP=$CPP
4616 CPP=$ac_cv_prog_CPP
4617 else
4618 ac_cv_prog_CPP=$CPP
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4621 $as_echo "$CPP" >&6; }
4622 ac_preproc_ok=false
4623 for ac_c_preproc_warn_flag in '' yes
4625 # Use a header file that comes with gcc, so configuring glibc
4626 # with a fresh cross-compiler works.
4627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4628 # <limits.h> exists even on freestanding compilers.
4629 # On the NeXT, cc -E runs the code through the compiler's parser,
4630 # not just through cpp. "Syntax error" is here to catch this case.
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633 #ifdef __STDC__
4634 # include <limits.h>
4635 #else
4636 # include <assert.h>
4637 #endif
4638 Syntax error
4639 _ACEOF
4640 if ac_fn_c_try_cpp "$LINENO"; then :
4642 else
4643 # Broken: fails on valid input.
4644 continue
4646 rm -f conftest.err conftest.i conftest.$ac_ext
4648 # OK, works on sane cases. Now check whether nonexistent headers
4649 # can be detected and how.
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652 #include <ac_nonexistent.h>
4653 _ACEOF
4654 if ac_fn_c_try_cpp "$LINENO"; then :
4655 # Broken: success on invalid input.
4656 continue
4657 else
4658 # Passes both tests.
4659 ac_preproc_ok=:
4660 break
4662 rm -f conftest.err conftest.i conftest.$ac_ext
4664 done
4665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4666 rm -f conftest.i conftest.err conftest.$ac_ext
4667 if $ac_preproc_ok; then :
4669 else
4670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4672 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4673 See \`config.log' for more details" "$LINENO" 5; }
4676 ac_ext=c
4677 ac_cpp='$CPP $CPPFLAGS'
4678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4684 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4685 if ${ac_cv_path_GREP+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if test -z "$GREP"; then
4689 ac_path_GREP_found=false
4690 # Loop through the user's path and test for each of PROGNAME-LIST
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_prog in grep ggrep; do
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4699 as_fn_executable_p "$ac_path_GREP" || continue
4700 # Check for GNU ac_path_GREP and select it if it is found.
4701 # Check for GNU $ac_path_GREP
4702 case `"$ac_path_GREP" --version 2>&1` in
4703 *GNU*)
4704 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4706 ac_count=0
4707 $as_echo_n 0123456789 >"conftest.in"
4708 while :
4710 cat "conftest.in" "conftest.in" >"conftest.tmp"
4711 mv "conftest.tmp" "conftest.in"
4712 cp "conftest.in" "conftest.nl"
4713 $as_echo 'GREP' >> "conftest.nl"
4714 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4716 as_fn_arith $ac_count + 1 && ac_count=$as_val
4717 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4718 # Best one so far, save it but keep looking for a better one
4719 ac_cv_path_GREP="$ac_path_GREP"
4720 ac_path_GREP_max=$ac_count
4722 # 10*(2^10) chars as input seems more than enough
4723 test $ac_count -gt 10 && break
4724 done
4725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4726 esac
4728 $ac_path_GREP_found && break 3
4729 done
4730 done
4731 done
4732 IFS=$as_save_IFS
4733 if test -z "$ac_cv_path_GREP"; then
4734 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736 else
4737 ac_cv_path_GREP=$GREP
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4742 $as_echo "$ac_cv_path_GREP" >&6; }
4743 GREP="$ac_cv_path_GREP"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4747 $as_echo_n "checking for egrep... " >&6; }
4748 if ${ac_cv_path_EGREP+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4752 then ac_cv_path_EGREP="$GREP -E"
4753 else
4754 if test -z "$EGREP"; then
4755 ac_path_EGREP_found=false
4756 # Loop through the user's path and test for each of PROGNAME-LIST
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_prog in egrep; do
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4765 as_fn_executable_p "$ac_path_EGREP" || continue
4766 # Check for GNU ac_path_EGREP and select it if it is found.
4767 # Check for GNU $ac_path_EGREP
4768 case `"$ac_path_EGREP" --version 2>&1` in
4769 *GNU*)
4770 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4772 ac_count=0
4773 $as_echo_n 0123456789 >"conftest.in"
4774 while :
4776 cat "conftest.in" "conftest.in" >"conftest.tmp"
4777 mv "conftest.tmp" "conftest.in"
4778 cp "conftest.in" "conftest.nl"
4779 $as_echo 'EGREP' >> "conftest.nl"
4780 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4782 as_fn_arith $ac_count + 1 && ac_count=$as_val
4783 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4784 # Best one so far, save it but keep looking for a better one
4785 ac_cv_path_EGREP="$ac_path_EGREP"
4786 ac_path_EGREP_max=$ac_count
4788 # 10*(2^10) chars as input seems more than enough
4789 test $ac_count -gt 10 && break
4790 done
4791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4792 esac
4794 $ac_path_EGREP_found && break 3
4795 done
4796 done
4797 done
4798 IFS=$as_save_IFS
4799 if test -z "$ac_cv_path_EGREP"; then
4800 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4802 else
4803 ac_cv_path_EGREP=$EGREP
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4809 $as_echo "$ac_cv_path_EGREP" >&6; }
4810 EGREP="$ac_cv_path_EGREP"
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4814 $as_echo_n "checking for ANSI C header files... " >&6; }
4815 if ${ac_cv_header_stdc+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4820 #include <stdlib.h>
4821 #include <stdarg.h>
4822 #include <string.h>
4823 #include <float.h>
4826 main ()
4830 return 0;
4832 _ACEOF
4833 if ac_fn_c_try_compile "$LINENO"; then :
4834 ac_cv_header_stdc=yes
4835 else
4836 ac_cv_header_stdc=no
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840 if test $ac_cv_header_stdc = yes; then
4841 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844 #include <string.h>
4846 _ACEOF
4847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4848 $EGREP "memchr" >/dev/null 2>&1; then :
4850 else
4851 ac_cv_header_stdc=no
4853 rm -f conftest*
4857 if test $ac_cv_header_stdc = yes; then
4858 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861 #include <stdlib.h>
4863 _ACEOF
4864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865 $EGREP "free" >/dev/null 2>&1; then :
4867 else
4868 ac_cv_header_stdc=no
4870 rm -f conftest*
4874 if test $ac_cv_header_stdc = yes; then
4875 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4876 if test "$cross_compiling" = yes; then :
4878 else
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881 #include <ctype.h>
4882 #include <stdlib.h>
4883 #if ((' ' & 0x0FF) == 0x020)
4884 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4885 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4886 #else
4887 # define ISLOWER(c) \
4888 (('a' <= (c) && (c) <= 'i') \
4889 || ('j' <= (c) && (c) <= 'r') \
4890 || ('s' <= (c) && (c) <= 'z'))
4891 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4892 #endif
4894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4896 main ()
4898 int i;
4899 for (i = 0; i < 256; i++)
4900 if (XOR (islower (i), ISLOWER (i))
4901 || toupper (i) != TOUPPER (i))
4902 return 2;
4903 return 0;
4905 _ACEOF
4906 if ac_fn_c_try_run "$LINENO"; then :
4908 else
4909 ac_cv_header_stdc=no
4911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4912 conftest.$ac_objext conftest.beam conftest.$ac_ext
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4918 $as_echo "$ac_cv_header_stdc" >&6; }
4919 if test $ac_cv_header_stdc = yes; then
4921 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4925 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4926 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4927 inttypes.h stdint.h unistd.h
4928 do :
4929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4930 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4932 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4933 cat >>confdefs.h <<_ACEOF
4934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4935 _ACEOF
4939 done
4943 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4944 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4945 MINIX=yes
4946 else
4947 MINIX=
4951 if test "$MINIX" = yes; then
4953 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4956 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4959 $as_echo "#define _MINIX 1" >>confdefs.h
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4965 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4966 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4972 # define __EXTENSIONS__ 1
4973 $ac_includes_default
4975 main ()
4979 return 0;
4981 _ACEOF
4982 if ac_fn_c_try_compile "$LINENO"; then :
4983 ac_cv_safe_to_define___extensions__=yes
4984 else
4985 ac_cv_safe_to_define___extensions__=no
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4990 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4991 test $ac_cv_safe_to_define___extensions__ = yes &&
4992 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4994 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4996 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4998 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5000 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5004 # PR 14072
5008 # Check whether --with-sysroot was given.
5009 if test "${with_sysroot+set}" = set; then :
5010 withval=$with_sysroot; sysroot=$withval
5011 else
5012 sysroot=no
5016 if test "$sysroot" = "yes"; then
5017 sysroot='${exec_prefix}/${target_alias}/sys-root'
5018 elif test "$sysroot" = "no"; then
5019 sysroot=
5022 sysroot_relocatable=0
5023 if test -n "$sysroot"; then
5024 case "$sysroot" in
5025 "${prefix}" | "${prefix}/"* | \
5026 "${exec_prefix}" | "${exec_prefix}/"* | \
5027 '${prefix}' | '${prefix}/'*| \
5028 '${exec_prefix}' | '${exec_prefix}/'*)
5029 sysroot_relocatable=1
5031 esac
5035 cat >>confdefs.h <<_ACEOF
5036 #define TARGET_SYSTEM_ROOT "$sysroot"
5037 _ACEOF
5040 cat >>confdefs.h <<_ACEOF
5041 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
5042 _ACEOF
5046 installed_linker=ld.gold
5047 # Check whether --enable-gold was given.
5048 if test "${enable_gold+set}" = set; then :
5049 enableval=$enable_gold; case "${enableval}" in
5050 default)
5051 install_as_default=yes
5053 yes)
5054 if test x${enable_ld} = xno; then
5055 install_as_default=yes
5058 esac
5059 else
5060 install_as_default=no
5067 maybe_plugins=no
5068 for ac_header in dlfcn.h
5069 do :
5070 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5072 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5073 cat >>confdefs.h <<_ACEOF
5074 #define HAVE_DLFCN_H 1
5075 _ACEOF
5076 maybe_plugins=yes
5079 done
5081 for ac_header in windows.h
5082 do :
5083 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5085 if test "x$ac_cv_header_windows_h" = xyes; then :
5086 cat >>confdefs.h <<_ACEOF
5087 #define HAVE_WINDOWS_H 1
5088 _ACEOF
5089 maybe_plugins=yes
5092 done
5095 # Check whether --enable-plugins was given.
5096 if test "${enable_plugins+set}" = set; then :
5097 enableval=$enable_plugins; case "${enableval}" in
5098 no) plugins=no ;;
5099 *) plugins=yes
5100 if test "$maybe_plugins" != "yes" ; then
5101 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5102 fi ;;
5103 esac
5104 else
5105 plugins=$maybe_plugins
5109 if test "$plugins" = "yes"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5111 $as_echo_n "checking for library containing dlsym... " >&6; }
5112 if ${ac_cv_search_dlsym+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 ac_func_search_save_LIBS=$LIBS
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5119 /* Override any GCC internal prototype to avoid an error.
5120 Use char because int might match the return type of a GCC
5121 builtin and then its argument prototype would still apply. */
5122 #ifdef __cplusplus
5123 extern "C"
5124 #endif
5125 char dlsym ();
5127 main ()
5129 return dlsym ();
5131 return 0;
5133 _ACEOF
5134 for ac_lib in '' dl; do
5135 if test -z "$ac_lib"; then
5136 ac_res="none required"
5137 else
5138 ac_res=-l$ac_lib
5139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5141 if ac_fn_c_try_link "$LINENO"; then :
5142 ac_cv_search_dlsym=$ac_res
5144 rm -f core conftest.err conftest.$ac_objext \
5145 conftest$ac_exeext
5146 if ${ac_cv_search_dlsym+:} false; then :
5147 break
5149 done
5150 if ${ac_cv_search_dlsym+:} false; then :
5152 else
5153 ac_cv_search_dlsym=no
5155 rm conftest.$ac_ext
5156 LIBS=$ac_func_search_save_LIBS
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5159 $as_echo "$ac_cv_search_dlsym" >&6; }
5160 ac_res=$ac_cv_search_dlsym
5161 if test "$ac_res" != no; then :
5162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5168 if test "$plugins" = "yes"; then
5170 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5173 if test "$plugins" = "yes"; then
5174 PLUGINS_TRUE=
5175 PLUGINS_FALSE='#'
5176 else
5177 PLUGINS_TRUE='#'
5178 PLUGINS_FALSE=
5182 # Decide if -z relro should be enabled in ELF linker by default.
5183 ac_default_ld_z_relro=unset
5184 # Provide a configure time option to override our default.
5185 # Check whether --enable-relro was given.
5186 if test "${enable_relro+set}" = set; then :
5187 enableval=$enable_relro; case "${enableval}" in
5188 yes) ac_default_ld_z_relro=1 ;;
5189 no) ac_default_ld_z_relro=0 ;;
5190 esac
5192 if test "${ac_default_ld_z_relro}" = unset; then
5193 ac_default_ld_z_relro=1
5196 cat >>confdefs.h <<_ACEOF
5197 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
5198 _ACEOF
5201 # Check whether --enable-targets was given.
5202 if test "${enable_targets+set}" = set; then :
5203 enableval=$enable_targets; case "${enableval}" in
5204 yes | "")
5205 as_fn_error $? "--enable-targets option must specify target names or 'all'" "$LINENO" 5
5208 enable_targets=
5211 enable_targets=$enableval
5213 esac
5214 else
5215 # For now, enable all targets by default
5216 enable_targets=all
5221 # Canonicalize the enabled targets.
5222 if test -n "$enable_targets"; then
5223 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
5224 result=`$ac_config_sub $targ 2>/dev/null`
5225 if test -n "$result"; then
5226 canon_targets="$canon_targets $result"
5227 else
5228 # Permit unrecognized target names, like "all".
5229 canon_targets="$canon_targets $targ"
5231 done
5234 # Decide which "--hash-style" to use by default
5235 # Provide a configure time option to override our default.
5236 # Check whether --enable-default-hash-style was given.
5237 if test "${enable_default_hash_style+set}" = set; then :
5238 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
5239 sysv | gnu | both) ;;
5240 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
5241 esac
5242 else
5243 case "${target}" in
5244 # Enable gnu hash only on GNU targets, but not mips
5245 mips*-*-*) enable_default_hash_style=sysv ;;
5246 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
5247 *) enable_default_hash_style=sysv ;;
5248 esac
5253 cat >>confdefs.h <<_ACEOF
5254 #define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
5255 _ACEOF
5258 # See which specific instantiations we need.
5259 targetobjs=
5260 all_targets=
5261 default_machine=
5262 default_size=
5263 default_big_endian=
5264 default_osabi=ELFOSABI_NONE
5265 targ_32_little=
5266 targ_32_big=
5267 targ_64_little=
5268 targ_64_big=
5269 for targ in $target $canon_targets; do
5270 if test "$targ" = "all"; then
5271 targ_32_little=yes
5272 targ_32_big=yes
5273 targ_64_little=yes
5274 targ_64_big=yes
5275 all_targets=yes
5276 else
5277 . ${srcdir}/configure.tgt
5279 if test "$targ_obj" = "UNKNOWN"; then
5280 as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
5281 else
5282 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
5283 if test "$targ_extra_obj" != ""; then
5284 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5286 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5287 if test "$targ_big_endian" = "true" \
5288 -o "$targ_extra_big_endian" = "true"; then
5289 targ_32_big=yes
5291 if test "$targ_big_endian" = "false" \
5292 -o "$targ_extra_big_endian" = "false"; then
5293 targ_32_little=yes
5296 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5297 if test "$targ_big_endian" = "true" \
5298 -o "$targ_extra_big_endian" = "true"; then
5299 targ_64_big=yes
5301 if test "$targ_big_endian" = "false" \
5302 -o "$targ_extra_big_endian" = "false"; then
5303 targ_64_little=yes
5307 if test "$target" = "$targ"; then
5308 default_machine=$targ_machine
5309 default_size=$targ_size
5310 default_big_endian=$targ_big_endian
5311 default_osabi=$targ_osabi
5313 if test "$targ_obj" = "aarch64"; then
5314 DEFAULT_TARGET_AARCH64_TRUE=
5315 DEFAULT_TARGET_AARCH64_FALSE='#'
5316 else
5317 DEFAULT_TARGET_AARCH64_TRUE='#'
5318 DEFAULT_TARGET_AARCH64_FALSE=
5321 if test "$targ_obj" = "arm"; then
5322 DEFAULT_TARGET_ARM_TRUE=
5323 DEFAULT_TARGET_ARM_FALSE='#'
5324 else
5325 DEFAULT_TARGET_ARM_TRUE='#'
5326 DEFAULT_TARGET_ARM_FALSE=
5329 if test "$targ_obj" = "i386"; then
5330 DEFAULT_TARGET_I386_TRUE=
5331 DEFAULT_TARGET_I386_FALSE='#'
5332 else
5333 DEFAULT_TARGET_I386_TRUE='#'
5334 DEFAULT_TARGET_I386_FALSE=
5337 if test "$targ_obj" = "powerpc"; then
5338 DEFAULT_TARGET_POWERPC_TRUE=
5339 DEFAULT_TARGET_POWERPC_FALSE='#'
5340 else
5341 DEFAULT_TARGET_POWERPC_TRUE='#'
5342 DEFAULT_TARGET_POWERPC_FALSE=
5345 if test "$targ_obj" = "sparc"; then
5346 DEFAULT_TARGET_SPARC_TRUE=
5347 DEFAULT_TARGET_SPARC_FALSE='#'
5348 else
5349 DEFAULT_TARGET_SPARC_TRUE='#'
5350 DEFAULT_TARGET_SPARC_FALSE=
5353 if test "$targ_obj" = "s390"; then
5354 DEFAULT_TARGET_S390_TRUE=
5355 DEFAULT_TARGET_S390_FALSE='#'
5356 else
5357 DEFAULT_TARGET_S390_TRUE='#'
5358 DEFAULT_TARGET_S390_FALSE=
5361 target_x86_64=no
5362 target_x32=no
5363 if test "$targ_obj" = "x86_64"; then
5364 case "$target" in
5365 x86_64*-linux-gnux32)
5366 target_x32=yes
5367 default_size=32
5370 target_x86_64=yes
5372 esac
5374 if test "$target_x86_64" = "yes"; then
5375 DEFAULT_TARGET_X86_64_TRUE=
5376 DEFAULT_TARGET_X86_64_FALSE='#'
5377 else
5378 DEFAULT_TARGET_X86_64_TRUE='#'
5379 DEFAULT_TARGET_X86_64_FALSE=
5382 if test "$target_x32" = "yes"; then
5383 DEFAULT_TARGET_X32_TRUE=
5384 DEFAULT_TARGET_X32_FALSE='#'
5385 else
5386 DEFAULT_TARGET_X32_TRUE='#'
5387 DEFAULT_TARGET_X32_FALSE=
5390 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5391 DEFAULT_TARGET_X86_64_OR_X32_TRUE=
5392 DEFAULT_TARGET_X86_64_OR_X32_FALSE='#'
5393 else
5394 DEFAULT_TARGET_X86_64_OR_X32_TRUE='#'
5395 DEFAULT_TARGET_X86_64_OR_X32_FALSE=
5398 if test "$targ_obj" = "tilegx"; then
5399 DEFAULT_TARGET_TILEGX_TRUE=
5400 DEFAULT_TARGET_TILEGX_FALSE='#'
5401 else
5402 DEFAULT_TARGET_TILEGX_TRUE='#'
5403 DEFAULT_TARGET_TILEGX_FALSE=
5406 if test "$targ_obj" = "mips"; then
5407 DEFAULT_TARGET_MIPS_TRUE=
5408 DEFAULT_TARGET_MIPS_FALSE='#'
5409 else
5410 DEFAULT_TARGET_MIPS_TRUE='#'
5411 DEFAULT_TARGET_MIPS_FALSE=
5414 DEFAULT_TARGET=${targ_obj}
5419 done
5421 # Remove any duplicates.
5422 to=""
5423 for t in $targetobjs; do
5424 case " $to " in
5425 *" $t "*) ;;
5426 *) to="$to $t" ;;
5427 esac
5428 done
5429 targetobjs=$to
5431 if test -n "$targ_32_little"; then
5433 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
5436 if test -n "$targ_32_big"; then
5438 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
5441 if test -n "$targ_64_little"; then
5443 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
5446 if test -n "$targ_64_big"; then
5448 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
5452 if test -n "$all_targets"; then
5453 TARGETOBJS='$(ALL_TARGETOBJS)'
5454 else
5455 TARGETOBJS="$targetobjs"
5460 cat >>confdefs.h <<_ACEOF
5461 #define GOLD_DEFAULT_MACHINE $default_machine
5462 _ACEOF
5465 cat >>confdefs.h <<_ACEOF
5466 #define GOLD_DEFAULT_SIZE $default_size
5467 _ACEOF
5470 cat >>confdefs.h <<_ACEOF
5471 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5472 _ACEOF
5475 cat >>confdefs.h <<_ACEOF
5476 #define GOLD_DEFAULT_OSABI $default_osabi
5477 _ACEOF
5481 # Check whether --with-lib-path was given.
5482 if test "${with_lib_path+set}" = set; then :
5483 withval=$with_lib_path; case "$withval" in
5484 yes) LIB_PATH='"/lib:/usr/lib"' ;;
5485 no) LIB_PATH='""' ;;
5486 *) LIB_PATH='"'"$withval"'"' ;;
5487 esac
5488 else
5489 LIB_PATH='"::DEFAULT::"'
5493 cat >>confdefs.h <<_ACEOF
5494 #define LIB_PATH $LIB_PATH
5495 _ACEOF
5497 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
5499 $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5503 if test -n "$ac_tool_prefix"; then
5504 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5505 set dummy ${ac_tool_prefix}nm; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_NM+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 if test -n "$NM"; then
5512 ac_cv_prog_NM="$NM" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_NM="${ac_tool_prefix}nm"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5525 done
5526 done
5527 IFS=$as_save_IFS
5531 NM=$ac_cv_prog_NM
5532 if test -n "$NM"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5534 $as_echo "$NM" >&6; }
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5542 if test -z "$ac_cv_prog_NM"; then
5543 ac_ct_NM=$NM
5544 # Extract the first word of "nm", so it can be a program name with args.
5545 set dummy nm; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if test -n "$ac_ct_NM"; then
5552 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_ac_ct_NM="nm"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5565 done
5566 done
5567 IFS=$as_save_IFS
5571 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5572 if test -n "$ac_ct_NM"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5574 $as_echo "$ac_ct_NM" >&6; }
5575 else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5580 if test "x$ac_ct_NM" = x; then
5581 NM=""
5582 else
5583 case $cross_compiling:$ac_tool_warned in
5584 yes:)
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587 ac_tool_warned=yes ;;
5588 esac
5589 NM=$ac_ct_NM
5591 else
5592 NM="$ac_cv_prog_NM"
5596 ac_ext=c
5597 ac_cpp='$CPP $CPPFLAGS'
5598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5601 if test -n "$ac_tool_prefix"; then
5602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5603 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_CC+:} false; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 if test -n "$CC"; then
5610 ac_cv_prog_CC="$CC" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5623 done
5624 done
5625 IFS=$as_save_IFS
5629 CC=$ac_cv_prog_CC
5630 if test -n "$CC"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5632 $as_echo "$CC" >&6; }
5633 else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5640 if test -z "$ac_cv_prog_CC"; then
5641 ac_ct_CC=$CC
5642 # Extract the first word of "gcc", so it can be a program name with args.
5643 set dummy gcc; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 if test -n "$ac_ct_CC"; then
5650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_ac_ct_CC="gcc"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5663 done
5664 done
5665 IFS=$as_save_IFS
5669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5670 if test -n "$ac_ct_CC"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5672 $as_echo "$ac_ct_CC" >&6; }
5673 else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5678 if test "x$ac_ct_CC" = x; then
5679 CC=""
5680 else
5681 case $cross_compiling:$ac_tool_warned in
5682 yes:)
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5685 ac_tool_warned=yes ;;
5686 esac
5687 CC=$ac_ct_CC
5689 else
5690 CC="$ac_cv_prog_CC"
5693 if test -z "$CC"; then
5694 if test -n "$ac_tool_prefix"; then
5695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5696 set dummy ${ac_tool_prefix}cc; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_CC+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$CC"; then
5703 ac_cv_prog_CC="$CC" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_CC="${ac_tool_prefix}cc"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5716 done
5717 done
5718 IFS=$as_save_IFS
5722 CC=$ac_cv_prog_CC
5723 if test -n "$CC"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5725 $as_echo "$CC" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5734 if test -z "$CC"; then
5735 # Extract the first word of "cc", so it can be a program name with args.
5736 set dummy cc; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_prog_CC+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 if test -n "$CC"; then
5743 ac_cv_prog_CC="$CC" # Let the user override the test.
5744 else
5745 ac_prog_rejected=no
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5754 ac_prog_rejected=yes
5755 continue
5757 ac_cv_prog_CC="cc"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5761 done
5762 done
5763 IFS=$as_save_IFS
5765 if test $ac_prog_rejected = yes; then
5766 # We found a bogon in the path, so make sure we never use it.
5767 set dummy $ac_cv_prog_CC
5768 shift
5769 if test $# != 0; then
5770 # We chose a different compiler from the bogus one.
5771 # However, it has the same basename, so the bogon will be chosen
5772 # first if we set CC to just the basename; use the full file name.
5773 shift
5774 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5779 CC=$ac_cv_prog_CC
5780 if test -n "$CC"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5782 $as_echo "$CC" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5790 if test -z "$CC"; then
5791 if test -n "$ac_tool_prefix"; then
5792 for ac_prog in cl.exe
5794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_CC+:} false; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 if test -n "$CC"; then
5802 ac_cv_prog_CC="$CC" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5815 done
5816 done
5817 IFS=$as_save_IFS
5821 CC=$ac_cv_prog_CC
5822 if test -n "$CC"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5824 $as_echo "$CC" >&6; }
5825 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5831 test -n "$CC" && break
5832 done
5834 if test -z "$CC"; then
5835 ac_ct_CC=$CC
5836 for ac_prog in cl.exe
5838 # Extract the first word of "$ac_prog", so it can be a program name with args.
5839 set dummy $ac_prog; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 if test -n "$ac_ct_CC"; then
5846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_ac_ct_CC="$ac_prog"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 break 2
5859 done
5860 done
5861 IFS=$as_save_IFS
5865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5866 if test -n "$ac_ct_CC"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5868 $as_echo "$ac_ct_CC" >&6; }
5869 else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5875 test -n "$ac_ct_CC" && break
5876 done
5878 if test "x$ac_ct_CC" = x; then
5879 CC=""
5880 else
5881 case $cross_compiling:$ac_tool_warned in
5882 yes:)
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5885 ac_tool_warned=yes ;;
5886 esac
5887 CC=$ac_ct_CC
5894 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5896 as_fn_error $? "no acceptable C compiler found in \$PATH
5897 See \`config.log' for more details" "$LINENO" 5; }
5899 # Provide some information about the compiler.
5900 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5901 set X $ac_compile
5902 ac_compiler=$2
5903 for ac_option in --version -v -V -qversion; do
5904 { { ac_try="$ac_compiler $ac_option >&5"
5905 case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908 esac
5909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5910 $as_echo "$ac_try_echo"; } >&5
5911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5912 ac_status=$?
5913 if test -s conftest.err; then
5914 sed '10a\
5915 ... rest of stderr output deleted ...
5916 10q' conftest.err >conftest.er1
5917 cat conftest.er1 >&5
5919 rm -f conftest.er1 conftest.err
5920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921 test $ac_status = 0; }
5922 done
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5925 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5926 if ${ac_cv_c_compiler_gnu+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5933 main ()
5935 #ifndef __GNUC__
5936 choke me
5937 #endif
5940 return 0;
5942 _ACEOF
5943 if ac_fn_c_try_compile "$LINENO"; then :
5944 ac_compiler_gnu=yes
5945 else
5946 ac_compiler_gnu=no
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5953 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5954 if test $ac_compiler_gnu = yes; then
5955 GCC=yes
5956 else
5957 GCC=
5959 ac_test_CFLAGS=${CFLAGS+set}
5960 ac_save_CFLAGS=$CFLAGS
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5962 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5963 if ${ac_cv_prog_cc_g+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 ac_save_c_werror_flag=$ac_c_werror_flag
5967 ac_c_werror_flag=yes
5968 ac_cv_prog_cc_g=no
5969 CFLAGS="-g"
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5974 main ()
5978 return 0;
5980 _ACEOF
5981 if ac_fn_c_try_compile "$LINENO"; then :
5982 ac_cv_prog_cc_g=yes
5983 else
5984 CFLAGS=""
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5989 main ()
5993 return 0;
5995 _ACEOF
5996 if ac_fn_c_try_compile "$LINENO"; then :
5998 else
5999 ac_c_werror_flag=$ac_save_c_werror_flag
6000 CFLAGS="-g"
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6005 main ()
6009 return 0;
6011 _ACEOF
6012 if ac_fn_c_try_compile "$LINENO"; then :
6013 ac_cv_prog_cc_g=yes
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 ac_c_werror_flag=$ac_save_c_werror_flag
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6023 $as_echo "$ac_cv_prog_cc_g" >&6; }
6024 if test "$ac_test_CFLAGS" = set; then
6025 CFLAGS=$ac_save_CFLAGS
6026 elif test $ac_cv_prog_cc_g = yes; then
6027 if test "$GCC" = yes; then
6028 CFLAGS="-g -O2"
6029 else
6030 CFLAGS="-g"
6032 else
6033 if test "$GCC" = yes; then
6034 CFLAGS="-O2"
6035 else
6036 CFLAGS=
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6040 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6041 if ${ac_cv_prog_cc_c89+:} false; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 ac_cv_prog_cc_c89=no
6045 ac_save_CC=$CC
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6048 #include <stdarg.h>
6049 #include <stdio.h>
6050 struct stat;
6051 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6052 struct buf { int x; };
6053 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6054 static char *e (p, i)
6055 char **p;
6056 int i;
6058 return p[i];
6060 static char *f (char * (*g) (char **, int), char **p, ...)
6062 char *s;
6063 va_list v;
6064 va_start (v,p);
6065 s = g (p, va_arg (v,int));
6066 va_end (v);
6067 return s;
6070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6071 function prototypes and stuff, but not '\xHH' hex character constants.
6072 These don't provoke an error unfortunately, instead are silently treated
6073 as 'x'. The following induces an error, until -std is added to get
6074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6075 array size at least. It's necessary to write '\x00'==0 to get something
6076 that's true only with -std. */
6077 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6079 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6080 inside strings and character constants. */
6081 #define FOO(x) 'x'
6082 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6084 int test (int i, double x);
6085 struct s1 {int (*f) (int a);};
6086 struct s2 {int (*f) (double a);};
6087 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6088 int argc;
6089 char **argv;
6091 main ()
6093 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6095 return 0;
6097 _ACEOF
6098 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6099 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6101 CC="$ac_save_CC $ac_arg"
6102 if ac_fn_c_try_compile "$LINENO"; then :
6103 ac_cv_prog_cc_c89=$ac_arg
6105 rm -f core conftest.err conftest.$ac_objext
6106 test "x$ac_cv_prog_cc_c89" != "xno" && break
6107 done
6108 rm -f conftest.$ac_ext
6109 CC=$ac_save_CC
6112 # AC_CACHE_VAL
6113 case "x$ac_cv_prog_cc_c89" in
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6116 $as_echo "none needed" >&6; } ;;
6117 xno)
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6119 $as_echo "unsupported" >&6; } ;;
6121 CC="$CC $ac_cv_prog_cc_c89"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6123 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6124 esac
6125 if test "x$ac_cv_prog_cc_c89" != xno; then :
6129 ac_ext=c
6130 ac_cpp='$CPP $CPPFLAGS'
6131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6135 ac_ext=c
6136 ac_cpp='$CPP $CPPFLAGS'
6137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6141 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6142 if ${am_cv_prog_cc_c_o+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6149 main ()
6153 return 0;
6155 _ACEOF
6156 # Make sure it works both with $CC and with simple cc.
6157 # Following AC_PROG_CC_C_O, we do the test twice because some
6158 # compilers refuse to overwrite an existing .o file with -o,
6159 # though they will create one.
6160 am_cv_prog_cc_c_o=yes
6161 for am_i in 1 2; do
6162 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6163 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6164 ac_status=$?
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } \
6167 && test -f conftest2.$ac_objext; then
6168 : OK
6169 else
6170 am_cv_prog_cc_c_o=no
6171 break
6173 done
6174 rm -f core conftest*
6175 unset am_i
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6178 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6179 if test "$am_cv_prog_cc_c_o" != yes; then
6180 # Losing compiler, so override with the script.
6181 # FIXME: It is wrong to rewrite CC.
6182 # But if we don't then we get into trouble of one sort or another.
6183 # A longer-term fix would be to have automake use am__CC in this case,
6184 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6185 CC="$am_aux_dir/compile $CC"
6187 ac_ext=c
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194 depcc="$CC" am_compiler_list=
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6197 $as_echo_n "checking dependency style of $depcc... " >&6; }
6198 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6202 # We make a subdir and do the tests there. Otherwise we can end up
6203 # making bogus files that we don't know about and never remove. For
6204 # instance it was reported that on HP-UX the gcc test will end up
6205 # making a dummy file named 'D' -- because '-MD' means "put the output
6206 # in D".
6207 rm -rf conftest.dir
6208 mkdir conftest.dir
6209 # Copy depcomp to subdir because otherwise we won't find it if we're
6210 # using a relative directory.
6211 cp "$am_depcomp" conftest.dir
6212 cd conftest.dir
6213 # We will build objects and dependencies in a subdirectory because
6214 # it helps to detect inapplicable dependency modes. For instance
6215 # both Tru64's cc and ICC support -MD to output dependencies as a
6216 # side effect of compilation, but ICC will put the dependencies in
6217 # the current directory while Tru64 will put them in the object
6218 # directory.
6219 mkdir sub
6221 am_cv_CC_dependencies_compiler_type=none
6222 if test "$am_compiler_list" = ""; then
6223 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6225 am__universal=false
6226 case " $depcc " in #(
6227 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6228 esac
6230 for depmode in $am_compiler_list; do
6231 # Setup a source with many dependencies, because some compilers
6232 # like to wrap large dependency lists on column 80 (with \), and
6233 # we should not choose a depcomp mode which is confused by this.
6235 # We need to recreate these files for each test, as the compiler may
6236 # overwrite some of them when testing with obscure command lines.
6237 # This happens at least with the AIX C compiler.
6238 : > sub/conftest.c
6239 for i in 1 2 3 4 5 6; do
6240 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6241 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6242 # Solaris 10 /bin/sh.
6243 echo '/* dummy */' > sub/conftst$i.h
6244 done
6245 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6247 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6248 # mode. It turns out that the SunPro C++ compiler does not properly
6249 # handle '-M -o', and we need to detect this. Also, some Intel
6250 # versions had trouble with output in subdirs.
6251 am__obj=sub/conftest.${OBJEXT-o}
6252 am__minus_obj="-o $am__obj"
6253 case $depmode in
6254 gcc)
6255 # This depmode causes a compiler race in universal mode.
6256 test "$am__universal" = false || continue
6258 nosideeffect)
6259 # After this tag, mechanisms are not by side-effect, so they'll
6260 # only be used when explicitly requested.
6261 if test "x$enable_dependency_tracking" = xyes; then
6262 continue
6263 else
6264 break
6267 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6268 # This compiler won't grok '-c -o', but also, the minuso test has
6269 # not run yet. These depmodes are late enough in the game, and
6270 # so weak that their functioning should not be impacted.
6271 am__obj=conftest.${OBJEXT-o}
6272 am__minus_obj=
6274 none) break ;;
6275 esac
6276 if depmode=$depmode \
6277 source=sub/conftest.c object=$am__obj \
6278 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6279 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6280 >/dev/null 2>conftest.err &&
6281 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6282 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6283 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6284 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6285 # icc doesn't choke on unknown options, it will just issue warnings
6286 # or remarks (even with -Werror). So we grep stderr for any message
6287 # that says an option was ignored or not supported.
6288 # When given -MP, icc 7.0 and 7.1 complain thusly:
6289 # icc: Command line warning: ignoring option '-M'; no argument required
6290 # The diagnosis changed in icc 8.0:
6291 # icc: Command line remark: option '-MP' not supported
6292 if (grep 'ignoring option' conftest.err ||
6293 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6294 am_cv_CC_dependencies_compiler_type=$depmode
6295 break
6298 done
6300 cd ..
6301 rm -rf conftest.dir
6302 else
6303 am_cv_CC_dependencies_compiler_type=none
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6308 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6309 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6312 test "x$enable_dependency_tracking" != xno \
6313 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6314 am__fastdepCC_TRUE=
6315 am__fastdepCC_FALSE='#'
6316 else
6317 am__fastdepCC_TRUE='#'
6318 am__fastdepCC_FALSE=
6322 ac_ext=cpp
6323 ac_cpp='$CXXCPP $CPPFLAGS'
6324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6327 if test -z "$CXX"; then
6328 if test -n "$CCC"; then
6329 CXX=$CCC
6330 else
6331 if test -n "$ac_tool_prefix"; then
6332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_CXX+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 if test -n "$CXX"; then
6342 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6355 done
6356 done
6357 IFS=$as_save_IFS
6361 CXX=$ac_cv_prog_CXX
6362 if test -n "$CXX"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6364 $as_echo "$CXX" >&6; }
6365 else
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6371 test -n "$CXX" && break
6372 done
6374 if test -z "$CXX"; then
6375 ac_ct_CXX=$CXX
6376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6378 # Extract the first word of "$ac_prog", so it can be a program name with args.
6379 set dummy $ac_prog; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 if test -n "$ac_ct_CXX"; then
6386 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_ac_ct_CXX="$ac_prog"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6399 done
6400 done
6401 IFS=$as_save_IFS
6405 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6406 if test -n "$ac_ct_CXX"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6408 $as_echo "$ac_ct_CXX" >&6; }
6409 else
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6415 test -n "$ac_ct_CXX" && break
6416 done
6418 if test "x$ac_ct_CXX" = x; then
6419 CXX="g++"
6420 else
6421 case $cross_compiling:$ac_tool_warned in
6422 yes:)
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6425 ac_tool_warned=yes ;;
6426 esac
6427 CXX=$ac_ct_CXX
6433 # Provide some information about the compiler.
6434 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6435 set X $ac_compile
6436 ac_compiler=$2
6437 for ac_option in --version -v -V -qversion; do
6438 { { ac_try="$ac_compiler $ac_option >&5"
6439 case "(($ac_try" in
6440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441 *) ac_try_echo=$ac_try;;
6442 esac
6443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6444 $as_echo "$ac_try_echo"; } >&5
6445 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6446 ac_status=$?
6447 if test -s conftest.err; then
6448 sed '10a\
6449 ... rest of stderr output deleted ...
6450 10q' conftest.err >conftest.er1
6451 cat conftest.er1 >&5
6453 rm -f conftest.er1 conftest.err
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; }
6456 done
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6459 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6460 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6467 main ()
6469 #ifndef __GNUC__
6470 choke me
6471 #endif
6474 return 0;
6476 _ACEOF
6477 if ac_fn_cxx_try_compile "$LINENO"; then :
6478 ac_compiler_gnu=yes
6479 else
6480 ac_compiler_gnu=no
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6487 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6488 if test $ac_compiler_gnu = yes; then
6489 GXX=yes
6490 else
6491 GXX=
6493 ac_test_CXXFLAGS=${CXXFLAGS+set}
6494 ac_save_CXXFLAGS=$CXXFLAGS
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6496 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6497 if ${ac_cv_prog_cxx_g+:} false; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6501 ac_cxx_werror_flag=yes
6502 ac_cv_prog_cxx_g=no
6503 CXXFLAGS="-g"
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6508 main ()
6512 return 0;
6514 _ACEOF
6515 if ac_fn_cxx_try_compile "$LINENO"; then :
6516 ac_cv_prog_cxx_g=yes
6517 else
6518 CXXFLAGS=""
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6523 main ()
6527 return 0;
6529 _ACEOF
6530 if ac_fn_cxx_try_compile "$LINENO"; then :
6532 else
6533 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6534 CXXFLAGS="-g"
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6539 main ()
6543 return 0;
6545 _ACEOF
6546 if ac_fn_cxx_try_compile "$LINENO"; then :
6547 ac_cv_prog_cxx_g=yes
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6557 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6558 if test "$ac_test_CXXFLAGS" = set; then
6559 CXXFLAGS=$ac_save_CXXFLAGS
6560 elif test $ac_cv_prog_cxx_g = yes; then
6561 if test "$GXX" = yes; then
6562 CXXFLAGS="-g -O2"
6563 else
6564 CXXFLAGS="-g"
6566 else
6567 if test "$GXX" = yes; then
6568 CXXFLAGS="-O2"
6569 else
6570 CXXFLAGS=
6573 ac_ext=c
6574 ac_cpp='$CPP $CPPFLAGS'
6575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6579 depcc="$CXX" am_compiler_list=
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6582 $as_echo_n "checking dependency style of $depcc... " >&6; }
6583 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6587 # We make a subdir and do the tests there. Otherwise we can end up
6588 # making bogus files that we don't know about and never remove. For
6589 # instance it was reported that on HP-UX the gcc test will end up
6590 # making a dummy file named 'D' -- because '-MD' means "put the output
6591 # in D".
6592 rm -rf conftest.dir
6593 mkdir conftest.dir
6594 # Copy depcomp to subdir because otherwise we won't find it if we're
6595 # using a relative directory.
6596 cp "$am_depcomp" conftest.dir
6597 cd conftest.dir
6598 # We will build objects and dependencies in a subdirectory because
6599 # it helps to detect inapplicable dependency modes. For instance
6600 # both Tru64's cc and ICC support -MD to output dependencies as a
6601 # side effect of compilation, but ICC will put the dependencies in
6602 # the current directory while Tru64 will put them in the object
6603 # directory.
6604 mkdir sub
6606 am_cv_CXX_dependencies_compiler_type=none
6607 if test "$am_compiler_list" = ""; then
6608 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6610 am__universal=false
6611 case " $depcc " in #(
6612 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6613 esac
6615 for depmode in $am_compiler_list; do
6616 # Setup a source with many dependencies, because some compilers
6617 # like to wrap large dependency lists on column 80 (with \), and
6618 # we should not choose a depcomp mode which is confused by this.
6620 # We need to recreate these files for each test, as the compiler may
6621 # overwrite some of them when testing with obscure command lines.
6622 # This happens at least with the AIX C compiler.
6623 : > sub/conftest.c
6624 for i in 1 2 3 4 5 6; do
6625 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6626 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6627 # Solaris 10 /bin/sh.
6628 echo '/* dummy */' > sub/conftst$i.h
6629 done
6630 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6632 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6633 # mode. It turns out that the SunPro C++ compiler does not properly
6634 # handle '-M -o', and we need to detect this. Also, some Intel
6635 # versions had trouble with output in subdirs.
6636 am__obj=sub/conftest.${OBJEXT-o}
6637 am__minus_obj="-o $am__obj"
6638 case $depmode in
6639 gcc)
6640 # This depmode causes a compiler race in universal mode.
6641 test "$am__universal" = false || continue
6643 nosideeffect)
6644 # After this tag, mechanisms are not by side-effect, so they'll
6645 # only be used when explicitly requested.
6646 if test "x$enable_dependency_tracking" = xyes; then
6647 continue
6648 else
6649 break
6652 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6653 # This compiler won't grok '-c -o', but also, the minuso test has
6654 # not run yet. These depmodes are late enough in the game, and
6655 # so weak that their functioning should not be impacted.
6656 am__obj=conftest.${OBJEXT-o}
6657 am__minus_obj=
6659 none) break ;;
6660 esac
6661 if depmode=$depmode \
6662 source=sub/conftest.c object=$am__obj \
6663 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6664 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6665 >/dev/null 2>conftest.err &&
6666 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6667 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6668 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6669 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6670 # icc doesn't choke on unknown options, it will just issue warnings
6671 # or remarks (even with -Werror). So we grep stderr for any message
6672 # that says an option was ignored or not supported.
6673 # When given -MP, icc 7.0 and 7.1 complain thusly:
6674 # icc: Command line warning: ignoring option '-M'; no argument required
6675 # The diagnosis changed in icc 8.0:
6676 # icc: Command line remark: option '-MP' not supported
6677 if (grep 'ignoring option' conftest.err ||
6678 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6679 am_cv_CXX_dependencies_compiler_type=$depmode
6680 break
6683 done
6685 cd ..
6686 rm -rf conftest.dir
6687 else
6688 am_cv_CXX_dependencies_compiler_type=none
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6693 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6694 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6697 test "x$enable_dependency_tracking" != xno \
6698 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6699 am__fastdepCXX_TRUE=
6700 am__fastdepCXX_FALSE='#'
6701 else
6702 am__fastdepCXX_TRUE='#'
6703 am__fastdepCXX_FALSE=
6707 for ac_prog in 'bison -y' byacc
6709 # Extract the first word of "$ac_prog", so it can be a program name with args.
6710 set dummy $ac_prog; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_prog_YACC+:} false; then :
6714 $as_echo_n "(cached) " >&6
6715 else
6716 if test -n "$YACC"; then
6717 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6722 IFS=$as_save_IFS
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6726 ac_cv_prog_YACC="$ac_prog"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728 break 2
6730 done
6731 done
6732 IFS=$as_save_IFS
6736 YACC=$ac_cv_prog_YACC
6737 if test -n "$YACC"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6739 $as_echo "$YACC" >&6; }
6740 else
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6746 test -n "$YACC" && break
6747 done
6748 test -n "$YACC" || YACC="yacc"
6750 if test -n "$ac_tool_prefix"; then
6751 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6752 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_prog_RANLIB+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 if test -n "$RANLIB"; then
6759 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6772 done
6773 done
6774 IFS=$as_save_IFS
6778 RANLIB=$ac_cv_prog_RANLIB
6779 if test -n "$RANLIB"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6781 $as_echo "$RANLIB" >&6; }
6782 else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6789 if test -z "$ac_cv_prog_RANLIB"; then
6790 ac_ct_RANLIB=$RANLIB
6791 # Extract the first word of "ranlib", so it can be a program name with args.
6792 set dummy ranlib; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 if test -n "$ac_ct_RANLIB"; then
6799 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_ac_ct_RANLIB="ranlib"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6812 done
6813 done
6814 IFS=$as_save_IFS
6818 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6819 if test -n "$ac_ct_RANLIB"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6821 $as_echo "$ac_ct_RANLIB" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6827 if test "x$ac_ct_RANLIB" = x; then
6828 RANLIB=":"
6829 else
6830 case $cross_compiling:$ac_tool_warned in
6831 yes:)
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6834 ac_tool_warned=yes ;;
6835 esac
6836 RANLIB=$ac_ct_RANLIB
6838 else
6839 RANLIB="$ac_cv_prog_RANLIB"
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6844 $as_echo_n "checking whether ln -s works... " >&6; }
6845 LN_S=$as_ln_s
6846 if test "$LN_S" = "ln -s"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6848 $as_echo "yes" >&6; }
6849 else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6851 $as_echo "no, using $LN_S" >&6; }
6858 MKINSTALLDIRS=
6859 if test -n "$ac_aux_dir"; then
6860 case "$ac_aux_dir" in
6861 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6862 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6863 esac
6865 if test -z "$MKINSTALLDIRS"; then
6866 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6872 $as_echo_n "checking whether NLS is requested... " >&6; }
6873 # Check whether --enable-nls was given.
6874 if test "${enable_nls+set}" = set; then :
6875 enableval=$enable_nls; USE_NLS=$enableval
6876 else
6877 USE_NLS=yes
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6881 $as_echo "$USE_NLS" >&6; }
6888 # Prepare PATH_SEPARATOR.
6889 # The user is always right.
6890 if test "${PATH_SEPARATOR+set}" != set; then
6891 echo "#! /bin/sh" >conf$$.sh
6892 echo "exit 0" >>conf$$.sh
6893 chmod +x conf$$.sh
6894 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6895 PATH_SEPARATOR=';'
6896 else
6897 PATH_SEPARATOR=:
6899 rm -f conf$$.sh
6902 # Find out how to test for executable files. Don't use a zero-byte file,
6903 # as systems may use methods other than mode bits to determine executability.
6904 cat >conf$$.file <<_ASEOF
6905 #! /bin/sh
6906 exit 0
6907 _ASEOF
6908 chmod +x conf$$.file
6909 if test -x conf$$.file >/dev/null 2>&1; then
6910 ac_executable_p="test -x"
6911 else
6912 ac_executable_p="test -f"
6914 rm -f conf$$.file
6916 # Extract the first word of "msgfmt", so it can be a program name with args.
6917 set dummy msgfmt; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if ${ac_cv_path_MSGFMT+:} false; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 case "$MSGFMT" in
6924 [\\/]* | ?:[\\/]*)
6925 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6928 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6929 for ac_dir in $PATH; do
6930 IFS="$ac_save_IFS"
6931 test -z "$ac_dir" && ac_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6934 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6935 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6936 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6937 break 2
6940 done
6941 done
6942 IFS="$ac_save_IFS"
6943 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6945 esac
6947 MSGFMT="$ac_cv_path_MSGFMT"
6948 if test "$MSGFMT" != ":"; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6950 $as_echo "$MSGFMT" >&6; }
6951 else
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6956 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6957 set dummy gmsgfmt; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_path_GMSGFMT+:} false; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 case $GMSGFMT in
6964 [\\/]* | ?:[\\/]*)
6965 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6971 IFS=$as_save_IFS
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6975 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 break 2
6979 done
6980 done
6981 IFS=$as_save_IFS
6983 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6985 esac
6987 GMSGFMT=$ac_cv_path_GMSGFMT
6988 if test -n "$GMSGFMT"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6990 $as_echo "$GMSGFMT" >&6; }
6991 else
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6999 # Prepare PATH_SEPARATOR.
7000 # The user is always right.
7001 if test "${PATH_SEPARATOR+set}" != set; then
7002 echo "#! /bin/sh" >conf$$.sh
7003 echo "exit 0" >>conf$$.sh
7004 chmod +x conf$$.sh
7005 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7006 PATH_SEPARATOR=';'
7007 else
7008 PATH_SEPARATOR=:
7010 rm -f conf$$.sh
7013 # Find out how to test for executable files. Don't use a zero-byte file,
7014 # as systems may use methods other than mode bits to determine executability.
7015 cat >conf$$.file <<_ASEOF
7016 #! /bin/sh
7017 exit 0
7018 _ASEOF
7019 chmod +x conf$$.file
7020 if test -x conf$$.file >/dev/null 2>&1; then
7021 ac_executable_p="test -x"
7022 else
7023 ac_executable_p="test -f"
7025 rm -f conf$$.file
7027 # Extract the first word of "xgettext", so it can be a program name with args.
7028 set dummy xgettext; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_path_XGETTEXT+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 case "$XGETTEXT" in
7035 [\\/]* | ?:[\\/]*)
7036 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7039 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7040 for ac_dir in $PATH; do
7041 IFS="$ac_save_IFS"
7042 test -z "$ac_dir" && ac_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7045 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7046 (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
7047 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7048 break 2
7051 done
7052 done
7053 IFS="$ac_save_IFS"
7054 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7056 esac
7058 XGETTEXT="$ac_cv_path_XGETTEXT"
7059 if test "$XGETTEXT" != ":"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7061 $as_echo "$XGETTEXT" >&6; }
7062 else
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7067 rm -f messages.po
7070 # Prepare PATH_SEPARATOR.
7071 # The user is always right.
7072 if test "${PATH_SEPARATOR+set}" != set; then
7073 echo "#! /bin/sh" >conf$$.sh
7074 echo "exit 0" >>conf$$.sh
7075 chmod +x conf$$.sh
7076 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7077 PATH_SEPARATOR=';'
7078 else
7079 PATH_SEPARATOR=:
7081 rm -f conf$$.sh
7084 # Find out how to test for executable files. Don't use a zero-byte file,
7085 # as systems may use methods other than mode bits to determine executability.
7086 cat >conf$$.file <<_ASEOF
7087 #! /bin/sh
7088 exit 0
7089 _ASEOF
7090 chmod +x conf$$.file
7091 if test -x conf$$.file >/dev/null 2>&1; then
7092 ac_executable_p="test -x"
7093 else
7094 ac_executable_p="test -f"
7096 rm -f conf$$.file
7098 # Extract the first word of "msgmerge", so it can be a program name with args.
7099 set dummy msgmerge; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_path_MSGMERGE+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 case "$MSGMERGE" in
7106 [\\/]* | ?:[\\/]*)
7107 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7110 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7111 for ac_dir in $PATH; do
7112 IFS="$ac_save_IFS"
7113 test -z "$ac_dir" && ac_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7116 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7117 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7118 break 2
7121 done
7122 done
7123 IFS="$ac_save_IFS"
7124 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7126 esac
7128 MSGMERGE="$ac_cv_path_MSGMERGE"
7129 if test "$MSGMERGE" != ":"; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7131 $as_echo "$MSGMERGE" >&6; }
7132 else
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7138 if test "$GMSGFMT" != ":"; then
7139 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7140 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7142 else
7143 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7145 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7146 GMSGFMT=":"
7150 if test "$XGETTEXT" != ":"; then
7151 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7152 (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
7154 else
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7156 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7157 XGETTEXT=":"
7159 rm -f messages.po
7162 ac_config_commands="$ac_config_commands default-1"
7166 if test "X$prefix" = "XNONE"; then
7167 acl_final_prefix="$ac_default_prefix"
7168 else
7169 acl_final_prefix="$prefix"
7171 if test "X$exec_prefix" = "XNONE"; then
7172 acl_final_exec_prefix='${prefix}'
7173 else
7174 acl_final_exec_prefix="$exec_prefix"
7176 acl_save_prefix="$prefix"
7177 prefix="$acl_final_prefix"
7178 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7179 prefix="$acl_save_prefix"
7182 # Check whether --with-gnu-ld was given.
7183 if test "${with_gnu_ld+set}" = set; then :
7184 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7185 else
7186 with_gnu_ld=no
7189 # Prepare PATH_SEPARATOR.
7190 # The user is always right.
7191 if test "${PATH_SEPARATOR+set}" != set; then
7192 echo "#! /bin/sh" >conf$$.sh
7193 echo "exit 0" >>conf$$.sh
7194 chmod +x conf$$.sh
7195 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7196 PATH_SEPARATOR=';'
7197 else
7198 PATH_SEPARATOR=:
7200 rm -f conf$$.sh
7202 ac_prog=ld
7203 if test "$GCC" = yes; then
7204 # Check if gcc -print-prog-name=ld gives a path.
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7206 $as_echo_n "checking for ld used by GCC... " >&6; }
7207 case $host in
7208 *-*-mingw*)
7209 # gcc leaves a trailing carriage return which upsets mingw
7210 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7212 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7213 esac
7214 case $ac_prog in
7215 # Accept absolute paths.
7216 [\\/]* | [A-Za-z]:[\\/]*)
7217 re_direlt='/[^/][^/]*/\.\./'
7218 # Canonicalize the path of ld
7219 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7220 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7221 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7222 done
7223 test -z "$LD" && LD="$ac_prog"
7226 # If it fails, then pretend we aren't using GCC.
7227 ac_prog=ld
7230 # If it is relative, then search for the first ld in PATH.
7231 with_gnu_ld=unknown
7233 esac
7234 elif test "$with_gnu_ld" = yes; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7236 $as_echo_n "checking for GNU ld... " >&6; }
7237 else
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7239 $as_echo_n "checking for non-GNU ld... " >&6; }
7241 if ${acl_cv_path_LD+:} false; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 if test -z "$LD"; then
7245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7246 for ac_dir in $PATH; do
7247 test -z "$ac_dir" && ac_dir=.
7248 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7249 acl_cv_path_LD="$ac_dir/$ac_prog"
7250 # Check to see if the program is GNU ld. I'd rather use --version,
7251 # but apparently some GNU ld's only accept -v.
7252 # Break only if it was the GNU/non-GNU ld that we prefer.
7253 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
7254 test "$with_gnu_ld" != no && break
7255 else
7256 test "$with_gnu_ld" != yes && break
7259 done
7260 IFS="$ac_save_ifs"
7261 else
7262 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7266 LD="$acl_cv_path_LD"
7267 if test -n "$LD"; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7269 $as_echo "$LD" >&6; }
7270 else
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7274 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7276 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7277 if ${acl_cv_prog_gnu_ld+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7281 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
7282 acl_cv_prog_gnu_ld=yes
7283 else
7284 acl_cv_prog_gnu_ld=no
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7288 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7289 with_gnu_ld=$acl_cv_prog_gnu_ld
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7294 $as_echo_n "checking for shared library run path origin... " >&6; }
7295 if ${acl_cv_rpath+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7299 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7300 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7301 . ./conftest.sh
7302 rm -f ./conftest.sh
7303 acl_cv_rpath=done
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7307 $as_echo "$acl_cv_rpath" >&6; }
7308 wl="$acl_cv_wl"
7309 libext="$acl_cv_libext"
7310 shlibext="$acl_cv_shlibext"
7311 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7312 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7313 hardcode_direct="$acl_cv_hardcode_direct"
7314 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7315 # Check whether --enable-rpath was given.
7316 if test "${enable_rpath+set}" = set; then :
7317 enableval=$enable_rpath; :
7318 else
7319 enable_rpath=yes
7329 use_additional=yes
7331 acl_save_prefix="$prefix"
7332 prefix="$acl_final_prefix"
7333 acl_save_exec_prefix="$exec_prefix"
7334 exec_prefix="$acl_final_exec_prefix"
7336 eval additional_includedir=\"$includedir\"
7337 eval additional_libdir=\"$libdir\"
7339 exec_prefix="$acl_save_exec_prefix"
7340 prefix="$acl_save_prefix"
7343 # Check whether --with-libiconv-prefix was given.
7344 if test "${with_libiconv_prefix+set}" = set; then :
7345 withval=$with_libiconv_prefix;
7346 if test "X$withval" = "Xno"; then
7347 use_additional=no
7348 else
7349 if test "X$withval" = "X"; then
7351 acl_save_prefix="$prefix"
7352 prefix="$acl_final_prefix"
7353 acl_save_exec_prefix="$exec_prefix"
7354 exec_prefix="$acl_final_exec_prefix"
7356 eval additional_includedir=\"$includedir\"
7357 eval additional_libdir=\"$libdir\"
7359 exec_prefix="$acl_save_exec_prefix"
7360 prefix="$acl_save_prefix"
7362 else
7363 additional_includedir="$withval/include"
7364 additional_libdir="$withval/lib"
7371 # Check whether --with-libiconv-type was given.
7372 if test "${with_libiconv_type+set}" = set; then :
7373 withval=$with_libiconv_type; with_libiconv_type=$withval
7374 else
7375 with_libiconv_type=auto
7378 lib_type=`eval echo \$with_libiconv_type`
7380 LIBICONV=
7381 LTLIBICONV=
7382 INCICONV=
7383 rpathdirs=
7384 ltrpathdirs=
7385 names_already_handled=
7386 names_next_round='iconv '
7387 while test -n "$names_next_round"; do
7388 names_this_round="$names_next_round"
7389 names_next_round=
7390 for name in $names_this_round; do
7391 already_handled=
7392 for n in $names_already_handled; do
7393 if test "$n" = "$name"; then
7394 already_handled=yes
7395 break
7397 done
7398 if test -z "$already_handled"; then
7399 names_already_handled="$names_already_handled $name"
7400 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7401 eval value=\"\$HAVE_LIB$uppername\"
7402 if test -n "$value"; then
7403 if test "$value" = yes; then
7404 eval value=\"\$LIB$uppername\"
7405 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7406 eval value=\"\$LTLIB$uppername\"
7407 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7408 else
7411 else
7412 found_dir=
7413 found_la=
7414 found_so=
7415 found_a=
7416 if test $use_additional = yes; then
7417 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
7418 found_dir="$additional_libdir"
7419 found_so="$additional_libdir/lib$name.$shlibext"
7420 if test -f "$additional_libdir/lib$name.la"; then
7421 found_la="$additional_libdir/lib$name.la"
7423 elif test x$lib_type != xshared; then
7424 if test -f "$additional_libdir/lib$name.$libext"; then
7425 found_dir="$additional_libdir"
7426 found_a="$additional_libdir/lib$name.$libext"
7427 if test -f "$additional_libdir/lib$name.la"; then
7428 found_la="$additional_libdir/lib$name.la"
7433 if test "X$found_dir" = "X"; then
7434 for x in $LDFLAGS $LTLIBICONV; do
7436 acl_save_prefix="$prefix"
7437 prefix="$acl_final_prefix"
7438 acl_save_exec_prefix="$exec_prefix"
7439 exec_prefix="$acl_final_exec_prefix"
7440 eval x=\"$x\"
7441 exec_prefix="$acl_save_exec_prefix"
7442 prefix="$acl_save_prefix"
7444 case "$x" in
7445 -L*)
7446 dir=`echo "X$x" | sed -e 's/^X-L//'`
7447 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
7448 found_dir="$dir"
7449 found_so="$dir/lib$name.$shlibext"
7450 if test -f "$dir/lib$name.la"; then
7451 found_la="$dir/lib$name.la"
7453 elif test x$lib_type != xshared; then
7454 if test -f "$dir/lib$name.$libext"; then
7455 found_dir="$dir"
7456 found_a="$dir/lib$name.$libext"
7457 if test -f "$dir/lib$name.la"; then
7458 found_la="$dir/lib$name.la"
7463 esac
7464 if test "X$found_dir" != "X"; then
7465 break
7467 done
7469 if test "X$found_dir" != "X"; then
7470 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7471 if test "X$found_so" != "X"; then
7472 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7473 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7474 else
7475 haveit=
7476 for x in $ltrpathdirs; do
7477 if test "X$x" = "X$found_dir"; then
7478 haveit=yes
7479 break
7481 done
7482 if test -z "$haveit"; then
7483 ltrpathdirs="$ltrpathdirs $found_dir"
7485 if test "$hardcode_direct" = yes; then
7486 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7487 else
7488 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7489 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7490 haveit=
7491 for x in $rpathdirs; do
7492 if test "X$x" = "X$found_dir"; then
7493 haveit=yes
7494 break
7496 done
7497 if test -z "$haveit"; then
7498 rpathdirs="$rpathdirs $found_dir"
7500 else
7501 haveit=
7502 for x in $LDFLAGS $LIBICONV; do
7504 acl_save_prefix="$prefix"
7505 prefix="$acl_final_prefix"
7506 acl_save_exec_prefix="$exec_prefix"
7507 exec_prefix="$acl_final_exec_prefix"
7508 eval x=\"$x\"
7509 exec_prefix="$acl_save_exec_prefix"
7510 prefix="$acl_save_prefix"
7512 if test "X$x" = "X-L$found_dir"; then
7513 haveit=yes
7514 break
7516 done
7517 if test -z "$haveit"; then
7518 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7520 if test "$hardcode_minus_L" != no; then
7521 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7522 else
7523 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7528 else
7529 if test "X$found_a" != "X"; then
7530 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7531 else
7532 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7535 additional_includedir=
7536 case "$found_dir" in
7537 */lib | */lib/)
7538 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7539 additional_includedir="$basedir/include"
7541 esac
7542 if test "X$additional_includedir" != "X"; then
7543 if test "X$additional_includedir" != "X/usr/include"; then
7544 haveit=
7545 if test "X$additional_includedir" = "X/usr/local/include"; then
7546 if test -n "$GCC"; then
7547 case $host_os in
7548 linux*) haveit=yes;;
7549 esac
7552 if test -z "$haveit"; then
7553 for x in $CPPFLAGS $INCICONV; do
7555 acl_save_prefix="$prefix"
7556 prefix="$acl_final_prefix"
7557 acl_save_exec_prefix="$exec_prefix"
7558 exec_prefix="$acl_final_exec_prefix"
7559 eval x=\"$x\"
7560 exec_prefix="$acl_save_exec_prefix"
7561 prefix="$acl_save_prefix"
7563 if test "X$x" = "X-I$additional_includedir"; then
7564 haveit=yes
7565 break
7567 done
7568 if test -z "$haveit"; then
7569 if test -d "$additional_includedir"; then
7570 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7576 if test -n "$found_la"; then
7577 save_libdir="$libdir"
7578 case "$found_la" in
7579 */* | *\\*) . "$found_la" ;;
7580 *) . "./$found_la" ;;
7581 esac
7582 libdir="$save_libdir"
7583 for dep in $dependency_libs; do
7584 case "$dep" in
7585 -L*)
7586 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7587 if test "X$additional_libdir" != "X/usr/lib"; then
7588 haveit=
7589 if test "X$additional_libdir" = "X/usr/local/lib"; then
7590 if test -n "$GCC"; then
7591 case $host_os in
7592 linux*) haveit=yes;;
7593 esac
7596 if test -z "$haveit"; then
7597 haveit=
7598 for x in $LDFLAGS $LIBICONV; do
7600 acl_save_prefix="$prefix"
7601 prefix="$acl_final_prefix"
7602 acl_save_exec_prefix="$exec_prefix"
7603 exec_prefix="$acl_final_exec_prefix"
7604 eval x=\"$x\"
7605 exec_prefix="$acl_save_exec_prefix"
7606 prefix="$acl_save_prefix"
7608 if test "X$x" = "X-L$additional_libdir"; then
7609 haveit=yes
7610 break
7612 done
7613 if test -z "$haveit"; then
7614 if test -d "$additional_libdir"; then
7615 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7618 haveit=
7619 for x in $LDFLAGS $LTLIBICONV; do
7621 acl_save_prefix="$prefix"
7622 prefix="$acl_final_prefix"
7623 acl_save_exec_prefix="$exec_prefix"
7624 exec_prefix="$acl_final_exec_prefix"
7625 eval x=\"$x\"
7626 exec_prefix="$acl_save_exec_prefix"
7627 prefix="$acl_save_prefix"
7629 if test "X$x" = "X-L$additional_libdir"; then
7630 haveit=yes
7631 break
7633 done
7634 if test -z "$haveit"; then
7635 if test -d "$additional_libdir"; then
7636 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7642 -R*)
7643 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7644 if test "$enable_rpath" != no; then
7645 haveit=
7646 for x in $rpathdirs; do
7647 if test "X$x" = "X$dir"; then
7648 haveit=yes
7649 break
7651 done
7652 if test -z "$haveit"; then
7653 rpathdirs="$rpathdirs $dir"
7655 haveit=
7656 for x in $ltrpathdirs; do
7657 if test "X$x" = "X$dir"; then
7658 haveit=yes
7659 break
7661 done
7662 if test -z "$haveit"; then
7663 ltrpathdirs="$ltrpathdirs $dir"
7667 -l*)
7668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7670 *.la)
7671 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7674 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7675 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7677 esac
7678 done
7680 else
7681 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
7682 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7683 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7684 else
7685 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7686 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7691 done
7692 done
7693 if test "X$rpathdirs" != "X"; then
7694 if test -n "$hardcode_libdir_separator"; then
7695 alldirs=
7696 for found_dir in $rpathdirs; do
7697 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7698 done
7699 acl_save_libdir="$libdir"
7700 libdir="$alldirs"
7701 eval flag=\"$hardcode_libdir_flag_spec\"
7702 libdir="$acl_save_libdir"
7703 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7704 else
7705 for found_dir in $rpathdirs; do
7706 acl_save_libdir="$libdir"
7707 libdir="$found_dir"
7708 eval flag=\"$hardcode_libdir_flag_spec\"
7709 libdir="$acl_save_libdir"
7710 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7711 done
7714 if test "X$ltrpathdirs" != "X"; then
7715 for found_dir in $ltrpathdirs; do
7716 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7717 done
7724 if test -f ../gettext/uninstalled-config.sh; then
7725 relative_builddir='$(top_builddir)/../gettext'
7726 . ../gettext/uninstalled-config.sh
7727 else
7728 # The sister gettext directory doesn't exist and won't collect information on
7729 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7754 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7755 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 gt_save_LIBS="$LIBS"
7759 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7762 #include <CoreFoundation/CFPreferences.h>
7764 main ()
7766 CFPreferencesCopyAppValue(NULL, NULL)
7768 return 0;
7770 _ACEOF
7771 if ac_fn_c_try_link "$LINENO"; then :
7772 gt_cv_func_CFPreferencesCopyAppValue=yes
7773 else
7774 gt_cv_func_CFPreferencesCopyAppValue=no
7776 rm -f core conftest.err conftest.$ac_objext \
7777 conftest$ac_exeext conftest.$ac_ext
7778 LIBS="$gt_save_LIBS"
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7781 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7782 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7784 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
7788 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
7789 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 gt_save_LIBS="$LIBS"
7793 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 #include <CoreFoundation/CFLocale.h>
7798 main ()
7800 CFLocaleCopyPreferredLanguages();
7802 return 0;
7804 _ACEOF
7805 if ac_fn_c_try_link "$LINENO"; then :
7806 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
7807 else
7808 gt_cv_func_CFLocaleCopyPreferredLanguages=no
7810 rm -f core conftest.err conftest.$ac_objext \
7811 conftest$ac_exeext conftest.$ac_ext
7812 LIBS="$gt_save_LIBS"
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
7815 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
7816 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7818 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
7821 INTL_MACOSX_LIBS=
7822 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
7823 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7824 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
7832 LIBINTL=
7833 LTLIBINTL=
7834 POSUB=
7836 case " $gt_needs " in
7837 *" need-formatstring-macros "*) gt_api_version=3 ;;
7838 *" need-ngettext "*) gt_api_version=2 ;;
7839 *) gt_api_version=1 ;;
7840 esac
7841 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7842 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7844 if test "$USE_NLS" = "yes"; then
7845 gt_use_preinstalled_gnugettext=no
7848 if test $gt_api_version -ge 3; then
7849 gt_revision_test_code='
7850 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7851 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7852 #endif
7853 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7855 else
7856 gt_revision_test_code=
7858 if test $gt_api_version -ge 2; then
7859 gt_expression_test_code=' + * ngettext ("", "", 0)'
7860 else
7861 gt_expression_test_code=
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7865 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7866 if eval \${$gt_func_gnugettext_libc+:} false; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7872 #include <libintl.h>
7873 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7874 extern int _nl_msg_cat_cntr;
7875 extern int *_nl_domain_bindings;
7876 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
7877 #else
7878 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7879 #endif
7880 $gt_revision_test_code
7883 main ()
7886 bindtextdomain ("", "");
7887 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7890 return 0;
7892 _ACEOF
7893 if ac_fn_c_try_link "$LINENO"; then :
7894 eval "$gt_func_gnugettext_libc=yes"
7895 else
7896 eval "$gt_func_gnugettext_libc=no"
7898 rm -f core conftest.err conftest.$ac_objext \
7899 conftest$ac_exeext conftest.$ac_ext
7901 eval ac_res=\$$gt_func_gnugettext_libc
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7903 $as_echo "$ac_res" >&6; }
7905 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7911 am_save_CPPFLAGS="$CPPFLAGS"
7913 for element in $INCICONV; do
7914 haveit=
7915 for x in $CPPFLAGS; do
7917 acl_save_prefix="$prefix"
7918 prefix="$acl_final_prefix"
7919 acl_save_exec_prefix="$exec_prefix"
7920 exec_prefix="$acl_final_exec_prefix"
7921 eval x=\"$x\"
7922 exec_prefix="$acl_save_exec_prefix"
7923 prefix="$acl_save_prefix"
7925 if test "X$x" = "X$element"; then
7926 haveit=yes
7927 break
7929 done
7930 if test -z "$haveit"; then
7931 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7933 done
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7937 $as_echo_n "checking for iconv... " >&6; }
7938 if ${am_cv_func_iconv+:} false; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7942 am_cv_func_iconv="no, consider installing GNU libiconv"
7943 am_cv_lib_iconv=no
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7947 #include <stdlib.h>
7948 #include <iconv.h>
7951 main ()
7953 iconv_t cd = iconv_open("","");
7954 iconv(cd,NULL,NULL,NULL,NULL);
7955 iconv_close(cd);
7957 return 0;
7959 _ACEOF
7960 if ac_fn_c_try_link "$LINENO"; then :
7961 am_cv_func_iconv=yes
7963 rm -f core conftest.err conftest.$ac_objext \
7964 conftest$ac_exeext conftest.$ac_ext
7965 if test "$am_cv_func_iconv" != yes; then
7966 am_save_LIBS="$LIBS"
7967 LIBS="$LIBS $LIBICONV"
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7971 #include <stdlib.h>
7972 #include <iconv.h>
7975 main ()
7977 iconv_t cd = iconv_open("","");
7978 iconv(cd,NULL,NULL,NULL,NULL);
7979 iconv_close(cd);
7981 return 0;
7983 _ACEOF
7984 if ac_fn_c_try_link "$LINENO"; then :
7985 am_cv_lib_iconv=yes
7986 am_cv_func_iconv=yes
7988 rm -f core conftest.err conftest.$ac_objext \
7989 conftest$ac_exeext conftest.$ac_ext
7990 LIBS="$am_save_LIBS"
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7995 $as_echo "$am_cv_func_iconv" >&6; }
7996 if test "$am_cv_func_iconv" = yes; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7998 $as_echo_n "checking for working iconv... " >&6; }
7999 if ${am_cv_func_iconv_works+:} false; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8003 am_save_LIBS="$LIBS"
8004 if test $am_cv_lib_iconv = yes; then
8005 LIBS="$LIBS $LIBICONV"
8007 am_cv_func_iconv_works=no
8008 for ac_iconv_const in '' 'const'; do
8009 if test "$cross_compiling" = yes; then :
8010 case "$host_os" in
8011 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8012 *) am_cv_func_iconv_works="guessing yes" ;;
8013 esac
8014 else
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8018 #include <iconv.h>
8019 #include <string.h>
8021 #ifndef ICONV_CONST
8022 # define ICONV_CONST $ac_iconv_const
8023 #endif
8026 main ()
8028 int result = 0;
8029 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
8030 successful returns. This is even documented in
8031 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
8033 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8034 if (cd_utf8_to_88591 != (iconv_t)(-1))
8036 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8037 char buf[10];
8038 ICONV_CONST char *inptr = input;
8039 size_t inbytesleft = strlen (input);
8040 char *outptr = buf;
8041 size_t outbytesleft = sizeof (buf);
8042 size_t res = iconv (cd_utf8_to_88591,
8043 &inptr, &inbytesleft,
8044 &outptr, &outbytesleft);
8045 if (res == 0)
8046 result |= 1;
8047 iconv_close (cd_utf8_to_88591);
8050 /* Test against Solaris 10 bug: Failures are not distinguishable from
8051 successful returns. */
8053 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8054 if (cd_ascii_to_88591 != (iconv_t)(-1))
8056 static ICONV_CONST char input[] = "\263";
8057 char buf[10];
8058 ICONV_CONST char *inptr = input;
8059 size_t inbytesleft = strlen (input);
8060 char *outptr = buf;
8061 size_t outbytesleft = sizeof (buf);
8062 size_t res = iconv (cd_ascii_to_88591,
8063 &inptr, &inbytesleft,
8064 &outptr, &outbytesleft);
8065 if (res == 0)
8066 result |= 2;
8067 iconv_close (cd_ascii_to_88591);
8070 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8072 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8073 if (cd_88591_to_utf8 != (iconv_t)(-1))
8075 static ICONV_CONST char input[] = "\304";
8076 static char buf[2] = { (char)0xDE, (char)0xAD };
8077 ICONV_CONST char *inptr = input;
8078 size_t inbytesleft = 1;
8079 char *outptr = buf;
8080 size_t outbytesleft = 1;
8081 size_t res = iconv (cd_88591_to_utf8,
8082 &inptr, &inbytesleft,
8083 &outptr, &outbytesleft);
8084 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8085 result |= 4;
8086 iconv_close (cd_88591_to_utf8);
8089 #if 0 /* This bug could be worked around by the caller. */
8090 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8092 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8093 if (cd_88591_to_utf8 != (iconv_t)(-1))
8095 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8096 char buf[50];
8097 ICONV_CONST char *inptr = input;
8098 size_t inbytesleft = strlen (input);
8099 char *outptr = buf;
8100 size_t outbytesleft = sizeof (buf);
8101 size_t res = iconv (cd_88591_to_utf8,
8102 &inptr, &inbytesleft,
8103 &outptr, &outbytesleft);
8104 if ((int)res > 0)
8105 result |= 8;
8106 iconv_close (cd_88591_to_utf8);
8109 #endif
8110 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8111 provided. */
8113 /* Try standardized names. */
8114 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8115 /* Try IRIX, OSF/1 names. */
8116 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8117 /* Try AIX names. */
8118 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8119 /* Try HP-UX names. */
8120 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8121 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8122 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8123 result |= 16;
8124 if (cd1 != (iconv_t)(-1))
8125 iconv_close (cd1);
8126 if (cd2 != (iconv_t)(-1))
8127 iconv_close (cd2);
8128 if (cd3 != (iconv_t)(-1))
8129 iconv_close (cd3);
8130 if (cd4 != (iconv_t)(-1))
8131 iconv_close (cd4);
8133 return result;
8136 return 0;
8138 _ACEOF
8139 if ac_fn_c_try_run "$LINENO"; then :
8140 am_cv_func_iconv_works=yes
8142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8143 conftest.$ac_objext conftest.beam conftest.$ac_ext
8146 test "$am_cv_func_iconv_works" = no || break
8147 done
8148 LIBS="$am_save_LIBS"
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8152 $as_echo "$am_cv_func_iconv_works" >&6; }
8153 case "$am_cv_func_iconv_works" in
8154 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8155 *) am_func_iconv=yes ;;
8156 esac
8157 else
8158 am_func_iconv=no am_cv_lib_iconv=no
8160 if test "$am_func_iconv" = yes; then
8162 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8165 if test "$am_cv_lib_iconv" = yes; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8167 $as_echo_n "checking how to link with libiconv... " >&6; }
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8169 $as_echo "$LIBICONV" >&6; }
8170 else
8171 CPPFLAGS="$am_save_CPPFLAGS"
8172 LIBICONV=
8173 LTLIBICONV=
8181 use_additional=yes
8183 acl_save_prefix="$prefix"
8184 prefix="$acl_final_prefix"
8185 acl_save_exec_prefix="$exec_prefix"
8186 exec_prefix="$acl_final_exec_prefix"
8188 eval additional_includedir=\"$includedir\"
8189 eval additional_libdir=\"$libdir\"
8191 exec_prefix="$acl_save_exec_prefix"
8192 prefix="$acl_save_prefix"
8195 # Check whether --with-libintl-prefix was given.
8196 if test "${with_libintl_prefix+set}" = set; then :
8197 withval=$with_libintl_prefix;
8198 if test "X$withval" = "Xno"; then
8199 use_additional=no
8200 else
8201 if test "X$withval" = "X"; then
8203 acl_save_prefix="$prefix"
8204 prefix="$acl_final_prefix"
8205 acl_save_exec_prefix="$exec_prefix"
8206 exec_prefix="$acl_final_exec_prefix"
8208 eval additional_includedir=\"$includedir\"
8209 eval additional_libdir=\"$libdir\"
8211 exec_prefix="$acl_save_exec_prefix"
8212 prefix="$acl_save_prefix"
8214 else
8215 additional_includedir="$withval/include"
8216 additional_libdir="$withval/lib"
8223 # Check whether --with-libintl-type was given.
8224 if test "${with_libintl_type+set}" = set; then :
8225 withval=$with_libintl_type; with_libintl_type=$withval
8226 else
8227 with_libintl_type=auto
8230 lib_type=`eval echo \$with_libintl_type`
8232 LIBINTL=
8233 LTLIBINTL=
8234 INCINTL=
8235 rpathdirs=
8236 ltrpathdirs=
8237 names_already_handled=
8238 names_next_round='intl '
8239 while test -n "$names_next_round"; do
8240 names_this_round="$names_next_round"
8241 names_next_round=
8242 for name in $names_this_round; do
8243 already_handled=
8244 for n in $names_already_handled; do
8245 if test "$n" = "$name"; then
8246 already_handled=yes
8247 break
8249 done
8250 if test -z "$already_handled"; then
8251 names_already_handled="$names_already_handled $name"
8252 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8253 eval value=\"\$HAVE_LIB$uppername\"
8254 if test -n "$value"; then
8255 if test "$value" = yes; then
8256 eval value=\"\$LIB$uppername\"
8257 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8258 eval value=\"\$LTLIB$uppername\"
8259 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8260 else
8263 else
8264 found_dir=
8265 found_la=
8266 found_so=
8267 found_a=
8268 if test $use_additional = yes; then
8269 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8270 found_dir="$additional_libdir"
8271 found_so="$additional_libdir/lib$name.$shlibext"
8272 if test -f "$additional_libdir/lib$name.la"; then
8273 found_la="$additional_libdir/lib$name.la"
8275 elif test x$lib_type != xshared; then
8276 if test -f "$additional_libdir/lib$name.$libext"; then
8277 found_dir="$additional_libdir"
8278 found_a="$additional_libdir/lib$name.$libext"
8279 if test -f "$additional_libdir/lib$name.la"; then
8280 found_la="$additional_libdir/lib$name.la"
8285 if test "X$found_dir" = "X"; then
8286 for x in $LDFLAGS $LTLIBINTL; do
8288 acl_save_prefix="$prefix"
8289 prefix="$acl_final_prefix"
8290 acl_save_exec_prefix="$exec_prefix"
8291 exec_prefix="$acl_final_exec_prefix"
8292 eval x=\"$x\"
8293 exec_prefix="$acl_save_exec_prefix"
8294 prefix="$acl_save_prefix"
8296 case "$x" in
8297 -L*)
8298 dir=`echo "X$x" | sed -e 's/^X-L//'`
8299 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8300 found_dir="$dir"
8301 found_so="$dir/lib$name.$shlibext"
8302 if test -f "$dir/lib$name.la"; then
8303 found_la="$dir/lib$name.la"
8305 elif test x$lib_type != xshared; then
8306 if test -f "$dir/lib$name.$libext"; then
8307 found_dir="$dir"
8308 found_a="$dir/lib$name.$libext"
8309 if test -f "$dir/lib$name.la"; then
8310 found_la="$dir/lib$name.la"
8315 esac
8316 if test "X$found_dir" != "X"; then
8317 break
8319 done
8321 if test "X$found_dir" != "X"; then
8322 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8323 if test "X$found_so" != "X"; then
8324 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8325 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8326 else
8327 haveit=
8328 for x in $ltrpathdirs; do
8329 if test "X$x" = "X$found_dir"; then
8330 haveit=yes
8331 break
8333 done
8334 if test -z "$haveit"; then
8335 ltrpathdirs="$ltrpathdirs $found_dir"
8337 if test "$hardcode_direct" = yes; then
8338 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8339 else
8340 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8341 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8342 haveit=
8343 for x in $rpathdirs; do
8344 if test "X$x" = "X$found_dir"; then
8345 haveit=yes
8346 break
8348 done
8349 if test -z "$haveit"; then
8350 rpathdirs="$rpathdirs $found_dir"
8352 else
8353 haveit=
8354 for x in $LDFLAGS $LIBINTL; do
8356 acl_save_prefix="$prefix"
8357 prefix="$acl_final_prefix"
8358 acl_save_exec_prefix="$exec_prefix"
8359 exec_prefix="$acl_final_exec_prefix"
8360 eval x=\"$x\"
8361 exec_prefix="$acl_save_exec_prefix"
8362 prefix="$acl_save_prefix"
8364 if test "X$x" = "X-L$found_dir"; then
8365 haveit=yes
8366 break
8368 done
8369 if test -z "$haveit"; then
8370 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8372 if test "$hardcode_minus_L" != no; then
8373 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8374 else
8375 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8380 else
8381 if test "X$found_a" != "X"; then
8382 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8383 else
8384 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8387 additional_includedir=
8388 case "$found_dir" in
8389 */lib | */lib/)
8390 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8391 additional_includedir="$basedir/include"
8393 esac
8394 if test "X$additional_includedir" != "X"; then
8395 if test "X$additional_includedir" != "X/usr/include"; then
8396 haveit=
8397 if test "X$additional_includedir" = "X/usr/local/include"; then
8398 if test -n "$GCC"; then
8399 case $host_os in
8400 linux*) haveit=yes;;
8401 esac
8404 if test -z "$haveit"; then
8405 for x in $CPPFLAGS $INCINTL; do
8407 acl_save_prefix="$prefix"
8408 prefix="$acl_final_prefix"
8409 acl_save_exec_prefix="$exec_prefix"
8410 exec_prefix="$acl_final_exec_prefix"
8411 eval x=\"$x\"
8412 exec_prefix="$acl_save_exec_prefix"
8413 prefix="$acl_save_prefix"
8415 if test "X$x" = "X-I$additional_includedir"; then
8416 haveit=yes
8417 break
8419 done
8420 if test -z "$haveit"; then
8421 if test -d "$additional_includedir"; then
8422 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8428 if test -n "$found_la"; then
8429 save_libdir="$libdir"
8430 case "$found_la" in
8431 */* | *\\*) . "$found_la" ;;
8432 *) . "./$found_la" ;;
8433 esac
8434 libdir="$save_libdir"
8435 for dep in $dependency_libs; do
8436 case "$dep" in
8437 -L*)
8438 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8439 if test "X$additional_libdir" != "X/usr/lib"; then
8440 haveit=
8441 if test "X$additional_libdir" = "X/usr/local/lib"; then
8442 if test -n "$GCC"; then
8443 case $host_os in
8444 linux*) haveit=yes;;
8445 esac
8448 if test -z "$haveit"; then
8449 haveit=
8450 for x in $LDFLAGS $LIBINTL; do
8452 acl_save_prefix="$prefix"
8453 prefix="$acl_final_prefix"
8454 acl_save_exec_prefix="$exec_prefix"
8455 exec_prefix="$acl_final_exec_prefix"
8456 eval x=\"$x\"
8457 exec_prefix="$acl_save_exec_prefix"
8458 prefix="$acl_save_prefix"
8460 if test "X$x" = "X-L$additional_libdir"; then
8461 haveit=yes
8462 break
8464 done
8465 if test -z "$haveit"; then
8466 if test -d "$additional_libdir"; then
8467 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8470 haveit=
8471 for x in $LDFLAGS $LTLIBINTL; do
8473 acl_save_prefix="$prefix"
8474 prefix="$acl_final_prefix"
8475 acl_save_exec_prefix="$exec_prefix"
8476 exec_prefix="$acl_final_exec_prefix"
8477 eval x=\"$x\"
8478 exec_prefix="$acl_save_exec_prefix"
8479 prefix="$acl_save_prefix"
8481 if test "X$x" = "X-L$additional_libdir"; then
8482 haveit=yes
8483 break
8485 done
8486 if test -z "$haveit"; then
8487 if test -d "$additional_libdir"; then
8488 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8494 -R*)
8495 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8496 if test "$enable_rpath" != no; then
8497 haveit=
8498 for x in $rpathdirs; do
8499 if test "X$x" = "X$dir"; then
8500 haveit=yes
8501 break
8503 done
8504 if test -z "$haveit"; then
8505 rpathdirs="$rpathdirs $dir"
8507 haveit=
8508 for x in $ltrpathdirs; do
8509 if test "X$x" = "X$dir"; then
8510 haveit=yes
8511 break
8513 done
8514 if test -z "$haveit"; then
8515 ltrpathdirs="$ltrpathdirs $dir"
8519 -l*)
8520 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8522 *.la)
8523 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8526 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8527 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8529 esac
8530 done
8532 else
8533 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
8534 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8535 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8536 else
8537 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
8538 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
8543 done
8544 done
8545 if test "X$rpathdirs" != "X"; then
8546 if test -n "$hardcode_libdir_separator"; then
8547 alldirs=
8548 for found_dir in $rpathdirs; do
8549 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8550 done
8551 acl_save_libdir="$libdir"
8552 libdir="$alldirs"
8553 eval flag=\"$hardcode_libdir_flag_spec\"
8554 libdir="$acl_save_libdir"
8555 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8556 else
8557 for found_dir in $rpathdirs; do
8558 acl_save_libdir="$libdir"
8559 libdir="$found_dir"
8560 eval flag=\"$hardcode_libdir_flag_spec\"
8561 libdir="$acl_save_libdir"
8562 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8563 done
8566 if test "X$ltrpathdirs" != "X"; then
8567 for found_dir in $ltrpathdirs; do
8568 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8569 done
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8573 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8574 if eval \${$gt_func_gnugettext_libintl+:} false; then :
8575 $as_echo_n "(cached) " >&6
8576 else
8577 gt_save_CPPFLAGS="$CPPFLAGS"
8578 CPPFLAGS="$CPPFLAGS $INCINTL"
8579 gt_save_LIBS="$LIBS"
8580 LIBS="$LIBS $LIBINTL"
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8584 #include <libintl.h>
8585 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8586 extern int _nl_msg_cat_cntr;
8587 extern
8588 #ifdef __cplusplus
8590 #endif
8591 const char *_nl_expand_alias (const char *);
8592 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8593 #else
8594 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8595 #endif
8596 $gt_revision_test_code
8599 main ()
8602 bindtextdomain ("", "");
8603 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8606 return 0;
8608 _ACEOF
8609 if ac_fn_c_try_link "$LINENO"; then :
8610 eval "$gt_func_gnugettext_libintl=yes"
8611 else
8612 eval "$gt_func_gnugettext_libintl=no"
8614 rm -f core conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
8616 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8617 LIBS="$LIBS $LIBICONV"
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8621 #include <libintl.h>
8622 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8623 extern int _nl_msg_cat_cntr;
8624 extern
8625 #ifdef __cplusplus
8627 #endif
8628 const char *_nl_expand_alias (const char *);
8629 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8630 #else
8631 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8632 #endif
8633 $gt_revision_test_code
8636 main ()
8639 bindtextdomain ("", "");
8640 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8643 return 0;
8645 _ACEOF
8646 if ac_fn_c_try_link "$LINENO"; then :
8647 LIBINTL="$LIBINTL $LIBICONV"
8648 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8649 eval "$gt_func_gnugettext_libintl=yes"
8652 rm -f core conftest.err conftest.$ac_objext \
8653 conftest$ac_exeext conftest.$ac_ext
8655 CPPFLAGS="$gt_save_CPPFLAGS"
8656 LIBS="$gt_save_LIBS"
8658 eval ac_res=\$$gt_func_gnugettext_libintl
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8660 $as_echo "$ac_res" >&6; }
8663 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8664 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8665 && test "$PACKAGE" != gettext-runtime \
8666 && test "$PACKAGE" != gettext-tools; }; then
8667 gt_use_preinstalled_gnugettext=yes
8668 else
8669 LIBINTL=
8670 LTLIBINTL=
8671 INCINTL=
8676 if test -n "$INTL_MACOSX_LIBS"; then
8677 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8678 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8679 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8680 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8684 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8685 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8687 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8689 else
8690 USE_NLS=no
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8695 $as_echo_n "checking whether to use NLS... " >&6; }
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8697 $as_echo "$USE_NLS" >&6; }
8698 if test "$USE_NLS" = "yes"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8700 $as_echo_n "checking where the gettext function comes from... " >&6; }
8701 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8702 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8703 gt_source="external libintl"
8704 else
8705 gt_source="libc"
8707 else
8708 gt_source="included intl directory"
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8711 $as_echo "$gt_source" >&6; }
8714 if test "$USE_NLS" = "yes"; then
8716 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8717 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8719 $as_echo_n "checking how to link with libintl... " >&6; }
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8721 $as_echo "$LIBINTL" >&6; }
8723 for element in $INCINTL; do
8724 haveit=
8725 for x in $CPPFLAGS; do
8727 acl_save_prefix="$prefix"
8728 prefix="$acl_final_prefix"
8729 acl_save_exec_prefix="$exec_prefix"
8730 exec_prefix="$acl_final_exec_prefix"
8731 eval x=\"$x\"
8732 exec_prefix="$acl_save_exec_prefix"
8733 prefix="$acl_save_prefix"
8735 if test "X$x" = "X$element"; then
8736 haveit=yes
8737 break
8739 done
8740 if test -z "$haveit"; then
8741 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8743 done
8748 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8751 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8755 POSUB=po
8760 INTLLIBS="$LIBINTL"
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8780 $as_echo_n "checking whether NLS is requested... " >&6; }
8781 if test x"$USE_NLS" != xyes; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783 $as_echo "no" >&6; }
8784 else
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8786 $as_echo "yes" >&6; }
8788 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8792 $as_echo_n "checking for catalogs to be installed... " >&6; }
8793 # Look for .po and .gmo files in the source directory.
8794 CATALOGS=
8795 XLINGUAS=
8796 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8797 # If there aren't any .gmo files the shell will give us the
8798 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8799 # weeded out.
8800 case "$cat" in *\**)
8801 continue;;
8802 esac
8803 # The quadruple backslash is collapsed to a double backslash
8804 # by the backticks, then collapsed again by the double quotes,
8805 # leaving us with one backslash in the sed expression (right
8806 # before the dot that mustn't act as a wildcard).
8807 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8808 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8809 # The user is allowed to set LINGUAS to a list of languages to
8810 # install catalogs for. If it's empty that means "all of them."
8811 if test "x$LINGUAS" = x; then
8812 CATALOGS="$CATALOGS $cat"
8813 XLINGUAS="$XLINGUAS $lang"
8814 else
8815 case "$LINGUAS" in *$lang*)
8816 CATALOGS="$CATALOGS $cat"
8817 XLINGUAS="$XLINGUAS $lang"
8819 esac
8821 done
8822 LINGUAS="$XLINGUAS"
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8824 $as_echo "$LINGUAS" >&6; }
8827 DATADIRNAME=share
8829 INSTOBJEXT=.mo
8831 GENCAT=gencat
8833 CATOBJEXT=.gmo
8840 # Prepare PATH_SEPARATOR.
8841 # The user is always right.
8842 if test "${PATH_SEPARATOR+set}" != set; then
8843 echo "#! /bin/sh" >conf$$.sh
8844 echo "exit 0" >>conf$$.sh
8845 chmod +x conf$$.sh
8846 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8847 PATH_SEPARATOR=';'
8848 else
8849 PATH_SEPARATOR=:
8851 rm -f conf$$.sh
8854 # Find out how to test for executable files. Don't use a zero-byte file,
8855 # as systems may use methods other than mode bits to determine executability.
8856 cat >conf$$.file <<_ASEOF
8857 #! /bin/sh
8858 exit 0
8859 _ASEOF
8860 chmod +x conf$$.file
8861 if test -x conf$$.file >/dev/null 2>&1; then
8862 ac_executable_p="test -x"
8863 else
8864 ac_executable_p="test -f"
8866 rm -f conf$$.file
8868 # Extract the first word of "msgfmt", so it can be a program name with args.
8869 set dummy msgfmt; ac_word=$2
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871 $as_echo_n "checking for $ac_word... " >&6; }
8872 if ${ac_cv_path_MSGFMT+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 case "$MSGFMT" in
8876 [\\/]* | ?:[\\/]*)
8877 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8880 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8881 for ac_dir in $PATH; do
8882 IFS="$ac_save_IFS"
8883 test -z "$ac_dir" && ac_dir=.
8884 for ac_exec_ext in '' $ac_executable_extensions; do
8885 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8886 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
8887 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8888 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8889 break 2
8892 done
8893 done
8894 IFS="$ac_save_IFS"
8895 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8897 esac
8899 MSGFMT="$ac_cv_path_MSGFMT"
8900 if test "$MSGFMT" != ":"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8902 $as_echo "$MSGFMT" >&6; }
8903 else
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8908 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8909 set dummy gmsgfmt; ac_word=$2
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8911 $as_echo_n "checking for $ac_word... " >&6; }
8912 if ${ac_cv_path_GMSGFMT+:} false; then :
8913 $as_echo_n "(cached) " >&6
8914 else
8915 case $GMSGFMT in
8916 [\\/]* | ?:[\\/]*)
8917 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921 for as_dir in $PATH
8923 IFS=$as_save_IFS
8924 test -z "$as_dir" && as_dir=.
8925 for ac_exec_ext in '' $ac_executable_extensions; do
8926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8927 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8929 break 2
8931 done
8932 done
8933 IFS=$as_save_IFS
8935 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8937 esac
8939 GMSGFMT=$ac_cv_path_GMSGFMT
8940 if test -n "$GMSGFMT"; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8942 $as_echo "$GMSGFMT" >&6; }
8943 else
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945 $as_echo "no" >&6; }
8951 # Prepare PATH_SEPARATOR.
8952 # The user is always right.
8953 if test "${PATH_SEPARATOR+set}" != set; then
8954 echo "#! /bin/sh" >conf$$.sh
8955 echo "exit 0" >>conf$$.sh
8956 chmod +x conf$$.sh
8957 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8958 PATH_SEPARATOR=';'
8959 else
8960 PATH_SEPARATOR=:
8962 rm -f conf$$.sh
8965 # Find out how to test for executable files. Don't use a zero-byte file,
8966 # as systems may use methods other than mode bits to determine executability.
8967 cat >conf$$.file <<_ASEOF
8968 #! /bin/sh
8969 exit 0
8970 _ASEOF
8971 chmod +x conf$$.file
8972 if test -x conf$$.file >/dev/null 2>&1; then
8973 ac_executable_p="test -x"
8974 else
8975 ac_executable_p="test -f"
8977 rm -f conf$$.file
8979 # Extract the first word of "xgettext", so it can be a program name with args.
8980 set dummy xgettext; ac_word=$2
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8982 $as_echo_n "checking for $ac_word... " >&6; }
8983 if ${ac_cv_path_XGETTEXT+:} false; then :
8984 $as_echo_n "(cached) " >&6
8985 else
8986 case "$XGETTEXT" in
8987 [\\/]* | ?:[\\/]*)
8988 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8991 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8992 for ac_dir in $PATH; do
8993 IFS="$ac_save_IFS"
8994 test -z "$ac_dir" && ac_dir=.
8995 for ac_exec_ext in '' $ac_executable_extensions; do
8996 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8997 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8998 (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
8999 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
9000 break 2
9003 done
9004 done
9005 IFS="$ac_save_IFS"
9006 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9008 esac
9010 XGETTEXT="$ac_cv_path_XGETTEXT"
9011 if test "$XGETTEXT" != ":"; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
9013 $as_echo "$XGETTEXT" >&6; }
9014 else
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016 $as_echo "no" >&6; }
9019 rm -f messages.po
9022 # Prepare PATH_SEPARATOR.
9023 # The user is always right.
9024 if test "${PATH_SEPARATOR+set}" != set; then
9025 echo "#! /bin/sh" >conf$$.sh
9026 echo "exit 0" >>conf$$.sh
9027 chmod +x conf$$.sh
9028 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9029 PATH_SEPARATOR=';'
9030 else
9031 PATH_SEPARATOR=:
9033 rm -f conf$$.sh
9036 # Find out how to test for executable files. Don't use a zero-byte file,
9037 # as systems may use methods other than mode bits to determine executability.
9038 cat >conf$$.file <<_ASEOF
9039 #! /bin/sh
9040 exit 0
9041 _ASEOF
9042 chmod +x conf$$.file
9043 if test -x conf$$.file >/dev/null 2>&1; then
9044 ac_executable_p="test -x"
9045 else
9046 ac_executable_p="test -f"
9048 rm -f conf$$.file
9050 # Extract the first word of "msgmerge", so it can be a program name with args.
9051 set dummy msgmerge; ac_word=$2
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9053 $as_echo_n "checking for $ac_word... " >&6; }
9054 if ${ac_cv_path_MSGMERGE+:} false; then :
9055 $as_echo_n "(cached) " >&6
9056 else
9057 case "$MSGMERGE" in
9058 [\\/]* | ?:[\\/]*)
9059 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
9062 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9063 for ac_dir in $PATH; do
9064 IFS="$ac_save_IFS"
9065 test -z "$ac_dir" && ac_dir=.
9066 for ac_exec_ext in '' $ac_executable_extensions; do
9067 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9068 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
9069 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
9070 break 2
9073 done
9074 done
9075 IFS="$ac_save_IFS"
9076 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
9078 esac
9080 MSGMERGE="$ac_cv_path_MSGMERGE"
9081 if test "$MSGMERGE" != ":"; then
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
9083 $as_echo "$MSGMERGE" >&6; }
9084 else
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9086 $as_echo "no" >&6; }
9090 if test "$GMSGFMT" != ":"; then
9091 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
9092 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9094 else
9095 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
9097 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
9098 GMSGFMT=":"
9102 if test "$XGETTEXT" != ":"; then
9103 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
9104 (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
9106 else
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
9108 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
9109 XGETTEXT=":"
9111 rm -f messages.po
9114 ac_config_commands="$ac_config_commands default-2"
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9119 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9120 if ${ac_cv_c_bigendian+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 ac_cv_c_bigendian=unknown
9124 # See if we're dealing with a universal compiler.
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9127 #ifndef __APPLE_CC__
9128 not a universal capable compiler
9129 #endif
9130 typedef int dummy;
9132 _ACEOF
9133 if ac_fn_c_try_compile "$LINENO"; then :
9135 # Check for potential -arch flags. It is not universal unless
9136 # there are at least two -arch flags with different values.
9137 ac_arch=
9138 ac_prev=
9139 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9140 if test -n "$ac_prev"; then
9141 case $ac_word in
9142 i?86 | x86_64 | ppc | ppc64)
9143 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9144 ac_arch=$ac_word
9145 else
9146 ac_cv_c_bigendian=universal
9147 break
9150 esac
9151 ac_prev=
9152 elif test "x$ac_word" = "x-arch"; then
9153 ac_prev=arch
9155 done
9157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9158 if test $ac_cv_c_bigendian = unknown; then
9159 # See if sys/param.h defines the BYTE_ORDER macro.
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9162 #include <sys/types.h>
9163 #include <sys/param.h>
9166 main ()
9168 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9169 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9170 && LITTLE_ENDIAN)
9171 bogus endian macros
9172 #endif
9175 return 0;
9177 _ACEOF
9178 if ac_fn_c_try_compile "$LINENO"; then :
9179 # It does; now see whether it defined to BIG_ENDIAN or not.
9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h. */
9182 #include <sys/types.h>
9183 #include <sys/param.h>
9186 main ()
9188 #if BYTE_ORDER != BIG_ENDIAN
9189 not big endian
9190 #endif
9193 return 0;
9195 _ACEOF
9196 if ac_fn_c_try_compile "$LINENO"; then :
9197 ac_cv_c_bigendian=yes
9198 else
9199 ac_cv_c_bigendian=no
9201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9205 if test $ac_cv_c_bigendian = unknown; then
9206 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9209 #include <limits.h>
9212 main ()
9214 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9215 bogus endian macros
9216 #endif
9219 return 0;
9221 _ACEOF
9222 if ac_fn_c_try_compile "$LINENO"; then :
9223 # It does; now see whether it defined to _BIG_ENDIAN or not.
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 #include <limits.h>
9229 main ()
9231 #ifndef _BIG_ENDIAN
9232 not big endian
9233 #endif
9236 return 0;
9238 _ACEOF
9239 if ac_fn_c_try_compile "$LINENO"; then :
9240 ac_cv_c_bigendian=yes
9241 else
9242 ac_cv_c_bigendian=no
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248 if test $ac_cv_c_bigendian = unknown; then
9249 # Compile a test program.
9250 if test "$cross_compiling" = yes; then :
9251 # Try to guess by grepping values from an object file.
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9254 short int ascii_mm[] =
9255 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9256 short int ascii_ii[] =
9257 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9258 int use_ascii (int i) {
9259 return ascii_mm[i] + ascii_ii[i];
9261 short int ebcdic_ii[] =
9262 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9263 short int ebcdic_mm[] =
9264 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9265 int use_ebcdic (int i) {
9266 return ebcdic_mm[i] + ebcdic_ii[i];
9268 extern int foo;
9271 main ()
9273 return use_ascii (foo) == use_ebcdic (foo);
9275 return 0;
9277 _ACEOF
9278 if ac_fn_c_try_compile "$LINENO"; then :
9279 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9280 ac_cv_c_bigendian=yes
9282 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9283 if test "$ac_cv_c_bigendian" = unknown; then
9284 ac_cv_c_bigendian=no
9285 else
9286 # finding both strings is unlikely to happen, but who knows?
9287 ac_cv_c_bigendian=unknown
9291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9292 else
9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h. */
9295 $ac_includes_default
9297 main ()
9300 /* Are we little or big endian? From Harbison&Steele. */
9301 union
9303 long int l;
9304 char c[sizeof (long int)];
9305 } u;
9306 u.l = 1;
9307 return u.c[sizeof (long int) - 1] == 1;
9310 return 0;
9312 _ACEOF
9313 if ac_fn_c_try_run "$LINENO"; then :
9314 ac_cv_c_bigendian=no
9315 else
9316 ac_cv_c_bigendian=yes
9318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9319 conftest.$ac_objext conftest.beam conftest.$ac_ext
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9325 $as_echo "$ac_cv_c_bigendian" >&6; }
9326 case $ac_cv_c_bigendian in #(
9327 yes)
9328 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9329 ;; #(
9331 ;; #(
9332 universal)
9334 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9336 ;; #(
9338 as_fn_error $? "unknown endianness
9339 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9340 esac
9345 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
9346 NATIVE_LINKER_TRUE=
9347 NATIVE_LINKER_FALSE='#'
9348 else
9349 NATIVE_LINKER_TRUE='#'
9350 NATIVE_LINKER_FALSE=
9353 if test "$GCC" = yes; then
9354 GCC_TRUE=
9355 GCC_FALSE='#'
9356 else
9357 GCC_TRUE='#'
9358 GCC_FALSE=
9362 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
9363 NATIVE_OR_CROSS_LINKER_TRUE=
9364 NATIVE_OR_CROSS_LINKER_FALSE='#'
9365 else
9366 NATIVE_OR_CROSS_LINKER_TRUE='#'
9367 NATIVE_OR_CROSS_LINKER_FALSE=
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
9372 $as_echo_n "checking whether static linking works... " >&6; }
9373 if ${gold_cv_lib_static+:} false; then :
9374 $as_echo_n "(cached) " >&6
9375 else
9376 LDFLAGS_hold=$LDFLAGS
9377 LDFLAGS="$LDFLAGS -static"
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9381 void f() { }
9383 main ()
9387 return 0;
9389 _ACEOF
9390 if ac_fn_c_try_link "$LINENO"; then :
9391 gold_cv_lib_static=yes
9392 else
9393 gold_cv_lib_static=no
9395 rm -f core conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9397 LDFLAGS=$LDFLAGS_hold
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
9400 $as_echo "$gold_cv_lib_static" >&6; }
9401 if test "$gold_cv_lib_static" = "yes"; then
9402 HAVE_STATIC_TRUE=
9403 HAVE_STATIC_FALSE='#'
9404 else
9405 HAVE_STATIC_TRUE='#'
9406 HAVE_STATIC_FALSE=
9411 case $target_cpu in
9412 powerpc*) false;;
9413 x86_64) false;;
9414 sparc64) false;;
9415 s390x) false;;
9416 *) true;;
9417 esac; then
9418 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
9419 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
9420 else
9421 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
9422 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
9427 $as_echo_n "checking for gcc >= 4.1... " >&6; }
9428 if ${gold_cv_prog_gcc41+:} false; then :
9429 $as_echo_n "(cached) " >&6
9430 else
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9434 #if !defined __GNUC__
9435 error
9436 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
9437 error
9438 #endif
9440 _ACEOF
9441 if ac_fn_c_try_compile "$LINENO"; then :
9442 gold_cv_prog_gcc41=yes
9443 else
9444 gold_cv_prog_gcc41=no
9446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
9449 $as_echo "$gold_cv_prog_gcc41" >&6; }
9451 save_CFLAGS="$CFLAGS"
9452 CFLAGS="$CFLAGS -mcmodel=medium"
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9455 int i;
9456 _ACEOF
9457 if ac_fn_c_try_compile "$LINENO"; then :
9458 have_mcmodel_medium=yes
9459 else
9460 have_mcmodel_medium=no
9462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463 CFLAGS="$save_CFLAGS"
9464 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
9465 MCMODEL_MEDIUM_TRUE=
9466 MCMODEL_MEDIUM_FALSE='#'
9467 else
9468 MCMODEL_MEDIUM_TRUE='#'
9469 MCMODEL_MEDIUM_FALSE=
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 9" >&5
9474 $as_echo_n "checking for gcc >= 9... " >&6; }
9475 if ${gold_cv_prog_gcc9+:} false; then :
9476 $as_echo_n "(cached) " >&6
9477 else
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9481 #if !defined __GNUC__ || __GNUC__ < 9
9482 error
9483 #endif
9485 _ACEOF
9486 if ac_fn_c_try_compile "$LINENO"; then :
9487 gold_cv_prog_gcc9=yes
9488 else
9489 gold_cv_prog_gcc9=no
9491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc9" >&5
9494 $as_echo "$gold_cv_prog_gcc9" >&6; }
9495 if test "$gold_cv_prog_gcc9" = "yes"; then
9496 GCC9_TRUE=
9497 GCC9_FALSE='#'
9498 else
9499 GCC9_TRUE='#'
9500 GCC9_FALSE=
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fcf-protection" >&5
9505 $as_echo_n "checking for -fcf-protection... " >&6; }
9506 if ${gold_cv_cflags_cf_protection+:} false; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9512 #if !defined __x86_64__ || !defined __CET__
9513 error
9514 #endif
9516 _ACEOF
9517 if ac_fn_c_try_compile "$LINENO"; then :
9518 gold_cv_cflags_cf_protection=yes
9519 else
9520 gold_cv_cflags_cf_protection=no
9522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_cflags_cf_protection" >&5
9525 $as_echo "$gold_cv_cflags_cf_protection" >&6; }
9526 if test "$gold_cv_cflags_cf_protection" = "yes"; then
9527 CFLAGS_CF_PROTECTION_TRUE=
9528 CFLAGS_CF_PROTECTION_FALSE='#'
9529 else
9530 CFLAGS_CF_PROTECTION_TRUE='#'
9531 CFLAGS_CF_PROTECTION_FALSE=
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
9536 $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
9537 if ${gold_cv_merge_constants+:} false; then :
9538 $as_echo_n "(cached) " >&6
9539 else
9541 save_CFLAGS="$CFLAGS"
9542 CFLAGS="$CFLAGS -fmerge-constants"
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9545 const char *s = "foo";
9546 _ACEOF
9547 if ac_fn_c_try_compile "$LINENO"; then :
9548 gold_cv_merge_constants=yes
9549 else
9550 gold_cv_merge_constants=no
9552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9553 CFLAGS="$save_CFLAGS"
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
9556 $as_echo "$gold_cv_merge_constants" >&6; }
9558 if test "$gold_cv_merge_constants" = yes; then :
9559 MERGE_CONSTANTS_FLAG=-fmerge-constants
9560 else
9561 MERGE_CONSTANTS_FLAG=
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
9565 $as_echo_n "checking for thread support... " >&6; }
9566 if ${gold_cv_c_thread+:} false; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571 __thread int i = 1;
9572 _ACEOF
9573 if ac_fn_c_try_compile "$LINENO"; then :
9574 gold_cv_c_thread=yes
9575 else
9576 gold_cv_c_thread=no
9578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
9581 $as_echo "$gold_cv_c_thread" >&6; }
9583 if test "$gold_cv_c_thread" = "yes"; then
9584 TLS_TRUE=
9585 TLS_FALSE='#'
9586 else
9587 TLS_TRUE='#'
9588 TLS_FALSE=
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
9593 $as_echo_n "checking for glibc >= 2.4... " >&6; }
9594 if ${gold_cv_lib_glibc24+:} false; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9600 #include <features.h>
9601 #if !defined __GLIBC__
9602 error
9603 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
9604 error
9605 #endif
9607 _ACEOF
9608 if ac_fn_c_try_compile "$LINENO"; then :
9609 gold_cv_lib_glibc24=yes
9610 else
9611 gold_cv_lib_glibc24=no
9613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
9616 $as_echo "$gold_cv_lib_glibc24" >&6; }
9618 if test "$gold_cv_lib_glibc24" = "yes"; then
9619 STATIC_TLS_TRUE=
9620 STATIC_TLS_FALSE='#'
9621 else
9622 STATIC_TLS_TRUE='#'
9623 STATIC_TLS_FALSE=
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
9628 $as_echo_n "checking for omp support... " >&6; }
9629 if ${gold_cv_c_threadprivate+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 save_CFLAGS="$CFLAGS"
9633 CFLAGS="$CFLAGS -fopenmp"
9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9637 #include <omp.h>
9638 int i;
9639 #pragma omp threadprivate (i)
9641 _ACEOF
9642 if ac_fn_c_try_compile "$LINENO"; then :
9643 gold_cv_c_threadprivate=yes
9644 else
9645 gold_cv_c_threadprivate=no
9647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648 CFLAGS="$save_CFLAGS"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
9651 $as_echo "$gold_cv_c_threadprivate" >&6; }
9652 if test "$gold_cv_c_threadprivate" = "yes"; then
9654 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
9657 if test "$gold_cv_c_threadprivate" = "yes"; then
9658 OMP_SUPPORT_TRUE=
9659 OMP_SUPPORT_FALSE='#'
9660 else
9661 OMP_SUPPORT_TRUE='#'
9662 OMP_SUPPORT_FALSE=
9666 save_CFLAGS="$CFLAGS"
9667 CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
9668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h. */
9671 __thread int i;
9672 void foo (void)
9674 i = 10;
9677 _ACEOF
9678 if ac_fn_c_try_compile "$LINENO"; then :
9679 have_tls_gnu2=yes
9680 else
9681 have_tls_gnu2=no
9683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9684 CFLAGS="$save_CFLAGS"
9685 if test "$have_tls_gnu2" = "yes"; then
9686 TLS_GNU2_DIALECT_TRUE=
9687 TLS_GNU2_DIALECT_FALSE='#'
9688 else
9689 TLS_GNU2_DIALECT_TRUE='#'
9690 TLS_GNU2_DIALECT_FALSE=
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
9695 $as_echo_n "checking for glibc >= 2.9... " >&6; }
9696 if ${gold_cv_lib_glibc29+:} false; then :
9697 $as_echo_n "(cached) " >&6
9698 else
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9702 #include <features.h>
9703 #if !defined __GLIBC__
9704 error
9705 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
9706 error
9707 #endif
9709 _ACEOF
9710 if ac_fn_c_try_compile "$LINENO"; then :
9711 gold_cv_lib_glibc29=yes
9712 else
9713 gold_cv_lib_glibc29=no
9715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
9718 $as_echo "$gold_cv_lib_glibc29" >&6; }
9720 if test "$gold_cv_lib_glibc29" = "yes"; then
9721 TLS_DESCRIPTORS_TRUE=
9722 TLS_DESCRIPTORS_FALSE='#'
9723 else
9724 TLS_DESCRIPTORS_TRUE='#'
9725 TLS_DESCRIPTORS_FALSE=
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
9730 $as_echo_n "checking for -frandom-seed support... " >&6; }
9731 if ${gold_cv_c_random_seed+:} false; then :
9732 $as_echo_n "(cached) " >&6
9733 else
9734 save_CFLAGS="$CFLAGS"
9735 CFLAGS="$CFLAGS -frandom-seed=foo"
9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738 int i;
9739 _ACEOF
9740 if ac_fn_c_try_compile "$LINENO"; then :
9741 gold_cv_c_random_seed=yes
9742 else
9743 gold_cv_c_random_seed=no
9745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9746 CFLAGS="$save_CFLAGS"
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
9749 $as_echo "$gold_cv_c_random_seed" >&6; }
9750 if test "$gold_cv_c_random_seed" = "yes"; then
9751 # In Makefile, '$@' will be expanded to be the name of the file
9752 # being built, providing a unique seed for each file.
9753 RANDOM_SEED_CFLAGS=-frandom-seed=\$@
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
9758 $as_echo_n "checking for glibc ifunc support... " >&6; }
9759 if ${gold_cv_lib_glibc_ifunc+:} false; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 save_LDFLAGS="$LDFLAGS"
9763 LDFLAGS="$LDFLAGS -static"
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9767 #include <features.h>
9768 #if !defined __GLIBC__
9769 error
9770 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
9771 error
9772 #endif
9773 void func (void) { }
9774 void invoke (void);
9775 __asm__(".type invoke, %gnu_indirect_function");
9776 typedef void (*funcptr) (void);
9777 funcptr dispatch (void) __asm__ ("invoke");
9778 funcptr dispatch (void) { return &func; }
9780 main ()
9782 invoke();
9784 return 0;
9787 _ACEOF
9788 if ac_fn_c_try_link "$LINENO"; then :
9790 if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
9791 gold_cv_lib_glibc_ifunc=both
9792 else
9793 gold_cv_lib_glibc_ifunc=dyn
9795 else
9796 gold_cv_lib_glibc_ifunc=no
9798 rm -f core conftest.err conftest.$ac_objext \
9799 conftest$ac_exeext conftest.$ac_ext
9800 LDFLAGS="$save_LDFLAGS"
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
9803 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
9805 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
9806 IFUNC_TRUE=
9807 IFUNC_FALSE='#'
9808 else
9809 IFUNC_TRUE='#'
9810 IFUNC_FALSE=
9813 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
9814 IFUNC_STATIC_TRUE=
9815 IFUNC_STATIC_FALSE='#'
9816 else
9817 IFUNC_STATIC_TRUE='#'
9818 IFUNC_STATIC_FALSE=
9823 # Set the 'development' global.
9824 . $srcdir/../bfd/development.sh
9826 # Set acp_cpp_for_build variable
9827 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
9829 # Default set of GCC warnings to enable.
9830 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9831 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9833 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836 __GNUC__
9837 _ACEOF
9838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9839 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
9841 else
9842 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
9844 rm -f conftest*
9847 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h. */
9850 __GNUC__
9851 _ACEOF
9852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9853 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9855 else
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858 __clang__
9859 _ACEOF
9860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9861 $EGREP "^__clang__$" >/dev/null 2>&1; then :
9862 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
9864 rm -f conftest*
9867 rm -f conftest*
9870 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
9871 WARN_WRITE_STRINGS=""
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9874 __GNUC__
9875 _ACEOF
9876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9877 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
9879 else
9880 WARN_WRITE_STRINGS="-Wwrite-strings"
9882 rm -f conftest*
9885 # Verify CC_FOR_BUILD to be compatible with warning flags
9887 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
9888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889 /* end confdefs.h. */
9890 __GNUC__
9891 _ACEOF
9892 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9893 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
9895 else
9896 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
9898 rm -f conftest*
9901 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9904 __GNUC__
9905 _ACEOF
9906 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9907 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9909 else
9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9912 __clang__
9913 _ACEOF
9914 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9915 $EGREP "^__clang__$" >/dev/null 2>&1; then :
9916 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
9918 rm -f conftest*
9921 rm -f conftest*
9924 # Check whether --enable-werror was given.
9925 if test "${enable_werror+set}" = set; then :
9926 enableval=$enable_werror; case "${enableval}" in
9927 yes | y) ERROR_ON_WARNING="yes" ;;
9928 no | n) ERROR_ON_WARNING="no" ;;
9929 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
9930 esac
9934 # Disable -Wformat by default when using gcc on mingw
9935 case "${host}" in
9936 *-*-mingw32*)
9937 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9938 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
9939 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
9942 *) ;;
9943 esac
9945 # Enable -Werror by default when using gcc. Turn it off for releases.
9946 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
9947 ERROR_ON_WARNING=yes
9950 NO_WERROR=
9951 if test "${ERROR_ON_WARNING}" = yes ; then
9952 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9953 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
9954 NO_WERROR="-Wno-error"
9957 if test "${GCC}" = yes ; then
9958 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9959 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
9962 # Check whether --enable-build-warnings was given.
9963 if test "${enable_build_warnings+set}" = set; then :
9964 enableval=$enable_build_warnings; case "${enableval}" in
9965 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9966 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
9967 no) if test "${GCC}" = yes ; then
9968 WARN_CFLAGS="-w"
9969 WARN_CFLAGS_FOR_BUILD="-w"
9970 fi;;
9971 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9972 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
9973 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
9974 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9975 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
9976 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
9977 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
9978 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9979 esac
9983 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
9984 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9993 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
9997 # Check whether --with-gold-ldflags was given.
9998 if test "${with_gold_ldflags+set}" = set; then :
9999 withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
10000 GOLD_LDFLAGS=
10001 else
10002 GOLD_LDFLAGS=$withval
10004 else
10005 GOLD_LDFLAGS=
10011 # Check whether --with-gold-ldadd was given.
10012 if test "${with_gold_ldadd+set}" = set; then :
10013 withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
10014 GOLD_LDADD=
10015 else
10016 GOLD_LDADD=$withval
10018 else
10019 GOLD_LDADD=
10024 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
10027 for ac_header in sys/mman.h
10028 do :
10029 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
10030 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10031 cat >>confdefs.h <<_ACEOF
10032 #define HAVE_SYS_MMAN_H 1
10033 _ACEOF
10037 done
10039 for ac_func in chsize mmap link
10040 do :
10041 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10042 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10043 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10044 cat >>confdefs.h <<_ACEOF
10045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10046 _ACEOF
10049 done
10051 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
10052 if test "x$ac_cv_func_pread" = xyes; then :
10053 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
10055 else
10056 case " $LIBOBJS " in
10057 *" pread.$ac_objext "* ) ;;
10058 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
10060 esac
10064 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
10065 if test "x$ac_cv_func_ftruncate" = xyes; then :
10066 $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
10068 else
10069 case " $LIBOBJS " in
10070 *" ftruncate.$ac_objext "* ) ;;
10071 *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
10073 esac
10077 ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll"
10078 if test "x$ac_cv_func_ffsll" = xyes; then :
10079 $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
10081 else
10082 case " $LIBOBJS " in
10083 *" ffsll.$ac_objext "* ) ;;
10084 *) LIBOBJS="$LIBOBJS ffsll.$ac_objext"
10086 esac
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
10093 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
10094 if ${gold_cv_lib_mremap_maymove+:} false; then :
10095 $as_echo_n "(cached) " >&6
10096 else
10097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098 /* end confdefs.h. */
10101 #include <sys/mman.h>
10102 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
10105 main ()
10109 return 0;
10111 _ACEOF
10112 if ac_fn_c_try_link "$LINENO"; then :
10113 gold_cv_lib_mremap_maymove=yes
10114 else
10115 gold_cv_lib_mremap_maymove=no
10117 rm -f core conftest.err conftest.$ac_objext \
10118 conftest$ac_exeext conftest.$ac_ext
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
10121 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
10122 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
10124 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
10126 else
10127 case " $LIBOBJS " in
10128 *" mremap.$ac_objext "* ) ;;
10129 *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
10131 esac
10135 # Link in zlib/zstd if we can. This allows us to write compressed sections.
10137 # Use the system's zlib library.
10138 zlibdir="-L\$(top_builddir)/../zlib"
10139 zlibinc="-I\$(top_srcdir)/../zlib"
10141 # Check whether --with-system-zlib was given.
10142 if test "${with_system_zlib+set}" = set; then :
10143 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
10144 zlibdir=
10145 zlibinc=
10160 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10161 if test -n "$ac_tool_prefix"; then
10162 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10163 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10165 $as_echo_n "checking for $ac_word... " >&6; }
10166 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10167 $as_echo_n "(cached) " >&6
10168 else
10169 case $PKG_CONFIG in
10170 [\\/]* | ?:[\\/]*)
10171 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175 for as_dir in $PATH
10177 IFS=$as_save_IFS
10178 test -z "$as_dir" && as_dir=.
10179 for ac_exec_ext in '' $ac_executable_extensions; do
10180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10181 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183 break 2
10185 done
10186 done
10187 IFS=$as_save_IFS
10190 esac
10192 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10193 if test -n "$PKG_CONFIG"; then
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10195 $as_echo "$PKG_CONFIG" >&6; }
10196 else
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198 $as_echo "no" >&6; }
10203 if test -z "$ac_cv_path_PKG_CONFIG"; then
10204 ac_pt_PKG_CONFIG=$PKG_CONFIG
10205 # Extract the first word of "pkg-config", so it can be a program name with args.
10206 set dummy pkg-config; ac_word=$2
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208 $as_echo_n "checking for $ac_word... " >&6; }
10209 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10210 $as_echo_n "(cached) " >&6
10211 else
10212 case $ac_pt_PKG_CONFIG in
10213 [\\/]* | ?:[\\/]*)
10214 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218 for as_dir in $PATH
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
10223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10224 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 break 2
10228 done
10229 done
10230 IFS=$as_save_IFS
10233 esac
10235 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10236 if test -n "$ac_pt_PKG_CONFIG"; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10238 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10239 else
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241 $as_echo "no" >&6; }
10244 if test "x$ac_pt_PKG_CONFIG" = x; then
10245 PKG_CONFIG=""
10246 else
10247 case $cross_compiling:$ac_tool_warned in
10248 yes:)
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10251 ac_tool_warned=yes ;;
10252 esac
10253 PKG_CONFIG=$ac_pt_PKG_CONFIG
10255 else
10256 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10260 if test -n "$PKG_CONFIG"; then
10261 _pkg_min_version=0.9.0
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10263 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10264 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10266 $as_echo "yes" >&6; }
10267 else
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269 $as_echo "no" >&6; }
10270 PKG_CONFIG=""
10275 # Check whether --with-zstd was given.
10276 if test "${with_zstd+set}" = set; then :
10277 withval=$with_zstd;
10278 else
10279 with_zstd=auto
10283 if test "$with_zstd" != no; then :
10285 pkg_failed=no
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
10287 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
10289 if test -n "$ZSTD_CFLAGS"; then
10290 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
10291 elif test -n "$PKG_CONFIG"; then
10292 if test -n "$PKG_CONFIG" && \
10293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
10294 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
10295 ac_status=$?
10296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10297 test $ac_status = 0; }; then
10298 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
10299 test "x$?" != "x0" && pkg_failed=yes
10300 else
10301 pkg_failed=yes
10303 else
10304 pkg_failed=untried
10306 if test -n "$ZSTD_LIBS"; then
10307 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
10308 elif test -n "$PKG_CONFIG"; then
10309 if test -n "$PKG_CONFIG" && \
10310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
10311 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
10312 ac_status=$?
10313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10314 test $ac_status = 0; }; then
10315 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
10316 test "x$?" != "x0" && pkg_failed=yes
10317 else
10318 pkg_failed=yes
10320 else
10321 pkg_failed=untried
10324 if test $pkg_failed = no; then
10325 pkg_save_LDFLAGS="$LDFLAGS"
10326 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10331 main ()
10335 return 0;
10337 _ACEOF
10338 if ac_fn_c_try_link "$LINENO"; then :
10340 else
10341 pkg_failed=yes
10343 rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10345 LDFLAGS=$pkg_save_LDFLAGS
10350 if test $pkg_failed = yes; then
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352 $as_echo "no" >&6; }
10354 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10355 _pkg_short_errors_supported=yes
10356 else
10357 _pkg_short_errors_supported=no
10359 if test $_pkg_short_errors_supported = yes; then
10360 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
10361 else
10362 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
10364 # Put the nasty error message in config.log where it belongs
10365 echo "$ZSTD_PKG_ERRORS" >&5
10368 if test "$with_zstd" = yes; then
10369 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
10372 elif test $pkg_failed = untried; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374 $as_echo "no" >&6; }
10376 if test "$with_zstd" = yes; then
10377 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
10380 else
10381 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
10382 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10384 $as_echo "yes" >&6; }
10387 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
10394 if test "$pkg_cv_ZSTD_LIBS" != ""; then
10395 HAVE_ZSTD_TRUE=
10396 HAVE_ZSTD_FALSE='#'
10397 else
10398 HAVE_ZSTD_TRUE='#'
10399 HAVE_ZSTD_FALSE=
10403 # Check whether --enable-threads was given.
10404 if test "${enable_threads+set}" = set; then :
10405 enableval=$enable_threads; case "${enableval}" in
10406 yes | "") threads=yes ;;
10407 no) threads=no ;;
10408 auto) threads=auto ;;
10409 *) threads=yes ;;
10410 esac
10411 else
10412 threads=auto
10416 if test "$threads" = "yes"; then
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10418 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10419 if ${ac_cv_path_SED+:} false; then :
10420 $as_echo_n "(cached) " >&6
10421 else
10422 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10423 for ac_i in 1 2 3 4 5 6 7; do
10424 ac_script="$ac_script$as_nl$ac_script"
10425 done
10426 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10427 { ac_script=; unset ac_script;}
10428 if test -z "$SED"; then
10429 ac_path_SED_found=false
10430 # Loop through the user's path and test for each of PROGNAME-LIST
10431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10432 for as_dir in $PATH
10434 IFS=$as_save_IFS
10435 test -z "$as_dir" && as_dir=.
10436 for ac_prog in sed gsed; do
10437 for ac_exec_ext in '' $ac_executable_extensions; do
10438 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10439 as_fn_executable_p "$ac_path_SED" || continue
10440 # Check for GNU ac_path_SED and select it if it is found.
10441 # Check for GNU $ac_path_SED
10442 case `"$ac_path_SED" --version 2>&1` in
10443 *GNU*)
10444 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10446 ac_count=0
10447 $as_echo_n 0123456789 >"conftest.in"
10448 while :
10450 cat "conftest.in" "conftest.in" >"conftest.tmp"
10451 mv "conftest.tmp" "conftest.in"
10452 cp "conftest.in" "conftest.nl"
10453 $as_echo '' >> "conftest.nl"
10454 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10456 as_fn_arith $ac_count + 1 && ac_count=$as_val
10457 if test $ac_count -gt ${ac_path_SED_max-0}; then
10458 # Best one so far, save it but keep looking for a better one
10459 ac_cv_path_SED="$ac_path_SED"
10460 ac_path_SED_max=$ac_count
10462 # 10*(2^10) chars as input seems more than enough
10463 test $ac_count -gt 10 && break
10464 done
10465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10466 esac
10468 $ac_path_SED_found && break 3
10469 done
10470 done
10471 done
10472 IFS=$as_save_IFS
10473 if test -z "$ac_cv_path_SED"; then
10474 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10476 else
10477 ac_cv_path_SED=$SED
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10482 $as_echo "$ac_cv_path_SED" >&6; }
10483 SED="$ac_cv_path_SED"
10484 rm -f conftest.sed
10490 ac_ext=c
10491 ac_cpp='$CPP $CPPFLAGS'
10492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10496 ax_pthread_ok=no
10498 # We used to check for pthread.h first, but this fails if pthread.h
10499 # requires special compiler flags (e.g. on Tru64 or Sequent).
10500 # It gets checked for in the link test anyway.
10502 # First of all, check if the user has set any of the PTHREAD_LIBS,
10503 # etcetera environment variables, and if threads linking works using
10504 # them:
10505 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10506 ax_pthread_save_CC="$CC"
10507 ax_pthread_save_CFLAGS="$CFLAGS"
10508 ax_pthread_save_LIBS="$LIBS"
10509 if test "x$PTHREAD_CC" != "x"; then :
10510 CC="$PTHREAD_CC"
10512 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10513 LIBS="$PTHREAD_LIBS $LIBS"
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10515 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10519 /* Override any GCC internal prototype to avoid an error.
10520 Use char because int might match the return type of a GCC
10521 builtin and then its argument prototype would still apply. */
10522 #ifdef __cplusplus
10523 extern "C"
10524 #endif
10525 char pthread_join ();
10527 main ()
10529 return pthread_join ();
10531 return 0;
10533 _ACEOF
10534 if ac_fn_c_try_link "$LINENO"; then :
10535 ax_pthread_ok=yes
10537 rm -f core conftest.err conftest.$ac_objext \
10538 conftest$ac_exeext conftest.$ac_ext
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10540 $as_echo "$ax_pthread_ok" >&6; }
10541 if test "x$ax_pthread_ok" = "xno"; then
10542 PTHREAD_LIBS=""
10543 PTHREAD_CFLAGS=""
10545 CC="$ax_pthread_save_CC"
10546 CFLAGS="$ax_pthread_save_CFLAGS"
10547 LIBS="$ax_pthread_save_LIBS"
10550 # We must check for the threads library under a number of different
10551 # names; the ordering is very important because some systems
10552 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10553 # libraries is broken (non-POSIX).
10555 # Create a list of thread flags to try. Items starting with a "-" are
10556 # C compiler flags, and other items are library names, except for "none"
10557 # which indicates that we try without any flags at all, and "pthread-config"
10558 # which is a program returning the flags for the Pth emulation library.
10560 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10562 # The ordering *is* (sometimes) important. Some notes on the
10563 # individual items follow:
10565 # pthreads: AIX (must check this before -lpthread)
10566 # none: in case threads are in libc; should be tried before -Kthread and
10567 # other compiler flags to prevent continual compiler warnings
10568 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10569 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10570 # (Note: HP C rejects this with "bad form for `-t' option")
10571 # -pthreads: Solaris/gcc (Note: HP C also rejects)
10572 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10573 # doesn't hurt to check since this sometimes defines pthreads and
10574 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
10575 # is present but should not be used directly; and before -mthreads,
10576 # because the compiler interprets this as "-mt" + "-hreads")
10577 # -mthreads: Mingw32/gcc, Lynx/gcc
10578 # pthread: Linux, etcetera
10579 # --thread-safe: KAI C++
10580 # pthread-config: use pthread-config program (for GNU Pth library)
10582 case $host_os in
10584 freebsd*)
10586 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10587 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10589 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
10592 hpux*)
10594 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10595 # multi-threading and also sets -lpthread."
10597 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
10600 openedition*)
10602 # IBM z/OS requires a feature-test macro to be defined in order to
10603 # enable POSIX threads at all, so give the user a hint if this is
10604 # not set. (We don't define these ourselves, as they can affect
10605 # other portions of the system API in unpredictable ways.)
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10610 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10611 AX_PTHREAD_ZOS_MISSING
10612 # endif
10614 _ACEOF
10615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10616 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10618 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10620 rm -f conftest*
10624 solaris*)
10626 # On Solaris (at least, for some versions), libc contains stubbed
10627 # (non-functional) versions of the pthreads routines, so link-based
10628 # tests will erroneously succeed. (N.B.: The stubs are missing
10629 # pthread_cleanup_push, or rather a function called by this macro,
10630 # so we could check for that, but who knows whether they'll stub
10631 # that too in a future libc.) So we'll check first for the
10632 # standard Solaris way of linking pthreads (-mt -lpthread).
10634 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
10636 esac
10638 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10640 if test "x$GCC" = "xyes"; then :
10641 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
10644 # The presence of a feature test macro requesting re-entrant function
10645 # definitions is, on some systems, a strong hint that pthreads support is
10646 # correctly enabled
10648 case $host_os in
10649 darwin* | hpux* | linux* | osf* | solaris*)
10650 ax_pthread_check_macro="_REENTRANT"
10653 aix*)
10654 ax_pthread_check_macro="_THREAD_SAFE"
10658 ax_pthread_check_macro="--"
10660 esac
10661 if test "x$ax_pthread_check_macro" = "x--"; then :
10662 ax_pthread_check_cond=0
10663 else
10664 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
10667 # Are we compiling with Clang?
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10670 $as_echo_n "checking whether $CC is Clang... " >&6; }
10671 if ${ax_cv_PTHREAD_CLANG+:} false; then :
10672 $as_echo_n "(cached) " >&6
10673 else
10674 ax_cv_PTHREAD_CLANG=no
10675 # Note that Autoconf sets GCC=yes for Clang as well as GCC
10676 if test "x$GCC" = "xyes"; then
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10679 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10680 # if defined(__clang__) && defined(__llvm__)
10681 AX_PTHREAD_CC_IS_CLANG
10682 # endif
10684 _ACEOF
10685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10686 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
10687 ax_cv_PTHREAD_CLANG=yes
10689 rm -f conftest*
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10695 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10696 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
10698 ax_pthread_clang_warning=no
10700 # Clang needs special handling, because older versions handle the -pthread
10701 # option in a rather... idiosyncratic way
10703 if test "x$ax_pthread_clang" = "xyes"; then
10705 # Clang takes -pthread; it has never supported any other flag
10707 # (Note 1: This will need to be revisited if a system that Clang
10708 # supports has POSIX threads in a separate library. This tends not
10709 # to be the way of modern systems, but it's conceivable.)
10711 # (Note 2: On some systems, notably Darwin, -pthread is not needed
10712 # to get POSIX threads support; the API is always present and
10713 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
10714 # -pthread does define _REENTRANT, and while the Darwin headers
10715 # ignore this macro, third-party headers might not.)
10717 PTHREAD_CFLAGS="-pthread"
10718 PTHREAD_LIBS=
10720 ax_pthread_ok=yes
10722 # However, older versions of Clang make a point of warning the user
10723 # that, in an invocation where only linking and no compilation is
10724 # taking place, the -pthread option has no effect ("argument unused
10725 # during compilation"). They expect -pthread to be passed in only
10726 # when source code is being compiled.
10728 # Problem is, this is at odds with the way Automake and most other
10729 # C build frameworks function, which is that the same flags used in
10730 # compilation (CFLAGS) are also used in linking. Many systems
10731 # supported by AX_PTHREAD require exactly this for POSIX threads
10732 # support, and in fact it is often not straightforward to specify a
10733 # flag that is used only in the compilation phase and not in
10734 # linking. Such a scenario is extremely rare in practice.
10736 # Even though use of the -pthread flag in linking would only print
10737 # a warning, this can be a nuisance for well-run software projects
10738 # that build with -Werror. So if the active version of Clang has
10739 # this misfeature, we search for an option to squash it.
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10742 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10743 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
10744 $as_echo_n "(cached) " >&6
10745 else
10746 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
10747 # Create an alternate version of $ac_link that compiles and
10748 # links in two steps (.c -> .o, .o -> exe) instead of one
10749 # (.c -> exe), because the warning occurs only in the second
10750 # step
10751 ax_pthread_save_ac_link="$ac_link"
10752 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10753 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10754 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10755 ax_pthread_save_CFLAGS="$CFLAGS"
10756 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
10757 if test "x$ax_pthread_try" = "xunknown"; then :
10758 break
10760 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10761 ac_link="$ax_pthread_save_ac_link"
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10764 int main(void){return 0;}
10765 _ACEOF
10766 if ac_fn_c_try_link "$LINENO"; then :
10767 ac_link="$ax_pthread_2step_ac_link"
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h. */
10770 int main(void){return 0;}
10771 _ACEOF
10772 if ac_fn_c_try_link "$LINENO"; then :
10773 break
10775 rm -f core conftest.err conftest.$ac_objext \
10776 conftest$ac_exeext conftest.$ac_ext
10779 rm -f core conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext conftest.$ac_ext
10781 done
10782 ac_link="$ax_pthread_save_ac_link"
10783 CFLAGS="$ax_pthread_save_CFLAGS"
10784 if test "x$ax_pthread_try" = "x"; then :
10785 ax_pthread_try=no
10787 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10791 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10793 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10794 no | unknown) ;;
10795 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10796 esac
10798 fi # $ax_pthread_clang = yes
10800 if test "x$ax_pthread_ok" = "xno"; then
10801 for ax_pthread_try_flag in $ax_pthread_flags; do
10803 case $ax_pthread_try_flag in
10804 none)
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10806 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
10809 -mt,pthread)
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10811 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10812 PTHREAD_CFLAGS="-mt"
10813 PTHREAD_LIBS="-lpthread"
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
10818 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
10819 PTHREAD_CFLAGS="$ax_pthread_try_flag"
10822 pthread-config)
10823 # Extract the first word of "pthread-config", so it can be a program name with args.
10824 set dummy pthread-config; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826 $as_echo_n "checking for $ac_word... " >&6; }
10827 if ${ac_cv_prog_ax_pthread_config+:} false; then :
10828 $as_echo_n "(cached) " >&6
10829 else
10830 if test -n "$ax_pthread_config"; then
10831 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10832 else
10833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH
10836 IFS=$as_save_IFS
10837 test -z "$as_dir" && as_dir=.
10838 for ac_exec_ext in '' $ac_executable_extensions; do
10839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10840 ac_cv_prog_ax_pthread_config="yes"
10841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10842 break 2
10844 done
10845 done
10846 IFS=$as_save_IFS
10848 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10851 ax_pthread_config=$ac_cv_prog_ax_pthread_config
10852 if test -n "$ax_pthread_config"; then
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10854 $as_echo "$ax_pthread_config" >&6; }
10855 else
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10857 $as_echo "no" >&6; }
10861 if test "x$ax_pthread_config" = "xno"; then :
10862 continue
10864 PTHREAD_CFLAGS="`pthread-config --cflags`"
10865 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
10870 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
10871 PTHREAD_LIBS="-l$ax_pthread_try_flag"
10873 esac
10875 ax_pthread_save_CFLAGS="$CFLAGS"
10876 ax_pthread_save_LIBS="$LIBS"
10877 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10878 LIBS="$PTHREAD_LIBS $LIBS"
10880 # Check for various functions. We must include pthread.h,
10881 # since some functions may be macros. (On the Sequent, we
10882 # need a special flag -Kthread to make this header compile.)
10883 # We check for pthread_join because it is in -lpthread on IRIX
10884 # while pthread_create is in libc. We check for pthread_attr_init
10885 # due to DEC craziness with -lpthreads. We check for
10886 # pthread_cleanup_push because it is one of the few pthread
10887 # functions on Solaris that doesn't have a non-functional libc stub.
10888 # We try pthread_create on general principles.
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892 #include <pthread.h>
10893 # if $ax_pthread_check_cond
10894 # error "$ax_pthread_check_macro must be defined"
10895 # endif
10896 static void routine(void *a) { a = 0; }
10897 static void *start_routine(void *a) { return a; }
10899 main ()
10901 pthread_t th; pthread_attr_t attr;
10902 pthread_create(&th, 0, start_routine, 0);
10903 pthread_join(th, 0);
10904 pthread_attr_init(&attr);
10905 pthread_cleanup_push(routine, 0);
10906 pthread_cleanup_pop(0) /* ; */
10908 return 0;
10910 _ACEOF
10911 if ac_fn_c_try_link "$LINENO"; then :
10912 ax_pthread_ok=yes
10914 rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
10917 CFLAGS="$ax_pthread_save_CFLAGS"
10918 LIBS="$ax_pthread_save_LIBS"
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10921 $as_echo "$ax_pthread_ok" >&6; }
10922 if test "x$ax_pthread_ok" = "xyes"; then :
10923 break
10926 PTHREAD_LIBS=""
10927 PTHREAD_CFLAGS=""
10928 done
10931 # Various other checks:
10932 if test "x$ax_pthread_ok" = "xyes"; then
10933 ax_pthread_save_CFLAGS="$CFLAGS"
10934 ax_pthread_save_LIBS="$LIBS"
10935 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10936 LIBS="$PTHREAD_LIBS $LIBS"
10938 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10940 $as_echo_n "checking for joinable pthread attribute... " >&6; }
10941 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
10945 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 #include <pthread.h>
10950 main ()
10952 int attr = $ax_pthread_attr; return attr /* ; */
10954 return 0;
10956 _ACEOF
10957 if ac_fn_c_try_link "$LINENO"; then :
10958 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
10960 rm -f core conftest.err conftest.$ac_objext \
10961 conftest$ac_exeext conftest.$ac_ext
10962 done
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
10966 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
10967 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
10968 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
10969 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
10971 cat >>confdefs.h <<_ACEOF
10972 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
10973 _ACEOF
10975 ax_pthread_joinable_attr_defined=yes
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
10980 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
10981 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 ax_cv_PTHREAD_SPECIAL_FLAGS=no
10985 case $host_os in
10986 solaris*)
10987 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
10989 esac
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
10993 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
10994 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
10995 test "x$ax_pthread_special_flags_added" != "xyes"; then :
10996 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
10997 ax_pthread_special_flags_added=yes
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11001 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11002 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11007 #include <pthread.h>
11009 main ()
11011 int i = PTHREAD_PRIO_INHERIT;
11013 return 0;
11015 _ACEOF
11016 if ac_fn_c_try_link "$LINENO"; then :
11017 ax_cv_PTHREAD_PRIO_INHERIT=yes
11018 else
11019 ax_cv_PTHREAD_PRIO_INHERIT=no
11021 rm -f core conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11026 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11027 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11028 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11030 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11032 ax_pthread_prio_inherit_defined=yes
11036 CFLAGS="$ax_pthread_save_CFLAGS"
11037 LIBS="$ax_pthread_save_LIBS"
11039 # More AIX lossage: compile with *_r variant
11040 if test "x$GCC" != "xyes"; then
11041 case $host_os in
11042 aix*)
11043 case "x/$CC" in #(
11044 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
11045 #handle absolute path differently from PATH based program lookup
11046 case "x$CC" in #(
11047 x/*) :
11048 if as_fn_executable_p ${CC}_r; then :
11049 PTHREAD_CC="${CC}_r"
11050 fi ;; #(
11051 *) :
11052 for ac_prog in ${CC}_r
11054 # Extract the first word of "$ac_prog", so it can be a program name with args.
11055 set dummy $ac_prog; ac_word=$2
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057 $as_echo_n "checking for $ac_word... " >&6; }
11058 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
11059 $as_echo_n "(cached) " >&6
11060 else
11061 if test -n "$PTHREAD_CC"; then
11062 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
11063 else
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $PATH
11067 IFS=$as_save_IFS
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11071 ac_cv_prog_PTHREAD_CC="$ac_prog"
11072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11073 break 2
11075 done
11076 done
11077 IFS=$as_save_IFS
11081 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
11082 if test -n "$PTHREAD_CC"; then
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11084 $as_echo "$PTHREAD_CC" >&6; }
11085 else
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11087 $as_echo "no" >&6; }
11091 test -n "$PTHREAD_CC" && break
11092 done
11093 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11095 esac ;; #(
11096 *) :
11098 esac
11100 esac
11104 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11110 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11111 if test "x$ax_pthread_ok" = "xyes"; then
11112 threads=yes
11114 else
11115 ax_pthread_ok=no
11116 as_fn_error $? "pthread not found" "$LINENO" 5
11118 ac_ext=c
11119 ac_cpp='$CPP $CPPFLAGS'
11120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11125 elif test "$threads" = "auto"; then
11130 ac_ext=c
11131 ac_cpp='$CPP $CPPFLAGS'
11132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11136 ax_pthread_ok=no
11138 # We used to check for pthread.h first, but this fails if pthread.h
11139 # requires special compiler flags (e.g. on Tru64 or Sequent).
11140 # It gets checked for in the link test anyway.
11142 # First of all, check if the user has set any of the PTHREAD_LIBS,
11143 # etcetera environment variables, and if threads linking works using
11144 # them:
11145 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
11146 ax_pthread_save_CC="$CC"
11147 ax_pthread_save_CFLAGS="$CFLAGS"
11148 ax_pthread_save_LIBS="$LIBS"
11149 if test "x$PTHREAD_CC" != "x"; then :
11150 CC="$PTHREAD_CC"
11152 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11153 LIBS="$PTHREAD_LIBS $LIBS"
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
11155 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11159 /* Override any GCC internal prototype to avoid an error.
11160 Use char because int might match the return type of a GCC
11161 builtin and then its argument prototype would still apply. */
11162 #ifdef __cplusplus
11163 extern "C"
11164 #endif
11165 char pthread_join ();
11167 main ()
11169 return pthread_join ();
11171 return 0;
11173 _ACEOF
11174 if ac_fn_c_try_link "$LINENO"; then :
11175 ax_pthread_ok=yes
11177 rm -f core conftest.err conftest.$ac_objext \
11178 conftest$ac_exeext conftest.$ac_ext
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11180 $as_echo "$ax_pthread_ok" >&6; }
11181 if test "x$ax_pthread_ok" = "xno"; then
11182 PTHREAD_LIBS=""
11183 PTHREAD_CFLAGS=""
11185 CC="$ax_pthread_save_CC"
11186 CFLAGS="$ax_pthread_save_CFLAGS"
11187 LIBS="$ax_pthread_save_LIBS"
11190 # We must check for the threads library under a number of different
11191 # names; the ordering is very important because some systems
11192 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
11193 # libraries is broken (non-POSIX).
11195 # Create a list of thread flags to try. Items starting with a "-" are
11196 # C compiler flags, and other items are library names, except for "none"
11197 # which indicates that we try without any flags at all, and "pthread-config"
11198 # which is a program returning the flags for the Pth emulation library.
11200 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
11202 # The ordering *is* (sometimes) important. Some notes on the
11203 # individual items follow:
11205 # pthreads: AIX (must check this before -lpthread)
11206 # none: in case threads are in libc; should be tried before -Kthread and
11207 # other compiler flags to prevent continual compiler warnings
11208 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11209 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
11210 # (Note: HP C rejects this with "bad form for `-t' option")
11211 # -pthreads: Solaris/gcc (Note: HP C also rejects)
11212 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11213 # doesn't hurt to check since this sometimes defines pthreads and
11214 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
11215 # is present but should not be used directly; and before -mthreads,
11216 # because the compiler interprets this as "-mt" + "-hreads")
11217 # -mthreads: Mingw32/gcc, Lynx/gcc
11218 # pthread: Linux, etcetera
11219 # --thread-safe: KAI C++
11220 # pthread-config: use pthread-config program (for GNU Pth library)
11222 case $host_os in
11224 freebsd*)
11226 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11227 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11229 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
11232 hpux*)
11234 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
11235 # multi-threading and also sets -lpthread."
11237 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
11240 openedition*)
11242 # IBM z/OS requires a feature-test macro to be defined in order to
11243 # enable POSIX threads at all, so give the user a hint if this is
11244 # not set. (We don't define these ourselves, as they can affect
11245 # other portions of the system API in unpredictable ways.)
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11250 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
11251 AX_PTHREAD_ZOS_MISSING
11252 # endif
11254 _ACEOF
11255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11256 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
11258 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
11260 rm -f conftest*
11264 solaris*)
11266 # On Solaris (at least, for some versions), libc contains stubbed
11267 # (non-functional) versions of the pthreads routines, so link-based
11268 # tests will erroneously succeed. (N.B.: The stubs are missing
11269 # pthread_cleanup_push, or rather a function called by this macro,
11270 # so we could check for that, but who knows whether they'll stub
11271 # that too in a future libc.) So we'll check first for the
11272 # standard Solaris way of linking pthreads (-mt -lpthread).
11274 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
11276 esac
11278 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
11280 if test "x$GCC" = "xyes"; then :
11281 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
11284 # The presence of a feature test macro requesting re-entrant function
11285 # definitions is, on some systems, a strong hint that pthreads support is
11286 # correctly enabled
11288 case $host_os in
11289 darwin* | hpux* | linux* | osf* | solaris*)
11290 ax_pthread_check_macro="_REENTRANT"
11293 aix*)
11294 ax_pthread_check_macro="_THREAD_SAFE"
11298 ax_pthread_check_macro="--"
11300 esac
11301 if test "x$ax_pthread_check_macro" = "x--"; then :
11302 ax_pthread_check_cond=0
11303 else
11304 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
11307 # Are we compiling with Clang?
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
11310 $as_echo_n "checking whether $CC is Clang... " >&6; }
11311 if ${ax_cv_PTHREAD_CLANG+:} false; then :
11312 $as_echo_n "(cached) " >&6
11313 else
11314 ax_cv_PTHREAD_CLANG=no
11315 # Note that Autoconf sets GCC=yes for Clang as well as GCC
11316 if test "x$GCC" = "xyes"; then
11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11319 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
11320 # if defined(__clang__) && defined(__llvm__)
11321 AX_PTHREAD_CC_IS_CLANG
11322 # endif
11324 _ACEOF
11325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11326 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
11327 ax_cv_PTHREAD_CLANG=yes
11329 rm -f conftest*
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
11335 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
11336 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
11338 ax_pthread_clang_warning=no
11340 # Clang needs special handling, because older versions handle the -pthread
11341 # option in a rather... idiosyncratic way
11343 if test "x$ax_pthread_clang" = "xyes"; then
11345 # Clang takes -pthread; it has never supported any other flag
11347 # (Note 1: This will need to be revisited if a system that Clang
11348 # supports has POSIX threads in a separate library. This tends not
11349 # to be the way of modern systems, but it's conceivable.)
11351 # (Note 2: On some systems, notably Darwin, -pthread is not needed
11352 # to get POSIX threads support; the API is always present and
11353 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
11354 # -pthread does define _REENTRANT, and while the Darwin headers
11355 # ignore this macro, third-party headers might not.)
11357 PTHREAD_CFLAGS="-pthread"
11358 PTHREAD_LIBS=
11360 ax_pthread_ok=yes
11362 # However, older versions of Clang make a point of warning the user
11363 # that, in an invocation where only linking and no compilation is
11364 # taking place, the -pthread option has no effect ("argument unused
11365 # during compilation"). They expect -pthread to be passed in only
11366 # when source code is being compiled.
11368 # Problem is, this is at odds with the way Automake and most other
11369 # C build frameworks function, which is that the same flags used in
11370 # compilation (CFLAGS) are also used in linking. Many systems
11371 # supported by AX_PTHREAD require exactly this for POSIX threads
11372 # support, and in fact it is often not straightforward to specify a
11373 # flag that is used only in the compilation phase and not in
11374 # linking. Such a scenario is extremely rare in practice.
11376 # Even though use of the -pthread flag in linking would only print
11377 # a warning, this can be a nuisance for well-run software projects
11378 # that build with -Werror. So if the active version of Clang has
11379 # this misfeature, we search for an option to squash it.
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
11382 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
11383 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
11387 # Create an alternate version of $ac_link that compiles and
11388 # links in two steps (.c -> .o, .o -> exe) instead of one
11389 # (.c -> exe), because the warning occurs only in the second
11390 # step
11391 ax_pthread_save_ac_link="$ac_link"
11392 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
11393 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
11394 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
11395 ax_pthread_save_CFLAGS="$CFLAGS"
11396 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
11397 if test "x$ax_pthread_try" = "xunknown"; then :
11398 break
11400 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
11401 ac_link="$ax_pthread_save_ac_link"
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11404 int main(void){return 0;}
11405 _ACEOF
11406 if ac_fn_c_try_link "$LINENO"; then :
11407 ac_link="$ax_pthread_2step_ac_link"
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h. */
11410 int main(void){return 0;}
11411 _ACEOF
11412 if ac_fn_c_try_link "$LINENO"; then :
11413 break
11415 rm -f core conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext conftest.$ac_ext
11419 rm -f core conftest.err conftest.$ac_objext \
11420 conftest$ac_exeext conftest.$ac_ext
11421 done
11422 ac_link="$ax_pthread_save_ac_link"
11423 CFLAGS="$ax_pthread_save_CFLAGS"
11424 if test "x$ax_pthread_try" = "x"; then :
11425 ax_pthread_try=no
11427 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
11431 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
11433 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
11434 no | unknown) ;;
11435 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
11436 esac
11438 fi # $ax_pthread_clang = yes
11440 if test "x$ax_pthread_ok" = "xno"; then
11441 for ax_pthread_try_flag in $ax_pthread_flags; do
11443 case $ax_pthread_try_flag in
11444 none)
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11446 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
11449 -mt,pthread)
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
11451 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
11452 PTHREAD_CFLAGS="-mt"
11453 PTHREAD_LIBS="-lpthread"
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
11458 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
11459 PTHREAD_CFLAGS="$ax_pthread_try_flag"
11462 pthread-config)
11463 # Extract the first word of "pthread-config", so it can be a program name with args.
11464 set dummy pthread-config; ac_word=$2
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466 $as_echo_n "checking for $ac_word... " >&6; }
11467 if ${ac_cv_prog_ax_pthread_config+:} false; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 if test -n "$ax_pthread_config"; then
11471 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
11472 else
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in $PATH
11476 IFS=$as_save_IFS
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11480 ac_cv_prog_ax_pthread_config="yes"
11481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 break 2
11484 done
11485 done
11486 IFS=$as_save_IFS
11488 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
11491 ax_pthread_config=$ac_cv_prog_ax_pthread_config
11492 if test -n "$ax_pthread_config"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11494 $as_echo "$ax_pthread_config" >&6; }
11495 else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11501 if test "x$ax_pthread_config" = "xno"; then :
11502 continue
11504 PTHREAD_CFLAGS="`pthread-config --cflags`"
11505 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
11510 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
11511 PTHREAD_LIBS="-l$ax_pthread_try_flag"
11513 esac
11515 ax_pthread_save_CFLAGS="$CFLAGS"
11516 ax_pthread_save_LIBS="$LIBS"
11517 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11518 LIBS="$PTHREAD_LIBS $LIBS"
11520 # Check for various functions. We must include pthread.h,
11521 # since some functions may be macros. (On the Sequent, we
11522 # need a special flag -Kthread to make this header compile.)
11523 # We check for pthread_join because it is in -lpthread on IRIX
11524 # while pthread_create is in libc. We check for pthread_attr_init
11525 # due to DEC craziness with -lpthreads. We check for
11526 # pthread_cleanup_push because it is one of the few pthread
11527 # functions on Solaris that doesn't have a non-functional libc stub.
11528 # We try pthread_create on general principles.
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11532 #include <pthread.h>
11533 # if $ax_pthread_check_cond
11534 # error "$ax_pthread_check_macro must be defined"
11535 # endif
11536 static void routine(void *a) { a = 0; }
11537 static void *start_routine(void *a) { return a; }
11539 main ()
11541 pthread_t th; pthread_attr_t attr;
11542 pthread_create(&th, 0, start_routine, 0);
11543 pthread_join(th, 0);
11544 pthread_attr_init(&attr);
11545 pthread_cleanup_push(routine, 0);
11546 pthread_cleanup_pop(0) /* ; */
11548 return 0;
11550 _ACEOF
11551 if ac_fn_c_try_link "$LINENO"; then :
11552 ax_pthread_ok=yes
11554 rm -f core conftest.err conftest.$ac_objext \
11555 conftest$ac_exeext conftest.$ac_ext
11557 CFLAGS="$ax_pthread_save_CFLAGS"
11558 LIBS="$ax_pthread_save_LIBS"
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11561 $as_echo "$ax_pthread_ok" >&6; }
11562 if test "x$ax_pthread_ok" = "xyes"; then :
11563 break
11566 PTHREAD_LIBS=""
11567 PTHREAD_CFLAGS=""
11568 done
11571 # Various other checks:
11572 if test "x$ax_pthread_ok" = "xyes"; then
11573 ax_pthread_save_CFLAGS="$CFLAGS"
11574 ax_pthread_save_LIBS="$LIBS"
11575 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11576 LIBS="$PTHREAD_LIBS $LIBS"
11578 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11580 $as_echo_n "checking for joinable pthread attribute... " >&6; }
11581 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
11582 $as_echo_n "(cached) " >&6
11583 else
11584 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
11585 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11588 #include <pthread.h>
11590 main ()
11592 int attr = $ax_pthread_attr; return attr /* ; */
11594 return 0;
11596 _ACEOF
11597 if ac_fn_c_try_link "$LINENO"; then :
11598 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
11600 rm -f core conftest.err conftest.$ac_objext \
11601 conftest$ac_exeext conftest.$ac_ext
11602 done
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
11606 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
11607 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
11608 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
11609 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
11611 cat >>confdefs.h <<_ACEOF
11612 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
11613 _ACEOF
11615 ax_pthread_joinable_attr_defined=yes
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11620 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
11621 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
11622 $as_echo_n "(cached) " >&6
11623 else
11624 ax_cv_PTHREAD_SPECIAL_FLAGS=no
11625 case $host_os in
11626 solaris*)
11627 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
11629 esac
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11633 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11634 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11635 test "x$ax_pthread_special_flags_added" != "xyes"; then :
11636 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11637 ax_pthread_special_flags_added=yes
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11641 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11642 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647 #include <pthread.h>
11649 main ()
11651 int i = PTHREAD_PRIO_INHERIT;
11653 return 0;
11655 _ACEOF
11656 if ac_fn_c_try_link "$LINENO"; then :
11657 ax_cv_PTHREAD_PRIO_INHERIT=yes
11658 else
11659 ax_cv_PTHREAD_PRIO_INHERIT=no
11661 rm -f core conftest.err conftest.$ac_objext \
11662 conftest$ac_exeext conftest.$ac_ext
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11666 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11667 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11668 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11670 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11672 ax_pthread_prio_inherit_defined=yes
11676 CFLAGS="$ax_pthread_save_CFLAGS"
11677 LIBS="$ax_pthread_save_LIBS"
11679 # More AIX lossage: compile with *_r variant
11680 if test "x$GCC" != "xyes"; then
11681 case $host_os in
11682 aix*)
11683 case "x/$CC" in #(
11684 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
11685 #handle absolute path differently from PATH based program lookup
11686 case "x$CC" in #(
11687 x/*) :
11688 if as_fn_executable_p ${CC}_r; then :
11689 PTHREAD_CC="${CC}_r"
11690 fi ;; #(
11691 *) :
11692 for ac_prog in ${CC}_r
11694 # Extract the first word of "$ac_prog", so it can be a program name with args.
11695 set dummy $ac_prog; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 if test -n "$PTHREAD_CC"; then
11702 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
11703 else
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711 ac_cv_prog_PTHREAD_CC="$ac_prog"
11712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11713 break 2
11715 done
11716 done
11717 IFS=$as_save_IFS
11721 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
11722 if test -n "$PTHREAD_CC"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11724 $as_echo "$PTHREAD_CC" >&6; }
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11731 test -n "$PTHREAD_CC" && break
11732 done
11733 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11735 esac ;; #(
11736 *) :
11738 esac
11740 esac
11744 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11750 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11751 if test "x$ax_pthread_ok" = "xyes"; then
11752 threads=yes
11754 else
11755 ax_pthread_ok=no
11756 threads=no
11758 ac_ext=c
11759 ac_cpp='$CPP $CPPFLAGS'
11760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11767 if test "$threads" = "yes"; then
11769 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
11772 if test "$threads" = "yes"; then
11773 THREADS_TRUE=
11774 THREADS_FALSE='#'
11775 else
11776 THREADS_TRUE='#'
11777 THREADS_FALSE=
11781 # Used to validate --package-metadata= input. Disabled by default.
11782 # Check whether --enable-jansson was given.
11783 if test "${enable_jansson+set}" = set; then :
11784 enableval=$enable_jansson; enable_jansson=$enableval
11785 else
11786 enable_jansson="no"
11790 if test "x$enable_jansson" != "xno"; then
11798 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11799 if test -n "$ac_tool_prefix"; then
11800 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11801 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11805 $as_echo_n "(cached) " >&6
11806 else
11807 case $PKG_CONFIG in
11808 [\\/]* | ?:[\\/]*)
11809 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $PATH
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11819 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11821 break 2
11823 done
11824 done
11825 IFS=$as_save_IFS
11828 esac
11830 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11831 if test -n "$PKG_CONFIG"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11833 $as_echo "$PKG_CONFIG" >&6; }
11834 else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11841 if test -z "$ac_cv_path_PKG_CONFIG"; then
11842 ac_pt_PKG_CONFIG=$PKG_CONFIG
11843 # Extract the first word of "pkg-config", so it can be a program name with args.
11844 set dummy pkg-config; ac_word=$2
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11846 $as_echo_n "checking for $ac_word... " >&6; }
11847 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11848 $as_echo_n "(cached) " >&6
11849 else
11850 case $ac_pt_PKG_CONFIG in
11851 [\\/]* | ?:[\\/]*)
11852 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856 for as_dir in $PATH
11858 IFS=$as_save_IFS
11859 test -z "$as_dir" && as_dir=.
11860 for ac_exec_ext in '' $ac_executable_extensions; do
11861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11862 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11864 break 2
11866 done
11867 done
11868 IFS=$as_save_IFS
11871 esac
11873 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11874 if test -n "$ac_pt_PKG_CONFIG"; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11876 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11877 else
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879 $as_echo "no" >&6; }
11882 if test "x$ac_pt_PKG_CONFIG" = x; then
11883 PKG_CONFIG=""
11884 else
11885 case $cross_compiling:$ac_tool_warned in
11886 yes:)
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11889 ac_tool_warned=yes ;;
11890 esac
11891 PKG_CONFIG=$ac_pt_PKG_CONFIG
11893 else
11894 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11898 if test -n "$PKG_CONFIG"; then
11899 _pkg_min_version=0.9.0
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11901 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11902 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11904 $as_echo "yes" >&6; }
11905 else
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11908 PKG_CONFIG=""
11911 if test -n "$PKG_CONFIG"; then :
11914 pkg_failed=no
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
11916 $as_echo_n "checking for jansson... " >&6; }
11918 if test -n "$JANSSON_CFLAGS"; then
11919 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
11920 elif test -n "$PKG_CONFIG"; then
11921 if test -n "$PKG_CONFIG" && \
11922 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
11923 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
11924 ac_status=$?
11925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11926 test $ac_status = 0; }; then
11927 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
11928 test "x$?" != "x0" && pkg_failed=yes
11929 else
11930 pkg_failed=yes
11932 else
11933 pkg_failed=untried
11935 if test -n "$JANSSON_LIBS"; then
11936 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
11937 elif test -n "$PKG_CONFIG"; then
11938 if test -n "$PKG_CONFIG" && \
11939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
11940 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
11941 ac_status=$?
11942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11943 test $ac_status = 0; }; then
11944 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
11945 test "x$?" != "x0" && pkg_failed=yes
11946 else
11947 pkg_failed=yes
11949 else
11950 pkg_failed=untried
11953 if test $pkg_failed = no; then
11954 pkg_save_LDFLAGS="$LDFLAGS"
11955 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11960 main ()
11964 return 0;
11966 _ACEOF
11967 if ac_fn_c_try_link "$LINENO"; then :
11969 else
11970 pkg_failed=yes
11972 rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 LDFLAGS=$pkg_save_LDFLAGS
11979 if test $pkg_failed = yes; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11984 _pkg_short_errors_supported=yes
11985 else
11986 _pkg_short_errors_supported=no
11988 if test $_pkg_short_errors_supported = yes; then
11989 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
11990 else
11991 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
11993 # Put the nasty error message in config.log where it belongs
11994 echo "$JANSSON_PKG_ERRORS" >&5
11997 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
11999 elif test $pkg_failed = untried; then
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001 $as_echo "no" >&6; }
12003 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
12005 else
12006 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
12007 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12009 $as_echo "yes" >&6; }
12012 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
12019 else
12021 as_fn_error $? "Cannot find pkg-config" "$LINENO" 5
12026 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12027 if test "x$ac_cv_have_decl_basename" = xyes; then :
12028 ac_have_decl=1
12029 else
12030 ac_have_decl=0
12033 cat >>confdefs.h <<_ACEOF
12034 #define HAVE_DECL_BASENAME $ac_have_decl
12035 _ACEOF
12036 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12037 if test "x$ac_cv_have_decl_ffs" = xyes; then :
12038 ac_have_decl=1
12039 else
12040 ac_have_decl=0
12043 cat >>confdefs.h <<_ACEOF
12044 #define HAVE_DECL_FFS $ac_have_decl
12045 _ACEOF
12046 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12047 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12048 ac_have_decl=1
12049 else
12050 ac_have_decl=0
12053 cat >>confdefs.h <<_ACEOF
12054 #define HAVE_DECL_ASPRINTF $ac_have_decl
12055 _ACEOF
12056 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12057 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12058 ac_have_decl=1
12059 else
12060 ac_have_decl=0
12063 cat >>confdefs.h <<_ACEOF
12064 #define HAVE_DECL_VASPRINTF $ac_have_decl
12065 _ACEOF
12066 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12067 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12068 ac_have_decl=1
12069 else
12070 ac_have_decl=0
12073 cat >>confdefs.h <<_ACEOF
12074 #define HAVE_DECL_SNPRINTF $ac_have_decl
12075 _ACEOF
12076 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12077 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12078 ac_have_decl=1
12079 else
12080 ac_have_decl=0
12083 cat >>confdefs.h <<_ACEOF
12084 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12085 _ACEOF
12086 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12087 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
12088 ac_have_decl=1
12089 else
12090 ac_have_decl=0
12093 cat >>confdefs.h <<_ACEOF
12094 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12095 _ACEOF
12098 save_CFLAGS="$CFLAGS"
12099 CFLAGS="$CFLAGS -Werror -gpubnames"
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12102 int i;
12103 _ACEOF
12104 if ac_fn_c_try_compile "$LINENO"; then :
12105 have_pubnames=yes
12106 else
12107 have_pubnames=no
12109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110 CFLAGS="$save_CFLAGS"
12111 if test "$have_pubnames" = "yes"; then
12112 HAVE_PUBNAMES_TRUE=
12113 HAVE_PUBNAMES_FALSE='#'
12114 else
12115 HAVE_PUBNAMES_TRUE='#'
12116 HAVE_PUBNAMES_FALSE=
12120 save_CFLAGS="$CFLAGS"
12121 CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12124 int i;
12125 _ACEOF
12126 if ac_fn_c_try_compile "$LINENO"; then :
12127 have_no_use_linker_plugin=yes
12128 else
12129 have_no_use_linker_plugin=no
12131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12132 CFLAGS="$save_CFLAGS"
12133 if test "$have_no_use_linker_plugin" = "yes"; then
12134 HAVE_NO_USE_LINKER_PLUGIN_TRUE=
12135 HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
12136 else
12137 HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
12138 HAVE_NO_USE_LINKER_PLUGIN_FALSE=
12142 ac_ext=cpp
12143 ac_cpp='$CXXCPP $CPPFLAGS'
12144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12150 ac_ext=cpp
12151 ac_cpp='$CXXCPP $CPPFLAGS'
12152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12156 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12157 if test -z "$CXXCPP"; then
12158 if ${ac_cv_prog_CXXCPP+:} false; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 # Double quotes because CXXCPP needs to be expanded
12162 for CXXCPP in "$CXX -E" "/lib/cpp"
12164 ac_preproc_ok=false
12165 for ac_cxx_preproc_warn_flag in '' yes
12167 # Use a header file that comes with gcc, so configuring glibc
12168 # with a fresh cross-compiler works.
12169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12170 # <limits.h> exists even on freestanding compilers.
12171 # On the NeXT, cc -E runs the code through the compiler's parser,
12172 # not just through cpp. "Syntax error" is here to catch this case.
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h. */
12175 #ifdef __STDC__
12176 # include <limits.h>
12177 #else
12178 # include <assert.h>
12179 #endif
12180 Syntax error
12181 _ACEOF
12182 if ac_fn_cxx_try_cpp "$LINENO"; then :
12184 else
12185 # Broken: fails on valid input.
12186 continue
12188 rm -f conftest.err conftest.i conftest.$ac_ext
12190 # OK, works on sane cases. Now check whether nonexistent headers
12191 # can be detected and how.
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12194 #include <ac_nonexistent.h>
12195 _ACEOF
12196 if ac_fn_cxx_try_cpp "$LINENO"; then :
12197 # Broken: success on invalid input.
12198 continue
12199 else
12200 # Passes both tests.
12201 ac_preproc_ok=:
12202 break
12204 rm -f conftest.err conftest.i conftest.$ac_ext
12206 done
12207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12208 rm -f conftest.i conftest.err conftest.$ac_ext
12209 if $ac_preproc_ok; then :
12210 break
12213 done
12214 ac_cv_prog_CXXCPP=$CXXCPP
12217 CXXCPP=$ac_cv_prog_CXXCPP
12218 else
12219 ac_cv_prog_CXXCPP=$CXXCPP
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12222 $as_echo "$CXXCPP" >&6; }
12223 ac_preproc_ok=false
12224 for ac_cxx_preproc_warn_flag in '' yes
12226 # Use a header file that comes with gcc, so configuring glibc
12227 # with a fresh cross-compiler works.
12228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12229 # <limits.h> exists even on freestanding compilers.
12230 # On the NeXT, cc -E runs the code through the compiler's parser,
12231 # not just through cpp. "Syntax error" is here to catch this case.
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12234 #ifdef __STDC__
12235 # include <limits.h>
12236 #else
12237 # include <assert.h>
12238 #endif
12239 Syntax error
12240 _ACEOF
12241 if ac_fn_cxx_try_cpp "$LINENO"; then :
12243 else
12244 # Broken: fails on valid input.
12245 continue
12247 rm -f conftest.err conftest.i conftest.$ac_ext
12249 # OK, works on sane cases. Now check whether nonexistent headers
12250 # can be detected and how.
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12253 #include <ac_nonexistent.h>
12254 _ACEOF
12255 if ac_fn_cxx_try_cpp "$LINENO"; then :
12256 # Broken: success on invalid input.
12257 continue
12258 else
12259 # Passes both tests.
12260 ac_preproc_ok=:
12261 break
12263 rm -f conftest.err conftest.i conftest.$ac_ext
12265 done
12266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12267 rm -f conftest.i conftest.err conftest.$ac_ext
12268 if $ac_preproc_ok; then :
12270 else
12271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12273 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12274 See \`config.log' for more details" "$LINENO" 5; }
12277 ac_ext=cpp
12278 ac_cpp='$CXXCPP $CPPFLAGS'
12279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12284 for ac_header in unordered_set unordered_map
12285 do :
12286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12287 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12288 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12289 cat >>confdefs.h <<_ACEOF
12290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12291 _ACEOF
12295 done
12297 for ac_header in tr1/unordered_set tr1/unordered_map
12298 do :
12299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12300 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12301 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12302 cat >>confdefs.h <<_ACEOF
12303 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12304 _ACEOF
12308 done
12310 for ac_header in ext/hash_map ext/hash_set
12311 do :
12312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12313 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12314 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12315 cat >>confdefs.h <<_ACEOF
12316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12317 _ACEOF
12321 done
12323 for ac_header in byteswap.h
12324 do :
12325 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
12326 if test "x$ac_cv_header_byteswap_h" = xyes; then :
12327 cat >>confdefs.h <<_ACEOF
12328 #define HAVE_BYTESWAP_H 1
12329 _ACEOF
12333 done
12336 ac_fn_cxx_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
12338 if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
12339 ac_have_decl=1
12340 else
12341 ac_have_decl=0
12344 cat >>confdefs.h <<_ACEOF
12345 #define HAVE_DECL_BSWAP_16 $ac_have_decl
12346 _ACEOF
12347 ac_fn_cxx_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
12349 if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
12350 ac_have_decl=1
12351 else
12352 ac_have_decl=0
12355 cat >>confdefs.h <<_ACEOF
12356 #define HAVE_DECL_BSWAP_32 $ac_have_decl
12357 _ACEOF
12358 ac_fn_cxx_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
12360 if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
12361 ac_have_decl=1
12362 else
12363 ac_have_decl=0
12366 cat >>confdefs.h <<_ACEOF
12367 #define HAVE_DECL_BSWAP_64 $ac_have_decl
12368 _ACEOF
12371 for ac_header in windows.h
12372 do :
12373 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12374 if test "x$ac_cv_header_windows_h" = xyes; then :
12375 cat >>confdefs.h <<_ACEOF
12376 #define HAVE_WINDOWS_H 1
12377 _ACEOF
12381 done
12383 for ac_header in dlfcn.h
12384 do :
12385 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
12386 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12387 cat >>confdefs.h <<_ACEOF
12388 #define HAVE_DLFCN_H 1
12389 _ACEOF
12393 done
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12396 $as_echo_n "checking for library containing dlopen... " >&6; }
12397 if ${ac_cv_search_dlopen+:} false; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12400 ac_func_search_save_LIBS=$LIBS
12401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402 /* end confdefs.h. */
12404 /* Override any GCC internal prototype to avoid an error.
12405 Use char because int might match the return type of a GCC
12406 builtin and then its argument prototype would still apply. */
12407 #ifdef __cplusplus
12408 extern "C"
12409 #endif
12410 char dlopen ();
12412 main ()
12414 return dlopen ();
12416 return 0;
12418 _ACEOF
12419 for ac_lib in '' dl dld; do
12420 if test -z "$ac_lib"; then
12421 ac_res="none required"
12422 else
12423 ac_res=-l$ac_lib
12424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12426 if ac_fn_cxx_try_link "$LINENO"; then :
12427 ac_cv_search_dlopen=$ac_res
12429 rm -f core conftest.err conftest.$ac_objext \
12430 conftest$ac_exeext
12431 if ${ac_cv_search_dlopen+:} false; then :
12432 break
12434 done
12435 if ${ac_cv_search_dlopen+:} false; then :
12437 else
12438 ac_cv_search_dlopen=no
12440 rm conftest.$ac_ext
12441 LIBS=$ac_func_search_save_LIBS
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12444 $as_echo "$ac_cv_search_dlopen" >&6; }
12445 ac_res=$ac_cv_search_dlopen
12446 if test "$ac_res" != no; then :
12447 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12451 case "$ac_cv_search_dlopen" in
12452 no*) DLOPEN_LIBS="";;
12453 *) DLOPEN_LIBS="$ac_cv_search_dlopen";;
12454 esac
12457 for ac_func in mallinfo mallinfo2 posix_fallocate fallocate readv sysconf times mkdtemp
12458 do :
12459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12460 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12461 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12462 cat >>confdefs.h <<_ACEOF
12463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12464 _ACEOF
12467 done
12469 ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12470 if test "x$ac_cv_have_decl_basename" = xyes; then :
12471 ac_have_decl=1
12472 else
12473 ac_have_decl=0
12476 cat >>confdefs.h <<_ACEOF
12477 #define HAVE_DECL_BASENAME $ac_have_decl
12478 _ACEOF
12479 ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12480 if test "x$ac_cv_have_decl_ffs" = xyes; then :
12481 ac_have_decl=1
12482 else
12483 ac_have_decl=0
12486 cat >>confdefs.h <<_ACEOF
12487 #define HAVE_DECL_FFS $ac_have_decl
12488 _ACEOF
12489 ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12490 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12491 ac_have_decl=1
12492 else
12493 ac_have_decl=0
12496 cat >>confdefs.h <<_ACEOF
12497 #define HAVE_DECL_ASPRINTF $ac_have_decl
12498 _ACEOF
12499 ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12500 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12501 ac_have_decl=1
12502 else
12503 ac_have_decl=0
12506 cat >>confdefs.h <<_ACEOF
12507 #define HAVE_DECL_VASPRINTF $ac_have_decl
12508 _ACEOF
12509 ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12510 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12511 ac_have_decl=1
12512 else
12513 ac_have_decl=0
12516 cat >>confdefs.h <<_ACEOF
12517 #define HAVE_DECL_SNPRINTF $ac_have_decl
12518 _ACEOF
12519 ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12520 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12521 ac_have_decl=1
12522 else
12523 ac_have_decl=0
12526 cat >>confdefs.h <<_ACEOF
12527 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12528 _ACEOF
12529 ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12530 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
12531 ac_have_decl=1
12532 else
12533 ac_have_decl=0
12536 cat >>confdefs.h <<_ACEOF
12537 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12538 _ACEOF
12539 ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
12540 if test "x$ac_cv_have_decl_strndup" = xyes; then :
12541 ac_have_decl=1
12542 else
12543 ac_have_decl=0
12546 cat >>confdefs.h <<_ACEOF
12547 #define HAVE_DECL_STRNDUP $ac_have_decl
12548 _ACEOF
12549 ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
12550 if test "x$ac_cv_have_decl_memmem" = xyes; then :
12551 ac_have_decl=1
12552 else
12553 ac_have_decl=0
12556 cat >>confdefs.h <<_ACEOF
12557 #define HAVE_DECL_MEMMEM $ac_have_decl
12558 _ACEOF
12561 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
12562 # at link time with some versions of GCC.
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
12564 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
12565 if ${gold_cv_unordered_map_rehash+:} false; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12571 #include <tr1/unordered_map>
12572 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
12575 main ()
12579 return 0;
12581 _ACEOF
12582 if ac_fn_cxx_try_link "$LINENO"; then :
12583 gold_cv_unordered_map_rehash=yes
12584 else
12585 gold_cv_unordered_map_rehash=no
12587 rm -f core conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
12591 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
12592 if test "$gold_cv_unordered_map_rehash" = "yes"; then
12594 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
12598 # Since 5e9091dab8858b25210a91d22fbbbfdee9c969ad gold now requires C++11
12599 # So we need to check for it.
12600 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
12601 ac_ext=cpp
12602 ac_cpp='$CXXCPP $CPPFLAGS'
12603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12606 ac_success=no
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
12609 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
12610 if ${ax_cv_cxx_compile_cxx11+:} false; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h. */
12617 // If the compiler admits that it is not ready for C++11, why torture it?
12618 // Hopefully, this will speed up the test.
12620 #ifndef __cplusplus
12622 #error "This is not a C++ compiler"
12624 #elif __cplusplus < 201103L
12626 #error "This is not a C++11 compiler"
12628 #else
12630 namespace cxx11
12633 namespace test_static_assert
12636 template <typename T>
12637 struct check
12639 static_assert(sizeof(int) <= sizeof(T), "not big enough");
12644 namespace test_final_override
12647 struct Base
12649 virtual ~Base() {}
12650 virtual void f() {}
12653 struct Derived : public Base
12655 virtual ~Derived() override {}
12656 virtual void f() override {}
12661 namespace test_double_right_angle_brackets
12664 template < typename T >
12665 struct check {};
12667 typedef check<void> single_type;
12668 typedef check<check<void>> double_type;
12669 typedef check<check<check<void>>> triple_type;
12670 typedef check<check<check<check<void>>>> quadruple_type;
12674 namespace test_decltype
12680 int a = 1;
12681 decltype(a) b = 2;
12682 return a + b;
12687 namespace test_type_deduction
12690 template < typename T1, typename T2 >
12691 struct is_same
12693 static const bool value = false;
12696 template < typename T >
12697 struct is_same<T, T>
12699 static const bool value = true;
12702 template < typename T1, typename T2 >
12703 auto
12704 add(T1 a1, T2 a2) -> decltype(a1 + a2)
12706 return a1 + a2;
12710 test(const int c, volatile int v)
12712 static_assert(is_same<int, decltype(0)>::value == true, "");
12713 static_assert(is_same<int, decltype(c)>::value == false, "");
12714 static_assert(is_same<int, decltype(v)>::value == false, "");
12715 auto ac = c;
12716 auto av = v;
12717 auto sumi = ac + av + 'x';
12718 auto sumf = ac + av + 1.0;
12719 static_assert(is_same<int, decltype(ac)>::value == true, "");
12720 static_assert(is_same<int, decltype(av)>::value == true, "");
12721 static_assert(is_same<int, decltype(sumi)>::value == true, "");
12722 static_assert(is_same<int, decltype(sumf)>::value == false, "");
12723 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
12724 return (sumf > 0.0) ? sumi : add(c, v);
12729 namespace test_noexcept
12732 int f() { return 0; }
12733 int g() noexcept { return 0; }
12735 static_assert(noexcept(f()) == false, "");
12736 static_assert(noexcept(g()) == true, "");
12740 namespace test_constexpr
12743 template < typename CharT >
12744 unsigned long constexpr
12745 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
12747 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
12750 template < typename CharT >
12751 unsigned long constexpr
12752 strlen_c(const CharT *const s) noexcept
12754 return strlen_c_r(s, 0UL);
12757 static_assert(strlen_c("") == 0UL, "");
12758 static_assert(strlen_c("1") == 1UL, "");
12759 static_assert(strlen_c("example") == 7UL, "");
12760 static_assert(strlen_c("another\0example") == 7UL, "");
12764 namespace test_rvalue_references
12767 template < int N >
12768 struct answer
12770 static constexpr int value = N;
12773 answer<1> f(int&) { return answer<1>(); }
12774 answer<2> f(const int&) { return answer<2>(); }
12775 answer<3> f(int&&) { return answer<3>(); }
12777 void
12778 test()
12780 int i = 0;
12781 const int c = 0;
12782 static_assert(decltype(f(i))::value == 1, "");
12783 static_assert(decltype(f(c))::value == 2, "");
12784 static_assert(decltype(f(0))::value == 3, "");
12789 namespace test_uniform_initialization
12792 struct test
12794 static const int zero {};
12795 static const int one {1};
12798 static_assert(test::zero == 0, "");
12799 static_assert(test::one == 1, "");
12803 namespace test_lambdas
12806 void
12807 test1()
12809 auto lambda1 = [](){};
12810 auto lambda2 = lambda1;
12811 lambda1();
12812 lambda2();
12816 test2()
12818 auto a = [](int i, int j){ return i + j; }(1, 2);
12819 auto b = []() -> int { return '0'; }();
12820 auto c = [=](){ return a + b; }();
12821 auto d = [&](){ return c; }();
12822 auto e = [a, &b](int x) mutable {
12823 const auto identity = [](int y){ return y; };
12824 for (auto i = 0; i < a; ++i)
12825 a += b--;
12826 return x + identity(a + b);
12827 }(0);
12828 return a + b + c + d + e;
12832 test3()
12834 const auto nullary = [](){ return 0; };
12835 const auto unary = [](int x){ return x; };
12836 using nullary_t = decltype(nullary);
12837 using unary_t = decltype(unary);
12838 const auto higher1st = [](nullary_t f){ return f(); };
12839 const auto higher2nd = [unary](nullary_t f1){
12840 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
12842 return higher1st(nullary) + higher2nd(nullary)(unary);
12847 namespace test_variadic_templates
12850 template <int...>
12851 struct sum;
12853 template <int N0, int... N1toN>
12854 struct sum<N0, N1toN...>
12856 static constexpr auto value = N0 + sum<N1toN...>::value;
12859 template <>
12860 struct sum<>
12862 static constexpr auto value = 0;
12865 static_assert(sum<>::value == 0, "");
12866 static_assert(sum<1>::value == 1, "");
12867 static_assert(sum<23>::value == 23, "");
12868 static_assert(sum<1, 2>::value == 3, "");
12869 static_assert(sum<5, 5, 11>::value == 21, "");
12870 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
12874 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
12875 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
12876 // because of this.
12877 namespace test_template_alias_sfinae
12880 struct foo {};
12882 template<typename T>
12883 using member = typename T::member_type;
12885 template<typename T>
12886 void func(...) {}
12888 template<typename T>
12889 void func(member<T>*) {}
12891 void test();
12893 void test() { func<foo>(0); }
12897 } // namespace cxx11
12899 #endif // __cplusplus >= 201103L
12903 _ACEOF
12904 if ac_fn_cxx_try_compile "$LINENO"; then :
12905 ax_cv_cxx_compile_cxx11=yes
12906 else
12907 ax_cv_cxx_compile_cxx11=no
12909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
12912 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
12913 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
12914 ac_success=yes
12917 if test x$ac_success = xno; then
12918 for alternative in ${ax_cxx_compile_alternatives}; do
12919 switch="-std=gnu++${alternative}"
12920 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
12922 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
12923 if eval \${$cachevar+:} false; then :
12924 $as_echo_n "(cached) " >&6
12925 else
12926 ac_save_CXX="$CXX"
12927 CXX="$CXX $switch"
12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12932 // If the compiler admits that it is not ready for C++11, why torture it?
12933 // Hopefully, this will speed up the test.
12935 #ifndef __cplusplus
12937 #error "This is not a C++ compiler"
12939 #elif __cplusplus < 201103L
12941 #error "This is not a C++11 compiler"
12943 #else
12945 namespace cxx11
12948 namespace test_static_assert
12951 template <typename T>
12952 struct check
12954 static_assert(sizeof(int) <= sizeof(T), "not big enough");
12959 namespace test_final_override
12962 struct Base
12964 virtual ~Base() {}
12965 virtual void f() {}
12968 struct Derived : public Base
12970 virtual ~Derived() override {}
12971 virtual void f() override {}
12976 namespace test_double_right_angle_brackets
12979 template < typename T >
12980 struct check {};
12982 typedef check<void> single_type;
12983 typedef check<check<void>> double_type;
12984 typedef check<check<check<void>>> triple_type;
12985 typedef check<check<check<check<void>>>> quadruple_type;
12989 namespace test_decltype
12995 int a = 1;
12996 decltype(a) b = 2;
12997 return a + b;
13002 namespace test_type_deduction
13005 template < typename T1, typename T2 >
13006 struct is_same
13008 static const bool value = false;
13011 template < typename T >
13012 struct is_same<T, T>
13014 static const bool value = true;
13017 template < typename T1, typename T2 >
13018 auto
13019 add(T1 a1, T2 a2) -> decltype(a1 + a2)
13021 return a1 + a2;
13025 test(const int c, volatile int v)
13027 static_assert(is_same<int, decltype(0)>::value == true, "");
13028 static_assert(is_same<int, decltype(c)>::value == false, "");
13029 static_assert(is_same<int, decltype(v)>::value == false, "");
13030 auto ac = c;
13031 auto av = v;
13032 auto sumi = ac + av + 'x';
13033 auto sumf = ac + av + 1.0;
13034 static_assert(is_same<int, decltype(ac)>::value == true, "");
13035 static_assert(is_same<int, decltype(av)>::value == true, "");
13036 static_assert(is_same<int, decltype(sumi)>::value == true, "");
13037 static_assert(is_same<int, decltype(sumf)>::value == false, "");
13038 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
13039 return (sumf > 0.0) ? sumi : add(c, v);
13044 namespace test_noexcept
13047 int f() { return 0; }
13048 int g() noexcept { return 0; }
13050 static_assert(noexcept(f()) == false, "");
13051 static_assert(noexcept(g()) == true, "");
13055 namespace test_constexpr
13058 template < typename CharT >
13059 unsigned long constexpr
13060 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
13062 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
13065 template < typename CharT >
13066 unsigned long constexpr
13067 strlen_c(const CharT *const s) noexcept
13069 return strlen_c_r(s, 0UL);
13072 static_assert(strlen_c("") == 0UL, "");
13073 static_assert(strlen_c("1") == 1UL, "");
13074 static_assert(strlen_c("example") == 7UL, "");
13075 static_assert(strlen_c("another\0example") == 7UL, "");
13079 namespace test_rvalue_references
13082 template < int N >
13083 struct answer
13085 static constexpr int value = N;
13088 answer<1> f(int&) { return answer<1>(); }
13089 answer<2> f(const int&) { return answer<2>(); }
13090 answer<3> f(int&&) { return answer<3>(); }
13092 void
13093 test()
13095 int i = 0;
13096 const int c = 0;
13097 static_assert(decltype(f(i))::value == 1, "");
13098 static_assert(decltype(f(c))::value == 2, "");
13099 static_assert(decltype(f(0))::value == 3, "");
13104 namespace test_uniform_initialization
13107 struct test
13109 static const int zero {};
13110 static const int one {1};
13113 static_assert(test::zero == 0, "");
13114 static_assert(test::one == 1, "");
13118 namespace test_lambdas
13121 void
13122 test1()
13124 auto lambda1 = [](){};
13125 auto lambda2 = lambda1;
13126 lambda1();
13127 lambda2();
13131 test2()
13133 auto a = [](int i, int j){ return i + j; }(1, 2);
13134 auto b = []() -> int { return '0'; }();
13135 auto c = [=](){ return a + b; }();
13136 auto d = [&](){ return c; }();
13137 auto e = [a, &b](int x) mutable {
13138 const auto identity = [](int y){ return y; };
13139 for (auto i = 0; i < a; ++i)
13140 a += b--;
13141 return x + identity(a + b);
13142 }(0);
13143 return a + b + c + d + e;
13147 test3()
13149 const auto nullary = [](){ return 0; };
13150 const auto unary = [](int x){ return x; };
13151 using nullary_t = decltype(nullary);
13152 using unary_t = decltype(unary);
13153 const auto higher1st = [](nullary_t f){ return f(); };
13154 const auto higher2nd = [unary](nullary_t f1){
13155 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
13157 return higher1st(nullary) + higher2nd(nullary)(unary);
13162 namespace test_variadic_templates
13165 template <int...>
13166 struct sum;
13168 template <int N0, int... N1toN>
13169 struct sum<N0, N1toN...>
13171 static constexpr auto value = N0 + sum<N1toN...>::value;
13174 template <>
13175 struct sum<>
13177 static constexpr auto value = 0;
13180 static_assert(sum<>::value == 0, "");
13181 static_assert(sum<1>::value == 1, "");
13182 static_assert(sum<23>::value == 23, "");
13183 static_assert(sum<1, 2>::value == 3, "");
13184 static_assert(sum<5, 5, 11>::value == 21, "");
13185 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
13189 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
13190 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
13191 // because of this.
13192 namespace test_template_alias_sfinae
13195 struct foo {};
13197 template<typename T>
13198 using member = typename T::member_type;
13200 template<typename T>
13201 void func(...) {}
13203 template<typename T>
13204 void func(member<T>*) {}
13206 void test();
13208 void test() { func<foo>(0); }
13212 } // namespace cxx11
13214 #endif // __cplusplus >= 201103L
13218 _ACEOF
13219 if ac_fn_cxx_try_compile "$LINENO"; then :
13220 eval $cachevar=yes
13221 else
13222 eval $cachevar=no
13224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225 CXX="$ac_save_CXX"
13227 eval ac_res=\$$cachevar
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13229 $as_echo "$ac_res" >&6; }
13230 if eval test x\$$cachevar = xyes; then
13231 CXX="$CXX $switch"
13232 if test -n "$CXXCPP" ; then
13233 CXXCPP="$CXXCPP $switch"
13235 ac_success=yes
13236 break
13238 done
13241 if test x$ac_success = xno; then
13242 for alternative in ${ax_cxx_compile_alternatives}; do
13243 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
13244 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
13246 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
13247 if eval \${$cachevar+:} false; then :
13248 $as_echo_n "(cached) " >&6
13249 else
13250 ac_save_CXX="$CXX"
13251 CXX="$CXX $switch"
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13256 // If the compiler admits that it is not ready for C++11, why torture it?
13257 // Hopefully, this will speed up the test.
13259 #ifndef __cplusplus
13261 #error "This is not a C++ compiler"
13263 #elif __cplusplus < 201103L
13265 #error "This is not a C++11 compiler"
13267 #else
13269 namespace cxx11
13272 namespace test_static_assert
13275 template <typename T>
13276 struct check
13278 static_assert(sizeof(int) <= sizeof(T), "not big enough");
13283 namespace test_final_override
13286 struct Base
13288 virtual ~Base() {}
13289 virtual void f() {}
13292 struct Derived : public Base
13294 virtual ~Derived() override {}
13295 virtual void f() override {}
13300 namespace test_double_right_angle_brackets
13303 template < typename T >
13304 struct check {};
13306 typedef check<void> single_type;
13307 typedef check<check<void>> double_type;
13308 typedef check<check<check<void>>> triple_type;
13309 typedef check<check<check<check<void>>>> quadruple_type;
13313 namespace test_decltype
13319 int a = 1;
13320 decltype(a) b = 2;
13321 return a + b;
13326 namespace test_type_deduction
13329 template < typename T1, typename T2 >
13330 struct is_same
13332 static const bool value = false;
13335 template < typename T >
13336 struct is_same<T, T>
13338 static const bool value = true;
13341 template < typename T1, typename T2 >
13342 auto
13343 add(T1 a1, T2 a2) -> decltype(a1 + a2)
13345 return a1 + a2;
13349 test(const int c, volatile int v)
13351 static_assert(is_same<int, decltype(0)>::value == true, "");
13352 static_assert(is_same<int, decltype(c)>::value == false, "");
13353 static_assert(is_same<int, decltype(v)>::value == false, "");
13354 auto ac = c;
13355 auto av = v;
13356 auto sumi = ac + av + 'x';
13357 auto sumf = ac + av + 1.0;
13358 static_assert(is_same<int, decltype(ac)>::value == true, "");
13359 static_assert(is_same<int, decltype(av)>::value == true, "");
13360 static_assert(is_same<int, decltype(sumi)>::value == true, "");
13361 static_assert(is_same<int, decltype(sumf)>::value == false, "");
13362 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
13363 return (sumf > 0.0) ? sumi : add(c, v);
13368 namespace test_noexcept
13371 int f() { return 0; }
13372 int g() noexcept { return 0; }
13374 static_assert(noexcept(f()) == false, "");
13375 static_assert(noexcept(g()) == true, "");
13379 namespace test_constexpr
13382 template < typename CharT >
13383 unsigned long constexpr
13384 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
13386 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
13389 template < typename CharT >
13390 unsigned long constexpr
13391 strlen_c(const CharT *const s) noexcept
13393 return strlen_c_r(s, 0UL);
13396 static_assert(strlen_c("") == 0UL, "");
13397 static_assert(strlen_c("1") == 1UL, "");
13398 static_assert(strlen_c("example") == 7UL, "");
13399 static_assert(strlen_c("another\0example") == 7UL, "");
13403 namespace test_rvalue_references
13406 template < int N >
13407 struct answer
13409 static constexpr int value = N;
13412 answer<1> f(int&) { return answer<1>(); }
13413 answer<2> f(const int&) { return answer<2>(); }
13414 answer<3> f(int&&) { return answer<3>(); }
13416 void
13417 test()
13419 int i = 0;
13420 const int c = 0;
13421 static_assert(decltype(f(i))::value == 1, "");
13422 static_assert(decltype(f(c))::value == 2, "");
13423 static_assert(decltype(f(0))::value == 3, "");
13428 namespace test_uniform_initialization
13431 struct test
13433 static const int zero {};
13434 static const int one {1};
13437 static_assert(test::zero == 0, "");
13438 static_assert(test::one == 1, "");
13442 namespace test_lambdas
13445 void
13446 test1()
13448 auto lambda1 = [](){};
13449 auto lambda2 = lambda1;
13450 lambda1();
13451 lambda2();
13455 test2()
13457 auto a = [](int i, int j){ return i + j; }(1, 2);
13458 auto b = []() -> int { return '0'; }();
13459 auto c = [=](){ return a + b; }();
13460 auto d = [&](){ return c; }();
13461 auto e = [a, &b](int x) mutable {
13462 const auto identity = [](int y){ return y; };
13463 for (auto i = 0; i < a; ++i)
13464 a += b--;
13465 return x + identity(a + b);
13466 }(0);
13467 return a + b + c + d + e;
13471 test3()
13473 const auto nullary = [](){ return 0; };
13474 const auto unary = [](int x){ return x; };
13475 using nullary_t = decltype(nullary);
13476 using unary_t = decltype(unary);
13477 const auto higher1st = [](nullary_t f){ return f(); };
13478 const auto higher2nd = [unary](nullary_t f1){
13479 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
13481 return higher1st(nullary) + higher2nd(nullary)(unary);
13486 namespace test_variadic_templates
13489 template <int...>
13490 struct sum;
13492 template <int N0, int... N1toN>
13493 struct sum<N0, N1toN...>
13495 static constexpr auto value = N0 + sum<N1toN...>::value;
13498 template <>
13499 struct sum<>
13501 static constexpr auto value = 0;
13504 static_assert(sum<>::value == 0, "");
13505 static_assert(sum<1>::value == 1, "");
13506 static_assert(sum<23>::value == 23, "");
13507 static_assert(sum<1, 2>::value == 3, "");
13508 static_assert(sum<5, 5, 11>::value == 21, "");
13509 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
13513 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
13514 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
13515 // because of this.
13516 namespace test_template_alias_sfinae
13519 struct foo {};
13521 template<typename T>
13522 using member = typename T::member_type;
13524 template<typename T>
13525 void func(...) {}
13527 template<typename T>
13528 void func(member<T>*) {}
13530 void test();
13532 void test() { func<foo>(0); }
13536 } // namespace cxx11
13538 #endif // __cplusplus >= 201103L
13542 _ACEOF
13543 if ac_fn_cxx_try_compile "$LINENO"; then :
13544 eval $cachevar=yes
13545 else
13546 eval $cachevar=no
13548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549 CXX="$ac_save_CXX"
13551 eval ac_res=\$$cachevar
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13553 $as_echo "$ac_res" >&6; }
13554 if eval test x\$$cachevar = xyes; then
13555 CXX="$CXX $switch"
13556 if test -n "$CXXCPP" ; then
13557 CXXCPP="$CXXCPP $switch"
13559 ac_success=yes
13560 break
13562 done
13563 if test x$ac_success = xyes; then
13564 break
13566 done
13569 ac_ext=cpp
13570 ac_cpp='$CXXCPP $CPPFLAGS'
13571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13575 if test x$ax_cxx_compile_cxx11_required = xtrue; then
13576 if test x$ac_success = xno; then
13577 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
13580 if test x$ac_success = xno; then
13581 HAVE_CXX11=0
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
13583 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
13584 else
13585 HAVE_CXX11=1
13587 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
13593 # Use of tr1/unordered_map with off_t as a key is not supported on GCC
13594 # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
13596 $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
13597 if ${gold_cv_hash_off_t+:} false; then :
13598 $as_echo_n "(cached) " >&6
13599 else
13600 CXXFLAGS_hold=$CXXFLAGS
13601 CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
13602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13605 #include <sys/types.h>
13606 #include <tr1/unordered_map>
13607 std::tr1::hash<off_t> h;
13609 _ACEOF
13610 if ac_fn_cxx_try_compile "$LINENO"; then :
13611 gold_cv_hash_off_t=yes
13612 else
13613 gold_cv_hash_off_t=no
13615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 CXXFLAGS=$CXXFLAGS_hold
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
13619 $as_echo "$gold_cv_hash_off_t" >&6; }
13620 if test "$gold_cv_hash_off_t" = "yes"; then
13622 $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
13626 # gcc 4.3.0 doesn't recognize the printf attribute on a template
13627 # function. Check for that. This is gcc bug 35546. This test can
13628 # probably be removed after the bug has been fixed for a while.
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
13630 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
13631 if ${gold_cv_template_attribute+:} false; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13637 template<typename T> extern void foo(const char*, ...)
13638 __attribute__ ((__format__ (__printf__, 1, 2)));
13639 template<typename T> void foo(const char* format, ...) {}
13640 void bar() { foo<int>("%s\n", "foo"); }
13642 _ACEOF
13643 if ac_fn_cxx_try_compile "$LINENO"; then :
13644 gold_cv_template_attribute=yes
13645 else
13646 gold_cv_template_attribute=no
13648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
13651 $as_echo "$gold_cv_template_attribute" >&6; }
13652 if test "$gold_cv_template_attribute" = "yes"; then
13654 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
13659 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
13660 if ${gold_cv_stat_st_mtim+:} false; then :
13661 $as_echo_n "(cached) " >&6
13662 else
13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13666 #include <sys/stat.h>
13667 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
13670 main ()
13674 return 0;
13676 _ACEOF
13677 if ac_fn_cxx_try_compile "$LINENO"; then :
13678 gold_cv_stat_st_mtim=yes
13679 else
13680 gold_cv_stat_st_mtim=no
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
13685 $as_echo "$gold_cv_stat_st_mtim" >&6; }
13686 if test "$gold_cv_stat_st_mtim" = "yes"; then
13688 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
13692 ac_ext=c
13693 ac_cpp='$CPP $CPPFLAGS'
13694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13699 for ac_header in locale.h
13700 do :
13701 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13702 if test "x$ac_cv_header_locale_h" = xyes; then :
13703 cat >>confdefs.h <<_ACEOF
13704 #define HAVE_LOCALE_H 1
13705 _ACEOF
13709 done
13711 for ac_func in setlocale
13712 do :
13713 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
13714 if test "x$ac_cv_func_setlocale" = xyes; then :
13715 cat >>confdefs.h <<_ACEOF
13716 #define HAVE_SETLOCALE 1
13717 _ACEOF
13720 done
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13724 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13725 if ${am_cv_val_LC_MESSAGES+:} false; then :
13726 $as_echo_n "(cached) " >&6
13727 else
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13730 #include <locale.h>
13732 main ()
13734 return LC_MESSAGES
13736 return 0;
13738 _ACEOF
13739 if ac_fn_c_try_link "$LINENO"; then :
13740 am_cv_val_LC_MESSAGES=yes
13741 else
13742 am_cv_val_LC_MESSAGES=no
13744 rm -f core conftest.err conftest.$ac_objext \
13745 conftest$ac_exeext conftest.$ac_ext
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13748 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13749 if test $am_cv_val_LC_MESSAGES = yes; then
13751 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13758 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13759 # Check whether --enable-maintainer-mode was given.
13760 if test "${enable_maintainer_mode+set}" = set; then :
13761 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13762 else
13763 USE_MAINTAINER_MODE=no
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13767 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13768 if test $USE_MAINTAINER_MODE = yes; then
13769 MAINTAINER_MODE_TRUE=
13770 MAINTAINER_MODE_FALSE='#'
13771 else
13772 MAINTAINER_MODE_TRUE='#'
13773 MAINTAINER_MODE_FALSE=
13776 MAINT=$MAINTAINER_MODE_TRUE
13780 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
13782 cat >confcache <<\_ACEOF
13783 # This file is a shell script that caches the results of configure
13784 # tests run on this system so they can be shared between configure
13785 # scripts and configure runs, see configure's option --config-cache.
13786 # It is not useful on other systems. If it contains results you don't
13787 # want to keep, you may remove or edit it.
13789 # config.status only pays attention to the cache file if you give it
13790 # the --recheck option to rerun configure.
13792 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13793 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13794 # following values.
13796 _ACEOF
13798 # The following way of writing the cache mishandles newlines in values,
13799 # but we know of no workaround that is simple, portable, and efficient.
13800 # So, we kill variables containing newlines.
13801 # Ultrix sh set writes to stderr and can't be redirected directly,
13802 # and sets the high bit in the cache file unless we assign to the vars.
13804 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13805 eval ac_val=\$$ac_var
13806 case $ac_val in #(
13807 *${as_nl}*)
13808 case $ac_var in #(
13809 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13810 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13811 esac
13812 case $ac_var in #(
13813 _ | IFS | as_nl) ;; #(
13814 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13815 *) { eval $ac_var=; unset $ac_var;} ;;
13816 esac ;;
13817 esac
13818 done
13820 (set) 2>&1 |
13821 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13822 *${as_nl}ac_space=\ *)
13823 # `set' does not quote correctly, so add quotes: double-quote
13824 # substitution turns \\\\ into \\, and sed turns \\ into \.
13825 sed -n \
13826 "s/'/'\\\\''/g;
13827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13828 ;; #(
13830 # `set' quotes correctly as required by POSIX, so do not add quotes.
13831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13833 esac |
13834 sort
13836 sed '
13837 /^ac_cv_env_/b end
13838 t clear
13839 :clear
13840 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13841 t end
13842 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13843 :end' >>confcache
13844 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13845 if test -w "$cache_file"; then
13846 if test "x$cache_file" != "x/dev/null"; then
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13848 $as_echo "$as_me: updating cache $cache_file" >&6;}
13849 if test ! -f "$cache_file" || test -h "$cache_file"; then
13850 cat confcache >"$cache_file"
13851 else
13852 case $cache_file in #(
13853 */* | ?:*)
13854 mv -f confcache "$cache_file"$$ &&
13855 mv -f "$cache_file"$$ "$cache_file" ;; #(
13857 mv -f confcache "$cache_file" ;;
13858 esac
13861 else
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13863 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13866 rm -f confcache
13868 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13869 # Let make expand exec_prefix.
13870 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13872 DEFS=-DHAVE_CONFIG_H
13874 ac_libobjs=
13875 ac_ltlibobjs=
13876 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13877 # 1. Remove the extension, and $U if already installed.
13878 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13879 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13880 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13881 # will be set to the directory where LIBOBJS objects are built.
13882 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13883 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13884 done
13885 LIBOBJS=$ac_libobjs
13887 LTLIBOBJS=$ac_ltlibobjs
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13891 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13892 if test -n "$am_sleep_pid"; then
13893 # Hide warnings about reused PIDs.
13894 wait $am_sleep_pid 2>/dev/null
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13897 $as_echo "done" >&6; }
13898 if test -n "$EXEEXT"; then
13899 am__EXEEXT_TRUE=
13900 am__EXEEXT_FALSE='#'
13901 else
13902 am__EXEEXT_TRUE='#'
13903 am__EXEEXT_FALSE=
13906 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13907 as_fn_error $? "conditional \"AMDEP\" was never defined.
13908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13910 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13911 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13914 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
13915 as_fn_error $? "conditional \"PLUGINS\" was never defined.
13916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13918 if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
13919 as_fn_error $? "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
13920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13922 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
13923 as_fn_error $? "conditional \"DEFAULT_TARGET_ARM\" was never defined.
13924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13926 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
13927 as_fn_error $? "conditional \"DEFAULT_TARGET_I386\" was never defined.
13928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13930 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
13931 as_fn_error $? "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
13932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13934 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
13935 as_fn_error $? "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
13936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13938 if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
13939 as_fn_error $? "conditional \"DEFAULT_TARGET_S390\" was never defined.
13940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13942 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
13943 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
13944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13946 if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
13947 as_fn_error $? "conditional \"DEFAULT_TARGET_X32\" was never defined.
13948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13950 if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
13951 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
13952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13954 if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
13955 as_fn_error $? "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
13956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13958 if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
13959 as_fn_error $? "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
13960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13962 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13963 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13966 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13967 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
13968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13971 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
13972 as_fn_error $? "conditional \"NATIVE_LINKER\" was never defined.
13973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13975 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
13976 as_fn_error $? "conditional \"GCC\" was never defined.
13977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13979 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
13980 as_fn_error $? "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
13981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13983 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
13984 as_fn_error $? "conditional \"HAVE_STATIC\" was never defined.
13985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13987 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
13988 as_fn_error $? "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
13989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13991 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
13992 as_fn_error $? "conditional \"MCMODEL_MEDIUM\" was never defined.
13993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13995 if test -z "${GCC9_TRUE}" && test -z "${GCC9_FALSE}"; then
13996 as_fn_error $? "conditional \"GCC9\" was never defined.
13997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13999 if test -z "${CFLAGS_CF_PROTECTION_TRUE}" && test -z "${CFLAGS_CF_PROTECTION_FALSE}"; then
14000 as_fn_error $? "conditional \"CFLAGS_CF_PROTECTION\" was never defined.
14001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14003 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
14004 as_fn_error $? "conditional \"TLS\" was never defined.
14005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14007 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
14008 as_fn_error $? "conditional \"STATIC_TLS\" was never defined.
14009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14011 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
14012 as_fn_error $? "conditional \"OMP_SUPPORT\" was never defined.
14013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14015 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
14016 as_fn_error $? "conditional \"TLS_GNU2_DIALECT\" was never defined.
14017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14019 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
14020 as_fn_error $? "conditional \"TLS_DESCRIPTORS\" was never defined.
14021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14023 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
14024 as_fn_error $? "conditional \"IFUNC\" was never defined.
14025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14027 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
14028 as_fn_error $? "conditional \"IFUNC_STATIC\" was never defined.
14029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14031 if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
14032 as_fn_error $? "conditional \"HAVE_ZSTD\" was never defined.
14033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14035 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
14036 as_fn_error $? "conditional \"THREADS\" was never defined.
14037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14039 if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
14040 as_fn_error $? "conditional \"HAVE_PUBNAMES\" was never defined.
14041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14043 if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
14044 as_fn_error $? "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
14045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14047 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14048 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14052 : "${CONFIG_STATUS=./config.status}"
14053 ac_write_fail=0
14054 ac_clean_files_save=$ac_clean_files
14055 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14057 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14058 as_write_fail=0
14059 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14060 #! $SHELL
14061 # Generated by $as_me.
14062 # Run this file to recreate the current configuration.
14063 # Compiler output produced by configure, useful for debugging
14064 # configure, is in config.log if it exists.
14066 debug=false
14067 ac_cs_recheck=false
14068 ac_cs_silent=false
14070 SHELL=\${CONFIG_SHELL-$SHELL}
14071 export SHELL
14072 _ASEOF
14073 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14074 ## -------------------- ##
14075 ## M4sh Initialization. ##
14076 ## -------------------- ##
14078 # Be more Bourne compatible
14079 DUALCASE=1; export DUALCASE # for MKS sh
14080 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14081 emulate sh
14082 NULLCMD=:
14083 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14084 # is contrary to our usage. Disable this feature.
14085 alias -g '${1+"$@"}'='"$@"'
14086 setopt NO_GLOB_SUBST
14087 else
14088 case `(set -o) 2>/dev/null` in #(
14089 *posix*) :
14090 set -o posix ;; #(
14091 *) :
14093 esac
14097 as_nl='
14099 export as_nl
14100 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14101 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14102 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14103 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14104 # Prefer a ksh shell builtin over an external printf program on Solaris,
14105 # but without wasting forks for bash or zsh.
14106 if test -z "$BASH_VERSION$ZSH_VERSION" \
14107 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14108 as_echo='print -r --'
14109 as_echo_n='print -rn --'
14110 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14111 as_echo='printf %s\n'
14112 as_echo_n='printf %s'
14113 else
14114 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14115 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14116 as_echo_n='/usr/ucb/echo -n'
14117 else
14118 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14119 as_echo_n_body='eval
14120 arg=$1;
14121 case $arg in #(
14122 *"$as_nl"*)
14123 expr "X$arg" : "X\\(.*\\)$as_nl";
14124 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14125 esac;
14126 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14128 export as_echo_n_body
14129 as_echo_n='sh -c $as_echo_n_body as_echo'
14131 export as_echo_body
14132 as_echo='sh -c $as_echo_body as_echo'
14135 # The user is always right.
14136 if test "${PATH_SEPARATOR+set}" != set; then
14137 PATH_SEPARATOR=:
14138 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14139 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14140 PATH_SEPARATOR=';'
14145 # IFS
14146 # We need space, tab and new line, in precisely that order. Quoting is
14147 # there to prevent editors from complaining about space-tab.
14148 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14149 # splitting by setting IFS to empty value.)
14150 IFS=" "" $as_nl"
14152 # Find who we are. Look in the path if we contain no directory separator.
14153 as_myself=
14154 case $0 in #((
14155 *[\\/]* ) as_myself=$0 ;;
14156 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14157 for as_dir in $PATH
14159 IFS=$as_save_IFS
14160 test -z "$as_dir" && as_dir=.
14161 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14162 done
14163 IFS=$as_save_IFS
14166 esac
14167 # We did not find ourselves, most probably we were run as `sh COMMAND'
14168 # in which case we are not to be found in the path.
14169 if test "x$as_myself" = x; then
14170 as_myself=$0
14172 if test ! -f "$as_myself"; then
14173 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14174 exit 1
14177 # Unset variables that we do not need and which cause bugs (e.g. in
14178 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14179 # suppresses any "Segmentation fault" message there. '((' could
14180 # trigger a bug in pdksh 5.2.14.
14181 for as_var in BASH_ENV ENV MAIL MAILPATH
14182 do eval test x\${$as_var+set} = xset \
14183 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14184 done
14185 PS1='$ '
14186 PS2='> '
14187 PS4='+ '
14189 # NLS nuisances.
14190 LC_ALL=C
14191 export LC_ALL
14192 LANGUAGE=C
14193 export LANGUAGE
14195 # CDPATH.
14196 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14199 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14200 # ----------------------------------------
14201 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14202 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14203 # script with STATUS, using 1 if that was 0.
14204 as_fn_error ()
14206 as_status=$1; test $as_status -eq 0 && as_status=1
14207 if test "$4"; then
14208 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14209 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14211 $as_echo "$as_me: error: $2" >&2
14212 as_fn_exit $as_status
14213 } # as_fn_error
14216 # as_fn_set_status STATUS
14217 # -----------------------
14218 # Set $? to STATUS, without forking.
14219 as_fn_set_status ()
14221 return $1
14222 } # as_fn_set_status
14224 # as_fn_exit STATUS
14225 # -----------------
14226 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14227 as_fn_exit ()
14229 set +e
14230 as_fn_set_status $1
14231 exit $1
14232 } # as_fn_exit
14234 # as_fn_unset VAR
14235 # ---------------
14236 # Portably unset VAR.
14237 as_fn_unset ()
14239 { eval $1=; unset $1;}
14241 as_unset=as_fn_unset
14242 # as_fn_append VAR VALUE
14243 # ----------------------
14244 # Append the text in VALUE to the end of the definition contained in VAR. Take
14245 # advantage of any shell optimizations that allow amortized linear growth over
14246 # repeated appends, instead of the typical quadratic growth present in naive
14247 # implementations.
14248 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14249 eval 'as_fn_append ()
14251 eval $1+=\$2
14253 else
14254 as_fn_append ()
14256 eval $1=\$$1\$2
14258 fi # as_fn_append
14260 # as_fn_arith ARG...
14261 # ------------------
14262 # Perform arithmetic evaluation on the ARGs, and store the result in the
14263 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14264 # must be portable across $(()) and expr.
14265 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14266 eval 'as_fn_arith ()
14268 as_val=$(( $* ))
14270 else
14271 as_fn_arith ()
14273 as_val=`expr "$@" || test $? -eq 1`
14275 fi # as_fn_arith
14278 if expr a : '\(a\)' >/dev/null 2>&1 &&
14279 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14280 as_expr=expr
14281 else
14282 as_expr=false
14285 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14286 as_basename=basename
14287 else
14288 as_basename=false
14291 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14292 as_dirname=dirname
14293 else
14294 as_dirname=false
14297 as_me=`$as_basename -- "$0" ||
14298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14299 X"$0" : 'X\(//\)$' \| \
14300 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14301 $as_echo X/"$0" |
14302 sed '/^.*\/\([^/][^/]*\)\/*$/{
14303 s//\1/
14306 /^X\/\(\/\/\)$/{
14307 s//\1/
14310 /^X\/\(\/\).*/{
14311 s//\1/
14314 s/.*/./; q'`
14316 # Avoid depending upon Character Ranges.
14317 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14318 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14319 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14320 as_cr_digits='0123456789'
14321 as_cr_alnum=$as_cr_Letters$as_cr_digits
14323 ECHO_C= ECHO_N= ECHO_T=
14324 case `echo -n x` in #(((((
14325 -n*)
14326 case `echo 'xy\c'` in
14327 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14328 xy) ECHO_C='\c';;
14329 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14330 ECHO_T=' ';;
14331 esac;;
14333 ECHO_N='-n';;
14334 esac
14336 rm -f conf$$ conf$$.exe conf$$.file
14337 if test -d conf$$.dir; then
14338 rm -f conf$$.dir/conf$$.file
14339 else
14340 rm -f conf$$.dir
14341 mkdir conf$$.dir 2>/dev/null
14343 if (echo >conf$$.file) 2>/dev/null; then
14344 if ln -s conf$$.file conf$$ 2>/dev/null; then
14345 as_ln_s='ln -s'
14346 # ... but there are two gotchas:
14347 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14348 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14349 # In both cases, we have to default to `cp -pR'.
14350 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14351 as_ln_s='cp -pR'
14352 elif ln conf$$.file conf$$ 2>/dev/null; then
14353 as_ln_s=ln
14354 else
14355 as_ln_s='cp -pR'
14357 else
14358 as_ln_s='cp -pR'
14360 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14361 rmdir conf$$.dir 2>/dev/null
14364 # as_fn_mkdir_p
14365 # -------------
14366 # Create "$as_dir" as a directory, including parents if necessary.
14367 as_fn_mkdir_p ()
14370 case $as_dir in #(
14371 -*) as_dir=./$as_dir;;
14372 esac
14373 test -d "$as_dir" || eval $as_mkdir_p || {
14374 as_dirs=
14375 while :; do
14376 case $as_dir in #(
14377 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14378 *) as_qdir=$as_dir;;
14379 esac
14380 as_dirs="'$as_qdir' $as_dirs"
14381 as_dir=`$as_dirname -- "$as_dir" ||
14382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14383 X"$as_dir" : 'X\(//\)[^/]' \| \
14384 X"$as_dir" : 'X\(//\)$' \| \
14385 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14386 $as_echo X"$as_dir" |
14387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14388 s//\1/
14391 /^X\(\/\/\)[^/].*/{
14392 s//\1/
14395 /^X\(\/\/\)$/{
14396 s//\1/
14399 /^X\(\/\).*/{
14400 s//\1/
14403 s/.*/./; q'`
14404 test -d "$as_dir" && break
14405 done
14406 test -z "$as_dirs" || eval "mkdir $as_dirs"
14407 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14410 } # as_fn_mkdir_p
14411 if mkdir -p . 2>/dev/null; then
14412 as_mkdir_p='mkdir -p "$as_dir"'
14413 else
14414 test -d ./-p && rmdir ./-p
14415 as_mkdir_p=false
14419 # as_fn_executable_p FILE
14420 # -----------------------
14421 # Test if FILE is an executable regular file.
14422 as_fn_executable_p ()
14424 test -f "$1" && test -x "$1"
14425 } # as_fn_executable_p
14426 as_test_x='test -x'
14427 as_executable_p=as_fn_executable_p
14429 # Sed expression to map a string onto a valid CPP name.
14430 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14432 # Sed expression to map a string onto a valid variable name.
14433 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14436 exec 6>&1
14437 ## ----------------------------------- ##
14438 ## Main body of $CONFIG_STATUS script. ##
14439 ## ----------------------------------- ##
14440 _ASEOF
14441 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14444 # Save the log message, to keep $0 and so on meaningful, and to
14445 # report actual input values of CONFIG_FILES etc. instead of their
14446 # values after options handling.
14447 ac_log="
14448 This file was extended by gold $as_me 0.1, which was
14449 generated by GNU Autoconf 2.69. Invocation command line was
14451 CONFIG_FILES = $CONFIG_FILES
14452 CONFIG_HEADERS = $CONFIG_HEADERS
14453 CONFIG_LINKS = $CONFIG_LINKS
14454 CONFIG_COMMANDS = $CONFIG_COMMANDS
14455 $ $0 $@
14457 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14460 _ACEOF
14462 case $ac_config_files in *"
14463 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14464 esac
14466 case $ac_config_headers in *"
14467 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14468 esac
14471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14472 # Files that config.status was made for.
14473 config_files="$ac_config_files"
14474 config_headers="$ac_config_headers"
14475 config_commands="$ac_config_commands"
14477 _ACEOF
14479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14480 ac_cs_usage="\
14481 \`$as_me' instantiates files and other configuration actions
14482 from templates according to the current configuration. Unless the files
14483 and actions are specified as TAGs, all are instantiated by default.
14485 Usage: $0 [OPTION]... [TAG]...
14487 -h, --help print this help, then exit
14488 -V, --version print version number and configuration settings, then exit
14489 --config print configuration, then exit
14490 -q, --quiet, --silent
14491 do not print progress messages
14492 -d, --debug don't remove temporary files
14493 --recheck update $as_me by reconfiguring in the same conditions
14494 --file=FILE[:TEMPLATE]
14495 instantiate the configuration file FILE
14496 --header=FILE[:TEMPLATE]
14497 instantiate the configuration header FILE
14499 Configuration files:
14500 $config_files
14502 Configuration headers:
14503 $config_headers
14505 Configuration commands:
14506 $config_commands
14508 Report bugs to the package provider."
14510 _ACEOF
14511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14512 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14513 ac_cs_version="\\
14514 gold config.status 0.1
14515 configured by $0, generated by GNU Autoconf 2.69,
14516 with options \\"\$ac_cs_config\\"
14518 Copyright (C) 2012 Free Software Foundation, Inc.
14519 This config.status script is free software; the Free Software Foundation
14520 gives unlimited permission to copy, distribute and modify it."
14522 ac_pwd='$ac_pwd'
14523 srcdir='$srcdir'
14524 INSTALL='$INSTALL'
14525 MKDIR_P='$MKDIR_P'
14526 AWK='$AWK'
14527 test -n "\$AWK" || AWK=awk
14528 _ACEOF
14530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14531 # The default lists apply if the user does not specify any file.
14532 ac_need_defaults=:
14533 while test $# != 0
14535 case $1 in
14536 --*=?*)
14537 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14538 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14539 ac_shift=:
14541 --*=)
14542 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14543 ac_optarg=
14544 ac_shift=:
14547 ac_option=$1
14548 ac_optarg=$2
14549 ac_shift=shift
14551 esac
14553 case $ac_option in
14554 # Handling of the options.
14555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14556 ac_cs_recheck=: ;;
14557 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14558 $as_echo "$ac_cs_version"; exit ;;
14559 --config | --confi | --conf | --con | --co | --c )
14560 $as_echo "$ac_cs_config"; exit ;;
14561 --debug | --debu | --deb | --de | --d | -d )
14562 debug=: ;;
14563 --file | --fil | --fi | --f )
14564 $ac_shift
14565 case $ac_optarg in
14566 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14567 '') as_fn_error $? "missing file argument" ;;
14568 esac
14569 as_fn_append CONFIG_FILES " '$ac_optarg'"
14570 ac_need_defaults=false;;
14571 --header | --heade | --head | --hea )
14572 $ac_shift
14573 case $ac_optarg in
14574 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14575 esac
14576 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14577 ac_need_defaults=false;;
14578 --he | --h)
14579 # Conflict between --help and --header
14580 as_fn_error $? "ambiguous option: \`$1'
14581 Try \`$0 --help' for more information.";;
14582 --help | --hel | -h )
14583 $as_echo "$ac_cs_usage"; exit ;;
14584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14585 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14586 ac_cs_silent=: ;;
14588 # This is an error.
14589 -*) as_fn_error $? "unrecognized option: \`$1'
14590 Try \`$0 --help' for more information." ;;
14592 *) as_fn_append ac_config_targets " $1"
14593 ac_need_defaults=false ;;
14595 esac
14596 shift
14597 done
14599 ac_configure_extra_args=
14601 if $ac_cs_silent; then
14602 exec 6>/dev/null
14603 ac_configure_extra_args="$ac_configure_extra_args --silent"
14606 _ACEOF
14607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14608 if \$ac_cs_recheck; then
14609 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14610 shift
14611 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14612 CONFIG_SHELL='$SHELL'
14613 export CONFIG_SHELL
14614 exec "\$@"
14617 _ACEOF
14618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14619 exec 5>>config.log
14621 echo
14622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14623 ## Running $as_me. ##
14624 _ASBOX
14625 $as_echo "$ac_log"
14626 } >&5
14628 _ACEOF
14629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14631 # INIT-COMMANDS
14633 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14634 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14635 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14636 # from automake.
14637 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14638 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14639 LINGUAS="${LINGUAS-%UNSET%}"
14641 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14642 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14643 # from automake.
14644 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14645 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14646 LINGUAS="${LINGUAS-%UNSET%}"
14649 _ACEOF
14651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14653 # Handling of arguments.
14654 for ac_config_target in $ac_config_targets
14656 case $ac_config_target in
14657 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14658 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14659 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14660 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
14661 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14662 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14663 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14665 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14666 esac
14667 done
14670 # If the user did not use the arguments to specify the items to instantiate,
14671 # then the envvar interface is used. Set only those that are not.
14672 # We use the long form for the default assignment because of an extremely
14673 # bizarre bug on SunOS 4.1.3.
14674 if $ac_need_defaults; then
14675 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14676 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14680 # Have a temporary directory for convenience. Make it in the build tree
14681 # simply because there is no reason against having it here, and in addition,
14682 # creating and moving files from /tmp can sometimes cause problems.
14683 # Hook for its removal unless debugging.
14684 # Note that there is a small window in which the directory will not be cleaned:
14685 # after its creation but before its name has been assigned to `$tmp'.
14686 $debug ||
14688 tmp= ac_tmp=
14689 trap 'exit_status=$?
14690 : "${ac_tmp:=$tmp}"
14691 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14693 trap 'as_fn_exit 1' 1 2 13 15
14695 # Create a (secure) tmp directory for tmp files.
14698 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14699 test -d "$tmp"
14700 } ||
14702 tmp=./conf$$-$RANDOM
14703 (umask 077 && mkdir "$tmp")
14704 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14705 ac_tmp=$tmp
14707 # Set up the scripts for CONFIG_FILES section.
14708 # No need to generate them if there are no CONFIG_FILES.
14709 # This happens for instance with `./config.status config.h'.
14710 if test -n "$CONFIG_FILES"; then
14713 ac_cr=`echo X | tr X '\015'`
14714 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14715 # But we know of no other shell where ac_cr would be empty at this
14716 # point, so we can use a bashism as a fallback.
14717 if test "x$ac_cr" = x; then
14718 eval ac_cr=\$\'\\r\'
14720 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14721 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14722 ac_cs_awk_cr='\\r'
14723 else
14724 ac_cs_awk_cr=$ac_cr
14727 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14728 _ACEOF
14732 echo "cat >conf$$subs.awk <<_ACEOF" &&
14733 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14734 echo "_ACEOF"
14735 } >conf$$subs.sh ||
14736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14737 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14738 ac_delim='%!_!# '
14739 for ac_last_try in false false false false false :; do
14740 . ./conf$$subs.sh ||
14741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14743 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14744 if test $ac_delim_n = $ac_delim_num; then
14745 break
14746 elif $ac_last_try; then
14747 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14748 else
14749 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14751 done
14752 rm -f conf$$subs.sh
14754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14755 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14756 _ACEOF
14757 sed -n '
14759 s/^/S["/; s/!.*/"]=/
14762 s/^[^!]*!//
14763 :repl
14764 t repl
14765 s/'"$ac_delim"'$//
14766 t delim
14769 s/\(.\{148\}\)..*/\1/
14770 t more1
14771 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14774 b repl
14775 :more1
14776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14779 s/.\{148\}//
14780 t nl
14781 :delim
14783 s/\(.\{148\}\)..*/\1/
14784 t more2
14785 s/["\\]/\\&/g; s/^/"/; s/$/"/
14788 :more2
14789 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14792 s/.\{148\}//
14793 t delim
14794 ' <conf$$subs.awk | sed '
14795 /^[^""]/{
14797 s/\n//
14799 ' >>$CONFIG_STATUS || ac_write_fail=1
14800 rm -f conf$$subs.awk
14801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14802 _ACAWK
14803 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14804 for (key in S) S_is_set[key] = 1
14805 FS = "\a"
14809 line = $ 0
14810 nfields = split(line, field, "@")
14811 substed = 0
14812 len = length(field[1])
14813 for (i = 2; i < nfields; i++) {
14814 key = field[i]
14815 keylen = length(key)
14816 if (S_is_set[key]) {
14817 value = S[key]
14818 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14819 len += length(value) + length(field[++i])
14820 substed = 1
14821 } else
14822 len += 1 + keylen
14825 print line
14828 _ACAWK
14829 _ACEOF
14830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14831 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14832 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14833 else
14835 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14836 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14837 _ACEOF
14839 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14840 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14841 # trailing colons and then remove the whole line if VPATH becomes empty
14842 # (actually we leave an empty line to preserve line numbers).
14843 if test "x$srcdir" = x.; then
14844 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14846 s///
14847 s/^/:/
14848 s/[ ]*$/:/
14849 s/:\$(srcdir):/:/g
14850 s/:\${srcdir}:/:/g
14851 s/:@srcdir@:/:/g
14852 s/^:*//
14853 s/:*$//
14855 s/\(=[ ]*\).*/\1/
14857 s/\n//
14858 s/^[^=]*=[ ]*$//
14862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14863 fi # test -n "$CONFIG_FILES"
14865 # Set up the scripts for CONFIG_HEADERS section.
14866 # No need to generate them if there are no CONFIG_HEADERS.
14867 # This happens for instance with `./config.status Makefile'.
14868 if test -n "$CONFIG_HEADERS"; then
14869 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14870 BEGIN {
14871 _ACEOF
14873 # Transform confdefs.h into an awk script `defines.awk', embedded as
14874 # here-document in config.status, that substitutes the proper values into
14875 # config.h.in to produce config.h.
14877 # Create a delimiter string that does not exist in confdefs.h, to ease
14878 # handling of long lines.
14879 ac_delim='%!_!# '
14880 for ac_last_try in false false :; do
14881 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14882 if test -z "$ac_tt"; then
14883 break
14884 elif $ac_last_try; then
14885 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14886 else
14887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14889 done
14891 # For the awk script, D is an array of macro values keyed by name,
14892 # likewise P contains macro parameters if any. Preserve backslash
14893 # newline sequences.
14895 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14896 sed -n '
14897 s/.\{148\}/&'"$ac_delim"'/g
14898 t rset
14899 :rset
14900 s/^[ ]*#[ ]*define[ ][ ]*/ /
14901 t def
14903 :def
14904 s/\\$//
14905 t bsnl
14906 s/["\\]/\\&/g
14907 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14908 D["\1"]=" \3"/p
14909 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14911 :bsnl
14912 s/["\\]/\\&/g
14913 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14914 D["\1"]=" \3\\\\\\n"\\/p
14915 t cont
14916 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14917 t cont
14919 :cont
14921 s/.\{148\}/&'"$ac_delim"'/g
14922 t clear
14923 :clear
14924 s/\\$//
14925 t bsnlc
14926 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14928 :bsnlc
14929 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14930 b cont
14931 ' <confdefs.h | sed '
14932 s/'"$ac_delim"'/"\\\
14933 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14936 for (key in D) D_is_set[key] = 1
14937 FS = "\a"
14939 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14940 line = \$ 0
14941 split(line, arg, " ")
14942 if (arg[1] == "#") {
14943 defundef = arg[2]
14944 mac1 = arg[3]
14945 } else {
14946 defundef = substr(arg[1], 2)
14947 mac1 = arg[2]
14949 split(mac1, mac2, "(") #)
14950 macro = mac2[1]
14951 prefix = substr(line, 1, index(line, defundef) - 1)
14952 if (D_is_set[macro]) {
14953 # Preserve the white space surrounding the "#".
14954 print prefix "define", macro P[macro] D[macro]
14955 next
14956 } else {
14957 # Replace #undef with comments. This is necessary, for example,
14958 # in the case of _POSIX_SOURCE, which is predefined and required
14959 # on some systems where configure will not decide to define it.
14960 if (defundef == "undef") {
14961 print "/*", prefix defundef, macro, "*/"
14962 next
14966 { print }
14967 _ACAWK
14968 _ACEOF
14969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14970 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14971 fi # test -n "$CONFIG_HEADERS"
14974 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14975 shift
14976 for ac_tag
14978 case $ac_tag in
14979 :[FHLC]) ac_mode=$ac_tag; continue;;
14980 esac
14981 case $ac_mode$ac_tag in
14982 :[FHL]*:*);;
14983 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14984 :[FH]-) ac_tag=-:-;;
14985 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14986 esac
14987 ac_save_IFS=$IFS
14988 IFS=:
14989 set x $ac_tag
14990 IFS=$ac_save_IFS
14991 shift
14992 ac_file=$1
14993 shift
14995 case $ac_mode in
14996 :L) ac_source=$1;;
14997 :[FH])
14998 ac_file_inputs=
14999 for ac_f
15001 case $ac_f in
15002 -) ac_f="$ac_tmp/stdin";;
15003 *) # Look for the file first in the build tree, then in the source tree
15004 # (if the path is not absolute). The absolute path cannot be DOS-style,
15005 # because $ac_f cannot contain `:'.
15006 test -f "$ac_f" ||
15007 case $ac_f in
15008 [\\/$]*) false;;
15009 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15010 esac ||
15011 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15012 esac
15013 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15014 as_fn_append ac_file_inputs " '$ac_f'"
15015 done
15017 # Let's still pretend it is `configure' which instantiates (i.e., don't
15018 # use $as_me), people would be surprised to read:
15019 # /* config.h. Generated by config.status. */
15020 configure_input='Generated from '`
15021 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15022 `' by configure.'
15023 if test x"$ac_file" != x-; then
15024 configure_input="$ac_file. $configure_input"
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15026 $as_echo "$as_me: creating $ac_file" >&6;}
15028 # Neutralize special characters interpreted by sed in replacement strings.
15029 case $configure_input in #(
15030 *\&* | *\|* | *\\* )
15031 ac_sed_conf_input=`$as_echo "$configure_input" |
15032 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15033 *) ac_sed_conf_input=$configure_input;;
15034 esac
15036 case $ac_tag in
15037 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15039 esac
15041 esac
15043 ac_dir=`$as_dirname -- "$ac_file" ||
15044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15045 X"$ac_file" : 'X\(//\)[^/]' \| \
15046 X"$ac_file" : 'X\(//\)$' \| \
15047 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15048 $as_echo X"$ac_file" |
15049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15050 s//\1/
15053 /^X\(\/\/\)[^/].*/{
15054 s//\1/
15057 /^X\(\/\/\)$/{
15058 s//\1/
15061 /^X\(\/\).*/{
15062 s//\1/
15065 s/.*/./; q'`
15066 as_dir="$ac_dir"; as_fn_mkdir_p
15067 ac_builddir=.
15069 case "$ac_dir" in
15070 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15072 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15073 # A ".." for each directory in $ac_dir_suffix.
15074 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15075 case $ac_top_builddir_sub in
15076 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15077 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15078 esac ;;
15079 esac
15080 ac_abs_top_builddir=$ac_pwd
15081 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15082 # for backward compatibility:
15083 ac_top_builddir=$ac_top_build_prefix
15085 case $srcdir in
15086 .) # We are building in place.
15087 ac_srcdir=.
15088 ac_top_srcdir=$ac_top_builddir_sub
15089 ac_abs_top_srcdir=$ac_pwd ;;
15090 [\\/]* | ?:[\\/]* ) # Absolute name.
15091 ac_srcdir=$srcdir$ac_dir_suffix;
15092 ac_top_srcdir=$srcdir
15093 ac_abs_top_srcdir=$srcdir ;;
15094 *) # Relative name.
15095 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15096 ac_top_srcdir=$ac_top_build_prefix$srcdir
15097 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15098 esac
15099 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15102 case $ac_mode in
15105 # CONFIG_FILE
15108 case $INSTALL in
15109 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15110 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15111 esac
15112 ac_MKDIR_P=$MKDIR_P
15113 case $MKDIR_P in
15114 [\\/$]* | ?:[\\/]* ) ;;
15115 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15116 esac
15117 _ACEOF
15119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15120 # If the template does not know about datarootdir, expand it.
15121 # FIXME: This hack should be removed a few years after 2.60.
15122 ac_datarootdir_hack=; ac_datarootdir_seen=
15123 ac_sed_dataroot='
15124 /datarootdir/ {
15128 /@datadir@/p
15129 /@docdir@/p
15130 /@infodir@/p
15131 /@localedir@/p
15132 /@mandir@/p'
15133 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15134 *datarootdir*) ac_datarootdir_seen=yes;;
15135 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15137 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15138 _ACEOF
15139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15140 ac_datarootdir_hack='
15141 s&@datadir@&$datadir&g
15142 s&@docdir@&$docdir&g
15143 s&@infodir@&$infodir&g
15144 s&@localedir@&$localedir&g
15145 s&@mandir@&$mandir&g
15146 s&\\\${datarootdir}&$datarootdir&g' ;;
15147 esac
15148 _ACEOF
15150 # Neutralize VPATH when `$srcdir' = `.'.
15151 # Shell code in configure.ac might set extrasub.
15152 # FIXME: do we really want to maintain this feature?
15153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15154 ac_sed_extra="$ac_vpsub
15155 $extrasub
15156 _ACEOF
15157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15160 s|@configure_input@|$ac_sed_conf_input|;t t
15161 s&@top_builddir@&$ac_top_builddir_sub&;t t
15162 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15163 s&@srcdir@&$ac_srcdir&;t t
15164 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15165 s&@top_srcdir@&$ac_top_srcdir&;t t
15166 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15167 s&@builddir@&$ac_builddir&;t t
15168 s&@abs_builddir@&$ac_abs_builddir&;t t
15169 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15170 s&@INSTALL@&$ac_INSTALL&;t t
15171 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15172 $ac_datarootdir_hack
15174 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15175 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15177 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15178 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15179 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15180 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15182 which seems to be undefined. Please make sure it is defined" >&5
15183 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15184 which seems to be undefined. Please make sure it is defined" >&2;}
15186 rm -f "$ac_tmp/stdin"
15187 case $ac_file in
15188 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15189 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15190 esac \
15191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15195 # CONFIG_HEADER
15197 if test x"$ac_file" != x-; then
15199 $as_echo "/* $configure_input */" \
15200 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15201 } >"$ac_tmp/config.h" \
15202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15203 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15205 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15206 else
15207 rm -f "$ac_file"
15208 mv "$ac_tmp/config.h" "$ac_file" \
15209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15211 else
15212 $as_echo "/* $configure_input */" \
15213 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15214 || as_fn_error $? "could not create -" "$LINENO" 5
15216 # Compute "$ac_file"'s index in $config_headers.
15217 _am_arg="$ac_file"
15218 _am_stamp_count=1
15219 for _am_header in $config_headers :; do
15220 case $_am_header in
15221 $_am_arg | $_am_arg:* )
15222 break ;;
15224 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15225 esac
15226 done
15227 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15228 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15229 X"$_am_arg" : 'X\(//\)[^/]' \| \
15230 X"$_am_arg" : 'X\(//\)$' \| \
15231 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15232 $as_echo X"$_am_arg" |
15233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15234 s//\1/
15237 /^X\(\/\/\)[^/].*/{
15238 s//\1/
15241 /^X\(\/\/\)$/{
15242 s//\1/
15245 /^X\(\/\).*/{
15246 s//\1/
15249 s/.*/./; q'`/stamp-h$_am_stamp_count
15252 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15253 $as_echo "$as_me: executing $ac_file commands" >&6;}
15255 esac
15258 case $ac_file$ac_mode in
15259 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15260 # Older Autoconf quotes --file arguments for eval, but not when files
15261 # are listed without --file. Let's play safe and only enable the eval
15262 # if we detect the quoting.
15263 case $CONFIG_FILES in
15264 *\'*) eval set x "$CONFIG_FILES" ;;
15265 *) set x $CONFIG_FILES ;;
15266 esac
15267 shift
15268 for mf
15270 # Strip MF so we end up with the name of the file.
15271 mf=`echo "$mf" | sed -e 's/:.*$//'`
15272 # Check whether this is an Automake generated Makefile or not.
15273 # We used to match only the files named 'Makefile.in', but
15274 # some people rename them; so instead we look at the file content.
15275 # Grep'ing the first line is not enough: some people post-process
15276 # each Makefile.in and add a new line on top of each file to say so.
15277 # Grep'ing the whole file is not good either: AIX grep has a line
15278 # limit of 2048, but all sed's we know have understand at least 4000.
15279 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15280 dirpart=`$as_dirname -- "$mf" ||
15281 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15282 X"$mf" : 'X\(//\)[^/]' \| \
15283 X"$mf" : 'X\(//\)$' \| \
15284 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15285 $as_echo X"$mf" |
15286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15287 s//\1/
15290 /^X\(\/\/\)[^/].*/{
15291 s//\1/
15294 /^X\(\/\/\)$/{
15295 s//\1/
15298 /^X\(\/\).*/{
15299 s//\1/
15302 s/.*/./; q'`
15303 else
15304 continue
15306 # Extract the definition of DEPDIR, am__include, and am__quote
15307 # from the Makefile without running 'make'.
15308 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15309 test -z "$DEPDIR" && continue
15310 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15311 test -z "$am__include" && continue
15312 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15313 # Find all dependency output files, they are included files with
15314 # $(DEPDIR) in their names. We invoke sed twice because it is the
15315 # simplest approach to changing $(DEPDIR) to its actual value in the
15316 # expansion.
15317 for file in `sed -n "
15318 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15319 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15320 # Make sure the directory exists.
15321 test -f "$dirpart/$file" && continue
15322 fdir=`$as_dirname -- "$file" ||
15323 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15324 X"$file" : 'X\(//\)[^/]' \| \
15325 X"$file" : 'X\(//\)$' \| \
15326 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15327 $as_echo X"$file" |
15328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15329 s//\1/
15332 /^X\(\/\/\)[^/].*/{
15333 s//\1/
15336 /^X\(\/\/\)$/{
15337 s//\1/
15340 /^X\(\/\).*/{
15341 s//\1/
15344 s/.*/./; q'`
15345 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15346 # echo "creating $dirpart/$file"
15347 echo '# dummy' > "$dirpart/$file"
15348 done
15349 done
15352 "default-1":C)
15353 for ac_file in $CONFIG_FILES; do
15354 # Support "outfile[:infile[:infile...]]"
15355 case "$ac_file" in
15356 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15357 esac
15358 # PO directories have a Makefile.in generated from Makefile.in.in.
15359 case "$ac_file" in */Makefile.in)
15360 # Adjust a relative srcdir.
15361 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15362 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15363 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15364 # In autoconf-2.13 it is called $ac_given_srcdir.
15365 # In autoconf-2.50 it is called $srcdir.
15366 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15367 case "$ac_given_srcdir" in
15368 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15369 /*) top_srcdir="$ac_given_srcdir" ;;
15370 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15371 esac
15372 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15373 rm -f "$ac_dir/POTFILES"
15374 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15375 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15376 POMAKEFILEDEPS="POTFILES.in"
15377 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15378 # on $ac_dir but don't depend on user-specified configuration
15379 # parameters.
15380 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15381 # The LINGUAS file contains the set of available languages.
15382 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15383 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
15385 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15386 # Hide the ALL_LINGUAS assigment from automake.
15387 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15388 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15389 else
15390 # The set of available languages was given in configure.ac.
15391 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15393 case "$ac_given_srcdir" in
15394 .) srcdirpre= ;;
15395 *) srcdirpre='$(srcdir)/' ;;
15396 esac
15397 POFILES=
15398 GMOFILES=
15399 UPDATEPOFILES=
15400 DUMMYPOFILES=
15401 for lang in $ALL_LINGUAS; do
15402 POFILES="$POFILES $srcdirpre$lang.po"
15403 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15404 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15405 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15406 done
15407 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15408 # environment variable.
15409 INST_LINGUAS=
15410 if test -n "$ALL_LINGUAS"; then
15411 for presentlang in $ALL_LINGUAS; do
15412 useit=no
15413 if test "%UNSET%" != "$LINGUAS"; then
15414 desiredlanguages="$LINGUAS"
15415 else
15416 desiredlanguages="$ALL_LINGUAS"
15418 for desiredlang in $desiredlanguages; do
15419 # Use the presentlang catalog if desiredlang is
15420 # a. equal to presentlang, or
15421 # b. a variant of presentlang (because in this case,
15422 # presentlang can be used as a fallback for messages
15423 # which are not translated in the desiredlang catalog).
15424 case "$desiredlang" in
15425 "$presentlang"*) useit=yes;;
15426 esac
15427 done
15428 if test $useit = yes; then
15429 INST_LINGUAS="$INST_LINGUAS $presentlang"
15431 done
15433 CATALOGS=
15434 if test -n "$INST_LINGUAS"; then
15435 for lang in $INST_LINGUAS; do
15436 CATALOGS="$CATALOGS $lang.gmo"
15437 done
15439 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15440 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"
15441 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15442 if test -f "$f"; then
15443 case "$f" in
15444 *.orig | *.bak | *~) ;;
15445 *) cat "$f" >> "$ac_dir/Makefile" ;;
15446 esac
15448 done
15451 esac
15452 done ;;
15453 "default-2":C)
15454 for ac_file in $CONFIG_FILES; do
15455 # Support "outfile[:infile[:infile...]]"
15456 case "$ac_file" in
15457 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15458 esac
15459 # PO directories have a Makefile.in generated from Makefile.in.in.
15460 case "$ac_file" in */Makefile.in)
15461 # Adjust a relative srcdir.
15462 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15463 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15464 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15465 # In autoconf-2.13 it is called $ac_given_srcdir.
15466 # In autoconf-2.50 it is called $srcdir.
15467 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15468 case "$ac_given_srcdir" in
15469 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15470 /*) top_srcdir="$ac_given_srcdir" ;;
15471 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15472 esac
15473 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15474 rm -f "$ac_dir/POTFILES"
15475 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15476 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15477 POMAKEFILEDEPS="POTFILES.in"
15478 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15479 # on $ac_dir but don't depend on user-specified configuration
15480 # parameters.
15481 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15482 # The LINGUAS file contains the set of available languages.
15483 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15484 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
15486 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15487 # Hide the ALL_LINGUAS assigment from automake.
15488 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15489 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15490 else
15491 # The set of available languages was given in configure.ac.
15492 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15494 case "$ac_given_srcdir" in
15495 .) srcdirpre= ;;
15496 *) srcdirpre='$(srcdir)/' ;;
15497 esac
15498 POFILES=
15499 GMOFILES=
15500 UPDATEPOFILES=
15501 DUMMYPOFILES=
15502 for lang in $ALL_LINGUAS; do
15503 POFILES="$POFILES $srcdirpre$lang.po"
15504 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15505 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15506 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15507 done
15508 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15509 # environment variable.
15510 INST_LINGUAS=
15511 if test -n "$ALL_LINGUAS"; then
15512 for presentlang in $ALL_LINGUAS; do
15513 useit=no
15514 if test "%UNSET%" != "$LINGUAS"; then
15515 desiredlanguages="$LINGUAS"
15516 else
15517 desiredlanguages="$ALL_LINGUAS"
15519 for desiredlang in $desiredlanguages; do
15520 # Use the presentlang catalog if desiredlang is
15521 # a. equal to presentlang, or
15522 # b. a variant of presentlang (because in this case,
15523 # presentlang can be used as a fallback for messages
15524 # which are not translated in the desiredlang catalog).
15525 case "$desiredlang" in
15526 "$presentlang"*) useit=yes;;
15527 esac
15528 done
15529 if test $useit = yes; then
15530 INST_LINGUAS="$INST_LINGUAS $presentlang"
15532 done
15534 CATALOGS=
15535 if test -n "$INST_LINGUAS"; then
15536 for lang in $INST_LINGUAS; do
15537 CATALOGS="$CATALOGS $lang.gmo"
15538 done
15540 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15541 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"
15542 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15543 if test -f "$f"; then
15544 case "$f" in
15545 *.orig | *.bak | *~) ;;
15546 *) cat "$f" >> "$ac_dir/Makefile" ;;
15547 esac
15549 done
15552 esac
15553 done ;;
15555 esac
15556 done # for ac_tag
15559 as_fn_exit 0
15560 _ACEOF
15561 ac_clean_files=$ac_clean_files_save
15563 test $ac_write_fail = 0 ||
15564 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15567 # configure is writing to config.log, and then calls config.status.
15568 # config.status does its own redirection, appending to config.log.
15569 # Unfortunately, on DOS this fails, as config.log is still kept open
15570 # by configure, so config.status won't be able to write to it; its
15571 # output is simply discarded. So we exec the FD to /dev/null,
15572 # effectively closing config.log, so it can be properly (re)opened and
15573 # appended to by config.status. When coming back to configure, we
15574 # need to make the FD available again.
15575 if test "$no_create" != yes; then
15576 ac_cs_success=:
15577 ac_config_status_args=
15578 test "$silent" = yes &&
15579 ac_config_status_args="$ac_config_status_args --quiet"
15580 exec 5>/dev/null
15581 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15582 exec 5>>config.log
15583 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15584 # would make configure fail if this is the last instruction.
15585 $ac_cs_success || as_fn_exit 1
15587 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15589 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}