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