gdb: remove callback in macro expand functions
[deliverable/binutils-gdb.git] / gold / configure
CommitLineData
bae7f79e
ILT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69 for gold 0.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
bae7f79e 8#
bae7f79e
ILT
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
bae7f79e 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bae7f79e
ILT
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bae7f79e
ILT
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
bae7f79e 31fi
bae7f79e 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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 }
bae7f79e
ILT
79fi
80
81
81ecdfbb
RW
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102 ;;
103esac
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.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
bae7f79e
ILT
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if 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
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
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
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bae7f79e 211do
81ecdfbb
RW
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
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
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
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
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.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $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
257exit 255
81ecdfbb
RW
258fi
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."
bae7f79e 266 else
81ecdfbb
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
bae7f79e 271 fi
81ecdfbb
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
bae7f79e 301
81ecdfbb
RW
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_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.
315as_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"
d0ac1c44 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
356
357
358} # as_fn_mkdir_p
d0ac1c44
SM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
81ecdfbb
RW
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.
373if (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 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # 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.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
d0ac1c44
SM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
81ecdfbb
RW
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
d0ac1c44 407# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
408as_fn_error ()
409{
d0ac1c44
SM
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
81ecdfbb 414 fi
d0ac1c44 415 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bae7f79e
ILT
421 as_expr=expr
422else
423 as_expr=false
424fi
425
81ecdfbb 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bae7f79e
ILT
427 as_basename=basename
428else
429 as_basename=false
430fi
431
81ecdfbb
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
bae7f79e 437
81ecdfbb 438as_me=`$as_basename -- "$0" ||
bae7f79e
ILT
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
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'`
bae7f79e 456
bae7f79e
ILT
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
bae7f79e 464
81ecdfbb
RW
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 |
bae7f79e 474 sed '
81ecdfbb
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
bae7f79e 479 N
81ecdfbb
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bae7f79e 482 t loop
81ecdfbb 483 s/-\n.*//
bae7f79e 484 ' >$as_me.lineno &&
81ecdfbb
RW
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; }
bae7f79e 487
d0ac1c44
SM
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
bae7f79e
ILT
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
81ecdfbb
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
bae7f79e
ILT
496 # Exit status is that of the last command.
497 exit
498}
499
81ecdfbb
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `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';;
bae7f79e
ILT
511esac
512
81ecdfbb
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
bae7f79e 516else
81ecdfbb
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
bae7f79e 519fi
81ecdfbb
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
bae7f79e 522 as_ln_s='ln -s'
81ecdfbb
RW
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.
d0ac1c44 526 # In both cases, we have to default to `cp -pR'.
81ecdfbb 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 528 as_ln_s='cp -pR'
81ecdfbb
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d0ac1c44 532 as_ln_s='cp -pR'
bae7f79e 533 fi
bae7f79e 534else
d0ac1c44 535 as_ln_s='cp -pR'
bae7f79e 536fi
81ecdfbb
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
bae7f79e
ILT
539
540if mkdir -p . 2>/dev/null; then
81ecdfbb 541 as_mkdir_p='mkdir -p "$as_dir"'
bae7f79e
ILT
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
d0ac1c44
SM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
bae7f79e
ILT
549
550# Sed expression to map a string onto a valid CPP name.
551as_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.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
d0ac1c44
SM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
bae7f79e
ILT
559
560# Name of the host.
d0ac1c44 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
bae7f79e
ILT
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
bae7f79e
ILT
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
81ecdfbb 569ac_clean_files=
bae7f79e 570ac_config_libobj_dir=.
81ecdfbb 571LIBOBJS=
bae7f79e
ILT
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
bae7f79e
ILT
576
577# Identity of this package.
8486ee48
ILT
578PACKAGE_NAME='gold'
579PACKAGE_TARNAME='gold'
580PACKAGE_VERSION='0.1'
581PACKAGE_STRING='gold 0.1'
582PACKAGE_BUGREPORT=''
81ecdfbb 583PACKAGE_URL=''
bae7f79e
ILT
584
585ac_unique_file="gold.cc"
54dc6425
ILT
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
81ecdfbb 589#ifdef HAVE_SYS_TYPES_H
54dc6425
ILT
590# include <sys/types.h>
591#endif
81ecdfbb 592#ifdef HAVE_SYS_STAT_H
54dc6425
ILT
593# include <sys/stat.h>
594#endif
81ecdfbb 595#ifdef STDC_HEADERS
54dc6425
ILT
596# include <stdlib.h>
597# include <stddef.h>
598#else
81ecdfbb 599# ifdef HAVE_STDLIB_H
54dc6425
ILT
600# include <stdlib.h>
601# endif
602#endif
81ecdfbb
RW
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
54dc6425
ILT
605# include <memory.h>
606# endif
607# include <string.h>
608#endif
81ecdfbb 609#ifdef HAVE_STRINGS_H
54dc6425
ILT
610# include <strings.h>
611#endif
81ecdfbb 612#ifdef HAVE_INTTYPES_H
54dc6425 613# include <inttypes.h>
54dc6425 614#endif
81ecdfbb
RW
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
54dc6425
ILT
619# include <unistd.h>
620#endif"
621
81ecdfbb
RW
622ac_subst_vars='am__EXEEXT_FALSE
623am__EXEEXT_TRUE
624LTLIBOBJS
625MAINT
626MAINTAINER_MODE_FALSE
627MAINTAINER_MODE_TRUE
0bf402d5 628DLOPEN_LIBS
81ecdfbb 629CXXCPP
ae447ddd
CC
630HAVE_NO_USE_LINKER_PLUGIN_FALSE
631HAVE_NO_USE_LINKER_PLUGIN_TRUE
632HAVE_PUBNAMES_FALSE
633HAVE_PUBNAMES_TRUE
c8dc28bc
CC
634THREADS_FALSE
635THREADS_TRUE
636PTHREAD_CFLAGS
637PTHREAD_LIBS
638PTHREAD_CC
639ax_pthread_config
640SED
918357b9
L
641zlibinc
642zlibdir
81ecdfbb
RW
643LIBOBJS
644LFS_CFLAGS
dc87f620
ILT
645GOLD_LDADD
646GOLD_LDFLAGS
81ecdfbb 647WARN_CXXFLAGS
6757cf57 648WARN_WRITE_STRINGS
81ecdfbb 649NO_WERROR
c5da1932 650WARN_CFLAGS_FOR_BUILD
81ecdfbb 651WARN_CFLAGS
ebb300b2
CC
652IFUNC_STATIC_FALSE
653IFUNC_STATIC_TRUE
7223e9ca
ILT
654IFUNC_FALSE
655IFUNC_TRUE
81ecdfbb 656RANDOM_SEED_CFLAGS
81ecdfbb
RW
657TLS_DESCRIPTORS_FALSE
658TLS_DESCRIPTORS_TRUE
659TLS_GNU2_DIALECT_FALSE
660TLS_GNU2_DIALECT_TRUE
661OMP_SUPPORT_FALSE
662OMP_SUPPORT_TRUE
663STATIC_TLS_FALSE
664STATIC_TLS_TRUE
665TLS_FALSE
666TLS_TRUE
2b64b551 667MERGE_CONSTANTS_FLAG
81ecdfbb
RW
668MCMODEL_MEDIUM_FALSE
669MCMODEL_MEDIUM_TRUE
670FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
671FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
328c7c2f
ILT
672HAVE_STATIC_FALSE
673HAVE_STATIC_TRUE
eb373049
ILT
674NATIVE_OR_CROSS_LINKER_FALSE
675NATIVE_OR_CROSS_LINKER_TRUE
81ecdfbb
RW
676GCC_FALSE
677GCC_TRUE
678NATIVE_LINKER_FALSE
679NATIVE_LINKER_TRUE
680MSGMERGE
681MSGFMT
682MKINSTALLDIRS
683CATOBJEXT
684GENCAT
685INSTOBJEXT
686DATADIRNAME
687CATALOGS
688POSUB
689GMSGFMT
690XGETTEXT
691INCINTL
692LIBINTL_DEP
693LIBINTL
694USE_NLS
81ecdfbb
RW
695LN_S
696RANLIB
697YFLAGS
698YACC
699am__fastdepCXX_FALSE
700am__fastdepCXX_TRUE
701CXXDEPMODE
702ac_ct_CXX
703CXXFLAGS
704CXX
ebb300b2 705NM
81ecdfbb 706TARGETOBJS
9df9de2c 707DEFAULT_TARGET
9810d34d
SS
708DEFAULT_TARGET_MIPS_FALSE
709DEFAULT_TARGET_MIPS_TRUE
0a6f1bf2
AM
710DEFAULT_TARGET_TILEGX_FALSE
711DEFAULT_TARGET_TILEGX_TRUE
ad961eab
L
712DEFAULT_TARGET_X86_64_OR_X32_FALSE
713DEFAULT_TARGET_X86_64_OR_X32_TRUE
4fc1b9d4
L
714DEFAULT_TARGET_X32_FALSE
715DEFAULT_TARGET_X32_TRUE
364c7fa5
ILT
716DEFAULT_TARGET_X86_64_FALSE
717DEFAULT_TARGET_X86_64_TRUE
e79a4bad
MK
718DEFAULT_TARGET_S390_FALSE
719DEFAULT_TARGET_S390_TRUE
364c7fa5
ILT
720DEFAULT_TARGET_SPARC_FALSE
721DEFAULT_TARGET_SPARC_TRUE
722DEFAULT_TARGET_POWERPC_FALSE
723DEFAULT_TARGET_POWERPC_TRUE
724DEFAULT_TARGET_I386_FALSE
725DEFAULT_TARGET_I386_TRUE
726DEFAULT_TARGET_ARM_FALSE
727DEFAULT_TARGET_ARM_TRUE
053a4d68
JY
728DEFAULT_TARGET_AARCH64_FALSE
729DEFAULT_TARGET_AARCH64_TRUE
81ecdfbb
RW
730PLUGINS_FALSE
731PLUGINS_TRUE
4fda8867
NC
732installed_linker
733install_as_default
24538276
CC
734EGREP
735GREP
736CPP
737am__fastdepCC_FALSE
738am__fastdepCC_TRUE
739CCDEPMODE
740am__nodep
741AMDEPBACKSLASH
742AMDEP_FALSE
743AMDEP_TRUE
744am__quote
745am__include
746DEPDIR
747OBJEXT
748EXEEXT
749ac_ct_CC
750CPPFLAGS
751LDFLAGS
752CFLAGS
753CC
d0ac1c44
SM
754AM_BACKSLASH
755AM_DEFAULT_VERBOSITY
756AM_DEFAULT_V
757AM_V
81ecdfbb
RW
758am__untar
759am__tar
760AMTAR
761am__leading_dot
762SET_MAKE
763AWK
764mkdir_p
765MKDIR_P
766INSTALL_STRIP_PROGRAM
767STRIP
768install_sh
769MAKEINFO
770AUTOHEADER
771AUTOMAKE
772AUTOCONF
773ACLOCAL
774VERSION
775PACKAGE
776CYGPATH_W
777am__isrc
778INSTALL_DATA
779INSTALL_SCRIPT
780INSTALL_PROGRAM
781target_os
782target_vendor
783target_cpu
784target
785host_os
786host_vendor
787host_cpu
788host
789build_os
790build_vendor
791build_cpu
792build
793target_alias
794host_alias
795build_alias
796LIBS
797ECHO_T
798ECHO_N
799ECHO_C
800DEFS
801mandir
802localedir
803libdir
804psdir
805pdfdir
806dvidir
807htmldir
808infodir
809docdir
810oldincludedir
811includedir
812localstatedir
813sharedstatedir
814sysconfdir
815datadir
816datarootdir
817libexecdir
818sbindir
819bindir
820program_transform_name
821prefix
822exec_prefix
823PACKAGE_URL
824PACKAGE_BUGREPORT
825PACKAGE_STRING
826PACKAGE_VERSION
827PACKAGE_TARNAME
828PACKAGE_NAME
829PATH_SEPARATOR
830SHELL'
bae7f79e 831ac_subst_files=''
81ecdfbb
RW
832ac_user_opts='
833enable_option_checking
d0ac1c44 834enable_silent_rules
24538276 835enable_dependency_tracking
81ecdfbb 836with_sysroot
4fda8867 837enable_gold
81ecdfbb 838enable_plugins
6b1edb94 839enable_relro
81ecdfbb 840enable_targets
2760f24c 841enable_default_hash_style
3f3cddf1 842with_lib_path
81ecdfbb
RW
843enable_nls
844enable_werror
845enable_build_warnings
dc87f620
ILT
846with_gold_ldflags
847with_gold_ldadd
918357b9 848with_system_zlib
c8dc28bc 849enable_threads
81ecdfbb
RW
850enable_maintainer_mode
851'
852 ac_precious_vars='build_alias
853host_alias
854target_alias
855CC
856CFLAGS
857LDFLAGS
858LIBS
859CPPFLAGS
24538276 860CPP
81ecdfbb
RW
861CXX
862CXXFLAGS
863CCC
864YACC
865YFLAGS
81ecdfbb
RW
866CXXCPP'
867
bae7f79e
ILT
868
869# Initialize some variables set by options.
870ac_init_help=
871ac_init_version=false
81ecdfbb
RW
872ac_unrecognized_opts=
873ac_unrecognized_sep=
bae7f79e
ILT
874# The variables have the same names as the options, with
875# dashes changed to underlines.
876cache_file=/dev/null
877exec_prefix=NONE
878no_create=
879no_recursion=
880prefix=NONE
881program_prefix=NONE
882program_suffix=NONE
883program_transform_name=s,x,x,
884silent=
885site=
886srcdir=
887verbose=
888x_includes=NONE
889x_libraries=NONE
890
891# Installation directory options.
892# These are left unexpanded so users can "make install exec_prefix=/foo"
893# and all the variables that are supposed to be based on exec_prefix
894# by default will actually change.
895# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 896# (The list follows the same order as the GNU Coding Standards.)
bae7f79e
ILT
897bindir='${exec_prefix}/bin'
898sbindir='${exec_prefix}/sbin'
899libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
900datarootdir='${prefix}/share'
901datadir='${datarootdir}'
bae7f79e
ILT
902sysconfdir='${prefix}/etc'
903sharedstatedir='${prefix}/com'
904localstatedir='${prefix}/var'
bae7f79e
ILT
905includedir='${prefix}/include'
906oldincludedir='/usr/include'
81ecdfbb
RW
907docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
908infodir='${datarootdir}/info'
909htmldir='${docdir}'
910dvidir='${docdir}'
911pdfdir='${docdir}'
912psdir='${docdir}'
913libdir='${exec_prefix}/lib'
914localedir='${datarootdir}/locale'
915mandir='${datarootdir}/man'
bae7f79e
ILT
916
917ac_prev=
81ecdfbb 918ac_dashdash=
bae7f79e
ILT
919for ac_option
920do
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
81ecdfbb 923 eval $ac_prev=\$ac_option
bae7f79e
ILT
924 ac_prev=
925 continue
926 fi
927
81ecdfbb 928 case $ac_option in
d0ac1c44
SM
929 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 *=) ac_optarg= ;;
931 *) ac_optarg=yes ;;
81ecdfbb 932 esac
bae7f79e
ILT
933
934 # Accept the important Cygnus configure options, so we can diagnose typos.
935
81ecdfbb
RW
936 case $ac_dashdash$ac_option in
937 --)
938 ac_dashdash=yes ;;
bae7f79e
ILT
939
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 ac_prev=bindir ;;
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 bindir=$ac_optarg ;;
944
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
949
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
956
957 --config-cache | -C)
958 cache_file=config.cache ;;
959
81ecdfbb 960 -datadir | --datadir | --datadi | --datad)
bae7f79e 961 ac_prev=datadir ;;
81ecdfbb 962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bae7f79e
ILT
963 datadir=$ac_optarg ;;
964
81ecdfbb
RW
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
971
bae7f79e 972 -disable-* | --disable-*)
81ecdfbb 973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
bae7f79e 974 # Reject names that are not valid shell variable names.
81ecdfbb 975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 976 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981"enable_$ac_useropt"
982"*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=no ;;
987
988 -docdir | --docdir | --docdi | --doc | --do)
989 ac_prev=docdir ;;
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 docdir=$ac_optarg ;;
992
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 ac_prev=dvidir ;;
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 dvidir=$ac_optarg ;;
bae7f79e
ILT
997
998 -enable-* | --enable-*)
81ecdfbb 999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
bae7f79e 1000 # Reject names that are not valid shell variable names.
81ecdfbb 1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1002 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1006 *"
1007"enable_$ac_useropt"
1008"*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
bae7f79e 1011 esac
81ecdfbb 1012 eval enable_$ac_useropt=\$ac_optarg ;;
bae7f79e
ILT
1013
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1022
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1025 with_gas=yes ;;
1026
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1033
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1038
81ecdfbb
RW
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040 ac_prev=htmldir ;;
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042 | --ht=*)
1043 htmldir=$ac_optarg ;;
1044
bae7f79e
ILT
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1051
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1053 ac_prev=infodir ;;
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1056
1057 -libdir | --libdir | --libdi | --libd)
1058 ac_prev=libdir ;;
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1061
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1068
81ecdfbb
RW
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1073
bae7f79e 1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1075 | --localstate | --localstat | --localsta | --localst | --locals)
bae7f79e
ILT
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bae7f79e
ILT
1079 localstatedir=$ac_optarg ;;
1080
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082 ac_prev=mandir ;;
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1085
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1088 with_fp=no ;;
1089
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1092 no_create=yes ;;
1093
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 no_recursion=yes ;;
1097
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1106
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108 ac_prev=prefix ;;
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1111
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1118
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1125
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1142
81ecdfbb
RW
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144 ac_prev=pdfdir ;;
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1147
1148 -psdir | --psdir | --psdi | --psd | --ps)
1149 ac_prev=psdir ;;
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 psdir=$ac_optarg ;;
1152
bae7f79e
ILT
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1155 silent=yes ;;
1156
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158 ac_prev=sbindir ;;
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160 | --sbi=* | --sb=*)
1161 sbindir=$ac_optarg ;;
1162
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1166 | --sha | --sh)
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171 | --sha=* | --sh=*)
1172 sharedstatedir=$ac_optarg ;;
1173
1174 -site | --site | --sit)
1175 ac_prev=site ;;
1176 -site=* | --site=* | --sit=*)
1177 site=$ac_optarg ;;
1178
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180 ac_prev=srcdir ;;
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1183
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1190
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1195
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197 verbose=yes ;;
1198
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1201
1202 -with-* | --with-*)
81ecdfbb 1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
bae7f79e 1204 # Reject names that are not valid shell variable names.
81ecdfbb 1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1206 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1210 *"
1211"with_$ac_useropt"
1212"*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
bae7f79e 1215 esac
81ecdfbb 1216 eval with_$ac_useropt=\$ac_optarg ;;
bae7f79e
ILT
1217
1218 -without-* | --without-*)
81ecdfbb 1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
bae7f79e 1220 # Reject names that are not valid shell variable names.
81ecdfbb 1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1222 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1226 *"
1227"with_$ac_useropt"
1228"*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval with_$ac_useropt=no ;;
bae7f79e
ILT
1233
1234 --x)
1235 # Obsolete; use --with-x.
1236 with_x=yes ;;
1237
1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239 | --x-incl | --x-inc | --x-in | --x-i)
1240 ac_prev=x_includes ;;
1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243 x_includes=$ac_optarg ;;
1244
1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247 ac_prev=x_libraries ;;
1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250 x_libraries=$ac_optarg ;;
1251
d0ac1c44
SM
1252 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1253Try \`$0 --help' for more information"
bae7f79e
ILT
1254 ;;
1255
1256 *=*)
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1259 case $ac_envvar in #(
1260 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1261 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1262 esac
1263 eval $ac_envvar=\$ac_optarg
bae7f79e
ILT
1264 export $ac_envvar ;;
1265
1266 *)
1267 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bae7f79e 1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
bae7f79e
ILT
1272 ;;
1273
1274 esac
1275done
1276
1277if test -n "$ac_prev"; then
1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1279 as_fn_error $? "missing argument to $ac_option"
bae7f79e
ILT
1280fi
1281
81ecdfbb
RW
1282if test -n "$ac_unrecognized_opts"; then
1283 case $enable_option_checking in
1284 no) ;;
d0ac1c44 1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
bae7f79e 1287 esac
81ecdfbb 1288fi
bae7f79e 1289
81ecdfbb
RW
1290# Check all directory arguments for consistency.
1291for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
bae7f79e 1295do
81ecdfbb
RW
1296 eval ac_val=\$$ac_var
1297 # Remove trailing slashes.
1298 case $ac_val in
1299 */ )
1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\$ac_val;;
1302 esac
1303 # Be sure to have absolute directory names.
bae7f79e 1304 case $ac_val in
81ecdfbb
RW
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
bae7f79e 1307 esac
d0ac1c44 1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
bae7f79e
ILT
1309done
1310
1311# There might be people who depend on the old broken behavior: `$host'
1312# used to hold the argument of --host etc.
1313# FIXME: To remove some day.
1314build=$build_alias
1315host=$host_alias
1316target=$target_alias
1317
1318# FIXME: To remove some day.
1319if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
bae7f79e
ILT
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1324 fi
1325fi
1326
1327ac_tool_prefix=
1328test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330test "$silent" = yes && exec 6>/dev/null
1331
1332
81ecdfbb
RW
1333ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334ac_ls_di=`ls -di .` &&
1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1336 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1337test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1338 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1339
1340
bae7f79e
ILT
1341# Find the source files, if location was not specified.
1342if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
81ecdfbb
RW
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$as_myself" ||
1346$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350$as_echo X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)[^/].*/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\).*/{
1364 s//\1/
1365 q
1366 }
1367 s/.*/./; q'`
bae7f79e 1368 srcdir=$ac_confdir
81ecdfbb 1369 if test ! -r "$srcdir/$ac_unique_file"; then
bae7f79e
ILT
1370 srcdir=..
1371 fi
1372else
1373 ac_srcdir_defaulted=no
1374fi
81ecdfbb
RW
1375if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1377 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1378fi
1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380ac_abs_confdir=`(
d0ac1c44 1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1382 pwd)`
1383# When building in place, set srcdir=.
1384if test "$ac_abs_confdir" = "$ac_pwd"; then
1385 srcdir=.
1386fi
1387# Remove unnecessary trailing slashes from srcdir.
1388# Double slashes in file names in object file debugging info
1389# mess up M-x gdb in Emacs.
1390case $srcdir in
1391*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392esac
1393for ac_var in $ac_precious_vars; do
1394 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_env_${ac_var}_value=\$${ac_var}
1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398done
bae7f79e
ILT
1399
1400#
1401# Report the --help message.
1402#
1403if test "$ac_init_help" = "long"; then
1404 # Omit some internal or obsolete options to make the list less imposing.
1405 # This message is too long to be a string in the A/UX 3.1 sh.
1406 cat <<_ACEOF
8486ee48 1407\`configure' configures gold 0.1 to adapt to many kinds of systems.
bae7f79e
ILT
1408
1409Usage: $0 [OPTION]... [VAR=VALUE]...
1410
1411To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412VAR=VALUE. See below for descriptions of some of the useful variables.
1413
1414Defaults for the options are specified in brackets.
1415
1416Configuration:
1417 -h, --help display this help and exit
1418 --help=short display options specific to this package
1419 --help=recursive display the short help of all the included packages
1420 -V, --version display version information and exit
d0ac1c44 1421 -q, --quiet, --silent do not print \`checking ...' messages
bae7f79e
ILT
1422 --cache-file=FILE cache test results in FILE [disabled]
1423 -C, --config-cache alias for \`--cache-file=config.cache'
1424 -n, --no-create do not create output files
1425 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1426
bae7f79e
ILT
1427Installation directories:
1428 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1429 [$ac_default_prefix]
bae7f79e 1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1431 [PREFIX]
bae7f79e
ILT
1432
1433By default, \`make install' will install all the files in
1434\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1435an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436for instance \`--prefix=\$HOME'.
1437
1438For better control, use the options below.
1439
1440Fine tuning of the installation directories:
81ecdfbb
RW
1441 --bindir=DIR user executables [EPREFIX/bin]
1442 --sbindir=DIR system admin executables [EPREFIX/sbin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1447 --libdir=DIR object code libraries [EPREFIX/lib]
1448 --includedir=DIR C header files [PREFIX/include]
1449 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1452 --infodir=DIR info documentation [DATAROOTDIR/info]
1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1454 --mandir=DIR man documentation [DATAROOTDIR/man]
1455 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1456 --htmldir=DIR html documentation [DOCDIR]
1457 --dvidir=DIR dvi documentation [DOCDIR]
1458 --pdfdir=DIR pdf documentation [DOCDIR]
1459 --psdir=DIR ps documentation [DOCDIR]
bae7f79e
ILT
1460_ACEOF
1461
1462 cat <<\_ACEOF
1463
1464Program names:
1465 --program-prefix=PREFIX prepend PREFIX to installed program names
1466 --program-suffix=SUFFIX append SUFFIX to installed program names
1467 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1468
1469System types:
1470 --build=BUILD configure for building on BUILD [guessed]
1471 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472 --target=TARGET configure for building compilers for TARGET [HOST]
1473_ACEOF
1474fi
1475
1476if test -n "$ac_init_help"; then
8486ee48
ILT
1477 case $ac_init_help in
1478 short | recursive ) echo "Configuration of gold 0.1:";;
1479 esac
bae7f79e
ILT
1480 cat <<\_ACEOF
1481
1482Optional Features:
81ecdfbb 1483 --disable-option-checking ignore unrecognized --enable/--with options
bae7f79e
ILT
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d0ac1c44
SM
1486 --enable-silent-rules less verbose build output (undo: "make V=1")
1487 --disable-silent-rules verbose build output (undo: "make V=0")
1488 --enable-dependency-tracking
1489 do not reject slow dependency extractors
1490 --disable-dependency-tracking
1491 speeds up one-time build
c7791212 1492 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
24538276 1493 --enable-plugins Enable support for plugins
6b1edb94 1494 --enable-relro enable -z relro in ELF linker by default
193a53d9 1495 --enable-targets alternative target configurations
2760f24c
RG
1496 --enable-default-hash-style={sysv,gnu,both}
1497 use this default hash style
bae7f79e
ILT
1498 --disable-nls do not use Native Language Support
1499 --enable-werror treat compile warnings as errors
1500 --enable-build-warnings enable build-time compiler warnings
c8dc28bc 1501 --enable-threads[=ARG] multi-threaded linking [ARG={auto,yes,no}]
d0ac1c44
SM
1502 --enable-maintainer-mode
1503 enable make rules and dependencies not useful (and
1504 sometimes confusing) to the casual installer
bae7f79e 1505
ad2d6943
ILT
1506Optional Packages:
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-sysroot=DIR search for usr/lib et al within DIR
3f3cddf1 1510 --with-lib-path=dir1:dir2... set default LIB_PATH
dc87f620
ILT
1511 --with-gold-ldflags=FLAGS additional link flags for gold
1512 --with-gold-ldadd=LIBS additional libraries for gold
918357b9 1513 --with-system-zlib use installed libz
ad2d6943 1514
bae7f79e
ILT
1515Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
81ecdfbb 1520 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1522 you have headers in a nonstandard directory <include dir>
24538276 1523 CPP C preprocessor
bae7f79e
ILT
1524 CXX C++ compiler command
1525 CXXFLAGS C++ compiler flags
d0ac1c44
SM
1526 YACC The `Yet Another Compiler Compiler' implementation to use.
1527 Defaults to the first program found out of: `bison -y', `byacc',
1528 `yacc'.
81ecdfbb
RW
1529 YFLAGS The list of arguments that will be passed by default to $YACC.
1530 This script will default YFLAGS to the empty string to avoid a
1531 default value of `-d' given by some make applications.
54dc6425 1532 CXXCPP C++ preprocessor
bae7f79e
ILT
1533
1534Use these variables to override the choices made by `configure' or to help
1535it to find libraries and programs with nonstandard names/locations.
1536
81ecdfbb 1537Report bugs to the package provider.
bae7f79e 1538_ACEOF
81ecdfbb 1539ac_status=$?
bae7f79e
ILT
1540fi
1541
1542if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
bae7f79e 1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
bae7f79e
ILT
1548 ac_builddir=.
1549
81ecdfbb
RW
1550case "$ac_dir" in
1551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552*)
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560esac
1561ac_abs_top_builddir=$ac_pwd
1562ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563# for backward compatibility:
1564ac_top_builddir=$ac_top_build_prefix
bae7f79e
ILT
1565
1566case $srcdir in
81ecdfbb 1567 .) # We are building in place.
bae7f79e 1568 ac_srcdir=.
81ecdfbb
RW
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
bae7f79e 1572 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bae7f79e 1579esac
81ecdfbb
RW
1580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure" --help=recursive
bae7f79e 1590 else
81ecdfbb
RW
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 fi || ac_status=$?
1593 cd "$ac_pwd" || { ac_status=$?; break; }
bae7f79e
ILT
1594 done
1595fi
1596
81ecdfbb 1597test -n "$ac_init_help" && exit $ac_status
bae7f79e
ILT
1598if $ac_init_version; then
1599 cat <<\_ACEOF
8486ee48 1600gold configure 0.1
d0ac1c44 1601generated by GNU Autoconf 2.69
bae7f79e 1602
d0ac1c44 1603Copyright (C) 2012 Free Software Foundation, Inc.
bae7f79e
ILT
1604This configure script is free software; the Free Software Foundation
1605gives unlimited permission to copy, distribute and modify it.
1606_ACEOF
81ecdfbb 1607 exit
bae7f79e 1608fi
bae7f79e 1609
81ecdfbb
RW
1610## ------------------------ ##
1611## Autoconf initialization. ##
1612## ------------------------ ##
bae7f79e 1613
81ecdfbb
RW
1614# ac_fn_c_try_compile LINENO
1615# --------------------------
1616# Try to compile conftest.$ac_ext, and return whether this succeeded.
1617ac_fn_c_try_compile ()
bae7f79e 1618{
81ecdfbb
RW
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 rm -f conftest.$ac_objext
1621 if { { ac_try="$ac_compile"
1622case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625esac
1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627$as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_compile") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1634 fi
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && {
1637 test -z "$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 } && test -s conftest.$ac_objext; then :
1640 ac_retval=0
1641else
1642 $as_echo "$as_me: failed program was:" >&5
1643sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1644
81ecdfbb
RW
1645 ac_retval=1
1646fi
d0ac1c44
SM
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
bae7f79e 1649
81ecdfbb 1650} # ac_fn_c_try_compile
bae7f79e 1651
81ecdfbb
RW
1652# ac_fn_c_try_cpp LINENO
1653# ----------------------
1654# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655ac_fn_c_try_cpp ()
1656{
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_cpp conftest.$ac_ext"
1659case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664$as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1673 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 }; then :
1677 ac_retval=0
1678else
1679 $as_echo "$as_me: failed program was:" >&5
1680sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1681
81ecdfbb
RW
1682 ac_retval=1
1683fi
d0ac1c44
SM
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
bae7f79e 1686
81ecdfbb 1687} # ac_fn_c_try_cpp
bae7f79e 1688
81ecdfbb
RW
1689# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1690# -------------------------------------------------------
1691# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1692# the include files in INCLUDES and setting the cache variable VAR
1693# accordingly.
1694ac_fn_c_check_header_mongrel ()
1695{
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1697 if eval \${$3+:} false; then :
81ecdfbb
RW
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1700if eval \${$3+:} false; then :
81ecdfbb
RW
1701 $as_echo_n "(cached) " >&6
1702fi
1703eval ac_res=\$$3
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705$as_echo "$ac_res" >&6; }
1706else
1707 # Is the header compilable?
1708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1709$as_echo_n "checking $2 usability... " >&6; }
1710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711/* end confdefs.h. */
1712$4
1713#include <$2>
bae7f79e 1714_ACEOF
81ecdfbb
RW
1715if ac_fn_c_try_compile "$LINENO"; then :
1716 ac_header_compiler=yes
1717else
1718 ac_header_compiler=no
1719fi
1720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1722$as_echo "$ac_header_compiler" >&6; }
bae7f79e 1723
81ecdfbb
RW
1724# Is the header present?
1725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1726$as_echo_n "checking $2 presence... " >&6; }
1727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728/* end confdefs.h. */
1729#include <$2>
1730_ACEOF
1731if ac_fn_c_try_cpp "$LINENO"; then :
1732 ac_header_preproc=yes
1733else
1734 ac_header_preproc=no
1735fi
d0ac1c44 1736rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1738$as_echo "$ac_header_preproc" >&6; }
bae7f79e 1739
81ecdfbb
RW
1740# So? What about this header?
1741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1742 yes:no: )
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1744$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1746$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1747 ;;
1748 no:yes:* )
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1750$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1752$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1754$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1756$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1759 ;;
1760esac
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1763if eval \${$3+:} false; then :
81ecdfbb
RW
1764 $as_echo_n "(cached) " >&6
1765else
1766 eval "$3=\$ac_header_compiler"
1767fi
1768eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
1771fi
d0ac1c44 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 1773
81ecdfbb 1774} # ac_fn_c_check_header_mongrel
bae7f79e 1775
81ecdfbb
RW
1776# ac_fn_c_try_run LINENO
1777# ----------------------
1778# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779# that executables *can* be run.
1780ac_fn_c_try_run ()
bae7f79e 1781{
81ecdfbb
RW
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if { { ac_try="$ac_link"
1784case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787esac
1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789$as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>&5
1791 ac_status=$?
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794 { { case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797esac
1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799$as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_try") 2>&5
1801 ac_status=$?
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; }; }; then :
1804 ac_retval=0
1805else
1806 $as_echo "$as_me: program exited with status $ac_status" >&5
1807 $as_echo "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1809
81ecdfbb
RW
1810 ac_retval=$ac_status
1811fi
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
bae7f79e 1815
81ecdfbb 1816} # ac_fn_c_try_run
bae7f79e 1817
81ecdfbb
RW
1818# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1819# -------------------------------------------------------
1820# Tests whether HEADER exists and can be compiled using the include files in
1821# INCLUDES, setting the cache variable VAR accordingly.
1822ac_fn_c_check_header_compile ()
1823{
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1827if eval \${$3+:} false; then :
81ecdfbb
RW
1828 $as_echo_n "(cached) " >&6
1829else
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831/* end confdefs.h. */
1832$4
1833#include <$2>
1834_ACEOF
1835if ac_fn_c_try_compile "$LINENO"; then :
1836 eval "$3=yes"
1837else
1838 eval "$3=no"
1839fi
1840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841fi
1842eval ac_res=\$$3
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844$as_echo "$ac_res" >&6; }
d0ac1c44 1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 1846
81ecdfbb 1847} # ac_fn_c_check_header_compile
bae7f79e 1848
81ecdfbb
RW
1849# ac_fn_c_try_link LINENO
1850# -----------------------
1851# Try to link conftest.$ac_ext, and return whether this succeeded.
1852ac_fn_c_try_link ()
1853{
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 rm -f conftest.$ac_objext conftest$ac_exeext
1856 if { { ac_try="$ac_link"
1857case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860esac
1861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862$as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>conftest.err
1864 ac_status=$?
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1869 fi
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && {
1872 test -z "$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1874 } && test -s conftest$ac_exeext && {
1875 test "$cross_compiling" = yes ||
d0ac1c44 1876 test -x conftest$ac_exeext
81ecdfbb
RW
1877 }; then :
1878 ac_retval=0
1879else
1880 $as_echo "$as_me: failed program was:" >&5
1881sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1882
81ecdfbb
RW
1883 ac_retval=1
1884fi
1885 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1886 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1887 # interfere with the next link command; also delete a directory that is
1888 # left behind by Apple's compiler. We do this before executing the actions.
1889 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status $ac_retval
bae7f79e 1892
81ecdfbb 1893} # ac_fn_c_try_link
bae7f79e 1894
24538276
CC
1895# ac_fn_cxx_try_compile LINENO
1896# ----------------------------
1897# Try to compile conftest.$ac_ext, and return whether this succeeded.
1898ac_fn_cxx_try_compile ()
1899{
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 rm -f conftest.$ac_objext
1902 if { { ac_try="$ac_compile"
1903case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906esac
1907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908$as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_compile") 2>conftest.err
1910 ac_status=$?
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1915 fi
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && {
1918 test -z "$ac_cxx_werror_flag" ||
1919 test ! -s conftest.err
1920 } && test -s conftest.$ac_objext; then :
1921 ac_retval=0
1922else
1923 $as_echo "$as_me: failed program was:" >&5
1924sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_retval=1
1927fi
d0ac1c44
SM
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
24538276
CC
1930
1931} # ac_fn_cxx_try_compile
1932
81ecdfbb
RW
1933# ac_fn_c_check_func LINENO FUNC VAR
1934# ----------------------------------
1935# Tests whether FUNC exists, setting the cache variable VAR accordingly
1936ac_fn_c_check_func ()
1937{
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1941if eval \${$3+:} false; then :
81ecdfbb
RW
1942 $as_echo_n "(cached) " >&6
1943else
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945/* end confdefs.h. */
1946/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1948#define $2 innocuous_$2
bae7f79e 1949
81ecdfbb
RW
1950/* System header to define __stub macros and hopefully few prototypes,
1951 which can conflict with char $2 (); below.
1952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1953 <limits.h> exists even on freestanding compilers. */
bae7f79e 1954
81ecdfbb
RW
1955#ifdef __STDC__
1956# include <limits.h>
1957#else
1958# include <assert.h>
1959#endif
bae7f79e 1960
81ecdfbb 1961#undef $2
bae7f79e 1962
81ecdfbb
RW
1963/* Override any GCC internal prototype to avoid an error.
1964 Use char because int might match the return type of a GCC
1965 builtin and then its argument prototype would still apply. */
1966#ifdef __cplusplus
1967extern "C"
1968#endif
1969char $2 ();
1970/* The GNU C library defines this for functions which it implements
1971 to always fail with ENOSYS. Some functions are actually named
1972 something starting with __ and the normal name is an alias. */
1973#if defined __stub_$2 || defined __stub___$2
1974choke me
1975#endif
1976
1977int
1978main ()
1979{
1980return $2 ();
1981 ;
1982 return 0;
1983}
bae7f79e 1984_ACEOF
81ecdfbb
RW
1985if ac_fn_c_try_link "$LINENO"; then :
1986 eval "$3=yes"
1987else
1988 eval "$3=no"
1989fi
1990rm -f core conftest.err conftest.$ac_objext \
1991 conftest$ac_exeext conftest.$ac_ext
1992fi
1993eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995$as_echo "$ac_res" >&6; }
d0ac1c44 1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 1997
81ecdfbb 1998} # ac_fn_c_check_func
bae7f79e 1999
d0ac1c44
SM
2000# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2001# ---------------------------------------------
2002# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2003# accordingly.
81ecdfbb
RW
2004ac_fn_c_check_decl ()
2005{
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7223e9ca
ILT
2007 as_decl_name=`echo $2|sed 's/ *(.*//'`
2008 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2010$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d0ac1c44 2011if eval \${$3+:} false; then :
81ecdfbb
RW
2012 $as_echo_n "(cached) " >&6
2013else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h. */
2016$4
2017int
2018main ()
2019{
7223e9ca
ILT
2020#ifndef $as_decl_name
2021#ifdef __cplusplus
2022 (void) $as_decl_use;
2023#else
2024 (void) $as_decl_name;
2025#endif
81ecdfbb
RW
2026#endif
2027
2028 ;
2029 return 0;
2030}
bae7f79e 2031_ACEOF
81ecdfbb
RW
2032if ac_fn_c_try_compile "$LINENO"; then :
2033 eval "$3=yes"
2034else
2035 eval "$3=no"
2036fi
2037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038fi
2039eval ac_res=\$$3
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041$as_echo "$ac_res" >&6; }
d0ac1c44 2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 2043
81ecdfbb 2044} # ac_fn_c_check_decl
bae7f79e 2045
81ecdfbb
RW
2046# ac_fn_cxx_try_cpp LINENO
2047# ------------------------
2048# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2049ac_fn_cxx_try_cpp ()
2050{
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 if { { ac_try="$ac_cpp conftest.$ac_ext"
2053case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056esac
2057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058$as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2060 ac_status=$?
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
bae7f79e 2065 fi
81ecdfbb 2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 2067 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
2068 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2069 test ! -s conftest.err
2070 }; then :
2071 ac_retval=0
2072else
2073 $as_echo "$as_me: failed program was:" >&5
2074sed 's/^/| /' conftest.$ac_ext >&5
2075
2076 ac_retval=1
bae7f79e 2077fi
d0ac1c44
SM
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 as_fn_set_status $ac_retval
bae7f79e 2080
81ecdfbb
RW
2081} # ac_fn_cxx_try_cpp
2082
2083# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2084# ---------------------------------------------------------
2085# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2086# the include files in INCLUDES and setting the cache variable VAR
2087# accordingly.
2088ac_fn_cxx_check_header_mongrel ()
2089{
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 2091 if eval \${$3+:} false; then :
81ecdfbb
RW
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093$as_echo_n "checking for $2... " >&6; }
d0ac1c44 2094if eval \${$3+:} false; then :
81ecdfbb
RW
2095 $as_echo_n "(cached) " >&6
2096fi
2097eval ac_res=\$$3
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099$as_echo "$ac_res" >&6; }
bae7f79e 2100else
81ecdfbb
RW
2101 # Is the header compilable?
2102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2103$as_echo_n "checking $2 usability... " >&6; }
2104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105/* end confdefs.h. */
2106$4
2107#include <$2>
2108_ACEOF
2109if ac_fn_cxx_try_compile "$LINENO"; then :
2110 ac_header_compiler=yes
2111else
2112 ac_header_compiler=no
bae7f79e 2113fi
81ecdfbb
RW
2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2116$as_echo "$ac_header_compiler" >&6; }
bae7f79e 2117
81ecdfbb
RW
2118# Is the header present?
2119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2120$as_echo_n "checking $2 presence... " >&6; }
2121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122/* end confdefs.h. */
2123#include <$2>
2124_ACEOF
2125if ac_fn_cxx_try_cpp "$LINENO"; then :
2126 ac_header_preproc=yes
2127else
2128 ac_header_preproc=no
bae7f79e 2129fi
d0ac1c44 2130rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
2131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2132$as_echo "$ac_header_preproc" >&6; }
bae7f79e 2133
81ecdfbb
RW
2134# So? What about this header?
2135case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2136 yes:no: )
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2138$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2140$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2141 ;;
2142 no:yes:* )
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2144$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2146$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2148$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2150$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2152$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2153 ;;
2154esac
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156$as_echo_n "checking for $2... " >&6; }
d0ac1c44 2157if eval \${$3+:} false; then :
81ecdfbb
RW
2158 $as_echo_n "(cached) " >&6
2159else
2160 eval "$3=\$ac_header_compiler"
2161fi
2162eval ac_res=\$$3
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164$as_echo "$ac_res" >&6; }
2165fi
d0ac1c44 2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2167
2168} # ac_fn_cxx_check_header_mongrel
2169
e755667f
NA
2170# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2171# -----------------------------------------------
2172# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2173# accordingly.
2174ac_fn_cxx_check_decl ()
2175{
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 as_decl_name=`echo $2|sed 's/ *(.*//'`
2178 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2180$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2181if eval \${$3+:} false; then :
2182 $as_echo_n "(cached) " >&6
2183else
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185/* end confdefs.h. */
2186$4
2187int
2188main ()
2189{
2190#ifndef $as_decl_name
2191#ifdef __cplusplus
2192 (void) $as_decl_use;
2193#else
2194 (void) $as_decl_name;
2195#endif
2196#endif
2197
2198 ;
2199 return 0;
2200}
2201_ACEOF
2202if ac_fn_cxx_try_compile "$LINENO"; then :
2203 eval "$3=yes"
2204else
2205 eval "$3=no"
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208fi
2209eval ac_res=\$$3
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211$as_echo "$ac_res" >&6; }
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213
2214} # ac_fn_cxx_check_decl
2215
81ecdfbb
RW
2216# ac_fn_cxx_try_link LINENO
2217# -------------------------
2218# Try to link conftest.$ac_ext, and return whether this succeeded.
2219ac_fn_cxx_try_link ()
2220{
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 rm -f conftest.$ac_objext conftest$ac_exeext
2223 if { { ac_try="$ac_link"
2224case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227esac
2228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229$as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_link") 2>conftest.err
2231 ac_status=$?
2232 if test -s conftest.err; then
2233 grep -v '^ *+' conftest.err >conftest.er1
2234 cat conftest.er1 >&5
2235 mv -f conftest.er1 conftest.err
2236 fi
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } && {
2239 test -z "$ac_cxx_werror_flag" ||
2240 test ! -s conftest.err
2241 } && test -s conftest$ac_exeext && {
2242 test "$cross_compiling" = yes ||
d0ac1c44 2243 test -x conftest$ac_exeext
81ecdfbb
RW
2244 }; then :
2245 ac_retval=0
2246else
2247 $as_echo "$as_me: failed program was:" >&5
2248sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 2249
81ecdfbb
RW
2250 ac_retval=1
2251fi
2252 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2253 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2254 # interfere with the next link command; also delete a directory that is
2255 # left behind by Apple's compiler. We do this before executing the actions.
2256 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258 as_fn_set_status $ac_retval
bae7f79e 2259
81ecdfbb 2260} # ac_fn_cxx_try_link
bae7f79e 2261
81ecdfbb
RW
2262# ac_fn_cxx_check_func LINENO FUNC VAR
2263# ------------------------------------
2264# Tests whether FUNC exists, setting the cache variable VAR accordingly
2265ac_fn_cxx_check_func ()
2266{
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2269$as_echo_n "checking for $2... " >&6; }
d0ac1c44 2270if eval \${$3+:} false; then :
81ecdfbb
RW
2271 $as_echo_n "(cached) " >&6
2272else
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274/* end confdefs.h. */
2275/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2277#define $2 innocuous_$2
bae7f79e 2278
81ecdfbb
RW
2279/* System header to define __stub macros and hopefully few prototypes,
2280 which can conflict with char $2 (); below.
2281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2282 <limits.h> exists even on freestanding compilers. */
bae7f79e 2283
81ecdfbb
RW
2284#ifdef __STDC__
2285# include <limits.h>
2286#else
2287# include <assert.h>
2288#endif
bae7f79e 2289
81ecdfbb 2290#undef $2
bae7f79e 2291
81ecdfbb
RW
2292/* Override any GCC internal prototype to avoid an error.
2293 Use char because int might match the return type of a GCC
2294 builtin and then its argument prototype would still apply. */
2295#ifdef __cplusplus
2296extern "C"
2297#endif
2298char $2 ();
2299/* The GNU C library defines this for functions which it implements
2300 to always fail with ENOSYS. Some functions are actually named
2301 something starting with __ and the normal name is an alias. */
2302#if defined __stub_$2 || defined __stub___$2
2303choke me
2304#endif
bae7f79e 2305
81ecdfbb
RW
2306int
2307main ()
2308{
2309return $2 ();
2310 ;
2311 return 0;
2312}
2313_ACEOF
2314if ac_fn_cxx_try_link "$LINENO"; then :
2315 eval "$3=yes"
2316else
2317 eval "$3=no"
2318fi
2319rm -f core conftest.err conftest.$ac_objext \
2320 conftest$ac_exeext conftest.$ac_ext
2321fi
2322eval ac_res=\$$3
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324$as_echo "$ac_res" >&6; }
d0ac1c44 2325 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 2326
81ecdfbb 2327} # ac_fn_cxx_check_func
81ecdfbb
RW
2328cat >config.log <<_ACEOF
2329This file contains any messages produced by compilers while
2330running configure, to aid debugging if configure makes a mistake.
8486ee48 2331
81ecdfbb 2332It was created by gold $as_me 0.1, which was
d0ac1c44 2333generated by GNU Autoconf 2.69. Invocation command line was
8486ee48 2334
81ecdfbb 2335 $ $0 $@
8486ee48 2336
81ecdfbb
RW
2337_ACEOF
2338exec 5>>config.log
2339{
2340cat <<_ASUNAME
2341## --------- ##
2342## Platform. ##
2343## --------- ##
8486ee48 2344
81ecdfbb
RW
2345hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2346uname -m = `(uname -m) 2>/dev/null || echo unknown`
2347uname -r = `(uname -r) 2>/dev/null || echo unknown`
2348uname -s = `(uname -s) 2>/dev/null || echo unknown`
2349uname -v = `(uname -v) 2>/dev/null || echo unknown`
8486ee48 2350
81ecdfbb
RW
2351/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2352/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8486ee48 2353
81ecdfbb
RW
2354/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2355/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2356/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2357/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2358/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2359/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2360/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
8486ee48 2361
81ecdfbb 2362_ASUNAME
8486ee48 2363
81ecdfbb
RW
2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365for as_dir in $PATH
2366do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 $as_echo "PATH: $as_dir"
2370 done
2371IFS=$as_save_IFS
bae7f79e 2372
81ecdfbb 2373} >&5
bae7f79e 2374
81ecdfbb 2375cat >&5 <<_ACEOF
bae7f79e
ILT
2376
2377
81ecdfbb
RW
2378## ----------- ##
2379## Core tests. ##
2380## ----------- ##
bae7f79e 2381
81ecdfbb 2382_ACEOF
1d1f116d
CD
2383
2384
81ecdfbb
RW
2385# Keep a trace of the command line.
2386# Strip out --no-create and --no-recursion so they do not pile up.
2387# Strip out --silent because we don't want to record it for future runs.
2388# Also quote any args containing shell meta-characters.
2389# Make two passes to allow for proper duplicate-argument suppression.
2390ac_configure_args=
2391ac_configure_args0=
2392ac_configure_args1=
2393ac_must_keep_next=false
2394for ac_pass in 1 2
2395do
2396 for ac_arg
2397 do
2398 case $ac_arg in
2399 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2401 | -silent | --silent | --silen | --sile | --sil)
2402 continue ;;
2403 *\'*)
2404 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2405 esac
2406 case $ac_pass in
2407 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2408 2)
2409 as_fn_append ac_configure_args1 " '$ac_arg'"
2410 if test $ac_must_keep_next = true; then
2411 ac_must_keep_next=false # Got value, back to normal.
2412 else
2413 case $ac_arg in
2414 *=* | --config-cache | -C | -disable-* | --disable-* \
2415 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2416 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2417 | -with-* | --with-* | -without-* | --without-* | --x)
2418 case "$ac_configure_args0 " in
2419 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2420 esac
2421 ;;
2422 -* ) ac_must_keep_next=true ;;
2423 esac
2424 fi
2425 as_fn_append ac_configure_args " '$ac_arg'"
2426 ;;
2427 esac
2428 done
2429done
2430{ ac_configure_args0=; unset ac_configure_args0;}
2431{ ac_configure_args1=; unset ac_configure_args1;}
1d1f116d 2432
81ecdfbb
RW
2433# When interrupted or exit'd, cleanup temporary files, and complete
2434# config.log. We remove comments because anyway the quotes in there
2435# would cause problems or look ugly.
2436# WARNING: Use '\'' to represent an apostrophe within the trap.
2437# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2438trap 'exit_status=$?
2439 # Save into config.log some information that might help in debugging.
2440 {
2441 echo
bae7f79e 2442
d0ac1c44 2443 $as_echo "## ---------------- ##
81ecdfbb 2444## Cache variables. ##
d0ac1c44 2445## ---------------- ##"
81ecdfbb
RW
2446 echo
2447 # The following way of writing the cache mishandles newlines in values,
2448(
2449 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2450 eval ac_val=\$$ac_var
2451 case $ac_val in #(
2452 *${as_nl}*)
2453 case $ac_var in #(
2454 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2455$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2456 esac
2457 case $ac_var in #(
2458 _ | IFS | as_nl) ;; #(
2459 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2460 *) { eval $ac_var=; unset $ac_var;} ;;
2461 esac ;;
2462 esac
2463 done
2464 (set) 2>&1 |
2465 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2466 *${as_nl}ac_space=\ *)
2467 sed -n \
2468 "s/'\''/'\''\\\\'\'''\''/g;
2469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2470 ;; #(
2471 *)
2472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2473 ;;
2474 esac |
2475 sort
2476)
2477 echo
bae7f79e 2478
d0ac1c44 2479 $as_echo "## ----------------- ##
81ecdfbb 2480## Output variables. ##
d0ac1c44 2481## ----------------- ##"
81ecdfbb
RW
2482 echo
2483 for ac_var in $ac_subst_vars
2484 do
2485 eval ac_val=\$$ac_var
2486 case $ac_val in
2487 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2488 esac
2489 $as_echo "$ac_var='\''$ac_val'\''"
2490 done | sort
2491 echo
bae7f79e 2492
81ecdfbb 2493 if test -n "$ac_subst_files"; then
d0ac1c44 2494 $as_echo "## ------------------- ##
81ecdfbb 2495## File substitutions. ##
d0ac1c44 2496## ------------------- ##"
81ecdfbb
RW
2497 echo
2498 for ac_var in $ac_subst_files
2499 do
2500 eval ac_val=\$$ac_var
2501 case $ac_val in
2502 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2503 esac
2504 $as_echo "$ac_var='\''$ac_val'\''"
2505 done | sort
2506 echo
2507 fi
bae7f79e 2508
81ecdfbb 2509 if test -s confdefs.h; then
d0ac1c44 2510 $as_echo "## ----------- ##
81ecdfbb 2511## confdefs.h. ##
d0ac1c44 2512## ----------- ##"
81ecdfbb
RW
2513 echo
2514 cat confdefs.h
2515 echo
2516 fi
2517 test "$ac_signal" != 0 &&
2518 $as_echo "$as_me: caught signal $ac_signal"
2519 $as_echo "$as_me: exit $exit_status"
2520 } >&5
2521 rm -f core *.core core.conftest.* &&
2522 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2523 exit $exit_status
2524' 0
2525for ac_signal in 1 2 13 15; do
2526 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
bae7f79e 2527done
81ecdfbb 2528ac_signal=0
bae7f79e 2529
81ecdfbb
RW
2530# confdefs.h avoids OS command line length limits that DEFS can exceed.
2531rm -f -r conftest* confdefs.h
bae7f79e 2532
81ecdfbb 2533$as_echo "/* confdefs.h */" > confdefs.h
bae7f79e 2534
81ecdfbb 2535# Predefined preprocessor variables.
bae7f79e 2536
81ecdfbb
RW
2537cat >>confdefs.h <<_ACEOF
2538#define PACKAGE_NAME "$PACKAGE_NAME"
2539_ACEOF
bae7f79e 2540
81ecdfbb
RW
2541cat >>confdefs.h <<_ACEOF
2542#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2543_ACEOF
bae7f79e 2544
81ecdfbb
RW
2545cat >>confdefs.h <<_ACEOF
2546#define PACKAGE_VERSION "$PACKAGE_VERSION"
2547_ACEOF
bae7f79e 2548
81ecdfbb
RW
2549cat >>confdefs.h <<_ACEOF
2550#define PACKAGE_STRING "$PACKAGE_STRING"
2551_ACEOF
bae7f79e 2552
81ecdfbb
RW
2553cat >>confdefs.h <<_ACEOF
2554#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2555_ACEOF
bae7f79e 2556
81ecdfbb
RW
2557cat >>confdefs.h <<_ACEOF
2558#define PACKAGE_URL "$PACKAGE_URL"
2559_ACEOF
2560
2561
2562# Let the site file select an alternate cache file if it wants to.
2563# Prefer an explicitly selected file to automatically selected ones.
2564ac_site_file1=NONE
2565ac_site_file2=NONE
2566if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2567 # We do not want a PATH search for config.site.
2568 case $CONFIG_SITE in #((
2569 -*) ac_site_file1=./$CONFIG_SITE;;
2570 */*) ac_site_file1=$CONFIG_SITE;;
2571 *) ac_site_file1=./$CONFIG_SITE;;
2572 esac
81ecdfbb
RW
2573elif test "x$prefix" != xNONE; then
2574 ac_site_file1=$prefix/share/config.site
2575 ac_site_file2=$prefix/etc/config.site
2576else
2577 ac_site_file1=$ac_default_prefix/share/config.site
2578 ac_site_file2=$ac_default_prefix/etc/config.site
2579fi
2580for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2581do
2582 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2583 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2585$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2586 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2587 . "$ac_site_file" \
2588 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590as_fn_error $? "failed to load site script $ac_site_file
2591See \`config.log' for more details" "$LINENO" 5; }
81ecdfbb
RW
2592 fi
2593done
2594
2595if test -r "$cache_file"; then
d0ac1c44
SM
2596 # Some versions of bash will fail to source /dev/null (special files
2597 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2598 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2600$as_echo "$as_me: loading cache $cache_file" >&6;}
2601 case $cache_file in
2602 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2603 *) . "./$cache_file";;
2604 esac
2605 fi
2606else
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2608$as_echo "$as_me: creating cache $cache_file" >&6;}
2609 >$cache_file
2610fi
2611
2612# Check that the precious variables saved in the cache have kept the same
2613# value.
2614ac_cache_corrupted=false
2615for ac_var in $ac_precious_vars; do
2616 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2617 eval ac_new_set=\$ac_env_${ac_var}_set
2618 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2619 eval ac_new_val=\$ac_env_${ac_var}_value
2620 case $ac_old_set,$ac_new_set in
2621 set,)
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2623$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2624 ac_cache_corrupted=: ;;
2625 ,set)
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2627$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2628 ac_cache_corrupted=: ;;
2629 ,);;
2630 *)
2631 if test "x$ac_old_val" != "x$ac_new_val"; then
2632 # differences in whitespace do not lead to failure.
2633 ac_old_val_w=`echo x $ac_old_val`
2634 ac_new_val_w=`echo x $ac_new_val`
2635 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2637$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2638 ac_cache_corrupted=:
2639 else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2641$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2642 eval $ac_var=\$ac_old_val
2643 fi
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2645$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2647$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2648 fi;;
2649 esac
2650 # Pass precious variables to config.status.
2651 if test "$ac_new_set" = set; then
2652 case $ac_new_val in
2653 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2654 *) ac_arg=$ac_var=$ac_new_val ;;
2655 esac
2656 case " $ac_configure_args " in
2657 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2658 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2659 esac
2660 fi
2661done
2662if $ac_cache_corrupted; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2666$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2667 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
81ecdfbb
RW
2668fi
2669## -------------------- ##
2670## Main body of script. ##
2671## -------------------- ##
2672
2673ac_ext=c
2674ac_cpp='$CPP $CPPFLAGS'
2675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678
2679
2680
2681
2682
2683
2684
2685ac_aux_dir=
2686for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2687 if test -f "$ac_dir/install-sh"; then
2688 ac_aux_dir=$ac_dir
2689 ac_install_sh="$ac_aux_dir/install-sh -c"
2690 break
2691 elif test -f "$ac_dir/install.sh"; then
2692 ac_aux_dir=$ac_dir
2693 ac_install_sh="$ac_aux_dir/install.sh -c"
2694 break
2695 elif test -f "$ac_dir/shtool"; then
2696 ac_aux_dir=$ac_dir
2697 ac_install_sh="$ac_aux_dir/shtool install -c"
2698 break
2699 fi
81ecdfbb
RW
2700done
2701if test -z "$ac_aux_dir"; then
d0ac1c44 2702 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
81ecdfbb
RW
2703fi
2704
2705# These three variables are undocumented and unsupported,
2706# and are intended to be withdrawn in a future Autoconf release.
2707# They can cause serious problems if a builder's source tree is in a directory
2708# whose full name contains unusual characters.
2709ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2710ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2711ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2712
2713
2714# Make sure we can run config.sub.
2715$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2716 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2717
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2719$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2720if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2721 $as_echo_n "(cached) " >&6
2722else
2723 ac_build_alias=$build_alias
2724test "x$ac_build_alias" = x &&
2725 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2726test "x$ac_build_alias" = x &&
d0ac1c44 2727 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2728ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2729 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2730
2731fi
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2733$as_echo "$ac_cv_build" >&6; }
2734case $ac_cv_build in
2735*-*-*) ;;
d0ac1c44 2736*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb
RW
2737esac
2738build=$ac_cv_build
2739ac_save_IFS=$IFS; IFS='-'
2740set x $ac_cv_build
2741shift
2742build_cpu=$1
2743build_vendor=$2
2744shift; shift
2745# Remember, the first character of IFS is used to create $*,
2746# except with old shells:
2747build_os=$*
2748IFS=$ac_save_IFS
2749case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2750
2751
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2753$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2754if ${ac_cv_host+:} false; then :
81ecdfbb
RW
2755 $as_echo_n "(cached) " >&6
2756else
2757 if test "x$host_alias" = x; then
2758 ac_cv_host=$ac_cv_build
2759else
2760 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb
RW
2762fi
2763
2764fi
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2766$as_echo "$ac_cv_host" >&6; }
2767case $ac_cv_host in
2768*-*-*) ;;
d0ac1c44 2769*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb
RW
2770esac
2771host=$ac_cv_host
2772ac_save_IFS=$IFS; IFS='-'
2773set x $ac_cv_host
2774shift
2775host_cpu=$1
2776host_vendor=$2
2777shift; shift
2778# Remember, the first character of IFS is used to create $*,
2779# except with old shells:
2780host_os=$*
2781IFS=$ac_save_IFS
2782case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2783
2784
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2786$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2787if ${ac_cv_target+:} false; then :
81ecdfbb
RW
2788 $as_echo_n "(cached) " >&6
2789else
2790 if test "x$target_alias" = x; then
2791 ac_cv_target=$ac_cv_host
2792else
2793 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2794 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb
RW
2795fi
2796
2797fi
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2799$as_echo "$ac_cv_target" >&6; }
2800case $ac_cv_target in
2801*-*-*) ;;
d0ac1c44 2802*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb
RW
2803esac
2804target=$ac_cv_target
2805ac_save_IFS=$IFS; IFS='-'
2806set x $ac_cv_target
2807shift
2808target_cpu=$1
2809target_vendor=$2
2810shift; shift
2811# Remember, the first character of IFS is used to create $*,
2812# except with old shells:
2813target_os=$*
2814IFS=$ac_save_IFS
2815case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2816
2817
2818# The aliases save the names the user supplied, while $host etc.
bae7f79e
ILT
2819# will get canonicalized.
2820test -n "$target_alias" &&
2821 test "$program_prefix$program_suffix$program_transform_name" = \
2822 NONENONEs,x,x, &&
2823 program_prefix=${target_alias}-
2824
d0ac1c44 2825am__api_version='1.15'
81ecdfbb 2826
bae7f79e
ILT
2827# Find a good install program. We prefer a C program (faster),
2828# so one script is as good as another. But avoid the broken or
2829# incompatible versions:
2830# SysV /etc/install, /usr/sbin/install
2831# SunOS /usr/etc/install
2832# IRIX /sbin/install
2833# AIX /bin/install
2834# AmigaOS /C/install, which installs bootblocks on floppy discs
2835# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2836# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2837# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2838# OS/2's system install, which has a completely different semantic
2839# ./install, which can be erroneously created by make from ./install.sh.
f5314dd5 2840# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2842$as_echo_n "checking for a BSD-compatible install... " >&6; }
bae7f79e 2843if test -z "$INSTALL"; then
d0ac1c44 2844if ${ac_cv_path_install+:} false; then :
81ecdfbb 2845 $as_echo_n "(cached) " >&6
bae7f79e
ILT
2846else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2852 # Account for people who put trailing slashes in PATH elements.
2853case $as_dir/ in #((
2854 ./ | .// | /[cC]/* | \
bae7f79e 2855 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2856 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
bae7f79e
ILT
2857 /usr/ucb/* ) ;;
2858 *)
2859 # OSF1 and SCO ODT 3.0 have their own names for install.
2860 # Don't use installbsd from OSF since it installs stuff as root
2861 # by default.
2862 for ac_prog in ginstall scoinst install; do
2863 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2864 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bae7f79e
ILT
2865 if test $ac_prog = install &&
2866 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2867 # AIX install. It has an incompatible calling convention.
2868 :
2869 elif test $ac_prog = install &&
2870 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2871 # program-specific install script used by HP pwplus--don't use.
2872 :
2873 else
f5314dd5
DM
2874 rm -rf conftest.one conftest.two conftest.dir
2875 echo one > conftest.one
2876 echo two > conftest.two
2877 mkdir conftest.dir
2878 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2879 test -s conftest.one && test -s conftest.two &&
2880 test -s conftest.dir/conftest.one &&
2881 test -s conftest.dir/conftest.two
2882 then
2883 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2884 break 3
2885 fi
bae7f79e
ILT
2886 fi
2887 fi
2888 done
2889 done
2890 ;;
2891esac
81ecdfbb
RW
2892
2893 done
2894IFS=$as_save_IFS
bae7f79e 2895
f5314dd5 2896rm -rf conftest.one conftest.two conftest.dir
bae7f79e
ILT
2897
2898fi
2899 if test "${ac_cv_path_install+set}" = set; then
2900 INSTALL=$ac_cv_path_install
2901 else
f5314dd5
DM
2902 # As a last resort, use the slow shell script. Don't cache a
2903 # value for INSTALL within a source directory, because that will
bae7f79e 2904 # break other packages using the cache if that directory is
f5314dd5 2905 # removed, or if the value is a relative name.
bae7f79e
ILT
2906 INSTALL=$ac_install_sh
2907 fi
2908fi
81ecdfbb
RW
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2910$as_echo "$INSTALL" >&6; }
bae7f79e
ILT
2911
2912# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2913# It thinks the first close brace ends the variable substitution.
2914test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2915
2916test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2917
2918test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2919
81ecdfbb
RW
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2921$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
2922# Reject unsafe characters in $srcdir or the absolute working directory
2923# name. Accept space and tab only in the latter.
2924am_lf='
2925'
2926case `pwd` in
2927 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 2928 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
2929esac
2930case $srcdir in
2931 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 2932 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
2933esac
2934
d0ac1c44 2935# Do 'set' in a subshell so we don't clobber the current shell's
bae7f79e
ILT
2936# arguments. Must try -L first in case configure is actually a
2937# symlink; some systems play weird games with the mod time of symlinks
2938# (eg FreeBSD returns the mod time of the symlink's containing
2939# directory).
2940if (
d0ac1c44
SM
2941 am_has_slept=no
2942 for am_try in 1 2; do
2943 echo "timestamp, slept: $am_has_slept" > conftest.file
2944 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2945 if test "$*" = "X"; then
2946 # -L didn't work.
2947 set X `ls -t "$srcdir/configure" conftest.file`
2948 fi
2949 if test "$*" != "X $srcdir/configure conftest.file" \
2950 && test "$*" != "X conftest.file $srcdir/configure"; then
2951
2952 # If neither matched, then we have a broken ls. This can happen
2953 # if, for instance, CONFIG_SHELL is bash and it inherits a
2954 # broken ls alias from the environment. This has actually
2955 # happened. Such a system could not be considered "sane".
2956 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2957 alias in your environment" "$LINENO" 5
2958 fi
2959 if test "$2" = conftest.file || test $am_try -eq 2; then
2960 break
2961 fi
2962 # Just in case.
2963 sleep 1
2964 am_has_slept=yes
2965 done
bae7f79e
ILT
2966 test "$2" = conftest.file
2967 )
2968then
2969 # Ok.
2970 :
2971else
d0ac1c44 2972 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 2973Check your system clock" "$LINENO" 5
bae7f79e 2974fi
81ecdfbb
RW
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2976$as_echo "yes" >&6; }
d0ac1c44
SM
2977# If we didn't sleep, we still need to ensure time stamps of config.status and
2978# generated files are strictly newer.
2979am_sleep_pid=
2980if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2981 ( sleep 1 ) &
2982 am_sleep_pid=$!
2983fi
2984
2985rm -f conftest.file
2986
bae7f79e 2987test "$program_prefix" != NONE &&
81ecdfbb 2988 program_transform_name="s&^&$program_prefix&;$program_transform_name"
bae7f79e
ILT
2989# Use a double $ so make ignores it.
2990test "$program_suffix" != NONE &&
81ecdfbb
RW
2991 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2992# Double any \ or $.
bae7f79e 2993# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2994ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2995program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
bae7f79e 2996
d0ac1c44
SM
2997# Expand $ac_aux_dir to an absolute path.
2998am_aux_dir=`cd "$ac_aux_dir" && pwd`
bae7f79e 2999
81ecdfbb
RW
3000if test x"${MISSING+set}" != xset; then
3001 case $am_aux_dir in
3002 *\ * | *\ *)
3003 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3004 *)
3005 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3006 esac
3007fi
bae7f79e 3008# Use eval to expand $SHELL
d0ac1c44
SM
3009if eval "$MISSING --is-lightweight"; then
3010 am_missing_run="$MISSING "
bae7f79e
ILT
3011else
3012 am_missing_run=
d0ac1c44
SM
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3014$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
81ecdfbb
RW
3015fi
3016
d0ac1c44 3017if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
3018 case $am_aux_dir in
3019 *\ * | *\ *)
3020 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3021 *)
3022 install_sh="\${SHELL} $am_aux_dir/install-sh"
3023 esac
3024fi
3025
d0ac1c44
SM
3026# Installed binaries are usually stripped using 'strip' when the user
3027# run "make install-strip". However 'strip' might not be the right
81ecdfbb 3028# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 3029# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
3030if test "$cross_compiling" != no; then
3031 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3033set dummy ${ac_tool_prefix}strip; ac_word=$2
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3036if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb
RW
3037 $as_echo_n "(cached) " >&6
3038else
3039 if test -n "$STRIP"; then
3040 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3049 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053done
3054 done
3055IFS=$as_save_IFS
3056
3057fi
3058fi
3059STRIP=$ac_cv_prog_STRIP
3060if test -n "$STRIP"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3062$as_echo "$STRIP" >&6; }
3063else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068
3069fi
3070if test -z "$ac_cv_prog_STRIP"; then
3071 ac_ct_STRIP=$STRIP
3072 # Extract the first word of "strip", so it can be a program name with args.
3073set dummy strip; ac_word=$2
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3076if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
3077 $as_echo_n "(cached) " >&6
3078else
3079 if test -n "$ac_ct_STRIP"; then
3080 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3081else
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3089 ac_cv_prog_ac_ct_STRIP="strip"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093done
3094 done
3095IFS=$as_save_IFS
3096
3097fi
3098fi
3099ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3100if test -n "$ac_ct_STRIP"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3102$as_echo "$ac_ct_STRIP" >&6; }
3103else
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105$as_echo "no" >&6; }
3106fi
3107
3108 if test "x$ac_ct_STRIP" = x; then
3109 STRIP=":"
3110 else
3111 case $cross_compiling:$ac_tool_warned in
3112yes:)
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3115ac_tool_warned=yes ;;
3116esac
3117 STRIP=$ac_ct_STRIP
3118 fi
3119else
3120 STRIP="$ac_cv_prog_STRIP"
3121fi
3122
3123fi
3124INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3125
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3127$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3128if test -z "$MKDIR_P"; then
d0ac1c44 3129 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
3130 $as_echo_n "(cached) " >&6
3131else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3134do
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_prog in mkdir gmkdir; do
3138 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3139 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
3140 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3141 'mkdir (GNU coreutils) '* | \
3142 'mkdir (coreutils) '* | \
3143 'mkdir (fileutils) '4.1*)
3144 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3145 break 3;;
3146 esac
3147 done
3148 done
bae7f79e 3149 done
81ecdfbb
RW
3150IFS=$as_save_IFS
3151
3152fi
3153
d0ac1c44 3154 test -d ./--version && rmdir ./--version
81ecdfbb
RW
3155 if test "${ac_cv_path_mkdir+set}" = set; then
3156 MKDIR_P="$ac_cv_path_mkdir -p"
bae7f79e 3157 else
81ecdfbb
RW
3158 # As a last resort, use the slow shell script. Don't cache a
3159 # value for MKDIR_P within a source directory, because that will
3160 # break other packages using the cache if that directory is
3161 # removed, or if the value is a relative name.
81ecdfbb 3162 MKDIR_P="$ac_install_sh -d"
bae7f79e
ILT
3163 fi
3164fi
81ecdfbb
RW
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3166$as_echo "$MKDIR_P" >&6; }
3167
bae7f79e
ILT
3168for ac_prog in gawk mawk nawk awk
3169do
3170 # Extract the first word of "$ac_prog", so it can be a program name with args.
3171set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3174if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb 3175 $as_echo_n "(cached) " >&6
bae7f79e
ILT
3176else
3177 if test -n "$AWK"; then
3178 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3179else
3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181for as_dir in $PATH
3182do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
81ecdfbb 3185 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bae7f79e 3187 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bae7f79e
ILT
3189 break 2
3190 fi
3191done
81ecdfbb
RW
3192 done
3193IFS=$as_save_IFS
bae7f79e
ILT
3194
3195fi
3196fi
3197AWK=$ac_cv_prog_AWK
3198if test -n "$AWK"; then
81ecdfbb
RW
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3200$as_echo "$AWK" >&6; }
bae7f79e 3201else
81ecdfbb
RW
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203$as_echo "no" >&6; }
bae7f79e
ILT
3204fi
3205
81ecdfbb 3206
bae7f79e
ILT
3207 test -n "$AWK" && break
3208done
3209
81ecdfbb
RW
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3211$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3212set x ${MAKE-make}
3213ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 3214if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 3215 $as_echo_n "(cached) " >&6
bae7f79e
ILT
3216else
3217 cat >conftest.make <<\_ACEOF
81ecdfbb 3218SHELL = /bin/sh
bae7f79e 3219all:
81ecdfbb 3220 @echo '@@@%%%=$(MAKE)=@@@%%%'
bae7f79e 3221_ACEOF
d0ac1c44 3222# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
3223case `${MAKE-make} -f conftest.make 2>/dev/null` in
3224 *@@@%%%=?*=@@@%%%*)
3225 eval ac_cv_prog_make_${ac_make}_set=yes;;
3226 *)
3227 eval ac_cv_prog_make_${ac_make}_set=no;;
3228esac
bae7f79e
ILT
3229rm -f conftest.make
3230fi
81ecdfbb
RW
3231if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233$as_echo "yes" >&6; }
bae7f79e
ILT
3234 SET_MAKE=
3235else
81ecdfbb
RW
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
bae7f79e
ILT
3238 SET_MAKE="MAKE=${MAKE-make}"
3239fi
3240
3241rm -rf .tst 2>/dev/null
3242mkdir .tst 2>/dev/null
3243if test -d .tst; then
3244 am__leading_dot=.
3245else
3246 am__leading_dot=_
3247fi
3248rmdir .tst 2>/dev/null
3249
d0ac1c44
SM
3250# Check whether --enable-silent-rules was given.
3251if test "${enable_silent_rules+set}" = set; then :
3252 enableval=$enable_silent_rules;
3253fi
3254
3255case $enable_silent_rules in # (((
3256 yes) AM_DEFAULT_VERBOSITY=0;;
3257 no) AM_DEFAULT_VERBOSITY=1;;
3258 *) AM_DEFAULT_VERBOSITY=1;;
3259esac
3260am_make=${MAKE-make}
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3262$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3263if ${am_cv_make_support_nested_variables+:} false; then :
3264 $as_echo_n "(cached) " >&6
3265else
3266 if $as_echo 'TRUE=$(BAR$(V))
3267BAR0=false
3268BAR1=true
3269V=1
3270am__doit:
3271 @$(TRUE)
3272.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3273 am_cv_make_support_nested_variables=yes
3274else
3275 am_cv_make_support_nested_variables=no
3276fi
3277fi
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3279$as_echo "$am_cv_make_support_nested_variables" >&6; }
3280if test $am_cv_make_support_nested_variables = yes; then
3281 AM_V='$(V)'
3282 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3283else
3284 AM_V=$AM_DEFAULT_VERBOSITY
3285 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3286fi
3287AM_BACKSLASH='\'
3288
81ecdfbb
RW
3289if test "`cd $srcdir && pwd`" != "`pwd`"; then
3290 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3291 # is not polluted with repeated "-I."
3292 am__isrc=' -I$(srcdir)'
3293 # test to see if srcdir already configured
3294 if test -f $srcdir/config.status; then
d0ac1c44 3295 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 3296 fi
bae7f79e
ILT
3297fi
3298
3299# test whether we have cygpath
3300if test -z "$CYGPATH_W"; then
3301 if (cygpath --version) >/dev/null 2>/dev/null; then
3302 CYGPATH_W='cygpath -w'
3303 else
3304 CYGPATH_W=echo
3305 fi
3306fi
3307
3308
3309# Define the identity of the package.
8486ee48
ILT
3310 PACKAGE='gold'
3311 VERSION='0.1'
bae7f79e
ILT
3312
3313
3314cat >>confdefs.h <<_ACEOF
3315#define PACKAGE "$PACKAGE"
3316_ACEOF
3317
3318
3319cat >>confdefs.h <<_ACEOF
3320#define VERSION "$VERSION"
3321_ACEOF
3322
3323# Some tools Automake needs.
3324
3325ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3326
3327
3328AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3329
3330
3331AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3332
3333
3334AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3335
3336
3337MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3338
d0ac1c44
SM
3339# For better backward compatibility. To be removed once Automake 1.9.x
3340# dies out for good. For more background, see:
3341# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3342# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3343mkdir_p='$(MKDIR_P)'
3344
3345# We need awk for the "check" target (and possibly the TAP driver). The
3346# system "awk" is bad on some platforms.
6eb7d830
AM
3347# Always define AMTAR for backward compatibility. Yes, it's still used
3348# in the wild :-( We should find a proper way to deprecate it ...
3349AMTAR='$${TAR-tar}'
bae7f79e 3350
d0ac1c44
SM
3351
3352# We'll loop over all known methods to create a tar archive until one works.
3353_am_tools='gnutar pax cpio none'
3354
6eb7d830 3355am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
81ecdfbb
RW
3356
3357
3358
3359
3360
3361
d0ac1c44
SM
3362# POSIX will say in a future version that running "rm -f" with no argument
3363# is OK; and we want to be able to make that assumption in our Makefile
3364# recipes. So use an aggressive probe to check that the usage we want is
3365# actually supported "in the wild" to an acceptable degree.
3366# See automake bug#10828.
3367# To make any issue more visible, cause the running configure to be aborted
3368# by default if the 'rm' program in use doesn't match our expectations; the
3369# user can still override this though.
3370if rm -f && rm -fr && rm -rf; then : OK; else
3371 cat >&2 <<'END'
3372Oops!
3373
3374Your 'rm' program seems unable to run without file operands specified
3375on the command line, even when the '-f' option is present. This is contrary
3376to the behaviour of most rm programs out there, and not conforming with
3377the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3378
3379Please tell bug-automake@gnu.org about your system, including the value
3380of your $PATH and any error possibly output before this message. This
3381can help us improve future automake versions.
3382
3383END
3384 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3385 echo 'Configuration will proceed anyway, since you have set the' >&2
3386 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3387 echo >&2
3388 else
3389 cat >&2 <<'END'
3390Aborting the configuration process, to ensure you take notice of the issue.
3391
3392You can download and install GNU coreutils to get an 'rm' implementation
3393that behaves properly: <http://www.gnu.org/software/coreutils/>.
3394
3395If you want to complete the configuration process using your problematic
3396'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3397to "yes", and re-run configure.
3398
3399END
3400 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3401 fi
3402fi
3403
3404
81ecdfbb
RW
3405ac_config_headers="$ac_config_headers config.h:config.in"
3406
3407
24538276 3408DEPDIR="${am__leading_dot}deps"
81ecdfbb 3409
24538276 3410ac_config_commands="$ac_config_commands depfiles"
df7b86aa
NC
3411
3412
24538276
CC
3413am_make=${MAKE-make}
3414cat > confinc << 'END'
3415am__doit:
3416 @echo this is the am__doit target
3417.PHONY: am__doit
3418END
3419# If we don't find an include directive, just comment out the code.
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3421$as_echo_n "checking for style of include used by $am_make... " >&6; }
3422am__include="#"
3423am__quote=
3424_am_result=none
3425# First try GNU make style include.
3426echo "include confinc" > confmf
d0ac1c44 3427# Ignore all kinds of additional output from 'make'.
24538276
CC
3428case `$am_make -s -f confmf 2> /dev/null` in #(
3429*the\ am__doit\ target*)
3430 am__include=include
3431 am__quote=
3432 _am_result=GNU
3433 ;;
3434esac
3435# Now try BSD make style include.
3436if test "$am__include" = "#"; then
3437 echo '.include "confinc"' > confmf
3438 case `$am_make -s -f confmf 2> /dev/null` in #(
3439 *the\ am__doit\ target*)
3440 am__include=.include
3441 am__quote="\""
3442 _am_result=BSD
3443 ;;
3444 esac
bae7f79e
ILT
3445fi
3446
81ecdfbb 3447
24538276
CC
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3449$as_echo "$_am_result" >&6; }
3450rm -f confinc confmf
ad2d6943 3451
24538276
CC
3452# Check whether --enable-dependency-tracking was given.
3453if test "${enable_dependency_tracking+set}" = set; then :
3454 enableval=$enable_dependency_tracking;
ad2d6943
ILT
3455fi
3456
24538276
CC
3457if test "x$enable_dependency_tracking" != xno; then
3458 am_depcomp="$ac_aux_dir/depcomp"
3459 AMDEPBACKSLASH='\'
3460 am__nodep='_no'
4fda8867 3461fi
24538276
CC
3462 if test "x$enable_dependency_tracking" != xno; then
3463 AMDEP_TRUE=
3464 AMDEP_FALSE='#'
fe9a4c12 3465else
24538276
CC
3466 AMDEP_TRUE='#'
3467 AMDEP_FALSE=
81ecdfbb
RW
3468fi
3469
fe9a4c12 3470
24538276
CC
3471ac_ext=c
3472ac_cpp='$CPP $CPPFLAGS'
3473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476if test -n "$ac_tool_prefix"; then
3477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3478set dummy ${ac_tool_prefix}gcc; ac_word=$2
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3481if ${ac_cv_prog_CC+:} false; then :
24538276 3482 $as_echo_n "(cached) " >&6
fe9a4c12 3483else
24538276
CC
3484 if test -n "$CC"; then
3485 ac_cv_prog_CC="$CC" # Let the user override the test.
3486else
3487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488for as_dir in $PATH
3489do
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3494 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3497 fi
3498done
3499 done
3500IFS=$as_save_IFS
fe9a4c12 3501
24538276
CC
3502fi
3503fi
3504CC=$ac_cv_prog_CC
3505if test -n "$CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507$as_echo "$CC" >&6; }
89fc3421 3508else
24538276
CC
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510$as_echo "no" >&6; }
81ecdfbb
RW
3511fi
3512
89fc3421 3513
24538276
CC
3514fi
3515if test -z "$ac_cv_prog_CC"; then
3516 ac_ct_CC=$CC
3517 # Extract the first word of "gcc", so it can be a program name with args.
3518set dummy gcc; ac_word=$2
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3521if ${ac_cv_prog_ac_ct_CC+:} false; then :
24538276
CC
3522 $as_echo_n "(cached) " >&6
3523else
3524 if test -n "$ac_ct_CC"; then
3525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3526else
3527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528for as_dir in $PATH
3529do
3530 IFS=$as_save_IFS
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3534 ac_cv_prog_ac_ct_CC="gcc"
3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 break 2
3537 fi
3538done
3539 done
3540IFS=$as_save_IFS
89fc3421
CC
3541
3542fi
24538276
CC
3543fi
3544ac_ct_CC=$ac_cv_prog_ac_ct_CC
3545if test -n "$ac_ct_CC"; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3547$as_echo "$ac_ct_CC" >&6; }
89fc3421 3548else
24538276
CC
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550$as_echo "no" >&6; }
89fc3421
CC
3551fi
3552
24538276
CC
3553 if test "x$ac_ct_CC" = x; then
3554 CC=""
3555 else
3556 case $cross_compiling:$ac_tool_warned in
3557yes:)
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3560ac_tool_warned=yes ;;
6b1edb94 3561esac
24538276
CC
3562 CC=$ac_ct_CC
3563 fi
3564else
3565 CC="$ac_cv_prog_CC"
6b1edb94 3566fi
6b1edb94 3567
24538276
CC
3568if test -z "$CC"; then
3569 if test -n "$ac_tool_prefix"; then
3570 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3571set dummy ${ac_tool_prefix}cc; ac_word=$2
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3574if ${ac_cv_prog_CC+:} false; then :
24538276 3575 $as_echo_n "(cached) " >&6
193a53d9 3576else
24538276
CC
3577 if test -n "$CC"; then
3578 ac_cv_prog_CC="$CC" # Let the user override the test.
3579else
3580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581for as_dir in $PATH
3582do
3583 IFS=$as_save_IFS
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3587 ac_cv_prog_CC="${ac_tool_prefix}cc"
3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 break 2
3590 fi
3591done
3592 done
3593IFS=$as_save_IFS
193a53d9 3594
24538276
CC
3595fi
3596fi
3597CC=$ac_cv_prog_CC
3598if test -n "$CC"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3600$as_echo "$CC" >&6; }
3601else
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603$as_echo "no" >&6; }
81ecdfbb
RW
3604fi
3605
193a53d9 3606
24538276 3607 fi
193a53d9 3608fi
24538276
CC
3609if test -z "$CC"; then
3610 # Extract the first word of "cc", so it can be a program name with args.
3611set dummy cc; ac_word=$2
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3614if ${ac_cv_prog_CC+:} false; then :
24538276
CC
3615 $as_echo_n "(cached) " >&6
3616else
3617 if test -n "$CC"; then
3618 ac_cv_prog_CC="$CC" # Let the user override the test.
3619else
3620 ac_prog_rejected=no
3621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622for as_dir in $PATH
3623do
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3629 ac_prog_rejected=yes
3630 continue
3631 fi
3632 ac_cv_prog_CC="cc"
3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3634 break 2
3635 fi
3636done
3637 done
3638IFS=$as_save_IFS
193a53d9 3639
24538276
CC
3640if test $ac_prog_rejected = yes; then
3641 # We found a bogon in the path, so make sure we never use it.
3642 set dummy $ac_cv_prog_CC
3643 shift
3644 if test $# != 0; then
3645 # We chose a different compiler from the bogus one.
3646 # However, it has the same basename, so the bogon will be chosen
3647 # first if we set CC to just the basename; use the full file name.
3648 shift
3649 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3650 fi
3651fi
3652fi
3653fi
3654CC=$ac_cv_prog_CC
3655if test -n "$CC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3657$as_echo "$CC" >&6; }
2760f24c 3658else
24538276
CC
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660$as_echo "no" >&6; }
2760f24c
RG
3661fi
3662
3663
24538276
CC
3664fi
3665if test -z "$CC"; then
3666 if test -n "$ac_tool_prefix"; then
3667 for ac_prog in cl.exe
3668 do
3669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3670set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3673if ${ac_cv_prog_CC+:} false; then :
24538276
CC
3674 $as_echo_n "(cached) " >&6
3675else
3676 if test -n "$CC"; then
3677 ac_cv_prog_CC="$CC" # Let the user override the test.
3678else
3679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680for as_dir in $PATH
3681do
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3686 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3688 break 2
3689 fi
3690done
3691 done
3692IFS=$as_save_IFS
2760f24c 3693
053a4d68 3694fi
364c7fa5 3695fi
24538276
CC
3696CC=$ac_cv_prog_CC
3697if test -n "$CC"; then
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3699$as_echo "$CC" >&6; }
364c7fa5 3700else
24538276
CC
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702$as_echo "no" >&6; }
364c7fa5
ILT
3703fi
3704
364c7fa5 3705
24538276
CC
3706 test -n "$CC" && break
3707 done
e79a4bad 3708fi
24538276
CC
3709if test -z "$CC"; then
3710 ac_ct_CC=$CC
3711 for ac_prog in cl.exe
3712do
3713 # Extract the first word of "$ac_prog", so it can be a program name with args.
3714set dummy $ac_prog; ac_word=$2
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3717if ${ac_cv_prog_ac_ct_CC+:} false; then :
24538276 3718 $as_echo_n "(cached) " >&6
364c7fa5 3719else
24538276
CC
3720 if test -n "$ac_ct_CC"; then
3721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4fc1b9d4 3722else
24538276
CC
3723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724for as_dir in $PATH
3725do
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3730 ac_cv_prog_ac_ct_CC="$ac_prog"
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 break 2
3733 fi
3734done
3735 done
3736IFS=$as_save_IFS
4fc1b9d4 3737
ad961eab 3738fi
0a6f1bf2 3739fi
24538276
CC
3740ac_ct_CC=$ac_cv_prog_ac_ct_CC
3741if test -n "$ac_ct_CC"; then
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3743$as_echo "$ac_ct_CC" >&6; }
9810d34d 3744else
24538276
CC
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746$as_echo "no" >&6; }
9810d34d
SS
3747fi
3748
bae7f79e 3749
24538276 3750 test -n "$ac_ct_CC" && break
9109c078 3751done
bae7f79e 3752
24538276
CC
3753 if test "x$ac_ct_CC" = x; then
3754 CC=""
3755 else
3756 case $cross_compiling:$ac_tool_warned in
3757yes:)
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3760ac_tool_warned=yes ;;
3761esac
3762 CC=$ac_ct_CC
3763 fi
537b5f51 3764fi
fa99aa09 3765
81ecdfbb 3766fi
fa99aa09 3767
fa99aa09 3768
24538276
CC
3769test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3771as_fn_error $? "no acceptable C compiler found in \$PATH
3772See \`config.log' for more details" "$LINENO" 5; }
fa99aa09 3773
24538276
CC
3774# Provide some information about the compiler.
3775$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3776set X $ac_compile
3777ac_compiler=$2
3778for ac_option in --version -v -V -qversion; do
3779 { { ac_try="$ac_compiler $ac_option >&5"
3780case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783esac
3784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785$as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3787 ac_status=$?
3788 if test -s conftest.err; then
3789 sed '10a\
3790... rest of stderr output deleted ...
3791 10q' conftest.err >conftest.er1
3792 cat conftest.er1 >&5
24538276 3793 fi
d0ac1c44 3794 rm -f conftest.er1 conftest.err
24538276
CC
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }
3797done
bae7f79e 3798
24538276
CC
3799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800/* end confdefs.h. */
bae7f79e 3801
24538276
CC
3802int
3803main ()
3804{
bae7f79e 3805
24538276
CC
3806 ;
3807 return 0;
3808}
81ecdfbb 3809_ACEOF
24538276 3810ac_clean_files_save=$ac_clean_files
d0ac1c44 3811ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
24538276
CC
3812# Try to create an executable without -o first, disregard a.out.
3813# It will help us diagnose broken compilers, and finding out an intuition
3814# of exeext.
d0ac1c44
SM
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3816$as_echo_n "checking whether the C compiler works... " >&6; }
24538276 3817ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
bae7f79e 3818
24538276
CC
3819# The possible output files:
3820ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
bae7f79e 3821
24538276
CC
3822ac_rmfiles=
3823for ac_file in $ac_files
3824do
3825 case $ac_file in
3826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3827 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3828 esac
3829done
3830rm -f $ac_rmfiles
bae7f79e 3831
24538276
CC
3832if { { ac_try="$ac_link_default"
3833case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3836esac
3837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3838$as_echo "$ac_try_echo"; } >&5
3839 (eval "$ac_link_default") 2>&5
3840 ac_status=$?
3841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3842 test $ac_status = 0; }; then :
3843 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3844# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3845# in a Makefile. We should not override ac_cv_exeext if it was cached,
3846# so that the user can short-circuit this test for compilers unknown to
3847# Autoconf.
3848for ac_file in $ac_files ''
3849do
3850 test -f "$ac_file" || continue
3851 case $ac_file in
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3853 ;;
3854 [ab].out )
3855 # We found the default executable, but exeext='' is most
3856 # certainly right.
3857 break;;
3858 *.* )
3859 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3860 then :; else
3861 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3862 fi
3863 # We set ac_cv_exeext here because the later test for it is not
3864 # safe: cross compilers may not add the suffix if given an `-o'
3865 # argument, so we may need to know it at that point already.
3866 # Even if this section looks crufty: it has the advantage of
3867 # actually working.
3868 break;;
3869 * )
3870 break;;
3871 esac
3872done
3873test "$ac_cv_exeext" = no && ac_cv_exeext=
3f3cddf1 3874
3f3cddf1 3875else
24538276 3876 ac_file=''
3f3cddf1 3877fi
24538276 3878if test -z "$ac_file"; then :
d0ac1c44
SM
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880$as_echo "no" >&6; }
3881$as_echo "$as_me: failed program was:" >&5
24538276 3882sed 's/^/| /' conftest.$ac_ext >&5
3f3cddf1 3883
24538276
CC
3884{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3886as_fn_error 77 "C compiler cannot create executables
3887See \`config.log' for more details" "$LINENO" 5; }
3888else
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3890$as_echo "yes" >&6; }
24538276 3891fi
d0ac1c44
SM
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3893$as_echo_n "checking for C compiler default output file name... " >&6; }
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3895$as_echo "$ac_file" >&6; }
24538276 3896ac_exeext=$ac_cv_exeext
3f3cddf1 3897
d0ac1c44 3898rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
24538276 3899ac_clean_files=$ac_clean_files_save
24538276
CC
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3901$as_echo_n "checking for suffix of executables... " >&6; }
3902if { { ac_try="$ac_link"
3903case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906esac
3907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908$as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_link") 2>&5
3910 ac_status=$?
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }; then :
3913 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3914# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3915# work properly (i.e., refer to `conftest.exe'), while it won't with
3916# `rm'.
3917for ac_file in conftest.exe conftest conftest.*; do
3918 test -f "$ac_file" || continue
3919 case $ac_file in
3920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3921 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3922 break;;
3923 * ) break;;
3924 esac
3925done
3926else
3927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3929as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3930See \`config.log' for more details" "$LINENO" 5; }
3f3cddf1 3931fi
d0ac1c44 3932rm -f conftest conftest$ac_cv_exeext
24538276
CC
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3934$as_echo "$ac_cv_exeext" >&6; }
3f3cddf1 3935
24538276
CC
3936rm -f conftest.$ac_ext
3937EXEEXT=$ac_cv_exeext
3938ac_exeext=$EXEEXT
d0ac1c44
SM
3939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h. */
3941#include <stdio.h>
3942int
3943main ()
3944{
3945FILE *f = fopen ("conftest.out", "w");
3946 return ferror (f) || fclose (f) != 0;
3947
3948 ;
3949 return 0;
3950}
3951_ACEOF
3952ac_clean_files="$ac_clean_files conftest.out"
3953# Check that the compiler produces executables we can run. If not, either
3954# the compiler is broken, or we cross compile.
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3956$as_echo_n "checking whether we are cross compiling... " >&6; }
3957if test "$cross_compiling" != yes; then
3958 { { ac_try="$ac_link"
3959case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962esac
3963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964$as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_link") 2>&5
3966 ac_status=$?
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }
3969 if { ac_try='./conftest$ac_cv_exeext'
3970 { { case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973esac
3974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975$as_echo "$ac_try_echo"; } >&5
3976 (eval "$ac_try") 2>&5
3977 ac_status=$?
3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 test $ac_status = 0; }; }; then
3980 cross_compiling=no
3981 else
3982 if test "$cross_compiling" = maybe; then
3983 cross_compiling=yes
3984 else
3985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987as_fn_error $? "cannot run C compiled programs.
3988If you meant to cross compile, use \`--host'.
3989See \`config.log' for more details" "$LINENO" 5; }
3990 fi
3991 fi
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3994$as_echo "$cross_compiling" >&6; }
3995
3996rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3997ac_clean_files=$ac_clean_files_save
24538276
CC
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3999$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4000if ${ac_cv_objext+:} false; then :
ebb300b2
CC
4001 $as_echo_n "(cached) " >&6
4002else
24538276
CC
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004/* end confdefs.h. */
4005
4006int
4007main ()
4008{
4009
4010 ;
4011 return 0;
4012}
4013_ACEOF
4014rm -f conftest.o conftest.obj
4015if { { ac_try="$ac_compile"
4016case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019esac
4020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021$as_echo "$ac_try_echo"; } >&5
4022 (eval "$ac_compile") 2>&5
4023 ac_status=$?
4024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025 test $ac_status = 0; }; then :
4026 for ac_file in conftest.o conftest.obj conftest.*; do
4027 test -f "$ac_file" || continue;
4028 case $ac_file in
4029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4030 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4031 break;;
4032 esac
ebb300b2 4033done
24538276
CC
4034else
4035 $as_echo "$as_me: failed program was:" >&5
4036sed 's/^/| /' conftest.$ac_ext >&5
ebb300b2 4037
24538276
CC
4038{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4040as_fn_error $? "cannot compute suffix of object files: cannot compile
4041See \`config.log' for more details" "$LINENO" 5; }
ebb300b2 4042fi
24538276 4043rm -f conftest.$ac_cv_objext conftest.$ac_ext
ebb300b2 4044fi
24538276
CC
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4046$as_echo "$ac_cv_objext" >&6; }
4047OBJEXT=$ac_cv_objext
4048ac_objext=$OBJEXT
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4050$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4051if ${ac_cv_c_compiler_gnu+:} false; then :
24538276 4052 $as_echo_n "(cached) " >&6
ebb300b2 4053else
24538276
CC
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055/* end confdefs.h. */
ebb300b2 4056
24538276
CC
4057int
4058main ()
4059{
4060#ifndef __GNUC__
4061 choke me
4062#endif
ebb300b2 4063
24538276
CC
4064 ;
4065 return 0;
4066}
4067_ACEOF
4068if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_compiler_gnu=yes
ebb300b2 4070else
24538276 4071 ac_compiler_gnu=no
ebb300b2 4072fi
24538276
CC
4073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074ac_cv_c_compiler_gnu=$ac_compiler_gnu
4075
ebb300b2 4076fi
24538276
CC
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4078$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4079if test $ac_compiler_gnu = yes; then
4080 GCC=yes
ebb300b2 4081else
24538276 4082 GCC=
ebb300b2 4083fi
24538276
CC
4084ac_test_CFLAGS=${CFLAGS+set}
4085ac_save_CFLAGS=$CFLAGS
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4087$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4088if ${ac_cv_prog_cc_g+:} false; then :
24538276 4089 $as_echo_n "(cached) " >&6
ebb300b2 4090else
24538276
CC
4091 ac_save_c_werror_flag=$ac_c_werror_flag
4092 ac_c_werror_flag=yes
4093 ac_cv_prog_cc_g=no
4094 CFLAGS="-g"
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096/* end confdefs.h. */
ebb300b2 4097
24538276
CC
4098int
4099main ()
4100{
ebb300b2 4101
24538276
CC
4102 ;
4103 return 0;
4104}
4105_ACEOF
4106if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_cv_prog_cc_g=yes
81ecdfbb 4108else
24538276
CC
4109 CFLAGS=""
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h. */
bae7f79e 4112
24538276
CC
4113int
4114main ()
4115{
bae7f79e 4116
24538276
CC
4117 ;
4118 return 0;
4119}
4120_ACEOF
4121if ac_fn_c_try_compile "$LINENO"; then :
bae7f79e 4122
81ecdfbb 4123else
24538276
CC
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4125 CFLAGS="-g"
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127/* end confdefs.h. */
bae7f79e 4128
24538276
CC
4129int
4130main ()
4131{
4132
4133 ;
4134 return 0;
4135}
4136_ACEOF
4137if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_cv_prog_cc_g=yes
81ecdfbb 4139fi
24538276 4140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81ecdfbb 4141fi
24538276 4142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bae7f79e 4143fi
24538276
CC
4144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_c_werror_flag=$ac_save_c_werror_flag
4146fi
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4148$as_echo "$ac_cv_prog_cc_g" >&6; }
4149if test "$ac_test_CFLAGS" = set; then
4150 CFLAGS=$ac_save_CFLAGS
4151elif test $ac_cv_prog_cc_g = yes; then
4152 if test "$GCC" = yes; then
4153 CFLAGS="-g -O2"
81ecdfbb 4154 else
24538276 4155 CFLAGS="-g"
81ecdfbb 4156 fi
bae7f79e 4157else
24538276
CC
4158 if test "$GCC" = yes; then
4159 CFLAGS="-O2"
4160 else
4161 CFLAGS=
4162 fi
bae7f79e 4163fi
24538276
CC
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4165$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4166if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4167 $as_echo_n "(cached) " >&6
bae7f79e 4168else
24538276
CC
4169 ac_cv_prog_cc_c89=no
4170ac_save_CC=$CC
4171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172/* end confdefs.h. */
4173#include <stdarg.h>
4174#include <stdio.h>
d0ac1c44 4175struct stat;
24538276
CC
4176/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4177struct buf { int x; };
4178FILE * (*rcsopen) (struct buf *, struct stat *, int);
4179static char *e (p, i)
4180 char **p;
4181 int i;
4182{
4183 return p[i];
4184}
4185static char *f (char * (*g) (char **, int), char **p, ...)
4186{
4187 char *s;
4188 va_list v;
4189 va_start (v,p);
4190 s = g (p, va_arg (v,int));
4191 va_end (v);
4192 return s;
4193}
4194
4195/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4196 function prototypes and stuff, but not '\xHH' hex character constants.
4197 These don't provoke an error unfortunately, instead are silently treated
4198 as 'x'. The following induces an error, until -std is added to get
4199 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4200 array size at least. It's necessary to write '\x00'==0 to get something
4201 that's true only with -std. */
4202int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4203
4204/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4205 inside strings and character constants. */
4206#define FOO(x) 'x'
4207int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4208
4209int test (int i, double x);
4210struct s1 {int (*f) (int a);};
4211struct s2 {int (*f) (double a);};
4212int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4213int argc;
4214char **argv;
4215int
4216main ()
4217{
4218return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4219 ;
4220 return 0;
4221}
4222_ACEOF
4223for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4224 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4225do
4226 CC="$ac_save_CC $ac_arg"
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228 ac_cv_prog_cc_c89=$ac_arg
4229fi
4230rm -f core conftest.err conftest.$ac_objext
4231 test "x$ac_cv_prog_cc_c89" != "xno" && break
4232done
4233rm -f conftest.$ac_ext
4234CC=$ac_save_CC
4235
4236fi
4237# AC_CACHE_VAL
4238case "x$ac_cv_prog_cc_c89" in
4239 x)
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4241$as_echo "none needed" >&6; } ;;
4242 xno)
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4244$as_echo "unsupported" >&6; } ;;
4245 *)
4246 CC="$CC $ac_cv_prog_cc_c89"
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4248$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4249esac
4250if test "x$ac_cv_prog_cc_c89" != xno; then :
4251
4252fi
4253
4254ac_ext=c
4255ac_cpp='$CPP $CPPFLAGS'
4256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259
d0ac1c44
SM
4260ac_ext=c
4261ac_cpp='$CPP $CPPFLAGS'
4262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4266$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4267if ${am_cv_prog_cc_c_o+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269else
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271/* end confdefs.h. */
4272
4273int
4274main ()
4275{
4276
4277 ;
4278 return 0;
4279}
4280_ACEOF
4281 # Make sure it works both with $CC and with simple cc.
4282 # Following AC_PROG_CC_C_O, we do the test twice because some
4283 # compilers refuse to overwrite an existing .o file with -o,
4284 # though they will create one.
4285 am_cv_prog_cc_c_o=yes
4286 for am_i in 1 2; do
4287 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4288 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } \
4292 && test -f conftest2.$ac_objext; then
4293 : OK
4294 else
4295 am_cv_prog_cc_c_o=no
4296 break
4297 fi
4298 done
4299 rm -f core conftest*
4300 unset am_i
4301fi
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4303$as_echo "$am_cv_prog_cc_c_o" >&6; }
4304if test "$am_cv_prog_cc_c_o" != yes; then
4305 # Losing compiler, so override with the script.
4306 # FIXME: It is wrong to rewrite CC.
4307 # But if we don't then we get into trouble of one sort or another.
4308 # A longer-term fix would be to have automake use am__CC in this case,
4309 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4310 CC="$am_aux_dir/compile $CC"
4311fi
4312ac_ext=c
4313ac_cpp='$CPP $CPPFLAGS'
4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
4318
24538276
CC
4319depcc="$CC" am_compiler_list=
4320
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4322$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 4323if ${am_cv_CC_dependencies_compiler_type+:} false; then :
24538276
CC
4324 $as_echo_n "(cached) " >&6
4325else
4326 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4327 # We make a subdir and do the tests there. Otherwise we can end up
4328 # making bogus files that we don't know about and never remove. For
4329 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
4330 # making a dummy file named 'D' -- because '-MD' means "put the output
4331 # in D".
24538276
CC
4332 rm -rf conftest.dir
4333 mkdir conftest.dir
4334 # Copy depcomp to subdir because otherwise we won't find it if we're
4335 # using a relative directory.
4336 cp "$am_depcomp" conftest.dir
4337 cd conftest.dir
4338 # We will build objects and dependencies in a subdirectory because
4339 # it helps to detect inapplicable dependency modes. For instance
4340 # both Tru64's cc and ICC support -MD to output dependencies as a
4341 # side effect of compilation, but ICC will put the dependencies in
4342 # the current directory while Tru64 will put them in the object
4343 # directory.
4344 mkdir sub
4345
4346 am_cv_CC_dependencies_compiler_type=none
4347 if test "$am_compiler_list" = ""; then
4348 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4349 fi
4350 am__universal=false
4351 case " $depcc " in #(
4352 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4353 esac
4354
4355 for depmode in $am_compiler_list; do
4356 # Setup a source with many dependencies, because some compilers
4357 # like to wrap large dependency lists on column 80 (with \), and
4358 # we should not choose a depcomp mode which is confused by this.
4359 #
4360 # We need to recreate these files for each test, as the compiler may
4361 # overwrite some of them when testing with obscure command lines.
4362 # This happens at least with the AIX C compiler.
4363 : > sub/conftest.c
4364 for i in 1 2 3 4 5 6; do
4365 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
4366 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4367 # Solaris 10 /bin/sh.
4368 echo '/* dummy */' > sub/conftst$i.h
24538276
CC
4369 done
4370 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4371
d0ac1c44 4372 # We check with '-c' and '-o' for the sake of the "dashmstdout"
24538276 4373 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
4374 # handle '-M -o', and we need to detect this. Also, some Intel
4375 # versions had trouble with output in subdirs.
24538276
CC
4376 am__obj=sub/conftest.${OBJEXT-o}
4377 am__minus_obj="-o $am__obj"
4378 case $depmode in
4379 gcc)
4380 # This depmode causes a compiler race in universal mode.
4381 test "$am__universal" = false || continue
4382 ;;
4383 nosideeffect)
d0ac1c44
SM
4384 # After this tag, mechanisms are not by side-effect, so they'll
4385 # only be used when explicitly requested.
24538276
CC
4386 if test "x$enable_dependency_tracking" = xyes; then
4387 continue
4388 else
4389 break
4390 fi
4391 ;;
4392 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 4393 # This compiler won't grok '-c -o', but also, the minuso test has
24538276
CC
4394 # not run yet. These depmodes are late enough in the game, and
4395 # so weak that their functioning should not be impacted.
4396 am__obj=conftest.${OBJEXT-o}
4397 am__minus_obj=
4398 ;;
4399 none) break ;;
4400 esac
4401 if depmode=$depmode \
4402 source=sub/conftest.c object=$am__obj \
4403 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4404 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4405 >/dev/null 2>conftest.err &&
4406 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4407 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4408 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4409 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4410 # icc doesn't choke on unknown options, it will just issue warnings
4411 # or remarks (even with -Werror). So we grep stderr for any message
4412 # that says an option was ignored or not supported.
4413 # When given -MP, icc 7.0 and 7.1 complain thusly:
4414 # icc: Command line warning: ignoring option '-M'; no argument required
4415 # The diagnosis changed in icc 8.0:
4416 # icc: Command line remark: option '-MP' not supported
4417 if (grep 'ignoring option' conftest.err ||
4418 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4419 am_cv_CC_dependencies_compiler_type=$depmode
4420 break
4421 fi
4422 fi
81ecdfbb 4423 done
bae7f79e 4424
24538276
CC
4425 cd ..
4426 rm -rf conftest.dir
4427else
4428 am_cv_CC_dependencies_compiler_type=none
bae7f79e 4429fi
24538276 4430
81ecdfbb 4431fi
24538276
CC
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4433$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4434CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4435
4436 if
4437 test "x$enable_dependency_tracking" != xno \
4438 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4439 am__fastdepCC_TRUE=
4440 am__fastdepCC_FALSE='#'
bae7f79e 4441else
24538276
CC
4442 am__fastdepCC_TRUE='#'
4443 am__fastdepCC_FALSE=
bae7f79e
ILT
4444fi
4445
4446
24538276
CC
4447
4448ac_ext=c
4449ac_cpp='$CPP $CPPFLAGS'
4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4454$as_echo_n "checking how to run the C preprocessor... " >&6; }
4455# On Suns, sometimes $CPP names a directory.
4456if test -n "$CPP" && test -d "$CPP"; then
4457 CPP=
4458fi
4459if test -z "$CPP"; then
d0ac1c44 4460 if ${ac_cv_prog_CPP+:} false; then :
24538276
CC
4461 $as_echo_n "(cached) " >&6
4462else
4463 # Double quotes because CPP needs to be expanded
4464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4465 do
4466 ac_preproc_ok=false
4467for ac_c_preproc_warn_flag in '' yes
4468do
4469 # Use a header file that comes with gcc, so configuring glibc
4470 # with a fresh cross-compiler works.
4471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4472 # <limits.h> exists even on freestanding compilers.
4473 # On the NeXT, cc -E runs the code through the compiler's parser,
4474 # not just through cpp. "Syntax error" is here to catch this case.
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h. */
4477#ifdef __STDC__
4478# include <limits.h>
4479#else
4480# include <assert.h>
4481#endif
4482 Syntax error
4483_ACEOF
4484if ac_fn_c_try_cpp "$LINENO"; then :
4485
4486else
4487 # Broken: fails on valid input.
4488continue
4489fi
d0ac1c44 4490rm -f conftest.err conftest.i conftest.$ac_ext
24538276
CC
4491
4492 # OK, works on sane cases. Now check whether nonexistent headers
4493 # can be detected and how.
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495/* end confdefs.h. */
4496#include <ac_nonexistent.h>
4497_ACEOF
4498if ac_fn_c_try_cpp "$LINENO"; then :
4499 # Broken: success on invalid input.
4500continue
4501else
4502 # Passes both tests.
4503ac_preproc_ok=:
4504break
4505fi
d0ac1c44 4506rm -f conftest.err conftest.i conftest.$ac_ext
24538276
CC
4507
4508done
4509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4510rm -f conftest.i conftest.err conftest.$ac_ext
24538276
CC
4511if $ac_preproc_ok; then :
4512 break
4513fi
4514
4515 done
4516 ac_cv_prog_CPP=$CPP
4517
4518fi
4519 CPP=$ac_cv_prog_CPP
4520else
4521 ac_cv_prog_CPP=$CPP
4522fi
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4524$as_echo "$CPP" >&6; }
4525ac_preproc_ok=false
4526for ac_c_preproc_warn_flag in '' yes
4527do
4528 # Use a header file that comes with gcc, so configuring glibc
4529 # with a fresh cross-compiler works.
4530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531 # <limits.h> exists even on freestanding compilers.
4532 # On the NeXT, cc -E runs the code through the compiler's parser,
4533 # not just through cpp. "Syntax error" is here to catch this case.
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h. */
4536#ifdef __STDC__
4537# include <limits.h>
4538#else
4539# include <assert.h>
4540#endif
4541 Syntax error
4542_ACEOF
4543if ac_fn_c_try_cpp "$LINENO"; then :
4544
4545else
4546 # Broken: fails on valid input.
4547continue
4548fi
d0ac1c44 4549rm -f conftest.err conftest.i conftest.$ac_ext
24538276
CC
4550
4551 # OK, works on sane cases. Now check whether nonexistent headers
4552 # can be detected and how.
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554/* end confdefs.h. */
4555#include <ac_nonexistent.h>
4556_ACEOF
4557if ac_fn_c_try_cpp "$LINENO"; then :
4558 # Broken: success on invalid input.
4559continue
4560else
4561 # Passes both tests.
4562ac_preproc_ok=:
4563break
4564fi
d0ac1c44 4565rm -f conftest.err conftest.i conftest.$ac_ext
24538276
CC
4566
4567done
4568# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4569rm -f conftest.i conftest.err conftest.$ac_ext
24538276
CC
4570if $ac_preproc_ok; then :
4571
4572else
4573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4575as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4576See \`config.log' for more details" "$LINENO" 5; }
24538276
CC
4577fi
4578
4579ac_ext=c
4580ac_cpp='$CPP $CPPFLAGS'
4581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583ac_compiler_gnu=$ac_cv_c_compiler_gnu
4584
4585
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4587$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 4588if ${ac_cv_path_GREP+:} false; then :
24538276
CC
4589 $as_echo_n "(cached) " >&6
4590else
4591 if test -z "$GREP"; then
4592 ac_path_GREP_found=false
4593 # Loop through the user's path and test for each of PROGNAME-LIST
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4596do
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_prog in grep ggrep; do
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4602 as_fn_executable_p "$ac_path_GREP" || continue
24538276
CC
4603# Check for GNU ac_path_GREP and select it if it is found.
4604 # Check for GNU $ac_path_GREP
4605case `"$ac_path_GREP" --version 2>&1` in
4606*GNU*)
4607 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4608*)
4609 ac_count=0
4610 $as_echo_n 0123456789 >"conftest.in"
4611 while :
4612 do
4613 cat "conftest.in" "conftest.in" >"conftest.tmp"
4614 mv "conftest.tmp" "conftest.in"
4615 cp "conftest.in" "conftest.nl"
4616 $as_echo 'GREP' >> "conftest.nl"
4617 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4618 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4619 as_fn_arith $ac_count + 1 && ac_count=$as_val
4620 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4621 # Best one so far, save it but keep looking for a better one
4622 ac_cv_path_GREP="$ac_path_GREP"
4623 ac_path_GREP_max=$ac_count
4624 fi
4625 # 10*(2^10) chars as input seems more than enough
4626 test $ac_count -gt 10 && break
4627 done
4628 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4629esac
4630
4631 $ac_path_GREP_found && break 3
4632 done
4633 done
4634 done
4635IFS=$as_save_IFS
4636 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 4637 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
24538276
CC
4638 fi
4639else
4640 ac_cv_path_GREP=$GREP
4641fi
4642
4643fi
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4645$as_echo "$ac_cv_path_GREP" >&6; }
4646 GREP="$ac_cv_path_GREP"
4647
4648
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4650$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 4651if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb
RW
4652 $as_echo_n "(cached) " >&6
4653else
24538276
CC
4654 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4655 then ac_cv_path_EGREP="$GREP -E"
4656 else
4657 if test -z "$EGREP"; then
4658 ac_path_EGREP_found=false
4659 # Loop through the user's path and test for each of PROGNAME-LIST
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
81ecdfbb
RW
4662do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
24538276 4665 for ac_prog in egrep; do
81ecdfbb 4666 for ac_exec_ext in '' $ac_executable_extensions; do
24538276 4667 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4668 as_fn_executable_p "$ac_path_EGREP" || continue
24538276
CC
4669# Check for GNU ac_path_EGREP and select it if it is found.
4670 # Check for GNU $ac_path_EGREP
4671case `"$ac_path_EGREP" --version 2>&1` in
4672*GNU*)
4673 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4674*)
4675 ac_count=0
4676 $as_echo_n 0123456789 >"conftest.in"
4677 while :
4678 do
4679 cat "conftest.in" "conftest.in" >"conftest.tmp"
4680 mv "conftest.tmp" "conftest.in"
4681 cp "conftest.in" "conftest.nl"
4682 $as_echo 'EGREP' >> "conftest.nl"
4683 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4685 as_fn_arith $ac_count + 1 && ac_count=$as_val
4686 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4687 # Best one so far, save it but keep looking for a better one
4688 ac_cv_path_EGREP="$ac_path_EGREP"
4689 ac_path_EGREP_max=$ac_count
4690 fi
4691 # 10*(2^10) chars as input seems more than enough
4692 test $ac_count -gt 10 && break
81ecdfbb 4693 done
24538276
CC
4694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4695esac
bae7f79e 4696
24538276
CC
4697 $ac_path_EGREP_found && break 3
4698 done
4699 done
4700 done
4701IFS=$as_save_IFS
4702 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 4703 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
bae7f79e 4704 fi
81ecdfbb 4705else
24538276 4706 ac_cv_path_EGREP=$EGREP
bae7f79e
ILT
4707fi
4708
24538276 4709 fi
81ecdfbb 4710fi
24538276
CC
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4712$as_echo "$ac_cv_path_EGREP" >&6; }
4713 EGREP="$ac_cv_path_EGREP"
4714
4715
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4717$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 4718if ${ac_cv_header_stdc+:} false; then :
81ecdfbb 4719 $as_echo_n "(cached) " >&6
bae7f79e 4720else
24538276
CC
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722/* end confdefs.h. */
4723#include <stdlib.h>
4724#include <stdarg.h>
4725#include <string.h>
4726#include <float.h>
4727
4728int
4729main ()
4730{
4731
4732 ;
4733 return 0;
4734}
4735_ACEOF
4736if ac_fn_c_try_compile "$LINENO"; then :
4737 ac_cv_header_stdc=yes
81ecdfbb 4738else
24538276
CC
4739 ac_cv_header_stdc=no
4740fi
4741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742
4743if test $ac_cv_header_stdc = yes; then
4744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746/* end confdefs.h. */
4747#include <string.h>
4748
4749_ACEOF
4750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4751 $EGREP "memchr" >/dev/null 2>&1; then :
81ecdfbb 4752
24538276
CC
4753else
4754 ac_cv_header_stdc=no
81ecdfbb 4755fi
24538276
CC
4756rm -f conftest*
4757
81ecdfbb 4758fi
24538276
CC
4759
4760if test $ac_cv_header_stdc = yes; then
4761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763/* end confdefs.h. */
4764#include <stdlib.h>
4765
4766_ACEOF
4767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768 $EGREP "free" >/dev/null 2>&1; then :
4769
81ecdfbb 4770else
24538276 4771 ac_cv_header_stdc=no
bae7f79e 4772fi
24538276 4773rm -f conftest*
bae7f79e 4774
81ecdfbb 4775fi
24538276
CC
4776
4777if test $ac_cv_header_stdc = yes; then
4778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4779 if test "$cross_compiling" = yes; then :
4780 :
bae7f79e 4781else
24538276
CC
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783/* end confdefs.h. */
4784#include <ctype.h>
4785#include <stdlib.h>
4786#if ((' ' & 0x0FF) == 0x020)
4787# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4788# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4789#else
4790# define ISLOWER(c) \
4791 (('a' <= (c) && (c) <= 'i') \
4792 || ('j' <= (c) && (c) <= 'r') \
4793 || ('s' <= (c) && (c) <= 'z'))
4794# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4795#endif
4796
4797#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4798int
4799main ()
4800{
4801 int i;
4802 for (i = 0; i < 256; i++)
4803 if (XOR (islower (i), ISLOWER (i))
4804 || toupper (i) != TOUPPER (i))
4805 return 2;
4806 return 0;
4807}
4808_ACEOF
4809if ac_fn_c_try_run "$LINENO"; then :
4810
81ecdfbb 4811else
24538276
CC
4812 ac_cv_header_stdc=no
4813fi
4814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4815 conftest.$ac_objext conftest.beam conftest.$ac_ext
4816fi
4817
4818fi
4819fi
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4821$as_echo "$ac_cv_header_stdc" >&6; }
4822if test $ac_cv_header_stdc = yes; then
4823
4824$as_echo "#define STDC_HEADERS 1" >>confdefs.h
81ecdfbb 4825
bae7f79e 4826fi
24538276
CC
4827
4828# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4829for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4830 inttypes.h stdint.h unistd.h
4831do :
4832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4833ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4834"
d0ac1c44 4835if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24538276
CC
4836 cat >>confdefs.h <<_ACEOF
4837#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4838_ACEOF
4839
81ecdfbb 4840fi
24538276
CC
4841
4842done
4843
4844
4845
4846 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 4847if test "x$ac_cv_header_minix_config_h" = xyes; then :
24538276 4848 MINIX=yes
bae7f79e 4849else
24538276 4850 MINIX=
bae7f79e
ILT
4851fi
4852
bae7f79e 4853
24538276 4854 if test "$MINIX" = yes; then
bae7f79e 4855
24538276 4856$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
bae7f79e 4857
bae7f79e 4858
24538276 4859$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
81ecdfbb 4860
81ecdfbb 4861
24538276
CC
4862$as_echo "#define _MINIX 1" >>confdefs.h
4863
81ecdfbb 4864 fi
81ecdfbb 4865
24538276
CC
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4868$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 4869if ${ac_cv_safe_to_define___extensions__+:} false; then :
24538276
CC
4870 $as_echo_n "(cached) " >&6
4871else
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb
RW
4873/* end confdefs.h. */
4874
d0ac1c44
SM
4875# define __EXTENSIONS__ 1
4876 $ac_includes_default
81ecdfbb
RW
4877int
4878main ()
4879{
4880
4881 ;
4882 return 0;
4883}
4884_ACEOF
24538276
CC
4885if ac_fn_c_try_compile "$LINENO"; then :
4886 ac_cv_safe_to_define___extensions__=yes
4887else
4888 ac_cv_safe_to_define___extensions__=no
4889fi
4890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891fi
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4893$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4894 test $ac_cv_safe_to_define___extensions__ = yes &&
4895 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
81ecdfbb 4896
24538276 4897 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
81ecdfbb 4898
24538276 4899 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
81ecdfbb 4900
24538276
CC
4901 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4902
4903 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4904
4905
4906
4907# PR 14072
4908
4909
4910
4911# Check whether --with-sysroot was given.
4912if test "${with_sysroot+set}" = set; then :
4913 withval=$with_sysroot; sysroot=$withval
4914else
4915 sysroot=no
4916fi
4917
4918
4919if test "$sysroot" = "yes"; then
4920 sysroot='${exec_prefix}/${target_alias}/sys-root'
4921elif test "$sysroot" = "no"; then
4922 sysroot=
4923fi
4924
4925sysroot_relocatable=0
4926if test -n "$sysroot"; then
4927 case "$sysroot" in
4928 "${prefix}" | "${prefix}/"* | \
4929 "${exec_prefix}" | "${exec_prefix}/"* | \
4930 '${prefix}' | '${prefix}/'*| \
4931 '${exec_prefix}' | '${exec_prefix}/'*)
4932 sysroot_relocatable=1
4933 ;;
81ecdfbb 4934 esac
24538276
CC
4935fi
4936
4937
4938cat >>confdefs.h <<_ACEOF
4939#define TARGET_SYSTEM_ROOT "$sysroot"
4940_ACEOF
81ecdfbb 4941
24538276
CC
4942
4943cat >>confdefs.h <<_ACEOF
4944#define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
4945_ACEOF
4946
4947
4948
4949installed_linker=ld.gold
4950# Check whether --enable-gold was given.
4951if test "${enable_gold+set}" = set; then :
4952 enableval=$enable_gold; case "${enableval}" in
4953 default)
4954 install_as_default=yes
4955 ;;
4956 yes)
4957 if test x${enable_ld} = xno; then
4958 install_as_default=yes
4959 fi
4960 ;;
4961 esac
bae7f79e 4962else
24538276 4963 install_as_default=no
bae7f79e
ILT
4964fi
4965
24538276
CC
4966
4967
4968
24538276
CC
4969
4970 maybe_plugins=no
4971 for ac_header in dlfcn.h
4972do :
4973 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4974"
d0ac1c44 4975if test "x$ac_cv_header_dlfcn_h" = xyes; then :
24538276
CC
4976 cat >>confdefs.h <<_ACEOF
4977#define HAVE_DLFCN_H 1
4978_ACEOF
4979 maybe_plugins=yes
81ecdfbb 4980fi
bae7f79e 4981
24538276
CC
4982done
4983
4984 for ac_header in windows.h
4985do :
4986 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4987"
d0ac1c44 4988if test "x$ac_cv_header_windows_h" = xyes; then :
24538276
CC
4989 cat >>confdefs.h <<_ACEOF
4990#define HAVE_WINDOWS_H 1
4991_ACEOF
4992 maybe_plugins=yes
4993fi
81ecdfbb 4994
81ecdfbb 4995done
24538276
CC
4996
4997
4998 # Check whether --enable-plugins was given.
4999if test "${enable_plugins+set}" = set; then :
5000 enableval=$enable_plugins; case "${enableval}" in
5001 no) plugins=no ;;
5002 *) plugins=yes
5003 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 5004 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
24538276
CC
5005 fi ;;
5006 esac
81ecdfbb 5007else
24538276
CC
5008 plugins=$maybe_plugins
5009
81ecdfbb 5010fi
bae7f79e 5011
24538276 5012 if test "$plugins" = "yes"; then
c4a614e2
AM
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5014$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 5015if ${ac_cv_search_dlsym+:} false; then :
81ecdfbb 5016 $as_echo_n "(cached) " >&6
92e059d8 5017else
24538276
CC
5018 ac_func_search_save_LIBS=$LIBS
5019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92e059d8 5020/* end confdefs.h. */
92e059d8 5021
24538276
CC
5022/* Override any GCC internal prototype to avoid an error.
5023 Use char because int might match the return type of a GCC
5024 builtin and then its argument prototype would still apply. */
5025#ifdef __cplusplus
5026extern "C"
5027#endif
c4a614e2 5028char dlsym ();
92e059d8
ILT
5029int
5030main ()
5031{
c4a614e2 5032return dlsym ();
92e059d8
ILT
5033 ;
5034 return 0;
5035}
5036_ACEOF
24538276
CC
5037for ac_lib in '' dl; do
5038 if test -z "$ac_lib"; then
5039 ac_res="none required"
5040 else
5041 ac_res=-l$ac_lib
5042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5043 fi
5044 if ac_fn_c_try_link "$LINENO"; then :
c4a614e2 5045 ac_cv_search_dlsym=$ac_res
24538276
CC
5046fi
5047rm -f core conftest.err conftest.$ac_objext \
5048 conftest$ac_exeext
d0ac1c44 5049 if ${ac_cv_search_dlsym+:} false; then :
24538276
CC
5050 break
5051fi
81ecdfbb 5052done
d0ac1c44 5053if ${ac_cv_search_dlsym+:} false; then :
24538276 5054
81ecdfbb 5055else
c4a614e2 5056 ac_cv_search_dlsym=no
24538276
CC
5057fi
5058rm conftest.$ac_ext
5059LIBS=$ac_func_search_save_LIBS
5060fi
c4a614e2
AM
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5062$as_echo "$ac_cv_search_dlsym" >&6; }
5063ac_res=$ac_cv_search_dlsym
24538276
CC
5064if test "$ac_res" != no; then :
5065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
81ecdfbb 5066
81ecdfbb 5067fi
24538276
CC
5068
5069 fi
5070
5071if test "$plugins" = "yes"; then
5072
5073$as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5074
81ecdfbb 5075fi
24538276
CC
5076 if test "$plugins" = "yes"; then
5077 PLUGINS_TRUE=
5078 PLUGINS_FALSE='#'
81ecdfbb 5079else
24538276
CC
5080 PLUGINS_TRUE='#'
5081 PLUGINS_FALSE=
5082fi
92e059d8 5083
92e059d8 5084
24538276
CC
5085# Decide if -z relro should be enabled in ELF linker by default.
5086ac_default_ld_z_relro=unset
5087# Provide a configure time option to override our default.
5088# Check whether --enable-relro was given.
5089if test "${enable_relro+set}" = set; then :
5090 enableval=$enable_relro; case "${enableval}" in
5091 yes) ac_default_ld_z_relro=1 ;;
5092 no) ac_default_ld_z_relro=0 ;;
5093esac
5094fi
5095if test "${ac_default_ld_z_relro}" = unset; then
5096 ac_default_ld_z_relro=1
5097fi
5098
5099cat >>confdefs.h <<_ACEOF
5100#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
92e059d8 5101_ACEOF
24538276
CC
5102
5103
5104# Check whether --enable-targets was given.
5105if test "${enable_targets+set}" = set; then :
5106 enableval=$enable_targets; case "${enableval}" in
5107 yes | "")
d0ac1c44 5108 as_fn_error $? "--enable-targets option must specify target names or 'all'" "$LINENO" 5
24538276
CC
5109 ;;
5110 no)
5111 enable_targets=
5112 ;;
5113 *)
5114 enable_targets=$enableval
5115 ;;
5116esac
92e059d8 5117else
24538276
CC
5118 # For now, enable all targets by default
5119 enable_targets=all
5120
81ecdfbb 5121fi
92e059d8 5122
24538276
CC
5123
5124# Canonicalize the enabled targets.
5125if test -n "$enable_targets"; then
5126 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
5127 result=`$ac_config_sub $targ 2>/dev/null`
5128 if test -n "$result"; then
5129 canon_targets="$canon_targets $result"
5130 else
5131 # Permit unrecognized target names, like "all".
5132 canon_targets="$canon_targets $targ"
5133 fi
5134 done
92e059d8 5135fi
24538276
CC
5136
5137# Decide which "--hash-style" to use by default
5138# Provide a configure time option to override our default.
5139# Check whether --enable-default-hash-style was given.
5140if test "${enable_default_hash_style+set}" = set; then :
5141 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
5142 sysv | gnu | both) ;;
d0ac1c44 5143 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
24538276 5144esac
92e059d8 5145else
24538276
CC
5146 case "${target}" in
5147 # Enable gnu hash only on GNU targets, but not mips
5148 mips*-*-*) enable_default_hash_style=sysv ;;
5149 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
5150 *) enable_default_hash_style=sysv ;;
5151esac
81ecdfbb 5152fi
81ecdfbb 5153
81ecdfbb 5154
24538276
CC
5155
5156cat >>confdefs.h <<_ACEOF
5157#define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
92e059d8 5158_ACEOF
81ecdfbb 5159
81ecdfbb 5160
24538276
CC
5161# See which specific instantiations we need.
5162targetobjs=
5163all_targets=
5164default_machine=
5165default_size=
5166default_big_endian=
5167default_osabi=ELFOSABI_NONE
5168targ_32_little=
5169targ_32_big=
5170targ_64_little=
5171targ_64_big=
5172for targ in $target $canon_targets; do
5173 if test "$targ" = "all"; then
5174 targ_32_little=yes
5175 targ_32_big=yes
5176 targ_64_little=yes
5177 targ_64_big=yes
5178 all_targets=yes
5179 else
5180 . ${srcdir}/configure.tgt
81ecdfbb 5181
24538276 5182 if test "$targ_obj" = "UNKNOWN"; then
d0ac1c44 5183 as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
24538276
CC
5184 else
5185 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
5186 if test "$targ_extra_obj" != ""; then
5187 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5188 fi
5189 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5190 if test "$targ_big_endian" = "true" \
5191 -o "$targ_extra_big_endian" = "true"; then
5192 targ_32_big=yes
5193 fi
5194 if test "$targ_big_endian" = "false" \
5195 -o "$targ_extra_big_endian" = "false"; then
5196 targ_32_little=yes
5197 fi
5198 fi
5199 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5200 if test "$targ_big_endian" = "true" \
5201 -o "$targ_extra_big_endian" = "true"; then
5202 targ_64_big=yes
5203 fi
5204 if test "$targ_big_endian" = "false" \
5205 -o "$targ_extra_big_endian" = "false"; then
5206 targ_64_little=yes
5207 fi
5208 fi
92e059d8 5209
24538276
CC
5210 if test "$target" = "$targ"; then
5211 default_machine=$targ_machine
5212 default_size=$targ_size
5213 default_big_endian=$targ_big_endian
5214 default_osabi=$targ_osabi
92e059d8 5215
24538276
CC
5216 if test "$targ_obj" = "aarch64"; then
5217 DEFAULT_TARGET_AARCH64_TRUE=
5218 DEFAULT_TARGET_AARCH64_FALSE='#'
5219else
5220 DEFAULT_TARGET_AARCH64_TRUE='#'
5221 DEFAULT_TARGET_AARCH64_FALSE=
63402fe4 5222fi
24538276
CC
5223
5224 if test "$targ_obj" = "arm"; then
5225 DEFAULT_TARGET_ARM_TRUE=
5226 DEFAULT_TARGET_ARM_FALSE='#'
5227else
5228 DEFAULT_TARGET_ARM_TRUE='#'
5229 DEFAULT_TARGET_ARM_FALSE=
8a5e3e08 5230fi
24538276
CC
5231
5232 if test "$targ_obj" = "i386"; then
5233 DEFAULT_TARGET_I386_TRUE=
5234 DEFAULT_TARGET_I386_FALSE='#'
6eee141f 5235else
24538276
CC
5236 DEFAULT_TARGET_I386_TRUE='#'
5237 DEFAULT_TARGET_I386_FALSE=
097ec620 5238fi
24538276
CC
5239
5240 if test "$targ_obj" = "powerpc"; then
5241 DEFAULT_TARGET_POWERPC_TRUE=
5242 DEFAULT_TARGET_POWERPC_FALSE='#'
6eee141f 5243else
24538276
CC
5244 DEFAULT_TARGET_POWERPC_TRUE='#'
5245 DEFAULT_TARGET_POWERPC_FALSE=
5246fi
6eee141f 5247
24538276
CC
5248 if test "$targ_obj" = "sparc"; then
5249 DEFAULT_TARGET_SPARC_TRUE=
5250 DEFAULT_TARGET_SPARC_FALSE='#'
5251else
5252 DEFAULT_TARGET_SPARC_TRUE='#'
5253 DEFAULT_TARGET_SPARC_FALSE=
5254fi
097ec620 5255
24538276
CC
5256 if test "$targ_obj" = "s390"; then
5257 DEFAULT_TARGET_S390_TRUE=
5258 DEFAULT_TARGET_S390_FALSE='#'
5259else
5260 DEFAULT_TARGET_S390_TRUE='#'
5261 DEFAULT_TARGET_S390_FALSE=
5262fi
097ec620 5263
24538276
CC
5264 target_x86_64=no
5265 target_x32=no
5266 if test "$targ_obj" = "x86_64"; then
5267 case "$target" in
5268 x86_64*-linux-gnux32)
5269 target_x32=yes
5270 default_size=32
5271 ;;
5272 *)
5273 target_x86_64=yes
5274 ;;
5275 esac
5276 fi
5277 if test "$target_x86_64" = "yes"; then
5278 DEFAULT_TARGET_X86_64_TRUE=
5279 DEFAULT_TARGET_X86_64_FALSE='#'
5280else
5281 DEFAULT_TARGET_X86_64_TRUE='#'
5282 DEFAULT_TARGET_X86_64_FALSE=
097ec620 5283fi
097ec620 5284
24538276
CC
5285 if test "$target_x32" = "yes"; then
5286 DEFAULT_TARGET_X32_TRUE=
5287 DEFAULT_TARGET_X32_FALSE='#'
5288else
5289 DEFAULT_TARGET_X32_TRUE='#'
5290 DEFAULT_TARGET_X32_FALSE=
097ec620
ILT
5291fi
5292
24538276
CC
5293 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5294 DEFAULT_TARGET_X86_64_OR_X32_TRUE=
5295 DEFAULT_TARGET_X86_64_OR_X32_FALSE='#'
5296else
5297 DEFAULT_TARGET_X86_64_OR_X32_TRUE='#'
5298 DEFAULT_TARGET_X86_64_OR_X32_FALSE=
81ecdfbb 5299fi
097ec620 5300
24538276
CC
5301 if test "$targ_obj" = "tilegx"; then
5302 DEFAULT_TARGET_TILEGX_TRUE=
5303 DEFAULT_TARGET_TILEGX_FALSE='#'
5304else
5305 DEFAULT_TARGET_TILEGX_TRUE='#'
5306 DEFAULT_TARGET_TILEGX_FALSE=
5307fi
155a0dd7 5308
24538276
CC
5309 if test "$targ_obj" = "mips"; then
5310 DEFAULT_TARGET_MIPS_TRUE=
5311 DEFAULT_TARGET_MIPS_FALSE='#'
5312else
5313 DEFAULT_TARGET_MIPS_TRUE='#'
5314 DEFAULT_TARGET_MIPS_FALSE=
5315fi
155a0dd7 5316
24538276
CC
5317 DEFAULT_TARGET=${targ_obj}
5318
5319 fi
5320 fi
5321 fi
5322done
5323
5324# Remove any duplicates.
5325to=""
5326for t in $targetobjs; do
5327 case " $to " in
5328 *" $t "*) ;;
5329 *) to="$to $t" ;;
5330 esac
5331done
5332targetobjs=$to
5333
5334if test -n "$targ_32_little"; then
5335
5336$as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
155a0dd7 5337
155a0dd7 5338fi
24538276 5339if test -n "$targ_32_big"; then
155a0dd7 5340
24538276 5341$as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
155a0dd7 5342
24538276
CC
5343fi
5344if test -n "$targ_64_little"; then
5345
5346$as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
155a0dd7 5347
81ecdfbb 5348fi
24538276
CC
5349if test -n "$targ_64_big"; then
5350
5351$as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
155a0dd7 5352
81ecdfbb 5353fi
24538276
CC
5354
5355if test -n "$all_targets"; then
5356 TARGETOBJS='$(ALL_TARGETOBJS)'
155a0dd7 5357else
24538276 5358 TARGETOBJS="$targetobjs"
155a0dd7
ILT
5359fi
5360
5361
c2b45e22 5362
24538276
CC
5363cat >>confdefs.h <<_ACEOF
5364#define GOLD_DEFAULT_MACHINE $default_machine
5365_ACEOF
c2b45e22 5366
c2b45e22 5367
24538276
CC
5368cat >>confdefs.h <<_ACEOF
5369#define GOLD_DEFAULT_SIZE $default_size
5370_ACEOF
c2b45e22 5371
c2b45e22 5372
24538276
CC
5373cat >>confdefs.h <<_ACEOF
5374#define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5375_ACEOF
c2b45e22 5376
24538276
CC
5377
5378cat >>confdefs.h <<_ACEOF
5379#define GOLD_DEFAULT_OSABI $default_osabi
5380_ACEOF
5381
5382
5383
5384# Check whether --with-lib-path was given.
5385if test "${with_lib_path+set}" = set; then :
5386 withval=$with_lib_path; case "$withval" in
5387 yes) LIB_PATH='"/lib:/usr/lib"' ;;
5388 no) LIB_PATH='""' ;;
5389 *) LIB_PATH='"'"$withval"'"' ;;
5390 esac
c2b45e22 5391else
24538276 5392 LIB_PATH='"::DEFAULT::"'
c2b45e22 5393fi
c2b45e22
CC
5394
5395
24538276
CC
5396cat >>confdefs.h <<_ACEOF
5397#define LIB_PATH $LIB_PATH
5398_ACEOF
c2b45e22 5399
24538276 5400if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
c2b45e22 5401
24538276
CC
5402$as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5403
5404fi
5405
5406if test -n "$ac_tool_prefix"; then
5407 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5408set dummy ${ac_tool_prefix}nm; ac_word=$2
81ecdfbb
RW
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5411if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 5412 $as_echo_n "(cached) " >&6
2fd32231 5413else
24538276
CC
5414 if test -n "$NM"; then
5415 ac_cv_prog_NM="$NM" # Let the user override the test.
2fd32231 5416else
81ecdfbb
RW
5417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418for as_dir in $PATH
5419do
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276 5424 ac_cv_prog_NM="${ac_tool_prefix}nm"
81ecdfbb
RW
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5427 fi
5428done
5429 done
5430IFS=$as_save_IFS
2fd32231 5431
2fd32231 5432fi
2fd32231 5433fi
24538276
CC
5434NM=$ac_cv_prog_NM
5435if test -n "$NM"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5437$as_echo "$NM" >&6; }
2fd32231 5438else
81ecdfbb
RW
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440$as_echo "no" >&6; }
2fd32231
ILT
5441fi
5442
5443
81ecdfbb 5444fi
24538276
CC
5445if test -z "$ac_cv_prog_NM"; then
5446 ac_ct_NM=$NM
5447 # Extract the first word of "nm", so it can be a program name with args.
5448set dummy nm; ac_word=$2
81ecdfbb
RW
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5451if ${ac_cv_prog_ac_ct_NM+:} false; then :
81ecdfbb 5452 $as_echo_n "(cached) " >&6
1d1f116d 5453else
24538276
CC
5454 if test -n "$ac_ct_NM"; then
5455 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
1d1f116d 5456else
81ecdfbb
RW
5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH
5459do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276 5464 ac_cv_prog_ac_ct_NM="nm"
81ecdfbb
RW
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468done
5469 done
5470IFS=$as_save_IFS
1d1f116d 5471
1d1f116d 5472fi
1d1f116d 5473fi
24538276
CC
5474ac_ct_NM=$ac_cv_prog_ac_ct_NM
5475if test -n "$ac_ct_NM"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5477$as_echo "$ac_ct_NM" >&6; }
81ecdfbb
RW
5478else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480$as_echo "no" >&6; }
1d1f116d
CD
5481fi
5482
24538276
CC
5483 if test "x$ac_ct_NM" = x; then
5484 NM=""
81ecdfbb
RW
5485 else
5486 case $cross_compiling:$ac_tool_warned in
5487yes:)
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490ac_tool_warned=yes ;;
04bf7072 5491esac
24538276 5492 NM=$ac_ct_NM
81ecdfbb 5493 fi
24538276
CC
5494else
5495 NM="$ac_cv_prog_NM"
81ecdfbb 5496fi
04bf7072 5497
bae7f79e 5498
24538276
CC
5499ac_ext=c
5500ac_cpp='$CPP $CPPFLAGS'
5501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503ac_compiler_gnu=$ac_cv_c_compiler_gnu
5504if test -n "$ac_tool_prefix"; then
5505 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5506set dummy ${ac_tool_prefix}gcc; ac_word=$2
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5509if ${ac_cv_prog_CC+:} false; then :
81ecdfbb
RW
5510 $as_echo_n "(cached) " >&6
5511else
24538276
CC
5512 if test -n "$CC"; then
5513 ac_cv_prog_CC="$CC" # Let the user override the test.
81ecdfbb 5514else
24538276
CC
5515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516for as_dir in $PATH
5517do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
5522 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5525 fi
5526done
5527 done
5528IFS=$as_save_IFS
bae7f79e 5529
bae7f79e 5530fi
81ecdfbb 5531fi
24538276
CC
5532CC=$ac_cv_prog_CC
5533if test -n "$CC"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5535$as_echo "$CC" >&6; }
81ecdfbb 5536else
24538276
CC
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538$as_echo "no" >&6; }
5539fi
bae7f79e 5540
bae7f79e 5541
24538276
CC
5542fi
5543if test -z "$ac_cv_prog_CC"; then
5544 ac_ct_CC=$CC
5545 # Extract the first word of "gcc", so it can be a program name with args.
5546set dummy gcc; ac_word=$2
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5549if ${ac_cv_prog_ac_ct_CC+:} false; then :
24538276 5550 $as_echo_n "(cached) " >&6
81ecdfbb 5551else
24538276
CC
5552 if test -n "$ac_ct_CC"; then
5553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
81ecdfbb 5554else
24538276
CC
5555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556for as_dir in $PATH
5557do
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
5562 ac_cv_prog_ac_ct_CC="gcc"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 break 2
5565 fi
5566done
5567 done
5568IFS=$as_save_IFS
bae7f79e 5569
81ecdfbb 5570fi
81ecdfbb 5571fi
24538276
CC
5572ac_ct_CC=$ac_cv_prog_ac_ct_CC
5573if test -n "$ac_ct_CC"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5575$as_echo "$ac_ct_CC" >&6; }
5576else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578$as_echo "no" >&6; }
81ecdfbb 5579fi
24538276
CC
5580
5581 if test "x$ac_ct_CC" = x; then
5582 CC=""
81ecdfbb 5583 else
24538276
CC
5584 case $cross_compiling:$ac_tool_warned in
5585yes:)
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;}
5588ac_tool_warned=yes ;;
5589esac
5590 CC=$ac_ct_CC
81ecdfbb
RW
5591 fi
5592else
24538276 5593 CC="$ac_cv_prog_CC"
81ecdfbb 5594fi
bae7f79e 5595
24538276
CC
5596if test -z "$CC"; then
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5599set dummy ${ac_tool_prefix}cc; ac_word=$2
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5602if ${ac_cv_prog_CC+:} false; then :
81ecdfbb
RW
5603 $as_echo_n "(cached) " >&6
5604else
24538276
CC
5605 if test -n "$CC"; then
5606 ac_cv_prog_CC="$CC" # Let the user override the test.
5607else
5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH
5610do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
5615 ac_cv_prog_CC="${ac_tool_prefix}cc"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
81ecdfbb 5618 fi
24538276 5619done
81ecdfbb 5620 done
24538276 5621IFS=$as_save_IFS
9201d894 5622
24538276
CC
5623fi
5624fi
5625CC=$ac_cv_prog_CC
5626if test -n "$CC"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5628$as_echo "$CC" >&6; }
81ecdfbb 5629else
24538276
CC
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631$as_echo "no" >&6; }
81ecdfbb 5632fi
9201d894 5633
24538276
CC
5634
5635 fi
81ecdfbb 5636fi
24538276
CC
5637if test -z "$CC"; then
5638 # Extract the first word of "cc", so it can be a program name with args.
5639set dummy cc; ac_word=$2
5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5642if ${ac_cv_prog_CC+:} false; then :
24538276
CC
5643 $as_echo_n "(cached) " >&6
5644else
5645 if test -n "$CC"; then
5646 ac_cv_prog_CC="$CC" # Let the user override the test.
5647else
5648 ac_prog_rejected=no
5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
5656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5657 ac_prog_rejected=yes
5658 continue
5659 fi
5660 ac_cv_prog_CC="cc"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664done
5665 done
5666IFS=$as_save_IFS
9201d894 5667
24538276
CC
5668if test $ac_prog_rejected = yes; then
5669 # We found a bogon in the path, so make sure we never use it.
5670 set dummy $ac_cv_prog_CC
5671 shift
5672 if test $# != 0; then
5673 # We chose a different compiler from the bogus one.
5674 # However, it has the same basename, so the bogon will be chosen
5675 # first if we set CC to just the basename; use the full file name.
5676 shift
5677 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5678 fi
5679fi
5680fi
5681fi
5682CC=$ac_cv_prog_CC
5683if test -n "$CC"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5685$as_echo "$CC" >&6; }
81ecdfbb 5686else
24538276
CC
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688$as_echo "no" >&6; }
81ecdfbb 5689fi
9201d894 5690
9201d894 5691
24538276
CC
5692fi
5693if test -z "$CC"; then
5694 if test -n "$ac_tool_prefix"; then
5695 for ac_prog in cl.exe
5696 do
5697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5698set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5701if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 5702 $as_echo_n "(cached) " >&6
9201d894 5703else
24538276
CC
5704 if test -n "$CC"; then
5705 ac_cv_prog_CC="$CC" # Let the user override the test.
81ecdfbb
RW
5706else
5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276 5714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb
RW
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5717 fi
5718done
5719 done
5720IFS=$as_save_IFS
9201d894 5721
9201d894 5722fi
9201d894 5723fi
24538276
CC
5724CC=$ac_cv_prog_CC
5725if test -n "$CC"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5727$as_echo "$CC" >&6; }
81ecdfbb
RW
5728else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730$as_echo "no" >&6; }
9201d894 5731fi
9201d894 5732
2f35ab9b 5733
24538276
CC
5734 test -n "$CC" && break
5735 done
5736fi
5737if test -z "$CC"; then
5738 ac_ct_CC=$CC
5739 for ac_prog in cl.exe
5740do
5741 # Extract the first word of "$ac_prog", so it can be a program name with args.
5742set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5745if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb
RW
5746 $as_echo_n "(cached) " >&6
5747else
24538276
CC
5748 if test -n "$ac_ct_CC"; then
5749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
81ecdfbb
RW
5750else
5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752for as_dir in $PATH
82dcae9d 5753do
81ecdfbb
RW
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276 5758 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb
RW
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762done
5763 done
5764IFS=$as_save_IFS
82dcae9d 5765
81ecdfbb
RW
5766fi
5767fi
24538276
CC
5768ac_ct_CC=$ac_cv_prog_ac_ct_CC
5769if test -n "$ac_ct_CC"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5771$as_echo "$ac_ct_CC" >&6; }
81ecdfbb
RW
5772else
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774$as_echo "no" >&6; }
5775fi
82dcae9d 5776
82dcae9d 5777
24538276
CC
5778 test -n "$ac_ct_CC" && break
5779done
5780
5781 if test "x$ac_ct_CC" = x; then
5782 CC=""
5783 else
5784 case $cross_compiling:$ac_tool_warned in
5785yes:)
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5788ac_tool_warned=yes ;;
5789esac
5790 CC=$ac_ct_CC
5791 fi
5792fi
5793
5794fi
5795
5796
5797test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5799as_fn_error $? "no acceptable C compiler found in \$PATH
5800See \`config.log' for more details" "$LINENO" 5; }
24538276
CC
5801
5802# Provide some information about the compiler.
5803$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5804set X $ac_compile
5805ac_compiler=$2
5806for ac_option in --version -v -V -qversion; do
5807 { { ac_try="$ac_compiler $ac_option >&5"
5808case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811esac
5812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5813$as_echo "$ac_try_echo"; } >&5
5814 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5815 ac_status=$?
5816 if test -s conftest.err; then
5817 sed '10a\
5818... rest of stderr output deleted ...
5819 10q' conftest.err >conftest.er1
5820 cat conftest.er1 >&5
24538276 5821 fi
d0ac1c44 5822 rm -f conftest.er1 conftest.err
24538276
CC
5823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5824 test $ac_status = 0; }
5825done
5826
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5828$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 5829if ${ac_cv_c_compiler_gnu+:} false; then :
24538276
CC
5830 $as_echo_n "(cached) " >&6
5831else
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h. */
5834
5835int
5836main ()
5837{
5838#ifndef __GNUC__
5839 choke me
5840#endif
5841
5842 ;
5843 return 0;
5844}
5845_ACEOF
5846if ac_fn_c_try_compile "$LINENO"; then :
5847 ac_compiler_gnu=yes
5848else
5849 ac_compiler_gnu=no
5850fi
5851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852ac_cv_c_compiler_gnu=$ac_compiler_gnu
5853
5854fi
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5856$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5857if test $ac_compiler_gnu = yes; then
5858 GCC=yes
5859else
5860 GCC=
5861fi
5862ac_test_CFLAGS=${CFLAGS+set}
5863ac_save_CFLAGS=$CFLAGS
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5865$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 5866if ${ac_cv_prog_cc_g+:} false; then :
24538276
CC
5867 $as_echo_n "(cached) " >&6
5868else
5869 ac_save_c_werror_flag=$ac_c_werror_flag
5870 ac_c_werror_flag=yes
5871 ac_cv_prog_cc_g=no
5872 CFLAGS="-g"
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874/* end confdefs.h. */
5875
5876int
5877main ()
5878{
5879
5880 ;
5881 return 0;
5882}
5883_ACEOF
5884if ac_fn_c_try_compile "$LINENO"; then :
5885 ac_cv_prog_cc_g=yes
5886else
5887 CFLAGS=""
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889/* end confdefs.h. */
5890
5891int
5892main ()
5893{
5894
5895 ;
5896 return 0;
5897}
5898_ACEOF
5899if ac_fn_c_try_compile "$LINENO"; then :
5900
5901else
5902 ac_c_werror_flag=$ac_save_c_werror_flag
5903 CFLAGS="-g"
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h. */
5906
5907int
5908main ()
5909{
5910
5911 ;
5912 return 0;
5913}
5914_ACEOF
5915if ac_fn_c_try_compile "$LINENO"; then :
5916 ac_cv_prog_cc_g=yes
5917fi
5918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919fi
5920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921fi
5922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923 ac_c_werror_flag=$ac_save_c_werror_flag
5924fi
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5926$as_echo "$ac_cv_prog_cc_g" >&6; }
5927if test "$ac_test_CFLAGS" = set; then
5928 CFLAGS=$ac_save_CFLAGS
5929elif test $ac_cv_prog_cc_g = yes; then
5930 if test "$GCC" = yes; then
5931 CFLAGS="-g -O2"
5932 else
5933 CFLAGS="-g"
5934 fi
5935else
5936 if test "$GCC" = yes; then
5937 CFLAGS="-O2"
5938 else
5939 CFLAGS=
5940 fi
5941fi
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5943$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 5944if ${ac_cv_prog_cc_c89+:} false; then :
24538276
CC
5945 $as_echo_n "(cached) " >&6
5946else
5947 ac_cv_prog_cc_c89=no
5948ac_save_CC=$CC
5949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h. */
5951#include <stdarg.h>
5952#include <stdio.h>
d0ac1c44 5953struct stat;
24538276
CC
5954/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5955struct buf { int x; };
5956FILE * (*rcsopen) (struct buf *, struct stat *, int);
5957static char *e (p, i)
5958 char **p;
5959 int i;
5960{
5961 return p[i];
5962}
5963static char *f (char * (*g) (char **, int), char **p, ...)
5964{
5965 char *s;
5966 va_list v;
5967 va_start (v,p);
5968 s = g (p, va_arg (v,int));
5969 va_end (v);
5970 return s;
5971}
5972
5973/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5974 function prototypes and stuff, but not '\xHH' hex character constants.
5975 These don't provoke an error unfortunately, instead are silently treated
5976 as 'x'. The following induces an error, until -std is added to get
5977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5978 array size at least. It's necessary to write '\x00'==0 to get something
5979 that's true only with -std. */
5980int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5981
5982/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5983 inside strings and character constants. */
5984#define FOO(x) 'x'
5985int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5986
5987int test (int i, double x);
5988struct s1 {int (*f) (int a);};
5989struct s2 {int (*f) (double a);};
5990int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5991int argc;
5992char **argv;
5993int
5994main ()
5995{
5996return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5997 ;
5998 return 0;
5999}
6000_ACEOF
6001for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
81ecdfbb 6003do
24538276
CC
6004 CC="$ac_save_CC $ac_arg"
6005 if ac_fn_c_try_compile "$LINENO"; then :
6006 ac_cv_prog_cc_c89=$ac_arg
6007fi
6008rm -f core conftest.err conftest.$ac_objext
6009 test "x$ac_cv_prog_cc_c89" != "xno" && break
81ecdfbb 6010done
24538276
CC
6011rm -f conftest.$ac_ext
6012CC=$ac_save_CC
82dcae9d 6013
82dcae9d 6014fi
24538276
CC
6015# AC_CACHE_VAL
6016case "x$ac_cv_prog_cc_c89" in
6017 x)
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6019$as_echo "none needed" >&6; } ;;
6020 xno)
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6022$as_echo "unsupported" >&6; } ;;
6023 *)
6024 CC="$CC $ac_cv_prog_cc_c89"
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6026$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
82dcae9d 6027esac
24538276 6028if test "x$ac_cv_prog_cc_c89" != xno; then :
81ecdfbb 6029
82dcae9d 6030fi
82dcae9d 6031
9a0910c3
ILT
6032ac_ext=c
6033ac_cpp='$CPP $CPPFLAGS'
6034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6036ac_compiler_gnu=$ac_cv_c_compiler_gnu
9a0910c3 6037
d0ac1c44
SM
6038ac_ext=c
6039ac_cpp='$CPP $CPPFLAGS'
6040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6042ac_compiler_gnu=$ac_cv_c_compiler_gnu
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6044$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6045if ${am_cv_prog_cc_c_o+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047else
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049/* end confdefs.h. */
6050
6051int
6052main ()
6053{
6054
6055 ;
6056 return 0;
6057}
6058_ACEOF
6059 # Make sure it works both with $CC and with simple cc.
6060 # Following AC_PROG_CC_C_O, we do the test twice because some
6061 # compilers refuse to overwrite an existing .o file with -o,
6062 # though they will create one.
6063 am_cv_prog_cc_c_o=yes
6064 for am_i in 1 2; do
6065 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6066 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } \
6070 && test -f conftest2.$ac_objext; then
6071 : OK
6072 else
6073 am_cv_prog_cc_c_o=no
6074 break
6075 fi
6076 done
6077 rm -f core conftest*
6078 unset am_i
6079fi
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6081$as_echo "$am_cv_prog_cc_c_o" >&6; }
6082if test "$am_cv_prog_cc_c_o" != yes; then
6083 # Losing compiler, so override with the script.
6084 # FIXME: It is wrong to rewrite CC.
6085 # But if we don't then we get into trouble of one sort or another.
6086 # A longer-term fix would be to have automake use am__CC in this case,
6087 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6088 CC="$am_aux_dir/compile $CC"
6089fi
6090ac_ext=c
6091ac_cpp='$CPP $CPPFLAGS'
6092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6094ac_compiler_gnu=$ac_cv_c_compiler_gnu
6095
6096
24538276 6097depcc="$CC" am_compiler_list=
9a0910c3 6098
24538276
CC
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6100$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 6101if ${am_cv_CC_dependencies_compiler_type+:} false; then :
24538276 6102 $as_echo_n "(cached) " >&6
9a0910c3 6103else
24538276
CC
6104 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6105 # We make a subdir and do the tests there. Otherwise we can end up
6106 # making bogus files that we don't know about and never remove. For
6107 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
6108 # making a dummy file named 'D' -- because '-MD' means "put the output
6109 # in D".
24538276
CC
6110 rm -rf conftest.dir
6111 mkdir conftest.dir
6112 # Copy depcomp to subdir because otherwise we won't find it if we're
6113 # using a relative directory.
6114 cp "$am_depcomp" conftest.dir
6115 cd conftest.dir
6116 # We will build objects and dependencies in a subdirectory because
6117 # it helps to detect inapplicable dependency modes. For instance
6118 # both Tru64's cc and ICC support -MD to output dependencies as a
6119 # side effect of compilation, but ICC will put the dependencies in
6120 # the current directory while Tru64 will put them in the object
6121 # directory.
6122 mkdir sub
9a0910c3 6123
24538276
CC
6124 am_cv_CC_dependencies_compiler_type=none
6125 if test "$am_compiler_list" = ""; then
6126 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6127 fi
6128 am__universal=false
6129 case " $depcc " in #(
6130 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6131 esac
9a0910c3 6132
24538276
CC
6133 for depmode in $am_compiler_list; do
6134 # Setup a source with many dependencies, because some compilers
6135 # like to wrap large dependency lists on column 80 (with \), and
6136 # we should not choose a depcomp mode which is confused by this.
6137 #
6138 # We need to recreate these files for each test, as the compiler may
6139 # overwrite some of them when testing with obscure command lines.
6140 # This happens at least with the AIX C compiler.
6141 : > sub/conftest.c
6142 for i in 1 2 3 4 5 6; do
6143 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
6144 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6145 # Solaris 10 /bin/sh.
6146 echo '/* dummy */' > sub/conftst$i.h
9a0910c3 6147 done
24538276 6148 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9a0910c3 6149
d0ac1c44 6150 # We check with '-c' and '-o' for the sake of the "dashmstdout"
24538276 6151 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
6152 # handle '-M -o', and we need to detect this. Also, some Intel
6153 # versions had trouble with output in subdirs.
24538276
CC
6154 am__obj=sub/conftest.${OBJEXT-o}
6155 am__minus_obj="-o $am__obj"
6156 case $depmode in
6157 gcc)
6158 # This depmode causes a compiler race in universal mode.
6159 test "$am__universal" = false || continue
6160 ;;
6161 nosideeffect)
d0ac1c44
SM
6162 # After this tag, mechanisms are not by side-effect, so they'll
6163 # only be used when explicitly requested.
24538276
CC
6164 if test "x$enable_dependency_tracking" = xyes; then
6165 continue
6166 else
6167 break
6168 fi
6169 ;;
6170 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 6171 # This compiler won't grok '-c -o', but also, the minuso test has
24538276
CC
6172 # not run yet. These depmodes are late enough in the game, and
6173 # so weak that their functioning should not be impacted.
6174 am__obj=conftest.${OBJEXT-o}
6175 am__minus_obj=
6176 ;;
6177 none) break ;;
6178 esac
6179 if depmode=$depmode \
6180 source=sub/conftest.c object=$am__obj \
6181 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6182 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6183 >/dev/null 2>conftest.err &&
6184 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6185 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6186 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6187 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6188 # icc doesn't choke on unknown options, it will just issue warnings
6189 # or remarks (even with -Werror). So we grep stderr for any message
6190 # that says an option was ignored or not supported.
6191 # When given -MP, icc 7.0 and 7.1 complain thusly:
6192 # icc: Command line warning: ignoring option '-M'; no argument required
6193 # The diagnosis changed in icc 8.0:
6194 # icc: Command line remark: option '-MP' not supported
6195 if (grep 'ignoring option' conftest.err ||
6196 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6197 am_cv_CC_dependencies_compiler_type=$depmode
6198 break
6199 fi
6200 fi
6201 done
9a0910c3 6202
24538276
CC
6203 cd ..
6204 rm -rf conftest.dir
81ecdfbb 6205else
24538276 6206 am_cv_CC_dependencies_compiler_type=none
9a0910c3 6207fi
9a0910c3 6208
9a0910c3 6209fi
24538276
CC
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6211$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6212CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
81ecdfbb 6213
24538276
CC
6214 if
6215 test "x$enable_dependency_tracking" != xno \
6216 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6217 am__fastdepCC_TRUE=
6218 am__fastdepCC_FALSE='#'
9a0910c3 6219else
24538276
CC
6220 am__fastdepCC_TRUE='#'
6221 am__fastdepCC_FALSE=
9a0910c3
ILT
6222fi
6223
9a0910c3 6224
24538276
CC
6225ac_ext=cpp
6226ac_cpp='$CXXCPP $CPPFLAGS'
6227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6230if test -z "$CXX"; then
6231 if test -n "$CCC"; then
6232 CXX=$CCC
6233 else
6234 if test -n "$ac_tool_prefix"; then
6235 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6236 do
6237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6238set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6241if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb
RW
6242 $as_echo_n "(cached) " >&6
6243else
24538276
CC
6244 if test -n "$CXX"; then
6245 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6246else
6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
81ecdfbb
RW
6249do
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
81ecdfbb 6252 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
6254 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 break 2
6257 fi
6258done
81ecdfbb
RW
6259 done
6260IFS=$as_save_IFS
81ecdfbb
RW
6261
6262fi
24538276
CC
6263fi
6264CXX=$ac_cv_prog_CXX
6265if test -n "$CXX"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6267$as_echo "$CXX" >&6; }
6268else
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270$as_echo "no" >&6; }
6271fi
81ecdfbb
RW
6272
6273
24538276
CC
6274 test -n "$CXX" && break
6275 done
6276fi
6277if test -z "$CXX"; then
6278 ac_ct_CXX=$CXX
6279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6280do
6281 # Extract the first word of "$ac_prog", so it can be a program name with args.
6282set dummy $ac_prog; ac_word=$2
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6285if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 6286 $as_echo_n "(cached) " >&6
9a0910c3 6287else
24538276
CC
6288 if test -n "$ac_ct_CXX"; then
6289 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6290else
6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292for as_dir in $PATH
81ecdfbb
RW
6293do
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
81ecdfbb 6296 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
6298 ac_cv_prog_ac_ct_CXX="$ac_prog"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 break 2
6301 fi
6302done
81ecdfbb
RW
6303 done
6304IFS=$as_save_IFS
24538276
CC
6305
6306fi
6307fi
6308ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6309if test -n "$ac_ct_CXX"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6311$as_echo "$ac_ct_CXX" >&6; }
81ecdfbb 6312else
24538276
CC
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314$as_echo "no" >&6; }
6315fi
6316
6317
6318 test -n "$ac_ct_CXX" && break
6319done
6320
6321 if test "x$ac_ct_CXX" = x; then
6322 CXX="g++"
6323 else
6324 case $cross_compiling:$ac_tool_warned in
6325yes:)
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328ac_tool_warned=yes ;;
6329esac
6330 CXX=$ac_ct_CXX
6331 fi
81ecdfbb
RW
6332fi
6333
24538276 6334 fi
9a0910c3 6335fi
24538276
CC
6336# Provide some information about the compiler.
6337$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6338set X $ac_compile
6339ac_compiler=$2
6340for ac_option in --version -v -V -qversion; do
6341 { { ac_try="$ac_compiler $ac_option >&5"
6342case "(($ac_try" in
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6345esac
6346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6347$as_echo "$ac_try_echo"; } >&5
6348 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6349 ac_status=$?
6350 if test -s conftest.err; then
6351 sed '10a\
6352... rest of stderr output deleted ...
6353 10q' conftest.err >conftest.er1
6354 cat conftest.er1 >&5
24538276 6355 fi
d0ac1c44 6356 rm -f conftest.er1 conftest.err
24538276
CC
6357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6358 test $ac_status = 0; }
6359done
9a0910c3 6360
24538276
CC
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6362$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 6363if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 6364 $as_echo_n "(cached) " >&6
9a0910c3 6365else
81ecdfbb 6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3 6367/* end confdefs.h. */
9a0910c3
ILT
6368
6369int
6370main ()
6371{
24538276
CC
6372#ifndef __GNUC__
6373 choke me
6374#endif
9a0910c3
ILT
6375
6376 ;
6377 return 0;
6378}
6379_ACEOF
24538276
CC
6380if ac_fn_cxx_try_compile "$LINENO"; then :
6381 ac_compiler_gnu=yes
9a0910c3 6382else
24538276 6383 ac_compiler_gnu=no
9a0910c3 6384fi
81ecdfbb 6385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24538276 6386ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9a0910c3 6387
24538276
CC
6388fi
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6390$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6391if test $ac_compiler_gnu = yes; then
6392 GXX=yes
6393else
6394 GXX=
6395fi
6396ac_test_CXXFLAGS=${CXXFLAGS+set}
6397ac_save_CXXFLAGS=$CXXFLAGS
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6399$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 6400if ${ac_cv_prog_cxx_g+:} false; then :
24538276
CC
6401 $as_echo_n "(cached) " >&6
6402else
6403 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6404 ac_cxx_werror_flag=yes
6405 ac_cv_prog_cxx_g=no
6406 CXXFLAGS="-g"
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3 6408/* end confdefs.h. */
9a0910c3 6409
24538276
CC
6410int
6411main ()
6412{
81ecdfbb 6413
24538276
CC
6414 ;
6415 return 0;
6416}
6417_ACEOF
6418if ac_fn_cxx_try_compile "$LINENO"; then :
6419 ac_cv_prog_cxx_g=yes
9a0910c3 6420else
24538276
CC
6421 CXXFLAGS=""
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423/* end confdefs.h. */
9a0910c3 6424
24538276
CC
6425int
6426main ()
6427{
9a0910c3 6428
24538276
CC
6429 ;
6430 return 0;
6431}
6432_ACEOF
6433if ac_fn_cxx_try_compile "$LINENO"; then :
6434
6435else
6436 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6437 CXXFLAGS="-g"
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3 6439/* end confdefs.h. */
9a0910c3 6440
24538276
CC
6441int
6442main ()
6443{
6444
6445 ;
6446 return 0;
6447}
9a0910c3 6448_ACEOF
24538276
CC
6449if ac_fn_cxx_try_compile "$LINENO"; then :
6450 ac_cv_prog_cxx_g=yes
6451fi
6452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453fi
6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455fi
6456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6458fi
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6460$as_echo "$ac_cv_prog_cxx_g" >&6; }
6461if test "$ac_test_CXXFLAGS" = set; then
6462 CXXFLAGS=$ac_save_CXXFLAGS
6463elif test $ac_cv_prog_cxx_g = yes; then
6464 if test "$GXX" = yes; then
6465 CXXFLAGS="-g -O2"
6466 else
6467 CXXFLAGS="-g"
6468 fi
6469else
6470 if test "$GXX" = yes; then
6471 CXXFLAGS="-O2"
6472 else
6473 CXXFLAGS=
6474 fi
6475fi
6476ac_ext=c
6477ac_cpp='$CPP $CPPFLAGS'
6478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480ac_compiler_gnu=$ac_cv_c_compiler_gnu
6481
6482depcc="$CXX" am_compiler_list=
6483
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6485$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 6486if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
24538276
CC
6487 $as_echo_n "(cached) " >&6
6488else
6489 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6490 # We make a subdir and do the tests there. Otherwise we can end up
6491 # making bogus files that we don't know about and never remove. For
6492 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
6493 # making a dummy file named 'D' -- because '-MD' means "put the output
6494 # in D".
24538276
CC
6495 rm -rf conftest.dir
6496 mkdir conftest.dir
6497 # Copy depcomp to subdir because otherwise we won't find it if we're
6498 # using a relative directory.
6499 cp "$am_depcomp" conftest.dir
6500 cd conftest.dir
6501 # We will build objects and dependencies in a subdirectory because
6502 # it helps to detect inapplicable dependency modes. For instance
6503 # both Tru64's cc and ICC support -MD to output dependencies as a
6504 # side effect of compilation, but ICC will put the dependencies in
6505 # the current directory while Tru64 will put them in the object
6506 # directory.
6507 mkdir sub
6508
6509 am_cv_CXX_dependencies_compiler_type=none
6510 if test "$am_compiler_list" = ""; then
6511 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6512 fi
6513 am__universal=false
6514 case " $depcc " in #(
6515 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6516 esac
6517
6518 for depmode in $am_compiler_list; do
6519 # Setup a source with many dependencies, because some compilers
6520 # like to wrap large dependency lists on column 80 (with \), and
6521 # we should not choose a depcomp mode which is confused by this.
6522 #
6523 # We need to recreate these files for each test, as the compiler may
6524 # overwrite some of them when testing with obscure command lines.
6525 # This happens at least with the AIX C compiler.
6526 : > sub/conftest.c
6527 for i in 1 2 3 4 5 6; do
6528 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
6529 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6530 # Solaris 10 /bin/sh.
6531 echo '/* dummy */' > sub/conftst$i.h
24538276
CC
6532 done
6533 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6534
d0ac1c44 6535 # We check with '-c' and '-o' for the sake of the "dashmstdout"
24538276 6536 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
6537 # handle '-M -o', and we need to detect this. Also, some Intel
6538 # versions had trouble with output in subdirs.
24538276
CC
6539 am__obj=sub/conftest.${OBJEXT-o}
6540 am__minus_obj="-o $am__obj"
6541 case $depmode in
6542 gcc)
6543 # This depmode causes a compiler race in universal mode.
6544 test "$am__universal" = false || continue
6545 ;;
6546 nosideeffect)
d0ac1c44
SM
6547 # After this tag, mechanisms are not by side-effect, so they'll
6548 # only be used when explicitly requested.
24538276
CC
6549 if test "x$enable_dependency_tracking" = xyes; then
6550 continue
6551 else
6552 break
6553 fi
6554 ;;
6555 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 6556 # This compiler won't grok '-c -o', but also, the minuso test has
24538276
CC
6557 # not run yet. These depmodes are late enough in the game, and
6558 # so weak that their functioning should not be impacted.
6559 am__obj=conftest.${OBJEXT-o}
6560 am__minus_obj=
6561 ;;
6562 none) break ;;
6563 esac
6564 if depmode=$depmode \
6565 source=sub/conftest.c object=$am__obj \
6566 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6567 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6568 >/dev/null 2>conftest.err &&
6569 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6570 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6571 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6572 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6573 # icc doesn't choke on unknown options, it will just issue warnings
6574 # or remarks (even with -Werror). So we grep stderr for any message
6575 # that says an option was ignored or not supported.
6576 # When given -MP, icc 7.0 and 7.1 complain thusly:
6577 # icc: Command line warning: ignoring option '-M'; no argument required
6578 # The diagnosis changed in icc 8.0:
6579 # icc: Command line remark: option '-MP' not supported
6580 if (grep 'ignoring option' conftest.err ||
6581 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6582 am_cv_CXX_dependencies_compiler_type=$depmode
6583 break
6584 fi
6585 fi
6586 done
81ecdfbb 6587
24538276
CC
6588 cd ..
6589 rm -rf conftest.dir
9a0910c3 6590else
24538276 6591 am_cv_CXX_dependencies_compiler_type=none
9a0910c3 6592fi
9a0910c3
ILT
6593
6594fi
24538276
CC
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6596$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6597CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9a0910c3 6598
24538276
CC
6599 if
6600 test "x$enable_dependency_tracking" != xno \
6601 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6602 am__fastdepCXX_TRUE=
6603 am__fastdepCXX_FALSE='#'
9a0910c3 6604else
24538276
CC
6605 am__fastdepCXX_TRUE='#'
6606 am__fastdepCXX_FALSE=
6607fi
9a0910c3 6608
9a0910c3 6609
24538276
CC
6610for ac_prog in 'bison -y' byacc
6611do
6612 # Extract the first word of "$ac_prog", so it can be a program name with args.
6613set dummy $ac_prog; ac_word=$2
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6616if ${ac_cv_prog_YACC+:} false; then :
24538276 6617 $as_echo_n "(cached) " >&6
81ecdfbb 6618else
24538276
CC
6619 if test -n "$YACC"; then
6620 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6621else
6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623for as_dir in $PATH
6624do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
6629 ac_cv_prog_YACC="$ac_prog"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633done
6634 done
6635IFS=$as_save_IFS
81ecdfbb 6636
9a0910c3
ILT
6637fi
6638fi
24538276
CC
6639YACC=$ac_cv_prog_YACC
6640if test -n "$YACC"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6642$as_echo "$YACC" >&6; }
6643else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645$as_echo "no" >&6; }
9a0910c3
ILT
6646fi
6647
9a0910c3 6648
24538276 6649 test -n "$YACC" && break
81ecdfbb 6650done
24538276 6651test -n "$YACC" || YACC="yacc"
9a0910c3 6652
24538276
CC
6653if test -n "$ac_tool_prefix"; then
6654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6655set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6658if ${ac_cv_prog_RANLIB+:} false; then :
24538276
CC
6659 $as_echo_n "(cached) " >&6
6660else
6661 if test -n "$RANLIB"; then
6662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6663else
6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665for as_dir in $PATH
6666do
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
6671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 break 2
6674 fi
6675done
6676 done
6677IFS=$as_save_IFS
9a0910c3 6678
24538276
CC
6679fi
6680fi
6681RANLIB=$ac_cv_prog_RANLIB
6682if test -n "$RANLIB"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6684$as_echo "$RANLIB" >&6; }
81ecdfbb 6685else
24538276
CC
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687$as_echo "no" >&6; }
81ecdfbb 6688fi
9a0910c3
ILT
6689
6690
24538276
CC
6691fi
6692if test -z "$ac_cv_prog_RANLIB"; then
6693 ac_ct_RANLIB=$RANLIB
6694 # Extract the first word of "ranlib", so it can be a program name with args.
6695set dummy ranlib; ac_word=$2
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6698if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 6699 $as_echo_n "(cached) " >&6
9a0910c3 6700else
24538276
CC
6701 if test -n "$ac_ct_RANLIB"; then
6702 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9a0910c3 6703else
24538276
CC
6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
6711 ac_cv_prog_ac_ct_RANLIB="ranlib"
6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6714 fi
6715done
6716 done
6717IFS=$as_save_IFS
6718
9a0910c3 6719fi
81ecdfbb 6720fi
24538276
CC
6721ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6722if test -n "$ac_ct_RANLIB"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6724$as_echo "$ac_ct_RANLIB" >&6; }
6725else
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727$as_echo "no" >&6; }
6728fi
81ecdfbb 6729
24538276
CC
6730 if test "x$ac_ct_RANLIB" = x; then
6731 RANLIB=":"
6732 else
6733 case $cross_compiling:$ac_tool_warned in
6734yes:)
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6737ac_tool_warned=yes ;;
6738esac
6739 RANLIB=$ac_ct_RANLIB
6740 fi
6741else
6742 RANLIB="$ac_cv_prog_RANLIB"
6743fi
9a0910c3 6744
81ecdfbb 6745
24538276
CC
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6747$as_echo_n "checking whether ln -s works... " >&6; }
6748LN_S=$as_ln_s
6749if test "$LN_S" = "ln -s"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6751$as_echo "yes" >&6; }
6752else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6754$as_echo "no, using $LN_S" >&6; }
6755fi
81ecdfbb
RW
6756
6757
6758
6759
6760# If we haven't got the data from the intl directory,
6761# assume NLS is disabled.
6762USE_NLS=no
6763LIBINTL=
6764LIBINTL_DEP=
6765INCINTL=
6766XGETTEXT=
6767GMSGFMT=
6768POSUB=
6769
6770if test -f ../intl/config.intl; then
6771 . ../intl/config.intl
9a0910c3 6772fi
81ecdfbb
RW
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6774$as_echo_n "checking whether NLS is requested... " >&6; }
6775if test x"$USE_NLS" != xyes; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777$as_echo "no" >&6; }
6778else
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6780$as_echo "yes" >&6; }
6781
6782$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6783
6784
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6786$as_echo_n "checking for catalogs to be installed... " >&6; }
6787 # Look for .po and .gmo files in the source directory.
6788 CATALOGS=
6789 XLINGUAS=
6790 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6791 # If there aren't any .gmo files the shell will give us the
6792 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6793 # weeded out.
6794 case "$cat" in *\**)
6795 continue;;
6796 esac
6797 # The quadruple backslash is collapsed to a double backslash
6798 # by the backticks, then collapsed again by the double quotes,
6799 # leaving us with one backslash in the sed expression (right
6800 # before the dot that mustn't act as a wildcard).
6801 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6802 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6803 # The user is allowed to set LINGUAS to a list of languages to
6804 # install catalogs for. If it's empty that means "all of them."
6805 if test "x$LINGUAS" = x; then
6806 CATALOGS="$CATALOGS $cat"
6807 XLINGUAS="$XLINGUAS $lang"
6808 else
6809 case "$LINGUAS" in *$lang*)
6810 CATALOGS="$CATALOGS $cat"
6811 XLINGUAS="$XLINGUAS $lang"
6812 ;;
6813 esac
6814 fi
9a0910c3 6815 done
81ecdfbb
RW
6816 LINGUAS="$XLINGUAS"
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6818$as_echo "$LINGUAS" >&6; }
6819
6820
6821 DATADIRNAME=share
6822
6823 INSTOBJEXT=.mo
6824
6825 GENCAT=gencat
6826
6827 CATOBJEXT=.gmo
9a0910c3 6828
9a0910c3 6829fi
9a0910c3 6830
81ecdfbb
RW
6831 MKINSTALLDIRS=
6832 if test -n "$ac_aux_dir"; then
6833 case "$ac_aux_dir" in
6834 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6835 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6836 esac
6837 fi
6838 if test -z "$MKINSTALLDIRS"; then
6839 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6840 fi
6841
6842
6843
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6845$as_echo_n "checking whether NLS is requested... " >&6; }
6846 # Check whether --enable-nls was given.
6847if test "${enable_nls+set}" = set; then :
6848 enableval=$enable_nls; USE_NLS=$enableval
6849else
6850 USE_NLS=yes
9a0910c3 6851fi
9a0910c3 6852
81ecdfbb
RW
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6854$as_echo "$USE_NLS" >&6; }
6855
6856
6857
6858
6859
6860
6861# Prepare PATH_SEPARATOR.
6862# The user is always right.
6863if test "${PATH_SEPARATOR+set}" != set; then
6864 echo "#! /bin/sh" >conf$$.sh
6865 echo "exit 0" >>conf$$.sh
6866 chmod +x conf$$.sh
6867 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6868 PATH_SEPARATOR=';'
9a0910c3 6869 else
81ecdfbb 6870 PATH_SEPARATOR=:
9a0910c3 6871 fi
81ecdfbb 6872 rm -f conf$$.sh
9a0910c3 6873fi
81ecdfbb
RW
6874
6875# Find out how to test for executable files. Don't use a zero-byte file,
6876# as systems may use methods other than mode bits to determine executability.
6877cat >conf$$.file <<_ASEOF
6878#! /bin/sh
6879exit 0
6880_ASEOF
6881chmod +x conf$$.file
6882if test -x conf$$.file >/dev/null 2>&1; then
6883 ac_executable_p="test -x"
9a0910c3 6884else
81ecdfbb
RW
6885 ac_executable_p="test -f"
6886fi
6887rm -f conf$$.file
9a0910c3 6888
81ecdfbb
RW
6889# Extract the first word of "msgfmt", so it can be a program name with args.
6890set dummy msgfmt; ac_word=$2
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6893if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb
RW
6894 $as_echo_n "(cached) " >&6
6895else
6896 case "$MSGFMT" in
6897 [\\/]* | ?:[\\/]*)
6898 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6899 ;;
6900 *)
6901 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6902 for ac_dir in $PATH; do
6903 IFS="$ac_save_IFS"
6904 test -z "$ac_dir" && ac_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6907 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6908 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6909 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6910 break 2
6911 fi
6912 fi
6913 done
6914 done
6915 IFS="$ac_save_IFS"
6916 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6917 ;;
6918esac
9a0910c3 6919fi
81ecdfbb
RW
6920MSGFMT="$ac_cv_path_MSGFMT"
6921if test "$MSGFMT" != ":"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6923$as_echo "$MSGFMT" >&6; }
6924else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926$as_echo "no" >&6; }
6927fi
6928
6929 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6930set dummy gmsgfmt; ac_word=$2
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6933if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb
RW
6934 $as_echo_n "(cached) " >&6
6935else
6936 case $GMSGFMT in
6937 [\\/]* | ?:[\\/]*)
6938 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6939 ;;
6940 *)
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
6948 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952done
6953 done
6954IFS=$as_save_IFS
9a0910c3 6955
81ecdfbb
RW
6956 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6957 ;;
9a0910c3 6958esac
81ecdfbb
RW
6959fi
6960GMSGFMT=$ac_cv_path_GMSGFMT
6961if test -n "$GMSGFMT"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6963$as_echo "$GMSGFMT" >&6; }
9a0910c3 6964else
81ecdfbb
RW
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966$as_echo "no" >&6; }
9a0910c3 6967fi
9a0910c3 6968
9a0910c3 6969
9a0910c3 6970
9a0910c3 6971
81ecdfbb
RW
6972# Prepare PATH_SEPARATOR.
6973# The user is always right.
6974if test "${PATH_SEPARATOR+set}" != set; then
6975 echo "#! /bin/sh" >conf$$.sh
6976 echo "exit 0" >>conf$$.sh
6977 chmod +x conf$$.sh
6978 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6979 PATH_SEPARATOR=';'
6980 else
6981 PATH_SEPARATOR=:
6982 fi
6983 rm -f conf$$.sh
9a0910c3
ILT
6984fi
6985
81ecdfbb
RW
6986# Find out how to test for executable files. Don't use a zero-byte file,
6987# as systems may use methods other than mode bits to determine executability.
6988cat >conf$$.file <<_ASEOF
6989#! /bin/sh
6990exit 0
6991_ASEOF
6992chmod +x conf$$.file
6993if test -x conf$$.file >/dev/null 2>&1; then
6994 ac_executable_p="test -x"
7fcd0256 6995else
81ecdfbb 6996 ac_executable_p="test -f"
7fcd0256 6997fi
81ecdfbb 6998rm -f conf$$.file
7fcd0256 6999
81ecdfbb
RW
7000# Extract the first word of "xgettext", so it can be a program name with args.
7001set dummy xgettext; ac_word=$2
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7004if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 7005 $as_echo_n "(cached) " >&6
54dc6425 7006else
81ecdfbb
RW
7007 case "$XGETTEXT" in
7008 [\\/]* | ?:[\\/]*)
7009 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7010 ;;
7011 *)
7012 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7013 for ac_dir in $PATH; do
7014 IFS="$ac_save_IFS"
7015 test -z "$ac_dir" && ac_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7018 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7019 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7020 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7021 break 2
7022 fi
7023 fi
7024 done
7025 done
7026 IFS="$ac_save_IFS"
7027 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7028 ;;
7029esac
54dc6425 7030fi
81ecdfbb
RW
7031XGETTEXT="$ac_cv_path_XGETTEXT"
7032if test "$XGETTEXT" != ":"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7034$as_echo "$XGETTEXT" >&6; }
7035else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037$as_echo "no" >&6; }
0639a6f6 7038fi
0639a6f6 7039
81ecdfbb 7040 rm -f messages.po
0639a6f6
ILT
7041
7042
81ecdfbb
RW
7043# Prepare PATH_SEPARATOR.
7044# The user is always right.
7045if test "${PATH_SEPARATOR+set}" != set; then
7046 echo "#! /bin/sh" >conf$$.sh
7047 echo "exit 0" >>conf$$.sh
7048 chmod +x conf$$.sh
7049 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7050 PATH_SEPARATOR=';'
7051 else
7052 PATH_SEPARATOR=:
7053 fi
7054 rm -f conf$$.sh
0639a6f6 7055fi
0639a6f6 7056
81ecdfbb
RW
7057# Find out how to test for executable files. Don't use a zero-byte file,
7058# as systems may use methods other than mode bits to determine executability.
7059cat >conf$$.file <<_ASEOF
7060#! /bin/sh
7061exit 0
7062_ASEOF
7063chmod +x conf$$.file
7064if test -x conf$$.file >/dev/null 2>&1; then
7065 ac_executable_p="test -x"
54dc6425 7066else
81ecdfbb 7067 ac_executable_p="test -f"
54dc6425 7068fi
81ecdfbb 7069rm -f conf$$.file
54dc6425 7070
81ecdfbb
RW
7071# Extract the first word of "msgmerge", so it can be a program name with args.
7072set dummy msgmerge; ac_word=$2
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7075if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 7076 $as_echo_n "(cached) " >&6
54dc6425 7077else
81ecdfbb
RW
7078 case "$MSGMERGE" in
7079 [\\/]* | ?:[\\/]*)
7080 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7081 ;;
7082 *)
7083 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7084 for ac_dir in $PATH; do
7085 IFS="$ac_save_IFS"
7086 test -z "$ac_dir" && ac_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7089 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7090 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7091 break 2
7092 fi
7093 fi
7094 done
7095 done
7096 IFS="$ac_save_IFS"
7097 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7098 ;;
7099esac
54dc6425 7100fi
81ecdfbb
RW
7101MSGMERGE="$ac_cv_path_MSGMERGE"
7102if test "$MSGMERGE" != ":"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7104$as_echo "$MSGMERGE" >&6; }
0639a6f6 7105else
81ecdfbb
RW
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107$as_echo "no" >&6; }
7108fi
0639a6f6 7109
54dc6425 7110
81ecdfbb
RW
7111 if test "$GMSGFMT" != ":"; then
7112 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7113 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7114 : ;
7115 else
7116 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7118$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7119 GMSGFMT=":"
7120 fi
7121 fi
54dc6425 7122
81ecdfbb
RW
7123 if test "$XGETTEXT" != ":"; then
7124 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7125 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7126 : ;
7127 else
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7129$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7130 XGETTEXT=":"
7131 fi
7132 rm -f messages.po
7133 fi
54dc6425 7134
81ecdfbb 7135 ac_config_commands="$ac_config_commands default-1"
54dc6425 7136
54dc6425
ILT
7137
7138
81ecdfbb
RW
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7140$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 7141if ${ac_cv_c_bigendian+:} false; then :
81ecdfbb 7142 $as_echo_n "(cached) " >&6
54dc6425 7143else
81ecdfbb
RW
7144 ac_cv_c_bigendian=unknown
7145 # See if we're dealing with a universal compiler.
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54dc6425 7147/* end confdefs.h. */
81ecdfbb
RW
7148#ifndef __APPLE_CC__
7149 not a universal capable compiler
7150 #endif
7151 typedef int dummy;
7152
7153_ACEOF
7154if ac_fn_c_try_compile "$LINENO"; then :
7155
7156 # Check for potential -arch flags. It is not universal unless
7157 # there are at least two -arch flags with different values.
7158 ac_arch=
7159 ac_prev=
7160 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7161 if test -n "$ac_prev"; then
7162 case $ac_word in
7163 i?86 | x86_64 | ppc | ppc64)
7164 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7165 ac_arch=$ac_word
7166 else
7167 ac_cv_c_bigendian=universal
7168 break
7169 fi
7170 ;;
7171 esac
7172 ac_prev=
7173 elif test "x$ac_word" = "x-arch"; then
7174 ac_prev=arch
7175 fi
7176 done
7177fi
7178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179 if test $ac_cv_c_bigendian = unknown; then
7180 # See if sys/param.h defines the BYTE_ORDER macro.
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182/* end confdefs.h. */
7183#include <sys/types.h>
7184 #include <sys/param.h>
7185
0639a6f6
ILT
7186int
7187main ()
7188{
81ecdfbb
RW
7189#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7190 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7191 && LITTLE_ENDIAN)
7192 bogus endian macros
7193 #endif
54dc6425 7194
81ecdfbb
RW
7195 ;
7196 return 0;
7197}
15d5fa16 7198_ACEOF
81ecdfbb
RW
7199if ac_fn_c_try_compile "$LINENO"; then :
7200 # It does; now see whether it defined to BIG_ENDIAN or not.
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15d5fa16 7202/* end confdefs.h. */
81ecdfbb
RW
7203#include <sys/types.h>
7204 #include <sys/param.h>
7205
0639a6f6
ILT
7206int
7207main ()
7208{
81ecdfbb
RW
7209#if BYTE_ORDER != BIG_ENDIAN
7210 not big endian
7211 #endif
0639a6f6
ILT
7212
7213 ;
7214 return 0;
7215}
15d5fa16 7216_ACEOF
81ecdfbb
RW
7217if ac_fn_c_try_compile "$LINENO"; then :
7218 ac_cv_c_bigendian=yes
15d5fa16 7219else
81ecdfbb 7220 ac_cv_c_bigendian=no
15d5fa16 7221fi
81ecdfbb 7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0639a6f6 7223fi
81ecdfbb
RW
7224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7225 fi
7226 if test $ac_cv_c_bigendian = unknown; then
7227 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229/* end confdefs.h. */
7230#include <limits.h>
0639a6f6 7231
81ecdfbb
RW
7232int
7233main ()
7234{
7235#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7236 bogus endian macros
7237 #endif
0639a6f6 7238
81ecdfbb
RW
7239 ;
7240 return 0;
7241}
15d5fa16 7242_ACEOF
81ecdfbb
RW
7243if ac_fn_c_try_compile "$LINENO"; then :
7244 # It does; now see whether it defined to _BIG_ENDIAN or not.
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15d5fa16 7246/* end confdefs.h. */
81ecdfbb
RW
7247#include <limits.h>
7248
0639a6f6
ILT
7249int
7250main ()
7251{
81ecdfbb
RW
7252#ifndef _BIG_ENDIAN
7253 not big endian
7254 #endif
0639a6f6
ILT
7255
7256 ;
7257 return 0;
7258}
15d5fa16 7259_ACEOF
81ecdfbb
RW
7260if ac_fn_c_try_compile "$LINENO"; then :
7261 ac_cv_c_bigendian=yes
15d5fa16 7262else
81ecdfbb 7263 ac_cv_c_bigendian=no
15d5fa16 7264fi
81ecdfbb 7265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15d5fa16 7266fi
81ecdfbb
RW
7267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268 fi
7269 if test $ac_cv_c_bigendian = unknown; then
7270 # Compile a test program.
7271 if test "$cross_compiling" = yes; then :
7272 # Try to guess by grepping values from an object file.
7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274/* end confdefs.h. */
7275short int ascii_mm[] =
7276 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7277 short int ascii_ii[] =
7278 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7279 int use_ascii (int i) {
7280 return ascii_mm[i] + ascii_ii[i];
7281 }
7282 short int ebcdic_ii[] =
7283 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7284 short int ebcdic_mm[] =
7285 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7286 int use_ebcdic (int i) {
7287 return ebcdic_mm[i] + ebcdic_ii[i];
7288 }
7289 extern int foo;
15d5fa16 7290
81ecdfbb
RW
7291int
7292main ()
7293{
7294return use_ascii (foo) == use_ebcdic (foo);
7295 ;
7296 return 0;
7297}
0639a6f6 7298_ACEOF
81ecdfbb
RW
7299if ac_fn_c_try_compile "$LINENO"; then :
7300 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7301 ac_cv_c_bigendian=yes
7302 fi
7303 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7304 if test "$ac_cv_c_bigendian" = unknown; then
7305 ac_cv_c_bigendian=no
7306 else
7307 # finding both strings is unlikely to happen, but who knows?
7308 ac_cv_c_bigendian=unknown
7309 fi
7310 fi
54dc6425 7311fi
81ecdfbb 7312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54dc6425 7313else
81ecdfbb 7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54dc6425
ILT
7315/* end confdefs.h. */
7316$ac_includes_default
0639a6f6
ILT
7317int
7318main ()
7319{
81ecdfbb
RW
7320
7321 /* Are we little or big endian? From Harbison&Steele. */
7322 union
7323 {
7324 long int l;
7325 char c[sizeof (long int)];
7326 } u;
7327 u.l = 1;
7328 return u.c[sizeof (long int) - 1] == 1;
0639a6f6
ILT
7329
7330 ;
7331 return 0;
7332}
54dc6425 7333_ACEOF
81ecdfbb
RW
7334if ac_fn_c_try_run "$LINENO"; then :
7335 ac_cv_c_bigendian=no
54dc6425 7336else
81ecdfbb 7337 ac_cv_c_bigendian=yes
54dc6425 7338fi
81ecdfbb
RW
7339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7340 conftest.$ac_objext conftest.beam conftest.$ac_ext
0639a6f6 7341fi
54dc6425 7342
81ecdfbb
RW
7343 fi
7344fi
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7346$as_echo "$ac_cv_c_bigendian" >&6; }
7347 case $ac_cv_c_bigendian in #(
7348 yes)
7349 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7350;; #(
7351 no)
7352 ;; #(
7353 universal)
7354
7355$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7356
7357 ;; #(
7358 *)
d0ac1c44 7359 as_fn_error $? "unknown endianness
81ecdfbb
RW
7360 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7361 esac
0639a6f6
ILT
7362
7363
0639a6f6
ILT
7364
7365
81ecdfbb
RW
7366 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
7367 NATIVE_LINKER_TRUE=
7368 NATIVE_LINKER_FALSE='#'
7369else
7370 NATIVE_LINKER_TRUE='#'
7371 NATIVE_LINKER_FALSE=
0639a6f6
ILT
7372fi
7373
81ecdfbb
RW
7374 if test "$GCC" = yes; then
7375 GCC_TRUE=
7376 GCC_FALSE='#'
7377else
7378 GCC_TRUE='#'
7379 GCC_FALSE=
7380fi
0639a6f6
ILT
7381
7382
eb373049
ILT
7383 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
7384 NATIVE_OR_CROSS_LINKER_TRUE=
7385 NATIVE_OR_CROSS_LINKER_FALSE='#'
7386else
7387 NATIVE_OR_CROSS_LINKER_TRUE='#'
7388 NATIVE_OR_CROSS_LINKER_FALSE=
7389fi
7390
7391
328c7c2f
ILT
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
7393$as_echo_n "checking whether static linking works... " >&6; }
d0ac1c44 7394if ${gold_cv_lib_static+:} false; then :
328c7c2f
ILT
7395 $as_echo_n "(cached) " >&6
7396else
7397 LDFLAGS_hold=$LDFLAGS
7398LDFLAGS="$LDFLAGS -static"
7399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400/* end confdefs.h. */
7401
7402void f() { }
7403int
7404main ()
7405{
7406
7407 ;
7408 return 0;
7409}
7410_ACEOF
7411if ac_fn_c_try_link "$LINENO"; then :
7412 gold_cv_lib_static=yes
7413else
7414 gold_cv_lib_static=no
7415fi
7416rm -f core conftest.err conftest.$ac_objext \
7417 conftest$ac_exeext conftest.$ac_ext
dd7af074 7418LDFLAGS=$LDFLAGS_hold
328c7c2f
ILT
7419fi
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
7421$as_echo "$gold_cv_lib_static" >&6; }
7422 if test "$gold_cv_lib_static" = "yes"; then
7423 HAVE_STATIC_TRUE=
7424 HAVE_STATIC_FALSE='#'
7425else
7426 HAVE_STATIC_TRUE='#'
7427 HAVE_STATIC_FALSE=
7428fi
7429
7430
81ecdfbb
RW
7431 if
7432 case $target_cpu in
864a1b56 7433 powerpc*) false;;
81ecdfbb
RW
7434 x86_64) false;;
7435 sparc64) false;;
e79a4bad 7436 s390x) false;;
81ecdfbb
RW
7437 *) true;;
7438 esac; then
7439 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
7440 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
7441else
7442 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
7443 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
7444fi
0639a6f6
ILT
7445
7446
084e2665
ILT
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
7448$as_echo_n "checking for gcc >= 4.1... " >&6; }
d0ac1c44 7449if ${gold_cv_prog_gcc41+:} false; then :
084e2665
ILT
7450 $as_echo_n "(cached) " >&6
7451else
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453/* end confdefs.h. */
7454
7455#if !defined __GNUC__
7456error
7457#elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
7458error
7459#endif
7460
7461_ACEOF
7462if ac_fn_c_try_compile "$LINENO"; then :
7463 gold_cv_prog_gcc41=yes
7464else
7465 gold_cv_prog_gcc41=no
7466fi
7467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468fi
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
7470$as_echo "$gold_cv_prog_gcc41" >&6; }
7471
24482ca0
L
7472save_CFLAGS="$CFLAGS"
7473CFLAGS="$CFLAGS -mcmodel=medium"
7474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h. */
7476int i;
7477_ACEOF
7478if ac_fn_c_try_compile "$LINENO"; then :
7479 have_mcmodel_medium=yes
7480else
7481 have_mcmodel_medium=no
7482fi
7483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484CFLAGS="$save_CFLAGS"
7485 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
81ecdfbb
RW
7486 MCMODEL_MEDIUM_TRUE=
7487 MCMODEL_MEDIUM_FALSE='#'
54dc6425 7488else
81ecdfbb
RW
7489 MCMODEL_MEDIUM_TRUE='#'
7490 MCMODEL_MEDIUM_FALSE=
54dc6425 7491fi
54dc6425 7492
54dc6425 7493
2b64b551
RM
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
7495$as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
d0ac1c44 7496if ${gold_cv_merge_constants+:} false; then :
2b64b551
RM
7497 $as_echo_n "(cached) " >&6
7498else
7499
7500save_CFLAGS="$CFLAGS"
7501CFLAGS="$CFLAGS -fmerge-constants"
7502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503/* end confdefs.h. */
7504const char *s = "foo";
7505_ACEOF
7506if ac_fn_c_try_compile "$LINENO"; then :
2500c017 7507 gold_cv_merge_constants=yes
2b64b551 7508else
2500c017 7509 gold_cv_merge_constants=no
2b64b551
RM
7510fi
7511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512CFLAGS="$save_CFLAGS"
7513fi
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
7515$as_echo "$gold_cv_merge_constants" >&6; }
7516
7517if test "$gold_cv_merge_constants" = yes; then :
7518 MERGE_CONSTANTS_FLAG=-fmerge-constants
7519else
7520 MERGE_CONSTANTS_FLAG=
7521fi
7522
81ecdfbb
RW
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
7524$as_echo_n "checking for thread support... " >&6; }
d0ac1c44 7525if ${gold_cv_c_thread+:} false; then :
81ecdfbb
RW
7526 $as_echo_n "(cached) " >&6
7527else
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e44fcf3b 7529/* end confdefs.h. */
81ecdfbb 7530__thread int i = 1;
e44fcf3b 7531_ACEOF
81ecdfbb
RW
7532if ac_fn_c_try_compile "$LINENO"; then :
7533 gold_cv_c_thread=yes
0639a6f6 7534else
81ecdfbb 7535 gold_cv_c_thread=no
0639a6f6 7536fi
81ecdfbb 7537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e44fcf3b 7538fi
81ecdfbb
RW
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
7540$as_echo "$gold_cv_c_thread" >&6; }
e44fcf3b 7541
81ecdfbb
RW
7542 if test "$gold_cv_c_thread" = "yes"; then
7543 TLS_TRUE=
7544 TLS_FALSE='#'
7545else
7546 TLS_TRUE='#'
7547 TLS_FALSE=
0639a6f6 7548fi
e44fcf3b 7549
0639a6f6 7550
81ecdfbb
RW
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
7552$as_echo_n "checking for glibc >= 2.4... " >&6; }
d0ac1c44 7553if ${gold_cv_lib_glibc24+:} false; then :
81ecdfbb 7554 $as_echo_n "(cached) " >&6
1b77ea50 7555else
81ecdfbb 7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1b77ea50 7557/* end confdefs.h. */
81ecdfbb
RW
7558
7559#include <features.h>
7560#if !defined __GLIBC__
7561error
7562#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
7563error
1b77ea50 7564#endif
81ecdfbb 7565
1b77ea50 7566_ACEOF
81ecdfbb
RW
7567if ac_fn_c_try_compile "$LINENO"; then :
7568 gold_cv_lib_glibc24=yes
0639a6f6 7569else
81ecdfbb 7570 gold_cv_lib_glibc24=no
0639a6f6 7571fi
81ecdfbb 7572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1b77ea50 7573fi
81ecdfbb
RW
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
7575$as_echo "$gold_cv_lib_glibc24" >&6; }
1b77ea50 7576
81ecdfbb
RW
7577 if test "$gold_cv_lib_glibc24" = "yes"; then
7578 STATIC_TLS_TRUE=
7579 STATIC_TLS_FALSE='#'
0639a6f6 7580else
81ecdfbb
RW
7581 STATIC_TLS_TRUE='#'
7582 STATIC_TLS_FALSE=
0639a6f6 7583fi
1b77ea50 7584
0639a6f6 7585
81ecdfbb
RW
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
7587$as_echo_n "checking for omp support... " >&6; }
d0ac1c44 7588if ${gold_cv_c_threadprivate+:} false; then :
81ecdfbb 7589 $as_echo_n "(cached) " >&6
0639a6f6 7590else
81ecdfbb
RW
7591 save_CFLAGS="$CFLAGS"
7592CFLAGS="$CFLAGS -fopenmp"
7593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594/* end confdefs.h. */
1b77ea50 7595
81ecdfbb
RW
7596#include <omp.h>
7597int i;
7598#pragma omp threadprivate (i)
1b77ea50 7599
81ecdfbb
RW
7600_ACEOF
7601if ac_fn_c_try_compile "$LINENO"; then :
7602 gold_cv_c_threadprivate=yes
7603else
7604 gold_cv_c_threadprivate=no
7605fi
7606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7607CFLAGS="$save_CFLAGS"
7608fi
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
7610$as_echo "$gold_cv_c_threadprivate" >&6; }
7611if test "$gold_cv_c_threadprivate" = "yes"; then
1b77ea50 7612
81ecdfbb 7613$as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
1b77ea50 7614
0639a6f6 7615fi
81ecdfbb
RW
7616 if test "$gold_cv_c_threadprivate" = "yes"; then
7617 OMP_SUPPORT_TRUE=
7618 OMP_SUPPORT_FALSE='#'
1b77ea50 7619else
81ecdfbb
RW
7620 OMP_SUPPORT_TRUE='#'
7621 OMP_SUPPORT_FALSE=
1b77ea50 7622fi
1b77ea50 7623
81ecdfbb
RW
7624
7625save_CFLAGS="$CFLAGS"
13323c49 7626CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
81ecdfbb 7627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0639a6f6 7628/* end confdefs.h. */
63887f3d
L
7629
7630__thread int i;
7631void foo (void)
7632{
7633 i = 10;
7634}
7635
1b77ea50 7636_ACEOF
81ecdfbb
RW
7637if ac_fn_c_try_compile "$LINENO"; then :
7638 have_tls_gnu2=yes
0639a6f6 7639else
81ecdfbb 7640 have_tls_gnu2=no
0639a6f6 7641fi
81ecdfbb
RW
7642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643CFLAGS="$save_CFLAGS"
7644 if test "$have_tls_gnu2" = "yes"; then
7645 TLS_GNU2_DIALECT_TRUE=
7646 TLS_GNU2_DIALECT_FALSE='#'
0639a6f6 7647else
81ecdfbb
RW
7648 TLS_GNU2_DIALECT_TRUE='#'
7649 TLS_GNU2_DIALECT_FALSE=
0639a6f6 7650fi
1b77ea50 7651
81ecdfbb
RW
7652
7653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
7654$as_echo_n "checking for glibc >= 2.9... " >&6; }
d0ac1c44 7655if ${gold_cv_lib_glibc29+:} false; then :
81ecdfbb 7656 $as_echo_n "(cached) " >&6
1b77ea50 7657else
81ecdfbb
RW
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659/* end confdefs.h. */
0639a6f6 7660
81ecdfbb
RW
7661#include <features.h>
7662#if !defined __GLIBC__
7663error
7664#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
7665error
7666#endif
1b77ea50 7667
81ecdfbb
RW
7668_ACEOF
7669if ac_fn_c_try_compile "$LINENO"; then :
7670 gold_cv_lib_glibc29=yes
7671else
7672 gold_cv_lib_glibc29=no
1b77ea50 7673fi
81ecdfbb
RW
7674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675fi
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
7677$as_echo "$gold_cv_lib_glibc29" >&6; }
0639a6f6 7678
81ecdfbb
RW
7679 if test "$gold_cv_lib_glibc29" = "yes"; then
7680 TLS_DESCRIPTORS_TRUE=
7681 TLS_DESCRIPTORS_FALSE='#'
7682else
7683 TLS_DESCRIPTORS_TRUE='#'
7684 TLS_DESCRIPTORS_FALSE=
7685fi
0639a6f6
ILT
7686
7687
81ecdfbb
RW
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
7689$as_echo_n "checking for -frandom-seed support... " >&6; }
d0ac1c44 7690if ${gold_cv_c_random_seed+:} false; then :
81ecdfbb
RW
7691 $as_echo_n "(cached) " >&6
7692else
7693 save_CFLAGS="$CFLAGS"
7694CFLAGS="$CFLAGS -frandom-seed=foo"
7695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0639a6f6 7696/* end confdefs.h. */
81ecdfbb 7697int i;
0639a6f6 7698_ACEOF
81ecdfbb
RW
7699if ac_fn_c_try_compile "$LINENO"; then :
7700 gold_cv_c_random_seed=yes
0639a6f6 7701else
81ecdfbb
RW
7702 gold_cv_c_random_seed=no
7703fi
7704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705CFLAGS="$save_CFLAGS"
7706fi
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
7708$as_echo "$gold_cv_c_random_seed" >&6; }
7709if test "$gold_cv_c_random_seed" = "yes"; then
7710 # In Makefile, '$@' will be expanded to be the name of the file
7711 # being built, providing a unique seed for each file.
7712 RANDOM_SEED_CFLAGS=-frandom-seed=\$@
0639a6f6 7713fi
1b77ea50 7714
81ecdfbb 7715
ebb300b2
CC
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
7717$as_echo_n "checking for glibc ifunc support... " >&6; }
d0ac1c44 7718if ${gold_cv_lib_glibc_ifunc+:} false; then :
7223e9ca
ILT
7719 $as_echo_n "(cached) " >&6
7720else
ebb300b2
CC
7721 save_LDFLAGS="$LDFLAGS"
7722LDFLAGS="$LDFLAGS -static"
7723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223e9ca
ILT
7724/* end confdefs.h. */
7725
7726#include <features.h>
7727#if !defined __GLIBC__
7728error
7729#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
7730error
7731#endif
ebb300b2
CC
7732void func (void) { }
7733void invoke (void);
7734__asm__(".type invoke, %gnu_indirect_function");
7735typedef void (*funcptr) (void);
7736funcptr dispatch (void) __asm__ ("invoke");
7737funcptr dispatch (void) { return &func; }
7738int
7739main ()
7740{
7741invoke();
7742 ;
7743 return 0;
7744}
7223e9ca
ILT
7745
7746_ACEOF
ebb300b2
CC
7747if ac_fn_c_try_link "$LINENO"; then :
7748
7749if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
7750 gold_cv_lib_glibc_ifunc=both
7223e9ca 7751else
ebb300b2 7752 gold_cv_lib_glibc_ifunc=dyn
7223e9ca 7753fi
ebb300b2
CC
7754else
7755 gold_cv_lib_glibc_ifunc=no
7756fi
7757rm -f core conftest.err conftest.$ac_objext \
7758 conftest$ac_exeext conftest.$ac_ext
7759LDFLAGS="$save_LDFLAGS"
7223e9ca 7760fi
ebb300b2
CC
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
7762$as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
7223e9ca 7763
ebb300b2 7764 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
7223e9ca
ILT
7765 IFUNC_TRUE=
7766 IFUNC_FALSE='#'
7767else
7768 IFUNC_TRUE='#'
7769 IFUNC_FALSE=
7770fi
7771
ebb300b2
CC
7772 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
7773 IFUNC_STATIC_TRUE=
7774 IFUNC_STATIC_FALSE='#'
7775else
7776 IFUNC_STATIC_TRUE='#'
7777 IFUNC_STATIC_FALSE=
7778fi
7779
7223e9ca 7780
81ecdfbb 7781
270c9937
JB
7782# Set the 'development' global.
7783. $srcdir/../bfd/development.sh
7784
c5da1932
VZ
7785# Set acp_cpp_for_build variable
7786ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
7787
9780e045 7788# Default set of GCC warnings to enable.
efc8d4f2 7789GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 7790GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
7791
7792# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
efc8d4f2
RW
7793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794/* end confdefs.h. */
7795__GNUC__
7796_ACEOF
7797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 7798 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
efc8d4f2
RW
7799
7800else
7801 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
7802fi
7803rm -f conftest*
7804
81ecdfbb 7805
9780e045
NC
7806# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808/* end confdefs.h. */
7809__GNUC__
7810_ACEOF
7811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 7812 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
7813
7814else
7815 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
7816fi
7817rm -f conftest*
7818
7819
6757cf57
TS
7820# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
7821WARN_WRITE_STRINGS=""
7822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823/* end confdefs.h. */
7824__GNUC__
7825_ACEOF
7826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 7827 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
7828
7829else
7830 WARN_WRITE_STRINGS="-Wwrite-strings"
7831fi
7832rm -f conftest*
7833
9780e045 7834
96fe4562 7835# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
7836
7837# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839/* end confdefs.h. */
7840__GNUC__
7841_ACEOF
7842if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 7843 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
7844
7845else
7846 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
7847fi
7848rm -f conftest*
7849
7850
7851# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h. */
7854__GNUC__
7855_ACEOF
7856if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 7857 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
7858
7859else
7860 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
7861fi
7862rm -f conftest*
7863
7864
81ecdfbb
RW
7865# Check whether --enable-werror was given.
7866if test "${enable_werror+set}" = set; then :
7867 enableval=$enable_werror; case "${enableval}" in
7868 yes | y) ERROR_ON_WARNING="yes" ;;
7869 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 7870 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
81ecdfbb 7871 esac
0639a6f6 7872fi
1b77ea50 7873
81ecdfbb 7874
efc8d4f2 7875# Disable -Wformat by default when using gcc on mingw
81ecdfbb
RW
7876case "${host}" in
7877 *-*-mingw32*)
7878 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
7879 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 7880 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
81ecdfbb 7881 fi
0639a6f6 7882 ;;
81ecdfbb 7883 *) ;;
0639a6f6 7884esac
81ecdfbb 7885
270c9937
JB
7886# Enable -Werror by default when using gcc. Turn it off for releases.
7887if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
81ecdfbb 7888 ERROR_ON_WARNING=yes
0639a6f6 7889fi
0639a6f6 7890
81ecdfbb
RW
7891NO_WERROR=
7892if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 7893 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 7894 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
81ecdfbb 7895 NO_WERROR="-Wno-error"
0639a6f6 7896fi
1b77ea50 7897
81ecdfbb
RW
7898if test "${GCC}" = yes ; then
7899 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 7900 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
0639a6f6
ILT
7901fi
7902
81ecdfbb
RW
7903# Check whether --enable-build-warnings was given.
7904if test "${enable_build_warnings+set}" = set; then :
7905 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
7906 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
7907 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
81ecdfbb
RW
7908 no) if test "${GCC}" = yes ; then
7909 WARN_CFLAGS="-w"
c5da1932 7910 WARN_CFLAGS_FOR_BUILD="-w"
81ecdfbb
RW
7911 fi;;
7912 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
7913 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
7914 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
81ecdfbb 7915 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
7916 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
7917 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
7918 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
7919 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
81ecdfbb
RW
7920esac
7921fi
0639a6f6 7922
1b77ea50 7923
81ecdfbb
RW
7924if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
7925 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
0639a6f6 7926fi
1b77ea50 7927
1b77ea50 7928
1b77ea50 7929
0639a6f6 7930
1b77ea50 7931
6757cf57 7932
c5da1932 7933
2ea97941 7934WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
81ecdfbb
RW
7935
7936
dc87f620
ILT
7937
7938# Check whether --with-gold-ldflags was given.
7939if test "${with_gold_ldflags+set}" = set; then :
7940 withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
7941 GOLD_LDFLAGS=
7942 else
7943 GOLD_LDFLAGS=$withval
7944 fi
7945else
7946 GOLD_LDFLAGS=
7947fi
7948
7949
7950
7951
7952# Check whether --with-gold-ldadd was given.
7953if test "${with_gold_ldadd+set}" = set; then :
7954 withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
7955 GOLD_LDADD=
7956 else
7957 GOLD_LDADD=$withval
7958 fi
7959else
7960 GOLD_LDADD=
7961fi
7962
7963
7964
81ecdfbb
RW
7965LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
7966
7967
88597d34 7968for ac_header in sys/mman.h
81ecdfbb 7969do :
88597d34 7970 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
d0ac1c44 7971if test "x$ac_cv_header_sys_mman_h" = xyes; then :
0639a6f6 7972 cat >>confdefs.h <<_ACEOF
88597d34
ILT
7973#define HAVE_SYS_MMAN_H 1
7974_ACEOF
7975
7976fi
7977
7978done
7979
f4238194 7980for ac_func in chsize mmap link
88597d34
ILT
7981do :
7982 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7983ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 7984if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
88597d34
ILT
7985 cat >>confdefs.h <<_ACEOF
7986#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1b77ea50
ILT
7987_ACEOF
7988
0639a6f6 7989fi
0639a6f6 7990done
1b77ea50 7991
d0ac1c44
SM
7992ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
7993if test "x$ac_cv_func_pread" = xyes; then :
7994 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
0639a6f6 7995
81ecdfbb
RW
7996else
7997 case " $LIBOBJS " in
d0ac1c44
SM
7998 *" pread.$ac_objext "* ) ;;
7999 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
8000 ;;
8001esac
8002
8003fi
8004
8005ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
8006if test "x$ac_cv_func_ftruncate" = xyes; then :
8007 $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
8008
8009else
8010 case " $LIBOBJS " in
8011 *" ftruncate.$ac_objext "* ) ;;
8012 *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
8013 ;;
8014esac
8015
8016fi
8017
8018ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll"
8019if test "x$ac_cv_func_ffsll" = xyes; then :
8020 $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
8021
8022else
8023 case " $LIBOBJS " in
8024 *" ffsll.$ac_objext "* ) ;;
8025 *) LIBOBJS="$LIBOBJS ffsll.$ac_objext"
81ecdfbb
RW
8026 ;;
8027esac
0639a6f6 8028
81ecdfbb 8029fi
0639a6f6 8030
0639a6f6 8031
81ecdfbb 8032
88597d34
ILT
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
8034$as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
d0ac1c44 8035if ${gold_cv_lib_mremap_maymove+:} false; then :
88597d34
ILT
8036 $as_echo_n "(cached) " >&6
8037else
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039/* end confdefs.h. */
8040
8041
8042#include <sys/mman.h>
8043void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
8044
8045int
8046main ()
8047{
8048
8049 ;
8050 return 0;
8051}
8052_ACEOF
8053if ac_fn_c_try_link "$LINENO"; then :
8054 gold_cv_lib_mremap_maymove=yes
8055else
8056 gold_cv_lib_mremap_maymove=no
8057fi
8058rm -f core conftest.err conftest.$ac_objext \
8059 conftest$ac_exeext conftest.$ac_ext
8060fi
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
8062$as_echo "$gold_cv_lib_mremap_maymove" >&6; }
8063if test "$gold_cv_lib_mremap_maymove" = "yes"; then
8064
8065$as_echo "#define HAVE_MREMAP 1" >>confdefs.h
8066
8067else
8068 case " $LIBOBJS " in
8069 *" mremap.$ac_objext "* ) ;;
8070 *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
8071 ;;
8072esac
8073
8074fi
8075
81ecdfbb 8076# Link in zlib if we can. This allows us to write compressed sections.
ae2eea65 8077
918357b9 8078 # Use the system's zlib library.
39f3de7c
L
8079 zlibdir="-L\$(top_builddir)/../zlib"
8080 zlibinc="-I\$(top_srcdir)/../zlib"
ae2eea65 8081
918357b9
L
8082# Check whether --with-system-zlib was given.
8083if test "${with_system_zlib+set}" = set; then :
8084 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8085 zlibdir=
8086 zlibinc=
81ecdfbb 8087 fi
1b77ea50 8088
1b77ea50 8089fi
1b77ea50 8090
81ecdfbb 8091
1b77ea50 8092
81ecdfbb
RW
8093
8094
c8dc28bc
CC
8095# Check whether --enable-threads was given.
8096if test "${enable_threads+set}" = set; then :
8097 enableval=$enable_threads; case "${enableval}" in
8098 yes | "") threads=yes ;;
8099 no) threads=no ;;
8100 auto) threads=auto ;;
8101 *) threads=yes ;;
8102 esac
81ecdfbb 8103else
c8dc28bc 8104 threads=auto
3d857b98 8105fi
3d857b98 8106
3d857b98 8107
c8dc28bc
CC
8108if test "$threads" = "yes"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8110$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8111if ${ac_cv_path_SED+:} false; then :
8112 $as_echo_n "(cached) " >&6
3d857b98 8113else
c8dc28bc
CC
8114 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8115 for ac_i in 1 2 3 4 5 6 7; do
8116 ac_script="$ac_script$as_nl$ac_script"
8117 done
8118 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8119 { ac_script=; unset ac_script;}
8120 if test -z "$SED"; then
8121 ac_path_SED_found=false
8122 # Loop through the user's path and test for each of PROGNAME-LIST
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_prog in sed gsed; do
8129 for ac_exec_ext in '' $ac_executable_extensions; do
8130 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8131 as_fn_executable_p "$ac_path_SED" || continue
8132# Check for GNU ac_path_SED and select it if it is found.
8133 # Check for GNU $ac_path_SED
8134case `"$ac_path_SED" --version 2>&1` in
8135*GNU*)
8136 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8137*)
8138 ac_count=0
8139 $as_echo_n 0123456789 >"conftest.in"
8140 while :
8141 do
8142 cat "conftest.in" "conftest.in" >"conftest.tmp"
8143 mv "conftest.tmp" "conftest.in"
8144 cp "conftest.in" "conftest.nl"
8145 $as_echo '' >> "conftest.nl"
8146 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8148 as_fn_arith $ac_count + 1 && ac_count=$as_val
8149 if test $ac_count -gt ${ac_path_SED_max-0}; then
8150 # Best one so far, save it but keep looking for a better one
8151 ac_cv_path_SED="$ac_path_SED"
8152 ac_path_SED_max=$ac_count
8153 fi
8154 # 10*(2^10) chars as input seems more than enough
8155 test $ac_count -gt 10 && break
8156 done
8157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8158esac
3d857b98 8159
c8dc28bc
CC
8160 $ac_path_SED_found && break 3
8161 done
8162 done
8163 done
8164IFS=$as_save_IFS
8165 if test -z "$ac_cv_path_SED"; then
8166 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8167 fi
3d857b98 8168else
c8dc28bc 8169 ac_cv_path_SED=$SED
3d857b98 8170fi
3d857b98 8171
81ecdfbb 8172fi
c8dc28bc
CC
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8174$as_echo "$ac_cv_path_SED" >&6; }
8175 SED="$ac_cv_path_SED"
8176 rm -f conftest.sed
3d857b98 8177
81ecdfbb 8178
3d857b98 8179
3d857b98
DK
8180
8181
c8dc28bc
CC
8182ac_ext=c
8183ac_cpp='$CPP $CPPFLAGS'
8184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8186ac_compiler_gnu=$ac_cv_c_compiler_gnu
8187
8188ax_pthread_ok=no
8189
8190# We used to check for pthread.h first, but this fails if pthread.h
8191# requires special compiler flags (e.g. on Tru64 or Sequent).
8192# It gets checked for in the link test anyway.
8193
8194# First of all, check if the user has set any of the PTHREAD_LIBS,
8195# etcetera environment variables, and if threads linking works using
8196# them:
8197if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8198 ax_pthread_save_CC="$CC"
8199 ax_pthread_save_CFLAGS="$CFLAGS"
8200 ax_pthread_save_LIBS="$LIBS"
8201 if test "x$PTHREAD_CC" != "x"; then :
8202 CC="$PTHREAD_CC"
8203fi
8204 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8205 LIBS="$PTHREAD_LIBS $LIBS"
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8207$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae447ddd 8209/* end confdefs.h. */
c8dc28bc
CC
8210
8211/* Override any GCC internal prototype to avoid an error.
8212 Use char because int might match the return type of a GCC
8213 builtin and then its argument prototype would still apply. */
8214#ifdef __cplusplus
8215extern "C"
8216#endif
8217char pthread_join ();
8218int
8219main ()
8220{
8221return pthread_join ();
8222 ;
8223 return 0;
8224}
ae447ddd 8225_ACEOF
c8dc28bc
CC
8226if ac_fn_c_try_link "$LINENO"; then :
8227 ax_pthread_ok=yes
ae447ddd 8228fi
c8dc28bc
CC
8229rm -f core conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8232$as_echo "$ax_pthread_ok" >&6; }
8233 if test "x$ax_pthread_ok" = "xno"; then
8234 PTHREAD_LIBS=""
8235 PTHREAD_CFLAGS=""
8236 fi
8237 CC="$ax_pthread_save_CC"
8238 CFLAGS="$ax_pthread_save_CFLAGS"
8239 LIBS="$ax_pthread_save_LIBS"
8240fi
8241
8242# We must check for the threads library under a number of different
8243# names; the ordering is very important because some systems
8244# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8245# libraries is broken (non-POSIX).
8246
8247# Create a list of thread flags to try. Items starting with a "-" are
8248# C compiler flags, and other items are library names, except for "none"
8249# which indicates that we try without any flags at all, and "pthread-config"
8250# which is a program returning the flags for the Pth emulation library.
8251
8252ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8253
8254# The ordering *is* (sometimes) important. Some notes on the
8255# individual items follow:
8256
8257# pthreads: AIX (must check this before -lpthread)
8258# none: in case threads are in libc; should be tried before -Kthread and
8259# other compiler flags to prevent continual compiler warnings
8260# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8261# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8262# (Note: HP C rejects this with "bad form for `-t' option")
8263# -pthreads: Solaris/gcc (Note: HP C also rejects)
8264# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8265# doesn't hurt to check since this sometimes defines pthreads and
8266# -D_REENTRANT too), HP C (must be checked before -lpthread, which
8267# is present but should not be used directly; and before -mthreads,
8268# because the compiler interprets this as "-mt" + "-hreads")
8269# -mthreads: Mingw32/gcc, Lynx/gcc
8270# pthread: Linux, etcetera
8271# --thread-safe: KAI C++
8272# pthread-config: use pthread-config program (for GNU Pth library)
8273
8274case $host_os in
8275
8276 freebsd*)
8277
8278 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8279 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8280
8281 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
8282 ;;
ae447ddd 8283
c8dc28bc 8284 hpux*)
ae447ddd 8285
c8dc28bc
CC
8286 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8287 # multi-threading and also sets -lpthread."
8288
8289 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8290 ;;
8291
8292 openedition*)
8293
8294 # IBM z/OS requires a feature-test macro to be defined in order to
8295 # enable POSIX threads at all, so give the user a hint if this is
8296 # not set. (We don't define these ourselves, as they can affect
8297 # other portions of the system API in unpredictable ways.)
8298
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae447ddd 8300/* end confdefs.h. */
c8dc28bc
CC
8301
8302# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8303 AX_PTHREAD_ZOS_MISSING
8304# endif
8305
ae447ddd 8306_ACEOF
c8dc28bc
CC
8307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8308 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8310$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
ae447ddd 8311fi
c8dc28bc
CC
8312rm -f conftest*
8313
8314 ;;
8315
8316 solaris*)
8317
8318 # On Solaris (at least, for some versions), libc contains stubbed
8319 # (non-functional) versions of the pthreads routines, so link-based
8320 # tests will erroneously succeed. (N.B.: The stubs are missing
8321 # pthread_cleanup_push, or rather a function called by this macro,
8322 # so we could check for that, but who knows whether they'll stub
8323 # that too in a future libc.) So we'll check first for the
8324 # standard Solaris way of linking pthreads (-mt -lpthread).
8325
8326 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
8327 ;;
8328esac
8329
8330# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8331
8332if test "x$GCC" = "xyes"; then :
8333 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
ae447ddd
CC
8334fi
8335
c8dc28bc
CC
8336# The presence of a feature test macro requesting re-entrant function
8337# definitions is, on some systems, a strong hint that pthreads support is
8338# correctly enabled
ae447ddd 8339
c8dc28bc
CC
8340case $host_os in
8341 darwin* | hpux* | linux* | osf* | solaris*)
8342 ax_pthread_check_macro="_REENTRANT"
8343 ;;
8344
8345 aix*)
8346 ax_pthread_check_macro="_THREAD_SAFE"
8347 ;;
3d857b98 8348
c8dc28bc
CC
8349 *)
8350 ax_pthread_check_macro="--"
8351 ;;
8352esac
8353if test "x$ax_pthread_check_macro" = "x--"; then :
8354 ax_pthread_check_cond=0
8355else
8356 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
8357fi
3d857b98 8358
c8dc28bc 8359# Are we compiling with Clang?
81ecdfbb 8360
c8dc28bc
CC
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
8362$as_echo_n "checking whether $CC is Clang... " >&6; }
8363if ${ax_cv_PTHREAD_CLANG+:} false; then :
81ecdfbb 8364 $as_echo_n "(cached) " >&6
3d857b98 8365else
c8dc28bc
CC
8366 ax_cv_PTHREAD_CLANG=no
8367 # Note that Autoconf sets GCC=yes for Clang as well as GCC
8368 if test "x$GCC" = "xyes"; then
8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d857b98 8370/* end confdefs.h. */
c8dc28bc
CC
8371/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
8372# if defined(__clang__) && defined(__llvm__)
8373 AX_PTHREAD_CC_IS_CLANG
8374# endif
8375
3d857b98 8376_ACEOF
c8dc28bc
CC
8377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8378 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
8379 ax_cv_PTHREAD_CLANG=yes
8380fi
8381rm -f conftest*
8382
8383 fi
3d857b98 8384
c8dc28bc
CC
8385fi
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8387$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
8388ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
8389
8390ax_pthread_clang_warning=no
8391
8392# Clang needs special handling, because older versions handle the -pthread
8393# option in a rather... idiosyncratic way
8394
8395if test "x$ax_pthread_clang" = "xyes"; then
8396
8397 # Clang takes -pthread; it has never supported any other flag
8398
8399 # (Note 1: This will need to be revisited if a system that Clang
8400 # supports has POSIX threads in a separate library. This tends not
8401 # to be the way of modern systems, but it's conceivable.)
8402
8403 # (Note 2: On some systems, notably Darwin, -pthread is not needed
8404 # to get POSIX threads support; the API is always present and
8405 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
8406 # -pthread does define _REENTRANT, and while the Darwin headers
8407 # ignore this macro, third-party headers might not.)
8408
8409 PTHREAD_CFLAGS="-pthread"
8410 PTHREAD_LIBS=
8411
8412 ax_pthread_ok=yes
8413
8414 # However, older versions of Clang make a point of warning the user
8415 # that, in an invocation where only linking and no compilation is
8416 # taking place, the -pthread option has no effect ("argument unused
8417 # during compilation"). They expect -pthread to be passed in only
8418 # when source code is being compiled.
8419 #
8420 # Problem is, this is at odds with the way Automake and most other
8421 # C build frameworks function, which is that the same flags used in
8422 # compilation (CFLAGS) are also used in linking. Many systems
8423 # supported by AX_PTHREAD require exactly this for POSIX threads
8424 # support, and in fact it is often not straightforward to specify a
8425 # flag that is used only in the compilation phase and not in
8426 # linking. Such a scenario is extremely rare in practice.
8427 #
8428 # Even though use of the -pthread flag in linking would only print
8429 # a warning, this can be a nuisance for well-run software projects
8430 # that build with -Werror. So if the active version of Clang has
8431 # this misfeature, we search for an option to squash it.
8432
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8434$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8435if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
8436 $as_echo_n "(cached) " >&6
81ecdfbb 8437else
c8dc28bc
CC
8438 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
8439 # Create an alternate version of $ac_link that compiles and
8440 # links in two steps (.c -> .o, .o -> exe) instead of one
8441 # (.c -> exe), because the warning occurs only in the second
8442 # step
8443 ax_pthread_save_ac_link="$ac_link"
8444 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8445 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
8446 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8447 ax_pthread_save_CFLAGS="$CFLAGS"
8448 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
8449 if test "x$ax_pthread_try" = "xunknown"; then :
8450 break
3d857b98 8451fi
c8dc28bc
CC
8452 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8453 ac_link="$ax_pthread_save_ac_link"
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455/* end confdefs.h. */
8456int main(void){return 0;}
8457_ACEOF
8458if ac_fn_c_try_link "$LINENO"; then :
8459 ac_link="$ax_pthread_2step_ac_link"
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461/* end confdefs.h. */
8462int main(void){return 0;}
8463_ACEOF
8464if ac_fn_c_try_link "$LINENO"; then :
8465 break
8466fi
8467rm -f core conftest.err conftest.$ac_objext \
8468 conftest$ac_exeext conftest.$ac_ext
8469
8470fi
8471rm -f core conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
8473 done
8474 ac_link="$ax_pthread_save_ac_link"
8475 CFLAGS="$ax_pthread_save_CFLAGS"
8476 if test "x$ax_pthread_try" = "x"; then :
8477 ax_pthread_try=no
8478fi
8479 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
8480
8481fi
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8483$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8484
8485 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8486 no | unknown) ;;
8487 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8488 esac
8489
8490fi # $ax_pthread_clang = yes
8491
8492if test "x$ax_pthread_ok" = "xno"; then
8493for ax_pthread_try_flag in $ax_pthread_flags; do
8494
8495 case $ax_pthread_try_flag in
8496 none)
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8498$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8499 ;;
8500
8501 -mt,pthread)
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8503$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8504 PTHREAD_CFLAGS="-mt"
8505 PTHREAD_LIBS="-lpthread"
8506 ;;
8507
8508 -*)
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8510$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8511 PTHREAD_CFLAGS="$ax_pthread_try_flag"
8512 ;;
8513
8514 pthread-config)
8515 # Extract the first word of "pthread-config", so it can be a program name with args.
8516set dummy pthread-config; ac_word=$2
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518$as_echo_n "checking for $ac_word... " >&6; }
8519if ${ac_cv_prog_ax_pthread_config+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521else
8522 if test -n "$ax_pthread_config"; then
8523 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8524else
8525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526for as_dir in $PATH
8527do
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8532 ac_cv_prog_ax_pthread_config="yes"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 break 2
8535 fi
8536done
8537 done
8538IFS=$as_save_IFS
8539
8540 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8541fi
8542fi
8543ax_pthread_config=$ac_cv_prog_ax_pthread_config
8544if test -n "$ax_pthread_config"; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8546$as_echo "$ax_pthread_config" >&6; }
8547else
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549$as_echo "no" >&6; }
8550fi
8551
8552
8553 if test "x$ax_pthread_config" = "xno"; then :
8554 continue
8555fi
8556 PTHREAD_CFLAGS="`pthread-config --cflags`"
8557 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8558 ;;
8559
8560 *)
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8562$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8563 PTHREAD_LIBS="-l$ax_pthread_try_flag"
8564 ;;
8565 esac
8566
8567 ax_pthread_save_CFLAGS="$CFLAGS"
8568 ax_pthread_save_LIBS="$LIBS"
8569 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8570 LIBS="$PTHREAD_LIBS $LIBS"
8571
8572 # Check for various functions. We must include pthread.h,
8573 # since some functions may be macros. (On the Sequent, we
8574 # need a special flag -Kthread to make this header compile.)
8575 # We check for pthread_join because it is in -lpthread on IRIX
8576 # while pthread_create is in libc. We check for pthread_attr_init
8577 # due to DEC craziness with -lpthreads. We check for
8578 # pthread_cleanup_push because it is one of the few pthread
8579 # functions on Solaris that doesn't have a non-functional libc stub.
8580 # We try pthread_create on general principles.
8581
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583/* end confdefs.h. */
8584#include <pthread.h>
8585# if $ax_pthread_check_cond
8586# error "$ax_pthread_check_macro must be defined"
8587# endif
8588 static void routine(void *a) { a = 0; }
8589 static void *start_routine(void *a) { return a; }
8590int
8591main ()
8592{
8593pthread_t th; pthread_attr_t attr;
8594 pthread_create(&th, 0, start_routine, 0);
8595 pthread_join(th, 0);
8596 pthread_attr_init(&attr);
8597 pthread_cleanup_push(routine, 0);
8598 pthread_cleanup_pop(0) /* ; */
8599 ;
8600 return 0;
8601}
8602_ACEOF
8603if ac_fn_c_try_link "$LINENO"; then :
8604 ax_pthread_ok=yes
8605fi
8606rm -f core conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
8608
8609 CFLAGS="$ax_pthread_save_CFLAGS"
8610 LIBS="$ax_pthread_save_LIBS"
8611
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8613$as_echo "$ax_pthread_ok" >&6; }
8614 if test "x$ax_pthread_ok" = "xyes"; then :
8615 break
8616fi
8617
8618 PTHREAD_LIBS=""
8619 PTHREAD_CFLAGS=""
8620done
8621fi
8622
8623# Various other checks:
8624if test "x$ax_pthread_ok" = "xyes"; then
8625 ax_pthread_save_CFLAGS="$CFLAGS"
8626 ax_pthread_save_LIBS="$LIBS"
8627 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8628 LIBS="$PTHREAD_LIBS $LIBS"
8629
8630 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8632$as_echo_n "checking for joinable pthread attribute... " >&6; }
8633if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
8634 $as_echo_n "(cached) " >&6
8635else
8636 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
8637 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639/* end confdefs.h. */
8640#include <pthread.h>
8641int
8642main ()
8643{
8644int attr = $ax_pthread_attr; return attr /* ; */
8645 ;
8646 return 0;
8647}
8648_ACEOF
8649if ac_fn_c_try_link "$LINENO"; then :
8650 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
8651fi
8652rm -f core conftest.err conftest.$ac_objext \
8653 conftest$ac_exeext conftest.$ac_ext
8654 done
8655
8656fi
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8658$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8659 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8660 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8661 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8662
8663cat >>confdefs.h <<_ACEOF
8664#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8665_ACEOF
8666
8667 ax_pthread_joinable_attr_defined=yes
8668
8669fi
8670
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8672$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8673if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
8674 $as_echo_n "(cached) " >&6
8675else
8676 ax_cv_PTHREAD_SPECIAL_FLAGS=no
8677 case $host_os in
8678 solaris*)
8679 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
8680 ;;
8681 esac
8682
8683fi
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8685$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8686 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8687 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8688 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8689 ax_pthread_special_flags_added=yes
8690fi
8691
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8693$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8694if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696else
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698/* end confdefs.h. */
8699#include <pthread.h>
8700int
8701main ()
8702{
8703int i = PTHREAD_PRIO_INHERIT;
8704 ;
8705 return 0;
8706}
8707_ACEOF
8708if ac_fn_c_try_link "$LINENO"; then :
8709 ax_cv_PTHREAD_PRIO_INHERIT=yes
8710else
8711 ax_cv_PTHREAD_PRIO_INHERIT=no
8712fi
8713rm -f core conftest.err conftest.$ac_objext \
8714 conftest$ac_exeext conftest.$ac_ext
8715
8716fi
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8718$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8719 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8720 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8721
8722$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8723
8724 ax_pthread_prio_inherit_defined=yes
8725
8726fi
8727
8728 CFLAGS="$ax_pthread_save_CFLAGS"
8729 LIBS="$ax_pthread_save_LIBS"
8730
8731 # More AIX lossage: compile with *_r variant
8732 if test "x$GCC" != "xyes"; then
8733 case $host_os in
8734 aix*)
8735 case "x/$CC" in #(
8736 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8737 #handle absolute path differently from PATH based program lookup
8738 case "x$CC" in #(
8739 x/*) :
8740 if as_fn_executable_p ${CC}_r; then :
8741 PTHREAD_CC="${CC}_r"
8742fi ;; #(
8743 *) :
8744 for ac_prog in ${CC}_r
8745do
8746 # Extract the first word of "$ac_prog", so it can be a program name with args.
8747set dummy $ac_prog; ac_word=$2
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749$as_echo_n "checking for $ac_word... " >&6; }
8750if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752else
8753 if test -n "$PTHREAD_CC"; then
8754 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8755else
8756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757for as_dir in $PATH
8758do
8759 IFS=$as_save_IFS
8760 test -z "$as_dir" && as_dir=.
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_PTHREAD_CC="$ac_prog"
8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 break 2
8766 fi
8767done
8768 done
8769IFS=$as_save_IFS
8770
8771fi
8772fi
8773PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8774if test -n "$PTHREAD_CC"; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8776$as_echo "$PTHREAD_CC" >&6; }
8777else
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779$as_echo "no" >&6; }
8780fi
8781
8782
8783 test -n "$PTHREAD_CC" && break
8784done
8785test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8786 ;;
8787esac ;; #(
8788 *) :
8789 ;;
8790esac
8791 ;;
8792 esac
8793 fi
8794fi
8795
8796test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8797
8798
8799
8800
8801
8802# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8803if test "x$ax_pthread_ok" = "xyes"; then
8804 threads=yes
8805 :
8806else
8807 ax_pthread_ok=no
8808 as_fn_error $? "pthread not found" "$LINENO" 5
8809fi
8810ac_ext=c
8811ac_cpp='$CPP $CPPFLAGS'
8812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8814ac_compiler_gnu=$ac_cv_c_compiler_gnu
8815
8816
8817elif test "$threads" = "auto"; then
8818
8819
8820
8821
8822ac_ext=c
8823ac_cpp='$CPP $CPPFLAGS'
8824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8826ac_compiler_gnu=$ac_cv_c_compiler_gnu
8827
8828ax_pthread_ok=no
8829
8830# We used to check for pthread.h first, but this fails if pthread.h
8831# requires special compiler flags (e.g. on Tru64 or Sequent).
8832# It gets checked for in the link test anyway.
8833
8834# First of all, check if the user has set any of the PTHREAD_LIBS,
8835# etcetera environment variables, and if threads linking works using
8836# them:
8837if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8838 ax_pthread_save_CC="$CC"
8839 ax_pthread_save_CFLAGS="$CFLAGS"
8840 ax_pthread_save_LIBS="$LIBS"
8841 if test "x$PTHREAD_CC" != "x"; then :
8842 CC="$PTHREAD_CC"
8843fi
8844 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8845 LIBS="$PTHREAD_LIBS $LIBS"
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8847$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849/* end confdefs.h. */
8850
8851/* Override any GCC internal prototype to avoid an error.
8852 Use char because int might match the return type of a GCC
8853 builtin and then its argument prototype would still apply. */
8854#ifdef __cplusplus
8855extern "C"
8856#endif
8857char pthread_join ();
8858int
8859main ()
8860{
8861return pthread_join ();
8862 ;
8863 return 0;
8864}
8865_ACEOF
8866if ac_fn_c_try_link "$LINENO"; then :
8867 ax_pthread_ok=yes
8868fi
8869rm -f core conftest.err conftest.$ac_objext \
8870 conftest$ac_exeext conftest.$ac_ext
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8872$as_echo "$ax_pthread_ok" >&6; }
8873 if test "x$ax_pthread_ok" = "xno"; then
8874 PTHREAD_LIBS=""
8875 PTHREAD_CFLAGS=""
8876 fi
8877 CC="$ax_pthread_save_CC"
8878 CFLAGS="$ax_pthread_save_CFLAGS"
8879 LIBS="$ax_pthread_save_LIBS"
8880fi
8881
8882# We must check for the threads library under a number of different
8883# names; the ordering is very important because some systems
8884# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8885# libraries is broken (non-POSIX).
8886
8887# Create a list of thread flags to try. Items starting with a "-" are
8888# C compiler flags, and other items are library names, except for "none"
8889# which indicates that we try without any flags at all, and "pthread-config"
8890# which is a program returning the flags for the Pth emulation library.
8891
8892ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8893
8894# The ordering *is* (sometimes) important. Some notes on the
8895# individual items follow:
8896
8897# pthreads: AIX (must check this before -lpthread)
8898# none: in case threads are in libc; should be tried before -Kthread and
8899# other compiler flags to prevent continual compiler warnings
8900# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8901# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8902# (Note: HP C rejects this with "bad form for `-t' option")
8903# -pthreads: Solaris/gcc (Note: HP C also rejects)
8904# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8905# doesn't hurt to check since this sometimes defines pthreads and
8906# -D_REENTRANT too), HP C (must be checked before -lpthread, which
8907# is present but should not be used directly; and before -mthreads,
8908# because the compiler interprets this as "-mt" + "-hreads")
8909# -mthreads: Mingw32/gcc, Lynx/gcc
8910# pthread: Linux, etcetera
8911# --thread-safe: KAI C++
8912# pthread-config: use pthread-config program (for GNU Pth library)
8913
8914case $host_os in
8915
8916 freebsd*)
8917
8918 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8919 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8920
8921 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
8922 ;;
8923
8924 hpux*)
8925
8926 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8927 # multi-threading and also sets -lpthread."
8928
8929 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8930 ;;
8931
8932 openedition*)
8933
8934 # IBM z/OS requires a feature-test macro to be defined in order to
8935 # enable POSIX threads at all, so give the user a hint if this is
8936 # not set. (We don't define these ourselves, as they can affect
8937 # other portions of the system API in unpredictable ways.)
8938
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940/* end confdefs.h. */
8941
8942# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8943 AX_PTHREAD_ZOS_MISSING
8944# endif
8945
8946_ACEOF
8947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8948 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8950$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8951fi
8952rm -f conftest*
8953
8954 ;;
8955
8956 solaris*)
8957
8958 # On Solaris (at least, for some versions), libc contains stubbed
8959 # (non-functional) versions of the pthreads routines, so link-based
8960 # tests will erroneously succeed. (N.B.: The stubs are missing
8961 # pthread_cleanup_push, or rather a function called by this macro,
8962 # so we could check for that, but who knows whether they'll stub
8963 # that too in a future libc.) So we'll check first for the
8964 # standard Solaris way of linking pthreads (-mt -lpthread).
8965
8966 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
8967 ;;
8968esac
8969
8970# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8971
8972if test "x$GCC" = "xyes"; then :
8973 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
8974fi
8975
8976# The presence of a feature test macro requesting re-entrant function
8977# definitions is, on some systems, a strong hint that pthreads support is
8978# correctly enabled
8979
8980case $host_os in
8981 darwin* | hpux* | linux* | osf* | solaris*)
8982 ax_pthread_check_macro="_REENTRANT"
8983 ;;
8984
8985 aix*)
8986 ax_pthread_check_macro="_THREAD_SAFE"
8987 ;;
8988
8989 *)
8990 ax_pthread_check_macro="--"
8991 ;;
8992esac
8993if test "x$ax_pthread_check_macro" = "x--"; then :
8994 ax_pthread_check_cond=0
8995else
8996 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
8997fi
8998
8999# Are we compiling with Clang?
9000
9001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9002$as_echo_n "checking whether $CC is Clang... " >&6; }
9003if ${ax_cv_PTHREAD_CLANG+:} false; then :
9004 $as_echo_n "(cached) " >&6
9005else
9006 ax_cv_PTHREAD_CLANG=no
9007 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9008 if test "x$GCC" = "xyes"; then
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010/* end confdefs.h. */
9011/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9012# if defined(__clang__) && defined(__llvm__)
9013 AX_PTHREAD_CC_IS_CLANG
9014# endif
9015
9016_ACEOF
9017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9018 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9019 ax_cv_PTHREAD_CLANG=yes
9020fi
9021rm -f conftest*
9022
9023 fi
9024
9025fi
9026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9027$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9028ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9029
9030ax_pthread_clang_warning=no
9031
9032# Clang needs special handling, because older versions handle the -pthread
9033# option in a rather... idiosyncratic way
9034
9035if test "x$ax_pthread_clang" = "xyes"; then
9036
9037 # Clang takes -pthread; it has never supported any other flag
9038
9039 # (Note 1: This will need to be revisited if a system that Clang
9040 # supports has POSIX threads in a separate library. This tends not
9041 # to be the way of modern systems, but it's conceivable.)
9042
9043 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9044 # to get POSIX threads support; the API is always present and
9045 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9046 # -pthread does define _REENTRANT, and while the Darwin headers
9047 # ignore this macro, third-party headers might not.)
9048
9049 PTHREAD_CFLAGS="-pthread"
9050 PTHREAD_LIBS=
9051
9052 ax_pthread_ok=yes
9053
9054 # However, older versions of Clang make a point of warning the user
9055 # that, in an invocation where only linking and no compilation is
9056 # taking place, the -pthread option has no effect ("argument unused
9057 # during compilation"). They expect -pthread to be passed in only
9058 # when source code is being compiled.
9059 #
9060 # Problem is, this is at odds with the way Automake and most other
9061 # C build frameworks function, which is that the same flags used in
9062 # compilation (CFLAGS) are also used in linking. Many systems
9063 # supported by AX_PTHREAD require exactly this for POSIX threads
9064 # support, and in fact it is often not straightforward to specify a
9065 # flag that is used only in the compilation phase and not in
9066 # linking. Such a scenario is extremely rare in practice.
9067 #
9068 # Even though use of the -pthread flag in linking would only print
9069 # a warning, this can be a nuisance for well-run software projects
9070 # that build with -Werror. So if the active version of Clang has
9071 # this misfeature, we search for an option to squash it.
9072
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9074$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9075if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077else
9078 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9079 # Create an alternate version of $ac_link that compiles and
9080 # links in two steps (.c -> .o, .o -> exe) instead of one
9081 # (.c -> exe), because the warning occurs only in the second
9082 # step
9083 ax_pthread_save_ac_link="$ac_link"
9084 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9085 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9086 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9087 ax_pthread_save_CFLAGS="$CFLAGS"
9088 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9089 if test "x$ax_pthread_try" = "xunknown"; then :
9090 break
9091fi
9092 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9093 ac_link="$ax_pthread_save_ac_link"
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095/* end confdefs.h. */
9096int main(void){return 0;}
9097_ACEOF
9098if ac_fn_c_try_link "$LINENO"; then :
9099 ac_link="$ax_pthread_2step_ac_link"
9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101/* end confdefs.h. */
9102int main(void){return 0;}
9103_ACEOF
9104if ac_fn_c_try_link "$LINENO"; then :
9105 break
9106fi
9107rm -f core conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9109
9110fi
9111rm -f core conftest.err conftest.$ac_objext \
9112 conftest$ac_exeext conftest.$ac_ext
9113 done
9114 ac_link="$ax_pthread_save_ac_link"
9115 CFLAGS="$ax_pthread_save_CFLAGS"
9116 if test "x$ax_pthread_try" = "x"; then :
9117 ax_pthread_try=no
9118fi
9119 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9120
9121fi
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9123$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9124
9125 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9126 no | unknown) ;;
9127 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9128 esac
9129
9130fi # $ax_pthread_clang = yes
9131
9132if test "x$ax_pthread_ok" = "xno"; then
9133for ax_pthread_try_flag in $ax_pthread_flags; do
9134
9135 case $ax_pthread_try_flag in
9136 none)
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9138$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9139 ;;
9140
9141 -mt,pthread)
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9143$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9144 PTHREAD_CFLAGS="-mt"
9145 PTHREAD_LIBS="-lpthread"
9146 ;;
9147
9148 -*)
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9150$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9151 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9152 ;;
9153
9154 pthread-config)
9155 # Extract the first word of "pthread-config", so it can be a program name with args.
9156set dummy pthread-config; ac_word=$2
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158$as_echo_n "checking for $ac_word... " >&6; }
9159if ${ac_cv_prog_ax_pthread_config+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161else
9162 if test -n "$ax_pthread_config"; then
9163 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9164else
9165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166for as_dir in $PATH
9167do
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9172 ac_cv_prog_ax_pthread_config="yes"
9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9175 fi
9176done
9177 done
9178IFS=$as_save_IFS
9179
9180 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9181fi
9182fi
9183ax_pthread_config=$ac_cv_prog_ax_pthread_config
9184if test -n "$ax_pthread_config"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9186$as_echo "$ax_pthread_config" >&6; }
9187else
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189$as_echo "no" >&6; }
9190fi
9191
9192
9193 if test "x$ax_pthread_config" = "xno"; then :
9194 continue
9195fi
9196 PTHREAD_CFLAGS="`pthread-config --cflags`"
9197 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9198 ;;
9199
9200 *)
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9202$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9203 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9204 ;;
9205 esac
9206
9207 ax_pthread_save_CFLAGS="$CFLAGS"
9208 ax_pthread_save_LIBS="$LIBS"
9209 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9210 LIBS="$PTHREAD_LIBS $LIBS"
9211
9212 # Check for various functions. We must include pthread.h,
9213 # since some functions may be macros. (On the Sequent, we
9214 # need a special flag -Kthread to make this header compile.)
9215 # We check for pthread_join because it is in -lpthread on IRIX
9216 # while pthread_create is in libc. We check for pthread_attr_init
9217 # due to DEC craziness with -lpthreads. We check for
9218 # pthread_cleanup_push because it is one of the few pthread
9219 # functions on Solaris that doesn't have a non-functional libc stub.
9220 # We try pthread_create on general principles.
9221
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223/* end confdefs.h. */
9224#include <pthread.h>
9225# if $ax_pthread_check_cond
9226# error "$ax_pthread_check_macro must be defined"
9227# endif
9228 static void routine(void *a) { a = 0; }
9229 static void *start_routine(void *a) { return a; }
9230int
9231main ()
9232{
9233pthread_t th; pthread_attr_t attr;
9234 pthread_create(&th, 0, start_routine, 0);
9235 pthread_join(th, 0);
9236 pthread_attr_init(&attr);
9237 pthread_cleanup_push(routine, 0);
9238 pthread_cleanup_pop(0) /* ; */
9239 ;
9240 return 0;
9241}
9242_ACEOF
9243if ac_fn_c_try_link "$LINENO"; then :
9244 ax_pthread_ok=yes
9245fi
9246rm -f core conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9248
9249 CFLAGS="$ax_pthread_save_CFLAGS"
9250 LIBS="$ax_pthread_save_LIBS"
9251
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9253$as_echo "$ax_pthread_ok" >&6; }
9254 if test "x$ax_pthread_ok" = "xyes"; then :
9255 break
9256fi
9257
9258 PTHREAD_LIBS=""
9259 PTHREAD_CFLAGS=""
9260done
9261fi
9262
9263# Various other checks:
9264if test "x$ax_pthread_ok" = "xyes"; then
9265 ax_pthread_save_CFLAGS="$CFLAGS"
9266 ax_pthread_save_LIBS="$LIBS"
9267 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9268 LIBS="$PTHREAD_LIBS $LIBS"
9269
9270 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9272$as_echo_n "checking for joinable pthread attribute... " >&6; }
9273if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9274 $as_echo_n "(cached) " >&6
9275else
9276 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9277 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279/* end confdefs.h. */
9280#include <pthread.h>
9281int
9282main ()
9283{
9284int attr = $ax_pthread_attr; return attr /* ; */
9285 ;
9286 return 0;
9287}
9288_ACEOF
9289if ac_fn_c_try_link "$LINENO"; then :
9290 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9291fi
9292rm -f core conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9294 done
9295
9296fi
9297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9298$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9299 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9300 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9301 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9302
9303cat >>confdefs.h <<_ACEOF
9304#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9305_ACEOF
9306
9307 ax_pthread_joinable_attr_defined=yes
9308
9309fi
9310
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9312$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9313if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9314 $as_echo_n "(cached) " >&6
9315else
9316 ax_cv_PTHREAD_SPECIAL_FLAGS=no
9317 case $host_os in
9318 solaris*)
9319 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9320 ;;
9321 esac
9322
9323fi
9324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9325$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9326 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9327 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9328 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9329 ax_pthread_special_flags_added=yes
9330fi
9331
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9333$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9334if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9335 $as_echo_n "(cached) " >&6
9336else
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338/* end confdefs.h. */
9339#include <pthread.h>
9340int
9341main ()
9342{
9343int i = PTHREAD_PRIO_INHERIT;
9344 ;
9345 return 0;
9346}
9347_ACEOF
9348if ac_fn_c_try_link "$LINENO"; then :
9349 ax_cv_PTHREAD_PRIO_INHERIT=yes
9350else
9351 ax_cv_PTHREAD_PRIO_INHERIT=no
9352fi
9353rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9355
9356fi
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9358$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9359 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9360 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9361
9362$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9363
9364 ax_pthread_prio_inherit_defined=yes
9365
9366fi
9367
9368 CFLAGS="$ax_pthread_save_CFLAGS"
9369 LIBS="$ax_pthread_save_LIBS"
9370
9371 # More AIX lossage: compile with *_r variant
9372 if test "x$GCC" != "xyes"; then
9373 case $host_os in
9374 aix*)
9375 case "x/$CC" in #(
9376 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9377 #handle absolute path differently from PATH based program lookup
9378 case "x$CC" in #(
9379 x/*) :
9380 if as_fn_executable_p ${CC}_r; then :
9381 PTHREAD_CC="${CC}_r"
9382fi ;; #(
9383 *) :
9384 for ac_prog in ${CC}_r
9385do
9386 # Extract the first word of "$ac_prog", so it can be a program name with args.
9387set dummy $ac_prog; ac_word=$2
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389$as_echo_n "checking for $ac_word... " >&6; }
9390if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9391 $as_echo_n "(cached) " >&6
9392else
9393 if test -n "$PTHREAD_CC"; then
9394 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9395else
9396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397for as_dir in $PATH
9398do
9399 IFS=$as_save_IFS
9400 test -z "$as_dir" && as_dir=.
9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9403 ac_cv_prog_PTHREAD_CC="$ac_prog"
9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9405 break 2
9406 fi
9407done
9408 done
9409IFS=$as_save_IFS
9410
9411fi
9412fi
9413PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9414if test -n "$PTHREAD_CC"; then
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9416$as_echo "$PTHREAD_CC" >&6; }
9417else
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419$as_echo "no" >&6; }
9420fi
9421
9422
9423 test -n "$PTHREAD_CC" && break
9424done
9425test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9426 ;;
9427esac ;; #(
9428 *) :
9429 ;;
9430esac
9431 ;;
9432 esac
9433 fi
9434fi
9435
9436test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9437
9438
9439
9440
9441
9442# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9443if test "x$ax_pthread_ok" = "xyes"; then
9444 threads=yes
9445 :
9446else
9447 ax_pthread_ok=no
9448 threads=no
9449fi
9450ac_ext=c
9451ac_cpp='$CPP $CPPFLAGS'
9452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9454ac_compiler_gnu=$ac_cv_c_compiler_gnu
9455
9456
9457fi
9458
9459if test "$threads" = "yes"; then
9460
9461$as_echo "#define ENABLE_THREADS 1" >>confdefs.h
9462
9463fi
9464 if test "$threads" = "yes"; then
9465 THREADS_TRUE=
9466 THREADS_FALSE='#'
9467else
9468 THREADS_TRUE='#'
9469 THREADS_FALSE=
9470fi
9471
9472
9473ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
9474if test "x$ac_cv_have_decl_basename" = xyes; then :
9475 ac_have_decl=1
9476else
9477 ac_have_decl=0
9478fi
9479
9480cat >>confdefs.h <<_ACEOF
9481#define HAVE_DECL_BASENAME $ac_have_decl
9482_ACEOF
9483ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
9484if test "x$ac_cv_have_decl_ffs" = xyes; then :
9485 ac_have_decl=1
9486else
9487 ac_have_decl=0
9488fi
9489
9490cat >>confdefs.h <<_ACEOF
9491#define HAVE_DECL_FFS $ac_have_decl
9492_ACEOF
9493ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
9494if test "x$ac_cv_have_decl_asprintf" = xyes; then :
9495 ac_have_decl=1
9496else
9497 ac_have_decl=0
9498fi
9499
9500cat >>confdefs.h <<_ACEOF
9501#define HAVE_DECL_ASPRINTF $ac_have_decl
9502_ACEOF
9503ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
9504if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
9505 ac_have_decl=1
9506else
9507 ac_have_decl=0
9508fi
9509
9510cat >>confdefs.h <<_ACEOF
9511#define HAVE_DECL_VASPRINTF $ac_have_decl
9512_ACEOF
9513ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9514if test "x$ac_cv_have_decl_snprintf" = xyes; then :
9515 ac_have_decl=1
9516else
9517 ac_have_decl=0
9518fi
9519
9520cat >>confdefs.h <<_ACEOF
9521#define HAVE_DECL_SNPRINTF $ac_have_decl
9522_ACEOF
9523ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9524if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
9525 ac_have_decl=1
9526else
9527 ac_have_decl=0
9528fi
9529
9530cat >>confdefs.h <<_ACEOF
9531#define HAVE_DECL_VSNPRINTF $ac_have_decl
9532_ACEOF
9533ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
9534if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
9535 ac_have_decl=1
9536else
9537 ac_have_decl=0
9538fi
9539
9540cat >>confdefs.h <<_ACEOF
9541#define HAVE_DECL_STRVERSCMP $ac_have_decl
9542_ACEOF
9543
9544
9545save_CFLAGS="$CFLAGS"
9546CFLAGS="$CFLAGS -Werror -gpubnames"
9547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548/* end confdefs.h. */
9549int i;
9550_ACEOF
9551if ac_fn_c_try_compile "$LINENO"; then :
9552 have_pubnames=yes
9553else
9554 have_pubnames=no
9555fi
9556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9557CFLAGS="$save_CFLAGS"
9558 if test "$have_pubnames" = "yes"; then
9559 HAVE_PUBNAMES_TRUE=
9560 HAVE_PUBNAMES_FALSE='#'
9561else
9562 HAVE_PUBNAMES_TRUE='#'
9563 HAVE_PUBNAMES_FALSE=
9564fi
9565
9566
9567save_CFLAGS="$CFLAGS"
9568CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
9569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570/* end confdefs.h. */
9571int i;
9572_ACEOF
9573if ac_fn_c_try_compile "$LINENO"; then :
9574 have_no_use_linker_plugin=yes
9575else
9576 have_no_use_linker_plugin=no
9577fi
9578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579CFLAGS="$save_CFLAGS"
9580 if test "$have_no_use_linker_plugin" = "yes"; then
9581 HAVE_NO_USE_LINKER_PLUGIN_TRUE=
9582 HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
9583else
9584 HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
9585 HAVE_NO_USE_LINKER_PLUGIN_FALSE=
9586fi
9587
9588
9589ac_ext=cpp
9590ac_cpp='$CXXCPP $CPPFLAGS'
9591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9594
9595
9596
9597ac_ext=cpp
9598ac_cpp='$CXXCPP $CPPFLAGS'
9599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9603$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9604if test -z "$CXXCPP"; then
9605 if ${ac_cv_prog_CXXCPP+:} false; then :
9606 $as_echo_n "(cached) " >&6
9607else
9608 # Double quotes because CXXCPP needs to be expanded
9609 for CXXCPP in "$CXX -E" "/lib/cpp"
9610 do
9611 ac_preproc_ok=false
9612for ac_cxx_preproc_warn_flag in '' yes
9613do
9614 # Use a header file that comes with gcc, so configuring glibc
9615 # with a fresh cross-compiler works.
9616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9617 # <limits.h> exists even on freestanding compilers.
9618 # On the NeXT, cc -E runs the code through the compiler's parser,
9619 # not just through cpp. "Syntax error" is here to catch this case.
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621/* end confdefs.h. */
9622#ifdef __STDC__
9623# include <limits.h>
9624#else
9625# include <assert.h>
9626#endif
9627 Syntax error
9628_ACEOF
9629if ac_fn_cxx_try_cpp "$LINENO"; then :
9630
9631else
9632 # Broken: fails on valid input.
9633continue
9634fi
9635rm -f conftest.err conftest.i conftest.$ac_ext
9636
81ecdfbb
RW
9637 # OK, works on sane cases. Now check whether nonexistent headers
9638 # can be detected and how.
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h. */
9641#include <ac_nonexistent.h>
3d857b98 9642_ACEOF
81ecdfbb
RW
9643if ac_fn_cxx_try_cpp "$LINENO"; then :
9644 # Broken: success on invalid input.
9645continue
3d857b98 9646else
81ecdfbb
RW
9647 # Passes both tests.
9648ac_preproc_ok=:
9649break
9650fi
d0ac1c44 9651rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
9652
9653done
9654# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 9655rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
9656if $ac_preproc_ok; then :
9657 break
9658fi
3d857b98 9659
81ecdfbb
RW
9660 done
9661 ac_cv_prog_CXXCPP=$CXXCPP
3d857b98
DK
9662
9663fi
81ecdfbb 9664 CXXCPP=$ac_cv_prog_CXXCPP
3d857b98 9665else
81ecdfbb
RW
9666 ac_cv_prog_CXXCPP=$CXXCPP
9667fi
9668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9669$as_echo "$CXXCPP" >&6; }
9670ac_preproc_ok=false
9671for ac_cxx_preproc_warn_flag in '' yes
9672do
9673 # Use a header file that comes with gcc, so configuring glibc
9674 # with a fresh cross-compiler works.
9675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9676 # <limits.h> exists even on freestanding compilers.
9677 # On the NeXT, cc -E runs the code through the compiler's parser,
9678 # not just through cpp. "Syntax error" is here to catch this case.
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d857b98 9680/* end confdefs.h. */
81ecdfbb
RW
9681#ifdef __STDC__
9682# include <limits.h>
9683#else
9684# include <assert.h>
3d857b98 9685#endif
81ecdfbb 9686 Syntax error
3d857b98 9687_ACEOF
81ecdfbb 9688if ac_fn_cxx_try_cpp "$LINENO"; then :
3d857b98 9689
81ecdfbb
RW
9690else
9691 # Broken: fails on valid input.
9692continue
3d857b98 9693fi
d0ac1c44 9694rm -f conftest.err conftest.i conftest.$ac_ext
3d857b98 9695
81ecdfbb
RW
9696 # OK, works on sane cases. Now check whether nonexistent headers
9697 # can be detected and how.
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699/* end confdefs.h. */
9700#include <ac_nonexistent.h>
3d857b98 9701_ACEOF
81ecdfbb
RW
9702if ac_fn_cxx_try_cpp "$LINENO"; then :
9703 # Broken: success on invalid input.
9704continue
9705else
9706 # Passes both tests.
9707ac_preproc_ok=:
9708break
9709fi
d0ac1c44 9710rm -f conftest.err conftest.i conftest.$ac_ext
3d857b98 9711
81ecdfbb
RW
9712done
9713# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 9714rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 9715if $ac_preproc_ok; then :
3d857b98
DK
9716
9717else
81ecdfbb
RW
9718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
9720as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
9721See \`config.log' for more details" "$LINENO" 5; }
81ecdfbb
RW
9722fi
9723
9724ac_ext=cpp
9725ac_cpp='$CXXCPP $CPPFLAGS'
9726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9729
9730
8356f2d0
CC
9731for ac_header in unordered_set unordered_map
9732do :
9733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9734ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 9735if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8356f2d0
CC
9736 cat >>confdefs.h <<_ACEOF
9737#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9738_ACEOF
9739
9740fi
9741
9742done
9743
81ecdfbb
RW
9744for ac_header in tr1/unordered_set tr1/unordered_map
9745do :
9746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9747ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 9748if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3d857b98 9749 cat >>confdefs.h <<_ACEOF
81ecdfbb 9750#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3d857b98
DK
9751_ACEOF
9752
3d857b98 9753fi
3d857b98 9754
81ecdfbb
RW
9755done
9756
9757for ac_header in ext/hash_map ext/hash_set
9758do :
9759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9760ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 9761if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
9762 cat >>confdefs.h <<_ACEOF
9763#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9764_ACEOF
3d857b98 9765
3d857b98 9766fi
3d857b98 9767
81ecdfbb
RW
9768done
9769
9770for ac_header in byteswap.h
9771do :
9772 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
d0ac1c44 9773if test "x$ac_cv_header_byteswap_h" = xyes; then :
81ecdfbb
RW
9774 cat >>confdefs.h <<_ACEOF
9775#define HAVE_BYTESWAP_H 1
3d857b98
DK
9776_ACEOF
9777
81ecdfbb 9778fi
3d857b98 9779
81ecdfbb
RW
9780done
9781
0bf402d5 9782
e755667f
NA
9783ac_fn_cxx_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
9784"
9785if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
9786 ac_have_decl=1
9787else
9788 ac_have_decl=0
9789fi
9790
9791cat >>confdefs.h <<_ACEOF
9792#define HAVE_DECL_BSWAP_16 $ac_have_decl
9793_ACEOF
9794ac_fn_cxx_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
9795"
9796if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
9797 ac_have_decl=1
9798else
9799 ac_have_decl=0
9800fi
9801
9802cat >>confdefs.h <<_ACEOF
9803#define HAVE_DECL_BSWAP_32 $ac_have_decl
9804_ACEOF
9805ac_fn_cxx_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
9806"
9807if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
9808 ac_have_decl=1
9809else
9810 ac_have_decl=0
9811fi
9812
9813cat >>confdefs.h <<_ACEOF
9814#define HAVE_DECL_BSWAP_64 $ac_have_decl
9815_ACEOF
9816
9817
0bf402d5
ILT
9818for ac_header in windows.h
9819do :
9820 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
d0ac1c44 9821if test "x$ac_cv_header_windows_h" = xyes; then :
0bf402d5
ILT
9822 cat >>confdefs.h <<_ACEOF
9823#define HAVE_WINDOWS_H 1
9824_ACEOF
9825
9826fi
9827
9828done
9829
9830for ac_header in dlfcn.h
9831do :
9832 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
d0ac1c44 9833if test "x$ac_cv_header_dlfcn_h" = xyes; then :
0bf402d5
ILT
9834 cat >>confdefs.h <<_ACEOF
9835#define HAVE_DLFCN_H 1
9836_ACEOF
6632e8cc 9837
0bf402d5
ILT
9838fi
9839
9840done
9841
6632e8cc
CC
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9843$as_echo_n "checking for library containing dlopen... " >&6; }
d0ac1c44 9844if ${ac_cv_search_dlopen+:} false; then :
6632e8cc
CC
9845 $as_echo_n "(cached) " >&6
9846else
9847 ac_func_search_save_LIBS=$LIBS
9848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849/* end confdefs.h. */
9850
9851/* Override any GCC internal prototype to avoid an error.
9852 Use char because int might match the return type of a GCC
9853 builtin and then its argument prototype would still apply. */
9854#ifdef __cplusplus
9855extern "C"
9856#endif
9857char dlopen ();
9858int
9859main ()
9860{
9861return dlopen ();
9862 ;
9863 return 0;
9864}
9865_ACEOF
9866for ac_lib in '' dl dld; do
9867 if test -z "$ac_lib"; then
9868 ac_res="none required"
9869 else
9870 ac_res=-l$ac_lib
9871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9872 fi
9873 if ac_fn_cxx_try_link "$LINENO"; then :
9874 ac_cv_search_dlopen=$ac_res
9875fi
9876rm -f core conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext
d0ac1c44 9878 if ${ac_cv_search_dlopen+:} false; then :
6632e8cc
CC
9879 break
9880fi
9881done
d0ac1c44 9882if ${ac_cv_search_dlopen+:} false; then :
6632e8cc
CC
9883
9884else
9885 ac_cv_search_dlopen=no
9886fi
9887rm conftest.$ac_ext
9888LIBS=$ac_func_search_save_LIBS
9889fi
9890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9891$as_echo "$ac_cv_search_dlopen" >&6; }
9892ac_res=$ac_cv_search_dlopen
9893if test "$ac_res" != no; then :
9894 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9895
9896fi
9897
9898case "$ac_cv_search_dlopen" in
9899 no*) DLOPEN_LIBS="";;
9900 *) DLOPEN_LIBS="$ac_cv_search_dlopen";;
9901esac
0bf402d5
ILT
9902
9903
f4238194 9904for ac_func in mallinfo posix_fallocate fallocate readv sysconf times mkdtemp
81ecdfbb
RW
9905do :
9906 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9907ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 9908if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3d857b98 9909 cat >>confdefs.h <<_ACEOF
81ecdfbb 9910#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3d857b98
DK
9911_ACEOF
9912
3d857b98 9913fi
81ecdfbb
RW
9914done
9915
9916ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
d0ac1c44 9917if test "x$ac_cv_have_decl_basename" = xyes; then :
81ecdfbb 9918 ac_have_decl=1
3d857b98 9919else
81ecdfbb
RW
9920 ac_have_decl=0
9921fi
3d857b98 9922
81ecdfbb
RW
9923cat >>confdefs.h <<_ACEOF
9924#define HAVE_DECL_BASENAME $ac_have_decl
3d857b98 9925_ACEOF
81ecdfbb 9926ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
d0ac1c44 9927if test "x$ac_cv_have_decl_ffs" = xyes; then :
81ecdfbb 9928 ac_have_decl=1
3d857b98 9929else
81ecdfbb 9930 ac_have_decl=0
3d857b98 9931fi
3d857b98
DK
9932
9933cat >>confdefs.h <<_ACEOF
81ecdfbb 9934#define HAVE_DECL_FFS $ac_have_decl
3d857b98 9935_ACEOF
81ecdfbb 9936ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
d0ac1c44 9937if test "x$ac_cv_have_decl_asprintf" = xyes; then :
81ecdfbb 9938 ac_have_decl=1
3d857b98 9939else
81ecdfbb 9940 ac_have_decl=0
3d857b98 9941fi
3d857b98 9942
81ecdfbb
RW
9943cat >>confdefs.h <<_ACEOF
9944#define HAVE_DECL_ASPRINTF $ac_have_decl
3d857b98 9945_ACEOF
81ecdfbb 9946ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
d0ac1c44 9947if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
81ecdfbb 9948 ac_have_decl=1
3d857b98 9949else
81ecdfbb 9950 ac_have_decl=0
3d857b98 9951fi
3d857b98
DK
9952
9953cat >>confdefs.h <<_ACEOF
81ecdfbb 9954#define HAVE_DECL_VASPRINTF $ac_have_decl
3d857b98 9955_ACEOF
81ecdfbb 9956ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
d0ac1c44 9957if test "x$ac_cv_have_decl_snprintf" = xyes; then :
81ecdfbb 9958 ac_have_decl=1
3d857b98 9959else
81ecdfbb 9960 ac_have_decl=0
3d857b98 9961fi
3d857b98 9962
81ecdfbb
RW
9963cat >>confdefs.h <<_ACEOF
9964#define HAVE_DECL_SNPRINTF $ac_have_decl
3d857b98 9965_ACEOF
81ecdfbb 9966ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
d0ac1c44 9967if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
81ecdfbb 9968 ac_have_decl=1
3d857b98 9969else
81ecdfbb 9970 ac_have_decl=0
3d857b98 9971fi
3d857b98
DK
9972
9973cat >>confdefs.h <<_ACEOF
81ecdfbb 9974#define HAVE_DECL_VSNPRINTF $ac_have_decl
3d857b98 9975_ACEOF
81ecdfbb 9976ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
d0ac1c44 9977if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
81ecdfbb 9978 ac_have_decl=1
3d857b98 9979else
81ecdfbb
RW
9980 ac_have_decl=0
9981fi
3d857b98 9982
81ecdfbb
RW
9983cat >>confdefs.h <<_ACEOF
9984#define HAVE_DECL_STRVERSCMP $ac_have_decl
9985_ACEOF
9986ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
d0ac1c44 9987if test "x$ac_cv_have_decl_strndup" = xyes; then :
81ecdfbb
RW
9988 ac_have_decl=1
9989else
9990 ac_have_decl=0
9991fi
3d857b98 9992
81ecdfbb
RW
9993cat >>confdefs.h <<_ACEOF
9994#define HAVE_DECL_STRNDUP $ac_have_decl
9995_ACEOF
9996ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
d0ac1c44 9997if test "x$ac_cv_have_decl_memmem" = xyes; then :
81ecdfbb
RW
9998 ac_have_decl=1
9999else
10000 ac_have_decl=0
3d857b98
DK
10001fi
10002
81ecdfbb
RW
10003cat >>confdefs.h <<_ACEOF
10004#define HAVE_DECL_MEMMEM $ac_have_decl
10005_ACEOF
3d857b98 10006
e44fcf3b 10007
40fde488
CD
10008# Use of ::std::tr1::unordered_map::rehash causes undefined symbols
10009# at link time with some versions of GCC.
81ecdfbb
RW
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
10011$as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
d0ac1c44 10012if ${gold_cv_unordered_map_rehash+:} false; then :
81ecdfbb 10013 $as_echo_n "(cached) " >&6
40fde488 10014else
81ecdfbb 10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40fde488
CD
10016/* end confdefs.h. */
10017
10018#include <tr1/unordered_map>
10019void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
10020
10021int
10022main ()
10023{
10024
10025 ;
10026 return 0;
10027}
10028_ACEOF
81ecdfbb 10029if ac_fn_cxx_try_link "$LINENO"; then :
40fde488
CD
10030 gold_cv_unordered_map_rehash=yes
10031else
81ecdfbb 10032 gold_cv_unordered_map_rehash=no
40fde488 10033fi
81ecdfbb
RW
10034rm -f core conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
40fde488 10036fi
81ecdfbb
RW
10037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
10038$as_echo "$gold_cv_unordered_map_rehash" >&6; }
40fde488
CD
10039if test "$gold_cv_unordered_map_rehash" = "yes"; then
10040
81ecdfbb 10041$as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
40fde488
CD
10042
10043fi
10044
81c82a68
ILT
10045# Use of tr1/unordered_map with off_t as a key is not supported on GCC
10046# 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
10047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
10048$as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
d0ac1c44 10049if ${gold_cv_hash_off_t+:} false; then :
81c82a68
ILT
10050 $as_echo_n "(cached) " >&6
10051else
10052 CXXFLAGS_hold=$CXXFLAGS
10053CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
10054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055/* end confdefs.h. */
10056
10057#include <sys/types.h>
10058#include <tr1/unordered_map>
10059std::tr1::hash<off_t> h;
10060
10061_ACEOF
10062if ac_fn_cxx_try_compile "$LINENO"; then :
10063 gold_cv_hash_off_t=yes
10064else
10065 gold_cv_hash_off_t=no
10066fi
10067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26e4ef59 10068CXXFLAGS=$CXXFLAGS_hold
81c82a68
ILT
10069fi
10070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
10071$as_echo "$gold_cv_hash_off_t" >&6; }
10072if test "$gold_cv_hash_off_t" = "yes"; then
10073
10074$as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
10075
10076fi
10077
04bf7072
ILT
10078# gcc 4.3.0 doesn't recognize the printf attribute on a template
10079# function. Check for that. This is gcc bug 35546. This test can
10080# probably be removed after the bug has been fixed for a while.
81ecdfbb
RW
10081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
10082$as_echo_n "checking whether we can use attributes with template functions... " >&6; }
d0ac1c44 10083if ${gold_cv_template_attribute+:} false; then :
81ecdfbb 10084 $as_echo_n "(cached) " >&6
04bf7072 10085else
81ecdfbb
RW
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087/* end confdefs.h. */
04bf7072
ILT
10088
10089template<typename T> extern void foo(const char*, ...)
10090 __attribute__ ((__format__ (__printf__, 1, 2)));
10091template<typename T> void foo(const char* format, ...) {}
10092void bar() { foo<int>("%s\n", "foo"); }
10093
10094_ACEOF
81ecdfbb 10095if ac_fn_cxx_try_compile "$LINENO"; then :
04bf7072
ILT
10096 gold_cv_template_attribute=yes
10097else
81ecdfbb 10098 gold_cv_template_attribute=no
04bf7072 10099fi
81ecdfbb 10100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
04bf7072 10101fi
81ecdfbb
RW
10102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
10103$as_echo "$gold_cv_template_attribute" >&6; }
04bf7072
ILT
10104if test "$gold_cv_template_attribute" = "yes"; then
10105
81ecdfbb 10106$as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
04bf7072
ILT
10107
10108fi
10109
5d329b7d
ILT
10110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
10111$as_echo_n "checking for struct stat::st_mtim.... " >&6; }
d0ac1c44 10112if ${gold_cv_stat_st_mtim+:} false; then :
5d329b7d
ILT
10113 $as_echo_n "(cached) " >&6
10114else
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116/* end confdefs.h. */
10117
10118#include <sys/stat.h>
10119long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
10120
10121int
10122main ()
10123{
10124
10125 ;
10126 return 0;
10127}
10128_ACEOF
10129if ac_fn_cxx_try_compile "$LINENO"; then :
10130 gold_cv_stat_st_mtim=yes
10131else
10132 gold_cv_stat_st_mtim=no
10133fi
10134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10135fi
10136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
10137$as_echo "$gold_cv_stat_st_mtim" >&6; }
10138if test "$gold_cv_stat_st_mtim" = "yes"; then
10139
10140$as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
10141
10142fi
10143
54dc6425
ILT
10144ac_ext=c
10145ac_cpp='$CPP $CPPFLAGS'
10146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10148ac_compiler_gnu=$ac_cv_c_compiler_gnu
10149
10150
58797674
RM
10151for ac_header in locale.h
10152do :
10153 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
d0ac1c44 10154if test "x$ac_cv_header_locale_h" = xyes; then :
58797674
RM
10155 cat >>confdefs.h <<_ACEOF
10156#define HAVE_LOCALE_H 1
10157_ACEOF
10158
10159fi
10160
10161done
10162
44350750
NC
10163for ac_func in setlocale
10164do :
10165 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
d0ac1c44 10166if test "x$ac_cv_func_setlocale" = xyes; then :
44350750
NC
10167 cat >>confdefs.h <<_ACEOF
10168#define HAVE_SETLOCALE 1
10169_ACEOF
10170
10171fi
10172done
10173
10174
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10176$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 10177if ${am_cv_val_LC_MESSAGES+:} false; then :
44350750
NC
10178 $as_echo_n "(cached) " >&6
10179else
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181/* end confdefs.h. */
10182#include <locale.h>
10183int
10184main ()
10185{
10186return LC_MESSAGES
10187 ;
10188 return 0;
10189}
10190_ACEOF
10191if ac_fn_c_try_link "$LINENO"; then :
10192 am_cv_val_LC_MESSAGES=yes
10193else
10194 am_cv_val_LC_MESSAGES=no
10195fi
10196rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198fi
10199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10200$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10201 if test $am_cv_val_LC_MESSAGES = yes; then
10202
10203$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10204
10205 fi
10206
10207
81ecdfbb
RW
10208
10209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10210$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10211 # Check whether --enable-maintainer-mode was given.
10212if test "${enable_maintainer_mode+set}" = set; then :
10213 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
bae7f79e
ILT
10214else
10215 USE_MAINTAINER_MODE=no
81ecdfbb 10216fi
bae7f79e 10217
81ecdfbb
RW
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10219$as_echo "$USE_MAINTAINER_MODE" >&6; }
10220 if test $USE_MAINTAINER_MODE = yes; then
bae7f79e
ILT
10221 MAINTAINER_MODE_TRUE=
10222 MAINTAINER_MODE_FALSE='#'
10223else
10224 MAINTAINER_MODE_TRUE='#'
10225 MAINTAINER_MODE_FALSE=
10226fi
10227
10228 MAINT=$MAINTAINER_MODE_TRUE
10229
10230
10231
81ecdfbb
RW
10232ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
10233
bae7f79e
ILT
10234cat >confcache <<\_ACEOF
10235# This file is a shell script that caches the results of configure
10236# tests run on this system so they can be shared between configure
10237# scripts and configure runs, see configure's option --config-cache.
10238# It is not useful on other systems. If it contains results you don't
10239# want to keep, you may remove or edit it.
10240#
10241# config.status only pays attention to the cache file if you give it
10242# the --recheck option to rerun configure.
10243#
10244# `ac_cv_env_foo' variables (set or unset) will be overridden when
10245# loading this file, other *unset* `ac_cv_foo' will be assigned the
10246# following values.
10247
10248_ACEOF
10249
10250# The following way of writing the cache mishandles newlines in values,
10251# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 10252# So, we kill variables containing newlines.
bae7f79e
ILT
10253# Ultrix sh set writes to stderr and can't be redirected directly,
10254# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
10255(
10256 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10257 eval ac_val=\$$ac_var
10258 case $ac_val in #(
10259 *${as_nl}*)
10260 case $ac_var in #(
10261 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10262$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10263 esac
10264 case $ac_var in #(
10265 _ | IFS | as_nl) ;; #(
10266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10267 *) { eval $ac_var=; unset $ac_var;} ;;
10268 esac ;;
10269 esac
10270 done
10271
bae7f79e 10272 (set) 2>&1 |
81ecdfbb
RW
10273 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10274 *${as_nl}ac_space=\ *)
10275 # `set' does not quote correctly, so add quotes: double-quote
10276 # substitution turns \\\\ into \\, and sed turns \\ into \.
bae7f79e
ILT
10277 sed -n \
10278 "s/'/'\\\\''/g;
10279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 10280 ;; #(
bae7f79e
ILT
10281 *)
10282 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 10283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bae7f79e 10284 ;;
81ecdfbb
RW
10285 esac |
10286 sort
10287) |
bae7f79e 10288 sed '
81ecdfbb 10289 /^ac_cv_env_/b end
bae7f79e 10290 t clear
81ecdfbb 10291 :clear
bae7f79e
ILT
10292 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10293 t end
81ecdfbb
RW
10294 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10295 :end' >>confcache
10296if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10297 if test -w "$cache_file"; then
d0ac1c44 10298 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10300$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
10301 if test ! -f "$cache_file" || test -h "$cache_file"; then
10302 cat confcache >"$cache_file"
10303 else
10304 case $cache_file in #(
10305 */* | ?:*)
10306 mv -f confcache "$cache_file"$$ &&
10307 mv -f "$cache_file"$$ "$cache_file" ;; #(
10308 *)
10309 mv -f confcache "$cache_file" ;;
10310 esac
10311 fi
10312 fi
bae7f79e 10313 else
81ecdfbb
RW
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10315$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
bae7f79e
ILT
10316 fi
10317fi
10318rm -f confcache
10319
10320test "x$prefix" = xNONE && prefix=$ac_default_prefix
10321# Let make expand exec_prefix.
10322test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10323
bae7f79e
ILT
10324DEFS=-DHAVE_CONFIG_H
10325
10326ac_libobjs=
10327ac_ltlibobjs=
10328for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10329 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
10330 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10331 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10332 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10333 # will be set to the directory where LIBOBJS objects are built.
10334 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10335 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
bae7f79e
ILT
10336done
10337LIBOBJS=$ac_libobjs
10338
10339LTLIBOBJS=$ac_ltlibobjs
10340
10341
d0ac1c44
SM
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10343$as_echo_n "checking that generated files are newer than configure... " >&6; }
10344 if test -n "$am_sleep_pid"; then
10345 # Hide warnings about reused PIDs.
10346 wait $am_sleep_pid 2>/dev/null
10347 fi
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10349$as_echo "done" >&6; }
81ecdfbb
RW
10350 if test -n "$EXEEXT"; then
10351 am__EXEEXT_TRUE=
10352 am__EXEEXT_FALSE='#'
10353else
10354 am__EXEEXT_TRUE='#'
10355 am__EXEEXT_FALSE=
10356fi
10357
24538276 10358if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
d0ac1c44 10359 as_fn_error $? "conditional \"AMDEP\" was never defined.
24538276
CC
10360Usually this means the macro was only invoked conditionally." "$LINENO" 5
10361fi
10362if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
d0ac1c44 10363 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24538276
CC
10364Usually this means the macro was only invoked conditionally." "$LINENO" 5
10365fi
89fc3421 10366if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 10367 as_fn_error $? "conditional \"PLUGINS\" was never defined.
81ecdfbb 10368Usually this means the macro was only invoked conditionally." "$LINENO" 5
89fc3421 10369fi
053a4d68 10370if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
d0ac1c44 10371 as_fn_error $? "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
053a4d68
JY
10372Usually this means the macro was only invoked conditionally." "$LINENO" 5
10373fi
364c7fa5 10374if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
d0ac1c44 10375 as_fn_error $? "conditional \"DEFAULT_TARGET_ARM\" was never defined.
364c7fa5
ILT
10376Usually this means the macro was only invoked conditionally." "$LINENO" 5
10377fi
10378if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
d0ac1c44 10379 as_fn_error $? "conditional \"DEFAULT_TARGET_I386\" was never defined.
364c7fa5
ILT
10380Usually this means the macro was only invoked conditionally." "$LINENO" 5
10381fi
10382if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
d0ac1c44 10383 as_fn_error $? "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
364c7fa5
ILT
10384Usually this means the macro was only invoked conditionally." "$LINENO" 5
10385fi
10386if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
d0ac1c44 10387 as_fn_error $? "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
364c7fa5
ILT
10388Usually this means the macro was only invoked conditionally." "$LINENO" 5
10389fi
e79a4bad 10390if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
d0ac1c44 10391 as_fn_error $? "conditional \"DEFAULT_TARGET_S390\" was never defined.
e79a4bad
MK
10392Usually this means the macro was only invoked conditionally." "$LINENO" 5
10393fi
364c7fa5 10394if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
d0ac1c44 10395 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
364c7fa5
ILT
10396Usually this means the macro was only invoked conditionally." "$LINENO" 5
10397fi
4fc1b9d4 10398if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
d0ac1c44 10399 as_fn_error $? "conditional \"DEFAULT_TARGET_X32\" was never defined.
4fc1b9d4
L
10400Usually this means the macro was only invoked conditionally." "$LINENO" 5
10401fi
ad961eab 10402if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
d0ac1c44 10403 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
ad961eab
L
10404Usually this means the macro was only invoked conditionally." "$LINENO" 5
10405fi
0a6f1bf2 10406if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
d0ac1c44 10407 as_fn_error $? "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
0a6f1bf2
AM
10408Usually this means the macro was only invoked conditionally." "$LINENO" 5
10409fi
9810d34d 10410if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
d0ac1c44 10411 as_fn_error $? "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
9810d34d
SS
10412Usually this means the macro was only invoked conditionally." "$LINENO" 5
10413fi
bae7f79e 10414if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
d0ac1c44 10415 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
81ecdfbb 10416Usually this means the macro was only invoked conditionally." "$LINENO" 5
bae7f79e
ILT
10417fi
10418if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
d0ac1c44 10419 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
81ecdfbb 10420Usually this means the macro was only invoked conditionally." "$LINENO" 5
bae7f79e 10421fi
81ecdfbb 10422
537b5f51 10423if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
d0ac1c44 10424 as_fn_error $? "conditional \"NATIVE_LINKER\" was never defined.
81ecdfbb 10425Usually this means the macro was only invoked conditionally." "$LINENO" 5
537b5f51
ILT
10426fi
10427if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
d0ac1c44 10428 as_fn_error $? "conditional \"GCC\" was never defined.
81ecdfbb 10429Usually this means the macro was only invoked conditionally." "$LINENO" 5
537b5f51 10430fi
eb373049 10431if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
d0ac1c44 10432 as_fn_error $? "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
eb373049 10433Usually this means the macro was only invoked conditionally." "$LINENO" 5
328c7c2f
ILT
10434fi
10435if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
d0ac1c44 10436 as_fn_error $? "conditional \"HAVE_STATIC\" was never defined.
328c7c2f 10437Usually this means the macro was only invoked conditionally." "$LINENO" 5
eb373049 10438fi
63402fe4 10439if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
d0ac1c44 10440 as_fn_error $? "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
81ecdfbb 10441Usually this means the macro was only invoked conditionally." "$LINENO" 5
63402fe4 10442fi
8a5e3e08 10443if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
d0ac1c44 10444 as_fn_error $? "conditional \"MCMODEL_MEDIUM\" was never defined.
81ecdfbb 10445Usually this means the macro was only invoked conditionally." "$LINENO" 5
8a5e3e08 10446fi
6eee141f 10447if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
d0ac1c44 10448 as_fn_error $? "conditional \"TLS\" was never defined.
81ecdfbb 10449Usually this means the macro was only invoked conditionally." "$LINENO" 5
6eee141f 10450fi
097ec620 10451if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
d0ac1c44 10452 as_fn_error $? "conditional \"STATIC_TLS\" was never defined.
81ecdfbb 10453Usually this means the macro was only invoked conditionally." "$LINENO" 5
097ec620 10454fi
155a0dd7 10455if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
d0ac1c44 10456 as_fn_error $? "conditional \"OMP_SUPPORT\" was never defined.
81ecdfbb 10457Usually this means the macro was only invoked conditionally." "$LINENO" 5
155a0dd7 10458fi
c2b45e22 10459if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
d0ac1c44 10460 as_fn_error $? "conditional \"TLS_GNU2_DIALECT\" was never defined.
81ecdfbb 10461Usually this means the macro was only invoked conditionally." "$LINENO" 5
c2b45e22
CC
10462fi
10463if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
d0ac1c44 10464 as_fn_error $? "conditional \"TLS_DESCRIPTORS\" was never defined.
81ecdfbb 10465Usually this means the macro was only invoked conditionally." "$LINENO" 5
c2b45e22 10466fi
7223e9ca 10467if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
d0ac1c44 10468 as_fn_error $? "conditional \"IFUNC\" was never defined.
7223e9ca
ILT
10469Usually this means the macro was only invoked conditionally." "$LINENO" 5
10470fi
ebb300b2 10471if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
d0ac1c44 10472 as_fn_error $? "conditional \"IFUNC_STATIC\" was never defined.
ebb300b2
CC
10473Usually this means the macro was only invoked conditionally." "$LINENO" 5
10474fi
c8dc28bc
CC
10475if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
10476 as_fn_error $? "conditional \"THREADS\" was never defined.
10477Usually this means the macro was only invoked conditionally." "$LINENO" 5
10478fi
f1415016 10479if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
d0ac1c44 10480 as_fn_error $? "conditional \"HAVE_PUBNAMES\" was never defined.
f1415016
CC
10481Usually this means the macro was only invoked conditionally." "$LINENO" 5
10482fi
ae447ddd 10483if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
d0ac1c44 10484 as_fn_error $? "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
ae447ddd
CC
10485Usually this means the macro was only invoked conditionally." "$LINENO" 5
10486fi
bae7f79e 10487if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 10488 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 10489Usually this means the macro was only invoked conditionally." "$LINENO" 5
bae7f79e
ILT
10490fi
10491
d0ac1c44 10492: "${CONFIG_STATUS=./config.status}"
81ecdfbb 10493ac_write_fail=0
bae7f79e
ILT
10494ac_clean_files_save=$ac_clean_files
10495ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
10496{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10497$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10498as_write_fail=0
10499cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
bae7f79e
ILT
10500#! $SHELL
10501# Generated by $as_me.
10502# Run this file to recreate the current configuration.
10503# Compiler output produced by configure, useful for debugging
10504# configure, is in config.log if it exists.
10505
10506debug=false
10507ac_cs_recheck=false
10508ac_cs_silent=false
bae7f79e 10509
81ecdfbb
RW
10510SHELL=\${CONFIG_SHELL-$SHELL}
10511export SHELL
10512_ASEOF
10513cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10514## -------------------- ##
10515## M4sh Initialization. ##
10516## -------------------- ##
bae7f79e 10517
81ecdfbb
RW
10518# Be more Bourne compatible
10519DUALCASE=1; export DUALCASE # for MKS sh
10520if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bae7f79e
ILT
10521 emulate sh
10522 NULLCMD=:
81ecdfbb 10523 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bae7f79e
ILT
10524 # is contrary to our usage. Disable this feature.
10525 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
10526 setopt NO_GLOB_SUBST
10527else
10528 case `(set -o) 2>/dev/null` in #(
10529 *posix*) :
10530 set -o posix ;; #(
10531 *) :
10532 ;;
10533esac
bae7f79e 10534fi
bae7f79e 10535
81ecdfbb
RW
10536
10537as_nl='
10538'
10539export as_nl
10540# Printing a long string crashes Solaris 7 /usr/bin/printf.
10541as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10542as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10543as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10544# Prefer a ksh shell builtin over an external printf program on Solaris,
10545# but without wasting forks for bash or zsh.
10546if test -z "$BASH_VERSION$ZSH_VERSION" \
10547 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10548 as_echo='print -r --'
10549 as_echo_n='print -rn --'
10550elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10551 as_echo='printf %s\n'
10552 as_echo_n='printf %s'
10553else
10554 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10555 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10556 as_echo_n='/usr/ucb/echo -n'
10557 else
10558 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10559 as_echo_n_body='eval
10560 arg=$1;
10561 case $arg in #(
10562 *"$as_nl"*)
10563 expr "X$arg" : "X\\(.*\\)$as_nl";
10564 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10565 esac;
10566 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10567 '
10568 export as_echo_n_body
10569 as_echo_n='sh -c $as_echo_n_body as_echo'
10570 fi
10571 export as_echo_body
10572 as_echo='sh -c $as_echo_body as_echo'
10573fi
10574
10575# The user is always right.
10576if test "${PATH_SEPARATOR+set}" != set; then
10577 PATH_SEPARATOR=:
10578 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10579 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10580 PATH_SEPARATOR=';'
10581 }
bae7f79e
ILT
10582fi
10583
10584
81ecdfbb
RW
10585# IFS
10586# We need space, tab and new line, in precisely that order. Quoting is
10587# there to prevent editors from complaining about space-tab.
10588# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10589# splitting by setting IFS to empty value.)
10590IFS=" "" $as_nl"
10591
10592# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 10593as_myself=
81ecdfbb
RW
10594case $0 in #((
10595 *[\\/]* ) as_myself=$0 ;;
10596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597for as_dir in $PATH
10598do
10599 IFS=$as_save_IFS
10600 test -z "$as_dir" && as_dir=.
10601 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10602 done
10603IFS=$as_save_IFS
10604
10605 ;;
10606esac
10607# We did not find ourselves, most probably we were run as `sh COMMAND'
10608# in which case we are not to be found in the path.
10609if test "x$as_myself" = x; then
10610 as_myself=$0
10611fi
10612if test ! -f "$as_myself"; then
10613 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10614 exit 1
10615fi
10616
10617# Unset variables that we do not need and which cause bugs (e.g. in
10618# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10619# suppresses any "Segmentation fault" message there. '((' could
10620# trigger a bug in pdksh 5.2.14.
10621for as_var in BASH_ENV ENV MAIL MAILPATH
10622do eval test x\${$as_var+set} = xset \
10623 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10624done
bae7f79e
ILT
10625PS1='$ '
10626PS2='> '
10627PS4='+ '
10628
10629# NLS nuisances.
81ecdfbb
RW
10630LC_ALL=C
10631export LC_ALL
10632LANGUAGE=C
10633export LANGUAGE
10634
10635# CDPATH.
10636(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10637
10638
d0ac1c44
SM
10639# as_fn_error STATUS ERROR [LINENO LOG_FD]
10640# ----------------------------------------
81ecdfbb
RW
10641# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10642# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 10643# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
10644as_fn_error ()
10645{
d0ac1c44
SM
10646 as_status=$1; test $as_status -eq 0 && as_status=1
10647 if test "$4"; then
10648 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10649 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
bae7f79e 10650 fi
d0ac1c44 10651 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
10652 as_fn_exit $as_status
10653} # as_fn_error
10654
10655
10656# as_fn_set_status STATUS
10657# -----------------------
10658# Set $? to STATUS, without forking.
10659as_fn_set_status ()
10660{
10661 return $1
10662} # as_fn_set_status
bae7f79e 10663
81ecdfbb
RW
10664# as_fn_exit STATUS
10665# -----------------
10666# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10667as_fn_exit ()
10668{
10669 set +e
10670 as_fn_set_status $1
10671 exit $1
10672} # as_fn_exit
10673
10674# as_fn_unset VAR
10675# ---------------
10676# Portably unset VAR.
10677as_fn_unset ()
10678{
10679 { eval $1=; unset $1;}
10680}
10681as_unset=as_fn_unset
10682# as_fn_append VAR VALUE
10683# ----------------------
10684# Append the text in VALUE to the end of the definition contained in VAR. Take
10685# advantage of any shell optimizations that allow amortized linear growth over
10686# repeated appends, instead of the typical quadratic growth present in naive
10687# implementations.
10688if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10689 eval 'as_fn_append ()
10690 {
10691 eval $1+=\$2
10692 }'
10693else
10694 as_fn_append ()
10695 {
10696 eval $1=\$$1\$2
10697 }
10698fi # as_fn_append
10699
10700# as_fn_arith ARG...
10701# ------------------
10702# Perform arithmetic evaluation on the ARGs, and store the result in the
10703# global $as_val. Take advantage of shells that can avoid forks. The arguments
10704# must be portable across $(()) and expr.
10705if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10706 eval 'as_fn_arith ()
10707 {
10708 as_val=$(( $* ))
10709 }'
10710else
10711 as_fn_arith ()
10712 {
10713 as_val=`expr "$@" || test $? -eq 1`
10714 }
10715fi # as_fn_arith
10716
10717
10718if expr a : '\(a\)' >/dev/null 2>&1 &&
10719 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bae7f79e
ILT
10720 as_expr=expr
10721else
10722 as_expr=false
10723fi
10724
81ecdfbb 10725if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bae7f79e
ILT
10726 as_basename=basename
10727else
10728 as_basename=false
10729fi
10730
81ecdfbb
RW
10731if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10732 as_dirname=dirname
10733else
10734 as_dirname=false
10735fi
bae7f79e 10736
81ecdfbb 10737as_me=`$as_basename -- "$0" ||
bae7f79e
ILT
10738$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10739 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
10740 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10741$as_echo X/"$0" |
10742 sed '/^.*\/\([^/][^/]*\)\/*$/{
10743 s//\1/
10744 q
10745 }
10746 /^X\/\(\/\/\)$/{
10747 s//\1/
10748 q
10749 }
10750 /^X\/\(\/\).*/{
10751 s//\1/
10752 q
10753 }
10754 s/.*/./; q'`
bae7f79e 10755
bae7f79e
ILT
10756# Avoid depending upon Character Ranges.
10757as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10758as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10759as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10760as_cr_digits='0123456789'
10761as_cr_alnum=$as_cr_Letters$as_cr_digits
10762
81ecdfbb
RW
10763ECHO_C= ECHO_N= ECHO_T=
10764case `echo -n x` in #(((((
10765-n*)
10766 case `echo 'xy\c'` in
10767 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10768 xy) ECHO_C='\c';;
10769 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10770 ECHO_T=' ';;
10771 esac;;
10772*)
10773 ECHO_N='-n';;
bae7f79e
ILT
10774esac
10775
81ecdfbb
RW
10776rm -f conf$$ conf$$.exe conf$$.file
10777if test -d conf$$.dir; then
10778 rm -f conf$$.dir/conf$$.file
bae7f79e 10779else
81ecdfbb
RW
10780 rm -f conf$$.dir
10781 mkdir conf$$.dir 2>/dev/null
bae7f79e 10782fi
81ecdfbb
RW
10783if (echo >conf$$.file) 2>/dev/null; then
10784 if ln -s conf$$.file conf$$ 2>/dev/null; then
bae7f79e 10785 as_ln_s='ln -s'
81ecdfbb
RW
10786 # ... but there are two gotchas:
10787 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10788 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 10789 # In both cases, we have to default to `cp -pR'.
81ecdfbb 10790 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 10791 as_ln_s='cp -pR'
81ecdfbb
RW
10792 elif ln conf$$.file conf$$ 2>/dev/null; then
10793 as_ln_s=ln
10794 else
d0ac1c44 10795 as_ln_s='cp -pR'
bae7f79e 10796 fi
bae7f79e 10797else
d0ac1c44 10798 as_ln_s='cp -pR'
bae7f79e 10799fi
81ecdfbb
RW
10800rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10801rmdir conf$$.dir 2>/dev/null
10802
10803
10804# as_fn_mkdir_p
10805# -------------
10806# Create "$as_dir" as a directory, including parents if necessary.
10807as_fn_mkdir_p ()
10808{
10809
10810 case $as_dir in #(
10811 -*) as_dir=./$as_dir;;
10812 esac
10813 test -d "$as_dir" || eval $as_mkdir_p || {
10814 as_dirs=
10815 while :; do
10816 case $as_dir in #(
10817 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10818 *) as_qdir=$as_dir;;
10819 esac
10820 as_dirs="'$as_qdir' $as_dirs"
10821 as_dir=`$as_dirname -- "$as_dir" ||
10822$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10823 X"$as_dir" : 'X\(//\)[^/]' \| \
10824 X"$as_dir" : 'X\(//\)$' \| \
10825 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10826$as_echo X"$as_dir" |
10827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10828 s//\1/
10829 q
10830 }
10831 /^X\(\/\/\)[^/].*/{
10832 s//\1/
10833 q
10834 }
10835 /^X\(\/\/\)$/{
10836 s//\1/
10837 q
10838 }
10839 /^X\(\/\).*/{
10840 s//\1/
10841 q
10842 }
10843 s/.*/./; q'`
10844 test -d "$as_dir" && break
10845 done
10846 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 10847 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 10848
bae7f79e 10849
81ecdfbb 10850} # as_fn_mkdir_p
bae7f79e 10851if mkdir -p . 2>/dev/null; then
81ecdfbb 10852 as_mkdir_p='mkdir -p "$as_dir"'
bae7f79e
ILT
10853else
10854 test -d ./-p && rmdir ./-p
10855 as_mkdir_p=false
10856fi
10857
d0ac1c44
SM
10858
10859# as_fn_executable_p FILE
10860# -----------------------
10861# Test if FILE is an executable regular file.
10862as_fn_executable_p ()
10863{
10864 test -f "$1" && test -x "$1"
10865} # as_fn_executable_p
10866as_test_x='test -x'
10867as_executable_p=as_fn_executable_p
bae7f79e
ILT
10868
10869# Sed expression to map a string onto a valid CPP name.
10870as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10871
10872# Sed expression to map a string onto a valid variable name.
10873as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10874
10875
bae7f79e 10876exec 6>&1
81ecdfbb
RW
10877## ----------------------------------- ##
10878## Main body of $CONFIG_STATUS script. ##
10879## ----------------------------------- ##
10880_ASEOF
10881test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
bae7f79e 10882
81ecdfbb
RW
10883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10884# Save the log message, to keep $0 and so on meaningful, and to
bae7f79e 10885# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
10886# values after options handling.
10887ac_log="
8486ee48 10888This file was extended by gold $as_me 0.1, which was
d0ac1c44 10889generated by GNU Autoconf 2.69. Invocation command line was
bae7f79e
ILT
10890
10891 CONFIG_FILES = $CONFIG_FILES
10892 CONFIG_HEADERS = $CONFIG_HEADERS
10893 CONFIG_LINKS = $CONFIG_LINKS
10894 CONFIG_COMMANDS = $CONFIG_COMMANDS
10895 $ $0 $@
10896
81ecdfbb
RW
10897on `(hostname || uname -n) 2>/dev/null | sed 1q`
10898"
10899
bae7f79e
ILT
10900_ACEOF
10901
81ecdfbb
RW
10902case $ac_config_files in *"
10903"*) set x $ac_config_files; shift; ac_config_files=$*;;
10904esac
bae7f79e 10905
81ecdfbb
RW
10906case $ac_config_headers in *"
10907"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10908esac
bae7f79e 10909
bae7f79e 10910
81ecdfbb
RW
10911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10912# Files that config.status was made for.
10913config_files="$ac_config_files"
10914config_headers="$ac_config_headers"
10915config_commands="$ac_config_commands"
bae7f79e 10916
81ecdfbb 10917_ACEOF
bae7f79e 10918
81ecdfbb 10919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bae7f79e 10920ac_cs_usage="\
81ecdfbb
RW
10921\`$as_me' instantiates files and other configuration actions
10922from templates according to the current configuration. Unless the files
10923and actions are specified as TAGs, all are instantiated by default.
bae7f79e 10924
81ecdfbb 10925Usage: $0 [OPTION]... [TAG]...
bae7f79e
ILT
10926
10927 -h, --help print this help, then exit
81ecdfbb 10928 -V, --version print version number and configuration settings, then exit
d0ac1c44 10929 --config print configuration, then exit
81ecdfbb
RW
10930 -q, --quiet, --silent
10931 do not print progress messages
bae7f79e
ILT
10932 -d, --debug don't remove temporary files
10933 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
10934 --file=FILE[:TEMPLATE]
10935 instantiate the configuration file FILE
10936 --header=FILE[:TEMPLATE]
10937 instantiate the configuration header FILE
bae7f79e
ILT
10938
10939Configuration files:
10940$config_files
10941
10942Configuration headers:
10943$config_headers
10944
10945Configuration commands:
10946$config_commands
10947
81ecdfbb 10948Report bugs to the package provider."
bae7f79e 10949
81ecdfbb
RW
10950_ACEOF
10951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 10952ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
bae7f79e 10953ac_cs_version="\\
8486ee48 10954gold config.status 0.1
d0ac1c44
SM
10955configured by $0, generated by GNU Autoconf 2.69,
10956 with options \\"\$ac_cs_config\\"
bae7f79e 10957
d0ac1c44 10958Copyright (C) 2012 Free Software Foundation, Inc.
bae7f79e
ILT
10959This config.status script is free software; the Free Software Foundation
10960gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
10961
10962ac_pwd='$ac_pwd'
10963srcdir='$srcdir'
10964INSTALL='$INSTALL'
10965MKDIR_P='$MKDIR_P'
10966AWK='$AWK'
10967test -n "\$AWK" || AWK=awk
bae7f79e
ILT
10968_ACEOF
10969
81ecdfbb
RW
10970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10971# The default lists apply if the user does not specify any file.
bae7f79e
ILT
10972ac_need_defaults=:
10973while test $# != 0
10974do
10975 case $1 in
d0ac1c44 10976 --*=?*)
81ecdfbb
RW
10977 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10978 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bae7f79e
ILT
10979 ac_shift=:
10980 ;;
d0ac1c44
SM
10981 --*=)
10982 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10983 ac_optarg=
10984 ac_shift=:
10985 ;;
81ecdfbb 10986 *)
bae7f79e
ILT
10987 ac_option=$1
10988 ac_optarg=$2
10989 ac_shift=shift
10990 ;;
bae7f79e
ILT
10991 esac
10992
10993 case $ac_option in
10994 # Handling of the options.
bae7f79e
ILT
10995 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10996 ac_cs_recheck=: ;;
81ecdfbb
RW
10997 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10998 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
10999 --config | --confi | --conf | --con | --co | --c )
11000 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 11001 --debug | --debu | --deb | --de | --d | -d )
bae7f79e
ILT
11002 debug=: ;;
11003 --file | --fil | --fi | --f )
11004 $ac_shift
81ecdfbb
RW
11005 case $ac_optarg in
11006 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 11007 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
11008 esac
11009 as_fn_append CONFIG_FILES " '$ac_optarg'"
bae7f79e
ILT
11010 ac_need_defaults=false;;
11011 --header | --heade | --head | --hea )
11012 $ac_shift
81ecdfbb
RW
11013 case $ac_optarg in
11014 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11015 esac
11016 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
bae7f79e 11017 ac_need_defaults=false;;
81ecdfbb
RW
11018 --he | --h)
11019 # Conflict between --help and --header
d0ac1c44 11020 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
11021Try \`$0 --help' for more information.";;
11022 --help | --hel | -h )
11023 $as_echo "$ac_cs_usage"; exit ;;
bae7f79e
ILT
11024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11025 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11026 ac_cs_silent=: ;;
11027
11028 # This is an error.
d0ac1c44 11029 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 11030Try \`$0 --help' for more information." ;;
bae7f79e 11031
81ecdfbb
RW
11032 *) as_fn_append ac_config_targets " $1"
11033 ac_need_defaults=false ;;
bae7f79e
ILT
11034
11035 esac
11036 shift
11037done
11038
11039ac_configure_extra_args=
11040
11041if $ac_cs_silent; then
11042 exec 6>/dev/null
11043 ac_configure_extra_args="$ac_configure_extra_args --silent"
11044fi
11045
11046_ACEOF
81ecdfbb 11047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bae7f79e 11048if \$ac_cs_recheck; then
d0ac1c44 11049 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
11050 shift
11051 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11052 CONFIG_SHELL='$SHELL'
11053 export CONFIG_SHELL
11054 exec "\$@"
bae7f79e
ILT
11055fi
11056
11057_ACEOF
81ecdfbb
RW
11058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11059exec 5>>config.log
11060{
11061 echo
11062 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11063## Running $as_me. ##
11064_ASBOX
11065 $as_echo "$ac_log"
11066} >&5
bae7f79e 11067
81ecdfbb
RW
11068_ACEOF
11069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bae7f79e 11070#
81ecdfbb 11071# INIT-COMMANDS
bae7f79e 11072#
bae7f79e
ILT
11073AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11074# Capture the value of obsolete ALL_LINGUAS because we need it to compute
11075 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11076 # from automake.
11077 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11078 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11079 LINGUAS="${LINGUAS-%UNSET%}"
11080
11081
11082_ACEOF
11083
81ecdfbb 11084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bae7f79e 11085
81ecdfbb 11086# Handling of arguments.
bae7f79e
ILT
11087for ac_config_target in $ac_config_targets
11088do
81ecdfbb
RW
11089 case $ac_config_target in
11090 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11091 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11092 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11093 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11094 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11095 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11096
d0ac1c44 11097 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
bae7f79e
ILT
11098 esac
11099done
11100
81ecdfbb 11101
bae7f79e
ILT
11102# If the user did not use the arguments to specify the items to instantiate,
11103# then the envvar interface is used. Set only those that are not.
11104# We use the long form for the default assignment because of an extremely
11105# bizarre bug on SunOS 4.1.3.
11106if $ac_need_defaults; then
11107 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11108 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11109 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11110fi
11111
11112# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 11113# simply because there is no reason against having it here, and in addition,
bae7f79e 11114# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
11115# Hook for its removal unless debugging.
11116# Note that there is a small window in which the directory will not be cleaned:
11117# after its creation but before its name has been assigned to `$tmp'.
bae7f79e
ILT
11118$debug ||
11119{
d0ac1c44 11120 tmp= ac_tmp=
81ecdfbb 11121 trap 'exit_status=$?
d0ac1c44
SM
11122 : "${ac_tmp:=$tmp}"
11123 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
11124' 0
11125 trap 'as_fn_exit 1' 1 2 13 15
bae7f79e 11126}
bae7f79e
ILT
11127# Create a (secure) tmp directory for tmp files.
11128
11129{
81ecdfbb 11130 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 11131 test -d "$tmp"
bae7f79e
ILT
11132} ||
11133{
81ecdfbb
RW
11134 tmp=./conf$$-$RANDOM
11135 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
11136} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11137ac_tmp=$tmp
81ecdfbb
RW
11138
11139# Set up the scripts for CONFIG_FILES section.
11140# No need to generate them if there are no CONFIG_FILES.
11141# This happens for instance with `./config.status config.h'.
11142if test -n "$CONFIG_FILES"; then
11143
11144
11145ac_cr=`echo X | tr X '\015'`
11146# On cygwin, bash can eat \r inside `` if the user requested igncr.
11147# But we know of no other shell where ac_cr would be empty at this
11148# point, so we can use a bashism as a fallback.
11149if test "x$ac_cr" = x; then
11150 eval ac_cr=\$\'\\r\'
11151fi
11152ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11153if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 11154 ac_cs_awk_cr='\\r'
81ecdfbb
RW
11155else
11156 ac_cs_awk_cr=$ac_cr
11157fi
11158
d0ac1c44 11159echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
11160_ACEOF
11161
11162
11163{
11164 echo "cat >conf$$subs.awk <<_ACEOF" &&
11165 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11166 echo "_ACEOF"
11167} >conf$$subs.sh ||
d0ac1c44
SM
11168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11169ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
11170ac_delim='%!_!# '
11171for ac_last_try in false false false false false :; do
11172 . ./conf$$subs.sh ||
d0ac1c44 11173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
11174
11175 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11176 if test $ac_delim_n = $ac_delim_num; then
11177 break
11178 elif $ac_last_try; then
d0ac1c44 11179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
11180 else
11181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11182 fi
11183done
11184rm -f conf$$subs.sh
11185
11186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 11187cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
11188_ACEOF
11189sed -n '
11190h
11191s/^/S["/; s/!.*/"]=/
11192p
11193g
11194s/^[^!]*!//
11195:repl
11196t repl
11197s/'"$ac_delim"'$//
11198t delim
11199:nl
11200h
d0ac1c44 11201s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
11202t more1
11203s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11204p
11205n
11206b repl
11207:more1
11208s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11209p
11210g
11211s/.\{148\}//
11212t nl
11213:delim
11214h
d0ac1c44 11215s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
11216t more2
11217s/["\\]/\\&/g; s/^/"/; s/$/"/
11218p
11219b
11220:more2
11221s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11222p
11223g
11224s/.\{148\}//
11225t delim
11226' <conf$$subs.awk | sed '
11227/^[^""]/{
11228 N
11229 s/\n//
11230}
11231' >>$CONFIG_STATUS || ac_write_fail=1
11232rm -f conf$$subs.awk
11233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11234_ACAWK
d0ac1c44 11235cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
11236 for (key in S) S_is_set[key] = 1
11237 FS = "\a"
11238
11239}
bae7f79e 11240{
81ecdfbb
RW
11241 line = $ 0
11242 nfields = split(line, field, "@")
11243 substed = 0
11244 len = length(field[1])
11245 for (i = 2; i < nfields; i++) {
11246 key = field[i]
11247 keylen = length(key)
11248 if (S_is_set[key]) {
11249 value = S[key]
11250 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11251 len += length(value) + length(field[++i])
11252 substed = 1
11253 } else
11254 len += 1 + keylen
11255 }
11256
11257 print line
bae7f79e
ILT
11258}
11259
81ecdfbb
RW
11260_ACAWK
11261_ACEOF
11262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11263if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11264 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11265else
11266 cat
d0ac1c44
SM
11267fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11268 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
bae7f79e
ILT
11269_ACEOF
11270
d0ac1c44
SM
11271# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11272# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
11273# trailing colons and then remove the whole line if VPATH becomes empty
11274# (actually we leave an empty line to preserve line numbers).
11275if test "x$srcdir" = x.; then
d0ac1c44
SM
11276 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11277h
11278s///
11279s/^/:/
11280s/[ ]*$/:/
11281s/:\$(srcdir):/:/g
11282s/:\${srcdir}:/:/g
11283s/:@srcdir@:/:/g
11284s/^:*//
81ecdfbb 11285s/:*$//
d0ac1c44
SM
11286x
11287s/\(=[ ]*\).*/\1/
11288G
11289s/\n//
81ecdfbb
RW
11290s/^[^=]*=[ ]*$//
11291}'
11292fi
bae7f79e 11293
81ecdfbb
RW
11294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11295fi # test -n "$CONFIG_FILES"
bae7f79e 11296
81ecdfbb
RW
11297# Set up the scripts for CONFIG_HEADERS section.
11298# No need to generate them if there are no CONFIG_HEADERS.
11299# This happens for instance with `./config.status Makefile'.
11300if test -n "$CONFIG_HEADERS"; then
d0ac1c44 11301cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb 11302BEGIN {
bae7f79e
ILT
11303_ACEOF
11304
81ecdfbb
RW
11305# Transform confdefs.h into an awk script `defines.awk', embedded as
11306# here-document in config.status, that substitutes the proper values into
11307# config.h.in to produce config.h.
11308
11309# Create a delimiter string that does not exist in confdefs.h, to ease
11310# handling of long lines.
11311ac_delim='%!_!# '
11312for ac_last_try in false false :; do
d0ac1c44
SM
11313 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11314 if test -z "$ac_tt"; then
81ecdfbb
RW
11315 break
11316 elif $ac_last_try; then
d0ac1c44 11317 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
11318 else
11319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
bae7f79e 11320 fi
81ecdfbb 11321done
bae7f79e 11322
81ecdfbb
RW
11323# For the awk script, D is an array of macro values keyed by name,
11324# likewise P contains macro parameters if any. Preserve backslash
11325# newline sequences.
11326
11327ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11328sed -n '
11329s/.\{148\}/&'"$ac_delim"'/g
11330t rset
11331:rset
11332s/^[ ]*#[ ]*define[ ][ ]*/ /
11333t def
11334d
11335:def
11336s/\\$//
11337t bsnl
11338s/["\\]/\\&/g
11339s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11340D["\1"]=" \3"/p
11341s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11342d
11343:bsnl
11344s/["\\]/\\&/g
11345s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11346D["\1"]=" \3\\\\\\n"\\/p
11347t cont
11348s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11349t cont
11350d
11351:cont
11352n
11353s/.\{148\}/&'"$ac_delim"'/g
11354t clear
11355:clear
11356s/\\$//
11357t bsnlc
11358s/["\\]/\\&/g; s/^/"/; s/$/"/p
11359d
11360:bsnlc
11361s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11362b cont
11363' <confdefs.h | sed '
11364s/'"$ac_delim"'/"\\\
11365"/g' >>$CONFIG_STATUS || ac_write_fail=1
11366
11367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11368 for (key in D) D_is_set[key] = 1
11369 FS = "\a"
11370}
11371/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11372 line = \$ 0
11373 split(line, arg, " ")
11374 if (arg[1] == "#") {
11375 defundef = arg[2]
11376 mac1 = arg[3]
11377 } else {
11378 defundef = substr(arg[1], 2)
11379 mac1 = arg[2]
11380 }
11381 split(mac1, mac2, "(") #)
11382 macro = mac2[1]
11383 prefix = substr(line, 1, index(line, defundef) - 1)
11384 if (D_is_set[macro]) {
11385 # Preserve the white space surrounding the "#".
11386 print prefix "define", macro P[macro] D[macro]
11387 next
11388 } else {
11389 # Replace #undef with comments. This is necessary, for example,
11390 # in the case of _POSIX_SOURCE, which is predefined and required
11391 # on some systems where configure will not decide to define it.
11392 if (defundef == "undef") {
11393 print "/*", prefix defundef, macro, "*/"
11394 next
11395 }
11396 }
11397}
11398{ print }
11399_ACAWK
bae7f79e 11400_ACEOF
81ecdfbb 11401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 11402 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb
RW
11403fi # test -n "$CONFIG_HEADERS"
11404
11405
11406eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11407shift
11408for ac_tag
11409do
11410 case $ac_tag in
11411 :[FHLC]) ac_mode=$ac_tag; continue;;
11412 esac
11413 case $ac_mode$ac_tag in
11414 :[FHL]*:*);;
d0ac1c44 11415 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
11416 :[FH]-) ac_tag=-:-;;
11417 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11418 esac
11419 ac_save_IFS=$IFS
11420 IFS=:
11421 set x $ac_tag
11422 IFS=$ac_save_IFS
11423 shift
11424 ac_file=$1
11425 shift
11426
11427 case $ac_mode in
11428 :L) ac_source=$1;;
11429 :[FH])
11430 ac_file_inputs=
11431 for ac_f
11432 do
11433 case $ac_f in
d0ac1c44 11434 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
11435 *) # Look for the file first in the build tree, then in the source tree
11436 # (if the path is not absolute). The absolute path cannot be DOS-style,
11437 # because $ac_f cannot contain `:'.
11438 test -f "$ac_f" ||
11439 case $ac_f in
11440 [\\/$]*) false;;
11441 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11442 esac ||
d0ac1c44 11443 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
11444 esac
11445 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11446 as_fn_append ac_file_inputs " '$ac_f'"
11447 done
11448
11449 # Let's still pretend it is `configure' which instantiates (i.e., don't
11450 # use $as_me), people would be surprised to read:
11451 # /* config.h. Generated by config.status. */
11452 configure_input='Generated from '`
11453 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11454 `' by configure.'
11455 if test x"$ac_file" != x-; then
11456 configure_input="$ac_file. $configure_input"
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11458$as_echo "$as_me: creating $ac_file" >&6;}
11459 fi
11460 # Neutralize special characters interpreted by sed in replacement strings.
11461 case $configure_input in #(
11462 *\&* | *\|* | *\\* )
11463 ac_sed_conf_input=`$as_echo "$configure_input" |
11464 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11465 *) ac_sed_conf_input=$configure_input;;
11466 esac
11467
11468 case $ac_tag in
d0ac1c44
SM
11469 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
11471 esac
11472 ;;
bae7f79e
ILT
11473 esac
11474
81ecdfbb 11475 ac_dir=`$as_dirname -- "$ac_file" ||
bae7f79e
ILT
11476$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11477 X"$ac_file" : 'X\(//\)[^/]' \| \
11478 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
11479 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11480$as_echo X"$ac_file" |
11481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11482 s//\1/
11483 q
11484 }
11485 /^X\(\/\/\)[^/].*/{
11486 s//\1/
11487 q
11488 }
11489 /^X\(\/\/\)$/{
11490 s//\1/
11491 q
11492 }
11493 /^X\(\/\).*/{
11494 s//\1/
11495 q
11496 }
11497 s/.*/./; q'`
11498 as_dir="$ac_dir"; as_fn_mkdir_p
bae7f79e
ILT
11499 ac_builddir=.
11500
81ecdfbb
RW
11501case "$ac_dir" in
11502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11503*)
11504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11505 # A ".." for each directory in $ac_dir_suffix.
11506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11507 case $ac_top_builddir_sub in
11508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11510 esac ;;
11511esac
11512ac_abs_top_builddir=$ac_pwd
11513ac_abs_builddir=$ac_pwd$ac_dir_suffix
11514# for backward compatibility:
11515ac_top_builddir=$ac_top_build_prefix
bae7f79e
ILT
11516
11517case $srcdir in
81ecdfbb 11518 .) # We are building in place.
bae7f79e 11519 ac_srcdir=.
81ecdfbb
RW
11520 ac_top_srcdir=$ac_top_builddir_sub
11521 ac_abs_top_srcdir=$ac_pwd ;;
11522 [\\/]* | ?:[\\/]* ) # Absolute name.
bae7f79e 11523 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
11524 ac_top_srcdir=$srcdir
11525 ac_abs_top_srcdir=$srcdir ;;
11526 *) # Relative name.
11527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11528 ac_top_srcdir=$ac_top_build_prefix$srcdir
11529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bae7f79e 11530esac
81ecdfbb 11531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bae7f79e 11532
bae7f79e 11533
81ecdfbb
RW
11534 case $ac_mode in
11535 :F)
11536 #
11537 # CONFIG_FILE
11538 #
bae7f79e
ILT
11539
11540 case $INSTALL in
11541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 11542 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
bae7f79e 11543 esac
81ecdfbb
RW
11544 ac_MKDIR_P=$MKDIR_P
11545 case $MKDIR_P in
11546 [\\/$]* | ?:[\\/]* ) ;;
11547 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11548 esac
11549_ACEOF
bae7f79e 11550
81ecdfbb
RW
11551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11552# If the template does not know about datarootdir, expand it.
11553# FIXME: This hack should be removed a few years after 2.60.
11554ac_datarootdir_hack=; ac_datarootdir_seen=
11555ac_sed_dataroot='
11556/datarootdir/ {
11557 p
11558 q
11559}
11560/@datadir@/p
11561/@docdir@/p
11562/@infodir@/p
11563/@localedir@/p
11564/@mandir@/p'
11565case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11566*datarootdir*) ac_datarootdir_seen=yes;;
11567*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11569$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11570_ACEOF
11571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11572 ac_datarootdir_hack='
11573 s&@datadir@&$datadir&g
11574 s&@docdir@&$docdir&g
11575 s&@infodir@&$infodir&g
11576 s&@localedir@&$localedir&g
11577 s&@mandir@&$mandir&g
11578 s&\\\${datarootdir}&$datarootdir&g' ;;
11579esac
bae7f79e 11580_ACEOF
81ecdfbb
RW
11581
11582# Neutralize VPATH when `$srcdir' = `.'.
11583# Shell code in configure.ac might set extrasub.
11584# FIXME: do we really want to maintain this feature?
11585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11586ac_sed_extra="$ac_vpsub
bae7f79e
ILT
11587$extrasub
11588_ACEOF
81ecdfbb 11589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bae7f79e
ILT
11590:t
11591/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
11592s|@configure_input@|$ac_sed_conf_input|;t t
11593s&@top_builddir@&$ac_top_builddir_sub&;t t
11594s&@top_build_prefix@&$ac_top_build_prefix&;t t
11595s&@srcdir@&$ac_srcdir&;t t
11596s&@abs_srcdir@&$ac_abs_srcdir&;t t
11597s&@top_srcdir@&$ac_top_srcdir&;t t
11598s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11599s&@builddir@&$ac_builddir&;t t
11600s&@abs_builddir@&$ac_abs_builddir&;t t
11601s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11602s&@INSTALL@&$ac_INSTALL&;t t
11603s&@MKDIR_P@&$ac_MKDIR_P&;t t
11604$ac_datarootdir_hack
11605"
d0ac1c44
SM
11606eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11607 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
11608
11609test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
11610 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11611 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11612 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 11614which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 11615$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 11616which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 11617
d0ac1c44 11618 rm -f "$ac_tmp/stdin"
bae7f79e 11619 case $ac_file in
d0ac1c44
SM
11620 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11621 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 11622 esac \
d0ac1c44 11623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
11624 ;;
11625 :H)
11626 #
11627 # CONFIG_HEADER
11628 #
bae7f79e 11629 if test x"$ac_file" != x-; then
81ecdfbb
RW
11630 {
11631 $as_echo "/* $configure_input */" \
d0ac1c44
SM
11632 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11633 } >"$ac_tmp/config.h" \
11634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11635 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11637$as_echo "$as_me: $ac_file is unchanged" >&6;}
bae7f79e 11638 else
81ecdfbb 11639 rm -f "$ac_file"
d0ac1c44
SM
11640 mv "$ac_tmp/config.h" "$ac_file" \
11641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
bae7f79e
ILT
11642 fi
11643 else
81ecdfbb 11644 $as_echo "/* $configure_input */" \
d0ac1c44
SM
11645 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11646 || as_fn_error $? "could not create -" "$LINENO" 5
bae7f79e 11647 fi
81ecdfbb
RW
11648# Compute "$ac_file"'s index in $config_headers.
11649_am_arg="$ac_file"
bae7f79e
ILT
11650_am_stamp_count=1
11651for _am_header in $config_headers :; do
11652 case $_am_header in
81ecdfbb 11653 $_am_arg | $_am_arg:* )
bae7f79e
ILT
11654 break ;;
11655 * )
11656 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11657 esac
11658done
81ecdfbb
RW
11659echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11660$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11661 X"$_am_arg" : 'X\(//\)[^/]' \| \
11662 X"$_am_arg" : 'X\(//\)$' \| \
11663 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11664$as_echo X"$_am_arg" |
11665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11666 s//\1/
11667 q
11668 }
11669 /^X\(\/\/\)[^/].*/{
11670 s//\1/
11671 q
11672 }
11673 /^X\(\/\/\)$/{
11674 s//\1/
11675 q
11676 }
11677 /^X\(\/\).*/{
11678 s//\1/
11679 q
11680 }
11681 s/.*/./; q'`/stamp-h$_am_stamp_count
11682 ;;
bae7f79e 11683
81ecdfbb
RW
11684 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11685$as_echo "$as_me: executing $ac_file commands" >&6;}
11686 ;;
11687 esac
bae7f79e
ILT
11688
11689
81ecdfbb
RW
11690 case $ac_file$ac_mode in
11691 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 11692 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
11693 # are listed without --file. Let's play safe and only enable the eval
11694 # if we detect the quoting.
11695 case $CONFIG_FILES in
11696 *\'*) eval set x "$CONFIG_FILES" ;;
11697 *) set x $CONFIG_FILES ;;
11698 esac
11699 shift
11700 for mf
11701 do
11702 # Strip MF so we end up with the name of the file.
11703 mf=`echo "$mf" | sed -e 's/:.*$//'`
11704 # Check whether this is an Automake generated Makefile or not.
d0ac1c44 11705 # We used to match only the files named 'Makefile.in', but
81ecdfbb
RW
11706 # some people rename them; so instead we look at the file content.
11707 # Grep'ing the first line is not enough: some people post-process
11708 # each Makefile.in and add a new line on top of each file to say so.
11709 # Grep'ing the whole file is not good either: AIX grep has a line
11710 # limit of 2048, but all sed's we know have understand at least 4000.
11711 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11712 dirpart=`$as_dirname -- "$mf" ||
bae7f79e
ILT
11713$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11714 X"$mf" : 'X\(//\)[^/]' \| \
11715 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
11716 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11717$as_echo X"$mf" |
11718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11719 s//\1/
11720 q
11721 }
11722 /^X\(\/\/\)[^/].*/{
11723 s//\1/
11724 q
11725 }
11726 /^X\(\/\/\)$/{
11727 s//\1/
11728 q
11729 }
11730 /^X\(\/\).*/{
11731 s//\1/
11732 q
11733 }
11734 s/.*/./; q'`
11735 else
11736 continue
11737 fi
11738 # Extract the definition of DEPDIR, am__include, and am__quote
d0ac1c44 11739 # from the Makefile without running 'make'.
81ecdfbb
RW
11740 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11741 test -z "$DEPDIR" && continue
11742 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d0ac1c44 11743 test -z "$am__include" && continue
81ecdfbb 11744 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
81ecdfbb
RW
11745 # Find all dependency output files, they are included files with
11746 # $(DEPDIR) in their names. We invoke sed twice because it is the
11747 # simplest approach to changing $(DEPDIR) to its actual value in the
11748 # expansion.
11749 for file in `sed -n "
11750 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
d0ac1c44 11751 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
81ecdfbb
RW
11752 # Make sure the directory exists.
11753 test -f "$dirpart/$file" && continue
11754 fdir=`$as_dirname -- "$file" ||
bae7f79e
ILT
11755$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11756 X"$file" : 'X\(//\)[^/]' \| \
11757 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
11758 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11759$as_echo X"$file" |
11760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11761 s//\1/
11762 q
11763 }
11764 /^X\(\/\/\)[^/].*/{
11765 s//\1/
11766 q
11767 }
11768 /^X\(\/\/\)$/{
11769 s//\1/
11770 q
11771 }
11772 /^X\(\/\).*/{
11773 s//\1/
11774 q
11775 }
11776 s/.*/./; q'`
11777 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11778 # echo "creating $dirpart/$file"
11779 echo '# dummy' > "$dirpart/$file"
bae7f79e 11780 done
bae7f79e 11781 done
81ecdfbb 11782}
bae7f79e 11783 ;;
81ecdfbb 11784 "default-1":C)
bae7f79e
ILT
11785 for ac_file in $CONFIG_FILES; do
11786 # Support "outfile[:infile[:infile...]]"
11787 case "$ac_file" in
11788 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11789 esac
11790 # PO directories have a Makefile.in generated from Makefile.in.in.
11791 case "$ac_file" in */Makefile.in)
11792 # Adjust a relative srcdir.
11793 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
c7791212 11794 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
bae7f79e
ILT
11795 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11796 # In autoconf-2.13 it is called $ac_given_srcdir.
11797 # In autoconf-2.50 it is called $srcdir.
11798 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11799 case "$ac_given_srcdir" in
11800 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11801 /*) top_srcdir="$ac_given_srcdir" ;;
11802 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
11803 esac
11804 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11805 rm -f "$ac_dir/POTFILES"
11806 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11807 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11808 POMAKEFILEDEPS="POTFILES.in"
11809 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
11810 # on $ac_dir but don't depend on user-specified configuration
11811 # parameters.
11812 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11813 # The LINGUAS file contains the set of available languages.
11814 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 11815 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
bae7f79e
ILT
11816 fi
11817 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11818 # Hide the ALL_LINGUAS assigment from automake.
11819 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11820 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11821 else
37a42ee9 11822 # The set of available languages was given in configure.ac.
bae7f79e
ILT
11823 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11824 fi
11825 case "$ac_given_srcdir" in
11826 .) srcdirpre= ;;
11827 *) srcdirpre='$(srcdir)/' ;;
11828 esac
11829 POFILES=
11830 GMOFILES=
11831 UPDATEPOFILES=
11832 DUMMYPOFILES=
11833 for lang in $ALL_LINGUAS; do
11834 POFILES="$POFILES $srcdirpre$lang.po"
11835 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11836 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11837 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11838 done
11839 # CATALOGS depends on both $ac_dir and the user's LINGUAS
11840 # environment variable.
11841 INST_LINGUAS=
11842 if test -n "$ALL_LINGUAS"; then
11843 for presentlang in $ALL_LINGUAS; do
11844 useit=no
11845 if test "%UNSET%" != "$LINGUAS"; then
11846 desiredlanguages="$LINGUAS"
11847 else
11848 desiredlanguages="$ALL_LINGUAS"
11849 fi
11850 for desiredlang in $desiredlanguages; do
11851 # Use the presentlang catalog if desiredlang is
11852 # a. equal to presentlang, or
11853 # b. a variant of presentlang (because in this case,
11854 # presentlang can be used as a fallback for messages
11855 # which are not translated in the desiredlang catalog).
11856 case "$desiredlang" in
11857 "$presentlang"*) useit=yes;;
11858 esac
11859 done
11860 if test $useit = yes; then
11861 INST_LINGUAS="$INST_LINGUAS $presentlang"
11862 fi
11863 done
11864 fi
11865 CATALOGS=
11866 if test -n "$INST_LINGUAS"; then
11867 for lang in $INST_LINGUAS; do
11868 CATALOGS="$CATALOGS $lang.gmo"
11869 done
11870 fi
11871 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11872 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
11873 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11874 if test -f "$f"; then
11875 case "$f" in
11876 *.orig | *.bak | *~) ;;
11877 *) cat "$f" >> "$ac_dir/Makefile" ;;
11878 esac
11879 fi
11880 done
11881 fi
11882 ;;
11883 esac
11884 done ;;
81ecdfbb 11885
bae7f79e 11886 esac
81ecdfbb 11887done # for ac_tag
bae7f79e 11888
bae7f79e 11889
81ecdfbb 11890as_fn_exit 0
bae7f79e 11891_ACEOF
bae7f79e
ILT
11892ac_clean_files=$ac_clean_files_save
11893
81ecdfbb 11894test $ac_write_fail = 0 ||
d0ac1c44 11895 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 11896
bae7f79e
ILT
11897
11898# configure is writing to config.log, and then calls config.status.
11899# config.status does its own redirection, appending to config.log.
11900# Unfortunately, on DOS this fails, as config.log is still kept open
11901# by configure, so config.status won't be able to write to it; its
11902# output is simply discarded. So we exec the FD to /dev/null,
11903# effectively closing config.log, so it can be properly (re)opened and
11904# appended to by config.status. When coming back to configure, we
11905# need to make the FD available again.
11906if test "$no_create" != yes; then
11907 ac_cs_success=:
11908 ac_config_status_args=
11909 test "$silent" = yes &&
11910 ac_config_status_args="$ac_config_status_args --quiet"
11911 exec 5>/dev/null
11912 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11913 exec 5>>config.log
11914 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11915 # would make configure fail if this is the last instruction.
d0ac1c44 11916 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
11917fi
11918if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11920$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
bae7f79e
ILT
11921fi
11922
This page took 1.370357 seconds and 4 git commands to generate.