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