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