Bump to autoconf 2.69 and automake 1.15.1
[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
918357b9
L
634zlibinc
635zlibdir
81ecdfbb
RW
636LIBOBJS
637LFS_CFLAGS
dc87f620
ILT
638GOLD_LDADD
639GOLD_LDFLAGS
81ecdfbb 640WARN_CXXFLAGS
6757cf57 641WARN_WRITE_STRINGS
81ecdfbb 642NO_WERROR
c5da1932 643WARN_CFLAGS_FOR_BUILD
81ecdfbb 644WARN_CFLAGS
ebb300b2
CC
645IFUNC_STATIC_FALSE
646IFUNC_STATIC_TRUE
7223e9ca
ILT
647IFUNC_FALSE
648IFUNC_TRUE
81ecdfbb 649RANDOM_SEED_CFLAGS
81ecdfbb
RW
650TLS_DESCRIPTORS_FALSE
651TLS_DESCRIPTORS_TRUE
652TLS_GNU2_DIALECT_FALSE
653TLS_GNU2_DIALECT_TRUE
654OMP_SUPPORT_FALSE
655OMP_SUPPORT_TRUE
656STATIC_TLS_FALSE
657STATIC_TLS_TRUE
658TLS_FALSE
659TLS_TRUE
2b64b551 660MERGE_CONSTANTS_FLAG
81ecdfbb
RW
661MCMODEL_MEDIUM_FALSE
662MCMODEL_MEDIUM_TRUE
663FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
664FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
328c7c2f
ILT
665HAVE_STATIC_FALSE
666HAVE_STATIC_TRUE
eb373049
ILT
667NATIVE_OR_CROSS_LINKER_FALSE
668NATIVE_OR_CROSS_LINKER_TRUE
81ecdfbb
RW
669GCC_FALSE
670GCC_TRUE
671NATIVE_LINKER_FALSE
672NATIVE_LINKER_TRUE
673MSGMERGE
674MSGFMT
675MKINSTALLDIRS
676CATOBJEXT
677GENCAT
678INSTOBJEXT
679DATADIRNAME
680CATALOGS
681POSUB
682GMSGFMT
683XGETTEXT
684INCINTL
685LIBINTL_DEP
686LIBINTL
687USE_NLS
81ecdfbb
RW
688LN_S
689RANLIB
690YFLAGS
691YACC
692am__fastdepCXX_FALSE
693am__fastdepCXX_TRUE
694CXXDEPMODE
695ac_ct_CXX
696CXXFLAGS
697CXX
ebb300b2 698NM
81ecdfbb 699TARGETOBJS
9df9de2c 700DEFAULT_TARGET
9810d34d
SS
701DEFAULT_TARGET_MIPS_FALSE
702DEFAULT_TARGET_MIPS_TRUE
0a6f1bf2
AM
703DEFAULT_TARGET_TILEGX_FALSE
704DEFAULT_TARGET_TILEGX_TRUE
ad961eab
L
705DEFAULT_TARGET_X86_64_OR_X32_FALSE
706DEFAULT_TARGET_X86_64_OR_X32_TRUE
4fc1b9d4
L
707DEFAULT_TARGET_X32_FALSE
708DEFAULT_TARGET_X32_TRUE
364c7fa5
ILT
709DEFAULT_TARGET_X86_64_FALSE
710DEFAULT_TARGET_X86_64_TRUE
e79a4bad
MK
711DEFAULT_TARGET_S390_FALSE
712DEFAULT_TARGET_S390_TRUE
364c7fa5
ILT
713DEFAULT_TARGET_SPARC_FALSE
714DEFAULT_TARGET_SPARC_TRUE
715DEFAULT_TARGET_POWERPC_FALSE
716DEFAULT_TARGET_POWERPC_TRUE
717DEFAULT_TARGET_I386_FALSE
718DEFAULT_TARGET_I386_TRUE
719DEFAULT_TARGET_ARM_FALSE
720DEFAULT_TARGET_ARM_TRUE
053a4d68
JY
721DEFAULT_TARGET_AARCH64_FALSE
722DEFAULT_TARGET_AARCH64_TRUE
81ecdfbb
RW
723PLUGINS_FALSE
724PLUGINS_TRUE
725THREADS_FALSE
726THREADS_TRUE
4fda8867
NC
727installed_linker
728install_as_default
24538276
CC
729EGREP
730GREP
731CPP
732am__fastdepCC_FALSE
733am__fastdepCC_TRUE
734CCDEPMODE
735am__nodep
736AMDEPBACKSLASH
737AMDEP_FALSE
738AMDEP_TRUE
739am__quote
740am__include
741DEPDIR
742OBJEXT
743EXEEXT
744ac_ct_CC
745CPPFLAGS
746LDFLAGS
747CFLAGS
748CC
d0ac1c44
SM
749AM_BACKSLASH
750AM_DEFAULT_VERBOSITY
751AM_DEFAULT_V
752AM_V
81ecdfbb
RW
753am__untar
754am__tar
755AMTAR
756am__leading_dot
757SET_MAKE
758AWK
759mkdir_p
760MKDIR_P
761INSTALL_STRIP_PROGRAM
762STRIP
763install_sh
764MAKEINFO
765AUTOHEADER
766AUTOMAKE
767AUTOCONF
768ACLOCAL
769VERSION
770PACKAGE
771CYGPATH_W
772am__isrc
773INSTALL_DATA
774INSTALL_SCRIPT
775INSTALL_PROGRAM
776target_os
777target_vendor
778target_cpu
779target
780host_os
781host_vendor
782host_cpu
783host
784build_os
785build_vendor
786build_cpu
787build
788target_alias
789host_alias
790build_alias
791LIBS
792ECHO_T
793ECHO_N
794ECHO_C
795DEFS
796mandir
797localedir
798libdir
799psdir
800pdfdir
801dvidir
802htmldir
803infodir
804docdir
805oldincludedir
806includedir
807localstatedir
808sharedstatedir
809sysconfdir
810datadir
811datarootdir
812libexecdir
813sbindir
814bindir
815program_transform_name
816prefix
817exec_prefix
818PACKAGE_URL
819PACKAGE_BUGREPORT
820PACKAGE_STRING
821PACKAGE_VERSION
822PACKAGE_TARNAME
823PACKAGE_NAME
824PATH_SEPARATOR
825SHELL'
bae7f79e 826ac_subst_files=''
81ecdfbb
RW
827ac_user_opts='
828enable_option_checking
d0ac1c44 829enable_silent_rules
24538276 830enable_dependency_tracking
81ecdfbb 831with_sysroot
4fda8867 832enable_gold
81ecdfbb
RW
833enable_threads
834enable_plugins
6b1edb94 835enable_relro
81ecdfbb 836enable_targets
2760f24c 837enable_default_hash_style
3f3cddf1 838with_lib_path
81ecdfbb
RW
839enable_nls
840enable_werror
841enable_build_warnings
dc87f620
ILT
842with_gold_ldflags
843with_gold_ldadd
918357b9 844with_system_zlib
81ecdfbb
RW
845enable_maintainer_mode
846'
847 ac_precious_vars='build_alias
848host_alias
849target_alias
850CC
851CFLAGS
852LDFLAGS
853LIBS
854CPPFLAGS
24538276 855CPP
81ecdfbb
RW
856CXX
857CXXFLAGS
858CCC
859YACC
860YFLAGS
81ecdfbb
RW
861CXXCPP'
862
bae7f79e
ILT
863
864# Initialize some variables set by options.
865ac_init_help=
866ac_init_version=false
81ecdfbb
RW
867ac_unrecognized_opts=
868ac_unrecognized_sep=
bae7f79e
ILT
869# The variables have the same names as the options, with
870# dashes changed to underlines.
871cache_file=/dev/null
872exec_prefix=NONE
873no_create=
874no_recursion=
875prefix=NONE
876program_prefix=NONE
877program_suffix=NONE
878program_transform_name=s,x,x,
879silent=
880site=
881srcdir=
882verbose=
883x_includes=NONE
884x_libraries=NONE
885
886# Installation directory options.
887# These are left unexpanded so users can "make install exec_prefix=/foo"
888# and all the variables that are supposed to be based on exec_prefix
889# by default will actually change.
890# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 891# (The list follows the same order as the GNU Coding Standards.)
bae7f79e
ILT
892bindir='${exec_prefix}/bin'
893sbindir='${exec_prefix}/sbin'
894libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
895datarootdir='${prefix}/share'
896datadir='${datarootdir}'
bae7f79e
ILT
897sysconfdir='${prefix}/etc'
898sharedstatedir='${prefix}/com'
899localstatedir='${prefix}/var'
bae7f79e
ILT
900includedir='${prefix}/include'
901oldincludedir='/usr/include'
81ecdfbb
RW
902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903infodir='${datarootdir}/info'
904htmldir='${docdir}'
905dvidir='${docdir}'
906pdfdir='${docdir}'
907psdir='${docdir}'
908libdir='${exec_prefix}/lib'
909localedir='${datarootdir}/locale'
910mandir='${datarootdir}/man'
bae7f79e
ILT
911
912ac_prev=
81ecdfbb 913ac_dashdash=
bae7f79e
ILT
914for ac_option
915do
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
81ecdfbb 918 eval $ac_prev=\$ac_option
bae7f79e
ILT
919 ac_prev=
920 continue
921 fi
922
81ecdfbb 923 case $ac_option in
d0ac1c44
SM
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
81ecdfbb 927 esac
bae7f79e
ILT
928
929 # Accept the important Cygnus configure options, so we can diagnose typos.
930
81ecdfbb
RW
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
bae7f79e
ILT
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
81ecdfbb 955 -datadir | --datadir | --datadi | --datad)
bae7f79e 956 ac_prev=datadir ;;
81ecdfbb 957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bae7f79e
ILT
958 datadir=$ac_optarg ;;
959
81ecdfbb
RW
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
bae7f79e 967 -disable-* | --disable-*)
81ecdfbb 968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
bae7f79e 969 # Reject names that are not valid shell variable names.
81ecdfbb 970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 971 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
bae7f79e
ILT
992
993 -enable-* | --enable-*)
81ecdfbb 994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
bae7f79e 995 # Reject names that are not valid shell variable names.
81ecdfbb 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 997 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002"enable_$ac_useropt"
1003"*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
bae7f79e 1006 esac
81ecdfbb 1007 eval enable_$ac_useropt=\$ac_optarg ;;
bae7f79e
ILT
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
81ecdfbb
RW
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
bae7f79e
ILT
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
81ecdfbb
RW
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
bae7f79e 1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1070 | --localstate | --localstat | --localsta | --localst | --locals)
bae7f79e
ILT
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bae7f79e
ILT
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
81ecdfbb
RW
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
bae7f79e
ILT
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
81ecdfbb 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
bae7f79e 1199 # Reject names that are not valid shell variable names.
81ecdfbb 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1201 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
bae7f79e 1210 esac
81ecdfbb 1211 eval with_$ac_useropt=\$ac_optarg ;;
bae7f79e
ILT
1212
1213 -without-* | --without-*)
81ecdfbb 1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
bae7f79e 1215 # Reject names that are not valid shell variable names.
81ecdfbb 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1217 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
bae7f79e
ILT
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
d0ac1c44
SM
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248Try \`$0 --help' for more information"
bae7f79e
ILT
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1257 esac
1258 eval $ac_envvar=\$ac_optarg
bae7f79e
ILT
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bae7f79e 1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
bae7f79e
ILT
1267 ;;
1268
1269 esac
1270done
1271
1272if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1274 as_fn_error $? "missing argument to $ac_option"
bae7f79e
ILT
1275fi
1276
81ecdfbb
RW
1277if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
d0ac1c44 1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
bae7f79e 1282 esac
81ecdfbb 1283fi
bae7f79e 1284
81ecdfbb
RW
1285# Check all directory arguments for consistency.
1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
bae7f79e 1290do
81ecdfbb
RW
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
bae7f79e 1299 case $ac_val in
81ecdfbb
RW
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
bae7f79e 1302 esac
d0ac1c44 1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
bae7f79e
ILT
1304done
1305
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
bae7f79e
ILT
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320fi
1321
1322ac_tool_prefix=
1323test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325test "$silent" = yes && exec 6>/dev/null
1326
1327
81ecdfbb
RW
1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329ac_ls_di=`ls -di .` &&
1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1331 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1333 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1334
1335
bae7f79e
ILT
1336# Find the source files, if location was not specified.
1337if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
81ecdfbb
RW
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345$as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
bae7f79e 1363 srcdir=$ac_confdir
81ecdfbb 1364 if test ! -r "$srcdir/$ac_unique_file"; then
bae7f79e
ILT
1365 srcdir=..
1366 fi
1367else
1368 ac_srcdir_defaulted=no
1369fi
81ecdfbb
RW
1370if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1373fi
1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375ac_abs_confdir=`(
d0ac1c44 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1377 pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
bae7f79e
ILT
1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
8486ee48 1402\`configure' configures gold 0.1 to adapt to many kinds of systems.
bae7f79e
ILT
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
d0ac1c44 1416 -q, --quiet, --silent do not print \`checking ...' messages
bae7f79e
ILT
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
bae7f79e
ILT
1422Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1424 [$ac_default_prefix]
bae7f79e 1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1426 [PREFIX]
bae7f79e
ILT
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
81ecdfbb
RW
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
bae7f79e
ILT
1455_ACEOF
1456
1457 cat <<\_ACEOF
1458
1459Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463
1464System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 --target=TARGET configure for building compilers for TARGET [HOST]
1468_ACEOF
1469fi
1470
1471if test -n "$ac_init_help"; then
8486ee48
ILT
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of gold 0.1:";;
1474 esac
bae7f79e
ILT
1475 cat <<\_ACEOF
1476
1477Optional Features:
81ecdfbb 1478 --disable-option-checking ignore unrecognized --enable/--with options
bae7f79e
ILT
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d0ac1c44
SM
1481 --enable-silent-rules less verbose build output (undo: "make V=1")
1482 --disable-silent-rules verbose build output (undo: "make V=0")
1483 --enable-dependency-tracking
1484 do not reject slow dependency extractors
1485 --disable-dependency-tracking
1486 speeds up one-time build
c7791212 1487 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
fe9a4c12 1488 --enable-threads multi-threaded linking
24538276 1489 --enable-plugins Enable support for plugins
6b1edb94 1490 --enable-relro enable -z relro in ELF linker by default
193a53d9 1491 --enable-targets alternative target configurations
2760f24c
RG
1492 --enable-default-hash-style={sysv,gnu,both}
1493 use this default hash style
bae7f79e
ILT
1494 --disable-nls do not use Native Language Support
1495 --enable-werror treat compile warnings as errors
1496 --enable-build-warnings enable build-time compiler warnings
d0ac1c44
SM
1497 --enable-maintainer-mode
1498 enable make rules and dependencies not useful (and
1499 sometimes confusing) to the casual installer
bae7f79e 1500
ad2d6943
ILT
1501Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-sysroot=DIR search for usr/lib et al within DIR
3f3cddf1 1505 --with-lib-path=dir1:dir2... set default LIB_PATH
dc87f620
ILT
1506 --with-gold-ldflags=FLAGS additional link flags for gold
1507 --with-gold-ldadd=LIBS additional libraries for gold
918357b9 1508 --with-system-zlib use installed libz
ad2d6943 1509
bae7f79e
ILT
1510Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
81ecdfbb 1515 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1517 you have headers in a nonstandard directory <include dir>
24538276 1518 CPP C preprocessor
bae7f79e
ILT
1519 CXX C++ compiler command
1520 CXXFLAGS C++ compiler flags
d0ac1c44
SM
1521 YACC The `Yet Another Compiler Compiler' implementation to use.
1522 Defaults to the first program found out of: `bison -y', `byacc',
1523 `yacc'.
81ecdfbb
RW
1524 YFLAGS The list of arguments that will be passed by default to $YACC.
1525 This script will default YFLAGS to the empty string to avoid a
1526 default value of `-d' given by some make applications.
54dc6425 1527 CXXCPP C++ preprocessor
bae7f79e
ILT
1528
1529Use these variables to override the choices made by `configure' or to help
1530it to find libraries and programs with nonstandard names/locations.
1531
81ecdfbb 1532Report bugs to the package provider.
bae7f79e 1533_ACEOF
81ecdfbb 1534ac_status=$?
bae7f79e
ILT
1535fi
1536
1537if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
bae7f79e 1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 continue
bae7f79e
ILT
1543 ac_builddir=.
1544
81ecdfbb
RW
1545case "$ac_dir" in
1546.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547*)
1548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 esac ;;
1555esac
1556ac_abs_top_builddir=$ac_pwd
1557ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558# for backward compatibility:
1559ac_top_builddir=$ac_top_build_prefix
bae7f79e
ILT
1560
1561case $srcdir in
81ecdfbb 1562 .) # We are building in place.
bae7f79e 1563 ac_srcdir=.
81ecdfbb
RW
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
bae7f79e 1567 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1570 *) # Relative name.
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bae7f79e 1574esac
81ecdfbb
RW
1575ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure" --help=recursive
bae7f79e 1585 else
81ecdfbb
RW
1586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587 fi || ac_status=$?
1588 cd "$ac_pwd" || { ac_status=$?; break; }
bae7f79e
ILT
1589 done
1590fi
1591
81ecdfbb 1592test -n "$ac_init_help" && exit $ac_status
bae7f79e
ILT
1593if $ac_init_version; then
1594 cat <<\_ACEOF
8486ee48 1595gold configure 0.1
d0ac1c44 1596generated by GNU Autoconf 2.69
bae7f79e 1597
d0ac1c44 1598Copyright (C) 2012 Free Software Foundation, Inc.
bae7f79e
ILT
1599This configure script is free software; the Free Software Foundation
1600gives unlimited permission to copy, distribute and modify it.
1601_ACEOF
81ecdfbb 1602 exit
bae7f79e 1603fi
bae7f79e 1604
81ecdfbb
RW
1605## ------------------------ ##
1606## Autoconf initialization. ##
1607## ------------------------ ##
bae7f79e 1608
81ecdfbb
RW
1609# ac_fn_c_try_compile LINENO
1610# --------------------------
1611# Try to compile conftest.$ac_ext, and return whether this succeeded.
1612ac_fn_c_try_compile ()
bae7f79e 1613{
81ecdfbb
RW
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext
1616 if { { ac_try="$ac_compile"
1617case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622$as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_compile") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest.$ac_objext; then :
1635 ac_retval=0
1636else
1637 $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1639
81ecdfbb
RW
1640 ac_retval=1
1641fi
d0ac1c44
SM
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
bae7f79e 1644
81ecdfbb 1645} # ac_fn_c_try_compile
bae7f79e 1646
81ecdfbb
RW
1647# ac_fn_c_try_cpp LINENO
1648# ----------------------
1649# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_cpp ()
1651{
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_cpp conftest.$ac_ext"
1654case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1668 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 }; then :
1672 ac_retval=0
1673else
1674 $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1676
81ecdfbb
RW
1677 ac_retval=1
1678fi
d0ac1c44
SM
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
bae7f79e 1681
81ecdfbb 1682} # ac_fn_c_try_cpp
bae7f79e 1683
81ecdfbb
RW
1684# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1685# -------------------------------------------------------
1686# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1687# the include files in INCLUDES and setting the cache variable VAR
1688# accordingly.
1689ac_fn_c_check_header_mongrel ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1692 if eval \${$3+:} false; then :
81ecdfbb
RW
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1695if eval \${$3+:} false; then :
81ecdfbb
RW
1696 $as_echo_n "(cached) " >&6
1697fi
1698eval ac_res=\$$3
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700$as_echo "$ac_res" >&6; }
1701else
1702 # Is the header compilable?
1703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1704$as_echo_n "checking $2 usability... " >&6; }
1705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706/* end confdefs.h. */
1707$4
1708#include <$2>
bae7f79e 1709_ACEOF
81ecdfbb
RW
1710if ac_fn_c_try_compile "$LINENO"; then :
1711 ac_header_compiler=yes
1712else
1713 ac_header_compiler=no
1714fi
1715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1717$as_echo "$ac_header_compiler" >&6; }
bae7f79e 1718
81ecdfbb
RW
1719# Is the header present?
1720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1721$as_echo_n "checking $2 presence... " >&6; }
1722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723/* end confdefs.h. */
1724#include <$2>
1725_ACEOF
1726if ac_fn_c_try_cpp "$LINENO"; then :
1727 ac_header_preproc=yes
1728else
1729 ac_header_preproc=no
1730fi
d0ac1c44 1731rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1733$as_echo "$ac_header_preproc" >&6; }
bae7f79e 1734
81ecdfbb
RW
1735# So? What about this header?
1736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1737 yes:no: )
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1739$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1741$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1742 ;;
1743 no:yes:* )
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1745$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1747$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1749$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1751$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1753$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754 ;;
1755esac
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1758if eval \${$3+:} false; then :
81ecdfbb
RW
1759 $as_echo_n "(cached) " >&6
1760else
1761 eval "$3=\$ac_header_compiler"
1762fi
1763eval ac_res=\$$3
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765$as_echo "$ac_res" >&6; }
1766fi
d0ac1c44 1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 1768
81ecdfbb 1769} # ac_fn_c_check_header_mongrel
bae7f79e 1770
81ecdfbb
RW
1771# ac_fn_c_try_run LINENO
1772# ----------------------
1773# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774# that executables *can* be run.
1775ac_fn_c_try_run ()
bae7f79e 1776{
81ecdfbb
RW
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_link"
1779case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>&5
1786 ac_status=$?
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789 { { case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_try") 2>&5
1796 ac_status=$?
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; }; }; then :
1799 ac_retval=0
1800else
1801 $as_echo "$as_me: program exited with status $ac_status" >&5
1802 $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1804
81ecdfbb
RW
1805 ac_retval=$ac_status
1806fi
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
bae7f79e 1810
81ecdfbb 1811} # ac_fn_c_try_run
bae7f79e 1812
81ecdfbb
RW
1813# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1814# -------------------------------------------------------
1815# Tests whether HEADER exists and can be compiled using the include files in
1816# INCLUDES, setting the cache variable VAR accordingly.
1817ac_fn_c_check_header_compile ()
1818{
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1822if eval \${$3+:} false; then :
81ecdfbb
RW
1823 $as_echo_n "(cached) " >&6
1824else
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h. */
1827$4
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_compile "$LINENO"; then :
1831 eval "$3=yes"
1832else
1833 eval "$3=no"
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836fi
1837eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
d0ac1c44 1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 1841
81ecdfbb 1842} # ac_fn_c_check_header_compile
bae7f79e 1843
81ecdfbb
RW
1844# ac_fn_c_try_link LINENO
1845# -----------------------
1846# Try to link conftest.$ac_ext, and return whether this succeeded.
1847ac_fn_c_try_link ()
1848{
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 rm -f conftest.$ac_objext conftest$ac_exeext
1851 if { { ac_try="$ac_link"
1852case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>conftest.err
1859 ac_status=$?
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1864 fi
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_c_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest$ac_exeext && {
1870 test "$cross_compiling" = yes ||
d0ac1c44 1871 test -x conftest$ac_exeext
81ecdfbb
RW
1872 }; then :
1873 ac_retval=0
1874else
1875 $as_echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1877
81ecdfbb
RW
1878 ac_retval=1
1879fi
1880 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1881 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1882 # interfere with the next link command; also delete a directory that is
1883 # left behind by Apple's compiler. We do this before executing the actions.
1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
bae7f79e 1887
81ecdfbb 1888} # ac_fn_c_try_link
bae7f79e 1889
24538276
CC
1890# ac_fn_cxx_try_compile LINENO
1891# ----------------------------
1892# Try to compile conftest.$ac_ext, and return whether this succeeded.
1893ac_fn_cxx_try_compile ()
1894{
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext
1897 if { { ac_try="$ac_compile"
1898case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901esac
1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903$as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_compile") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1910 fi
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_cxx_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest.$ac_objext; then :
1916 ac_retval=0
1917else
1918 $as_echo "$as_me: failed program was:" >&5
1919sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=1
1922fi
d0ac1c44
SM
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
24538276
CC
1925
1926} # ac_fn_cxx_try_compile
1927
81ecdfbb
RW
1928# ac_fn_c_check_func LINENO FUNC VAR
1929# ----------------------------------
1930# Tests whether FUNC exists, setting the cache variable VAR accordingly
1931ac_fn_c_check_func ()
1932{
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1936if eval \${$3+:} false; then :
81ecdfbb
RW
1937 $as_echo_n "(cached) " >&6
1938else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h. */
1941/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943#define $2 innocuous_$2
bae7f79e 1944
81ecdfbb
RW
1945/* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
bae7f79e 1949
81ecdfbb
RW
1950#ifdef __STDC__
1951# include <limits.h>
1952#else
1953# include <assert.h>
1954#endif
bae7f79e 1955
81ecdfbb 1956#undef $2
bae7f79e 1957
81ecdfbb
RW
1958/* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1961#ifdef __cplusplus
1962extern "C"
1963#endif
1964char $2 ();
1965/* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968#if defined __stub_$2 || defined __stub___$2
1969choke me
1970#endif
1971
1972int
1973main ()
1974{
1975return $2 ();
1976 ;
1977 return 0;
1978}
bae7f79e 1979_ACEOF
81ecdfbb
RW
1980if ac_fn_c_try_link "$LINENO"; then :
1981 eval "$3=yes"
1982else
1983 eval "$3=no"
1984fi
1985rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1987fi
1988eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
d0ac1c44 1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 1992
81ecdfbb 1993} # ac_fn_c_check_func
bae7f79e 1994
d0ac1c44
SM
1995# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1996# ---------------------------------------------
1997# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1998# accordingly.
81ecdfbb
RW
1999ac_fn_c_check_decl ()
2000{
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7223e9ca
ILT
2002 as_decl_name=`echo $2|sed 's/ *(.*//'`
2003 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2005$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d0ac1c44 2006if eval \${$3+:} false; then :
81ecdfbb
RW
2007 $as_echo_n "(cached) " >&6
2008else
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010/* end confdefs.h. */
2011$4
2012int
2013main ()
2014{
7223e9ca
ILT
2015#ifndef $as_decl_name
2016#ifdef __cplusplus
2017 (void) $as_decl_use;
2018#else
2019 (void) $as_decl_name;
2020#endif
81ecdfbb
RW
2021#endif
2022
2023 ;
2024 return 0;
2025}
bae7f79e 2026_ACEOF
81ecdfbb
RW
2027if ac_fn_c_try_compile "$LINENO"; then :
2028 eval "$3=yes"
2029else
2030 eval "$3=no"
2031fi
2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033fi
2034eval ac_res=\$$3
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036$as_echo "$ac_res" >&6; }
d0ac1c44 2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 2038
81ecdfbb 2039} # ac_fn_c_check_decl
bae7f79e 2040
81ecdfbb
RW
2041# ac_fn_cxx_try_cpp LINENO
2042# ------------------------
2043# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2044ac_fn_cxx_try_cpp ()
2045{
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_cpp conftest.$ac_ext"
2048case "(($ac_try" in
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2051esac
2052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053$as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2055 ac_status=$?
2056 if test -s conftest.err; then
2057 grep -v '^ *+' conftest.err >conftest.er1
2058 cat conftest.er1 >&5
2059 mv -f conftest.er1 conftest.err
bae7f79e 2060 fi
81ecdfbb 2061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 2062 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
2063 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2064 test ! -s conftest.err
2065 }; then :
2066 ac_retval=0
2067else
2068 $as_echo "$as_me: failed program was:" >&5
2069sed 's/^/| /' conftest.$ac_ext >&5
2070
2071 ac_retval=1
bae7f79e 2072fi
d0ac1c44
SM
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074 as_fn_set_status $ac_retval
bae7f79e 2075
81ecdfbb
RW
2076} # ac_fn_cxx_try_cpp
2077
2078# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2079# ---------------------------------------------------------
2080# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2081# the include files in INCLUDES and setting the cache variable VAR
2082# accordingly.
2083ac_fn_cxx_check_header_mongrel ()
2084{
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 2086 if eval \${$3+:} false; then :
81ecdfbb
RW
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2088$as_echo_n "checking for $2... " >&6; }
d0ac1c44 2089if eval \${$3+:} false; then :
81ecdfbb
RW
2090 $as_echo_n "(cached) " >&6
2091fi
2092eval ac_res=\$$3
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094$as_echo "$ac_res" >&6; }
bae7f79e 2095else
81ecdfbb
RW
2096 # Is the header compilable?
2097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2098$as_echo_n "checking $2 usability... " >&6; }
2099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100/* end confdefs.h. */
2101$4
2102#include <$2>
2103_ACEOF
2104if ac_fn_cxx_try_compile "$LINENO"; then :
2105 ac_header_compiler=yes
2106else
2107 ac_header_compiler=no
bae7f79e 2108fi
81ecdfbb
RW
2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2111$as_echo "$ac_header_compiler" >&6; }
bae7f79e 2112
81ecdfbb
RW
2113# Is the header present?
2114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2115$as_echo_n "checking $2 presence... " >&6; }
2116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117/* end confdefs.h. */
2118#include <$2>
2119_ACEOF
2120if ac_fn_cxx_try_cpp "$LINENO"; then :
2121 ac_header_preproc=yes
2122else
2123 ac_header_preproc=no
bae7f79e 2124fi
d0ac1c44 2125rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
2126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2127$as_echo "$ac_header_preproc" >&6; }
bae7f79e 2128
81ecdfbb
RW
2129# So? What about this header?
2130case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2131 yes:no: )
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2133$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2135$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2136 ;;
2137 no:yes:* )
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2139$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2141$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2143$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2145$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2147$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2148 ;;
2149esac
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2151$as_echo_n "checking for $2... " >&6; }
d0ac1c44 2152if eval \${$3+:} false; then :
81ecdfbb
RW
2153 $as_echo_n "(cached) " >&6
2154else
2155 eval "$3=\$ac_header_compiler"
2156fi
2157eval ac_res=\$$3
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159$as_echo "$ac_res" >&6; }
2160fi
d0ac1c44 2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2162
2163} # ac_fn_cxx_check_header_mongrel
2164
2165# ac_fn_cxx_try_link LINENO
2166# -------------------------
2167# Try to link conftest.$ac_ext, and return whether this succeeded.
2168ac_fn_cxx_try_link ()
2169{
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 rm -f conftest.$ac_objext conftest$ac_exeext
2172 if { { ac_try="$ac_link"
2173case "(($ac_try" in
2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175 *) ac_try_echo=$ac_try;;
2176esac
2177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178$as_echo "$ac_try_echo"; } >&5
2179 (eval "$ac_link") 2>conftest.err
2180 ac_status=$?
2181 if test -s conftest.err; then
2182 grep -v '^ *+' conftest.err >conftest.er1
2183 cat conftest.er1 >&5
2184 mv -f conftest.er1 conftest.err
2185 fi
2186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187 test $ac_status = 0; } && {
2188 test -z "$ac_cxx_werror_flag" ||
2189 test ! -s conftest.err
2190 } && test -s conftest$ac_exeext && {
2191 test "$cross_compiling" = yes ||
d0ac1c44 2192 test -x conftest$ac_exeext
81ecdfbb
RW
2193 }; then :
2194 ac_retval=0
2195else
2196 $as_echo "$as_me: failed program was:" >&5
2197sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 2198
81ecdfbb
RW
2199 ac_retval=1
2200fi
2201 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2202 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2203 # interfere with the next link command; also delete a directory that is
2204 # left behind by Apple's compiler. We do this before executing the actions.
2205 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 as_fn_set_status $ac_retval
bae7f79e 2208
81ecdfbb 2209} # ac_fn_cxx_try_link
bae7f79e 2210
81ecdfbb
RW
2211# ac_fn_cxx_check_func LINENO FUNC VAR
2212# ------------------------------------
2213# Tests whether FUNC exists, setting the cache variable VAR accordingly
2214ac_fn_cxx_check_func ()
2215{
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218$as_echo_n "checking for $2... " >&6; }
d0ac1c44 2219if eval \${$3+:} false; then :
81ecdfbb
RW
2220 $as_echo_n "(cached) " >&6
2221else
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223/* end confdefs.h. */
2224/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2226#define $2 innocuous_$2
bae7f79e 2227
81ecdfbb
RW
2228/* System header to define __stub macros and hopefully few prototypes,
2229 which can conflict with char $2 (); below.
2230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2231 <limits.h> exists even on freestanding compilers. */
bae7f79e 2232
81ecdfbb
RW
2233#ifdef __STDC__
2234# include <limits.h>
2235#else
2236# include <assert.h>
2237#endif
bae7f79e 2238
81ecdfbb 2239#undef $2
bae7f79e 2240
81ecdfbb
RW
2241/* Override any GCC internal prototype to avoid an error.
2242 Use char because int might match the return type of a GCC
2243 builtin and then its argument prototype would still apply. */
2244#ifdef __cplusplus
2245extern "C"
2246#endif
2247char $2 ();
2248/* The GNU C library defines this for functions which it implements
2249 to always fail with ENOSYS. Some functions are actually named
2250 something starting with __ and the normal name is an alias. */
2251#if defined __stub_$2 || defined __stub___$2
2252choke me
2253#endif
bae7f79e 2254
81ecdfbb
RW
2255int
2256main ()
2257{
2258return $2 ();
2259 ;
2260 return 0;
2261}
2262_ACEOF
2263if ac_fn_cxx_try_link "$LINENO"; then :
2264 eval "$3=yes"
2265else
2266 eval "$3=no"
2267fi
2268rm -f core conftest.err conftest.$ac_objext \
2269 conftest$ac_exeext conftest.$ac_ext
2270fi
2271eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273$as_echo "$ac_res" >&6; }
d0ac1c44 2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 2275
81ecdfbb 2276} # ac_fn_cxx_check_func
bae7f79e 2277
d0ac1c44
SM
2278# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2279# -----------------------------------------------
2280# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2281# accordingly.
81ecdfbb
RW
2282ac_fn_cxx_check_decl ()
2283{
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7223e9ca
ILT
2285 as_decl_name=`echo $2|sed 's/ *(.*//'`
2286 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2288$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d0ac1c44 2289if eval \${$3+:} false; then :
81ecdfbb
RW
2290 $as_echo_n "(cached) " >&6
2291else
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293/* end confdefs.h. */
2294$4
2295int
2296main ()
2297{
7223e9ca
ILT
2298#ifndef $as_decl_name
2299#ifdef __cplusplus
2300 (void) $as_decl_use;
2301#else
2302 (void) $as_decl_name;
2303#endif
81ecdfbb 2304#endif
bae7f79e 2305
81ecdfbb
RW
2306 ;
2307 return 0;
2308}
2309_ACEOF
2310if ac_fn_cxx_try_compile "$LINENO"; then :
2311 eval "$3=yes"
2312else
2313 eval "$3=no"
2314fi
2315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316fi
2317eval ac_res=\$$3
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319$as_echo "$ac_res" >&6; }
d0ac1c44 2320 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
bae7f79e 2321
81ecdfbb
RW
2322} # ac_fn_cxx_check_decl
2323cat >config.log <<_ACEOF
2324This file contains any messages produced by compilers while
2325running configure, to aid debugging if configure makes a mistake.
8486ee48 2326
81ecdfbb 2327It was created by gold $as_me 0.1, which was
d0ac1c44 2328generated by GNU Autoconf 2.69. Invocation command line was
8486ee48 2329
81ecdfbb 2330 $ $0 $@
8486ee48 2331
81ecdfbb
RW
2332_ACEOF
2333exec 5>>config.log
2334{
2335cat <<_ASUNAME
2336## --------- ##
2337## Platform. ##
2338## --------- ##
8486ee48 2339
81ecdfbb
RW
2340hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2341uname -m = `(uname -m) 2>/dev/null || echo unknown`
2342uname -r = `(uname -r) 2>/dev/null || echo unknown`
2343uname -s = `(uname -s) 2>/dev/null || echo unknown`
2344uname -v = `(uname -v) 2>/dev/null || echo unknown`
8486ee48 2345
81ecdfbb
RW
2346/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2347/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8486ee48 2348
81ecdfbb
RW
2349/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2350/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2351/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2352/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2353/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2354/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2355/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
8486ee48 2356
81ecdfbb 2357_ASUNAME
8486ee48 2358
81ecdfbb
RW
2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 $as_echo "PATH: $as_dir"
2365 done
2366IFS=$as_save_IFS
bae7f79e 2367
81ecdfbb 2368} >&5
bae7f79e 2369
81ecdfbb 2370cat >&5 <<_ACEOF
bae7f79e
ILT
2371
2372
81ecdfbb
RW
2373## ----------- ##
2374## Core tests. ##
2375## ----------- ##
bae7f79e 2376
81ecdfbb 2377_ACEOF
1d1f116d
CD
2378
2379
81ecdfbb
RW
2380# Keep a trace of the command line.
2381# Strip out --no-create and --no-recursion so they do not pile up.
2382# Strip out --silent because we don't want to record it for future runs.
2383# Also quote any args containing shell meta-characters.
2384# Make two passes to allow for proper duplicate-argument suppression.
2385ac_configure_args=
2386ac_configure_args0=
2387ac_configure_args1=
2388ac_must_keep_next=false
2389for ac_pass in 1 2
2390do
2391 for ac_arg
2392 do
2393 case $ac_arg in
2394 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2396 | -silent | --silent | --silen | --sile | --sil)
2397 continue ;;
2398 *\'*)
2399 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2400 esac
2401 case $ac_pass in
2402 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2403 2)
2404 as_fn_append ac_configure_args1 " '$ac_arg'"
2405 if test $ac_must_keep_next = true; then
2406 ac_must_keep_next=false # Got value, back to normal.
2407 else
2408 case $ac_arg in
2409 *=* | --config-cache | -C | -disable-* | --disable-* \
2410 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2411 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2412 | -with-* | --with-* | -without-* | --without-* | --x)
2413 case "$ac_configure_args0 " in
2414 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2415 esac
2416 ;;
2417 -* ) ac_must_keep_next=true ;;
2418 esac
2419 fi
2420 as_fn_append ac_configure_args " '$ac_arg'"
2421 ;;
2422 esac
2423 done
2424done
2425{ ac_configure_args0=; unset ac_configure_args0;}
2426{ ac_configure_args1=; unset ac_configure_args1;}
1d1f116d 2427
81ecdfbb
RW
2428# When interrupted or exit'd, cleanup temporary files, and complete
2429# config.log. We remove comments because anyway the quotes in there
2430# would cause problems or look ugly.
2431# WARNING: Use '\'' to represent an apostrophe within the trap.
2432# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2433trap 'exit_status=$?
2434 # Save into config.log some information that might help in debugging.
2435 {
2436 echo
bae7f79e 2437
d0ac1c44 2438 $as_echo "## ---------------- ##
81ecdfbb 2439## Cache variables. ##
d0ac1c44 2440## ---------------- ##"
81ecdfbb
RW
2441 echo
2442 # The following way of writing the cache mishandles newlines in values,
2443(
2444 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2445 eval ac_val=\$$ac_var
2446 case $ac_val in #(
2447 *${as_nl}*)
2448 case $ac_var in #(
2449 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2450$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2451 esac
2452 case $ac_var in #(
2453 _ | IFS | as_nl) ;; #(
2454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2455 *) { eval $ac_var=; unset $ac_var;} ;;
2456 esac ;;
2457 esac
2458 done
2459 (set) 2>&1 |
2460 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2461 *${as_nl}ac_space=\ *)
2462 sed -n \
2463 "s/'\''/'\''\\\\'\'''\''/g;
2464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2465 ;; #(
2466 *)
2467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2468 ;;
2469 esac |
2470 sort
2471)
2472 echo
bae7f79e 2473
d0ac1c44 2474 $as_echo "## ----------------- ##
81ecdfbb 2475## Output variables. ##
d0ac1c44 2476## ----------------- ##"
81ecdfbb
RW
2477 echo
2478 for ac_var in $ac_subst_vars
2479 do
2480 eval ac_val=\$$ac_var
2481 case $ac_val in
2482 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483 esac
2484 $as_echo "$ac_var='\''$ac_val'\''"
2485 done | sort
2486 echo
bae7f79e 2487
81ecdfbb 2488 if test -n "$ac_subst_files"; then
d0ac1c44 2489 $as_echo "## ------------------- ##
81ecdfbb 2490## File substitutions. ##
d0ac1c44 2491## ------------------- ##"
81ecdfbb
RW
2492 echo
2493 for ac_var in $ac_subst_files
2494 do
2495 eval ac_val=\$$ac_var
2496 case $ac_val in
2497 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2498 esac
2499 $as_echo "$ac_var='\''$ac_val'\''"
2500 done | sort
2501 echo
2502 fi
bae7f79e 2503
81ecdfbb 2504 if test -s confdefs.h; then
d0ac1c44 2505 $as_echo "## ----------- ##
81ecdfbb 2506## confdefs.h. ##
d0ac1c44 2507## ----------- ##"
81ecdfbb
RW
2508 echo
2509 cat confdefs.h
2510 echo
2511 fi
2512 test "$ac_signal" != 0 &&
2513 $as_echo "$as_me: caught signal $ac_signal"
2514 $as_echo "$as_me: exit $exit_status"
2515 } >&5
2516 rm -f core *.core core.conftest.* &&
2517 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2518 exit $exit_status
2519' 0
2520for ac_signal in 1 2 13 15; do
2521 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
bae7f79e 2522done
81ecdfbb 2523ac_signal=0
bae7f79e 2524
81ecdfbb
RW
2525# confdefs.h avoids OS command line length limits that DEFS can exceed.
2526rm -f -r conftest* confdefs.h
bae7f79e 2527
81ecdfbb 2528$as_echo "/* confdefs.h */" > confdefs.h
bae7f79e 2529
81ecdfbb 2530# Predefined preprocessor variables.
bae7f79e 2531
81ecdfbb
RW
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_NAME "$PACKAGE_NAME"
2534_ACEOF
bae7f79e 2535
81ecdfbb
RW
2536cat >>confdefs.h <<_ACEOF
2537#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2538_ACEOF
bae7f79e 2539
81ecdfbb
RW
2540cat >>confdefs.h <<_ACEOF
2541#define PACKAGE_VERSION "$PACKAGE_VERSION"
2542_ACEOF
bae7f79e 2543
81ecdfbb
RW
2544cat >>confdefs.h <<_ACEOF
2545#define PACKAGE_STRING "$PACKAGE_STRING"
2546_ACEOF
bae7f79e 2547
81ecdfbb
RW
2548cat >>confdefs.h <<_ACEOF
2549#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2550_ACEOF
bae7f79e 2551
81ecdfbb
RW
2552cat >>confdefs.h <<_ACEOF
2553#define PACKAGE_URL "$PACKAGE_URL"
2554_ACEOF
2555
2556
2557# Let the site file select an alternate cache file if it wants to.
2558# Prefer an explicitly selected file to automatically selected ones.
2559ac_site_file1=NONE
2560ac_site_file2=NONE
2561if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2562 # We do not want a PATH search for config.site.
2563 case $CONFIG_SITE in #((
2564 -*) ac_site_file1=./$CONFIG_SITE;;
2565 */*) ac_site_file1=$CONFIG_SITE;;
2566 *) ac_site_file1=./$CONFIG_SITE;;
2567 esac
81ecdfbb
RW
2568elif test "x$prefix" != xNONE; then
2569 ac_site_file1=$prefix/share/config.site
2570 ac_site_file2=$prefix/etc/config.site
2571else
2572 ac_site_file1=$ac_default_prefix/share/config.site
2573 ac_site_file2=$ac_default_prefix/etc/config.site
2574fi
2575for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2576do
2577 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2578 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2580$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2581 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2582 . "$ac_site_file" \
2583 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585as_fn_error $? "failed to load site script $ac_site_file
2586See \`config.log' for more details" "$LINENO" 5; }
81ecdfbb
RW
2587 fi
2588done
2589
2590if test -r "$cache_file"; then
d0ac1c44
SM
2591 # Some versions of bash will fail to source /dev/null (special files
2592 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2593 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2595$as_echo "$as_me: loading cache $cache_file" >&6;}
2596 case $cache_file in
2597 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2598 *) . "./$cache_file";;
2599 esac
2600 fi
2601else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2603$as_echo "$as_me: creating cache $cache_file" >&6;}
2604 >$cache_file
2605fi
2606
2607# Check that the precious variables saved in the cache have kept the same
2608# value.
2609ac_cache_corrupted=false
2610for ac_var in $ac_precious_vars; do
2611 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612 eval ac_new_set=\$ac_env_${ac_var}_set
2613 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614 eval ac_new_val=\$ac_env_${ac_var}_value
2615 case $ac_old_set,$ac_new_set in
2616 set,)
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2618$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2620 ,set)
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2622$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2623 ac_cache_corrupted=: ;;
2624 ,);;
2625 *)
2626 if test "x$ac_old_val" != "x$ac_new_val"; then
2627 # differences in whitespace do not lead to failure.
2628 ac_old_val_w=`echo x $ac_old_val`
2629 ac_new_val_w=`echo x $ac_new_val`
2630 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2632$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2633 ac_cache_corrupted=:
2634 else
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2636$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637 eval $ac_var=\$ac_old_val
2638 fi
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2640$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2642$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2643 fi;;
2644 esac
2645 # Pass precious variables to config.status.
2646 if test "$ac_new_set" = set; then
2647 case $ac_new_val in
2648 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2649 *) ac_arg=$ac_var=$ac_new_val ;;
2650 esac
2651 case " $ac_configure_args " in
2652 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2653 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2654 esac
2655 fi
2656done
2657if $ac_cache_corrupted; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2661$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2662 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
81ecdfbb
RW
2663fi
2664## -------------------- ##
2665## Main body of script. ##
2666## -------------------- ##
2667
2668ac_ext=c
2669ac_cpp='$CPP $CPPFLAGS'
2670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673
2674
2675
2676
2677
2678
2679
2680ac_aux_dir=
2681for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2682 if test -f "$ac_dir/install-sh"; then
2683 ac_aux_dir=$ac_dir
2684 ac_install_sh="$ac_aux_dir/install-sh -c"
2685 break
2686 elif test -f "$ac_dir/install.sh"; then
2687 ac_aux_dir=$ac_dir
2688 ac_install_sh="$ac_aux_dir/install.sh -c"
2689 break
2690 elif test -f "$ac_dir/shtool"; then
2691 ac_aux_dir=$ac_dir
2692 ac_install_sh="$ac_aux_dir/shtool install -c"
2693 break
2694 fi
81ecdfbb
RW
2695done
2696if test -z "$ac_aux_dir"; then
d0ac1c44 2697 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
81ecdfbb
RW
2698fi
2699
2700# These three variables are undocumented and unsupported,
2701# and are intended to be withdrawn in a future Autoconf release.
2702# They can cause serious problems if a builder's source tree is in a directory
2703# whose full name contains unusual characters.
2704ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2705ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2706ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2707
2708
2709# Make sure we can run config.sub.
2710$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2711 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2712
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2714$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2715if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2716 $as_echo_n "(cached) " >&6
2717else
2718 ac_build_alias=$build_alias
2719test "x$ac_build_alias" = x &&
2720 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2721test "x$ac_build_alias" = x &&
d0ac1c44 2722 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2723ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2724 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2725
2726fi
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2728$as_echo "$ac_cv_build" >&6; }
2729case $ac_cv_build in
2730*-*-*) ;;
d0ac1c44 2731*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb
RW
2732esac
2733build=$ac_cv_build
2734ac_save_IFS=$IFS; IFS='-'
2735set x $ac_cv_build
2736shift
2737build_cpu=$1
2738build_vendor=$2
2739shift; shift
2740# Remember, the first character of IFS is used to create $*,
2741# except with old shells:
2742build_os=$*
2743IFS=$ac_save_IFS
2744case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2745
2746
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2748$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2749if ${ac_cv_host+:} false; then :
81ecdfbb
RW
2750 $as_echo_n "(cached) " >&6
2751else
2752 if test "x$host_alias" = x; then
2753 ac_cv_host=$ac_cv_build
2754else
2755 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2756 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb
RW
2757fi
2758
2759fi
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2761$as_echo "$ac_cv_host" >&6; }
2762case $ac_cv_host in
2763*-*-*) ;;
d0ac1c44 2764*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb
RW
2765esac
2766host=$ac_cv_host
2767ac_save_IFS=$IFS; IFS='-'
2768set x $ac_cv_host
2769shift
2770host_cpu=$1
2771host_vendor=$2
2772shift; shift
2773# Remember, the first character of IFS is used to create $*,
2774# except with old shells:
2775host_os=$*
2776IFS=$ac_save_IFS
2777case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2778
2779
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2781$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2782if ${ac_cv_target+:} false; then :
81ecdfbb
RW
2783 $as_echo_n "(cached) " >&6
2784else
2785 if test "x$target_alias" = x; then
2786 ac_cv_target=$ac_cv_host
2787else
2788 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2789 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb
RW
2790fi
2791
2792fi
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2794$as_echo "$ac_cv_target" >&6; }
2795case $ac_cv_target in
2796*-*-*) ;;
d0ac1c44 2797*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb
RW
2798esac
2799target=$ac_cv_target
2800ac_save_IFS=$IFS; IFS='-'
2801set x $ac_cv_target
2802shift
2803target_cpu=$1
2804target_vendor=$2
2805shift; shift
2806# Remember, the first character of IFS is used to create $*,
2807# except with old shells:
2808target_os=$*
2809IFS=$ac_save_IFS
2810case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2811
2812
2813# The aliases save the names the user supplied, while $host etc.
bae7f79e
ILT
2814# will get canonicalized.
2815test -n "$target_alias" &&
2816 test "$program_prefix$program_suffix$program_transform_name" = \
2817 NONENONEs,x,x, &&
2818 program_prefix=${target_alias}-
2819
d0ac1c44 2820am__api_version='1.15'
81ecdfbb 2821
bae7f79e
ILT
2822# Find a good install program. We prefer a C program (faster),
2823# so one script is as good as another. But avoid the broken or
2824# incompatible versions:
2825# SysV /etc/install, /usr/sbin/install
2826# SunOS /usr/etc/install
2827# IRIX /sbin/install
2828# AIX /bin/install
2829# AmigaOS /C/install, which installs bootblocks on floppy discs
2830# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2831# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2832# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2833# OS/2's system install, which has a completely different semantic
2834# ./install, which can be erroneously created by make from ./install.sh.
f5314dd5 2835# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2837$as_echo_n "checking for a BSD-compatible install... " >&6; }
bae7f79e 2838if test -z "$INSTALL"; then
d0ac1c44 2839if ${ac_cv_path_install+:} false; then :
81ecdfbb 2840 $as_echo_n "(cached) " >&6
bae7f79e
ILT
2841else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843for as_dir in $PATH
2844do
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2847 # Account for people who put trailing slashes in PATH elements.
2848case $as_dir/ in #((
2849 ./ | .// | /[cC]/* | \
bae7f79e 2850 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2851 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
bae7f79e
ILT
2852 /usr/ucb/* ) ;;
2853 *)
2854 # OSF1 and SCO ODT 3.0 have their own names for install.
2855 # Don't use installbsd from OSF since it installs stuff as root
2856 # by default.
2857 for ac_prog in ginstall scoinst install; do
2858 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2859 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bae7f79e
ILT
2860 if test $ac_prog = install &&
2861 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2862 # AIX install. It has an incompatible calling convention.
2863 :
2864 elif test $ac_prog = install &&
2865 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2866 # program-specific install script used by HP pwplus--don't use.
2867 :
2868 else
f5314dd5
DM
2869 rm -rf conftest.one conftest.two conftest.dir
2870 echo one > conftest.one
2871 echo two > conftest.two
2872 mkdir conftest.dir
2873 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2874 test -s conftest.one && test -s conftest.two &&
2875 test -s conftest.dir/conftest.one &&
2876 test -s conftest.dir/conftest.two
2877 then
2878 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2879 break 3
2880 fi
bae7f79e
ILT
2881 fi
2882 fi
2883 done
2884 done
2885 ;;
2886esac
81ecdfbb
RW
2887
2888 done
2889IFS=$as_save_IFS
bae7f79e 2890
f5314dd5 2891rm -rf conftest.one conftest.two conftest.dir
bae7f79e
ILT
2892
2893fi
2894 if test "${ac_cv_path_install+set}" = set; then
2895 INSTALL=$ac_cv_path_install
2896 else
f5314dd5
DM
2897 # As a last resort, use the slow shell script. Don't cache a
2898 # value for INSTALL within a source directory, because that will
bae7f79e 2899 # break other packages using the cache if that directory is
f5314dd5 2900 # removed, or if the value is a relative name.
bae7f79e
ILT
2901 INSTALL=$ac_install_sh
2902 fi
2903fi
81ecdfbb
RW
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2905$as_echo "$INSTALL" >&6; }
bae7f79e
ILT
2906
2907# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2908# It thinks the first close brace ends the variable substitution.
2909test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2910
2911test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2912
2913test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2914
81ecdfbb
RW
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2916$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
2917# Reject unsafe characters in $srcdir or the absolute working directory
2918# name. Accept space and tab only in the latter.
2919am_lf='
2920'
2921case `pwd` in
2922 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 2923 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
2924esac
2925case $srcdir in
2926 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 2927 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
2928esac
2929
d0ac1c44 2930# Do 'set' in a subshell so we don't clobber the current shell's
bae7f79e
ILT
2931# arguments. Must try -L first in case configure is actually a
2932# symlink; some systems play weird games with the mod time of symlinks
2933# (eg FreeBSD returns the mod time of the symlink's containing
2934# directory).
2935if (
d0ac1c44
SM
2936 am_has_slept=no
2937 for am_try in 1 2; do
2938 echo "timestamp, slept: $am_has_slept" > conftest.file
2939 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2940 if test "$*" = "X"; then
2941 # -L didn't work.
2942 set X `ls -t "$srcdir/configure" conftest.file`
2943 fi
2944 if test "$*" != "X $srcdir/configure conftest.file" \
2945 && test "$*" != "X conftest.file $srcdir/configure"; then
2946
2947 # If neither matched, then we have a broken ls. This can happen
2948 # if, for instance, CONFIG_SHELL is bash and it inherits a
2949 # broken ls alias from the environment. This has actually
2950 # happened. Such a system could not be considered "sane".
2951 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2952 alias in your environment" "$LINENO" 5
2953 fi
2954 if test "$2" = conftest.file || test $am_try -eq 2; then
2955 break
2956 fi
2957 # Just in case.
2958 sleep 1
2959 am_has_slept=yes
2960 done
bae7f79e
ILT
2961 test "$2" = conftest.file
2962 )
2963then
2964 # Ok.
2965 :
2966else
d0ac1c44 2967 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 2968Check your system clock" "$LINENO" 5
bae7f79e 2969fi
81ecdfbb
RW
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971$as_echo "yes" >&6; }
d0ac1c44
SM
2972# If we didn't sleep, we still need to ensure time stamps of config.status and
2973# generated files are strictly newer.
2974am_sleep_pid=
2975if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2976 ( sleep 1 ) &
2977 am_sleep_pid=$!
2978fi
2979
2980rm -f conftest.file
2981
bae7f79e 2982test "$program_prefix" != NONE &&
81ecdfbb 2983 program_transform_name="s&^&$program_prefix&;$program_transform_name"
bae7f79e
ILT
2984# Use a double $ so make ignores it.
2985test "$program_suffix" != NONE &&
81ecdfbb
RW
2986 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2987# Double any \ or $.
bae7f79e 2988# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2989ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2990program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
bae7f79e 2991
d0ac1c44
SM
2992# Expand $ac_aux_dir to an absolute path.
2993am_aux_dir=`cd "$ac_aux_dir" && pwd`
bae7f79e 2994
81ecdfbb
RW
2995if test x"${MISSING+set}" != xset; then
2996 case $am_aux_dir in
2997 *\ * | *\ *)
2998 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2999 *)
3000 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3001 esac
3002fi
bae7f79e 3003# Use eval to expand $SHELL
d0ac1c44
SM
3004if eval "$MISSING --is-lightweight"; then
3005 am_missing_run="$MISSING "
bae7f79e
ILT
3006else
3007 am_missing_run=
d0ac1c44
SM
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3009$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
81ecdfbb
RW
3010fi
3011
d0ac1c44 3012if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
3013 case $am_aux_dir in
3014 *\ * | *\ *)
3015 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3016 *)
3017 install_sh="\${SHELL} $am_aux_dir/install-sh"
3018 esac
3019fi
3020
d0ac1c44
SM
3021# Installed binaries are usually stripped using 'strip' when the user
3022# run "make install-strip". However 'strip' might not be the right
81ecdfbb 3023# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 3024# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
3025if test "$cross_compiling" != no; then
3026 if test -n "$ac_tool_prefix"; then
3027 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3028set dummy ${ac_tool_prefix}strip; ac_word=$2
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3031if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb
RW
3032 $as_echo_n "(cached) " >&6
3033else
3034 if test -n "$STRIP"; then
3035 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3036else
3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3044 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048done
3049 done
3050IFS=$as_save_IFS
3051
3052fi
3053fi
3054STRIP=$ac_cv_prog_STRIP
3055if test -n "$STRIP"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3057$as_echo "$STRIP" >&6; }
3058else
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060$as_echo "no" >&6; }
3061fi
3062
3063
3064fi
3065if test -z "$ac_cv_prog_STRIP"; then
3066 ac_ct_STRIP=$STRIP
3067 # Extract the first word of "strip", so it can be a program name with args.
3068set dummy strip; ac_word=$2
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3071if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
3072 $as_echo_n "(cached) " >&6
3073else
3074 if test -n "$ac_ct_STRIP"; then
3075 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3076else
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3084 ac_cv_prog_ac_ct_STRIP="strip"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3087 fi
3088done
3089 done
3090IFS=$as_save_IFS
3091
3092fi
3093fi
3094ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3095if test -n "$ac_ct_STRIP"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3097$as_echo "$ac_ct_STRIP" >&6; }
3098else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100$as_echo "no" >&6; }
3101fi
3102
3103 if test "x$ac_ct_STRIP" = x; then
3104 STRIP=":"
3105 else
3106 case $cross_compiling:$ac_tool_warned in
3107yes:)
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3110ac_tool_warned=yes ;;
3111esac
3112 STRIP=$ac_ct_STRIP
3113 fi
3114else
3115 STRIP="$ac_cv_prog_STRIP"
3116fi
3117
3118fi
3119INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3120
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3122$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3123if test -z "$MKDIR_P"; then
d0ac1c44 3124 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
3125 $as_echo_n "(cached) " >&6
3126else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3129do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_prog in mkdir gmkdir; do
3133 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3134 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
3135 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3136 'mkdir (GNU coreutils) '* | \
3137 'mkdir (coreutils) '* | \
3138 'mkdir (fileutils) '4.1*)
3139 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3140 break 3;;
3141 esac
3142 done
3143 done
bae7f79e 3144 done
81ecdfbb
RW
3145IFS=$as_save_IFS
3146
3147fi
3148
d0ac1c44 3149 test -d ./--version && rmdir ./--version
81ecdfbb
RW
3150 if test "${ac_cv_path_mkdir+set}" = set; then
3151 MKDIR_P="$ac_cv_path_mkdir -p"
bae7f79e 3152 else
81ecdfbb
RW
3153 # As a last resort, use the slow shell script. Don't cache a
3154 # value for MKDIR_P within a source directory, because that will
3155 # break other packages using the cache if that directory is
3156 # removed, or if the value is a relative name.
81ecdfbb 3157 MKDIR_P="$ac_install_sh -d"
bae7f79e
ILT
3158 fi
3159fi
81ecdfbb
RW
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3161$as_echo "$MKDIR_P" >&6; }
3162
bae7f79e
ILT
3163for ac_prog in gawk mawk nawk awk
3164do
3165 # Extract the first word of "$ac_prog", so it can be a program name with args.
3166set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3169if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb 3170 $as_echo_n "(cached) " >&6
bae7f79e
ILT
3171else
3172 if test -n "$AWK"; then
3173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3174else
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH
3177do
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
81ecdfbb 3180 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bae7f79e 3182 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bae7f79e
ILT
3184 break 2
3185 fi
3186done
81ecdfbb
RW
3187 done
3188IFS=$as_save_IFS
bae7f79e
ILT
3189
3190fi
3191fi
3192AWK=$ac_cv_prog_AWK
3193if test -n "$AWK"; then
81ecdfbb
RW
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3195$as_echo "$AWK" >&6; }
bae7f79e 3196else
81ecdfbb
RW
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198$as_echo "no" >&6; }
bae7f79e
ILT
3199fi
3200
81ecdfbb 3201
bae7f79e
ILT
3202 test -n "$AWK" && break
3203done
3204
81ecdfbb
RW
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3206$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3207set x ${MAKE-make}
3208ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 3209if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 3210 $as_echo_n "(cached) " >&6
bae7f79e
ILT
3211else
3212 cat >conftest.make <<\_ACEOF
81ecdfbb 3213SHELL = /bin/sh
bae7f79e 3214all:
81ecdfbb 3215 @echo '@@@%%%=$(MAKE)=@@@%%%'
bae7f79e 3216_ACEOF
d0ac1c44 3217# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
3218case `${MAKE-make} -f conftest.make 2>/dev/null` in
3219 *@@@%%%=?*=@@@%%%*)
3220 eval ac_cv_prog_make_${ac_make}_set=yes;;
3221 *)
3222 eval ac_cv_prog_make_${ac_make}_set=no;;
3223esac
bae7f79e
ILT
3224rm -f conftest.make
3225fi
81ecdfbb
RW
3226if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228$as_echo "yes" >&6; }
bae7f79e
ILT
3229 SET_MAKE=
3230else
81ecdfbb
RW
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232$as_echo "no" >&6; }
bae7f79e
ILT
3233 SET_MAKE="MAKE=${MAKE-make}"
3234fi
3235
3236rm -rf .tst 2>/dev/null
3237mkdir .tst 2>/dev/null
3238if test -d .tst; then
3239 am__leading_dot=.
3240else
3241 am__leading_dot=_
3242fi
3243rmdir .tst 2>/dev/null
3244
d0ac1c44
SM
3245# Check whether --enable-silent-rules was given.
3246if test "${enable_silent_rules+set}" = set; then :
3247 enableval=$enable_silent_rules;
3248fi
3249
3250case $enable_silent_rules in # (((
3251 yes) AM_DEFAULT_VERBOSITY=0;;
3252 no) AM_DEFAULT_VERBOSITY=1;;
3253 *) AM_DEFAULT_VERBOSITY=1;;
3254esac
3255am_make=${MAKE-make}
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3257$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3258if ${am_cv_make_support_nested_variables+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260else
3261 if $as_echo 'TRUE=$(BAR$(V))
3262BAR0=false
3263BAR1=true
3264V=1
3265am__doit:
3266 @$(TRUE)
3267.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3268 am_cv_make_support_nested_variables=yes
3269else
3270 am_cv_make_support_nested_variables=no
3271fi
3272fi
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3274$as_echo "$am_cv_make_support_nested_variables" >&6; }
3275if test $am_cv_make_support_nested_variables = yes; then
3276 AM_V='$(V)'
3277 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3278else
3279 AM_V=$AM_DEFAULT_VERBOSITY
3280 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3281fi
3282AM_BACKSLASH='\'
3283
81ecdfbb
RW
3284if test "`cd $srcdir && pwd`" != "`pwd`"; then
3285 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3286 # is not polluted with repeated "-I."
3287 am__isrc=' -I$(srcdir)'
3288 # test to see if srcdir already configured
3289 if test -f $srcdir/config.status; then
d0ac1c44 3290 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 3291 fi
bae7f79e
ILT
3292fi
3293
3294# test whether we have cygpath
3295if test -z "$CYGPATH_W"; then
3296 if (cygpath --version) >/dev/null 2>/dev/null; then
3297 CYGPATH_W='cygpath -w'
3298 else
3299 CYGPATH_W=echo
3300 fi
3301fi
3302
3303
3304# Define the identity of the package.
8486ee48
ILT
3305 PACKAGE='gold'
3306 VERSION='0.1'
bae7f79e
ILT
3307
3308
3309cat >>confdefs.h <<_ACEOF
3310#define PACKAGE "$PACKAGE"
3311_ACEOF
3312
3313
3314cat >>confdefs.h <<_ACEOF
3315#define VERSION "$VERSION"
3316_ACEOF
3317
3318# Some tools Automake needs.
3319
3320ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3321
3322
3323AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3324
3325
3326AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3327
3328
3329AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3330
3331
3332MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3333
d0ac1c44
SM
3334# For better backward compatibility. To be removed once Automake 1.9.x
3335# dies out for good. For more background, see:
3336# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3337# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3338mkdir_p='$(MKDIR_P)'
3339
3340# We need awk for the "check" target (and possibly the TAP driver). The
3341# system "awk" is bad on some platforms.
6eb7d830
AM
3342# Always define AMTAR for backward compatibility. Yes, it's still used
3343# in the wild :-( We should find a proper way to deprecate it ...
3344AMTAR='$${TAR-tar}'
bae7f79e 3345
d0ac1c44
SM
3346
3347# We'll loop over all known methods to create a tar archive until one works.
3348_am_tools='gnutar pax cpio none'
3349
6eb7d830 3350am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
81ecdfbb
RW
3351
3352
3353
3354
3355
3356
d0ac1c44
SM
3357# POSIX will say in a future version that running "rm -f" with no argument
3358# is OK; and we want to be able to make that assumption in our Makefile
3359# recipes. So use an aggressive probe to check that the usage we want is
3360# actually supported "in the wild" to an acceptable degree.
3361# See automake bug#10828.
3362# To make any issue more visible, cause the running configure to be aborted
3363# by default if the 'rm' program in use doesn't match our expectations; the
3364# user can still override this though.
3365if rm -f && rm -fr && rm -rf; then : OK; else
3366 cat >&2 <<'END'
3367Oops!
3368
3369Your 'rm' program seems unable to run without file operands specified
3370on the command line, even when the '-f' option is present. This is contrary
3371to the behaviour of most rm programs out there, and not conforming with
3372the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3373
3374Please tell bug-automake@gnu.org about your system, including the value
3375of your $PATH and any error possibly output before this message. This
3376can help us improve future automake versions.
3377
3378END
3379 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3380 echo 'Configuration will proceed anyway, since you have set the' >&2
3381 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3382 echo >&2
3383 else
3384 cat >&2 <<'END'
3385Aborting the configuration process, to ensure you take notice of the issue.
3386
3387You can download and install GNU coreutils to get an 'rm' implementation
3388that behaves properly: <http://www.gnu.org/software/coreutils/>.
3389
3390If you want to complete the configuration process using your problematic
3391'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3392to "yes", and re-run configure.
3393
3394END
3395 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3396 fi
3397fi
3398
3399
81ecdfbb
RW
3400ac_config_headers="$ac_config_headers config.h:config.in"
3401
3402
24538276 3403DEPDIR="${am__leading_dot}deps"
81ecdfbb 3404
24538276 3405ac_config_commands="$ac_config_commands depfiles"
df7b86aa
NC
3406
3407
24538276
CC
3408am_make=${MAKE-make}
3409cat > confinc << 'END'
3410am__doit:
3411 @echo this is the am__doit target
3412.PHONY: am__doit
3413END
3414# If we don't find an include directive, just comment out the code.
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3416$as_echo_n "checking for style of include used by $am_make... " >&6; }
3417am__include="#"
3418am__quote=
3419_am_result=none
3420# First try GNU make style include.
3421echo "include confinc" > confmf
d0ac1c44 3422# Ignore all kinds of additional output from 'make'.
24538276
CC
3423case `$am_make -s -f confmf 2> /dev/null` in #(
3424*the\ am__doit\ target*)
3425 am__include=include
3426 am__quote=
3427 _am_result=GNU
3428 ;;
3429esac
3430# Now try BSD make style include.
3431if test "$am__include" = "#"; then
3432 echo '.include "confinc"' > confmf
3433 case `$am_make -s -f confmf 2> /dev/null` in #(
3434 *the\ am__doit\ target*)
3435 am__include=.include
3436 am__quote="\""
3437 _am_result=BSD
3438 ;;
3439 esac
bae7f79e
ILT
3440fi
3441
81ecdfbb 3442
24538276
CC
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3444$as_echo "$_am_result" >&6; }
3445rm -f confinc confmf
ad2d6943 3446
24538276
CC
3447# Check whether --enable-dependency-tracking was given.
3448if test "${enable_dependency_tracking+set}" = set; then :
3449 enableval=$enable_dependency_tracking;
ad2d6943
ILT
3450fi
3451
24538276
CC
3452if test "x$enable_dependency_tracking" != xno; then
3453 am_depcomp="$ac_aux_dir/depcomp"
3454 AMDEPBACKSLASH='\'
3455 am__nodep='_no'
4fda8867 3456fi
24538276
CC
3457 if test "x$enable_dependency_tracking" != xno; then
3458 AMDEP_TRUE=
3459 AMDEP_FALSE='#'
fe9a4c12 3460else
24538276
CC
3461 AMDEP_TRUE='#'
3462 AMDEP_FALSE=
81ecdfbb
RW
3463fi
3464
fe9a4c12 3465
24538276
CC
3466ac_ext=c
3467ac_cpp='$CPP $CPPFLAGS'
3468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471if test -n "$ac_tool_prefix"; then
3472 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3473set dummy ${ac_tool_prefix}gcc; ac_word=$2
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3476if ${ac_cv_prog_CC+:} false; then :
24538276 3477 $as_echo_n "(cached) " >&6
fe9a4c12 3478else
24538276
CC
3479 if test -n "$CC"; then
3480 ac_cv_prog_CC="$CC" # Let the user override the test.
3481else
3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3489 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 break 2
3492 fi
3493done
3494 done
3495IFS=$as_save_IFS
fe9a4c12 3496
24538276
CC
3497fi
3498fi
3499CC=$ac_cv_prog_CC
3500if test -n "$CC"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3502$as_echo "$CC" >&6; }
89fc3421 3503else
24538276
CC
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505$as_echo "no" >&6; }
81ecdfbb
RW
3506fi
3507
89fc3421 3508
24538276
CC
3509fi
3510if test -z "$ac_cv_prog_CC"; then
3511 ac_ct_CC=$CC
3512 # Extract the first word of "gcc", so it can be a program name with args.
3513set dummy gcc; ac_word=$2
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3516if ${ac_cv_prog_ac_ct_CC+:} false; then :
24538276
CC
3517 $as_echo_n "(cached) " >&6
3518else
3519 if test -n "$ac_ct_CC"; then
3520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3521else
3522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH
3524do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3529 ac_cv_prog_ac_ct_CC="gcc"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533done
3534 done
3535IFS=$as_save_IFS
89fc3421
CC
3536
3537fi
24538276
CC
3538fi
3539ac_ct_CC=$ac_cv_prog_ac_ct_CC
3540if test -n "$ac_ct_CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3542$as_echo "$ac_ct_CC" >&6; }
89fc3421 3543else
24538276
CC
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545$as_echo "no" >&6; }
89fc3421
CC
3546fi
3547
24538276
CC
3548 if test "x$ac_ct_CC" = x; then
3549 CC=""
3550 else
3551 case $cross_compiling:$ac_tool_warned in
3552yes:)
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3555ac_tool_warned=yes ;;
6b1edb94 3556esac
24538276
CC
3557 CC=$ac_ct_CC
3558 fi
3559else
3560 CC="$ac_cv_prog_CC"
6b1edb94 3561fi
6b1edb94 3562
24538276
CC
3563if test -z "$CC"; then
3564 if test -n "$ac_tool_prefix"; then
3565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3566set dummy ${ac_tool_prefix}cc; ac_word=$2
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3569if ${ac_cv_prog_CC+:} false; then :
24538276 3570 $as_echo_n "(cached) " >&6
193a53d9 3571else
24538276
CC
3572 if test -n "$CC"; then
3573 ac_cv_prog_CC="$CC" # Let the user override the test.
3574else
3575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576for as_dir in $PATH
3577do
3578 IFS=$as_save_IFS
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3582 ac_cv_prog_CC="${ac_tool_prefix}cc"
3583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 break 2
3585 fi
3586done
3587 done
3588IFS=$as_save_IFS
193a53d9 3589
24538276
CC
3590fi
3591fi
3592CC=$ac_cv_prog_CC
3593if test -n "$CC"; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3595$as_echo "$CC" >&6; }
3596else
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598$as_echo "no" >&6; }
81ecdfbb
RW
3599fi
3600
193a53d9 3601
24538276 3602 fi
193a53d9 3603fi
24538276
CC
3604if test -z "$CC"; then
3605 # Extract the first word of "cc", so it can be a program name with args.
3606set dummy cc; ac_word=$2
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3609if ${ac_cv_prog_CC+:} false; then :
24538276
CC
3610 $as_echo_n "(cached) " >&6
3611else
3612 if test -n "$CC"; then
3613 ac_cv_prog_CC="$CC" # Let the user override the test.
3614else
3615 ac_prog_rejected=no
3616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617for as_dir in $PATH
3618do
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3624 ac_prog_rejected=yes
3625 continue
3626 fi
3627 ac_cv_prog_CC="cc"
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 break 2
3630 fi
3631done
3632 done
3633IFS=$as_save_IFS
193a53d9 3634
24538276
CC
3635if test $ac_prog_rejected = yes; then
3636 # We found a bogon in the path, so make sure we never use it.
3637 set dummy $ac_cv_prog_CC
3638 shift
3639 if test $# != 0; then
3640 # We chose a different compiler from the bogus one.
3641 # However, it has the same basename, so the bogon will be chosen
3642 # first if we set CC to just the basename; use the full file name.
3643 shift
3644 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3645 fi
3646fi
3647fi
3648fi
3649CC=$ac_cv_prog_CC
3650if test -n "$CC"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3652$as_echo "$CC" >&6; }
2760f24c 3653else
24538276
CC
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655$as_echo "no" >&6; }
2760f24c
RG
3656fi
3657
3658
24538276
CC
3659fi
3660if test -z "$CC"; then
3661 if test -n "$ac_tool_prefix"; then
3662 for ac_prog in cl.exe
3663 do
3664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3665set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3668if ${ac_cv_prog_CC+:} false; then :
24538276
CC
3669 $as_echo_n "(cached) " >&6
3670else
3671 if test -n "$CC"; then
3672 ac_cv_prog_CC="$CC" # Let the user override the test.
3673else
3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3681 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 break 2
3684 fi
3685done
3686 done
3687IFS=$as_save_IFS
2760f24c 3688
053a4d68 3689fi
364c7fa5 3690fi
24538276
CC
3691CC=$ac_cv_prog_CC
3692if test -n "$CC"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3694$as_echo "$CC" >&6; }
364c7fa5 3695else
24538276
CC
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697$as_echo "no" >&6; }
364c7fa5
ILT
3698fi
3699
364c7fa5 3700
24538276
CC
3701 test -n "$CC" && break
3702 done
e79a4bad 3703fi
24538276
CC
3704if test -z "$CC"; then
3705 ac_ct_CC=$CC
3706 for ac_prog in cl.exe
3707do
3708 # Extract the first word of "$ac_prog", so it can be a program name with args.
3709set dummy $ac_prog; ac_word=$2
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3712if ${ac_cv_prog_ac_ct_CC+:} false; then :
24538276 3713 $as_echo_n "(cached) " >&6
364c7fa5 3714else
24538276
CC
3715 if test -n "$ac_ct_CC"; then
3716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4fc1b9d4 3717else
24538276
CC
3718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719for as_dir in $PATH
3720do
3721 IFS=$as_save_IFS
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
3725 ac_cv_prog_ac_ct_CC="$ac_prog"
3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3727 break 2
3728 fi
3729done
3730 done
3731IFS=$as_save_IFS
4fc1b9d4 3732
ad961eab 3733fi
0a6f1bf2 3734fi
24538276
CC
3735ac_ct_CC=$ac_cv_prog_ac_ct_CC
3736if test -n "$ac_ct_CC"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3738$as_echo "$ac_ct_CC" >&6; }
9810d34d 3739else
24538276
CC
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741$as_echo "no" >&6; }
9810d34d
SS
3742fi
3743
bae7f79e 3744
24538276 3745 test -n "$ac_ct_CC" && break
9109c078 3746done
bae7f79e 3747
24538276
CC
3748 if test "x$ac_ct_CC" = x; then
3749 CC=""
3750 else
3751 case $cross_compiling:$ac_tool_warned in
3752yes:)
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3755ac_tool_warned=yes ;;
3756esac
3757 CC=$ac_ct_CC
3758 fi
537b5f51 3759fi
fa99aa09 3760
81ecdfbb 3761fi
fa99aa09 3762
fa99aa09 3763
24538276
CC
3764test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3766as_fn_error $? "no acceptable C compiler found in \$PATH
3767See \`config.log' for more details" "$LINENO" 5; }
fa99aa09 3768
24538276
CC
3769# Provide some information about the compiler.
3770$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3771set X $ac_compile
3772ac_compiler=$2
3773for ac_option in --version -v -V -qversion; do
3774 { { ac_try="$ac_compiler $ac_option >&5"
3775case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778esac
3779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780$as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3782 ac_status=$?
3783 if test -s conftest.err; then
3784 sed '10a\
3785... rest of stderr output deleted ...
3786 10q' conftest.err >conftest.er1
3787 cat conftest.er1 >&5
24538276 3788 fi
d0ac1c44 3789 rm -f conftest.er1 conftest.err
24538276
CC
3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791 test $ac_status = 0; }
3792done
bae7f79e 3793
24538276
CC
3794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795/* end confdefs.h. */
bae7f79e 3796
24538276
CC
3797int
3798main ()
3799{
bae7f79e 3800
24538276
CC
3801 ;
3802 return 0;
3803}
81ecdfbb 3804_ACEOF
24538276 3805ac_clean_files_save=$ac_clean_files
d0ac1c44 3806ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
24538276
CC
3807# Try to create an executable without -o first, disregard a.out.
3808# It will help us diagnose broken compilers, and finding out an intuition
3809# of exeext.
d0ac1c44
SM
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3811$as_echo_n "checking whether the C compiler works... " >&6; }
24538276 3812ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
bae7f79e 3813
24538276
CC
3814# The possible output files:
3815ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
bae7f79e 3816
24538276
CC
3817ac_rmfiles=
3818for ac_file in $ac_files
3819do
3820 case $ac_file in
3821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3822 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3823 esac
3824done
3825rm -f $ac_rmfiles
bae7f79e 3826
24538276
CC
3827if { { ac_try="$ac_link_default"
3828case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831esac
3832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833$as_echo "$ac_try_echo"; } >&5
3834 (eval "$ac_link_default") 2>&5
3835 ac_status=$?
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }; then :
3838 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3839# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3840# in a Makefile. We should not override ac_cv_exeext if it was cached,
3841# so that the user can short-circuit this test for compilers unknown to
3842# Autoconf.
3843for ac_file in $ac_files ''
3844do
3845 test -f "$ac_file" || continue
3846 case $ac_file in
3847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3848 ;;
3849 [ab].out )
3850 # We found the default executable, but exeext='' is most
3851 # certainly right.
3852 break;;
3853 *.* )
3854 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3855 then :; else
3856 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3857 fi
3858 # We set ac_cv_exeext here because the later test for it is not
3859 # safe: cross compilers may not add the suffix if given an `-o'
3860 # argument, so we may need to know it at that point already.
3861 # Even if this section looks crufty: it has the advantage of
3862 # actually working.
3863 break;;
3864 * )
3865 break;;
3866 esac
3867done
3868test "$ac_cv_exeext" = no && ac_cv_exeext=
3f3cddf1 3869
3f3cddf1 3870else
24538276 3871 ac_file=''
3f3cddf1 3872fi
24538276 3873if test -z "$ac_file"; then :
d0ac1c44
SM
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875$as_echo "no" >&6; }
3876$as_echo "$as_me: failed program was:" >&5
24538276 3877sed 's/^/| /' conftest.$ac_ext >&5
3f3cddf1 3878
24538276
CC
3879{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3881as_fn_error 77 "C compiler cannot create executables
3882See \`config.log' for more details" "$LINENO" 5; }
3883else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3885$as_echo "yes" >&6; }
24538276 3886fi
d0ac1c44
SM
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3888$as_echo_n "checking for C compiler default output file name... " >&6; }
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3890$as_echo "$ac_file" >&6; }
24538276 3891ac_exeext=$ac_cv_exeext
3f3cddf1 3892
d0ac1c44 3893rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
24538276 3894ac_clean_files=$ac_clean_files_save
24538276
CC
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3896$as_echo_n "checking for suffix of executables... " >&6; }
3897if { { ac_try="$ac_link"
3898case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901esac
3902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903$as_echo "$ac_try_echo"; } >&5
3904 (eval "$ac_link") 2>&5
3905 ac_status=$?
3906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907 test $ac_status = 0; }; then :
3908 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3909# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3910# work properly (i.e., refer to `conftest.exe'), while it won't with
3911# `rm'.
3912for ac_file in conftest.exe conftest conftest.*; do
3913 test -f "$ac_file" || continue
3914 case $ac_file in
3915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3917 break;;
3918 * ) break;;
3919 esac
3920done
3921else
3922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3924as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3925See \`config.log' for more details" "$LINENO" 5; }
3f3cddf1 3926fi
d0ac1c44 3927rm -f conftest conftest$ac_cv_exeext
24538276
CC
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3929$as_echo "$ac_cv_exeext" >&6; }
3f3cddf1 3930
24538276
CC
3931rm -f conftest.$ac_ext
3932EXEEXT=$ac_cv_exeext
3933ac_exeext=$EXEEXT
d0ac1c44
SM
3934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935/* end confdefs.h. */
3936#include <stdio.h>
3937int
3938main ()
3939{
3940FILE *f = fopen ("conftest.out", "w");
3941 return ferror (f) || fclose (f) != 0;
3942
3943 ;
3944 return 0;
3945}
3946_ACEOF
3947ac_clean_files="$ac_clean_files conftest.out"
3948# Check that the compiler produces executables we can run. If not, either
3949# the compiler is broken, or we cross compile.
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3951$as_echo_n "checking whether we are cross compiling... " >&6; }
3952if test "$cross_compiling" != yes; then
3953 { { ac_try="$ac_link"
3954case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957esac
3958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959$as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3961 ac_status=$?
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }
3964 if { ac_try='./conftest$ac_cv_exeext'
3965 { { case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968esac
3969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3970$as_echo "$ac_try_echo"; } >&5
3971 (eval "$ac_try") 2>&5
3972 ac_status=$?
3973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3974 test $ac_status = 0; }; }; then
3975 cross_compiling=no
3976 else
3977 if test "$cross_compiling" = maybe; then
3978 cross_compiling=yes
3979 else
3980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982as_fn_error $? "cannot run C compiled programs.
3983If you meant to cross compile, use \`--host'.
3984See \`config.log' for more details" "$LINENO" 5; }
3985 fi
3986 fi
3987fi
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3989$as_echo "$cross_compiling" >&6; }
3990
3991rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3992ac_clean_files=$ac_clean_files_save
24538276
CC
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3994$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 3995if ${ac_cv_objext+:} false; then :
ebb300b2
CC
3996 $as_echo_n "(cached) " >&6
3997else
24538276
CC
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999/* end confdefs.h. */
4000
4001int
4002main ()
4003{
4004
4005 ;
4006 return 0;
4007}
4008_ACEOF
4009rm -f conftest.o conftest.obj
4010if { { ac_try="$ac_compile"
4011case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014esac
4015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016$as_echo "$ac_try_echo"; } >&5
4017 (eval "$ac_compile") 2>&5
4018 ac_status=$?
4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }; then :
4021 for ac_file in conftest.o conftest.obj conftest.*; do
4022 test -f "$ac_file" || continue;
4023 case $ac_file in
4024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4026 break;;
4027 esac
ebb300b2 4028done
24538276
CC
4029else
4030 $as_echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
ebb300b2 4032
24538276
CC
4033{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4035as_fn_error $? "cannot compute suffix of object files: cannot compile
4036See \`config.log' for more details" "$LINENO" 5; }
ebb300b2 4037fi
24538276 4038rm -f conftest.$ac_cv_objext conftest.$ac_ext
ebb300b2 4039fi
24538276
CC
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4041$as_echo "$ac_cv_objext" >&6; }
4042OBJEXT=$ac_cv_objext
4043ac_objext=$OBJEXT
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4045$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4046if ${ac_cv_c_compiler_gnu+:} false; then :
24538276 4047 $as_echo_n "(cached) " >&6
ebb300b2 4048else
24538276
CC
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050/* end confdefs.h. */
ebb300b2 4051
24538276
CC
4052int
4053main ()
4054{
4055#ifndef __GNUC__
4056 choke me
4057#endif
ebb300b2 4058
24538276
CC
4059 ;
4060 return 0;
4061}
4062_ACEOF
4063if ac_fn_c_try_compile "$LINENO"; then :
4064 ac_compiler_gnu=yes
ebb300b2 4065else
24538276 4066 ac_compiler_gnu=no
ebb300b2 4067fi
24538276
CC
4068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069ac_cv_c_compiler_gnu=$ac_compiler_gnu
4070
ebb300b2 4071fi
24538276
CC
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4073$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4074if test $ac_compiler_gnu = yes; then
4075 GCC=yes
ebb300b2 4076else
24538276 4077 GCC=
ebb300b2 4078fi
24538276
CC
4079ac_test_CFLAGS=${CFLAGS+set}
4080ac_save_CFLAGS=$CFLAGS
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4082$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4083if ${ac_cv_prog_cc_g+:} false; then :
24538276 4084 $as_echo_n "(cached) " >&6
ebb300b2 4085else
24538276
CC
4086 ac_save_c_werror_flag=$ac_c_werror_flag
4087 ac_c_werror_flag=yes
4088 ac_cv_prog_cc_g=no
4089 CFLAGS="-g"
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091/* end confdefs.h. */
ebb300b2 4092
24538276
CC
4093int
4094main ()
4095{
ebb300b2 4096
24538276
CC
4097 ;
4098 return 0;
4099}
4100_ACEOF
4101if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_cv_prog_cc_g=yes
81ecdfbb 4103else
24538276
CC
4104 CFLAGS=""
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106/* end confdefs.h. */
bae7f79e 4107
24538276
CC
4108int
4109main ()
4110{
bae7f79e 4111
24538276
CC
4112 ;
4113 return 0;
4114}
4115_ACEOF
4116if ac_fn_c_try_compile "$LINENO"; then :
bae7f79e 4117
81ecdfbb 4118else
24538276
CC
4119 ac_c_werror_flag=$ac_save_c_werror_flag
4120 CFLAGS="-g"
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122/* end confdefs.h. */
bae7f79e 4123
24538276
CC
4124int
4125main ()
4126{
4127
4128 ;
4129 return 0;
4130}
4131_ACEOF
4132if ac_fn_c_try_compile "$LINENO"; then :
4133 ac_cv_prog_cc_g=yes
81ecdfbb 4134fi
24538276 4135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81ecdfbb 4136fi
24538276 4137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bae7f79e 4138fi
24538276
CC
4139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4141fi
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4143$as_echo "$ac_cv_prog_cc_g" >&6; }
4144if test "$ac_test_CFLAGS" = set; then
4145 CFLAGS=$ac_save_CFLAGS
4146elif test $ac_cv_prog_cc_g = yes; then
4147 if test "$GCC" = yes; then
4148 CFLAGS="-g -O2"
81ecdfbb 4149 else
24538276 4150 CFLAGS="-g"
81ecdfbb 4151 fi
bae7f79e 4152else
24538276
CC
4153 if test "$GCC" = yes; then
4154 CFLAGS="-O2"
4155 else
4156 CFLAGS=
4157 fi
bae7f79e 4158fi
24538276
CC
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4160$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4161if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4162 $as_echo_n "(cached) " >&6
bae7f79e 4163else
24538276
CC
4164 ac_cv_prog_cc_c89=no
4165ac_save_CC=$CC
4166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167/* end confdefs.h. */
4168#include <stdarg.h>
4169#include <stdio.h>
d0ac1c44 4170struct stat;
24538276
CC
4171/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4172struct buf { int x; };
4173FILE * (*rcsopen) (struct buf *, struct stat *, int);
4174static char *e (p, i)
4175 char **p;
4176 int i;
4177{
4178 return p[i];
4179}
4180static char *f (char * (*g) (char **, int), char **p, ...)
4181{
4182 char *s;
4183 va_list v;
4184 va_start (v,p);
4185 s = g (p, va_arg (v,int));
4186 va_end (v);
4187 return s;
4188}
4189
4190/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4191 function prototypes and stuff, but not '\xHH' hex character constants.
4192 These don't provoke an error unfortunately, instead are silently treated
4193 as 'x'. The following induces an error, until -std is added to get
4194 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4195 array size at least. It's necessary to write '\x00'==0 to get something
4196 that's true only with -std. */
4197int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4198
4199/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4200 inside strings and character constants. */
4201#define FOO(x) 'x'
4202int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4203
4204int test (int i, double x);
4205struct s1 {int (*f) (int a);};
4206struct s2 {int (*f) (double a);};
4207int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4208int argc;
4209char **argv;
4210int
4211main ()
4212{
4213return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4214 ;
4215 return 0;
4216}
4217_ACEOF
4218for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4219 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4220do
4221 CC="$ac_save_CC $ac_arg"
4222 if ac_fn_c_try_compile "$LINENO"; then :
4223 ac_cv_prog_cc_c89=$ac_arg
4224fi
4225rm -f core conftest.err conftest.$ac_objext
4226 test "x$ac_cv_prog_cc_c89" != "xno" && break
4227done
4228rm -f conftest.$ac_ext
4229CC=$ac_save_CC
4230
4231fi
4232# AC_CACHE_VAL
4233case "x$ac_cv_prog_cc_c89" in
4234 x)
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4236$as_echo "none needed" >&6; } ;;
4237 xno)
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4239$as_echo "unsupported" >&6; } ;;
4240 *)
4241 CC="$CC $ac_cv_prog_cc_c89"
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4243$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4244esac
4245if test "x$ac_cv_prog_cc_c89" != xno; then :
4246
4247fi
4248
4249ac_ext=c
4250ac_cpp='$CPP $CPPFLAGS'
4251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254
d0ac1c44
SM
4255ac_ext=c
4256ac_cpp='$CPP $CPPFLAGS'
4257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4261$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4262if ${am_cv_prog_cc_c_o+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264else
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266/* end confdefs.h. */
4267
4268int
4269main ()
4270{
4271
4272 ;
4273 return 0;
4274}
4275_ACEOF
4276 # Make sure it works both with $CC and with simple cc.
4277 # Following AC_PROG_CC_C_O, we do the test twice because some
4278 # compilers refuse to overwrite an existing .o file with -o,
4279 # though they will create one.
4280 am_cv_prog_cc_c_o=yes
4281 for am_i in 1 2; do
4282 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4283 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } \
4287 && test -f conftest2.$ac_objext; then
4288 : OK
4289 else
4290 am_cv_prog_cc_c_o=no
4291 break
4292 fi
4293 done
4294 rm -f core conftest*
4295 unset am_i
4296fi
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4298$as_echo "$am_cv_prog_cc_c_o" >&6; }
4299if test "$am_cv_prog_cc_c_o" != yes; then
4300 # Losing compiler, so override with the script.
4301 # FIXME: It is wrong to rewrite CC.
4302 # But if we don't then we get into trouble of one sort or another.
4303 # A longer-term fix would be to have automake use am__CC in this case,
4304 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4305 CC="$am_aux_dir/compile $CC"
4306fi
4307ac_ext=c
4308ac_cpp='$CPP $CPPFLAGS'
4309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312
4313
24538276
CC
4314depcc="$CC" am_compiler_list=
4315
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4317$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 4318if ${am_cv_CC_dependencies_compiler_type+:} false; then :
24538276
CC
4319 $as_echo_n "(cached) " >&6
4320else
4321 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4322 # We make a subdir and do the tests there. Otherwise we can end up
4323 # making bogus files that we don't know about and never remove. For
4324 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
4325 # making a dummy file named 'D' -- because '-MD' means "put the output
4326 # in D".
24538276
CC
4327 rm -rf conftest.dir
4328 mkdir conftest.dir
4329 # Copy depcomp to subdir because otherwise we won't find it if we're
4330 # using a relative directory.
4331 cp "$am_depcomp" conftest.dir
4332 cd conftest.dir
4333 # We will build objects and dependencies in a subdirectory because
4334 # it helps to detect inapplicable dependency modes. For instance
4335 # both Tru64's cc and ICC support -MD to output dependencies as a
4336 # side effect of compilation, but ICC will put the dependencies in
4337 # the current directory while Tru64 will put them in the object
4338 # directory.
4339 mkdir sub
4340
4341 am_cv_CC_dependencies_compiler_type=none
4342 if test "$am_compiler_list" = ""; then
4343 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4344 fi
4345 am__universal=false
4346 case " $depcc " in #(
4347 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4348 esac
4349
4350 for depmode in $am_compiler_list; do
4351 # Setup a source with many dependencies, because some compilers
4352 # like to wrap large dependency lists on column 80 (with \), and
4353 # we should not choose a depcomp mode which is confused by this.
4354 #
4355 # We need to recreate these files for each test, as the compiler may
4356 # overwrite some of them when testing with obscure command lines.
4357 # This happens at least with the AIX C compiler.
4358 : > sub/conftest.c
4359 for i in 1 2 3 4 5 6; do
4360 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
4361 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4362 # Solaris 10 /bin/sh.
4363 echo '/* dummy */' > sub/conftst$i.h
24538276
CC
4364 done
4365 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4366
d0ac1c44 4367 # We check with '-c' and '-o' for the sake of the "dashmstdout"
24538276 4368 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
4369 # handle '-M -o', and we need to detect this. Also, some Intel
4370 # versions had trouble with output in subdirs.
24538276
CC
4371 am__obj=sub/conftest.${OBJEXT-o}
4372 am__minus_obj="-o $am__obj"
4373 case $depmode in
4374 gcc)
4375 # This depmode causes a compiler race in universal mode.
4376 test "$am__universal" = false || continue
4377 ;;
4378 nosideeffect)
d0ac1c44
SM
4379 # After this tag, mechanisms are not by side-effect, so they'll
4380 # only be used when explicitly requested.
24538276
CC
4381 if test "x$enable_dependency_tracking" = xyes; then
4382 continue
4383 else
4384 break
4385 fi
4386 ;;
4387 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 4388 # This compiler won't grok '-c -o', but also, the minuso test has
24538276
CC
4389 # not run yet. These depmodes are late enough in the game, and
4390 # so weak that their functioning should not be impacted.
4391 am__obj=conftest.${OBJEXT-o}
4392 am__minus_obj=
4393 ;;
4394 none) break ;;
4395 esac
4396 if depmode=$depmode \
4397 source=sub/conftest.c object=$am__obj \
4398 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4399 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4400 >/dev/null 2>conftest.err &&
4401 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4402 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4403 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4404 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4405 # icc doesn't choke on unknown options, it will just issue warnings
4406 # or remarks (even with -Werror). So we grep stderr for any message
4407 # that says an option was ignored or not supported.
4408 # When given -MP, icc 7.0 and 7.1 complain thusly:
4409 # icc: Command line warning: ignoring option '-M'; no argument required
4410 # The diagnosis changed in icc 8.0:
4411 # icc: Command line remark: option '-MP' not supported
4412 if (grep 'ignoring option' conftest.err ||
4413 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4414 am_cv_CC_dependencies_compiler_type=$depmode
4415 break
4416 fi
4417 fi
81ecdfbb 4418 done
bae7f79e 4419
24538276
CC
4420 cd ..
4421 rm -rf conftest.dir
4422else
4423 am_cv_CC_dependencies_compiler_type=none
bae7f79e 4424fi
24538276 4425
81ecdfbb 4426fi
24538276
CC
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4428$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4429CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4430
4431 if
4432 test "x$enable_dependency_tracking" != xno \
4433 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4434 am__fastdepCC_TRUE=
4435 am__fastdepCC_FALSE='#'
bae7f79e 4436else
24538276
CC
4437 am__fastdepCC_TRUE='#'
4438 am__fastdepCC_FALSE=
bae7f79e
ILT
4439fi
4440
4441
24538276
CC
4442
4443ac_ext=c
4444ac_cpp='$CPP $CPPFLAGS'
4445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4449$as_echo_n "checking how to run the C preprocessor... " >&6; }
4450# On Suns, sometimes $CPP names a directory.
4451if test -n "$CPP" && test -d "$CPP"; then
4452 CPP=
4453fi
4454if test -z "$CPP"; then
d0ac1c44 4455 if ${ac_cv_prog_CPP+:} false; then :
24538276
CC
4456 $as_echo_n "(cached) " >&6
4457else
4458 # Double quotes because CPP needs to be expanded
4459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4460 do
4461 ac_preproc_ok=false
4462for ac_c_preproc_warn_flag in '' yes
4463do
4464 # Use a header file that comes with gcc, so configuring glibc
4465 # with a fresh cross-compiler works.
4466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4467 # <limits.h> exists even on freestanding compilers.
4468 # On the NeXT, cc -E runs the code through the compiler's parser,
4469 # not just through cpp. "Syntax error" is here to catch this case.
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471/* end confdefs.h. */
4472#ifdef __STDC__
4473# include <limits.h>
4474#else
4475# include <assert.h>
4476#endif
4477 Syntax error
4478_ACEOF
4479if ac_fn_c_try_cpp "$LINENO"; then :
4480
4481else
4482 # Broken: fails on valid input.
4483continue
4484fi
d0ac1c44 4485rm -f conftest.err conftest.i conftest.$ac_ext
24538276
CC
4486
4487 # OK, works on sane cases. Now check whether nonexistent headers
4488 # can be detected and how.
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490/* end confdefs.h. */
4491#include <ac_nonexistent.h>
4492_ACEOF
4493if ac_fn_c_try_cpp "$LINENO"; then :
4494 # Broken: success on invalid input.
4495continue
4496else
4497 # Passes both tests.
4498ac_preproc_ok=:
4499break
4500fi
d0ac1c44 4501rm -f conftest.err conftest.i conftest.$ac_ext
24538276
CC
4502
4503done
4504# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4505rm -f conftest.i conftest.err conftest.$ac_ext
24538276
CC
4506if $ac_preproc_ok; then :
4507 break
4508fi
4509
4510 done
4511 ac_cv_prog_CPP=$CPP
4512
4513fi
4514 CPP=$ac_cv_prog_CPP
4515else
4516 ac_cv_prog_CPP=$CPP
4517fi
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4519$as_echo "$CPP" >&6; }
4520ac_preproc_ok=false
4521for ac_c_preproc_warn_flag in '' yes
4522do
4523 # Use a header file that comes with gcc, so configuring glibc
4524 # with a fresh cross-compiler works.
4525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526 # <limits.h> exists even on freestanding compilers.
4527 # On the NeXT, cc -E runs the code through the compiler's parser,
4528 # not just through cpp. "Syntax error" is here to catch this case.
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530/* end confdefs.h. */
4531#ifdef __STDC__
4532# include <limits.h>
4533#else
4534# include <assert.h>
4535#endif
4536 Syntax error
4537_ACEOF
4538if ac_fn_c_try_cpp "$LINENO"; then :
4539
4540else
4541 # Broken: fails on valid input.
4542continue
4543fi
d0ac1c44 4544rm -f conftest.err conftest.i conftest.$ac_ext
24538276
CC
4545
4546 # OK, works on sane cases. Now check whether nonexistent headers
4547 # can be detected and how.
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h. */
4550#include <ac_nonexistent.h>
4551_ACEOF
4552if ac_fn_c_try_cpp "$LINENO"; then :
4553 # Broken: success on invalid input.
4554continue
4555else
4556 # Passes both tests.
4557ac_preproc_ok=:
4558break
4559fi
d0ac1c44 4560rm -f conftest.err conftest.i conftest.$ac_ext
24538276
CC
4561
4562done
4563# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4564rm -f conftest.i conftest.err conftest.$ac_ext
24538276
CC
4565if $ac_preproc_ok; then :
4566
4567else
4568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4570as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4571See \`config.log' for more details" "$LINENO" 5; }
24538276
CC
4572fi
4573
4574ac_ext=c
4575ac_cpp='$CPP $CPPFLAGS'
4576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578ac_compiler_gnu=$ac_cv_c_compiler_gnu
4579
4580
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4582$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 4583if ${ac_cv_path_GREP+:} false; then :
24538276
CC
4584 $as_echo_n "(cached) " >&6
4585else
4586 if test -z "$GREP"; then
4587 ac_path_GREP_found=false
4588 # Loop through the user's path and test for each of PROGNAME-LIST
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4591do
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_prog in grep ggrep; do
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4597 as_fn_executable_p "$ac_path_GREP" || continue
24538276
CC
4598# Check for GNU ac_path_GREP and select it if it is found.
4599 # Check for GNU $ac_path_GREP
4600case `"$ac_path_GREP" --version 2>&1` in
4601*GNU*)
4602 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4603*)
4604 ac_count=0
4605 $as_echo_n 0123456789 >"conftest.in"
4606 while :
4607 do
4608 cat "conftest.in" "conftest.in" >"conftest.tmp"
4609 mv "conftest.tmp" "conftest.in"
4610 cp "conftest.in" "conftest.nl"
4611 $as_echo 'GREP' >> "conftest.nl"
4612 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4613 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4614 as_fn_arith $ac_count + 1 && ac_count=$as_val
4615 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4616 # Best one so far, save it but keep looking for a better one
4617 ac_cv_path_GREP="$ac_path_GREP"
4618 ac_path_GREP_max=$ac_count
4619 fi
4620 # 10*(2^10) chars as input seems more than enough
4621 test $ac_count -gt 10 && break
4622 done
4623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4624esac
4625
4626 $ac_path_GREP_found && break 3
4627 done
4628 done
4629 done
4630IFS=$as_save_IFS
4631 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 4632 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
24538276
CC
4633 fi
4634else
4635 ac_cv_path_GREP=$GREP
4636fi
4637
4638fi
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4640$as_echo "$ac_cv_path_GREP" >&6; }
4641 GREP="$ac_cv_path_GREP"
4642
4643
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4645$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 4646if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb
RW
4647 $as_echo_n "(cached) " >&6
4648else
24538276
CC
4649 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4650 then ac_cv_path_EGREP="$GREP -E"
4651 else
4652 if test -z "$EGREP"; then
4653 ac_path_EGREP_found=false
4654 # Loop through the user's path and test for each of PROGNAME-LIST
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
81ecdfbb
RW
4657do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
24538276 4660 for ac_prog in egrep; do
81ecdfbb 4661 for ac_exec_ext in '' $ac_executable_extensions; do
24538276 4662 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4663 as_fn_executable_p "$ac_path_EGREP" || continue
24538276
CC
4664# Check for GNU ac_path_EGREP and select it if it is found.
4665 # Check for GNU $ac_path_EGREP
4666case `"$ac_path_EGREP" --version 2>&1` in
4667*GNU*)
4668 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4669*)
4670 ac_count=0
4671 $as_echo_n 0123456789 >"conftest.in"
4672 while :
4673 do
4674 cat "conftest.in" "conftest.in" >"conftest.tmp"
4675 mv "conftest.tmp" "conftest.in"
4676 cp "conftest.in" "conftest.nl"
4677 $as_echo 'EGREP' >> "conftest.nl"
4678 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4680 as_fn_arith $ac_count + 1 && ac_count=$as_val
4681 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4682 # Best one so far, save it but keep looking for a better one
4683 ac_cv_path_EGREP="$ac_path_EGREP"
4684 ac_path_EGREP_max=$ac_count
4685 fi
4686 # 10*(2^10) chars as input seems more than enough
4687 test $ac_count -gt 10 && break
81ecdfbb 4688 done
24538276
CC
4689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4690esac
bae7f79e 4691
24538276
CC
4692 $ac_path_EGREP_found && break 3
4693 done
4694 done
4695 done
4696IFS=$as_save_IFS
4697 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 4698 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
bae7f79e 4699 fi
81ecdfbb 4700else
24538276 4701 ac_cv_path_EGREP=$EGREP
bae7f79e
ILT
4702fi
4703
24538276 4704 fi
81ecdfbb 4705fi
24538276
CC
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4707$as_echo "$ac_cv_path_EGREP" >&6; }
4708 EGREP="$ac_cv_path_EGREP"
4709
4710
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4712$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 4713if ${ac_cv_header_stdc+:} false; then :
81ecdfbb 4714 $as_echo_n "(cached) " >&6
bae7f79e 4715else
24538276
CC
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717/* end confdefs.h. */
4718#include <stdlib.h>
4719#include <stdarg.h>
4720#include <string.h>
4721#include <float.h>
4722
4723int
4724main ()
4725{
4726
4727 ;
4728 return 0;
4729}
4730_ACEOF
4731if ac_fn_c_try_compile "$LINENO"; then :
4732 ac_cv_header_stdc=yes
81ecdfbb 4733else
24538276
CC
4734 ac_cv_header_stdc=no
4735fi
4736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737
4738if test $ac_cv_header_stdc = yes; then
4739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741/* end confdefs.h. */
4742#include <string.h>
4743
4744_ACEOF
4745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4746 $EGREP "memchr" >/dev/null 2>&1; then :
81ecdfbb 4747
24538276
CC
4748else
4749 ac_cv_header_stdc=no
81ecdfbb 4750fi
24538276
CC
4751rm -f conftest*
4752
81ecdfbb 4753fi
24538276
CC
4754
4755if test $ac_cv_header_stdc = yes; then
4756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758/* end confdefs.h. */
4759#include <stdlib.h>
4760
4761_ACEOF
4762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4763 $EGREP "free" >/dev/null 2>&1; then :
4764
81ecdfbb 4765else
24538276 4766 ac_cv_header_stdc=no
bae7f79e 4767fi
24538276 4768rm -f conftest*
bae7f79e 4769
81ecdfbb 4770fi
24538276
CC
4771
4772if test $ac_cv_header_stdc = yes; then
4773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4774 if test "$cross_compiling" = yes; then :
4775 :
bae7f79e 4776else
24538276
CC
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h. */
4779#include <ctype.h>
4780#include <stdlib.h>
4781#if ((' ' & 0x0FF) == 0x020)
4782# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4783# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4784#else
4785# define ISLOWER(c) \
4786 (('a' <= (c) && (c) <= 'i') \
4787 || ('j' <= (c) && (c) <= 'r') \
4788 || ('s' <= (c) && (c) <= 'z'))
4789# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4790#endif
4791
4792#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4793int
4794main ()
4795{
4796 int i;
4797 for (i = 0; i < 256; i++)
4798 if (XOR (islower (i), ISLOWER (i))
4799 || toupper (i) != TOUPPER (i))
4800 return 2;
4801 return 0;
4802}
4803_ACEOF
4804if ac_fn_c_try_run "$LINENO"; then :
4805
81ecdfbb 4806else
24538276
CC
4807 ac_cv_header_stdc=no
4808fi
4809rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4810 conftest.$ac_objext conftest.beam conftest.$ac_ext
4811fi
4812
4813fi
4814fi
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4816$as_echo "$ac_cv_header_stdc" >&6; }
4817if test $ac_cv_header_stdc = yes; then
4818
4819$as_echo "#define STDC_HEADERS 1" >>confdefs.h
81ecdfbb 4820
bae7f79e 4821fi
24538276
CC
4822
4823# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4824for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4825 inttypes.h stdint.h unistd.h
4826do :
4827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4828ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4829"
d0ac1c44 4830if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24538276
CC
4831 cat >>confdefs.h <<_ACEOF
4832#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4833_ACEOF
4834
81ecdfbb 4835fi
24538276
CC
4836
4837done
4838
4839
4840
4841 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 4842if test "x$ac_cv_header_minix_config_h" = xyes; then :
24538276 4843 MINIX=yes
bae7f79e 4844else
24538276 4845 MINIX=
bae7f79e
ILT
4846fi
4847
bae7f79e 4848
24538276 4849 if test "$MINIX" = yes; then
bae7f79e 4850
24538276 4851$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
bae7f79e 4852
bae7f79e 4853
24538276 4854$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
81ecdfbb 4855
81ecdfbb 4856
24538276
CC
4857$as_echo "#define _MINIX 1" >>confdefs.h
4858
81ecdfbb 4859 fi
81ecdfbb 4860
24538276
CC
4861
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4863$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 4864if ${ac_cv_safe_to_define___extensions__+:} false; then :
24538276
CC
4865 $as_echo_n "(cached) " >&6
4866else
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb
RW
4868/* end confdefs.h. */
4869
d0ac1c44
SM
4870# define __EXTENSIONS__ 1
4871 $ac_includes_default
81ecdfbb
RW
4872int
4873main ()
4874{
4875
4876 ;
4877 return 0;
4878}
4879_ACEOF
24538276
CC
4880if ac_fn_c_try_compile "$LINENO"; then :
4881 ac_cv_safe_to_define___extensions__=yes
4882else
4883 ac_cv_safe_to_define___extensions__=no
4884fi
4885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886fi
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4888$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4889 test $ac_cv_safe_to_define___extensions__ = yes &&
4890 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
81ecdfbb 4891
24538276 4892 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
81ecdfbb 4893
24538276 4894 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
81ecdfbb 4895
24538276
CC
4896 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4897
4898 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4899
4900
4901
4902# PR 14072
4903
4904
4905
4906# Check whether --with-sysroot was given.
4907if test "${with_sysroot+set}" = set; then :
4908 withval=$with_sysroot; sysroot=$withval
4909else
4910 sysroot=no
4911fi
4912
4913
4914if test "$sysroot" = "yes"; then
4915 sysroot='${exec_prefix}/${target_alias}/sys-root'
4916elif test "$sysroot" = "no"; then
4917 sysroot=
4918fi
4919
4920sysroot_relocatable=0
4921if test -n "$sysroot"; then
4922 case "$sysroot" in
4923 "${prefix}" | "${prefix}/"* | \
4924 "${exec_prefix}" | "${exec_prefix}/"* | \
4925 '${prefix}' | '${prefix}/'*| \
4926 '${exec_prefix}' | '${exec_prefix}/'*)
4927 sysroot_relocatable=1
4928 ;;
81ecdfbb 4929 esac
24538276
CC
4930fi
4931
4932
4933cat >>confdefs.h <<_ACEOF
4934#define TARGET_SYSTEM_ROOT "$sysroot"
4935_ACEOF
81ecdfbb 4936
24538276
CC
4937
4938cat >>confdefs.h <<_ACEOF
4939#define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
4940_ACEOF
4941
4942
4943
4944installed_linker=ld.gold
4945# Check whether --enable-gold was given.
4946if test "${enable_gold+set}" = set; then :
4947 enableval=$enable_gold; case "${enableval}" in
4948 default)
4949 install_as_default=yes
4950 ;;
4951 yes)
4952 if test x${enable_ld} = xno; then
4953 install_as_default=yes
4954 fi
4955 ;;
4956 esac
bae7f79e 4957else
24538276 4958 install_as_default=no
bae7f79e
ILT
4959fi
4960
24538276
CC
4961
4962
4963
4964# Check whether --enable-threads was given.
4965if test "${enable_threads+set}" = set; then :
4966 enableval=$enable_threads; case "${enableval}" in
4967 yes | "") threads=yes ;;
4968 no) threads=no ;;
4969 *) threads=yes ;;
4970 esac
4971else
4972 threads=no
4973fi
4974
4975if test "$threads" = "yes"; then
4976
4977$as_echo "#define ENABLE_THREADS 1" >>confdefs.h
4978
4979fi
4980 if test "$threads" = "yes"; then
4981 THREADS_TRUE=
4982 THREADS_FALSE='#'
4983else
4984 THREADS_TRUE='#'
4985 THREADS_FALSE=
81ecdfbb 4986fi
bae7f79e 4987
24538276
CC
4988
4989
4990 maybe_plugins=no
4991 for ac_header in dlfcn.h
4992do :
4993 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4994"
d0ac1c44 4995if test "x$ac_cv_header_dlfcn_h" = xyes; then :
24538276
CC
4996 cat >>confdefs.h <<_ACEOF
4997#define HAVE_DLFCN_H 1
4998_ACEOF
4999 maybe_plugins=yes
81ecdfbb 5000fi
bae7f79e 5001
24538276
CC
5002done
5003
5004 for ac_header in windows.h
5005do :
5006 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5007"
d0ac1c44 5008if test "x$ac_cv_header_windows_h" = xyes; then :
24538276
CC
5009 cat >>confdefs.h <<_ACEOF
5010#define HAVE_WINDOWS_H 1
5011_ACEOF
5012 maybe_plugins=yes
5013fi
81ecdfbb 5014
81ecdfbb 5015done
24538276
CC
5016
5017
5018 # Check whether --enable-plugins was given.
5019if test "${enable_plugins+set}" = set; then :
5020 enableval=$enable_plugins; case "${enableval}" in
5021 no) plugins=no ;;
5022 *) plugins=yes
5023 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 5024 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
24538276
CC
5025 fi ;;
5026 esac
81ecdfbb 5027else
24538276
CC
5028 plugins=$maybe_plugins
5029
81ecdfbb 5030fi
bae7f79e 5031
24538276 5032 if test "$plugins" = "yes"; then
c4a614e2
AM
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5034$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 5035if ${ac_cv_search_dlsym+:} false; then :
81ecdfbb 5036 $as_echo_n "(cached) " >&6
92e059d8 5037else
24538276
CC
5038 ac_func_search_save_LIBS=$LIBS
5039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92e059d8 5040/* end confdefs.h. */
92e059d8 5041
24538276
CC
5042/* Override any GCC internal prototype to avoid an error.
5043 Use char because int might match the return type of a GCC
5044 builtin and then its argument prototype would still apply. */
5045#ifdef __cplusplus
5046extern "C"
5047#endif
c4a614e2 5048char dlsym ();
92e059d8
ILT
5049int
5050main ()
5051{
c4a614e2 5052return dlsym ();
92e059d8
ILT
5053 ;
5054 return 0;
5055}
5056_ACEOF
24538276
CC
5057for ac_lib in '' dl; do
5058 if test -z "$ac_lib"; then
5059 ac_res="none required"
5060 else
5061 ac_res=-l$ac_lib
5062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5063 fi
5064 if ac_fn_c_try_link "$LINENO"; then :
c4a614e2 5065 ac_cv_search_dlsym=$ac_res
24538276
CC
5066fi
5067rm -f core conftest.err conftest.$ac_objext \
5068 conftest$ac_exeext
d0ac1c44 5069 if ${ac_cv_search_dlsym+:} false; then :
24538276
CC
5070 break
5071fi
81ecdfbb 5072done
d0ac1c44 5073if ${ac_cv_search_dlsym+:} false; then :
24538276 5074
81ecdfbb 5075else
c4a614e2 5076 ac_cv_search_dlsym=no
24538276
CC
5077fi
5078rm conftest.$ac_ext
5079LIBS=$ac_func_search_save_LIBS
5080fi
c4a614e2
AM
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5082$as_echo "$ac_cv_search_dlsym" >&6; }
5083ac_res=$ac_cv_search_dlsym
24538276
CC
5084if test "$ac_res" != no; then :
5085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
81ecdfbb 5086
81ecdfbb 5087fi
24538276
CC
5088
5089 fi
5090
5091if test "$plugins" = "yes"; then
5092
5093$as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5094
81ecdfbb 5095fi
24538276
CC
5096 if test "$plugins" = "yes"; then
5097 PLUGINS_TRUE=
5098 PLUGINS_FALSE='#'
81ecdfbb 5099else
24538276
CC
5100 PLUGINS_TRUE='#'
5101 PLUGINS_FALSE=
5102fi
92e059d8 5103
92e059d8 5104
24538276
CC
5105# Decide if -z relro should be enabled in ELF linker by default.
5106ac_default_ld_z_relro=unset
5107# Provide a configure time option to override our default.
5108# Check whether --enable-relro was given.
5109if test "${enable_relro+set}" = set; then :
5110 enableval=$enable_relro; case "${enableval}" in
5111 yes) ac_default_ld_z_relro=1 ;;
5112 no) ac_default_ld_z_relro=0 ;;
5113esac
5114fi
5115if test "${ac_default_ld_z_relro}" = unset; then
5116 ac_default_ld_z_relro=1
5117fi
5118
5119cat >>confdefs.h <<_ACEOF
5120#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
92e059d8 5121_ACEOF
24538276
CC
5122
5123
5124# Check whether --enable-targets was given.
5125if test "${enable_targets+set}" = set; then :
5126 enableval=$enable_targets; case "${enableval}" in
5127 yes | "")
d0ac1c44 5128 as_fn_error $? "--enable-targets option must specify target names or 'all'" "$LINENO" 5
24538276
CC
5129 ;;
5130 no)
5131 enable_targets=
5132 ;;
5133 *)
5134 enable_targets=$enableval
5135 ;;
5136esac
92e059d8 5137else
24538276
CC
5138 # For now, enable all targets by default
5139 enable_targets=all
5140
81ecdfbb 5141fi
92e059d8 5142
24538276
CC
5143
5144# Canonicalize the enabled targets.
5145if test -n "$enable_targets"; then
5146 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
5147 result=`$ac_config_sub $targ 2>/dev/null`
5148 if test -n "$result"; then
5149 canon_targets="$canon_targets $result"
5150 else
5151 # Permit unrecognized target names, like "all".
5152 canon_targets="$canon_targets $targ"
5153 fi
5154 done
92e059d8 5155fi
24538276
CC
5156
5157# Decide which "--hash-style" to use by default
5158# Provide a configure time option to override our default.
5159# Check whether --enable-default-hash-style was given.
5160if test "${enable_default_hash_style+set}" = set; then :
5161 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
5162 sysv | gnu | both) ;;
d0ac1c44 5163 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
24538276 5164esac
92e059d8 5165else
24538276
CC
5166 case "${target}" in
5167 # Enable gnu hash only on GNU targets, but not mips
5168 mips*-*-*) enable_default_hash_style=sysv ;;
5169 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
5170 *) enable_default_hash_style=sysv ;;
5171esac
81ecdfbb 5172fi
81ecdfbb 5173
81ecdfbb 5174
24538276
CC
5175
5176cat >>confdefs.h <<_ACEOF
5177#define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
92e059d8 5178_ACEOF
81ecdfbb 5179
81ecdfbb 5180
24538276
CC
5181# See which specific instantiations we need.
5182targetobjs=
5183all_targets=
5184default_machine=
5185default_size=
5186default_big_endian=
5187default_osabi=ELFOSABI_NONE
5188targ_32_little=
5189targ_32_big=
5190targ_64_little=
5191targ_64_big=
5192for targ in $target $canon_targets; do
5193 if test "$targ" = "all"; then
5194 targ_32_little=yes
5195 targ_32_big=yes
5196 targ_64_little=yes
5197 targ_64_big=yes
5198 all_targets=yes
5199 else
5200 . ${srcdir}/configure.tgt
81ecdfbb 5201
24538276 5202 if test "$targ_obj" = "UNKNOWN"; then
d0ac1c44 5203 as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
24538276
CC
5204 else
5205 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
5206 if test "$targ_extra_obj" != ""; then
5207 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5208 fi
5209 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5210 if test "$targ_big_endian" = "true" \
5211 -o "$targ_extra_big_endian" = "true"; then
5212 targ_32_big=yes
5213 fi
5214 if test "$targ_big_endian" = "false" \
5215 -o "$targ_extra_big_endian" = "false"; then
5216 targ_32_little=yes
5217 fi
5218 fi
5219 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5220 if test "$targ_big_endian" = "true" \
5221 -o "$targ_extra_big_endian" = "true"; then
5222 targ_64_big=yes
5223 fi
5224 if test "$targ_big_endian" = "false" \
5225 -o "$targ_extra_big_endian" = "false"; then
5226 targ_64_little=yes
5227 fi
5228 fi
92e059d8 5229
24538276
CC
5230 if test "$target" = "$targ"; then
5231 default_machine=$targ_machine
5232 default_size=$targ_size
5233 default_big_endian=$targ_big_endian
5234 default_osabi=$targ_osabi
92e059d8 5235
24538276
CC
5236 if test "$targ_obj" = "aarch64"; then
5237 DEFAULT_TARGET_AARCH64_TRUE=
5238 DEFAULT_TARGET_AARCH64_FALSE='#'
5239else
5240 DEFAULT_TARGET_AARCH64_TRUE='#'
5241 DEFAULT_TARGET_AARCH64_FALSE=
63402fe4 5242fi
24538276
CC
5243
5244 if test "$targ_obj" = "arm"; then
5245 DEFAULT_TARGET_ARM_TRUE=
5246 DEFAULT_TARGET_ARM_FALSE='#'
5247else
5248 DEFAULT_TARGET_ARM_TRUE='#'
5249 DEFAULT_TARGET_ARM_FALSE=
8a5e3e08 5250fi
24538276
CC
5251
5252 if test "$targ_obj" = "i386"; then
5253 DEFAULT_TARGET_I386_TRUE=
5254 DEFAULT_TARGET_I386_FALSE='#'
6eee141f 5255else
24538276
CC
5256 DEFAULT_TARGET_I386_TRUE='#'
5257 DEFAULT_TARGET_I386_FALSE=
097ec620 5258fi
24538276
CC
5259
5260 if test "$targ_obj" = "powerpc"; then
5261 DEFAULT_TARGET_POWERPC_TRUE=
5262 DEFAULT_TARGET_POWERPC_FALSE='#'
6eee141f 5263else
24538276
CC
5264 DEFAULT_TARGET_POWERPC_TRUE='#'
5265 DEFAULT_TARGET_POWERPC_FALSE=
5266fi
6eee141f 5267
24538276
CC
5268 if test "$targ_obj" = "sparc"; then
5269 DEFAULT_TARGET_SPARC_TRUE=
5270 DEFAULT_TARGET_SPARC_FALSE='#'
5271else
5272 DEFAULT_TARGET_SPARC_TRUE='#'
5273 DEFAULT_TARGET_SPARC_FALSE=
5274fi
097ec620 5275
24538276
CC
5276 if test "$targ_obj" = "s390"; then
5277 DEFAULT_TARGET_S390_TRUE=
5278 DEFAULT_TARGET_S390_FALSE='#'
5279else
5280 DEFAULT_TARGET_S390_TRUE='#'
5281 DEFAULT_TARGET_S390_FALSE=
5282fi
097ec620 5283
24538276
CC
5284 target_x86_64=no
5285 target_x32=no
5286 if test "$targ_obj" = "x86_64"; then
5287 case "$target" in
5288 x86_64*-linux-gnux32)
5289 target_x32=yes
5290 default_size=32
5291 ;;
5292 *)
5293 target_x86_64=yes
5294 ;;
5295 esac
5296 fi
5297 if test "$target_x86_64" = "yes"; then
5298 DEFAULT_TARGET_X86_64_TRUE=
5299 DEFAULT_TARGET_X86_64_FALSE='#'
5300else
5301 DEFAULT_TARGET_X86_64_TRUE='#'
5302 DEFAULT_TARGET_X86_64_FALSE=
097ec620 5303fi
097ec620 5304
24538276
CC
5305 if test "$target_x32" = "yes"; then
5306 DEFAULT_TARGET_X32_TRUE=
5307 DEFAULT_TARGET_X32_FALSE='#'
5308else
5309 DEFAULT_TARGET_X32_TRUE='#'
5310 DEFAULT_TARGET_X32_FALSE=
097ec620
ILT
5311fi
5312
24538276
CC
5313 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5314 DEFAULT_TARGET_X86_64_OR_X32_TRUE=
5315 DEFAULT_TARGET_X86_64_OR_X32_FALSE='#'
5316else
5317 DEFAULT_TARGET_X86_64_OR_X32_TRUE='#'
5318 DEFAULT_TARGET_X86_64_OR_X32_FALSE=
81ecdfbb 5319fi
097ec620 5320
24538276
CC
5321 if test "$targ_obj" = "tilegx"; then
5322 DEFAULT_TARGET_TILEGX_TRUE=
5323 DEFAULT_TARGET_TILEGX_FALSE='#'
5324else
5325 DEFAULT_TARGET_TILEGX_TRUE='#'
5326 DEFAULT_TARGET_TILEGX_FALSE=
5327fi
155a0dd7 5328
24538276
CC
5329 if test "$targ_obj" = "mips"; then
5330 DEFAULT_TARGET_MIPS_TRUE=
5331 DEFAULT_TARGET_MIPS_FALSE='#'
5332else
5333 DEFAULT_TARGET_MIPS_TRUE='#'
5334 DEFAULT_TARGET_MIPS_FALSE=
5335fi
155a0dd7 5336
24538276
CC
5337 DEFAULT_TARGET=${targ_obj}
5338
5339 fi
5340 fi
5341 fi
5342done
5343
5344# Remove any duplicates.
5345to=""
5346for t in $targetobjs; do
5347 case " $to " in
5348 *" $t "*) ;;
5349 *) to="$to $t" ;;
5350 esac
5351done
5352targetobjs=$to
5353
5354if test -n "$targ_32_little"; then
5355
5356$as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
155a0dd7 5357
155a0dd7 5358fi
24538276 5359if test -n "$targ_32_big"; then
155a0dd7 5360
24538276 5361$as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
155a0dd7 5362
24538276
CC
5363fi
5364if test -n "$targ_64_little"; then
5365
5366$as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
155a0dd7 5367
81ecdfbb 5368fi
24538276
CC
5369if test -n "$targ_64_big"; then
5370
5371$as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
155a0dd7 5372
81ecdfbb 5373fi
24538276
CC
5374
5375if test -n "$all_targets"; then
5376 TARGETOBJS='$(ALL_TARGETOBJS)'
155a0dd7 5377else
24538276 5378 TARGETOBJS="$targetobjs"
155a0dd7
ILT
5379fi
5380
5381
c2b45e22 5382
24538276
CC
5383cat >>confdefs.h <<_ACEOF
5384#define GOLD_DEFAULT_MACHINE $default_machine
5385_ACEOF
c2b45e22 5386
c2b45e22 5387
24538276
CC
5388cat >>confdefs.h <<_ACEOF
5389#define GOLD_DEFAULT_SIZE $default_size
5390_ACEOF
c2b45e22 5391
c2b45e22 5392
24538276
CC
5393cat >>confdefs.h <<_ACEOF
5394#define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5395_ACEOF
c2b45e22 5396
24538276
CC
5397
5398cat >>confdefs.h <<_ACEOF
5399#define GOLD_DEFAULT_OSABI $default_osabi
5400_ACEOF
5401
5402
5403
5404# Check whether --with-lib-path was given.
5405if test "${with_lib_path+set}" = set; then :
5406 withval=$with_lib_path; case "$withval" in
5407 yes) LIB_PATH='"/lib:/usr/lib"' ;;
5408 no) LIB_PATH='""' ;;
5409 *) LIB_PATH='"'"$withval"'"' ;;
5410 esac
c2b45e22 5411else
24538276 5412 LIB_PATH='"::DEFAULT::"'
c2b45e22 5413fi
c2b45e22
CC
5414
5415
24538276
CC
5416cat >>confdefs.h <<_ACEOF
5417#define LIB_PATH $LIB_PATH
5418_ACEOF
c2b45e22 5419
24538276 5420if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
c2b45e22 5421
24538276
CC
5422$as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5423
5424fi
5425
5426if test -n "$ac_tool_prefix"; then
5427 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5428set dummy ${ac_tool_prefix}nm; ac_word=$2
81ecdfbb
RW
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5431if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 5432 $as_echo_n "(cached) " >&6
2fd32231 5433else
24538276
CC
5434 if test -n "$NM"; then
5435 ac_cv_prog_NM="$NM" # Let the user override the test.
2fd32231 5436else
81ecdfbb
RW
5437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438for as_dir in $PATH
5439do
5440 IFS=$as_save_IFS
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276 5444 ac_cv_prog_NM="${ac_tool_prefix}nm"
81ecdfbb
RW
5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 break 2
5447 fi
5448done
5449 done
5450IFS=$as_save_IFS
2fd32231 5451
2fd32231 5452fi
2fd32231 5453fi
24538276
CC
5454NM=$ac_cv_prog_NM
5455if test -n "$NM"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5457$as_echo "$NM" >&6; }
2fd32231 5458else
81ecdfbb
RW
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460$as_echo "no" >&6; }
2fd32231
ILT
5461fi
5462
5463
81ecdfbb 5464fi
24538276
CC
5465if test -z "$ac_cv_prog_NM"; then
5466 ac_ct_NM=$NM
5467 # Extract the first word of "nm", so it can be a program name with args.
5468set dummy nm; ac_word=$2
81ecdfbb
RW
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5471if ${ac_cv_prog_ac_ct_NM+:} false; then :
81ecdfbb 5472 $as_echo_n "(cached) " >&6
1d1f116d 5473else
24538276
CC
5474 if test -n "$ac_ct_NM"; then
5475 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
1d1f116d 5476else
81ecdfbb
RW
5477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478for as_dir in $PATH
5479do
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276 5484 ac_cv_prog_ac_ct_NM="nm"
81ecdfbb
RW
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 break 2
5487 fi
5488done
5489 done
5490IFS=$as_save_IFS
1d1f116d 5491
1d1f116d 5492fi
1d1f116d 5493fi
24538276
CC
5494ac_ct_NM=$ac_cv_prog_ac_ct_NM
5495if test -n "$ac_ct_NM"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5497$as_echo "$ac_ct_NM" >&6; }
81ecdfbb
RW
5498else
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500$as_echo "no" >&6; }
1d1f116d
CD
5501fi
5502
24538276
CC
5503 if test "x$ac_ct_NM" = x; then
5504 NM=""
81ecdfbb
RW
5505 else
5506 case $cross_compiling:$ac_tool_warned in
5507yes:)
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5510ac_tool_warned=yes ;;
04bf7072 5511esac
24538276 5512 NM=$ac_ct_NM
81ecdfbb 5513 fi
24538276
CC
5514else
5515 NM="$ac_cv_prog_NM"
81ecdfbb 5516fi
04bf7072 5517
bae7f79e 5518
24538276
CC
5519ac_ext=c
5520ac_cpp='$CPP $CPPFLAGS'
5521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523ac_compiler_gnu=$ac_cv_c_compiler_gnu
5524if test -n "$ac_tool_prefix"; then
5525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5526set dummy ${ac_tool_prefix}gcc; ac_word=$2
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5529if ${ac_cv_prog_CC+:} false; then :
81ecdfbb
RW
5530 $as_echo_n "(cached) " >&6
5531else
24538276
CC
5532 if test -n "$CC"; then
5533 ac_cv_prog_CC="$CC" # Let the user override the test.
81ecdfbb 5534else
24538276
CC
5535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536for as_dir in $PATH
5537do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
5542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5545 fi
5546done
5547 done
5548IFS=$as_save_IFS
bae7f79e 5549
bae7f79e 5550fi
81ecdfbb 5551fi
24538276
CC
5552CC=$ac_cv_prog_CC
5553if test -n "$CC"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5555$as_echo "$CC" >&6; }
81ecdfbb 5556else
24538276
CC
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558$as_echo "no" >&6; }
5559fi
bae7f79e 5560
bae7f79e 5561
24538276
CC
5562fi
5563if test -z "$ac_cv_prog_CC"; then
5564 ac_ct_CC=$CC
5565 # Extract the first word of "gcc", so it can be a program name with args.
5566set dummy gcc; ac_word=$2
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5569if ${ac_cv_prog_ac_ct_CC+:} false; then :
24538276 5570 $as_echo_n "(cached) " >&6
81ecdfbb 5571else
24538276
CC
5572 if test -n "$ac_ct_CC"; then
5573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
81ecdfbb 5574else
24538276
CC
5575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576for as_dir in $PATH
5577do
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
5582 ac_cv_prog_ac_ct_CC="gcc"
5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 break 2
5585 fi
5586done
5587 done
5588IFS=$as_save_IFS
bae7f79e 5589
81ecdfbb 5590fi
81ecdfbb 5591fi
24538276
CC
5592ac_ct_CC=$ac_cv_prog_ac_ct_CC
5593if test -n "$ac_ct_CC"; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5595$as_echo "$ac_ct_CC" >&6; }
5596else
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598$as_echo "no" >&6; }
81ecdfbb 5599fi
24538276
CC
5600
5601 if test "x$ac_ct_CC" = x; then
5602 CC=""
81ecdfbb 5603 else
24538276
CC
5604 case $cross_compiling:$ac_tool_warned in
5605yes:)
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5608ac_tool_warned=yes ;;
5609esac
5610 CC=$ac_ct_CC
81ecdfbb
RW
5611 fi
5612else
24538276 5613 CC="$ac_cv_prog_CC"
81ecdfbb 5614fi
bae7f79e 5615
24538276
CC
5616if test -z "$CC"; then
5617 if test -n "$ac_tool_prefix"; then
5618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5619set dummy ${ac_tool_prefix}cc; ac_word=$2
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5622if ${ac_cv_prog_CC+:} false; then :
81ecdfbb
RW
5623 $as_echo_n "(cached) " >&6
5624else
24538276
CC
5625 if test -n "$CC"; then
5626 ac_cv_prog_CC="$CC" # Let the user override the test.
5627else
5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629for as_dir in $PATH
5630do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
5635 ac_cv_prog_CC="${ac_tool_prefix}cc"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
81ecdfbb 5638 fi
24538276 5639done
81ecdfbb 5640 done
24538276 5641IFS=$as_save_IFS
9201d894 5642
24538276
CC
5643fi
5644fi
5645CC=$ac_cv_prog_CC
5646if test -n "$CC"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5648$as_echo "$CC" >&6; }
81ecdfbb 5649else
24538276
CC
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651$as_echo "no" >&6; }
81ecdfbb 5652fi
9201d894 5653
24538276
CC
5654
5655 fi
81ecdfbb 5656fi
24538276
CC
5657if test -z "$CC"; then
5658 # Extract the first word of "cc", so it can be a program name with args.
5659set dummy cc; ac_word=$2
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5662if ${ac_cv_prog_CC+:} false; then :
24538276
CC
5663 $as_echo_n "(cached) " >&6
5664else
5665 if test -n "$CC"; then
5666 ac_cv_prog_CC="$CC" # Let the user override the test.
5667else
5668 ac_prog_rejected=no
5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
5676 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5677 ac_prog_rejected=yes
5678 continue
5679 fi
5680 ac_cv_prog_CC="cc"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5683 fi
5684done
5685 done
5686IFS=$as_save_IFS
9201d894 5687
24538276
CC
5688if test $ac_prog_rejected = yes; then
5689 # We found a bogon in the path, so make sure we never use it.
5690 set dummy $ac_cv_prog_CC
5691 shift
5692 if test $# != 0; then
5693 # We chose a different compiler from the bogus one.
5694 # However, it has the same basename, so the bogon will be chosen
5695 # first if we set CC to just the basename; use the full file name.
5696 shift
5697 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5698 fi
5699fi
5700fi
5701fi
5702CC=$ac_cv_prog_CC
5703if test -n "$CC"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5705$as_echo "$CC" >&6; }
81ecdfbb 5706else
24538276
CC
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708$as_echo "no" >&6; }
81ecdfbb 5709fi
9201d894 5710
9201d894 5711
24538276
CC
5712fi
5713if test -z "$CC"; then
5714 if test -n "$ac_tool_prefix"; then
5715 for ac_prog in cl.exe
5716 do
5717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5718set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5721if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 5722 $as_echo_n "(cached) " >&6
9201d894 5723else
24538276
CC
5724 if test -n "$CC"; then
5725 ac_cv_prog_CC="$CC" # Let the user override the test.
81ecdfbb
RW
5726else
5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728for as_dir in $PATH
5729do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276 5734 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb
RW
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738done
5739 done
5740IFS=$as_save_IFS
9201d894 5741
9201d894 5742fi
9201d894 5743fi
24538276
CC
5744CC=$ac_cv_prog_CC
5745if test -n "$CC"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5747$as_echo "$CC" >&6; }
81ecdfbb
RW
5748else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750$as_echo "no" >&6; }
9201d894 5751fi
9201d894 5752
2f35ab9b 5753
24538276
CC
5754 test -n "$CC" && break
5755 done
5756fi
5757if test -z "$CC"; then
5758 ac_ct_CC=$CC
5759 for ac_prog in cl.exe
5760do
5761 # Extract the first word of "$ac_prog", so it can be a program name with args.
5762set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5765if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb
RW
5766 $as_echo_n "(cached) " >&6
5767else
24538276
CC
5768 if test -n "$ac_ct_CC"; then
5769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
81ecdfbb
RW
5770else
5771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772for as_dir in $PATH
82dcae9d 5773do
81ecdfbb
RW
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276 5778 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb
RW
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5781 fi
5782done
5783 done
5784IFS=$as_save_IFS
82dcae9d 5785
81ecdfbb
RW
5786fi
5787fi
24538276
CC
5788ac_ct_CC=$ac_cv_prog_ac_ct_CC
5789if test -n "$ac_ct_CC"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5791$as_echo "$ac_ct_CC" >&6; }
81ecdfbb
RW
5792else
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794$as_echo "no" >&6; }
5795fi
82dcae9d 5796
82dcae9d 5797
24538276
CC
5798 test -n "$ac_ct_CC" && break
5799done
5800
5801 if test "x$ac_ct_CC" = x; then
5802 CC=""
5803 else
5804 case $cross_compiling:$ac_tool_warned in
5805yes:)
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5808ac_tool_warned=yes ;;
5809esac
5810 CC=$ac_ct_CC
5811 fi
5812fi
5813
5814fi
5815
5816
5817test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5819as_fn_error $? "no acceptable C compiler found in \$PATH
5820See \`config.log' for more details" "$LINENO" 5; }
24538276
CC
5821
5822# Provide some information about the compiler.
5823$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5824set X $ac_compile
5825ac_compiler=$2
5826for ac_option in --version -v -V -qversion; do
5827 { { ac_try="$ac_compiler $ac_option >&5"
5828case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831esac
5832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5833$as_echo "$ac_try_echo"; } >&5
5834 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5835 ac_status=$?
5836 if test -s conftest.err; then
5837 sed '10a\
5838... rest of stderr output deleted ...
5839 10q' conftest.err >conftest.er1
5840 cat conftest.er1 >&5
24538276 5841 fi
d0ac1c44 5842 rm -f conftest.er1 conftest.err
24538276
CC
5843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5844 test $ac_status = 0; }
5845done
5846
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5848$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 5849if ${ac_cv_c_compiler_gnu+:} false; then :
24538276
CC
5850 $as_echo_n "(cached) " >&6
5851else
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853/* end confdefs.h. */
5854
5855int
5856main ()
5857{
5858#ifndef __GNUC__
5859 choke me
5860#endif
5861
5862 ;
5863 return 0;
5864}
5865_ACEOF
5866if ac_fn_c_try_compile "$LINENO"; then :
5867 ac_compiler_gnu=yes
5868else
5869 ac_compiler_gnu=no
5870fi
5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872ac_cv_c_compiler_gnu=$ac_compiler_gnu
5873
5874fi
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5876$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5877if test $ac_compiler_gnu = yes; then
5878 GCC=yes
5879else
5880 GCC=
5881fi
5882ac_test_CFLAGS=${CFLAGS+set}
5883ac_save_CFLAGS=$CFLAGS
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5885$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 5886if ${ac_cv_prog_cc_g+:} false; then :
24538276
CC
5887 $as_echo_n "(cached) " >&6
5888else
5889 ac_save_c_werror_flag=$ac_c_werror_flag
5890 ac_c_werror_flag=yes
5891 ac_cv_prog_cc_g=no
5892 CFLAGS="-g"
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894/* end confdefs.h. */
5895
5896int
5897main ()
5898{
5899
5900 ;
5901 return 0;
5902}
5903_ACEOF
5904if ac_fn_c_try_compile "$LINENO"; then :
5905 ac_cv_prog_cc_g=yes
5906else
5907 CFLAGS=""
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909/* end confdefs.h. */
5910
5911int
5912main ()
5913{
5914
5915 ;
5916 return 0;
5917}
5918_ACEOF
5919if ac_fn_c_try_compile "$LINENO"; then :
5920
5921else
5922 ac_c_werror_flag=$ac_save_c_werror_flag
5923 CFLAGS="-g"
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925/* end confdefs.h. */
5926
5927int
5928main ()
5929{
5930
5931 ;
5932 return 0;
5933}
5934_ACEOF
5935if ac_fn_c_try_compile "$LINENO"; then :
5936 ac_cv_prog_cc_g=yes
5937fi
5938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939fi
5940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941fi
5942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 ac_c_werror_flag=$ac_save_c_werror_flag
5944fi
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5946$as_echo "$ac_cv_prog_cc_g" >&6; }
5947if test "$ac_test_CFLAGS" = set; then
5948 CFLAGS=$ac_save_CFLAGS
5949elif test $ac_cv_prog_cc_g = yes; then
5950 if test "$GCC" = yes; then
5951 CFLAGS="-g -O2"
5952 else
5953 CFLAGS="-g"
5954 fi
5955else
5956 if test "$GCC" = yes; then
5957 CFLAGS="-O2"
5958 else
5959 CFLAGS=
5960 fi
5961fi
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5963$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 5964if ${ac_cv_prog_cc_c89+:} false; then :
24538276
CC
5965 $as_echo_n "(cached) " >&6
5966else
5967 ac_cv_prog_cc_c89=no
5968ac_save_CC=$CC
5969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970/* end confdefs.h. */
5971#include <stdarg.h>
5972#include <stdio.h>
d0ac1c44 5973struct stat;
24538276
CC
5974/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5975struct buf { int x; };
5976FILE * (*rcsopen) (struct buf *, struct stat *, int);
5977static char *e (p, i)
5978 char **p;
5979 int i;
5980{
5981 return p[i];
5982}
5983static char *f (char * (*g) (char **, int), char **p, ...)
5984{
5985 char *s;
5986 va_list v;
5987 va_start (v,p);
5988 s = g (p, va_arg (v,int));
5989 va_end (v);
5990 return s;
5991}
5992
5993/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5994 function prototypes and stuff, but not '\xHH' hex character constants.
5995 These don't provoke an error unfortunately, instead are silently treated
5996 as 'x'. The following induces an error, until -std is added to get
5997 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5998 array size at least. It's necessary to write '\x00'==0 to get something
5999 that's true only with -std. */
6000int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6001
6002/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6003 inside strings and character constants. */
6004#define FOO(x) 'x'
6005int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6006
6007int test (int i, double x);
6008struct s1 {int (*f) (int a);};
6009struct s2 {int (*f) (double a);};
6010int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6011int argc;
6012char **argv;
6013int
6014main ()
6015{
6016return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6017 ;
6018 return 0;
6019}
6020_ACEOF
6021for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6022 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
81ecdfbb 6023do
24538276
CC
6024 CC="$ac_save_CC $ac_arg"
6025 if ac_fn_c_try_compile "$LINENO"; then :
6026 ac_cv_prog_cc_c89=$ac_arg
6027fi
6028rm -f core conftest.err conftest.$ac_objext
6029 test "x$ac_cv_prog_cc_c89" != "xno" && break
81ecdfbb 6030done
24538276
CC
6031rm -f conftest.$ac_ext
6032CC=$ac_save_CC
82dcae9d 6033
82dcae9d 6034fi
24538276
CC
6035# AC_CACHE_VAL
6036case "x$ac_cv_prog_cc_c89" in
6037 x)
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6039$as_echo "none needed" >&6; } ;;
6040 xno)
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6042$as_echo "unsupported" >&6; } ;;
6043 *)
6044 CC="$CC $ac_cv_prog_cc_c89"
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6046$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
82dcae9d 6047esac
24538276 6048if test "x$ac_cv_prog_cc_c89" != xno; then :
81ecdfbb 6049
82dcae9d 6050fi
82dcae9d 6051
9a0910c3
ILT
6052ac_ext=c
6053ac_cpp='$CPP $CPPFLAGS'
6054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056ac_compiler_gnu=$ac_cv_c_compiler_gnu
9a0910c3 6057
d0ac1c44
SM
6058ac_ext=c
6059ac_cpp='$CPP $CPPFLAGS'
6060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6062ac_compiler_gnu=$ac_cv_c_compiler_gnu
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6064$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6065if ${am_cv_prog_cc_c_o+:} false; then :
6066 $as_echo_n "(cached) " >&6
6067else
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069/* end confdefs.h. */
6070
6071int
6072main ()
6073{
6074
6075 ;
6076 return 0;
6077}
6078_ACEOF
6079 # Make sure it works both with $CC and with simple cc.
6080 # Following AC_PROG_CC_C_O, we do the test twice because some
6081 # compilers refuse to overwrite an existing .o file with -o,
6082 # though they will create one.
6083 am_cv_prog_cc_c_o=yes
6084 for am_i in 1 2; do
6085 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6086 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } \
6090 && test -f conftest2.$ac_objext; then
6091 : OK
6092 else
6093 am_cv_prog_cc_c_o=no
6094 break
6095 fi
6096 done
6097 rm -f core conftest*
6098 unset am_i
6099fi
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6101$as_echo "$am_cv_prog_cc_c_o" >&6; }
6102if test "$am_cv_prog_cc_c_o" != yes; then
6103 # Losing compiler, so override with the script.
6104 # FIXME: It is wrong to rewrite CC.
6105 # But if we don't then we get into trouble of one sort or another.
6106 # A longer-term fix would be to have automake use am__CC in this case,
6107 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6108 CC="$am_aux_dir/compile $CC"
6109fi
6110ac_ext=c
6111ac_cpp='$CPP $CPPFLAGS'
6112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6114ac_compiler_gnu=$ac_cv_c_compiler_gnu
6115
6116
24538276 6117depcc="$CC" am_compiler_list=
9a0910c3 6118
24538276
CC
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6120$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 6121if ${am_cv_CC_dependencies_compiler_type+:} false; then :
24538276 6122 $as_echo_n "(cached) " >&6
9a0910c3 6123else
24538276
CC
6124 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6125 # We make a subdir and do the tests there. Otherwise we can end up
6126 # making bogus files that we don't know about and never remove. For
6127 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
6128 # making a dummy file named 'D' -- because '-MD' means "put the output
6129 # in D".
24538276
CC
6130 rm -rf conftest.dir
6131 mkdir conftest.dir
6132 # Copy depcomp to subdir because otherwise we won't find it if we're
6133 # using a relative directory.
6134 cp "$am_depcomp" conftest.dir
6135 cd conftest.dir
6136 # We will build objects and dependencies in a subdirectory because
6137 # it helps to detect inapplicable dependency modes. For instance
6138 # both Tru64's cc and ICC support -MD to output dependencies as a
6139 # side effect of compilation, but ICC will put the dependencies in
6140 # the current directory while Tru64 will put them in the object
6141 # directory.
6142 mkdir sub
9a0910c3 6143
24538276
CC
6144 am_cv_CC_dependencies_compiler_type=none
6145 if test "$am_compiler_list" = ""; then
6146 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6147 fi
6148 am__universal=false
6149 case " $depcc " in #(
6150 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6151 esac
9a0910c3 6152
24538276
CC
6153 for depmode in $am_compiler_list; do
6154 # Setup a source with many dependencies, because some compilers
6155 # like to wrap large dependency lists on column 80 (with \), and
6156 # we should not choose a depcomp mode which is confused by this.
6157 #
6158 # We need to recreate these files for each test, as the compiler may
6159 # overwrite some of them when testing with obscure command lines.
6160 # This happens at least with the AIX C compiler.
6161 : > sub/conftest.c
6162 for i in 1 2 3 4 5 6; do
6163 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
6164 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6165 # Solaris 10 /bin/sh.
6166 echo '/* dummy */' > sub/conftst$i.h
9a0910c3 6167 done
24538276 6168 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9a0910c3 6169
d0ac1c44 6170 # We check with '-c' and '-o' for the sake of the "dashmstdout"
24538276 6171 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
6172 # handle '-M -o', and we need to detect this. Also, some Intel
6173 # versions had trouble with output in subdirs.
24538276
CC
6174 am__obj=sub/conftest.${OBJEXT-o}
6175 am__minus_obj="-o $am__obj"
6176 case $depmode in
6177 gcc)
6178 # This depmode causes a compiler race in universal mode.
6179 test "$am__universal" = false || continue
6180 ;;
6181 nosideeffect)
d0ac1c44
SM
6182 # After this tag, mechanisms are not by side-effect, so they'll
6183 # only be used when explicitly requested.
24538276
CC
6184 if test "x$enable_dependency_tracking" = xyes; then
6185 continue
6186 else
6187 break
6188 fi
6189 ;;
6190 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 6191 # This compiler won't grok '-c -o', but also, the minuso test has
24538276
CC
6192 # not run yet. These depmodes are late enough in the game, and
6193 # so weak that their functioning should not be impacted.
6194 am__obj=conftest.${OBJEXT-o}
6195 am__minus_obj=
6196 ;;
6197 none) break ;;
6198 esac
6199 if depmode=$depmode \
6200 source=sub/conftest.c object=$am__obj \
6201 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6202 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6203 >/dev/null 2>conftest.err &&
6204 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6205 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6206 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6207 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6208 # icc doesn't choke on unknown options, it will just issue warnings
6209 # or remarks (even with -Werror). So we grep stderr for any message
6210 # that says an option was ignored or not supported.
6211 # When given -MP, icc 7.0 and 7.1 complain thusly:
6212 # icc: Command line warning: ignoring option '-M'; no argument required
6213 # The diagnosis changed in icc 8.0:
6214 # icc: Command line remark: option '-MP' not supported
6215 if (grep 'ignoring option' conftest.err ||
6216 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6217 am_cv_CC_dependencies_compiler_type=$depmode
6218 break
6219 fi
6220 fi
6221 done
9a0910c3 6222
24538276
CC
6223 cd ..
6224 rm -rf conftest.dir
81ecdfbb 6225else
24538276 6226 am_cv_CC_dependencies_compiler_type=none
9a0910c3 6227fi
9a0910c3 6228
9a0910c3 6229fi
24538276
CC
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6231$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6232CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
81ecdfbb 6233
24538276
CC
6234 if
6235 test "x$enable_dependency_tracking" != xno \
6236 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6237 am__fastdepCC_TRUE=
6238 am__fastdepCC_FALSE='#'
9a0910c3 6239else
24538276
CC
6240 am__fastdepCC_TRUE='#'
6241 am__fastdepCC_FALSE=
9a0910c3
ILT
6242fi
6243
9a0910c3 6244
24538276
CC
6245ac_ext=cpp
6246ac_cpp='$CXXCPP $CPPFLAGS'
6247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6250if test -z "$CXX"; then
6251 if test -n "$CCC"; then
6252 CXX=$CCC
6253 else
6254 if test -n "$ac_tool_prefix"; then
6255 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6256 do
6257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6258set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6261if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb
RW
6262 $as_echo_n "(cached) " >&6
6263else
24538276
CC
6264 if test -n "$CXX"; then
6265 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6266else
6267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268for as_dir in $PATH
81ecdfbb
RW
6269do
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
81ecdfbb 6272 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
6274 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6277 fi
6278done
81ecdfbb
RW
6279 done
6280IFS=$as_save_IFS
81ecdfbb
RW
6281
6282fi
24538276
CC
6283fi
6284CXX=$ac_cv_prog_CXX
6285if test -n "$CXX"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6287$as_echo "$CXX" >&6; }
6288else
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290$as_echo "no" >&6; }
6291fi
81ecdfbb
RW
6292
6293
24538276
CC
6294 test -n "$CXX" && break
6295 done
6296fi
6297if test -z "$CXX"; then
6298 ac_ct_CXX=$CXX
6299 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6300do
6301 # Extract the first word of "$ac_prog", so it can be a program name with args.
6302set dummy $ac_prog; ac_word=$2
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6305if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 6306 $as_echo_n "(cached) " >&6
9a0910c3 6307else
24538276
CC
6308 if test -n "$ac_ct_CXX"; then
6309 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6310else
6311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312for as_dir in $PATH
81ecdfbb
RW
6313do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
81ecdfbb 6316 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
6318 ac_cv_prog_ac_ct_CXX="$ac_prog"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 break 2
6321 fi
6322done
81ecdfbb
RW
6323 done
6324IFS=$as_save_IFS
24538276
CC
6325
6326fi
6327fi
6328ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6329if test -n "$ac_ct_CXX"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6331$as_echo "$ac_ct_CXX" >&6; }
81ecdfbb 6332else
24538276
CC
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334$as_echo "no" >&6; }
6335fi
6336
6337
6338 test -n "$ac_ct_CXX" && break
6339done
6340
6341 if test "x$ac_ct_CXX" = x; then
6342 CXX="g++"
6343 else
6344 case $cross_compiling:$ac_tool_warned in
6345yes:)
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6348ac_tool_warned=yes ;;
6349esac
6350 CXX=$ac_ct_CXX
6351 fi
81ecdfbb
RW
6352fi
6353
24538276 6354 fi
9a0910c3 6355fi
24538276
CC
6356# Provide some information about the compiler.
6357$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6358set X $ac_compile
6359ac_compiler=$2
6360for ac_option in --version -v -V -qversion; do
6361 { { ac_try="$ac_compiler $ac_option >&5"
6362case "(($ac_try" in
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6365esac
6366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6367$as_echo "$ac_try_echo"; } >&5
6368 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6369 ac_status=$?
6370 if test -s conftest.err; then
6371 sed '10a\
6372... rest of stderr output deleted ...
6373 10q' conftest.err >conftest.er1
6374 cat conftest.er1 >&5
24538276 6375 fi
d0ac1c44 6376 rm -f conftest.er1 conftest.err
24538276
CC
6377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6378 test $ac_status = 0; }
6379done
9a0910c3 6380
24538276
CC
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6382$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 6383if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 6384 $as_echo_n "(cached) " >&6
9a0910c3 6385else
81ecdfbb 6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3 6387/* end confdefs.h. */
9a0910c3
ILT
6388
6389int
6390main ()
6391{
24538276
CC
6392#ifndef __GNUC__
6393 choke me
6394#endif
9a0910c3
ILT
6395
6396 ;
6397 return 0;
6398}
6399_ACEOF
24538276
CC
6400if ac_fn_cxx_try_compile "$LINENO"; then :
6401 ac_compiler_gnu=yes
9a0910c3 6402else
24538276 6403 ac_compiler_gnu=no
9a0910c3 6404fi
81ecdfbb 6405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24538276 6406ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9a0910c3 6407
24538276
CC
6408fi
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6410$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6411if test $ac_compiler_gnu = yes; then
6412 GXX=yes
6413else
6414 GXX=
6415fi
6416ac_test_CXXFLAGS=${CXXFLAGS+set}
6417ac_save_CXXFLAGS=$CXXFLAGS
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6419$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 6420if ${ac_cv_prog_cxx_g+:} false; then :
24538276
CC
6421 $as_echo_n "(cached) " >&6
6422else
6423 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6424 ac_cxx_werror_flag=yes
6425 ac_cv_prog_cxx_g=no
6426 CXXFLAGS="-g"
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3 6428/* end confdefs.h. */
9a0910c3 6429
24538276
CC
6430int
6431main ()
6432{
81ecdfbb 6433
24538276
CC
6434 ;
6435 return 0;
6436}
6437_ACEOF
6438if ac_fn_cxx_try_compile "$LINENO"; then :
6439 ac_cv_prog_cxx_g=yes
9a0910c3 6440else
24538276
CC
6441 CXXFLAGS=""
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443/* end confdefs.h. */
9a0910c3 6444
24538276
CC
6445int
6446main ()
6447{
9a0910c3 6448
24538276
CC
6449 ;
6450 return 0;
6451}
6452_ACEOF
6453if ac_fn_cxx_try_compile "$LINENO"; then :
6454
6455else
6456 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6457 CXXFLAGS="-g"
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3 6459/* end confdefs.h. */
9a0910c3 6460
24538276
CC
6461int
6462main ()
6463{
6464
6465 ;
6466 return 0;
6467}
9a0910c3 6468_ACEOF
24538276
CC
6469if ac_fn_cxx_try_compile "$LINENO"; then :
6470 ac_cv_prog_cxx_g=yes
6471fi
6472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473fi
6474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475fi
6476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6478fi
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6480$as_echo "$ac_cv_prog_cxx_g" >&6; }
6481if test "$ac_test_CXXFLAGS" = set; then
6482 CXXFLAGS=$ac_save_CXXFLAGS
6483elif test $ac_cv_prog_cxx_g = yes; then
6484 if test "$GXX" = yes; then
6485 CXXFLAGS="-g -O2"
6486 else
6487 CXXFLAGS="-g"
6488 fi
6489else
6490 if test "$GXX" = yes; then
6491 CXXFLAGS="-O2"
6492 else
6493 CXXFLAGS=
6494 fi
6495fi
6496ac_ext=c
6497ac_cpp='$CPP $CPPFLAGS'
6498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6500ac_compiler_gnu=$ac_cv_c_compiler_gnu
6501
6502depcc="$CXX" am_compiler_list=
6503
6504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6505$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 6506if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
24538276
CC
6507 $as_echo_n "(cached) " >&6
6508else
6509 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6510 # We make a subdir and do the tests there. Otherwise we can end up
6511 # making bogus files that we don't know about and never remove. For
6512 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
6513 # making a dummy file named 'D' -- because '-MD' means "put the output
6514 # in D".
24538276
CC
6515 rm -rf conftest.dir
6516 mkdir conftest.dir
6517 # Copy depcomp to subdir because otherwise we won't find it if we're
6518 # using a relative directory.
6519 cp "$am_depcomp" conftest.dir
6520 cd conftest.dir
6521 # We will build objects and dependencies in a subdirectory because
6522 # it helps to detect inapplicable dependency modes. For instance
6523 # both Tru64's cc and ICC support -MD to output dependencies as a
6524 # side effect of compilation, but ICC will put the dependencies in
6525 # the current directory while Tru64 will put them in the object
6526 # directory.
6527 mkdir sub
6528
6529 am_cv_CXX_dependencies_compiler_type=none
6530 if test "$am_compiler_list" = ""; then
6531 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6532 fi
6533 am__universal=false
6534 case " $depcc " in #(
6535 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6536 esac
6537
6538 for depmode in $am_compiler_list; do
6539 # Setup a source with many dependencies, because some compilers
6540 # like to wrap large dependency lists on column 80 (with \), and
6541 # we should not choose a depcomp mode which is confused by this.
6542 #
6543 # We need to recreate these files for each test, as the compiler may
6544 # overwrite some of them when testing with obscure command lines.
6545 # This happens at least with the AIX C compiler.
6546 : > sub/conftest.c
6547 for i in 1 2 3 4 5 6; do
6548 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
6549 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6550 # Solaris 10 /bin/sh.
6551 echo '/* dummy */' > sub/conftst$i.h
24538276
CC
6552 done
6553 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6554
d0ac1c44 6555 # We check with '-c' and '-o' for the sake of the "dashmstdout"
24538276 6556 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
6557 # handle '-M -o', and we need to detect this. Also, some Intel
6558 # versions had trouble with output in subdirs.
24538276
CC
6559 am__obj=sub/conftest.${OBJEXT-o}
6560 am__minus_obj="-o $am__obj"
6561 case $depmode in
6562 gcc)
6563 # This depmode causes a compiler race in universal mode.
6564 test "$am__universal" = false || continue
6565 ;;
6566 nosideeffect)
d0ac1c44
SM
6567 # After this tag, mechanisms are not by side-effect, so they'll
6568 # only be used when explicitly requested.
24538276
CC
6569 if test "x$enable_dependency_tracking" = xyes; then
6570 continue
6571 else
6572 break
6573 fi
6574 ;;
6575 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 6576 # This compiler won't grok '-c -o', but also, the minuso test has
24538276
CC
6577 # not run yet. These depmodes are late enough in the game, and
6578 # so weak that their functioning should not be impacted.
6579 am__obj=conftest.${OBJEXT-o}
6580 am__minus_obj=
6581 ;;
6582 none) break ;;
6583 esac
6584 if depmode=$depmode \
6585 source=sub/conftest.c object=$am__obj \
6586 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6587 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6588 >/dev/null 2>conftest.err &&
6589 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6590 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6591 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6592 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6593 # icc doesn't choke on unknown options, it will just issue warnings
6594 # or remarks (even with -Werror). So we grep stderr for any message
6595 # that says an option was ignored or not supported.
6596 # When given -MP, icc 7.0 and 7.1 complain thusly:
6597 # icc: Command line warning: ignoring option '-M'; no argument required
6598 # The diagnosis changed in icc 8.0:
6599 # icc: Command line remark: option '-MP' not supported
6600 if (grep 'ignoring option' conftest.err ||
6601 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6602 am_cv_CXX_dependencies_compiler_type=$depmode
6603 break
6604 fi
6605 fi
6606 done
81ecdfbb 6607
24538276
CC
6608 cd ..
6609 rm -rf conftest.dir
9a0910c3 6610else
24538276 6611 am_cv_CXX_dependencies_compiler_type=none
9a0910c3 6612fi
9a0910c3
ILT
6613
6614fi
24538276
CC
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6616$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6617CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9a0910c3 6618
24538276
CC
6619 if
6620 test "x$enable_dependency_tracking" != xno \
6621 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6622 am__fastdepCXX_TRUE=
6623 am__fastdepCXX_FALSE='#'
9a0910c3 6624else
24538276
CC
6625 am__fastdepCXX_TRUE='#'
6626 am__fastdepCXX_FALSE=
6627fi
9a0910c3 6628
9a0910c3 6629
24538276
CC
6630for ac_prog in 'bison -y' byacc
6631do
6632 # Extract the first word of "$ac_prog", so it can be a program name with args.
6633set dummy $ac_prog; ac_word=$2
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6636if ${ac_cv_prog_YACC+:} false; then :
24538276 6637 $as_echo_n "(cached) " >&6
81ecdfbb 6638else
24538276
CC
6639 if test -n "$YACC"; then
6640 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6641else
6642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643for as_dir in $PATH
6644do
6645 IFS=$as_save_IFS
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
6649 ac_cv_prog_YACC="$ac_prog"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 break 2
6652 fi
6653done
6654 done
6655IFS=$as_save_IFS
81ecdfbb 6656
9a0910c3
ILT
6657fi
6658fi
24538276
CC
6659YACC=$ac_cv_prog_YACC
6660if test -n "$YACC"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6662$as_echo "$YACC" >&6; }
6663else
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665$as_echo "no" >&6; }
9a0910c3
ILT
6666fi
6667
9a0910c3 6668
24538276 6669 test -n "$YACC" && break
81ecdfbb 6670done
24538276 6671test -n "$YACC" || YACC="yacc"
9a0910c3 6672
24538276
CC
6673if test -n "$ac_tool_prefix"; then
6674 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6675set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6678if ${ac_cv_prog_RANLIB+:} false; then :
24538276
CC
6679 $as_echo_n "(cached) " >&6
6680else
6681 if test -n "$RANLIB"; then
6682 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6683else
6684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685for as_dir in $PATH
6686do
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
6691 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 break 2
6694 fi
6695done
6696 done
6697IFS=$as_save_IFS
9a0910c3 6698
24538276
CC
6699fi
6700fi
6701RANLIB=$ac_cv_prog_RANLIB
6702if test -n "$RANLIB"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6704$as_echo "$RANLIB" >&6; }
81ecdfbb 6705else
24538276
CC
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707$as_echo "no" >&6; }
81ecdfbb 6708fi
9a0910c3
ILT
6709
6710
24538276
CC
6711fi
6712if test -z "$ac_cv_prog_RANLIB"; then
6713 ac_ct_RANLIB=$RANLIB
6714 # Extract the first word of "ranlib", so it can be a program name with args.
6715set dummy ranlib; ac_word=$2
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6718if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 6719 $as_echo_n "(cached) " >&6
9a0910c3 6720else
24538276
CC
6721 if test -n "$ac_ct_RANLIB"; then
6722 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9a0910c3 6723else
24538276
CC
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24538276
CC
6731 ac_cv_prog_ac_ct_RANLIB="ranlib"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6734 fi
6735done
6736 done
6737IFS=$as_save_IFS
6738
9a0910c3 6739fi
81ecdfbb 6740fi
24538276
CC
6741ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6742if test -n "$ac_ct_RANLIB"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6744$as_echo "$ac_ct_RANLIB" >&6; }
6745else
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747$as_echo "no" >&6; }
6748fi
81ecdfbb 6749
24538276
CC
6750 if test "x$ac_ct_RANLIB" = x; then
6751 RANLIB=":"
6752 else
6753 case $cross_compiling:$ac_tool_warned in
6754yes:)
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6757ac_tool_warned=yes ;;
6758esac
6759 RANLIB=$ac_ct_RANLIB
6760 fi
6761else
6762 RANLIB="$ac_cv_prog_RANLIB"
6763fi
9a0910c3 6764
81ecdfbb 6765
24538276
CC
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6767$as_echo_n "checking whether ln -s works... " >&6; }
6768LN_S=$as_ln_s
6769if test "$LN_S" = "ln -s"; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6771$as_echo "yes" >&6; }
6772else
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6774$as_echo "no, using $LN_S" >&6; }
6775fi
81ecdfbb
RW
6776
6777
6778
6779
6780# If we haven't got the data from the intl directory,
6781# assume NLS is disabled.
6782USE_NLS=no
6783LIBINTL=
6784LIBINTL_DEP=
6785INCINTL=
6786XGETTEXT=
6787GMSGFMT=
6788POSUB=
6789
6790if test -f ../intl/config.intl; then
6791 . ../intl/config.intl
9a0910c3 6792fi
81ecdfbb
RW
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6794$as_echo_n "checking whether NLS is requested... " >&6; }
6795if test x"$USE_NLS" != xyes; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797$as_echo "no" >&6; }
6798else
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6800$as_echo "yes" >&6; }
6801
6802$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6803
6804
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6806$as_echo_n "checking for catalogs to be installed... " >&6; }
6807 # Look for .po and .gmo files in the source directory.
6808 CATALOGS=
6809 XLINGUAS=
6810 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6811 # If there aren't any .gmo files the shell will give us the
6812 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6813 # weeded out.
6814 case "$cat" in *\**)
6815 continue;;
6816 esac
6817 # The quadruple backslash is collapsed to a double backslash
6818 # by the backticks, then collapsed again by the double quotes,
6819 # leaving us with one backslash in the sed expression (right
6820 # before the dot that mustn't act as a wildcard).
6821 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6822 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6823 # The user is allowed to set LINGUAS to a list of languages to
6824 # install catalogs for. If it's empty that means "all of them."
6825 if test "x$LINGUAS" = x; then
6826 CATALOGS="$CATALOGS $cat"
6827 XLINGUAS="$XLINGUAS $lang"
6828 else
6829 case "$LINGUAS" in *$lang*)
6830 CATALOGS="$CATALOGS $cat"
6831 XLINGUAS="$XLINGUAS $lang"
6832 ;;
6833 esac
6834 fi
9a0910c3 6835 done
81ecdfbb
RW
6836 LINGUAS="$XLINGUAS"
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6838$as_echo "$LINGUAS" >&6; }
6839
6840
6841 DATADIRNAME=share
6842
6843 INSTOBJEXT=.mo
6844
6845 GENCAT=gencat
6846
6847 CATOBJEXT=.gmo
9a0910c3 6848
9a0910c3 6849fi
9a0910c3 6850
81ecdfbb
RW
6851 MKINSTALLDIRS=
6852 if test -n "$ac_aux_dir"; then
6853 case "$ac_aux_dir" in
6854 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6855 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6856 esac
6857 fi
6858 if test -z "$MKINSTALLDIRS"; then
6859 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6860 fi
6861
6862
6863
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6865$as_echo_n "checking whether NLS is requested... " >&6; }
6866 # Check whether --enable-nls was given.
6867if test "${enable_nls+set}" = set; then :
6868 enableval=$enable_nls; USE_NLS=$enableval
6869else
6870 USE_NLS=yes
9a0910c3 6871fi
9a0910c3 6872
81ecdfbb
RW
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6874$as_echo "$USE_NLS" >&6; }
6875
6876
6877
6878
6879
6880
6881# Prepare PATH_SEPARATOR.
6882# The user is always right.
6883if test "${PATH_SEPARATOR+set}" != set; then
6884 echo "#! /bin/sh" >conf$$.sh
6885 echo "exit 0" >>conf$$.sh
6886 chmod +x conf$$.sh
6887 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6888 PATH_SEPARATOR=';'
9a0910c3 6889 else
81ecdfbb 6890 PATH_SEPARATOR=:
9a0910c3 6891 fi
81ecdfbb 6892 rm -f conf$$.sh
9a0910c3 6893fi
81ecdfbb
RW
6894
6895# Find out how to test for executable files. Don't use a zero-byte file,
6896# as systems may use methods other than mode bits to determine executability.
6897cat >conf$$.file <<_ASEOF
6898#! /bin/sh
6899exit 0
6900_ASEOF
6901chmod +x conf$$.file
6902if test -x conf$$.file >/dev/null 2>&1; then
6903 ac_executable_p="test -x"
9a0910c3 6904else
81ecdfbb
RW
6905 ac_executable_p="test -f"
6906fi
6907rm -f conf$$.file
9a0910c3 6908
81ecdfbb
RW
6909# Extract the first word of "msgfmt", so it can be a program name with args.
6910set dummy msgfmt; ac_word=$2
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6913if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb
RW
6914 $as_echo_n "(cached) " >&6
6915else
6916 case "$MSGFMT" in
6917 [\\/]* | ?:[\\/]*)
6918 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6919 ;;
6920 *)
6921 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6922 for ac_dir in $PATH; do
6923 IFS="$ac_save_IFS"
6924 test -z "$ac_dir" && ac_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6927 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6928 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6929 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6930 break 2
6931 fi
6932 fi
6933 done
6934 done
6935 IFS="$ac_save_IFS"
6936 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6937 ;;
6938esac
9a0910c3 6939fi
81ecdfbb
RW
6940MSGFMT="$ac_cv_path_MSGFMT"
6941if test "$MSGFMT" != ":"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6943$as_echo "$MSGFMT" >&6; }
6944else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946$as_echo "no" >&6; }
6947fi
6948
6949 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6950set dummy gmsgfmt; ac_word=$2
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6953if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb
RW
6954 $as_echo_n "(cached) " >&6
6955else
6956 case $GMSGFMT in
6957 [\\/]* | ?:[\\/]*)
6958 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6959 ;;
6960 *)
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
6968 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6971 fi
6972done
6973 done
6974IFS=$as_save_IFS
9a0910c3 6975
81ecdfbb
RW
6976 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6977 ;;
9a0910c3 6978esac
81ecdfbb
RW
6979fi
6980GMSGFMT=$ac_cv_path_GMSGFMT
6981if test -n "$GMSGFMT"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6983$as_echo "$GMSGFMT" >&6; }
9a0910c3 6984else
81ecdfbb
RW
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986$as_echo "no" >&6; }
9a0910c3 6987fi
9a0910c3 6988
9a0910c3 6989
9a0910c3 6990
9a0910c3 6991
81ecdfbb
RW
6992# Prepare PATH_SEPARATOR.
6993# The user is always right.
6994if test "${PATH_SEPARATOR+set}" != set; then
6995 echo "#! /bin/sh" >conf$$.sh
6996 echo "exit 0" >>conf$$.sh
6997 chmod +x conf$$.sh
6998 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6999 PATH_SEPARATOR=';'
7000 else
7001 PATH_SEPARATOR=:
7002 fi
7003 rm -f conf$$.sh
9a0910c3
ILT
7004fi
7005
81ecdfbb
RW
7006# Find out how to test for executable files. Don't use a zero-byte file,
7007# as systems may use methods other than mode bits to determine executability.
7008cat >conf$$.file <<_ASEOF
7009#! /bin/sh
7010exit 0
7011_ASEOF
7012chmod +x conf$$.file
7013if test -x conf$$.file >/dev/null 2>&1; then
7014 ac_executable_p="test -x"
7fcd0256 7015else
81ecdfbb 7016 ac_executable_p="test -f"
7fcd0256 7017fi
81ecdfbb 7018rm -f conf$$.file
7fcd0256 7019
81ecdfbb
RW
7020# Extract the first word of "xgettext", so it can be a program name with args.
7021set dummy xgettext; ac_word=$2
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7024if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 7025 $as_echo_n "(cached) " >&6
54dc6425 7026else
81ecdfbb
RW
7027 case "$XGETTEXT" in
7028 [\\/]* | ?:[\\/]*)
7029 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7030 ;;
7031 *)
7032 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7033 for ac_dir in $PATH; do
7034 IFS="$ac_save_IFS"
7035 test -z "$ac_dir" && ac_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7038 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7039 (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
7040 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7041 break 2
7042 fi
7043 fi
7044 done
7045 done
7046 IFS="$ac_save_IFS"
7047 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7048 ;;
7049esac
54dc6425 7050fi
81ecdfbb
RW
7051XGETTEXT="$ac_cv_path_XGETTEXT"
7052if test "$XGETTEXT" != ":"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7054$as_echo "$XGETTEXT" >&6; }
7055else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057$as_echo "no" >&6; }
0639a6f6 7058fi
0639a6f6 7059
81ecdfbb 7060 rm -f messages.po
0639a6f6
ILT
7061
7062
81ecdfbb
RW
7063# Prepare PATH_SEPARATOR.
7064# The user is always right.
7065if test "${PATH_SEPARATOR+set}" != set; then
7066 echo "#! /bin/sh" >conf$$.sh
7067 echo "exit 0" >>conf$$.sh
7068 chmod +x conf$$.sh
7069 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7070 PATH_SEPARATOR=';'
7071 else
7072 PATH_SEPARATOR=:
7073 fi
7074 rm -f conf$$.sh
0639a6f6 7075fi
0639a6f6 7076
81ecdfbb
RW
7077# Find out how to test for executable files. Don't use a zero-byte file,
7078# as systems may use methods other than mode bits to determine executability.
7079cat >conf$$.file <<_ASEOF
7080#! /bin/sh
7081exit 0
7082_ASEOF
7083chmod +x conf$$.file
7084if test -x conf$$.file >/dev/null 2>&1; then
7085 ac_executable_p="test -x"
54dc6425 7086else
81ecdfbb 7087 ac_executable_p="test -f"
54dc6425 7088fi
81ecdfbb 7089rm -f conf$$.file
54dc6425 7090
81ecdfbb
RW
7091# Extract the first word of "msgmerge", so it can be a program name with args.
7092set dummy msgmerge; ac_word=$2
7093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7095if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 7096 $as_echo_n "(cached) " >&6
54dc6425 7097else
81ecdfbb
RW
7098 case "$MSGMERGE" in
7099 [\\/]* | ?:[\\/]*)
7100 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7101 ;;
7102 *)
7103 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7104 for ac_dir in $PATH; do
7105 IFS="$ac_save_IFS"
7106 test -z "$ac_dir" && ac_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7109 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7110 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7111 break 2
7112 fi
7113 fi
7114 done
7115 done
7116 IFS="$ac_save_IFS"
7117 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7118 ;;
7119esac
54dc6425 7120fi
81ecdfbb
RW
7121MSGMERGE="$ac_cv_path_MSGMERGE"
7122if test "$MSGMERGE" != ":"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7124$as_echo "$MSGMERGE" >&6; }
0639a6f6 7125else
81ecdfbb
RW
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127$as_echo "no" >&6; }
7128fi
0639a6f6 7129
54dc6425 7130
81ecdfbb
RW
7131 if test "$GMSGFMT" != ":"; then
7132 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7133 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7134 : ;
7135 else
7136 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7138$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7139 GMSGFMT=":"
7140 fi
7141 fi
54dc6425 7142
81ecdfbb
RW
7143 if test "$XGETTEXT" != ":"; then
7144 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7145 (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
7146 : ;
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7149$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7150 XGETTEXT=":"
7151 fi
7152 rm -f messages.po
7153 fi
54dc6425 7154
81ecdfbb 7155 ac_config_commands="$ac_config_commands default-1"
54dc6425 7156
54dc6425
ILT
7157
7158
81ecdfbb
RW
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7160$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 7161if ${ac_cv_c_bigendian+:} false; then :
81ecdfbb 7162 $as_echo_n "(cached) " >&6
54dc6425 7163else
81ecdfbb
RW
7164 ac_cv_c_bigendian=unknown
7165 # See if we're dealing with a universal compiler.
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54dc6425 7167/* end confdefs.h. */
81ecdfbb
RW
7168#ifndef __APPLE_CC__
7169 not a universal capable compiler
7170 #endif
7171 typedef int dummy;
7172
7173_ACEOF
7174if ac_fn_c_try_compile "$LINENO"; then :
7175
7176 # Check for potential -arch flags. It is not universal unless
7177 # there are at least two -arch flags with different values.
7178 ac_arch=
7179 ac_prev=
7180 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7181 if test -n "$ac_prev"; then
7182 case $ac_word in
7183 i?86 | x86_64 | ppc | ppc64)
7184 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7185 ac_arch=$ac_word
7186 else
7187 ac_cv_c_bigendian=universal
7188 break
7189 fi
7190 ;;
7191 esac
7192 ac_prev=
7193 elif test "x$ac_word" = "x-arch"; then
7194 ac_prev=arch
7195 fi
7196 done
7197fi
7198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199 if test $ac_cv_c_bigendian = unknown; then
7200 # See if sys/param.h defines the BYTE_ORDER macro.
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202/* end confdefs.h. */
7203#include <sys/types.h>
7204 #include <sys/param.h>
7205
0639a6f6
ILT
7206int
7207main ()
7208{
81ecdfbb
RW
7209#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7210 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7211 && LITTLE_ENDIAN)
7212 bogus endian macros
7213 #endif
54dc6425 7214
81ecdfbb
RW
7215 ;
7216 return 0;
7217}
15d5fa16 7218_ACEOF
81ecdfbb
RW
7219if ac_fn_c_try_compile "$LINENO"; then :
7220 # It does; now see whether it defined to BIG_ENDIAN or not.
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15d5fa16 7222/* end confdefs.h. */
81ecdfbb
RW
7223#include <sys/types.h>
7224 #include <sys/param.h>
7225
0639a6f6
ILT
7226int
7227main ()
7228{
81ecdfbb
RW
7229#if BYTE_ORDER != BIG_ENDIAN
7230 not big endian
7231 #endif
0639a6f6
ILT
7232
7233 ;
7234 return 0;
7235}
15d5fa16 7236_ACEOF
81ecdfbb
RW
7237if ac_fn_c_try_compile "$LINENO"; then :
7238 ac_cv_c_bigendian=yes
15d5fa16 7239else
81ecdfbb 7240 ac_cv_c_bigendian=no
15d5fa16 7241fi
81ecdfbb 7242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0639a6f6 7243fi
81ecdfbb
RW
7244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 fi
7246 if test $ac_cv_c_bigendian = unknown; then
7247 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249/* end confdefs.h. */
7250#include <limits.h>
0639a6f6 7251
81ecdfbb
RW
7252int
7253main ()
7254{
7255#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7256 bogus endian macros
7257 #endif
0639a6f6 7258
81ecdfbb
RW
7259 ;
7260 return 0;
7261}
15d5fa16 7262_ACEOF
81ecdfbb
RW
7263if ac_fn_c_try_compile "$LINENO"; then :
7264 # It does; now see whether it defined to _BIG_ENDIAN or not.
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15d5fa16 7266/* end confdefs.h. */
81ecdfbb
RW
7267#include <limits.h>
7268
0639a6f6
ILT
7269int
7270main ()
7271{
81ecdfbb
RW
7272#ifndef _BIG_ENDIAN
7273 not big endian
7274 #endif
0639a6f6
ILT
7275
7276 ;
7277 return 0;
7278}
15d5fa16 7279_ACEOF
81ecdfbb
RW
7280if ac_fn_c_try_compile "$LINENO"; then :
7281 ac_cv_c_bigendian=yes
15d5fa16 7282else
81ecdfbb 7283 ac_cv_c_bigendian=no
15d5fa16 7284fi
81ecdfbb 7285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15d5fa16 7286fi
81ecdfbb
RW
7287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288 fi
7289 if test $ac_cv_c_bigendian = unknown; then
7290 # Compile a test program.
7291 if test "$cross_compiling" = yes; then :
7292 # Try to guess by grepping values from an object file.
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294/* end confdefs.h. */
7295short int ascii_mm[] =
7296 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7297 short int ascii_ii[] =
7298 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7299 int use_ascii (int i) {
7300 return ascii_mm[i] + ascii_ii[i];
7301 }
7302 short int ebcdic_ii[] =
7303 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7304 short int ebcdic_mm[] =
7305 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7306 int use_ebcdic (int i) {
7307 return ebcdic_mm[i] + ebcdic_ii[i];
7308 }
7309 extern int foo;
15d5fa16 7310
81ecdfbb
RW
7311int
7312main ()
7313{
7314return use_ascii (foo) == use_ebcdic (foo);
7315 ;
7316 return 0;
7317}
0639a6f6 7318_ACEOF
81ecdfbb
RW
7319if ac_fn_c_try_compile "$LINENO"; then :
7320 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7321 ac_cv_c_bigendian=yes
7322 fi
7323 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7324 if test "$ac_cv_c_bigendian" = unknown; then
7325 ac_cv_c_bigendian=no
7326 else
7327 # finding both strings is unlikely to happen, but who knows?
7328 ac_cv_c_bigendian=unknown
7329 fi
7330 fi
54dc6425 7331fi
81ecdfbb 7332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54dc6425 7333else
81ecdfbb 7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54dc6425
ILT
7335/* end confdefs.h. */
7336$ac_includes_default
0639a6f6
ILT
7337int
7338main ()
7339{
81ecdfbb
RW
7340
7341 /* Are we little or big endian? From Harbison&Steele. */
7342 union
7343 {
7344 long int l;
7345 char c[sizeof (long int)];
7346 } u;
7347 u.l = 1;
7348 return u.c[sizeof (long int) - 1] == 1;
0639a6f6
ILT
7349
7350 ;
7351 return 0;
7352}
54dc6425 7353_ACEOF
81ecdfbb
RW
7354if ac_fn_c_try_run "$LINENO"; then :
7355 ac_cv_c_bigendian=no
54dc6425 7356else
81ecdfbb 7357 ac_cv_c_bigendian=yes
54dc6425 7358fi
81ecdfbb
RW
7359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7360 conftest.$ac_objext conftest.beam conftest.$ac_ext
0639a6f6 7361fi
54dc6425 7362
81ecdfbb
RW
7363 fi
7364fi
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7366$as_echo "$ac_cv_c_bigendian" >&6; }
7367 case $ac_cv_c_bigendian in #(
7368 yes)
7369 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7370;; #(
7371 no)
7372 ;; #(
7373 universal)
7374
7375$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7376
7377 ;; #(
7378 *)
d0ac1c44 7379 as_fn_error $? "unknown endianness
81ecdfbb
RW
7380 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7381 esac
0639a6f6
ILT
7382
7383
0639a6f6
ILT
7384
7385
81ecdfbb
RW
7386 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
7387 NATIVE_LINKER_TRUE=
7388 NATIVE_LINKER_FALSE='#'
7389else
7390 NATIVE_LINKER_TRUE='#'
7391 NATIVE_LINKER_FALSE=
0639a6f6
ILT
7392fi
7393
81ecdfbb
RW
7394 if test "$GCC" = yes; then
7395 GCC_TRUE=
7396 GCC_FALSE='#'
7397else
7398 GCC_TRUE='#'
7399 GCC_FALSE=
7400fi
0639a6f6
ILT
7401
7402
eb373049
ILT
7403 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
7404 NATIVE_OR_CROSS_LINKER_TRUE=
7405 NATIVE_OR_CROSS_LINKER_FALSE='#'
7406else
7407 NATIVE_OR_CROSS_LINKER_TRUE='#'
7408 NATIVE_OR_CROSS_LINKER_FALSE=
7409fi
7410
7411
328c7c2f
ILT
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
7413$as_echo_n "checking whether static linking works... " >&6; }
d0ac1c44 7414if ${gold_cv_lib_static+:} false; then :
328c7c2f
ILT
7415 $as_echo_n "(cached) " >&6
7416else
7417 LDFLAGS_hold=$LDFLAGS
7418LDFLAGS="$LDFLAGS -static"
7419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420/* end confdefs.h. */
7421
7422void f() { }
7423int
7424main ()
7425{
7426
7427 ;
7428 return 0;
7429}
7430_ACEOF
7431if ac_fn_c_try_link "$LINENO"; then :
7432 gold_cv_lib_static=yes
7433else
7434 gold_cv_lib_static=no
7435fi
7436rm -f core conftest.err conftest.$ac_objext \
7437 conftest$ac_exeext conftest.$ac_ext
dd7af074 7438LDFLAGS=$LDFLAGS_hold
328c7c2f
ILT
7439fi
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
7441$as_echo "$gold_cv_lib_static" >&6; }
7442 if test "$gold_cv_lib_static" = "yes"; then
7443 HAVE_STATIC_TRUE=
7444 HAVE_STATIC_FALSE='#'
7445else
7446 HAVE_STATIC_TRUE='#'
7447 HAVE_STATIC_FALSE=
7448fi
7449
7450
81ecdfbb
RW
7451 if
7452 case $target_cpu in
864a1b56 7453 powerpc*) false;;
81ecdfbb
RW
7454 x86_64) false;;
7455 sparc64) false;;
e79a4bad 7456 s390x) false;;
81ecdfbb
RW
7457 *) true;;
7458 esac; then
7459 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
7460 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
7461else
7462 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
7463 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
7464fi
0639a6f6
ILT
7465
7466
084e2665
ILT
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
7468$as_echo_n "checking for gcc >= 4.1... " >&6; }
d0ac1c44 7469if ${gold_cv_prog_gcc41+:} false; then :
084e2665
ILT
7470 $as_echo_n "(cached) " >&6
7471else
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473/* end confdefs.h. */
7474
7475#if !defined __GNUC__
7476error
7477#elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
7478error
7479#endif
7480
7481_ACEOF
7482if ac_fn_c_try_compile "$LINENO"; then :
7483 gold_cv_prog_gcc41=yes
7484else
7485 gold_cv_prog_gcc41=no
7486fi
7487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488fi
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
7490$as_echo "$gold_cv_prog_gcc41" >&6; }
7491
24482ca0
L
7492save_CFLAGS="$CFLAGS"
7493CFLAGS="$CFLAGS -mcmodel=medium"
7494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495/* end confdefs.h. */
7496int i;
7497_ACEOF
7498if ac_fn_c_try_compile "$LINENO"; then :
7499 have_mcmodel_medium=yes
7500else
7501 have_mcmodel_medium=no
7502fi
7503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504CFLAGS="$save_CFLAGS"
7505 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
81ecdfbb
RW
7506 MCMODEL_MEDIUM_TRUE=
7507 MCMODEL_MEDIUM_FALSE='#'
54dc6425 7508else
81ecdfbb
RW
7509 MCMODEL_MEDIUM_TRUE='#'
7510 MCMODEL_MEDIUM_FALSE=
54dc6425 7511fi
54dc6425 7512
54dc6425 7513
2b64b551
RM
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
7515$as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
d0ac1c44 7516if ${gold_cv_merge_constants+:} false; then :
2b64b551
RM
7517 $as_echo_n "(cached) " >&6
7518else
7519
7520save_CFLAGS="$CFLAGS"
7521CFLAGS="$CFLAGS -fmerge-constants"
7522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523/* end confdefs.h. */
7524const char *s = "foo";
7525_ACEOF
7526if ac_fn_c_try_compile "$LINENO"; then :
2500c017 7527 gold_cv_merge_constants=yes
2b64b551 7528else
2500c017 7529 gold_cv_merge_constants=no
2b64b551
RM
7530fi
7531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532CFLAGS="$save_CFLAGS"
7533fi
7534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
7535$as_echo "$gold_cv_merge_constants" >&6; }
7536
7537if test "$gold_cv_merge_constants" = yes; then :
7538 MERGE_CONSTANTS_FLAG=-fmerge-constants
7539else
7540 MERGE_CONSTANTS_FLAG=
7541fi
7542
81ecdfbb
RW
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
7544$as_echo_n "checking for thread support... " >&6; }
d0ac1c44 7545if ${gold_cv_c_thread+:} false; then :
81ecdfbb
RW
7546 $as_echo_n "(cached) " >&6
7547else
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e44fcf3b 7549/* end confdefs.h. */
81ecdfbb 7550__thread int i = 1;
e44fcf3b 7551_ACEOF
81ecdfbb
RW
7552if ac_fn_c_try_compile "$LINENO"; then :
7553 gold_cv_c_thread=yes
0639a6f6 7554else
81ecdfbb 7555 gold_cv_c_thread=no
0639a6f6 7556fi
81ecdfbb 7557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e44fcf3b 7558fi
81ecdfbb
RW
7559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
7560$as_echo "$gold_cv_c_thread" >&6; }
e44fcf3b 7561
81ecdfbb
RW
7562 if test "$gold_cv_c_thread" = "yes"; then
7563 TLS_TRUE=
7564 TLS_FALSE='#'
7565else
7566 TLS_TRUE='#'
7567 TLS_FALSE=
0639a6f6 7568fi
e44fcf3b 7569
0639a6f6 7570
81ecdfbb
RW
7571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
7572$as_echo_n "checking for glibc >= 2.4... " >&6; }
d0ac1c44 7573if ${gold_cv_lib_glibc24+:} false; then :
81ecdfbb 7574 $as_echo_n "(cached) " >&6
1b77ea50 7575else
81ecdfbb 7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1b77ea50 7577/* end confdefs.h. */
81ecdfbb
RW
7578
7579#include <features.h>
7580#if !defined __GLIBC__
7581error
7582#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
7583error
1b77ea50 7584#endif
81ecdfbb 7585
1b77ea50 7586_ACEOF
81ecdfbb
RW
7587if ac_fn_c_try_compile "$LINENO"; then :
7588 gold_cv_lib_glibc24=yes
0639a6f6 7589else
81ecdfbb 7590 gold_cv_lib_glibc24=no
0639a6f6 7591fi
81ecdfbb 7592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1b77ea50 7593fi
81ecdfbb
RW
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
7595$as_echo "$gold_cv_lib_glibc24" >&6; }
1b77ea50 7596
81ecdfbb
RW
7597 if test "$gold_cv_lib_glibc24" = "yes"; then
7598 STATIC_TLS_TRUE=
7599 STATIC_TLS_FALSE='#'
0639a6f6 7600else
81ecdfbb
RW
7601 STATIC_TLS_TRUE='#'
7602 STATIC_TLS_FALSE=
0639a6f6 7603fi
1b77ea50 7604
0639a6f6 7605
81ecdfbb
RW
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
7607$as_echo_n "checking for omp support... " >&6; }
d0ac1c44 7608if ${gold_cv_c_threadprivate+:} false; then :
81ecdfbb 7609 $as_echo_n "(cached) " >&6
0639a6f6 7610else
81ecdfbb
RW
7611 save_CFLAGS="$CFLAGS"
7612CFLAGS="$CFLAGS -fopenmp"
7613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614/* end confdefs.h. */
1b77ea50 7615
81ecdfbb
RW
7616#include <omp.h>
7617int i;
7618#pragma omp threadprivate (i)
1b77ea50 7619
81ecdfbb
RW
7620_ACEOF
7621if ac_fn_c_try_compile "$LINENO"; then :
7622 gold_cv_c_threadprivate=yes
7623else
7624 gold_cv_c_threadprivate=no
7625fi
7626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627CFLAGS="$save_CFLAGS"
7628fi
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
7630$as_echo "$gold_cv_c_threadprivate" >&6; }
7631if test "$gold_cv_c_threadprivate" = "yes"; then
1b77ea50 7632
81ecdfbb 7633$as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
1b77ea50 7634
0639a6f6 7635fi
81ecdfbb
RW
7636 if test "$gold_cv_c_threadprivate" = "yes"; then
7637 OMP_SUPPORT_TRUE=
7638 OMP_SUPPORT_FALSE='#'
1b77ea50 7639else
81ecdfbb
RW
7640 OMP_SUPPORT_TRUE='#'
7641 OMP_SUPPORT_FALSE=
1b77ea50 7642fi
1b77ea50 7643
81ecdfbb
RW
7644
7645save_CFLAGS="$CFLAGS"
13323c49 7646CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
81ecdfbb 7647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0639a6f6 7648/* end confdefs.h. */
63887f3d
L
7649
7650__thread int i;
7651void foo (void)
7652{
7653 i = 10;
7654}
7655
1b77ea50 7656_ACEOF
81ecdfbb
RW
7657if ac_fn_c_try_compile "$LINENO"; then :
7658 have_tls_gnu2=yes
0639a6f6 7659else
81ecdfbb 7660 have_tls_gnu2=no
0639a6f6 7661fi
81ecdfbb
RW
7662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663CFLAGS="$save_CFLAGS"
7664 if test "$have_tls_gnu2" = "yes"; then
7665 TLS_GNU2_DIALECT_TRUE=
7666 TLS_GNU2_DIALECT_FALSE='#'
0639a6f6 7667else
81ecdfbb
RW
7668 TLS_GNU2_DIALECT_TRUE='#'
7669 TLS_GNU2_DIALECT_FALSE=
0639a6f6 7670fi
1b77ea50 7671
81ecdfbb
RW
7672
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
7674$as_echo_n "checking for glibc >= 2.9... " >&6; }
d0ac1c44 7675if ${gold_cv_lib_glibc29+:} false; then :
81ecdfbb 7676 $as_echo_n "(cached) " >&6
1b77ea50 7677else
81ecdfbb
RW
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679/* end confdefs.h. */
0639a6f6 7680
81ecdfbb
RW
7681#include <features.h>
7682#if !defined __GLIBC__
7683error
7684#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
7685error
7686#endif
1b77ea50 7687
81ecdfbb
RW
7688_ACEOF
7689if ac_fn_c_try_compile "$LINENO"; then :
7690 gold_cv_lib_glibc29=yes
7691else
7692 gold_cv_lib_glibc29=no
1b77ea50 7693fi
81ecdfbb
RW
7694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695fi
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
7697$as_echo "$gold_cv_lib_glibc29" >&6; }
0639a6f6 7698
81ecdfbb
RW
7699 if test "$gold_cv_lib_glibc29" = "yes"; then
7700 TLS_DESCRIPTORS_TRUE=
7701 TLS_DESCRIPTORS_FALSE='#'
7702else
7703 TLS_DESCRIPTORS_TRUE='#'
7704 TLS_DESCRIPTORS_FALSE=
7705fi
0639a6f6
ILT
7706
7707
81ecdfbb
RW
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
7709$as_echo_n "checking for -frandom-seed support... " >&6; }
d0ac1c44 7710if ${gold_cv_c_random_seed+:} false; then :
81ecdfbb
RW
7711 $as_echo_n "(cached) " >&6
7712else
7713 save_CFLAGS="$CFLAGS"
7714CFLAGS="$CFLAGS -frandom-seed=foo"
7715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0639a6f6 7716/* end confdefs.h. */
81ecdfbb 7717int i;
0639a6f6 7718_ACEOF
81ecdfbb
RW
7719if ac_fn_c_try_compile "$LINENO"; then :
7720 gold_cv_c_random_seed=yes
0639a6f6 7721else
81ecdfbb
RW
7722 gold_cv_c_random_seed=no
7723fi
7724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725CFLAGS="$save_CFLAGS"
7726fi
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
7728$as_echo "$gold_cv_c_random_seed" >&6; }
7729if test "$gold_cv_c_random_seed" = "yes"; then
7730 # In Makefile, '$@' will be expanded to be the name of the file
7731 # being built, providing a unique seed for each file.
7732 RANDOM_SEED_CFLAGS=-frandom-seed=\$@
0639a6f6 7733fi
1b77ea50 7734
81ecdfbb 7735
ebb300b2
CC
7736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
7737$as_echo_n "checking for glibc ifunc support... " >&6; }
d0ac1c44 7738if ${gold_cv_lib_glibc_ifunc+:} false; then :
7223e9ca
ILT
7739 $as_echo_n "(cached) " >&6
7740else
ebb300b2
CC
7741 save_LDFLAGS="$LDFLAGS"
7742LDFLAGS="$LDFLAGS -static"
7743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223e9ca
ILT
7744/* end confdefs.h. */
7745
7746#include <features.h>
7747#if !defined __GLIBC__
7748error
7749#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
7750error
7751#endif
ebb300b2
CC
7752void func (void) { }
7753void invoke (void);
7754__asm__(".type invoke, %gnu_indirect_function");
7755typedef void (*funcptr) (void);
7756funcptr dispatch (void) __asm__ ("invoke");
7757funcptr dispatch (void) { return &func; }
7758int
7759main ()
7760{
7761invoke();
7762 ;
7763 return 0;
7764}
7223e9ca
ILT
7765
7766_ACEOF
ebb300b2
CC
7767if ac_fn_c_try_link "$LINENO"; then :
7768
7769if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
7770 gold_cv_lib_glibc_ifunc=both
7223e9ca 7771else
ebb300b2 7772 gold_cv_lib_glibc_ifunc=dyn
7223e9ca 7773fi
ebb300b2
CC
7774else
7775 gold_cv_lib_glibc_ifunc=no
7776fi
7777rm -f core conftest.err conftest.$ac_objext \
7778 conftest$ac_exeext conftest.$ac_ext
7779LDFLAGS="$save_LDFLAGS"
7223e9ca 7780fi
ebb300b2
CC
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
7782$as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
7223e9ca 7783
ebb300b2 7784 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
7223e9ca
ILT
7785 IFUNC_TRUE=
7786 IFUNC_FALSE='#'
7787else
7788 IFUNC_TRUE='#'
7789 IFUNC_FALSE=
7790fi
7791
ebb300b2
CC
7792 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
7793 IFUNC_STATIC_TRUE=
7794 IFUNC_STATIC_FALSE='#'
7795else
7796 IFUNC_STATIC_TRUE='#'
7797 IFUNC_STATIC_FALSE=
7798fi
7799
7223e9ca 7800
81ecdfbb 7801
270c9937
JB
7802# Set the 'development' global.
7803. $srcdir/../bfd/development.sh
7804
c5da1932
VZ
7805# Set acp_cpp_for_build variable
7806ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
7807
9780e045 7808# Default set of GCC warnings to enable.
efc8d4f2 7809GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 7810GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
7811
7812# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
efc8d4f2
RW
7813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814/* end confdefs.h. */
7815__GNUC__
7816_ACEOF
7817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7818 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
7819
7820else
7821 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
7822fi
7823rm -f conftest*
7824
81ecdfbb 7825
9780e045
NC
7826# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828/* end confdefs.h. */
7829__GNUC__
7830_ACEOF
7831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7832 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
7833
7834else
7835 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
7836fi
7837rm -f conftest*
7838
7839
6757cf57
TS
7840# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
7841WARN_WRITE_STRINGS=""
7842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843/* end confdefs.h. */
7844__GNUC__
7845_ACEOF
7846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7847 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
7848
7849else
7850 WARN_WRITE_STRINGS="-Wwrite-strings"
7851fi
7852rm -f conftest*
7853
9780e045 7854
96fe4562 7855# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
7856
7857# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859/* end confdefs.h. */
7860__GNUC__
7861_ACEOF
7862if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7863 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
7864
7865else
7866 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
7867fi
7868rm -f conftest*
7869
7870
7871# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873/* end confdefs.h. */
7874__GNUC__
7875_ACEOF
7876if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7877 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
7878
7879else
7880 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
7881fi
7882rm -f conftest*
7883
7884
81ecdfbb
RW
7885# Check whether --enable-werror was given.
7886if test "${enable_werror+set}" = set; then :
7887 enableval=$enable_werror; case "${enableval}" in
7888 yes | y) ERROR_ON_WARNING="yes" ;;
7889 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 7890 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
81ecdfbb 7891 esac
0639a6f6 7892fi
1b77ea50 7893
81ecdfbb 7894
efc8d4f2 7895# Disable -Wformat by default when using gcc on mingw
81ecdfbb
RW
7896case "${host}" in
7897 *-*-mingw32*)
7898 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
7899 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 7900 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
81ecdfbb 7901 fi
0639a6f6 7902 ;;
81ecdfbb 7903 *) ;;
0639a6f6 7904esac
81ecdfbb 7905
270c9937
JB
7906# Enable -Werror by default when using gcc. Turn it off for releases.
7907if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
81ecdfbb 7908 ERROR_ON_WARNING=yes
0639a6f6 7909fi
0639a6f6 7910
81ecdfbb
RW
7911NO_WERROR=
7912if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 7913 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 7914 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
81ecdfbb 7915 NO_WERROR="-Wno-error"
0639a6f6 7916fi
1b77ea50 7917
81ecdfbb
RW
7918if test "${GCC}" = yes ; then
7919 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 7920 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
0639a6f6
ILT
7921fi
7922
81ecdfbb
RW
7923# Check whether --enable-build-warnings was given.
7924if test "${enable_build_warnings+set}" = set; then :
7925 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
7926 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
7927 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
81ecdfbb
RW
7928 no) if test "${GCC}" = yes ; then
7929 WARN_CFLAGS="-w"
c5da1932 7930 WARN_CFLAGS_FOR_BUILD="-w"
81ecdfbb
RW
7931 fi;;
7932 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
7933 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
7934 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
81ecdfbb 7935 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
7936 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
7937 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
7938 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
7939 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
81ecdfbb
RW
7940esac
7941fi
0639a6f6 7942
1b77ea50 7943
81ecdfbb
RW
7944if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
7945 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
0639a6f6 7946fi
1b77ea50 7947
1b77ea50 7948
1b77ea50 7949
0639a6f6 7950
1b77ea50 7951
6757cf57 7952
c5da1932 7953
2ea97941 7954WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
81ecdfbb
RW
7955
7956
dc87f620
ILT
7957
7958# Check whether --with-gold-ldflags was given.
7959if test "${with_gold_ldflags+set}" = set; then :
7960 withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
7961 GOLD_LDFLAGS=
7962 else
7963 GOLD_LDFLAGS=$withval
7964 fi
7965else
7966 GOLD_LDFLAGS=
7967fi
7968
7969
7970
7971
7972# Check whether --with-gold-ldadd was given.
7973if test "${with_gold_ldadd+set}" = set; then :
7974 withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
7975 GOLD_LDADD=
7976 else
7977 GOLD_LDADD=$withval
7978 fi
7979else
7980 GOLD_LDADD=
7981fi
7982
7983
7984
81ecdfbb
RW
7985LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
7986
7987
88597d34 7988for ac_header in sys/mman.h
81ecdfbb 7989do :
88597d34 7990 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
d0ac1c44 7991if test "x$ac_cv_header_sys_mman_h" = xyes; then :
0639a6f6 7992 cat >>confdefs.h <<_ACEOF
88597d34
ILT
7993#define HAVE_SYS_MMAN_H 1
7994_ACEOF
7995
7996fi
7997
7998done
7999
8000for ac_func in chsize mmap
8001do :
8002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8003ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 8004if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
88597d34
ILT
8005 cat >>confdefs.h <<_ACEOF
8006#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1b77ea50
ILT
8007_ACEOF
8008
0639a6f6 8009fi
0639a6f6 8010done
1b77ea50 8011
d0ac1c44
SM
8012ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
8013if test "x$ac_cv_func_pread" = xyes; then :
8014 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
0639a6f6 8015
81ecdfbb
RW
8016else
8017 case " $LIBOBJS " in
d0ac1c44
SM
8018 *" pread.$ac_objext "* ) ;;
8019 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
8020 ;;
8021esac
8022
8023fi
8024
8025ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
8026if test "x$ac_cv_func_ftruncate" = xyes; then :
8027 $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
8028
8029else
8030 case " $LIBOBJS " in
8031 *" ftruncate.$ac_objext "* ) ;;
8032 *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
8033 ;;
8034esac
8035
8036fi
8037
8038ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll"
8039if test "x$ac_cv_func_ffsll" = xyes; then :
8040 $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
8041
8042else
8043 case " $LIBOBJS " in
8044 *" ffsll.$ac_objext "* ) ;;
8045 *) LIBOBJS="$LIBOBJS ffsll.$ac_objext"
81ecdfbb
RW
8046 ;;
8047esac
0639a6f6 8048
81ecdfbb 8049fi
0639a6f6 8050
0639a6f6 8051
81ecdfbb 8052
88597d34
ILT
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
8054$as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
d0ac1c44 8055if ${gold_cv_lib_mremap_maymove+:} false; then :
88597d34
ILT
8056 $as_echo_n "(cached) " >&6
8057else
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059/* end confdefs.h. */
8060
8061
8062#include <sys/mman.h>
8063void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
8064
8065int
8066main ()
8067{
8068
8069 ;
8070 return 0;
8071}
8072_ACEOF
8073if ac_fn_c_try_link "$LINENO"; then :
8074 gold_cv_lib_mremap_maymove=yes
8075else
8076 gold_cv_lib_mremap_maymove=no
8077fi
8078rm -f core conftest.err conftest.$ac_objext \
8079 conftest$ac_exeext conftest.$ac_ext
8080fi
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
8082$as_echo "$gold_cv_lib_mremap_maymove" >&6; }
8083if test "$gold_cv_lib_mremap_maymove" = "yes"; then
8084
8085$as_echo "#define HAVE_MREMAP 1" >>confdefs.h
8086
8087else
8088 case " $LIBOBJS " in
8089 *" mremap.$ac_objext "* ) ;;
8090 *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
8091 ;;
8092esac
8093
8094fi
8095
81ecdfbb 8096# Link in zlib if we can. This allows us to write compressed sections.
ae2eea65 8097
918357b9 8098 # Use the system's zlib library.
39f3de7c
L
8099 zlibdir="-L\$(top_builddir)/../zlib"
8100 zlibinc="-I\$(top_srcdir)/../zlib"
ae2eea65 8101
918357b9
L
8102# Check whether --with-system-zlib was given.
8103if test "${with_system_zlib+set}" = set; then :
8104 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8105 zlibdir=
8106 zlibinc=
81ecdfbb 8107 fi
1b77ea50 8108
1b77ea50 8109fi
1b77ea50 8110
81ecdfbb 8111
1b77ea50 8112
81ecdfbb
RW
8113
8114
8115ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
d0ac1c44 8116if test "x$ac_cv_have_decl_basename" = xyes; then :
81ecdfbb
RW
8117 ac_have_decl=1
8118else
8119 ac_have_decl=0
3d857b98 8120fi
3d857b98
DK
8121
8122cat >>confdefs.h <<_ACEOF
81ecdfbb 8123#define HAVE_DECL_BASENAME $ac_have_decl
3d857b98 8124_ACEOF
81ecdfbb 8125ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
d0ac1c44 8126if test "x$ac_cv_have_decl_ffs" = xyes; then :
81ecdfbb 8127 ac_have_decl=1
3d857b98 8128else
81ecdfbb 8129 ac_have_decl=0
3d857b98 8130fi
3d857b98 8131
81ecdfbb
RW
8132cat >>confdefs.h <<_ACEOF
8133#define HAVE_DECL_FFS $ac_have_decl
3d857b98 8134_ACEOF
81ecdfbb 8135ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
d0ac1c44 8136if test "x$ac_cv_have_decl_asprintf" = xyes; then :
81ecdfbb 8137 ac_have_decl=1
3d857b98 8138else
81ecdfbb 8139 ac_have_decl=0
3d857b98 8140fi
3d857b98
DK
8141
8142cat >>confdefs.h <<_ACEOF
81ecdfbb 8143#define HAVE_DECL_ASPRINTF $ac_have_decl
3d857b98 8144_ACEOF
81ecdfbb 8145ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
d0ac1c44 8146if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
81ecdfbb 8147 ac_have_decl=1
3d857b98 8148else
81ecdfbb 8149 ac_have_decl=0
3d857b98 8150fi
3d857b98 8151
81ecdfbb
RW
8152cat >>confdefs.h <<_ACEOF
8153#define HAVE_DECL_VASPRINTF $ac_have_decl
3d857b98 8154_ACEOF
81ecdfbb 8155ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
d0ac1c44 8156if test "x$ac_cv_have_decl_snprintf" = xyes; then :
81ecdfbb 8157 ac_have_decl=1
3d857b98 8158else
81ecdfbb
RW
8159 ac_have_decl=0
8160fi
3d857b98 8161
81ecdfbb
RW
8162cat >>confdefs.h <<_ACEOF
8163#define HAVE_DECL_SNPRINTF $ac_have_decl
8164_ACEOF
8165ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
d0ac1c44 8166if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
81ecdfbb
RW
8167 ac_have_decl=1
8168else
8169 ac_have_decl=0
3d857b98 8170fi
81ecdfbb
RW
8171
8172cat >>confdefs.h <<_ACEOF
8173#define HAVE_DECL_VSNPRINTF $ac_have_decl
8174_ACEOF
8175ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
d0ac1c44 8176if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
81ecdfbb
RW
8177 ac_have_decl=1
8178else
8179 ac_have_decl=0
3d857b98 8180fi
3d857b98
DK
8181
8182cat >>confdefs.h <<_ACEOF
81ecdfbb 8183#define HAVE_DECL_STRVERSCMP $ac_have_decl
3d857b98
DK
8184_ACEOF
8185
8186
ae447ddd
CC
8187save_CFLAGS="$CFLAGS"
8188CFLAGS="$CFLAGS -Werror -gpubnames"
8189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190/* end confdefs.h. */
8191int i;
8192_ACEOF
8193if ac_fn_c_try_compile "$LINENO"; then :
8194 have_pubnames=yes
8195else
8196 have_pubnames=no
8197fi
8198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199CFLAGS="$save_CFLAGS"
8200 if test "$have_pubnames" = "yes"; then
8201 HAVE_PUBNAMES_TRUE=
8202 HAVE_PUBNAMES_FALSE='#'
8203else
8204 HAVE_PUBNAMES_TRUE='#'
8205 HAVE_PUBNAMES_FALSE=
8206fi
8207
8208
8209save_CFLAGS="$CFLAGS"
8210CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
8211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212/* end confdefs.h. */
8213int i;
8214_ACEOF
8215if ac_fn_c_try_compile "$LINENO"; then :
8216 have_no_use_linker_plugin=yes
8217else
8218 have_no_use_linker_plugin=no
8219fi
8220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221CFLAGS="$save_CFLAGS"
8222 if test "$have_no_use_linker_plugin" = "yes"; then
8223 HAVE_NO_USE_LINKER_PLUGIN_TRUE=
8224 HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
8225else
8226 HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
8227 HAVE_NO_USE_LINKER_PLUGIN_FALSE=
8228fi
8229
8230
81ecdfbb
RW
8231ac_ext=cpp
8232ac_cpp='$CXXCPP $CPPFLAGS'
8233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3d857b98
DK
8236
8237
81ecdfbb
RW
8238
8239ac_ext=cpp
8240ac_cpp='$CXXCPP $CPPFLAGS'
8241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8245$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8246if test -z "$CXXCPP"; then
d0ac1c44 8247 if ${ac_cv_prog_CXXCPP+:} false; then :
81ecdfbb 8248 $as_echo_n "(cached) " >&6
3d857b98 8249else
81ecdfbb
RW
8250 # Double quotes because CXXCPP needs to be expanded
8251 for CXXCPP in "$CXX -E" "/lib/cpp"
8252 do
8253 ac_preproc_ok=false
8254for ac_cxx_preproc_warn_flag in '' yes
8255do
8256 # Use a header file that comes with gcc, so configuring glibc
8257 # with a fresh cross-compiler works.
8258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8259 # <limits.h> exists even on freestanding compilers.
8260 # On the NeXT, cc -E runs the code through the compiler's parser,
8261 # not just through cpp. "Syntax error" is here to catch this case.
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d857b98 8263/* end confdefs.h. */
81ecdfbb
RW
8264#ifdef __STDC__
8265# include <limits.h>
8266#else
8267# include <assert.h>
3d857b98 8268#endif
81ecdfbb 8269 Syntax error
3d857b98 8270_ACEOF
81ecdfbb 8271if ac_fn_cxx_try_cpp "$LINENO"; then :
3d857b98 8272
81ecdfbb
RW
8273else
8274 # Broken: fails on valid input.
8275continue
3d857b98 8276fi
d0ac1c44 8277rm -f conftest.err conftest.i conftest.$ac_ext
3d857b98 8278
81ecdfbb
RW
8279 # OK, works on sane cases. Now check whether nonexistent headers
8280 # can be detected and how.
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282/* end confdefs.h. */
8283#include <ac_nonexistent.h>
3d857b98 8284_ACEOF
81ecdfbb
RW
8285if ac_fn_cxx_try_cpp "$LINENO"; then :
8286 # Broken: success on invalid input.
8287continue
3d857b98 8288else
81ecdfbb
RW
8289 # Passes both tests.
8290ac_preproc_ok=:
8291break
8292fi
d0ac1c44 8293rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
8294
8295done
8296# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 8297rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
8298if $ac_preproc_ok; then :
8299 break
8300fi
3d857b98 8301
81ecdfbb
RW
8302 done
8303 ac_cv_prog_CXXCPP=$CXXCPP
3d857b98
DK
8304
8305fi
81ecdfbb 8306 CXXCPP=$ac_cv_prog_CXXCPP
3d857b98 8307else
81ecdfbb
RW
8308 ac_cv_prog_CXXCPP=$CXXCPP
8309fi
8310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8311$as_echo "$CXXCPP" >&6; }
8312ac_preproc_ok=false
8313for ac_cxx_preproc_warn_flag in '' yes
8314do
8315 # Use a header file that comes with gcc, so configuring glibc
8316 # with a fresh cross-compiler works.
8317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8318 # <limits.h> exists even on freestanding compilers.
8319 # On the NeXT, cc -E runs the code through the compiler's parser,
8320 # not just through cpp. "Syntax error" is here to catch this case.
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d857b98 8322/* end confdefs.h. */
81ecdfbb
RW
8323#ifdef __STDC__
8324# include <limits.h>
8325#else
8326# include <assert.h>
3d857b98 8327#endif
81ecdfbb 8328 Syntax error
3d857b98 8329_ACEOF
81ecdfbb 8330if ac_fn_cxx_try_cpp "$LINENO"; then :
3d857b98 8331
81ecdfbb
RW
8332else
8333 # Broken: fails on valid input.
8334continue
3d857b98 8335fi
d0ac1c44 8336rm -f conftest.err conftest.i conftest.$ac_ext
3d857b98 8337
81ecdfbb
RW
8338 # OK, works on sane cases. Now check whether nonexistent headers
8339 # can be detected and how.
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341/* end confdefs.h. */
8342#include <ac_nonexistent.h>
3d857b98 8343_ACEOF
81ecdfbb
RW
8344if ac_fn_cxx_try_cpp "$LINENO"; then :
8345 # Broken: success on invalid input.
8346continue
8347else
8348 # Passes both tests.
8349ac_preproc_ok=:
8350break
8351fi
d0ac1c44 8352rm -f conftest.err conftest.i conftest.$ac_ext
3d857b98 8353
81ecdfbb
RW
8354done
8355# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 8356rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 8357if $ac_preproc_ok; then :
3d857b98
DK
8358
8359else
81ecdfbb
RW
8360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
8362as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
8363See \`config.log' for more details" "$LINENO" 5; }
81ecdfbb
RW
8364fi
8365
8366ac_ext=cpp
8367ac_cpp='$CXXCPP $CPPFLAGS'
8368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8371
8372
8356f2d0
CC
8373for ac_header in unordered_set unordered_map
8374do :
8375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8376ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 8377if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8356f2d0
CC
8378 cat >>confdefs.h <<_ACEOF
8379#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8380_ACEOF
8381
8382fi
8383
8384done
8385
81ecdfbb
RW
8386for ac_header in tr1/unordered_set tr1/unordered_map
8387do :
8388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8389ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 8390if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3d857b98 8391 cat >>confdefs.h <<_ACEOF
81ecdfbb 8392#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3d857b98
DK
8393_ACEOF
8394
3d857b98 8395fi
3d857b98 8396
81ecdfbb
RW
8397done
8398
8399for ac_header in ext/hash_map ext/hash_set
8400do :
8401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8402ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 8403if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
8404 cat >>confdefs.h <<_ACEOF
8405#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8406_ACEOF
3d857b98 8407
3d857b98 8408fi
3d857b98 8409
81ecdfbb
RW
8410done
8411
8412for ac_header in byteswap.h
8413do :
8414 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
d0ac1c44 8415if test "x$ac_cv_header_byteswap_h" = xyes; then :
81ecdfbb
RW
8416 cat >>confdefs.h <<_ACEOF
8417#define HAVE_BYTESWAP_H 1
3d857b98
DK
8418_ACEOF
8419
81ecdfbb 8420fi
3d857b98 8421
81ecdfbb
RW
8422done
8423
0bf402d5
ILT
8424
8425for ac_header in windows.h
8426do :
8427 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
d0ac1c44 8428if test "x$ac_cv_header_windows_h" = xyes; then :
0bf402d5
ILT
8429 cat >>confdefs.h <<_ACEOF
8430#define HAVE_WINDOWS_H 1
8431_ACEOF
8432
8433fi
8434
8435done
8436
8437for ac_header in dlfcn.h
8438do :
8439 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
d0ac1c44 8440if test "x$ac_cv_header_dlfcn_h" = xyes; then :
0bf402d5
ILT
8441 cat >>confdefs.h <<_ACEOF
8442#define HAVE_DLFCN_H 1
8443_ACEOF
6632e8cc 8444
0bf402d5
ILT
8445fi
8446
8447done
8448
6632e8cc
CC
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8450$as_echo_n "checking for library containing dlopen... " >&6; }
d0ac1c44 8451if ${ac_cv_search_dlopen+:} false; then :
6632e8cc
CC
8452 $as_echo_n "(cached) " >&6
8453else
8454 ac_func_search_save_LIBS=$LIBS
8455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456/* end confdefs.h. */
8457
8458/* Override any GCC internal prototype to avoid an error.
8459 Use char because int might match the return type of a GCC
8460 builtin and then its argument prototype would still apply. */
8461#ifdef __cplusplus
8462extern "C"
8463#endif
8464char dlopen ();
8465int
8466main ()
8467{
8468return dlopen ();
8469 ;
8470 return 0;
8471}
8472_ACEOF
8473for ac_lib in '' dl dld; do
8474 if test -z "$ac_lib"; then
8475 ac_res="none required"
8476 else
8477 ac_res=-l$ac_lib
8478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8479 fi
8480 if ac_fn_cxx_try_link "$LINENO"; then :
8481 ac_cv_search_dlopen=$ac_res
8482fi
8483rm -f core conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext
d0ac1c44 8485 if ${ac_cv_search_dlopen+:} false; then :
6632e8cc
CC
8486 break
8487fi
8488done
d0ac1c44 8489if ${ac_cv_search_dlopen+:} false; then :
6632e8cc
CC
8490
8491else
8492 ac_cv_search_dlopen=no
8493fi
8494rm conftest.$ac_ext
8495LIBS=$ac_func_search_save_LIBS
8496fi
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8498$as_echo "$ac_cv_search_dlopen" >&6; }
8499ac_res=$ac_cv_search_dlopen
8500if test "$ac_res" != no; then :
8501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8502
8503fi
8504
8505case "$ac_cv_search_dlopen" in
8506 no*) DLOPEN_LIBS="";;
8507 *) DLOPEN_LIBS="$ac_cv_search_dlopen";;
8508esac
0bf402d5
ILT
8509
8510
7c0640fa 8511for ac_func in mallinfo posix_fallocate fallocate readv sysconf times
81ecdfbb
RW
8512do :
8513 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8514ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 8515if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3d857b98 8516 cat >>confdefs.h <<_ACEOF
81ecdfbb 8517#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3d857b98
DK
8518_ACEOF
8519
3d857b98 8520fi
81ecdfbb
RW
8521done
8522
8523ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
d0ac1c44 8524if test "x$ac_cv_have_decl_basename" = xyes; then :
81ecdfbb 8525 ac_have_decl=1
3d857b98 8526else
81ecdfbb
RW
8527 ac_have_decl=0
8528fi
3d857b98 8529
81ecdfbb
RW
8530cat >>confdefs.h <<_ACEOF
8531#define HAVE_DECL_BASENAME $ac_have_decl
3d857b98 8532_ACEOF
81ecdfbb 8533ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
d0ac1c44 8534if test "x$ac_cv_have_decl_ffs" = xyes; then :
81ecdfbb 8535 ac_have_decl=1
3d857b98 8536else
81ecdfbb 8537 ac_have_decl=0
3d857b98 8538fi
3d857b98
DK
8539
8540cat >>confdefs.h <<_ACEOF
81ecdfbb 8541#define HAVE_DECL_FFS $ac_have_decl
3d857b98 8542_ACEOF
81ecdfbb 8543ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
d0ac1c44 8544if test "x$ac_cv_have_decl_asprintf" = xyes; then :
81ecdfbb 8545 ac_have_decl=1
3d857b98 8546else
81ecdfbb 8547 ac_have_decl=0
3d857b98 8548fi
3d857b98 8549
81ecdfbb
RW
8550cat >>confdefs.h <<_ACEOF
8551#define HAVE_DECL_ASPRINTF $ac_have_decl
3d857b98 8552_ACEOF
81ecdfbb 8553ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
d0ac1c44 8554if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
81ecdfbb 8555 ac_have_decl=1
3d857b98 8556else
81ecdfbb 8557 ac_have_decl=0
3d857b98 8558fi
3d857b98
DK
8559
8560cat >>confdefs.h <<_ACEOF
81ecdfbb 8561#define HAVE_DECL_VASPRINTF $ac_have_decl
3d857b98 8562_ACEOF
81ecdfbb 8563ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
d0ac1c44 8564if test "x$ac_cv_have_decl_snprintf" = xyes; then :
81ecdfbb 8565 ac_have_decl=1
3d857b98 8566else
81ecdfbb 8567 ac_have_decl=0
3d857b98 8568fi
3d857b98 8569
81ecdfbb
RW
8570cat >>confdefs.h <<_ACEOF
8571#define HAVE_DECL_SNPRINTF $ac_have_decl
3d857b98 8572_ACEOF
81ecdfbb 8573ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
d0ac1c44 8574if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
81ecdfbb 8575 ac_have_decl=1
3d857b98 8576else
81ecdfbb 8577 ac_have_decl=0
3d857b98 8578fi
3d857b98
DK
8579
8580cat >>confdefs.h <<_ACEOF
81ecdfbb 8581#define HAVE_DECL_VSNPRINTF $ac_have_decl
3d857b98 8582_ACEOF
81ecdfbb 8583ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
d0ac1c44 8584if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
81ecdfbb 8585 ac_have_decl=1
3d857b98 8586else
81ecdfbb
RW
8587 ac_have_decl=0
8588fi
3d857b98 8589
81ecdfbb
RW
8590cat >>confdefs.h <<_ACEOF
8591#define HAVE_DECL_STRVERSCMP $ac_have_decl
8592_ACEOF
8593ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
d0ac1c44 8594if test "x$ac_cv_have_decl_strndup" = xyes; then :
81ecdfbb
RW
8595 ac_have_decl=1
8596else
8597 ac_have_decl=0
8598fi
3d857b98 8599
81ecdfbb
RW
8600cat >>confdefs.h <<_ACEOF
8601#define HAVE_DECL_STRNDUP $ac_have_decl
8602_ACEOF
8603ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
d0ac1c44 8604if test "x$ac_cv_have_decl_memmem" = xyes; then :
81ecdfbb
RW
8605 ac_have_decl=1
8606else
8607 ac_have_decl=0
3d857b98
DK
8608fi
8609
81ecdfbb
RW
8610cat >>confdefs.h <<_ACEOF
8611#define HAVE_DECL_MEMMEM $ac_have_decl
8612_ACEOF
3d857b98 8613
e44fcf3b 8614
40fde488
CD
8615# Use of ::std::tr1::unordered_map::rehash causes undefined symbols
8616# at link time with some versions of GCC.
81ecdfbb
RW
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
8618$as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
d0ac1c44 8619if ${gold_cv_unordered_map_rehash+:} false; then :
81ecdfbb 8620 $as_echo_n "(cached) " >&6
40fde488 8621else
81ecdfbb 8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40fde488
CD
8623/* end confdefs.h. */
8624
8625#include <tr1/unordered_map>
8626void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
8627
8628int
8629main ()
8630{
8631
8632 ;
8633 return 0;
8634}
8635_ACEOF
81ecdfbb 8636if ac_fn_cxx_try_link "$LINENO"; then :
40fde488
CD
8637 gold_cv_unordered_map_rehash=yes
8638else
81ecdfbb 8639 gold_cv_unordered_map_rehash=no
40fde488 8640fi
81ecdfbb
RW
8641rm -f core conftest.err conftest.$ac_objext \
8642 conftest$ac_exeext conftest.$ac_ext
40fde488 8643fi
81ecdfbb
RW
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
8645$as_echo "$gold_cv_unordered_map_rehash" >&6; }
40fde488
CD
8646if test "$gold_cv_unordered_map_rehash" = "yes"; then
8647
81ecdfbb 8648$as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
40fde488
CD
8649
8650fi
8651
81c82a68
ILT
8652# Use of tr1/unordered_map with off_t as a key is not supported on GCC
8653# 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
8654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
8655$as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
d0ac1c44 8656if ${gold_cv_hash_off_t+:} false; then :
81c82a68
ILT
8657 $as_echo_n "(cached) " >&6
8658else
8659 CXXFLAGS_hold=$CXXFLAGS
8660CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
8661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662/* end confdefs.h. */
8663
8664#include <sys/types.h>
8665#include <tr1/unordered_map>
8666std::tr1::hash<off_t> h;
8667
8668_ACEOF
8669if ac_fn_cxx_try_compile "$LINENO"; then :
8670 gold_cv_hash_off_t=yes
8671else
8672 gold_cv_hash_off_t=no
8673fi
8674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26e4ef59 8675CXXFLAGS=$CXXFLAGS_hold
81c82a68
ILT
8676fi
8677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
8678$as_echo "$gold_cv_hash_off_t" >&6; }
8679if test "$gold_cv_hash_off_t" = "yes"; then
8680
8681$as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
8682
8683fi
8684
04bf7072
ILT
8685# gcc 4.3.0 doesn't recognize the printf attribute on a template
8686# function. Check for that. This is gcc bug 35546. This test can
8687# probably be removed after the bug has been fixed for a while.
81ecdfbb
RW
8688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
8689$as_echo_n "checking whether we can use attributes with template functions... " >&6; }
d0ac1c44 8690if ${gold_cv_template_attribute+:} false; then :
81ecdfbb 8691 $as_echo_n "(cached) " >&6
04bf7072 8692else
81ecdfbb
RW
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694/* end confdefs.h. */
04bf7072
ILT
8695
8696template<typename T> extern void foo(const char*, ...)
8697 __attribute__ ((__format__ (__printf__, 1, 2)));
8698template<typename T> void foo(const char* format, ...) {}
8699void bar() { foo<int>("%s\n", "foo"); }
8700
8701_ACEOF
81ecdfbb 8702if ac_fn_cxx_try_compile "$LINENO"; then :
04bf7072
ILT
8703 gold_cv_template_attribute=yes
8704else
81ecdfbb 8705 gold_cv_template_attribute=no
04bf7072 8706fi
81ecdfbb 8707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
04bf7072 8708fi
81ecdfbb
RW
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
8710$as_echo "$gold_cv_template_attribute" >&6; }
04bf7072
ILT
8711if test "$gold_cv_template_attribute" = "yes"; then
8712
81ecdfbb 8713$as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
04bf7072
ILT
8714
8715fi
8716
5d329b7d
ILT
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
8718$as_echo_n "checking for struct stat::st_mtim.... " >&6; }
d0ac1c44 8719if ${gold_cv_stat_st_mtim+:} false; then :
5d329b7d
ILT
8720 $as_echo_n "(cached) " >&6
8721else
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723/* end confdefs.h. */
8724
8725#include <sys/stat.h>
8726long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
8727
8728int
8729main ()
8730{
8731
8732 ;
8733 return 0;
8734}
8735_ACEOF
8736if ac_fn_cxx_try_compile "$LINENO"; then :
8737 gold_cv_stat_st_mtim=yes
8738else
8739 gold_cv_stat_st_mtim=no
8740fi
8741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742fi
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
8744$as_echo "$gold_cv_stat_st_mtim" >&6; }
8745if test "$gold_cv_stat_st_mtim" = "yes"; then
8746
8747$as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
8748
8749fi
8750
54dc6425
ILT
8751ac_ext=c
8752ac_cpp='$CPP $CPPFLAGS'
8753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8755ac_compiler_gnu=$ac_cv_c_compiler_gnu
8756
8757
58797674
RM
8758for ac_header in locale.h
8759do :
8760 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
d0ac1c44 8761if test "x$ac_cv_header_locale_h" = xyes; then :
58797674
RM
8762 cat >>confdefs.h <<_ACEOF
8763#define HAVE_LOCALE_H 1
8764_ACEOF
8765
8766fi
8767
8768done
8769
44350750
NC
8770for ac_func in setlocale
8771do :
8772 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
d0ac1c44 8773if test "x$ac_cv_func_setlocale" = xyes; then :
44350750
NC
8774 cat >>confdefs.h <<_ACEOF
8775#define HAVE_SETLOCALE 1
8776_ACEOF
8777
8778fi
8779done
8780
8781
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8783$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 8784if ${am_cv_val_LC_MESSAGES+:} false; then :
44350750
NC
8785 $as_echo_n "(cached) " >&6
8786else
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788/* end confdefs.h. */
8789#include <locale.h>
8790int
8791main ()
8792{
8793return LC_MESSAGES
8794 ;
8795 return 0;
8796}
8797_ACEOF
8798if ac_fn_c_try_link "$LINENO"; then :
8799 am_cv_val_LC_MESSAGES=yes
8800else
8801 am_cv_val_LC_MESSAGES=no
8802fi
8803rm -f core conftest.err conftest.$ac_objext \
8804 conftest$ac_exeext conftest.$ac_ext
8805fi
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8807$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8808 if test $am_cv_val_LC_MESSAGES = yes; then
8809
8810$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8811
8812 fi
8813
8814
81ecdfbb
RW
8815
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
8817$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
8818 # Check whether --enable-maintainer-mode was given.
8819if test "${enable_maintainer_mode+set}" = set; then :
8820 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
bae7f79e
ILT
8821else
8822 USE_MAINTAINER_MODE=no
81ecdfbb 8823fi
bae7f79e 8824
81ecdfbb
RW
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
8826$as_echo "$USE_MAINTAINER_MODE" >&6; }
8827 if test $USE_MAINTAINER_MODE = yes; then
bae7f79e
ILT
8828 MAINTAINER_MODE_TRUE=
8829 MAINTAINER_MODE_FALSE='#'
8830else
8831 MAINTAINER_MODE_TRUE='#'
8832 MAINTAINER_MODE_FALSE=
8833fi
8834
8835 MAINT=$MAINTAINER_MODE_TRUE
8836
8837
8838
81ecdfbb
RW
8839ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
8840
bae7f79e
ILT
8841cat >confcache <<\_ACEOF
8842# This file is a shell script that caches the results of configure
8843# tests run on this system so they can be shared between configure
8844# scripts and configure runs, see configure's option --config-cache.
8845# It is not useful on other systems. If it contains results you don't
8846# want to keep, you may remove or edit it.
8847#
8848# config.status only pays attention to the cache file if you give it
8849# the --recheck option to rerun configure.
8850#
8851# `ac_cv_env_foo' variables (set or unset) will be overridden when
8852# loading this file, other *unset* `ac_cv_foo' will be assigned the
8853# following values.
8854
8855_ACEOF
8856
8857# The following way of writing the cache mishandles newlines in values,
8858# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 8859# So, we kill variables containing newlines.
bae7f79e
ILT
8860# Ultrix sh set writes to stderr and can't be redirected directly,
8861# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
8862(
8863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8864 eval ac_val=\$$ac_var
8865 case $ac_val in #(
8866 *${as_nl}*)
8867 case $ac_var in #(
8868 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8869$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8870 esac
8871 case $ac_var in #(
8872 _ | IFS | as_nl) ;; #(
8873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8874 *) { eval $ac_var=; unset $ac_var;} ;;
8875 esac ;;
8876 esac
8877 done
8878
bae7f79e 8879 (set) 2>&1 |
81ecdfbb
RW
8880 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8881 *${as_nl}ac_space=\ *)
8882 # `set' does not quote correctly, so add quotes: double-quote
8883 # substitution turns \\\\ into \\, and sed turns \\ into \.
bae7f79e
ILT
8884 sed -n \
8885 "s/'/'\\\\''/g;
8886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 8887 ;; #(
bae7f79e
ILT
8888 *)
8889 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 8890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bae7f79e 8891 ;;
81ecdfbb
RW
8892 esac |
8893 sort
8894) |
bae7f79e 8895 sed '
81ecdfbb 8896 /^ac_cv_env_/b end
bae7f79e 8897 t clear
81ecdfbb 8898 :clear
bae7f79e
ILT
8899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8900 t end
81ecdfbb
RW
8901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8902 :end' >>confcache
8903if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8904 if test -w "$cache_file"; then
d0ac1c44 8905 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8907$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
8908 if test ! -f "$cache_file" || test -h "$cache_file"; then
8909 cat confcache >"$cache_file"
8910 else
8911 case $cache_file in #(
8912 */* | ?:*)
8913 mv -f confcache "$cache_file"$$ &&
8914 mv -f "$cache_file"$$ "$cache_file" ;; #(
8915 *)
8916 mv -f confcache "$cache_file" ;;
8917 esac
8918 fi
8919 fi
bae7f79e 8920 else
81ecdfbb
RW
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8922$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
bae7f79e
ILT
8923 fi
8924fi
8925rm -f confcache
8926
8927test "x$prefix" = xNONE && prefix=$ac_default_prefix
8928# Let make expand exec_prefix.
8929test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8930
bae7f79e
ILT
8931DEFS=-DHAVE_CONFIG_H
8932
8933ac_libobjs=
8934ac_ltlibobjs=
8935for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8936 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
8937 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8938 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8939 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8940 # will be set to the directory where LIBOBJS objects are built.
8941 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8942 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
bae7f79e
ILT
8943done
8944LIBOBJS=$ac_libobjs
8945
8946LTLIBOBJS=$ac_ltlibobjs
8947
8948
d0ac1c44
SM
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8950$as_echo_n "checking that generated files are newer than configure... " >&6; }
8951 if test -n "$am_sleep_pid"; then
8952 # Hide warnings about reused PIDs.
8953 wait $am_sleep_pid 2>/dev/null
8954 fi
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
8956$as_echo "done" >&6; }
81ecdfbb
RW
8957 if test -n "$EXEEXT"; then
8958 am__EXEEXT_TRUE=
8959 am__EXEEXT_FALSE='#'
8960else
8961 am__EXEEXT_TRUE='#'
8962 am__EXEEXT_FALSE=
8963fi
8964
24538276 8965if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
d0ac1c44 8966 as_fn_error $? "conditional \"AMDEP\" was never defined.
24538276
CC
8967Usually this means the macro was only invoked conditionally." "$LINENO" 5
8968fi
8969if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
d0ac1c44 8970 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24538276
CC
8971Usually this means the macro was only invoked conditionally." "$LINENO" 5
8972fi
fe9a4c12 8973if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
d0ac1c44 8974 as_fn_error $? "conditional \"THREADS\" was never defined.
81ecdfbb 8975Usually this means the macro was only invoked conditionally." "$LINENO" 5
fe9a4c12 8976fi
89fc3421 8977if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 8978 as_fn_error $? "conditional \"PLUGINS\" was never defined.
81ecdfbb 8979Usually this means the macro was only invoked conditionally." "$LINENO" 5
89fc3421 8980fi
053a4d68 8981if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
d0ac1c44 8982 as_fn_error $? "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
053a4d68
JY
8983Usually this means the macro was only invoked conditionally." "$LINENO" 5
8984fi
364c7fa5 8985if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
d0ac1c44 8986 as_fn_error $? "conditional \"DEFAULT_TARGET_ARM\" was never defined.
364c7fa5
ILT
8987Usually this means the macro was only invoked conditionally." "$LINENO" 5
8988fi
8989if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
d0ac1c44 8990 as_fn_error $? "conditional \"DEFAULT_TARGET_I386\" was never defined.
364c7fa5
ILT
8991Usually this means the macro was only invoked conditionally." "$LINENO" 5
8992fi
8993if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
d0ac1c44 8994 as_fn_error $? "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
364c7fa5
ILT
8995Usually this means the macro was only invoked conditionally." "$LINENO" 5
8996fi
8997if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
d0ac1c44 8998 as_fn_error $? "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
364c7fa5
ILT
8999Usually this means the macro was only invoked conditionally." "$LINENO" 5
9000fi
e79a4bad 9001if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
d0ac1c44 9002 as_fn_error $? "conditional \"DEFAULT_TARGET_S390\" was never defined.
e79a4bad
MK
9003Usually this means the macro was only invoked conditionally." "$LINENO" 5
9004fi
364c7fa5 9005if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
d0ac1c44 9006 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
364c7fa5
ILT
9007Usually this means the macro was only invoked conditionally." "$LINENO" 5
9008fi
4fc1b9d4 9009if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
d0ac1c44 9010 as_fn_error $? "conditional \"DEFAULT_TARGET_X32\" was never defined.
4fc1b9d4
L
9011Usually this means the macro was only invoked conditionally." "$LINENO" 5
9012fi
ad961eab 9013if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
d0ac1c44 9014 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
ad961eab
L
9015Usually this means the macro was only invoked conditionally." "$LINENO" 5
9016fi
0a6f1bf2 9017if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
d0ac1c44 9018 as_fn_error $? "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
0a6f1bf2
AM
9019Usually this means the macro was only invoked conditionally." "$LINENO" 5
9020fi
9810d34d 9021if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
d0ac1c44 9022 as_fn_error $? "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
9810d34d
SS
9023Usually this means the macro was only invoked conditionally." "$LINENO" 5
9024fi
bae7f79e 9025if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
d0ac1c44 9026 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
81ecdfbb 9027Usually this means the macro was only invoked conditionally." "$LINENO" 5
bae7f79e
ILT
9028fi
9029if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
d0ac1c44 9030 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
81ecdfbb 9031Usually this means the macro was only invoked conditionally." "$LINENO" 5
bae7f79e 9032fi
81ecdfbb 9033
537b5f51 9034if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
d0ac1c44 9035 as_fn_error $? "conditional \"NATIVE_LINKER\" was never defined.
81ecdfbb 9036Usually this means the macro was only invoked conditionally." "$LINENO" 5
537b5f51
ILT
9037fi
9038if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
d0ac1c44 9039 as_fn_error $? "conditional \"GCC\" was never defined.
81ecdfbb 9040Usually this means the macro was only invoked conditionally." "$LINENO" 5
537b5f51 9041fi
eb373049 9042if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
d0ac1c44 9043 as_fn_error $? "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
eb373049 9044Usually this means the macro was only invoked conditionally." "$LINENO" 5
328c7c2f
ILT
9045fi
9046if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
d0ac1c44 9047 as_fn_error $? "conditional \"HAVE_STATIC\" was never defined.
328c7c2f 9048Usually this means the macro was only invoked conditionally." "$LINENO" 5
eb373049 9049fi
63402fe4 9050if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
d0ac1c44 9051 as_fn_error $? "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
81ecdfbb 9052Usually this means the macro was only invoked conditionally." "$LINENO" 5
63402fe4 9053fi
8a5e3e08 9054if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
d0ac1c44 9055 as_fn_error $? "conditional \"MCMODEL_MEDIUM\" was never defined.
81ecdfbb 9056Usually this means the macro was only invoked conditionally." "$LINENO" 5
8a5e3e08 9057fi
6eee141f 9058if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
d0ac1c44 9059 as_fn_error $? "conditional \"TLS\" was never defined.
81ecdfbb 9060Usually this means the macro was only invoked conditionally." "$LINENO" 5
6eee141f 9061fi
097ec620 9062if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
d0ac1c44 9063 as_fn_error $? "conditional \"STATIC_TLS\" was never defined.
81ecdfbb 9064Usually this means the macro was only invoked conditionally." "$LINENO" 5
097ec620 9065fi
155a0dd7 9066if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
d0ac1c44 9067 as_fn_error $? "conditional \"OMP_SUPPORT\" was never defined.
81ecdfbb 9068Usually this means the macro was only invoked conditionally." "$LINENO" 5
155a0dd7 9069fi
c2b45e22 9070if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
d0ac1c44 9071 as_fn_error $? "conditional \"TLS_GNU2_DIALECT\" was never defined.
81ecdfbb 9072Usually this means the macro was only invoked conditionally." "$LINENO" 5
c2b45e22
CC
9073fi
9074if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
d0ac1c44 9075 as_fn_error $? "conditional \"TLS_DESCRIPTORS\" was never defined.
81ecdfbb 9076Usually this means the macro was only invoked conditionally." "$LINENO" 5
c2b45e22 9077fi
7223e9ca 9078if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
d0ac1c44 9079 as_fn_error $? "conditional \"IFUNC\" was never defined.
7223e9ca
ILT
9080Usually this means the macro was only invoked conditionally." "$LINENO" 5
9081fi
ebb300b2 9082if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
d0ac1c44 9083 as_fn_error $? "conditional \"IFUNC_STATIC\" was never defined.
ebb300b2
CC
9084Usually this means the macro was only invoked conditionally." "$LINENO" 5
9085fi
f1415016 9086if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
d0ac1c44 9087 as_fn_error $? "conditional \"HAVE_PUBNAMES\" was never defined.
f1415016
CC
9088Usually this means the macro was only invoked conditionally." "$LINENO" 5
9089fi
ae447ddd 9090if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
d0ac1c44 9091 as_fn_error $? "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
ae447ddd
CC
9092Usually this means the macro was only invoked conditionally." "$LINENO" 5
9093fi
bae7f79e 9094if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 9095 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 9096Usually this means the macro was only invoked conditionally." "$LINENO" 5
bae7f79e
ILT
9097fi
9098
d0ac1c44 9099: "${CONFIG_STATUS=./config.status}"
81ecdfbb 9100ac_write_fail=0
bae7f79e
ILT
9101ac_clean_files_save=$ac_clean_files
9102ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
9103{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9104$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9105as_write_fail=0
9106cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
bae7f79e
ILT
9107#! $SHELL
9108# Generated by $as_me.
9109# Run this file to recreate the current configuration.
9110# Compiler output produced by configure, useful for debugging
9111# configure, is in config.log if it exists.
9112
9113debug=false
9114ac_cs_recheck=false
9115ac_cs_silent=false
bae7f79e 9116
81ecdfbb
RW
9117SHELL=\${CONFIG_SHELL-$SHELL}
9118export SHELL
9119_ASEOF
9120cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9121## -------------------- ##
9122## M4sh Initialization. ##
9123## -------------------- ##
bae7f79e 9124
81ecdfbb
RW
9125# Be more Bourne compatible
9126DUALCASE=1; export DUALCASE # for MKS sh
9127if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bae7f79e
ILT
9128 emulate sh
9129 NULLCMD=:
81ecdfbb 9130 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bae7f79e
ILT
9131 # is contrary to our usage. Disable this feature.
9132 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
9133 setopt NO_GLOB_SUBST
9134else
9135 case `(set -o) 2>/dev/null` in #(
9136 *posix*) :
9137 set -o posix ;; #(
9138 *) :
9139 ;;
9140esac
bae7f79e 9141fi
bae7f79e 9142
81ecdfbb
RW
9143
9144as_nl='
9145'
9146export as_nl
9147# Printing a long string crashes Solaris 7 /usr/bin/printf.
9148as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9149as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9150as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9151# Prefer a ksh shell builtin over an external printf program on Solaris,
9152# but without wasting forks for bash or zsh.
9153if test -z "$BASH_VERSION$ZSH_VERSION" \
9154 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9155 as_echo='print -r --'
9156 as_echo_n='print -rn --'
9157elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9158 as_echo='printf %s\n'
9159 as_echo_n='printf %s'
9160else
9161 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9162 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9163 as_echo_n='/usr/ucb/echo -n'
9164 else
9165 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9166 as_echo_n_body='eval
9167 arg=$1;
9168 case $arg in #(
9169 *"$as_nl"*)
9170 expr "X$arg" : "X\\(.*\\)$as_nl";
9171 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9172 esac;
9173 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9174 '
9175 export as_echo_n_body
9176 as_echo_n='sh -c $as_echo_n_body as_echo'
9177 fi
9178 export as_echo_body
9179 as_echo='sh -c $as_echo_body as_echo'
9180fi
9181
9182# The user is always right.
9183if test "${PATH_SEPARATOR+set}" != set; then
9184 PATH_SEPARATOR=:
9185 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9186 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9187 PATH_SEPARATOR=';'
9188 }
bae7f79e
ILT
9189fi
9190
9191
81ecdfbb
RW
9192# IFS
9193# We need space, tab and new line, in precisely that order. Quoting is
9194# there to prevent editors from complaining about space-tab.
9195# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9196# splitting by setting IFS to empty value.)
9197IFS=" "" $as_nl"
9198
9199# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 9200as_myself=
81ecdfbb
RW
9201case $0 in #((
9202 *[\\/]* ) as_myself=$0 ;;
9203 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204for as_dir in $PATH
9205do
9206 IFS=$as_save_IFS
9207 test -z "$as_dir" && as_dir=.
9208 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9209 done
9210IFS=$as_save_IFS
9211
9212 ;;
9213esac
9214# We did not find ourselves, most probably we were run as `sh COMMAND'
9215# in which case we are not to be found in the path.
9216if test "x$as_myself" = x; then
9217 as_myself=$0
9218fi
9219if test ! -f "$as_myself"; then
9220 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9221 exit 1
9222fi
9223
9224# Unset variables that we do not need and which cause bugs (e.g. in
9225# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9226# suppresses any "Segmentation fault" message there. '((' could
9227# trigger a bug in pdksh 5.2.14.
9228for as_var in BASH_ENV ENV MAIL MAILPATH
9229do eval test x\${$as_var+set} = xset \
9230 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9231done
bae7f79e
ILT
9232PS1='$ '
9233PS2='> '
9234PS4='+ '
9235
9236# NLS nuisances.
81ecdfbb
RW
9237LC_ALL=C
9238export LC_ALL
9239LANGUAGE=C
9240export LANGUAGE
9241
9242# CDPATH.
9243(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9244
9245
d0ac1c44
SM
9246# as_fn_error STATUS ERROR [LINENO LOG_FD]
9247# ----------------------------------------
81ecdfbb
RW
9248# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9249# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 9250# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
9251as_fn_error ()
9252{
d0ac1c44
SM
9253 as_status=$1; test $as_status -eq 0 && as_status=1
9254 if test "$4"; then
9255 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9256 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
bae7f79e 9257 fi
d0ac1c44 9258 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
9259 as_fn_exit $as_status
9260} # as_fn_error
9261
9262
9263# as_fn_set_status STATUS
9264# -----------------------
9265# Set $? to STATUS, without forking.
9266as_fn_set_status ()
9267{
9268 return $1
9269} # as_fn_set_status
bae7f79e 9270
81ecdfbb
RW
9271# as_fn_exit STATUS
9272# -----------------
9273# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9274as_fn_exit ()
9275{
9276 set +e
9277 as_fn_set_status $1
9278 exit $1
9279} # as_fn_exit
9280
9281# as_fn_unset VAR
9282# ---------------
9283# Portably unset VAR.
9284as_fn_unset ()
9285{
9286 { eval $1=; unset $1;}
9287}
9288as_unset=as_fn_unset
9289# as_fn_append VAR VALUE
9290# ----------------------
9291# Append the text in VALUE to the end of the definition contained in VAR. Take
9292# advantage of any shell optimizations that allow amortized linear growth over
9293# repeated appends, instead of the typical quadratic growth present in naive
9294# implementations.
9295if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9296 eval 'as_fn_append ()
9297 {
9298 eval $1+=\$2
9299 }'
9300else
9301 as_fn_append ()
9302 {
9303 eval $1=\$$1\$2
9304 }
9305fi # as_fn_append
9306
9307# as_fn_arith ARG...
9308# ------------------
9309# Perform arithmetic evaluation on the ARGs, and store the result in the
9310# global $as_val. Take advantage of shells that can avoid forks. The arguments
9311# must be portable across $(()) and expr.
9312if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9313 eval 'as_fn_arith ()
9314 {
9315 as_val=$(( $* ))
9316 }'
9317else
9318 as_fn_arith ()
9319 {
9320 as_val=`expr "$@" || test $? -eq 1`
9321 }
9322fi # as_fn_arith
9323
9324
9325if expr a : '\(a\)' >/dev/null 2>&1 &&
9326 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bae7f79e
ILT
9327 as_expr=expr
9328else
9329 as_expr=false
9330fi
9331
81ecdfbb 9332if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bae7f79e
ILT
9333 as_basename=basename
9334else
9335 as_basename=false
9336fi
9337
81ecdfbb
RW
9338if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9339 as_dirname=dirname
9340else
9341 as_dirname=false
9342fi
bae7f79e 9343
81ecdfbb 9344as_me=`$as_basename -- "$0" ||
bae7f79e
ILT
9345$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9346 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
9347 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9348$as_echo X/"$0" |
9349 sed '/^.*\/\([^/][^/]*\)\/*$/{
9350 s//\1/
9351 q
9352 }
9353 /^X\/\(\/\/\)$/{
9354 s//\1/
9355 q
9356 }
9357 /^X\/\(\/\).*/{
9358 s//\1/
9359 q
9360 }
9361 s/.*/./; q'`
bae7f79e 9362
bae7f79e
ILT
9363# Avoid depending upon Character Ranges.
9364as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9365as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9366as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9367as_cr_digits='0123456789'
9368as_cr_alnum=$as_cr_Letters$as_cr_digits
9369
81ecdfbb
RW
9370ECHO_C= ECHO_N= ECHO_T=
9371case `echo -n x` in #(((((
9372-n*)
9373 case `echo 'xy\c'` in
9374 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9375 xy) ECHO_C='\c';;
9376 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9377 ECHO_T=' ';;
9378 esac;;
9379*)
9380 ECHO_N='-n';;
bae7f79e
ILT
9381esac
9382
81ecdfbb
RW
9383rm -f conf$$ conf$$.exe conf$$.file
9384if test -d conf$$.dir; then
9385 rm -f conf$$.dir/conf$$.file
bae7f79e 9386else
81ecdfbb
RW
9387 rm -f conf$$.dir
9388 mkdir conf$$.dir 2>/dev/null
bae7f79e 9389fi
81ecdfbb
RW
9390if (echo >conf$$.file) 2>/dev/null; then
9391 if ln -s conf$$.file conf$$ 2>/dev/null; then
bae7f79e 9392 as_ln_s='ln -s'
81ecdfbb
RW
9393 # ... but there are two gotchas:
9394 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9395 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 9396 # In both cases, we have to default to `cp -pR'.
81ecdfbb 9397 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 9398 as_ln_s='cp -pR'
81ecdfbb
RW
9399 elif ln conf$$.file conf$$ 2>/dev/null; then
9400 as_ln_s=ln
9401 else
d0ac1c44 9402 as_ln_s='cp -pR'
bae7f79e 9403 fi
bae7f79e 9404else
d0ac1c44 9405 as_ln_s='cp -pR'
bae7f79e 9406fi
81ecdfbb
RW
9407rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9408rmdir conf$$.dir 2>/dev/null
9409
9410
9411# as_fn_mkdir_p
9412# -------------
9413# Create "$as_dir" as a directory, including parents if necessary.
9414as_fn_mkdir_p ()
9415{
9416
9417 case $as_dir in #(
9418 -*) as_dir=./$as_dir;;
9419 esac
9420 test -d "$as_dir" || eval $as_mkdir_p || {
9421 as_dirs=
9422 while :; do
9423 case $as_dir in #(
9424 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9425 *) as_qdir=$as_dir;;
9426 esac
9427 as_dirs="'$as_qdir' $as_dirs"
9428 as_dir=`$as_dirname -- "$as_dir" ||
9429$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9430 X"$as_dir" : 'X\(//\)[^/]' \| \
9431 X"$as_dir" : 'X\(//\)$' \| \
9432 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9433$as_echo X"$as_dir" |
9434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9435 s//\1/
9436 q
9437 }
9438 /^X\(\/\/\)[^/].*/{
9439 s//\1/
9440 q
9441 }
9442 /^X\(\/\/\)$/{
9443 s//\1/
9444 q
9445 }
9446 /^X\(\/\).*/{
9447 s//\1/
9448 q
9449 }
9450 s/.*/./; q'`
9451 test -d "$as_dir" && break
9452 done
9453 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 9454 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 9455
bae7f79e 9456
81ecdfbb 9457} # as_fn_mkdir_p
bae7f79e 9458if mkdir -p . 2>/dev/null; then
81ecdfbb 9459 as_mkdir_p='mkdir -p "$as_dir"'
bae7f79e
ILT
9460else
9461 test -d ./-p && rmdir ./-p
9462 as_mkdir_p=false
9463fi
9464
d0ac1c44
SM
9465
9466# as_fn_executable_p FILE
9467# -----------------------
9468# Test if FILE is an executable regular file.
9469as_fn_executable_p ()
9470{
9471 test -f "$1" && test -x "$1"
9472} # as_fn_executable_p
9473as_test_x='test -x'
9474as_executable_p=as_fn_executable_p
bae7f79e
ILT
9475
9476# Sed expression to map a string onto a valid CPP name.
9477as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9478
9479# Sed expression to map a string onto a valid variable name.
9480as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9481
9482
bae7f79e 9483exec 6>&1
81ecdfbb
RW
9484## ----------------------------------- ##
9485## Main body of $CONFIG_STATUS script. ##
9486## ----------------------------------- ##
9487_ASEOF
9488test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
bae7f79e 9489
81ecdfbb
RW
9490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9491# Save the log message, to keep $0 and so on meaningful, and to
bae7f79e 9492# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
9493# values after options handling.
9494ac_log="
8486ee48 9495This file was extended by gold $as_me 0.1, which was
d0ac1c44 9496generated by GNU Autoconf 2.69. Invocation command line was
bae7f79e
ILT
9497
9498 CONFIG_FILES = $CONFIG_FILES
9499 CONFIG_HEADERS = $CONFIG_HEADERS
9500 CONFIG_LINKS = $CONFIG_LINKS
9501 CONFIG_COMMANDS = $CONFIG_COMMANDS
9502 $ $0 $@
9503
81ecdfbb
RW
9504on `(hostname || uname -n) 2>/dev/null | sed 1q`
9505"
9506
bae7f79e
ILT
9507_ACEOF
9508
81ecdfbb
RW
9509case $ac_config_files in *"
9510"*) set x $ac_config_files; shift; ac_config_files=$*;;
9511esac
bae7f79e 9512
81ecdfbb
RW
9513case $ac_config_headers in *"
9514"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9515esac
bae7f79e 9516
bae7f79e 9517
81ecdfbb
RW
9518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9519# Files that config.status was made for.
9520config_files="$ac_config_files"
9521config_headers="$ac_config_headers"
9522config_commands="$ac_config_commands"
bae7f79e 9523
81ecdfbb 9524_ACEOF
bae7f79e 9525
81ecdfbb 9526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bae7f79e 9527ac_cs_usage="\
81ecdfbb
RW
9528\`$as_me' instantiates files and other configuration actions
9529from templates according to the current configuration. Unless the files
9530and actions are specified as TAGs, all are instantiated by default.
bae7f79e 9531
81ecdfbb 9532Usage: $0 [OPTION]... [TAG]...
bae7f79e
ILT
9533
9534 -h, --help print this help, then exit
81ecdfbb 9535 -V, --version print version number and configuration settings, then exit
d0ac1c44 9536 --config print configuration, then exit
81ecdfbb
RW
9537 -q, --quiet, --silent
9538 do not print progress messages
bae7f79e
ILT
9539 -d, --debug don't remove temporary files
9540 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
9541 --file=FILE[:TEMPLATE]
9542 instantiate the configuration file FILE
9543 --header=FILE[:TEMPLATE]
9544 instantiate the configuration header FILE
bae7f79e
ILT
9545
9546Configuration files:
9547$config_files
9548
9549Configuration headers:
9550$config_headers
9551
9552Configuration commands:
9553$config_commands
9554
81ecdfbb 9555Report bugs to the package provider."
bae7f79e 9556
81ecdfbb
RW
9557_ACEOF
9558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 9559ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
bae7f79e 9560ac_cs_version="\\
8486ee48 9561gold config.status 0.1
d0ac1c44
SM
9562configured by $0, generated by GNU Autoconf 2.69,
9563 with options \\"\$ac_cs_config\\"
bae7f79e 9564
d0ac1c44 9565Copyright (C) 2012 Free Software Foundation, Inc.
bae7f79e
ILT
9566This config.status script is free software; the Free Software Foundation
9567gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
9568
9569ac_pwd='$ac_pwd'
9570srcdir='$srcdir'
9571INSTALL='$INSTALL'
9572MKDIR_P='$MKDIR_P'
9573AWK='$AWK'
9574test -n "\$AWK" || AWK=awk
bae7f79e
ILT
9575_ACEOF
9576
81ecdfbb
RW
9577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9578# The default lists apply if the user does not specify any file.
bae7f79e
ILT
9579ac_need_defaults=:
9580while test $# != 0
9581do
9582 case $1 in
d0ac1c44 9583 --*=?*)
81ecdfbb
RW
9584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9585 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bae7f79e
ILT
9586 ac_shift=:
9587 ;;
d0ac1c44
SM
9588 --*=)
9589 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9590 ac_optarg=
9591 ac_shift=:
9592 ;;
81ecdfbb 9593 *)
bae7f79e
ILT
9594 ac_option=$1
9595 ac_optarg=$2
9596 ac_shift=shift
9597 ;;
bae7f79e
ILT
9598 esac
9599
9600 case $ac_option in
9601 # Handling of the options.
bae7f79e
ILT
9602 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9603 ac_cs_recheck=: ;;
81ecdfbb
RW
9604 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9605 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
9606 --config | --confi | --conf | --con | --co | --c )
9607 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 9608 --debug | --debu | --deb | --de | --d | -d )
bae7f79e
ILT
9609 debug=: ;;
9610 --file | --fil | --fi | --f )
9611 $ac_shift
81ecdfbb
RW
9612 case $ac_optarg in
9613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 9614 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
9615 esac
9616 as_fn_append CONFIG_FILES " '$ac_optarg'"
bae7f79e
ILT
9617 ac_need_defaults=false;;
9618 --header | --heade | --head | --hea )
9619 $ac_shift
81ecdfbb
RW
9620 case $ac_optarg in
9621 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9622 esac
9623 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
bae7f79e 9624 ac_need_defaults=false;;
81ecdfbb
RW
9625 --he | --h)
9626 # Conflict between --help and --header
d0ac1c44 9627 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
9628Try \`$0 --help' for more information.";;
9629 --help | --hel | -h )
9630 $as_echo "$ac_cs_usage"; exit ;;
bae7f79e
ILT
9631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9632 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9633 ac_cs_silent=: ;;
9634
9635 # This is an error.
d0ac1c44 9636 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 9637Try \`$0 --help' for more information." ;;
bae7f79e 9638
81ecdfbb
RW
9639 *) as_fn_append ac_config_targets " $1"
9640 ac_need_defaults=false ;;
bae7f79e
ILT
9641
9642 esac
9643 shift
9644done
9645
9646ac_configure_extra_args=
9647
9648if $ac_cs_silent; then
9649 exec 6>/dev/null
9650 ac_configure_extra_args="$ac_configure_extra_args --silent"
9651fi
9652
9653_ACEOF
81ecdfbb 9654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bae7f79e 9655if \$ac_cs_recheck; then
d0ac1c44 9656 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
9657 shift
9658 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9659 CONFIG_SHELL='$SHELL'
9660 export CONFIG_SHELL
9661 exec "\$@"
bae7f79e
ILT
9662fi
9663
9664_ACEOF
81ecdfbb
RW
9665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9666exec 5>>config.log
9667{
9668 echo
9669 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9670## Running $as_me. ##
9671_ASBOX
9672 $as_echo "$ac_log"
9673} >&5
bae7f79e 9674
81ecdfbb
RW
9675_ACEOF
9676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bae7f79e 9677#
81ecdfbb 9678# INIT-COMMANDS
bae7f79e 9679#
bae7f79e
ILT
9680AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9681# Capture the value of obsolete ALL_LINGUAS because we need it to compute
9682 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9683 # from automake.
9684 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9685 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9686 LINGUAS="${LINGUAS-%UNSET%}"
9687
9688
9689_ACEOF
9690
81ecdfbb 9691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bae7f79e 9692
81ecdfbb 9693# Handling of arguments.
bae7f79e
ILT
9694for ac_config_target in $ac_config_targets
9695do
81ecdfbb
RW
9696 case $ac_config_target in
9697 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9698 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9699 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9700 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9701 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
9702 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9703
d0ac1c44 9704 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
bae7f79e
ILT
9705 esac
9706done
9707
81ecdfbb 9708
bae7f79e
ILT
9709# If the user did not use the arguments to specify the items to instantiate,
9710# then the envvar interface is used. Set only those that are not.
9711# We use the long form for the default assignment because of an extremely
9712# bizarre bug on SunOS 4.1.3.
9713if $ac_need_defaults; then
9714 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9715 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9716 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9717fi
9718
9719# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 9720# simply because there is no reason against having it here, and in addition,
bae7f79e 9721# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
9722# Hook for its removal unless debugging.
9723# Note that there is a small window in which the directory will not be cleaned:
9724# after its creation but before its name has been assigned to `$tmp'.
bae7f79e
ILT
9725$debug ||
9726{
d0ac1c44 9727 tmp= ac_tmp=
81ecdfbb 9728 trap 'exit_status=$?
d0ac1c44
SM
9729 : "${ac_tmp:=$tmp}"
9730 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
9731' 0
9732 trap 'as_fn_exit 1' 1 2 13 15
bae7f79e 9733}
bae7f79e
ILT
9734# Create a (secure) tmp directory for tmp files.
9735
9736{
81ecdfbb 9737 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 9738 test -d "$tmp"
bae7f79e
ILT
9739} ||
9740{
81ecdfbb
RW
9741 tmp=./conf$$-$RANDOM
9742 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
9743} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9744ac_tmp=$tmp
81ecdfbb
RW
9745
9746# Set up the scripts for CONFIG_FILES section.
9747# No need to generate them if there are no CONFIG_FILES.
9748# This happens for instance with `./config.status config.h'.
9749if test -n "$CONFIG_FILES"; then
9750
9751
9752ac_cr=`echo X | tr X '\015'`
9753# On cygwin, bash can eat \r inside `` if the user requested igncr.
9754# But we know of no other shell where ac_cr would be empty at this
9755# point, so we can use a bashism as a fallback.
9756if test "x$ac_cr" = x; then
9757 eval ac_cr=\$\'\\r\'
9758fi
9759ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9760if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 9761 ac_cs_awk_cr='\\r'
81ecdfbb
RW
9762else
9763 ac_cs_awk_cr=$ac_cr
9764fi
9765
d0ac1c44 9766echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
9767_ACEOF
9768
9769
9770{
9771 echo "cat >conf$$subs.awk <<_ACEOF" &&
9772 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9773 echo "_ACEOF"
9774} >conf$$subs.sh ||
d0ac1c44
SM
9775 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9776ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
9777ac_delim='%!_!# '
9778for ac_last_try in false false false false false :; do
9779 . ./conf$$subs.sh ||
d0ac1c44 9780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
9781
9782 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9783 if test $ac_delim_n = $ac_delim_num; then
9784 break
9785 elif $ac_last_try; then
d0ac1c44 9786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
9787 else
9788 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9789 fi
9790done
9791rm -f conf$$subs.sh
9792
9793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 9794cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
9795_ACEOF
9796sed -n '
9797h
9798s/^/S["/; s/!.*/"]=/
9799p
9800g
9801s/^[^!]*!//
9802:repl
9803t repl
9804s/'"$ac_delim"'$//
9805t delim
9806:nl
9807h
d0ac1c44 9808s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
9809t more1
9810s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9811p
9812n
9813b repl
9814:more1
9815s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9816p
9817g
9818s/.\{148\}//
9819t nl
9820:delim
9821h
d0ac1c44 9822s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
9823t more2
9824s/["\\]/\\&/g; s/^/"/; s/$/"/
9825p
9826b
9827:more2
9828s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9829p
9830g
9831s/.\{148\}//
9832t delim
9833' <conf$$subs.awk | sed '
9834/^[^""]/{
9835 N
9836 s/\n//
9837}
9838' >>$CONFIG_STATUS || ac_write_fail=1
9839rm -f conf$$subs.awk
9840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9841_ACAWK
d0ac1c44 9842cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
9843 for (key in S) S_is_set[key] = 1
9844 FS = "\a"
9845
9846}
bae7f79e 9847{
81ecdfbb
RW
9848 line = $ 0
9849 nfields = split(line, field, "@")
9850 substed = 0
9851 len = length(field[1])
9852 for (i = 2; i < nfields; i++) {
9853 key = field[i]
9854 keylen = length(key)
9855 if (S_is_set[key]) {
9856 value = S[key]
9857 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9858 len += length(value) + length(field[++i])
9859 substed = 1
9860 } else
9861 len += 1 + keylen
9862 }
9863
9864 print line
bae7f79e
ILT
9865}
9866
81ecdfbb
RW
9867_ACAWK
9868_ACEOF
9869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9870if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9871 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9872else
9873 cat
d0ac1c44
SM
9874fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9875 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
bae7f79e
ILT
9876_ACEOF
9877
d0ac1c44
SM
9878# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9879# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
9880# trailing colons and then remove the whole line if VPATH becomes empty
9881# (actually we leave an empty line to preserve line numbers).
9882if test "x$srcdir" = x.; then
d0ac1c44
SM
9883 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9884h
9885s///
9886s/^/:/
9887s/[ ]*$/:/
9888s/:\$(srcdir):/:/g
9889s/:\${srcdir}:/:/g
9890s/:@srcdir@:/:/g
9891s/^:*//
81ecdfbb 9892s/:*$//
d0ac1c44
SM
9893x
9894s/\(=[ ]*\).*/\1/
9895G
9896s/\n//
81ecdfbb
RW
9897s/^[^=]*=[ ]*$//
9898}'
9899fi
bae7f79e 9900
81ecdfbb
RW
9901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9902fi # test -n "$CONFIG_FILES"
bae7f79e 9903
81ecdfbb
RW
9904# Set up the scripts for CONFIG_HEADERS section.
9905# No need to generate them if there are no CONFIG_HEADERS.
9906# This happens for instance with `./config.status Makefile'.
9907if test -n "$CONFIG_HEADERS"; then
d0ac1c44 9908cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb 9909BEGIN {
bae7f79e
ILT
9910_ACEOF
9911
81ecdfbb
RW
9912# Transform confdefs.h into an awk script `defines.awk', embedded as
9913# here-document in config.status, that substitutes the proper values into
9914# config.h.in to produce config.h.
9915
9916# Create a delimiter string that does not exist in confdefs.h, to ease
9917# handling of long lines.
9918ac_delim='%!_!# '
9919for ac_last_try in false false :; do
d0ac1c44
SM
9920 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9921 if test -z "$ac_tt"; then
81ecdfbb
RW
9922 break
9923 elif $ac_last_try; then
d0ac1c44 9924 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
9925 else
9926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
bae7f79e 9927 fi
81ecdfbb 9928done
bae7f79e 9929
81ecdfbb
RW
9930# For the awk script, D is an array of macro values keyed by name,
9931# likewise P contains macro parameters if any. Preserve backslash
9932# newline sequences.
9933
9934ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9935sed -n '
9936s/.\{148\}/&'"$ac_delim"'/g
9937t rset
9938:rset
9939s/^[ ]*#[ ]*define[ ][ ]*/ /
9940t def
9941d
9942:def
9943s/\\$//
9944t bsnl
9945s/["\\]/\\&/g
9946s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9947D["\1"]=" \3"/p
9948s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9949d
9950:bsnl
9951s/["\\]/\\&/g
9952s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9953D["\1"]=" \3\\\\\\n"\\/p
9954t cont
9955s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9956t cont
9957d
9958:cont
9959n
9960s/.\{148\}/&'"$ac_delim"'/g
9961t clear
9962:clear
9963s/\\$//
9964t bsnlc
9965s/["\\]/\\&/g; s/^/"/; s/$/"/p
9966d
9967:bsnlc
9968s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9969b cont
9970' <confdefs.h | sed '
9971s/'"$ac_delim"'/"\\\
9972"/g' >>$CONFIG_STATUS || ac_write_fail=1
9973
9974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9975 for (key in D) D_is_set[key] = 1
9976 FS = "\a"
9977}
9978/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9979 line = \$ 0
9980 split(line, arg, " ")
9981 if (arg[1] == "#") {
9982 defundef = arg[2]
9983 mac1 = arg[3]
9984 } else {
9985 defundef = substr(arg[1], 2)
9986 mac1 = arg[2]
9987 }
9988 split(mac1, mac2, "(") #)
9989 macro = mac2[1]
9990 prefix = substr(line, 1, index(line, defundef) - 1)
9991 if (D_is_set[macro]) {
9992 # Preserve the white space surrounding the "#".
9993 print prefix "define", macro P[macro] D[macro]
9994 next
9995 } else {
9996 # Replace #undef with comments. This is necessary, for example,
9997 # in the case of _POSIX_SOURCE, which is predefined and required
9998 # on some systems where configure will not decide to define it.
9999 if (defundef == "undef") {
10000 print "/*", prefix defundef, macro, "*/"
10001 next
10002 }
10003 }
10004}
10005{ print }
10006_ACAWK
bae7f79e 10007_ACEOF
81ecdfbb 10008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 10009 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb
RW
10010fi # test -n "$CONFIG_HEADERS"
10011
10012
10013eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10014shift
10015for ac_tag
10016do
10017 case $ac_tag in
10018 :[FHLC]) ac_mode=$ac_tag; continue;;
10019 esac
10020 case $ac_mode$ac_tag in
10021 :[FHL]*:*);;
d0ac1c44 10022 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
10023 :[FH]-) ac_tag=-:-;;
10024 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10025 esac
10026 ac_save_IFS=$IFS
10027 IFS=:
10028 set x $ac_tag
10029 IFS=$ac_save_IFS
10030 shift
10031 ac_file=$1
10032 shift
10033
10034 case $ac_mode in
10035 :L) ac_source=$1;;
10036 :[FH])
10037 ac_file_inputs=
10038 for ac_f
10039 do
10040 case $ac_f in
d0ac1c44 10041 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
10042 *) # Look for the file first in the build tree, then in the source tree
10043 # (if the path is not absolute). The absolute path cannot be DOS-style,
10044 # because $ac_f cannot contain `:'.
10045 test -f "$ac_f" ||
10046 case $ac_f in
10047 [\\/$]*) false;;
10048 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10049 esac ||
d0ac1c44 10050 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
10051 esac
10052 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10053 as_fn_append ac_file_inputs " '$ac_f'"
10054 done
10055
10056 # Let's still pretend it is `configure' which instantiates (i.e., don't
10057 # use $as_me), people would be surprised to read:
10058 # /* config.h. Generated by config.status. */
10059 configure_input='Generated from '`
10060 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10061 `' by configure.'
10062 if test x"$ac_file" != x-; then
10063 configure_input="$ac_file. $configure_input"
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10065$as_echo "$as_me: creating $ac_file" >&6;}
10066 fi
10067 # Neutralize special characters interpreted by sed in replacement strings.
10068 case $configure_input in #(
10069 *\&* | *\|* | *\\* )
10070 ac_sed_conf_input=`$as_echo "$configure_input" |
10071 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10072 *) ac_sed_conf_input=$configure_input;;
10073 esac
10074
10075 case $ac_tag in
d0ac1c44
SM
10076 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
10078 esac
10079 ;;
bae7f79e
ILT
10080 esac
10081
81ecdfbb 10082 ac_dir=`$as_dirname -- "$ac_file" ||
bae7f79e
ILT
10083$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10084 X"$ac_file" : 'X\(//\)[^/]' \| \
10085 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
10086 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10087$as_echo X"$ac_file" |
10088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10089 s//\1/
10090 q
10091 }
10092 /^X\(\/\/\)[^/].*/{
10093 s//\1/
10094 q
10095 }
10096 /^X\(\/\/\)$/{
10097 s//\1/
10098 q
10099 }
10100 /^X\(\/\).*/{
10101 s//\1/
10102 q
10103 }
10104 s/.*/./; q'`
10105 as_dir="$ac_dir"; as_fn_mkdir_p
bae7f79e
ILT
10106 ac_builddir=.
10107
81ecdfbb
RW
10108case "$ac_dir" in
10109.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10110*)
10111 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10112 # A ".." for each directory in $ac_dir_suffix.
10113 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10114 case $ac_top_builddir_sub in
10115 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10116 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10117 esac ;;
10118esac
10119ac_abs_top_builddir=$ac_pwd
10120ac_abs_builddir=$ac_pwd$ac_dir_suffix
10121# for backward compatibility:
10122ac_top_builddir=$ac_top_build_prefix
bae7f79e
ILT
10123
10124case $srcdir in
81ecdfbb 10125 .) # We are building in place.
bae7f79e 10126 ac_srcdir=.
81ecdfbb
RW
10127 ac_top_srcdir=$ac_top_builddir_sub
10128 ac_abs_top_srcdir=$ac_pwd ;;
10129 [\\/]* | ?:[\\/]* ) # Absolute name.
bae7f79e 10130 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
10131 ac_top_srcdir=$srcdir
10132 ac_abs_top_srcdir=$srcdir ;;
10133 *) # Relative name.
10134 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10135 ac_top_srcdir=$ac_top_build_prefix$srcdir
10136 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bae7f79e 10137esac
81ecdfbb 10138ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bae7f79e 10139
bae7f79e 10140
81ecdfbb
RW
10141 case $ac_mode in
10142 :F)
10143 #
10144 # CONFIG_FILE
10145 #
bae7f79e
ILT
10146
10147 case $INSTALL in
10148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 10149 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
bae7f79e 10150 esac
81ecdfbb
RW
10151 ac_MKDIR_P=$MKDIR_P
10152 case $MKDIR_P in
10153 [\\/$]* | ?:[\\/]* ) ;;
10154 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10155 esac
10156_ACEOF
bae7f79e 10157
81ecdfbb
RW
10158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10159# If the template does not know about datarootdir, expand it.
10160# FIXME: This hack should be removed a few years after 2.60.
10161ac_datarootdir_hack=; ac_datarootdir_seen=
10162ac_sed_dataroot='
10163/datarootdir/ {
10164 p
10165 q
10166}
10167/@datadir@/p
10168/@docdir@/p
10169/@infodir@/p
10170/@localedir@/p
10171/@mandir@/p'
10172case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10173*datarootdir*) ac_datarootdir_seen=yes;;
10174*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10176$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10177_ACEOF
10178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10179 ac_datarootdir_hack='
10180 s&@datadir@&$datadir&g
10181 s&@docdir@&$docdir&g
10182 s&@infodir@&$infodir&g
10183 s&@localedir@&$localedir&g
10184 s&@mandir@&$mandir&g
10185 s&\\\${datarootdir}&$datarootdir&g' ;;
10186esac
bae7f79e 10187_ACEOF
81ecdfbb
RW
10188
10189# Neutralize VPATH when `$srcdir' = `.'.
10190# Shell code in configure.ac might set extrasub.
10191# FIXME: do we really want to maintain this feature?
10192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10193ac_sed_extra="$ac_vpsub
bae7f79e
ILT
10194$extrasub
10195_ACEOF
81ecdfbb 10196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bae7f79e
ILT
10197:t
10198/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
10199s|@configure_input@|$ac_sed_conf_input|;t t
10200s&@top_builddir@&$ac_top_builddir_sub&;t t
10201s&@top_build_prefix@&$ac_top_build_prefix&;t t
10202s&@srcdir@&$ac_srcdir&;t t
10203s&@abs_srcdir@&$ac_abs_srcdir&;t t
10204s&@top_srcdir@&$ac_top_srcdir&;t t
10205s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10206s&@builddir@&$ac_builddir&;t t
10207s&@abs_builddir@&$ac_abs_builddir&;t t
10208s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10209s&@INSTALL@&$ac_INSTALL&;t t
10210s&@MKDIR_P@&$ac_MKDIR_P&;t t
10211$ac_datarootdir_hack
10212"
d0ac1c44
SM
10213eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10214 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
10215
10216test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
10217 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10218 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10219 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 10220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 10221which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 10222$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 10223which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 10224
d0ac1c44 10225 rm -f "$ac_tmp/stdin"
bae7f79e 10226 case $ac_file in
d0ac1c44
SM
10227 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10228 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 10229 esac \
d0ac1c44 10230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
10231 ;;
10232 :H)
10233 #
10234 # CONFIG_HEADER
10235 #
bae7f79e 10236 if test x"$ac_file" != x-; then
81ecdfbb
RW
10237 {
10238 $as_echo "/* $configure_input */" \
d0ac1c44
SM
10239 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10240 } >"$ac_tmp/config.h" \
10241 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10242 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10244$as_echo "$as_me: $ac_file is unchanged" >&6;}
bae7f79e 10245 else
81ecdfbb 10246 rm -f "$ac_file"
d0ac1c44
SM
10247 mv "$ac_tmp/config.h" "$ac_file" \
10248 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
bae7f79e
ILT
10249 fi
10250 else
81ecdfbb 10251 $as_echo "/* $configure_input */" \
d0ac1c44
SM
10252 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10253 || as_fn_error $? "could not create -" "$LINENO" 5
bae7f79e 10254 fi
81ecdfbb
RW
10255# Compute "$ac_file"'s index in $config_headers.
10256_am_arg="$ac_file"
bae7f79e
ILT
10257_am_stamp_count=1
10258for _am_header in $config_headers :; do
10259 case $_am_header in
81ecdfbb 10260 $_am_arg | $_am_arg:* )
bae7f79e
ILT
10261 break ;;
10262 * )
10263 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10264 esac
10265done
81ecdfbb
RW
10266echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10267$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10268 X"$_am_arg" : 'X\(//\)[^/]' \| \
10269 X"$_am_arg" : 'X\(//\)$' \| \
10270 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10271$as_echo X"$_am_arg" |
10272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10273 s//\1/
10274 q
10275 }
10276 /^X\(\/\/\)[^/].*/{
10277 s//\1/
10278 q
10279 }
10280 /^X\(\/\/\)$/{
10281 s//\1/
10282 q
10283 }
10284 /^X\(\/\).*/{
10285 s//\1/
10286 q
10287 }
10288 s/.*/./; q'`/stamp-h$_am_stamp_count
10289 ;;
bae7f79e 10290
81ecdfbb
RW
10291 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10292$as_echo "$as_me: executing $ac_file commands" >&6;}
10293 ;;
10294 esac
bae7f79e
ILT
10295
10296
81ecdfbb
RW
10297 case $ac_file$ac_mode in
10298 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 10299 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
10300 # are listed without --file. Let's play safe and only enable the eval
10301 # if we detect the quoting.
10302 case $CONFIG_FILES in
10303 *\'*) eval set x "$CONFIG_FILES" ;;
10304 *) set x $CONFIG_FILES ;;
10305 esac
10306 shift
10307 for mf
10308 do
10309 # Strip MF so we end up with the name of the file.
10310 mf=`echo "$mf" | sed -e 's/:.*$//'`
10311 # Check whether this is an Automake generated Makefile or not.
d0ac1c44 10312 # We used to match only the files named 'Makefile.in', but
81ecdfbb
RW
10313 # some people rename them; so instead we look at the file content.
10314 # Grep'ing the first line is not enough: some people post-process
10315 # each Makefile.in and add a new line on top of each file to say so.
10316 # Grep'ing the whole file is not good either: AIX grep has a line
10317 # limit of 2048, but all sed's we know have understand at least 4000.
10318 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10319 dirpart=`$as_dirname -- "$mf" ||
bae7f79e
ILT
10320$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10321 X"$mf" : 'X\(//\)[^/]' \| \
10322 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
10323 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10324$as_echo X"$mf" |
10325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10326 s//\1/
10327 q
10328 }
10329 /^X\(\/\/\)[^/].*/{
10330 s//\1/
10331 q
10332 }
10333 /^X\(\/\/\)$/{
10334 s//\1/
10335 q
10336 }
10337 /^X\(\/\).*/{
10338 s//\1/
10339 q
10340 }
10341 s/.*/./; q'`
10342 else
10343 continue
10344 fi
10345 # Extract the definition of DEPDIR, am__include, and am__quote
d0ac1c44 10346 # from the Makefile without running 'make'.
81ecdfbb
RW
10347 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10348 test -z "$DEPDIR" && continue
10349 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d0ac1c44 10350 test -z "$am__include" && continue
81ecdfbb 10351 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
81ecdfbb
RW
10352 # Find all dependency output files, they are included files with
10353 # $(DEPDIR) in their names. We invoke sed twice because it is the
10354 # simplest approach to changing $(DEPDIR) to its actual value in the
10355 # expansion.
10356 for file in `sed -n "
10357 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
d0ac1c44 10358 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
81ecdfbb
RW
10359 # Make sure the directory exists.
10360 test -f "$dirpart/$file" && continue
10361 fdir=`$as_dirname -- "$file" ||
bae7f79e
ILT
10362$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10363 X"$file" : 'X\(//\)[^/]' \| \
10364 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
10365 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10366$as_echo X"$file" |
10367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10368 s//\1/
10369 q
10370 }
10371 /^X\(\/\/\)[^/].*/{
10372 s//\1/
10373 q
10374 }
10375 /^X\(\/\/\)$/{
10376 s//\1/
10377 q
10378 }
10379 /^X\(\/\).*/{
10380 s//\1/
10381 q
10382 }
10383 s/.*/./; q'`
10384 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10385 # echo "creating $dirpart/$file"
10386 echo '# dummy' > "$dirpart/$file"
bae7f79e 10387 done
bae7f79e 10388 done
81ecdfbb 10389}
bae7f79e 10390 ;;
81ecdfbb 10391 "default-1":C)
bae7f79e
ILT
10392 for ac_file in $CONFIG_FILES; do
10393 # Support "outfile[:infile[:infile...]]"
10394 case "$ac_file" in
10395 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10396 esac
10397 # PO directories have a Makefile.in generated from Makefile.in.in.
10398 case "$ac_file" in */Makefile.in)
10399 # Adjust a relative srcdir.
10400 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
c7791212 10401 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
bae7f79e
ILT
10402 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10403 # In autoconf-2.13 it is called $ac_given_srcdir.
10404 # In autoconf-2.50 it is called $srcdir.
10405 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10406 case "$ac_given_srcdir" in
10407 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10408 /*) top_srcdir="$ac_given_srcdir" ;;
10409 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10410 esac
10411 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10412 rm -f "$ac_dir/POTFILES"
10413 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10414 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10415 POMAKEFILEDEPS="POTFILES.in"
10416 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10417 # on $ac_dir but don't depend on user-specified configuration
10418 # parameters.
10419 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10420 # The LINGUAS file contains the set of available languages.
10421 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 10422 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
10423 fi
10424 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10425 # Hide the ALL_LINGUAS assigment from automake.
10426 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10427 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10428 else
37a42ee9 10429 # The set of available languages was given in configure.ac.
bae7f79e
ILT
10430 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10431 fi
10432 case "$ac_given_srcdir" in
10433 .) srcdirpre= ;;
10434 *) srcdirpre='$(srcdir)/' ;;
10435 esac
10436 POFILES=
10437 GMOFILES=
10438 UPDATEPOFILES=
10439 DUMMYPOFILES=
10440 for lang in $ALL_LINGUAS; do
10441 POFILES="$POFILES $srcdirpre$lang.po"
10442 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10443 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10444 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10445 done
10446 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10447 # environment variable.
10448 INST_LINGUAS=
10449 if test -n "$ALL_LINGUAS"; then
10450 for presentlang in $ALL_LINGUAS; do
10451 useit=no
10452 if test "%UNSET%" != "$LINGUAS"; then
10453 desiredlanguages="$LINGUAS"
10454 else
10455 desiredlanguages="$ALL_LINGUAS"
10456 fi
10457 for desiredlang in $desiredlanguages; do
10458 # Use the presentlang catalog if desiredlang is
10459 # a. equal to presentlang, or
10460 # b. a variant of presentlang (because in this case,
10461 # presentlang can be used as a fallback for messages
10462 # which are not translated in the desiredlang catalog).
10463 case "$desiredlang" in
10464 "$presentlang"*) useit=yes;;
10465 esac
10466 done
10467 if test $useit = yes; then
10468 INST_LINGUAS="$INST_LINGUAS $presentlang"
10469 fi
10470 done
10471 fi
10472 CATALOGS=
10473 if test -n "$INST_LINGUAS"; then
10474 for lang in $INST_LINGUAS; do
10475 CATALOGS="$CATALOGS $lang.gmo"
10476 done
10477 fi
10478 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10479 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"
10480 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10481 if test -f "$f"; then
10482 case "$f" in
10483 *.orig | *.bak | *~) ;;
10484 *) cat "$f" >> "$ac_dir/Makefile" ;;
10485 esac
10486 fi
10487 done
10488 fi
10489 ;;
10490 esac
10491 done ;;
81ecdfbb 10492
bae7f79e 10493 esac
81ecdfbb 10494done # for ac_tag
bae7f79e 10495
bae7f79e 10496
81ecdfbb 10497as_fn_exit 0
bae7f79e 10498_ACEOF
bae7f79e
ILT
10499ac_clean_files=$ac_clean_files_save
10500
81ecdfbb 10501test $ac_write_fail = 0 ||
d0ac1c44 10502 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 10503
bae7f79e
ILT
10504
10505# configure is writing to config.log, and then calls config.status.
10506# config.status does its own redirection, appending to config.log.
10507# Unfortunately, on DOS this fails, as config.log is still kept open
10508# by configure, so config.status won't be able to write to it; its
10509# output is simply discarded. So we exec the FD to /dev/null,
10510# effectively closing config.log, so it can be properly (re)opened and
10511# appended to by config.status. When coming back to configure, we
10512# need to make the FD available again.
10513if test "$no_create" != yes; then
10514 ac_cs_success=:
10515 ac_config_status_args=
10516 test "$silent" = yes &&
10517 ac_config_status_args="$ac_config_status_args --quiet"
10518 exec 5>/dev/null
10519 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10520 exec 5>>config.log
10521 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10522 # would make configure fail if this is the last instruction.
d0ac1c44 10523 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
10524fi
10525if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10527$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
bae7f79e
ILT
10528fi
10529
This page took 1.403806 seconds and 4 git commands to generate.