Debian Codegraph @

gold/configure

raw ◀ ▶
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gold 0.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell [email protected] about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='gold'
579 PACKAGE_TARNAME='gold'
580 PACKAGE_VERSION='0.1'
581 PACKAGE_STRING='gold 0.1'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="gold.cc"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 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 MULTIARCH_DIRNAME
630 HAVE_CXX11
631 DLOPEN_LIBS
632 CXXCPP
633 HAVE_NO_USE_LINKER_PLUGIN_FALSE
634 HAVE_NO_USE_LINKER_PLUGIN_TRUE
635 HAVE_PUBNAMES_FALSE
636 HAVE_PUBNAMES_TRUE
637 JANSSON_LIBS
638 JANSSON_CFLAGS
639 THREADS_FALSE
640 THREADS_TRUE
641 PTHREAD_CFLAGS
642 PTHREAD_LIBS
643 PTHREAD_CC
644 ax_pthread_config
645 SED
646 HAVE_ZSTD_FALSE
647 HAVE_ZSTD_TRUE
648 ZSTD_LIBS
649 ZSTD_CFLAGS
650 PKG_CONFIG_LIBDIR
651 PKG_CONFIG_PATH
652 PKG_CONFIG
653 zlibinc
654 zlibdir
655 LIBOBJS
656 LFS_CFLAGS
657 GOLD_LDADD
658 GOLD_LDFLAGS
659 WARN_CXXFLAGS
660 WARN_WRITE_STRINGS
661 NO_WERROR
662 WARN_CFLAGS_FOR_BUILD
663 WARN_CFLAGS
664 IFUNC_STATIC_FALSE
665 IFUNC_STATIC_TRUE
666 IFUNC_FALSE
667 IFUNC_TRUE
668 RANDOM_SEED_CFLAGS
669 TLS_DESCRIPTORS_FALSE
670 TLS_DESCRIPTORS_TRUE
671 TLS_GNU2_DIALECT_FALSE
672 TLS_GNU2_DIALECT_TRUE
673 OMP_SUPPORT_FALSE
674 OMP_SUPPORT_TRUE
675 STATIC_TLS_FALSE
676 STATIC_TLS_TRUE
677 TLS_FALSE
678 TLS_TRUE
679 MERGE_CONSTANTS_FLAG
680 CFLAGS_CF_PROTECTION_FALSE
681 CFLAGS_CF_PROTECTION_TRUE
682 GCC9_FALSE
683 GCC9_TRUE
684 MCMODEL_MEDIUM_FALSE
685 MCMODEL_MEDIUM_TRUE
686 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
687 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
688 HAVE_STATIC_FALSE
689 HAVE_STATIC_TRUE
690 NATIVE_OR_CROSS_LINKER_FALSE
691 NATIVE_OR_CROSS_LINKER_TRUE
692 GCC_FALSE
693 GCC_TRUE
694 NATIVE_LINKER_FALSE
695 NATIVE_LINKER_TRUE
696 CATOBJEXT
697 GENCAT
698 INSTOBJEXT
699 DATADIRNAME
700 CATALOGS
701 INCINTL
702 LIBINTL_DEP
703 POSUB
704 LTLIBINTL
705 LIBINTL
706 INTLLIBS
707 LTLIBICONV
708 LIBICONV
709 INTL_MACOSX_LIBS
710 MSGMERGE
711 XGETTEXT
712 GMSGFMT
713 MSGFMT
714 USE_NLS
715 MKINSTALLDIRS
716 LN_S
717 RANLIB
718 YFLAGS
719 YACC
720 am__fastdepCXX_FALSE
721 am__fastdepCXX_TRUE
722 CXXDEPMODE
723 ac_ct_CXX
724 CXXFLAGS
725 CXX
726 NM
727 TARGETOBJS
728 DEFAULT_TARGET
729 DEFAULT_TARGET_MIPS_FALSE
730 DEFAULT_TARGET_MIPS_TRUE
731 DEFAULT_TARGET_TILEGX_FALSE
732 DEFAULT_TARGET_TILEGX_TRUE
733 DEFAULT_TARGET_X86_64_OR_X32_FALSE
734 DEFAULT_TARGET_X86_64_OR_X32_TRUE
735 DEFAULT_TARGET_X32_FALSE
736 DEFAULT_TARGET_X32_TRUE
737 DEFAULT_TARGET_X86_64_FALSE
738 DEFAULT_TARGET_X86_64_TRUE
739 DEFAULT_TARGET_S390_FALSE
740 DEFAULT_TARGET_S390_TRUE
741 DEFAULT_TARGET_SPARC_FALSE
742 DEFAULT_TARGET_SPARC_TRUE
743 DEFAULT_TARGET_POWERPC_FALSE
744 DEFAULT_TARGET_POWERPC_TRUE
745 DEFAULT_TARGET_I386_FALSE
746 DEFAULT_TARGET_I386_TRUE
747 DEFAULT_TARGET_ARM_FALSE
748 DEFAULT_TARGET_ARM_TRUE
749 DEFAULT_TARGET_AARCH64_FALSE
750 DEFAULT_TARGET_AARCH64_TRUE
751 PLUGINS_FALSE
752 PLUGINS_TRUE
753 installed_linker
754 install_as_default
755 EGREP
756 GREP
757 CPP
758 am__fastdepCC_FALSE
759 am__fastdepCC_TRUE
760 CCDEPMODE
761 am__nodep
762 AMDEPBACKSLASH
763 AMDEP_FALSE
764 AMDEP_TRUE
765 am__quote
766 am__include
767 DEPDIR
768 OBJEXT
769 EXEEXT
770 ac_ct_CC
771 CPPFLAGS
772 LDFLAGS
773 CFLAGS
774 CC
775 AM_BACKSLASH
776 AM_DEFAULT_VERBOSITY
777 AM_DEFAULT_V
778 AM_V
779 am__untar
780 am__tar
781 AMTAR
782 am__leading_dot
783 SET_MAKE
784 AWK
785 mkdir_p
786 MKDIR_P
787 INSTALL_STRIP_PROGRAM
788 STRIP
789 install_sh
790 MAKEINFO
791 AUTOHEADER
792 AUTOMAKE
793 AUTOCONF
794 ACLOCAL
795 VERSION
796 PACKAGE
797 CYGPATH_W
798 am__isrc
799 INSTALL_DATA
800 INSTALL_SCRIPT
801 INSTALL_PROGRAM
802 target_os
803 target_vendor
804 target_cpu
805 target
806 host_os
807 host_vendor
808 host_cpu
809 host
810 build_os
811 build_vendor
812 build_cpu
813 build
814 target_alias
815 host_alias
816 build_alias
817 LIBS
818 ECHO_T
819 ECHO_N
820 ECHO_C
821 DEFS
822 mandir
823 localedir
824 libdir
825 psdir
826 pdfdir
827 dvidir
828 htmldir
829 infodir
830 docdir
831 oldincludedir
832 includedir
833 localstatedir
834 sharedstatedir
835 sysconfdir
836 datadir
837 datarootdir
838 libexecdir
839 sbindir
840 bindir
841 program_transform_name
842 prefix
843 exec_prefix
844 PACKAGE_URL
845 PACKAGE_BUGREPORT
846 PACKAGE_STRING
847 PACKAGE_VERSION
848 PACKAGE_TARNAME
849 PACKAGE_NAME
850 PATH_SEPARATOR
851 SHELL'
852 ac_subst_files=''
853 ac_user_opts='
854 enable_option_checking
855 enable_silent_rules
856 enable_dependency_tracking
857 with_sysroot
858 enable_gold
859 enable_plugins
860 enable_relro
861 enable_targets
862 enable_default_hash_style
863 with_lib_path
864 enable_nls
865 with_gnu_ld
866 enable_rpath
867 with_libiconv_prefix
868 with_libiconv_type
869 with_libintl_prefix
870 with_libintl_type
871 enable_werror
872 enable_build_warnings
873 with_gold_ldflags
874 with_gold_ldadd
875 with_system_zlib
876 with_zstd
877 enable_threads
878 enable_jansson
879 enable_maintainer_mode
880 '
881 ac_precious_vars='build_alias
882 host_alias
883 target_alias
884 CC
885 CFLAGS
886 LDFLAGS
887 LIBS
888 CPPFLAGS
889 CPP
890 CXX
891 CXXFLAGS
892 CCC
893 YACC
894 YFLAGS
895 PKG_CONFIG
896 PKG_CONFIG_PATH
897 PKG_CONFIG_LIBDIR
898 ZSTD_CFLAGS
899 ZSTD_LIBS
900 JANSSON_CFLAGS
901 JANSSON_LIBS
902 CXXCPP'
903
904
905 # Initialize some variables set by options.
906 ac_init_help=
907 ac_init_version=false
908 ac_unrecognized_opts=
909 ac_unrecognized_sep=
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
912 cache_file=/dev/null
913 exec_prefix=NONE
914 no_create=
915 no_recursion=
916 prefix=NONE
917 program_prefix=NONE
918 program_suffix=NONE
919 program_transform_name=s,x,x,
920 silent=
921 site=
922 srcdir=
923 verbose=
924 x_includes=NONE
925 x_libraries=NONE
926
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir='${exec_prefix}/bin'
934 sbindir='${exec_prefix}/sbin'
935 libexecdir='${exec_prefix}/libexec'
936 datarootdir='${prefix}/share'
937 datadir='${datarootdir}'
938 sysconfdir='${prefix}/etc'
939 sharedstatedir='${prefix}/com'
940 localstatedir='${prefix}/var'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944 infodir='${datarootdir}/info'
945 htmldir='${docdir}'
946 dvidir='${docdir}'
947 pdfdir='${docdir}'
948 psdir='${docdir}'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
952
953 ac_prev=
954 ac_dashdash=
955 for ac_option
956 do
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
959 eval $ac_prev=\$ac_option
960 ac_prev=
961 continue
962 fi
963
964 case $ac_option in
965 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966 *=) ac_optarg= ;;
967 *) ac_optarg=yes ;;
968 esac
969
970 # Accept the important Cygnus configure options, so we can diagnose typos.
971
972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
975
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 bindir=$ac_optarg ;;
980
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
985
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
995
996 -datadir | --datadir | --datadi | --datad)
997 ac_prev=datadir ;;
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1000
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1007
1008 -disable-* | --disable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=no ;;
1023
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1028
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1033
1034 -enable-* | --enable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid feature name: $ac_useropt"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043 "enable_$ac_useropt"
1044 "*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1058
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1062
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1069
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1074
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 ac_prev=htmldir ;;
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 | --ht=*)
1079 htmldir=$ac_optarg ;;
1080
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1087
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1092
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1097
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1104
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1109
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1116
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1121
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1124 with_fp=no ;;
1125
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1128 no_create=yes ;;
1129
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 no_recursion=yes ;;
1133
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1142
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1147
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1154
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
1161
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1178
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 ac_prev=pdfdir ;;
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1183
1184 -psdir | --psdir | --psdi | --psd | --ps)
1185 ac_prev=psdir ;;
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 psdir=$ac_optarg ;;
1188
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1192
1193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194 ac_prev=sbindir ;;
1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196 | --sbi=* | --sb=*)
1197 sbindir=$ac_optarg ;;
1198
1199 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201 | --sharedst | --shareds | --shared | --share | --shar \
1202 | --sha | --sh)
1203 ac_prev=sharedstatedir ;;
1204 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207 | --sha=* | --sh=*)
1208 sharedstatedir=$ac_optarg ;;
1209
1210 -site | --site | --sit)
1211 ac_prev=site ;;
1212 -site=* | --site=* | --sit=*)
1213 site=$ac_optarg ;;
1214
1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216 ac_prev=srcdir ;;
1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218 srcdir=$ac_optarg ;;
1219
1220 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221 | --syscon | --sysco | --sysc | --sys | --sy)
1222 ac_prev=sysconfdir ;;
1223 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225 sysconfdir=$ac_optarg ;;
1226
1227 -target | --target | --targe | --targ | --tar | --ta | --t)
1228 ac_prev=target_alias ;;
1229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230 target_alias=$ac_optarg ;;
1231
1232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 verbose=yes ;;
1234
1235 -version | --version | --versio | --versi | --vers | -V)
1236 ac_init_version=: ;;
1237
1238 -with-* | --with-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: $ac_useropt"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=\$ac_optarg ;;
1253
1254 -without-* | --without-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid package name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263 "with_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=no ;;
1269
1270 --x)
1271 # Obsolete; use --with-x.
1272 with_x=yes ;;
1273
1274 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275 | --x-incl | --x-inc | --x-in | --x-i)
1276 ac_prev=x_includes ;;
1277 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279 x_includes=$ac_optarg ;;
1280
1281 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283 ac_prev=x_libraries ;;
1284 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286 x_libraries=$ac_optarg ;;
1287
1288 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1289 Try \`$0 --help' for more information"
1290 ;;
1291
1292 *=*)
1293 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294 # Reject names that are not valid shell variable names.
1295 case $ac_envvar in #(
1296 '' | [0-9]* | *[!_$as_cr_alnum]* )
1297 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1298 esac
1299 eval $ac_envvar=\$ac_optarg
1300 export $ac_envvar ;;
1301
1302 *)
1303 # FIXME: should be removed in autoconf 3.0.
1304 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 ;;
1309
1310 esac
1311 done
1312
1313 if test -n "$ac_prev"; then
1314 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315 as_fn_error $? "missing argument to $ac_option"
1316 fi
1317
1318 if test -n "$ac_unrecognized_opts"; then
1319 case $enable_option_checking in
1320 no) ;;
1321 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1322 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 esac
1324 fi
1325
1326 # Check all directory arguments for consistency.
1327 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328 datadir sysconfdir sharedstatedir localstatedir includedir \
1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330 libdir localedir mandir
1331 do
1332 eval ac_val=\$$ac_var
1333 # Remove trailing slashes.
1334 case $ac_val in
1335 */ )
1336 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337 eval $ac_var=\$ac_val;;
1338 esac
1339 # Be sure to have absolute directory names.
1340 case $ac_val in
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343 esac
1344 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345 done
1346
1347 # There might be people who depend on the old broken behavior: `$host'
1348 # used to hold the argument of --host etc.
1349 # FIXME: To remove some day.
1350 build=$build_alias
1351 host=$host_alias
1352 target=$target_alias
1353
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x; then
1356 if test "x$build_alias" = x; then
1357 cross_compiling=maybe
1358 elif test "x$build_alias" != "x$host_alias"; then
1359 cross_compiling=yes
1360 fi
1361 fi
1362
1363 ac_tool_prefix=
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366 test "$silent" = yes && exec 6>/dev/null
1367
1368
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372 as_fn_error $? "working directory cannot be determined"
1373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374 as_fn_error $? "pwd does not report name of working directory"
1375
1376
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$as_myself" ||
1382 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$as_myself" : 'X\(//\)[^/]' \| \
1384 X"$as_myself" : 'X\(//\)$' \| \
1385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386 $as_echo X"$as_myself" |
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)[^/].*/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\).*/{
1400 s//\1/
1401 q
1402 }
1403 s/.*/./; q'`
1404 srcdir=$ac_confdir
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 srcdir=..
1407 fi
1408 else
1409 ac_srcdir_defaulted=no
1410 fi
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414 fi
1415 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 ac_abs_confdir=`(
1417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418 pwd)`
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421 srcdir=.
1422 fi
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1426 case $srcdir in
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 esac
1429 for ac_var in $ac_precious_vars; do
1430 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_env_${ac_var}_value=\$${ac_var}
1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434 done
1435
1436 #
1437 # Report the --help message.
1438 #
1439 if test "$ac_init_help" = "long"; then
1440 # Omit some internal or obsolete options to make the list less imposing.
1441 # This message is too long to be a string in the A/UX 3.1 sh.
1442 cat <<_ACEOF
1443 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1444
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE. See below for descriptions of some of the useful variables.
1449
1450 Defaults for the options are specified in brackets.
1451
1452 Configuration:
1453 -h, --help display this help and exit
1454 --help=short display options specific to this package
1455 --help=recursive display the short help of all the included packages
1456 -V, --version display version information and exit
1457 -q, --quiet, --silent do not print \`checking ...' messages
1458 --cache-file=FILE cache test results in FILE [disabled]
1459 -C, --config-cache alias for \`--cache-file=config.cache'
1460 -n, --no-create do not create output files
1461 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462
1463 Installation directories:
1464 --prefix=PREFIX install architecture-independent files in PREFIX
1465 [$ac_default_prefix]
1466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1467 [PREFIX]
1468
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1473
1474 For better control, use the options below.
1475
1476 Fine tuning of the installation directories:
1477 --bindir=DIR user executables [EPREFIX/bin]
1478 --sbindir=DIR system admin executables [EPREFIX/sbin]
1479 --libexecdir=DIR program executables [EPREFIX/libexec]
1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1483 --libdir=DIR object code libraries [EPREFIX/lib]
1484 --includedir=DIR C header files [PREFIX/include]
1485 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1486 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1487 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1488 --infodir=DIR info documentation [DATAROOTDIR/info]
1489 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1490 --mandir=DIR man documentation [DATAROOTDIR/man]
1491 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1492 --htmldir=DIR html documentation [DOCDIR]
1493 --dvidir=DIR dvi documentation [DOCDIR]
1494 --pdfdir=DIR pdf documentation [DOCDIR]
1495 --psdir=DIR ps documentation [DOCDIR]
1496 _ACEOF
1497
1498 cat <<\_ACEOF
1499
1500 Program names:
1501 --program-prefix=PREFIX prepend PREFIX to installed program names
1502 --program-suffix=SUFFIX append SUFFIX to installed program names
1503 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1504
1505 System types:
1506 --build=BUILD configure for building on BUILD [guessed]
1507 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1508 --target=TARGET configure for building compilers for TARGET [HOST]
1509 _ACEOF
1510 fi
1511
1512 if test -n "$ac_init_help"; then
1513 case $ac_init_help in
1514 short | recursive ) echo "Configuration of gold 0.1:";;
1515 esac
1516 cat <<\_ACEOF
1517
1518 Optional Features:
1519 --disable-option-checking ignore unrecognized --enable/--with options
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1522 --enable-silent-rules less verbose build output (undo: "make V=1")
1523 --disable-silent-rules verbose build output (undo: "make V=0")
1524 --enable-dependency-tracking
1525 do not reject slow dependency extractors
1526 --disable-dependency-tracking
1527 speeds up one-time build
1528 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1529 --enable-plugins Enable support for plugins
1530 --enable-relro enable -z relro in ELF linker by default
1531 --enable-targets alternative target configurations
1532 --enable-default-hash-style={sysv,gnu,both}
1533 use this default hash style
1534 --disable-nls do not use Native Language Support
1535 --disable-rpath do not hardcode runtime library paths
1536 --enable-werror treat compile warnings as errors
1537 --enable-build-warnings enable build-time compiler warnings
1538 --enable-threads[=ARG] multi-threaded linking [ARG={auto,yes,no}]
1539 --enable-jansson enable jansson [default=no]
1540 --enable-maintainer-mode
1541 enable make rules and dependencies not useful (and
1542 sometimes confusing) to the casual installer
1543
1544 Optional Packages:
1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1547 --with-sysroot=DIR search for usr/lib et al within DIR
1548 --with-lib-path=dir1:dir2... set default LIB_PATH
1549 --with-gnu-ld assume the C compiler uses GNU ld default=no
1550 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1551 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1552 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1553 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1554 --without-libintl-prefix don't search for libintl in includedir and libdir
1555 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1556 --with-gold-ldflags=FLAGS additional link flags for gold
1557 --with-gold-ldadd=LIBS additional libraries for gold
1558 --with-system-zlib use installed libz
1559 --with-zstd support zstd compressed debug sections
1560 (default=auto)
1561
1562 Some influential environment variables:
1563 CC C compiler command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1566 nonstandard directory <lib dir>
1567 LIBS libraries to pass to the linker, e.g. -l<library>
1568 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1569 you have headers in a nonstandard directory <include dir>
1570 CPP C preprocessor
1571 CXX C++ compiler command
1572 CXXFLAGS C++ compiler flags
1573 YACC The `Yet Another Compiler Compiler' implementation to use.
1574 Defaults to the first program found out of: `bison -y', `byacc',
1575 `yacc'.
1576 YFLAGS The list of arguments that will be passed by default to $YACC.
1577 This script will default YFLAGS to the empty string to avoid a
1578 default value of `-d' given by some make applications.
1579 PKG_CONFIG path to pkg-config utility
1580 PKG_CONFIG_PATH
1581 directories to add to pkg-config's search path
1582 PKG_CONFIG_LIBDIR
1583 path overriding pkg-config's built-in search path
1584 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1585 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1586 JANSSON_CFLAGS
1587 C compiler flags for JANSSON, overriding pkg-config
1588 JANSSON_LIBS
1589 linker flags for JANSSON, overriding pkg-config
1590 CXXCPP C++ preprocessor
1591
1592 Use these variables to override the choices made by `configure' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1594
1595 Report bugs to the package provider.
1596 _ACEOF
1597 ac_status=$?
1598 fi
1599
1600 if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603 test -d "$ac_dir" ||
1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605 continue
1606 ac_builddir=.
1607
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *)
1611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1623
1624 case $srcdir in
1625 .) # We are building in place.
1626 ac_srcdir=.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1648 else
1649 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1652 done
1653 fi
1654
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1657 cat <<\_ACEOF
1658 gold configure 0.1
1659 generated by GNU Autoconf 2.69
1660
1661 Copyright (C) 2012 Free Software Foundation, Inc.
1662 This configure script is free software; the Free Software Foundation
1663 gives unlimited permission to copy, distribute and modify it.
1664 _ACEOF
1665 exit
1666 fi
1667
1668 ## ------------------------ ##
1669 ## Autoconf initialization. ##
1670 ## ------------------------ ##
1671
1672 # ac_fn_c_try_compile LINENO
1673 # --------------------------
1674 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_compile ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext
1679 if { { ac_try="$ac_compile"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_compile") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest.$ac_objext; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704 fi
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_compile
1709
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_cpp ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } > conftest.i && {
1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741 fi
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_cpp
1746
1747 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1750 # the include files in INCLUDES and setting the cache variable VAR
1751 # accordingly.
1752 ac_fn_c_check_header_mongrel ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if eval \${$3+:} false; then :
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1760 fi
1761 eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764 else
1765 # Is the header compilable?
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1767 $as_echo_n "checking $2 usability... " >&6; }
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 $4
1771 #include <$2>
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774 ac_header_compiler=yes
1775 else
1776 ac_header_compiler=no
1777 fi
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1780 $as_echo "$ac_header_compiler" >&6; }
1781
1782 # Is the header present?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1784 $as_echo_n "checking $2 presence... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_cpp "$LINENO"; then :
1790 ac_header_preproc=yes
1791 else
1792 ac_header_preproc=no
1793 fi
1794 rm -f conftest.err conftest.i conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1796 $as_echo "$ac_header_preproc" >&6; }
1797
1798 # So? What about this header?
1799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1800 yes:no: )
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1802 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805 ;;
1806 no:yes:* )
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1808 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1810 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1812 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1814 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1816 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817 ;;
1818 esac
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 eval "$3=\$ac_header_compiler"
1825 fi
1826 eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 fi
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831
1832 } # ac_fn_c_check_header_mongrel
1833
1834 # ac_fn_c_try_run LINENO
1835 # ----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1837 # that executables *can* be run.
1838 ac_fn_c_try_run ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>&5
1849 ac_status=$?
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1852 { { case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_try") 2>&5
1859 ac_status=$?
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; }; }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: program exited with status $ac_status" >&5
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=$ac_status
1869 fi
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
1873
1874 } # ac_fn_c_try_run
1875
1876 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1877 # -------------------------------------------------------
1878 # Tests whether HEADER exists and can be compiled using the include files in
1879 # INCLUDES, setting the cache variable VAR accordingly.
1880 ac_fn_c_check_header_compile ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1887 else
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 $4
1891 #include <$2>
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 eval "$3=yes"
1895 else
1896 eval "$3=no"
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905 } # ac_fn_c_check_header_compile
1906
1907 # ac_fn_c_try_link LINENO
1908 # -----------------------
1909 # Try to link conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_c_try_link ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 rm -f conftest.$ac_objext conftest$ac_exeext
1914 if { { ac_try="$ac_link"
1915 case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_link") 2>conftest.err
1922 ac_status=$?
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1927 fi
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && {
1930 test -z "$ac_c_werror_flag" ||
1931 test ! -s conftest.err
1932 } && test -s conftest$ac_exeext && {
1933 test "$cross_compiling" = yes ||
1934 test -x conftest$ac_exeext
1935 }; then :
1936 ac_retval=0
1937 else
1938 $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941 ac_retval=1
1942 fi
1943 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1944 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1945 # interfere with the next link command; also delete a directory that is
1946 # left behind by Apple's compiler. We do this before executing the actions.
1947 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 as_fn_set_status $ac_retval
1950
1951 } # ac_fn_c_try_link
1952
1953 # ac_fn_cxx_try_compile LINENO
1954 # ----------------------------
1955 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1956 ac_fn_cxx_try_compile ()
1957 {
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 rm -f conftest.$ac_objext
1960 if { { ac_try="$ac_compile"
1961 case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_compile") 2>conftest.err
1968 ac_status=$?
1969 if test -s conftest.err; then
1970 grep -v '^ *+' conftest.err >conftest.er1
1971 cat conftest.er1 >&5
1972 mv -f conftest.er1 conftest.err
1973 fi
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && {
1976 test -z "$ac_cxx_werror_flag" ||
1977 test ! -s conftest.err
1978 } && test -s conftest.$ac_objext; then :
1979 ac_retval=0
1980 else
1981 $as_echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1983
1984 ac_retval=1
1985 fi
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987 as_fn_set_status $ac_retval
1988
1989 } # ac_fn_cxx_try_compile
1990
1991 # ac_fn_c_check_func LINENO FUNC VAR
1992 # ----------------------------------
1993 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1994 ac_fn_c_check_func ()
1995 {
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if eval \${$3+:} false; then :
2000 $as_echo_n "(cached) " >&6
2001 else
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2006 #define $2 innocuous_$2
2007
2008 /* System header to define __stub macros and hopefully few prototypes,
2009 which can conflict with char $2 (); below.
2010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2011 <limits.h> exists even on freestanding compilers. */
2012
2013 #ifdef __STDC__
2014 # include <limits.h>
2015 #else
2016 # include <assert.h>
2017 #endif
2018
2019 #undef $2
2020
2021 /* Override any GCC internal prototype to avoid an error.
2022 Use char because int might match the return type of a GCC
2023 builtin and then its argument prototype would still apply. */
2024 #ifdef __cplusplus
2025 extern "C"
2026 #endif
2027 char $2 ();
2028 /* The GNU C library defines this for functions which it implements
2029 to always fail with ENOSYS. Some functions are actually named
2030 something starting with __ and the normal name is an alias. */
2031 #if defined __stub_$2 || defined __stub___$2
2032 choke me
2033 #endif
2034
2035 int
2036 main ()
2037 {
2038 return $2 ();
2039 ;
2040 return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_link "$LINENO"; then :
2044 eval "$3=yes"
2045 else
2046 eval "$3=no"
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext \
2049 conftest$ac_exeext conftest.$ac_ext
2050 fi
2051 eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055
2056 } # ac_fn_c_check_func
2057
2058 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2059 # ---------------------------------------------
2060 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2061 # accordingly.
2062 ac_fn_c_check_decl ()
2063 {
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 as_decl_name=`echo $2|sed 's/ *(.*//'`
2066 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2068 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2069 if eval \${$3+:} false; then :
2070 $as_echo_n "(cached) " >&6
2071 else
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 $4
2075 int
2076 main ()
2077 {
2078 #ifndef $as_decl_name
2079 #ifdef __cplusplus
2080 (void) $as_decl_use;
2081 #else
2082 (void) $as_decl_name;
2083 #endif
2084 #endif
2085
2086 ;
2087 return 0;
2088 }
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091 eval "$3=yes"
2092 else
2093 eval "$3=no"
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 fi
2097 eval ac_res=\$$3
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101
2102 } # ac_fn_c_check_decl
2103
2104 # ac_fn_cxx_try_cpp LINENO
2105 # ------------------------
2106 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2107 ac_fn_cxx_try_cpp ()
2108 {
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 if { { ac_try="$ac_cpp conftest.$ac_ext"
2111 case "(($ac_try" in
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2114 esac
2115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2116 $as_echo "$ac_try_echo"; } >&5
2117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2118 ac_status=$?
2119 if test -s conftest.err; then
2120 grep -v '^ *+' conftest.err >conftest.er1
2121 cat conftest.er1 >&5
2122 mv -f conftest.er1 conftest.err
2123 fi
2124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2125 test $ac_status = 0; } > conftest.i && {
2126 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2127 test ! -s conftest.err
2128 }; then :
2129 ac_retval=0
2130 else
2131 $as_echo "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.$ac_ext >&5
2133
2134 ac_retval=1
2135 fi
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137 as_fn_set_status $ac_retval
2138
2139 } # ac_fn_cxx_try_cpp
2140
2141 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2142 # ---------------------------------------------------------
2143 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2144 # the include files in INCLUDES and setting the cache variable VAR
2145 # accordingly.
2146 ac_fn_cxx_check_header_mongrel ()
2147 {
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 if eval \${$3+:} false; then :
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2151 $as_echo_n "checking for $2... " >&6; }
2152 if eval \${$3+:} false; then :
2153 $as_echo_n "(cached) " >&6
2154 fi
2155 eval ac_res=\$$3
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157 $as_echo "$ac_res" >&6; }
2158 else
2159 # Is the header compilable?
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2161 $as_echo_n "checking $2 usability... " >&6; }
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2164 $4
2165 #include <$2>
2166 _ACEOF
2167 if ac_fn_cxx_try_compile "$LINENO"; then :
2168 ac_header_compiler=yes
2169 else
2170 ac_header_compiler=no
2171 fi
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2174 $as_echo "$ac_header_compiler" >&6; }
2175
2176 # Is the header present?
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2178 $as_echo_n "checking $2 presence... " >&6; }
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2181 #include <$2>
2182 _ACEOF
2183 if ac_fn_cxx_try_cpp "$LINENO"; then :
2184 ac_header_preproc=yes
2185 else
2186 ac_header_preproc=no
2187 fi
2188 rm -f conftest.err conftest.i conftest.$ac_ext
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2190 $as_echo "$ac_header_preproc" >&6; }
2191
2192 # So? What about this header?
2193 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2194 yes:no: )
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2196 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2198 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2199 ;;
2200 no:yes:* )
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2202 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2204 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2206 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2208 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2210 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2211 ;;
2212 esac
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2214 $as_echo_n "checking for $2... " >&6; }
2215 if eval \${$3+:} false; then :
2216 $as_echo_n "(cached) " >&6
2217 else
2218 eval "$3=\$ac_header_compiler"
2219 fi
2220 eval ac_res=\$$3
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2222 $as_echo "$ac_res" >&6; }
2223 fi
2224 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225
2226 } # ac_fn_cxx_check_header_mongrel
2227
2228 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2229 # -----------------------------------------------
2230 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2231 # accordingly.
2232 ac_fn_cxx_check_decl ()
2233 {
2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2235 as_decl_name=`echo $2|sed 's/ *(.*//'`
2236 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2238 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2239 if eval \${$3+:} false; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2244 $4
2245 int
2246 main ()
2247 {
2248 #ifndef $as_decl_name
2249 #ifdef __cplusplus
2250 (void) $as_decl_use;
2251 #else
2252 (void) $as_decl_name;
2253 #endif
2254 #endif
2255
2256 ;
2257 return 0;
2258 }
2259 _ACEOF
2260 if ac_fn_cxx_try_compile "$LINENO"; then :
2261 eval "$3=yes"
2262 else
2263 eval "$3=no"
2264 fi
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 fi
2267 eval ac_res=\$$3
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271
2272 } # ac_fn_cxx_check_decl
2273
2274 # ac_fn_cxx_try_link LINENO
2275 # -------------------------
2276 # Try to link conftest.$ac_ext, and return whether this succeeded.
2277 ac_fn_cxx_try_link ()
2278 {
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 rm -f conftest.$ac_objext conftest$ac_exeext
2281 if { { ac_try="$ac_link"
2282 case "(($ac_try" in
2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284 *) ac_try_echo=$ac_try;;
2285 esac
2286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2287 $as_echo "$ac_try_echo"; } >&5
2288 (eval "$ac_link") 2>conftest.err
2289 ac_status=$?
2290 if test -s conftest.err; then
2291 grep -v '^ *+' conftest.err >conftest.er1
2292 cat conftest.er1 >&5
2293 mv -f conftest.er1 conftest.err
2294 fi
2295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2296 test $ac_status = 0; } && {
2297 test -z "$ac_cxx_werror_flag" ||
2298 test ! -s conftest.err
2299 } && test -s conftest$ac_exeext && {
2300 test "$cross_compiling" = yes ||
2301 test -x conftest$ac_exeext
2302 }; then :
2303 ac_retval=0
2304 else
2305 $as_echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2307
2308 ac_retval=1
2309 fi
2310 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2311 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2312 # interfere with the next link command; also delete a directory that is
2313 # left behind by Apple's compiler. We do this before executing the actions.
2314 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2316 as_fn_set_status $ac_retval
2317
2318 } # ac_fn_cxx_try_link
2319
2320 # ac_fn_cxx_check_func LINENO FUNC VAR
2321 # ------------------------------------
2322 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2323 ac_fn_cxx_check_func ()
2324 {
2325 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2327 $as_echo_n "checking for $2... " >&6; }
2328 if eval \${$3+:} false; then :
2329 $as_echo_n "(cached) " >&6
2330 else
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2333 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2335 #define $2 innocuous_$2
2336
2337 /* System header to define __stub macros and hopefully few prototypes,
2338 which can conflict with char $2 (); below.
2339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2340 <limits.h> exists even on freestanding compilers. */
2341
2342 #ifdef __STDC__
2343 # include <limits.h>
2344 #else
2345 # include <assert.h>
2346 #endif
2347
2348 #undef $2
2349
2350 /* Override any GCC internal prototype to avoid an error.
2351 Use char because int might match the return type of a GCC
2352 builtin and then its argument prototype would still apply. */
2353 #ifdef __cplusplus
2354 extern "C"
2355 #endif
2356 char $2 ();
2357 /* The GNU C library defines this for functions which it implements
2358 to always fail with ENOSYS. Some functions are actually named
2359 something starting with __ and the normal name is an alias. */
2360 #if defined __stub_$2 || defined __stub___$2
2361 choke me
2362 #endif
2363
2364 int
2365 main ()
2366 {
2367 return $2 ();
2368 ;
2369 return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_cxx_try_link "$LINENO"; then :
2373 eval "$3=yes"
2374 else
2375 eval "$3=no"
2376 fi
2377 rm -f core conftest.err conftest.$ac_objext \
2378 conftest$ac_exeext conftest.$ac_ext
2379 fi
2380 eval ac_res=\$$3
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382 $as_echo "$ac_res" >&6; }
2383 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384
2385 } # ac_fn_cxx_check_func
2386 cat >config.log <<_ACEOF
2387 This file contains any messages produced by compilers while
2388 running configure, to aid debugging if configure makes a mistake.
2389
2390 It was created by gold $as_me 0.1, which was
2391 generated by GNU Autoconf 2.69. Invocation command line was
2392
2393 $ $0 $@
2394
2395 _ACEOF
2396 exec 5>>config.log
2397 {
2398 cat <<_ASUNAME
2399 ## --------- ##
2400 ## Platform. ##
2401 ## --------- ##
2402
2403 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2404 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2405 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2406 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2407 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2408
2409 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2410 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2411
2412 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2413 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2414 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2415 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2416 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2417 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2418 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2419
2420 _ASUNAME
2421
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2424 do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 $as_echo "PATH: $as_dir"
2428 done
2429 IFS=$as_save_IFS
2430
2431 } >&5
2432
2433 cat >&5 <<_ACEOF
2434
2435
2436 ## ----------- ##
2437 ## Core tests. ##
2438 ## ----------- ##
2439
2440 _ACEOF
2441
2442
2443 # Keep a trace of the command line.
2444 # Strip out --no-create and --no-recursion so they do not pile up.
2445 # Strip out --silent because we don't want to record it for future runs.
2446 # Also quote any args containing shell meta-characters.
2447 # Make two passes to allow for proper duplicate-argument suppression.
2448 ac_configure_args=
2449 ac_configure_args0=
2450 ac_configure_args1=
2451 ac_must_keep_next=false
2452 for ac_pass in 1 2
2453 do
2454 for ac_arg
2455 do
2456 case $ac_arg in
2457 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2459 | -silent | --silent | --silen | --sile | --sil)
2460 continue ;;
2461 *\'*)
2462 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2463 esac
2464 case $ac_pass in
2465 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2466 2)
2467 as_fn_append ac_configure_args1 " '$ac_arg'"
2468 if test $ac_must_keep_next = true; then
2469 ac_must_keep_next=false # Got value, back to normal.
2470 else
2471 case $ac_arg in
2472 *=* | --config-cache | -C | -disable-* | --disable-* \
2473 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2474 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2475 | -with-* | --with-* | -without-* | --without-* | --x)
2476 case "$ac_configure_args0 " in
2477 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2478 esac
2479 ;;
2480 -* ) ac_must_keep_next=true ;;
2481 esac
2482 fi
2483 as_fn_append ac_configure_args " '$ac_arg'"
2484 ;;
2485 esac
2486 done
2487 done
2488 { ac_configure_args0=; unset ac_configure_args0;}
2489 { ac_configure_args1=; unset ac_configure_args1;}
2490
2491 # When interrupted or exit'd, cleanup temporary files, and complete
2492 # config.log. We remove comments because anyway the quotes in there
2493 # would cause problems or look ugly.
2494 # WARNING: Use '\'' to represent an apostrophe within the trap.
2495 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2496 trap 'exit_status=$?
2497 # Save into config.log some information that might help in debugging.
2498 {
2499 echo
2500
2501 $as_echo "## ---------------- ##
2502 ## Cache variables. ##
2503 ## ---------------- ##"
2504 echo
2505 # The following way of writing the cache mishandles newlines in values,
2506 (
2507 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2508 eval ac_val=\$$ac_var
2509 case $ac_val in #(
2510 *${as_nl}*)
2511 case $ac_var in #(
2512 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2513 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2514 esac
2515 case $ac_var in #(
2516 _ | IFS | as_nl) ;; #(
2517 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2518 *) { eval $ac_var=; unset $ac_var;} ;;
2519 esac ;;
2520 esac
2521 done
2522 (set) 2>&1 |
2523 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2524 *${as_nl}ac_space=\ *)
2525 sed -n \
2526 "s/'\''/'\''\\\\'\'''\''/g;
2527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2528 ;; #(
2529 *)
2530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2531 ;;
2532 esac |
2533 sort
2534 )
2535 echo
2536
2537 $as_echo "## ----------------- ##
2538 ## Output variables. ##
2539 ## ----------------- ##"
2540 echo
2541 for ac_var in $ac_subst_vars
2542 do
2543 eval ac_val=\$$ac_var
2544 case $ac_val in
2545 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2546 esac
2547 $as_echo "$ac_var='\''$ac_val'\''"
2548 done | sort
2549 echo
2550
2551 if test -n "$ac_subst_files"; then
2552 $as_echo "## ------------------- ##
2553 ## File substitutions. ##
2554 ## ------------------- ##"
2555 echo
2556 for ac_var in $ac_subst_files
2557 do
2558 eval ac_val=\$$ac_var
2559 case $ac_val in
2560 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2561 esac
2562 $as_echo "$ac_var='\''$ac_val'\''"
2563 done | sort
2564 echo
2565 fi
2566
2567 if test -s confdefs.h; then
2568 $as_echo "## ----------- ##
2569 ## confdefs.h. ##
2570 ## ----------- ##"
2571 echo
2572 cat confdefs.h
2573 echo
2574 fi
2575 test "$ac_signal" != 0 &&
2576 $as_echo "$as_me: caught signal $ac_signal"
2577 $as_echo "$as_me: exit $exit_status"
2578 } >&5
2579 rm -f core *.core core.conftest.* &&
2580 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2581 exit $exit_status
2582 ' 0
2583 for ac_signal in 1 2 13 15; do
2584 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2585 done
2586 ac_signal=0
2587
2588 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2589 rm -f -r conftest* confdefs.h
2590
2591 $as_echo "/* confdefs.h */" > confdefs.h
2592
2593 # Predefined preprocessor variables.
2594
2595 cat >>confdefs.h <<_ACEOF
2596 #define PACKAGE_NAME "$PACKAGE_NAME"
2597 _ACEOF
2598
2599 cat >>confdefs.h <<_ACEOF
2600 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2601 _ACEOF
2602
2603 cat >>confdefs.h <<_ACEOF
2604 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2605 _ACEOF
2606
2607 cat >>confdefs.h <<_ACEOF
2608 #define PACKAGE_STRING "$PACKAGE_STRING"
2609 _ACEOF
2610
2611 cat >>confdefs.h <<_ACEOF
2612 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2613 _ACEOF
2614
2615 cat >>confdefs.h <<_ACEOF
2616 #define PACKAGE_URL "$PACKAGE_URL"
2617 _ACEOF
2618
2619
2620 # Let the site file select an alternate cache file if it wants to.
2621 # Prefer an explicitly selected file to automatically selected ones.
2622 ac_site_file1=NONE
2623 ac_site_file2=NONE
2624 if test -n "$CONFIG_SITE"; then
2625 # We do not want a PATH search for config.site.
2626 case $CONFIG_SITE in #((
2627 -*) ac_site_file1=./$CONFIG_SITE;;
2628 */*) ac_site_file1=$CONFIG_SITE;;
2629 *) ac_site_file1=./$CONFIG_SITE;;
2630 esac
2631 elif test "x$prefix" != xNONE; then
2632 ac_site_file1=$prefix/share/config.site
2633 ac_site_file2=$prefix/etc/config.site
2634 else
2635 ac_site_file1=$ac_default_prefix/share/config.site
2636 ac_site_file2=$ac_default_prefix/etc/config.site
2637 fi
2638 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2639 do
2640 test "x$ac_site_file" = xNONE && continue
2641 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2643 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2644 sed 's/^/| /' "$ac_site_file" >&5
2645 . "$ac_site_file" \
2646 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648 as_fn_error $? "failed to load site script $ac_site_file
2649 See \`config.log' for more details" "$LINENO" 5; }
2650 fi
2651 done
2652
2653 if test -r "$cache_file"; then
2654 # Some versions of bash will fail to source /dev/null (special files
2655 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2656 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2658 $as_echo "$as_me: loading cache $cache_file" >&6;}
2659 case $cache_file in
2660 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2661 *) . "./$cache_file";;
2662 esac
2663 fi
2664 else
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2666 $as_echo "$as_me: creating cache $cache_file" >&6;}
2667 >$cache_file
2668 fi
2669
2670 gt_needs="$gt_needs "
2671 # Check that the precious variables saved in the cache have kept the same
2672 # value.
2673 ac_cache_corrupted=false
2674 for ac_var in $ac_precious_vars; do
2675 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2676 eval ac_new_set=\$ac_env_${ac_var}_set
2677 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2678 eval ac_new_val=\$ac_env_${ac_var}_value
2679 case $ac_old_set,$ac_new_set in
2680 set,)
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2682 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2683 ac_cache_corrupted=: ;;
2684 ,set)
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2686 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2687 ac_cache_corrupted=: ;;
2688 ,);;
2689 *)
2690 if test "x$ac_old_val" != "x$ac_new_val"; then
2691 # differences in whitespace do not lead to failure.
2692 ac_old_val_w=`echo x $ac_old_val`
2693 ac_new_val_w=`echo x $ac_new_val`
2694 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2696 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2697 ac_cache_corrupted=:
2698 else
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2700 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2701 eval $ac_var=\$ac_old_val
2702 fi
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2704 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2706 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2707 fi;;
2708 esac
2709 # Pass precious variables to config.status.
2710 if test "$ac_new_set" = set; then
2711 case $ac_new_val in
2712 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2713 *) ac_arg=$ac_var=$ac_new_val ;;
2714 esac
2715 case " $ac_configure_args " in
2716 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2717 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2718 esac
2719 fi
2720 done
2721 if $ac_cache_corrupted; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2725 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2726 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2727 fi
2728 ## -------------------- ##
2729 ## Main body of script. ##
2730 ## -------------------- ##
2731
2732 ac_ext=c
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737
2738
2739
2740
2741
2742
2743
2744 ac_aux_dir=
2745 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2746 if test -f "$ac_dir/install-sh"; then
2747 ac_aux_dir=$ac_dir
2748 ac_install_sh="$ac_aux_dir/install-sh -c"
2749 break
2750 elif test -f "$ac_dir/install.sh"; then
2751 ac_aux_dir=$ac_dir
2752 ac_install_sh="$ac_aux_dir/install.sh -c"
2753 break
2754 elif test -f "$ac_dir/shtool"; then
2755 ac_aux_dir=$ac_dir
2756 ac_install_sh="$ac_aux_dir/shtool install -c"
2757 break
2758 fi
2759 done
2760 if test -z "$ac_aux_dir"; then
2761 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2762 fi
2763
2764 # These three variables are undocumented and unsupported,
2765 # and are intended to be withdrawn in a future Autoconf release.
2766 # They can cause serious problems if a builder's source tree is in a directory
2767 # whose full name contains unusual characters.
2768 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2769 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2770 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2771
2772
2773 # Make sure we can run config.sub.
2774 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2775 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2776
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2778 $as_echo_n "checking build system type... " >&6; }
2779 if ${ac_cv_build+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 ac_build_alias=$build_alias
2783 test "x$ac_build_alias" = x &&
2784 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2785 test "x$ac_build_alias" = x &&
2786 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2787 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2789
2790 fi
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2792 $as_echo "$ac_cv_build" >&6; }
2793 case $ac_cv_build in
2794 *-*-*) ;;
2795 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2796 esac
2797 build=$ac_cv_build
2798 ac_save_IFS=$IFS; IFS='-'
2799 set x $ac_cv_build
2800 shift
2801 build_cpu=$1
2802 build_vendor=$2
2803 shift; shift
2804 # Remember, the first character of IFS is used to create $*,
2805 # except with old shells:
2806 build_os=$*
2807 IFS=$ac_save_IFS
2808 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2809
2810
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2812 $as_echo_n "checking host system type... " >&6; }
2813 if ${ac_cv_host+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 if test "x$host_alias" = x; then
2817 ac_cv_host=$ac_cv_build
2818 else
2819 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2820 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2821 fi
2822
2823 fi
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2825 $as_echo "$ac_cv_host" >&6; }
2826 case $ac_cv_host in
2827 *-*-*) ;;
2828 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2829 esac
2830 host=$ac_cv_host
2831 ac_save_IFS=$IFS; IFS='-'
2832 set x $ac_cv_host
2833 shift
2834 host_cpu=$1
2835 host_vendor=$2
2836 shift; shift
2837 # Remember, the first character of IFS is used to create $*,
2838 # except with old shells:
2839 host_os=$*
2840 IFS=$ac_save_IFS
2841 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2842
2843
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2845 $as_echo_n "checking target system type... " >&6; }
2846 if ${ac_cv_target+:} false; then :
2847 $as_echo_n "(cached) " >&6
2848 else
2849 if test "x$target_alias" = x; then
2850 ac_cv_target=$ac_cv_host
2851 else
2852 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2853 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2854 fi
2855
2856 fi
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2858 $as_echo "$ac_cv_target" >&6; }
2859 case $ac_cv_target in
2860 *-*-*) ;;
2861 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2862 esac
2863 target=$ac_cv_target
2864 ac_save_IFS=$IFS; IFS='-'
2865 set x $ac_cv_target
2866 shift
2867 target_cpu=$1
2868 target_vendor=$2
2869 shift; shift
2870 # Remember, the first character of IFS is used to create $*,
2871 # except with old shells:
2872 target_os=$*
2873 IFS=$ac_save_IFS
2874 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2875
2876
2877 # The aliases save the names the user supplied, while $host etc.
2878 # will get canonicalized.
2879 test -n "$target_alias" &&
2880 test "$program_prefix$program_suffix$program_transform_name" = \
2881 NONENONEs,x,x, &&
2882 program_prefix=${target_alias}-
2883
2884 am__api_version='1.15'
2885
2886 # Find a good install program. We prefer a C program (faster),
2887 # so one script is as good as another. But avoid the broken or
2888 # incompatible versions:
2889 # SysV /etc/install, /usr/sbin/install
2890 # SunOS /usr/etc/install
2891 # IRIX /sbin/install
2892 # AIX /bin/install
2893 # AmigaOS /C/install, which installs bootblocks on floppy discs
2894 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2895 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2896 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2897 # OS/2's system install, which has a completely different semantic
2898 # ./install, which can be erroneously created by make from ./install.sh.
2899 # Reject install programs that cannot install multiple files.
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2901 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2902 if test -z "$INSTALL"; then
2903 if ${ac_cv_path_install+:} false; then :
2904 $as_echo_n "(cached) " >&6
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 # Account for people who put trailing slashes in PATH elements.
2912 case $as_dir/ in #((
2913 ./ | .// | /[cC]/* | \
2914 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2915 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2916 /usr/ucb/* ) ;;
2917 *)
2918 # OSF1 and SCO ODT 3.0 have their own names for install.
2919 # Don't use installbsd from OSF since it installs stuff as root
2920 # by default.
2921 for ac_prog in ginstall scoinst install; do
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2924 if test $ac_prog = install &&
2925 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2926 # AIX install. It has an incompatible calling convention.
2927 :
2928 elif test $ac_prog = install &&
2929 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2930 # program-specific install script used by HP pwplus--don't use.
2931 :
2932 else
2933 rm -rf conftest.one conftest.two conftest.dir
2934 echo one > conftest.one
2935 echo two > conftest.two
2936 mkdir conftest.dir
2937 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2938 test -s conftest.one && test -s conftest.two &&
2939 test -s conftest.dir/conftest.one &&
2940 test -s conftest.dir/conftest.two
2941 then
2942 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2943 break 3
2944 fi
2945 fi
2946 fi
2947 done
2948 done
2949 ;;
2950 esac
2951
2952 done
2953 IFS=$as_save_IFS
2954
2955 rm -rf conftest.one conftest.two conftest.dir
2956
2957 fi
2958 if test "${ac_cv_path_install+set}" = set; then
2959 INSTALL=$ac_cv_path_install
2960 else
2961 # As a last resort, use the slow shell script. Don't cache a
2962 # value for INSTALL within a source directory, because that will
2963 # break other packages using the cache if that directory is
2964 # removed, or if the value is a relative name.
2965 INSTALL=$ac_install_sh
2966 fi
2967 fi
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2969 $as_echo "$INSTALL" >&6; }
2970
2971 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2972 # It thinks the first close brace ends the variable substitution.
2973 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2974
2975 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2976
2977 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2978
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2980 $as_echo_n "checking whether build environment is sane... " >&6; }
2981 # Reject unsafe characters in $srcdir or the absolute working directory
2982 # name. Accept space and tab only in the latter.
2983 am_lf='
2984 '
2985 case `pwd` in
2986 *[\\\"\#\$\&\'\`$am_lf]*)
2987 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2988 esac
2989 case $srcdir in
2990 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2991 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2992 esac
2993
2994 # Do 'set' in a subshell so we don't clobber the current shell's
2995 # arguments. Must try -L first in case configure is actually a
2996 # symlink; some systems play weird games with the mod time of symlinks
2997 # (eg FreeBSD returns the mod time of the symlink's containing
2998 # directory).
2999 if (
3000 am_has_slept=no
3001 for am_try in 1 2; do
3002 echo "timestamp, slept: $am_has_slept" > conftest.file
3003 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3004 if test "$*" = "X"; then
3005 # -L didn't work.
3006 set X `ls -t "$srcdir/configure" conftest.file`
3007 fi
3008 if test "$*" != "X $srcdir/configure conftest.file" \
3009 && test "$*" != "X conftest.file $srcdir/configure"; then
3010
3011 # If neither matched, then we have a broken ls. This can happen
3012 # if, for instance, CONFIG_SHELL is bash and it inherits a
3013 # broken ls alias from the environment. This has actually
3014 # happened. Such a system could not be considered "sane".
3015 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3016 alias in your environment" "$LINENO" 5
3017 fi
3018 if test "$2" = conftest.file || test $am_try -eq 2; then
3019 break
3020 fi
3021 # Just in case.
3022 sleep 1
3023 am_has_slept=yes
3024 done
3025 test "$2" = conftest.file
3026 )
3027 then
3028 # Ok.
3029 :
3030 else
3031 as_fn_error $? "newly created file is older than distributed files!
3032 Check your system clock" "$LINENO" 5
3033 fi
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3035 $as_echo "yes" >&6; }
3036 # If we didn't sleep, we still need to ensure time stamps of config.status and
3037 # generated files are strictly newer.
3038 am_sleep_pid=
3039 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3040 ( sleep 1 ) &
3041 am_sleep_pid=$!
3042 fi
3043
3044 rm -f conftest.file
3045
3046 test "$program_prefix" != NONE &&
3047 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3048 # Use a double $ so make ignores it.
3049 test "$program_suffix" != NONE &&
3050 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3051 # Double any \ or $.
3052 # By default was `s,x,x', remove it if useless.
3053 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3054 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3055
3056 # Expand $ac_aux_dir to an absolute path.
3057 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3058
3059 if test x"${MISSING+set}" != xset; then
3060 case $am_aux_dir in
3061 *\ * | *\ *)
3062 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3063 *)
3064 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3065 esac
3066 fi
3067 # Use eval to expand $SHELL
3068 if eval "$MISSING --is-lightweight"; then
3069 am_missing_run="$MISSING "
3070 else
3071 am_missing_run=
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3073 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3074 fi
3075
3076 if test x"${install_sh+set}" != xset; then
3077 case $am_aux_dir in
3078 *\ * | *\ *)
3079 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3080 *)
3081 install_sh="\${SHELL} $am_aux_dir/install-sh"
3082 esac
3083 fi
3084
3085 # Installed binaries are usually stripped using 'strip' when the user
3086 # run "make install-strip". However 'strip' might not be the right
3087 # tool to use in cross-compilation environments, therefore Automake
3088 # will honor the 'STRIP' environment variable to overrule this program.
3089 if test "$cross_compiling" != no; then
3090 if test -n "$ac_tool_prefix"; then
3091 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3092 set dummy ${ac_tool_prefix}strip; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_STRIP+:} false; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if test -n "$STRIP"; then
3099 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3111 fi
3112 done
3113 done
3114 IFS=$as_save_IFS
3115
3116 fi
3117 fi
3118 STRIP=$ac_cv_prog_STRIP
3119 if test -n "$STRIP"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3121 $as_echo "$STRIP" >&6; }
3122 else
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3125 fi
3126
3127
3128 fi
3129 if test -z "$ac_cv_prog_STRIP"; then
3130 ac_ct_STRIP=$STRIP
3131 # Extract the first word of "strip", so it can be a program name with args.
3132 set dummy strip; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$ac_ct_STRIP"; then
3139 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_ac_ct_STRIP="strip"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152 done
3153 done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3159 if test -n "$ac_ct_STRIP"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3161 $as_echo "$ac_ct_STRIP" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167 if test "x$ac_ct_STRIP" = x; then
3168 STRIP=":"
3169 else
3170 case $cross_compiling:$ac_tool_warned in
3171 yes:)
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174 ac_tool_warned=yes ;;
3175 esac
3176 STRIP=$ac_ct_STRIP
3177 fi
3178 else
3179 STRIP="$ac_cv_prog_STRIP"
3180 fi
3181
3182 fi
3183 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3184
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3186 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3187 if test -z "$MKDIR_P"; then
3188 if ${ac_cv_path_mkdir+:} false; then :
3189 $as_echo_n "(cached) " >&6
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3193 do
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_prog in mkdir gmkdir; do
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3199 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3200 'mkdir (GNU coreutils) '* | \
3201 'mkdir (coreutils) '* | \
3202 'mkdir (fileutils) '4.1*)
3203 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3204 break 3;;
3205 esac
3206 done
3207 done
3208 done
3209 IFS=$as_save_IFS
3210
3211 fi
3212
3213 test -d ./--version && rmdir ./--version
3214 if test "${ac_cv_path_mkdir+set}" = set; then
3215 MKDIR_P="$ac_cv_path_mkdir -p"
3216 else
3217 # As a last resort, use the slow shell script. Don't cache a
3218 # value for MKDIR_P within a source directory, because that will
3219 # break other packages using the cache if that directory is
3220 # removed, or if the value is a relative name.
3221 MKDIR_P="$ac_install_sh -d"
3222 fi
3223 fi
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3225 $as_echo "$MKDIR_P" >&6; }
3226
3227 for ac_prog in gawk mawk nawk awk
3228 do
3229 # Extract the first word of "$ac_prog", so it can be a program name with args.
3230 set dummy $ac_prog; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if ${ac_cv_prog_AWK+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 if test -n "$AWK"; then
3237 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3241 do
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246 ac_cv_prog_AWK="$ac_prog"
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3249 fi
3250 done
3251 done
3252 IFS=$as_save_IFS
3253
3254 fi
3255 fi
3256 AWK=$ac_cv_prog_AWK
3257 if test -n "$AWK"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3259 $as_echo "$AWK" >&6; }
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 fi
3264
3265
3266 test -n "$AWK" && break
3267 done
3268
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3270 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3271 set x ${MAKE-make}
3272 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3273 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 cat >conftest.make <<\_ACEOF
3277 SHELL = /bin/sh
3278 all:
3279 @echo '@@@%%%=$(MAKE)=@@@%%%'
3280 _ACEOF
3281 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3282 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3283 *@@@%%%=?*=@@@%%%*)
3284 eval ac_cv_prog_make_${ac_make}_set=yes;;
3285 *)
3286 eval ac_cv_prog_make_${ac_make}_set=no;;
3287 esac
3288 rm -f conftest.make
3289 fi
3290 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3293 SET_MAKE=
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 SET_MAKE="MAKE=${MAKE-make}"
3298 fi
3299
3300 rm -rf .tst 2>/dev/null
3301 mkdir .tst 2>/dev/null
3302 if test -d .tst; then
3303 am__leading_dot=.
3304 else
3305 am__leading_dot=_
3306 fi
3307 rmdir .tst 2>/dev/null
3308
3309 # Check whether --enable-silent-rules was given.
3310 if test "${enable_silent_rules+set}" = set; then :
3311 enableval=$enable_silent_rules;
3312 fi
3313
3314 case $enable_silent_rules in # (((
3315 yes) AM_DEFAULT_VERBOSITY=0;;
3316 no) AM_DEFAULT_VERBOSITY=1;;
3317 *) AM_DEFAULT_VERBOSITY=1;;
3318 esac
3319 am_make=${MAKE-make}
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3321 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3322 if ${am_cv_make_support_nested_variables+:} false; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 if $as_echo 'TRUE=$(BAR$(V))
3326 BAR0=false
3327 BAR1=true
3328 V=1
3329 am__doit:
3330 @$(TRUE)
3331 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3332 am_cv_make_support_nested_variables=yes
3333 else
3334 am_cv_make_support_nested_variables=no
3335 fi
3336 fi
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3338 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3339 if test $am_cv_make_support_nested_variables = yes; then
3340 AM_V='$(V)'
3341 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3342 else
3343 AM_V=$AM_DEFAULT_VERBOSITY
3344 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3345 fi
3346 AM_BACKSLASH='\'
3347
3348 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3349 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3350 # is not polluted with repeated "-I."
3351 am__isrc=' -I$(srcdir)'
3352 # test to see if srcdir already configured
3353 if test -f $srcdir/config.status; then
3354 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3355 fi
3356 fi
3357
3358 # test whether we have cygpath
3359 if test -z "$CYGPATH_W"; then
3360 if (cygpath --version) >/dev/null 2>/dev/null; then
3361 CYGPATH_W='cygpath -w'
3362 else
3363 CYGPATH_W=echo
3364 fi
3365 fi
3366
3367
3368 # Define the identity of the package.
3369 PACKAGE='gold'
3370 VERSION='0.1'
3371
3372
3373 cat >>confdefs.h <<_ACEOF
3374 #define PACKAGE "$PACKAGE"
3375 _ACEOF
3376
3377
3378 cat >>confdefs.h <<_ACEOF
3379 #define VERSION "$VERSION"
3380 _ACEOF
3381
3382 # Some tools Automake needs.
3383
3384 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3385
3386
3387 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3388
3389
3390 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3391
3392
3393 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3394
3395
3396 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3397
3398 # For better backward compatibility. To be removed once Automake 1.9.x
3399 # dies out for good. For more background, see:
3400 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3401 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3402 mkdir_p='$(MKDIR_P)'
3403
3404 # We need awk for the "check" target (and possibly the TAP driver). The
3405 # system "awk" is bad on some platforms.
3406 # Always define AMTAR for backward compatibility. Yes, it's still used
3407 # in the wild :-( We should find a proper way to deprecate it ...
3408 AMTAR='$${TAR-tar}'
3409
3410
3411 # We'll loop over all known methods to create a tar archive until one works.
3412 _am_tools='gnutar pax cpio none'
3413
3414 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3415
3416
3417
3418
3419
3420
3421 # POSIX will say in a future version that running "rm -f" with no argument
3422 # is OK; and we want to be able to make that assumption in our Makefile
3423 # recipes. So use an aggressive probe to check that the usage we want is
3424 # actually supported "in the wild" to an acceptable degree.
3425 # See automake bug#10828.
3426 # To make any issue more visible, cause the running configure to be aborted
3427 # by default if the 'rm' program in use doesn't match our expectations; the
3428 # user can still override this though.
3429 if rm -f && rm -fr && rm -rf; then : OK; else
3430 cat >&2 <<'END'
3431 Oops!
3432
3433 Your 'rm' program seems unable to run without file operands specified
3434 on the command line, even when the '-f' option is present. This is contrary
3435 to the behaviour of most rm programs out there, and not conforming with
3436 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3437
3438 Please tell [email protected] about your system, including the value
3439 of your $PATH and any error possibly output before this message. This
3440 can help us improve future automake versions.
3441
3442 END
3443 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3444 echo 'Configuration will proceed anyway, since you have set the' >&2
3445 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3446 echo >&2
3447 else
3448 cat >&2 <<'END'
3449 Aborting the configuration process, to ensure you take notice of the issue.
3450
3451 You can download and install GNU coreutils to get an 'rm' implementation
3452 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3453
3454 If you want to complete the configuration process using your problematic
3455 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3456 to "yes", and re-run configure.
3457
3458 END
3459 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3460 fi
3461 fi
3462
3463 # Check whether --enable-silent-rules was given.
3464 if test "${enable_silent_rules+set}" = set; then :
3465 enableval=$enable_silent_rules;
3466 fi
3467
3468 case $enable_silent_rules in # (((
3469 yes) AM_DEFAULT_VERBOSITY=0;;
3470 no) AM_DEFAULT_VERBOSITY=1;;
3471 *) AM_DEFAULT_VERBOSITY=0;;
3472 esac
3473 am_make=${MAKE-make}
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3475 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3476 if ${am_cv_make_support_nested_variables+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 if $as_echo 'TRUE=$(BAR$(V))
3480 BAR0=false
3481 BAR1=true
3482 V=1
3483 am__doit:
3484 @$(TRUE)
3485 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3486 am_cv_make_support_nested_variables=yes
3487 else
3488 am_cv_make_support_nested_variables=no
3489 fi
3490 fi
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3492 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3493 if test $am_cv_make_support_nested_variables = yes; then
3494 AM_V='$(V)'
3495 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3496 else
3497 AM_V=$AM_DEFAULT_VERBOSITY
3498 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3499 fi
3500 AM_BACKSLASH='\'
3501
3502
3503 ac_config_headers="$ac_config_headers config.h:config.in"
3504
3505
3506 DEPDIR="${am__leading_dot}deps"
3507
3508 ac_config_commands="$ac_config_commands depfiles"
3509
3510
3511 am_make=${MAKE-make}
3512 cat > confinc << 'END'
3513 am__doit:
3514 @echo this is the am__doit target
3515 .PHONY: am__doit
3516 END
3517 # If we don't find an include directive, just comment out the code.
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3519 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3520 am__include="#"
3521 am__quote=
3522 _am_result=none
3523 # First try GNU make style include.
3524 echo "include confinc" > confmf
3525 # Ignore all kinds of additional output from 'make'.
3526 case `$am_make -s -f confmf 2> /dev/null` in #(
3527 *the\ am__doit\ target*)
3528 am__include=include
3529 am__quote=
3530 _am_result=GNU
3531 ;;
3532 esac
3533 # Now try BSD make style include.
3534 if test "$am__include" = "#"; then
3535 echo '.include "confinc"' > confmf
3536 case `$am_make -s -f confmf 2> /dev/null` in #(
3537 *the\ am__doit\ target*)
3538 am__include=.include
3539 am__quote="\""
3540 _am_result=BSD
3541 ;;
3542 esac
3543 fi
3544
3545
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3547 $as_echo "$_am_result" >&6; }
3548 rm -f confinc confmf
3549
3550 # Check whether --enable-dependency-tracking was given.
3551 if test "${enable_dependency_tracking+set}" = set; then :
3552 enableval=$enable_dependency_tracking;
3553 fi
3554
3555 if test "x$enable_dependency_tracking" != xno; then
3556 am_depcomp="$ac_aux_dir/depcomp"
3557 AMDEPBACKSLASH='\'
3558 am__nodep='_no'
3559 fi
3560 if test "x$enable_dependency_tracking" != xno; then
3561 AMDEP_TRUE=
3562 AMDEP_FALSE='#'
3563 else
3564 AMDEP_TRUE='#'
3565 AMDEP_FALSE=
3566 fi
3567
3568
3569 ac_ext=c
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574 if test -n "$ac_tool_prefix"; then
3575 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3576 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_CC+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 if test -n "$CC"; then
3583 ac_cv_prog_CC="$CC" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 CC=$ac_cv_prog_CC
3603 if test -n "$CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605 $as_echo "$CC" >&6; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3609 fi
3610
3611
3612 fi
3613 if test -z "$ac_cv_prog_CC"; then
3614 ac_ct_CC=$CC
3615 # Extract the first word of "gcc", so it can be a program name with args.
3616 set dummy gcc; ac_word=$2
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 $as_echo_n "checking for $ac_word... " >&6; }
3619 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3620 $as_echo_n "(cached) " >&6
3621 else
3622 if test -n "$ac_ct_CC"; then
3623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632 ac_cv_prog_ac_ct_CC="gcc"
3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3634 break 2
3635 fi
3636 done
3637 done
3638 IFS=$as_save_IFS
3639
3640 fi
3641 fi
3642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3643 if test -n "$ac_ct_CC"; then
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3645 $as_echo "$ac_ct_CC" >&6; }
3646 else
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 $as_echo "no" >&6; }
3649 fi
3650
3651 if test "x$ac_ct_CC" = x; then
3652 CC=""
3653 else
3654 case $cross_compiling:$ac_tool_warned in
3655 yes:)
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned=yes ;;
3659 esac
3660 CC=$ac_ct_CC
3661 fi
3662 else
3663 CC="$ac_cv_prog_CC"
3664 fi
3665
3666 if test -z "$CC"; then
3667 if test -n "$ac_tool_prefix"; then
3668 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3669 set dummy ${ac_tool_prefix}cc; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_CC+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685 ac_cv_prog_CC="${ac_tool_prefix}cc"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 break 2
3688 fi
3689 done
3690 done
3691 IFS=$as_save_IFS
3692
3693 fi
3694 fi
3695 CC=$ac_cv_prog_CC
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 fi
3703
3704
3705 fi
3706 fi
3707 if test -z "$CC"; then
3708 # Extract the first word of "cc", so it can be a program name with args.
3709 set dummy cc; ac_word=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if ${ac_cv_prog_CC+:} false; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 if test -n "$CC"; then
3716 ac_cv_prog_CC="$CC" # Let the user override the test.
3717 else
3718 ac_prog_rejected=no
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3727 ac_prog_rejected=yes
3728 continue
3729 fi
3730 ac_cv_prog_CC="cc"
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 break 2
3733 fi
3734 done
3735 done
3736 IFS=$as_save_IFS
3737
3738 if test $ac_prog_rejected = yes; then
3739 # We found a bogon in the path, so make sure we never use it.
3740 set dummy $ac_cv_prog_CC
3741 shift
3742 if test $# != 0; then
3743 # We chose a different compiler from the bogus one.
3744 # However, it has the same basename, so the bogon will be chosen
3745 # first if we set CC to just the basename; use the full file name.
3746 shift
3747 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3748 fi
3749 fi
3750 fi
3751 fi
3752 CC=$ac_cv_prog_CC
3753 if test -n "$CC"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755 $as_echo "$CC" >&6; }
3756 else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3759 fi
3760
3761
3762 fi
3763 if test -z "$CC"; then
3764 if test -n "$ac_tool_prefix"; then
3765 for ac_prog in cl.exe
3766 do
3767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 $as_echo_n "checking for $ac_word... " >&6; }
3771 if ${ac_cv_prog_CC+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 if test -n "$CC"; then
3775 ac_cv_prog_CC="$CC" # Let the user override the test.
3776 else
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH
3779 do
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 break 2
3787 fi
3788 done
3789 done
3790 IFS=$as_save_IFS
3791
3792 fi
3793 fi
3794 CC=$ac_cv_prog_CC
3795 if test -n "$CC"; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3797 $as_echo "$CC" >&6; }
3798 else
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3801 fi
3802
3803
3804 test -n "$CC" && break
3805 done
3806 fi
3807 if test -z "$CC"; then
3808 ac_ct_CC=$CC
3809 for ac_prog in cl.exe
3810 do
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy $ac_prog; ac_word=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3816 $as_echo_n "(cached) " >&6
3817 else
3818 if test -n "$ac_ct_CC"; then
3819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_prog_ac_ct_CC="$ac_prog"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 break 2
3831 fi
3832 done
3833 done
3834 IFS=$as_save_IFS
3835
3836 fi
3837 fi
3838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3839 if test -n "$ac_ct_CC"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3841 $as_echo "$ac_ct_CC" >&6; }
3842 else
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3845 fi
3846
3847
3848 test -n "$ac_ct_CC" && break
3849 done
3850
3851 if test "x$ac_ct_CC" = x; then
3852 CC=""
3853 else
3854 case $cross_compiling:$ac_tool_warned in
3855 yes:)
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3858 ac_tool_warned=yes ;;
3859 esac
3860 CC=$ac_ct_CC
3861 fi
3862 fi
3863
3864 fi
3865
3866
3867 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869 as_fn_error $? "no acceptable C compiler found in \$PATH
3870 See \`config.log' for more details" "$LINENO" 5; }
3871
3872 # Provide some information about the compiler.
3873 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3874 set X $ac_compile
3875 ac_compiler=$2
3876 for ac_option in --version -v -V -qversion; do
3877 { { ac_try="$ac_compiler $ac_option >&5"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 $as_echo "$ac_try_echo"; } >&5
3884 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3885 ac_status=$?
3886 if test -s conftest.err; then
3887 sed '10a\
3888 ... rest of stderr output deleted ...
3889 10q' conftest.err >conftest.er1
3890 cat conftest.er1 >&5
3891 fi
3892 rm -f conftest.er1 conftest.err
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }
3895 done
3896
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3899
3900 int
3901 main ()
3902 {
3903
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 ac_clean_files_save=$ac_clean_files
3909 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3910 # Try to create an executable without -o first, disregard a.out.
3911 # It will help us diagnose broken compilers, and finding out an intuition
3912 # of exeext.
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3914 $as_echo_n "checking whether the C compiler works... " >&6; }
3915 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3916
3917 # The possible output files:
3918 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3919
3920 ac_rmfiles=
3921 for ac_file in $ac_files
3922 do
3923 case $ac_file in
3924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3925 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3926 esac
3927 done
3928 rm -f $ac_rmfiles
3929
3930 if { { ac_try="$ac_link_default"
3931 case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937 (eval "$ac_link_default") 2>&5
3938 ac_status=$?
3939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }; then :
3941 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3942 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3943 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3944 # so that the user can short-circuit this test for compilers unknown to
3945 # Autoconf.
3946 for ac_file in $ac_files ''
3947 do
3948 test -f "$ac_file" || continue
3949 case $ac_file in
3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3951 ;;
3952 [ab].out )
3953 # We found the default executable, but exeext='' is most
3954 # certainly right.
3955 break;;
3956 *.* )
3957 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3958 then :; else
3959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960 fi
3961 # We set ac_cv_exeext here because the later test for it is not
3962 # safe: cross compilers may not add the suffix if given an `-o'
3963 # argument, so we may need to know it at that point already.
3964 # Even if this section looks crufty: it has the advantage of
3965 # actually working.
3966 break;;
3967 * )
3968 break;;
3969 esac
3970 done
3971 test "$ac_cv_exeext" = no && ac_cv_exeext=
3972
3973 else
3974 ac_file=''
3975 fi
3976 if test -z "$ac_file"; then :
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3979 $as_echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 as_fn_error 77 "C compiler cannot create executables
3985 See \`config.log' for more details" "$LINENO" 5; }
3986 else
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3988 $as_echo "yes" >&6; }
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3991 $as_echo_n "checking for C compiler default output file name... " >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3993 $as_echo "$ac_file" >&6; }
3994 ac_exeext=$ac_cv_exeext
3995
3996 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3997 ac_clean_files=$ac_clean_files_save
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3999 $as_echo_n "checking for suffix of executables... " >&6; }
4000 if { { ac_try="$ac_link"
4001 case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007 (eval "$ac_link") 2>&5
4008 ac_status=$?
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }; then :
4011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4012 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4013 # work properly (i.e., refer to `conftest.exe'), while it won't with
4014 # `rm'.
4015 for ac_file in conftest.exe conftest conftest.*; do
4016 test -f "$ac_file" || continue
4017 case $ac_file in
4018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4020 break;;
4021 * ) break;;
4022 esac
4023 done
4024 else
4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4028 See \`config.log' for more details" "$LINENO" 5; }
4029 fi
4030 rm -f conftest conftest$ac_cv_exeext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4032 $as_echo "$ac_cv_exeext" >&6; }
4033
4034 rm -f conftest.$ac_ext
4035 EXEEXT=$ac_cv_exeext
4036 ac_exeext=$EXEEXT
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4039 #include <stdio.h>
4040 int
4041 main ()
4042 {
4043 FILE *f = fopen ("conftest.out", "w");
4044 return ferror (f) || fclose (f) != 0;
4045
4046 ;
4047 return 0;
4048 }
4049 _ACEOF
4050 ac_clean_files="$ac_clean_files conftest.out"
4051 # Check that the compiler produces executables we can run. If not, either
4052 # the compiler is broken, or we cross compile.
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4054 $as_echo_n "checking whether we are cross compiling... " >&6; }
4055 if test "$cross_compiling" != yes; then
4056 { { ac_try="$ac_link"
4057 case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063 (eval "$ac_link") 2>&5
4064 ac_status=$?
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }
4067 if { ac_try='./conftest$ac_cv_exeext'
4068 { { case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 $as_echo "$ac_try_echo"; } >&5
4074 (eval "$ac_try") 2>&5
4075 ac_status=$?
4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }; }; then
4078 cross_compiling=no
4079 else
4080 if test "$cross_compiling" = maybe; then
4081 cross_compiling=yes
4082 else
4083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error $? "cannot run C compiled programs.
4086 If you meant to cross compile, use \`--host'.
4087 See \`config.log' for more details" "$LINENO" 5; }
4088 fi
4089 fi
4090 fi
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4092 $as_echo "$cross_compiling" >&6; }
4093
4094 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4095 ac_clean_files=$ac_clean_files_save
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4097 $as_echo_n "checking for suffix of object files... " >&6; }
4098 if ${ac_cv_objext+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103
4104 int
4105 main ()
4106 {
4107
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 rm -f conftest.o conftest.obj
4113 if { { ac_try="$ac_compile"
4114 case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117 esac
4118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4119 $as_echo "$ac_try_echo"; } >&5
4120 (eval "$ac_compile") 2>&5
4121 ac_status=$?
4122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4123 test $ac_status = 0; }; then :
4124 for ac_file in conftest.o conftest.obj conftest.*; do
4125 test -f "$ac_file" || continue;
4126 case $ac_file in
4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4129 break;;
4130 esac
4131 done
4132 else
4133 $as_echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4135
4136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4138 as_fn_error $? "cannot compute suffix of object files: cannot compile
4139 See \`config.log' for more details" "$LINENO" 5; }
4140 fi
4141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4144 $as_echo "$ac_cv_objext" >&6; }
4145 OBJEXT=$ac_cv_objext
4146 ac_objext=$OBJEXT
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4148 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4149 if ${ac_cv_c_compiler_gnu+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154
4155 int
4156 main ()
4157 {
4158 #ifndef __GNUC__
4159 choke me
4160 #endif
4161
4162 ;
4163 return 0;
4164 }
4165 _ACEOF
4166 if ac_fn_c_try_compile "$LINENO"; then :
4167 ac_compiler_gnu=yes
4168 else
4169 ac_compiler_gnu=no
4170 fi
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4173
4174 fi
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4176 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4177 if test $ac_compiler_gnu = yes; then
4178 GCC=yes
4179 else
4180 GCC=
4181 fi
4182 ac_test_CFLAGS=${CFLAGS+set}
4183 ac_save_CFLAGS=$CFLAGS
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4185 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4186 if ${ac_cv_prog_cc_g+:} false; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 ac_save_c_werror_flag=$ac_c_werror_flag
4190 ac_c_werror_flag=yes
4191 ac_cv_prog_cc_g=no
4192 CFLAGS="-g"
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195
4196 int
4197 main ()
4198 {
4199
4200 ;
4201 return 0;
4202 }
4203 _ACEOF
4204 if ac_fn_c_try_compile "$LINENO"; then :
4205 ac_cv_prog_cc_g=yes
4206 else
4207 CFLAGS=""
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210
4211 int
4212 main ()
4213 {
4214
4215 ;
4216 return 0;
4217 }
4218 _ACEOF
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220
4221 else
4222 ac_c_werror_flag=$ac_save_c_werror_flag
4223 CFLAGS="-g"
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4226
4227 int
4228 main ()
4229 {
4230
4231 ;
4232 return 0;
4233 }
4234 _ACEOF
4235 if ac_fn_c_try_compile "$LINENO"; then :
4236 ac_cv_prog_cc_g=yes
4237 fi
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 fi
4240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 fi
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 ac_c_werror_flag=$ac_save_c_werror_flag
4244 fi
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4246 $as_echo "$ac_cv_prog_cc_g" >&6; }
4247 if test "$ac_test_CFLAGS" = set; then
4248 CFLAGS=$ac_save_CFLAGS
4249 elif test $ac_cv_prog_cc_g = yes; then
4250 if test "$GCC" = yes; then
4251 CFLAGS="-g -O2"
4252 else
4253 CFLAGS="-g"
4254 fi
4255 else
4256 if test "$GCC" = yes; then
4257 CFLAGS="-O2"
4258 else
4259 CFLAGS=
4260 fi
4261 fi
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4263 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4264 if ${ac_cv_prog_cc_c89+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 ac_cv_prog_cc_c89=no
4268 ac_save_CC=$CC
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4271 #include <stdarg.h>
4272 #include <stdio.h>
4273 struct stat;
4274 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4275 struct buf { int x; };
4276 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4277 static char *e (p, i)
4278 char **p;
4279 int i;
4280 {
4281 return p[i];
4282 }
4283 static char *f (char * (*g) (char **, int), char **p, ...)
4284 {
4285 char *s;
4286 va_list v;
4287 va_start (v,p);
4288 s = g (p, va_arg (v,int));
4289 va_end (v);
4290 return s;
4291 }
4292
4293 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4294 function prototypes and stuff, but not '\xHH' hex character constants.
4295 These don't provoke an error unfortunately, instead are silently treated
4296 as 'x'. The following induces an error, until -std is added to get
4297 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4298 array size at least. It's necessary to write '\x00'==0 to get something
4299 that's true only with -std. */
4300 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4301
4302 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4303 inside strings and character constants. */
4304 #define FOO(x) 'x'
4305 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4306
4307 int test (int i, double x);
4308 struct s1 {int (*f) (int a);};
4309 struct s2 {int (*f) (double a);};
4310 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4311 int argc;
4312 char **argv;
4313 int
4314 main ()
4315 {
4316 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4322 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4323 do
4324 CC="$ac_save_CC $ac_arg"
4325 if ac_fn_c_try_compile "$LINENO"; then :
4326 ac_cv_prog_cc_c89=$ac_arg
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext
4329 test "x$ac_cv_prog_cc_c89" != "xno" && break
4330 done
4331 rm -f conftest.$ac_ext
4332 CC=$ac_save_CC
4333
4334 fi
4335 # AC_CACHE_VAL
4336 case "x$ac_cv_prog_cc_c89" in
4337 x)
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4339 $as_echo "none needed" >&6; } ;;
4340 xno)
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4342 $as_echo "unsupported" >&6; } ;;
4343 *)
4344 CC="$CC $ac_cv_prog_cc_c89"
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4346 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4347 esac
4348 if test "x$ac_cv_prog_cc_c89" != xno; then :
4349
4350 fi
4351
4352 ac_ext=c
4353 ac_cpp='$CPP $CPPFLAGS'
4354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357
4358 ac_ext=c
4359 ac_cpp='$CPP $CPPFLAGS'
4360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4364 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4365 if ${am_cv_prog_cc_c_o+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370
4371 int
4372 main ()
4373 {
4374
4375 ;
4376 return 0;
4377 }
4378 _ACEOF
4379 # Make sure it works both with $CC and with simple cc.
4380 # Following AC_PROG_CC_C_O, we do the test twice because some
4381 # compilers refuse to overwrite an existing .o file with -o,
4382 # though they will create one.
4383 am_cv_prog_cc_c_o=yes
4384 for am_i in 1 2; do
4385 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4386 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } \
4390 && test -f conftest2.$ac_objext; then
4391 : OK
4392 else
4393 am_cv_prog_cc_c_o=no
4394 break
4395 fi
4396 done
4397 rm -f core conftest*
4398 unset am_i
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4401 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4402 if test "$am_cv_prog_cc_c_o" != yes; then
4403 # Losing compiler, so override with the script.
4404 # FIXME: It is wrong to rewrite CC.
4405 # But if we don't then we get into trouble of one sort or another.
4406 # A longer-term fix would be to have automake use am__CC in this case,
4407 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4408 CC="$am_aux_dir/compile $CC"
4409 fi
4410 ac_ext=c
4411 ac_cpp='$CPP $CPPFLAGS'
4412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415
4416
4417 depcc="$CC" am_compiler_list=
4418
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4420 $as_echo_n "checking dependency style of $depcc... " >&6; }
4421 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4425 # We make a subdir and do the tests there. Otherwise we can end up
4426 # making bogus files that we don't know about and never remove. For
4427 # instance it was reported that on HP-UX the gcc test will end up
4428 # making a dummy file named 'D' -- because '-MD' means "put the output
4429 # in D".
4430 rm -rf conftest.dir
4431 mkdir conftest.dir
4432 # Copy depcomp to subdir because otherwise we won't find it if we're
4433 # using a relative directory.
4434 cp "$am_depcomp" conftest.dir
4435 cd conftest.dir
4436 # We will build objects and dependencies in a subdirectory because
4437 # it helps to detect inapplicable dependency modes. For instance
4438 # both Tru64's cc and ICC support -MD to output dependencies as a
4439 # side effect of compilation, but ICC will put the dependencies in
4440 # the current directory while Tru64 will put them in the object
4441 # directory.
4442 mkdir sub
4443
4444 am_cv_CC_dependencies_compiler_type=none
4445 if test "$am_compiler_list" = ""; then
4446 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4447 fi
4448 am__universal=false
4449 case " $depcc " in #(
4450 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4451 esac
4452
4453 for depmode in $am_compiler_list; do
4454 # Setup a source with many dependencies, because some compilers
4455 # like to wrap large dependency lists on column 80 (with \), and
4456 # we should not choose a depcomp mode which is confused by this.
4457 #
4458 # We need to recreate these files for each test, as the compiler may
4459 # overwrite some of them when testing with obscure command lines.
4460 # This happens at least with the AIX C compiler.
4461 : > sub/conftest.c
4462 for i in 1 2 3 4 5 6; do
4463 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4464 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4465 # Solaris 10 /bin/sh.
4466 echo '/* dummy */' > sub/conftst$i.h
4467 done
4468 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4469
4470 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4471 # mode. It turns out that the SunPro C++ compiler does not properly
4472 # handle '-M -o', and we need to detect this. Also, some Intel
4473 # versions had trouble with output in subdirs.
4474 am__obj=sub/conftest.${OBJEXT-o}
4475 am__minus_obj="-o $am__obj"
4476 case $depmode in
4477 gcc)
4478 # This depmode causes a compiler race in universal mode.
4479 test "$am__universal" = false || continue
4480 ;;
4481 nosideeffect)
4482 # After this tag, mechanisms are not by side-effect, so they'll
4483 # only be used when explicitly requested.
4484 if test "x$enable_dependency_tracking" = xyes; then
4485 continue
4486 else
4487 break
4488 fi
4489 ;;
4490 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4491 # This compiler won't grok '-c -o', but also, the minuso test has
4492 # not run yet. These depmodes are late enough in the game, and
4493 # so weak that their functioning should not be impacted.
4494 am__obj=conftest.${OBJEXT-o}
4495 am__minus_obj=
4496 ;;
4497 none) break ;;
4498 esac
4499 if depmode=$depmode \
4500 source=sub/conftest.c object=$am__obj \
4501 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4502 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4503 >/dev/null 2>conftest.err &&
4504 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4505 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4506 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4507 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4508 # icc doesn't choke on unknown options, it will just issue warnings
4509 # or remarks (even with -Werror). So we grep stderr for any message
4510 # that says an option was ignored or not supported.
4511 # When given -MP, icc 7.0 and 7.1 complain thusly:
4512 # icc: Command line warning: ignoring option '-M'; no argument required
4513 # The diagnosis changed in icc 8.0:
4514 # icc: Command line remark: option '-MP' not supported
4515 if (grep 'ignoring option' conftest.err ||
4516 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4517 am_cv_CC_dependencies_compiler_type=$depmode
4518 break
4519 fi
4520 fi
4521 done
4522
4523 cd ..
4524 rm -rf conftest.dir
4525 else
4526 am_cv_CC_dependencies_compiler_type=none
4527 fi
4528
4529 fi
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4531 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4532 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4533
4534 if
4535 test "x$enable_dependency_tracking" != xno \
4536 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4537 am__fastdepCC_TRUE=
4538 am__fastdepCC_FALSE='#'
4539 else
4540 am__fastdepCC_TRUE='#'
4541 am__fastdepCC_FALSE=
4542 fi
4543
4544
4545
4546 ac_ext=c
4547 ac_cpp='$CPP $CPPFLAGS'
4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4552 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4553 # On Suns, sometimes $CPP names a directory.
4554 if test -n "$CPP" && test -d "$CPP"; then
4555 CPP=
4556 fi
4557 if test -z "$CPP"; then
4558 if ${ac_cv_prog_CPP+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 # Double quotes because CPP needs to be expanded
4562 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4563 do
4564 ac_preproc_ok=false
4565 for ac_c_preproc_warn_flag in '' yes
4566 do
4567 # Use a header file that comes with gcc, so configuring glibc
4568 # with a fresh cross-compiler works.
4569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4570 # <limits.h> exists even on freestanding compilers.
4571 # On the NeXT, cc -E runs the code through the compiler's parser,
4572 # not just through cpp. "Syntax error" is here to catch this case.
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #ifdef __STDC__
4576 # include <limits.h>
4577 #else
4578 # include <assert.h>
4579 #endif
4580 Syntax error
4581 _ACEOF
4582 if ac_fn_c_try_cpp "$LINENO"; then :
4583
4584 else
4585 # Broken: fails on valid input.
4586 continue
4587 fi
4588 rm -f conftest.err conftest.i conftest.$ac_ext
4589
4590 # OK, works on sane cases. Now check whether nonexistent headers
4591 # can be detected and how.
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4594 #include <ac_nonexistent.h>
4595 _ACEOF
4596 if ac_fn_c_try_cpp "$LINENO"; then :
4597 # Broken: success on invalid input.
4598 continue
4599 else
4600 # Passes both tests.
4601 ac_preproc_ok=:
4602 break
4603 fi
4604 rm -f conftest.err conftest.i conftest.$ac_ext
4605
4606 done
4607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4608 rm -f conftest.i conftest.err conftest.$ac_ext
4609 if $ac_preproc_ok; then :
4610 break
4611 fi
4612
4613 done
4614 ac_cv_prog_CPP=$CPP
4615
4616 fi
4617 CPP=$ac_cv_prog_CPP
4618 else
4619 ac_cv_prog_CPP=$CPP
4620 fi
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4622 $as_echo "$CPP" >&6; }
4623 ac_preproc_ok=false
4624 for ac_c_preproc_warn_flag in '' yes
4625 do
4626 # Use a header file that comes with gcc, so configuring glibc
4627 # with a fresh cross-compiler works.
4628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4629 # <limits.h> exists even on freestanding compilers.
4630 # On the NeXT, cc -E runs the code through the compiler's parser,
4631 # not just through cpp. "Syntax error" is here to catch this case.
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4634 #ifdef __STDC__
4635 # include <limits.h>
4636 #else
4637 # include <assert.h>
4638 #endif
4639 Syntax error
4640 _ACEOF
4641 if ac_fn_c_try_cpp "$LINENO"; then :
4642
4643 else
4644 # Broken: fails on valid input.
4645 continue
4646 fi
4647 rm -f conftest.err conftest.i conftest.$ac_ext
4648
4649 # OK, works on sane cases. Now check whether nonexistent headers
4650 # can be detected and how.
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4653 #include <ac_nonexistent.h>
4654 _ACEOF
4655 if ac_fn_c_try_cpp "$LINENO"; then :
4656 # Broken: success on invalid input.
4657 continue
4658 else
4659 # Passes both tests.
4660 ac_preproc_ok=:
4661 break
4662 fi
4663 rm -f conftest.err conftest.i conftest.$ac_ext
4664
4665 done
4666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4667 rm -f conftest.i conftest.err conftest.$ac_ext
4668 if $ac_preproc_ok; then :
4669
4670 else
4671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4673 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4674 See \`config.log' for more details" "$LINENO" 5; }
4675 fi
4676
4677 ac_ext=c
4678 ac_cpp='$CPP $CPPFLAGS'
4679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4682
4683
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4685 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4686 if ${ac_cv_path_GREP+:} false; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 if test -z "$GREP"; then
4690 ac_path_GREP_found=false
4691 # Loop through the user's path and test for each of PROGNAME-LIST
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4694 do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_prog in grep ggrep; do
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4700 as_fn_executable_p "$ac_path_GREP" || continue
4701 # Check for GNU ac_path_GREP and select it if it is found.
4702 # Check for GNU $ac_path_GREP
4703 case `"$ac_path_GREP" --version 2>&1` in
4704 *GNU*)
4705 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4706 *)
4707 ac_count=0
4708 $as_echo_n 0123456789 >"conftest.in"
4709 while :
4710 do
4711 cat "conftest.in" "conftest.in" >"conftest.tmp"
4712 mv "conftest.tmp" "conftest.in"
4713 cp "conftest.in" "conftest.nl"
4714 $as_echo 'GREP' >> "conftest.nl"
4715 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4716 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4717 as_fn_arith $ac_count + 1 && ac_count=$as_val
4718 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4719 # Best one so far, save it but keep looking for a better one
4720 ac_cv_path_GREP="$ac_path_GREP"
4721 ac_path_GREP_max=$ac_count
4722 fi
4723 # 10*(2^10) chars as input seems more than enough
4724 test $ac_count -gt 10 && break
4725 done
4726 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4727 esac
4728
4729 $ac_path_GREP_found && break 3
4730 done
4731 done
4732 done
4733 IFS=$as_save_IFS
4734 if test -z "$ac_cv_path_GREP"; then
4735 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736 fi
4737 else
4738 ac_cv_path_GREP=$GREP
4739 fi
4740
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4743 $as_echo "$ac_cv_path_GREP" >&6; }
4744 GREP="$ac_cv_path_GREP"
4745
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4748 $as_echo_n "checking for egrep... " >&6; }
4749 if ${ac_cv_path_EGREP+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4753 then ac_cv_path_EGREP="$GREP -E"
4754 else
4755 if test -z "$EGREP"; then
4756 ac_path_EGREP_found=false
4757 # Loop through the user's path and test for each of PROGNAME-LIST
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4760 do
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
4763 for ac_prog in egrep; do
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4766 as_fn_executable_p "$ac_path_EGREP" || continue
4767 # Check for GNU ac_path_EGREP and select it if it is found.
4768 # Check for GNU $ac_path_EGREP
4769 case `"$ac_path_EGREP" --version 2>&1` in
4770 *GNU*)
4771 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4772 *)
4773 ac_count=0
4774 $as_echo_n 0123456789 >"conftest.in"
4775 while :
4776 do
4777 cat "conftest.in" "conftest.in" >"conftest.tmp"
4778 mv "conftest.tmp" "conftest.in"
4779 cp "conftest.in" "conftest.nl"
4780 $as_echo 'EGREP' >> "conftest.nl"
4781 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4783 as_fn_arith $ac_count + 1 && ac_count=$as_val
4784 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4785 # Best one so far, save it but keep looking for a better one
4786 ac_cv_path_EGREP="$ac_path_EGREP"
4787 ac_path_EGREP_max=$ac_count
4788 fi
4789 # 10*(2^10) chars as input seems more than enough
4790 test $ac_count -gt 10 && break
4791 done
4792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4793 esac
4794
4795 $ac_path_EGREP_found && break 3
4796 done
4797 done
4798 done
4799 IFS=$as_save_IFS
4800 if test -z "$ac_cv_path_EGREP"; then
4801 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4802 fi
4803 else
4804 ac_cv_path_EGREP=$EGREP
4805 fi
4806
4807 fi
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4810 $as_echo "$ac_cv_path_EGREP" >&6; }
4811 EGREP="$ac_cv_path_EGREP"
4812
4813
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4815 $as_echo_n "checking for ANSI C header files... " >&6; }
4816 if ${ac_cv_header_stdc+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821 #include <stdlib.h>
4822 #include <stdarg.h>
4823 #include <string.h>
4824 #include <float.h>
4825
4826 int
4827 main ()
4828 {
4829
4830 ;
4831 return 0;
4832 }
4833 _ACEOF
4834 if ac_fn_c_try_compile "$LINENO"; then :
4835 ac_cv_header_stdc=yes
4836 else
4837 ac_cv_header_stdc=no
4838 fi
4839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840
4841 if test $ac_cv_header_stdc = yes; then
4842 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845 #include <string.h>
4846
4847 _ACEOF
4848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4849 $EGREP "memchr" >/dev/null 2>&1; then :
4850
4851 else
4852 ac_cv_header_stdc=no
4853 fi
4854 rm -f conftest*
4855
4856 fi
4857
4858 if test $ac_cv_header_stdc = yes; then
4859 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862 #include <stdlib.h>
4863
4864 _ACEOF
4865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4866 $EGREP "free" >/dev/null 2>&1; then :
4867
4868 else
4869 ac_cv_header_stdc=no
4870 fi
4871 rm -f conftest*
4872
4873 fi
4874
4875 if test $ac_cv_header_stdc = yes; then
4876 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4877 if test "$cross_compiling" = yes; then :
4878 :
4879 else
4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h. */
4882 #include <ctype.h>
4883 #include <stdlib.h>
4884 #if ((' ' & 0x0FF) == 0x020)
4885 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4886 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4887 #else
4888 # define ISLOWER(c) \
4889 (('a' <= (c) && (c) <= 'i') \
4890 || ('j' <= (c) && (c) <= 'r') \
4891 || ('s' <= (c) && (c) <= 'z'))
4892 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4893 #endif
4894
4895 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4896 int
4897 main ()
4898 {
4899 int i;
4900 for (i = 0; i < 256; i++)
4901 if (XOR (islower (i), ISLOWER (i))
4902 || toupper (i) != TOUPPER (i))
4903 return 2;
4904 return 0;
4905 }
4906 _ACEOF
4907 if ac_fn_c_try_run "$LINENO"; then :
4908
4909 else
4910 ac_cv_header_stdc=no
4911 fi
4912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4913 conftest.$ac_objext conftest.beam conftest.$ac_ext
4914 fi
4915
4916 fi
4917 fi
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4919 $as_echo "$ac_cv_header_stdc" >&6; }
4920 if test $ac_cv_header_stdc = yes; then
4921
4922 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4923
4924 fi
4925
4926 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4927 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4928 inttypes.h stdint.h unistd.h
4929 do :
4930 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4931 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4932 "
4933 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4934 cat >>confdefs.h <<_ACEOF
4935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4936 _ACEOF
4937
4938 fi
4939
4940 done
4941
4942
4943
4944 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4945 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4946 MINIX=yes
4947 else
4948 MINIX=
4949 fi
4950
4951
4952 if test "$MINIX" = yes; then
4953
4954 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4955
4956
4957 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4958
4959
4960 $as_echo "#define _MINIX 1" >>confdefs.h
4961
4962 fi
4963
4964
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4966 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4967 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4972
4973 # define __EXTENSIONS__ 1
4974 $ac_includes_default
4975 int
4976 main ()
4977 {
4978
4979 ;
4980 return 0;
4981 }
4982 _ACEOF
4983 if ac_fn_c_try_compile "$LINENO"; then :
4984 ac_cv_safe_to_define___extensions__=yes
4985 else
4986 ac_cv_safe_to_define___extensions__=no
4987 fi
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4991 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4992 test $ac_cv_safe_to_define___extensions__ = yes &&
4993 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4994
4995 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4996
4997 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4998
4999 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5000
5001 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5002
5003
5004
5005 # PR 14072
5006
5007
5008
5009 # Check whether --with-sysroot was given.
5010 if test "${with_sysroot+set}" = set; then :
5011 withval=$with_sysroot; sysroot=$withval
5012 else
5013 sysroot=no
5014 fi
5015
5016
5017 if test "$sysroot" = "yes"; then
5018 sysroot='${exec_prefix}/${target_alias}/sys-root'
5019 elif test "$sysroot" = "no"; then
5020 sysroot=
5021 fi
5022
5023 sysroot_relocatable=0
5024 if test -n "$sysroot"; then
5025 case "$sysroot" in
5026 "${prefix}" | "${prefix}/"* | \
5027 "${exec_prefix}" | "${exec_prefix}/"* | \
5028 '${prefix}' | '${prefix}/'*| \
5029 '${exec_prefix}' | '${exec_prefix}/'*)
5030 sysroot_relocatable=1
5031 ;;
5032 esac
5033 fi
5034
5035
5036 cat >>confdefs.h <<_ACEOF
5037 #define TARGET_SYSTEM_ROOT "$sysroot"
5038 _ACEOF
5039
5040
5041 cat >>confdefs.h <<_ACEOF
5042 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
5043 _ACEOF
5044
5045
5046
5047 installed_linker=ld.gold
5048 # Check whether --enable-gold was given.
5049 if test "${enable_gold+set}" = set; then :
5050 enableval=$enable_gold; case "${enableval}" in
5051 default)
5052 install_as_default=yes
5053 ;;
5054 yes)
5055 if test x${enable_ld} = xno; then
5056 install_as_default=yes
5057 fi
5058 ;;
5059 esac
5060 else
5061 install_as_default=no
5062 fi
5063
5064
5065
5066
5067
5068 maybe_plugins=no
5069 for ac_header in dlfcn.h
5070 do :
5071 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5072 "
5073 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5074 cat >>confdefs.h <<_ACEOF
5075 #define HAVE_DLFCN_H 1
5076 _ACEOF
5077 maybe_plugins=yes
5078 fi
5079
5080 done
5081
5082 for ac_header in windows.h
5083 do :
5084 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5085 "
5086 if test "x$ac_cv_header_windows_h" = xyes; then :
5087 cat >>confdefs.h <<_ACEOF
5088 #define HAVE_WINDOWS_H 1
5089 _ACEOF
5090 maybe_plugins=yes
5091 fi
5092
5093 done
5094
5095
5096 # Check whether --enable-plugins was given.
5097 if test "${enable_plugins+set}" = set; then :
5098 enableval=$enable_plugins; case "${enableval}" in
5099 no) plugins=no ;;
5100 *) plugins=yes
5101 if test "$maybe_plugins" != "yes" ; then
5102 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5103 fi ;;
5104 esac
5105 else
5106 plugins=$maybe_plugins
5107
5108 fi
5109
5110 if test "$plugins" = "yes"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5112 $as_echo_n "checking for library containing dlsym... " >&6; }
5113 if ${ac_cv_search_dlsym+:} false; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 ac_func_search_save_LIBS=$LIBS
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119
5120 /* Override any GCC internal prototype to avoid an error.
5121 Use char because int might match the return type of a GCC
5122 builtin and then its argument prototype would still apply. */
5123 #ifdef __cplusplus
5124 extern "C"
5125 #endif
5126 char dlsym ();
5127 int
5128 main ()
5129 {
5130 return dlsym ();
5131 ;
5132 return 0;
5133 }
5134 _ACEOF
5135 for ac_lib in '' dl; do
5136 if test -z "$ac_lib"; then
5137 ac_res="none required"
5138 else
5139 ac_res=-l$ac_lib
5140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5141 fi
5142 if ac_fn_c_try_link "$LINENO"; then :
5143 ac_cv_search_dlsym=$ac_res
5144 fi
5145 rm -f core conftest.err conftest.$ac_objext \
5146 conftest$ac_exeext
5147 if ${ac_cv_search_dlsym+:} false; then :
5148 break
5149 fi
5150 done
5151 if ${ac_cv_search_dlsym+:} false; then :
5152
5153 else
5154 ac_cv_search_dlsym=no
5155 fi
5156 rm conftest.$ac_ext
5157 LIBS=$ac_func_search_save_LIBS
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5160 $as_echo "$ac_cv_search_dlsym" >&6; }
5161 ac_res=$ac_cv_search_dlsym
5162 if test "$ac_res" != no; then :
5163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5164
5165 fi
5166
5167 fi
5168
5169 if test "$plugins" = "yes"; then
5170
5171 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5172
5173 fi
5174 if test "$plugins" = "yes"; then
5175 PLUGINS_TRUE=
5176 PLUGINS_FALSE='#'
5177 else
5178 PLUGINS_TRUE='#'
5179 PLUGINS_FALSE=
5180 fi
5181
5182
5183 # Decide if -z relro should be enabled in ELF linker by default.
5184 ac_default_ld_z_relro=unset
5185 # Provide a configure time option to override our default.
5186 # Check whether --enable-relro was given.
5187 if test "${enable_relro+set}" = set; then :
5188 enableval=$enable_relro; case "${enableval}" in
5189 yes) ac_default_ld_z_relro=1 ;;
5190 no) ac_default_ld_z_relro=0 ;;
5191 esac
5192 fi
5193 if test "${ac_default_ld_z_relro}" = unset; then
5194 ac_default_ld_z_relro=1
5195 fi
5196
5197 cat >>confdefs.h <<_ACEOF
5198 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
5199 _ACEOF
5200
5201
5202 # Check whether --enable-targets was given.
5203 if test "${enable_targets+set}" = set; then :
5204 enableval=$enable_targets; case "${enableval}" in
5205 yes | "")
5206 as_fn_error $? "--enable-targets option must specify target names or 'all'" "$LINENO" 5
5207 ;;
5208 no)
5209 enable_targets=
5210 ;;
5211 *)
5212 enable_targets=$enableval
5213 ;;
5214 esac
5215 else
5216 # For now, enable all targets by default
5217 enable_targets=all
5218
5219 fi
5220
5221
5222 # Canonicalize the enabled targets.
5223 if test -n "$enable_targets"; then
5224 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
5225 result=`$ac_config_sub $targ 2>/dev/null`
5226 if test -n "$result"; then
5227 canon_targets="$canon_targets $result"
5228 else
5229 # Permit unrecognized target names, like "all".
5230 canon_targets="$canon_targets $targ"
5231 fi
5232 done
5233 fi
5234
5235 # Decide which "--hash-style" to use by default
5236 # Provide a configure time option to override our default.
5237 # Check whether --enable-default-hash-style was given.
5238 if test "${enable_default_hash_style+set}" = set; then :
5239 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
5240 sysv | gnu | both) ;;
5241 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
5242 esac
5243 else
5244 case "${target}" in
5245 # Enable gnu hash only on GNU targets, but not mips
5246 mips*-*-*) enable_default_hash_style=sysv ;;
5247 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
5248 *) enable_default_hash_style=sysv ;;
5249 esac
5250 fi
5251
5252
5253
5254 cat >>confdefs.h <<_ACEOF
5255 #define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
5256 _ACEOF
5257
5258
5259 # See which specific instantiations we need.
5260 targetobjs=
5261 all_targets=
5262 default_machine=
5263 default_size=
5264 default_big_endian=
5265 default_osabi=ELFOSABI_NONE
5266 targ_32_little=
5267 targ_32_big=
5268 targ_64_little=
5269 targ_64_big=
5270 for targ in $target $canon_targets; do
5271 if test "$targ" = "all"; then
5272 targ_32_little=yes
5273 targ_32_big=yes
5274 targ_64_little=yes
5275 targ_64_big=yes
5276 all_targets=yes
5277 else
5278 . ${srcdir}/configure.tgt
5279
5280 if test "$targ_obj" = "UNKNOWN"; then
5281 as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
5282 else
5283 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
5284 if test "$targ_extra_obj" != ""; then
5285 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5286 fi
5287 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5288 if test "$targ_big_endian" = "true" \
5289 -o "$targ_extra_big_endian" = "true"; then
5290 targ_32_big=yes
5291 fi
5292 if test "$targ_big_endian" = "false" \
5293 -o "$targ_extra_big_endian" = "false"; then
5294 targ_32_little=yes
5295 fi
5296 fi
5297 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5298 if test "$targ_big_endian" = "true" \
5299 -o "$targ_extra_big_endian" = "true"; then
5300 targ_64_big=yes
5301 fi
5302 if test "$targ_big_endian" = "false" \
5303 -o "$targ_extra_big_endian" = "false"; then
5304 targ_64_little=yes
5305 fi
5306 fi
5307
5308 if test "$target" = "$targ"; then
5309 default_machine=$targ_machine
5310 default_size=$targ_size
5311 default_big_endian=$targ_big_endian
5312 default_osabi=$targ_osabi
5313
5314 if test "$targ_obj" = "aarch64"; then
5315 DEFAULT_TARGET_AARCH64_TRUE=
5316 DEFAULT_TARGET_AARCH64_FALSE='#'
5317 else
5318 DEFAULT_TARGET_AARCH64_TRUE='#'
5319 DEFAULT_TARGET_AARCH64_FALSE=
5320 fi
5321
5322 if test "$targ_obj" = "arm"; then
5323 DEFAULT_TARGET_ARM_TRUE=
5324 DEFAULT_TARGET_ARM_FALSE='#'
5325 else
5326 DEFAULT_TARGET_ARM_TRUE='#'
5327 DEFAULT_TARGET_ARM_FALSE=
5328 fi
5329
5330 if test "$targ_obj" = "i386"; then
5331 DEFAULT_TARGET_I386_TRUE=
5332 DEFAULT_TARGET_I386_FALSE='#'
5333 else
5334 DEFAULT_TARGET_I386_TRUE='#'
5335 DEFAULT_TARGET_I386_FALSE=
5336 fi
5337
5338 if test "$targ_obj" = "powerpc"; then
5339 DEFAULT_TARGET_POWERPC_TRUE=
5340 DEFAULT_TARGET_POWERPC_FALSE='#'
5341 else
5342 DEFAULT_TARGET_POWERPC_TRUE='#'
5343 DEFAULT_TARGET_POWERPC_FALSE=
5344 fi
5345
5346 if test "$targ_obj" = "sparc"; then
5347 DEFAULT_TARGET_SPARC_TRUE=
5348 DEFAULT_TARGET_SPARC_FALSE='#'
5349 else
5350 DEFAULT_TARGET_SPARC_TRUE='#'
5351 DEFAULT_TARGET_SPARC_FALSE=
5352 fi
5353
5354 if test "$targ_obj" = "s390"; then
5355 DEFAULT_TARGET_S390_TRUE=
5356 DEFAULT_TARGET_S390_FALSE='#'
5357 else
5358 DEFAULT_TARGET_S390_TRUE='#'
5359 DEFAULT_TARGET_S390_FALSE=
5360 fi
5361
5362 target_x86_64=no
5363 target_x32=no
5364 if test "$targ_obj" = "x86_64"; then
5365 case "$target" in
5366 x86_64*-linux-gnux32)
5367 target_x32=yes
5368 default_size=32
5369 ;;
5370 *)
5371 target_x86_64=yes
5372 ;;
5373 esac
5374 fi
5375 if test "$target_x86_64" = "yes"; then
5376 DEFAULT_TARGET_X86_64_TRUE=
5377 DEFAULT_TARGET_X86_64_FALSE='#'
5378 else
5379 DEFAULT_TARGET_X86_64_TRUE='#'
5380 DEFAULT_TARGET_X86_64_FALSE=
5381 fi
5382
5383 if test "$target_x32" = "yes"; then
5384 DEFAULT_TARGET_X32_TRUE=
5385 DEFAULT_TARGET_X32_FALSE='#'
5386 else
5387 DEFAULT_TARGET_X32_TRUE='#'
5388 DEFAULT_TARGET_X32_FALSE=
5389 fi
5390
5391 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5392 DEFAULT_TARGET_X86_64_OR_X32_TRUE=
5393 DEFAULT_TARGET_X86_64_OR_X32_FALSE='#'
5394 else
5395 DEFAULT_TARGET_X86_64_OR_X32_TRUE='#'
5396 DEFAULT_TARGET_X86_64_OR_X32_FALSE=
5397 fi
5398
5399 if test "$targ_obj" = "tilegx"; then
5400 DEFAULT_TARGET_TILEGX_TRUE=
5401 DEFAULT_TARGET_TILEGX_FALSE='#'
5402 else
5403 DEFAULT_TARGET_TILEGX_TRUE='#'
5404 DEFAULT_TARGET_TILEGX_FALSE=
5405 fi
5406
5407 if test "$targ_obj" = "mips"; then
5408 DEFAULT_TARGET_MIPS_TRUE=
5409 DEFAULT_TARGET_MIPS_FALSE='#'
5410 else
5411 DEFAULT_TARGET_MIPS_TRUE='#'
5412 DEFAULT_TARGET_MIPS_FALSE=
5413 fi
5414
5415 DEFAULT_TARGET=${targ_obj}
5416
5417 fi
5418 fi
5419 fi
5420 done
5421
5422 # Remove any duplicates.
5423 to=""
5424 for t in $targetobjs; do
5425 case " $to " in
5426 *" $t "*) ;;
5427 *) to="$to $t" ;;
5428 esac
5429 done
5430 targetobjs=$to
5431
5432 if test -n "$targ_32_little"; then
5433
5434 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
5435
5436 fi
5437 if test -n "$targ_32_big"; then
5438
5439 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
5440
5441 fi
5442 if test -n "$targ_64_little"; then
5443
5444 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
5445
5446 fi
5447 if test -n "$targ_64_big"; then
5448
5449 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
5450
5451 fi
5452
5453 if test -n "$all_targets"; then
5454 TARGETOBJS='$(ALL_TARGETOBJS)'
5455 else
5456 TARGETOBJS="$targetobjs"
5457 fi
5458
5459
5460
5461 cat >>confdefs.h <<_ACEOF
5462 #define GOLD_DEFAULT_MACHINE $default_machine
5463 _ACEOF
5464
5465
5466 cat >>confdefs.h <<_ACEOF
5467 #define GOLD_DEFAULT_SIZE $default_size
5468 _ACEOF
5469
5470
5471 cat >>confdefs.h <<_ACEOF
5472 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5473 _ACEOF
5474
5475
5476 cat >>confdefs.h <<_ACEOF
5477 #define GOLD_DEFAULT_OSABI $default_osabi
5478 _ACEOF
5479
5480
5481
5482 # Check whether --with-lib-path was given.
5483 if test "${with_lib_path+set}" = set; then :
5484 withval=$with_lib_path; case "$withval" in
5485 yes) LIB_PATH='"/lib:/usr/lib"' ;;
5486 no) LIB_PATH='""' ;;
5487 *) LIB_PATH='"'"$withval"'"' ;;
5488 esac
5489 else
5490 LIB_PATH='"::DEFAULT::"'
5491 fi
5492
5493
5494 cat >>confdefs.h <<_ACEOF
5495 #define LIB_PATH $LIB_PATH
5496 _ACEOF
5497
5498 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
5499
5500 $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5501
5502 fi
5503
5504 if test -n "$ac_tool_prefix"; then
5505 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5506 set dummy ${ac_tool_prefix}nm; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if ${ac_cv_prog_NM+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 if test -n "$NM"; then
5513 ac_cv_prog_NM="$NM" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522 ac_cv_prog_NM="${ac_tool_prefix}nm"
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5525 fi
5526 done
5527 done
5528 IFS=$as_save_IFS
5529
5530 fi
5531 fi
5532 NM=$ac_cv_prog_NM
5533 if test -n "$NM"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5535 $as_echo "$NM" >&6; }
5536 else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5539 fi
5540
5541
5542 fi
5543 if test -z "$ac_cv_prog_NM"; then
5544 ac_ct_NM=$NM
5545 # Extract the first word of "nm", so it can be a program name with args.
5546 set dummy nm; ac_word=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 if test -n "$ac_ct_NM"; then
5553 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_ac_ct_NM="nm"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 break 2
5565 fi
5566 done
5567 done
5568 IFS=$as_save_IFS
5569
5570 fi
5571 fi
5572 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5573 if test -n "$ac_ct_NM"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5575 $as_echo "$ac_ct_NM" >&6; }
5576 else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5579 fi
5580
5581 if test "x$ac_ct_NM" = x; then
5582 NM=""
5583 else
5584 case $cross_compiling:$ac_tool_warned in
5585 yes:)
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588 ac_tool_warned=yes ;;
5589 esac
5590 NM=$ac_ct_NM
5591 fi
5592 else
5593 NM="$ac_cv_prog_NM"
5594 fi
5595
5596
5597 ac_ext=c
5598 ac_cpp='$CPP $CPPFLAGS'
5599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602 if test -n "$ac_tool_prefix"; then
5603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_prog_CC+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 if test -n "$CC"; then
5611 ac_cv_prog_CC="$CC" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5615 do
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5623 fi
5624 done
5625 done
5626 IFS=$as_save_IFS
5627
5628 fi
5629 fi
5630 CC=$ac_cv_prog_CC
5631 if test -n "$CC"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5633 $as_echo "$CC" >&6; }
5634 else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5637 fi
5638
5639
5640 fi
5641 if test -z "$ac_cv_prog_CC"; then
5642 ac_ct_CC=$CC
5643 # Extract the first word of "gcc", so it can be a program name with args.
5644 set dummy gcc; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 if test -n "$ac_ct_CC"; then
5651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_ac_ct_CC="gcc"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664 done
5665 done
5666 IFS=$as_save_IFS
5667
5668 fi
5669 fi
5670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5671 if test -n "$ac_ct_CC"; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5673 $as_echo "$ac_ct_CC" >&6; }
5674 else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5677 fi
5678
5679 if test "x$ac_ct_CC" = x; then
5680 CC=""
5681 else
5682 case $cross_compiling:$ac_tool_warned in
5683 yes:)
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5686 ac_tool_warned=yes ;;
5687 esac
5688 CC=$ac_ct_CC
5689 fi
5690 else
5691 CC="$ac_cv_prog_CC"
5692 fi
5693
5694 if test -z "$CC"; then
5695 if test -n "$ac_tool_prefix"; then
5696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5697 set dummy ${ac_tool_prefix}cc; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_prog_CC+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if test -n "$CC"; then
5704 ac_cv_prog_CC="$CC" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_prog_CC="${ac_tool_prefix}cc"
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717 done
5718 done
5719 IFS=$as_save_IFS
5720
5721 fi
5722 fi
5723 CC=$ac_cv_prog_CC
5724 if test -n "$CC"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5726 $as_echo "$CC" >&6; }
5727 else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5730 fi
5731
5732
5733 fi
5734 fi
5735 if test -z "$CC"; then
5736 # Extract the first word of "cc", so it can be a program name with args.
5737 set dummy cc; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if ${ac_cv_prog_CC+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 if test -n "$CC"; then
5744 ac_cv_prog_CC="$CC" # Let the user override the test.
5745 else
5746 ac_prog_rejected=no
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750 IFS=$as_save_IFS
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5755 ac_prog_rejected=yes
5756 continue
5757 fi
5758 ac_cv_prog_CC="cc"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762 done
5763 done
5764 IFS=$as_save_IFS
5765
5766 if test $ac_prog_rejected = yes; then
5767 # We found a bogon in the path, so make sure we never use it.
5768 set dummy $ac_cv_prog_CC
5769 shift
5770 if test $# != 0; then
5771 # We chose a different compiler from the bogus one.
5772 # However, it has the same basename, so the bogon will be chosen
5773 # first if we set CC to just the basename; use the full file name.
5774 shift
5775 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5776 fi
5777 fi
5778 fi
5779 fi
5780 CC=$ac_cv_prog_CC
5781 if test -n "$CC"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5783 $as_echo "$CC" >&6; }
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787 fi
5788
5789
5790 fi
5791 if test -z "$CC"; then
5792 if test -n "$ac_tool_prefix"; then
5793 for ac_prog in cl.exe
5794 do
5795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 $as_echo_n "checking for $ac_word... " >&6; }
5799 if ${ac_cv_prog_CC+:} false; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 if test -n "$CC"; then
5803 ac_cv_prog_CC="$CC" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5815 fi
5816 done
5817 done
5818 IFS=$as_save_IFS
5819
5820 fi
5821 fi
5822 CC=$ac_cv_prog_CC
5823 if test -n "$CC"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5825 $as_echo "$CC" >&6; }
5826 else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5829 fi
5830
5831
5832 test -n "$CC" && break
5833 done
5834 fi
5835 if test -z "$CC"; then
5836 ac_ct_CC=$CC
5837 for ac_prog in cl.exe
5838 do
5839 # Extract the first word of "$ac_prog", so it can be a program name with args.
5840 set dummy $ac_prog; ac_word=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 if test -n "$ac_ct_CC"; then
5847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5848 else
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852 IFS=$as_save_IFS
5853 test -z "$as_dir" && as_dir=.
5854 for ac_exec_ext in '' $ac_executable_extensions; do
5855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5856 ac_cv_prog_ac_ct_CC="$ac_prog"
5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 break 2
5859 fi
5860 done
5861 done
5862 IFS=$as_save_IFS
5863
5864 fi
5865 fi
5866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5867 if test -n "$ac_ct_CC"; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5869 $as_echo "$ac_ct_CC" >&6; }
5870 else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5873 fi
5874
5875
5876 test -n "$ac_ct_CC" && break
5877 done
5878
5879 if test "x$ac_ct_CC" = x; then
5880 CC=""
5881 else
5882 case $cross_compiling:$ac_tool_warned in
5883 yes:)
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5886 ac_tool_warned=yes ;;
5887 esac
5888 CC=$ac_ct_CC
5889 fi
5890 fi
5891
5892 fi
5893
5894
5895 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5897 as_fn_error $? "no acceptable C compiler found in \$PATH
5898 See \`config.log' for more details" "$LINENO" 5; }
5899
5900 # Provide some information about the compiler.
5901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5902 set X $ac_compile
5903 ac_compiler=$2
5904 for ac_option in --version -v -V -qversion; do
5905 { { ac_try="$ac_compiler $ac_option >&5"
5906 case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909 esac
5910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5911 $as_echo "$ac_try_echo"; } >&5
5912 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5913 ac_status=$?
5914 if test -s conftest.err; then
5915 sed '10a\
5916 ... rest of stderr output deleted ...
5917 10q' conftest.err >conftest.er1
5918 cat conftest.er1 >&5
5919 fi
5920 rm -f conftest.er1 conftest.err
5921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5922 test $ac_status = 0; }
5923 done
5924
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5926 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5927 if ${ac_cv_c_compiler_gnu+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5932
5933 int
5934 main ()
5935 {
5936 #ifndef __GNUC__
5937 choke me
5938 #endif
5939
5940 ;
5941 return 0;
5942 }
5943 _ACEOF
5944 if ac_fn_c_try_compile "$LINENO"; then :
5945 ac_compiler_gnu=yes
5946 else
5947 ac_compiler_gnu=no
5948 fi
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5951
5952 fi
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5954 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5955 if test $ac_compiler_gnu = yes; then
5956 GCC=yes
5957 else
5958 GCC=
5959 fi
5960 ac_test_CFLAGS=${CFLAGS+set}
5961 ac_save_CFLAGS=$CFLAGS
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5963 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5964 if ${ac_cv_prog_cc_g+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 ac_save_c_werror_flag=$ac_c_werror_flag
5968 ac_c_werror_flag=yes
5969 ac_cv_prog_cc_g=no
5970 CFLAGS="-g"
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973
5974 int
5975 main ()
5976 {
5977
5978 ;
5979 return 0;
5980 }
5981 _ACEOF
5982 if ac_fn_c_try_compile "$LINENO"; then :
5983 ac_cv_prog_cc_g=yes
5984 else
5985 CFLAGS=""
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988
5989 int
5990 main ()
5991 {
5992
5993 ;
5994 return 0;
5995 }
5996 _ACEOF
5997 if ac_fn_c_try_compile "$LINENO"; then :
5998
5999 else
6000 ac_c_werror_flag=$ac_save_c_werror_flag
6001 CFLAGS="-g"
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004
6005 int
6006 main ()
6007 {
6008
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 if ac_fn_c_try_compile "$LINENO"; then :
6014 ac_cv_prog_cc_g=yes
6015 fi
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 fi
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021 ac_c_werror_flag=$ac_save_c_werror_flag
6022 fi
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6024 $as_echo "$ac_cv_prog_cc_g" >&6; }
6025 if test "$ac_test_CFLAGS" = set; then
6026 CFLAGS=$ac_save_CFLAGS
6027 elif test $ac_cv_prog_cc_g = yes; then
6028 if test "$GCC" = yes; then
6029 CFLAGS="-g -O2"
6030 else
6031 CFLAGS="-g"
6032 fi
6033 else
6034 if test "$GCC" = yes; then
6035 CFLAGS="-O2"
6036 else
6037 CFLAGS=
6038 fi
6039 fi
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6041 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6042 if ${ac_cv_prog_cc_c89+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 ac_cv_prog_cc_c89=no
6046 ac_save_CC=$CC
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049 #include <stdarg.h>
6050 #include <stdio.h>
6051 struct stat;
6052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6053 struct buf { int x; };
6054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6055 static char *e (p, i)
6056 char **p;
6057 int i;
6058 {
6059 return p[i];
6060 }
6061 static char *f (char * (*g) (char **, int), char **p, ...)
6062 {
6063 char *s;
6064 va_list v;
6065 va_start (v,p);
6066 s = g (p, va_arg (v,int));
6067 va_end (v);
6068 return s;
6069 }
6070
6071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6072 function prototypes and stuff, but not '\xHH' hex character constants.
6073 These don't provoke an error unfortunately, instead are silently treated
6074 as 'x'. The following induces an error, until -std is added to get
6075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6076 array size at least. It's necessary to write '\x00'==0 to get something
6077 that's true only with -std. */
6078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6079
6080 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6081 inside strings and character constants. */
6082 #define FOO(x) 'x'
6083 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6084
6085 int test (int i, double x);
6086 struct s1 {int (*f) (int a);};
6087 struct s2 {int (*f) (double a);};
6088 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6089 int argc;
6090 char **argv;
6091 int
6092 main ()
6093 {
6094 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6095 ;
6096 return 0;
6097 }
6098 _ACEOF
6099 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6100 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6101 do
6102 CC="$ac_save_CC $ac_arg"
6103 if ac_fn_c_try_compile "$LINENO"; then :
6104 ac_cv_prog_cc_c89=$ac_arg
6105 fi
6106 rm -f core conftest.err conftest.$ac_objext
6107 test "x$ac_cv_prog_cc_c89" != "xno" && break
6108 done
6109 rm -f conftest.$ac_ext
6110 CC=$ac_save_CC
6111
6112 fi
6113 # AC_CACHE_VAL
6114 case "x$ac_cv_prog_cc_c89" in
6115 x)
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6117 $as_echo "none needed" >&6; } ;;
6118 xno)
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6120 $as_echo "unsupported" >&6; } ;;
6121 *)
6122 CC="$CC $ac_cv_prog_cc_c89"
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6124 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6125 esac
6126 if test "x$ac_cv_prog_cc_c89" != xno; then :
6127
6128 fi
6129
6130 ac_ext=c
6131 ac_cpp='$CPP $CPPFLAGS'
6132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6135
6136 ac_ext=c
6137 ac_cpp='$CPP $CPPFLAGS'
6138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6142 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6143 if ${am_cv_prog_cc_c_o+:} false; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6148
6149 int
6150 main ()
6151 {
6152
6153 ;
6154 return 0;
6155 }
6156 _ACEOF
6157 # Make sure it works both with $CC and with simple cc.
6158 # Following AC_PROG_CC_C_O, we do the test twice because some
6159 # compilers refuse to overwrite an existing .o file with -o,
6160 # though they will create one.
6161 am_cv_prog_cc_c_o=yes
6162 for am_i in 1 2; do
6163 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6164 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6165 ac_status=$?
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } \
6168 && test -f conftest2.$ac_objext; then
6169 : OK
6170 else
6171 am_cv_prog_cc_c_o=no
6172 break
6173 fi
6174 done
6175 rm -f core conftest*
6176 unset am_i
6177 fi
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6179 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6180 if test "$am_cv_prog_cc_c_o" != yes; then
6181 # Losing compiler, so override with the script.
6182 # FIXME: It is wrong to rewrite CC.
6183 # But if we don't then we get into trouble of one sort or another.
6184 # A longer-term fix would be to have automake use am__CC in this case,
6185 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6186 CC="$am_aux_dir/compile $CC"
6187 fi
6188 ac_ext=c
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6193
6194
6195 depcc="$CC" am_compiler_list=
6196
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6198 $as_echo_n "checking dependency style of $depcc... " >&6; }
6199 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6203 # We make a subdir and do the tests there. Otherwise we can end up
6204 # making bogus files that we don't know about and never remove. For
6205 # instance it was reported that on HP-UX the gcc test will end up
6206 # making a dummy file named 'D' -- because '-MD' means "put the output
6207 # in D".
6208 rm -rf conftest.dir
6209 mkdir conftest.dir
6210 # Copy depcomp to subdir because otherwise we won't find it if we're
6211 # using a relative directory.
6212 cp "$am_depcomp" conftest.dir
6213 cd conftest.dir
6214 # We will build objects and dependencies in a subdirectory because
6215 # it helps to detect inapplicable dependency modes. For instance
6216 # both Tru64's cc and ICC support -MD to output dependencies as a
6217 # side effect of compilation, but ICC will put the dependencies in
6218 # the current directory while Tru64 will put them in the object
6219 # directory.
6220 mkdir sub
6221
6222 am_cv_CC_dependencies_compiler_type=none
6223 if test "$am_compiler_list" = ""; then
6224 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6225 fi
6226 am__universal=false
6227 case " $depcc " in #(
6228 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6229 esac
6230
6231 for depmode in $am_compiler_list; do
6232 # Setup a source with many dependencies, because some compilers
6233 # like to wrap large dependency lists on column 80 (with \), and
6234 # we should not choose a depcomp mode which is confused by this.
6235 #
6236 # We need to recreate these files for each test, as the compiler may
6237 # overwrite some of them when testing with obscure command lines.
6238 # This happens at least with the AIX C compiler.
6239 : > sub/conftest.c
6240 for i in 1 2 3 4 5 6; do
6241 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6242 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6243 # Solaris 10 /bin/sh.
6244 echo '/* dummy */' > sub/conftst$i.h
6245 done
6246 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6247
6248 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6249 # mode. It turns out that the SunPro C++ compiler does not properly
6250 # handle '-M -o', and we need to detect this. Also, some Intel
6251 # versions had trouble with output in subdirs.
6252 am__obj=sub/conftest.${OBJEXT-o}
6253 am__minus_obj="-o $am__obj"
6254 case $depmode in
6255 gcc)
6256 # This depmode causes a compiler race in universal mode.
6257 test "$am__universal" = false || continue
6258 ;;
6259 nosideeffect)
6260 # After this tag, mechanisms are not by side-effect, so they'll
6261 # only be used when explicitly requested.
6262 if test "x$enable_dependency_tracking" = xyes; then
6263 continue
6264 else
6265 break
6266 fi
6267 ;;
6268 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6269 # This compiler won't grok '-c -o', but also, the minuso test has
6270 # not run yet. These depmodes are late enough in the game, and
6271 # so weak that their functioning should not be impacted.
6272 am__obj=conftest.${OBJEXT-o}
6273 am__minus_obj=
6274 ;;
6275 none) break ;;
6276 esac
6277 if depmode=$depmode \
6278 source=sub/conftest.c object=$am__obj \
6279 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6280 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6281 >/dev/null 2>conftest.err &&
6282 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6283 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6284 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6285 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6286 # icc doesn't choke on unknown options, it will just issue warnings
6287 # or remarks (even with -Werror). So we grep stderr for any message
6288 # that says an option was ignored or not supported.
6289 # When given -MP, icc 7.0 and 7.1 complain thusly:
6290 # icc: Command line warning: ignoring option '-M'; no argument required
6291 # The diagnosis changed in icc 8.0:
6292 # icc: Command line remark: option '-MP' not supported
6293 if (grep 'ignoring option' conftest.err ||
6294 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6295 am_cv_CC_dependencies_compiler_type=$depmode
6296 break
6297 fi
6298 fi
6299 done
6300
6301 cd ..
6302 rm -rf conftest.dir
6303 else
6304 am_cv_CC_dependencies_compiler_type=none
6305 fi
6306
6307 fi
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6309 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6310 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6311
6312 if
6313 test "x$enable_dependency_tracking" != xno \
6314 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6315 am__fastdepCC_TRUE=
6316 am__fastdepCC_FALSE='#'
6317 else
6318 am__fastdepCC_TRUE='#'
6319 am__fastdepCC_FALSE=
6320 fi
6321
6322
6323 ac_ext=cpp
6324 ac_cpp='$CXXCPP $CPPFLAGS'
6325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6328 if test -z "$CXX"; then
6329 if test -n "$CCC"; then
6330 CXX=$CCC
6331 else
6332 if test -n "$ac_tool_prefix"; then
6333 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6334 do
6335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if ${ac_cv_prog_CXX+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 if test -n "$CXX"; then
6343 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348 IFS=$as_save_IFS
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6352 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354 break 2
6355 fi
6356 done
6357 done
6358 IFS=$as_save_IFS
6359
6360 fi
6361 fi
6362 CXX=$ac_cv_prog_CXX
6363 if test -n "$CXX"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6365 $as_echo "$CXX" >&6; }
6366 else
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6369 fi
6370
6371
6372 test -n "$CXX" && break
6373 done
6374 fi
6375 if test -z "$CXX"; then
6376 ac_ct_CXX=$CXX
6377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6378 do
6379 # Extract the first word of "$ac_prog", so it can be a program name with args.
6380 set dummy $ac_prog; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 if test -n "$ac_ct_CXX"; then
6387 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396 ac_cv_prog_ac_ct_CXX="$ac_prog"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6399 fi
6400 done
6401 done
6402 IFS=$as_save_IFS
6403
6404 fi
6405 fi
6406 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6407 if test -n "$ac_ct_CXX"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6409 $as_echo "$ac_ct_CXX" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6413 fi
6414
6415
6416 test -n "$ac_ct_CXX" && break
6417 done
6418
6419 if test "x$ac_ct_CXX" = x; then
6420 CXX="g++"
6421 else
6422 case $cross_compiling:$ac_tool_warned in
6423 yes:)
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6426 ac_tool_warned=yes ;;
6427 esac
6428 CXX=$ac_ct_CXX
6429 fi
6430 fi
6431
6432 fi
6433 fi
6434 # Provide some information about the compiler.
6435 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6436 set X $ac_compile
6437 ac_compiler=$2
6438 for ac_option in --version -v -V -qversion; do
6439 { { ac_try="$ac_compiler $ac_option >&5"
6440 case "(($ac_try" in
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6443 esac
6444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6445 $as_echo "$ac_try_echo"; } >&5
6446 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6447 ac_status=$?
6448 if test -s conftest.err; then
6449 sed '10a\
6450 ... rest of stderr output deleted ...
6451 10q' conftest.err >conftest.er1
6452 cat conftest.er1 >&5
6453 fi
6454 rm -f conftest.er1 conftest.err
6455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6456 test $ac_status = 0; }
6457 done
6458
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6460 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6461 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466
6467 int
6468 main ()
6469 {
6470 #ifndef __GNUC__
6471 choke me
6472 #endif
6473
6474 ;
6475 return 0;
6476 }
6477 _ACEOF
6478 if ac_fn_cxx_try_compile "$LINENO"; then :
6479 ac_compiler_gnu=yes
6480 else
6481 ac_compiler_gnu=no
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6485
6486 fi
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6488 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6489 if test $ac_compiler_gnu = yes; then
6490 GXX=yes
6491 else
6492 GXX=
6493 fi
6494 ac_test_CXXFLAGS=${CXXFLAGS+set}
6495 ac_save_CXXFLAGS=$CXXFLAGS
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6497 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6498 if ${ac_cv_prog_cxx_g+:} false; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6502 ac_cxx_werror_flag=yes
6503 ac_cv_prog_cxx_g=no
6504 CXXFLAGS="-g"
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6507
6508 int
6509 main ()
6510 {
6511
6512 ;
6513 return 0;
6514 }
6515 _ACEOF
6516 if ac_fn_cxx_try_compile "$LINENO"; then :
6517 ac_cv_prog_cxx_g=yes
6518 else
6519 CXXFLAGS=""
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522
6523 int
6524 main ()
6525 {
6526
6527 ;
6528 return 0;
6529 }
6530 _ACEOF
6531 if ac_fn_cxx_try_compile "$LINENO"; then :
6532
6533 else
6534 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6535 CXXFLAGS="-g"
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538
6539 int
6540 main ()
6541 {
6542
6543 ;
6544 return 0;
6545 }
6546 _ACEOF
6547 if ac_fn_cxx_try_compile "$LINENO"; then :
6548 ac_cv_prog_cxx_g=yes
6549 fi
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 fi
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6556 fi
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6558 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6559 if test "$ac_test_CXXFLAGS" = set; then
6560 CXXFLAGS=$ac_save_CXXFLAGS
6561 elif test $ac_cv_prog_cxx_g = yes; then
6562 if test "$GXX" = yes; then
6563 CXXFLAGS="-g -O2"
6564 else
6565 CXXFLAGS="-g"
6566 fi
6567 else
6568 if test "$GXX" = yes; then
6569 CXXFLAGS="-O2"
6570 else
6571 CXXFLAGS=
6572 fi
6573 fi
6574 ac_ext=c
6575 ac_cpp='$CPP $CPPFLAGS'
6576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6579
6580 depcc="$CXX" am_compiler_list=
6581
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6583 $as_echo_n "checking dependency style of $depcc... " >&6; }
6584 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6588 # We make a subdir and do the tests there. Otherwise we can end up
6589 # making bogus files that we don't know about and never remove. For
6590 # instance it was reported that on HP-UX the gcc test will end up
6591 # making a dummy file named 'D' -- because '-MD' means "put the output
6592 # in D".
6593 rm -rf conftest.dir
6594 mkdir conftest.dir
6595 # Copy depcomp to subdir because otherwise we won't find it if we're
6596 # using a relative directory.
6597 cp "$am_depcomp" conftest.dir
6598 cd conftest.dir
6599 # We will build objects and dependencies in a subdirectory because
6600 # it helps to detect inapplicable dependency modes. For instance
6601 # both Tru64's cc and ICC support -MD to output dependencies as a
6602 # side effect of compilation, but ICC will put the dependencies in
6603 # the current directory while Tru64 will put them in the object
6604 # directory.
6605 mkdir sub
6606
6607 am_cv_CXX_dependencies_compiler_type=none
6608 if test "$am_compiler_list" = ""; then
6609 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6610 fi
6611 am__universal=false
6612 case " $depcc " in #(
6613 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6614 esac
6615
6616 for depmode in $am_compiler_list; do
6617 # Setup a source with many dependencies, because some compilers
6618 # like to wrap large dependency lists on column 80 (with \), and
6619 # we should not choose a depcomp mode which is confused by this.
6620 #
6621 # We need to recreate these files for each test, as the compiler may
6622 # overwrite some of them when testing with obscure command lines.
6623 # This happens at least with the AIX C compiler.
6624 : > sub/conftest.c
6625 for i in 1 2 3 4 5 6; do
6626 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6627 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6628 # Solaris 10 /bin/sh.
6629 echo '/* dummy */' > sub/conftst$i.h
6630 done
6631 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6632
6633 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6634 # mode. It turns out that the SunPro C++ compiler does not properly
6635 # handle '-M -o', and we need to detect this. Also, some Intel
6636 # versions had trouble with output in subdirs.
6637 am__obj=sub/conftest.${OBJEXT-o}
6638 am__minus_obj="-o $am__obj"
6639 case $depmode in
6640 gcc)
6641 # This depmode causes a compiler race in universal mode.
6642 test "$am__universal" = false || continue
6643 ;;
6644 nosideeffect)
6645 # After this tag, mechanisms are not by side-effect, so they'll
6646 # only be used when explicitly requested.
6647 if test "x$enable_dependency_tracking" = xyes; then
6648 continue
6649 else
6650 break
6651 fi
6652 ;;
6653 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6654 # This compiler won't grok '-c -o', but also, the minuso test has
6655 # not run yet. These depmodes are late enough in the game, and
6656 # so weak that their functioning should not be impacted.
6657 am__obj=conftest.${OBJEXT-o}
6658 am__minus_obj=
6659 ;;
6660 none) break ;;
6661 esac
6662 if depmode=$depmode \
6663 source=sub/conftest.c object=$am__obj \
6664 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6665 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6666 >/dev/null 2>conftest.err &&
6667 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6668 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6669 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6670 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6671 # icc doesn't choke on unknown options, it will just issue warnings
6672 # or remarks (even with -Werror). So we grep stderr for any message
6673 # that says an option was ignored or not supported.
6674 # When given -MP, icc 7.0 and 7.1 complain thusly:
6675 # icc: Command line warning: ignoring option '-M'; no argument required
6676 # The diagnosis changed in icc 8.0:
6677 # icc: Command line remark: option '-MP' not supported
6678 if (grep 'ignoring option' conftest.err ||
6679 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6680 am_cv_CXX_dependencies_compiler_type=$depmode
6681 break
6682 fi
6683 fi
6684 done
6685
6686 cd ..
6687 rm -rf conftest.dir
6688 else
6689 am_cv_CXX_dependencies_compiler_type=none
6690 fi
6691
6692 fi
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6694 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6695 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6696
6697 if
6698 test "x$enable_dependency_tracking" != xno \
6699 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6700 am__fastdepCXX_TRUE=
6701 am__fastdepCXX_FALSE='#'
6702 else
6703 am__fastdepCXX_TRUE='#'
6704 am__fastdepCXX_FALSE=
6705 fi
6706
6707
6708 for ac_prog in 'bison -y' byacc
6709 do
6710 # Extract the first word of "$ac_prog", so it can be a program name with args.
6711 set dummy $ac_prog; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_YACC+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 if test -n "$YACC"; then
6718 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_YACC="$ac_prog"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731 done
6732 done
6733 IFS=$as_save_IFS
6734
6735 fi
6736 fi
6737 YACC=$ac_cv_prog_YACC
6738 if test -n "$YACC"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6740 $as_echo "$YACC" >&6; }
6741 else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6744 fi
6745
6746
6747 test -n "$YACC" && break
6748 done
6749 test -n "$YACC" || YACC="yacc"
6750
6751 if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_RANLIB+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 if test -n "$RANLIB"; then
6760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 RANLIB=$ac_cv_prog_RANLIB
6780 if test -n "$RANLIB"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6782 $as_echo "$RANLIB" >&6; }
6783 else
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786 fi
6787
6788
6789 fi
6790 if test -z "$ac_cv_prog_RANLIB"; then
6791 ac_ct_RANLIB=$RANLIB
6792 # Extract the first word of "ranlib", so it can be a program name with args.
6793 set dummy ranlib; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 if test -n "$ac_ct_RANLIB"; then
6800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809 ac_cv_prog_ac_ct_RANLIB="ranlib"
6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813 done
6814 done
6815 IFS=$as_save_IFS
6816
6817 fi
6818 fi
6819 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6820 if test -n "$ac_ct_RANLIB"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6822 $as_echo "$ac_ct_RANLIB" >&6; }
6823 else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6826 fi
6827
6828 if test "x$ac_ct_RANLIB" = x; then
6829 RANLIB=":"
6830 else
6831 case $cross_compiling:$ac_tool_warned in
6832 yes:)
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6835 ac_tool_warned=yes ;;
6836 esac
6837 RANLIB=$ac_ct_RANLIB
6838 fi
6839 else
6840 RANLIB="$ac_cv_prog_RANLIB"
6841 fi
6842
6843
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6845 $as_echo_n "checking whether ln -s works... " >&6; }
6846 LN_S=$as_ln_s
6847 if test "$LN_S" = "ln -s"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6849 $as_echo "yes" >&6; }
6850 else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6852 $as_echo "no, using $LN_S" >&6; }
6853 fi
6854
6855
6856
6857 MKINSTALLDIRS=
6858 if test -n "$ac_aux_dir"; then
6859 case "$ac_aux_dir" in
6860 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6861 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6862 esac
6863 fi
6864 if test -z "$MKINSTALLDIRS"; then
6865 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6866 fi
6867
6868
6869
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6871 $as_echo_n "checking whether NLS is requested... " >&6; }
6872 # Check whether --enable-nls was given.
6873 if test "${enable_nls+set}" = set; then :
6874 enableval=$enable_nls; USE_NLS=$enableval
6875 else
6876 USE_NLS=yes
6877 fi
6878
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6880 $as_echo "$USE_NLS" >&6; }
6881
6882
6883
6884
6885
6886
6887 # Prepare PATH_SEPARATOR.
6888 # The user is always right.
6889 if test "${PATH_SEPARATOR+set}" != set; then
6890 echo "#! /bin/sh" >conf$$.sh
6891 echo "exit 0" >>conf$$.sh
6892 chmod +x conf$$.sh
6893 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6894 PATH_SEPARATOR=';'
6895 else
6896 PATH_SEPARATOR=:
6897 fi
6898 rm -f conf$$.sh
6899 fi
6900
6901 # Find out how to test for executable files. Don't use a zero-byte file,
6902 # as systems may use methods other than mode bits to determine executability.
6903 cat >conf$$.file <<_ASEOF
6904 #! /bin/sh
6905 exit 0
6906 _ASEOF
6907 chmod +x conf$$.file
6908 if test -x conf$$.file >/dev/null 2>&1; then
6909 ac_executable_p="test -x"
6910 else
6911 ac_executable_p="test -f"
6912 fi
6913 rm -f conf$$.file
6914
6915 # Extract the first word of "msgfmt", so it can be a program name with args.
6916 set dummy msgfmt; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if ${ac_cv_path_MSGFMT+:} false; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 case "$MSGFMT" in
6923 [\\/]* | ?:[\\/]*)
6924 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6925 ;;
6926 *)
6927 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6928 for ac_dir in $PATH; do
6929 IFS="$ac_save_IFS"
6930 test -z "$ac_dir" && ac_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6933 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6934 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6935 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6936 break 2
6937 fi
6938 fi
6939 done
6940 done
6941 IFS="$ac_save_IFS"
6942 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6943 ;;
6944 esac
6945 fi
6946 MSGFMT="$ac_cv_path_MSGFMT"
6947 if test "$MSGFMT" != ":"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6949 $as_echo "$MSGFMT" >&6; }
6950 else
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6953 fi
6954
6955 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6956 set dummy gmsgfmt; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if ${ac_cv_path_GMSGFMT+:} false; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 case $GMSGFMT in
6963 [\\/]* | ?:[\\/]*)
6964 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6965 ;;
6966 *)
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6969 do
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6974 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6977 fi
6978 done
6979 done
6980 IFS=$as_save_IFS
6981
6982 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6983 ;;
6984 esac
6985 fi
6986 GMSGFMT=$ac_cv_path_GMSGFMT
6987 if test -n "$GMSGFMT"; then
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6989 $as_echo "$GMSGFMT" >&6; }
6990 else
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992 $as_echo "no" >&6; }
6993 fi
6994
6995
6996
6997
6998 # Prepare PATH_SEPARATOR.
6999 # The user is always right.
7000 if test "${PATH_SEPARATOR+set}" != set; then
7001 echo "#! /bin/sh" >conf$$.sh
7002 echo "exit 0" >>conf$$.sh
7003 chmod +x conf$$.sh
7004 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7005 PATH_SEPARATOR=';'
7006 else
7007 PATH_SEPARATOR=:
7008 fi
7009 rm -f conf$$.sh
7010 fi
7011
7012 # Find out how to test for executable files. Don't use a zero-byte file,
7013 # as systems may use methods other than mode bits to determine executability.
7014 cat >conf$$.file <<_ASEOF
7015 #! /bin/sh
7016 exit 0
7017 _ASEOF
7018 chmod +x conf$$.file
7019 if test -x conf$$.file >/dev/null 2>&1; then
7020 ac_executable_p="test -x"
7021 else
7022 ac_executable_p="test -f"
7023 fi
7024 rm -f conf$$.file
7025
7026 # Extract the first word of "xgettext", so it can be a program name with args.
7027 set dummy xgettext; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_path_XGETTEXT+:} false; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 case "$XGETTEXT" in
7034 [\\/]* | ?:[\\/]*)
7035 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7036 ;;
7037 *)
7038 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7039 for ac_dir in $PATH; do
7040 IFS="$ac_save_IFS"
7041 test -z "$ac_dir" && ac_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7044 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7045 (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
7046 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7047 break 2
7048 fi
7049 fi
7050 done
7051 done
7052 IFS="$ac_save_IFS"
7053 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7054 ;;
7055 esac
7056 fi
7057 XGETTEXT="$ac_cv_path_XGETTEXT"
7058 if test "$XGETTEXT" != ":"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7060 $as_echo "$XGETTEXT" >&6; }
7061 else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066 rm -f messages.po
7067
7068
7069 # Prepare PATH_SEPARATOR.
7070 # The user is always right.
7071 if test "${PATH_SEPARATOR+set}" != set; then
7072 echo "#! /bin/sh" >conf$$.sh
7073 echo "exit 0" >>conf$$.sh
7074 chmod +x conf$$.sh
7075 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7076 PATH_SEPARATOR=';'
7077 else
7078 PATH_SEPARATOR=:
7079 fi
7080 rm -f conf$$.sh
7081 fi
7082
7083 # Find out how to test for executable files. Don't use a zero-byte file,
7084 # as systems may use methods other than mode bits to determine executability.
7085 cat >conf$$.file <<_ASEOF
7086 #! /bin/sh
7087 exit 0
7088 _ASEOF
7089 chmod +x conf$$.file
7090 if test -x conf$$.file >/dev/null 2>&1; then
7091 ac_executable_p="test -x"
7092 else
7093 ac_executable_p="test -f"
7094 fi
7095 rm -f conf$$.file
7096
7097 # Extract the first word of "msgmerge", so it can be a program name with args.
7098 set dummy msgmerge; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_path_MSGMERGE+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 case "$MSGMERGE" in
7105 [\\/]* | ?:[\\/]*)
7106 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7107 ;;
7108 *)
7109 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7110 for ac_dir in $PATH; do
7111 IFS="$ac_save_IFS"
7112 test -z "$ac_dir" && ac_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7115 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7116 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7117 break 2
7118 fi
7119 fi
7120 done
7121 done
7122 IFS="$ac_save_IFS"
7123 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7124 ;;
7125 esac
7126 fi
7127 MSGMERGE="$ac_cv_path_MSGMERGE"
7128 if test "$MSGMERGE" != ":"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7130 $as_echo "$MSGMERGE" >&6; }
7131 else
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7134 fi
7135
7136
7137 if test "$GMSGFMT" != ":"; then
7138 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7139 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7140 : ;
7141 else
7142 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7144 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7145 GMSGFMT=":"
7146 fi
7147 fi
7148
7149 if test "$XGETTEXT" != ":"; then
7150 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7151 (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
7152 : ;
7153 else
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7155 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7156 XGETTEXT=":"
7157 fi
7158 rm -f messages.po
7159 fi
7160
7161 ac_config_commands="$ac_config_commands default-1"
7162
7163
7164
7165 if test "X$prefix" = "XNONE"; then
7166 acl_final_prefix="$ac_default_prefix"
7167 else
7168 acl_final_prefix="$prefix"
7169 fi
7170 if test "X$exec_prefix" = "XNONE"; then
7171 acl_final_exec_prefix='${prefix}'
7172 else
7173 acl_final_exec_prefix="$exec_prefix"
7174 fi
7175 acl_save_prefix="$prefix"
7176 prefix="$acl_final_prefix"
7177 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7178 prefix="$acl_save_prefix"
7179
7180
7181 # Check whether --with-gnu-ld was given.
7182 if test "${with_gnu_ld+set}" = set; then :
7183 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7184 else
7185 with_gnu_ld=no
7186 fi
7187
7188 # Prepare PATH_SEPARATOR.
7189 # The user is always right.
7190 if test "${PATH_SEPARATOR+set}" != set; then
7191 echo "#! /bin/sh" >conf$$.sh
7192 echo "exit 0" >>conf$$.sh
7193 chmod +x conf$$.sh
7194 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7195 PATH_SEPARATOR=';'
7196 else
7197 PATH_SEPARATOR=:
7198 fi
7199 rm -f conf$$.sh
7200 fi
7201 ac_prog=ld
7202 if test "$GCC" = yes; then
7203 # Check if gcc -print-prog-name=ld gives a path.
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7205 $as_echo_n "checking for ld used by GCC... " >&6; }
7206 case $host in
7207 *-*-mingw*)
7208 # gcc leaves a trailing carriage return which upsets mingw
7209 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7210 *)
7211 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7212 esac
7213 case $ac_prog in
7214 # Accept absolute paths.
7215 [\\/]* | [A-Za-z]:[\\/]*)
7216 re_direlt='/[^/][^/]*/\.\./'
7217 # Canonicalize the path of ld
7218 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7219 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7220 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7221 done
7222 test -z "$LD" && LD="$ac_prog"
7223 ;;
7224 "")
7225 # If it fails, then pretend we aren't using GCC.
7226 ac_prog=ld
7227 ;;
7228 *)
7229 # If it is relative, then search for the first ld in PATH.
7230 with_gnu_ld=unknown
7231 ;;
7232 esac
7233 elif test "$with_gnu_ld" = yes; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7235 $as_echo_n "checking for GNU ld... " >&6; }
7236 else
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7238 $as_echo_n "checking for non-GNU ld... " >&6; }
7239 fi
7240 if ${acl_cv_path_LD+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 if test -z "$LD"; then
7244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7245 for ac_dir in $PATH; do
7246 test -z "$ac_dir" && ac_dir=.
7247 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7248 acl_cv_path_LD="$ac_dir/$ac_prog"
7249 # Check to see if the program is GNU ld. I'd rather use --version,
7250 # but apparently some GNU ld's only accept -v.
7251 # Break only if it was the GNU/non-GNU ld that we prefer.
7252 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
7253 test "$with_gnu_ld" != no && break
7254 else
7255 test "$with_gnu_ld" != yes && break
7256 fi
7257 fi
7258 done
7259 IFS="$ac_save_ifs"
7260 else
7261 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7262 fi
7263 fi
7264
7265 LD="$acl_cv_path_LD"
7266 if test -n "$LD"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7268 $as_echo "$LD" >&6; }
7269 else
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7272 fi
7273 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7275 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7276 if ${acl_cv_prog_gnu_ld+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7280 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
7281 acl_cv_prog_gnu_ld=yes
7282 else
7283 acl_cv_prog_gnu_ld=no
7284 fi
7285 fi
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7287 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7288 with_gnu_ld=$acl_cv_prog_gnu_ld
7289
7290
7291
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7293 $as_echo_n "checking for shared library run path origin... " >&6; }
7294 if ${acl_cv_rpath+:} false; then :
7295 $as_echo_n "(cached) " >&6
7296 else
7297
7298 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7299 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7300 . ./conftest.sh
7301 rm -f ./conftest.sh
7302 acl_cv_rpath=done
7303
7304 fi
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7306 $as_echo "$acl_cv_rpath" >&6; }
7307 wl="$acl_cv_wl"
7308 libext="$acl_cv_libext"
7309 shlibext="$acl_cv_shlibext"
7310 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7311 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7312 hardcode_direct="$acl_cv_hardcode_direct"
7313 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7314 # Check whether --enable-rpath was given.
7315 if test "${enable_rpath+set}" = set; then :
7316 enableval=$enable_rpath; :
7317 else
7318 enable_rpath=yes
7319 fi
7320
7321
7322
7323
7324
7325
7326
7327
7328 use_additional=yes
7329
7330 acl_save_prefix="$prefix"
7331 prefix="$acl_final_prefix"
7332 acl_save_exec_prefix="$exec_prefix"
7333 exec_prefix="$acl_final_exec_prefix"
7334
7335 eval additional_includedir=\"$includedir\"
7336 eval additional_libdir=\"$libdir\"
7337
7338 exec_prefix="$acl_save_exec_prefix"
7339 prefix="$acl_save_prefix"
7340
7341
7342 # Check whether --with-libiconv-prefix was given.
7343 if test "${with_libiconv_prefix+set}" = set; then :
7344 withval=$with_libiconv_prefix;
7345 if test "X$withval" = "Xno"; then
7346 use_additional=no
7347 else
7348 if test "X$withval" = "X"; then
7349
7350 acl_save_prefix="$prefix"
7351 prefix="$acl_final_prefix"
7352 acl_save_exec_prefix="$exec_prefix"
7353 exec_prefix="$acl_final_exec_prefix"
7354
7355 eval additional_includedir=\"$includedir\"
7356 eval additional_libdir=\"$libdir\"
7357
7358 exec_prefix="$acl_save_exec_prefix"
7359 prefix="$acl_save_prefix"
7360
7361 else
7362 additional_includedir="$withval/include"
7363 additional_libdir="$withval/lib"
7364 fi
7365 fi
7366
7367 fi
7368
7369
7370 # Check whether --with-libiconv-type was given.
7371 if test "${with_libiconv_type+set}" = set; then :
7372 withval=$with_libiconv_type; with_libiconv_type=$withval
7373 else
7374 with_libiconv_type=auto
7375 fi
7376
7377 lib_type=`eval echo \$with_libiconv_type`
7378
7379 LIBICONV=
7380 LTLIBICONV=
7381 INCICONV=
7382 rpathdirs=
7383 ltrpathdirs=
7384 names_already_handled=
7385 names_next_round='iconv '
7386 while test -n "$names_next_round"; do
7387 names_this_round="$names_next_round"
7388 names_next_round=
7389 for name in $names_this_round; do
7390 already_handled=
7391 for n in $names_already_handled; do
7392 if test "$n" = "$name"; then
7393 already_handled=yes
7394 break
7395 fi
7396 done
7397 if test -z "$already_handled"; then
7398 names_already_handled="$names_already_handled $name"
7399 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7400 eval value=\"\$HAVE_LIB$uppername\"
7401 if test -n "$value"; then
7402 if test "$value" = yes; then
7403 eval value=\"\$LIB$uppername\"
7404 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7405 eval value=\"\$LTLIB$uppername\"
7406 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7407 else
7408 :
7409 fi
7410 else
7411 found_dir=
7412 found_la=
7413 found_so=
7414 found_a=
7415 if test $use_additional = yes; then
7416 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
7417 found_dir="$additional_libdir"
7418 found_so="$additional_libdir/lib$name.$shlibext"
7419 if test -f "$additional_libdir/lib$name.la"; then
7420 found_la="$additional_libdir/lib$name.la"
7421 fi
7422 elif test x$lib_type != xshared; then
7423 if test -f "$additional_libdir/lib$name.$libext"; then
7424 found_dir="$additional_libdir"
7425 found_a="$additional_libdir/lib$name.$libext"
7426 if test -f "$additional_libdir/lib$name.la"; then
7427 found_la="$additional_libdir/lib$name.la"
7428 fi
7429 fi
7430 fi
7431 fi
7432 if test "X$found_dir" = "X"; then
7433 for x in $LDFLAGS $LTLIBICONV; do
7434
7435 acl_save_prefix="$prefix"
7436 prefix="$acl_final_prefix"
7437 acl_save_exec_prefix="$exec_prefix"
7438 exec_prefix="$acl_final_exec_prefix"
7439 eval x=\"$x\"
7440 exec_prefix="$acl_save_exec_prefix"
7441 prefix="$acl_save_prefix"
7442
7443 case "$x" in
7444 -L*)
7445 dir=`echo "X$x" | sed -e 's/^X-L//'`
7446 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
7447 found_dir="$dir"
7448 found_so="$dir/lib$name.$shlibext"
7449 if test -f "$dir/lib$name.la"; then
7450 found_la="$dir/lib$name.la"
7451 fi
7452 elif test x$lib_type != xshared; then
7453 if test -f "$dir/lib$name.$libext"; then
7454 found_dir="$dir"
7455 found_a="$dir/lib$name.$libext"
7456 if test -f "$dir/lib$name.la"; then
7457 found_la="$dir/lib$name.la"
7458 fi
7459 fi
7460 fi
7461 ;;
7462 esac
7463 if test "X$found_dir" != "X"; then
7464 break
7465 fi
7466 done
7467 fi
7468 if test "X$found_dir" != "X"; then
7469 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7470 if test "X$found_so" != "X"; then
7471 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7472 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7473 else
7474 haveit=
7475 for x in $ltrpathdirs; do
7476 if test "X$x" = "X$found_dir"; then
7477 haveit=yes
7478 break
7479 fi
7480 done
7481 if test -z "$haveit"; then
7482 ltrpathdirs="$ltrpathdirs $found_dir"
7483 fi
7484 if test "$hardcode_direct" = yes; then
7485 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7486 else
7487 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7488 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7489 haveit=
7490 for x in $rpathdirs; do
7491 if test "X$x" = "X$found_dir"; then
7492 haveit=yes
7493 break
7494 fi
7495 done
7496 if test -z "$haveit"; then
7497 rpathdirs="$rpathdirs $found_dir"
7498 fi
7499 else
7500 haveit=
7501 for x in $LDFLAGS $LIBICONV; do
7502
7503 acl_save_prefix="$prefix"
7504 prefix="$acl_final_prefix"
7505 acl_save_exec_prefix="$exec_prefix"
7506 exec_prefix="$acl_final_exec_prefix"
7507 eval x=\"$x\"
7508 exec_prefix="$acl_save_exec_prefix"
7509 prefix="$acl_save_prefix"
7510
7511 if test "X$x" = "X-L$found_dir"; then
7512 haveit=yes
7513 break
7514 fi
7515 done
7516 if test -z "$haveit"; then
7517 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7518 fi
7519 if test "$hardcode_minus_L" != no; then
7520 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7521 else
7522 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7523 fi
7524 fi
7525 fi
7526 fi
7527 else
7528 if test "X$found_a" != "X"; then
7529 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7530 else
7531 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7532 fi
7533 fi
7534 additional_includedir=
7535 case "$found_dir" in
7536 */lib | */lib/)
7537 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7538 additional_includedir="$basedir/include"
7539 ;;
7540 esac
7541 if test "X$additional_includedir" != "X"; then
7542 if test "X$additional_includedir" != "X/usr/include"; then
7543 haveit=
7544 if test "X$additional_includedir" = "X/usr/local/include"; then
7545 if test -n "$GCC"; then
7546 case $host_os in
7547 linux*) haveit=yes;;
7548 esac
7549 fi
7550 fi
7551 if test -z "$haveit"; then
7552 for x in $CPPFLAGS $INCICONV; do
7553
7554 acl_save_prefix="$prefix"
7555 prefix="$acl_final_prefix"
7556 acl_save_exec_prefix="$exec_prefix"
7557 exec_prefix="$acl_final_exec_prefix"
7558 eval x=\"$x\"
7559 exec_prefix="$acl_save_exec_prefix"
7560 prefix="$acl_save_prefix"
7561
7562 if test "X$x" = "X-I$additional_includedir"; then
7563 haveit=yes
7564 break
7565 fi
7566 done
7567 if test -z "$haveit"; then
7568 if test -d "$additional_includedir"; then
7569 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7570 fi
7571 fi
7572 fi
7573 fi
7574 fi
7575 if test -n "$found_la"; then
7576 save_libdir="$libdir"
7577 case "$found_la" in
7578 */* | *\\*) . "$found_la" ;;
7579 *) . "./$found_la" ;;
7580 esac
7581 libdir="$save_libdir"
7582 for dep in $dependency_libs; do
7583 case "$dep" in
7584 -L*)
7585 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7586 if test "X$additional_libdir" != "X/usr/lib"; then
7587 haveit=
7588 if test "X$additional_libdir" = "X/usr/local/lib"; then
7589 if test -n "$GCC"; then
7590 case $host_os in
7591 linux*) haveit=yes;;
7592 esac
7593 fi
7594 fi
7595 if test -z "$haveit"; then
7596 haveit=
7597 for x in $LDFLAGS $LIBICONV; do
7598
7599 acl_save_prefix="$prefix"
7600 prefix="$acl_final_prefix"
7601 acl_save_exec_prefix="$exec_prefix"
7602 exec_prefix="$acl_final_exec_prefix"
7603 eval x=\"$x\"
7604 exec_prefix="$acl_save_exec_prefix"
7605 prefix="$acl_save_prefix"
7606
7607 if test "X$x" = "X-L$additional_libdir"; then
7608 haveit=yes
7609 break
7610 fi
7611 done
7612 if test -z "$haveit"; then
7613 if test -d "$additional_libdir"; then
7614 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7615 fi
7616 fi
7617 haveit=
7618 for x in $LDFLAGS $LTLIBICONV; do
7619
7620 acl_save_prefix="$prefix"
7621 prefix="$acl_final_prefix"
7622 acl_save_exec_prefix="$exec_prefix"
7623 exec_prefix="$acl_final_exec_prefix"
7624 eval x=\"$x\"
7625 exec_prefix="$acl_save_exec_prefix"
7626 prefix="$acl_save_prefix"
7627
7628 if test "X$x" = "X-L$additional_libdir"; then
7629 haveit=yes
7630 break
7631 fi
7632 done
7633 if test -z "$haveit"; then
7634 if test -d "$additional_libdir"; then
7635 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7636 fi
7637 fi
7638 fi
7639 fi
7640 ;;
7641 -R*)
7642 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7643 if test "$enable_rpath" != no; then
7644 haveit=
7645 for x in $rpathdirs; do
7646 if test "X$x" = "X$dir"; then
7647 haveit=yes
7648 break
7649 fi
7650 done
7651 if test -z "$haveit"; then
7652 rpathdirs="$rpathdirs $dir"
7653 fi
7654 haveit=
7655 for x in $ltrpathdirs; do
7656 if test "X$x" = "X$dir"; then
7657 haveit=yes
7658 break
7659 fi
7660 done
7661 if test -z "$haveit"; then
7662 ltrpathdirs="$ltrpathdirs $dir"
7663 fi
7664 fi
7665 ;;
7666 -l*)
7667 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7668 ;;
7669 *.la)
7670 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7671 ;;
7672 *)
7673 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7674 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7675 ;;
7676 esac
7677 done
7678 fi
7679 else
7680 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
7681 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7682 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7683 else
7684 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7685 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7686 fi
7687 fi
7688 fi
7689 fi
7690 done
7691 done
7692 if test "X$rpathdirs" != "X"; then
7693 if test -n "$hardcode_libdir_separator"; then
7694 alldirs=
7695 for found_dir in $rpathdirs; do
7696 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7697 done
7698 acl_save_libdir="$libdir"
7699 libdir="$alldirs"
7700 eval flag=\"$hardcode_libdir_flag_spec\"
7701 libdir="$acl_save_libdir"
7702 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7703 else
7704 for found_dir in $rpathdirs; do
7705 acl_save_libdir="$libdir"
7706 libdir="$found_dir"
7707 eval flag=\"$hardcode_libdir_flag_spec\"
7708 libdir="$acl_save_libdir"
7709 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7710 done
7711 fi
7712 fi
7713 if test "X$ltrpathdirs" != "X"; then
7714 for found_dir in $ltrpathdirs; do
7715 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7716 done
7717 fi
7718
7719
7720
7721
7722
7723 if test -f ../gettext/uninstalled-config.sh; then
7724 relative_builddir='$(top_builddir)/../gettext'
7725 . ../gettext/uninstalled-config.sh
7726 else
7727 # The sister gettext directory doesn't exist and won't collect information on
7728 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7753 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7754 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 gt_save_LIBS="$LIBS"
7758 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760 /* end confdefs.h. */
7761 #include <CoreFoundation/CFPreferences.h>
7762 int
7763 main ()
7764 {
7765 CFPreferencesCopyAppValue(NULL, NULL)
7766 ;
7767 return 0;
7768 }
7769 _ACEOF
7770 if ac_fn_c_try_link "$LINENO"; then :
7771 gt_cv_func_CFPreferencesCopyAppValue=yes
7772 else
7773 gt_cv_func_CFPreferencesCopyAppValue=no
7774 fi
7775 rm -f core conftest.err conftest.$ac_objext \
7776 conftest$ac_exeext conftest.$ac_ext
7777 LIBS="$gt_save_LIBS"
7778 fi
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7780 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7781 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7782
7783 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7784
7785 fi
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
7787 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
7788 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 gt_save_LIBS="$LIBS"
7792 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7795 #include <CoreFoundation/CFLocale.h>
7796 int
7797 main ()
7798 {
7799 CFLocaleCopyPreferredLanguages();
7800 ;
7801 return 0;
7802 }
7803 _ACEOF
7804 if ac_fn_c_try_link "$LINENO"; then :
7805 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
7806 else
7807 gt_cv_func_CFLocaleCopyPreferredLanguages=no
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext \
7810 conftest$ac_exeext conftest.$ac_ext
7811 LIBS="$gt_save_LIBS"
7812 fi
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
7814 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
7815 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7816
7817 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
7818
7819 fi
7820 INTL_MACOSX_LIBS=
7821 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
7822 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7823 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
7824 fi
7825
7826
7827
7828
7829
7830
7831 LIBINTL=
7832 LTLIBINTL=
7833 POSUB=
7834
7835 case " $gt_needs " in
7836 *" need-formatstring-macros "*) gt_api_version=3 ;;
7837 *" need-ngettext "*) gt_api_version=2 ;;
7838 *) gt_api_version=1 ;;
7839 esac
7840 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7841 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7842
7843 if test "$USE_NLS" = "yes"; then
7844 gt_use_preinstalled_gnugettext=no
7845
7846
7847 if test $gt_api_version -ge 3; then
7848 gt_revision_test_code='
7849 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7850 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7851 #endif
7852 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7853 '
7854 else
7855 gt_revision_test_code=
7856 fi
7857 if test $gt_api_version -ge 2; then
7858 gt_expression_test_code=' + * ngettext ("", "", 0)'
7859 else
7860 gt_expression_test_code=
7861 fi
7862
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7864 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7865 if eval \${$gt_func_gnugettext_libc+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7870
7871 #include <libintl.h>
7872 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7873 extern int _nl_msg_cat_cntr;
7874 extern int *_nl_domain_bindings;
7875 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
7876 #else
7877 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7878 #endif
7879 $gt_revision_test_code
7880
7881 int
7882 main ()
7883 {
7884
7885 bindtextdomain ("", "");
7886 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7887
7888 ;
7889 return 0;
7890 }
7891 _ACEOF
7892 if ac_fn_c_try_link "$LINENO"; then :
7893 eval "$gt_func_gnugettext_libc=yes"
7894 else
7895 eval "$gt_func_gnugettext_libc=no"
7896 fi
7897 rm -f core conftest.err conftest.$ac_objext \
7898 conftest$ac_exeext conftest.$ac_ext
7899 fi
7900 eval ac_res=\$$gt_func_gnugettext_libc
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7902 $as_echo "$ac_res" >&6; }
7903
7904 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7905
7906
7907
7908
7909
7910 am_save_CPPFLAGS="$CPPFLAGS"
7911
7912 for element in $INCICONV; do
7913 haveit=
7914 for x in $CPPFLAGS; do
7915
7916 acl_save_prefix="$prefix"
7917 prefix="$acl_final_prefix"
7918 acl_save_exec_prefix="$exec_prefix"
7919 exec_prefix="$acl_final_exec_prefix"
7920 eval x=\"$x\"
7921 exec_prefix="$acl_save_exec_prefix"
7922 prefix="$acl_save_prefix"
7923
7924 if test "X$x" = "X$element"; then
7925 haveit=yes
7926 break
7927 fi
7928 done
7929 if test -z "$haveit"; then
7930 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7931 fi
7932 done
7933
7934
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7936 $as_echo_n "checking for iconv... " >&6; }
7937 if ${am_cv_func_iconv+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940
7941 am_cv_func_iconv="no, consider installing GNU libiconv"
7942 am_cv_lib_iconv=no
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945
7946 #include <stdlib.h>
7947 #include <iconv.h>
7948
7949 int
7950 main ()
7951 {
7952 iconv_t cd = iconv_open("","");
7953 iconv(cd,NULL,NULL,NULL,NULL);
7954 iconv_close(cd);
7955 ;
7956 return 0;
7957 }
7958 _ACEOF
7959 if ac_fn_c_try_link "$LINENO"; then :
7960 am_cv_func_iconv=yes
7961 fi
7962 rm -f core conftest.err conftest.$ac_objext \
7963 conftest$ac_exeext conftest.$ac_ext
7964 if test "$am_cv_func_iconv" != yes; then
7965 am_save_LIBS="$LIBS"
7966 LIBS="$LIBS $LIBICONV"
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7969
7970 #include <stdlib.h>
7971 #include <iconv.h>
7972
7973 int
7974 main ()
7975 {
7976 iconv_t cd = iconv_open("","");
7977 iconv(cd,NULL,NULL,NULL,NULL);
7978 iconv_close(cd);
7979 ;
7980 return 0;
7981 }
7982 _ACEOF
7983 if ac_fn_c_try_link "$LINENO"; then :
7984 am_cv_lib_iconv=yes
7985 am_cv_func_iconv=yes
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
7989 LIBS="$am_save_LIBS"
7990 fi
7991
7992 fi
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7994 $as_echo "$am_cv_func_iconv" >&6; }
7995 if test "$am_cv_func_iconv" = yes; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7997 $as_echo_n "checking for working iconv... " >&6; }
7998 if ${am_cv_func_iconv_works+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001
8002 am_save_LIBS="$LIBS"
8003 if test $am_cv_lib_iconv = yes; then
8004 LIBS="$LIBS $LIBICONV"
8005 fi
8006 am_cv_func_iconv_works=no
8007 for ac_iconv_const in '' 'const'; do
8008 if test "$cross_compiling" = yes; then :
8009 case "$host_os" in
8010 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8011 *) am_cv_func_iconv_works="guessing yes" ;;
8012 esac
8013 else
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8016
8017 #include <iconv.h>
8018 #include <string.h>
8019
8020 #ifndef ICONV_CONST
8021 # define ICONV_CONST $ac_iconv_const
8022 #endif
8023
8024 int
8025 main ()
8026 {
8027 int result = 0;
8028 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
8029 successful returns. This is even documented in
8030 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
8031 {
8032 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8033 if (cd_utf8_to_88591 != (iconv_t)(-1))
8034 {
8035 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8036 char buf[10];
8037 ICONV_CONST char *inptr = input;
8038 size_t inbytesleft = strlen (input);
8039 char *outptr = buf;
8040 size_t outbytesleft = sizeof (buf);
8041 size_t res = iconv (cd_utf8_to_88591,
8042 &inptr, &inbytesleft,
8043 &outptr, &outbytesleft);
8044 if (res == 0)
8045 result |= 1;
8046 iconv_close (cd_utf8_to_88591);
8047 }
8048 }
8049 /* Test against Solaris 10 bug: Failures are not distinguishable from
8050 successful returns. */
8051 {
8052 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8053 if (cd_ascii_to_88591 != (iconv_t)(-1))
8054 {
8055 static ICONV_CONST char input[] = "\263";
8056 char buf[10];
8057 ICONV_CONST char *inptr = input;
8058 size_t inbytesleft = strlen (input);
8059 char *outptr = buf;
8060 size_t outbytesleft = sizeof (buf);
8061 size_t res = iconv (cd_ascii_to_88591,
8062 &inptr, &inbytesleft,
8063 &outptr, &outbytesleft);
8064 if (res == 0)
8065 result |= 2;
8066 iconv_close (cd_ascii_to_88591);
8067 }
8068 }
8069 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8070 {
8071 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8072 if (cd_88591_to_utf8 != (iconv_t)(-1))
8073 {
8074 static ICONV_CONST char input[] = "\304";
8075 static char buf[2] = { (char)0xDE, (char)0xAD };
8076 ICONV_CONST char *inptr = input;
8077 size_t inbytesleft = 1;
8078 char *outptr = buf;
8079 size_t outbytesleft = 1;
8080 size_t res = iconv (cd_88591_to_utf8,
8081 &inptr, &inbytesleft,
8082 &outptr, &outbytesleft);
8083 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8084 result |= 4;
8085 iconv_close (cd_88591_to_utf8);
8086 }
8087 }
8088 #if 0 /* This bug could be worked around by the caller. */
8089 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8090 {
8091 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8092 if (cd_88591_to_utf8 != (iconv_t)(-1))
8093 {
8094 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8095 char buf[50];
8096 ICONV_CONST char *inptr = input;
8097 size_t inbytesleft = strlen (input);
8098 char *outptr = buf;
8099 size_t outbytesleft = sizeof (buf);
8100 size_t res = iconv (cd_88591_to_utf8,
8101 &inptr, &inbytesleft,
8102 &outptr, &outbytesleft);
8103 if ((int)res > 0)
8104 result |= 8;
8105 iconv_close (cd_88591_to_utf8);
8106 }
8107 }
8108 #endif
8109 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8110 provided. */
8111 {
8112 /* Try standardized names. */
8113 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8114 /* Try IRIX, OSF/1 names. */
8115 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8116 /* Try AIX names. */
8117 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8118 /* Try HP-UX names. */
8119 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8120 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8121 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8122 result |= 16;
8123 if (cd1 != (iconv_t)(-1))
8124 iconv_close (cd1);
8125 if (cd2 != (iconv_t)(-1))
8126 iconv_close (cd2);
8127 if (cd3 != (iconv_t)(-1))
8128 iconv_close (cd3);
8129 if (cd4 != (iconv_t)(-1))
8130 iconv_close (cd4);
8131 }
8132 return result;
8133
8134 ;
8135 return 0;
8136 }
8137 _ACEOF
8138 if ac_fn_c_try_run "$LINENO"; then :
8139 am_cv_func_iconv_works=yes
8140 fi
8141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8142 conftest.$ac_objext conftest.beam conftest.$ac_ext
8143 fi
8144
8145 test "$am_cv_func_iconv_works" = no || break
8146 done
8147 LIBS="$am_save_LIBS"
8148
8149 fi
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8151 $as_echo "$am_cv_func_iconv_works" >&6; }
8152 case "$am_cv_func_iconv_works" in
8153 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8154 *) am_func_iconv=yes ;;
8155 esac
8156 else
8157 am_func_iconv=no am_cv_lib_iconv=no
8158 fi
8159 if test "$am_func_iconv" = yes; then
8160
8161 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8162
8163 fi
8164 if test "$am_cv_lib_iconv" = yes; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8166 $as_echo_n "checking how to link with libiconv... " >&6; }
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8168 $as_echo "$LIBICONV" >&6; }
8169 else
8170 CPPFLAGS="$am_save_CPPFLAGS"
8171 LIBICONV=
8172 LTLIBICONV=
8173 fi
8174
8175
8176
8177
8178
8179
8180 use_additional=yes
8181
8182 acl_save_prefix="$prefix"
8183 prefix="$acl_final_prefix"
8184 acl_save_exec_prefix="$exec_prefix"
8185 exec_prefix="$acl_final_exec_prefix"
8186
8187 eval additional_includedir=\"$includedir\"
8188 eval additional_libdir=\"$libdir\"
8189
8190 exec_prefix="$acl_save_exec_prefix"
8191 prefix="$acl_save_prefix"
8192
8193
8194 # Check whether --with-libintl-prefix was given.
8195 if test "${with_libintl_prefix+set}" = set; then :
8196 withval=$with_libintl_prefix;
8197 if test "X$withval" = "Xno"; then
8198 use_additional=no
8199 else
8200 if test "X$withval" = "X"; then
8201
8202 acl_save_prefix="$prefix"
8203 prefix="$acl_final_prefix"
8204 acl_save_exec_prefix="$exec_prefix"
8205 exec_prefix="$acl_final_exec_prefix"
8206
8207 eval additional_includedir=\"$includedir\"
8208 eval additional_libdir=\"$libdir\"
8209
8210 exec_prefix="$acl_save_exec_prefix"
8211 prefix="$acl_save_prefix"
8212
8213 else
8214 additional_includedir="$withval/include"
8215 additional_libdir="$withval/lib"
8216 fi
8217 fi
8218
8219 fi
8220
8221
8222 # Check whether --with-libintl-type was given.
8223 if test "${with_libintl_type+set}" = set; then :
8224 withval=$with_libintl_type; with_libintl_type=$withval
8225 else
8226 with_libintl_type=auto
8227 fi
8228
8229 lib_type=`eval echo \$with_libintl_type`
8230
8231 LIBINTL=
8232 LTLIBINTL=
8233 INCINTL=
8234 rpathdirs=
8235 ltrpathdirs=
8236 names_already_handled=
8237 names_next_round='intl '
8238 while test -n "$names_next_round"; do
8239 names_this_round="$names_next_round"
8240 names_next_round=
8241 for name in $names_this_round; do
8242 already_handled=
8243 for n in $names_already_handled; do
8244 if test "$n" = "$name"; then
8245 already_handled=yes
8246 break
8247 fi
8248 done
8249 if test -z "$already_handled"; then
8250 names_already_handled="$names_already_handled $name"
8251 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8252 eval value=\"\$HAVE_LIB$uppername\"
8253 if test -n "$value"; then
8254 if test "$value" = yes; then
8255 eval value=\"\$LIB$uppername\"
8256 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8257 eval value=\"\$LTLIB$uppername\"
8258 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8259 else
8260 :
8261 fi
8262 else
8263 found_dir=
8264 found_la=
8265 found_so=
8266 found_a=
8267 if test $use_additional = yes; then
8268 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8269 found_dir="$additional_libdir"
8270 found_so="$additional_libdir/lib$name.$shlibext"
8271 if test -f "$additional_libdir/lib$name.la"; then
8272 found_la="$additional_libdir/lib$name.la"
8273 fi
8274 elif test x$lib_type != xshared; then
8275 if test -f "$additional_libdir/lib$name.$libext"; then
8276 found_dir="$additional_libdir"
8277 found_a="$additional_libdir/lib$name.$libext"
8278 if test -f "$additional_libdir/lib$name.la"; then
8279 found_la="$additional_libdir/lib$name.la"
8280 fi
8281 fi
8282 fi
8283 fi
8284 if test "X$found_dir" = "X"; then
8285 for x in $LDFLAGS $LTLIBINTL; do
8286
8287 acl_save_prefix="$prefix"
8288 prefix="$acl_final_prefix"
8289 acl_save_exec_prefix="$exec_prefix"
8290 exec_prefix="$acl_final_exec_prefix"
8291 eval x=\"$x\"
8292 exec_prefix="$acl_save_exec_prefix"
8293 prefix="$acl_save_prefix"
8294
8295 case "$x" in
8296 -L*)
8297 dir=`echo "X$x" | sed -e 's/^X-L//'`
8298 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8299 found_dir="$dir"
8300 found_so="$dir/lib$name.$shlibext"
8301 if test -f "$dir/lib$name.la"; then
8302 found_la="$dir/lib$name.la"
8303 fi
8304 elif test x$lib_type != xshared; then
8305 if test -f "$dir/lib$name.$libext"; then
8306 found_dir="$dir"
8307 found_a="$dir/lib$name.$libext"
8308 if test -f "$dir/lib$name.la"; then
8309 found_la="$dir/lib$name.la"
8310 fi
8311 fi
8312 fi
8313 ;;
8314 esac
8315 if test "X$found_dir" != "X"; then
8316 break
8317 fi
8318 done
8319 fi
8320 if test "X$found_dir" != "X"; then
8321 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8322 if test "X$found_so" != "X"; then
8323 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8324 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8325 else
8326 haveit=
8327 for x in $ltrpathdirs; do
8328 if test "X$x" = "X$found_dir"; then
8329 haveit=yes
8330 break
8331 fi
8332 done
8333 if test -z "$haveit"; then
8334 ltrpathdirs="$ltrpathdirs $found_dir"
8335 fi
8336 if test "$hardcode_direct" = yes; then
8337 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8338 else
8339 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8340 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8341 haveit=
8342 for x in $rpathdirs; do
8343 if test "X$x" = "X$found_dir"; then
8344 haveit=yes
8345 break
8346 fi
8347 done
8348 if test -z "$haveit"; then
8349 rpathdirs="$rpathdirs $found_dir"
8350 fi
8351 else
8352 haveit=
8353 for x in $LDFLAGS $LIBINTL; do
8354
8355 acl_save_prefix="$prefix"
8356 prefix="$acl_final_prefix"
8357 acl_save_exec_prefix="$exec_prefix"
8358 exec_prefix="$acl_final_exec_prefix"
8359 eval x=\"$x\"
8360 exec_prefix="$acl_save_exec_prefix"
8361 prefix="$acl_save_prefix"
8362
8363 if test "X$x" = "X-L$found_dir"; then
8364 haveit=yes
8365 break
8366 fi
8367 done
8368 if test -z "$haveit"; then
8369 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8370 fi
8371 if test "$hardcode_minus_L" != no; then
8372 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8373 else
8374 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8375 fi
8376 fi
8377 fi
8378 fi
8379 else
8380 if test "X$found_a" != "X"; then
8381 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8382 else
8383 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8384 fi
8385 fi
8386 additional_includedir=
8387 case "$found_dir" in
8388 */lib | */lib/)
8389 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8390 additional_includedir="$basedir/include"
8391 ;;
8392 esac
8393 if test "X$additional_includedir" != "X"; then
8394 if test "X$additional_includedir" != "X/usr/include"; then
8395 haveit=
8396 if test "X$additional_includedir" = "X/usr/local/include"; then
8397 if test -n "$GCC"; then
8398 case $host_os in
8399 linux*) haveit=yes;;
8400 esac
8401 fi
8402 fi
8403 if test -z "$haveit"; then
8404 for x in $CPPFLAGS $INCINTL; do
8405
8406 acl_save_prefix="$prefix"
8407 prefix="$acl_final_prefix"
8408 acl_save_exec_prefix="$exec_prefix"
8409 exec_prefix="$acl_final_exec_prefix"
8410 eval x=\"$x\"
8411 exec_prefix="$acl_save_exec_prefix"
8412 prefix="$acl_save_prefix"
8413
8414 if test "X$x" = "X-I$additional_includedir"; then
8415 haveit=yes
8416 break
8417 fi
8418 done
8419 if test -z "$haveit"; then
8420 if test -d "$additional_includedir"; then
8421 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8422 fi
8423 fi
8424 fi
8425 fi
8426 fi
8427 if test -n "$found_la"; then
8428 save_libdir="$libdir"
8429 case "$found_la" in
8430 */* | *\\*) . "$found_la" ;;
8431 *) . "./$found_la" ;;
8432 esac
8433 libdir="$save_libdir"
8434 for dep in $dependency_libs; do
8435 case "$dep" in
8436 -L*)
8437 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8438 if test "X$additional_libdir" != "X/usr/lib"; then
8439 haveit=
8440 if test "X$additional_libdir" = "X/usr/local/lib"; then
8441 if test -n "$GCC"; then
8442 case $host_os in
8443 linux*) haveit=yes;;
8444 esac
8445 fi
8446 fi
8447 if test -z "$haveit"; then
8448 haveit=
8449 for x in $LDFLAGS $LIBINTL; do
8450
8451 acl_save_prefix="$prefix"
8452 prefix="$acl_final_prefix"
8453 acl_save_exec_prefix="$exec_prefix"
8454 exec_prefix="$acl_final_exec_prefix"
8455 eval x=\"$x\"
8456 exec_prefix="$acl_save_exec_prefix"
8457 prefix="$acl_save_prefix"
8458
8459 if test "X$x" = "X-L$additional_libdir"; then
8460 haveit=yes
8461 break
8462 fi
8463 done
8464 if test -z "$haveit"; then
8465 if test -d "$additional_libdir"; then
8466 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8467 fi
8468 fi
8469 haveit=
8470 for x in $LDFLAGS $LTLIBINTL; do
8471
8472 acl_save_prefix="$prefix"
8473 prefix="$acl_final_prefix"
8474 acl_save_exec_prefix="$exec_prefix"
8475 exec_prefix="$acl_final_exec_prefix"
8476 eval x=\"$x\"
8477 exec_prefix="$acl_save_exec_prefix"
8478 prefix="$acl_save_prefix"
8479
8480 if test "X$x" = "X-L$additional_libdir"; then
8481 haveit=yes
8482 break
8483 fi
8484 done
8485 if test -z "$haveit"; then
8486 if test -d "$additional_libdir"; then
8487 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8488 fi
8489 fi
8490 fi
8491 fi
8492 ;;
8493 -R*)
8494 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8495 if test "$enable_rpath" != no; then
8496 haveit=
8497 for x in $rpathdirs; do
8498 if test "X$x" = "X$dir"; then
8499 haveit=yes
8500 break
8501 fi
8502 done
8503 if test -z "$haveit"; then
8504 rpathdirs="$rpathdirs $dir"
8505 fi
8506 haveit=
8507 for x in $ltrpathdirs; do
8508 if test "X$x" = "X$dir"; then
8509 haveit=yes
8510 break
8511 fi
8512 done
8513 if test -z "$haveit"; then
8514 ltrpathdirs="$ltrpathdirs $dir"
8515 fi
8516 fi
8517 ;;
8518 -l*)
8519 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8520 ;;
8521 *.la)
8522 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8523 ;;
8524 *)
8525 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8526 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8527 ;;
8528 esac
8529 done
8530 fi
8531 else
8532 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
8533 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8534 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8535 else
8536 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
8537 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
8538 fi
8539 fi
8540 fi
8541 fi
8542 done
8543 done
8544 if test "X$rpathdirs" != "X"; then
8545 if test -n "$hardcode_libdir_separator"; then
8546 alldirs=
8547 for found_dir in $rpathdirs; do
8548 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8549 done
8550 acl_save_libdir="$libdir"
8551 libdir="$alldirs"
8552 eval flag=\"$hardcode_libdir_flag_spec\"
8553 libdir="$acl_save_libdir"
8554 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8555 else
8556 for found_dir in $rpathdirs; do
8557 acl_save_libdir="$libdir"
8558 libdir="$found_dir"
8559 eval flag=\"$hardcode_libdir_flag_spec\"
8560 libdir="$acl_save_libdir"
8561 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8562 done
8563 fi
8564 fi
8565 if test "X$ltrpathdirs" != "X"; then
8566 for found_dir in $ltrpathdirs; do
8567 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8568 done
8569 fi
8570
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8572 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8573 if eval \${$gt_func_gnugettext_libintl+:} false; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 gt_save_CPPFLAGS="$CPPFLAGS"
8577 CPPFLAGS="$CPPFLAGS $INCINTL"
8578 gt_save_LIBS="$LIBS"
8579 LIBS="$LIBS $LIBINTL"
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582
8583 #include <libintl.h>
8584 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8585 extern int _nl_msg_cat_cntr;
8586 extern
8587 #ifdef __cplusplus
8588 "C"
8589 #endif
8590 const char *_nl_expand_alias (const char *);
8591 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8592 #else
8593 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8594 #endif
8595 $gt_revision_test_code
8596
8597 int
8598 main ()
8599 {
8600
8601 bindtextdomain ("", "");
8602 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8603
8604 ;
8605 return 0;
8606 }
8607 _ACEOF
8608 if ac_fn_c_try_link "$LINENO"; then :
8609 eval "$gt_func_gnugettext_libintl=yes"
8610 else
8611 eval "$gt_func_gnugettext_libintl=no"
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext \
8614 conftest$ac_exeext conftest.$ac_ext
8615 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8616 LIBS="$LIBS $LIBICONV"
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619
8620 #include <libintl.h>
8621 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8622 extern int _nl_msg_cat_cntr;
8623 extern
8624 #ifdef __cplusplus
8625 "C"
8626 #endif
8627 const char *_nl_expand_alias (const char *);
8628 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8629 #else
8630 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8631 #endif
8632 $gt_revision_test_code
8633
8634 int
8635 main ()
8636 {
8637
8638 bindtextdomain ("", "");
8639 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8640
8641 ;
8642 return 0;
8643 }
8644 _ACEOF
8645 if ac_fn_c_try_link "$LINENO"; then :
8646 LIBINTL="$LIBINTL $LIBICONV"
8647 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8648 eval "$gt_func_gnugettext_libintl=yes"
8649
8650 fi
8651 rm -f core conftest.err conftest.$ac_objext \
8652 conftest$ac_exeext conftest.$ac_ext
8653 fi
8654 CPPFLAGS="$gt_save_CPPFLAGS"
8655 LIBS="$gt_save_LIBS"
8656 fi
8657 eval ac_res=\$$gt_func_gnugettext_libintl
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8659 $as_echo "$ac_res" >&6; }
8660 fi
8661
8662 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8663 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8664 && test "$PACKAGE" != gettext-runtime \
8665 && test "$PACKAGE" != gettext-tools; }; then
8666 gt_use_preinstalled_gnugettext=yes
8667 else
8668 LIBINTL=
8669 LTLIBINTL=
8670 INCINTL=
8671 fi
8672
8673
8674
8675 if test -n "$INTL_MACOSX_LIBS"; then
8676 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8677 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8678 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8679 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8680 fi
8681 fi
8682
8683 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8684 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8685
8686 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8687
8688 else
8689 USE_NLS=no
8690 fi
8691 fi
8692
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8694 $as_echo_n "checking whether to use NLS... " >&6; }
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8696 $as_echo "$USE_NLS" >&6; }
8697 if test "$USE_NLS" = "yes"; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8699 $as_echo_n "checking where the gettext function comes from... " >&6; }
8700 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8701 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8702 gt_source="external libintl"
8703 else
8704 gt_source="libc"
8705 fi
8706 else
8707 gt_source="included intl directory"
8708 fi
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8710 $as_echo "$gt_source" >&6; }
8711 fi
8712
8713 if test "$USE_NLS" = "yes"; then
8714
8715 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8716 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8718 $as_echo_n "checking how to link with libintl... " >&6; }
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8720 $as_echo "$LIBINTL" >&6; }
8721
8722 for element in $INCINTL; do
8723 haveit=
8724 for x in $CPPFLAGS; do
8725
8726 acl_save_prefix="$prefix"
8727 prefix="$acl_final_prefix"
8728 acl_save_exec_prefix="$exec_prefix"
8729 exec_prefix="$acl_final_exec_prefix"
8730 eval x=\"$x\"
8731 exec_prefix="$acl_save_exec_prefix"
8732 prefix="$acl_save_prefix"
8733
8734 if test "X$x" = "X$element"; then
8735 haveit=yes
8736 break
8737 fi
8738 done
8739 if test -z "$haveit"; then
8740 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8741 fi
8742 done
8743
8744 fi
8745
8746
8747 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8748
8749
8750 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8751
8752 fi
8753
8754 POSUB=po
8755 fi
8756
8757
8758
8759 INTLLIBS="$LIBINTL"
8760
8761
8762
8763
8764
8765
8766 fi
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8779 $as_echo_n "checking whether NLS is requested... " >&6; }
8780 if test x"$USE_NLS" != xyes; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8782 $as_echo "no" >&6; }
8783 else
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8785 $as_echo "yes" >&6; }
8786
8787 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8788
8789
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8791 $as_echo_n "checking for catalogs to be installed... " >&6; }
8792 # Look for .po and .gmo files in the source directory.
8793 CATALOGS=
8794 XLINGUAS=
8795 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8796 # If there aren't any .gmo files the shell will give us the
8797 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8798 # weeded out.
8799 case "$cat" in *\**)
8800 continue;;
8801 esac
8802 # The quadruple backslash is collapsed to a double backslash
8803 # by the backticks, then collapsed again by the double quotes,
8804 # leaving us with one backslash in the sed expression (right
8805 # before the dot that mustn't act as a wildcard).
8806 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8807 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8808 # The user is allowed to set LINGUAS to a list of languages to
8809 # install catalogs for. If it's empty that means "all of them."
8810 if test "x$LINGUAS" = x; then
8811 CATALOGS="$CATALOGS $cat"
8812 XLINGUAS="$XLINGUAS $lang"
8813 else
8814 case "$LINGUAS" in *$lang*)
8815 CATALOGS="$CATALOGS $cat"
8816 XLINGUAS="$XLINGUAS $lang"
8817 ;;
8818 esac
8819 fi
8820 done
8821 LINGUAS="$XLINGUAS"
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8823 $as_echo "$LINGUAS" >&6; }
8824
8825
8826 DATADIRNAME=share
8827
8828 INSTOBJEXT=.mo
8829
8830 GENCAT=gencat
8831
8832 CATOBJEXT=.gmo
8833
8834 fi
8835
8836
8837
8838
8839 # Prepare PATH_SEPARATOR.
8840 # The user is always right.
8841 if test "${PATH_SEPARATOR+set}" != set; then
8842 echo "#! /bin/sh" >conf$$.sh
8843 echo "exit 0" >>conf$$.sh
8844 chmod +x conf$$.sh
8845 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8846 PATH_SEPARATOR=';'
8847 else
8848 PATH_SEPARATOR=:
8849 fi
8850 rm -f conf$$.sh
8851 fi
8852
8853 # Find out how to test for executable files. Don't use a zero-byte file,
8854 # as systems may use methods other than mode bits to determine executability.
8855 cat >conf$$.file <<_ASEOF
8856 #! /bin/sh
8857 exit 0
8858 _ASEOF
8859 chmod +x conf$$.file
8860 if test -x conf$$.file >/dev/null 2>&1; then
8861 ac_executable_p="test -x"
8862 else
8863 ac_executable_p="test -f"
8864 fi
8865 rm -f conf$$.file
8866
8867 # Extract the first word of "msgfmt", so it can be a program name with args.
8868 set dummy msgfmt; ac_word=$2
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870 $as_echo_n "checking for $ac_word... " >&6; }
8871 if ${ac_cv_path_MSGFMT+:} false; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 case "$MSGFMT" in
8875 [\\/]* | ?:[\\/]*)
8876 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8877 ;;
8878 *)
8879 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8880 for ac_dir in $PATH; do
8881 IFS="$ac_save_IFS"
8882 test -z "$ac_dir" && ac_dir=.
8883 for ac_exec_ext in '' $ac_executable_extensions; do
8884 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8885 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
8886 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8887 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8888 break 2
8889 fi
8890 fi
8891 done
8892 done
8893 IFS="$ac_save_IFS"
8894 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8895 ;;
8896 esac
8897 fi
8898 MSGFMT="$ac_cv_path_MSGFMT"
8899 if test "$MSGFMT" != ":"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8901 $as_echo "$MSGFMT" >&6; }
8902 else
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8905 fi
8906
8907 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8908 set dummy gmsgfmt; ac_word=$2
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910 $as_echo_n "checking for $ac_word... " >&6; }
8911 if ${ac_cv_path_GMSGFMT+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 case $GMSGFMT in
8915 [\\/]* | ?:[\\/]*)
8916 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8917 ;;
8918 *)
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 for as_dir in $PATH
8921 do
8922 IFS=$as_save_IFS
8923 test -z "$as_dir" && as_dir=.
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8926 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8928 break 2
8929 fi
8930 done
8931 done
8932 IFS=$as_save_IFS
8933
8934 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8935 ;;
8936 esac
8937 fi
8938 GMSGFMT=$ac_cv_path_GMSGFMT
8939 if test -n "$GMSGFMT"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8941 $as_echo "$GMSGFMT" >&6; }
8942 else
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 $as_echo "no" >&6; }
8945 fi
8946
8947
8948
8949
8950 # Prepare PATH_SEPARATOR.
8951 # The user is always right.
8952 if test "${PATH_SEPARATOR+set}" != set; then
8953 echo "#! /bin/sh" >conf$$.sh
8954 echo "exit 0" >>conf$$.sh
8955 chmod +x conf$$.sh
8956 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8957 PATH_SEPARATOR=';'
8958 else
8959 PATH_SEPARATOR=:
8960 fi
8961 rm -f conf$$.sh
8962 fi
8963
8964 # Find out how to test for executable files. Don't use a zero-byte file,
8965 # as systems may use methods other than mode bits to determine executability.
8966 cat >conf$$.file <<_ASEOF
8967 #! /bin/sh
8968 exit 0
8969 _ASEOF
8970 chmod +x conf$$.file
8971 if test -x conf$$.file >/dev/null 2>&1; then
8972 ac_executable_p="test -x"
8973 else
8974 ac_executable_p="test -f"
8975 fi
8976 rm -f conf$$.file
8977
8978 # Extract the first word of "xgettext", so it can be a program name with args.
8979 set dummy xgettext; ac_word=$2
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8981 $as_echo_n "checking for $ac_word... " >&6; }
8982 if ${ac_cv_path_XGETTEXT+:} false; then :
8983 $as_echo_n "(cached) " >&6
8984 else
8985 case "$XGETTEXT" in
8986 [\\/]* | ?:[\\/]*)
8987 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8988 ;;
8989 *)
8990 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8991 for ac_dir in $PATH; do
8992 IFS="$ac_save_IFS"
8993 test -z "$ac_dir" && ac_dir=.
8994 for ac_exec_ext in '' $ac_executable_extensions; do
8995 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8996 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8997 (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
8998 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8999 break 2
9000 fi
9001 fi
9002 done
9003 done
9004 IFS="$ac_save_IFS"
9005 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9006 ;;
9007 esac
9008 fi
9009 XGETTEXT="$ac_cv_path_XGETTEXT"
9010 if test "$XGETTEXT" != ":"; then
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
9012 $as_echo "$XGETTEXT" >&6; }
9013 else
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9015 $as_echo "no" >&6; }
9016 fi
9017
9018 rm -f messages.po
9019
9020
9021 # Prepare PATH_SEPARATOR.
9022 # The user is always right.
9023 if test "${PATH_SEPARATOR+set}" != set; then
9024 echo "#! /bin/sh" >conf$$.sh
9025 echo "exit 0" >>conf$$.sh
9026 chmod +x conf$$.sh
9027 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9028 PATH_SEPARATOR=';'
9029 else
9030 PATH_SEPARATOR=:
9031 fi
9032 rm -f conf$$.sh
9033 fi
9034
9035 # Find out how to test for executable files. Don't use a zero-byte file,
9036 # as systems may use methods other than mode bits to determine executability.
9037 cat >conf$$.file <<_ASEOF
9038 #! /bin/sh
9039 exit 0
9040 _ASEOF
9041 chmod +x conf$$.file
9042 if test -x conf$$.file >/dev/null 2>&1; then
9043 ac_executable_p="test -x"
9044 else
9045 ac_executable_p="test -f"
9046 fi
9047 rm -f conf$$.file
9048
9049 # Extract the first word of "msgmerge", so it can be a program name with args.
9050 set dummy msgmerge; ac_word=$2
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9052 $as_echo_n "checking for $ac_word... " >&6; }
9053 if ${ac_cv_path_MSGMERGE+:} false; then :
9054 $as_echo_n "(cached) " >&6
9055 else
9056 case "$MSGMERGE" in
9057 [\\/]* | ?:[\\/]*)
9058 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
9059 ;;
9060 *)
9061 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9062 for ac_dir in $PATH; do
9063 IFS="$ac_save_IFS"
9064 test -z "$ac_dir" && ac_dir=.
9065 for ac_exec_ext in '' $ac_executable_extensions; do
9066 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9067 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
9068 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
9069 break 2
9070 fi
9071 fi
9072 done
9073 done
9074 IFS="$ac_save_IFS"
9075 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
9076 ;;
9077 esac
9078 fi
9079 MSGMERGE="$ac_cv_path_MSGMERGE"
9080 if test "$MSGMERGE" != ":"; then
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
9082 $as_echo "$MSGMERGE" >&6; }
9083 else
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9085 $as_echo "no" >&6; }
9086 fi
9087
9088
9089 if test "$GMSGFMT" != ":"; then
9090 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
9091 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9092 : ;
9093 else
9094 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
9096 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
9097 GMSGFMT=":"
9098 fi
9099 fi
9100
9101 if test "$XGETTEXT" != ":"; then
9102 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
9103 (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
9104 : ;
9105 else
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
9107 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
9108 XGETTEXT=":"
9109 fi
9110 rm -f messages.po
9111 fi
9112
9113 ac_config_commands="$ac_config_commands default-2"
9114
9115
9116
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9118 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9119 if ${ac_cv_c_bigendian+:} false; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 ac_cv_c_bigendian=unknown
9123 # See if we're dealing with a universal compiler.
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9126 #ifndef __APPLE_CC__
9127 not a universal capable compiler
9128 #endif
9129 typedef int dummy;
9130
9131 _ACEOF
9132 if ac_fn_c_try_compile "$LINENO"; then :
9133
9134 # Check for potential -arch flags. It is not universal unless
9135 # there are at least two -arch flags with different values.
9136 ac_arch=
9137 ac_prev=
9138 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9139 if test -n "$ac_prev"; then
9140 case $ac_word in
9141 i?86 | x86_64 | ppc | ppc64)
9142 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9143 ac_arch=$ac_word
9144 else
9145 ac_cv_c_bigendian=universal
9146 break
9147 fi
9148 ;;
9149 esac
9150 ac_prev=
9151 elif test "x$ac_word" = "x-arch"; then
9152 ac_prev=arch
9153 fi
9154 done
9155 fi
9156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9157 if test $ac_cv_c_bigendian = unknown; then
9158 # See if sys/param.h defines the BYTE_ORDER macro.
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9161 #include <sys/types.h>
9162 #include <sys/param.h>
9163
9164 int
9165 main ()
9166 {
9167 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9168 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9169 && LITTLE_ENDIAN)
9170 bogus endian macros
9171 #endif
9172
9173 ;
9174 return 0;
9175 }
9176 _ACEOF
9177 if ac_fn_c_try_compile "$LINENO"; then :
9178 # It does; now see whether it defined to BIG_ENDIAN or not.
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181 #include <sys/types.h>
9182 #include <sys/param.h>
9183
9184 int
9185 main ()
9186 {
9187 #if BYTE_ORDER != BIG_ENDIAN
9188 not big endian
9189 #endif
9190
9191 ;
9192 return 0;
9193 }
9194 _ACEOF
9195 if ac_fn_c_try_compile "$LINENO"; then :
9196 ac_cv_c_bigendian=yes
9197 else
9198 ac_cv_c_bigendian=no
9199 fi
9200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 fi
9202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9203 fi
9204 if test $ac_cv_c_bigendian = unknown; then
9205 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 #include <limits.h>
9209
9210 int
9211 main ()
9212 {
9213 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9214 bogus endian macros
9215 #endif
9216
9217 ;
9218 return 0;
9219 }
9220 _ACEOF
9221 if ac_fn_c_try_compile "$LINENO"; then :
9222 # It does; now see whether it defined to _BIG_ENDIAN or not.
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9225 #include <limits.h>
9226
9227 int
9228 main ()
9229 {
9230 #ifndef _BIG_ENDIAN
9231 not big endian
9232 #endif
9233
9234 ;
9235 return 0;
9236 }
9237 _ACEOF
9238 if ac_fn_c_try_compile "$LINENO"; then :
9239 ac_cv_c_bigendian=yes
9240 else
9241 ac_cv_c_bigendian=no
9242 fi
9243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9244 fi
9245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246 fi
9247 if test $ac_cv_c_bigendian = unknown; then
9248 # Compile a test program.
9249 if test "$cross_compiling" = yes; then :
9250 # Try to guess by grepping values from an object file.
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 short int ascii_mm[] =
9254 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9255 short int ascii_ii[] =
9256 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9257 int use_ascii (int i) {
9258 return ascii_mm[i] + ascii_ii[i];
9259 }
9260 short int ebcdic_ii[] =
9261 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9262 short int ebcdic_mm[] =
9263 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9264 int use_ebcdic (int i) {
9265 return ebcdic_mm[i] + ebcdic_ii[i];
9266 }
9267 extern int foo;
9268
9269 int
9270 main ()
9271 {
9272 return use_ascii (foo) == use_ebcdic (foo);
9273 ;
9274 return 0;
9275 }
9276 _ACEOF
9277 if ac_fn_c_try_compile "$LINENO"; then :
9278 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9279 ac_cv_c_bigendian=yes
9280 fi
9281 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9282 if test "$ac_cv_c_bigendian" = unknown; then
9283 ac_cv_c_bigendian=no
9284 else
9285 # finding both strings is unlikely to happen, but who knows?
9286 ac_cv_c_bigendian=unknown
9287 fi
9288 fi
9289 fi
9290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9291 else
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9294 $ac_includes_default
9295 int
9296 main ()
9297 {
9298
9299 /* Are we little or big endian? From Harbison&Steele. */
9300 union
9301 {
9302 long int l;
9303 char c[sizeof (long int)];
9304 } u;
9305 u.l = 1;
9306 return u.c[sizeof (long int) - 1] == 1;
9307
9308 ;
9309 return 0;
9310 }
9311 _ACEOF
9312 if ac_fn_c_try_run "$LINENO"; then :
9313 ac_cv_c_bigendian=no
9314 else
9315 ac_cv_c_bigendian=yes
9316 fi
9317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9318 conftest.$ac_objext conftest.beam conftest.$ac_ext
9319 fi
9320
9321 fi
9322 fi
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9324 $as_echo "$ac_cv_c_bigendian" >&6; }
9325 case $ac_cv_c_bigendian in #(
9326 yes)
9327 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9328 ;; #(
9329 no)
9330 ;; #(
9331 universal)
9332
9333 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9334
9335 ;; #(
9336 *)
9337 as_fn_error $? "unknown endianness
9338 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9339 esac
9340
9341
9342
9343
9344 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
9345 NATIVE_LINKER_TRUE=
9346 NATIVE_LINKER_FALSE='#'
9347 else
9348 NATIVE_LINKER_TRUE='#'
9349 NATIVE_LINKER_FALSE=
9350 fi
9351
9352 if test "$GCC" = yes; then
9353 GCC_TRUE=
9354 GCC_FALSE='#'
9355 else
9356 GCC_TRUE='#'
9357 GCC_FALSE=
9358 fi
9359
9360
9361 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
9362 NATIVE_OR_CROSS_LINKER_TRUE=
9363 NATIVE_OR_CROSS_LINKER_FALSE='#'
9364 else
9365 NATIVE_OR_CROSS_LINKER_TRUE='#'
9366 NATIVE_OR_CROSS_LINKER_FALSE=
9367 fi
9368
9369
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
9371 $as_echo_n "checking whether static linking works... " >&6; }
9372 if ${gold_cv_lib_static+:} false; then :
9373 $as_echo_n "(cached) " >&6
9374 else
9375 LDFLAGS_hold=$LDFLAGS
9376 LDFLAGS="$LDFLAGS -static"
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9379
9380 void f() { }
9381 int
9382 main ()
9383 {
9384
9385 ;
9386 return 0;
9387 }
9388 _ACEOF
9389 if ac_fn_c_try_link "$LINENO"; then :
9390 gold_cv_lib_static=yes
9391 else
9392 gold_cv_lib_static=no
9393 fi
9394 rm -f core conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
9396 LDFLAGS=$LDFLAGS_hold
9397 fi
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
9399 $as_echo "$gold_cv_lib_static" >&6; }
9400 if test "$gold_cv_lib_static" = "yes"; then
9401 HAVE_STATIC_TRUE=
9402 HAVE_STATIC_FALSE='#'
9403 else
9404 HAVE_STATIC_TRUE='#'
9405 HAVE_STATIC_FALSE=
9406 fi
9407
9408
9409 if
9410 case $target_cpu in
9411 powerpc*) false;;
9412 x86_64) false;;
9413 sparc64) false;;
9414 s390x) false;;
9415 *) true;;
9416 esac; then
9417 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
9418 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
9419 else
9420 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
9421 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
9422 fi
9423
9424
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
9426 $as_echo_n "checking for gcc >= 4.1... " >&6; }
9427 if ${gold_cv_prog_gcc41+:} false; then :
9428 $as_echo_n "(cached) " >&6
9429 else
9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9432
9433 #if !defined __GNUC__
9434 error
9435 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
9436 error
9437 #endif
9438
9439 _ACEOF
9440 if ac_fn_c_try_compile "$LINENO"; then :
9441 gold_cv_prog_gcc41=yes
9442 else
9443 gold_cv_prog_gcc41=no
9444 fi
9445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446 fi
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
9448 $as_echo "$gold_cv_prog_gcc41" >&6; }
9449
9450 save_CFLAGS="$CFLAGS"
9451 CFLAGS="$CFLAGS -mcmodel=medium"
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9454 int i;
9455 _ACEOF
9456 if ac_fn_c_try_compile "$LINENO"; then :
9457 have_mcmodel_medium=yes
9458 else
9459 have_mcmodel_medium=no
9460 fi
9461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462 CFLAGS="$save_CFLAGS"
9463 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
9464 MCMODEL_MEDIUM_TRUE=
9465 MCMODEL_MEDIUM_FALSE='#'
9466 else
9467 MCMODEL_MEDIUM_TRUE='#'
9468 MCMODEL_MEDIUM_FALSE=
9469 fi
9470
9471
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 9" >&5
9473 $as_echo_n "checking for gcc >= 9... " >&6; }
9474 if ${gold_cv_prog_gcc9+:} false; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479
9480 #if !defined __GNUC__ || __GNUC__ < 9
9481 error
9482 #endif
9483
9484 _ACEOF
9485 if ac_fn_c_try_compile "$LINENO"; then :
9486 gold_cv_prog_gcc9=yes
9487 else
9488 gold_cv_prog_gcc9=no
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 fi
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc9" >&5
9493 $as_echo "$gold_cv_prog_gcc9" >&6; }
9494 if test "$gold_cv_prog_gcc9" = "yes"; then
9495 GCC9_TRUE=
9496 GCC9_FALSE='#'
9497 else
9498 GCC9_TRUE='#'
9499 GCC9_FALSE=
9500 fi
9501
9502
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fcf-protection" >&5
9504 $as_echo_n "checking for -fcf-protection... " >&6; }
9505 if ${gold_cv_cflags_cf_protection+:} false; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509 /* end confdefs.h. */
9510
9511 #if !defined __x86_64__ || !defined __CET__
9512 error
9513 #endif
9514
9515 _ACEOF
9516 if ac_fn_c_try_compile "$LINENO"; then :
9517 gold_cv_cflags_cf_protection=yes
9518 else
9519 gold_cv_cflags_cf_protection=no
9520 fi
9521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9522 fi
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_cflags_cf_protection" >&5
9524 $as_echo "$gold_cv_cflags_cf_protection" >&6; }
9525 if test "$gold_cv_cflags_cf_protection" = "yes"; then
9526 CFLAGS_CF_PROTECTION_TRUE=
9527 CFLAGS_CF_PROTECTION_FALSE='#'
9528 else
9529 CFLAGS_CF_PROTECTION_TRUE='#'
9530 CFLAGS_CF_PROTECTION_FALSE=
9531 fi
9532
9533
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
9535 $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
9536 if ${gold_cv_merge_constants+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539
9540 save_CFLAGS="$CFLAGS"
9541 CFLAGS="$CFLAGS -fmerge-constants"
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544 const char *s = "foo";
9545 _ACEOF
9546 if ac_fn_c_try_compile "$LINENO"; then :
9547 gold_cv_merge_constants=yes
9548 else
9549 gold_cv_merge_constants=no
9550 fi
9551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9552 CFLAGS="$save_CFLAGS"
9553 fi
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
9555 $as_echo "$gold_cv_merge_constants" >&6; }
9556
9557 if test "$gold_cv_merge_constants" = yes; then :
9558 MERGE_CONSTANTS_FLAG=-fmerge-constants
9559 else
9560 MERGE_CONSTANTS_FLAG=
9561 fi
9562
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
9564 $as_echo_n "checking for thread support... " >&6; }
9565 if ${gold_cv_c_thread+:} false; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9570 __thread int i = 1;
9571 _ACEOF
9572 if ac_fn_c_try_compile "$LINENO"; then :
9573 gold_cv_c_thread=yes
9574 else
9575 gold_cv_c_thread=no
9576 fi
9577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9578 fi
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
9580 $as_echo "$gold_cv_c_thread" >&6; }
9581
9582 if test "$gold_cv_c_thread" = "yes"; then
9583 TLS_TRUE=
9584 TLS_FALSE='#'
9585 else
9586 TLS_TRUE='#'
9587 TLS_FALSE=
9588 fi
9589
9590
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
9592 $as_echo_n "checking for glibc >= 2.4... " >&6; }
9593 if ${gold_cv_lib_glibc24+:} false; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598
9599 #include <features.h>
9600 #if !defined __GLIBC__
9601 error
9602 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
9603 error
9604 #endif
9605
9606 _ACEOF
9607 if ac_fn_c_try_compile "$LINENO"; then :
9608 gold_cv_lib_glibc24=yes
9609 else
9610 gold_cv_lib_glibc24=no
9611 fi
9612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9613 fi
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
9615 $as_echo "$gold_cv_lib_glibc24" >&6; }
9616
9617 if test "$gold_cv_lib_glibc24" = "yes"; then
9618 STATIC_TLS_TRUE=
9619 STATIC_TLS_FALSE='#'
9620 else
9621 STATIC_TLS_TRUE='#'
9622 STATIC_TLS_FALSE=
9623 fi
9624
9625
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
9627 $as_echo_n "checking for omp support... " >&6; }
9628 if ${gold_cv_c_threadprivate+:} false; then :
9629 $as_echo_n "(cached) " >&6
9630 else
9631 save_CFLAGS="$CFLAGS"
9632 CFLAGS="$CFLAGS -fopenmp"
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635
9636 #include <omp.h>
9637 int i;
9638 #pragma omp threadprivate (i)
9639
9640 _ACEOF
9641 if ac_fn_c_try_compile "$LINENO"; then :
9642 gold_cv_c_threadprivate=yes
9643 else
9644 gold_cv_c_threadprivate=no
9645 fi
9646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9647 CFLAGS="$save_CFLAGS"
9648 fi
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
9650 $as_echo "$gold_cv_c_threadprivate" >&6; }
9651 if test "$gold_cv_c_threadprivate" = "yes"; then
9652
9653 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
9654
9655 fi
9656 if test "$gold_cv_c_threadprivate" = "yes"; then
9657 OMP_SUPPORT_TRUE=
9658 OMP_SUPPORT_FALSE='#'
9659 else
9660 OMP_SUPPORT_TRUE='#'
9661 OMP_SUPPORT_FALSE=
9662 fi
9663
9664
9665 save_CFLAGS="$CFLAGS"
9666 CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9669
9670 __thread int i;
9671 void foo (void)
9672 {
9673 i = 10;
9674 }
9675
9676 _ACEOF
9677 if ac_fn_c_try_compile "$LINENO"; then :
9678 have_tls_gnu2=yes
9679 else
9680 have_tls_gnu2=no
9681 fi
9682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9683 CFLAGS="$save_CFLAGS"
9684 if test "$have_tls_gnu2" = "yes"; then
9685 TLS_GNU2_DIALECT_TRUE=
9686 TLS_GNU2_DIALECT_FALSE='#'
9687 else
9688 TLS_GNU2_DIALECT_TRUE='#'
9689 TLS_GNU2_DIALECT_FALSE=
9690 fi
9691
9692
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
9694 $as_echo_n "checking for glibc >= 2.9... " >&6; }
9695 if ${gold_cv_lib_glibc29+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9700
9701 #include <features.h>
9702 #if !defined __GLIBC__
9703 error
9704 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
9705 error
9706 #endif
9707
9708 _ACEOF
9709 if ac_fn_c_try_compile "$LINENO"; then :
9710 gold_cv_lib_glibc29=yes
9711 else
9712 gold_cv_lib_glibc29=no
9713 fi
9714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715 fi
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
9717 $as_echo "$gold_cv_lib_glibc29" >&6; }
9718
9719 if test "$gold_cv_lib_glibc29" = "yes"; then
9720 TLS_DESCRIPTORS_TRUE=
9721 TLS_DESCRIPTORS_FALSE='#'
9722 else
9723 TLS_DESCRIPTORS_TRUE='#'
9724 TLS_DESCRIPTORS_FALSE=
9725 fi
9726
9727
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
9729 $as_echo_n "checking for -frandom-seed support... " >&6; }
9730 if ${gold_cv_c_random_seed+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 save_CFLAGS="$CFLAGS"
9734 CFLAGS="$CFLAGS -frandom-seed=foo"
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737 int i;
9738 _ACEOF
9739 if ac_fn_c_try_compile "$LINENO"; then :
9740 gold_cv_c_random_seed=yes
9741 else
9742 gold_cv_c_random_seed=no
9743 fi
9744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745 CFLAGS="$save_CFLAGS"
9746 fi
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
9748 $as_echo "$gold_cv_c_random_seed" >&6; }
9749 if test "$gold_cv_c_random_seed" = "yes"; then
9750 # In Makefile, '$@' will be expanded to be the name of the file
9751 # being built, providing a unique seed for each file.
9752 RANDOM_SEED_CFLAGS=-frandom-seed=\$@
9753 fi
9754
9755
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
9757 $as_echo_n "checking for glibc ifunc support... " >&6; }
9758 if ${gold_cv_lib_glibc_ifunc+:} false; then :
9759 $as_echo_n "(cached) " >&6
9760 else
9761 save_LDFLAGS="$LDFLAGS"
9762 LDFLAGS="$LDFLAGS -static"
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9765
9766 #include <features.h>
9767 #if !defined __GLIBC__
9768 error
9769 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
9770 error
9771 #endif
9772 void func (void) { }
9773 void invoke (void);
9774 __asm__(".type invoke, %gnu_indirect_function");
9775 typedef void (*funcptr) (void);
9776 funcptr dispatch (void) __asm__ ("invoke");
9777 funcptr dispatch (void) { return &func; }
9778 int
9779 main ()
9780 {
9781 invoke();
9782 ;
9783 return 0;
9784 }
9785
9786 _ACEOF
9787 if ac_fn_c_try_link "$LINENO"; then :
9788
9789 if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
9790 gold_cv_lib_glibc_ifunc=both
9791 else
9792 gold_cv_lib_glibc_ifunc=dyn
9793 fi
9794 else
9795 gold_cv_lib_glibc_ifunc=no
9796 fi
9797 rm -f core conftest.err conftest.$ac_objext \
9798 conftest$ac_exeext conftest.$ac_ext
9799 LDFLAGS="$save_LDFLAGS"
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
9802 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
9803
9804 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
9805 IFUNC_TRUE=
9806 IFUNC_FALSE='#'
9807 else
9808 IFUNC_TRUE='#'
9809 IFUNC_FALSE=
9810 fi
9811
9812 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
9813 IFUNC_STATIC_TRUE=
9814 IFUNC_STATIC_FALSE='#'
9815 else
9816 IFUNC_STATIC_TRUE='#'
9817 IFUNC_STATIC_FALSE=
9818 fi
9819
9820
9821
9822 # Set the 'development' global.
9823 . $srcdir/../bfd/development.sh
9824
9825 # Set acp_cpp_for_build variable
9826 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
9827
9828 # Default set of GCC warnings to enable.
9829 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9830 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9831
9832 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9835 __GNUC__
9836 _ACEOF
9837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9838 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
9839
9840 else
9841 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
9842 fi
9843 rm -f conftest*
9844
9845
9846 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9849 __GNUC__
9850 _ACEOF
9851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9852 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9853
9854 else
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9857 __clang__
9858 _ACEOF
9859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9860 $EGREP "^__clang__$" >/dev/null 2>&1; then :
9861 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
9862 fi
9863 rm -f conftest*
9864
9865 fi
9866 rm -f conftest*
9867
9868
9869 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
9870 WARN_WRITE_STRINGS=""
9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9873 __GNUC__
9874 _ACEOF
9875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9876 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
9877
9878 else
9879 WARN_WRITE_STRINGS="-Wwrite-strings"
9880 fi
9881 rm -f conftest*
9882
9883
9884 # Verify CC_FOR_BUILD to be compatible with warning flags
9885
9886 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 __GNUC__
9890 _ACEOF
9891 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9892 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
9893
9894 else
9895 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
9896 fi
9897 rm -f conftest*
9898
9899
9900 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9903 __GNUC__
9904 _ACEOF
9905 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9906 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9907
9908 else
9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9911 __clang__
9912 _ACEOF
9913 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9914 $EGREP "^__clang__$" >/dev/null 2>&1; then :
9915 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
9916 fi
9917 rm -f conftest*
9918
9919 fi
9920 rm -f conftest*
9921
9922
9923 # Check whether --enable-werror was given.
9924 if test "${enable_werror+set}" = set; then :
9925 enableval=$enable_werror; case "${enableval}" in
9926 yes | y) ERROR_ON_WARNING="yes" ;;
9927 no | n) ERROR_ON_WARNING="no" ;;
9928 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
9929 esac
9930 fi
9931
9932
9933 # Disable -Wformat by default when using gcc on mingw
9934 case "${host}" in
9935 *-*-mingw32*)
9936 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9937 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
9938 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
9939 fi
9940 ;;
9941 *) ;;
9942 esac
9943
9944 # Enable -Werror by default when using gcc. Turn it off for releases.
9945 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
9946 ERROR_ON_WARNING=yes
9947 fi
9948
9949 NO_WERROR=
9950 if test "${ERROR_ON_WARNING}" = yes ; then
9951 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9952 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
9953 NO_WERROR="-Wno-error"
9954 fi
9955
9956 if test "${GCC}" = yes ; then
9957 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9958 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
9959 fi
9960
9961 # Check whether --enable-build-warnings was given.
9962 if test "${enable_build_warnings+set}" = set; then :
9963 enableval=$enable_build_warnings; case "${enableval}" in
9964 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9965 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
9966 no) if test "${GCC}" = yes ; then
9967 WARN_CFLAGS="-w"
9968 WARN_CFLAGS_FOR_BUILD="-w"
9969 fi;;
9970 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9971 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
9972 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
9973 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9974 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
9975 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
9976 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
9977 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9978 esac
9979 fi
9980
9981
9982 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
9983 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9984 fi
9985
9986
9987
9988
9989
9990
9991
9992 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
9993
9994
9995
9996 # Check whether --with-gold-ldflags was given.
9997 if test "${with_gold_ldflags+set}" = set; then :
9998 withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9999 GOLD_LDFLAGS=
10000 else
10001 GOLD_LDFLAGS=$withval
10002 fi
10003 else
10004 GOLD_LDFLAGS=
10005 fi
10006
10007
10008
10009
10010 # Check whether --with-gold-ldadd was given.
10011 if test "${with_gold_ldadd+set}" = set; then :
10012 withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
10013 GOLD_LDADD=
10014 else
10015 GOLD_LDADD=$withval
10016 fi
10017 else
10018 GOLD_LDADD=
10019 fi
10020
10021
10022
10023 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
10024
10025
10026 for ac_header in sys/mman.h
10027 do :
10028 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
10029 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10030 cat >>confdefs.h <<_ACEOF
10031 #define HAVE_SYS_MMAN_H 1
10032 _ACEOF
10033
10034 fi
10035
10036 done
10037
10038 for ac_func in chsize mmap link
10039 do :
10040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10041 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10042 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10043 cat >>confdefs.h <<_ACEOF
10044 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10045 _ACEOF
10046
10047 fi
10048 done
10049
10050 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
10051 if test "x$ac_cv_func_pread" = xyes; then :
10052 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
10053
10054 else
10055 case " $LIBOBJS " in
10056 *" pread.$ac_objext "* ) ;;
10057 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
10058 ;;
10059 esac
10060
10061 fi
10062
10063 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
10064 if test "x$ac_cv_func_ftruncate" = xyes; then :
10065 $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
10066
10067 else
10068 case " $LIBOBJS " in
10069 *" ftruncate.$ac_objext "* ) ;;
10070 *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
10071 ;;
10072 esac
10073
10074 fi
10075
10076 ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll"
10077 if test "x$ac_cv_func_ffsll" = xyes; then :
10078 $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
10079
10080 else
10081 case " $LIBOBJS " in
10082 *" ffsll.$ac_objext "* ) ;;
10083 *) LIBOBJS="$LIBOBJS ffsll.$ac_objext"
10084 ;;
10085 esac
10086
10087 fi
10088
10089
10090
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
10092 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
10093 if ${gold_cv_lib_mremap_maymove+:} false; then :
10094 $as_echo_n "(cached) " >&6
10095 else
10096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10097 /* end confdefs.h. */
10098
10099
10100 #include <sys/mman.h>
10101 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
10102
10103 int
10104 main ()
10105 {
10106
10107 ;
10108 return 0;
10109 }
10110 _ACEOF
10111 if ac_fn_c_try_link "$LINENO"; then :
10112 gold_cv_lib_mremap_maymove=yes
10113 else
10114 gold_cv_lib_mremap_maymove=no
10115 fi
10116 rm -f core conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118 fi
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
10120 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
10121 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
10122
10123 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
10124
10125 else
10126 case " $LIBOBJS " in
10127 *" mremap.$ac_objext "* ) ;;
10128 *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
10129 ;;
10130 esac
10131
10132 fi
10133
10134 # Link in zlib/zstd if we can. This allows us to write compressed sections.
10135
10136 # Use the system's zlib library.
10137 zlibdir="-L\$(top_builddir)/../zlib"
10138 zlibinc="-I\$(top_srcdir)/../zlib"
10139
10140 # Check whether --with-system-zlib was given.
10141 if test "${with_system_zlib+set}" = set; then :
10142 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
10143 zlibdir=
10144 zlibinc=
10145 fi
10146
10147 fi
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10160 if test -n "$ac_tool_prefix"; then
10161 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10162 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10164 $as_echo_n "checking for $ac_word... " >&6; }
10165 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168 case $PKG_CONFIG in
10169 [\\/]* | ?:[\\/]*)
10170 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10171 ;;
10172 *)
10173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174 for as_dir in $PATH
10175 do
10176 IFS=$as_save_IFS
10177 test -z "$as_dir" && as_dir=.
10178 for ac_exec_ext in '' $ac_executable_extensions; do
10179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10180 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10182 break 2
10183 fi
10184 done
10185 done
10186 IFS=$as_save_IFS
10187
10188 ;;
10189 esac
10190 fi
10191 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10192 if test -n "$PKG_CONFIG"; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10194 $as_echo "$PKG_CONFIG" >&6; }
10195 else
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197 $as_echo "no" >&6; }
10198 fi
10199
10200
10201 fi
10202 if test -z "$ac_cv_path_PKG_CONFIG"; then
10203 ac_pt_PKG_CONFIG=$PKG_CONFIG
10204 # Extract the first word of "pkg-config", so it can be a program name with args.
10205 set dummy pkg-config; ac_word=$2
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10207 $as_echo_n "checking for $ac_word... " >&6; }
10208 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10209 $as_echo_n "(cached) " >&6
10210 else
10211 case $ac_pt_PKG_CONFIG in
10212 [\\/]* | ?:[\\/]*)
10213 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10214 ;;
10215 *)
10216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217 for as_dir in $PATH
10218 do
10219 IFS=$as_save_IFS
10220 test -z "$as_dir" && as_dir=.
10221 for ac_exec_ext in '' $ac_executable_extensions; do
10222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10223 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10225 break 2
10226 fi
10227 done
10228 done
10229 IFS=$as_save_IFS
10230
10231 ;;
10232 esac
10233 fi
10234 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10235 if test -n "$ac_pt_PKG_CONFIG"; then
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10237 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10238 else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240 $as_echo "no" >&6; }
10241 fi
10242
10243 if test "x$ac_pt_PKG_CONFIG" = x; then
10244 PKG_CONFIG=""
10245 else
10246 case $cross_compiling:$ac_tool_warned in
10247 yes:)
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10250 ac_tool_warned=yes ;;
10251 esac
10252 PKG_CONFIG=$ac_pt_PKG_CONFIG
10253 fi
10254 else
10255 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10256 fi
10257
10258 fi
10259 if test -n "$PKG_CONFIG"; then
10260 _pkg_min_version=0.9.0
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10262 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10263 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10265 $as_echo "yes" >&6; }
10266 else
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10268 $as_echo "no" >&6; }
10269 PKG_CONFIG=""
10270 fi
10271 fi
10272
10273
10274 # Check whether --with-zstd was given.
10275 if test "${with_zstd+set}" = set; then :
10276 withval=$with_zstd;
10277 else
10278 with_zstd=auto
10279 fi
10280
10281
10282 if test "$with_zstd" != no; then :
10283
10284 pkg_failed=no
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
10286 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
10287
10288 if test -n "$ZSTD_CFLAGS"; then
10289 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
10290 elif test -n "$PKG_CONFIG"; then
10291 if test -n "$PKG_CONFIG" && \
10292 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
10293 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
10294 ac_status=$?
10295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10296 test $ac_status = 0; }; then
10297 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
10298 test "x$?" != "x0" && pkg_failed=yes
10299 else
10300 pkg_failed=yes
10301 fi
10302 else
10303 pkg_failed=untried
10304 fi
10305 if test -n "$ZSTD_LIBS"; then
10306 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
10307 elif test -n "$PKG_CONFIG"; then
10308 if test -n "$PKG_CONFIG" && \
10309 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
10310 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
10311 ac_status=$?
10312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10313 test $ac_status = 0; }; then
10314 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
10315 test "x$?" != "x0" && pkg_failed=yes
10316 else
10317 pkg_failed=yes
10318 fi
10319 else
10320 pkg_failed=untried
10321 fi
10322
10323 if test $pkg_failed = no; then
10324 pkg_save_LDFLAGS="$LDFLAGS"
10325 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
10326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h. */
10328
10329 int
10330 main ()
10331 {
10332
10333 ;
10334 return 0;
10335 }
10336 _ACEOF
10337 if ac_fn_c_try_link "$LINENO"; then :
10338
10339 else
10340 pkg_failed=yes
10341 fi
10342 rm -f core conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
10344 LDFLAGS=$pkg_save_LDFLAGS
10345 fi
10346
10347
10348
10349 if test $pkg_failed = yes; then
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351 $as_echo "no" >&6; }
10352
10353 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10354 _pkg_short_errors_supported=yes
10355 else
10356 _pkg_short_errors_supported=no
10357 fi
10358 if test $_pkg_short_errors_supported = yes; then
10359 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
10360 else
10361 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
10362 fi
10363 # Put the nasty error message in config.log where it belongs
10364 echo "$ZSTD_PKG_ERRORS" >&5
10365
10366
10367 if test "$with_zstd" = yes; then
10368 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
10369 fi
10370
10371 elif test $pkg_failed = untried; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }
10374
10375 if test "$with_zstd" = yes; then
10376 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
10377 fi
10378
10379 else
10380 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
10381 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10383 $as_echo "yes" >&6; }
10384
10385
10386 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
10387
10388
10389 fi
10390
10391 fi
10392
10393 if test "$pkg_cv_ZSTD_LIBS" != ""; then
10394 HAVE_ZSTD_TRUE=
10395 HAVE_ZSTD_FALSE='#'
10396 else
10397 HAVE_ZSTD_TRUE='#'
10398 HAVE_ZSTD_FALSE=
10399 fi
10400
10401
10402 # Check whether --enable-threads was given.
10403 if test "${enable_threads+set}" = set; then :
10404 enableval=$enable_threads; case "${enableval}" in
10405 yes | "") threads=yes ;;
10406 no) threads=no ;;
10407 auto) threads=auto ;;
10408 *) threads=yes ;;
10409 esac
10410 else
10411 threads=auto
10412 fi
10413
10414
10415 if test "$threads" = "yes"; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10417 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10418 if ${ac_cv_path_SED+:} false; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10421 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10422 for ac_i in 1 2 3 4 5 6 7; do
10423 ac_script="$ac_script$as_nl$ac_script"
10424 done
10425 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10426 { ac_script=; unset ac_script;}
10427 if test -z "$SED"; then
10428 ac_path_SED_found=false
10429 # Loop through the user's path and test for each of PROGNAME-LIST
10430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431 for as_dir in $PATH
10432 do
10433 IFS=$as_save_IFS
10434 test -z "$as_dir" && as_dir=.
10435 for ac_prog in sed gsed; do
10436 for ac_exec_ext in '' $ac_executable_extensions; do
10437 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10438 as_fn_executable_p "$ac_path_SED" || continue
10439 # Check for GNU ac_path_SED and select it if it is found.
10440 # Check for GNU $ac_path_SED
10441 case `"$ac_path_SED" --version 2>&1` in
10442 *GNU*)
10443 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10444 *)
10445 ac_count=0
10446 $as_echo_n 0123456789 >"conftest.in"
10447 while :
10448 do
10449 cat "conftest.in" "conftest.in" >"conftest.tmp"
10450 mv "conftest.tmp" "conftest.in"
10451 cp "conftest.in" "conftest.nl"
10452 $as_echo '' >> "conftest.nl"
10453 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10454 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10455 as_fn_arith $ac_count + 1 && ac_count=$as_val
10456 if test $ac_count -gt ${ac_path_SED_max-0}; then
10457 # Best one so far, save it but keep looking for a better one
10458 ac_cv_path_SED="$ac_path_SED"
10459 ac_path_SED_max=$ac_count
10460 fi
10461 # 10*(2^10) chars as input seems more than enough
10462 test $ac_count -gt 10 && break
10463 done
10464 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10465 esac
10466
10467 $ac_path_SED_found && break 3
10468 done
10469 done
10470 done
10471 IFS=$as_save_IFS
10472 if test -z "$ac_cv_path_SED"; then
10473 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10474 fi
10475 else
10476 ac_cv_path_SED=$SED
10477 fi
10478
10479 fi
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10481 $as_echo "$ac_cv_path_SED" >&6; }
10482 SED="$ac_cv_path_SED"
10483 rm -f conftest.sed
10484
10485
10486
10487
10488
10489 ac_ext=c
10490 ac_cpp='$CPP $CPPFLAGS'
10491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10494
10495 ax_pthread_ok=no
10496
10497 # We used to check for pthread.h first, but this fails if pthread.h
10498 # requires special compiler flags (e.g. on Tru64 or Sequent).
10499 # It gets checked for in the link test anyway.
10500
10501 # First of all, check if the user has set any of the PTHREAD_LIBS,
10502 # etcetera environment variables, and if threads linking works using
10503 # them:
10504 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10505 ax_pthread_save_CC="$CC"
10506 ax_pthread_save_CFLAGS="$CFLAGS"
10507 ax_pthread_save_LIBS="$LIBS"
10508 if test "x$PTHREAD_CC" != "x"; then :
10509 CC="$PTHREAD_CC"
10510 fi
10511 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10512 LIBS="$PTHREAD_LIBS $LIBS"
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10514 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10517
10518 /* Override any GCC internal prototype to avoid an error.
10519 Use char because int might match the return type of a GCC
10520 builtin and then its argument prototype would still apply. */
10521 #ifdef __cplusplus
10522 extern "C"
10523 #endif
10524 char pthread_join ();
10525 int
10526 main ()
10527 {
10528 return pthread_join ();
10529 ;
10530 return 0;
10531 }
10532 _ACEOF
10533 if ac_fn_c_try_link "$LINENO"; then :
10534 ax_pthread_ok=yes
10535 fi
10536 rm -f core conftest.err conftest.$ac_objext \
10537 conftest$ac_exeext conftest.$ac_ext
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10539 $as_echo "$ax_pthread_ok" >&6; }
10540 if test "x$ax_pthread_ok" = "xno"; then
10541 PTHREAD_LIBS=""
10542 PTHREAD_CFLAGS=""
10543 fi
10544 CC="$ax_pthread_save_CC"
10545 CFLAGS="$ax_pthread_save_CFLAGS"
10546 LIBS="$ax_pthread_save_LIBS"
10547 fi
10548
10549 # We must check for the threads library under a number of different
10550 # names; the ordering is very important because some systems
10551 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10552 # libraries is broken (non-POSIX).
10553
10554 # Create a list of thread flags to try. Items starting with a "-" are
10555 # C compiler flags, and other items are library names, except for "none"
10556 # which indicates that we try without any flags at all, and "pthread-config"
10557 # which is a program returning the flags for the Pth emulation library.
10558
10559 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10560
10561 # The ordering *is* (sometimes) important. Some notes on the
10562 # individual items follow:
10563
10564 # pthreads: AIX (must check this before -lpthread)
10565 # none: in case threads are in libc; should be tried before -Kthread and
10566 # other compiler flags to prevent continual compiler warnings
10567 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10568 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10569 # (Note: HP C rejects this with "bad form for `-t' option")
10570 # -pthreads: Solaris/gcc (Note: HP C also rejects)
10571 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10572 # doesn't hurt to check since this sometimes defines pthreads and
10573 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
10574 # is present but should not be used directly; and before -mthreads,
10575 # because the compiler interprets this as "-mt" + "-hreads")
10576 # -mthreads: Mingw32/gcc, Lynx/gcc
10577 # pthread: Linux, etcetera
10578 # --thread-safe: KAI C++
10579 # pthread-config: use pthread-config program (for GNU Pth library)
10580
10581 case $host_os in
10582
10583 freebsd*)
10584
10585 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10586 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10587
10588 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
10589 ;;
10590
10591 hpux*)
10592
10593 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10594 # multi-threading and also sets -lpthread."
10595
10596 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
10597 ;;
10598
10599 openedition*)
10600
10601 # IBM z/OS requires a feature-test macro to be defined in order to
10602 # enable POSIX threads at all, so give the user a hint if this is
10603 # not set. (We don't define these ourselves, as they can affect
10604 # other portions of the system API in unpredictable ways.)
10605
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10608
10609 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10610 AX_PTHREAD_ZOS_MISSING
10611 # endif
10612
10613 _ACEOF
10614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10615 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10617 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10618 fi
10619 rm -f conftest*
10620
10621 ;;
10622
10623 solaris*)
10624
10625 # On Solaris (at least, for some versions), libc contains stubbed
10626 # (non-functional) versions of the pthreads routines, so link-based
10627 # tests will erroneously succeed. (N.B.: The stubs are missing
10628 # pthread_cleanup_push, or rather a function called by this macro,
10629 # so we could check for that, but who knows whether they'll stub
10630 # that too in a future libc.) So we'll check first for the
10631 # standard Solaris way of linking pthreads (-mt -lpthread).
10632
10633 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
10634 ;;
10635 esac
10636
10637 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10638
10639 if test "x$GCC" = "xyes"; then :
10640 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
10641 fi
10642
10643 # The presence of a feature test macro requesting re-entrant function
10644 # definitions is, on some systems, a strong hint that pthreads support is
10645 # correctly enabled
10646
10647 case $host_os in
10648 darwin* | hpux* | linux* | osf* | solaris*)
10649 ax_pthread_check_macro="_REENTRANT"
10650 ;;
10651
10652 aix*)
10653 ax_pthread_check_macro="_THREAD_SAFE"
10654 ;;
10655
10656 *)
10657 ax_pthread_check_macro="--"
10658 ;;
10659 esac
10660 if test "x$ax_pthread_check_macro" = "x--"; then :
10661 ax_pthread_check_cond=0
10662 else
10663 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
10664 fi
10665
10666 # Are we compiling with Clang?
10667
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10669 $as_echo_n "checking whether $CC is Clang... " >&6; }
10670 if ${ax_cv_PTHREAD_CLANG+:} false; then :
10671 $as_echo_n "(cached) " >&6
10672 else
10673 ax_cv_PTHREAD_CLANG=no
10674 # Note that Autoconf sets GCC=yes for Clang as well as GCC
10675 if test "x$GCC" = "xyes"; then
10676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677 /* end confdefs.h. */
10678 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10679 # if defined(__clang__) && defined(__llvm__)
10680 AX_PTHREAD_CC_IS_CLANG
10681 # endif
10682
10683 _ACEOF
10684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10685 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
10686 ax_cv_PTHREAD_CLANG=yes
10687 fi
10688 rm -f conftest*
10689
10690 fi
10691
10692 fi
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10694 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10695 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
10696
10697 ax_pthread_clang_warning=no
10698
10699 # Clang needs special handling, because older versions handle the -pthread
10700 # option in a rather... idiosyncratic way
10701
10702 if test "x$ax_pthread_clang" = "xyes"; then
10703
10704 # Clang takes -pthread; it has never supported any other flag
10705
10706 # (Note 1: This will need to be revisited if a system that Clang
10707 # supports has POSIX threads in a separate library. This tends not
10708 # to be the way of modern systems, but it's conceivable.)
10709
10710 # (Note 2: On some systems, notably Darwin, -pthread is not needed
10711 # to get POSIX threads support; the API is always present and
10712 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
10713 # -pthread does define _REENTRANT, and while the Darwin headers
10714 # ignore this macro, third-party headers might not.)
10715
10716 PTHREAD_CFLAGS="-pthread"
10717 PTHREAD_LIBS=
10718
10719 ax_pthread_ok=yes
10720
10721 # However, older versions of Clang make a point of warning the user
10722 # that, in an invocation where only linking and no compilation is
10723 # taking place, the -pthread option has no effect ("argument unused
10724 # during compilation"). They expect -pthread to be passed in only
10725 # when source code is being compiled.
10726 #
10727 # Problem is, this is at odds with the way Automake and most other
10728 # C build frameworks function, which is that the same flags used in
10729 # compilation (CFLAGS) are also used in linking. Many systems
10730 # supported by AX_PTHREAD require exactly this for POSIX threads
10731 # support, and in fact it is often not straightforward to specify a
10732 # flag that is used only in the compilation phase and not in
10733 # linking. Such a scenario is extremely rare in practice.
10734 #
10735 # Even though use of the -pthread flag in linking would only print
10736 # a warning, this can be a nuisance for well-run software projects
10737 # that build with -Werror. So if the active version of Clang has
10738 # this misfeature, we search for an option to squash it.
10739
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10741 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10742 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
10743 $as_echo_n "(cached) " >&6
10744 else
10745 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
10746 # Create an alternate version of $ac_link that compiles and
10747 # links in two steps (.c -> .o, .o -> exe) instead of one
10748 # (.c -> exe), because the warning occurs only in the second
10749 # step
10750 ax_pthread_save_ac_link="$ac_link"
10751 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10752 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10753 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10754 ax_pthread_save_CFLAGS="$CFLAGS"
10755 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
10756 if test "x$ax_pthread_try" = "xunknown"; then :
10757 break
10758 fi
10759 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10760 ac_link="$ax_pthread_save_ac_link"
10761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10762 /* end confdefs.h. */
10763 int main(void){return 0;}
10764 _ACEOF
10765 if ac_fn_c_try_link "$LINENO"; then :
10766 ac_link="$ax_pthread_2step_ac_link"
10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768 /* end confdefs.h. */
10769 int main(void){return 0;}
10770 _ACEOF
10771 if ac_fn_c_try_link "$LINENO"; then :
10772 break
10773 fi
10774 rm -f core conftest.err conftest.$ac_objext \
10775 conftest$ac_exeext conftest.$ac_ext
10776
10777 fi
10778 rm -f core conftest.err conftest.$ac_objext \
10779 conftest$ac_exeext conftest.$ac_ext
10780 done
10781 ac_link="$ax_pthread_save_ac_link"
10782 CFLAGS="$ax_pthread_save_CFLAGS"
10783 if test "x$ax_pthread_try" = "x"; then :
10784 ax_pthread_try=no
10785 fi
10786 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
10787
10788 fi
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10790 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10791
10792 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10793 no | unknown) ;;
10794 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10795 esac
10796
10797 fi # $ax_pthread_clang = yes
10798
10799 if test "x$ax_pthread_ok" = "xno"; then
10800 for ax_pthread_try_flag in $ax_pthread_flags; do
10801
10802 case $ax_pthread_try_flag in
10803 none)
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10805 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
10806 ;;
10807
10808 -mt,pthread)
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10810 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10811 PTHREAD_CFLAGS="-mt"
10812 PTHREAD_LIBS="-lpthread"
10813 ;;
10814
10815 -*)
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
10817 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
10818 PTHREAD_CFLAGS="$ax_pthread_try_flag"
10819 ;;
10820
10821 pthread-config)
10822 # Extract the first word of "pthread-config", so it can be a program name with args.
10823 set dummy pthread-config; ac_word=$2
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10825 $as_echo_n "checking for $ac_word... " >&6; }
10826 if ${ac_cv_prog_ax_pthread_config+:} false; then :
10827 $as_echo_n "(cached) " >&6
10828 else
10829 if test -n "$ax_pthread_config"; then
10830 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10831 else
10832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833 for as_dir in $PATH
10834 do
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10839 ac_cv_prog_ax_pthread_config="yes"
10840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10841 break 2
10842 fi
10843 done
10844 done
10845 IFS=$as_save_IFS
10846
10847 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10848 fi
10849 fi
10850 ax_pthread_config=$ac_cv_prog_ax_pthread_config
10851 if test -n "$ax_pthread_config"; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10853 $as_echo "$ax_pthread_config" >&6; }
10854 else
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856 $as_echo "no" >&6; }
10857 fi
10858
10859
10860 if test "x$ax_pthread_config" = "xno"; then :
10861 continue
10862 fi
10863 PTHREAD_CFLAGS="`pthread-config --cflags`"
10864 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10865 ;;
10866
10867 *)
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
10869 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
10870 PTHREAD_LIBS="-l$ax_pthread_try_flag"
10871 ;;
10872 esac
10873
10874 ax_pthread_save_CFLAGS="$CFLAGS"
10875 ax_pthread_save_LIBS="$LIBS"
10876 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10877 LIBS="$PTHREAD_LIBS $LIBS"
10878
10879 # Check for various functions. We must include pthread.h,
10880 # since some functions may be macros. (On the Sequent, we
10881 # need a special flag -Kthread to make this header compile.)
10882 # We check for pthread_join because it is in -lpthread on IRIX
10883 # while pthread_create is in libc. We check for pthread_attr_init
10884 # due to DEC craziness with -lpthreads. We check for
10885 # pthread_cleanup_push because it is one of the few pthread
10886 # functions on Solaris that doesn't have a non-functional libc stub.
10887 # We try pthread_create on general principles.
10888
10889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10891 #include <pthread.h>
10892 # if $ax_pthread_check_cond
10893 # error "$ax_pthread_check_macro must be defined"
10894 # endif
10895 static void routine(void *a) { a = 0; }
10896 static void *start_routine(void *a) { return a; }
10897 int
10898 main ()
10899 {
10900 pthread_t th; pthread_attr_t attr;
10901 pthread_create(&th, 0, start_routine, 0);
10902 pthread_join(th, 0);
10903 pthread_attr_init(&attr);
10904 pthread_cleanup_push(routine, 0);
10905 pthread_cleanup_pop(0) /* ; */
10906 ;
10907 return 0;
10908 }
10909 _ACEOF
10910 if ac_fn_c_try_link "$LINENO"; then :
10911 ax_pthread_ok=yes
10912 fi
10913 rm -f core conftest.err conftest.$ac_objext \
10914 conftest$ac_exeext conftest.$ac_ext
10915
10916 CFLAGS="$ax_pthread_save_CFLAGS"
10917 LIBS="$ax_pthread_save_LIBS"
10918
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10920 $as_echo "$ax_pthread_ok" >&6; }
10921 if test "x$ax_pthread_ok" = "xyes"; then :
10922 break
10923 fi
10924
10925 PTHREAD_LIBS=""
10926 PTHREAD_CFLAGS=""
10927 done
10928 fi
10929
10930 # Various other checks:
10931 if test "x$ax_pthread_ok" = "xyes"; then
10932 ax_pthread_save_CFLAGS="$CFLAGS"
10933 ax_pthread_save_LIBS="$LIBS"
10934 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10935 LIBS="$PTHREAD_LIBS $LIBS"
10936
10937 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10939 $as_echo_n "checking for joinable pthread attribute... " >&6; }
10940 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
10944 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10947 #include <pthread.h>
10948 int
10949 main ()
10950 {
10951 int attr = $ax_pthread_attr; return attr /* ; */
10952 ;
10953 return 0;
10954 }
10955 _ACEOF
10956 if ac_fn_c_try_link "$LINENO"; then :
10957 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
10958 fi
10959 rm -f core conftest.err conftest.$ac_objext \
10960 conftest$ac_exeext conftest.$ac_ext
10961 done
10962
10963 fi
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
10965 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
10966 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
10967 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
10968 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
10969
10970 cat >>confdefs.h <<_ACEOF
10971 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
10972 _ACEOF
10973
10974 ax_pthread_joinable_attr_defined=yes
10975
10976 fi
10977
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
10979 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
10980 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
10981 $as_echo_n "(cached) " >&6
10982 else
10983 ax_cv_PTHREAD_SPECIAL_FLAGS=no
10984 case $host_os in
10985 solaris*)
10986 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
10987 ;;
10988 esac
10989
10990 fi
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
10992 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
10993 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
10994 test "x$ax_pthread_special_flags_added" != "xyes"; then :
10995 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
10996 ax_pthread_special_flags_added=yes
10997 fi
10998
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11000 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11001 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11006 #include <pthread.h>
11007 int
11008 main ()
11009 {
11010 int i = PTHREAD_PRIO_INHERIT;
11011 ;
11012 return 0;
11013 }
11014 _ACEOF
11015 if ac_fn_c_try_link "$LINENO"; then :
11016 ax_cv_PTHREAD_PRIO_INHERIT=yes
11017 else
11018 ax_cv_PTHREAD_PRIO_INHERIT=no
11019 fi
11020 rm -f core conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
11022
11023 fi
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11025 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11026 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11027 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11028
11029 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11030
11031 ax_pthread_prio_inherit_defined=yes
11032
11033 fi
11034
11035 CFLAGS="$ax_pthread_save_CFLAGS"
11036 LIBS="$ax_pthread_save_LIBS"
11037
11038 # More AIX lossage: compile with *_r variant
11039 if test "x$GCC" != "xyes"; then
11040 case $host_os in
11041 aix*)
11042 case "x/$CC" in #(
11043 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
11044 #handle absolute path differently from PATH based program lookup
11045 case "x$CC" in #(
11046 x/*) :
11047 if as_fn_executable_p ${CC}_r; then :
11048 PTHREAD_CC="${CC}_r"
11049 fi ;; #(
11050 *) :
11051 for ac_prog in ${CC}_r
11052 do
11053 # Extract the first word of "$ac_prog", so it can be a program name with args.
11054 set dummy $ac_prog; ac_word=$2
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11056 $as_echo_n "checking for $ac_word... " >&6; }
11057 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
11058 $as_echo_n "(cached) " >&6
11059 else
11060 if test -n "$PTHREAD_CC"; then
11061 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
11062 else
11063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11064 for as_dir in $PATH
11065 do
11066 IFS=$as_save_IFS
11067 test -z "$as_dir" && as_dir=.
11068 for ac_exec_ext in '' $ac_executable_extensions; do
11069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11070 ac_cv_prog_PTHREAD_CC="$ac_prog"
11071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11072 break 2
11073 fi
11074 done
11075 done
11076 IFS=$as_save_IFS
11077
11078 fi
11079 fi
11080 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
11081 if test -n "$PTHREAD_CC"; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11083 $as_echo "$PTHREAD_CC" >&6; }
11084 else
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11087 fi
11088
11089
11090 test -n "$PTHREAD_CC" && break
11091 done
11092 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11093 ;;
11094 esac ;; #(
11095 *) :
11096 ;;
11097 esac
11098 ;;
11099 esac
11100 fi
11101 fi
11102
11103 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11104
11105
11106
11107
11108
11109 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11110 if test "x$ax_pthread_ok" = "xyes"; then
11111 threads=yes
11112 :
11113 else
11114 ax_pthread_ok=no
11115 as_fn_error $? "pthread not found" "$LINENO" 5
11116 fi
11117 ac_ext=c
11118 ac_cpp='$CPP $CPPFLAGS'
11119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11122
11123
11124 elif test "$threads" = "auto"; then
11125
11126
11127
11128
11129 ac_ext=c
11130 ac_cpp='$CPP $CPPFLAGS'
11131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11134
11135 ax_pthread_ok=no
11136
11137 # We used to check for pthread.h first, but this fails if pthread.h
11138 # requires special compiler flags (e.g. on Tru64 or Sequent).
11139 # It gets checked for in the link test anyway.
11140
11141 # First of all, check if the user has set any of the PTHREAD_LIBS,
11142 # etcetera environment variables, and if threads linking works using
11143 # them:
11144 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
11145 ax_pthread_save_CC="$CC"
11146 ax_pthread_save_CFLAGS="$CFLAGS"
11147 ax_pthread_save_LIBS="$LIBS"
11148 if test "x$PTHREAD_CC" != "x"; then :
11149 CC="$PTHREAD_CC"
11150 fi
11151 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11152 LIBS="$PTHREAD_LIBS $LIBS"
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
11154 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11157
11158 /* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
11161 #ifdef __cplusplus
11162 extern "C"
11163 #endif
11164 char pthread_join ();
11165 int
11166 main ()
11167 {
11168 return pthread_join ();
11169 ;
11170 return 0;
11171 }
11172 _ACEOF
11173 if ac_fn_c_try_link "$LINENO"; then :
11174 ax_pthread_ok=yes
11175 fi
11176 rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11179 $as_echo "$ax_pthread_ok" >&6; }
11180 if test "x$ax_pthread_ok" = "xno"; then
11181 PTHREAD_LIBS=""
11182 PTHREAD_CFLAGS=""
11183 fi
11184 CC="$ax_pthread_save_CC"
11185 CFLAGS="$ax_pthread_save_CFLAGS"
11186 LIBS="$ax_pthread_save_LIBS"
11187 fi
11188
11189 # We must check for the threads library under a number of different
11190 # names; the ordering is very important because some systems
11191 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
11192 # libraries is broken (non-POSIX).
11193
11194 # Create a list of thread flags to try. Items starting with a "-" are
11195 # C compiler flags, and other items are library names, except for "none"
11196 # which indicates that we try without any flags at all, and "pthread-config"
11197 # which is a program returning the flags for the Pth emulation library.
11198
11199 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
11200
11201 # The ordering *is* (sometimes) important. Some notes on the
11202 # individual items follow:
11203
11204 # pthreads: AIX (must check this before -lpthread)
11205 # none: in case threads are in libc; should be tried before -Kthread and
11206 # other compiler flags to prevent continual compiler warnings
11207 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11208 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
11209 # (Note: HP C rejects this with "bad form for `-t' option")
11210 # -pthreads: Solaris/gcc (Note: HP C also rejects)
11211 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11212 # doesn't hurt to check since this sometimes defines pthreads and
11213 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
11214 # is present but should not be used directly; and before -mthreads,
11215 # because the compiler interprets this as "-mt" + "-hreads")
11216 # -mthreads: Mingw32/gcc, Lynx/gcc
11217 # pthread: Linux, etcetera
11218 # --thread-safe: KAI C++
11219 # pthread-config: use pthread-config program (for GNU Pth library)
11220
11221 case $host_os in
11222
11223 freebsd*)
11224
11225 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11226 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11227
11228 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
11229 ;;
11230
11231 hpux*)
11232
11233 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
11234 # multi-threading and also sets -lpthread."
11235
11236 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
11237 ;;
11238
11239 openedition*)
11240
11241 # IBM z/OS requires a feature-test macro to be defined in order to
11242 # enable POSIX threads at all, so give the user a hint if this is
11243 # not set. (We don't define these ourselves, as they can affect
11244 # other portions of the system API in unpredictable ways.)
11245
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11248
11249 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
11250 AX_PTHREAD_ZOS_MISSING
11251 # endif
11252
11253 _ACEOF
11254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11255 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
11257 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
11258 fi
11259 rm -f conftest*
11260
11261 ;;
11262
11263 solaris*)
11264
11265 # On Solaris (at least, for some versions), libc contains stubbed
11266 # (non-functional) versions of the pthreads routines, so link-based
11267 # tests will erroneously succeed. (N.B.: The stubs are missing
11268 # pthread_cleanup_push, or rather a function called by this macro,
11269 # so we could check for that, but who knows whether they'll stub
11270 # that too in a future libc.) So we'll check first for the
11271 # standard Solaris way of linking pthreads (-mt -lpthread).
11272
11273 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
11274 ;;
11275 esac
11276
11277 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
11278
11279 if test "x$GCC" = "xyes"; then :
11280 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
11281 fi
11282
11283 # The presence of a feature test macro requesting re-entrant function
11284 # definitions is, on some systems, a strong hint that pthreads support is
11285 # correctly enabled
11286
11287 case $host_os in
11288 darwin* | hpux* | linux* | osf* | solaris*)
11289 ax_pthread_check_macro="_REENTRANT"
11290 ;;
11291
11292 aix*)
11293 ax_pthread_check_macro="_THREAD_SAFE"
11294 ;;
11295
11296 *)
11297 ax_pthread_check_macro="--"
11298 ;;
11299 esac
11300 if test "x$ax_pthread_check_macro" = "x--"; then :
11301 ax_pthread_check_cond=0
11302 else
11303 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
11304 fi
11305
11306 # Are we compiling with Clang?
11307
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
11309 $as_echo_n "checking whether $CC is Clang... " >&6; }
11310 if ${ax_cv_PTHREAD_CLANG+:} false; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 ax_cv_PTHREAD_CLANG=no
11314 # Note that Autoconf sets GCC=yes for Clang as well as GCC
11315 if test "x$GCC" = "xyes"; then
11316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h. */
11318 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
11319 # if defined(__clang__) && defined(__llvm__)
11320 AX_PTHREAD_CC_IS_CLANG
11321 # endif
11322
11323 _ACEOF
11324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11325 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
11326 ax_cv_PTHREAD_CLANG=yes
11327 fi
11328 rm -f conftest*
11329
11330 fi
11331
11332 fi
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
11334 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
11335 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
11336
11337 ax_pthread_clang_warning=no
11338
11339 # Clang needs special handling, because older versions handle the -pthread
11340 # option in a rather... idiosyncratic way
11341
11342 if test "x$ax_pthread_clang" = "xyes"; then
11343
11344 # Clang takes -pthread; it has never supported any other flag
11345
11346 # (Note 1: This will need to be revisited if a system that Clang
11347 # supports has POSIX threads in a separate library. This tends not
11348 # to be the way of modern systems, but it's conceivable.)
11349
11350 # (Note 2: On some systems, notably Darwin, -pthread is not needed
11351 # to get POSIX threads support; the API is always present and
11352 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
11353 # -pthread does define _REENTRANT, and while the Darwin headers
11354 # ignore this macro, third-party headers might not.)
11355
11356 PTHREAD_CFLAGS="-pthread"
11357 PTHREAD_LIBS=
11358
11359 ax_pthread_ok=yes
11360
11361 # However, older versions of Clang make a point of warning the user
11362 # that, in an invocation where only linking and no compilation is
11363 # taking place, the -pthread option has no effect ("argument unused
11364 # during compilation"). They expect -pthread to be passed in only
11365 # when source code is being compiled.
11366 #
11367 # Problem is, this is at odds with the way Automake and most other
11368 # C build frameworks function, which is that the same flags used in
11369 # compilation (CFLAGS) are also used in linking. Many systems
11370 # supported by AX_PTHREAD require exactly this for POSIX threads
11371 # support, and in fact it is often not straightforward to specify a
11372 # flag that is used only in the compilation phase and not in
11373 # linking. Such a scenario is extremely rare in practice.
11374 #
11375 # Even though use of the -pthread flag in linking would only print
11376 # a warning, this can be a nuisance for well-run software projects
11377 # that build with -Werror. So if the active version of Clang has
11378 # this misfeature, we search for an option to squash it.
11379
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
11381 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
11382 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
11383 $as_echo_n "(cached) " >&6
11384 else
11385 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
11386 # Create an alternate version of $ac_link that compiles and
11387 # links in two steps (.c -> .o, .o -> exe) instead of one
11388 # (.c -> exe), because the warning occurs only in the second
11389 # step
11390 ax_pthread_save_ac_link="$ac_link"
11391 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
11392 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
11393 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
11394 ax_pthread_save_CFLAGS="$CFLAGS"
11395 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
11396 if test "x$ax_pthread_try" = "xunknown"; then :
11397 break
11398 fi
11399 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
11400 ac_link="$ax_pthread_save_ac_link"
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11403 int main(void){return 0;}
11404 _ACEOF
11405 if ac_fn_c_try_link "$LINENO"; then :
11406 ac_link="$ax_pthread_2step_ac_link"
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11409 int main(void){return 0;}
11410 _ACEOF
11411 if ac_fn_c_try_link "$LINENO"; then :
11412 break
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11416
11417 fi
11418 rm -f core conftest.err conftest.$ac_objext \
11419 conftest$ac_exeext conftest.$ac_ext
11420 done
11421 ac_link="$ax_pthread_save_ac_link"
11422 CFLAGS="$ax_pthread_save_CFLAGS"
11423 if test "x$ax_pthread_try" = "x"; then :
11424 ax_pthread_try=no
11425 fi
11426 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
11427
11428 fi
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
11430 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
11431
11432 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
11433 no | unknown) ;;
11434 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
11435 esac
11436
11437 fi # $ax_pthread_clang = yes
11438
11439 if test "x$ax_pthread_ok" = "xno"; then
11440 for ax_pthread_try_flag in $ax_pthread_flags; do
11441
11442 case $ax_pthread_try_flag in
11443 none)
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11445 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
11446 ;;
11447
11448 -mt,pthread)
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
11450 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
11451 PTHREAD_CFLAGS="-mt"
11452 PTHREAD_LIBS="-lpthread"
11453 ;;
11454
11455 -*)
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
11457 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
11458 PTHREAD_CFLAGS="$ax_pthread_try_flag"
11459 ;;
11460
11461 pthread-config)
11462 # Extract the first word of "pthread-config", so it can be a program name with args.
11463 set dummy pthread-config; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if ${ac_cv_prog_ax_pthread_config+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 if test -n "$ax_pthread_config"; then
11470 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
11471 else
11472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473 for as_dir in $PATH
11474 do
11475 IFS=$as_save_IFS
11476 test -z "$as_dir" && as_dir=.
11477 for ac_exec_ext in '' $ac_executable_extensions; do
11478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11479 ac_cv_prog_ax_pthread_config="yes"
11480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 break 2
11482 fi
11483 done
11484 done
11485 IFS=$as_save_IFS
11486
11487 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
11488 fi
11489 fi
11490 ax_pthread_config=$ac_cv_prog_ax_pthread_config
11491 if test -n "$ax_pthread_config"; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11493 $as_echo "$ax_pthread_config" >&6; }
11494 else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496 $as_echo "no" >&6; }
11497 fi
11498
11499
11500 if test "x$ax_pthread_config" = "xno"; then :
11501 continue
11502 fi
11503 PTHREAD_CFLAGS="`pthread-config --cflags`"
11504 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
11505 ;;
11506
11507 *)
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
11509 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
11510 PTHREAD_LIBS="-l$ax_pthread_try_flag"
11511 ;;
11512 esac
11513
11514 ax_pthread_save_CFLAGS="$CFLAGS"
11515 ax_pthread_save_LIBS="$LIBS"
11516 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11517 LIBS="$PTHREAD_LIBS $LIBS"
11518
11519 # Check for various functions. We must include pthread.h,
11520 # since some functions may be macros. (On the Sequent, we
11521 # need a special flag -Kthread to make this header compile.)
11522 # We check for pthread_join because it is in -lpthread on IRIX
11523 # while pthread_create is in libc. We check for pthread_attr_init
11524 # due to DEC craziness with -lpthreads. We check for
11525 # pthread_cleanup_push because it is one of the few pthread
11526 # functions on Solaris that doesn't have a non-functional libc stub.
11527 # We try pthread_create on general principles.
11528
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11531 #include <pthread.h>
11532 # if $ax_pthread_check_cond
11533 # error "$ax_pthread_check_macro must be defined"
11534 # endif
11535 static void routine(void *a) { a = 0; }
11536 static void *start_routine(void *a) { return a; }
11537 int
11538 main ()
11539 {
11540 pthread_t th; pthread_attr_t attr;
11541 pthread_create(&th, 0, start_routine, 0);
11542 pthread_join(th, 0);
11543 pthread_attr_init(&attr);
11544 pthread_cleanup_push(routine, 0);
11545 pthread_cleanup_pop(0) /* ; */
11546 ;
11547 return 0;
11548 }
11549 _ACEOF
11550 if ac_fn_c_try_link "$LINENO"; then :
11551 ax_pthread_ok=yes
11552 fi
11553 rm -f core conftest.err conftest.$ac_objext \
11554 conftest$ac_exeext conftest.$ac_ext
11555
11556 CFLAGS="$ax_pthread_save_CFLAGS"
11557 LIBS="$ax_pthread_save_LIBS"
11558
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11560 $as_echo "$ax_pthread_ok" >&6; }
11561 if test "x$ax_pthread_ok" = "xyes"; then :
11562 break
11563 fi
11564
11565 PTHREAD_LIBS=""
11566 PTHREAD_CFLAGS=""
11567 done
11568 fi
11569
11570 # Various other checks:
11571 if test "x$ax_pthread_ok" = "xyes"; then
11572 ax_pthread_save_CFLAGS="$CFLAGS"
11573 ax_pthread_save_LIBS="$LIBS"
11574 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11575 LIBS="$PTHREAD_LIBS $LIBS"
11576
11577 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11579 $as_echo_n "checking for joinable pthread attribute... " >&6; }
11580 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
11584 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
11585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11587 #include <pthread.h>
11588 int
11589 main ()
11590 {
11591 int attr = $ax_pthread_attr; return attr /* ; */
11592 ;
11593 return 0;
11594 }
11595 _ACEOF
11596 if ac_fn_c_try_link "$LINENO"; then :
11597 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
11598 fi
11599 rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 done
11602
11603 fi
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
11605 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
11606 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
11607 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
11608 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
11609
11610 cat >>confdefs.h <<_ACEOF
11611 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
11612 _ACEOF
11613
11614 ax_pthread_joinable_attr_defined=yes
11615
11616 fi
11617
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11619 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
11620 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
11621 $as_echo_n "(cached) " >&6
11622 else
11623 ax_cv_PTHREAD_SPECIAL_FLAGS=no
11624 case $host_os in
11625 solaris*)
11626 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
11627 ;;
11628 esac
11629
11630 fi
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11632 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11633 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11634 test "x$ax_pthread_special_flags_added" != "xyes"; then :
11635 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11636 ax_pthread_special_flags_added=yes
11637 fi
11638
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11640 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11641 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11646 #include <pthread.h>
11647 int
11648 main ()
11649 {
11650 int i = PTHREAD_PRIO_INHERIT;
11651 ;
11652 return 0;
11653 }
11654 _ACEOF
11655 if ac_fn_c_try_link "$LINENO"; then :
11656 ax_cv_PTHREAD_PRIO_INHERIT=yes
11657 else
11658 ax_cv_PTHREAD_PRIO_INHERIT=no
11659 fi
11660 rm -f core conftest.err conftest.$ac_objext \
11661 conftest$ac_exeext conftest.$ac_ext
11662
11663 fi
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11665 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11666 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11667 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11668
11669 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11670
11671 ax_pthread_prio_inherit_defined=yes
11672
11673 fi
11674
11675 CFLAGS="$ax_pthread_save_CFLAGS"
11676 LIBS="$ax_pthread_save_LIBS"
11677
11678 # More AIX lossage: compile with *_r variant
11679 if test "x$GCC" != "xyes"; then
11680 case $host_os in
11681 aix*)
11682 case "x/$CC" in #(
11683 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
11684 #handle absolute path differently from PATH based program lookup
11685 case "x$CC" in #(
11686 x/*) :
11687 if as_fn_executable_p ${CC}_r; then :
11688 PTHREAD_CC="${CC}_r"
11689 fi ;; #(
11690 *) :
11691 for ac_prog in ${CC}_r
11692 do
11693 # Extract the first word of "$ac_prog", so it can be a program name with args.
11694 set dummy $ac_prog; ac_word=$2
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696 $as_echo_n "checking for $ac_word... " >&6; }
11697 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
11698 $as_echo_n "(cached) " >&6
11699 else
11700 if test -n "$PTHREAD_CC"; then
11701 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
11702 else
11703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH
11705 do
11706 IFS=$as_save_IFS
11707 test -z "$as_dir" && as_dir=.
11708 for ac_exec_ext in '' $ac_executable_extensions; do
11709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11710 ac_cv_prog_PTHREAD_CC="$ac_prog"
11711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712 break 2
11713 fi
11714 done
11715 done
11716 IFS=$as_save_IFS
11717
11718 fi
11719 fi
11720 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
11721 if test -n "$PTHREAD_CC"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11723 $as_echo "$PTHREAD_CC" >&6; }
11724 else
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11727 fi
11728
11729
11730 test -n "$PTHREAD_CC" && break
11731 done
11732 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11733 ;;
11734 esac ;; #(
11735 *) :
11736 ;;
11737 esac
11738 ;;
11739 esac
11740 fi
11741 fi
11742
11743 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11744
11745
11746
11747
11748
11749 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11750 if test "x$ax_pthread_ok" = "xyes"; then
11751 threads=yes
11752 :
11753 else
11754 ax_pthread_ok=no
11755 threads=no
11756 fi
11757 ac_ext=c
11758 ac_cpp='$CPP $CPPFLAGS'
11759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11762
11763
11764 fi
11765
11766 if test "$threads" = "yes"; then
11767
11768 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
11769
11770 fi
11771 if test "$threads" = "yes"; then
11772 THREADS_TRUE=
11773 THREADS_FALSE='#'
11774 else
11775 THREADS_TRUE='#'
11776 THREADS_FALSE=
11777 fi
11778
11779
11780 # Used to validate --package-metadata= input. Disabled by default.
11781 # Check whether --enable-jansson was given.
11782 if test "${enable_jansson+set}" = set; then :
11783 enableval=$enable_jansson; enable_jansson=$enableval
11784 else
11785 enable_jansson="no"
11786 fi
11787
11788
11789 if test "x$enable_jansson" != "xno"; then
11790
11791
11792
11793
11794
11795
11796
11797 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11798 if test -n "$ac_tool_prefix"; then
11799 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11800 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11802 $as_echo_n "checking for $ac_word... " >&6; }
11803 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11804 $as_echo_n "(cached) " >&6
11805 else
11806 case $PKG_CONFIG in
11807 [\\/]* | ?:[\\/]*)
11808 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11809 ;;
11810 *)
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $PATH
11813 do
11814 IFS=$as_save_IFS
11815 test -z "$as_dir" && as_dir=.
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11818 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 break 2
11821 fi
11822 done
11823 done
11824 IFS=$as_save_IFS
11825
11826 ;;
11827 esac
11828 fi
11829 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11830 if test -n "$PKG_CONFIG"; then
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11832 $as_echo "$PKG_CONFIG" >&6; }
11833 else
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11836 fi
11837
11838
11839 fi
11840 if test -z "$ac_cv_path_PKG_CONFIG"; then
11841 ac_pt_PKG_CONFIG=$PKG_CONFIG
11842 # Extract the first word of "pkg-config", so it can be a program name with args.
11843 set dummy pkg-config; ac_word=$2
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11845 $as_echo_n "checking for $ac_word... " >&6; }
11846 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11847 $as_echo_n "(cached) " >&6
11848 else
11849 case $ac_pt_PKG_CONFIG in
11850 [\\/]* | ?:[\\/]*)
11851 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11852 ;;
11853 *)
11854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855 for as_dir in $PATH
11856 do
11857 IFS=$as_save_IFS
11858 test -z "$as_dir" && as_dir=.
11859 for ac_exec_ext in '' $ac_executable_extensions; do
11860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11861 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11863 break 2
11864 fi
11865 done
11866 done
11867 IFS=$as_save_IFS
11868
11869 ;;
11870 esac
11871 fi
11872 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11873 if test -n "$ac_pt_PKG_CONFIG"; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11875 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11876 else
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11879 fi
11880
11881 if test "x$ac_pt_PKG_CONFIG" = x; then
11882 PKG_CONFIG=""
11883 else
11884 case $cross_compiling:$ac_tool_warned in
11885 yes:)
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11888 ac_tool_warned=yes ;;
11889 esac
11890 PKG_CONFIG=$ac_pt_PKG_CONFIG
11891 fi
11892 else
11893 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11894 fi
11895
11896 fi
11897 if test -n "$PKG_CONFIG"; then
11898 _pkg_min_version=0.9.0
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11900 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11901 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11903 $as_echo "yes" >&6; }
11904 else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11907 PKG_CONFIG=""
11908 fi
11909 fi
11910 if test -n "$PKG_CONFIG"; then :
11911
11912
11913 pkg_failed=no
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
11915 $as_echo_n "checking for jansson... " >&6; }
11916
11917 if test -n "$JANSSON_CFLAGS"; then
11918 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
11919 elif test -n "$PKG_CONFIG"; then
11920 if test -n "$PKG_CONFIG" && \
11921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
11922 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
11923 ac_status=$?
11924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11925 test $ac_status = 0; }; then
11926 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
11927 test "x$?" != "x0" && pkg_failed=yes
11928 else
11929 pkg_failed=yes
11930 fi
11931 else
11932 pkg_failed=untried
11933 fi
11934 if test -n "$JANSSON_LIBS"; then
11935 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
11936 elif test -n "$PKG_CONFIG"; then
11937 if test -n "$PKG_CONFIG" && \
11938 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
11939 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
11940 ac_status=$?
11941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11942 test $ac_status = 0; }; then
11943 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
11944 test "x$?" != "x0" && pkg_failed=yes
11945 else
11946 pkg_failed=yes
11947 fi
11948 else
11949 pkg_failed=untried
11950 fi
11951
11952 if test $pkg_failed = no; then
11953 pkg_save_LDFLAGS="$LDFLAGS"
11954 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h. */
11957
11958 int
11959 main ()
11960 {
11961
11962 ;
11963 return 0;
11964 }
11965 _ACEOF
11966 if ac_fn_c_try_link "$LINENO"; then :
11967
11968 else
11969 pkg_failed=yes
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11973 LDFLAGS=$pkg_save_LDFLAGS
11974 fi
11975
11976
11977
11978 if test $pkg_failed = yes; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11981
11982 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11983 _pkg_short_errors_supported=yes
11984 else
11985 _pkg_short_errors_supported=no
11986 fi
11987 if test $_pkg_short_errors_supported = yes; then
11988 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
11989 else
11990 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
11991 fi
11992 # Put the nasty error message in config.log where it belongs
11993 echo "$JANSSON_PKG_ERRORS" >&5
11994
11995
11996 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
11997
11998 elif test $pkg_failed = untried; then
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 $as_echo "no" >&6; }
12001
12002 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
12003
12004 else
12005 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
12006 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12008 $as_echo "yes" >&6; }
12009
12010
12011 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
12012
12013
12014
12015
12016 fi
12017
12018 else
12019
12020 as_fn_error $? "Cannot find pkg-config" "$LINENO" 5
12021
12022 fi
12023 fi
12024
12025 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12026 if test "x$ac_cv_have_decl_basename" = xyes; then :
12027 ac_have_decl=1
12028 else
12029 ac_have_decl=0
12030 fi
12031
12032 cat >>confdefs.h <<_ACEOF
12033 #define HAVE_DECL_BASENAME $ac_have_decl
12034 _ACEOF
12035 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12036 if test "x$ac_cv_have_decl_ffs" = xyes; then :
12037 ac_have_decl=1
12038 else
12039 ac_have_decl=0
12040 fi
12041
12042 cat >>confdefs.h <<_ACEOF
12043 #define HAVE_DECL_FFS $ac_have_decl
12044 _ACEOF
12045 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12046 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12047 ac_have_decl=1
12048 else
12049 ac_have_decl=0
12050 fi
12051
12052 cat >>confdefs.h <<_ACEOF
12053 #define HAVE_DECL_ASPRINTF $ac_have_decl
12054 _ACEOF
12055 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12056 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12057 ac_have_decl=1
12058 else
12059 ac_have_decl=0
12060 fi
12061
12062 cat >>confdefs.h <<_ACEOF
12063 #define HAVE_DECL_VASPRINTF $ac_have_decl
12064 _ACEOF
12065 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12066 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12067 ac_have_decl=1
12068 else
12069 ac_have_decl=0
12070 fi
12071
12072 cat >>confdefs.h <<_ACEOF
12073 #define HAVE_DECL_SNPRINTF $ac_have_decl
12074 _ACEOF
12075 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12076 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12077 ac_have_decl=1
12078 else
12079 ac_have_decl=0
12080 fi
12081
12082 cat >>confdefs.h <<_ACEOF
12083 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12084 _ACEOF
12085 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12086 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
12087 ac_have_decl=1
12088 else
12089 ac_have_decl=0
12090 fi
12091
12092 cat >>confdefs.h <<_ACEOF
12093 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12094 _ACEOF
12095
12096
12097 save_CFLAGS="$CFLAGS"
12098 CFLAGS="$CFLAGS -Werror -gpubnames"
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12101 int i;
12102 _ACEOF
12103 if ac_fn_c_try_compile "$LINENO"; then :
12104 have_pubnames=yes
12105 else
12106 have_pubnames=no
12107 fi
12108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12109 CFLAGS="$save_CFLAGS"
12110 if test "$have_pubnames" = "yes"; then
12111 HAVE_PUBNAMES_TRUE=
12112 HAVE_PUBNAMES_FALSE='#'
12113 else
12114 HAVE_PUBNAMES_TRUE='#'
12115 HAVE_PUBNAMES_FALSE=
12116 fi
12117
12118
12119 save_CFLAGS="$CFLAGS"
12120 CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12123 int i;
12124 _ACEOF
12125 if ac_fn_c_try_compile "$LINENO"; then :
12126 have_no_use_linker_plugin=yes
12127 else
12128 have_no_use_linker_plugin=no
12129 fi
12130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12131 CFLAGS="$save_CFLAGS"
12132 if test "$have_no_use_linker_plugin" = "yes"; then
12133 HAVE_NO_USE_LINKER_PLUGIN_TRUE=
12134 HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
12135 else
12136 HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
12137 HAVE_NO_USE_LINKER_PLUGIN_FALSE=
12138 fi
12139
12140
12141 ac_ext=cpp
12142 ac_cpp='$CXXCPP $CPPFLAGS'
12143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12146
12147
12148
12149 ac_ext=cpp
12150 ac_cpp='$CXXCPP $CPPFLAGS'
12151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12155 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12156 if test -z "$CXXCPP"; then
12157 if ${ac_cv_prog_CXXCPP+:} false; then :
12158 $as_echo_n "(cached) " >&6
12159 else
12160 # Double quotes because CXXCPP needs to be expanded
12161 for CXXCPP in "$CXX -E" "/lib/cpp"
12162 do
12163 ac_preproc_ok=false
12164 for ac_cxx_preproc_warn_flag in '' yes
12165 do
12166 # Use a header file that comes with gcc, so configuring glibc
12167 # with a fresh cross-compiler works.
12168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12169 # <limits.h> exists even on freestanding compilers.
12170 # On the NeXT, cc -E runs the code through the compiler's parser,
12171 # not just through cpp. "Syntax error" is here to catch this case.
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12174 #ifdef __STDC__
12175 # include <limits.h>
12176 #else
12177 # include <assert.h>
12178 #endif
12179 Syntax error
12180 _ACEOF
12181 if ac_fn_cxx_try_cpp "$LINENO"; then :
12182
12183 else
12184 # Broken: fails on valid input.
12185 continue
12186 fi
12187 rm -f conftest.err conftest.i conftest.$ac_ext
12188
12189 # OK, works on sane cases. Now check whether nonexistent headers
12190 # can be detected and how.
12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h. */
12193 #include <ac_nonexistent.h>
12194 _ACEOF
12195 if ac_fn_cxx_try_cpp "$LINENO"; then :
12196 # Broken: success on invalid input.
12197 continue
12198 else
12199 # Passes both tests.
12200 ac_preproc_ok=:
12201 break
12202 fi
12203 rm -f conftest.err conftest.i conftest.$ac_ext
12204
12205 done
12206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12207 rm -f conftest.i conftest.err conftest.$ac_ext
12208 if $ac_preproc_ok; then :
12209 break
12210 fi
12211
12212 done
12213 ac_cv_prog_CXXCPP=$CXXCPP
12214
12215 fi
12216 CXXCPP=$ac_cv_prog_CXXCPP
12217 else
12218 ac_cv_prog_CXXCPP=$CXXCPP
12219 fi
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12221 $as_echo "$CXXCPP" >&6; }
12222 ac_preproc_ok=false
12223 for ac_cxx_preproc_warn_flag in '' yes
12224 do
12225 # Use a header file that comes with gcc, so configuring glibc
12226 # with a fresh cross-compiler works.
12227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12228 # <limits.h> exists even on freestanding compilers.
12229 # On the NeXT, cc -E runs the code through the compiler's parser,
12230 # not just through cpp. "Syntax error" is here to catch this case.
12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232 /* end confdefs.h. */
12233 #ifdef __STDC__
12234 # include <limits.h>
12235 #else
12236 # include <assert.h>
12237 #endif
12238 Syntax error
12239 _ACEOF
12240 if ac_fn_cxx_try_cpp "$LINENO"; then :
12241
12242 else
12243 # Broken: fails on valid input.
12244 continue
12245 fi
12246 rm -f conftest.err conftest.i conftest.$ac_ext
12247
12248 # OK, works on sane cases. Now check whether nonexistent headers
12249 # can be detected and how.
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12252 #include <ac_nonexistent.h>
12253 _ACEOF
12254 if ac_fn_cxx_try_cpp "$LINENO"; then :
12255 # Broken: success on invalid input.
12256 continue
12257 else
12258 # Passes both tests.
12259 ac_preproc_ok=:
12260 break
12261 fi
12262 rm -f conftest.err conftest.i conftest.$ac_ext
12263
12264 done
12265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12266 rm -f conftest.i conftest.err conftest.$ac_ext
12267 if $ac_preproc_ok; then :
12268
12269 else
12270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12272 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12273 See \`config.log' for more details" "$LINENO" 5; }
12274 fi
12275
12276 ac_ext=cpp
12277 ac_cpp='$CXXCPP $CPPFLAGS'
12278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12281
12282
12283 for ac_header in unordered_set unordered_map
12284 do :
12285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12286 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12287 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12288 cat >>confdefs.h <<_ACEOF
12289 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12290 _ACEOF
12291
12292 fi
12293
12294 done
12295
12296 for ac_header in tr1/unordered_set tr1/unordered_map
12297 do :
12298 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12299 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12300 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12301 cat >>confdefs.h <<_ACEOF
12302 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12303 _ACEOF
12304
12305 fi
12306
12307 done
12308
12309 for ac_header in ext/hash_map ext/hash_set
12310 do :
12311 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12312 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12313 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12314 cat >>confdefs.h <<_ACEOF
12315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12316 _ACEOF
12317
12318 fi
12319
12320 done
12321
12322 for ac_header in byteswap.h
12323 do :
12324 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
12325 if test "x$ac_cv_header_byteswap_h" = xyes; then :
12326 cat >>confdefs.h <<_ACEOF
12327 #define HAVE_BYTESWAP_H 1
12328 _ACEOF
12329
12330 fi
12331
12332 done
12333
12334
12335 ac_fn_cxx_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
12336 "
12337 if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
12338 ac_have_decl=1
12339 else
12340 ac_have_decl=0
12341 fi
12342
12343 cat >>confdefs.h <<_ACEOF
12344 #define HAVE_DECL_BSWAP_16 $ac_have_decl
12345 _ACEOF
12346 ac_fn_cxx_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
12347 "
12348 if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
12349 ac_have_decl=1
12350 else
12351 ac_have_decl=0
12352 fi
12353
12354 cat >>confdefs.h <<_ACEOF
12355 #define HAVE_DECL_BSWAP_32 $ac_have_decl
12356 _ACEOF
12357 ac_fn_cxx_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
12358 "
12359 if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
12360 ac_have_decl=1
12361 else
12362 ac_have_decl=0
12363 fi
12364
12365 cat >>confdefs.h <<_ACEOF
12366 #define HAVE_DECL_BSWAP_64 $ac_have_decl
12367 _ACEOF
12368
12369
12370 for ac_header in windows.h
12371 do :
12372 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12373 if test "x$ac_cv_header_windows_h" = xyes; then :
12374 cat >>confdefs.h <<_ACEOF
12375 #define HAVE_WINDOWS_H 1
12376 _ACEOF
12377
12378 fi
12379
12380 done
12381
12382 for ac_header in dlfcn.h
12383 do :
12384 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
12385 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12386 cat >>confdefs.h <<_ACEOF
12387 #define HAVE_DLFCN_H 1
12388 _ACEOF
12389
12390 fi
12391
12392 done
12393
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12395 $as_echo_n "checking for library containing dlopen... " >&6; }
12396 if ${ac_cv_search_dlopen+:} false; then :
12397 $as_echo_n "(cached) " >&6
12398 else
12399 ac_func_search_save_LIBS=$LIBS
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12402
12403 /* Override any GCC internal prototype to avoid an error.
12404 Use char because int might match the return type of a GCC
12405 builtin and then its argument prototype would still apply. */
12406 #ifdef __cplusplus
12407 extern "C"
12408 #endif
12409 char dlopen ();
12410 int
12411 main ()
12412 {
12413 return dlopen ();
12414 ;
12415 return 0;
12416 }
12417 _ACEOF
12418 for ac_lib in '' dl dld; do
12419 if test -z "$ac_lib"; then
12420 ac_res="none required"
12421 else
12422 ac_res=-l$ac_lib
12423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12424 fi
12425 if ac_fn_cxx_try_link "$LINENO"; then :
12426 ac_cv_search_dlopen=$ac_res
12427 fi
12428 rm -f core conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext
12430 if ${ac_cv_search_dlopen+:} false; then :
12431 break
12432 fi
12433 done
12434 if ${ac_cv_search_dlopen+:} false; then :
12435
12436 else
12437 ac_cv_search_dlopen=no
12438 fi
12439 rm conftest.$ac_ext
12440 LIBS=$ac_func_search_save_LIBS
12441 fi
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12443 $as_echo "$ac_cv_search_dlopen" >&6; }
12444 ac_res=$ac_cv_search_dlopen
12445 if test "$ac_res" != no; then :
12446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12447
12448 fi
12449
12450 case "$ac_cv_search_dlopen" in
12451 no*) DLOPEN_LIBS="";;
12452 *) DLOPEN_LIBS="$ac_cv_search_dlopen";;
12453 esac
12454
12455
12456 for ac_func in mallinfo mallinfo2 posix_fallocate fallocate readv sysconf times mkdtemp
12457 do :
12458 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12459 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12460 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12461 cat >>confdefs.h <<_ACEOF
12462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12463 _ACEOF
12464
12465 fi
12466 done
12467
12468 ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12469 if test "x$ac_cv_have_decl_basename" = xyes; then :
12470 ac_have_decl=1
12471 else
12472 ac_have_decl=0
12473 fi
12474
12475 cat >>confdefs.h <<_ACEOF
12476 #define HAVE_DECL_BASENAME $ac_have_decl
12477 _ACEOF
12478 ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12479 if test "x$ac_cv_have_decl_ffs" = xyes; then :
12480 ac_have_decl=1
12481 else
12482 ac_have_decl=0
12483 fi
12484
12485 cat >>confdefs.h <<_ACEOF
12486 #define HAVE_DECL_FFS $ac_have_decl
12487 _ACEOF
12488 ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12489 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12490 ac_have_decl=1
12491 else
12492 ac_have_decl=0
12493 fi
12494
12495 cat >>confdefs.h <<_ACEOF
12496 #define HAVE_DECL_ASPRINTF $ac_have_decl
12497 _ACEOF
12498 ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12499 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12500 ac_have_decl=1
12501 else
12502 ac_have_decl=0
12503 fi
12504
12505 cat >>confdefs.h <<_ACEOF
12506 #define HAVE_DECL_VASPRINTF $ac_have_decl
12507 _ACEOF
12508 ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12509 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12510 ac_have_decl=1
12511 else
12512 ac_have_decl=0
12513 fi
12514
12515 cat >>confdefs.h <<_ACEOF
12516 #define HAVE_DECL_SNPRINTF $ac_have_decl
12517 _ACEOF
12518 ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12519 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12520 ac_have_decl=1
12521 else
12522 ac_have_decl=0
12523 fi
12524
12525 cat >>confdefs.h <<_ACEOF
12526 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12527 _ACEOF
12528 ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12529 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
12530 ac_have_decl=1
12531 else
12532 ac_have_decl=0
12533 fi
12534
12535 cat >>confdefs.h <<_ACEOF
12536 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12537 _ACEOF
12538 ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
12539 if test "x$ac_cv_have_decl_strndup" = xyes; then :
12540 ac_have_decl=1
12541 else
12542 ac_have_decl=0
12543 fi
12544
12545 cat >>confdefs.h <<_ACEOF
12546 #define HAVE_DECL_STRNDUP $ac_have_decl
12547 _ACEOF
12548 ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
12549 if test "x$ac_cv_have_decl_memmem" = xyes; then :
12550 ac_have_decl=1
12551 else
12552 ac_have_decl=0
12553 fi
12554
12555 cat >>confdefs.h <<_ACEOF
12556 #define HAVE_DECL_MEMMEM $ac_have_decl
12557 _ACEOF
12558
12559
12560 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
12561 # at link time with some versions of GCC.
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
12563 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
12564 if ${gold_cv_unordered_map_rehash+:} false; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12569
12570 #include <tr1/unordered_map>
12571 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
12572
12573 int
12574 main ()
12575 {
12576
12577 ;
12578 return 0;
12579 }
12580 _ACEOF
12581 if ac_fn_cxx_try_link "$LINENO"; then :
12582 gold_cv_unordered_map_rehash=yes
12583 else
12584 gold_cv_unordered_map_rehash=no
12585 fi
12586 rm -f core conftest.err conftest.$ac_objext \
12587 conftest$ac_exeext conftest.$ac_ext
12588 fi
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
12590 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
12591 if test "$gold_cv_unordered_map_rehash" = "yes"; then
12592
12593 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
12594
12595 fi
12596
12597 # Since 5e9091dab8858b25210a91d22fbbbfdee9c969ad gold now requires C++11
12598 # So we need to check for it.
12599 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
12600 ac_ext=cpp
12601 ac_cpp='$CXXCPP $CPPFLAGS'
12602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12605 ac_success=no
12606
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
12608 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
12609 if ${ax_cv_cxx_compile_cxx11+:} false; then :
12610 $as_echo_n "(cached) " >&6
12611 else
12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h. */
12614
12615
12616 // If the compiler admits that it is not ready for C++11, why torture it?
12617 // Hopefully, this will speed up the test.
12618
12619 #ifndef __cplusplus
12620
12621 #error "This is not a C++ compiler"
12622
12623 #elif __cplusplus < 201103L
12624
12625 #error "This is not a C++11 compiler"
12626
12627 #else
12628
12629 namespace cxx11
12630 {
12631
12632 namespace test_static_assert
12633 {
12634
12635 template <typename T>
12636 struct check
12637 {
12638 static_assert(sizeof(int) <= sizeof(T), "not big enough");
12639 };
12640
12641 }
12642
12643 namespace test_final_override
12644 {
12645
12646 struct Base
12647 {
12648 virtual ~Base() {}
12649 virtual void f() {}
12650 };
12651
12652 struct Derived : public Base
12653 {
12654 virtual ~Derived() override {}
12655 virtual void f() override {}
12656 };
12657
12658 }
12659
12660 namespace test_double_right_angle_brackets
12661 {
12662
12663 template < typename T >
12664 struct check {};
12665
12666 typedef check<void> single_type;
12667 typedef check<check<void>> double_type;
12668 typedef check<check<check<void>>> triple_type;
12669 typedef check<check<check<check<void>>>> quadruple_type;
12670
12671 }
12672
12673 namespace test_decltype
12674 {
12675
12676 int
12677 f()
12678 {
12679 int a = 1;
12680 decltype(a) b = 2;
12681 return a + b;
12682 }
12683
12684 }
12685
12686 namespace test_type_deduction
12687 {
12688
12689 template < typename T1, typename T2 >
12690 struct is_same
12691 {
12692 static const bool value = false;
12693 };
12694
12695 template < typename T >
12696 struct is_same<T, T>
12697 {
12698 static const bool value = true;
12699 };
12700
12701 template < typename T1, typename T2 >
12702 auto
12703 add(T1 a1, T2 a2) -> decltype(a1 + a2)
12704 {
12705 return a1 + a2;
12706 }
12707
12708 int
12709 test(const int c, volatile int v)
12710 {
12711 static_assert(is_same<int, decltype(0)>::value == true, "");
12712 static_assert(is_same<int, decltype(c)>::value == false, "");
12713 static_assert(is_same<int, decltype(v)>::value == false, "");
12714 auto ac = c;
12715 auto av = v;
12716 auto sumi = ac + av + 'x';
12717 auto sumf = ac + av + 1.0;
12718 static_assert(is_same<int, decltype(ac)>::value == true, "");
12719 static_assert(is_same<int, decltype(av)>::value == true, "");
12720 static_assert(is_same<int, decltype(sumi)>::value == true, "");
12721 static_assert(is_same<int, decltype(sumf)>::value == false, "");
12722 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
12723 return (sumf > 0.0) ? sumi : add(c, v);
12724 }
12725
12726 }
12727
12728 namespace test_noexcept
12729 {
12730
12731 int f() { return 0; }
12732 int g() noexcept { return 0; }
12733
12734 static_assert(noexcept(f()) == false, "");
12735 static_assert(noexcept(g()) == true, "");
12736
12737 }
12738
12739 namespace test_constexpr
12740 {
12741
12742 template < typename CharT >
12743 unsigned long constexpr
12744 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
12745 {
12746 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
12747 }
12748
12749 template < typename CharT >
12750 unsigned long constexpr
12751 strlen_c(const CharT *const s) noexcept
12752 {
12753 return strlen_c_r(s, 0UL);
12754 }
12755
12756 static_assert(strlen_c("") == 0UL, "");
12757 static_assert(strlen_c("1") == 1UL, "");
12758 static_assert(strlen_c("example") == 7UL, "");
12759 static_assert(strlen_c("another\0example") == 7UL, "");
12760
12761 }
12762
12763 namespace test_rvalue_references
12764 {
12765
12766 template < int N >
12767 struct answer
12768 {
12769 static constexpr int value = N;
12770 };
12771
12772 answer<1> f(int&) { return answer<1>(); }
12773 answer<2> f(const int&) { return answer<2>(); }
12774 answer<3> f(int&&) { return answer<3>(); }
12775
12776 void
12777 test()
12778 {
12779 int i = 0;
12780 const int c = 0;
12781 static_assert(decltype(f(i))::value == 1, "");
12782 static_assert(decltype(f(c))::value == 2, "");
12783 static_assert(decltype(f(0))::value == 3, "");
12784 }
12785
12786 }
12787
12788 namespace test_uniform_initialization
12789 {
12790
12791 struct test
12792 {
12793 static const int zero {};
12794 static const int one {1};
12795 };
12796
12797 static_assert(test::zero == 0, "");
12798 static_assert(test::one == 1, "");
12799
12800 }
12801
12802 namespace test_lambdas
12803 {
12804
12805 void
12806 test1()
12807 {
12808 auto lambda1 = [](){};
12809 auto lambda2 = lambda1;
12810 lambda1();
12811 lambda2();
12812 }
12813
12814 int
12815 test2()
12816 {
12817 auto a = [](int i, int j){ return i + j; }(1, 2);
12818 auto b = []() -> int { return '0'; }();
12819 auto c = [=](){ return a + b; }();
12820 auto d = [&](){ return c; }();
12821 auto e = [a, &b](int x) mutable {
12822 const auto identity = [](int y){ return y; };
12823 for (auto i = 0; i < a; ++i)
12824 a += b--;
12825 return x + identity(a + b);
12826 }(0);
12827 return a + b + c + d + e;
12828 }
12829
12830 int
12831 test3()
12832 {
12833 const auto nullary = [](){ return 0; };
12834 const auto unary = [](int x){ return x; };
12835 using nullary_t = decltype(nullary);
12836 using unary_t = decltype(unary);
12837 const auto higher1st = [](nullary_t f){ return f(); };
12838 const auto higher2nd = [unary](nullary_t f1){
12839 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
12840 };
12841 return higher1st(nullary) + higher2nd(nullary)(unary);
12842 }
12843
12844 }
12845
12846 namespace test_variadic_templates
12847 {
12848
12849 template <int...>
12850 struct sum;
12851
12852 template <int N0, int... N1toN>
12853 struct sum<N0, N1toN...>
12854 {
12855 static constexpr auto value = N0 + sum<N1toN...>::value;
12856 };
12857
12858 template <>
12859 struct sum<>
12860 {
12861 static constexpr auto value = 0;
12862 };
12863
12864 static_assert(sum<>::value == 0, "");
12865 static_assert(sum<1>::value == 1, "");
12866 static_assert(sum<23>::value == 23, "");
12867 static_assert(sum<1, 2>::value == 3, "");
12868 static_assert(sum<5, 5, 11>::value == 21, "");
12869 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
12870
12871 }
12872
12873 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
12874 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
12875 // because of this.
12876 namespace test_template_alias_sfinae
12877 {
12878
12879 struct foo {};
12880
12881 template<typename T>
12882 using member = typename T::member_type;
12883
12884 template<typename T>
12885 void func(...) {}
12886
12887 template<typename T>
12888 void func(member<T>*) {}
12889
12890 void test();
12891
12892 void test() { func<foo>(0); }
12893
12894 }
12895
12896 } // namespace cxx11
12897
12898 #endif // __cplusplus >= 201103L
12899
12900
12901
12902 _ACEOF
12903 if ac_fn_cxx_try_compile "$LINENO"; then :
12904 ax_cv_cxx_compile_cxx11=yes
12905 else
12906 ax_cv_cxx_compile_cxx11=no
12907 fi
12908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909 fi
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
12911 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
12912 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
12913 ac_success=yes
12914 fi
12915
12916 if test x$ac_success = xno; then
12917 for alternative in ${ax_cxx_compile_alternatives}; do
12918 switch="-std=gnu++${alternative}"
12919 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
12921 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
12922 if eval \${$cachevar+:} false; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 ac_save_CXX="$CXX"
12926 CXX="$CXX $switch"
12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h. */
12929
12930
12931 // If the compiler admits that it is not ready for C++11, why torture it?
12932 // Hopefully, this will speed up the test.
12933
12934 #ifndef __cplusplus
12935
12936 #error "This is not a C++ compiler"
12937
12938 #elif __cplusplus < 201103L
12939
12940 #error "This is not a C++11 compiler"
12941
12942 #else
12943
12944 namespace cxx11
12945 {
12946
12947 namespace test_static_assert
12948 {
12949
12950 template <typename T>
12951 struct check
12952 {
12953 static_assert(sizeof(int) <= sizeof(T), "not big enough");
12954 };
12955
12956 }
12957
12958 namespace test_final_override
12959 {
12960
12961 struct Base
12962 {
12963 virtual ~Base() {}
12964 virtual void f() {}
12965 };
12966
12967 struct Derived : public Base
12968 {
12969 virtual ~Derived() override {}
12970 virtual void f() override {}
12971 };
12972
12973 }
12974
12975 namespace test_double_right_angle_brackets
12976 {
12977
12978 template < typename T >
12979 struct check {};
12980
12981 typedef check<void> single_type;
12982 typedef check<check<void>> double_type;
12983 typedef check<check<check<void>>> triple_type;
12984 typedef check<check<check<check<void>>>> quadruple_type;
12985
12986 }
12987
12988 namespace test_decltype
12989 {
12990
12991 int
12992 f()
12993 {
12994 int a = 1;
12995 decltype(a) b = 2;
12996 return a + b;
12997 }
12998
12999 }
13000
13001 namespace test_type_deduction
13002 {
13003
13004 template < typename T1, typename T2 >
13005 struct is_same
13006 {
13007 static const bool value = false;
13008 };
13009
13010 template < typename T >
13011 struct is_same<T, T>
13012 {
13013 static const bool value = true;
13014 };
13015
13016 template < typename T1, typename T2 >
13017 auto
13018 add(T1 a1, T2 a2) -> decltype(a1 + a2)
13019 {
13020 return a1 + a2;
13021 }
13022
13023 int
13024 test(const int c, volatile int v)
13025 {
13026 static_assert(is_same<int, decltype(0)>::value == true, "");
13027 static_assert(is_same<int, decltype(c)>::value == false, "");
13028 static_assert(is_same<int, decltype(v)>::value == false, "");
13029 auto ac = c;
13030 auto av = v;
13031 auto sumi = ac + av + 'x';
13032 auto sumf = ac + av + 1.0;
13033 static_assert(is_same<int, decltype(ac)>::value == true, "");
13034 static_assert(is_same<int, decltype(av)>::value == true, "");
13035 static_assert(is_same<int, decltype(sumi)>::value == true, "");
13036 static_assert(is_same<int, decltype(sumf)>::value == false, "");
13037 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
13038 return (sumf > 0.0) ? sumi : add(c, v);
13039 }
13040
13041 }
13042
13043 namespace test_noexcept
13044 {
13045
13046 int f() { return 0; }
13047 int g() noexcept { return 0; }
13048
13049 static_assert(noexcept(f()) == false, "");
13050 static_assert(noexcept(g()) == true, "");
13051
13052 }
13053
13054 namespace test_constexpr
13055 {
13056
13057 template < typename CharT >
13058 unsigned long constexpr
13059 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
13060 {
13061 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
13062 }
13063
13064 template < typename CharT >
13065 unsigned long constexpr
13066 strlen_c(const CharT *const s) noexcept
13067 {
13068 return strlen_c_r(s, 0UL);
13069 }
13070
13071 static_assert(strlen_c("") == 0UL, "");
13072 static_assert(strlen_c("1") == 1UL, "");
13073 static_assert(strlen_c("example") == 7UL, "");
13074 static_assert(strlen_c("another\0example") == 7UL, "");
13075
13076 }
13077
13078 namespace test_rvalue_references
13079 {
13080
13081 template < int N >
13082 struct answer
13083 {
13084 static constexpr int value = N;
13085 };
13086
13087 answer<1> f(int&) { return answer<1>(); }
13088 answer<2> f(const int&) { return answer<2>(); }
13089 answer<3> f(int&&) { return answer<3>(); }
13090
13091 void
13092 test()
13093 {
13094 int i = 0;
13095 const int c = 0;
13096 static_assert(decltype(f(i))::value == 1, "");
13097 static_assert(decltype(f(c))::value == 2, "");
13098 static_assert(decltype(f(0))::value == 3, "");
13099 }
13100
13101 }
13102
13103 namespace test_uniform_initialization
13104 {
13105
13106 struct test
13107 {
13108 static const int zero {};
13109 static const int one {1};
13110 };
13111
13112 static_assert(test::zero == 0, "");
13113 static_assert(test::one == 1, "");
13114
13115 }
13116
13117 namespace test_lambdas
13118 {
13119
13120 void
13121 test1()
13122 {
13123 auto lambda1 = [](){};
13124 auto lambda2 = lambda1;
13125 lambda1();
13126 lambda2();
13127 }
13128
13129 int
13130 test2()
13131 {
13132 auto a = [](int i, int j){ return i + j; }(1, 2);
13133 auto b = []() -> int { return '0'; }();
13134 auto c = [=](){ return a + b; }();
13135 auto d = [&](){ return c; }();
13136 auto e = [a, &b](int x) mutable {
13137 const auto identity = [](int y){ return y; };
13138 for (auto i = 0; i < a; ++i)
13139 a += b--;
13140 return x + identity(a + b);
13141 }(0);
13142 return a + b + c + d + e;
13143 }
13144
13145 int
13146 test3()
13147 {
13148 const auto nullary = [](){ return 0; };
13149 const auto unary = [](int x){ return x; };
13150 using nullary_t = decltype(nullary);
13151 using unary_t = decltype(unary);
13152 const auto higher1st = [](nullary_t f){ return f(); };
13153 const auto higher2nd = [unary](nullary_t f1){
13154 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
13155 };
13156 return higher1st(nullary) + higher2nd(nullary)(unary);
13157 }
13158
13159 }
13160
13161 namespace test_variadic_templates
13162 {
13163
13164 template <int...>
13165 struct sum;
13166
13167 template <int N0, int... N1toN>
13168 struct sum<N0, N1toN...>
13169 {
13170 static constexpr auto value = N0 + sum<N1toN...>::value;
13171 };
13172
13173 template <>
13174 struct sum<>
13175 {
13176 static constexpr auto value = 0;
13177 };
13178
13179 static_assert(sum<>::value == 0, "");
13180 static_assert(sum<1>::value == 1, "");
13181 static_assert(sum<23>::value == 23, "");
13182 static_assert(sum<1, 2>::value == 3, "");
13183 static_assert(sum<5, 5, 11>::value == 21, "");
13184 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
13185
13186 }
13187
13188 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
13189 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
13190 // because of this.
13191 namespace test_template_alias_sfinae
13192 {
13193
13194 struct foo {};
13195
13196 template<typename T>
13197 using member = typename T::member_type;
13198
13199 template<typename T>
13200 void func(...) {}
13201
13202 template<typename T>
13203 void func(member<T>*) {}
13204
13205 void test();
13206
13207 void test() { func<foo>(0); }
13208
13209 }
13210
13211 } // namespace cxx11
13212
13213 #endif // __cplusplus >= 201103L
13214
13215
13216
13217 _ACEOF
13218 if ac_fn_cxx_try_compile "$LINENO"; then :
13219 eval $cachevar=yes
13220 else
13221 eval $cachevar=no
13222 fi
13223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13224 CXX="$ac_save_CXX"
13225 fi
13226 eval ac_res=\$$cachevar
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13228 $as_echo "$ac_res" >&6; }
13229 if eval test x\$$cachevar = xyes; then
13230 CXX="$CXX $switch"
13231 if test -n "$CXXCPP" ; then
13232 CXXCPP="$CXXCPP $switch"
13233 fi
13234 ac_success=yes
13235 break
13236 fi
13237 done
13238 fi
13239
13240 if test x$ac_success = xno; then
13241 for alternative in ${ax_cxx_compile_alternatives}; do
13242 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
13243 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
13245 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
13246 if eval \${$cachevar+:} false; then :
13247 $as_echo_n "(cached) " >&6
13248 else
13249 ac_save_CXX="$CXX"
13250 CXX="$CXX $switch"
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13253
13254
13255 // If the compiler admits that it is not ready for C++11, why torture it?
13256 // Hopefully, this will speed up the test.
13257
13258 #ifndef __cplusplus
13259
13260 #error "This is not a C++ compiler"
13261
13262 #elif __cplusplus < 201103L
13263
13264 #error "This is not a C++11 compiler"
13265
13266 #else
13267
13268 namespace cxx11
13269 {
13270
13271 namespace test_static_assert
13272 {
13273
13274 template <typename T>
13275 struct check
13276 {
13277 static_assert(sizeof(int) <= sizeof(T), "not big enough");
13278 };
13279
13280 }
13281
13282 namespace test_final_override
13283 {
13284
13285 struct Base
13286 {
13287 virtual ~Base() {}
13288 virtual void f() {}
13289 };
13290
13291 struct Derived : public Base
13292 {
13293 virtual ~Derived() override {}
13294 virtual void f() override {}
13295 };
13296
13297 }
13298
13299 namespace test_double_right_angle_brackets
13300 {
13301
13302 template < typename T >
13303 struct check {};
13304
13305 typedef check<void> single_type;
13306 typedef check<check<void>> double_type;
13307 typedef check<check<check<void>>> triple_type;
13308 typedef check<check<check<check<void>>>> quadruple_type;
13309
13310 }
13311
13312 namespace test_decltype
13313 {
13314
13315 int
13316 f()
13317 {
13318 int a = 1;
13319 decltype(a) b = 2;
13320 return a + b;
13321 }
13322
13323 }
13324
13325 namespace test_type_deduction
13326 {
13327
13328 template < typename T1, typename T2 >
13329 struct is_same
13330 {
13331 static const bool value = false;
13332 };
13333
13334 template < typename T >
13335 struct is_same<T, T>
13336 {
13337 static const bool value = true;
13338 };
13339
13340 template < typename T1, typename T2 >
13341 auto
13342 add(T1 a1, T2 a2) -> decltype(a1 + a2)
13343 {
13344 return a1 + a2;
13345 }
13346
13347 int
13348 test(const int c, volatile int v)
13349 {
13350 static_assert(is_same<int, decltype(0)>::value == true, "");
13351 static_assert(is_same<int, decltype(c)>::value == false, "");
13352 static_assert(is_same<int, decltype(v)>::value == false, "");
13353 auto ac = c;
13354 auto av = v;
13355 auto sumi = ac + av + 'x';
13356 auto sumf = ac + av + 1.0;
13357 static_assert(is_same<int, decltype(ac)>::value == true, "");
13358 static_assert(is_same<int, decltype(av)>::value == true, "");
13359 static_assert(is_same<int, decltype(sumi)>::value == true, "");
13360 static_assert(is_same<int, decltype(sumf)>::value == false, "");
13361 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
13362 return (sumf > 0.0) ? sumi : add(c, v);
13363 }
13364
13365 }
13366
13367 namespace test_noexcept
13368 {
13369
13370 int f() { return 0; }
13371 int g() noexcept { return 0; }
13372
13373 static_assert(noexcept(f()) == false, "");
13374 static_assert(noexcept(g()) == true, "");
13375
13376 }
13377
13378 namespace test_constexpr
13379 {
13380
13381 template < typename CharT >
13382 unsigned long constexpr
13383 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
13384 {
13385 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
13386 }
13387
13388 template < typename CharT >
13389 unsigned long constexpr
13390 strlen_c(const CharT *const s) noexcept
13391 {
13392 return strlen_c_r(s, 0UL);
13393 }
13394
13395 static_assert(strlen_c("") == 0UL, "");
13396 static_assert(strlen_c("1") == 1UL, "");
13397 static_assert(strlen_c("example") == 7UL, "");
13398 static_assert(strlen_c("another\0example") == 7UL, "");
13399
13400 }
13401
13402 namespace test_rvalue_references
13403 {
13404
13405 template < int N >
13406 struct answer
13407 {
13408 static constexpr int value = N;
13409 };
13410
13411 answer<1> f(int&) { return answer<1>(); }
13412 answer<2> f(const int&) { return answer<2>(); }
13413 answer<3> f(int&&) { return answer<3>(); }
13414
13415 void
13416 test()
13417 {
13418 int i = 0;
13419 const int c = 0;
13420 static_assert(decltype(f(i))::value == 1, "");
13421 static_assert(decltype(f(c))::value == 2, "");
13422 static_assert(decltype(f(0))::value == 3, "");
13423 }
13424
13425 }
13426
13427 namespace test_uniform_initialization
13428 {
13429
13430 struct test
13431 {
13432 static const int zero {};
13433 static const int one {1};
13434 };
13435
13436 static_assert(test::zero == 0, "");
13437 static_assert(test::one == 1, "");
13438
13439 }
13440
13441 namespace test_lambdas
13442 {
13443
13444 void
13445 test1()
13446 {
13447 auto lambda1 = [](){};
13448 auto lambda2 = lambda1;
13449 lambda1();
13450 lambda2();
13451 }
13452
13453 int
13454 test2()
13455 {
13456 auto a = [](int i, int j){ return i + j; }(1, 2);
13457 auto b = []() -> int { return '0'; }();
13458 auto c = [=](){ return a + b; }();
13459 auto d = [&](){ return c; }();
13460 auto e = [a, &b](int x) mutable {
13461 const auto identity = [](int y){ return y; };
13462 for (auto i = 0; i < a; ++i)
13463 a += b--;
13464 return x + identity(a + b);
13465 }(0);
13466 return a + b + c + d + e;
13467 }
13468
13469 int
13470 test3()
13471 {
13472 const auto nullary = [](){ return 0; };
13473 const auto unary = [](int x){ return x; };
13474 using nullary_t = decltype(nullary);
13475 using unary_t = decltype(unary);
13476 const auto higher1st = [](nullary_t f){ return f(); };
13477 const auto higher2nd = [unary](nullary_t f1){
13478 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
13479 };
13480 return higher1st(nullary) + higher2nd(nullary)(unary);
13481 }
13482
13483 }
13484
13485 namespace test_variadic_templates
13486 {
13487
13488 template <int...>
13489 struct sum;
13490
13491 template <int N0, int... N1toN>
13492 struct sum<N0, N1toN...>
13493 {
13494 static constexpr auto value = N0 + sum<N1toN...>::value;
13495 };
13496
13497 template <>
13498 struct sum<>
13499 {
13500 static constexpr auto value = 0;
13501 };
13502
13503 static_assert(sum<>::value == 0, "");
13504 static_assert(sum<1>::value == 1, "");
13505 static_assert(sum<23>::value == 23, "");
13506 static_assert(sum<1, 2>::value == 3, "");
13507 static_assert(sum<5, 5, 11>::value == 21, "");
13508 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
13509
13510 }
13511
13512 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
13513 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
13514 // because of this.
13515 namespace test_template_alias_sfinae
13516 {
13517
13518 struct foo {};
13519
13520 template<typename T>
13521 using member = typename T::member_type;
13522
13523 template<typename T>
13524 void func(...) {}
13525
13526 template<typename T>
13527 void func(member<T>*) {}
13528
13529 void test();
13530
13531 void test() { func<foo>(0); }
13532
13533 }
13534
13535 } // namespace cxx11
13536
13537 #endif // __cplusplus >= 201103L
13538
13539
13540
13541 _ACEOF
13542 if ac_fn_cxx_try_compile "$LINENO"; then :
13543 eval $cachevar=yes
13544 else
13545 eval $cachevar=no
13546 fi
13547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548 CXX="$ac_save_CXX"
13549 fi
13550 eval ac_res=\$$cachevar
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13552 $as_echo "$ac_res" >&6; }
13553 if eval test x\$$cachevar = xyes; then
13554 CXX="$CXX $switch"
13555 if test -n "$CXXCPP" ; then
13556 CXXCPP="$CXXCPP $switch"
13557 fi
13558 ac_success=yes
13559 break
13560 fi
13561 done
13562 if test x$ac_success = xyes; then
13563 break
13564 fi
13565 done
13566 fi
13567
13568 ac_ext=cpp
13569 ac_cpp='$CXXCPP $CPPFLAGS'
13570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13573
13574 if test x$ax_cxx_compile_cxx11_required = xtrue; then
13575 if test x$ac_success = xno; then
13576 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
13577 fi
13578 fi
13579 if test x$ac_success = xno; then
13580 HAVE_CXX11=0
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
13582 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
13583 else
13584 HAVE_CXX11=1
13585
13586 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
13587
13588 fi
13589
13590
13591
13592 # Use of tr1/unordered_map with off_t as a key is not supported on GCC
13593 # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
13595 $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
13596 if ${gold_cv_hash_off_t+:} false; then :
13597 $as_echo_n "(cached) " >&6
13598 else
13599 CXXFLAGS_hold=$CXXFLAGS
13600 CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13603
13604 #include <sys/types.h>
13605 #include <tr1/unordered_map>
13606 std::tr1::hash<off_t> h;
13607
13608 _ACEOF
13609 if ac_fn_cxx_try_compile "$LINENO"; then :
13610 gold_cv_hash_off_t=yes
13611 else
13612 gold_cv_hash_off_t=no
13613 fi
13614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13615 CXXFLAGS=$CXXFLAGS_hold
13616 fi
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
13618 $as_echo "$gold_cv_hash_off_t" >&6; }
13619 if test "$gold_cv_hash_off_t" = "yes"; then
13620
13621 $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
13622
13623 fi
13624
13625 # gcc 4.3.0 doesn't recognize the printf attribute on a template
13626 # function. Check for that. This is gcc bug 35546. This test can
13627 # probably be removed after the bug has been fixed for a while.
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
13629 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
13630 if ${gold_cv_template_attribute+:} false; then :
13631 $as_echo_n "(cached) " >&6
13632 else
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13635
13636 template<typename T> extern void foo(const char*, ...)
13637 __attribute__ ((__format__ (__printf__, 1, 2)));
13638 template<typename T> void foo(const char* format, ...) {}
13639 void bar() { foo<int>("%s\n", "foo"); }
13640
13641 _ACEOF
13642 if ac_fn_cxx_try_compile "$LINENO"; then :
13643 gold_cv_template_attribute=yes
13644 else
13645 gold_cv_template_attribute=no
13646 fi
13647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13648 fi
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
13650 $as_echo "$gold_cv_template_attribute" >&6; }
13651 if test "$gold_cv_template_attribute" = "yes"; then
13652
13653 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
13654
13655 fi
13656
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
13658 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
13659 if ${gold_cv_stat_st_mtim+:} false; then :
13660 $as_echo_n "(cached) " >&6
13661 else
13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13664
13665 #include <sys/stat.h>
13666 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
13667
13668 int
13669 main ()
13670 {
13671
13672 ;
13673 return 0;
13674 }
13675 _ACEOF
13676 if ac_fn_cxx_try_compile "$LINENO"; then :
13677 gold_cv_stat_st_mtim=yes
13678 else
13679 gold_cv_stat_st_mtim=no
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 fi
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
13684 $as_echo "$gold_cv_stat_st_mtim" >&6; }
13685 if test "$gold_cv_stat_st_mtim" = "yes"; then
13686
13687 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
13688
13689 fi
13690
13691 ac_ext=c
13692 ac_cpp='$CPP $CPPFLAGS'
13693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13696
13697
13698 for ac_header in locale.h
13699 do :
13700 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13701 if test "x$ac_cv_header_locale_h" = xyes; then :
13702 cat >>confdefs.h <<_ACEOF
13703 #define HAVE_LOCALE_H 1
13704 _ACEOF
13705
13706 fi
13707
13708 done
13709
13710 for ac_func in setlocale
13711 do :
13712 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
13713 if test "x$ac_cv_func_setlocale" = xyes; then :
13714 cat >>confdefs.h <<_ACEOF
13715 #define HAVE_SETLOCALE 1
13716 _ACEOF
13717
13718 fi
13719 done
13720
13721
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13723 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13724 if ${am_cv_val_LC_MESSAGES+:} false; then :
13725 $as_echo_n "(cached) " >&6
13726 else
13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13728 /* end confdefs.h. */
13729 #include <locale.h>
13730 int
13731 main ()
13732 {
13733 return LC_MESSAGES
13734 ;
13735 return 0;
13736 }
13737 _ACEOF
13738 if ac_fn_c_try_link "$LINENO"; then :
13739 am_cv_val_LC_MESSAGES=yes
13740 else
13741 am_cv_val_LC_MESSAGES=no
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext \
13744 conftest$ac_exeext conftest.$ac_ext
13745 fi
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13747 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13748 if test $am_cv_val_LC_MESSAGES = yes; then
13749
13750 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13751
13752 fi
13753
13754
•13755 if test x$DEB_TARGET_MULTIARCH != x; then
13756 multiarch=$DEB_TARGET_MULTIARCH
13757 if test -n "$multiarch"; then
13758 MULTIARCH_DIRNAME='-DMULTIARCH_DIRNAME=\"'$multiarch'\"'
13759 fi
13760 fi
13761
13762
13763
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13765 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13766 # Check whether --enable-maintainer-mode was given.
13767 if test "${enable_maintainer_mode+set}" = set; then :
13768 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13769 else
13770 USE_MAINTAINER_MODE=no
13771 fi
13772
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13774 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13775 if test $USE_MAINTAINER_MODE = yes; then
13776 MAINTAINER_MODE_TRUE=
13777 MAINTAINER_MODE_FALSE='#'
13778 else
13779 MAINTAINER_MODE_TRUE='#'
13780 MAINTAINER_MODE_FALSE=
13781 fi
13782
13783 MAINT=$MAINTAINER_MODE_TRUE
13784
13785
13786
13787 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
13788
13789 cat >confcache <<\_ACEOF
13790 # This file is a shell script that caches the results of configure
13791 # tests run on this system so they can be shared between configure
13792 # scripts and configure runs, see configure's option --config-cache.
13793 # It is not useful on other systems. If it contains results you don't
13794 # want to keep, you may remove or edit it.
13795 #
13796 # config.status only pays attention to the cache file if you give it
13797 # the --recheck option to rerun configure.
13798 #
13799 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13800 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13801 # following values.
13802
13803 _ACEOF
13804
13805 # The following way of writing the cache mishandles newlines in values,
13806 # but we know of no workaround that is simple, portable, and efficient.
13807 # So, we kill variables containing newlines.
13808 # Ultrix sh set writes to stderr and can't be redirected directly,
13809 # and sets the high bit in the cache file unless we assign to the vars.
13810 (
13811 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13812 eval ac_val=\$$ac_var
13813 case $ac_val in #(
13814 *${as_nl}*)
13815 case $ac_var in #(
13816 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13817 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13818 esac
13819 case $ac_var in #(
13820 _ | IFS | as_nl) ;; #(
13821 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13822 *) { eval $ac_var=; unset $ac_var;} ;;
13823 esac ;;
13824 esac
13825 done
13826
13827 (set) 2>&1 |
13828 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13829 *${as_nl}ac_space=\ *)
13830 # `set' does not quote correctly, so add quotes: double-quote
13831 # substitution turns \\\\ into \\, and sed turns \\ into \.
13832 sed -n \
13833 "s/'/'\\\\''/g;
13834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13835 ;; #(
13836 *)
13837 # `set' quotes correctly as required by POSIX, so do not add quotes.
13838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13839 ;;
13840 esac |
13841 sort
13842 ) |
13843 sed '
13844 /^ac_cv_env_/b end
13845 t clear
13846 :clear
13847 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13848 t end
13849 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13850 :end' >>confcache
13851 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13852 if test -w "$cache_file"; then
13853 if test "x$cache_file" != "x/dev/null"; then
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13855 $as_echo "$as_me: updating cache $cache_file" >&6;}
13856 if test ! -f "$cache_file" || test -h "$cache_file"; then
13857 cat confcache >"$cache_file"
13858 else
13859 case $cache_file in #(
13860 */* | ?:*)
13861 mv -f confcache "$cache_file"$$ &&
13862 mv -f "$cache_file"$$ "$cache_file" ;; #(
13863 *)
13864 mv -f confcache "$cache_file" ;;
13865 esac
13866 fi
13867 fi
13868 else
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13870 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13871 fi
13872 fi
13873 rm -f confcache
13874
13875 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13876 # Let make expand exec_prefix.
13877 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13878
13879 DEFS=-DHAVE_CONFIG_H
13880
13881 ac_libobjs=
13882 ac_ltlibobjs=
13883 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13884 # 1. Remove the extension, and $U if already installed.
13885 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13886 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13887 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13888 # will be set to the directory where LIBOBJS objects are built.
13889 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13890 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13891 done
13892 LIBOBJS=$ac_libobjs
13893
13894 LTLIBOBJS=$ac_ltlibobjs
13895
13896
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13898 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13899 if test -n "$am_sleep_pid"; then
13900 # Hide warnings about reused PIDs.
13901 wait $am_sleep_pid 2>/dev/null
13902 fi
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13904 $as_echo "done" >&6; }
13905 if test -n "$EXEEXT"; then
13906 am__EXEEXT_TRUE=
13907 am__EXEEXT_FALSE='#'
13908 else
13909 am__EXEEXT_TRUE='#'
13910 am__EXEEXT_FALSE=
13911 fi
13912
13913 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13914 as_fn_error $? "conditional \"AMDEP\" was never defined.
13915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13916 fi
13917 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13918 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13920 fi
13921 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
13922 as_fn_error $? "conditional \"PLUGINS\" was never defined.
13923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13924 fi
13925 if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
13926 as_fn_error $? "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
13927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13928 fi
13929 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
13930 as_fn_error $? "conditional \"DEFAULT_TARGET_ARM\" was never defined.
13931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13932 fi
13933 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
13934 as_fn_error $? "conditional \"DEFAULT_TARGET_I386\" was never defined.
13935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13936 fi
13937 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
13938 as_fn_error $? "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
13939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13940 fi
13941 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
13942 as_fn_error $? "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
13943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13944 fi
13945 if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
13946 as_fn_error $? "conditional \"DEFAULT_TARGET_S390\" was never defined.
13947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13948 fi
13949 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
13950 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
13951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13952 fi
13953 if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
13954 as_fn_error $? "conditional \"DEFAULT_TARGET_X32\" was never defined.
13955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13956 fi
13957 if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
13958 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
13959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13960 fi
13961 if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
13962 as_fn_error $? "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
13963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13964 fi
13965 if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
13966 as_fn_error $? "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
13967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13968 fi
13969 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13970 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13972 fi
13973 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13974 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
13975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13976 fi
13977
13978 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
13979 as_fn_error $? "conditional \"NATIVE_LINKER\" was never defined.
13980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13981 fi
13982 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
13983 as_fn_error $? "conditional \"GCC\" was never defined.
13984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13985 fi
13986 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
13987 as_fn_error $? "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
13988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13989 fi
13990 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
13991 as_fn_error $? "conditional \"HAVE_STATIC\" was never defined.
13992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13993 fi
13994 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
13995 as_fn_error $? "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
13996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13997 fi
13998 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
13999 as_fn_error $? "conditional \"MCMODEL_MEDIUM\" was never defined.
14000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14001 fi
14002 if test -z "${GCC9_TRUE}" && test -z "${GCC9_FALSE}"; then
14003 as_fn_error $? "conditional \"GCC9\" was never defined.
14004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14005 fi
14006 if test -z "${CFLAGS_CF_PROTECTION_TRUE}" && test -z "${CFLAGS_CF_PROTECTION_FALSE}"; then
14007 as_fn_error $? "conditional \"CFLAGS_CF_PROTECTION\" was never defined.
14008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14009 fi
14010 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
14011 as_fn_error $? "conditional \"TLS\" was never defined.
14012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14013 fi
14014 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
14015 as_fn_error $? "conditional \"STATIC_TLS\" was never defined.
14016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14017 fi
14018 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
14019 as_fn_error $? "conditional \"OMP_SUPPORT\" was never defined.
14020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14021 fi
14022 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
14023 as_fn_error $? "conditional \"TLS_GNU2_DIALECT\" was never defined.
14024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14025 fi
14026 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
14027 as_fn_error $? "conditional \"TLS_DESCRIPTORS\" was never defined.
14028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14029 fi
14030 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
14031 as_fn_error $? "conditional \"IFUNC\" was never defined.
14032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14033 fi
14034 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
14035 as_fn_error $? "conditional \"IFUNC_STATIC\" was never defined.
14036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14037 fi
14038 if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
14039 as_fn_error $? "conditional \"HAVE_ZSTD\" was never defined.
14040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14041 fi
14042 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
14043 as_fn_error $? "conditional \"THREADS\" was never defined.
14044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14045 fi
14046 if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
14047 as_fn_error $? "conditional \"HAVE_PUBNAMES\" was never defined.
14048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14049 fi
14050 if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
14051 as_fn_error $? "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
14052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14053 fi
14054 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14055 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14057 fi
14058
14059 : "${CONFIG_STATUS=./config.status}"
14060 ac_write_fail=0
14061 ac_clean_files_save=$ac_clean_files
14062 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14064 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14065 as_write_fail=0
14066 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14067 #! $SHELL
14068 # Generated by $as_me.
14069 # Run this file to recreate the current configuration.
14070 # Compiler output produced by configure, useful for debugging
14071 # configure, is in config.log if it exists.
14072
14073 debug=false
14074 ac_cs_recheck=false
14075 ac_cs_silent=false
14076
14077 SHELL=\${CONFIG_SHELL-$SHELL}
14078 export SHELL
14079 _ASEOF
14080 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14081 ## -------------------- ##
14082 ## M4sh Initialization. ##
14083 ## -------------------- ##
14084
14085 # Be more Bourne compatible
14086 DUALCASE=1; export DUALCASE # for MKS sh
14087 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14088 emulate sh
14089 NULLCMD=:
14090 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14091 # is contrary to our usage. Disable this feature.
14092 alias -g '${1+"$@"}'='"$@"'
14093 setopt NO_GLOB_SUBST
14094 else
14095 case `(set -o) 2>/dev/null` in #(
14096 *posix*) :
14097 set -o posix ;; #(
14098 *) :
14099 ;;
14100 esac
14101 fi
14102
14103
14104 as_nl='
14105 '
14106 export as_nl
14107 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14108 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14109 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14110 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14111 # Prefer a ksh shell builtin over an external printf program on Solaris,
14112 # but without wasting forks for bash or zsh.
14113 if test -z "$BASH_VERSION$ZSH_VERSION" \
14114 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14115 as_echo='print -r --'
14116 as_echo_n='print -rn --'
14117 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14118 as_echo='printf %s\n'
14119 as_echo_n='printf %s'
14120 else
14121 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14122 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14123 as_echo_n='/usr/ucb/echo -n'
14124 else
14125 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14126 as_echo_n_body='eval
14127 arg=$1;
14128 case $arg in #(
14129 *"$as_nl"*)
14130 expr "X$arg" : "X\\(.*\\)$as_nl";
14131 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14132 esac;
14133 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14134 '
14135 export as_echo_n_body
14136 as_echo_n='sh -c $as_echo_n_body as_echo'
14137 fi
14138 export as_echo_body
14139 as_echo='sh -c $as_echo_body as_echo'
14140 fi
14141
14142 # The user is always right.
14143 if test "${PATH_SEPARATOR+set}" != set; then
14144 PATH_SEPARATOR=:
14145 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14146 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14147 PATH_SEPARATOR=';'
14148 }
14149 fi
14150
14151
14152 # IFS
14153 # We need space, tab and new line, in precisely that order. Quoting is
14154 # there to prevent editors from complaining about space-tab.
14155 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14156 # splitting by setting IFS to empty value.)
14157 IFS=" "" $as_nl"
14158
14159 # Find who we are. Look in the path if we contain no directory separator.
14160 as_myself=
14161 case $0 in #((
14162 *[\\/]* ) as_myself=$0 ;;
14163 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14164 for as_dir in $PATH
14165 do
14166 IFS=$as_save_IFS
14167 test -z "$as_dir" && as_dir=.
14168 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14169 done
14170 IFS=$as_save_IFS
14171
14172 ;;
14173 esac
14174 # We did not find ourselves, most probably we were run as `sh COMMAND'
14175 # in which case we are not to be found in the path.
14176 if test "x$as_myself" = x; then
14177 as_myself=$0
14178 fi
14179 if test ! -f "$as_myself"; then
14180 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14181 exit 1
14182 fi
14183
14184 # Unset variables that we do not need and which cause bugs (e.g. in
14185 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14186 # suppresses any "Segmentation fault" message there. '((' could
14187 # trigger a bug in pdksh 5.2.14.
14188 for as_var in BASH_ENV ENV MAIL MAILPATH
14189 do eval test x\${$as_var+set} = xset \
14190 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14191 done
14192 PS1='$ '
14193 PS2='> '
14194 PS4='+ '
14195
14196 # NLS nuisances.
14197 LC_ALL=C
14198 export LC_ALL
14199 LANGUAGE=C
14200 export LANGUAGE
14201
14202 # CDPATH.
14203 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14204
14205
14206 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14207 # ----------------------------------------
14208 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14209 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14210 # script with STATUS, using 1 if that was 0.
14211 as_fn_error ()
14212 {
14213 as_status=$1; test $as_status -eq 0 && as_status=1
14214 if test "$4"; then
14215 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14216 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14217 fi
14218 $as_echo "$as_me: error: $2" >&2
14219 as_fn_exit $as_status
14220 } # as_fn_error
14221
14222
14223 # as_fn_set_status STATUS
14224 # -----------------------
14225 # Set $? to STATUS, without forking.
14226 as_fn_set_status ()
14227 {
14228 return $1
14229 } # as_fn_set_status
14230
14231 # as_fn_exit STATUS
14232 # -----------------
14233 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14234 as_fn_exit ()
14235 {
14236 set +e
14237 as_fn_set_status $1
14238 exit $1
14239 } # as_fn_exit
14240
14241 # as_fn_unset VAR
14242 # ---------------
14243 # Portably unset VAR.
14244 as_fn_unset ()
14245 {
14246 { eval $1=; unset $1;}
14247 }
14248 as_unset=as_fn_unset
14249 # as_fn_append VAR VALUE
14250 # ----------------------
14251 # Append the text in VALUE to the end of the definition contained in VAR. Take
14252 # advantage of any shell optimizations that allow amortized linear growth over
14253 # repeated appends, instead of the typical quadratic growth present in naive
14254 # implementations.
14255 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14256 eval 'as_fn_append ()
14257 {
14258 eval $1+=\$2
14259 }'
14260 else
14261 as_fn_append ()
14262 {
14263 eval $1=\$$1\$2
14264 }
14265 fi # as_fn_append
14266
14267 # as_fn_arith ARG...
14268 # ------------------
14269 # Perform arithmetic evaluation on the ARGs, and store the result in the
14270 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14271 # must be portable across $(()) and expr.
14272 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14273 eval 'as_fn_arith ()
14274 {
14275 as_val=$(( $* ))
14276 }'
14277 else
14278 as_fn_arith ()
14279 {
14280 as_val=`expr "$@" || test $? -eq 1`
14281 }
14282 fi # as_fn_arith
14283
14284
14285 if expr a : '\(a\)' >/dev/null 2>&1 &&
14286 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14287 as_expr=expr
14288 else
14289 as_expr=false
14290 fi
14291
14292 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14293 as_basename=basename
14294 else
14295 as_basename=false
14296 fi
14297
14298 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14299 as_dirname=dirname
14300 else
14301 as_dirname=false
14302 fi
14303
14304 as_me=`$as_basename -- "$0" ||
14305 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14306 X"$0" : 'X\(//\)$' \| \
14307 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14308 $as_echo X/"$0" |
14309 sed '/^.*\/\([^/][^/]*\)\/*$/{
14310 s//\1/
14311 q
14312 }
14313 /^X\/\(\/\/\)$/{
14314 s//\1/
14315 q
14316 }
14317 /^X\/\(\/\).*/{
14318 s//\1/
14319 q
14320 }
14321 s/.*/./; q'`
14322
14323 # Avoid depending upon Character Ranges.
14324 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14325 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14326 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14327 as_cr_digits='0123456789'
14328 as_cr_alnum=$as_cr_Letters$as_cr_digits
14329
14330 ECHO_C= ECHO_N= ECHO_T=
14331 case `echo -n x` in #(((((
14332 -n*)
14333 case `echo 'xy\c'` in
14334 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14335 xy) ECHO_C='\c';;
14336 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14337 ECHO_T=' ';;
14338 esac;;
14339 *)
14340 ECHO_N='-n';;
14341 esac
14342
14343 rm -f conf$$ conf$$.exe conf$$.file
14344 if test -d conf$$.dir; then
14345 rm -f conf$$.dir/conf$$.file
14346 else
14347 rm -f conf$$.dir
14348 mkdir conf$$.dir 2>/dev/null
14349 fi
14350 if (echo >conf$$.file) 2>/dev/null; then
14351 if ln -s conf$$.file conf$$ 2>/dev/null; then
14352 as_ln_s='ln -s'
14353 # ... but there are two gotchas:
14354 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14355 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14356 # In both cases, we have to default to `cp -pR'.
14357 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14358 as_ln_s='cp -pR'
14359 elif ln conf$$.file conf$$ 2>/dev/null; then
14360 as_ln_s=ln
14361 else
14362 as_ln_s='cp -pR'
14363 fi
14364 else
14365 as_ln_s='cp -pR'
14366 fi
14367 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14368 rmdir conf$$.dir 2>/dev/null
14369
14370
14371 # as_fn_mkdir_p
14372 # -------------
14373 # Create "$as_dir" as a directory, including parents if necessary.
14374 as_fn_mkdir_p ()
14375 {
14376
14377 case $as_dir in #(
14378 -*) as_dir=./$as_dir;;
14379 esac
14380 test -d "$as_dir" || eval $as_mkdir_p || {
14381 as_dirs=
14382 while :; do
14383 case $as_dir in #(
14384 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14385 *) as_qdir=$as_dir;;
14386 esac
14387 as_dirs="'$as_qdir' $as_dirs"
14388 as_dir=`$as_dirname -- "$as_dir" ||
14389 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14390 X"$as_dir" : 'X\(//\)[^/]' \| \
14391 X"$as_dir" : 'X\(//\)$' \| \
14392 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14393 $as_echo X"$as_dir" |
14394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14395 s//\1/
14396 q
14397 }
14398 /^X\(\/\/\)[^/].*/{
14399 s//\1/
14400 q
14401 }
14402 /^X\(\/\/\)$/{
14403 s//\1/
14404 q
14405 }
14406 /^X\(\/\).*/{
14407 s//\1/
14408 q
14409 }
14410 s/.*/./; q'`
14411 test -d "$as_dir" && break
14412 done
14413 test -z "$as_dirs" || eval "mkdir $as_dirs"
14414 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14415
14416
14417 } # as_fn_mkdir_p
14418 if mkdir -p . 2>/dev/null; then
14419 as_mkdir_p='mkdir -p "$as_dir"'
14420 else
14421 test -d ./-p && rmdir ./-p
14422 as_mkdir_p=false
14423 fi
14424
14425
14426 # as_fn_executable_p FILE
14427 # -----------------------
14428 # Test if FILE is an executable regular file.
14429 as_fn_executable_p ()
14430 {
14431 test -f "$1" && test -x "$1"
14432 } # as_fn_executable_p
14433 as_test_x='test -x'
14434 as_executable_p=as_fn_executable_p
14435
14436 # Sed expression to map a string onto a valid CPP name.
14437 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14438
14439 # Sed expression to map a string onto a valid variable name.
14440 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14441
14442
14443 exec 6>&1
14444 ## ----------------------------------- ##
14445 ## Main body of $CONFIG_STATUS script. ##
14446 ## ----------------------------------- ##
14447 _ASEOF
14448 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14449
14450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14451 # Save the log message, to keep $0 and so on meaningful, and to
14452 # report actual input values of CONFIG_FILES etc. instead of their
14453 # values after options handling.
14454 ac_log="
14455 This file was extended by gold $as_me 0.1, which was
14456 generated by GNU Autoconf 2.69. Invocation command line was
14457
14458 CONFIG_FILES = $CONFIG_FILES
14459 CONFIG_HEADERS = $CONFIG_HEADERS
14460 CONFIG_LINKS = $CONFIG_LINKS
14461 CONFIG_COMMANDS = $CONFIG_COMMANDS
14462 $ $0 $@
14463
14464 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14465 "
14466
14467 _ACEOF
14468
14469 case $ac_config_files in *"
14470 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14471 esac
14472
14473 case $ac_config_headers in *"
14474 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14475 esac
14476
14477
14478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14479 # Files that config.status was made for.
14480 config_files="$ac_config_files"
14481 config_headers="$ac_config_headers"
14482 config_commands="$ac_config_commands"
14483
14484 _ACEOF
14485
14486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14487 ac_cs_usage="\
14488 \`$as_me' instantiates files and other configuration actions
14489 from templates according to the current configuration. Unless the files
14490 and actions are specified as TAGs, all are instantiated by default.
14491
14492 Usage: $0 [OPTION]... [TAG]...
14493
14494 -h, --help print this help, then exit
14495 -V, --version print version number and configuration settings, then exit
14496 --config print configuration, then exit
14497 -q, --quiet, --silent
14498 do not print progress messages
14499 -d, --debug don't remove temporary files
14500 --recheck update $as_me by reconfiguring in the same conditions
14501 --file=FILE[:TEMPLATE]
14502 instantiate the configuration file FILE
14503 --header=FILE[:TEMPLATE]
14504 instantiate the configuration header FILE
14505
14506 Configuration files:
14507 $config_files
14508
14509 Configuration headers:
14510 $config_headers
14511
14512 Configuration commands:
14513 $config_commands
14514
14515 Report bugs to the package provider."
14516
14517 _ACEOF
14518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14519 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14520 ac_cs_version="\\
14521 gold config.status 0.1
14522 configured by $0, generated by GNU Autoconf 2.69,
14523 with options \\"\$ac_cs_config\\"
14524
14525 Copyright (C) 2012 Free Software Foundation, Inc.
14526 This config.status script is free software; the Free Software Foundation
14527 gives unlimited permission to copy, distribute and modify it."
14528
14529 ac_pwd='$ac_pwd'
14530 srcdir='$srcdir'
14531 INSTALL='$INSTALL'
14532 MKDIR_P='$MKDIR_P'
14533 AWK='$AWK'
14534 test -n "\$AWK" || AWK=awk
14535 _ACEOF
14536
14537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14538 # The default lists apply if the user does not specify any file.
14539 ac_need_defaults=:
14540 while test $# != 0
14541 do
14542 case $1 in
14543 --*=?*)
14544 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14545 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14546 ac_shift=:
14547 ;;
14548 --*=)
14549 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14550 ac_optarg=
14551 ac_shift=:
14552 ;;
14553 *)
14554 ac_option=$1
14555 ac_optarg=$2
14556 ac_shift=shift
14557 ;;
14558 esac
14559
14560 case $ac_option in
14561 # Handling of the options.
14562 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14563 ac_cs_recheck=: ;;
14564 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14565 $as_echo "$ac_cs_version"; exit ;;
14566 --config | --confi | --conf | --con | --co | --c )
14567 $as_echo "$ac_cs_config"; exit ;;
14568 --debug | --debu | --deb | --de | --d | -d )
14569 debug=: ;;
14570 --file | --fil | --fi | --f )
14571 $ac_shift
14572 case $ac_optarg in
14573 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14574 '') as_fn_error $? "missing file argument" ;;
14575 esac
14576 as_fn_append CONFIG_FILES " '$ac_optarg'"
14577 ac_need_defaults=false;;
14578 --header | --heade | --head | --hea )
14579 $ac_shift
14580 case $ac_optarg in
14581 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14582 esac
14583 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14584 ac_need_defaults=false;;
14585 --he | --h)
14586 # Conflict between --help and --header
14587 as_fn_error $? "ambiguous option: \`$1'
14588 Try \`$0 --help' for more information.";;
14589 --help | --hel | -h )
14590 $as_echo "$ac_cs_usage"; exit ;;
14591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14592 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14593 ac_cs_silent=: ;;
14594
14595 # This is an error.
14596 -*) as_fn_error $? "unrecognized option: \`$1'
14597 Try \`$0 --help' for more information." ;;
14598
14599 *) as_fn_append ac_config_targets " $1"
14600 ac_need_defaults=false ;;
14601
14602 esac
14603 shift
14604 done
14605
14606 ac_configure_extra_args=
14607
14608 if $ac_cs_silent; then
14609 exec 6>/dev/null
14610 ac_configure_extra_args="$ac_configure_extra_args --silent"
14611 fi
14612
14613 _ACEOF
14614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14615 if \$ac_cs_recheck; then
14616 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14617 shift
14618 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14619 CONFIG_SHELL='$SHELL'
14620 export CONFIG_SHELL
14621 exec "\$@"
14622 fi
14623
14624 _ACEOF
14625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14626 exec 5>>config.log
14627 {
14628 echo
14629 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14630 ## Running $as_me. ##
14631 _ASBOX
14632 $as_echo "$ac_log"
14633 } >&5
14634
14635 _ACEOF
14636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14637 #
14638 # INIT-COMMANDS
14639 #
14640 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
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%}"
14647
14648 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14649 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14650 # from automake.
14651 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14652 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14653 LINGUAS="${LINGUAS-%UNSET%}"
14654
14655
14656 _ACEOF
14657
14658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14659
14660 # Handling of arguments.
14661 for ac_config_target in $ac_config_targets
14662 do
14663 case $ac_config_target in
14664 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14665 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14666 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14667 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
14668 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14669 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14670 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14671
14672 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14673 esac
14674 done
14675
14676
14677 # If the user did not use the arguments to specify the items to instantiate,
14678 # then the envvar interface is used. Set only those that are not.
14679 # We use the long form for the default assignment because of an extremely
14680 # bizarre bug on SunOS 4.1.3.
14681 if $ac_need_defaults; then
14682 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14683 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14684 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14685 fi
14686
14687 # Have a temporary directory for convenience. Make it in the build tree
14688 # simply because there is no reason against having it here, and in addition,
14689 # creating and moving files from /tmp can sometimes cause problems.
14690 # Hook for its removal unless debugging.
14691 # Note that there is a small window in which the directory will not be cleaned:
14692 # after its creation but before its name has been assigned to `$tmp'.
14693 $debug ||
14694 {
14695 tmp= ac_tmp=
14696 trap 'exit_status=$?
14697 : "${ac_tmp:=$tmp}"
14698 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14699 ' 0
14700 trap 'as_fn_exit 1' 1 2 13 15
14701 }
14702 # Create a (secure) tmp directory for tmp files.
14703
14704 {
14705 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14706 test -d "$tmp"
14707 } ||
14708 {
14709 tmp=./conf$$-$RANDOM
14710 (umask 077 && mkdir "$tmp")
14711 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14712 ac_tmp=$tmp
14713
14714 # Set up the scripts for CONFIG_FILES section.
14715 # No need to generate them if there are no CONFIG_FILES.
14716 # This happens for instance with `./config.status config.h'.
14717 if test -n "$CONFIG_FILES"; then
14718
14719
14720 ac_cr=`echo X | tr X '\015'`
14721 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14722 # But we know of no other shell where ac_cr would be empty at this
14723 # point, so we can use a bashism as a fallback.
14724 if test "x$ac_cr" = x; then
14725 eval ac_cr=\$\'\\r\'
14726 fi
14727 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14728 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14729 ac_cs_awk_cr='\\r'
14730 else
14731 ac_cs_awk_cr=$ac_cr
14732 fi
14733
14734 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14735 _ACEOF
14736
14737
14738 {
14739 echo "cat >conf$$subs.awk <<_ACEOF" &&
14740 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14741 echo "_ACEOF"
14742 } >conf$$subs.sh ||
14743 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14744 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14745 ac_delim='%!_!# '
14746 for ac_last_try in false false false false false :; do
14747 . ./conf$$subs.sh ||
14748 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14749
14750 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14751 if test $ac_delim_n = $ac_delim_num; then
14752 break
14753 elif $ac_last_try; then
14754 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14755 else
14756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14757 fi
14758 done
14759 rm -f conf$$subs.sh
14760
14761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14762 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14763 _ACEOF
14764 sed -n '
14765 h
14766 s/^/S["/; s/!.*/"]=/
14767 p
14768 g
14769 s/^[^!]*!//
14770 :repl
14771 t repl
14772 s/'"$ac_delim"'$//
14773 t delim
14774 :nl
14775 h
14776 s/\(.\{148\}\)..*/\1/
14777 t more1
14778 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14779 p
14780 n
14781 b repl
14782 :more1
14783 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14784 p
14785 g
14786 s/.\{148\}//
14787 t nl
14788 :delim
14789 h
14790 s/\(.\{148\}\)..*/\1/
14791 t more2
14792 s/["\\]/\\&/g; s/^/"/; s/$/"/
14793 p
14794 b
14795 :more2
14796 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14797 p
14798 g
14799 s/.\{148\}//
14800 t delim
14801 ' <conf$$subs.awk | sed '
14802 /^[^""]/{
14803 N
14804 s/\n//
14805 }
14806 ' >>$CONFIG_STATUS || ac_write_fail=1
14807 rm -f conf$$subs.awk
14808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14809 _ACAWK
14810 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14811 for (key in S) S_is_set[key] = 1
14812 FS = ""
14813
14814 }
14815 {
14816 line = $ 0
14817 nfields = split(line, field, "@")
14818 substed = 0
14819 len = length(field[1])
14820 for (i = 2; i < nfields; i++) {
14821 key = field[i]
14822 keylen = length(key)
14823 if (S_is_set[key]) {
14824 value = S[key]
14825 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14826 len += length(value) + length(field[++i])
14827 substed = 1
14828 } else
14829 len += 1 + keylen
14830 }
14831
14832 print line
14833 }
14834
14835 _ACAWK
14836 _ACEOF
14837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14838 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14839 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14840 else
14841 cat
14842 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14843 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14844 _ACEOF
14845
14846 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14847 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14848 # trailing colons and then remove the whole line if VPATH becomes empty
14849 # (actually we leave an empty line to preserve line numbers).
14850 if test "x$srcdir" = x.; then
14851 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14852 h
14853 s///
14854 s/^/:/
14855 s/[ ]*$/:/
14856 s/:\$(srcdir):/:/g
14857 s/:\${srcdir}:/:/g
14858 s/:@srcdir@:/:/g
14859 s/^:*//
14860 s/:*$//
14861 x
14862 s/\(=[ ]*\).*/\1/
14863 G
14864 s/\n//
14865 s/^[^=]*=[ ]*$//
14866 }'
14867 fi
14868
14869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14870 fi # test -n "$CONFIG_FILES"
14871
14872 # Set up the scripts for CONFIG_HEADERS section.
14873 # No need to generate them if there are no CONFIG_HEADERS.
14874 # This happens for instance with `./config.status Makefile'.
14875 if test -n "$CONFIG_HEADERS"; then
14876 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14877 BEGIN {
14878 _ACEOF
14879
14880 # Transform confdefs.h into an awk script `defines.awk', embedded as
14881 # here-document in config.status, that substitutes the proper values into
14882 # config.h.in to produce config.h.
14883
14884 # Create a delimiter string that does not exist in confdefs.h, to ease
14885 # handling of long lines.
14886 ac_delim='%!_!# '
14887 for ac_last_try in false false :; do
14888 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14889 if test -z "$ac_tt"; then
14890 break
14891 elif $ac_last_try; then
14892 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14893 else
14894 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14895 fi
14896 done
14897
14898 # For the awk script, D is an array of macro values keyed by name,
14899 # likewise P contains macro parameters if any. Preserve backslash
14900 # newline sequences.
14901
14902 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14903 sed -n '
14904 s/.\{148\}/&'"$ac_delim"'/g
14905 t rset
14906 :rset
14907 s/^[ ]*#[ ]*define[ ][ ]*/ /
14908 t def
14909 d
14910 :def
14911 s/\\$//
14912 t bsnl
14913 s/["\\]/\\&/g
14914 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14915 D["\1"]=" \3"/p
14916 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14917 d
14918 :bsnl
14919 s/["\\]/\\&/g
14920 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14921 D["\1"]=" \3\\\\\\n"\\/p
14922 t cont
14923 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14924 t cont
14925 d
14926 :cont
14927 n
14928 s/.\{148\}/&'"$ac_delim"'/g
14929 t clear
14930 :clear
14931 s/\\$//
14932 t bsnlc
14933 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14934 d
14935 :bsnlc
14936 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14937 b cont
14938 ' <confdefs.h | sed '
14939 s/'"$ac_delim"'/"\\\
14940 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14941
14942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14943 for (key in D) D_is_set[key] = 1
14944 FS = ""
14945 }
14946 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14947 line = \$ 0
14948 split(line, arg, " ")
14949 if (arg[1] == "#") {
14950 defundef = arg[2]
14951 mac1 = arg[3]
14952 } else {
14953 defundef = substr(arg[1], 2)
14954 mac1 = arg[2]
14955 }
14956 split(mac1, mac2, "(") #)
14957 macro = mac2[1]
14958 prefix = substr(line, 1, index(line, defundef) - 1)
14959 if (D_is_set[macro]) {
14960 # Preserve the white space surrounding the "#".
14961 print prefix "define", macro P[macro] D[macro]
14962 next
14963 } else {
14964 # Replace #undef with comments. This is necessary, for example,
14965 # in the case of _POSIX_SOURCE, which is predefined and required
14966 # on some systems where configure will not decide to define it.
14967 if (defundef == "undef") {
14968 print "/*", prefix defundef, macro, "*/"
14969 next
14970 }
14971 }
14972 }
14973 { print }
14974 _ACAWK
14975 _ACEOF
14976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14977 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14978 fi # test -n "$CONFIG_HEADERS"
14979
14980
14981 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14982 shift
14983 for ac_tag
14984 do
14985 case $ac_tag in
14986 :[FHLC]) ac_mode=$ac_tag; continue;;
14987 esac
14988 case $ac_mode$ac_tag in
14989 :[FHL]*:*);;
14990 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14991 :[FH]-) ac_tag=-:-;;
14992 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14993 esac
14994 ac_save_IFS=$IFS
14995 IFS=:
14996 set x $ac_tag
14997 IFS=$ac_save_IFS
14998 shift
14999 ac_file=$1
15000 shift
15001
15002 case $ac_mode in
15003 :L) ac_source=$1;;
15004 :[FH])
15005 ac_file_inputs=
15006 for ac_f
15007 do
15008 case $ac_f in
15009 -) ac_f="$ac_tmp/stdin";;
15010 *) # Look for the file first in the build tree, then in the source tree
15011 # (if the path is not absolute). The absolute path cannot be DOS-style,
15012 # because $ac_f cannot contain `:'.
15013 test -f "$ac_f" ||
15014 case $ac_f in
15015 [\\/$]*) false;;
15016 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15017 esac ||
15018 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15019 esac
15020 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15021 as_fn_append ac_file_inputs " '$ac_f'"
15022 done
15023
15024 # Let's still pretend it is `configure' which instantiates (i.e., don't
15025 # use $as_me), people would be surprised to read:
15026 # /* config.h. Generated by config.status. */
15027 configure_input='Generated from '`
15028 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15029 `' by configure.'
15030 if test x"$ac_file" != x-; then
15031 configure_input="$ac_file. $configure_input"
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15033 $as_echo "$as_me: creating $ac_file" >&6;}
15034 fi
15035 # Neutralize special characters interpreted by sed in replacement strings.
15036 case $configure_input in #(
15037 *\&* | *\|* | *\\* )
15038 ac_sed_conf_input=`$as_echo "$configure_input" |
15039 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15040 *) ac_sed_conf_input=$configure_input;;
15041 esac
15042
15043 case $ac_tag in
15044 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15046 esac
15047 ;;
15048 esac
15049
15050 ac_dir=`$as_dirname -- "$ac_file" ||
15051 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15052 X"$ac_file" : 'X\(//\)[^/]' \| \
15053 X"$ac_file" : 'X\(//\)$' \| \
15054 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15055 $as_echo X"$ac_file" |
15056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15057 s//\1/
15058 q
15059 }
15060 /^X\(\/\/\)[^/].*/{
15061 s//\1/
15062 q
15063 }
15064 /^X\(\/\/\)$/{
15065 s//\1/
15066 q
15067 }
15068 /^X\(\/\).*/{
15069 s//\1/
15070 q
15071 }
15072 s/.*/./; q'`
15073 as_dir="$ac_dir"; as_fn_mkdir_p
15074 ac_builddir=.
15075
15076 case "$ac_dir" in
15077 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15078 *)
15079 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15080 # A ".." for each directory in $ac_dir_suffix.
15081 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15082 case $ac_top_builddir_sub in
15083 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15084 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15085 esac ;;
15086 esac
15087 ac_abs_top_builddir=$ac_pwd
15088 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15089 # for backward compatibility:
15090 ac_top_builddir=$ac_top_build_prefix
15091
15092 case $srcdir in
15093 .) # We are building in place.
15094 ac_srcdir=.
15095 ac_top_srcdir=$ac_top_builddir_sub
15096 ac_abs_top_srcdir=$ac_pwd ;;
15097 [\\/]* | ?:[\\/]* ) # Absolute name.
15098 ac_srcdir=$srcdir$ac_dir_suffix;
15099 ac_top_srcdir=$srcdir
15100 ac_abs_top_srcdir=$srcdir ;;
15101 *) # Relative name.
15102 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15103 ac_top_srcdir=$ac_top_build_prefix$srcdir
15104 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15105 esac
15106 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15107
15108
15109 case $ac_mode in
15110 :F)
15111 #
15112 # CONFIG_FILE
15113 #
15114
15115 case $INSTALL in
15116 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15117 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15118 esac
15119 ac_MKDIR_P=$MKDIR_P
15120 case $MKDIR_P in
15121 [\\/$]* | ?:[\\/]* ) ;;
15122 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15123 esac
15124 _ACEOF
15125
15126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15127 # If the template does not know about datarootdir, expand it.
15128 # FIXME: This hack should be removed a few years after 2.60.
15129 ac_datarootdir_hack=; ac_datarootdir_seen=
15130 ac_sed_dataroot='
15131 /datarootdir/ {
15132 p
15133 q
15134 }
15135 /@datadir@/p
15136 /@docdir@/p
15137 /@infodir@/p
15138 /@localedir@/p
15139 /@mandir@/p'
15140 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15141 *datarootdir*) ac_datarootdir_seen=yes;;
15142 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15144 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15145 _ACEOF
15146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15147 ac_datarootdir_hack='
15148 s&@datadir@&$datadir&g
15149 s&@docdir@&$docdir&g
15150 s&@infodir@&$infodir&g
15151 s&@localedir@&$localedir&g
15152 s&@mandir@&$mandir&g
15153 s&\\\${datarootdir}&$datarootdir&g' ;;
15154 esac
15155 _ACEOF
15156
15157 # Neutralize VPATH when `$srcdir' = `.'.
15158 # Shell code in configure.ac might set extrasub.
15159 # FIXME: do we really want to maintain this feature?
15160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15161 ac_sed_extra="$ac_vpsub
15162 $extrasub
15163 _ACEOF
15164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15165 :t
15166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15167 s|@configure_input@|$ac_sed_conf_input|;t t
15168 s&@top_builddir@&$ac_top_builddir_sub&;t t
15169 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15170 s&@srcdir@&$ac_srcdir&;t t
15171 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15172 s&@top_srcdir@&$ac_top_srcdir&;t t
15173 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15174 s&@builddir@&$ac_builddir&;t t
15175 s&@abs_builddir@&$ac_abs_builddir&;t t
15176 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15177 s&@INSTALL@&$ac_INSTALL&;t t
15178 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15179 $ac_datarootdir_hack
15180 "
15181 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15182 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15183
15184 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15185 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15186 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15187 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15189 which seems to be undefined. Please make sure it is defined" >&5
15190 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15191 which seems to be undefined. Please make sure it is defined" >&2;}
15192
15193 rm -f "$ac_tmp/stdin"
15194 case $ac_file in
15195 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15196 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15197 esac \
15198 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15199 ;;
15200 :H)
15201 #
15202 # CONFIG_HEADER
15203 #
15204 if test x"$ac_file" != x-; then
15205 {
15206 $as_echo "/* $configure_input */" \
15207 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15208 } >"$ac_tmp/config.h" \
15209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15210 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15212 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15213 else
15214 rm -f "$ac_file"
15215 mv "$ac_tmp/config.h" "$ac_file" \
15216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15217 fi
15218 else
15219 $as_echo "/* $configure_input */" \
15220 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15221 || as_fn_error $? "could not create -" "$LINENO" 5
15222 fi
15223 # Compute "$ac_file"'s index in $config_headers.
15224 _am_arg="$ac_file"
15225 _am_stamp_count=1
15226 for _am_header in $config_headers :; do
15227 case $_am_header in
15228 $_am_arg | $_am_arg:* )
15229 break ;;
15230 * )
15231 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15232 esac
15233 done
15234 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15235 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15236 X"$_am_arg" : 'X\(//\)[^/]' \| \
15237 X"$_am_arg" : 'X\(//\)$' \| \
15238 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15239 $as_echo X"$_am_arg" |
15240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15241 s//\1/
15242 q
15243 }
15244 /^X\(\/\/\)[^/].*/{
15245 s//\1/
15246 q
15247 }
15248 /^X\(\/\/\)$/{
15249 s//\1/
15250 q
15251 }
15252 /^X\(\/\).*/{
15253 s//\1/
15254 q
15255 }
15256 s/.*/./; q'`/stamp-h$_am_stamp_count
15257 ;;
15258
15259 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15260 $as_echo "$as_me: executing $ac_file commands" >&6;}
15261 ;;
15262 esac
15263
15264
15265 case $ac_file$ac_mode in
15266 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15267 # Older Autoconf quotes --file arguments for eval, but not when files
15268 # are listed without --file. Let's play safe and only enable the eval
15269 # if we detect the quoting.
15270 case $CONFIG_FILES in
15271 *\'*) eval set x "$CONFIG_FILES" ;;
15272 *) set x $CONFIG_FILES ;;
15273 esac
15274 shift
15275 for mf
15276 do
15277 # Strip MF so we end up with the name of the file.
15278 mf=`echo "$mf" | sed -e 's/:.*$//'`
15279 # Check whether this is an Automake generated Makefile or not.
15280 # We used to match only the files named 'Makefile.in', but
15281 # some people rename them; so instead we look at the file content.
15282 # Grep'ing the first line is not enough: some people post-process
15283 # each Makefile.in and add a new line on top of each file to say so.
15284 # Grep'ing the whole file is not good either: AIX grep has a line
15285 # limit of 2048, but all sed's we know have understand at least 4000.
15286 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15287 dirpart=`$as_dirname -- "$mf" ||
15288 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15289 X"$mf" : 'X\(//\)[^/]' \| \
15290 X"$mf" : 'X\(//\)$' \| \
15291 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15292 $as_echo X"$mf" |
15293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15294 s//\1/
15295 q
15296 }
15297 /^X\(\/\/\)[^/].*/{
15298 s//\1/
15299 q
15300 }
15301 /^X\(\/\/\)$/{
15302 s//\1/
15303 q
15304 }
15305 /^X\(\/\).*/{
15306 s//\1/
15307 q
15308 }
15309 s/.*/./; q'`
15310 else
15311 continue
15312 fi
15313 # Extract the definition of DEPDIR, am__include, and am__quote
15314 # from the Makefile without running 'make'.
15315 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15316 test -z "$DEPDIR" && continue
15317 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15318 test -z "$am__include" && continue
15319 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15320 # Find all dependency output files, they are included files with
15321 # $(DEPDIR) in their names. We invoke sed twice because it is the
15322 # simplest approach to changing $(DEPDIR) to its actual value in the
15323 # expansion.
15324 for file in `sed -n "
15325 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15326 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15327 # Make sure the directory exists.
15328 test -f "$dirpart/$file" && continue
15329 fdir=`$as_dirname -- "$file" ||
15330 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15331 X"$file" : 'X\(//\)[^/]' \| \
15332 X"$file" : 'X\(//\)$' \| \
15333 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15334 $as_echo X"$file" |
15335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15336 s//\1/
15337 q
15338 }
15339 /^X\(\/\/\)[^/].*/{
15340 s//\1/
15341 q
15342 }
15343 /^X\(\/\/\)$/{
15344 s//\1/
15345 q
15346 }
15347 /^X\(\/\).*/{
15348 s//\1/
15349 q
15350 }
15351 s/.*/./; q'`
15352 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15353 # echo "creating $dirpart/$file"
15354 echo '# dummy' > "$dirpart/$file"
15355 done
15356 done
15357 }
15358 ;;
15359 "default-1":C)
15360 for ac_file in $CONFIG_FILES; do
15361 # Support "outfile[:infile[:infile...]]"
15362 case "$ac_file" in
15363 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15364 esac
15365 # PO directories have a Makefile.in generated from Makefile.in.in.
15366 case "$ac_file" in */Makefile.in)
15367 # Adjust a relative srcdir.
15368 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15369 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15370 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15371 # In autoconf-2.13 it is called $ac_given_srcdir.
15372 # In autoconf-2.50 it is called $srcdir.
15373 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15374 case "$ac_given_srcdir" in
15375 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15376 /*) top_srcdir="$ac_given_srcdir" ;;
15377 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15378 esac
15379 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15380 rm -f "$ac_dir/POTFILES"
15381 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15382 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15383 POMAKEFILEDEPS="POTFILES.in"
15384 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15385 # on $ac_dir but don't depend on user-specified configuration
15386 # parameters.
15387 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15388 # The LINGUAS file contains the set of available languages.
15389 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15390 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
15391 fi
15392 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15393 # Hide the ALL_LINGUAS assigment from automake.
15394 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15395 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15396 else
15397 # The set of available languages was given in configure.ac.
15398 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15399 fi
15400 case "$ac_given_srcdir" in
15401 .) srcdirpre= ;;
15402 *) srcdirpre='$(srcdir)/' ;;
15403 esac
15404 POFILES=
15405 GMOFILES=
15406 UPDATEPOFILES=
15407 DUMMYPOFILES=
15408 for lang in $ALL_LINGUAS; do
15409 POFILES="$POFILES $srcdirpre$lang.po"
15410 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15411 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15412 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15413 done
15414 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15415 # environment variable.
15416 INST_LINGUAS=
15417 if test -n "$ALL_LINGUAS"; then
15418 for presentlang in $ALL_LINGUAS; do
15419 useit=no
15420 if test "%UNSET%" != "$LINGUAS"; then
15421 desiredlanguages="$LINGUAS"
15422 else
15423 desiredlanguages="$ALL_LINGUAS"
15424 fi
15425 for desiredlang in $desiredlanguages; do
15426 # Use the presentlang catalog if desiredlang is
15427 # a. equal to presentlang, or
15428 # b. a variant of presentlang (because in this case,
15429 # presentlang can be used as a fallback for messages
15430 # which are not translated in the desiredlang catalog).
15431 case "$desiredlang" in
15432 "$presentlang"*) useit=yes;;
15433 esac
15434 done
15435 if test $useit = yes; then
15436 INST_LINGUAS="$INST_LINGUAS $presentlang"
15437 fi
15438 done
15439 fi
15440 CATALOGS=
15441 if test -n "$INST_LINGUAS"; then
15442 for lang in $INST_LINGUAS; do
15443 CATALOGS="$CATALOGS $lang.gmo"
15444 done
15445 fi
15446 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15447 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"
15448 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15449 if test -f "$f"; then
15450 case "$f" in
15451 *.orig | *.bak | *~) ;;
15452 *) cat "$f" >> "$ac_dir/Makefile" ;;
15453 esac
15454 fi
15455 done
15456 fi
15457 ;;
15458 esac
15459 done ;;
15460 "default-2":C)
15461 for ac_file in $CONFIG_FILES; do
15462 # Support "outfile[:infile[:infile...]]"
15463 case "$ac_file" in
15464 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15465 esac
15466 # PO directories have a Makefile.in generated from Makefile.in.in.
15467 case "$ac_file" in */Makefile.in)
15468 # Adjust a relative srcdir.
15469 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15470 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15471 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15472 # In autoconf-2.13 it is called $ac_given_srcdir.
15473 # In autoconf-2.50 it is called $srcdir.
15474 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15475 case "$ac_given_srcdir" in
15476 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15477 /*) top_srcdir="$ac_given_srcdir" ;;
15478 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15479 esac
15480 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15481 rm -f "$ac_dir/POTFILES"
15482 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15483 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15484 POMAKEFILEDEPS="POTFILES.in"
15485 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15486 # on $ac_dir but don't depend on user-specified configuration
15487 # parameters.
15488 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15489 # The LINGUAS file contains the set of available languages.
15490 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15491 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
15492 fi
15493 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15494 # Hide the ALL_LINGUAS assigment from automake.
15495 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15496 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15497 else
15498 # The set of available languages was given in configure.ac.
15499 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15500 fi
15501 case "$ac_given_srcdir" in
15502 .) srcdirpre= ;;
15503 *) srcdirpre='$(srcdir)/' ;;
15504 esac
15505 POFILES=
15506 GMOFILES=
15507 UPDATEPOFILES=
15508 DUMMYPOFILES=
15509 for lang in $ALL_LINGUAS; do
15510 POFILES="$POFILES $srcdirpre$lang.po"
15511 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15512 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15513 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15514 done
15515 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15516 # environment variable.
15517 INST_LINGUAS=
15518 if test -n "$ALL_LINGUAS"; then
15519 for presentlang in $ALL_LINGUAS; do
15520 useit=no
15521 if test "%UNSET%" != "$LINGUAS"; then
15522 desiredlanguages="$LINGUAS"
15523 else
15524 desiredlanguages="$ALL_LINGUAS"
15525 fi
15526 for desiredlang in $desiredlanguages; do
15527 # Use the presentlang catalog if desiredlang is
15528 # a. equal to presentlang, or
15529 # b. a variant of presentlang (because in this case,
15530 # presentlang can be used as a fallback for messages
15531 # which are not translated in the desiredlang catalog).
15532 case "$desiredlang" in
15533 "$presentlang"*) useit=yes;;
15534 esac
15535 done
15536 if test $useit = yes; then
15537 INST_LINGUAS="$INST_LINGUAS $presentlang"
15538 fi
15539 done
15540 fi
15541 CATALOGS=
15542 if test -n "$INST_LINGUAS"; then
15543 for lang in $INST_LINGUAS; do
15544 CATALOGS="$CATALOGS $lang.gmo"
15545 done
15546 fi
15547 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15548 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"
15549 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15550 if test -f "$f"; then
15551 case "$f" in
15552 *.orig | *.bak | *~) ;;
15553 *) cat "$f" >> "$ac_dir/Makefile" ;;
15554 esac
15555 fi
15556 done
15557 fi
15558 ;;
15559 esac
15560 done ;;
15561
15562 esac
15563 done # for ac_tag
15564
15565
15566 as_fn_exit 0
15567 _ACEOF
15568 ac_clean_files=$ac_clean_files_save
15569
15570 test $ac_write_fail = 0 ||
15571 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15572
15573
15574 # configure is writing to config.log, and then calls config.status.
15575 # config.status does its own redirection, appending to config.log.
15576 # Unfortunately, on DOS this fails, as config.log is still kept open
15577 # by configure, so config.status won't be able to write to it; its
15578 # output is simply discarded. So we exec the FD to /dev/null,
15579 # effectively closing config.log, so it can be properly (re)opened and
15580 # appended to by config.status. When coming back to configure, we
15581 # need to make the FD available again.
15582 if test "$no_create" != yes; then
15583 ac_cs_success=:
15584 ac_config_status_args=
15585 test "$silent" = yes &&
15586 ac_config_status_args="$ac_config_status_args --quiet"
15587 exec 5>/dev/null
15588 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15589 exec 5>>config.log
15590 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15591 # would make configure fail if this is the last instruction.
15592 $ac_cs_success || as_fn_exit 1
15593 fi
15594 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15596 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15597 fi
15598