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