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