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