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