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