Supported Tizen version parsing and verification
[external/binutils.git] / gold / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gold 0.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='gold'
579 PACKAGE_TARNAME='gold'
580 PACKAGE_VERSION='0.1'
581 PACKAGE_STRING='gold 0.1'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="gold.cc"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 #  include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #  include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='am__EXEEXT_FALSE
623 am__EXEEXT_TRUE
624 LTLIBOBJS
625 MAINT
626 MAINTAINER_MODE_FALSE
627 MAINTAINER_MODE_TRUE
628 DLOPEN_LIBS
629 CXXCPP
630 HAVE_NO_USE_LINKER_PLUGIN_FALSE
631 HAVE_NO_USE_LINKER_PLUGIN_TRUE
632 HAVE_PUBNAMES_FALSE
633 HAVE_PUBNAMES_TRUE
634 THREADS_FALSE
635 THREADS_TRUE
636 PTHREAD_CFLAGS
637 PTHREAD_LIBS
638 PTHREAD_CC
639 ax_pthread_config
640 SED
641 zlibinc
642 zlibdir
643 LIBOBJS
644 LFS_CFLAGS
645 GOLD_LDADD
646 GOLD_LDFLAGS
647 WARN_CXXFLAGS
648 WARN_WRITE_STRINGS
649 NO_WERROR
650 WARN_CFLAGS_FOR_BUILD
651 WARN_CFLAGS
652 IFUNC_STATIC_FALSE
653 IFUNC_STATIC_TRUE
654 IFUNC_FALSE
655 IFUNC_TRUE
656 RANDOM_SEED_CFLAGS
657 TLS_DESCRIPTORS_FALSE
658 TLS_DESCRIPTORS_TRUE
659 TLS_GNU2_DIALECT_FALSE
660 TLS_GNU2_DIALECT_TRUE
661 OMP_SUPPORT_FALSE
662 OMP_SUPPORT_TRUE
663 STATIC_TLS_FALSE
664 STATIC_TLS_TRUE
665 TLS_FALSE
666 TLS_TRUE
667 MERGE_CONSTANTS_FLAG
668 MCMODEL_MEDIUM_FALSE
669 MCMODEL_MEDIUM_TRUE
670 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
671 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
672 HAVE_STATIC_FALSE
673 HAVE_STATIC_TRUE
674 NATIVE_OR_CROSS_LINKER_FALSE
675 NATIVE_OR_CROSS_LINKER_TRUE
676 GCC_FALSE
677 GCC_TRUE
678 NATIVE_LINKER_FALSE
679 NATIVE_LINKER_TRUE
680 MSGMERGE
681 MSGFMT
682 MKINSTALLDIRS
683 CATOBJEXT
684 GENCAT
685 INSTOBJEXT
686 DATADIRNAME
687 CATALOGS
688 POSUB
689 GMSGFMT
690 XGETTEXT
691 INCINTL
692 LIBINTL_DEP
693 LIBINTL
694 USE_NLS
695 LN_S
696 RANLIB
697 YFLAGS
698 YACC
699 am__fastdepCXX_FALSE
700 am__fastdepCXX_TRUE
701 CXXDEPMODE
702 ac_ct_CXX
703 CXXFLAGS
704 CXX
705 NM
706 TARGETOBJS
707 DEFAULT_TARGET
708 DEFAULT_TARGET_MIPS_FALSE
709 DEFAULT_TARGET_MIPS_TRUE
710 DEFAULT_TARGET_TILEGX_FALSE
711 DEFAULT_TARGET_TILEGX_TRUE
712 DEFAULT_TARGET_X86_64_OR_X32_FALSE
713 DEFAULT_TARGET_X86_64_OR_X32_TRUE
714 DEFAULT_TARGET_X32_FALSE
715 DEFAULT_TARGET_X32_TRUE
716 DEFAULT_TARGET_X86_64_FALSE
717 DEFAULT_TARGET_X86_64_TRUE
718 DEFAULT_TARGET_S390_FALSE
719 DEFAULT_TARGET_S390_TRUE
720 DEFAULT_TARGET_SPARC_FALSE
721 DEFAULT_TARGET_SPARC_TRUE
722 DEFAULT_TARGET_POWERPC_FALSE
723 DEFAULT_TARGET_POWERPC_TRUE
724 DEFAULT_TARGET_I386_FALSE
725 DEFAULT_TARGET_I386_TRUE
726 DEFAULT_TARGET_ARM_FALSE
727 DEFAULT_TARGET_ARM_TRUE
728 DEFAULT_TARGET_AARCH64_FALSE
729 DEFAULT_TARGET_AARCH64_TRUE
730 PLUGINS_FALSE
731 PLUGINS_TRUE
732 installed_linker
733 install_as_default
734 EGREP
735 GREP
736 CPP
737 am__fastdepCC_FALSE
738 am__fastdepCC_TRUE
739 CCDEPMODE
740 am__nodep
741 AMDEPBACKSLASH
742 AMDEP_FALSE
743 AMDEP_TRUE
744 am__quote
745 am__include
746 DEPDIR
747 OBJEXT
748 EXEEXT
749 ac_ct_CC
750 CPPFLAGS
751 LDFLAGS
752 CFLAGS
753 CC
754 AM_BACKSLASH
755 AM_DEFAULT_VERBOSITY
756 AM_DEFAULT_V
757 AM_V
758 am__untar
759 am__tar
760 AMTAR
761 am__leading_dot
762 SET_MAKE
763 AWK
764 mkdir_p
765 MKDIR_P
766 INSTALL_STRIP_PROGRAM
767 STRIP
768 install_sh
769 MAKEINFO
770 AUTOHEADER
771 AUTOMAKE
772 AUTOCONF
773 ACLOCAL
774 VERSION
775 PACKAGE
776 CYGPATH_W
777 am__isrc
778 INSTALL_DATA
779 INSTALL_SCRIPT
780 INSTALL_PROGRAM
781 target_os
782 target_vendor
783 target_cpu
784 target
785 host_os
786 host_vendor
787 host_cpu
788 host
789 build_os
790 build_vendor
791 build_cpu
792 build
793 target_alias
794 host_alias
795 build_alias
796 LIBS
797 ECHO_T
798 ECHO_N
799 ECHO_C
800 DEFS
801 mandir
802 localedir
803 libdir
804 psdir
805 pdfdir
806 dvidir
807 htmldir
808 infodir
809 docdir
810 oldincludedir
811 includedir
812 localstatedir
813 sharedstatedir
814 sysconfdir
815 datadir
816 datarootdir
817 libexecdir
818 sbindir
819 bindir
820 program_transform_name
821 prefix
822 exec_prefix
823 PACKAGE_URL
824 PACKAGE_BUGREPORT
825 PACKAGE_STRING
826 PACKAGE_VERSION
827 PACKAGE_TARNAME
828 PACKAGE_NAME
829 PATH_SEPARATOR
830 SHELL'
831 ac_subst_files=''
832 ac_user_opts='
833 enable_option_checking
834 enable_silent_rules
835 enable_dependency_tracking
836 with_sysroot
837 enable_gold
838 enable_plugins
839 enable_relro
840 enable_targets
841 enable_default_hash_style
842 with_lib_path
843 enable_nls
844 enable_werror
845 enable_build_warnings
846 with_gold_ldflags
847 with_gold_ldadd
848 with_system_zlib
849 enable_threads
850 enable_maintainer_mode
851 '
852       ac_precious_vars='build_alias
853 host_alias
854 target_alias
855 CC
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
860 CPP
861 CXX
862 CXXFLAGS
863 CCC
864 YACC
865 YFLAGS
866 CXXCPP'
867
868
869 # Initialize some variables set by options.
870 ac_init_help=
871 ac_init_version=false
872 ac_unrecognized_opts=
873 ac_unrecognized_sep=
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
876 cache_file=/dev/null
877 exec_prefix=NONE
878 no_create=
879 no_recursion=
880 prefix=NONE
881 program_prefix=NONE
882 program_suffix=NONE
883 program_transform_name=s,x,x,
884 silent=
885 site=
886 srcdir=
887 verbose=
888 x_includes=NONE
889 x_libraries=NONE
890
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir='${exec_prefix}/bin'
898 sbindir='${exec_prefix}/sbin'
899 libexecdir='${exec_prefix}/libexec'
900 datarootdir='${prefix}/share'
901 datadir='${datarootdir}'
902 sysconfdir='${prefix}/etc'
903 sharedstatedir='${prefix}/com'
904 localstatedir='${prefix}/var'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
908 infodir='${datarootdir}/info'
909 htmldir='${docdir}'
910 dvidir='${docdir}'
911 pdfdir='${docdir}'
912 psdir='${docdir}'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
916
917 ac_prev=
918 ac_dashdash=
919 for ac_option
920 do
921   # If the previous option needs an argument, assign it.
922   if test -n "$ac_prev"; then
923     eval $ac_prev=\$ac_option
924     ac_prev=
925     continue
926   fi
927
928   case $ac_option in
929   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930   *=)   ac_optarg= ;;
931   *)    ac_optarg=yes ;;
932   esac
933
934   # Accept the important Cygnus configure options, so we can diagnose typos.
935
936   case $ac_dashdash$ac_option in
937   --)
938     ac_dashdash=yes ;;
939
940   -bindir | --bindir | --bindi | --bind | --bin | --bi)
941     ac_prev=bindir ;;
942   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943     bindir=$ac_optarg ;;
944
945   -build | --build | --buil | --bui | --bu)
946     ac_prev=build_alias ;;
947   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948     build_alias=$ac_optarg ;;
949
950   -cache-file | --cache-file | --cache-fil | --cache-fi \
951   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952     ac_prev=cache_file ;;
953   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955     cache_file=$ac_optarg ;;
956
957   --config-cache | -C)
958     cache_file=config.cache ;;
959
960   -datadir | --datadir | --datadi | --datad)
961     ac_prev=datadir ;;
962   -datadir=* | --datadir=* | --datadi=* | --datad=*)
963     datadir=$ac_optarg ;;
964
965   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966   | --dataroo | --dataro | --datar)
967     ac_prev=datarootdir ;;
968   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970     datarootdir=$ac_optarg ;;
971
972   -disable-* | --disable-*)
973     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974     # Reject names that are not valid shell variable names.
975     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976       as_fn_error $? "invalid feature name: $ac_useropt"
977     ac_useropt_orig=$ac_useropt
978     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979     case $ac_user_opts in
980       *"
981 "enable_$ac_useropt"
982 "*) ;;
983       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984          ac_unrecognized_sep=', ';;
985     esac
986     eval enable_$ac_useropt=no ;;
987
988   -docdir | --docdir | --docdi | --doc | --do)
989     ac_prev=docdir ;;
990   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991     docdir=$ac_optarg ;;
992
993   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994     ac_prev=dvidir ;;
995   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996     dvidir=$ac_optarg ;;
997
998   -enable-* | --enable-*)
999     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000     # Reject names that are not valid shell variable names.
1001     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002       as_fn_error $? "invalid feature name: $ac_useropt"
1003     ac_useropt_orig=$ac_useropt
1004     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005     case $ac_user_opts in
1006       *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010          ac_unrecognized_sep=', ';;
1011     esac
1012     eval enable_$ac_useropt=\$ac_optarg ;;
1013
1014   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016   | --exec | --exe | --ex)
1017     ac_prev=exec_prefix ;;
1018   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020   | --exec=* | --exe=* | --ex=*)
1021     exec_prefix=$ac_optarg ;;
1022
1023   -gas | --gas | --ga | --g)
1024     # Obsolete; use --with-gas.
1025     with_gas=yes ;;
1026
1027   -help | --help | --hel | --he | -h)
1028     ac_init_help=long ;;
1029   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030     ac_init_help=recursive ;;
1031   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032     ac_init_help=short ;;
1033
1034   -host | --host | --hos | --ho)
1035     ac_prev=host_alias ;;
1036   -host=* | --host=* | --hos=* | --ho=*)
1037     host_alias=$ac_optarg ;;
1038
1039   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040     ac_prev=htmldir ;;
1041   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042   | --ht=*)
1043     htmldir=$ac_optarg ;;
1044
1045   -includedir | --includedir | --includedi | --included | --include \
1046   | --includ | --inclu | --incl | --inc)
1047     ac_prev=includedir ;;
1048   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049   | --includ=* | --inclu=* | --incl=* | --inc=*)
1050     includedir=$ac_optarg ;;
1051
1052   -infodir | --infodir | --infodi | --infod | --info | --inf)
1053     ac_prev=infodir ;;
1054   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055     infodir=$ac_optarg ;;
1056
1057   -libdir | --libdir | --libdi | --libd)
1058     ac_prev=libdir ;;
1059   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060     libdir=$ac_optarg ;;
1061
1062   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063   | --libexe | --libex | --libe)
1064     ac_prev=libexecdir ;;
1065   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066   | --libexe=* | --libex=* | --libe=*)
1067     libexecdir=$ac_optarg ;;
1068
1069   -localedir | --localedir | --localedi | --localed | --locale)
1070     ac_prev=localedir ;;
1071   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072     localedir=$ac_optarg ;;
1073
1074   -localstatedir | --localstatedir | --localstatedi | --localstated \
1075   | --localstate | --localstat | --localsta | --localst | --locals)
1076     ac_prev=localstatedir ;;
1077   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079     localstatedir=$ac_optarg ;;
1080
1081   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082     ac_prev=mandir ;;
1083   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084     mandir=$ac_optarg ;;
1085
1086   -nfp | --nfp | --nf)
1087     # Obsolete; use --without-fp.
1088     with_fp=no ;;
1089
1090   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091   | --no-cr | --no-c | -n)
1092     no_create=yes ;;
1093
1094   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096     no_recursion=yes ;;
1097
1098   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100   | --oldin | --oldi | --old | --ol | --o)
1101     ac_prev=oldincludedir ;;
1102   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105     oldincludedir=$ac_optarg ;;
1106
1107   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108     ac_prev=prefix ;;
1109   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110     prefix=$ac_optarg ;;
1111
1112   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113   | --program-pre | --program-pr | --program-p)
1114     ac_prev=program_prefix ;;
1115   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117     program_prefix=$ac_optarg ;;
1118
1119   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120   | --program-suf | --program-su | --program-s)
1121     ac_prev=program_suffix ;;
1122   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124     program_suffix=$ac_optarg ;;
1125
1126   -program-transform-name | --program-transform-name \
1127   | --program-transform-nam | --program-transform-na \
1128   | --program-transform-n | --program-transform- \
1129   | --program-transform | --program-transfor \
1130   | --program-transfo | --program-transf \
1131   | --program-trans | --program-tran \
1132   | --progr-tra | --program-tr | --program-t)
1133     ac_prev=program_transform_name ;;
1134   -program-transform-name=* | --program-transform-name=* \
1135   | --program-transform-nam=* | --program-transform-na=* \
1136   | --program-transform-n=* | --program-transform-=* \
1137   | --program-transform=* | --program-transfor=* \
1138   | --program-transfo=* | --program-transf=* \
1139   | --program-trans=* | --program-tran=* \
1140   | --progr-tra=* | --program-tr=* | --program-t=*)
1141     program_transform_name=$ac_optarg ;;
1142
1143   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144     ac_prev=pdfdir ;;
1145   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146     pdfdir=$ac_optarg ;;
1147
1148   -psdir | --psdir | --psdi | --psd | --ps)
1149     ac_prev=psdir ;;
1150   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151     psdir=$ac_optarg ;;
1152
1153   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154   | -silent | --silent | --silen | --sile | --sil)
1155     silent=yes ;;
1156
1157   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158     ac_prev=sbindir ;;
1159   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160   | --sbi=* | --sb=*)
1161     sbindir=$ac_optarg ;;
1162
1163   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165   | --sharedst | --shareds | --shared | --share | --shar \
1166   | --sha | --sh)
1167     ac_prev=sharedstatedir ;;
1168   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171   | --sha=* | --sh=*)
1172     sharedstatedir=$ac_optarg ;;
1173
1174   -site | --site | --sit)
1175     ac_prev=site ;;
1176   -site=* | --site=* | --sit=*)
1177     site=$ac_optarg ;;
1178
1179   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180     ac_prev=srcdir ;;
1181   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182     srcdir=$ac_optarg ;;
1183
1184   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185   | --syscon | --sysco | --sysc | --sys | --sy)
1186     ac_prev=sysconfdir ;;
1187   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189     sysconfdir=$ac_optarg ;;
1190
1191   -target | --target | --targe | --targ | --tar | --ta | --t)
1192     ac_prev=target_alias ;;
1193   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194     target_alias=$ac_optarg ;;
1195
1196   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197     verbose=yes ;;
1198
1199   -version | --version | --versio | --versi | --vers | -V)
1200     ac_init_version=: ;;
1201
1202   -with-* | --with-*)
1203     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206       as_fn_error $? "invalid package name: $ac_useropt"
1207     ac_useropt_orig=$ac_useropt
1208     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209     case $ac_user_opts in
1210       *"
1211 "with_$ac_useropt"
1212 "*) ;;
1213       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214          ac_unrecognized_sep=', ';;
1215     esac
1216     eval with_$ac_useropt=\$ac_optarg ;;
1217
1218   -without-* | --without-*)
1219     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222       as_fn_error $? "invalid package name: $ac_useropt"
1223     ac_useropt_orig=$ac_useropt
1224     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225     case $ac_user_opts in
1226       *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230          ac_unrecognized_sep=', ';;
1231     esac
1232     eval with_$ac_useropt=no ;;
1233
1234   --x)
1235     # Obsolete; use --with-x.
1236     with_x=yes ;;
1237
1238   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239   | --x-incl | --x-inc | --x-in | --x-i)
1240     ac_prev=x_includes ;;
1241   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243     x_includes=$ac_optarg ;;
1244
1245   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247     ac_prev=x_libraries ;;
1248   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250     x_libraries=$ac_optarg ;;
1251
1252   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1253 Try \`$0 --help' for more information"
1254     ;;
1255
1256   *=*)
1257     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258     # Reject names that are not valid shell variable names.
1259     case $ac_envvar in #(
1260       '' | [0-9]* | *[!_$as_cr_alnum]* )
1261       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1262     esac
1263     eval $ac_envvar=\$ac_optarg
1264     export $ac_envvar ;;
1265
1266   *)
1267     # FIXME: should be removed in autoconf 3.0.
1268     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1272     ;;
1273
1274   esac
1275 done
1276
1277 if test -n "$ac_prev"; then
1278   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279   as_fn_error $? "missing argument to $ac_option"
1280 fi
1281
1282 if test -n "$ac_unrecognized_opts"; then
1283   case $enable_option_checking in
1284     no) ;;
1285     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1286     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287   esac
1288 fi
1289
1290 # Check all directory arguments for consistency.
1291 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292                 datadir sysconfdir sharedstatedir localstatedir includedir \
1293                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294                 libdir localedir mandir
1295 do
1296   eval ac_val=\$$ac_var
1297   # Remove trailing slashes.
1298   case $ac_val in
1299     */ )
1300       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301       eval $ac_var=\$ac_val;;
1302   esac
1303   # Be sure to have absolute directory names.
1304   case $ac_val in
1305     [\\/$]* | ?:[\\/]* )  continue;;
1306     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307   esac
1308   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1309 done
1310
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1317
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320   if test "x$build_alias" = x; then
1321     cross_compiling=maybe
1322   elif test "x$build_alias" != "x$host_alias"; then
1323     cross_compiling=yes
1324   fi
1325 fi
1326
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330 test "$silent" = yes && exec 6>/dev/null
1331
1332
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336   as_fn_error $? "working directory cannot be determined"
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338   as_fn_error $? "pwd does not report name of working directory"
1339
1340
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343   ac_srcdir_defaulted=yes
1344   # Try the directory containing this script, then the parent directory.
1345   ac_confdir=`$as_dirname -- "$as_myself" ||
1346 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347          X"$as_myself" : 'X\(//\)[^/]' \| \
1348          X"$as_myself" : 'X\(//\)$' \| \
1349          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350 $as_echo X"$as_myself" |
1351     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352             s//\1/
1353             q
1354           }
1355           /^X\(\/\/\)[^/].*/{
1356             s//\1/
1357             q
1358           }
1359           /^X\(\/\/\)$/{
1360             s//\1/
1361             q
1362           }
1363           /^X\(\/\).*/{
1364             s//\1/
1365             q
1366           }
1367           s/.*/./; q'`
1368   srcdir=$ac_confdir
1369   if test ! -r "$srcdir/$ac_unique_file"; then
1370     srcdir=..
1371   fi
1372 else
1373   ac_srcdir_defaulted=no
1374 fi
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1378 fi
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 ac_abs_confdir=`(
1381         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1382         pwd)`
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385   srcdir=.
1386 fi
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1390 case $srcdir in
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 esac
1393 for ac_var in $ac_precious_vars; do
1394   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395   eval ac_env_${ac_var}_value=\$${ac_var}
1396   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 done
1399
1400 #
1401 # Report the --help message.
1402 #
1403 if test "$ac_init_help" = "long"; then
1404   # Omit some internal or obsolete options to make the list less imposing.
1405   # This message is too long to be a string in the A/UX 3.1 sh.
1406   cat <<_ACEOF
1407 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1408
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1410
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE.  See below for descriptions of some of the useful variables.
1413
1414 Defaults for the options are specified in brackets.
1415
1416 Configuration:
1417   -h, --help              display this help and exit
1418       --help=short        display options specific to this package
1419       --help=recursive    display the short help of all the included packages
1420   -V, --version           display version information and exit
1421   -q, --quiet, --silent   do not print \`checking ...' messages
1422       --cache-file=FILE   cache test results in FILE [disabled]
1423   -C, --config-cache      alias for \`--cache-file=config.cache'
1424   -n, --no-create         do not create output files
1425       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1426
1427 Installation directories:
1428   --prefix=PREFIX         install architecture-independent files in PREFIX
1429                           [$ac_default_prefix]
1430   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1431                           [PREFIX]
1432
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1437
1438 For better control, use the options below.
1439
1440 Fine tuning of the installation directories:
1441   --bindir=DIR            user executables [EPREFIX/bin]
1442   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1443   --libexecdir=DIR        program executables [EPREFIX/libexec]
1444   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1445   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1446   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1447   --libdir=DIR            object code libraries [EPREFIX/lib]
1448   --includedir=DIR        C header files [PREFIX/include]
1449   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1450   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1451   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1452   --infodir=DIR           info documentation [DATAROOTDIR/info]
1453   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1454   --mandir=DIR            man documentation [DATAROOTDIR/man]
1455   --docdir=DIR            documentation root [DATAROOTDIR/doc/gold]
1456   --htmldir=DIR           html documentation [DOCDIR]
1457   --dvidir=DIR            dvi documentation [DOCDIR]
1458   --pdfdir=DIR            pdf documentation [DOCDIR]
1459   --psdir=DIR             ps documentation [DOCDIR]
1460 _ACEOF
1461
1462   cat <<\_ACEOF
1463
1464 Program names:
1465   --program-prefix=PREFIX            prepend PREFIX to installed program names
1466   --program-suffix=SUFFIX            append SUFFIX to installed program names
1467   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1468
1469 System types:
1470   --build=BUILD     configure for building on BUILD [guessed]
1471   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1472   --target=TARGET   configure for building compilers for TARGET [HOST]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477   case $ac_init_help in
1478      short | recursive ) echo "Configuration of gold 0.1:";;
1479    esac
1480   cat <<\_ACEOF
1481
1482 Optional Features:
1483   --disable-option-checking  ignore unrecognized --enable/--with options
1484   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486   --enable-silent-rules   less verbose build output (undo: "make V=1")
1487   --disable-silent-rules  verbose build output (undo: "make V=0")
1488   --enable-dependency-tracking
1489                           do not reject slow dependency extractors
1490   --disable-dependency-tracking
1491                           speeds up one-time build
1492   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1493   --enable-plugins        Enable support for plugins
1494   --enable-relro          enable -z relro in ELF linker by default
1495   --enable-targets        alternative target configurations
1496   --enable-default-hash-style={sysv,gnu,both}
1497                           use this default hash style
1498   --disable-nls           do not use Native Language Support
1499   --enable-werror         treat compile warnings as errors
1500   --enable-build-warnings enable build-time compiler warnings
1501   --enable-threads[=ARG]  multi-threaded linking [ARG={auto,yes,no}]
1502   --enable-maintainer-mode
1503                           enable make rules and dependencies not useful (and
1504                           sometimes confusing) to the casual installer
1505
1506 Optional Packages:
1507   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1508   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1509   --with-sysroot=DIR    search for usr/lib et al within DIR
1510   --with-lib-path=dir1:dir2...  set default LIB_PATH
1511   --with-gold-ldflags=FLAGS  additional link flags for gold
1512   --with-gold-ldadd=LIBS     additional libraries for gold
1513   --with-system-zlib      use installed libz
1514
1515 Some influential environment variables:
1516   CC          C compiler command
1517   CFLAGS      C compiler flags
1518   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1519               nonstandard directory <lib dir>
1520   LIBS        libraries to pass to the linker, e.g. -l<library>
1521   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522               you have headers in a nonstandard directory <include dir>
1523   CPP         C preprocessor
1524   CXX         C++ compiler command
1525   CXXFLAGS    C++ compiler flags
1526   YACC        The `Yet Another Compiler Compiler' implementation to use.
1527               Defaults to the first program found out of: `bison -y', `byacc',
1528               `yacc'.
1529   YFLAGS      The list of arguments that will be passed by default to $YACC.
1530               This script will default YFLAGS to the empty string to avoid a
1531               default value of `-d' given by some make applications.
1532   CXXCPP      C++ preprocessor
1533
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1536
1537 Report bugs to the package provider.
1538 _ACEOF
1539 ac_status=$?
1540 fi
1541
1542 if test "$ac_init_help" = "recursive"; then
1543   # If there are subdirs, report their specific --help.
1544   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545     test -d "$ac_dir" ||
1546       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547       continue
1548     ac_builddir=.
1549
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *)
1553   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554   # A ".." for each directory in $ac_dir_suffix.
1555   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556   case $ac_top_builddir_sub in
1557   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559   esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1565
1566 case $srcdir in
1567   .)  # We are building in place.
1568     ac_srcdir=.
1569     ac_top_srcdir=$ac_top_builddir_sub
1570     ac_abs_top_srcdir=$ac_pwd ;;
1571   [\\/]* | ?:[\\/]* )  # Absolute name.
1572     ac_srcdir=$srcdir$ac_dir_suffix;
1573     ac_top_srcdir=$srcdir
1574     ac_abs_top_srcdir=$srcdir ;;
1575   *) # Relative name.
1576     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577     ac_top_srcdir=$ac_top_build_prefix$srcdir
1578     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582     cd "$ac_dir" || { ac_status=$?; continue; }
1583     # Check for guested configure.
1584     if test -f "$ac_srcdir/configure.gnu"; then
1585       echo &&
1586       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587     elif test -f "$ac_srcdir/configure"; then
1588       echo &&
1589       $SHELL "$ac_srcdir/configure" --help=recursive
1590     else
1591       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592     fi || ac_status=$?
1593     cd "$ac_pwd" || { ac_status=$?; break; }
1594   done
1595 fi
1596
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599   cat <<\_ACEOF
1600 gold configure 0.1
1601 generated by GNU Autoconf 2.69
1602
1603 Copyright (C) 2012 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606 _ACEOF
1607   exit
1608 fi
1609
1610 ## ------------------------ ##
1611 ## Autoconf initialization. ##
1612 ## ------------------------ ##
1613
1614 # ac_fn_c_try_compile LINENO
1615 # --------------------------
1616 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_compile ()
1618 {
1619   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620   rm -f conftest.$ac_objext
1621   if { { ac_try="$ac_compile"
1622 case "(($ac_try" in
1623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624   *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628   (eval "$ac_compile") 2>conftest.err
1629   ac_status=$?
1630   if test -s conftest.err; then
1631     grep -v '^ *+' conftest.err >conftest.er1
1632     cat conftest.er1 >&5
1633     mv -f conftest.er1 conftest.err
1634   fi
1635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636   test $ac_status = 0; } && {
1637          test -z "$ac_c_werror_flag" ||
1638          test ! -s conftest.err
1639        } && test -s conftest.$ac_objext; then :
1640   ac_retval=0
1641 else
1642   $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645         ac_retval=1
1646 fi
1647   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648   as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_compile
1651
1652 # ac_fn_c_try_cpp LINENO
1653 # ----------------------
1654 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_cpp ()
1656 {
1657   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658   if { { ac_try="$ac_cpp conftest.$ac_ext"
1659 case "(($ac_try" in
1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661   *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1666   ac_status=$?
1667   if test -s conftest.err; then
1668     grep -v '^ *+' conftest.err >conftest.er1
1669     cat conftest.er1 >&5
1670     mv -f conftest.er1 conftest.err
1671   fi
1672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673   test $ac_status = 0; } > conftest.i && {
1674          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675          test ! -s conftest.err
1676        }; then :
1677   ac_retval=0
1678 else
1679   $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682     ac_retval=1
1683 fi
1684   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685   as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_cpp
1688
1689 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1690 # -------------------------------------------------------
1691 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1692 # the include files in INCLUDES and setting the cache variable VAR
1693 # accordingly.
1694 ac_fn_c_check_header_mongrel ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   if eval \${$3+:} false; then :
1698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \${$3+:} false; then :
1701   $as_echo_n "(cached) " >&6
1702 fi
1703 eval ac_res=\$$3
1704                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1706 else
1707   # Is the header compilable?
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1709 $as_echo_n "checking $2 usability... " >&6; }
1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h.  */
1712 $4
1713 #include <$2>
1714 _ACEOF
1715 if ac_fn_c_try_compile "$LINENO"; then :
1716   ac_header_compiler=yes
1717 else
1718   ac_header_compiler=no
1719 fi
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1722 $as_echo "$ac_header_compiler" >&6; }
1723
1724 # Is the header present?
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1726 $as_echo_n "checking $2 presence... " >&6; }
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h.  */
1729 #include <$2>
1730 _ACEOF
1731 if ac_fn_c_try_cpp "$LINENO"; then :
1732   ac_header_preproc=yes
1733 else
1734   ac_header_preproc=no
1735 fi
1736 rm -f conftest.err conftest.i conftest.$ac_ext
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1738 $as_echo "$ac_header_preproc" >&6; }
1739
1740 # So?  What about this header?
1741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1742   yes:no: )
1743     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1744 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1745     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1746 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1747     ;;
1748   no:yes:* )
1749     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1750 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1751     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1752 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1753     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1754 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1755     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1756 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1757     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1759     ;;
1760 esac
1761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764   $as_echo_n "(cached) " >&6
1765 else
1766   eval "$3=\$ac_header_compiler"
1767 fi
1768 eval ac_res=\$$3
1769                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1771 fi
1772   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773
1774 } # ac_fn_c_check_header_mongrel
1775
1776 # ac_fn_c_try_run LINENO
1777 # ----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779 # that executables *can* be run.
1780 ac_fn_c_try_run ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   if { { ac_try="$ac_link"
1784 case "(($ac_try" in
1785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786   *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790   (eval "$ac_link") 2>&5
1791   ac_status=$?
1792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794   { { case "(($ac_try" in
1795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796   *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800   (eval "$ac_try") 2>&5
1801   ac_status=$?
1802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803   test $ac_status = 0; }; }; then :
1804   ac_retval=0
1805 else
1806   $as_echo "$as_me: program exited with status $ac_status" >&5
1807        $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810        ac_retval=$ac_status
1811 fi
1812   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814   as_fn_set_status $ac_retval
1815
1816 } # ac_fn_c_try_run
1817
1818 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1819 # -------------------------------------------------------
1820 # Tests whether HEADER exists and can be compiled using the include files in
1821 # INCLUDES, setting the cache variable VAR accordingly.
1822 ac_fn_c_check_header_compile ()
1823 {
1824   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \${$3+:} false; then :
1828   $as_echo_n "(cached) " >&6
1829 else
1830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h.  */
1832 $4
1833 #include <$2>
1834 _ACEOF
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836   eval "$3=yes"
1837 else
1838   eval "$3=no"
1839 fi
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 fi
1842 eval ac_res=\$$3
1843                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847 } # ac_fn_c_check_header_compile
1848
1849 # ac_fn_c_try_link LINENO
1850 # -----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_link ()
1853 {
1854   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855   rm -f conftest.$ac_objext conftest$ac_exeext
1856   if { { ac_try="$ac_link"
1857 case "(($ac_try" in
1858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859   *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863   (eval "$ac_link") 2>conftest.err
1864   ac_status=$?
1865   if test -s conftest.err; then
1866     grep -v '^ *+' conftest.err >conftest.er1
1867     cat conftest.er1 >&5
1868     mv -f conftest.er1 conftest.err
1869   fi
1870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871   test $ac_status = 0; } && {
1872          test -z "$ac_c_werror_flag" ||
1873          test ! -s conftest.err
1874        } && test -s conftest$ac_exeext && {
1875          test "$cross_compiling" = yes ||
1876          test -x conftest$ac_exeext
1877        }; then :
1878   ac_retval=0
1879 else
1880   $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1882
1883         ac_retval=1
1884 fi
1885   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1886   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1887   # interfere with the next link command; also delete a directory that is
1888   # left behind by Apple's compiler.  We do this before executing the actions.
1889   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1890   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891   as_fn_set_status $ac_retval
1892
1893 } # ac_fn_c_try_link
1894
1895 # ac_fn_cxx_try_compile LINENO
1896 # ----------------------------
1897 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_cxx_try_compile ()
1899 {
1900   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901   rm -f conftest.$ac_objext
1902   if { { ac_try="$ac_compile"
1903 case "(($ac_try" in
1904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905   *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909   (eval "$ac_compile") 2>conftest.err
1910   ac_status=$?
1911   if test -s conftest.err; then
1912     grep -v '^ *+' conftest.err >conftest.er1
1913     cat conftest.er1 >&5
1914     mv -f conftest.er1 conftest.err
1915   fi
1916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917   test $ac_status = 0; } && {
1918          test -z "$ac_cxx_werror_flag" ||
1919          test ! -s conftest.err
1920        } && test -s conftest.$ac_objext; then :
1921   ac_retval=0
1922 else
1923   $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1925
1926         ac_retval=1
1927 fi
1928   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929   as_fn_set_status $ac_retval
1930
1931 } # ac_fn_cxx_try_compile
1932
1933 # ac_fn_c_check_func LINENO FUNC VAR
1934 # ----------------------------------
1935 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1936 ac_fn_c_check_func ()
1937 {
1938   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942   $as_echo_n "(cached) " >&6
1943 else
1944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h.  */
1946 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1948 #define $2 innocuous_$2
1949
1950 /* System header to define __stub macros and hopefully few prototypes,
1951     which can conflict with char $2 (); below.
1952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1953     <limits.h> exists even on freestanding compilers.  */
1954
1955 #ifdef __STDC__
1956 # include <limits.h>
1957 #else
1958 # include <assert.h>
1959 #endif
1960
1961 #undef $2
1962
1963 /* Override any GCC internal prototype to avoid an error.
1964    Use char because int might match the return type of a GCC
1965    builtin and then its argument prototype would still apply.  */
1966 #ifdef __cplusplus
1967 extern "C"
1968 #endif
1969 char $2 ();
1970 /* The GNU C library defines this for functions which it implements
1971     to always fail with ENOSYS.  Some functions are actually named
1972     something starting with __ and the normal name is an alias.  */
1973 #if defined __stub_$2 || defined __stub___$2
1974 choke me
1975 #endif
1976
1977 int
1978 main ()
1979 {
1980 return $2 ();
1981   ;
1982   return 0;
1983 }
1984 _ACEOF
1985 if ac_fn_c_try_link "$LINENO"; then :
1986   eval "$3=yes"
1987 else
1988   eval "$3=no"
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext \
1991     conftest$ac_exeext conftest.$ac_ext
1992 fi
1993 eval ac_res=\$$3
1994                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997
1998 } # ac_fn_c_check_func
1999
2000 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2001 # ---------------------------------------------
2002 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2003 # accordingly.
2004 ac_fn_c_check_decl ()
2005 {
2006   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007   as_decl_name=`echo $2|sed 's/ *(.*//'`
2008   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2010 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2011 if eval \${$3+:} false; then :
2012   $as_echo_n "(cached) " >&6
2013 else
2014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h.  */
2016 $4
2017 int
2018 main ()
2019 {
2020 #ifndef $as_decl_name
2021 #ifdef __cplusplus
2022   (void) $as_decl_use;
2023 #else
2024   (void) $as_decl_name;
2025 #endif
2026 #endif
2027
2028   ;
2029   return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033   eval "$3=yes"
2034 else
2035   eval "$3=no"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$3
2040                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043
2044 } # ac_fn_c_check_decl
2045
2046 # ac_fn_cxx_try_cpp LINENO
2047 # ------------------------
2048 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2049 ac_fn_cxx_try_cpp ()
2050 {
2051   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052   if { { ac_try="$ac_cpp conftest.$ac_ext"
2053 case "(($ac_try" in
2054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055   *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2060   ac_status=$?
2061   if test -s conftest.err; then
2062     grep -v '^ *+' conftest.err >conftest.er1
2063     cat conftest.er1 >&5
2064     mv -f conftest.er1 conftest.err
2065   fi
2066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067   test $ac_status = 0; } > conftest.i && {
2068          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2069          test ! -s conftest.err
2070        }; then :
2071   ac_retval=0
2072 else
2073   $as_echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2075
2076     ac_retval=1
2077 fi
2078   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079   as_fn_set_status $ac_retval
2080
2081 } # ac_fn_cxx_try_cpp
2082
2083 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2084 # ---------------------------------------------------------
2085 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2086 # the include files in INCLUDES and setting the cache variable VAR
2087 # accordingly.
2088 ac_fn_cxx_check_header_mongrel ()
2089 {
2090   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091   if eval \${$3+:} false; then :
2092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 $as_echo_n "checking for $2... " >&6; }
2094 if eval \${$3+:} false; then :
2095   $as_echo_n "(cached) " >&6
2096 fi
2097 eval ac_res=\$$3
2098                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100 else
2101   # Is the header compilable?
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2103 $as_echo_n "checking $2 usability... " >&6; }
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h.  */
2106 $4
2107 #include <$2>
2108 _ACEOF
2109 if ac_fn_cxx_try_compile "$LINENO"; then :
2110   ac_header_compiler=yes
2111 else
2112   ac_header_compiler=no
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2116 $as_echo "$ac_header_compiler" >&6; }
2117
2118 # Is the header present?
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2120 $as_echo_n "checking $2 presence... " >&6; }
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h.  */
2123 #include <$2>
2124 _ACEOF
2125 if ac_fn_cxx_try_cpp "$LINENO"; then :
2126   ac_header_preproc=yes
2127 else
2128   ac_header_preproc=no
2129 fi
2130 rm -f conftest.err conftest.i conftest.$ac_ext
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2132 $as_echo "$ac_header_preproc" >&6; }
2133
2134 # So?  What about this header?
2135 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2136   yes:no: )
2137     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2138 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2139     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2140 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2141     ;;
2142   no:yes:* )
2143     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2144 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2145     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2146 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2147     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2148 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2149     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2150 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2151     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2152 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2153     ;;
2154 esac
2155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158   $as_echo_n "(cached) " >&6
2159 else
2160   eval "$3=\$ac_header_compiler"
2161 fi
2162 eval ac_res=\$$3
2163                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 fi
2166   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167
2168 } # ac_fn_cxx_check_header_mongrel
2169
2170 # ac_fn_cxx_try_link LINENO
2171 # -------------------------
2172 # Try to link conftest.$ac_ext, and return whether this succeeded.
2173 ac_fn_cxx_try_link ()
2174 {
2175   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176   rm -f conftest.$ac_objext conftest$ac_exeext
2177   if { { ac_try="$ac_link"
2178 case "(($ac_try" in
2179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180   *) ac_try_echo=$ac_try;;
2181 esac
2182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 $as_echo "$ac_try_echo"; } >&5
2184   (eval "$ac_link") 2>conftest.err
2185   ac_status=$?
2186   if test -s conftest.err; then
2187     grep -v '^ *+' conftest.err >conftest.er1
2188     cat conftest.er1 >&5
2189     mv -f conftest.er1 conftest.err
2190   fi
2191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192   test $ac_status = 0; } && {
2193          test -z "$ac_cxx_werror_flag" ||
2194          test ! -s conftest.err
2195        } && test -s conftest$ac_exeext && {
2196          test "$cross_compiling" = yes ||
2197          test -x conftest$ac_exeext
2198        }; then :
2199   ac_retval=0
2200 else
2201   $as_echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2203
2204         ac_retval=1
2205 fi
2206   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2207   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2208   # interfere with the next link command; also delete a directory that is
2209   # left behind by Apple's compiler.  We do this before executing the actions.
2210   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212   as_fn_set_status $ac_retval
2213
2214 } # ac_fn_cxx_try_link
2215
2216 # ac_fn_cxx_check_func LINENO FUNC VAR
2217 # ------------------------------------
2218 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2219 ac_fn_cxx_check_func ()
2220 {
2221   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if eval \${$3+:} false; then :
2225   $as_echo_n "(cached) " >&6
2226 else
2227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h.  */
2229 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2231 #define $2 innocuous_$2
2232
2233 /* System header to define __stub macros and hopefully few prototypes,
2234     which can conflict with char $2 (); below.
2235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2236     <limits.h> exists even on freestanding compilers.  */
2237
2238 #ifdef __STDC__
2239 # include <limits.h>
2240 #else
2241 # include <assert.h>
2242 #endif
2243
2244 #undef $2
2245
2246 /* Override any GCC internal prototype to avoid an error.
2247    Use char because int might match the return type of a GCC
2248    builtin and then its argument prototype would still apply.  */
2249 #ifdef __cplusplus
2250 extern "C"
2251 #endif
2252 char $2 ();
2253 /* The GNU C library defines this for functions which it implements
2254     to always fail with ENOSYS.  Some functions are actually named
2255     something starting with __ and the normal name is an alias.  */
2256 #if defined __stub_$2 || defined __stub___$2
2257 choke me
2258 #endif
2259
2260 int
2261 main ()
2262 {
2263 return $2 ();
2264   ;
2265   return 0;
2266 }
2267 _ACEOF
2268 if ac_fn_cxx_try_link "$LINENO"; then :
2269   eval "$3=yes"
2270 else
2271   eval "$3=no"
2272 fi
2273 rm -f core conftest.err conftest.$ac_objext \
2274     conftest$ac_exeext conftest.$ac_ext
2275 fi
2276 eval ac_res=\$$3
2277                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280
2281 } # ac_fn_cxx_check_func
2282
2283 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2284 # -----------------------------------------------
2285 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2286 # accordingly.
2287 ac_fn_cxx_check_decl ()
2288 {
2289   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290   as_decl_name=`echo $2|sed 's/ *(.*//'`
2291   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2293 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2294 if eval \${$3+:} false; then :
2295   $as_echo_n "(cached) " >&6
2296 else
2297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h.  */
2299 $4
2300 int
2301 main ()
2302 {
2303 #ifndef $as_decl_name
2304 #ifdef __cplusplus
2305   (void) $as_decl_use;
2306 #else
2307   (void) $as_decl_name;
2308 #endif
2309 #endif
2310
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 if ac_fn_cxx_try_compile "$LINENO"; then :
2316   eval "$3=yes"
2317 else
2318   eval "$3=no"
2319 fi
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 fi
2322 eval ac_res=\$$3
2323                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324 $as_echo "$ac_res" >&6; }
2325   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2326
2327 } # ac_fn_cxx_check_decl
2328 cat >config.log <<_ACEOF
2329 This file contains any messages produced by compilers while
2330 running configure, to aid debugging if configure makes a mistake.
2331
2332 It was created by gold $as_me 0.1, which was
2333 generated by GNU Autoconf 2.69.  Invocation command line was
2334
2335   $ $0 $@
2336
2337 _ACEOF
2338 exec 5>>config.log
2339 {
2340 cat <<_ASUNAME
2341 ## --------- ##
2342 ## Platform. ##
2343 ## --------- ##
2344
2345 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2346 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2347 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2348 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2349 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2350
2351 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2352 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2353
2354 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2355 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2356 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2357 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2358 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2359 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2360 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2361
2362 _ASUNAME
2363
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367   IFS=$as_save_IFS
2368   test -z "$as_dir" && as_dir=.
2369     $as_echo "PATH: $as_dir"
2370   done
2371 IFS=$as_save_IFS
2372
2373 } >&5
2374
2375 cat >&5 <<_ACEOF
2376
2377
2378 ## ----------- ##
2379 ## Core tests. ##
2380 ## ----------- ##
2381
2382 _ACEOF
2383
2384
2385 # Keep a trace of the command line.
2386 # Strip out --no-create and --no-recursion so they do not pile up.
2387 # Strip out --silent because we don't want to record it for future runs.
2388 # Also quote any args containing shell meta-characters.
2389 # Make two passes to allow for proper duplicate-argument suppression.
2390 ac_configure_args=
2391 ac_configure_args0=
2392 ac_configure_args1=
2393 ac_must_keep_next=false
2394 for ac_pass in 1 2
2395 do
2396   for ac_arg
2397   do
2398     case $ac_arg in
2399     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2400     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2401     | -silent | --silent | --silen | --sile | --sil)
2402       continue ;;
2403     *\'*)
2404       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2405     esac
2406     case $ac_pass in
2407     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2408     2)
2409       as_fn_append ac_configure_args1 " '$ac_arg'"
2410       if test $ac_must_keep_next = true; then
2411         ac_must_keep_next=false # Got value, back to normal.
2412       else
2413         case $ac_arg in
2414           *=* | --config-cache | -C | -disable-* | --disable-* \
2415           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2416           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2417           | -with-* | --with-* | -without-* | --without-* | --x)
2418             case "$ac_configure_args0 " in
2419               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2420             esac
2421             ;;
2422           -* ) ac_must_keep_next=true ;;
2423         esac
2424       fi
2425       as_fn_append ac_configure_args " '$ac_arg'"
2426       ;;
2427     esac
2428   done
2429 done
2430 { ac_configure_args0=; unset ac_configure_args0;}
2431 { ac_configure_args1=; unset ac_configure_args1;}
2432
2433 # When interrupted or exit'd, cleanup temporary files, and complete
2434 # config.log.  We remove comments because anyway the quotes in there
2435 # would cause problems or look ugly.
2436 # WARNING: Use '\'' to represent an apostrophe within the trap.
2437 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2438 trap 'exit_status=$?
2439   # Save into config.log some information that might help in debugging.
2440   {
2441     echo
2442
2443     $as_echo "## ---------------- ##
2444 ## Cache variables. ##
2445 ## ---------------- ##"
2446     echo
2447     # The following way of writing the cache mishandles newlines in values,
2448 (
2449   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2450     eval ac_val=\$$ac_var
2451     case $ac_val in #(
2452     *${as_nl}*)
2453       case $ac_var in #(
2454       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2455 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2456       esac
2457       case $ac_var in #(
2458       _ | IFS | as_nl) ;; #(
2459       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2460       *) { eval $ac_var=; unset $ac_var;} ;;
2461       esac ;;
2462     esac
2463   done
2464   (set) 2>&1 |
2465     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2466     *${as_nl}ac_space=\ *)
2467       sed -n \
2468         "s/'\''/'\''\\\\'\'''\''/g;
2469           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2470       ;; #(
2471     *)
2472       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2473       ;;
2474     esac |
2475     sort
2476 )
2477     echo
2478
2479     $as_echo "## ----------------- ##
2480 ## Output variables. ##
2481 ## ----------------- ##"
2482     echo
2483     for ac_var in $ac_subst_vars
2484     do
2485       eval ac_val=\$$ac_var
2486       case $ac_val in
2487       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2488       esac
2489       $as_echo "$ac_var='\''$ac_val'\''"
2490     done | sort
2491     echo
2492
2493     if test -n "$ac_subst_files"; then
2494       $as_echo "## ------------------- ##
2495 ## File substitutions. ##
2496 ## ------------------- ##"
2497       echo
2498       for ac_var in $ac_subst_files
2499       do
2500         eval ac_val=\$$ac_var
2501         case $ac_val in
2502         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2503         esac
2504         $as_echo "$ac_var='\''$ac_val'\''"
2505       done | sort
2506       echo
2507     fi
2508
2509     if test -s confdefs.h; then
2510       $as_echo "## ----------- ##
2511 ## confdefs.h. ##
2512 ## ----------- ##"
2513       echo
2514       cat confdefs.h
2515       echo
2516     fi
2517     test "$ac_signal" != 0 &&
2518       $as_echo "$as_me: caught signal $ac_signal"
2519     $as_echo "$as_me: exit $exit_status"
2520   } >&5
2521   rm -f core *.core core.conftest.* &&
2522     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2523     exit $exit_status
2524 ' 0
2525 for ac_signal in 1 2 13 15; do
2526   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2527 done
2528 ac_signal=0
2529
2530 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2531 rm -f -r conftest* confdefs.h
2532
2533 $as_echo "/* confdefs.h */" > confdefs.h
2534
2535 # Predefined preprocessor variables.
2536
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_NAME "$PACKAGE_NAME"
2539 _ACEOF
2540
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2543 _ACEOF
2544
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2547 _ACEOF
2548
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_STRING "$PACKAGE_STRING"
2551 _ACEOF
2552
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2555 _ACEOF
2556
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_URL "$PACKAGE_URL"
2559 _ACEOF
2560
2561
2562 # Let the site file select an alternate cache file if it wants to.
2563 # Prefer an explicitly selected file to automatically selected ones.
2564 ac_site_file1=NONE
2565 ac_site_file2=NONE
2566 if test -n "$CONFIG_SITE"; then
2567   # We do not want a PATH search for config.site.
2568   case $CONFIG_SITE in #((
2569     -*)  ac_site_file1=./$CONFIG_SITE;;
2570     */*) ac_site_file1=$CONFIG_SITE;;
2571     *)   ac_site_file1=./$CONFIG_SITE;;
2572   esac
2573 elif test "x$prefix" != xNONE; then
2574   ac_site_file1=$prefix/share/config.site
2575   ac_site_file2=$prefix/etc/config.site
2576 else
2577   ac_site_file1=$ac_default_prefix/share/config.site
2578   ac_site_file2=$ac_default_prefix/etc/config.site
2579 fi
2580 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2581 do
2582   test "x$ac_site_file" = xNONE && continue
2583   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2584     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2585 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2586     sed 's/^/| /' "$ac_site_file" >&5
2587     . "$ac_site_file" \
2588       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 as_fn_error $? "failed to load site script $ac_site_file
2591 See \`config.log' for more details" "$LINENO" 5; }
2592   fi
2593 done
2594
2595 if test -r "$cache_file"; then
2596   # Some versions of bash will fail to source /dev/null (special files
2597   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2598   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2599     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2600 $as_echo "$as_me: loading cache $cache_file" >&6;}
2601     case $cache_file in
2602       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2603       *)                      . "./$cache_file";;
2604     esac
2605   fi
2606 else
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2608 $as_echo "$as_me: creating cache $cache_file" >&6;}
2609   >$cache_file
2610 fi
2611
2612 # Check that the precious variables saved in the cache have kept the same
2613 # value.
2614 ac_cache_corrupted=false
2615 for ac_var in $ac_precious_vars; do
2616   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2617   eval ac_new_set=\$ac_env_${ac_var}_set
2618   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2619   eval ac_new_val=\$ac_env_${ac_var}_value
2620   case $ac_old_set,$ac_new_set in
2621     set,)
2622       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2623 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2624       ac_cache_corrupted=: ;;
2625     ,set)
2626       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2627 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2628       ac_cache_corrupted=: ;;
2629     ,);;
2630     *)
2631       if test "x$ac_old_val" != "x$ac_new_val"; then
2632         # differences in whitespace do not lead to failure.
2633         ac_old_val_w=`echo x $ac_old_val`
2634         ac_new_val_w=`echo x $ac_new_val`
2635         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2636           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2637 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2638           ac_cache_corrupted=:
2639         else
2640           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2641 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2642           eval $ac_var=\$ac_old_val
2643         fi
2644         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2645 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2646         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2647 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2648       fi;;
2649   esac
2650   # Pass precious variables to config.status.
2651   if test "$ac_new_set" = set; then
2652     case $ac_new_val in
2653     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2654     *) ac_arg=$ac_var=$ac_new_val ;;
2655     esac
2656     case " $ac_configure_args " in
2657       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2658       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2659     esac
2660   fi
2661 done
2662 if $ac_cache_corrupted; then
2663   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2666 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2667   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2668 fi
2669 ## -------------------- ##
2670 ## Main body of script. ##
2671 ## -------------------- ##
2672
2673 ac_ext=c
2674 ac_cpp='$CPP $CPPFLAGS'
2675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678
2679
2680
2681
2682
2683
2684
2685 ac_aux_dir=
2686 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2687   if test -f "$ac_dir/install-sh"; then
2688     ac_aux_dir=$ac_dir
2689     ac_install_sh="$ac_aux_dir/install-sh -c"
2690     break
2691   elif test -f "$ac_dir/install.sh"; then
2692     ac_aux_dir=$ac_dir
2693     ac_install_sh="$ac_aux_dir/install.sh -c"
2694     break
2695   elif test -f "$ac_dir/shtool"; then
2696     ac_aux_dir=$ac_dir
2697     ac_install_sh="$ac_aux_dir/shtool install -c"
2698     break
2699   fi
2700 done
2701 if test -z "$ac_aux_dir"; then
2702   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2703 fi
2704
2705 # These three variables are undocumented and unsupported,
2706 # and are intended to be withdrawn in a future Autoconf release.
2707 # They can cause serious problems if a builder's source tree is in a directory
2708 # whose full name contains unusual characters.
2709 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2710 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2711 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2712
2713
2714 # Make sure we can run config.sub.
2715 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2716   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2717
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2719 $as_echo_n "checking build system type... " >&6; }
2720 if ${ac_cv_build+:} false; then :
2721   $as_echo_n "(cached) " >&6
2722 else
2723   ac_build_alias=$build_alias
2724 test "x$ac_build_alias" = x &&
2725   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2726 test "x$ac_build_alias" = x &&
2727   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2728 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2729   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2730
2731 fi
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2733 $as_echo "$ac_cv_build" >&6; }
2734 case $ac_cv_build in
2735 *-*-*) ;;
2736 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2737 esac
2738 build=$ac_cv_build
2739 ac_save_IFS=$IFS; IFS='-'
2740 set x $ac_cv_build
2741 shift
2742 build_cpu=$1
2743 build_vendor=$2
2744 shift; shift
2745 # Remember, the first character of IFS is used to create $*,
2746 # except with old shells:
2747 build_os=$*
2748 IFS=$ac_save_IFS
2749 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2750
2751
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2753 $as_echo_n "checking host system type... " >&6; }
2754 if ${ac_cv_host+:} false; then :
2755   $as_echo_n "(cached) " >&6
2756 else
2757   if test "x$host_alias" = x; then
2758   ac_cv_host=$ac_cv_build
2759 else
2760   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2761     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2762 fi
2763
2764 fi
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2766 $as_echo "$ac_cv_host" >&6; }
2767 case $ac_cv_host in
2768 *-*-*) ;;
2769 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2770 esac
2771 host=$ac_cv_host
2772 ac_save_IFS=$IFS; IFS='-'
2773 set x $ac_cv_host
2774 shift
2775 host_cpu=$1
2776 host_vendor=$2
2777 shift; shift
2778 # Remember, the first character of IFS is used to create $*,
2779 # except with old shells:
2780 host_os=$*
2781 IFS=$ac_save_IFS
2782 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2783
2784
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2786 $as_echo_n "checking target system type... " >&6; }
2787 if ${ac_cv_target+:} false; then :
2788   $as_echo_n "(cached) " >&6
2789 else
2790   if test "x$target_alias" = x; then
2791   ac_cv_target=$ac_cv_host
2792 else
2793   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2794     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2795 fi
2796
2797 fi
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2799 $as_echo "$ac_cv_target" >&6; }
2800 case $ac_cv_target in
2801 *-*-*) ;;
2802 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2803 esac
2804 target=$ac_cv_target
2805 ac_save_IFS=$IFS; IFS='-'
2806 set x $ac_cv_target
2807 shift
2808 target_cpu=$1
2809 target_vendor=$2
2810 shift; shift
2811 # Remember, the first character of IFS is used to create $*,
2812 # except with old shells:
2813 target_os=$*
2814 IFS=$ac_save_IFS
2815 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2816
2817
2818 # The aliases save the names the user supplied, while $host etc.
2819 # will get canonicalized.
2820 test -n "$target_alias" &&
2821   test "$program_prefix$program_suffix$program_transform_name" = \
2822     NONENONEs,x,x, &&
2823   program_prefix=${target_alias}-
2824
2825 am__api_version='1.15'
2826
2827 # Find a good install program.  We prefer a C program (faster),
2828 # so one script is as good as another.  But avoid the broken or
2829 # incompatible versions:
2830 # SysV /etc/install, /usr/sbin/install
2831 # SunOS /usr/etc/install
2832 # IRIX /sbin/install
2833 # AIX /bin/install
2834 # AmigaOS /C/install, which installs bootblocks on floppy discs
2835 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2836 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2837 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2838 # OS/2's system install, which has a completely different semantic
2839 # ./install, which can be erroneously created by make from ./install.sh.
2840 # Reject install programs that cannot install multiple files.
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2842 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2843 if test -z "$INSTALL"; then
2844 if ${ac_cv_path_install+:} false; then :
2845   $as_echo_n "(cached) " >&6
2846 else
2847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850   IFS=$as_save_IFS
2851   test -z "$as_dir" && as_dir=.
2852     # Account for people who put trailing slashes in PATH elements.
2853 case $as_dir/ in #((
2854   ./ | .// | /[cC]/* | \
2855   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2856   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2857   /usr/ucb/* ) ;;
2858   *)
2859     # OSF1 and SCO ODT 3.0 have their own names for install.
2860     # Don't use installbsd from OSF since it installs stuff as root
2861     # by default.
2862     for ac_prog in ginstall scoinst install; do
2863       for ac_exec_ext in '' $ac_executable_extensions; do
2864         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2865           if test $ac_prog = install &&
2866             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2867             # AIX install.  It has an incompatible calling convention.
2868             :
2869           elif test $ac_prog = install &&
2870             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2871             # program-specific install script used by HP pwplus--don't use.
2872             :
2873           else
2874             rm -rf conftest.one conftest.two conftest.dir
2875             echo one > conftest.one
2876             echo two > conftest.two
2877             mkdir conftest.dir
2878             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2879               test -s conftest.one && test -s conftest.two &&
2880               test -s conftest.dir/conftest.one &&
2881               test -s conftest.dir/conftest.two
2882             then
2883               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2884               break 3
2885             fi
2886           fi
2887         fi
2888       done
2889     done
2890     ;;
2891 esac
2892
2893   done
2894 IFS=$as_save_IFS
2895
2896 rm -rf conftest.one conftest.two conftest.dir
2897
2898 fi
2899   if test "${ac_cv_path_install+set}" = set; then
2900     INSTALL=$ac_cv_path_install
2901   else
2902     # As a last resort, use the slow shell script.  Don't cache a
2903     # value for INSTALL within a source directory, because that will
2904     # break other packages using the cache if that directory is
2905     # removed, or if the value is a relative name.
2906     INSTALL=$ac_install_sh
2907   fi
2908 fi
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2910 $as_echo "$INSTALL" >&6; }
2911
2912 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2913 # It thinks the first close brace ends the variable substitution.
2914 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2915
2916 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2917
2918 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2919
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2921 $as_echo_n "checking whether build environment is sane... " >&6; }
2922 # Reject unsafe characters in $srcdir or the absolute working directory
2923 # name.  Accept space and tab only in the latter.
2924 am_lf='
2925 '
2926 case `pwd` in
2927   *[\\\"\#\$\&\'\`$am_lf]*)
2928     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2929 esac
2930 case $srcdir in
2931   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2932     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2933 esac
2934
2935 # Do 'set' in a subshell so we don't clobber the current shell's
2936 # arguments.  Must try -L first in case configure is actually a
2937 # symlink; some systems play weird games with the mod time of symlinks
2938 # (eg FreeBSD returns the mod time of the symlink's containing
2939 # directory).
2940 if (
2941    am_has_slept=no
2942    for am_try in 1 2; do
2943      echo "timestamp, slept: $am_has_slept" > conftest.file
2944      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2945      if test "$*" = "X"; then
2946         # -L didn't work.
2947         set X `ls -t "$srcdir/configure" conftest.file`
2948      fi
2949      if test "$*" != "X $srcdir/configure conftest.file" \
2950         && test "$*" != "X conftest.file $srcdir/configure"; then
2951
2952         # If neither matched, then we have a broken ls.  This can happen
2953         # if, for instance, CONFIG_SHELL is bash and it inherits a
2954         # broken ls alias from the environment.  This has actually
2955         # happened.  Such a system could not be considered "sane".
2956         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2957   alias in your environment" "$LINENO" 5
2958      fi
2959      if test "$2" = conftest.file || test $am_try -eq 2; then
2960        break
2961      fi
2962      # Just in case.
2963      sleep 1
2964      am_has_slept=yes
2965    done
2966    test "$2" = conftest.file
2967    )
2968 then
2969    # Ok.
2970    :
2971 else
2972    as_fn_error $? "newly created file is older than distributed files!
2973 Check your system clock" "$LINENO" 5
2974 fi
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2976 $as_echo "yes" >&6; }
2977 # If we didn't sleep, we still need to ensure time stamps of config.status and
2978 # generated files are strictly newer.
2979 am_sleep_pid=
2980 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2981   ( sleep 1 ) &
2982   am_sleep_pid=$!
2983 fi
2984
2985 rm -f conftest.file
2986
2987 test "$program_prefix" != NONE &&
2988   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2989 # Use a double $ so make ignores it.
2990 test "$program_suffix" != NONE &&
2991   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2992 # Double any \ or $.
2993 # By default was `s,x,x', remove it if useless.
2994 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2995 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2996
2997 # Expand $ac_aux_dir to an absolute path.
2998 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2999
3000 if test x"${MISSING+set}" != xset; then
3001   case $am_aux_dir in
3002   *\ * | *\     *)
3003     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3004   *)
3005     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3006   esac
3007 fi
3008 # Use eval to expand $SHELL
3009 if eval "$MISSING --is-lightweight"; then
3010   am_missing_run="$MISSING "
3011 else
3012   am_missing_run=
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3014 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3015 fi
3016
3017 if test x"${install_sh+set}" != xset; then
3018   case $am_aux_dir in
3019   *\ * | *\     *)
3020     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3021   *)
3022     install_sh="\${SHELL} $am_aux_dir/install-sh"
3023   esac
3024 fi
3025
3026 # Installed binaries are usually stripped using 'strip' when the user
3027 # run "make install-strip".  However 'strip' might not be the right
3028 # tool to use in cross-compilation environments, therefore Automake
3029 # will honor the 'STRIP' environment variable to overrule this program.
3030 if test "$cross_compiling" != no; then
3031   if test -n "$ac_tool_prefix"; then
3032   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3033 set dummy ${ac_tool_prefix}strip; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_STRIP+:} false; then :
3037   $as_echo_n "(cached) " >&6
3038 else
3039   if test -n "$STRIP"; then
3040   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045   IFS=$as_save_IFS
3046   test -z "$as_dir" && as_dir=.
3047     for ac_exec_ext in '' $ac_executable_extensions; do
3048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051     break 2
3052   fi
3053 done
3054   done
3055 IFS=$as_save_IFS
3056
3057 fi
3058 fi
3059 STRIP=$ac_cv_prog_STRIP
3060 if test -n "$STRIP"; then
3061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3062 $as_echo "$STRIP" >&6; }
3063 else
3064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3066 fi
3067
3068
3069 fi
3070 if test -z "$ac_cv_prog_STRIP"; then
3071   ac_ct_STRIP=$STRIP
3072   # Extract the first word of "strip", so it can be a program name with args.
3073 set dummy strip; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3077   $as_echo_n "(cached) " >&6
3078 else
3079   if test -n "$ac_ct_STRIP"; then
3080   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085   IFS=$as_save_IFS
3086   test -z "$as_dir" && as_dir=.
3087     for ac_exec_ext in '' $ac_executable_extensions; do
3088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089     ac_cv_prog_ac_ct_STRIP="strip"
3090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091     break 2
3092   fi
3093 done
3094   done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3100 if test -n "$ac_ct_STRIP"; then
3101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3102 $as_echo "$ac_ct_STRIP" >&6; }
3103 else
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108   if test "x$ac_ct_STRIP" = x; then
3109     STRIP=":"
3110   else
3111     case $cross_compiling:$ac_tool_warned in
3112 yes:)
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3115 ac_tool_warned=yes ;;
3116 esac
3117     STRIP=$ac_ct_STRIP
3118   fi
3119 else
3120   STRIP="$ac_cv_prog_STRIP"
3121 fi
3122
3123 fi
3124 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3125
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3127 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3128 if test -z "$MKDIR_P"; then
3129   if ${ac_cv_path_mkdir+:} false; then :
3130   $as_echo_n "(cached) " >&6
3131 else
3132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3134 do
3135   IFS=$as_save_IFS
3136   test -z "$as_dir" && as_dir=.
3137     for ac_prog in mkdir gmkdir; do
3138          for ac_exec_ext in '' $ac_executable_extensions; do
3139            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3140            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3141              'mkdir (GNU coreutils) '* | \
3142              'mkdir (coreutils) '* | \
3143              'mkdir (fileutils) '4.1*)
3144                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3145                break 3;;
3146            esac
3147          done
3148        done
3149   done
3150 IFS=$as_save_IFS
3151
3152 fi
3153
3154   test -d ./--version && rmdir ./--version
3155   if test "${ac_cv_path_mkdir+set}" = set; then
3156     MKDIR_P="$ac_cv_path_mkdir -p"
3157   else
3158     # As a last resort, use the slow shell script.  Don't cache a
3159     # value for MKDIR_P within a source directory, because that will
3160     # break other packages using the cache if that directory is
3161     # removed, or if the value is a relative name.
3162     MKDIR_P="$ac_install_sh -d"
3163   fi
3164 fi
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3166 $as_echo "$MKDIR_P" >&6; }
3167
3168 for ac_prog in gawk mawk nawk awk
3169 do
3170   # Extract the first word of "$ac_prog", so it can be a program name with args.
3171 set dummy $ac_prog; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_AWK+:} false; then :
3175   $as_echo_n "(cached) " >&6
3176 else
3177   if test -n "$AWK"; then
3178   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183   IFS=$as_save_IFS
3184   test -z "$as_dir" && as_dir=.
3185     for ac_exec_ext in '' $ac_executable_extensions; do
3186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187     ac_cv_prog_AWK="$ac_prog"
3188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189     break 2
3190   fi
3191 done
3192   done
3193 IFS=$as_save_IFS
3194
3195 fi
3196 fi
3197 AWK=$ac_cv_prog_AWK
3198 if test -n "$AWK"; then
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3200 $as_echo "$AWK" >&6; }
3201 else
3202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 fi
3205
3206
3207   test -n "$AWK" && break
3208 done
3209
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3211 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3212 set x ${MAKE-make}
3213 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3214 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3215   $as_echo_n "(cached) " >&6
3216 else
3217   cat >conftest.make <<\_ACEOF
3218 SHELL = /bin/sh
3219 all:
3220         @echo '@@@%%%=$(MAKE)=@@@%%%'
3221 _ACEOF
3222 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3223 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3224   *@@@%%%=?*=@@@%%%*)
3225     eval ac_cv_prog_make_${ac_make}_set=yes;;
3226   *)
3227     eval ac_cv_prog_make_${ac_make}_set=no;;
3228 esac
3229 rm -f conftest.make
3230 fi
3231 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233 $as_echo "yes" >&6; }
3234   SET_MAKE=
3235 else
3236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238   SET_MAKE="MAKE=${MAKE-make}"
3239 fi
3240
3241 rm -rf .tst 2>/dev/null
3242 mkdir .tst 2>/dev/null
3243 if test -d .tst; then
3244   am__leading_dot=.
3245 else
3246   am__leading_dot=_
3247 fi
3248 rmdir .tst 2>/dev/null
3249
3250 # Check whether --enable-silent-rules was given.
3251 if test "${enable_silent_rules+set}" = set; then :
3252   enableval=$enable_silent_rules;
3253 fi
3254
3255 case $enable_silent_rules in # (((
3256   yes) AM_DEFAULT_VERBOSITY=0;;
3257    no) AM_DEFAULT_VERBOSITY=1;;
3258     *) AM_DEFAULT_VERBOSITY=1;;
3259 esac
3260 am_make=${MAKE-make}
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3262 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3263 if ${am_cv_make_support_nested_variables+:} false; then :
3264   $as_echo_n "(cached) " >&6
3265 else
3266   if $as_echo 'TRUE=$(BAR$(V))
3267 BAR0=false
3268 BAR1=true
3269 V=1
3270 am__doit:
3271         @$(TRUE)
3272 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3273   am_cv_make_support_nested_variables=yes
3274 else
3275   am_cv_make_support_nested_variables=no
3276 fi
3277 fi
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3279 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3280 if test $am_cv_make_support_nested_variables = yes; then
3281     AM_V='$(V)'
3282   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3283 else
3284   AM_V=$AM_DEFAULT_VERBOSITY
3285   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3286 fi
3287 AM_BACKSLASH='\'
3288
3289 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3290   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3291   # is not polluted with repeated "-I."
3292   am__isrc=' -I$(srcdir)'
3293   # test to see if srcdir already configured
3294   if test -f $srcdir/config.status; then
3295     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3296   fi
3297 fi
3298
3299 # test whether we have cygpath
3300 if test -z "$CYGPATH_W"; then
3301   if (cygpath --version) >/dev/null 2>/dev/null; then
3302     CYGPATH_W='cygpath -w'
3303   else
3304     CYGPATH_W=echo
3305   fi
3306 fi
3307
3308
3309 # Define the identity of the package.
3310  PACKAGE='gold'
3311  VERSION='0.1'
3312
3313
3314 cat >>confdefs.h <<_ACEOF
3315 #define PACKAGE "$PACKAGE"
3316 _ACEOF
3317
3318
3319 cat >>confdefs.h <<_ACEOF
3320 #define VERSION "$VERSION"
3321 _ACEOF
3322
3323 # Some tools Automake needs.
3324
3325 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3326
3327
3328 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3329
3330
3331 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3332
3333
3334 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3335
3336
3337 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3338
3339 # For better backward compatibility.  To be removed once Automake 1.9.x
3340 # dies out for good.  For more background, see:
3341 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3342 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3343 mkdir_p='$(MKDIR_P)'
3344
3345 # We need awk for the "check" target (and possibly the TAP driver).  The
3346 # system "awk" is bad on some platforms.
3347 # Always define AMTAR for backward compatibility.  Yes, it's still used
3348 # in the wild :-(  We should find a proper way to deprecate it ...
3349 AMTAR='$${TAR-tar}'
3350
3351
3352 # We'll loop over all known methods to create a tar archive until one works.
3353 _am_tools='gnutar  pax cpio none'
3354
3355 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3356
3357
3358
3359
3360
3361
3362 # POSIX will say in a future version that running "rm -f" with no argument
3363 # is OK; and we want to be able to make that assumption in our Makefile
3364 # recipes.  So use an aggressive probe to check that the usage we want is
3365 # actually supported "in the wild" to an acceptable degree.
3366 # See automake bug#10828.
3367 # To make any issue more visible, cause the running configure to be aborted
3368 # by default if the 'rm' program in use doesn't match our expectations; the
3369 # user can still override this though.
3370 if rm -f && rm -fr && rm -rf; then : OK; else
3371   cat >&2 <<'END'
3372 Oops!
3373
3374 Your 'rm' program seems unable to run without file operands specified
3375 on the command line, even when the '-f' option is present.  This is contrary
3376 to the behaviour of most rm programs out there, and not conforming with
3377 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3378
3379 Please tell bug-automake@gnu.org about your system, including the value
3380 of your $PATH and any error possibly output before this message.  This
3381 can help us improve future automake versions.
3382
3383 END
3384   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3385     echo 'Configuration will proceed anyway, since you have set the' >&2
3386     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3387     echo >&2
3388   else
3389     cat >&2 <<'END'
3390 Aborting the configuration process, to ensure you take notice of the issue.
3391
3392 You can download and install GNU coreutils to get an 'rm' implementation
3393 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3394
3395 If you want to complete the configuration process using your problematic
3396 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3397 to "yes", and re-run configure.
3398
3399 END
3400     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3401   fi
3402 fi
3403
3404
3405 ac_config_headers="$ac_config_headers config.h:config.in"
3406
3407
3408 DEPDIR="${am__leading_dot}deps"
3409
3410 ac_config_commands="$ac_config_commands depfiles"
3411
3412
3413 am_make=${MAKE-make}
3414 cat > confinc << 'END'
3415 am__doit:
3416         @echo this is the am__doit target
3417 .PHONY: am__doit
3418 END
3419 # If we don't find an include directive, just comment out the code.
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3421 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3422 am__include="#"
3423 am__quote=
3424 _am_result=none
3425 # First try GNU make style include.
3426 echo "include confinc" > confmf
3427 # Ignore all kinds of additional output from 'make'.
3428 case `$am_make -s -f confmf 2> /dev/null` in #(
3429 *the\ am__doit\ target*)
3430   am__include=include
3431   am__quote=
3432   _am_result=GNU
3433   ;;
3434 esac
3435 # Now try BSD make style include.
3436 if test "$am__include" = "#"; then
3437    echo '.include "confinc"' > confmf
3438    case `$am_make -s -f confmf 2> /dev/null` in #(
3439    *the\ am__doit\ target*)
3440      am__include=.include
3441      am__quote="\""
3442      _am_result=BSD
3443      ;;
3444    esac
3445 fi
3446
3447
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3449 $as_echo "$_am_result" >&6; }
3450 rm -f confinc confmf
3451
3452 # Check whether --enable-dependency-tracking was given.
3453 if test "${enable_dependency_tracking+set}" = set; then :
3454   enableval=$enable_dependency_tracking;
3455 fi
3456
3457 if test "x$enable_dependency_tracking" != xno; then
3458   am_depcomp="$ac_aux_dir/depcomp"
3459   AMDEPBACKSLASH='\'
3460   am__nodep='_no'
3461 fi
3462  if test "x$enable_dependency_tracking" != xno; then
3463   AMDEP_TRUE=
3464   AMDEP_FALSE='#'
3465 else
3466   AMDEP_TRUE='#'
3467   AMDEP_FALSE=
3468 fi
3469
3470
3471 ac_ext=c
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476 if test -n "$ac_tool_prefix"; then
3477   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3478 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_CC+:} false; then :
3482   $as_echo_n "(cached) " >&6
3483 else
3484   if test -n "$CC"; then
3485   ac_cv_prog_CC="$CC" # Let the user override the test.
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3489 do
3490   IFS=$as_save_IFS
3491   test -z "$as_dir" && as_dir=.
3492     for ac_exec_ext in '' $ac_executable_extensions; do
3493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496     break 2
3497   fi
3498 done
3499   done
3500 IFS=$as_save_IFS
3501
3502 fi
3503 fi
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3508 else
3509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511 fi
3512
3513
3514 fi
3515 if test -z "$ac_cv_prog_CC"; then
3516   ac_ct_CC=$CC
3517   # Extract the first word of "gcc", so it can be a program name with args.
3518 set dummy gcc; ac_word=$2
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 $as_echo_n "checking for $ac_word... " >&6; }
3521 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3522   $as_echo_n "(cached) " >&6
3523 else
3524   if test -n "$ac_ct_CC"; then
3525   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3526 else
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3529 do
3530   IFS=$as_save_IFS
3531   test -z "$as_dir" && as_dir=.
3532     for ac_exec_ext in '' $ac_executable_extensions; do
3533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534     ac_cv_prog_ac_ct_CC="gcc"
3535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536     break 2
3537   fi
3538 done
3539   done
3540 IFS=$as_save_IFS
3541
3542 fi
3543 fi
3544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3545 if test -n "$ac_ct_CC"; then
3546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3547 $as_echo "$ac_ct_CC" >&6; }
3548 else
3549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3551 fi
3552
3553   if test "x$ac_ct_CC" = x; then
3554     CC=""
3555   else
3556     case $cross_compiling:$ac_tool_warned in
3557 yes:)
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3560 ac_tool_warned=yes ;;
3561 esac
3562     CC=$ac_ct_CC
3563   fi
3564 else
3565   CC="$ac_cv_prog_CC"
3566 fi
3567
3568 if test -z "$CC"; then
3569           if test -n "$ac_tool_prefix"; then
3570     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3571 set dummy ${ac_tool_prefix}cc; 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 ${ac_cv_prog_CC+:} false; then :
3575   $as_echo_n "(cached) " >&6
3576 else
3577   if test -n "$CC"; then
3578   ac_cv_prog_CC="$CC" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587     ac_cv_prog_CC="${ac_tool_prefix}cc"
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 CC=$ac_cv_prog_CC
3598 if test -n "$CC"; then
3599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3600 $as_echo "$CC" >&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 fi
3609 if test -z "$CC"; then
3610   # Extract the first word of "cc", so it can be a program name with args.
3611 set dummy cc; 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 ${ac_cv_prog_CC+:} false; then :
3615   $as_echo_n "(cached) " >&6
3616 else
3617   if test -n "$CC"; then
3618   ac_cv_prog_CC="$CC" # Let the user override the test.
3619 else
3620   ac_prog_rejected=no
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624   IFS=$as_save_IFS
3625   test -z "$as_dir" && as_dir=.
3626     for ac_exec_ext in '' $ac_executable_extensions; do
3627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3629        ac_prog_rejected=yes
3630        continue
3631      fi
3632     ac_cv_prog_CC="cc"
3633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3634     break 2
3635   fi
3636 done
3637   done
3638 IFS=$as_save_IFS
3639
3640 if test $ac_prog_rejected = yes; then
3641   # We found a bogon in the path, so make sure we never use it.
3642   set dummy $ac_cv_prog_CC
3643   shift
3644   if test $# != 0; then
3645     # We chose a different compiler from the bogus one.
3646     # However, it has the same basename, so the bogon will be chosen
3647     # first if we set CC to just the basename; use the full file name.
3648     shift
3649     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3650   fi
3651 fi
3652 fi
3653 fi
3654 CC=$ac_cv_prog_CC
3655 if test -n "$CC"; then
3656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3657 $as_echo "$CC" >&6; }
3658 else
3659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 fi
3662
3663
3664 fi
3665 if test -z "$CC"; then
3666   if test -n "$ac_tool_prefix"; then
3667   for ac_prog in cl.exe
3668   do
3669     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if ${ac_cv_prog_CC+:} false; then :
3674   $as_echo_n "(cached) " >&6
3675 else
3676   if test -n "$CC"; then
3677   ac_cv_prog_CC="$CC" # Let the user override the test.
3678 else
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3681 do
3682   IFS=$as_save_IFS
3683   test -z "$as_dir" && as_dir=.
3684     for ac_exec_ext in '' $ac_executable_extensions; do
3685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3686     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3688     break 2
3689   fi
3690 done
3691   done
3692 IFS=$as_save_IFS
3693
3694 fi
3695 fi
3696 CC=$ac_cv_prog_CC
3697 if test -n "$CC"; then
3698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3699 $as_echo "$CC" >&6; }
3700 else
3701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3703 fi
3704
3705
3706     test -n "$CC" && break
3707   done
3708 fi
3709 if test -z "$CC"; then
3710   ac_ct_CC=$CC
3711   for ac_prog in cl.exe
3712 do
3713   # Extract the first word of "$ac_prog", so it can be a program name with args.
3714 set dummy $ac_prog; ac_word=$2
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716 $as_echo_n "checking for $ac_word... " >&6; }
3717 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3718   $as_echo_n "(cached) " >&6
3719 else
3720   if test -n "$ac_ct_CC"; then
3721   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3722 else
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726   IFS=$as_save_IFS
3727   test -z "$as_dir" && as_dir=.
3728     for ac_exec_ext in '' $ac_executable_extensions; do
3729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3730     ac_cv_prog_ac_ct_CC="$ac_prog"
3731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732     break 2
3733   fi
3734 done
3735   done
3736 IFS=$as_save_IFS
3737
3738 fi
3739 fi
3740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3741 if test -n "$ac_ct_CC"; then
3742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3743 $as_echo "$ac_ct_CC" >&6; }
3744 else
3745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3747 fi
3748
3749
3750   test -n "$ac_ct_CC" && break
3751 done
3752
3753   if test "x$ac_ct_CC" = x; then
3754     CC=""
3755   else
3756     case $cross_compiling:$ac_tool_warned in
3757 yes:)
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3760 ac_tool_warned=yes ;;
3761 esac
3762     CC=$ac_ct_CC
3763   fi
3764 fi
3765
3766 fi
3767
3768
3769 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3771 as_fn_error $? "no acceptable C compiler found in \$PATH
3772 See \`config.log' for more details" "$LINENO" 5; }
3773
3774 # Provide some information about the compiler.
3775 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3776 set X $ac_compile
3777 ac_compiler=$2
3778 for ac_option in --version -v -V -qversion; do
3779   { { ac_try="$ac_compiler $ac_option >&5"
3780 case "(($ac_try" in
3781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782   *) ac_try_echo=$ac_try;;
3783 esac
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3787   ac_status=$?
3788   if test -s conftest.err; then
3789     sed '10a\
3790 ... rest of stderr output deleted ...
3791          10q' conftest.err >conftest.er1
3792     cat conftest.er1 >&5
3793   fi
3794   rm -f conftest.er1 conftest.err
3795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796   test $ac_status = 0; }
3797 done
3798
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h.  */
3801
3802 int
3803 main ()
3804 {
3805
3806   ;
3807   return 0;
3808 }
3809 _ACEOF
3810 ac_clean_files_save=$ac_clean_files
3811 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3812 # Try to create an executable without -o first, disregard a.out.
3813 # It will help us diagnose broken compilers, and finding out an intuition
3814 # of exeext.
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3816 $as_echo_n "checking whether the C compiler works... " >&6; }
3817 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3818
3819 # The possible output files:
3820 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3821
3822 ac_rmfiles=
3823 for ac_file in $ac_files
3824 do
3825   case $ac_file in
3826     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3827     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3828   esac
3829 done
3830 rm -f $ac_rmfiles
3831
3832 if { { ac_try="$ac_link_default"
3833 case "(($ac_try" in
3834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835   *) ac_try_echo=$ac_try;;
3836 esac
3837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3838 $as_echo "$ac_try_echo"; } >&5
3839   (eval "$ac_link_default") 2>&5
3840   ac_status=$?
3841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3842   test $ac_status = 0; }; then :
3843   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3844 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3845 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3846 # so that the user can short-circuit this test for compilers unknown to
3847 # Autoconf.
3848 for ac_file in $ac_files ''
3849 do
3850   test -f "$ac_file" || continue
3851   case $ac_file in
3852     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3853         ;;
3854     [ab].out )
3855         # We found the default executable, but exeext='' is most
3856         # certainly right.
3857         break;;
3858     *.* )
3859         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3860         then :; else
3861            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3862         fi
3863         # We set ac_cv_exeext here because the later test for it is not
3864         # safe: cross compilers may not add the suffix if given an `-o'
3865         # argument, so we may need to know it at that point already.
3866         # Even if this section looks crufty: it has the advantage of
3867         # actually working.
3868         break;;
3869     * )
3870         break;;
3871   esac
3872 done
3873 test "$ac_cv_exeext" = no && ac_cv_exeext=
3874
3875 else
3876   ac_file=''
3877 fi
3878 if test -z "$ac_file"; then :
3879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 $as_echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3886 as_fn_error 77 "C compiler cannot create executables
3887 See \`config.log' for more details" "$LINENO" 5; }
3888 else
3889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3890 $as_echo "yes" >&6; }
3891 fi
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3893 $as_echo_n "checking for C compiler default output file name... " >&6; }
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3895 $as_echo "$ac_file" >&6; }
3896 ac_exeext=$ac_cv_exeext
3897
3898 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3899 ac_clean_files=$ac_clean_files_save
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3901 $as_echo_n "checking for suffix of executables... " >&6; }
3902 if { { ac_try="$ac_link"
3903 case "(($ac_try" in
3904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905   *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909   (eval "$ac_link") 2>&5
3910   ac_status=$?
3911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912   test $ac_status = 0; }; then :
3913   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3914 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3915 # work properly (i.e., refer to `conftest.exe'), while it won't with
3916 # `rm'.
3917 for ac_file in conftest.exe conftest conftest.*; do
3918   test -f "$ac_file" || continue
3919   case $ac_file in
3920     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3921     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3922           break;;
3923     * ) break;;
3924   esac
3925 done
3926 else
3927   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3929 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3930 See \`config.log' for more details" "$LINENO" 5; }
3931 fi
3932 rm -f conftest conftest$ac_cv_exeext
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3934 $as_echo "$ac_cv_exeext" >&6; }
3935
3936 rm -f conftest.$ac_ext
3937 EXEEXT=$ac_cv_exeext
3938 ac_exeext=$EXEEXT
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h.  */
3941 #include <stdio.h>
3942 int
3943 main ()
3944 {
3945 FILE *f = fopen ("conftest.out", "w");
3946  return ferror (f) || fclose (f) != 0;
3947
3948   ;
3949   return 0;
3950 }
3951 _ACEOF
3952 ac_clean_files="$ac_clean_files conftest.out"
3953 # Check that the compiler produces executables we can run.  If not, either
3954 # the compiler is broken, or we cross compile.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3956 $as_echo_n "checking whether we are cross compiling... " >&6; }
3957 if test "$cross_compiling" != yes; then
3958   { { ac_try="$ac_link"
3959 case "(($ac_try" in
3960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961   *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965   (eval "$ac_link") 2>&5
3966   ac_status=$?
3967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968   test $ac_status = 0; }
3969   if { ac_try='./conftest$ac_cv_exeext'
3970   { { case "(($ac_try" in
3971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972   *) ac_try_echo=$ac_try;;
3973 esac
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 $as_echo "$ac_try_echo"; } >&5
3976   (eval "$ac_try") 2>&5
3977   ac_status=$?
3978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979   test $ac_status = 0; }; }; then
3980     cross_compiling=no
3981   else
3982     if test "$cross_compiling" = maybe; then
3983         cross_compiling=yes
3984     else
3985         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987 as_fn_error $? "cannot run C compiled programs.
3988 If you meant to cross compile, use \`--host'.
3989 See \`config.log' for more details" "$LINENO" 5; }
3990     fi
3991   fi
3992 fi
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3994 $as_echo "$cross_compiling" >&6; }
3995
3996 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3997 ac_clean_files=$ac_clean_files_save
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3999 $as_echo_n "checking for suffix of object files... " >&6; }
4000 if ${ac_cv_objext+:} false; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h.  */
4005
4006 int
4007 main ()
4008 {
4009
4010   ;
4011   return 0;
4012 }
4013 _ACEOF
4014 rm -f conftest.o conftest.obj
4015 if { { ac_try="$ac_compile"
4016 case "(($ac_try" in
4017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018   *) ac_try_echo=$ac_try;;
4019 esac
4020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021 $as_echo "$ac_try_echo"; } >&5
4022   (eval "$ac_compile") 2>&5
4023   ac_status=$?
4024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025   test $ac_status = 0; }; then :
4026   for ac_file in conftest.o conftest.obj conftest.*; do
4027   test -f "$ac_file" || continue;
4028   case $ac_file in
4029     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4030     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4031        break;;
4032   esac
4033 done
4034 else
4035   $as_echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4037
4038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4040 as_fn_error $? "cannot compute suffix of object files: cannot compile
4041 See \`config.log' for more details" "$LINENO" 5; }
4042 fi
4043 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4046 $as_echo "$ac_cv_objext" >&6; }
4047 OBJEXT=$ac_cv_objext
4048 ac_objext=$OBJEXT
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4050 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4051 if ${ac_cv_c_compiler_gnu+:} false; then :
4052   $as_echo_n "(cached) " >&6
4053 else
4054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h.  */
4056
4057 int
4058 main ()
4059 {
4060 #ifndef __GNUC__
4061        choke me
4062 #endif
4063
4064   ;
4065   return 0;
4066 }
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069   ac_compiler_gnu=yes
4070 else
4071   ac_compiler_gnu=no
4072 fi
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4075
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4078 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4079 if test $ac_compiler_gnu = yes; then
4080   GCC=yes
4081 else
4082   GCC=
4083 fi
4084 ac_test_CFLAGS=${CFLAGS+set}
4085 ac_save_CFLAGS=$CFLAGS
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4087 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4088 if ${ac_cv_prog_cc_g+:} false; then :
4089   $as_echo_n "(cached) " >&6
4090 else
4091   ac_save_c_werror_flag=$ac_c_werror_flag
4092    ac_c_werror_flag=yes
4093    ac_cv_prog_cc_g=no
4094    CFLAGS="-g"
4095    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h.  */
4097
4098 int
4099 main ()
4100 {
4101
4102   ;
4103   return 0;
4104 }
4105 _ACEOF
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107   ac_cv_prog_cc_g=yes
4108 else
4109   CFLAGS=""
4110       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h.  */
4112
4113 int
4114 main ()
4115 {
4116
4117   ;
4118   return 0;
4119 }
4120 _ACEOF
4121 if ac_fn_c_try_compile "$LINENO"; then :
4122
4123 else
4124   ac_c_werror_flag=$ac_save_c_werror_flag
4125          CFLAGS="-g"
4126          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h.  */
4128
4129 int
4130 main ()
4131 {
4132
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138   ac_cv_prog_cc_g=yes
4139 fi
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 fi
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145    ac_c_werror_flag=$ac_save_c_werror_flag
4146 fi
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4148 $as_echo "$ac_cv_prog_cc_g" >&6; }
4149 if test "$ac_test_CFLAGS" = set; then
4150   CFLAGS=$ac_save_CFLAGS
4151 elif test $ac_cv_prog_cc_g = yes; then
4152   if test "$GCC" = yes; then
4153     CFLAGS="-g -O2"
4154   else
4155     CFLAGS="-g"
4156   fi
4157 else
4158   if test "$GCC" = yes; then
4159     CFLAGS="-O2"
4160   else
4161     CFLAGS=
4162   fi
4163 fi
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4165 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4166 if ${ac_cv_prog_cc_c89+:} false; then :
4167   $as_echo_n "(cached) " >&6
4168 else
4169   ac_cv_prog_cc_c89=no
4170 ac_save_CC=$CC
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h.  */
4173 #include <stdarg.h>
4174 #include <stdio.h>
4175 struct stat;
4176 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4177 struct buf { int x; };
4178 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4179 static char *e (p, i)
4180      char **p;
4181      int i;
4182 {
4183   return p[i];
4184 }
4185 static char *f (char * (*g) (char **, int), char **p, ...)
4186 {
4187   char *s;
4188   va_list v;
4189   va_start (v,p);
4190   s = g (p, va_arg (v,int));
4191   va_end (v);
4192   return s;
4193 }
4194
4195 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4196    function prototypes and stuff, but not '\xHH' hex character constants.
4197    These don't provoke an error unfortunately, instead are silently treated
4198    as 'x'.  The following induces an error, until -std is added to get
4199    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4200    array size at least.  It's necessary to write '\x00'==0 to get something
4201    that's true only with -std.  */
4202 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4203
4204 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4205    inside strings and character constants.  */
4206 #define FOO(x) 'x'
4207 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4208
4209 int test (int i, double x);
4210 struct s1 {int (*f) (int a);};
4211 struct s2 {int (*f) (double a);};
4212 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4213 int argc;
4214 char **argv;
4215 int
4216 main ()
4217 {
4218 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4224         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4225 do
4226   CC="$ac_save_CC $ac_arg"
4227   if ac_fn_c_try_compile "$LINENO"; then :
4228   ac_cv_prog_cc_c89=$ac_arg
4229 fi
4230 rm -f core conftest.err conftest.$ac_objext
4231   test "x$ac_cv_prog_cc_c89" != "xno" && break
4232 done
4233 rm -f conftest.$ac_ext
4234 CC=$ac_save_CC
4235
4236 fi
4237 # AC_CACHE_VAL
4238 case "x$ac_cv_prog_cc_c89" in
4239   x)
4240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4241 $as_echo "none needed" >&6; } ;;
4242   xno)
4243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4244 $as_echo "unsupported" >&6; } ;;
4245   *)
4246     CC="$CC $ac_cv_prog_cc_c89"
4247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4248 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4249 esac
4250 if test "x$ac_cv_prog_cc_c89" != xno; then :
4251
4252 fi
4253
4254 ac_ext=c
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259
4260 ac_ext=c
4261 ac_cpp='$CPP $CPPFLAGS'
4262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4266 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4267 if ${am_cv_prog_cc_c_o+:} false; then :
4268   $as_echo_n "(cached) " >&6
4269 else
4270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h.  */
4272
4273 int
4274 main ()
4275 {
4276
4277   ;
4278   return 0;
4279 }
4280 _ACEOF
4281   # Make sure it works both with $CC and with simple cc.
4282   # Following AC_PROG_CC_C_O, we do the test twice because some
4283   # compilers refuse to overwrite an existing .o file with -o,
4284   # though they will create one.
4285   am_cv_prog_cc_c_o=yes
4286   for am_i in 1 2; do
4287     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4288    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4289    ac_status=$?
4290    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291    (exit $ac_status); } \
4292          && test -f conftest2.$ac_objext; then
4293       : OK
4294     else
4295       am_cv_prog_cc_c_o=no
4296       break
4297     fi
4298   done
4299   rm -f core conftest*
4300   unset am_i
4301 fi
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4303 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4304 if test "$am_cv_prog_cc_c_o" != yes; then
4305    # Losing compiler, so override with the script.
4306    # FIXME: It is wrong to rewrite CC.
4307    # But if we don't then we get into trouble of one sort or another.
4308    # A longer-term fix would be to have automake use am__CC in this case,
4309    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4310    CC="$am_aux_dir/compile $CC"
4311 fi
4312 ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
4318
4319 depcc="$CC"   am_compiler_list=
4320
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4322 $as_echo_n "checking dependency style of $depcc... " >&6; }
4323 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4324   $as_echo_n "(cached) " >&6
4325 else
4326   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4327   # We make a subdir and do the tests there.  Otherwise we can end up
4328   # making bogus files that we don't know about and never remove.  For
4329   # instance it was reported that on HP-UX the gcc test will end up
4330   # making a dummy file named 'D' -- because '-MD' means "put the output
4331   # in D".
4332   rm -rf conftest.dir
4333   mkdir conftest.dir
4334   # Copy depcomp to subdir because otherwise we won't find it if we're
4335   # using a relative directory.
4336   cp "$am_depcomp" conftest.dir
4337   cd conftest.dir
4338   # We will build objects and dependencies in a subdirectory because
4339   # it helps to detect inapplicable dependency modes.  For instance
4340   # both Tru64's cc and ICC support -MD to output dependencies as a
4341   # side effect of compilation, but ICC will put the dependencies in
4342   # the current directory while Tru64 will put them in the object
4343   # directory.
4344   mkdir sub
4345
4346   am_cv_CC_dependencies_compiler_type=none
4347   if test "$am_compiler_list" = ""; then
4348      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4349   fi
4350   am__universal=false
4351   case " $depcc " in #(
4352      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4353      esac
4354
4355   for depmode in $am_compiler_list; do
4356     # Setup a source with many dependencies, because some compilers
4357     # like to wrap large dependency lists on column 80 (with \), and
4358     # we should not choose a depcomp mode which is confused by this.
4359     #
4360     # We need to recreate these files for each test, as the compiler may
4361     # overwrite some of them when testing with obscure command lines.
4362     # This happens at least with the AIX C compiler.
4363     : > sub/conftest.c
4364     for i in 1 2 3 4 5 6; do
4365       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4366       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4367       # Solaris 10 /bin/sh.
4368       echo '/* dummy */' > sub/conftst$i.h
4369     done
4370     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4371
4372     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4373     # mode.  It turns out that the SunPro C++ compiler does not properly
4374     # handle '-M -o', and we need to detect this.  Also, some Intel
4375     # versions had trouble with output in subdirs.
4376     am__obj=sub/conftest.${OBJEXT-o}
4377     am__minus_obj="-o $am__obj"
4378     case $depmode in
4379     gcc)
4380       # This depmode causes a compiler race in universal mode.
4381       test "$am__universal" = false || continue
4382       ;;
4383     nosideeffect)
4384       # After this tag, mechanisms are not by side-effect, so they'll
4385       # only be used when explicitly requested.
4386       if test "x$enable_dependency_tracking" = xyes; then
4387         continue
4388       else
4389         break
4390       fi
4391       ;;
4392     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4393       # This compiler won't grok '-c -o', but also, the minuso test has
4394       # not run yet.  These depmodes are late enough in the game, and
4395       # so weak that their functioning should not be impacted.
4396       am__obj=conftest.${OBJEXT-o}
4397       am__minus_obj=
4398       ;;
4399     none) break ;;
4400     esac
4401     if depmode=$depmode \
4402        source=sub/conftest.c object=$am__obj \
4403        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4404        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4405          >/dev/null 2>conftest.err &&
4406        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4407        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4408        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4409        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4410       # icc doesn't choke on unknown options, it will just issue warnings
4411       # or remarks (even with -Werror).  So we grep stderr for any message
4412       # that says an option was ignored or not supported.
4413       # When given -MP, icc 7.0 and 7.1 complain thusly:
4414       #   icc: Command line warning: ignoring option '-M'; no argument required
4415       # The diagnosis changed in icc 8.0:
4416       #   icc: Command line remark: option '-MP' not supported
4417       if (grep 'ignoring option' conftest.err ||
4418           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4419         am_cv_CC_dependencies_compiler_type=$depmode
4420         break
4421       fi
4422     fi
4423   done
4424
4425   cd ..
4426   rm -rf conftest.dir
4427 else
4428   am_cv_CC_dependencies_compiler_type=none
4429 fi
4430
4431 fi
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4433 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4434 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4435
4436  if
4437   test "x$enable_dependency_tracking" != xno \
4438   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4439   am__fastdepCC_TRUE=
4440   am__fastdepCC_FALSE='#'
4441 else
4442   am__fastdepCC_TRUE='#'
4443   am__fastdepCC_FALSE=
4444 fi
4445
4446
4447
4448 ac_ext=c
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4454 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4455 # On Suns, sometimes $CPP names a directory.
4456 if test -n "$CPP" && test -d "$CPP"; then
4457   CPP=
4458 fi
4459 if test -z "$CPP"; then
4460   if ${ac_cv_prog_CPP+:} false; then :
4461   $as_echo_n "(cached) " >&6
4462 else
4463       # Double quotes because CPP needs to be expanded
4464     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4465     do
4466       ac_preproc_ok=false
4467 for ac_c_preproc_warn_flag in '' yes
4468 do
4469   # Use a header file that comes with gcc, so configuring glibc
4470   # with a fresh cross-compiler works.
4471   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4472   # <limits.h> exists even on freestanding compilers.
4473   # On the NeXT, cc -E runs the code through the compiler's parser,
4474   # not just through cpp. "Syntax error" is here to catch this case.
4475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h.  */
4477 #ifdef __STDC__
4478 # include <limits.h>
4479 #else
4480 # include <assert.h>
4481 #endif
4482                      Syntax error
4483 _ACEOF
4484 if ac_fn_c_try_cpp "$LINENO"; then :
4485
4486 else
4487   # Broken: fails on valid input.
4488 continue
4489 fi
4490 rm -f conftest.err conftest.i conftest.$ac_ext
4491
4492   # OK, works on sane cases.  Now check whether nonexistent headers
4493   # can be detected and how.
4494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h.  */
4496 #include <ac_nonexistent.h>
4497 _ACEOF
4498 if ac_fn_c_try_cpp "$LINENO"; then :
4499   # Broken: success on invalid input.
4500 continue
4501 else
4502   # Passes both tests.
4503 ac_preproc_ok=:
4504 break
4505 fi
4506 rm -f conftest.err conftest.i conftest.$ac_ext
4507
4508 done
4509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4510 rm -f conftest.i conftest.err conftest.$ac_ext
4511 if $ac_preproc_ok; then :
4512   break
4513 fi
4514
4515     done
4516     ac_cv_prog_CPP=$CPP
4517
4518 fi
4519   CPP=$ac_cv_prog_CPP
4520 else
4521   ac_cv_prog_CPP=$CPP
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4524 $as_echo "$CPP" >&6; }
4525 ac_preproc_ok=false
4526 for ac_c_preproc_warn_flag in '' yes
4527 do
4528   # Use a header file that comes with gcc, so configuring glibc
4529   # with a fresh cross-compiler works.
4530   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531   # <limits.h> exists even on freestanding compilers.
4532   # On the NeXT, cc -E runs the code through the compiler's parser,
4533   # not just through cpp. "Syntax error" is here to catch this case.
4534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h.  */
4536 #ifdef __STDC__
4537 # include <limits.h>
4538 #else
4539 # include <assert.h>
4540 #endif
4541                      Syntax error
4542 _ACEOF
4543 if ac_fn_c_try_cpp "$LINENO"; then :
4544
4545 else
4546   # Broken: fails on valid input.
4547 continue
4548 fi
4549 rm -f conftest.err conftest.i conftest.$ac_ext
4550
4551   # OK, works on sane cases.  Now check whether nonexistent headers
4552   # can be detected and how.
4553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h.  */
4555 #include <ac_nonexistent.h>
4556 _ACEOF
4557 if ac_fn_c_try_cpp "$LINENO"; then :
4558   # Broken: success on invalid input.
4559 continue
4560 else
4561   # Passes both tests.
4562 ac_preproc_ok=:
4563 break
4564 fi
4565 rm -f conftest.err conftest.i conftest.$ac_ext
4566
4567 done
4568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4569 rm -f conftest.i conftest.err conftest.$ac_ext
4570 if $ac_preproc_ok; then :
4571
4572 else
4573   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4575 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4576 See \`config.log' for more details" "$LINENO" 5; }
4577 fi
4578
4579 ac_ext=c
4580 ac_cpp='$CPP $CPPFLAGS'
4581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4584
4585
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4587 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4588 if ${ac_cv_path_GREP+:} false; then :
4589   $as_echo_n "(cached) " >&6
4590 else
4591   if test -z "$GREP"; then
4592   ac_path_GREP_found=false
4593   # Loop through the user's path and test for each of PROGNAME-LIST
4594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4596 do
4597   IFS=$as_save_IFS
4598   test -z "$as_dir" && as_dir=.
4599     for ac_prog in grep ggrep; do
4600     for ac_exec_ext in '' $ac_executable_extensions; do
4601       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4602       as_fn_executable_p "$ac_path_GREP" || continue
4603 # Check for GNU ac_path_GREP and select it if it is found.
4604   # Check for GNU $ac_path_GREP
4605 case `"$ac_path_GREP" --version 2>&1` in
4606 *GNU*)
4607   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4608 *)
4609   ac_count=0
4610   $as_echo_n 0123456789 >"conftest.in"
4611   while :
4612   do
4613     cat "conftest.in" "conftest.in" >"conftest.tmp"
4614     mv "conftest.tmp" "conftest.in"
4615     cp "conftest.in" "conftest.nl"
4616     $as_echo 'GREP' >> "conftest.nl"
4617     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4618     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4619     as_fn_arith $ac_count + 1 && ac_count=$as_val
4620     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4621       # Best one so far, save it but keep looking for a better one
4622       ac_cv_path_GREP="$ac_path_GREP"
4623       ac_path_GREP_max=$ac_count
4624     fi
4625     # 10*(2^10) chars as input seems more than enough
4626     test $ac_count -gt 10 && break
4627   done
4628   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4629 esac
4630
4631       $ac_path_GREP_found && break 3
4632     done
4633   done
4634   done
4635 IFS=$as_save_IFS
4636   if test -z "$ac_cv_path_GREP"; then
4637     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4638   fi
4639 else
4640   ac_cv_path_GREP=$GREP
4641 fi
4642
4643 fi
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4645 $as_echo "$ac_cv_path_GREP" >&6; }
4646  GREP="$ac_cv_path_GREP"
4647
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4650 $as_echo_n "checking for egrep... " >&6; }
4651 if ${ac_cv_path_EGREP+:} false; then :
4652   $as_echo_n "(cached) " >&6
4653 else
4654   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4655    then ac_cv_path_EGREP="$GREP -E"
4656    else
4657      if test -z "$EGREP"; then
4658   ac_path_EGREP_found=false
4659   # Loop through the user's path and test for each of PROGNAME-LIST
4660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665     for ac_prog in egrep; do
4666     for ac_exec_ext in '' $ac_executable_extensions; do
4667       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4668       as_fn_executable_p "$ac_path_EGREP" || continue
4669 # Check for GNU ac_path_EGREP and select it if it is found.
4670   # Check for GNU $ac_path_EGREP
4671 case `"$ac_path_EGREP" --version 2>&1` in
4672 *GNU*)
4673   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4674 *)
4675   ac_count=0
4676   $as_echo_n 0123456789 >"conftest.in"
4677   while :
4678   do
4679     cat "conftest.in" "conftest.in" >"conftest.tmp"
4680     mv "conftest.tmp" "conftest.in"
4681     cp "conftest.in" "conftest.nl"
4682     $as_echo 'EGREP' >> "conftest.nl"
4683     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4684     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4685     as_fn_arith $ac_count + 1 && ac_count=$as_val
4686     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4687       # Best one so far, save it but keep looking for a better one
4688       ac_cv_path_EGREP="$ac_path_EGREP"
4689       ac_path_EGREP_max=$ac_count
4690     fi
4691     # 10*(2^10) chars as input seems more than enough
4692     test $ac_count -gt 10 && break
4693   done
4694   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4695 esac
4696
4697       $ac_path_EGREP_found && break 3
4698     done
4699   done
4700   done
4701 IFS=$as_save_IFS
4702   if test -z "$ac_cv_path_EGREP"; then
4703     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4704   fi
4705 else
4706   ac_cv_path_EGREP=$EGREP
4707 fi
4708
4709    fi
4710 fi
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4712 $as_echo "$ac_cv_path_EGREP" >&6; }
4713  EGREP="$ac_cv_path_EGREP"
4714
4715
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4717 $as_echo_n "checking for ANSI C header files... " >&6; }
4718 if ${ac_cv_header_stdc+:} false; then :
4719   $as_echo_n "(cached) " >&6
4720 else
4721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h.  */
4723 #include <stdlib.h>
4724 #include <stdarg.h>
4725 #include <string.h>
4726 #include <float.h>
4727
4728 int
4729 main ()
4730 {
4731
4732   ;
4733   return 0;
4734 }
4735 _ACEOF
4736 if ac_fn_c_try_compile "$LINENO"; then :
4737   ac_cv_header_stdc=yes
4738 else
4739   ac_cv_header_stdc=no
4740 fi
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742
4743 if test $ac_cv_header_stdc = yes; then
4744   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h.  */
4747 #include <string.h>
4748
4749 _ACEOF
4750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4751   $EGREP "memchr" >/dev/null 2>&1; then :
4752
4753 else
4754   ac_cv_header_stdc=no
4755 fi
4756 rm -f conftest*
4757
4758 fi
4759
4760 if test $ac_cv_header_stdc = yes; then
4761   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h.  */
4764 #include <stdlib.h>
4765
4766 _ACEOF
4767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768   $EGREP "free" >/dev/null 2>&1; then :
4769
4770 else
4771   ac_cv_header_stdc=no
4772 fi
4773 rm -f conftest*
4774
4775 fi
4776
4777 if test $ac_cv_header_stdc = yes; then
4778   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4779   if test "$cross_compiling" = yes; then :
4780   :
4781 else
4782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h.  */
4784 #include <ctype.h>
4785 #include <stdlib.h>
4786 #if ((' ' & 0x0FF) == 0x020)
4787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4789 #else
4790 # define ISLOWER(c) \
4791                    (('a' <= (c) && (c) <= 'i') \
4792                      || ('j' <= (c) && (c) <= 'r') \
4793                      || ('s' <= (c) && (c) <= 'z'))
4794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4795 #endif
4796
4797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4798 int
4799 main ()
4800 {
4801   int i;
4802   for (i = 0; i < 256; i++)
4803     if (XOR (islower (i), ISLOWER (i))
4804         || toupper (i) != TOUPPER (i))
4805       return 2;
4806   return 0;
4807 }
4808 _ACEOF
4809 if ac_fn_c_try_run "$LINENO"; then :
4810
4811 else
4812   ac_cv_header_stdc=no
4813 fi
4814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4815   conftest.$ac_objext conftest.beam conftest.$ac_ext
4816 fi
4817
4818 fi
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4821 $as_echo "$ac_cv_header_stdc" >&6; }
4822 if test $ac_cv_header_stdc = yes; then
4823
4824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4825
4826 fi
4827
4828 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4829 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4830                   inttypes.h stdint.h unistd.h
4831 do :
4832   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4833 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4834 "
4835 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4836   cat >>confdefs.h <<_ACEOF
4837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4838 _ACEOF
4839
4840 fi
4841
4842 done
4843
4844
4845
4846   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4847 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4848   MINIX=yes
4849 else
4850   MINIX=
4851 fi
4852
4853
4854   if test "$MINIX" = yes; then
4855
4856 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4857
4858
4859 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4860
4861
4862 $as_echo "#define _MINIX 1" >>confdefs.h
4863
4864   fi
4865
4866
4867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4868 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4869 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4870   $as_echo_n "(cached) " >&6
4871 else
4872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h.  */
4874
4875 #         define __EXTENSIONS__ 1
4876           $ac_includes_default
4877 int
4878 main ()
4879 {
4880
4881   ;
4882   return 0;
4883 }
4884 _ACEOF
4885 if ac_fn_c_try_compile "$LINENO"; then :
4886   ac_cv_safe_to_define___extensions__=yes
4887 else
4888   ac_cv_safe_to_define___extensions__=no
4889 fi
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4893 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4894   test $ac_cv_safe_to_define___extensions__ = yes &&
4895     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4896
4897   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4898
4899   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4900
4901   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4902
4903   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4904
4905
4906
4907 # PR 14072
4908
4909
4910
4911 # Check whether --with-sysroot was given.
4912 if test "${with_sysroot+set}" = set; then :
4913   withval=$with_sysroot; sysroot=$withval
4914 else
4915   sysroot=no
4916 fi
4917
4918
4919 if test "$sysroot" = "yes"; then
4920   sysroot='${exec_prefix}/${target_alias}/sys-root'
4921 elif test "$sysroot" = "no"; then
4922   sysroot=
4923 fi
4924
4925 sysroot_relocatable=0
4926 if test -n "$sysroot"; then
4927   case "$sysroot" in
4928     "${prefix}" | "${prefix}/"* | \
4929     "${exec_prefix}" | "${exec_prefix}/"* | \
4930     '${prefix}' | '${prefix}/'*| \
4931     '${exec_prefix}' | '${exec_prefix}/'*)
4932       sysroot_relocatable=1
4933       ;;
4934   esac
4935 fi
4936
4937
4938 cat >>confdefs.h <<_ACEOF
4939 #define TARGET_SYSTEM_ROOT "$sysroot"
4940 _ACEOF
4941
4942
4943 cat >>confdefs.h <<_ACEOF
4944 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
4945 _ACEOF
4946
4947
4948
4949 installed_linker=ld.gold
4950 # Check whether --enable-gold was given.
4951 if test "${enable_gold+set}" = set; then :
4952   enableval=$enable_gold; case "${enableval}" in
4953  default)
4954    install_as_default=yes
4955    ;;
4956  yes)
4957    if test x${enable_ld} = xno; then
4958      install_as_default=yes
4959    fi
4960    ;;
4961  esac
4962 else
4963   install_as_default=no
4964 fi
4965
4966
4967
4968
4969
4970   maybe_plugins=no
4971   for ac_header in dlfcn.h
4972 do :
4973   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4974 "
4975 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4976   cat >>confdefs.h <<_ACEOF
4977 #define HAVE_DLFCN_H 1
4978 _ACEOF
4979  maybe_plugins=yes
4980 fi
4981
4982 done
4983
4984   for ac_header in windows.h
4985 do :
4986   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4987 "
4988 if test "x$ac_cv_header_windows_h" = xyes; then :
4989   cat >>confdefs.h <<_ACEOF
4990 #define HAVE_WINDOWS_H 1
4991 _ACEOF
4992  maybe_plugins=yes
4993 fi
4994
4995 done
4996
4997
4998   # Check whether --enable-plugins was given.
4999 if test "${enable_plugins+set}" = set; then :
5000   enableval=$enable_plugins; case "${enableval}" in
5001       no) plugins=no ;;
5002       *) plugins=yes
5003          if test "$maybe_plugins" != "yes" ; then
5004            as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5005          fi ;;
5006      esac
5007 else
5008   plugins=$maybe_plugins
5009
5010 fi
5011
5012   if test "$plugins" = "yes"; then
5013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5014 $as_echo_n "checking for library containing dlsym... " >&6; }
5015 if ${ac_cv_search_dlsym+:} false; then :
5016   $as_echo_n "(cached) " >&6
5017 else
5018   ac_func_search_save_LIBS=$LIBS
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h.  */
5021
5022 /* Override any GCC internal prototype to avoid an error.
5023    Use char because int might match the return type of a GCC
5024    builtin and then its argument prototype would still apply.  */
5025 #ifdef __cplusplus
5026 extern "C"
5027 #endif
5028 char dlsym ();
5029 int
5030 main ()
5031 {
5032 return dlsym ();
5033   ;
5034   return 0;
5035 }
5036 _ACEOF
5037 for ac_lib in '' dl; do
5038   if test -z "$ac_lib"; then
5039     ac_res="none required"
5040   else
5041     ac_res=-l$ac_lib
5042     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5043   fi
5044   if ac_fn_c_try_link "$LINENO"; then :
5045   ac_cv_search_dlsym=$ac_res
5046 fi
5047 rm -f core conftest.err conftest.$ac_objext \
5048     conftest$ac_exeext
5049   if ${ac_cv_search_dlsym+:} false; then :
5050   break
5051 fi
5052 done
5053 if ${ac_cv_search_dlsym+:} false; then :
5054
5055 else
5056   ac_cv_search_dlsym=no
5057 fi
5058 rm conftest.$ac_ext
5059 LIBS=$ac_func_search_save_LIBS
5060 fi
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5062 $as_echo "$ac_cv_search_dlsym" >&6; }
5063 ac_res=$ac_cv_search_dlsym
5064 if test "$ac_res" != no; then :
5065   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5066
5067 fi
5068
5069   fi
5070
5071 if test "$plugins" = "yes"; then
5072
5073 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5074
5075 fi
5076  if test "$plugins" = "yes"; then
5077   PLUGINS_TRUE=
5078   PLUGINS_FALSE='#'
5079 else
5080   PLUGINS_TRUE='#'
5081   PLUGINS_FALSE=
5082 fi
5083
5084
5085 # Decide if -z relro should be enabled in ELF linker by default.
5086 ac_default_ld_z_relro=unset
5087 # Provide a configure time option to override our default.
5088 # Check whether --enable-relro was given.
5089 if test "${enable_relro+set}" = set; then :
5090   enableval=$enable_relro; case "${enableval}" in
5091   yes)  ac_default_ld_z_relro=1 ;;
5092   no)  ac_default_ld_z_relro=0 ;;
5093 esac
5094 fi
5095 if test "${ac_default_ld_z_relro}" = unset; then
5096   ac_default_ld_z_relro=1
5097 fi
5098
5099 cat >>confdefs.h <<_ACEOF
5100 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
5101 _ACEOF
5102
5103
5104 # Check whether --enable-targets was given.
5105 if test "${enable_targets+set}" = set; then :
5106   enableval=$enable_targets; case "${enableval}" in
5107   yes | "")
5108     as_fn_error $? "--enable-targets option must specify target names or 'all'" "$LINENO" 5
5109     ;;
5110   no)
5111     enable_targets=
5112     ;;
5113   *)
5114     enable_targets=$enableval
5115     ;;
5116 esac
5117 else
5118   # For now, enable all targets by default
5119  enable_targets=all
5120
5121 fi
5122
5123
5124 # Canonicalize the enabled targets.
5125 if test -n "$enable_targets"; then
5126   for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
5127     result=`$ac_config_sub $targ 2>/dev/null`
5128     if test -n "$result"; then
5129       canon_targets="$canon_targets $result"
5130     else
5131       # Permit unrecognized target names, like "all".
5132       canon_targets="$canon_targets $targ"
5133     fi
5134   done
5135 fi
5136
5137 # Decide which "--hash-style" to use by default
5138 # Provide a configure time option to override our default.
5139 # Check whether --enable-default-hash-style was given.
5140 if test "${enable_default_hash_style+set}" = set; then :
5141   enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
5142   sysv | gnu | both) ;;
5143   *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
5144 esac
5145 else
5146   case "${target}" in
5147   # Enable gnu hash only on GNU targets, but not mips
5148   mips*-*-*) enable_default_hash_style=sysv ;;
5149   *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
5150   *) enable_default_hash_style=sysv ;;
5151 esac
5152 fi
5153
5154
5155
5156 cat >>confdefs.h <<_ACEOF
5157 #define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
5158 _ACEOF
5159
5160
5161 # See which specific instantiations we need.
5162 targetobjs=
5163 all_targets=
5164 default_machine=
5165 default_size=
5166 default_big_endian=
5167 default_osabi=ELFOSABI_NONE
5168 targ_32_little=
5169 targ_32_big=
5170 targ_64_little=
5171 targ_64_big=
5172 for targ in $target $canon_targets; do
5173   if test "$targ" = "all"; then
5174     targ_32_little=yes
5175     targ_32_big=yes
5176     targ_64_little=yes
5177     targ_64_big=yes
5178     all_targets=yes
5179   else
5180     . ${srcdir}/configure.tgt
5181
5182     if test "$targ_obj" = "UNKNOWN"; then
5183       as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
5184     else
5185       targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
5186       if test "$targ_extra_obj" != ""; then
5187         targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5188       fi
5189       if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5190           if test "$targ_big_endian" = "true" \
5191               -o "$targ_extra_big_endian" = "true"; then
5192               targ_32_big=yes
5193           fi
5194           if test "$targ_big_endian" = "false" \
5195               -o "$targ_extra_big_endian" = "false"; then
5196               targ_32_little=yes
5197           fi
5198       fi
5199       if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5200           if test "$targ_big_endian" = "true" \
5201               -o "$targ_extra_big_endian" = "true"; then
5202               targ_64_big=yes
5203           fi
5204           if test "$targ_big_endian" = "false" \
5205               -o "$targ_extra_big_endian" = "false"; then
5206               targ_64_little=yes
5207           fi
5208       fi
5209
5210       if test "$target" = "$targ"; then
5211         default_machine=$targ_machine
5212         default_size=$targ_size
5213         default_big_endian=$targ_big_endian
5214         default_osabi=$targ_osabi
5215
5216          if test "$targ_obj" = "aarch64"; then
5217   DEFAULT_TARGET_AARCH64_TRUE=
5218   DEFAULT_TARGET_AARCH64_FALSE='#'
5219 else
5220   DEFAULT_TARGET_AARCH64_TRUE='#'
5221   DEFAULT_TARGET_AARCH64_FALSE=
5222 fi
5223
5224          if test "$targ_obj" = "arm"; then
5225   DEFAULT_TARGET_ARM_TRUE=
5226   DEFAULT_TARGET_ARM_FALSE='#'
5227 else
5228   DEFAULT_TARGET_ARM_TRUE='#'
5229   DEFAULT_TARGET_ARM_FALSE=
5230 fi
5231
5232          if test "$targ_obj" = "i386"; then
5233   DEFAULT_TARGET_I386_TRUE=
5234   DEFAULT_TARGET_I386_FALSE='#'
5235 else
5236   DEFAULT_TARGET_I386_TRUE='#'
5237   DEFAULT_TARGET_I386_FALSE=
5238 fi
5239
5240          if test "$targ_obj" = "powerpc"; then
5241   DEFAULT_TARGET_POWERPC_TRUE=
5242   DEFAULT_TARGET_POWERPC_FALSE='#'
5243 else
5244   DEFAULT_TARGET_POWERPC_TRUE='#'
5245   DEFAULT_TARGET_POWERPC_FALSE=
5246 fi
5247
5248          if test "$targ_obj" = "sparc"; then
5249   DEFAULT_TARGET_SPARC_TRUE=
5250   DEFAULT_TARGET_SPARC_FALSE='#'
5251 else
5252   DEFAULT_TARGET_SPARC_TRUE='#'
5253   DEFAULT_TARGET_SPARC_FALSE=
5254 fi
5255
5256          if test "$targ_obj" = "s390"; then
5257   DEFAULT_TARGET_S390_TRUE=
5258   DEFAULT_TARGET_S390_FALSE='#'
5259 else
5260   DEFAULT_TARGET_S390_TRUE='#'
5261   DEFAULT_TARGET_S390_FALSE=
5262 fi
5263
5264         target_x86_64=no
5265         target_x32=no
5266         if test "$targ_obj" = "x86_64"; then
5267           case "$target" in
5268           x86_64*-linux-gnux32)
5269             target_x32=yes
5270             default_size=32
5271             ;;
5272           *)
5273             target_x86_64=yes
5274             ;;
5275           esac
5276         fi
5277          if test "$target_x86_64" = "yes"; then
5278   DEFAULT_TARGET_X86_64_TRUE=
5279   DEFAULT_TARGET_X86_64_FALSE='#'
5280 else
5281   DEFAULT_TARGET_X86_64_TRUE='#'
5282   DEFAULT_TARGET_X86_64_FALSE=
5283 fi
5284
5285          if test "$target_x32" = "yes"; then
5286   DEFAULT_TARGET_X32_TRUE=
5287   DEFAULT_TARGET_X32_FALSE='#'
5288 else
5289   DEFAULT_TARGET_X32_TRUE='#'
5290   DEFAULT_TARGET_X32_FALSE=
5291 fi
5292
5293          if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5294   DEFAULT_TARGET_X86_64_OR_X32_TRUE=
5295   DEFAULT_TARGET_X86_64_OR_X32_FALSE='#'
5296 else
5297   DEFAULT_TARGET_X86_64_OR_X32_TRUE='#'
5298   DEFAULT_TARGET_X86_64_OR_X32_FALSE=
5299 fi
5300
5301          if test "$targ_obj" = "tilegx"; then
5302   DEFAULT_TARGET_TILEGX_TRUE=
5303   DEFAULT_TARGET_TILEGX_FALSE='#'
5304 else
5305   DEFAULT_TARGET_TILEGX_TRUE='#'
5306   DEFAULT_TARGET_TILEGX_FALSE=
5307 fi
5308
5309          if test "$targ_obj" = "mips"; then
5310   DEFAULT_TARGET_MIPS_TRUE=
5311   DEFAULT_TARGET_MIPS_FALSE='#'
5312 else
5313   DEFAULT_TARGET_MIPS_TRUE='#'
5314   DEFAULT_TARGET_MIPS_FALSE=
5315 fi
5316
5317         DEFAULT_TARGET=${targ_obj}
5318
5319       fi
5320     fi
5321   fi
5322 done
5323
5324 # Remove any duplicates.
5325 to=""
5326 for t in $targetobjs; do
5327   case " $to " in
5328   *" $t "*) ;;
5329   *) to="$to $t" ;;
5330   esac
5331 done
5332 targetobjs=$to
5333
5334 if test -n "$targ_32_little"; then
5335
5336 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
5337
5338 fi
5339 if test -n "$targ_32_big"; then
5340
5341 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
5342
5343 fi
5344 if test -n "$targ_64_little"; then
5345
5346 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
5347
5348 fi
5349 if test -n "$targ_64_big"; then
5350
5351 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
5352
5353 fi
5354
5355 if test -n "$all_targets"; then
5356   TARGETOBJS='$(ALL_TARGETOBJS)'
5357 else
5358   TARGETOBJS="$targetobjs"
5359 fi
5360
5361
5362
5363 cat >>confdefs.h <<_ACEOF
5364 #define GOLD_DEFAULT_MACHINE $default_machine
5365 _ACEOF
5366
5367
5368 cat >>confdefs.h <<_ACEOF
5369 #define GOLD_DEFAULT_SIZE $default_size
5370 _ACEOF
5371
5372
5373 cat >>confdefs.h <<_ACEOF
5374 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5375 _ACEOF
5376
5377
5378 cat >>confdefs.h <<_ACEOF
5379 #define GOLD_DEFAULT_OSABI $default_osabi
5380 _ACEOF
5381
5382
5383
5384 # Check whether --with-lib-path was given.
5385 if test "${with_lib_path+set}" = set; then :
5386   withval=$with_lib_path; case "$withval" in
5387  yes) LIB_PATH='"/lib:/usr/lib"' ;;
5388  no) LIB_PATH='""' ;;
5389  *) LIB_PATH='"'"$withval"'"' ;;
5390  esac
5391 else
5392   LIB_PATH='"::DEFAULT::"'
5393 fi
5394
5395
5396 cat >>confdefs.h <<_ACEOF
5397 #define LIB_PATH $LIB_PATH
5398 _ACEOF
5399
5400 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
5401
5402 $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5403
5404 fi
5405
5406 if test -n "$ac_tool_prefix"; then
5407   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5408 set dummy ${ac_tool_prefix}nm; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_prog_NM+:} false; then :
5412   $as_echo_n "(cached) " >&6
5413 else
5414   if test -n "$NM"; then
5415   ac_cv_prog_NM="$NM" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5419 do
5420   IFS=$as_save_IFS
5421   test -z "$as_dir" && as_dir=.
5422     for ac_exec_ext in '' $ac_executable_extensions; do
5423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424     ac_cv_prog_NM="${ac_tool_prefix}nm"
5425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426     break 2
5427   fi
5428 done
5429   done
5430 IFS=$as_save_IFS
5431
5432 fi
5433 fi
5434 NM=$ac_cv_prog_NM
5435 if test -n "$NM"; then
5436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5437 $as_echo "$NM" >&6; }
5438 else
5439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5441 fi
5442
5443
5444 fi
5445 if test -z "$ac_cv_prog_NM"; then
5446   ac_ct_NM=$NM
5447   # Extract the first word of "nm", so it can be a program name with args.
5448 set dummy nm; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5452   $as_echo_n "(cached) " >&6
5453 else
5454   if test -n "$ac_ct_NM"; then
5455   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460   IFS=$as_save_IFS
5461   test -z "$as_dir" && as_dir=.
5462     for ac_exec_ext in '' $ac_executable_extensions; do
5463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464     ac_cv_prog_ac_ct_NM="nm"
5465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466     break 2
5467   fi
5468 done
5469   done
5470 IFS=$as_save_IFS
5471
5472 fi
5473 fi
5474 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5475 if test -n "$ac_ct_NM"; then
5476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5477 $as_echo "$ac_ct_NM" >&6; }
5478 else
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482
5483   if test "x$ac_ct_NM" = x; then
5484     NM=""
5485   else
5486     case $cross_compiling:$ac_tool_warned in
5487 yes:)
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490 ac_tool_warned=yes ;;
5491 esac
5492     NM=$ac_ct_NM
5493   fi
5494 else
5495   NM="$ac_cv_prog_NM"
5496 fi
5497
5498
5499 ac_ext=c
5500 ac_cpp='$CPP $CPPFLAGS'
5501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5504 if test -n "$ac_tool_prefix"; then
5505   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5506 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if ${ac_cv_prog_CC+:} false; then :
5510   $as_echo_n "(cached) " >&6
5511 else
5512   if test -n "$CC"; then
5513   ac_cv_prog_CC="$CC" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518   IFS=$as_save_IFS
5519   test -z "$as_dir" && as_dir=.
5520     for ac_exec_ext in '' $ac_executable_extensions; do
5521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524     break 2
5525   fi
5526 done
5527   done
5528 IFS=$as_save_IFS
5529
5530 fi
5531 fi
5532 CC=$ac_cv_prog_CC
5533 if test -n "$CC"; then
5534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5535 $as_echo "$CC" >&6; }
5536 else
5537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5539 fi
5540
5541
5542 fi
5543 if test -z "$ac_cv_prog_CC"; then
5544   ac_ct_CC=$CC
5545   # Extract the first word of "gcc", so it can be a program name with args.
5546 set dummy gcc; ac_word=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5550   $as_echo_n "(cached) " >&6
5551 else
5552   if test -n "$ac_ct_CC"; then
5553   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558   IFS=$as_save_IFS
5559   test -z "$as_dir" && as_dir=.
5560     for ac_exec_ext in '' $ac_executable_extensions; do
5561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562     ac_cv_prog_ac_ct_CC="gcc"
5563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564     break 2
5565   fi
5566 done
5567   done
5568 IFS=$as_save_IFS
5569
5570 fi
5571 fi
5572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5573 if test -n "$ac_ct_CC"; then
5574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5575 $as_echo "$ac_ct_CC" >&6; }
5576 else
5577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5579 fi
5580
5581   if test "x$ac_ct_CC" = x; then
5582     CC=""
5583   else
5584     case $cross_compiling:$ac_tool_warned in
5585 yes:)
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588 ac_tool_warned=yes ;;
5589 esac
5590     CC=$ac_ct_CC
5591   fi
5592 else
5593   CC="$ac_cv_prog_CC"
5594 fi
5595
5596 if test -z "$CC"; then
5597           if test -n "$ac_tool_prefix"; then
5598     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}cc; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_CC+:} false; then :
5603   $as_echo_n "(cached) " >&6
5604 else
5605   if test -n "$CC"; then
5606   ac_cv_prog_CC="$CC" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611   IFS=$as_save_IFS
5612   test -z "$as_dir" && as_dir=.
5613     for ac_exec_ext in '' $ac_executable_extensions; do
5614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615     ac_cv_prog_CC="${ac_tool_prefix}cc"
5616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617     break 2
5618   fi
5619 done
5620   done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 CC=$ac_cv_prog_CC
5626 if test -n "$CC"; then
5627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5628 $as_echo "$CC" >&6; }
5629 else
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634
5635   fi
5636 fi
5637 if test -z "$CC"; then
5638   # Extract the first word of "cc", so it can be a program name with args.
5639 set dummy cc; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_CC+:} false; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   if test -n "$CC"; then
5646   ac_cv_prog_CC="$CC" # Let the user override the test.
5647 else
5648   ac_prog_rejected=no
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5651 do
5652   IFS=$as_save_IFS
5653   test -z "$as_dir" && as_dir=.
5654     for ac_exec_ext in '' $ac_executable_extensions; do
5655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5657        ac_prog_rejected=yes
5658        continue
5659      fi
5660     ac_cv_prog_CC="cc"
5661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662     break 2
5663   fi
5664 done
5665   done
5666 IFS=$as_save_IFS
5667
5668 if test $ac_prog_rejected = yes; then
5669   # We found a bogon in the path, so make sure we never use it.
5670   set dummy $ac_cv_prog_CC
5671   shift
5672   if test $# != 0; then
5673     # We chose a different compiler from the bogus one.
5674     # However, it has the same basename, so the bogon will be chosen
5675     # first if we set CC to just the basename; use the full file name.
5676     shift
5677     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5678   fi
5679 fi
5680 fi
5681 fi
5682 CC=$ac_cv_prog_CC
5683 if test -n "$CC"; then
5684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5685 $as_echo "$CC" >&6; }
5686 else
5687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688 $as_echo "no" >&6; }
5689 fi
5690
5691
5692 fi
5693 if test -z "$CC"; then
5694   if test -n "$ac_tool_prefix"; then
5695   for ac_prog in cl.exe
5696   do
5697     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5698 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if ${ac_cv_prog_CC+:} false; then :
5702   $as_echo_n "(cached) " >&6
5703 else
5704   if test -n "$CC"; then
5705   ac_cv_prog_CC="$CC" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5709 do
5710   IFS=$as_save_IFS
5711   test -z "$as_dir" && as_dir=.
5712     for ac_exec_ext in '' $ac_executable_extensions; do
5713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716     break 2
5717   fi
5718 done
5719   done
5720 IFS=$as_save_IFS
5721
5722 fi
5723 fi
5724 CC=$ac_cv_prog_CC
5725 if test -n "$CC"; then
5726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5727 $as_echo "$CC" >&6; }
5728 else
5729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5731 fi
5732
5733
5734     test -n "$CC" && break
5735   done
5736 fi
5737 if test -z "$CC"; then
5738   ac_ct_CC=$CC
5739   for ac_prog in cl.exe
5740 do
5741   # Extract the first word of "$ac_prog", so it can be a program name with args.
5742 set dummy $ac_prog; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5746   $as_echo_n "(cached) " >&6
5747 else
5748   if test -n "$ac_ct_CC"; then
5749   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754   IFS=$as_save_IFS
5755   test -z "$as_dir" && as_dir=.
5756     for ac_exec_ext in '' $ac_executable_extensions; do
5757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758     ac_cv_prog_ac_ct_CC="$ac_prog"
5759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760     break 2
5761   fi
5762 done
5763   done
5764 IFS=$as_save_IFS
5765
5766 fi
5767 fi
5768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5769 if test -n "$ac_ct_CC"; then
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5771 $as_echo "$ac_ct_CC" >&6; }
5772 else
5773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5775 fi
5776
5777
5778   test -n "$ac_ct_CC" && break
5779 done
5780
5781   if test "x$ac_ct_CC" = x; then
5782     CC=""
5783   else
5784     case $cross_compiling:$ac_tool_warned in
5785 yes:)
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5788 ac_tool_warned=yes ;;
5789 esac
5790     CC=$ac_ct_CC
5791   fi
5792 fi
5793
5794 fi
5795
5796
5797 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5799 as_fn_error $? "no acceptable C compiler found in \$PATH
5800 See \`config.log' for more details" "$LINENO" 5; }
5801
5802 # Provide some information about the compiler.
5803 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5804 set X $ac_compile
5805 ac_compiler=$2
5806 for ac_option in --version -v -V -qversion; do
5807   { { ac_try="$ac_compiler $ac_option >&5"
5808 case "(($ac_try" in
5809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810   *) ac_try_echo=$ac_try;;
5811 esac
5812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5813 $as_echo "$ac_try_echo"; } >&5
5814   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5815   ac_status=$?
5816   if test -s conftest.err; then
5817     sed '10a\
5818 ... rest of stderr output deleted ...
5819          10q' conftest.err >conftest.er1
5820     cat conftest.er1 >&5
5821   fi
5822   rm -f conftest.er1 conftest.err
5823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5824   test $ac_status = 0; }
5825 done
5826
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5828 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5829 if ${ac_cv_c_compiler_gnu+:} false; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h.  */
5834
5835 int
5836 main ()
5837 {
5838 #ifndef __GNUC__
5839        choke me
5840 #endif
5841
5842   ;
5843   return 0;
5844 }
5845 _ACEOF
5846 if ac_fn_c_try_compile "$LINENO"; then :
5847   ac_compiler_gnu=yes
5848 else
5849   ac_compiler_gnu=no
5850 fi
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5853
5854 fi
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5856 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5857 if test $ac_compiler_gnu = yes; then
5858   GCC=yes
5859 else
5860   GCC=
5861 fi
5862 ac_test_CFLAGS=${CFLAGS+set}
5863 ac_save_CFLAGS=$CFLAGS
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5865 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5866 if ${ac_cv_prog_cc_g+:} false; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   ac_save_c_werror_flag=$ac_c_werror_flag
5870    ac_c_werror_flag=yes
5871    ac_cv_prog_cc_g=no
5872    CFLAGS="-g"
5873    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h.  */
5875
5876 int
5877 main ()
5878 {
5879
5880   ;
5881   return 0;
5882 }
5883 _ACEOF
5884 if ac_fn_c_try_compile "$LINENO"; then :
5885   ac_cv_prog_cc_g=yes
5886 else
5887   CFLAGS=""
5888       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h.  */
5890
5891 int
5892 main ()
5893 {
5894
5895   ;
5896   return 0;
5897 }
5898 _ACEOF
5899 if ac_fn_c_try_compile "$LINENO"; then :
5900
5901 else
5902   ac_c_werror_flag=$ac_save_c_werror_flag
5903          CFLAGS="-g"
5904          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h.  */
5906
5907 int
5908 main ()
5909 {
5910
5911   ;
5912   return 0;
5913 }
5914 _ACEOF
5915 if ac_fn_c_try_compile "$LINENO"; then :
5916   ac_cv_prog_cc_g=yes
5917 fi
5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919 fi
5920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921 fi
5922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923    ac_c_werror_flag=$ac_save_c_werror_flag
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5926 $as_echo "$ac_cv_prog_cc_g" >&6; }
5927 if test "$ac_test_CFLAGS" = set; then
5928   CFLAGS=$ac_save_CFLAGS
5929 elif test $ac_cv_prog_cc_g = yes; then
5930   if test "$GCC" = yes; then
5931     CFLAGS="-g -O2"
5932   else
5933     CFLAGS="-g"
5934   fi
5935 else
5936   if test "$GCC" = yes; then
5937     CFLAGS="-O2"
5938   else
5939     CFLAGS=
5940   fi
5941 fi
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5943 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5944 if ${ac_cv_prog_cc_c89+:} false; then :
5945   $as_echo_n "(cached) " >&6
5946 else
5947   ac_cv_prog_cc_c89=no
5948 ac_save_CC=$CC
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h.  */
5951 #include <stdarg.h>
5952 #include <stdio.h>
5953 struct stat;
5954 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5955 struct buf { int x; };
5956 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5957 static char *e (p, i)
5958      char **p;
5959      int i;
5960 {
5961   return p[i];
5962 }
5963 static char *f (char * (*g) (char **, int), char **p, ...)
5964 {
5965   char *s;
5966   va_list v;
5967   va_start (v,p);
5968   s = g (p, va_arg (v,int));
5969   va_end (v);
5970   return s;
5971 }
5972
5973 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5974    function prototypes and stuff, but not '\xHH' hex character constants.
5975    These don't provoke an error unfortunately, instead are silently treated
5976    as 'x'.  The following induces an error, until -std is added to get
5977    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5978    array size at least.  It's necessary to write '\x00'==0 to get something
5979    that's true only with -std.  */
5980 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5981
5982 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5983    inside strings and character constants.  */
5984 #define FOO(x) 'x'
5985 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5986
5987 int test (int i, double x);
5988 struct s1 {int (*f) (int a);};
5989 struct s2 {int (*f) (double a);};
5990 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5991 int argc;
5992 char **argv;
5993 int
5994 main ()
5995 {
5996 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5997   ;
5998   return 0;
5999 }
6000 _ACEOF
6001 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6002         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6003 do
6004   CC="$ac_save_CC $ac_arg"
6005   if ac_fn_c_try_compile "$LINENO"; then :
6006   ac_cv_prog_cc_c89=$ac_arg
6007 fi
6008 rm -f core conftest.err conftest.$ac_objext
6009   test "x$ac_cv_prog_cc_c89" != "xno" && break
6010 done
6011 rm -f conftest.$ac_ext
6012 CC=$ac_save_CC
6013
6014 fi
6015 # AC_CACHE_VAL
6016 case "x$ac_cv_prog_cc_c89" in
6017   x)
6018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6019 $as_echo "none needed" >&6; } ;;
6020   xno)
6021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6022 $as_echo "unsupported" >&6; } ;;
6023   *)
6024     CC="$CC $ac_cv_prog_cc_c89"
6025     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6026 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6027 esac
6028 if test "x$ac_cv_prog_cc_c89" != xno; then :
6029
6030 fi
6031
6032 ac_ext=c
6033 ac_cpp='$CPP $CPPFLAGS'
6034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6037
6038 ac_ext=c
6039 ac_cpp='$CPP $CPPFLAGS'
6040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6044 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6045 if ${am_cv_prog_cc_c_o+:} false; then :
6046   $as_echo_n "(cached) " >&6
6047 else
6048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h.  */
6050
6051 int
6052 main ()
6053 {
6054
6055   ;
6056   return 0;
6057 }
6058 _ACEOF
6059   # Make sure it works both with $CC and with simple cc.
6060   # Following AC_PROG_CC_C_O, we do the test twice because some
6061   # compilers refuse to overwrite an existing .o file with -o,
6062   # though they will create one.
6063   am_cv_prog_cc_c_o=yes
6064   for am_i in 1 2; do
6065     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6066    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6067    ac_status=$?
6068    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069    (exit $ac_status); } \
6070          && test -f conftest2.$ac_objext; then
6071       : OK
6072     else
6073       am_cv_prog_cc_c_o=no
6074       break
6075     fi
6076   done
6077   rm -f core conftest*
6078   unset am_i
6079 fi
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6081 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6082 if test "$am_cv_prog_cc_c_o" != yes; then
6083    # Losing compiler, so override with the script.
6084    # FIXME: It is wrong to rewrite CC.
6085    # But if we don't then we get into trouble of one sort or another.
6086    # A longer-term fix would be to have automake use am__CC in this case,
6087    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6088    CC="$am_aux_dir/compile $CC"
6089 fi
6090 ac_ext=c
6091 ac_cpp='$CPP $CPPFLAGS'
6092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6095
6096
6097 depcc="$CC"   am_compiler_list=
6098
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6100 $as_echo_n "checking dependency style of $depcc... " >&6; }
6101 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6102   $as_echo_n "(cached) " >&6
6103 else
6104   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6105   # We make a subdir and do the tests there.  Otherwise we can end up
6106   # making bogus files that we don't know about and never remove.  For
6107   # instance it was reported that on HP-UX the gcc test will end up
6108   # making a dummy file named 'D' -- because '-MD' means "put the output
6109   # in D".
6110   rm -rf conftest.dir
6111   mkdir conftest.dir
6112   # Copy depcomp to subdir because otherwise we won't find it if we're
6113   # using a relative directory.
6114   cp "$am_depcomp" conftest.dir
6115   cd conftest.dir
6116   # We will build objects and dependencies in a subdirectory because
6117   # it helps to detect inapplicable dependency modes.  For instance
6118   # both Tru64's cc and ICC support -MD to output dependencies as a
6119   # side effect of compilation, but ICC will put the dependencies in
6120   # the current directory while Tru64 will put them in the object
6121   # directory.
6122   mkdir sub
6123
6124   am_cv_CC_dependencies_compiler_type=none
6125   if test "$am_compiler_list" = ""; then
6126      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6127   fi
6128   am__universal=false
6129   case " $depcc " in #(
6130      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6131      esac
6132
6133   for depmode in $am_compiler_list; do
6134     # Setup a source with many dependencies, because some compilers
6135     # like to wrap large dependency lists on column 80 (with \), and
6136     # we should not choose a depcomp mode which is confused by this.
6137     #
6138     # We need to recreate these files for each test, as the compiler may
6139     # overwrite some of them when testing with obscure command lines.
6140     # This happens at least with the AIX C compiler.
6141     : > sub/conftest.c
6142     for i in 1 2 3 4 5 6; do
6143       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6144       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6145       # Solaris 10 /bin/sh.
6146       echo '/* dummy */' > sub/conftst$i.h
6147     done
6148     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6149
6150     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6151     # mode.  It turns out that the SunPro C++ compiler does not properly
6152     # handle '-M -o', and we need to detect this.  Also, some Intel
6153     # versions had trouble with output in subdirs.
6154     am__obj=sub/conftest.${OBJEXT-o}
6155     am__minus_obj="-o $am__obj"
6156     case $depmode in
6157     gcc)
6158       # This depmode causes a compiler race in universal mode.
6159       test "$am__universal" = false || continue
6160       ;;
6161     nosideeffect)
6162       # After this tag, mechanisms are not by side-effect, so they'll
6163       # only be used when explicitly requested.
6164       if test "x$enable_dependency_tracking" = xyes; then
6165         continue
6166       else
6167         break
6168       fi
6169       ;;
6170     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6171       # This compiler won't grok '-c -o', but also, the minuso test has
6172       # not run yet.  These depmodes are late enough in the game, and
6173       # so weak that their functioning should not be impacted.
6174       am__obj=conftest.${OBJEXT-o}
6175       am__minus_obj=
6176       ;;
6177     none) break ;;
6178     esac
6179     if depmode=$depmode \
6180        source=sub/conftest.c object=$am__obj \
6181        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6182        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6183          >/dev/null 2>conftest.err &&
6184        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6185        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6186        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6187        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6188       # icc doesn't choke on unknown options, it will just issue warnings
6189       # or remarks (even with -Werror).  So we grep stderr for any message
6190       # that says an option was ignored or not supported.
6191       # When given -MP, icc 7.0 and 7.1 complain thusly:
6192       #   icc: Command line warning: ignoring option '-M'; no argument required
6193       # The diagnosis changed in icc 8.0:
6194       #   icc: Command line remark: option '-MP' not supported
6195       if (grep 'ignoring option' conftest.err ||
6196           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6197         am_cv_CC_dependencies_compiler_type=$depmode
6198         break
6199       fi
6200     fi
6201   done
6202
6203   cd ..
6204   rm -rf conftest.dir
6205 else
6206   am_cv_CC_dependencies_compiler_type=none
6207 fi
6208
6209 fi
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6211 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6212 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6213
6214  if
6215   test "x$enable_dependency_tracking" != xno \
6216   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6217   am__fastdepCC_TRUE=
6218   am__fastdepCC_FALSE='#'
6219 else
6220   am__fastdepCC_TRUE='#'
6221   am__fastdepCC_FALSE=
6222 fi
6223
6224
6225 ac_ext=cpp
6226 ac_cpp='$CXXCPP $CPPFLAGS'
6227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6230 if test -z "$CXX"; then
6231   if test -n "$CCC"; then
6232     CXX=$CCC
6233   else
6234     if test -n "$ac_tool_prefix"; then
6235   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6236   do
6237     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_prog_CXX+:} false; then :
6242   $as_echo_n "(cached) " >&6
6243 else
6244   if test -n "$CXX"; then
6245   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250   IFS=$as_save_IFS
6251   test -z "$as_dir" && as_dir=.
6252     for ac_exec_ext in '' $ac_executable_extensions; do
6253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256     break 2
6257   fi
6258 done
6259   done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 CXX=$ac_cv_prog_CXX
6265 if test -n "$CXX"; then
6266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6267 $as_echo "$CXX" >&6; }
6268 else
6269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6271 fi
6272
6273
6274     test -n "$CXX" && break
6275   done
6276 fi
6277 if test -z "$CXX"; then
6278   ac_ct_CXX=$CXX
6279   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6280 do
6281   # Extract the first word of "$ac_prog", so it can be a program name with args.
6282 set dummy $ac_prog; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6286   $as_echo_n "(cached) " >&6
6287 else
6288   if test -n "$ac_ct_CXX"; then
6289   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6290 else
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6293 do
6294   IFS=$as_save_IFS
6295   test -z "$as_dir" && as_dir=.
6296     for ac_exec_ext in '' $ac_executable_extensions; do
6297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298     ac_cv_prog_ac_ct_CXX="$ac_prog"
6299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300     break 2
6301   fi
6302 done
6303   done
6304 IFS=$as_save_IFS
6305
6306 fi
6307 fi
6308 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6309 if test -n "$ac_ct_CXX"; then
6310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6311 $as_echo "$ac_ct_CXX" >&6; }
6312 else
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6315 fi
6316
6317
6318   test -n "$ac_ct_CXX" && break
6319 done
6320
6321   if test "x$ac_ct_CXX" = x; then
6322     CXX="g++"
6323   else
6324     case $cross_compiling:$ac_tool_warned in
6325 yes:)
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328 ac_tool_warned=yes ;;
6329 esac
6330     CXX=$ac_ct_CXX
6331   fi
6332 fi
6333
6334   fi
6335 fi
6336 # Provide some information about the compiler.
6337 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6338 set X $ac_compile
6339 ac_compiler=$2
6340 for ac_option in --version -v -V -qversion; do
6341   { { ac_try="$ac_compiler $ac_option >&5"
6342 case "(($ac_try" in
6343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344   *) ac_try_echo=$ac_try;;
6345 esac
6346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6347 $as_echo "$ac_try_echo"; } >&5
6348   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6349   ac_status=$?
6350   if test -s conftest.err; then
6351     sed '10a\
6352 ... rest of stderr output deleted ...
6353          10q' conftest.err >conftest.er1
6354     cat conftest.er1 >&5
6355   fi
6356   rm -f conftest.er1 conftest.err
6357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6358   test $ac_status = 0; }
6359 done
6360
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6362 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6363 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6364   $as_echo_n "(cached) " >&6
6365 else
6366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h.  */
6368
6369 int
6370 main ()
6371 {
6372 #ifndef __GNUC__
6373        choke me
6374 #endif
6375
6376   ;
6377   return 0;
6378 }
6379 _ACEOF
6380 if ac_fn_cxx_try_compile "$LINENO"; then :
6381   ac_compiler_gnu=yes
6382 else
6383   ac_compiler_gnu=no
6384 fi
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6387
6388 fi
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6390 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6391 if test $ac_compiler_gnu = yes; then
6392   GXX=yes
6393 else
6394   GXX=
6395 fi
6396 ac_test_CXXFLAGS=${CXXFLAGS+set}
6397 ac_save_CXXFLAGS=$CXXFLAGS
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6399 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6400 if ${ac_cv_prog_cxx_g+:} false; then :
6401   $as_echo_n "(cached) " >&6
6402 else
6403   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6404    ac_cxx_werror_flag=yes
6405    ac_cv_prog_cxx_g=no
6406    CXXFLAGS="-g"
6407    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h.  */
6409
6410 int
6411 main ()
6412 {
6413
6414   ;
6415   return 0;
6416 }
6417 _ACEOF
6418 if ac_fn_cxx_try_compile "$LINENO"; then :
6419   ac_cv_prog_cxx_g=yes
6420 else
6421   CXXFLAGS=""
6422       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h.  */
6424
6425 int
6426 main ()
6427 {
6428
6429   ;
6430   return 0;
6431 }
6432 _ACEOF
6433 if ac_fn_cxx_try_compile "$LINENO"; then :
6434
6435 else
6436   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6437          CXXFLAGS="-g"
6438          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h.  */
6440
6441 int
6442 main ()
6443 {
6444
6445   ;
6446   return 0;
6447 }
6448 _ACEOF
6449 if ac_fn_cxx_try_compile "$LINENO"; then :
6450   ac_cv_prog_cxx_g=yes
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 fi
6454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6458 fi
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6460 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6461 if test "$ac_test_CXXFLAGS" = set; then
6462   CXXFLAGS=$ac_save_CXXFLAGS
6463 elif test $ac_cv_prog_cxx_g = yes; then
6464   if test "$GXX" = yes; then
6465     CXXFLAGS="-g -O2"
6466   else
6467     CXXFLAGS="-g"
6468   fi
6469 else
6470   if test "$GXX" = yes; then
6471     CXXFLAGS="-O2"
6472   else
6473     CXXFLAGS=
6474   fi
6475 fi
6476 ac_ext=c
6477 ac_cpp='$CPP $CPPFLAGS'
6478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6481
6482 depcc="$CXX"  am_compiler_list=
6483
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6485 $as_echo_n "checking dependency style of $depcc... " >&6; }
6486 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6487   $as_echo_n "(cached) " >&6
6488 else
6489   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6490   # We make a subdir and do the tests there.  Otherwise we can end up
6491   # making bogus files that we don't know about and never remove.  For
6492   # instance it was reported that on HP-UX the gcc test will end up
6493   # making a dummy file named 'D' -- because '-MD' means "put the output
6494   # in D".
6495   rm -rf conftest.dir
6496   mkdir conftest.dir
6497   # Copy depcomp to subdir because otherwise we won't find it if we're
6498   # using a relative directory.
6499   cp "$am_depcomp" conftest.dir
6500   cd conftest.dir
6501   # We will build objects and dependencies in a subdirectory because
6502   # it helps to detect inapplicable dependency modes.  For instance
6503   # both Tru64's cc and ICC support -MD to output dependencies as a
6504   # side effect of compilation, but ICC will put the dependencies in
6505   # the current directory while Tru64 will put them in the object
6506   # directory.
6507   mkdir sub
6508
6509   am_cv_CXX_dependencies_compiler_type=none
6510   if test "$am_compiler_list" = ""; then
6511      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6512   fi
6513   am__universal=false
6514   case " $depcc " in #(
6515      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6516      esac
6517
6518   for depmode in $am_compiler_list; do
6519     # Setup a source with many dependencies, because some compilers
6520     # like to wrap large dependency lists on column 80 (with \), and
6521     # we should not choose a depcomp mode which is confused by this.
6522     #
6523     # We need to recreate these files for each test, as the compiler may
6524     # overwrite some of them when testing with obscure command lines.
6525     # This happens at least with the AIX C compiler.
6526     : > sub/conftest.c
6527     for i in 1 2 3 4 5 6; do
6528       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6529       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6530       # Solaris 10 /bin/sh.
6531       echo '/* dummy */' > sub/conftst$i.h
6532     done
6533     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6534
6535     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6536     # mode.  It turns out that the SunPro C++ compiler does not properly
6537     # handle '-M -o', and we need to detect this.  Also, some Intel
6538     # versions had trouble with output in subdirs.
6539     am__obj=sub/conftest.${OBJEXT-o}
6540     am__minus_obj="-o $am__obj"
6541     case $depmode in
6542     gcc)
6543       # This depmode causes a compiler race in universal mode.
6544       test "$am__universal" = false || continue
6545       ;;
6546     nosideeffect)
6547       # After this tag, mechanisms are not by side-effect, so they'll
6548       # only be used when explicitly requested.
6549       if test "x$enable_dependency_tracking" = xyes; then
6550         continue
6551       else
6552         break
6553       fi
6554       ;;
6555     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6556       # This compiler won't grok '-c -o', but also, the minuso test has
6557       # not run yet.  These depmodes are late enough in the game, and
6558       # so weak that their functioning should not be impacted.
6559       am__obj=conftest.${OBJEXT-o}
6560       am__minus_obj=
6561       ;;
6562     none) break ;;
6563     esac
6564     if depmode=$depmode \
6565        source=sub/conftest.c object=$am__obj \
6566        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6567        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6568          >/dev/null 2>conftest.err &&
6569        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6570        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6571        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6572        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6573       # icc doesn't choke on unknown options, it will just issue warnings
6574       # or remarks (even with -Werror).  So we grep stderr for any message
6575       # that says an option was ignored or not supported.
6576       # When given -MP, icc 7.0 and 7.1 complain thusly:
6577       #   icc: Command line warning: ignoring option '-M'; no argument required
6578       # The diagnosis changed in icc 8.0:
6579       #   icc: Command line remark: option '-MP' not supported
6580       if (grep 'ignoring option' conftest.err ||
6581           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6582         am_cv_CXX_dependencies_compiler_type=$depmode
6583         break
6584       fi
6585     fi
6586   done
6587
6588   cd ..
6589   rm -rf conftest.dir
6590 else
6591   am_cv_CXX_dependencies_compiler_type=none
6592 fi
6593
6594 fi
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6596 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6597 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6598
6599  if
6600   test "x$enable_dependency_tracking" != xno \
6601   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6602   am__fastdepCXX_TRUE=
6603   am__fastdepCXX_FALSE='#'
6604 else
6605   am__fastdepCXX_TRUE='#'
6606   am__fastdepCXX_FALSE=
6607 fi
6608
6609
6610 for ac_prog in 'bison -y' byacc
6611 do
6612   # Extract the first word of "$ac_prog", so it can be a program name with args.
6613 set dummy $ac_prog; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_YACC+:} false; then :
6617   $as_echo_n "(cached) " >&6
6618 else
6619   if test -n "$YACC"; then
6620   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625   IFS=$as_save_IFS
6626   test -z "$as_dir" && as_dir=.
6627     for ac_exec_ext in '' $ac_executable_extensions; do
6628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629     ac_cv_prog_YACC="$ac_prog"
6630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631     break 2
6632   fi
6633 done
6634   done
6635 IFS=$as_save_IFS
6636
6637 fi
6638 fi
6639 YACC=$ac_cv_prog_YACC
6640 if test -n "$YACC"; then
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6642 $as_echo "$YACC" >&6; }
6643 else
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647
6648
6649   test -n "$YACC" && break
6650 done
6651 test -n "$YACC" || YACC="yacc"
6652
6653 if test -n "$ac_tool_prefix"; then
6654   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6655 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_RANLIB+:} false; then :
6659   $as_echo_n "(cached) " >&6
6660 else
6661   if test -n "$RANLIB"; then
6662   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667   IFS=$as_save_IFS
6668   test -z "$as_dir" && as_dir=.
6669     for ac_exec_ext in '' $ac_executable_extensions; do
6670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673     break 2
6674   fi
6675 done
6676   done
6677 IFS=$as_save_IFS
6678
6679 fi
6680 fi
6681 RANLIB=$ac_cv_prog_RANLIB
6682 if test -n "$RANLIB"; then
6683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6684 $as_echo "$RANLIB" >&6; }
6685 else
6686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6688 fi
6689
6690
6691 fi
6692 if test -z "$ac_cv_prog_RANLIB"; then
6693   ac_ct_RANLIB=$RANLIB
6694   # Extract the first word of "ranlib", so it can be a program name with args.
6695 set dummy ranlib; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6699   $as_echo_n "(cached) " >&6
6700 else
6701   if test -n "$ac_ct_RANLIB"; then
6702   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709     for ac_exec_ext in '' $ac_executable_extensions; do
6710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711     ac_cv_prog_ac_ct_RANLIB="ranlib"
6712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716   done
6717 IFS=$as_save_IFS
6718
6719 fi
6720 fi
6721 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6722 if test -n "$ac_ct_RANLIB"; then
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6724 $as_echo "$ac_ct_RANLIB" >&6; }
6725 else
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6728 fi
6729
6730   if test "x$ac_ct_RANLIB" = x; then
6731     RANLIB=":"
6732   else
6733     case $cross_compiling:$ac_tool_warned in
6734 yes:)
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6737 ac_tool_warned=yes ;;
6738 esac
6739     RANLIB=$ac_ct_RANLIB
6740   fi
6741 else
6742   RANLIB="$ac_cv_prog_RANLIB"
6743 fi
6744
6745
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6747 $as_echo_n "checking whether ln -s works... " >&6; }
6748 LN_S=$as_ln_s
6749 if test "$LN_S" = "ln -s"; then
6750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6751 $as_echo "yes" >&6; }
6752 else
6753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6754 $as_echo "no, using $LN_S" >&6; }
6755 fi
6756
6757
6758
6759
6760 # If we haven't got the data from the intl directory,
6761 # assume NLS is disabled.
6762 USE_NLS=no
6763 LIBINTL=
6764 LIBINTL_DEP=
6765 INCINTL=
6766 XGETTEXT=
6767 GMSGFMT=
6768 POSUB=
6769
6770 if test -f  ../intl/config.intl; then
6771   .  ../intl/config.intl
6772 fi
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6774 $as_echo_n "checking whether NLS is requested... " >&6; }
6775 if test x"$USE_NLS" != xyes; then
6776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6778 else
6779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6780 $as_echo "yes" >&6; }
6781
6782 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6783
6784
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6786 $as_echo_n "checking for catalogs to be installed... " >&6; }
6787   # Look for .po and .gmo files in the source directory.
6788   CATALOGS=
6789   XLINGUAS=
6790   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6791     # If there aren't any .gmo files the shell will give us the
6792     # literal string "../path/to/srcdir/po/*.gmo" which has to be
6793     # weeded out.
6794     case "$cat" in *\**)
6795       continue;;
6796     esac
6797     # The quadruple backslash is collapsed to a double backslash
6798     # by the backticks, then collapsed again by the double quotes,
6799     # leaving us with one backslash in the sed expression (right
6800     # before the dot that mustn't act as a wildcard).
6801     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6802     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6803     # The user is allowed to set LINGUAS to a list of languages to
6804     # install catalogs for.  If it's empty that means "all of them."
6805     if test "x$LINGUAS" = x; then
6806       CATALOGS="$CATALOGS $cat"
6807       XLINGUAS="$XLINGUAS $lang"
6808     else
6809       case "$LINGUAS" in *$lang*)
6810         CATALOGS="$CATALOGS $cat"
6811         XLINGUAS="$XLINGUAS $lang"
6812         ;;
6813       esac
6814     fi
6815   done
6816   LINGUAS="$XLINGUAS"
6817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6818 $as_echo "$LINGUAS" >&6; }
6819
6820
6821     DATADIRNAME=share
6822
6823   INSTOBJEXT=.mo
6824
6825   GENCAT=gencat
6826
6827   CATOBJEXT=.gmo
6828
6829 fi
6830
6831         MKINSTALLDIRS=
6832   if test -n "$ac_aux_dir"; then
6833     case "$ac_aux_dir" in
6834       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6835       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6836     esac
6837   fi
6838   if test -z "$MKINSTALLDIRS"; then
6839     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6840   fi
6841
6842
6843
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6845 $as_echo_n "checking whether NLS is requested... " >&6; }
6846     # Check whether --enable-nls was given.
6847 if test "${enable_nls+set}" = set; then :
6848   enableval=$enable_nls; USE_NLS=$enableval
6849 else
6850   USE_NLS=yes
6851 fi
6852
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6854 $as_echo "$USE_NLS" >&6; }
6855
6856
6857
6858
6859
6860
6861 # Prepare PATH_SEPARATOR.
6862 # The user is always right.
6863 if test "${PATH_SEPARATOR+set}" != set; then
6864   echo "#! /bin/sh" >conf$$.sh
6865   echo  "exit 0"   >>conf$$.sh
6866   chmod +x conf$$.sh
6867   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6868     PATH_SEPARATOR=';'
6869   else
6870     PATH_SEPARATOR=:
6871   fi
6872   rm -f conf$$.sh
6873 fi
6874
6875 # Find out how to test for executable files. Don't use a zero-byte file,
6876 # as systems may use methods other than mode bits to determine executability.
6877 cat >conf$$.file <<_ASEOF
6878 #! /bin/sh
6879 exit 0
6880 _ASEOF
6881 chmod +x conf$$.file
6882 if test -x conf$$.file >/dev/null 2>&1; then
6883   ac_executable_p="test -x"
6884 else
6885   ac_executable_p="test -f"
6886 fi
6887 rm -f conf$$.file
6888
6889 # Extract the first word of "msgfmt", so it can be a program name with args.
6890 set dummy msgfmt; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if ${ac_cv_path_MSGFMT+:} false; then :
6894   $as_echo_n "(cached) " >&6
6895 else
6896   case "$MSGFMT" in
6897   [\\/]* | ?:[\\/]*)
6898     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6899     ;;
6900   *)
6901     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6902     for ac_dir in $PATH; do
6903       IFS="$ac_save_IFS"
6904       test -z "$ac_dir" && ac_dir=.
6905       for ac_exec_ext in '' $ac_executable_extensions; do
6906         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6907           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6908      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6909             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6910             break 2
6911           fi
6912         fi
6913       done
6914     done
6915     IFS="$ac_save_IFS"
6916   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6917     ;;
6918 esac
6919 fi
6920 MSGFMT="$ac_cv_path_MSGFMT"
6921 if test "$MSGFMT" != ":"; then
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6923 $as_echo "$MSGFMT" >&6; }
6924 else
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927 fi
6928
6929   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6930 set dummy gmsgfmt; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if ${ac_cv_path_GMSGFMT+:} false; then :
6934   $as_echo_n "(cached) " >&6
6935 else
6936   case $GMSGFMT in
6937   [\\/]* | ?:[\\/]*)
6938   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6939   ;;
6940   *)
6941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946     for ac_exec_ext in '' $ac_executable_extensions; do
6947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953   done
6954 IFS=$as_save_IFS
6955
6956   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6957   ;;
6958 esac
6959 fi
6960 GMSGFMT=$ac_cv_path_GMSGFMT
6961 if test -n "$GMSGFMT"; then
6962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6963 $as_echo "$GMSGFMT" >&6; }
6964 else
6965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6967 fi
6968
6969
6970
6971
6972 # Prepare PATH_SEPARATOR.
6973 # The user is always right.
6974 if test "${PATH_SEPARATOR+set}" != set; then
6975   echo "#! /bin/sh" >conf$$.sh
6976   echo  "exit 0"   >>conf$$.sh
6977   chmod +x conf$$.sh
6978   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6979     PATH_SEPARATOR=';'
6980   else
6981     PATH_SEPARATOR=:
6982   fi
6983   rm -f conf$$.sh
6984 fi
6985
6986 # Find out how to test for executable files. Don't use a zero-byte file,
6987 # as systems may use methods other than mode bits to determine executability.
6988 cat >conf$$.file <<_ASEOF
6989 #! /bin/sh
6990 exit 0
6991 _ASEOF
6992 chmod +x conf$$.file
6993 if test -x conf$$.file >/dev/null 2>&1; then
6994   ac_executable_p="test -x"
6995 else
6996   ac_executable_p="test -f"
6997 fi
6998 rm -f conf$$.file
6999
7000 # Extract the first word of "xgettext", so it can be a program name with args.
7001 set dummy xgettext; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_path_XGETTEXT+:} false; then :
7005   $as_echo_n "(cached) " >&6
7006 else
7007   case "$XGETTEXT" in
7008   [\\/]* | ?:[\\/]*)
7009     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7010     ;;
7011   *)
7012     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7013     for ac_dir in $PATH; do
7014       IFS="$ac_save_IFS"
7015       test -z "$ac_dir" && ac_dir=.
7016       for ac_exec_ext in '' $ac_executable_extensions; do
7017         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7018           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7019      (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
7020             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7021             break 2
7022           fi
7023         fi
7024       done
7025     done
7026     IFS="$ac_save_IFS"
7027   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7028     ;;
7029 esac
7030 fi
7031 XGETTEXT="$ac_cv_path_XGETTEXT"
7032 if test "$XGETTEXT" != ":"; then
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7034 $as_echo "$XGETTEXT" >&6; }
7035 else
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7038 fi
7039
7040     rm -f messages.po
7041
7042
7043 # Prepare PATH_SEPARATOR.
7044 # The user is always right.
7045 if test "${PATH_SEPARATOR+set}" != set; then
7046   echo "#! /bin/sh" >conf$$.sh
7047   echo  "exit 0"   >>conf$$.sh
7048   chmod +x conf$$.sh
7049   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7050     PATH_SEPARATOR=';'
7051   else
7052     PATH_SEPARATOR=:
7053   fi
7054   rm -f conf$$.sh
7055 fi
7056
7057 # Find out how to test for executable files. Don't use a zero-byte file,
7058 # as systems may use methods other than mode bits to determine executability.
7059 cat >conf$$.file <<_ASEOF
7060 #! /bin/sh
7061 exit 0
7062 _ASEOF
7063 chmod +x conf$$.file
7064 if test -x conf$$.file >/dev/null 2>&1; then
7065   ac_executable_p="test -x"
7066 else
7067   ac_executable_p="test -f"
7068 fi
7069 rm -f conf$$.file
7070
7071 # Extract the first word of "msgmerge", so it can be a program name with args.
7072 set dummy msgmerge; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if ${ac_cv_path_MSGMERGE+:} false; then :
7076   $as_echo_n "(cached) " >&6
7077 else
7078   case "$MSGMERGE" in
7079   [\\/]* | ?:[\\/]*)
7080     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7081     ;;
7082   *)
7083     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7084     for ac_dir in $PATH; do
7085       IFS="$ac_save_IFS"
7086       test -z "$ac_dir" && ac_dir=.
7087       for ac_exec_ext in '' $ac_executable_extensions; do
7088         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7089           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7090             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7091             break 2
7092           fi
7093         fi
7094       done
7095     done
7096     IFS="$ac_save_IFS"
7097   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7098     ;;
7099 esac
7100 fi
7101 MSGMERGE="$ac_cv_path_MSGMERGE"
7102 if test "$MSGMERGE" != ":"; then
7103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7104 $as_echo "$MSGMERGE" >&6; }
7105 else
7106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7108 fi
7109
7110
7111       if test "$GMSGFMT" != ":"; then
7112             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7113        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7114       : ;
7115     else
7116       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7117       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7118 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7119       GMSGFMT=":"
7120     fi
7121   fi
7122
7123       if test "$XGETTEXT" != ":"; then
7124             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7125        (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
7126       : ;
7127     else
7128       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7129 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7130       XGETTEXT=":"
7131     fi
7132         rm -f messages.po
7133   fi
7134
7135   ac_config_commands="$ac_config_commands default-1"
7136
7137
7138
7139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7140 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7141 if ${ac_cv_c_bigendian+:} false; then :
7142   $as_echo_n "(cached) " >&6
7143 else
7144   ac_cv_c_bigendian=unknown
7145     # See if we're dealing with a universal compiler.
7146     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h.  */
7148 #ifndef __APPLE_CC__
7149                not a universal capable compiler
7150              #endif
7151              typedef int dummy;
7152
7153 _ACEOF
7154 if ac_fn_c_try_compile "$LINENO"; then :
7155
7156         # Check for potential -arch flags.  It is not universal unless
7157         # there are at least two -arch flags with different values.
7158         ac_arch=
7159         ac_prev=
7160         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7161          if test -n "$ac_prev"; then
7162            case $ac_word in
7163              i?86 | x86_64 | ppc | ppc64)
7164                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7165                  ac_arch=$ac_word
7166                else
7167                  ac_cv_c_bigendian=universal
7168                  break
7169                fi
7170                ;;
7171            esac
7172            ac_prev=
7173          elif test "x$ac_word" = "x-arch"; then
7174            ac_prev=arch
7175          fi
7176        done
7177 fi
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179     if test $ac_cv_c_bigendian = unknown; then
7180       # See if sys/param.h defines the BYTE_ORDER macro.
7181       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h.  */
7183 #include <sys/types.h>
7184              #include <sys/param.h>
7185
7186 int
7187 main ()
7188 {
7189 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7190                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7191                      && LITTLE_ENDIAN)
7192               bogus endian macros
7193              #endif
7194
7195   ;
7196   return 0;
7197 }
7198 _ACEOF
7199 if ac_fn_c_try_compile "$LINENO"; then :
7200   # It does; now see whether it defined to BIG_ENDIAN or not.
7201          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h.  */
7203 #include <sys/types.h>
7204                 #include <sys/param.h>
7205
7206 int
7207 main ()
7208 {
7209 #if BYTE_ORDER != BIG_ENDIAN
7210                  not big endian
7211                 #endif
7212
7213   ;
7214   return 0;
7215 }
7216 _ACEOF
7217 if ac_fn_c_try_compile "$LINENO"; then :
7218   ac_cv_c_bigendian=yes
7219 else
7220   ac_cv_c_bigendian=no
7221 fi
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 fi
7224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7225     fi
7226     if test $ac_cv_c_bigendian = unknown; then
7227       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7228       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h.  */
7230 #include <limits.h>
7231
7232 int
7233 main ()
7234 {
7235 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7236               bogus endian macros
7237              #endif
7238
7239   ;
7240   return 0;
7241 }
7242 _ACEOF
7243 if ac_fn_c_try_compile "$LINENO"; then :
7244   # It does; now see whether it defined to _BIG_ENDIAN or not.
7245          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h.  */
7247 #include <limits.h>
7248
7249 int
7250 main ()
7251 {
7252 #ifndef _BIG_ENDIAN
7253                  not big endian
7254                 #endif
7255
7256   ;
7257   return 0;
7258 }
7259 _ACEOF
7260 if ac_fn_c_try_compile "$LINENO"; then :
7261   ac_cv_c_bigendian=yes
7262 else
7263   ac_cv_c_bigendian=no
7264 fi
7265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266 fi
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268     fi
7269     if test $ac_cv_c_bigendian = unknown; then
7270       # Compile a test program.
7271       if test "$cross_compiling" = yes; then :
7272   # Try to guess by grepping values from an object file.
7273          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h.  */
7275 short int ascii_mm[] =
7276                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7277                 short int ascii_ii[] =
7278                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7279                 int use_ascii (int i) {
7280                   return ascii_mm[i] + ascii_ii[i];
7281                 }
7282                 short int ebcdic_ii[] =
7283                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7284                 short int ebcdic_mm[] =
7285                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7286                 int use_ebcdic (int i) {
7287                   return ebcdic_mm[i] + ebcdic_ii[i];
7288                 }
7289                 extern int foo;
7290
7291 int
7292 main ()
7293 {
7294 return use_ascii (foo) == use_ebcdic (foo);
7295   ;
7296   return 0;
7297 }
7298 _ACEOF
7299 if ac_fn_c_try_compile "$LINENO"; then :
7300   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7301               ac_cv_c_bigendian=yes
7302             fi
7303             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7304               if test "$ac_cv_c_bigendian" = unknown; then
7305                 ac_cv_c_bigendian=no
7306               else
7307                 # finding both strings is unlikely to happen, but who knows?
7308                 ac_cv_c_bigendian=unknown
7309               fi
7310             fi
7311 fi
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313 else
7314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h.  */
7316 $ac_includes_default
7317 int
7318 main ()
7319 {
7320
7321              /* Are we little or big endian?  From Harbison&Steele.  */
7322              union
7323              {
7324                long int l;
7325                char c[sizeof (long int)];
7326              } u;
7327              u.l = 1;
7328              return u.c[sizeof (long int) - 1] == 1;
7329
7330   ;
7331   return 0;
7332 }
7333 _ACEOF
7334 if ac_fn_c_try_run "$LINENO"; then :
7335   ac_cv_c_bigendian=no
7336 else
7337   ac_cv_c_bigendian=yes
7338 fi
7339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7340   conftest.$ac_objext conftest.beam conftest.$ac_ext
7341 fi
7342
7343     fi
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7346 $as_echo "$ac_cv_c_bigendian" >&6; }
7347  case $ac_cv_c_bigendian in #(
7348    yes)
7349      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7350 ;; #(
7351    no)
7352       ;; #(
7353    universal)
7354
7355 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7356
7357      ;; #(
7358    *)
7359      as_fn_error $? "unknown endianness
7360  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7361  esac
7362
7363
7364
7365
7366  if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
7367   NATIVE_LINKER_TRUE=
7368   NATIVE_LINKER_FALSE='#'
7369 else
7370   NATIVE_LINKER_TRUE='#'
7371   NATIVE_LINKER_FALSE=
7372 fi
7373
7374  if test "$GCC" = yes; then
7375   GCC_TRUE=
7376   GCC_FALSE='#'
7377 else
7378   GCC_TRUE='#'
7379   GCC_FALSE=
7380 fi
7381
7382
7383  if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
7384   NATIVE_OR_CROSS_LINKER_TRUE=
7385   NATIVE_OR_CROSS_LINKER_FALSE='#'
7386 else
7387   NATIVE_OR_CROSS_LINKER_TRUE='#'
7388   NATIVE_OR_CROSS_LINKER_FALSE=
7389 fi
7390
7391
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
7393 $as_echo_n "checking whether static linking works... " >&6; }
7394 if ${gold_cv_lib_static+:} false; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   LDFLAGS_hold=$LDFLAGS
7398 LDFLAGS="$LDFLAGS -static"
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h.  */
7401
7402 void f() { }
7403 int
7404 main ()
7405 {
7406
7407   ;
7408   return 0;
7409 }
7410 _ACEOF
7411 if ac_fn_c_try_link "$LINENO"; then :
7412   gold_cv_lib_static=yes
7413 else
7414   gold_cv_lib_static=no
7415 fi
7416 rm -f core conftest.err conftest.$ac_objext \
7417     conftest$ac_exeext conftest.$ac_ext
7418 LDFLAGS=$LDFLAGS_hold
7419 fi
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
7421 $as_echo "$gold_cv_lib_static" >&6; }
7422  if test "$gold_cv_lib_static" = "yes"; then
7423   HAVE_STATIC_TRUE=
7424   HAVE_STATIC_FALSE='#'
7425 else
7426   HAVE_STATIC_TRUE='#'
7427   HAVE_STATIC_FALSE=
7428 fi
7429
7430
7431  if
7432   case $target_cpu in
7433     powerpc*) false;;
7434     x86_64) false;;
7435     sparc64) false;;
7436     s390x) false;;
7437     *) true;;
7438   esac; then
7439   FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
7440   FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
7441 else
7442   FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
7443   FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
7444 fi
7445
7446
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
7448 $as_echo_n "checking for gcc >= 4.1... " >&6; }
7449 if ${gold_cv_prog_gcc41+:} false; then :
7450   $as_echo_n "(cached) " >&6
7451 else
7452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h.  */
7454
7455 #if !defined __GNUC__
7456 error
7457 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
7458 error
7459 #endif
7460
7461 _ACEOF
7462 if ac_fn_c_try_compile "$LINENO"; then :
7463   gold_cv_prog_gcc41=yes
7464 else
7465   gold_cv_prog_gcc41=no
7466 fi
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468 fi
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
7470 $as_echo "$gold_cv_prog_gcc41" >&6; }
7471
7472 save_CFLAGS="$CFLAGS"
7473 CFLAGS="$CFLAGS -mcmodel=medium"
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h.  */
7476 int i;
7477 _ACEOF
7478 if ac_fn_c_try_compile "$LINENO"; then :
7479   have_mcmodel_medium=yes
7480 else
7481   have_mcmodel_medium=no
7482 fi
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 CFLAGS="$save_CFLAGS"
7485  if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
7486   MCMODEL_MEDIUM_TRUE=
7487   MCMODEL_MEDIUM_FALSE='#'
7488 else
7489   MCMODEL_MEDIUM_TRUE='#'
7490   MCMODEL_MEDIUM_FALSE=
7491 fi
7492
7493
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
7495 $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
7496 if ${gold_cv_merge_constants+:} false; then :
7497   $as_echo_n "(cached) " >&6
7498 else
7499
7500 save_CFLAGS="$CFLAGS"
7501 CFLAGS="$CFLAGS -fmerge-constants"
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h.  */
7504 const char *s = "foo";
7505 _ACEOF
7506 if ac_fn_c_try_compile "$LINENO"; then :
7507   gold_cv_merge_constants=yes
7508 else
7509   gold_cv_merge_constants=no
7510 fi
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512 CFLAGS="$save_CFLAGS"
7513 fi
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
7515 $as_echo "$gold_cv_merge_constants" >&6; }
7516
7517 if test "$gold_cv_merge_constants" = yes; then :
7518   MERGE_CONSTANTS_FLAG=-fmerge-constants
7519 else
7520   MERGE_CONSTANTS_FLAG=
7521 fi
7522
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
7524 $as_echo_n "checking for thread support... " >&6; }
7525 if ${gold_cv_c_thread+:} false; then :
7526   $as_echo_n "(cached) " >&6
7527 else
7528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h.  */
7530 __thread int i = 1;
7531 _ACEOF
7532 if ac_fn_c_try_compile "$LINENO"; then :
7533   gold_cv_c_thread=yes
7534 else
7535   gold_cv_c_thread=no
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 fi
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
7540 $as_echo "$gold_cv_c_thread" >&6; }
7541
7542  if test "$gold_cv_c_thread" = "yes"; then
7543   TLS_TRUE=
7544   TLS_FALSE='#'
7545 else
7546   TLS_TRUE='#'
7547   TLS_FALSE=
7548 fi
7549
7550
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
7552 $as_echo_n "checking for glibc >= 2.4... " >&6; }
7553 if ${gold_cv_lib_glibc24+:} false; then :
7554   $as_echo_n "(cached) " >&6
7555 else
7556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h.  */
7558
7559 #include <features.h>
7560 #if !defined __GLIBC__
7561 error
7562 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
7563 error
7564 #endif
7565
7566 _ACEOF
7567 if ac_fn_c_try_compile "$LINENO"; then :
7568   gold_cv_lib_glibc24=yes
7569 else
7570   gold_cv_lib_glibc24=no
7571 fi
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573 fi
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
7575 $as_echo "$gold_cv_lib_glibc24" >&6; }
7576
7577  if test "$gold_cv_lib_glibc24" = "yes"; then
7578   STATIC_TLS_TRUE=
7579   STATIC_TLS_FALSE='#'
7580 else
7581   STATIC_TLS_TRUE='#'
7582   STATIC_TLS_FALSE=
7583 fi
7584
7585
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
7587 $as_echo_n "checking for omp support... " >&6; }
7588 if ${gold_cv_c_threadprivate+:} false; then :
7589   $as_echo_n "(cached) " >&6
7590 else
7591   save_CFLAGS="$CFLAGS"
7592 CFLAGS="$CFLAGS -fopenmp"
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h.  */
7595
7596 #include <omp.h>
7597 int i;
7598 #pragma omp threadprivate (i)
7599
7600 _ACEOF
7601 if ac_fn_c_try_compile "$LINENO"; then :
7602   gold_cv_c_threadprivate=yes
7603 else
7604   gold_cv_c_threadprivate=no
7605 fi
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7607 CFLAGS="$save_CFLAGS"
7608 fi
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
7610 $as_echo "$gold_cv_c_threadprivate" >&6; }
7611 if test "$gold_cv_c_threadprivate" = "yes"; then
7612
7613 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
7614
7615 fi
7616  if test "$gold_cv_c_threadprivate" = "yes"; then
7617   OMP_SUPPORT_TRUE=
7618   OMP_SUPPORT_FALSE='#'
7619 else
7620   OMP_SUPPORT_TRUE='#'
7621   OMP_SUPPORT_FALSE=
7622 fi
7623
7624
7625 save_CFLAGS="$CFLAGS"
7626 CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h.  */
7629
7630 __thread int i;
7631 void foo (void)
7632 {
7633   i = 10;
7634 }
7635
7636 _ACEOF
7637 if ac_fn_c_try_compile "$LINENO"; then :
7638   have_tls_gnu2=yes
7639 else
7640   have_tls_gnu2=no
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 CFLAGS="$save_CFLAGS"
7644  if test "$have_tls_gnu2" = "yes"; then
7645   TLS_GNU2_DIALECT_TRUE=
7646   TLS_GNU2_DIALECT_FALSE='#'
7647 else
7648   TLS_GNU2_DIALECT_TRUE='#'
7649   TLS_GNU2_DIALECT_FALSE=
7650 fi
7651
7652
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
7654 $as_echo_n "checking for glibc >= 2.9... " >&6; }
7655 if ${gold_cv_lib_glibc29+:} false; then :
7656   $as_echo_n "(cached) " >&6
7657 else
7658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h.  */
7660
7661 #include <features.h>
7662 #if !defined __GLIBC__
7663 error
7664 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
7665 error
7666 #endif
7667
7668 _ACEOF
7669 if ac_fn_c_try_compile "$LINENO"; then :
7670   gold_cv_lib_glibc29=yes
7671 else
7672   gold_cv_lib_glibc29=no
7673 fi
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 fi
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
7677 $as_echo "$gold_cv_lib_glibc29" >&6; }
7678
7679  if test "$gold_cv_lib_glibc29" = "yes"; then
7680   TLS_DESCRIPTORS_TRUE=
7681   TLS_DESCRIPTORS_FALSE='#'
7682 else
7683   TLS_DESCRIPTORS_TRUE='#'
7684   TLS_DESCRIPTORS_FALSE=
7685 fi
7686
7687
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
7689 $as_echo_n "checking for -frandom-seed support... " >&6; }
7690 if ${gold_cv_c_random_seed+:} false; then :
7691   $as_echo_n "(cached) " >&6
7692 else
7693   save_CFLAGS="$CFLAGS"
7694 CFLAGS="$CFLAGS -frandom-seed=foo"
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h.  */
7697 int i;
7698 _ACEOF
7699 if ac_fn_c_try_compile "$LINENO"; then :
7700   gold_cv_c_random_seed=yes
7701 else
7702   gold_cv_c_random_seed=no
7703 fi
7704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705 CFLAGS="$save_CFLAGS"
7706 fi
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
7708 $as_echo "$gold_cv_c_random_seed" >&6; }
7709 if test "$gold_cv_c_random_seed" = "yes"; then
7710   # In Makefile, '$@' will be expanded to be the name of the file
7711   # being built, providing a unique seed for each file.
7712   RANDOM_SEED_CFLAGS=-frandom-seed=\$@
7713 fi
7714
7715
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
7717 $as_echo_n "checking for glibc ifunc support... " >&6; }
7718 if ${gold_cv_lib_glibc_ifunc+:} false; then :
7719   $as_echo_n "(cached) " >&6
7720 else
7721   save_LDFLAGS="$LDFLAGS"
7722 LDFLAGS="$LDFLAGS -static"
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h.  */
7725
7726 #include <features.h>
7727 #if !defined __GLIBC__
7728 error
7729 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
7730 error
7731 #endif
7732 void func (void) { }
7733 void invoke (void);
7734 __asm__(".type invoke, %gnu_indirect_function");
7735 typedef void (*funcptr) (void);
7736 funcptr dispatch (void) __asm__ ("invoke");
7737 funcptr dispatch (void) { return &func; }
7738 int
7739 main ()
7740 {
7741 invoke();
7742   ;
7743   return 0;
7744 }
7745
7746 _ACEOF
7747 if ac_fn_c_try_link "$LINENO"; then :
7748
7749 if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
7750   gold_cv_lib_glibc_ifunc=both
7751 else
7752   gold_cv_lib_glibc_ifunc=dyn
7753 fi
7754 else
7755   gold_cv_lib_glibc_ifunc=no
7756 fi
7757 rm -f core conftest.err conftest.$ac_objext \
7758     conftest$ac_exeext conftest.$ac_ext
7759 LDFLAGS="$save_LDFLAGS"
7760 fi
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
7762 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
7763
7764  if test "$gold_cv_lib_glibc_ifunc" != "no"; then
7765   IFUNC_TRUE=
7766   IFUNC_FALSE='#'
7767 else
7768   IFUNC_TRUE='#'
7769   IFUNC_FALSE=
7770 fi
7771
7772  if test "$gold_cv_lib_glibc_ifunc" = "both"; then
7773   IFUNC_STATIC_TRUE=
7774   IFUNC_STATIC_FALSE='#'
7775 else
7776   IFUNC_STATIC_TRUE='#'
7777   IFUNC_STATIC_FALSE=
7778 fi
7779
7780
7781
7782 # Set the 'development' global.
7783 . $srcdir/../bfd/development.sh
7784
7785 # Set acp_cpp_for_build variable
7786 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
7787
7788 # Default set of GCC warnings to enable.
7789 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7790 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7791
7792 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h.  */
7795 __GNUC__
7796 _ACEOF
7797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7798   $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
7799
7800 else
7801   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
7802 fi
7803 rm -f conftest*
7804
7805
7806 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h.  */
7809 __GNUC__
7810 _ACEOF
7811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7812   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
7813
7814 else
7815   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
7816 fi
7817 rm -f conftest*
7818
7819
7820 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
7821 WARN_WRITE_STRINGS=""
7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h.  */
7824 __GNUC__
7825 _ACEOF
7826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7827   $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
7828
7829 else
7830   WARN_WRITE_STRINGS="-Wwrite-strings"
7831 fi
7832 rm -f conftest*
7833
7834
7835 # Verify CC_FOR_BUILD to be compatible with warning flags
7836
7837 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h.  */
7840 __GNUC__
7841 _ACEOF
7842 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7843   $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
7844
7845 else
7846   GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
7847 fi
7848 rm -f conftest*
7849
7850
7851 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h.  */
7854 __GNUC__
7855 _ACEOF
7856 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7857   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
7858
7859 else
7860   GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
7861 fi
7862 rm -f conftest*
7863
7864
7865 # Check whether --enable-werror was given.
7866 if test "${enable_werror+set}" = set; then :
7867   enableval=$enable_werror; case "${enableval}" in
7868      yes | y) ERROR_ON_WARNING="yes" ;;
7869      no | n)  ERROR_ON_WARNING="no" ;;
7870      *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
7871    esac
7872 fi
7873
7874
7875 # Disable -Wformat by default when using gcc on mingw
7876 case "${host}" in
7877   *-*-mingw32*)
7878     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
7879       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
7880       GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
7881     fi
7882     ;;
7883   *) ;;
7884 esac
7885
7886 # Enable -Werror by default when using gcc.  Turn it off for releases.
7887 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
7888     ERROR_ON_WARNING=yes
7889 fi
7890
7891 NO_WERROR=
7892 if test "${ERROR_ON_WARNING}" = yes ; then
7893     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
7894     GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
7895     NO_WERROR="-Wno-error"
7896 fi
7897
7898 if test "${GCC}" = yes ; then
7899   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
7900   WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
7901 fi
7902
7903 # Check whether --enable-build-warnings was given.
7904 if test "${enable_build_warnings+set}" = set; then :
7905   enableval=$enable_build_warnings; case "${enableval}" in
7906   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
7907         WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
7908   no)   if test "${GCC}" = yes ; then
7909           WARN_CFLAGS="-w"
7910       WARN_CFLAGS_FOR_BUILD="-w"
7911         fi;;
7912   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
7913         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
7914         WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
7915   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
7916         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
7917         WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
7918   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
7919         WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7920 esac
7921 fi
7922
7923
7924 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
7925   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
7926 fi
7927
7928
7929
7930
7931
7932
7933
7934 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
7935
7936
7937
7938 # Check whether --with-gold-ldflags was given.
7939 if test "${with_gold_ldflags+set}" = set; then :
7940   withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
7941    GOLD_LDFLAGS=
7942  else
7943    GOLD_LDFLAGS=$withval
7944  fi
7945 else
7946   GOLD_LDFLAGS=
7947 fi
7948
7949
7950
7951
7952 # Check whether --with-gold-ldadd was given.
7953 if test "${with_gold_ldadd+set}" = set; then :
7954   withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
7955    GOLD_LDADD=
7956  else
7957    GOLD_LDADD=$withval
7958  fi
7959 else
7960   GOLD_LDADD=
7961 fi
7962
7963
7964
7965 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
7966
7967
7968 for ac_header in sys/mman.h
7969 do :
7970   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
7971 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
7972   cat >>confdefs.h <<_ACEOF
7973 #define HAVE_SYS_MMAN_H 1
7974 _ACEOF
7975
7976 fi
7977
7978 done
7979
7980 for ac_func in chsize mmap link
7981 do :
7982   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7983 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7984 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7985   cat >>confdefs.h <<_ACEOF
7986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7987 _ACEOF
7988
7989 fi
7990 done
7991
7992 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
7993 if test "x$ac_cv_func_pread" = xyes; then :
7994   $as_echo "#define HAVE_PREAD 1" >>confdefs.h
7995
7996 else
7997   case " $LIBOBJS " in
7998   *" pread.$ac_objext "* ) ;;
7999   *) LIBOBJS="$LIBOBJS pread.$ac_objext"
8000  ;;
8001 esac
8002
8003 fi
8004
8005 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
8006 if test "x$ac_cv_func_ftruncate" = xyes; then :
8007   $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
8008
8009 else
8010   case " $LIBOBJS " in
8011   *" ftruncate.$ac_objext "* ) ;;
8012   *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
8013  ;;
8014 esac
8015
8016 fi
8017
8018 ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll"
8019 if test "x$ac_cv_func_ffsll" = xyes; then :
8020   $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
8021
8022 else
8023   case " $LIBOBJS " in
8024   *" ffsll.$ac_objext "* ) ;;
8025   *) LIBOBJS="$LIBOBJS ffsll.$ac_objext"
8026  ;;
8027 esac
8028
8029 fi
8030
8031
8032
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
8034 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
8035 if ${gold_cv_lib_mremap_maymove+:} false; then :
8036   $as_echo_n "(cached) " >&6
8037 else
8038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h.  */
8040
8041
8042 #include <sys/mman.h>
8043 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
8044
8045 int
8046 main ()
8047 {
8048
8049   ;
8050   return 0;
8051 }
8052 _ACEOF
8053 if ac_fn_c_try_link "$LINENO"; then :
8054   gold_cv_lib_mremap_maymove=yes
8055 else
8056   gold_cv_lib_mremap_maymove=no
8057 fi
8058 rm -f core conftest.err conftest.$ac_objext \
8059     conftest$ac_exeext conftest.$ac_ext
8060 fi
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
8062 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
8063 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
8064
8065 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
8066
8067 else
8068   case " $LIBOBJS " in
8069   *" mremap.$ac_objext "* ) ;;
8070   *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
8071  ;;
8072 esac
8073
8074 fi
8075
8076 # Link in zlib if we can.  This allows us to write compressed sections.
8077
8078   # Use the system's zlib library.
8079   zlibdir="-L\$(top_builddir)/../zlib"
8080   zlibinc="-I\$(top_srcdir)/../zlib"
8081
8082 # Check whether --with-system-zlib was given.
8083 if test "${with_system_zlib+set}" = set; then :
8084   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8085     zlibdir=
8086     zlibinc=
8087   fi
8088
8089 fi
8090
8091
8092
8093
8094
8095 # Check whether --enable-threads was given.
8096 if test "${enable_threads+set}" = set; then :
8097   enableval=$enable_threads; case "${enableval}" in
8098   yes | "") threads=yes ;;
8099   no) threads=no ;;
8100   auto) threads=auto ;;
8101   *) threads=yes ;;
8102  esac
8103 else
8104   threads=auto
8105 fi
8106
8107
8108 if test "$threads" = "yes"; then
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8110 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8111 if ${ac_cv_path_SED+:} false; then :
8112   $as_echo_n "(cached) " >&6
8113 else
8114             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8115      for ac_i in 1 2 3 4 5 6 7; do
8116        ac_script="$ac_script$as_nl$ac_script"
8117      done
8118      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8119      { ac_script=; unset ac_script;}
8120      if test -z "$SED"; then
8121   ac_path_SED_found=false
8122   # Loop through the user's path and test for each of PROGNAME-LIST
8123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126   IFS=$as_save_IFS
8127   test -z "$as_dir" && as_dir=.
8128     for ac_prog in sed gsed; do
8129     for ac_exec_ext in '' $ac_executable_extensions; do
8130       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8131       as_fn_executable_p "$ac_path_SED" || continue
8132 # Check for GNU ac_path_SED and select it if it is found.
8133   # Check for GNU $ac_path_SED
8134 case `"$ac_path_SED" --version 2>&1` in
8135 *GNU*)
8136   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8137 *)
8138   ac_count=0
8139   $as_echo_n 0123456789 >"conftest.in"
8140   while :
8141   do
8142     cat "conftest.in" "conftest.in" >"conftest.tmp"
8143     mv "conftest.tmp" "conftest.in"
8144     cp "conftest.in" "conftest.nl"
8145     $as_echo '' >> "conftest.nl"
8146     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8147     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8148     as_fn_arith $ac_count + 1 && ac_count=$as_val
8149     if test $ac_count -gt ${ac_path_SED_max-0}; then
8150       # Best one so far, save it but keep looking for a better one
8151       ac_cv_path_SED="$ac_path_SED"
8152       ac_path_SED_max=$ac_count
8153     fi
8154     # 10*(2^10) chars as input seems more than enough
8155     test $ac_count -gt 10 && break
8156   done
8157   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8158 esac
8159
8160       $ac_path_SED_found && break 3
8161     done
8162   done
8163   done
8164 IFS=$as_save_IFS
8165   if test -z "$ac_cv_path_SED"; then
8166     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8167   fi
8168 else
8169   ac_cv_path_SED=$SED
8170 fi
8171
8172 fi
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8174 $as_echo "$ac_cv_path_SED" >&6; }
8175  SED="$ac_cv_path_SED"
8176   rm -f conftest.sed
8177
8178
8179
8180
8181
8182 ac_ext=c
8183 ac_cpp='$CPP $CPPFLAGS'
8184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8187
8188 ax_pthread_ok=no
8189
8190 # We used to check for pthread.h first, but this fails if pthread.h
8191 # requires special compiler flags (e.g. on Tru64 or Sequent).
8192 # It gets checked for in the link test anyway.
8193
8194 # First of all, check if the user has set any of the PTHREAD_LIBS,
8195 # etcetera environment variables, and if threads linking works using
8196 # them:
8197 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8198         ax_pthread_save_CC="$CC"
8199         ax_pthread_save_CFLAGS="$CFLAGS"
8200         ax_pthread_save_LIBS="$LIBS"
8201         if test "x$PTHREAD_CC" != "x"; then :
8202   CC="$PTHREAD_CC"
8203 fi
8204         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8205         LIBS="$PTHREAD_LIBS $LIBS"
8206         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8207 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8208         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h.  */
8210
8211 /* Override any GCC internal prototype to avoid an error.
8212    Use char because int might match the return type of a GCC
8213    builtin and then its argument prototype would still apply.  */
8214 #ifdef __cplusplus
8215 extern "C"
8216 #endif
8217 char pthread_join ();
8218 int
8219 main ()
8220 {
8221 return pthread_join ();
8222   ;
8223   return 0;
8224 }
8225 _ACEOF
8226 if ac_fn_c_try_link "$LINENO"; then :
8227   ax_pthread_ok=yes
8228 fi
8229 rm -f core conftest.err conftest.$ac_objext \
8230     conftest$ac_exeext conftest.$ac_ext
8231         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8232 $as_echo "$ax_pthread_ok" >&6; }
8233         if test "x$ax_pthread_ok" = "xno"; then
8234                 PTHREAD_LIBS=""
8235                 PTHREAD_CFLAGS=""
8236         fi
8237         CC="$ax_pthread_save_CC"
8238         CFLAGS="$ax_pthread_save_CFLAGS"
8239         LIBS="$ax_pthread_save_LIBS"
8240 fi
8241
8242 # We must check for the threads library under a number of different
8243 # names; the ordering is very important because some systems
8244 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8245 # libraries is broken (non-POSIX).
8246
8247 # Create a list of thread flags to try.  Items starting with a "-" are
8248 # C compiler flags, and other items are library names, except for "none"
8249 # which indicates that we try without any flags at all, and "pthread-config"
8250 # which is a program returning the flags for the Pth emulation library.
8251
8252 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8253
8254 # The ordering *is* (sometimes) important.  Some notes on the
8255 # individual items follow:
8256
8257 # pthreads: AIX (must check this before -lpthread)
8258 # none: in case threads are in libc; should be tried before -Kthread and
8259 #       other compiler flags to prevent continual compiler warnings
8260 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8261 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8262 #           (Note: HP C rejects this with "bad form for `-t' option")
8263 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8264 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8265 #      doesn't hurt to check since this sometimes defines pthreads and
8266 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
8267 #      is present but should not be used directly; and before -mthreads,
8268 #      because the compiler interprets this as "-mt" + "-hreads")
8269 # -mthreads: Mingw32/gcc, Lynx/gcc
8270 # pthread: Linux, etcetera
8271 # --thread-safe: KAI C++
8272 # pthread-config: use pthread-config program (for GNU Pth library)
8273
8274 case $host_os in
8275
8276         freebsd*)
8277
8278         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8279         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8280
8281         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
8282         ;;
8283
8284         hpux*)
8285
8286         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8287         # multi-threading and also sets -lpthread."
8288
8289         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8290         ;;
8291
8292         openedition*)
8293
8294         # IBM z/OS requires a feature-test macro to be defined in order to
8295         # enable POSIX threads at all, so give the user a hint if this is
8296         # not set. (We don't define these ourselves, as they can affect
8297         # other portions of the system API in unpredictable ways.)
8298
8299         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h.  */
8301
8302 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8303              AX_PTHREAD_ZOS_MISSING
8304 #            endif
8305
8306 _ACEOF
8307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8308   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
8309   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8310 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8311 fi
8312 rm -f conftest*
8313
8314         ;;
8315
8316         solaris*)
8317
8318         # On Solaris (at least, for some versions), libc contains stubbed
8319         # (non-functional) versions of the pthreads routines, so link-based
8320         # tests will erroneously succeed. (N.B.: The stubs are missing
8321         # pthread_cleanup_push, or rather a function called by this macro,
8322         # so we could check for that, but who knows whether they'll stub
8323         # that too in a future libc.)  So we'll check first for the
8324         # standard Solaris way of linking pthreads (-mt -lpthread).
8325
8326         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
8327         ;;
8328 esac
8329
8330 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8331
8332 if test "x$GCC" = "xyes"; then :
8333   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
8334 fi
8335
8336 # The presence of a feature test macro requesting re-entrant function
8337 # definitions is, on some systems, a strong hint that pthreads support is
8338 # correctly enabled
8339
8340 case $host_os in
8341         darwin* | hpux* | linux* | osf* | solaris*)
8342         ax_pthread_check_macro="_REENTRANT"
8343         ;;
8344
8345         aix*)
8346         ax_pthread_check_macro="_THREAD_SAFE"
8347         ;;
8348
8349         *)
8350         ax_pthread_check_macro="--"
8351         ;;
8352 esac
8353 if test "x$ax_pthread_check_macro" = "x--"; then :
8354   ax_pthread_check_cond=0
8355 else
8356   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
8357 fi
8358
8359 # Are we compiling with Clang?
8360
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
8362 $as_echo_n "checking whether $CC is Clang... " >&6; }
8363 if ${ax_cv_PTHREAD_CLANG+:} false; then :
8364   $as_echo_n "(cached) " >&6
8365 else
8366   ax_cv_PTHREAD_CLANG=no
8367      # Note that Autoconf sets GCC=yes for Clang as well as GCC
8368      if test "x$GCC" = "xyes"; then
8369         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h.  */
8371 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
8372 #            if defined(__clang__) && defined(__llvm__)
8373              AX_PTHREAD_CC_IS_CLANG
8374 #            endif
8375
8376 _ACEOF
8377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8378   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
8379   ax_cv_PTHREAD_CLANG=yes
8380 fi
8381 rm -f conftest*
8382
8383      fi
8384
8385 fi
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8387 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
8388 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
8389
8390 ax_pthread_clang_warning=no
8391
8392 # Clang needs special handling, because older versions handle the -pthread
8393 # option in a rather... idiosyncratic way
8394
8395 if test "x$ax_pthread_clang" = "xyes"; then
8396
8397         # Clang takes -pthread; it has never supported any other flag
8398
8399         # (Note 1: This will need to be revisited if a system that Clang
8400         # supports has POSIX threads in a separate library.  This tends not
8401         # to be the way of modern systems, but it's conceivable.)
8402
8403         # (Note 2: On some systems, notably Darwin, -pthread is not needed
8404         # to get POSIX threads support; the API is always present and
8405         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
8406         # -pthread does define _REENTRANT, and while the Darwin headers
8407         # ignore this macro, third-party headers might not.)
8408
8409         PTHREAD_CFLAGS="-pthread"
8410         PTHREAD_LIBS=
8411
8412         ax_pthread_ok=yes
8413
8414         # However, older versions of Clang make a point of warning the user
8415         # that, in an invocation where only linking and no compilation is
8416         # taking place, the -pthread option has no effect ("argument unused
8417         # during compilation").  They expect -pthread to be passed in only
8418         # when source code is being compiled.
8419         #
8420         # Problem is, this is at odds with the way Automake and most other
8421         # C build frameworks function, which is that the same flags used in
8422         # compilation (CFLAGS) are also used in linking.  Many systems
8423         # supported by AX_PTHREAD require exactly this for POSIX threads
8424         # support, and in fact it is often not straightforward to specify a
8425         # flag that is used only in the compilation phase and not in
8426         # linking.  Such a scenario is extremely rare in practice.
8427         #
8428         # Even though use of the -pthread flag in linking would only print
8429         # a warning, this can be a nuisance for well-run software projects
8430         # that build with -Werror.  So if the active version of Clang has
8431         # this misfeature, we search for an option to squash it.
8432
8433         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8434 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8435 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
8436   $as_echo_n "(cached) " >&6
8437 else
8438   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
8439              # Create an alternate version of $ac_link that compiles and
8440              # links in two steps (.c -> .o, .o -> exe) instead of one
8441              # (.c -> exe), because the warning occurs only in the second
8442              # step
8443              ax_pthread_save_ac_link="$ac_link"
8444              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8445              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
8446              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8447              ax_pthread_save_CFLAGS="$CFLAGS"
8448              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
8449                 if test "x$ax_pthread_try" = "xunknown"; then :
8450   break
8451 fi
8452                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8453                 ac_link="$ax_pthread_save_ac_link"
8454                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h.  */
8456 int main(void){return 0;}
8457 _ACEOF
8458 if ac_fn_c_try_link "$LINENO"; then :
8459   ac_link="$ax_pthread_2step_ac_link"
8460                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h.  */
8462 int main(void){return 0;}
8463 _ACEOF
8464 if ac_fn_c_try_link "$LINENO"; then :
8465   break
8466 fi
8467 rm -f core conftest.err conftest.$ac_objext \
8468     conftest$ac_exeext conftest.$ac_ext
8469
8470 fi
8471 rm -f core conftest.err conftest.$ac_objext \
8472     conftest$ac_exeext conftest.$ac_ext
8473              done
8474              ac_link="$ax_pthread_save_ac_link"
8475              CFLAGS="$ax_pthread_save_CFLAGS"
8476              if test "x$ax_pthread_try" = "x"; then :
8477   ax_pthread_try=no
8478 fi
8479              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
8480
8481 fi
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8483 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8484
8485         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8486                 no | unknown) ;;
8487                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8488         esac
8489
8490 fi # $ax_pthread_clang = yes
8491
8492 if test "x$ax_pthread_ok" = "xno"; then
8493 for ax_pthread_try_flag in $ax_pthread_flags; do
8494
8495         case $ax_pthread_try_flag in
8496                 none)
8497                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8498 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8499                 ;;
8500
8501                 -mt,pthread)
8502                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8503 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8504                 PTHREAD_CFLAGS="-mt"
8505                 PTHREAD_LIBS="-lpthread"
8506                 ;;
8507
8508                 -*)
8509                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8510 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8511                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
8512                 ;;
8513
8514                 pthread-config)
8515                 # Extract the first word of "pthread-config", so it can be a program name with args.
8516 set dummy pthread-config; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8520   $as_echo_n "(cached) " >&6
8521 else
8522   if test -n "$ax_pthread_config"; then
8523   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8524 else
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 for as_dir in $PATH
8527 do
8528   IFS=$as_save_IFS
8529   test -z "$as_dir" && as_dir=.
8530     for ac_exec_ext in '' $ac_executable_extensions; do
8531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8532     ac_cv_prog_ax_pthread_config="yes"
8533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534     break 2
8535   fi
8536 done
8537   done
8538 IFS=$as_save_IFS
8539
8540   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8541 fi
8542 fi
8543 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8544 if test -n "$ax_pthread_config"; then
8545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8546 $as_echo "$ax_pthread_config" >&6; }
8547 else
8548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549 $as_echo "no" >&6; }
8550 fi
8551
8552
8553                 if test "x$ax_pthread_config" = "xno"; then :
8554   continue
8555 fi
8556                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8557                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8558                 ;;
8559
8560                 *)
8561                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8562 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8563                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
8564                 ;;
8565         esac
8566
8567         ax_pthread_save_CFLAGS="$CFLAGS"
8568         ax_pthread_save_LIBS="$LIBS"
8569         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8570         LIBS="$PTHREAD_LIBS $LIBS"
8571
8572         # Check for various functions.  We must include pthread.h,
8573         # since some functions may be macros.  (On the Sequent, we
8574         # need a special flag -Kthread to make this header compile.)
8575         # We check for pthread_join because it is in -lpthread on IRIX
8576         # while pthread_create is in libc.  We check for pthread_attr_init
8577         # due to DEC craziness with -lpthreads.  We check for
8578         # pthread_cleanup_push because it is one of the few pthread
8579         # functions on Solaris that doesn't have a non-functional libc stub.
8580         # We try pthread_create on general principles.
8581
8582         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h.  */
8584 #include <pthread.h>
8585 #                       if $ax_pthread_check_cond
8586 #                        error "$ax_pthread_check_macro must be defined"
8587 #                       endif
8588                         static void routine(void *a) { a = 0; }
8589                         static void *start_routine(void *a) { return a; }
8590 int
8591 main ()
8592 {
8593 pthread_t th; pthread_attr_t attr;
8594                         pthread_create(&th, 0, start_routine, 0);
8595                         pthread_join(th, 0);
8596                         pthread_attr_init(&attr);
8597                         pthread_cleanup_push(routine, 0);
8598                         pthread_cleanup_pop(0) /* ; */
8599   ;
8600   return 0;
8601 }
8602 _ACEOF
8603 if ac_fn_c_try_link "$LINENO"; then :
8604   ax_pthread_ok=yes
8605 fi
8606 rm -f core conftest.err conftest.$ac_objext \
8607     conftest$ac_exeext conftest.$ac_ext
8608
8609         CFLAGS="$ax_pthread_save_CFLAGS"
8610         LIBS="$ax_pthread_save_LIBS"
8611
8612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8613 $as_echo "$ax_pthread_ok" >&6; }
8614         if test "x$ax_pthread_ok" = "xyes"; then :
8615   break
8616 fi
8617
8618         PTHREAD_LIBS=""
8619         PTHREAD_CFLAGS=""
8620 done
8621 fi
8622
8623 # Various other checks:
8624 if test "x$ax_pthread_ok" = "xyes"; then
8625         ax_pthread_save_CFLAGS="$CFLAGS"
8626         ax_pthread_save_LIBS="$LIBS"
8627         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8628         LIBS="$PTHREAD_LIBS $LIBS"
8629
8630         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8631         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8632 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8633 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
8634   $as_echo_n "(cached) " >&6
8635 else
8636   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
8637              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8638                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h.  */
8640 #include <pthread.h>
8641 int
8642 main ()
8643 {
8644 int attr = $ax_pthread_attr; return attr /* ; */
8645   ;
8646   return 0;
8647 }
8648 _ACEOF
8649 if ac_fn_c_try_link "$LINENO"; then :
8650   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext \
8653     conftest$ac_exeext conftest.$ac_ext
8654              done
8655
8656 fi
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8658 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8659         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8660                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8661                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8662
8663 cat >>confdefs.h <<_ACEOF
8664 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8665 _ACEOF
8666
8667                ax_pthread_joinable_attr_defined=yes
8668
8669 fi
8670
8671         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8672 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8673 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
8674   $as_echo_n "(cached) " >&6
8675 else
8676   ax_cv_PTHREAD_SPECIAL_FLAGS=no
8677              case $host_os in
8678              solaris*)
8679              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
8680              ;;
8681              esac
8682
8683 fi
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8685 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8686         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8687                test "x$ax_pthread_special_flags_added" != "xyes"; then :
8688   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8689                ax_pthread_special_flags_added=yes
8690 fi
8691
8692         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8693 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8694 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8695   $as_echo_n "(cached) " >&6
8696 else
8697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h.  */
8699 #include <pthread.h>
8700 int
8701 main ()
8702 {
8703 int i = PTHREAD_PRIO_INHERIT;
8704   ;
8705   return 0;
8706 }
8707 _ACEOF
8708 if ac_fn_c_try_link "$LINENO"; then :
8709   ax_cv_PTHREAD_PRIO_INHERIT=yes
8710 else
8711   ax_cv_PTHREAD_PRIO_INHERIT=no
8712 fi
8713 rm -f core conftest.err conftest.$ac_objext \
8714     conftest$ac_exeext conftest.$ac_ext
8715
8716 fi
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8718 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8719         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8720                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8721
8722 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8723
8724                ax_pthread_prio_inherit_defined=yes
8725
8726 fi
8727
8728         CFLAGS="$ax_pthread_save_CFLAGS"
8729         LIBS="$ax_pthread_save_LIBS"
8730
8731         # More AIX lossage: compile with *_r variant
8732         if test "x$GCC" != "xyes"; then
8733             case $host_os in
8734                 aix*)
8735                 case "x/$CC" in #(
8736   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8737     #handle absolute path differently from PATH based program lookup
8738                      case "x$CC" in #(
8739   x/*) :
8740     if as_fn_executable_p ${CC}_r; then :
8741   PTHREAD_CC="${CC}_r"
8742 fi ;; #(
8743   *) :
8744     for ac_prog in ${CC}_r
8745 do
8746   # Extract the first word of "$ac_prog", so it can be a program name with args.
8747 set dummy $ac_prog; ac_word=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8751   $as_echo_n "(cached) " >&6
8752 else
8753   if test -n "$PTHREAD_CC"; then
8754   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8755 else
8756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757 for as_dir in $PATH
8758 do
8759   IFS=$as_save_IFS
8760   test -z "$as_dir" && as_dir=.
8761     for ac_exec_ext in '' $ac_executable_extensions; do
8762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763     ac_cv_prog_PTHREAD_CC="$ac_prog"
8764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765     break 2
8766   fi
8767 done
8768   done
8769 IFS=$as_save_IFS
8770
8771 fi
8772 fi
8773 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8774 if test -n "$PTHREAD_CC"; then
8775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8776 $as_echo "$PTHREAD_CC" >&6; }
8777 else
8778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8780 fi
8781
8782
8783   test -n "$PTHREAD_CC" && break
8784 done
8785 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8786  ;;
8787 esac ;; #(
8788   *) :
8789      ;;
8790 esac
8791                 ;;
8792             esac
8793         fi
8794 fi
8795
8796 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8797
8798
8799
8800
8801
8802 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8803 if test "x$ax_pthread_ok" = "xyes"; then
8804         threads=yes
8805         :
8806 else
8807         ax_pthread_ok=no
8808         as_fn_error $? "pthread not found" "$LINENO" 5
8809 fi
8810 ac_ext=c
8811 ac_cpp='$CPP $CPPFLAGS'
8812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8815
8816
8817 elif test "$threads" = "auto"; then
8818
8819
8820
8821
8822 ac_ext=c
8823 ac_cpp='$CPP $CPPFLAGS'
8824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8827
8828 ax_pthread_ok=no
8829
8830 # We used to check for pthread.h first, but this fails if pthread.h
8831 # requires special compiler flags (e.g. on Tru64 or Sequent).
8832 # It gets checked for in the link test anyway.
8833
8834 # First of all, check if the user has set any of the PTHREAD_LIBS,
8835 # etcetera environment variables, and if threads linking works using
8836 # them:
8837 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8838         ax_pthread_save_CC="$CC"
8839         ax_pthread_save_CFLAGS="$CFLAGS"
8840         ax_pthread_save_LIBS="$LIBS"
8841         if test "x$PTHREAD_CC" != "x"; then :
8842   CC="$PTHREAD_CC"
8843 fi
8844         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8845         LIBS="$PTHREAD_LIBS $LIBS"
8846         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8847 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8848         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h.  */
8850
8851 /* Override any GCC internal prototype to avoid an error.
8852    Use char because int might match the return type of a GCC
8853    builtin and then its argument prototype would still apply.  */
8854 #ifdef __cplusplus
8855 extern "C"
8856 #endif
8857 char pthread_join ();
8858 int
8859 main ()
8860 {
8861 return pthread_join ();
8862   ;
8863   return 0;
8864 }
8865 _ACEOF
8866 if ac_fn_c_try_link "$LINENO"; then :
8867   ax_pthread_ok=yes
8868 fi
8869 rm -f core conftest.err conftest.$ac_objext \
8870     conftest$ac_exeext conftest.$ac_ext
8871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8872 $as_echo "$ax_pthread_ok" >&6; }
8873         if test "x$ax_pthread_ok" = "xno"; then
8874                 PTHREAD_LIBS=""
8875                 PTHREAD_CFLAGS=""
8876         fi
8877         CC="$ax_pthread_save_CC"
8878         CFLAGS="$ax_pthread_save_CFLAGS"
8879         LIBS="$ax_pthread_save_LIBS"
8880 fi
8881
8882 # We must check for the threads library under a number of different
8883 # names; the ordering is very important because some systems
8884 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8885 # libraries is broken (non-POSIX).
8886
8887 # Create a list of thread flags to try.  Items starting with a "-" are
8888 # C compiler flags, and other items are library names, except for "none"
8889 # which indicates that we try without any flags at all, and "pthread-config"
8890 # which is a program returning the flags for the Pth emulation library.
8891
8892 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8893
8894 # The ordering *is* (sometimes) important.  Some notes on the
8895 # individual items follow:
8896
8897 # pthreads: AIX (must check this before -lpthread)
8898 # none: in case threads are in libc; should be tried before -Kthread and
8899 #       other compiler flags to prevent continual compiler warnings
8900 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8901 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8902 #           (Note: HP C rejects this with "bad form for `-t' option")
8903 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8904 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8905 #      doesn't hurt to check since this sometimes defines pthreads and
8906 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
8907 #      is present but should not be used directly; and before -mthreads,
8908 #      because the compiler interprets this as "-mt" + "-hreads")
8909 # -mthreads: Mingw32/gcc, Lynx/gcc
8910 # pthread: Linux, etcetera
8911 # --thread-safe: KAI C++
8912 # pthread-config: use pthread-config program (for GNU Pth library)
8913
8914 case $host_os in
8915
8916         freebsd*)
8917
8918         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8919         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8920
8921         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
8922         ;;
8923
8924         hpux*)
8925
8926         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8927         # multi-threading and also sets -lpthread."
8928
8929         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8930         ;;
8931
8932         openedition*)
8933
8934         # IBM z/OS requires a feature-test macro to be defined in order to
8935         # enable POSIX threads at all, so give the user a hint if this is
8936         # not set. (We don't define these ourselves, as they can affect
8937         # other portions of the system API in unpredictable ways.)
8938
8939         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h.  */
8941
8942 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8943              AX_PTHREAD_ZOS_MISSING
8944 #            endif
8945
8946 _ACEOF
8947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8948   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
8949   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8950 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8951 fi
8952 rm -f conftest*
8953
8954         ;;
8955
8956         solaris*)
8957
8958         # On Solaris (at least, for some versions), libc contains stubbed
8959         # (non-functional) versions of the pthreads routines, so link-based
8960         # tests will erroneously succeed. (N.B.: The stubs are missing
8961         # pthread_cleanup_push, or rather a function called by this macro,
8962         # so we could check for that, but who knows whether they'll stub
8963         # that too in a future libc.)  So we'll check first for the
8964         # standard Solaris way of linking pthreads (-mt -lpthread).
8965
8966         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
8967         ;;
8968 esac
8969
8970 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8971
8972 if test "x$GCC" = "xyes"; then :
8973   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
8974 fi
8975
8976 # The presence of a feature test macro requesting re-entrant function
8977 # definitions is, on some systems, a strong hint that pthreads support is
8978 # correctly enabled
8979
8980 case $host_os in
8981         darwin* | hpux* | linux* | osf* | solaris*)
8982         ax_pthread_check_macro="_REENTRANT"
8983         ;;
8984
8985         aix*)
8986         ax_pthread_check_macro="_THREAD_SAFE"
8987         ;;
8988
8989         *)
8990         ax_pthread_check_macro="--"
8991         ;;
8992 esac
8993 if test "x$ax_pthread_check_macro" = "x--"; then :
8994   ax_pthread_check_cond=0
8995 else
8996   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
8997 fi
8998
8999 # Are we compiling with Clang?
9000
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9002 $as_echo_n "checking whether $CC is Clang... " >&6; }
9003 if ${ax_cv_PTHREAD_CLANG+:} false; then :
9004   $as_echo_n "(cached) " >&6
9005 else
9006   ax_cv_PTHREAD_CLANG=no
9007      # Note that Autoconf sets GCC=yes for Clang as well as GCC
9008      if test "x$GCC" = "xyes"; then
9009         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h.  */
9011 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9012 #            if defined(__clang__) && defined(__llvm__)
9013              AX_PTHREAD_CC_IS_CLANG
9014 #            endif
9015
9016 _ACEOF
9017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9018   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9019   ax_cv_PTHREAD_CLANG=yes
9020 fi
9021 rm -f conftest*
9022
9023      fi
9024
9025 fi
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9027 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9028 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9029
9030 ax_pthread_clang_warning=no
9031
9032 # Clang needs special handling, because older versions handle the -pthread
9033 # option in a rather... idiosyncratic way
9034
9035 if test "x$ax_pthread_clang" = "xyes"; then
9036
9037         # Clang takes -pthread; it has never supported any other flag
9038
9039         # (Note 1: This will need to be revisited if a system that Clang
9040         # supports has POSIX threads in a separate library.  This tends not
9041         # to be the way of modern systems, but it's conceivable.)
9042
9043         # (Note 2: On some systems, notably Darwin, -pthread is not needed
9044         # to get POSIX threads support; the API is always present and
9045         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
9046         # -pthread does define _REENTRANT, and while the Darwin headers
9047         # ignore this macro, third-party headers might not.)
9048
9049         PTHREAD_CFLAGS="-pthread"
9050         PTHREAD_LIBS=
9051
9052         ax_pthread_ok=yes
9053
9054         # However, older versions of Clang make a point of warning the user
9055         # that, in an invocation where only linking and no compilation is
9056         # taking place, the -pthread option has no effect ("argument unused
9057         # during compilation").  They expect -pthread to be passed in only
9058         # when source code is being compiled.
9059         #
9060         # Problem is, this is at odds with the way Automake and most other
9061         # C build frameworks function, which is that the same flags used in
9062         # compilation (CFLAGS) are also used in linking.  Many systems
9063         # supported by AX_PTHREAD require exactly this for POSIX threads
9064         # support, and in fact it is often not straightforward to specify a
9065         # flag that is used only in the compilation phase and not in
9066         # linking.  Such a scenario is extremely rare in practice.
9067         #
9068         # Even though use of the -pthread flag in linking would only print
9069         # a warning, this can be a nuisance for well-run software projects
9070         # that build with -Werror.  So if the active version of Clang has
9071         # this misfeature, we search for an option to squash it.
9072
9073         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9074 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9075 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9076   $as_echo_n "(cached) " >&6
9077 else
9078   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9079              # Create an alternate version of $ac_link that compiles and
9080              # links in two steps (.c -> .o, .o -> exe) instead of one
9081              # (.c -> exe), because the warning occurs only in the second
9082              # step
9083              ax_pthread_save_ac_link="$ac_link"
9084              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9085              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9086              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9087              ax_pthread_save_CFLAGS="$CFLAGS"
9088              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9089                 if test "x$ax_pthread_try" = "xunknown"; then :
9090   break
9091 fi
9092                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9093                 ac_link="$ax_pthread_save_ac_link"
9094                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h.  */
9096 int main(void){return 0;}
9097 _ACEOF
9098 if ac_fn_c_try_link "$LINENO"; then :
9099   ac_link="$ax_pthread_2step_ac_link"
9100                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h.  */
9102 int main(void){return 0;}
9103 _ACEOF
9104 if ac_fn_c_try_link "$LINENO"; then :
9105   break
9106 fi
9107 rm -f core conftest.err conftest.$ac_objext \
9108     conftest$ac_exeext conftest.$ac_ext
9109
9110 fi
9111 rm -f core conftest.err conftest.$ac_objext \
9112     conftest$ac_exeext conftest.$ac_ext
9113              done
9114              ac_link="$ax_pthread_save_ac_link"
9115              CFLAGS="$ax_pthread_save_CFLAGS"
9116              if test "x$ax_pthread_try" = "x"; then :
9117   ax_pthread_try=no
9118 fi
9119              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9120
9121 fi
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9123 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9124
9125         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9126                 no | unknown) ;;
9127                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9128         esac
9129
9130 fi # $ax_pthread_clang = yes
9131
9132 if test "x$ax_pthread_ok" = "xno"; then
9133 for ax_pthread_try_flag in $ax_pthread_flags; do
9134
9135         case $ax_pthread_try_flag in
9136                 none)
9137                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9138 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9139                 ;;
9140
9141                 -mt,pthread)
9142                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9143 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9144                 PTHREAD_CFLAGS="-mt"
9145                 PTHREAD_LIBS="-lpthread"
9146                 ;;
9147
9148                 -*)
9149                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9150 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9151                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9152                 ;;
9153
9154                 pthread-config)
9155                 # Extract the first word of "pthread-config", so it can be a program name with args.
9156 set dummy pthread-config; ac_word=$2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 $as_echo_n "checking for $ac_word... " >&6; }
9159 if ${ac_cv_prog_ax_pthread_config+:} false; then :
9160   $as_echo_n "(cached) " >&6
9161 else
9162   if test -n "$ax_pthread_config"; then
9163   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9164 else
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9167 do
9168   IFS=$as_save_IFS
9169   test -z "$as_dir" && as_dir=.
9170     for ac_exec_ext in '' $ac_executable_extensions; do
9171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9172     ac_cv_prog_ax_pthread_config="yes"
9173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174     break 2
9175   fi
9176 done
9177   done
9178 IFS=$as_save_IFS
9179
9180   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9181 fi
9182 fi
9183 ax_pthread_config=$ac_cv_prog_ax_pthread_config
9184 if test -n "$ax_pthread_config"; then
9185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9186 $as_echo "$ax_pthread_config" >&6; }
9187 else
9188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9190 fi
9191
9192
9193                 if test "x$ax_pthread_config" = "xno"; then :
9194   continue
9195 fi
9196                 PTHREAD_CFLAGS="`pthread-config --cflags`"
9197                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9198                 ;;
9199
9200                 *)
9201                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9202 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9203                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9204                 ;;
9205         esac
9206
9207         ax_pthread_save_CFLAGS="$CFLAGS"
9208         ax_pthread_save_LIBS="$LIBS"
9209         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9210         LIBS="$PTHREAD_LIBS $LIBS"
9211
9212         # Check for various functions.  We must include pthread.h,
9213         # since some functions may be macros.  (On the Sequent, we
9214         # need a special flag -Kthread to make this header compile.)
9215         # We check for pthread_join because it is in -lpthread on IRIX
9216         # while pthread_create is in libc.  We check for pthread_attr_init
9217         # due to DEC craziness with -lpthreads.  We check for
9218         # pthread_cleanup_push because it is one of the few pthread
9219         # functions on Solaris that doesn't have a non-functional libc stub.
9220         # We try pthread_create on general principles.
9221
9222         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h.  */
9224 #include <pthread.h>
9225 #                       if $ax_pthread_check_cond
9226 #                        error "$ax_pthread_check_macro must be defined"
9227 #                       endif
9228                         static void routine(void *a) { a = 0; }
9229                         static void *start_routine(void *a) { return a; }
9230 int
9231 main ()
9232 {
9233 pthread_t th; pthread_attr_t attr;
9234                         pthread_create(&th, 0, start_routine, 0);
9235                         pthread_join(th, 0);
9236                         pthread_attr_init(&attr);
9237                         pthread_cleanup_push(routine, 0);
9238                         pthread_cleanup_pop(0) /* ; */
9239   ;
9240   return 0;
9241 }
9242 _ACEOF
9243 if ac_fn_c_try_link "$LINENO"; then :
9244   ax_pthread_ok=yes
9245 fi
9246 rm -f core conftest.err conftest.$ac_objext \
9247     conftest$ac_exeext conftest.$ac_ext
9248
9249         CFLAGS="$ax_pthread_save_CFLAGS"
9250         LIBS="$ax_pthread_save_LIBS"
9251
9252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9253 $as_echo "$ax_pthread_ok" >&6; }
9254         if test "x$ax_pthread_ok" = "xyes"; then :
9255   break
9256 fi
9257
9258         PTHREAD_LIBS=""
9259         PTHREAD_CFLAGS=""
9260 done
9261 fi
9262
9263 # Various other checks:
9264 if test "x$ax_pthread_ok" = "xyes"; then
9265         ax_pthread_save_CFLAGS="$CFLAGS"
9266         ax_pthread_save_LIBS="$LIBS"
9267         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9268         LIBS="$PTHREAD_LIBS $LIBS"
9269
9270         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9271         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9272 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9273 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9274   $as_echo_n "(cached) " >&6
9275 else
9276   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9277              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9278                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h.  */
9280 #include <pthread.h>
9281 int
9282 main ()
9283 {
9284 int attr = $ax_pthread_attr; return attr /* ; */
9285   ;
9286   return 0;
9287 }
9288 _ACEOF
9289 if ac_fn_c_try_link "$LINENO"; then :
9290   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9291 fi
9292 rm -f core conftest.err conftest.$ac_objext \
9293     conftest$ac_exeext conftest.$ac_ext
9294              done
9295
9296 fi
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9298 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9299         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9300                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9301                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9302
9303 cat >>confdefs.h <<_ACEOF
9304 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9305 _ACEOF
9306
9307                ax_pthread_joinable_attr_defined=yes
9308
9309 fi
9310
9311         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9312 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9313 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9314   $as_echo_n "(cached) " >&6
9315 else
9316   ax_cv_PTHREAD_SPECIAL_FLAGS=no
9317              case $host_os in
9318              solaris*)
9319              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9320              ;;
9321              esac
9322
9323 fi
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9325 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9326         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9327                test "x$ax_pthread_special_flags_added" != "xyes"; then :
9328   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9329                ax_pthread_special_flags_added=yes
9330 fi
9331
9332         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9333 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9334 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9335   $as_echo_n "(cached) " >&6
9336 else
9337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h.  */
9339 #include <pthread.h>
9340 int
9341 main ()
9342 {
9343 int i = PTHREAD_PRIO_INHERIT;
9344   ;
9345   return 0;
9346 }
9347 _ACEOF
9348 if ac_fn_c_try_link "$LINENO"; then :
9349   ax_cv_PTHREAD_PRIO_INHERIT=yes
9350 else
9351   ax_cv_PTHREAD_PRIO_INHERIT=no
9352 fi
9353 rm -f core conftest.err conftest.$ac_objext \
9354     conftest$ac_exeext conftest.$ac_ext
9355
9356 fi
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9358 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9359         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9360                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9361
9362 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9363
9364                ax_pthread_prio_inherit_defined=yes
9365
9366 fi
9367
9368         CFLAGS="$ax_pthread_save_CFLAGS"
9369         LIBS="$ax_pthread_save_LIBS"
9370
9371         # More AIX lossage: compile with *_r variant
9372         if test "x$GCC" != "xyes"; then
9373             case $host_os in
9374                 aix*)
9375                 case "x/$CC" in #(
9376   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9377     #handle absolute path differently from PATH based program lookup
9378                      case "x$CC" in #(
9379   x/*) :
9380     if as_fn_executable_p ${CC}_r; then :
9381   PTHREAD_CC="${CC}_r"
9382 fi ;; #(
9383   *) :
9384     for ac_prog in ${CC}_r
9385 do
9386   # Extract the first word of "$ac_prog", so it can be a program name with args.
9387 set dummy $ac_prog; ac_word=$2
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389 $as_echo_n "checking for $ac_word... " >&6; }
9390 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9391   $as_echo_n "(cached) " >&6
9392 else
9393   if test -n "$PTHREAD_CC"; then
9394   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9395 else
9396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397 for as_dir in $PATH
9398 do
9399   IFS=$as_save_IFS
9400   test -z "$as_dir" && as_dir=.
9401     for ac_exec_ext in '' $ac_executable_extensions; do
9402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9403     ac_cv_prog_PTHREAD_CC="$ac_prog"
9404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9405     break 2
9406   fi
9407 done
9408   done
9409 IFS=$as_save_IFS
9410
9411 fi
9412 fi
9413 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9414 if test -n "$PTHREAD_CC"; then
9415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9416 $as_echo "$PTHREAD_CC" >&6; }
9417 else
9418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 $as_echo "no" >&6; }
9420 fi
9421
9422
9423   test -n "$PTHREAD_CC" && break
9424 done
9425 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9426  ;;
9427 esac ;; #(
9428   *) :
9429      ;;
9430 esac
9431                 ;;
9432             esac
9433         fi
9434 fi
9435
9436 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9437
9438
9439
9440
9441
9442 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9443 if test "x$ax_pthread_ok" = "xyes"; then
9444         threads=yes
9445         :
9446 else
9447         ax_pthread_ok=no
9448         threads=no
9449 fi
9450 ac_ext=c
9451 ac_cpp='$CPP $CPPFLAGS'
9452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9455
9456
9457 fi
9458
9459 if test "$threads" = "yes"; then
9460
9461 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
9462
9463 fi
9464  if test "$threads" = "yes"; then
9465   THREADS_TRUE=
9466   THREADS_FALSE='#'
9467 else
9468   THREADS_TRUE='#'
9469   THREADS_FALSE=
9470 fi
9471
9472
9473 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
9474 if test "x$ac_cv_have_decl_basename" = xyes; then :
9475   ac_have_decl=1
9476 else
9477   ac_have_decl=0
9478 fi
9479
9480 cat >>confdefs.h <<_ACEOF
9481 #define HAVE_DECL_BASENAME $ac_have_decl
9482 _ACEOF
9483 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
9484 if test "x$ac_cv_have_decl_ffs" = xyes; then :
9485   ac_have_decl=1
9486 else
9487   ac_have_decl=0
9488 fi
9489
9490 cat >>confdefs.h <<_ACEOF
9491 #define HAVE_DECL_FFS $ac_have_decl
9492 _ACEOF
9493 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
9494 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
9495   ac_have_decl=1
9496 else
9497   ac_have_decl=0
9498 fi
9499
9500 cat >>confdefs.h <<_ACEOF
9501 #define HAVE_DECL_ASPRINTF $ac_have_decl
9502 _ACEOF
9503 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
9504 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
9505   ac_have_decl=1
9506 else
9507   ac_have_decl=0
9508 fi
9509
9510 cat >>confdefs.h <<_ACEOF
9511 #define HAVE_DECL_VASPRINTF $ac_have_decl
9512 _ACEOF
9513 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9514 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
9515   ac_have_decl=1
9516 else
9517   ac_have_decl=0
9518 fi
9519
9520 cat >>confdefs.h <<_ACEOF
9521 #define HAVE_DECL_SNPRINTF $ac_have_decl
9522 _ACEOF
9523 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9524 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
9525   ac_have_decl=1
9526 else
9527   ac_have_decl=0
9528 fi
9529
9530 cat >>confdefs.h <<_ACEOF
9531 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9532 _ACEOF
9533 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
9534 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
9535   ac_have_decl=1
9536 else
9537   ac_have_decl=0
9538 fi
9539
9540 cat >>confdefs.h <<_ACEOF
9541 #define HAVE_DECL_STRVERSCMP $ac_have_decl
9542 _ACEOF
9543
9544
9545 save_CFLAGS="$CFLAGS"
9546 CFLAGS="$CFLAGS -Werror -gpubnames"
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h.  */
9549 int i;
9550 _ACEOF
9551 if ac_fn_c_try_compile "$LINENO"; then :
9552   have_pubnames=yes
9553 else
9554   have_pubnames=no
9555 fi
9556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9557 CFLAGS="$save_CFLAGS"
9558  if test "$have_pubnames" = "yes"; then
9559   HAVE_PUBNAMES_TRUE=
9560   HAVE_PUBNAMES_FALSE='#'
9561 else
9562   HAVE_PUBNAMES_TRUE='#'
9563   HAVE_PUBNAMES_FALSE=
9564 fi
9565
9566
9567 save_CFLAGS="$CFLAGS"
9568 CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h.  */
9571 int i;
9572 _ACEOF
9573 if ac_fn_c_try_compile "$LINENO"; then :
9574   have_no_use_linker_plugin=yes
9575 else
9576   have_no_use_linker_plugin=no
9577 fi
9578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579 CFLAGS="$save_CFLAGS"
9580  if test "$have_no_use_linker_plugin" = "yes"; then
9581   HAVE_NO_USE_LINKER_PLUGIN_TRUE=
9582   HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
9583 else
9584   HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
9585   HAVE_NO_USE_LINKER_PLUGIN_FALSE=
9586 fi
9587
9588
9589 ac_ext=cpp
9590 ac_cpp='$CXXCPP $CPPFLAGS'
9591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9594
9595
9596
9597 ac_ext=cpp
9598 ac_cpp='$CXXCPP $CPPFLAGS'
9599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9603 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9604 if test -z "$CXXCPP"; then
9605   if ${ac_cv_prog_CXXCPP+:} false; then :
9606   $as_echo_n "(cached) " >&6
9607 else
9608       # Double quotes because CXXCPP needs to be expanded
9609     for CXXCPP in "$CXX -E" "/lib/cpp"
9610     do
9611       ac_preproc_ok=false
9612 for ac_cxx_preproc_warn_flag in '' yes
9613 do
9614   # Use a header file that comes with gcc, so configuring glibc
9615   # with a fresh cross-compiler works.
9616   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9617   # <limits.h> exists even on freestanding compilers.
9618   # On the NeXT, cc -E runs the code through the compiler's parser,
9619   # not just through cpp. "Syntax error" is here to catch this case.
9620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h.  */
9622 #ifdef __STDC__
9623 # include <limits.h>
9624 #else
9625 # include <assert.h>
9626 #endif
9627                      Syntax error
9628 _ACEOF
9629 if ac_fn_cxx_try_cpp "$LINENO"; then :
9630
9631 else
9632   # Broken: fails on valid input.
9633 continue
9634 fi
9635 rm -f conftest.err conftest.i conftest.$ac_ext
9636
9637   # OK, works on sane cases.  Now check whether nonexistent headers
9638   # can be detected and how.
9639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h.  */
9641 #include <ac_nonexistent.h>
9642 _ACEOF
9643 if ac_fn_cxx_try_cpp "$LINENO"; then :
9644   # Broken: success on invalid input.
9645 continue
9646 else
9647   # Passes both tests.
9648 ac_preproc_ok=:
9649 break
9650 fi
9651 rm -f conftest.err conftest.i conftest.$ac_ext
9652
9653 done
9654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9655 rm -f conftest.i conftest.err conftest.$ac_ext
9656 if $ac_preproc_ok; then :
9657   break
9658 fi
9659
9660     done
9661     ac_cv_prog_CXXCPP=$CXXCPP
9662
9663 fi
9664   CXXCPP=$ac_cv_prog_CXXCPP
9665 else
9666   ac_cv_prog_CXXCPP=$CXXCPP
9667 fi
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9669 $as_echo "$CXXCPP" >&6; }
9670 ac_preproc_ok=false
9671 for ac_cxx_preproc_warn_flag in '' yes
9672 do
9673   # Use a header file that comes with gcc, so configuring glibc
9674   # with a fresh cross-compiler works.
9675   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9676   # <limits.h> exists even on freestanding compilers.
9677   # On the NeXT, cc -E runs the code through the compiler's parser,
9678   # not just through cpp. "Syntax error" is here to catch this case.
9679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h.  */
9681 #ifdef __STDC__
9682 # include <limits.h>
9683 #else
9684 # include <assert.h>
9685 #endif
9686                      Syntax error
9687 _ACEOF
9688 if ac_fn_cxx_try_cpp "$LINENO"; then :
9689
9690 else
9691   # Broken: fails on valid input.
9692 continue
9693 fi
9694 rm -f conftest.err conftest.i conftest.$ac_ext
9695
9696   # OK, works on sane cases.  Now check whether nonexistent headers
9697   # can be detected and how.
9698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h.  */
9700 #include <ac_nonexistent.h>
9701 _ACEOF
9702 if ac_fn_cxx_try_cpp "$LINENO"; then :
9703   # Broken: success on invalid input.
9704 continue
9705 else
9706   # Passes both tests.
9707 ac_preproc_ok=:
9708 break
9709 fi
9710 rm -f conftest.err conftest.i conftest.$ac_ext
9711
9712 done
9713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9714 rm -f conftest.i conftest.err conftest.$ac_ext
9715 if $ac_preproc_ok; then :
9716
9717 else
9718   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9720 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
9721 See \`config.log' for more details" "$LINENO" 5; }
9722 fi
9723
9724 ac_ext=cpp
9725 ac_cpp='$CXXCPP $CPPFLAGS'
9726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9729
9730
9731 for ac_header in unordered_set unordered_map
9732 do :
9733   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9734 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9736   cat >>confdefs.h <<_ACEOF
9737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9738 _ACEOF
9739
9740 fi
9741
9742 done
9743
9744 for ac_header in tr1/unordered_set tr1/unordered_map
9745 do :
9746   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9747 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9749   cat >>confdefs.h <<_ACEOF
9750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9751 _ACEOF
9752
9753 fi
9754
9755 done
9756
9757 for ac_header in ext/hash_map ext/hash_set
9758 do :
9759   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9760 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9761 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9762   cat >>confdefs.h <<_ACEOF
9763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9764 _ACEOF
9765
9766 fi
9767
9768 done
9769
9770 for ac_header in byteswap.h
9771 do :
9772   ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
9773 if test "x$ac_cv_header_byteswap_h" = xyes; then :
9774   cat >>confdefs.h <<_ACEOF
9775 #define HAVE_BYTESWAP_H 1
9776 _ACEOF
9777
9778 fi
9779
9780 done
9781
9782
9783 for ac_header in windows.h
9784 do :
9785   ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9786 if test "x$ac_cv_header_windows_h" = xyes; then :
9787   cat >>confdefs.h <<_ACEOF
9788 #define HAVE_WINDOWS_H 1
9789 _ACEOF
9790
9791 fi
9792
9793 done
9794
9795 for ac_header in dlfcn.h
9796 do :
9797   ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9798 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9799   cat >>confdefs.h <<_ACEOF
9800 #define HAVE_DLFCN_H 1
9801 _ACEOF
9802
9803 fi
9804
9805 done
9806
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9808 $as_echo_n "checking for library containing dlopen... " >&6; }
9809 if ${ac_cv_search_dlopen+:} false; then :
9810   $as_echo_n "(cached) " >&6
9811 else
9812   ac_func_search_save_LIBS=$LIBS
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h.  */
9815
9816 /* Override any GCC internal prototype to avoid an error.
9817    Use char because int might match the return type of a GCC
9818    builtin and then its argument prototype would still apply.  */
9819 #ifdef __cplusplus
9820 extern "C"
9821 #endif
9822 char dlopen ();
9823 int
9824 main ()
9825 {
9826 return dlopen ();
9827   ;
9828   return 0;
9829 }
9830 _ACEOF
9831 for ac_lib in '' dl dld; do
9832   if test -z "$ac_lib"; then
9833     ac_res="none required"
9834   else
9835     ac_res=-l$ac_lib
9836     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9837   fi
9838   if ac_fn_cxx_try_link "$LINENO"; then :
9839   ac_cv_search_dlopen=$ac_res
9840 fi
9841 rm -f core conftest.err conftest.$ac_objext \
9842     conftest$ac_exeext
9843   if ${ac_cv_search_dlopen+:} false; then :
9844   break
9845 fi
9846 done
9847 if ${ac_cv_search_dlopen+:} false; then :
9848
9849 else
9850   ac_cv_search_dlopen=no
9851 fi
9852 rm conftest.$ac_ext
9853 LIBS=$ac_func_search_save_LIBS
9854 fi
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9856 $as_echo "$ac_cv_search_dlopen" >&6; }
9857 ac_res=$ac_cv_search_dlopen
9858 if test "$ac_res" != no; then :
9859   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9860
9861 fi
9862
9863 case "$ac_cv_search_dlopen" in
9864   no*) DLOPEN_LIBS="";;
9865   *)   DLOPEN_LIBS="$ac_cv_search_dlopen";;
9866 esac
9867
9868
9869 for ac_func in mallinfo posix_fallocate fallocate readv sysconf times mkdtemp
9870 do :
9871   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9872 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9873 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9874   cat >>confdefs.h <<_ACEOF
9875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9876 _ACEOF
9877
9878 fi
9879 done
9880
9881 ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
9882 if test "x$ac_cv_have_decl_basename" = xyes; then :
9883   ac_have_decl=1
9884 else
9885   ac_have_decl=0
9886 fi
9887
9888 cat >>confdefs.h <<_ACEOF
9889 #define HAVE_DECL_BASENAME $ac_have_decl
9890 _ACEOF
9891 ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
9892 if test "x$ac_cv_have_decl_ffs" = xyes; then :
9893   ac_have_decl=1
9894 else
9895   ac_have_decl=0
9896 fi
9897
9898 cat >>confdefs.h <<_ACEOF
9899 #define HAVE_DECL_FFS $ac_have_decl
9900 _ACEOF
9901 ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
9902 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
9903   ac_have_decl=1
9904 else
9905   ac_have_decl=0
9906 fi
9907
9908 cat >>confdefs.h <<_ACEOF
9909 #define HAVE_DECL_ASPRINTF $ac_have_decl
9910 _ACEOF
9911 ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
9912 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
9913   ac_have_decl=1
9914 else
9915   ac_have_decl=0
9916 fi
9917
9918 cat >>confdefs.h <<_ACEOF
9919 #define HAVE_DECL_VASPRINTF $ac_have_decl
9920 _ACEOF
9921 ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9922 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
9923   ac_have_decl=1
9924 else
9925   ac_have_decl=0
9926 fi
9927
9928 cat >>confdefs.h <<_ACEOF
9929 #define HAVE_DECL_SNPRINTF $ac_have_decl
9930 _ACEOF
9931 ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9932 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
9933   ac_have_decl=1
9934 else
9935   ac_have_decl=0
9936 fi
9937
9938 cat >>confdefs.h <<_ACEOF
9939 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9940 _ACEOF
9941 ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
9942 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
9943   ac_have_decl=1
9944 else
9945   ac_have_decl=0
9946 fi
9947
9948 cat >>confdefs.h <<_ACEOF
9949 #define HAVE_DECL_STRVERSCMP $ac_have_decl
9950 _ACEOF
9951 ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
9952 if test "x$ac_cv_have_decl_strndup" = xyes; then :
9953   ac_have_decl=1
9954 else
9955   ac_have_decl=0
9956 fi
9957
9958 cat >>confdefs.h <<_ACEOF
9959 #define HAVE_DECL_STRNDUP $ac_have_decl
9960 _ACEOF
9961 ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
9962 if test "x$ac_cv_have_decl_memmem" = xyes; then :
9963   ac_have_decl=1
9964 else
9965   ac_have_decl=0
9966 fi
9967
9968 cat >>confdefs.h <<_ACEOF
9969 #define HAVE_DECL_MEMMEM $ac_have_decl
9970 _ACEOF
9971
9972
9973 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
9974 # at link time with some versions of GCC.
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
9976 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
9977 if ${gold_cv_unordered_map_rehash+:} false; then :
9978   $as_echo_n "(cached) " >&6
9979 else
9980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981 /* end confdefs.h.  */
9982
9983 #include <tr1/unordered_map>
9984 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
9985
9986 int
9987 main ()
9988 {
9989
9990   ;
9991   return 0;
9992 }
9993 _ACEOF
9994 if ac_fn_cxx_try_link "$LINENO"; then :
9995   gold_cv_unordered_map_rehash=yes
9996 else
9997   gold_cv_unordered_map_rehash=no
9998 fi
9999 rm -f core conftest.err conftest.$ac_objext \
10000     conftest$ac_exeext conftest.$ac_ext
10001 fi
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
10003 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
10004 if test "$gold_cv_unordered_map_rehash" = "yes"; then
10005
10006 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
10007
10008 fi
10009
10010 # Use of tr1/unordered_map with off_t as a key is not supported on GCC
10011 # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
10013 $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
10014 if ${gold_cv_hash_off_t+:} false; then :
10015   $as_echo_n "(cached) " >&6
10016 else
10017   CXXFLAGS_hold=$CXXFLAGS
10018 CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020 /* end confdefs.h.  */
10021
10022 #include <sys/types.h>
10023 #include <tr1/unordered_map>
10024 std::tr1::hash<off_t> h;
10025
10026 _ACEOF
10027 if ac_fn_cxx_try_compile "$LINENO"; then :
10028   gold_cv_hash_off_t=yes
10029 else
10030   gold_cv_hash_off_t=no
10031 fi
10032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10033 CXXFLAGS=$CXXFLAGS_hold
10034 fi
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
10036 $as_echo "$gold_cv_hash_off_t" >&6; }
10037 if test "$gold_cv_hash_off_t" = "yes"; then
10038
10039 $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
10040
10041 fi
10042
10043 # gcc 4.3.0 doesn't recognize the printf attribute on a template
10044 # function.  Check for that.  This is gcc bug 35546.  This test can
10045 # probably be removed after the bug has been fixed for a while.
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
10047 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
10048 if ${gold_cv_template_attribute+:} false; then :
10049   $as_echo_n "(cached) " >&6
10050 else
10051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h.  */
10053
10054 template<typename T> extern void foo(const char*, ...)
10055   __attribute__ ((__format__ (__printf__, 1, 2)));
10056 template<typename T> void foo(const char* format, ...) {}
10057 void bar() { foo<int>("%s\n", "foo"); }
10058
10059 _ACEOF
10060 if ac_fn_cxx_try_compile "$LINENO"; then :
10061   gold_cv_template_attribute=yes
10062 else
10063   gold_cv_template_attribute=no
10064 fi
10065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10066 fi
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
10068 $as_echo "$gold_cv_template_attribute" >&6; }
10069 if test "$gold_cv_template_attribute" = "yes"; then
10070
10071 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
10072
10073 fi
10074
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
10076 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
10077 if ${gold_cv_stat_st_mtim+:} false; then :
10078   $as_echo_n "(cached) " >&6
10079 else
10080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h.  */
10082
10083 #include <sys/stat.h>
10084 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
10085
10086 int
10087 main ()
10088 {
10089
10090   ;
10091   return 0;
10092 }
10093 _ACEOF
10094 if ac_fn_cxx_try_compile "$LINENO"; then :
10095   gold_cv_stat_st_mtim=yes
10096 else
10097   gold_cv_stat_st_mtim=no
10098 fi
10099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10100 fi
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
10102 $as_echo "$gold_cv_stat_st_mtim" >&6; }
10103 if test "$gold_cv_stat_st_mtim" = "yes"; then
10104
10105 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
10106
10107 fi
10108
10109 ac_ext=c
10110 ac_cpp='$CPP $CPPFLAGS'
10111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10114
10115
10116 for ac_header in locale.h
10117 do :
10118   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
10119 if test "x$ac_cv_header_locale_h" = xyes; then :
10120   cat >>confdefs.h <<_ACEOF
10121 #define HAVE_LOCALE_H 1
10122 _ACEOF
10123
10124 fi
10125
10126 done
10127
10128 for ac_func in setlocale
10129 do :
10130   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10131 if test "x$ac_cv_func_setlocale" = xyes; then :
10132   cat >>confdefs.h <<_ACEOF
10133 #define HAVE_SETLOCALE 1
10134 _ACEOF
10135
10136 fi
10137 done
10138
10139
10140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10141 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10142 if ${am_cv_val_LC_MESSAGES+:} false; then :
10143   $as_echo_n "(cached) " >&6
10144 else
10145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h.  */
10147 #include <locale.h>
10148 int
10149 main ()
10150 {
10151 return LC_MESSAGES
10152   ;
10153   return 0;
10154 }
10155 _ACEOF
10156 if ac_fn_c_try_link "$LINENO"; then :
10157   am_cv_val_LC_MESSAGES=yes
10158 else
10159   am_cv_val_LC_MESSAGES=no
10160 fi
10161 rm -f core conftest.err conftest.$ac_objext \
10162     conftest$ac_exeext conftest.$ac_ext
10163 fi
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10165 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10166   if test $am_cv_val_LC_MESSAGES = yes; then
10167
10168 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10169
10170   fi
10171
10172
10173
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10175 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10176     # Check whether --enable-maintainer-mode was given.
10177 if test "${enable_maintainer_mode+set}" = set; then :
10178   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10179 else
10180   USE_MAINTAINER_MODE=no
10181 fi
10182
10183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10184 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10185    if test $USE_MAINTAINER_MODE = yes; then
10186   MAINTAINER_MODE_TRUE=
10187   MAINTAINER_MODE_FALSE='#'
10188 else
10189   MAINTAINER_MODE_TRUE='#'
10190   MAINTAINER_MODE_FALSE=
10191 fi
10192
10193   MAINT=$MAINTAINER_MODE_TRUE
10194
10195
10196
10197 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
10198
10199 cat >confcache <<\_ACEOF
10200 # This file is a shell script that caches the results of configure
10201 # tests run on this system so they can be shared between configure
10202 # scripts and configure runs, see configure's option --config-cache.
10203 # It is not useful on other systems.  If it contains results you don't
10204 # want to keep, you may remove or edit it.
10205 #
10206 # config.status only pays attention to the cache file if you give it
10207 # the --recheck option to rerun configure.
10208 #
10209 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10210 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10211 # following values.
10212
10213 _ACEOF
10214
10215 # The following way of writing the cache mishandles newlines in values,
10216 # but we know of no workaround that is simple, portable, and efficient.
10217 # So, we kill variables containing newlines.
10218 # Ultrix sh set writes to stderr and can't be redirected directly,
10219 # and sets the high bit in the cache file unless we assign to the vars.
10220 (
10221   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10222     eval ac_val=\$$ac_var
10223     case $ac_val in #(
10224     *${as_nl}*)
10225       case $ac_var in #(
10226       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10227 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10228       esac
10229       case $ac_var in #(
10230       _ | IFS | as_nl) ;; #(
10231       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10232       *) { eval $ac_var=; unset $ac_var;} ;;
10233       esac ;;
10234     esac
10235   done
10236
10237   (set) 2>&1 |
10238     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10239     *${as_nl}ac_space=\ *)
10240       # `set' does not quote correctly, so add quotes: double-quote
10241       # substitution turns \\\\ into \\, and sed turns \\ into \.
10242       sed -n \
10243         "s/'/'\\\\''/g;
10244           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10245       ;; #(
10246     *)
10247       # `set' quotes correctly as required by POSIX, so do not add quotes.
10248       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10249       ;;
10250     esac |
10251     sort
10252 ) |
10253   sed '
10254      /^ac_cv_env_/b end
10255      t clear
10256      :clear
10257      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10258      t end
10259      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10260      :end' >>confcache
10261 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10262   if test -w "$cache_file"; then
10263     if test "x$cache_file" != "x/dev/null"; then
10264       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10265 $as_echo "$as_me: updating cache $cache_file" >&6;}
10266       if test ! -f "$cache_file" || test -h "$cache_file"; then
10267         cat confcache >"$cache_file"
10268       else
10269         case $cache_file in #(
10270         */* | ?:*)
10271           mv -f confcache "$cache_file"$$ &&
10272           mv -f "$cache_file"$$ "$cache_file" ;; #(
10273         *)
10274           mv -f confcache "$cache_file" ;;
10275         esac
10276       fi
10277     fi
10278   else
10279     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10280 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10281   fi
10282 fi
10283 rm -f confcache
10284
10285 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10286 # Let make expand exec_prefix.
10287 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10288
10289 DEFS=-DHAVE_CONFIG_H
10290
10291 ac_libobjs=
10292 ac_ltlibobjs=
10293 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10294   # 1. Remove the extension, and $U if already installed.
10295   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10296   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10297   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10298   #    will be set to the directory where LIBOBJS objects are built.
10299   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10300   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10301 done
10302 LIBOBJS=$ac_libobjs
10303
10304 LTLIBOBJS=$ac_ltlibobjs
10305
10306
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10308 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10309    if test -n "$am_sleep_pid"; then
10310      # Hide warnings about reused PIDs.
10311      wait $am_sleep_pid 2>/dev/null
10312    fi
10313    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10314 $as_echo "done" >&6; }
10315  if test -n "$EXEEXT"; then
10316   am__EXEEXT_TRUE=
10317   am__EXEEXT_FALSE='#'
10318 else
10319   am__EXEEXT_TRUE='#'
10320   am__EXEEXT_FALSE=
10321 fi
10322
10323 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10324   as_fn_error $? "conditional \"AMDEP\" was never defined.
10325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10326 fi
10327 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10328   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10330 fi
10331 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
10332   as_fn_error $? "conditional \"PLUGINS\" was never defined.
10333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10334 fi
10335 if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
10336   as_fn_error $? "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
10337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10338 fi
10339 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
10340   as_fn_error $? "conditional \"DEFAULT_TARGET_ARM\" was never defined.
10341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10342 fi
10343 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
10344   as_fn_error $? "conditional \"DEFAULT_TARGET_I386\" was never defined.
10345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10346 fi
10347 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
10348   as_fn_error $? "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
10349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10350 fi
10351 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
10352   as_fn_error $? "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
10353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10354 fi
10355 if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
10356   as_fn_error $? "conditional \"DEFAULT_TARGET_S390\" was never defined.
10357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10358 fi
10359 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
10360   as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
10361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10362 fi
10363 if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
10364   as_fn_error $? "conditional \"DEFAULT_TARGET_X32\" was never defined.
10365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10366 fi
10367 if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
10368   as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
10369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10370 fi
10371 if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
10372   as_fn_error $? "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
10373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10374 fi
10375 if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
10376   as_fn_error $? "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
10377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10378 fi
10379 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10380   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10382 fi
10383 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10384   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
10385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10386 fi
10387
10388 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
10389   as_fn_error $? "conditional \"NATIVE_LINKER\" was never defined.
10390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10391 fi
10392 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
10393   as_fn_error $? "conditional \"GCC\" was never defined.
10394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10395 fi
10396 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
10397   as_fn_error $? "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
10398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10399 fi
10400 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
10401   as_fn_error $? "conditional \"HAVE_STATIC\" was never defined.
10402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10403 fi
10404 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
10405   as_fn_error $? "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
10406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10407 fi
10408 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
10409   as_fn_error $? "conditional \"MCMODEL_MEDIUM\" was never defined.
10410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10411 fi
10412 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
10413   as_fn_error $? "conditional \"TLS\" was never defined.
10414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10415 fi
10416 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
10417   as_fn_error $? "conditional \"STATIC_TLS\" was never defined.
10418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10419 fi
10420 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
10421   as_fn_error $? "conditional \"OMP_SUPPORT\" was never defined.
10422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10423 fi
10424 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
10425   as_fn_error $? "conditional \"TLS_GNU2_DIALECT\" was never defined.
10426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10427 fi
10428 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
10429   as_fn_error $? "conditional \"TLS_DESCRIPTORS\" was never defined.
10430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10431 fi
10432 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
10433   as_fn_error $? "conditional \"IFUNC\" was never defined.
10434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10435 fi
10436 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
10437   as_fn_error $? "conditional \"IFUNC_STATIC\" was never defined.
10438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10439 fi
10440 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
10441   as_fn_error $? "conditional \"THREADS\" was never defined.
10442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10443 fi
10444 if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
10445   as_fn_error $? "conditional \"HAVE_PUBNAMES\" was never defined.
10446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10447 fi
10448 if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
10449   as_fn_error $? "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
10450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10451 fi
10452 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10453   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10455 fi
10456
10457 : "${CONFIG_STATUS=./config.status}"
10458 ac_write_fail=0
10459 ac_clean_files_save=$ac_clean_files
10460 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10462 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10463 as_write_fail=0
10464 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10465 #! $SHELL
10466 # Generated by $as_me.
10467 # Run this file to recreate the current configuration.
10468 # Compiler output produced by configure, useful for debugging
10469 # configure, is in config.log if it exists.
10470
10471 debug=false
10472 ac_cs_recheck=false
10473 ac_cs_silent=false
10474
10475 SHELL=\${CONFIG_SHELL-$SHELL}
10476 export SHELL
10477 _ASEOF
10478 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10479 ## -------------------- ##
10480 ## M4sh Initialization. ##
10481 ## -------------------- ##
10482
10483 # Be more Bourne compatible
10484 DUALCASE=1; export DUALCASE # for MKS sh
10485 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10486   emulate sh
10487   NULLCMD=:
10488   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10489   # is contrary to our usage.  Disable this feature.
10490   alias -g '${1+"$@"}'='"$@"'
10491   setopt NO_GLOB_SUBST
10492 else
10493   case `(set -o) 2>/dev/null` in #(
10494   *posix*) :
10495     set -o posix ;; #(
10496   *) :
10497      ;;
10498 esac
10499 fi
10500
10501
10502 as_nl='
10503 '
10504 export as_nl
10505 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10506 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10507 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10508 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10509 # Prefer a ksh shell builtin over an external printf program on Solaris,
10510 # but without wasting forks for bash or zsh.
10511 if test -z "$BASH_VERSION$ZSH_VERSION" \
10512     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10513   as_echo='print -r --'
10514   as_echo_n='print -rn --'
10515 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10516   as_echo='printf %s\n'
10517   as_echo_n='printf %s'
10518 else
10519   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10520     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10521     as_echo_n='/usr/ucb/echo -n'
10522   else
10523     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10524     as_echo_n_body='eval
10525       arg=$1;
10526       case $arg in #(
10527       *"$as_nl"*)
10528         expr "X$arg" : "X\\(.*\\)$as_nl";
10529         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10530       esac;
10531       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10532     '
10533     export as_echo_n_body
10534     as_echo_n='sh -c $as_echo_n_body as_echo'
10535   fi
10536   export as_echo_body
10537   as_echo='sh -c $as_echo_body as_echo'
10538 fi
10539
10540 # The user is always right.
10541 if test "${PATH_SEPARATOR+set}" != set; then
10542   PATH_SEPARATOR=:
10543   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10544     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10545       PATH_SEPARATOR=';'
10546   }
10547 fi
10548
10549
10550 # IFS
10551 # We need space, tab and new line, in precisely that order.  Quoting is
10552 # there to prevent editors from complaining about space-tab.
10553 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10554 # splitting by setting IFS to empty value.)
10555 IFS=" ""        $as_nl"
10556
10557 # Find who we are.  Look in the path if we contain no directory separator.
10558 as_myself=
10559 case $0 in #((
10560   *[\\/]* ) as_myself=$0 ;;
10561   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562 for as_dir in $PATH
10563 do
10564   IFS=$as_save_IFS
10565   test -z "$as_dir" && as_dir=.
10566     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10567   done
10568 IFS=$as_save_IFS
10569
10570      ;;
10571 esac
10572 # We did not find ourselves, most probably we were run as `sh COMMAND'
10573 # in which case we are not to be found in the path.
10574 if test "x$as_myself" = x; then
10575   as_myself=$0
10576 fi
10577 if test ! -f "$as_myself"; then
10578   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10579   exit 1
10580 fi
10581
10582 # Unset variables that we do not need and which cause bugs (e.g. in
10583 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10584 # suppresses any "Segmentation fault" message there.  '((' could
10585 # trigger a bug in pdksh 5.2.14.
10586 for as_var in BASH_ENV ENV MAIL MAILPATH
10587 do eval test x\${$as_var+set} = xset \
10588   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10589 done
10590 PS1='$ '
10591 PS2='> '
10592 PS4='+ '
10593
10594 # NLS nuisances.
10595 LC_ALL=C
10596 export LC_ALL
10597 LANGUAGE=C
10598 export LANGUAGE
10599
10600 # CDPATH.
10601 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10602
10603
10604 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10605 # ----------------------------------------
10606 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10607 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10608 # script with STATUS, using 1 if that was 0.
10609 as_fn_error ()
10610 {
10611   as_status=$1; test $as_status -eq 0 && as_status=1
10612   if test "$4"; then
10613     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10614     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10615   fi
10616   $as_echo "$as_me: error: $2" >&2
10617   as_fn_exit $as_status
10618 } # as_fn_error
10619
10620
10621 # as_fn_set_status STATUS
10622 # -----------------------
10623 # Set $? to STATUS, without forking.
10624 as_fn_set_status ()
10625 {
10626   return $1
10627 } # as_fn_set_status
10628
10629 # as_fn_exit STATUS
10630 # -----------------
10631 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10632 as_fn_exit ()
10633 {
10634   set +e
10635   as_fn_set_status $1
10636   exit $1
10637 } # as_fn_exit
10638
10639 # as_fn_unset VAR
10640 # ---------------
10641 # Portably unset VAR.
10642 as_fn_unset ()
10643 {
10644   { eval $1=; unset $1;}
10645 }
10646 as_unset=as_fn_unset
10647 # as_fn_append VAR VALUE
10648 # ----------------------
10649 # Append the text in VALUE to the end of the definition contained in VAR. Take
10650 # advantage of any shell optimizations that allow amortized linear growth over
10651 # repeated appends, instead of the typical quadratic growth present in naive
10652 # implementations.
10653 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10654   eval 'as_fn_append ()
10655   {
10656     eval $1+=\$2
10657   }'
10658 else
10659   as_fn_append ()
10660   {
10661     eval $1=\$$1\$2
10662   }
10663 fi # as_fn_append
10664
10665 # as_fn_arith ARG...
10666 # ------------------
10667 # Perform arithmetic evaluation on the ARGs, and store the result in the
10668 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10669 # must be portable across $(()) and expr.
10670 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10671   eval 'as_fn_arith ()
10672   {
10673     as_val=$(( $* ))
10674   }'
10675 else
10676   as_fn_arith ()
10677   {
10678     as_val=`expr "$@" || test $? -eq 1`
10679   }
10680 fi # as_fn_arith
10681
10682
10683 if expr a : '\(a\)' >/dev/null 2>&1 &&
10684    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10685   as_expr=expr
10686 else
10687   as_expr=false
10688 fi
10689
10690 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10691   as_basename=basename
10692 else
10693   as_basename=false
10694 fi
10695
10696 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10697   as_dirname=dirname
10698 else
10699   as_dirname=false
10700 fi
10701
10702 as_me=`$as_basename -- "$0" ||
10703 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10704          X"$0" : 'X\(//\)$' \| \
10705          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10706 $as_echo X/"$0" |
10707     sed '/^.*\/\([^/][^/]*\)\/*$/{
10708             s//\1/
10709             q
10710           }
10711           /^X\/\(\/\/\)$/{
10712             s//\1/
10713             q
10714           }
10715           /^X\/\(\/\).*/{
10716             s//\1/
10717             q
10718           }
10719           s/.*/./; q'`
10720
10721 # Avoid depending upon Character Ranges.
10722 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10723 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10724 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10725 as_cr_digits='0123456789'
10726 as_cr_alnum=$as_cr_Letters$as_cr_digits
10727
10728 ECHO_C= ECHO_N= ECHO_T=
10729 case `echo -n x` in #(((((
10730 -n*)
10731   case `echo 'xy\c'` in
10732   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10733   xy)  ECHO_C='\c';;
10734   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10735        ECHO_T=' ';;
10736   esac;;
10737 *)
10738   ECHO_N='-n';;
10739 esac
10740
10741 rm -f conf$$ conf$$.exe conf$$.file
10742 if test -d conf$$.dir; then
10743   rm -f conf$$.dir/conf$$.file
10744 else
10745   rm -f conf$$.dir
10746   mkdir conf$$.dir 2>/dev/null
10747 fi
10748 if (echo >conf$$.file) 2>/dev/null; then
10749   if ln -s conf$$.file conf$$ 2>/dev/null; then
10750     as_ln_s='ln -s'
10751     # ... but there are two gotchas:
10752     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10753     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10754     # In both cases, we have to default to `cp -pR'.
10755     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10756       as_ln_s='cp -pR'
10757   elif ln conf$$.file conf$$ 2>/dev/null; then
10758     as_ln_s=ln
10759   else
10760     as_ln_s='cp -pR'
10761   fi
10762 else
10763   as_ln_s='cp -pR'
10764 fi
10765 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10766 rmdir conf$$.dir 2>/dev/null
10767
10768
10769 # as_fn_mkdir_p
10770 # -------------
10771 # Create "$as_dir" as a directory, including parents if necessary.
10772 as_fn_mkdir_p ()
10773 {
10774
10775   case $as_dir in #(
10776   -*) as_dir=./$as_dir;;
10777   esac
10778   test -d "$as_dir" || eval $as_mkdir_p || {
10779     as_dirs=
10780     while :; do
10781       case $as_dir in #(
10782       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10783       *) as_qdir=$as_dir;;
10784       esac
10785       as_dirs="'$as_qdir' $as_dirs"
10786       as_dir=`$as_dirname -- "$as_dir" ||
10787 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10788          X"$as_dir" : 'X\(//\)[^/]' \| \
10789          X"$as_dir" : 'X\(//\)$' \| \
10790          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10791 $as_echo X"$as_dir" |
10792     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10793             s//\1/
10794             q
10795           }
10796           /^X\(\/\/\)[^/].*/{
10797             s//\1/
10798             q
10799           }
10800           /^X\(\/\/\)$/{
10801             s//\1/
10802             q
10803           }
10804           /^X\(\/\).*/{
10805             s//\1/
10806             q
10807           }
10808           s/.*/./; q'`
10809       test -d "$as_dir" && break
10810     done
10811     test -z "$as_dirs" || eval "mkdir $as_dirs"
10812   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10813
10814
10815 } # as_fn_mkdir_p
10816 if mkdir -p . 2>/dev/null; then
10817   as_mkdir_p='mkdir -p "$as_dir"'
10818 else
10819   test -d ./-p && rmdir ./-p
10820   as_mkdir_p=false
10821 fi
10822
10823
10824 # as_fn_executable_p FILE
10825 # -----------------------
10826 # Test if FILE is an executable regular file.
10827 as_fn_executable_p ()
10828 {
10829   test -f "$1" && test -x "$1"
10830 } # as_fn_executable_p
10831 as_test_x='test -x'
10832 as_executable_p=as_fn_executable_p
10833
10834 # Sed expression to map a string onto a valid CPP name.
10835 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10836
10837 # Sed expression to map a string onto a valid variable name.
10838 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10839
10840
10841 exec 6>&1
10842 ## ----------------------------------- ##
10843 ## Main body of $CONFIG_STATUS script. ##
10844 ## ----------------------------------- ##
10845 _ASEOF
10846 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10847
10848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10849 # Save the log message, to keep $0 and so on meaningful, and to
10850 # report actual input values of CONFIG_FILES etc. instead of their
10851 # values after options handling.
10852 ac_log="
10853 This file was extended by gold $as_me 0.1, which was
10854 generated by GNU Autoconf 2.69.  Invocation command line was
10855
10856   CONFIG_FILES    = $CONFIG_FILES
10857   CONFIG_HEADERS  = $CONFIG_HEADERS
10858   CONFIG_LINKS    = $CONFIG_LINKS
10859   CONFIG_COMMANDS = $CONFIG_COMMANDS
10860   $ $0 $@
10861
10862 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10863 "
10864
10865 _ACEOF
10866
10867 case $ac_config_files in *"
10868 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10869 esac
10870
10871 case $ac_config_headers in *"
10872 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10873 esac
10874
10875
10876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10877 # Files that config.status was made for.
10878 config_files="$ac_config_files"
10879 config_headers="$ac_config_headers"
10880 config_commands="$ac_config_commands"
10881
10882 _ACEOF
10883
10884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10885 ac_cs_usage="\
10886 \`$as_me' instantiates files and other configuration actions
10887 from templates according to the current configuration.  Unless the files
10888 and actions are specified as TAGs, all are instantiated by default.
10889
10890 Usage: $0 [OPTION]... [TAG]...
10891
10892   -h, --help       print this help, then exit
10893   -V, --version    print version number and configuration settings, then exit
10894       --config     print configuration, then exit
10895   -q, --quiet, --silent
10896                    do not print progress messages
10897   -d, --debug      don't remove temporary files
10898       --recheck    update $as_me by reconfiguring in the same conditions
10899       --file=FILE[:TEMPLATE]
10900                    instantiate the configuration file FILE
10901       --header=FILE[:TEMPLATE]
10902                    instantiate the configuration header FILE
10903
10904 Configuration files:
10905 $config_files
10906
10907 Configuration headers:
10908 $config_headers
10909
10910 Configuration commands:
10911 $config_commands
10912
10913 Report bugs to the package provider."
10914
10915 _ACEOF
10916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10917 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10918 ac_cs_version="\\
10919 gold config.status 0.1
10920 configured by $0, generated by GNU Autoconf 2.69,
10921   with options \\"\$ac_cs_config\\"
10922
10923 Copyright (C) 2012 Free Software Foundation, Inc.
10924 This config.status script is free software; the Free Software Foundation
10925 gives unlimited permission to copy, distribute and modify it."
10926
10927 ac_pwd='$ac_pwd'
10928 srcdir='$srcdir'
10929 INSTALL='$INSTALL'
10930 MKDIR_P='$MKDIR_P'
10931 AWK='$AWK'
10932 test -n "\$AWK" || AWK=awk
10933 _ACEOF
10934
10935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10936 # The default lists apply if the user does not specify any file.
10937 ac_need_defaults=:
10938 while test $# != 0
10939 do
10940   case $1 in
10941   --*=?*)
10942     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10943     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10944     ac_shift=:
10945     ;;
10946   --*=)
10947     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10948     ac_optarg=
10949     ac_shift=:
10950     ;;
10951   *)
10952     ac_option=$1
10953     ac_optarg=$2
10954     ac_shift=shift
10955     ;;
10956   esac
10957
10958   case $ac_option in
10959   # Handling of the options.
10960   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10961     ac_cs_recheck=: ;;
10962   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10963     $as_echo "$ac_cs_version"; exit ;;
10964   --config | --confi | --conf | --con | --co | --c )
10965     $as_echo "$ac_cs_config"; exit ;;
10966   --debug | --debu | --deb | --de | --d | -d )
10967     debug=: ;;
10968   --file | --fil | --fi | --f )
10969     $ac_shift
10970     case $ac_optarg in
10971     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10972     '') as_fn_error $? "missing file argument" ;;
10973     esac
10974     as_fn_append CONFIG_FILES " '$ac_optarg'"
10975     ac_need_defaults=false;;
10976   --header | --heade | --head | --hea )
10977     $ac_shift
10978     case $ac_optarg in
10979     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10980     esac
10981     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10982     ac_need_defaults=false;;
10983   --he | --h)
10984     # Conflict between --help and --header
10985     as_fn_error $? "ambiguous option: \`$1'
10986 Try \`$0 --help' for more information.";;
10987   --help | --hel | -h )
10988     $as_echo "$ac_cs_usage"; exit ;;
10989   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10990   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10991     ac_cs_silent=: ;;
10992
10993   # This is an error.
10994   -*) as_fn_error $? "unrecognized option: \`$1'
10995 Try \`$0 --help' for more information." ;;
10996
10997   *) as_fn_append ac_config_targets " $1"
10998      ac_need_defaults=false ;;
10999
11000   esac
11001   shift
11002 done
11003
11004 ac_configure_extra_args=
11005
11006 if $ac_cs_silent; then
11007   exec 6>/dev/null
11008   ac_configure_extra_args="$ac_configure_extra_args --silent"
11009 fi
11010
11011 _ACEOF
11012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11013 if \$ac_cs_recheck; then
11014   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11015   shift
11016   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11017   CONFIG_SHELL='$SHELL'
11018   export CONFIG_SHELL
11019   exec "\$@"
11020 fi
11021
11022 _ACEOF
11023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11024 exec 5>>config.log
11025 {
11026   echo
11027   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11028 ## Running $as_me. ##
11029 _ASBOX
11030   $as_echo "$ac_log"
11031 } >&5
11032
11033 _ACEOF
11034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11035 #
11036 # INIT-COMMANDS
11037 #
11038 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11039 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11040     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11041     # from automake.
11042     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11043     # Capture the value of LINGUAS because we need it to compute CATALOGS.
11044     LINGUAS="${LINGUAS-%UNSET%}"
11045
11046
11047 _ACEOF
11048
11049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11050
11051 # Handling of arguments.
11052 for ac_config_target in $ac_config_targets
11053 do
11054   case $ac_config_target in
11055     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11056     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11057     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11058     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11059     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11060     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11061
11062   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11063   esac
11064 done
11065
11066
11067 # If the user did not use the arguments to specify the items to instantiate,
11068 # then the envvar interface is used.  Set only those that are not.
11069 # We use the long form for the default assignment because of an extremely
11070 # bizarre bug on SunOS 4.1.3.
11071 if $ac_need_defaults; then
11072   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11073   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11074   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11075 fi
11076
11077 # Have a temporary directory for convenience.  Make it in the build tree
11078 # simply because there is no reason against having it here, and in addition,
11079 # creating and moving files from /tmp can sometimes cause problems.
11080 # Hook for its removal unless debugging.
11081 # Note that there is a small window in which the directory will not be cleaned:
11082 # after its creation but before its name has been assigned to `$tmp'.
11083 $debug ||
11084 {
11085   tmp= ac_tmp=
11086   trap 'exit_status=$?
11087   : "${ac_tmp:=$tmp}"
11088   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11089 ' 0
11090   trap 'as_fn_exit 1' 1 2 13 15
11091 }
11092 # Create a (secure) tmp directory for tmp files.
11093
11094 {
11095   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11096   test -d "$tmp"
11097 }  ||
11098 {
11099   tmp=./conf$$-$RANDOM
11100   (umask 077 && mkdir "$tmp")
11101 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11102 ac_tmp=$tmp
11103
11104 # Set up the scripts for CONFIG_FILES section.
11105 # No need to generate them if there are no CONFIG_FILES.
11106 # This happens for instance with `./config.status config.h'.
11107 if test -n "$CONFIG_FILES"; then
11108
11109
11110 ac_cr=`echo X | tr X '\015'`
11111 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11112 # But we know of no other shell where ac_cr would be empty at this
11113 # point, so we can use a bashism as a fallback.
11114 if test "x$ac_cr" = x; then
11115   eval ac_cr=\$\'\\r\'
11116 fi
11117 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11118 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11119   ac_cs_awk_cr='\\r'
11120 else
11121   ac_cs_awk_cr=$ac_cr
11122 fi
11123
11124 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11125 _ACEOF
11126
11127
11128 {
11129   echo "cat >conf$$subs.awk <<_ACEOF" &&
11130   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11131   echo "_ACEOF"
11132 } >conf$$subs.sh ||
11133   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11134 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11135 ac_delim='%!_!# '
11136 for ac_last_try in false false false false false :; do
11137   . ./conf$$subs.sh ||
11138     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11139
11140   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11141   if test $ac_delim_n = $ac_delim_num; then
11142     break
11143   elif $ac_last_try; then
11144     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11145   else
11146     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11147   fi
11148 done
11149 rm -f conf$$subs.sh
11150
11151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11152 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11153 _ACEOF
11154 sed -n '
11155 h
11156 s/^/S["/; s/!.*/"]=/
11157 p
11158 g
11159 s/^[^!]*!//
11160 :repl
11161 t repl
11162 s/'"$ac_delim"'$//
11163 t delim
11164 :nl
11165 h
11166 s/\(.\{148\}\)..*/\1/
11167 t more1
11168 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11169 p
11170 n
11171 b repl
11172 :more1
11173 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11174 p
11175 g
11176 s/.\{148\}//
11177 t nl
11178 :delim
11179 h
11180 s/\(.\{148\}\)..*/\1/
11181 t more2
11182 s/["\\]/\\&/g; s/^/"/; s/$/"/
11183 p
11184 b
11185 :more2
11186 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11187 p
11188 g
11189 s/.\{148\}//
11190 t delim
11191 ' <conf$$subs.awk | sed '
11192 /^[^""]/{
11193   N
11194   s/\n//
11195 }
11196 ' >>$CONFIG_STATUS || ac_write_fail=1
11197 rm -f conf$$subs.awk
11198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11199 _ACAWK
11200 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11201   for (key in S) S_is_set[key] = 1
11202   FS = "\a"
11203
11204 }
11205 {
11206   line = $ 0
11207   nfields = split(line, field, "@")
11208   substed = 0
11209   len = length(field[1])
11210   for (i = 2; i < nfields; i++) {
11211     key = field[i]
11212     keylen = length(key)
11213     if (S_is_set[key]) {
11214       value = S[key]
11215       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11216       len += length(value) + length(field[++i])
11217       substed = 1
11218     } else
11219       len += 1 + keylen
11220   }
11221
11222   print line
11223 }
11224
11225 _ACAWK
11226 _ACEOF
11227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11228 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11229   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11230 else
11231   cat
11232 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11233   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11234 _ACEOF
11235
11236 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11237 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11238 # trailing colons and then remove the whole line if VPATH becomes empty
11239 # (actually we leave an empty line to preserve line numbers).
11240 if test "x$srcdir" = x.; then
11241   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
11242 h
11243 s///
11244 s/^/:/
11245 s/[      ]*$/:/
11246 s/:\$(srcdir):/:/g
11247 s/:\${srcdir}:/:/g
11248 s/:@srcdir@:/:/g
11249 s/^:*//
11250 s/:*$//
11251 x
11252 s/\(=[   ]*\).*/\1/
11253 G
11254 s/\n//
11255 s/^[^=]*=[       ]*$//
11256 }'
11257 fi
11258
11259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11260 fi # test -n "$CONFIG_FILES"
11261
11262 # Set up the scripts for CONFIG_HEADERS section.
11263 # No need to generate them if there are no CONFIG_HEADERS.
11264 # This happens for instance with `./config.status Makefile'.
11265 if test -n "$CONFIG_HEADERS"; then
11266 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11267 BEGIN {
11268 _ACEOF
11269
11270 # Transform confdefs.h into an awk script `defines.awk', embedded as
11271 # here-document in config.status, that substitutes the proper values into
11272 # config.h.in to produce config.h.
11273
11274 # Create a delimiter string that does not exist in confdefs.h, to ease
11275 # handling of long lines.
11276 ac_delim='%!_!# '
11277 for ac_last_try in false false :; do
11278   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11279   if test -z "$ac_tt"; then
11280     break
11281   elif $ac_last_try; then
11282     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11283   else
11284     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11285   fi
11286 done
11287
11288 # For the awk script, D is an array of macro values keyed by name,
11289 # likewise P contains macro parameters if any.  Preserve backslash
11290 # newline sequences.
11291
11292 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11293 sed -n '
11294 s/.\{148\}/&'"$ac_delim"'/g
11295 t rset
11296 :rset
11297 s/^[     ]*#[    ]*define[       ][      ]*/ /
11298 t def
11299 d
11300 :def
11301 s/\\$//
11302 t bsnl
11303 s/["\\]/\\&/g
11304 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11305 D["\1"]=" \3"/p
11306 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
11307 d
11308 :bsnl
11309 s/["\\]/\\&/g
11310 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11311 D["\1"]=" \3\\\\\\n"\\/p
11312 t cont
11313 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11314 t cont
11315 d
11316 :cont
11317 n
11318 s/.\{148\}/&'"$ac_delim"'/g
11319 t clear
11320 :clear
11321 s/\\$//
11322 t bsnlc
11323 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11324 d
11325 :bsnlc
11326 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11327 b cont
11328 ' <confdefs.h | sed '
11329 s/'"$ac_delim"'/"\\\
11330 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11331
11332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11333   for (key in D) D_is_set[key] = 1
11334   FS = "\a"
11335 }
11336 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11337   line = \$ 0
11338   split(line, arg, " ")
11339   if (arg[1] == "#") {
11340     defundef = arg[2]
11341     mac1 = arg[3]
11342   } else {
11343     defundef = substr(arg[1], 2)
11344     mac1 = arg[2]
11345   }
11346   split(mac1, mac2, "(") #)
11347   macro = mac2[1]
11348   prefix = substr(line, 1, index(line, defundef) - 1)
11349   if (D_is_set[macro]) {
11350     # Preserve the white space surrounding the "#".
11351     print prefix "define", macro P[macro] D[macro]
11352     next
11353   } else {
11354     # Replace #undef with comments.  This is necessary, for example,
11355     # in the case of _POSIX_SOURCE, which is predefined and required
11356     # on some systems where configure will not decide to define it.
11357     if (defundef == "undef") {
11358       print "/*", prefix defundef, macro, "*/"
11359       next
11360     }
11361   }
11362 }
11363 { print }
11364 _ACAWK
11365 _ACEOF
11366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11367   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11368 fi # test -n "$CONFIG_HEADERS"
11369
11370
11371 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11372 shift
11373 for ac_tag
11374 do
11375   case $ac_tag in
11376   :[FHLC]) ac_mode=$ac_tag; continue;;
11377   esac
11378   case $ac_mode$ac_tag in
11379   :[FHL]*:*);;
11380   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11381   :[FH]-) ac_tag=-:-;;
11382   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11383   esac
11384   ac_save_IFS=$IFS
11385   IFS=:
11386   set x $ac_tag
11387   IFS=$ac_save_IFS
11388   shift
11389   ac_file=$1
11390   shift
11391
11392   case $ac_mode in
11393   :L) ac_source=$1;;
11394   :[FH])
11395     ac_file_inputs=
11396     for ac_f
11397     do
11398       case $ac_f in
11399       -) ac_f="$ac_tmp/stdin";;
11400       *) # Look for the file first in the build tree, then in the source tree
11401          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11402          # because $ac_f cannot contain `:'.
11403          test -f "$ac_f" ||
11404            case $ac_f in
11405            [\\/$]*) false;;
11406            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11407            esac ||
11408            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11409       esac
11410       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11411       as_fn_append ac_file_inputs " '$ac_f'"
11412     done
11413
11414     # Let's still pretend it is `configure' which instantiates (i.e., don't
11415     # use $as_me), people would be surprised to read:
11416     #    /* config.h.  Generated by config.status.  */
11417     configure_input='Generated from '`
11418           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11419         `' by configure.'
11420     if test x"$ac_file" != x-; then
11421       configure_input="$ac_file.  $configure_input"
11422       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11423 $as_echo "$as_me: creating $ac_file" >&6;}
11424     fi
11425     # Neutralize special characters interpreted by sed in replacement strings.
11426     case $configure_input in #(
11427     *\&* | *\|* | *\\* )
11428        ac_sed_conf_input=`$as_echo "$configure_input" |
11429        sed 's/[\\\\&|]/\\\\&/g'`;; #(
11430     *) ac_sed_conf_input=$configure_input;;
11431     esac
11432
11433     case $ac_tag in
11434     *:-:* | *:-) cat >"$ac_tmp/stdin" \
11435       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11436     esac
11437     ;;
11438   esac
11439
11440   ac_dir=`$as_dirname -- "$ac_file" ||
11441 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11442          X"$ac_file" : 'X\(//\)[^/]' \| \
11443          X"$ac_file" : 'X\(//\)$' \| \
11444          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11445 $as_echo X"$ac_file" |
11446     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11447             s//\1/
11448             q
11449           }
11450           /^X\(\/\/\)[^/].*/{
11451             s//\1/
11452             q
11453           }
11454           /^X\(\/\/\)$/{
11455             s//\1/
11456             q
11457           }
11458           /^X\(\/\).*/{
11459             s//\1/
11460             q
11461           }
11462           s/.*/./; q'`
11463   as_dir="$ac_dir"; as_fn_mkdir_p
11464   ac_builddir=.
11465
11466 case "$ac_dir" in
11467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11468 *)
11469   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11470   # A ".." for each directory in $ac_dir_suffix.
11471   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11472   case $ac_top_builddir_sub in
11473   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11474   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11475   esac ;;
11476 esac
11477 ac_abs_top_builddir=$ac_pwd
11478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11479 # for backward compatibility:
11480 ac_top_builddir=$ac_top_build_prefix
11481
11482 case $srcdir in
11483   .)  # We are building in place.
11484     ac_srcdir=.
11485     ac_top_srcdir=$ac_top_builddir_sub
11486     ac_abs_top_srcdir=$ac_pwd ;;
11487   [\\/]* | ?:[\\/]* )  # Absolute name.
11488     ac_srcdir=$srcdir$ac_dir_suffix;
11489     ac_top_srcdir=$srcdir
11490     ac_abs_top_srcdir=$srcdir ;;
11491   *) # Relative name.
11492     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11493     ac_top_srcdir=$ac_top_build_prefix$srcdir
11494     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11495 esac
11496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11497
11498
11499   case $ac_mode in
11500   :F)
11501   #
11502   # CONFIG_FILE
11503   #
11504
11505   case $INSTALL in
11506   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11507   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11508   esac
11509   ac_MKDIR_P=$MKDIR_P
11510   case $MKDIR_P in
11511   [\\/$]* | ?:[\\/]* ) ;;
11512   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11513   esac
11514 _ACEOF
11515
11516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11517 # If the template does not know about datarootdir, expand it.
11518 # FIXME: This hack should be removed a few years after 2.60.
11519 ac_datarootdir_hack=; ac_datarootdir_seen=
11520 ac_sed_dataroot='
11521 /datarootdir/ {
11522   p
11523   q
11524 }
11525 /@datadir@/p
11526 /@docdir@/p
11527 /@infodir@/p
11528 /@localedir@/p
11529 /@mandir@/p'
11530 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11531 *datarootdir*) ac_datarootdir_seen=yes;;
11532 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11533   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11534 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11535 _ACEOF
11536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11537   ac_datarootdir_hack='
11538   s&@datadir@&$datadir&g
11539   s&@docdir@&$docdir&g
11540   s&@infodir@&$infodir&g
11541   s&@localedir@&$localedir&g
11542   s&@mandir@&$mandir&g
11543   s&\\\${datarootdir}&$datarootdir&g' ;;
11544 esac
11545 _ACEOF
11546
11547 # Neutralize VPATH when `$srcdir' = `.'.
11548 # Shell code in configure.ac might set extrasub.
11549 # FIXME: do we really want to maintain this feature?
11550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11551 ac_sed_extra="$ac_vpsub
11552 $extrasub
11553 _ACEOF
11554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11555 :t
11556 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11557 s|@configure_input@|$ac_sed_conf_input|;t t
11558 s&@top_builddir@&$ac_top_builddir_sub&;t t
11559 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11560 s&@srcdir@&$ac_srcdir&;t t
11561 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11562 s&@top_srcdir@&$ac_top_srcdir&;t t
11563 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11564 s&@builddir@&$ac_builddir&;t t
11565 s&@abs_builddir@&$ac_abs_builddir&;t t
11566 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11567 s&@INSTALL@&$ac_INSTALL&;t t
11568 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11569 $ac_datarootdir_hack
11570 "
11571 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11572   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11573
11574 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11575   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11576   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
11577       "$ac_tmp/out"`; test -z "$ac_out"; } &&
11578   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11579 which seems to be undefined.  Please make sure it is defined" >&5
11580 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11581 which seems to be undefined.  Please make sure it is defined" >&2;}
11582
11583   rm -f "$ac_tmp/stdin"
11584   case $ac_file in
11585   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11586   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11587   esac \
11588   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11589  ;;
11590   :H)
11591   #
11592   # CONFIG_HEADER
11593   #
11594   if test x"$ac_file" != x-; then
11595     {
11596       $as_echo "/* $configure_input  */" \
11597       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11598     } >"$ac_tmp/config.h" \
11599       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11600     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11601       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11602 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11603     else
11604       rm -f "$ac_file"
11605       mv "$ac_tmp/config.h" "$ac_file" \
11606         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11607     fi
11608   else
11609     $as_echo "/* $configure_input  */" \
11610       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11611       || as_fn_error $? "could not create -" "$LINENO" 5
11612   fi
11613 # Compute "$ac_file"'s index in $config_headers.
11614 _am_arg="$ac_file"
11615 _am_stamp_count=1
11616 for _am_header in $config_headers :; do
11617   case $_am_header in
11618     $_am_arg | $_am_arg:* )
11619       break ;;
11620     * )
11621       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11622   esac
11623 done
11624 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11625 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11626          X"$_am_arg" : 'X\(//\)[^/]' \| \
11627          X"$_am_arg" : 'X\(//\)$' \| \
11628          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11629 $as_echo X"$_am_arg" |
11630     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11631             s//\1/
11632             q
11633           }
11634           /^X\(\/\/\)[^/].*/{
11635             s//\1/
11636             q
11637           }
11638           /^X\(\/\/\)$/{
11639             s//\1/
11640             q
11641           }
11642           /^X\(\/\).*/{
11643             s//\1/
11644             q
11645           }
11646           s/.*/./; q'`/stamp-h$_am_stamp_count
11647  ;;
11648
11649   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11650 $as_echo "$as_me: executing $ac_file commands" >&6;}
11651  ;;
11652   esac
11653
11654
11655   case $ac_file$ac_mode in
11656     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11657   # Older Autoconf quotes --file arguments for eval, but not when files
11658   # are listed without --file.  Let's play safe and only enable the eval
11659   # if we detect the quoting.
11660   case $CONFIG_FILES in
11661   *\'*) eval set x "$CONFIG_FILES" ;;
11662   *)   set x $CONFIG_FILES ;;
11663   esac
11664   shift
11665   for mf
11666   do
11667     # Strip MF so we end up with the name of the file.
11668     mf=`echo "$mf" | sed -e 's/:.*$//'`
11669     # Check whether this is an Automake generated Makefile or not.
11670     # We used to match only the files named 'Makefile.in', but
11671     # some people rename them; so instead we look at the file content.
11672     # Grep'ing the first line is not enough: some people post-process
11673     # each Makefile.in and add a new line on top of each file to say so.
11674     # Grep'ing the whole file is not good either: AIX grep has a line
11675     # limit of 2048, but all sed's we know have understand at least 4000.
11676     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11677       dirpart=`$as_dirname -- "$mf" ||
11678 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11679          X"$mf" : 'X\(//\)[^/]' \| \
11680          X"$mf" : 'X\(//\)$' \| \
11681          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11682 $as_echo X"$mf" |
11683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11684             s//\1/
11685             q
11686           }
11687           /^X\(\/\/\)[^/].*/{
11688             s//\1/
11689             q
11690           }
11691           /^X\(\/\/\)$/{
11692             s//\1/
11693             q
11694           }
11695           /^X\(\/\).*/{
11696             s//\1/
11697             q
11698           }
11699           s/.*/./; q'`
11700     else
11701       continue
11702     fi
11703     # Extract the definition of DEPDIR, am__include, and am__quote
11704     # from the Makefile without running 'make'.
11705     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11706     test -z "$DEPDIR" && continue
11707     am__include=`sed -n 's/^am__include = //p' < "$mf"`
11708     test -z "$am__include" && continue
11709     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11710     # Find all dependency output files, they are included files with
11711     # $(DEPDIR) in their names.  We invoke sed twice because it is the
11712     # simplest approach to changing $(DEPDIR) to its actual value in the
11713     # expansion.
11714     for file in `sed -n "
11715       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11716          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11717       # Make sure the directory exists.
11718       test -f "$dirpart/$file" && continue
11719       fdir=`$as_dirname -- "$file" ||
11720 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11721          X"$file" : 'X\(//\)[^/]' \| \
11722          X"$file" : 'X\(//\)$' \| \
11723          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11724 $as_echo X"$file" |
11725     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11726             s//\1/
11727             q
11728           }
11729           /^X\(\/\/\)[^/].*/{
11730             s//\1/
11731             q
11732           }
11733           /^X\(\/\/\)$/{
11734             s//\1/
11735             q
11736           }
11737           /^X\(\/\).*/{
11738             s//\1/
11739             q
11740           }
11741           s/.*/./; q'`
11742       as_dir=$dirpart/$fdir; as_fn_mkdir_p
11743       # echo "creating $dirpart/$file"
11744       echo '# dummy' > "$dirpart/$file"
11745     done
11746   done
11747 }
11748  ;;
11749     "default-1":C)
11750     for ac_file in $CONFIG_FILES; do
11751       # Support "outfile[:infile[:infile...]]"
11752       case "$ac_file" in
11753         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11754       esac
11755       # PO directories have a Makefile.in generated from Makefile.in.in.
11756       case "$ac_file" in */Makefile.in)
11757         # Adjust a relative srcdir.
11758         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11759         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
11760         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11761         # In autoconf-2.13 it is called $ac_given_srcdir.
11762         # In autoconf-2.50 it is called $srcdir.
11763         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11764         case "$ac_given_srcdir" in
11765           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11766           /*) top_srcdir="$ac_given_srcdir" ;;
11767           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
11768         esac
11769         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11770           rm -f "$ac_dir/POTFILES"
11771           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11772           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11773           POMAKEFILEDEPS="POTFILES.in"
11774           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
11775           # on $ac_dir but don't depend on user-specified configuration
11776           # parameters.
11777           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11778             # The LINGUAS file contains the set of available languages.
11779             if test -n "$OBSOLETE_ALL_LINGUAS"; then
11780               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
11781             fi
11782             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11783             # Hide the ALL_LINGUAS assigment from automake.
11784             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11785             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11786           else
11787             # The set of available languages was given in configure.ac.
11788             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11789           fi
11790           case "$ac_given_srcdir" in
11791             .) srcdirpre= ;;
11792             *) srcdirpre='$(srcdir)/' ;;
11793           esac
11794           POFILES=
11795           GMOFILES=
11796           UPDATEPOFILES=
11797           DUMMYPOFILES=
11798           for lang in $ALL_LINGUAS; do
11799             POFILES="$POFILES $srcdirpre$lang.po"
11800             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11801             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11802             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11803           done
11804           # CATALOGS depends on both $ac_dir and the user's LINGUAS
11805           # environment variable.
11806           INST_LINGUAS=
11807           if test -n "$ALL_LINGUAS"; then
11808             for presentlang in $ALL_LINGUAS; do
11809               useit=no
11810               if test "%UNSET%" != "$LINGUAS"; then
11811                 desiredlanguages="$LINGUAS"
11812               else
11813                 desiredlanguages="$ALL_LINGUAS"
11814               fi
11815               for desiredlang in $desiredlanguages; do
11816                 # Use the presentlang catalog if desiredlang is
11817                 #   a. equal to presentlang, or
11818                 #   b. a variant of presentlang (because in this case,
11819                 #      presentlang can be used as a fallback for messages
11820                 #      which are not translated in the desiredlang catalog).
11821                 case "$desiredlang" in
11822                   "$presentlang"*) useit=yes;;
11823                 esac
11824               done
11825               if test $useit = yes; then
11826                 INST_LINGUAS="$INST_LINGUAS $presentlang"
11827               fi
11828             done
11829           fi
11830           CATALOGS=
11831           if test -n "$INST_LINGUAS"; then
11832             for lang in $INST_LINGUAS; do
11833               CATALOGS="$CATALOGS $lang.gmo"
11834             done
11835           fi
11836           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11837           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"
11838           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11839             if test -f "$f"; then
11840               case "$f" in
11841                 *.orig | *.bak | *~) ;;
11842                 *) cat "$f" >> "$ac_dir/Makefile" ;;
11843               esac
11844             fi
11845           done
11846         fi
11847         ;;
11848       esac
11849     done ;;
11850
11851   esac
11852 done # for ac_tag
11853
11854
11855 as_fn_exit 0
11856 _ACEOF
11857 ac_clean_files=$ac_clean_files_save
11858
11859 test $ac_write_fail = 0 ||
11860   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11861
11862
11863 # configure is writing to config.log, and then calls config.status.
11864 # config.status does its own redirection, appending to config.log.
11865 # Unfortunately, on DOS this fails, as config.log is still kept open
11866 # by configure, so config.status won't be able to write to it; its
11867 # output is simply discarded.  So we exec the FD to /dev/null,
11868 # effectively closing config.log, so it can be properly (re)opened and
11869 # appended to by config.status.  When coming back to configure, we
11870 # need to make the FD available again.
11871 if test "$no_create" != yes; then
11872   ac_cs_success=:
11873   ac_config_status_args=
11874   test "$silent" = yes &&
11875     ac_config_status_args="$ac_config_status_args --quiet"
11876   exec 5>/dev/null
11877   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11878   exec 5>>config.log
11879   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11880   # would make configure fail if this is the last instruction.
11881   $ac_cs_success || as_fn_exit 1
11882 fi
11883 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11884   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11885 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11886 fi
11887